MCPcopy Create free account
hub / github.com/RoboVerseOrg/RoboVerse / _rollout_frames

Function _rollout_frames

scripts/render_simpler_env.py:64–76  ·  view source on GitHub ↗
(env, actions, seed)

Source from the content-addressed store, hash-verified

62
63
64def _rollout_frames(env, actions, seed):
65 obs, _ = env.reset(seed=seed)
66 frames = []
67 f = _image_from_obs(env, obs)
68 if f is not None:
69 frames.append(f)
70 for a in actions:
71 out = env.step(a)
72 obs = out[0]
73 f = _image_from_obs(env, obs)
74 if f is not None:
75 frames.append(f)
76 return frames
77
78
79def _save_mp4(frames, path, fps=10):

Callers 1

render_taskFunction · 0.85

Calls 3

_image_from_obsFunction · 0.85
resetMethod · 0.45
stepMethod · 0.45

Tested by

no test coverage detected