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

Segmentation fault (core dumped) from using PID controller plugin and keyframes simultaneously #791

Open vmstavens opened 4 months ago

vmstavens commented 4 months ago

Describe the bug I have a Python 3.9.5 virtual environment running MuJoCo (3.1.2) in my setup on Ubuntu 20.04 with a UR5e from mujoco_mangerie where I am trying to manipulate a soft body using a Hand-E gripper. Each UR5e actuator is being controlled using the new PID controllers introduced in version 3.1.0 (December 12, 2023). When running this simulation I would like to save and load different states of my simulation, I can understand on the documentation that keyframes are one of the ways to solve this. I like this approach as it enables me to read and changes parameters in the keyframes xml.

The problem appears to be a clash between the new PID controller plugin and loading in keyframes, as when both are included I simply get a Segmentation fault (core dumped).

I have attempted to isolate the problem with just the UR5e manipulator in the scene (along with axes and lights), but the problem seems to persist.

To Reproduce While reproducing the error might take a little setting up wrt. the meshes of the manipulator, I have here included my scene xml as generated form Save xml

Save xml button result ``` ```

Expected behavior The expected behavior would ideally being able to run my simulation with both keyframes and the PID controllers. If there are alternative solutions or I am somehow misusing the tools within MuJoCo please let me know.

Error Messages As mentioned previously the error message when loading in the scene as shown below mj.MjModel.from_xml_path(filename=self._scene_path) Is simply a Segmentation fault (core dumped) Desktop (please complete the following information):

Any and all help, information, solutions to this or an alternative solution is very much appreciated, thanks in advance.