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.79k stars 810 forks source link

Saving changes in a model #755

Open erdemuysalx opened 1 year ago

erdemuysalx commented 1 year ago

Hi everyone,

I have a humanoid model which I want to be able to manipulate its joints' poses. I tried this in the Python API by changing the qpos state then saving as a new XML, which did not worked. When I load saved XML file, it looks same as original one in the simulation?

For saving purposes I used functions.mj_saveModel and functions.mj_saveLastXML methods.

What am I missing? What is the proper way of doing this?