Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
charles-zhng opened this issue May 21, 2024 · 1 comment
Open
Labels
maybe bug Further investigation needed to determine whether this is a bug question Request for help or information

Comments

@charles-zhng
Copy link

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 charles-zhng added the question Request for help or information label May 21, 2024
@yuvaltassa
Copy link
Collaborator

Oof, we didn't think of that...

Your diagnosis is correct, but I don't see an easy solution given that the names are baked into the file...

@kevinzakka kevinzakka added the maybe bug Further investigation needed to determine whether this is a bug label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maybe bug Further investigation needed to determine whether this is a bug question Request for help or information
Projects
None yet
Development

No branches or pull requests

3 participants