You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# pass in the xml path to the viewer directly and upon KEY_BACKSPACE, reload the simviewer=viewer.MujocoViewer(xml_path="Projects/rjax_python/robots/humanoid/scene.xml")
whileTrue:
mujoco.mj_step(viewer.model, viewer.data)
viewer.render()
Each time the model and data have to be accessed, they have to be done via viewer.model and viewer.data. The examples, etc need to change. Would this PR be okay? (Of course, the changes will be reflected in the README and examples)
Need for this/Use case:
No relaunching of the python script for .xml tweaking, no need to use simulate.cc for the same
Implementation Example:
mujoco_full_reload_method.mp4
(If the video stops in the middle, kindly scrub manually to the end. The video may be corrupted)
This might be a breaking change:
Each time the model and data have to be accessed, they have to be done via
viewer.modelandviewer.data. The examples, etc need to change. Would this PR be okay? (Of course, the changes will be reflected in the README and examples)Need for this/Use case:
No relaunching of the python script for
.xmltweaking, no need to use simulate.cc for the sameImplementation Example:
mujoco_full_reload_method.mp4
(If the video stops in the middle, kindly scrub manually to the end. The video may be corrupted)