Video recorder
video_recorder
¶
VideoRecorder
dataclass
¶
Python
VideoRecorder(
path: Path,
camera_name: CameraName,
show_loads: bool = False,
show_net_force: bool = False,
show_contacts: bool = False,
show_proximities: bool = False,
fps: int = 30,
width: int = 640,
height: int = 480,
_frames: list = list(),
)
capture_frame
¶
Python
capture_frame(
mj_model: MjModel,
mj_data: MjData,
custom_arrows: list[ArrowConfig],
custom_lines: list[LineConfig],
)
Captures the current state as a video frame.
Source code in src/mujoco_mojo/runtime/video_recorder.py
save
¶
Writes the captured frames to a video file.