google-deepmind / mujoco

Multi-Joint dynamics with Contact. A general purpose physics simulator.
https://mujoco.org
Apache License 2.0
8.25k stars 823 forks source link

The ’asset/model‘ tag may miss some types of actuators. #2233

Closed LinShuang22 closed 2 days ago

LinShuang22 commented 4 days ago

Intro

Hi!

I am a PhD student working on robot cluster simulations using MuJoCo.

My setup

MuJoCo:3.2.5 Python Windows10

What's happening? What did you expect?

I want to find a way to create a robot cluster in the XML model where all the individual robots are identical. I noticed that using asset/model can simplify the process and avoid repetitive creation. My single robot includes various types of actuators, including those applied to joints and those applied to sites. When using attach in the final XML file, the actuators applied to sites are ignored, but the others are referenced correctly. And I can create an actuator in the scene.xml file. In addition, I have some other questions.

Here is a screen-shot showing a green sphere:

图片

Steps for reproduction

The scene.xml file is the final file, and singlemodel.xml is the submodel.

Minimal model for reproduction

Here is my simplified example.

scene.xml ```XML ```
singleModel.xml ```XML ```

Code required for reproduction

No response

Confirmations

quagla commented 2 days ago

Thanks for the bug, it should work now.