openai / mujoco-py

MuJoCo is a physics engine for detailed, efficient rigid body simulations with contacts. mujoco-py allows using MuJoCo from Python 3.
Other
2.87k stars 814 forks source link

How to load a new xml model when mujoco running? #625

Open Schortenger opened 3 years ago

Schortenger commented 3 years ago

I am trying to equip robot with different end effectors while grasping different objects. Do you know how to achieve this while not stopping the running codes?

rojikada commented 3 years ago

It is not possible, you would have to re-run in a new environment - it is due to nature of mujoco - when simulating it runs as "binary".

You could probably load them all at once and have them loaded at distant coordinates.