google-deepmind / mujoco

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

Mujoco .skn import error insufficient data in skn file #1804

Closed PiNo010 closed 1 week ago

PiNo010 commented 1 month ago

Hi,

I'm a student and I'm trying to use MuJoCo for a university project. We have to model an hand and import in mujoco to make it move. I'm having problem in implementing the .skn file in the hand.xml. To make the .skn file i used the script in https://github.com/google-deepmind/dm_control/blob/main/dm_control/locomotion/walkers/assets/dog_v2/create_skin.py i passed to the function create an .obj file the mesh of the skin i want to create and the hand.xml file. It all works and creates the hand_skin.skn file as i named it, but when i import the complete xml file to mujoco including the skin it gives me this error :

insufficient data in SKN file bone 7

I really don't understand how to solve this problem and hopeful that someone can help. Thanks

yuvaltassa commented 1 month ago

The error is here or here. I recommend building from source and stepping with a debugger.

PiNo010 commented 1 month ago

the error is here. so i don't understand if the problem is how i exported the mesh from blender (.obj file) or what i do with the model before calling the creat_skin function. Maybe someone can explain to me how to export correctly all the files