"No Matching States" Error with OpenSim 4 Models in mimicMeasure

SCONE is a software tool for predictive simulations of biomechanical movement. It uses OpenSim for modeling and simulation, and performs optimization using various control strategies, including feed-forward control, proprioceptic feedback control, and bal
POST REPLY
User avatar
liu zhixiang
Posts: 3
Joined: Wed Aug 24, 2022 11:46 pm

"No Matching States" Error with OpenSim 4 Models in mimicMeasure

Post by liu zhixiang » Fri Nov 01, 2024 9:55 am

Dear Thomas,

I'm currently using mimicMeasure to train the model on joint angle variations from .sto files. When I work with an OpenSim 3 model, everything functions as expected. However, after switching to an OpenSim 4 model, I receive an error stating "No matching states."

For reference, the models I'm using are H0918M_osim4.osim and H0918v3.osim from the Example directory.

Could you please assist me in resolving this issue? Any guidance on how to make mimicMeasure compatible with OpenSim 4 models would be greatly appreciated.

Thank you very much for your help!

User avatar
Thomas Geijtenbeek
Posts: 457
Joined: Wed Mar 12, 2014 8:08 am

Re: "No Matching States" Error with OpenSim 4 Models in mimicMeasure

Post by Thomas Geijtenbeek » Mon Nov 04, 2024 5:39 am

The names of the states have changed in OpenSim 4, so you would have to rename them in your .sto to be compatible.

User avatar
liu zhixiang
Posts: 3
Joined: Wed Aug 24, 2022 11:46 pm

Re: "No Matching States" Error with OpenSim 4 Models in mimicMeasure

Post by liu zhixiang » Mon Nov 04, 2024 10:08 am

Dear Thomas,

Thank you for your previous guidance.

Following your suggestions, I looked into SCONE's Analysis and discovered that there were indeed changes to the states. After adjusting the labels, I was able to successfully mimic the joint angles. However, I am still having trouble with mimicking the muscle activations.

Currently, I have modified the labels as follows, but I am unsure about the correct entry for include_state in mimicMeasure. I tried using the original *.activation as well as listing all relevant fields directly:

/forceset/gastroc_l/activation; /forceset/gastroc_r/activation;
/forceset/tib_ant_l/activation; /forceset/tib_ant_r/activation;
/forceset/hamstrings_l/activation; /forceset/hamstrings_r/activation;
/forceset/rect_fem_l/activation; /forceset/rect_fem_r/activation

Unfortunately, none of these matched successfully.

Could you please advise on the correct include_state format or provide further guidance on how to proceed?

Thank you very much for your help.

User avatar
Thomas Geijtenbeek
Posts: 457
Joined: Wed Mar 12, 2014 8:08 am

Re: "No Matching States" Error with OpenSim 4 Models in mimicMeasure

Post by Thomas Geijtenbeek » Tue Nov 05, 2024 2:45 am

You should use "*/activation" (note the slash instead of the dot). Make sure you also correctly updated the names in the .sto file.

POST REPLY