mj-kdl-wrapper  0.1.0
MuJoCo + KDL bridge for robot kinematics and dynamics
Loading...
Searching...
No Matches
mj_kdl::VideoRecorder Struct Reference

#include <mj_kdl_wrapper.hpp>

Public Attributes

mjvCamera cam {}
 
mjvOption opt {}
 
void * _impl = nullptr
 

Detailed Description

Headless video recorder. Renders frames to an EGL offscreen buffer and pipes raw RGB data to an ffmpeg process, producing an H.264 MP4 without a display server or GLFW window.

Requirements: EGL (libegl-dev) and ffmpeg available in PATH.

Typical usage:

VideoRecorder vr; init_video_recorder(&vr, model, "sim.mp4", VideoResolution::R1080p); vr.cam.azimuth = 135; vr.cam.elevation = -20; vr.cam.distance = 2.5;

for (int i = 0; i < steps; ++i) { mj_step(model, data); record_frame(&vr, model, data); }

cleanup(&vr);

Definition at line 269 of file mj_kdl_wrapper.hpp.

Member Data Documentation

◆ _impl

void* mj_kdl::VideoRecorder::_impl = nullptr

Definition at line 273 of file mj_kdl_wrapper.hpp.

◆ cam

mjvCamera mj_kdl::VideoRecorder::cam {}

Definition at line 271 of file mj_kdl_wrapper.hpp.

Referenced by main().

◆ opt

mjvOption mj_kdl::VideoRecorder::opt {}

Definition at line 272 of file mj_kdl_wrapper.hpp.


The documentation for this struct was generated from the following file: