mujoco icon indicating copy to clipboard operation
mujoco copied to clipboard

`.skn` file not working with replicated bodies (dmcontrol rodent model)

Open charles-zhng opened this issue 9 months ago • 1 comments

Hi, I'm trying to use the new replicate tag with the dmcontrol rodent model, but I run into this error with loading it into Mujoco:

ValueError                                Traceback (most recent call last)
Cell In[16], [line 1](vscode-notebook-cell:?execution_count=16&line=1)
----> [1](vscode-notebook-cell:?execution_count=16&line=1) model = mujoco.MjModel.from_xml_path(path)

ValueError: Error: unknown body 'torso' in skin
Element name 'skin', id 0, line 15

I believe this is caused by the renaming of bodies when replicating, making the skin file refer to nonexistent bodies. Is there another way to apply the same .skn file to replicated bodies? Thanks!

charles-zhng avatar May 21 '24 18:05 charles-zhng