dm_control icon indicating copy to clipboard operation
dm_control copied to clipboard

render two views for stereo cam

Open grez72 opened this issue 3 years ago • 1 comments

Sorry if I missed this in the docs or tutorials, but is it possible to pass a flag to physics.render to get stereo output (either mujoco.mjtStereo.mjSTEREO_QUADBUFFERED, or mujoco.mjtStereo.mjSTEREO_SIDEBYSIDE)? I have a camera with ipd="0.068".

grez72 avatar Nov 10 '22 15:11 grez72

This is actually an attribute of mjvScene or (MjvScene in python). So you you would set scene.stereo = mujoco.mjtStereo.mjSTEREO_SIDEBYSIDE. Depending on how you're building your environment, your camera instance may hold the reference to the scene (camera._scene). By the way, you can also toggle stereo mode when using the viewer by pressing F5.

JeanElsner avatar Nov 21 '22 14:11 JeanElsner