I am using Mujoco_viewer for my onscreen and offline rendering. I need to add custom overlays to the rendering. So I disabled default overlays by setting "hide_menus='True'" as
Doubt-1) Whether the locations of the functions "create_overlay(model, data)" and "_overlay.clear()" in the above simulation and rendering code are correct ?
Doubt-2) In add overlay items as given in step-2, what is 'viewport' and 'context' ?
Doubt-3) Is there any better method than the one mentioned here ?
Hi,
I am using Mujoco_viewer for my onscreen and offline rendering. I need to add custom overlays to the rendering. So I disabled default overlays by setting "hide_menus='True'" as
viewer = mujoco_viewer.MujocoViewer(model, data, hide_menus='True')
Then custom overlays were created in my main file as given below
From the MuJoCo literature, the steps are mentioned as
1) Calling the function "create_overlay(model, data)" 2) Add overlay items as follows
3) Clear the overlay "_overlay.clear()"
The simulation code is given as
Doubt-1) Whether the locations of the functions "create_overlay(model, data)" and "_overlay.clear()" in the above simulation and rendering code are correct ? Doubt-2) In add overlay items as given in step-2, what is 'viewport' and 'context' ? Doubt-3) Is there any better method than the one mentioned here ?
Can you please help me with the same ?
Thanks Karthik R