mujoco icon indicating copy to clipboard operation
mujoco copied to clipboard

Error: repeated name in mesh array while converting URDF

Open alaurenzi opened this issue 3 years ago • 1 comments

Hello everyone, I am trying to convert a URDF to XML using the compile program. I am getting this error though:

Error: repeated name in mesh array, position 31
Object name = hip-pitch1, id = 31

which, I guess, originates from the fact that the same mesh is used in multiple places. Indeed, the robot has four "hip pitch" links, each one containing both visual and collision description. Collision meshes are specified as <mesh-dir>/collision/hip-pitch.stl, whereas visual meshes as <mesh-dir>/hip-pitch.stl, and the scale attribute is used to flip the meshes left-to-right.

I think this is common practice to avoid mesh duplication (the robot has four identical legs!) How should I deal with this situation?

Thanks!

alaurenzi avatar Mar 03 '22 09:03 alaurenzi

This could be considered a bug. MuJoCo currently strips the path from filenames internally leading to these unwanted collisions. We hope to fix this soon. In the meantime, please rename your meshes.

yuvaltassa avatar Mar 03 '22 11:03 yuvaltassa

Is this bug fixed ? I have the same error on 2.35 with no other obvious reason than the same mesh used multiple times

vicltz avatar Jun 20 '23 13:06 vicltz

Does setting the strippath attribute to "false" not solve this?

yuvaltassa avatar Nov 23 '23 00:11 yuvaltassa

Closing for now.

yuvaltassa avatar Jan 08 '24 16:01 yuvaltassa

Have you guys solved this problem? I have the same issue even setting the strippath attribute to "false"

fukangl avatar Feb 14 '24 14:02 fukangl