Recreate Moco solution from osim, sto files of states and control
Posted: Thu Apr 25, 2024 7:01 am
Dear experts of OpenSim and Moco,
I'm learning OpenSim MOCO with the latest OpenSim. I'm interested in predicting gait motions using a osim model with contact bodies. I found an example of 2Dwalking and examing it in Python environment.
Then I have a question. This sample creates gaitTrackingSolution using MocoTracking, and solution variable is reused as a guess in gaitPrediction with MocoStudy. But is it possible to recreate the gaitTrackingSolution from osim, sto files of states and controls?
For example, I have a_model.osim with a_states.sto and a_control.sto files. How can I recreate a Moco's solution variable.
Here attached file is my python script converted from Matlab sample code.
Any suggestions are helpful.
Thank you and Best,
Hide
I'm learning OpenSim MOCO with the latest OpenSim. I'm interested in predicting gait motions using a osim model with contact bodies. I found an example of 2Dwalking and examing it in Python environment.
Then I have a question. This sample creates gaitTrackingSolution using MocoTracking, and solution variable is reused as a guess in gaitPrediction with MocoStudy. But is it possible to recreate the gaitTrackingSolution from osim, sto files of states and controls?
For example, I have a_model.osim with a_states.sto and a_control.sto files. How can I recreate a Moco's solution variable.
Here attached file is my python script converted from Matlab sample code.
Any suggestions are helpful.
Thank you and Best,
Hide