You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the whole model of the robot in the blender, which I exported as .obj with the corresponding .mtl.
Once I convert using the obj2mjcf using the following command:
Error compiling model: File or filename expected, got 'PosixPath'
INFO:root:Saved MJCF to /home/dhruv/Documents/Model/robot/robot.xml
and when I compile the model using mujoco, I get following error:
Traceback (most recent call last):
File "/home/dhruv/Documents/Model/test.py", line 4, in <module>
model = mj.MjModel.from_xml_path(xml_path)
ValueError: Error: faces have inconsistent orientation: robot-v3_6
Object name = robot-v3_6, id = 6, line = 26, column = -1
I am not sure what I am doing wrong. Would appreciate all the help!
Thank you!
The text was updated successfully, but these errors were encountered:
"Error compiling model: File or filename expected, got 'PosixPath'" -- could you attach a zip file with your model so I can reproduce locally?
ValueError: Error: faces have inconsistent orientation: robot-v3_6 -- this is something I can't control unfortunately. Sometimes, the output of trimesh splitting results in meshes that are a) flat in one dimension or b) have faces with inconsistent orientation. I think the MuJoCo devs recently pushed a fix that stops the compiler from complaining (see commit).
In any case, attaching a zip file would be very helpful so that I can improve obj2mjcf!
Hello Kevin! Great tool!
I have the whole model of the robot in the blender, which I exported as .obj with the corresponding .mtl.
Once I convert using the obj2mjcf using the following command:
I get following error:
and when I compile the model using mujoco, I get following error:
I am not sure what I am doing wrong. Would appreciate all the help!
Thank you!
The text was updated successfully, but these errors were encountered: