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!
"No Matching States" Error with OpenSim 4 Models in mimicMeasure
- liu zhixiang
- Posts: 3
- Joined: Wed Aug 24, 2022 11:46 pm
- Thomas Geijtenbeek
- Posts: 460
- Joined: Wed Mar 12, 2014 8:08 am
Re: "No Matching States" Error with OpenSim 4 Models in mimicMeasure
The names of the states have changed in OpenSim 4, so you would have to rename them in your .sto to be compatible.
- liu zhixiang
- Posts: 3
- Joined: Wed Aug 24, 2022 11:46 pm
Re: "No Matching States" Error with OpenSim 4 Models in mimicMeasure
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.
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.
- Thomas Geijtenbeek
- Posts: 460
- Joined: Wed Mar 12, 2014 8:08 am
Re: "No Matching States" Error with OpenSim 4 Models in mimicMeasure
You should use "*/activation" (note the slash instead of the dot). Make sure you also correctly updated the names in the .sto file.