Accessing kinematic states when using inverse.initialize()

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
POST REPLY
User avatar
Karthick Ganesan
Posts: 119
Joined: Thu Oct 10, 2013 12:11 am

Accessing kinematic states when using inverse.initialize()

Post by Karthick Ganesan » Wed May 04, 2022 6:22 am

Hi all,
When we create a study using inverse.initialize() and solve, the solution file doesn't seem to contain the kinematic states in it (The solution of a MocoInverse has the kinematic states). If that is true, how to get a states/solution file which includes the kinematic states. I need them for further analysis. Of course, the generalized coordinates are prescribed and from that one can find the speeds. But, is there any other way?
Thanks,
Karthick.

User avatar
Nicholas Bianco
Posts: 1050
Joined: Thu Oct 04, 2012 8:09 pm

Re: Accessing kinematic states when using inverse.initialize()

Post by Nicholas Bianco » Wed May 04, 2022 10:06 am

Hi Karthick,

You could solve a "dummy" problem (i.e., set max iterations to zero) and get the MocoInverse solution with the kinematics since they will be the same no matter what the muscle solution is.

-Nick

POST REPLY