Page 1 of 1

MATLAB Static Optimisation States File

Posted: Wed Jul 28, 2021 10:54 pm
by jordanyee2
Hello,

I successfully got static optimization and forward dynamics running in the GUI and now am trying to transfer this to the API.

Everything runs fine, but I'm unsure how to generate the states file required to set the initial state of the FD. In the GUI, running SO automatically produced a states file which I could then use to set the initial state for the FD, but running the SO through the AnalyzeTool in the API only generates the forces, activations and controls.

Is there any way to set the StaticOptimization or AnalzeTool objects to create the initial states file for me? Alternatively, I have the .mot generated from IK which was input to the SO, can I create a states file from that?

Thank you.