Page 1 of 1

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

Posted: Fri Nov 01, 2024 9:55 am
by sean0521
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!

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

Posted: Mon Nov 04, 2024 5:39 am
by tgeijten
The names of the states have changed in OpenSim 4, so you would have to rename them in your .sto to be compatible.

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

Posted: Mon Nov 04, 2024 10:08 am
by sean0521
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.

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

Posted: Tue Nov 05, 2024 2:45 am
by tgeijten
You should use "*/activation" (note the slash instead of the dot). Make sure you also correctly updated the names in the .sto file.