Open
Description
This might be a breaking change:
# pass in the xml path to the viewer directly and upon KEY_BACKSPACE, reload the sim
viewer = viewer.MujocoViewer(xml_path="Projects/rjax_python/robots/humanoid/scene.xml")
while True:
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)
Metadata
Metadata
Assignees
Labels
No labels