dm_control
dm_control copied to clipboard
render two views for stereo cam
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".
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.