MyoHub / myoconverter

A tool to convert opensim 4.0+ MSK models into MuJoCo format with optimized muscle kinematics and kinetics
Apache License 2.0
67 stars 5 forks source link

Error message when converting the OpenSim with the O2IMPipeline #40

Open Escoastin opened 3 months ago

Escoastin commented 3 months ago

Hello, I am trying to convert an OpenSim model using the myoconverter. I've followed all the instructions perfectly (I fixed the geometry_file mistake after taking the screenshot) myoconverter error message 1

I obtained this error message

myoconverter error message 2

After asking ChatGPT about this error message, it suggested that a ground function had not been defined in my model. Here is a pic of the OpenSim model to be converted myoconverter error message 3

Any possible suggestions as to how to fix this?

Escoastin commented 3 months ago

Okay, so I've just realised that I used the Arm26 python script (which could be adapted to the arm26 model) to convert my model, therefore there are missing attributes in the code. How would I be after to fix this issue?

Vittorio-Caggiano commented 3 months ago

@Escoastin can you compare the xml models with one of the deafault gait models provided here? this will give you some reference to better troubleshoot the issues

Escoastin commented 3 months ago

@Escoastin can you compare the xml models with one of the deafault gait models provided here? this will give you some reference to better troubleshoot the issues

So, I have started the comparison process and here is what I have noticed: These are geometries for my model Foetus geo pic

and here are the geometries for the gait models that you told me to look at geo pic gait 2 geo pic gait

My model has way more geometries than the gaits (I don't if the names of the files contribute to the problem as well) therefore I must surely find a way to adapt the converter.py code to convert my model, right?

Escoastin commented 3 months ago

Here is a pic of the two models side by side: xml model comparison