Exporting CoM trajectories

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
HK Kim
Posts: 6
Joined: Thu Apr 28, 2016 6:13 pm

Exporting CoM trajectories

Post by HK Kim » Wed Sep 23, 2020 9:46 am

Hi

Is there anyway we can export whole-body CoM trajectories data (e.g CoM velocity and acceleration at every time frame) during dynamic movement from OpenSim?
For instance, after simulating our model, we want to see if there is any change of CoM afterward.
Any advice would be greatly appreciated.

Thanks
H

Tags:

User avatar
Carmichael Ong
Posts: 401
Joined: Fri Feb 24, 2012 11:50 am

Re: Exporting CoM trajectories

Post by Carmichael Ong » Wed Sep 23, 2020 11:12 am

The BodyKinematics analysis tool could be helpful for you. You can check out some documentation on analyses here: https://simtk-confluence.stanford.edu/d ... h+Analyses.

User avatar
HK Kim
Posts: 6
Joined: Thu Apr 28, 2016 6:13 pm

Re: Exporting CoM trajectories

Post by HK Kim » Thu Sep 24, 2020 9:32 am

Thanks, one more question.
Are we also able to export 3d markers trajectories from the opensim?

User avatar
Carmichael Ong
Posts: 401
Joined: Fri Feb 24, 2012 11:50 am

Re: Exporting CoM trajectories

Post by Carmichael Ong » Fri Sep 25, 2020 11:45 am

The PointKinematics analysis could be helpful here. You can look up the marker locations on the bodies, and then use those as inputs in the PointKinematics analysis tool.

User avatar
HK Kim
Posts: 6
Joined: Thu Apr 28, 2016 6:13 pm

Re: Exporting CoM trajectories

Post by HK Kim » Fri Sep 25, 2020 12:46 pm

Thanks for your response Carmichael.
We have modified the muscle property of the hip abductors in opensim and to see if the whole-body CoM is changed. However, we found that it's not changed at all. It looks like the OpenSim model locates a optimal position of the CoM even one of the muscle is significantly modified in the generic model. By any chance, can you explain me why this modification does not affect the CoM?
Thanks,

User avatar
Thomas Uchida
Posts: 1794
Joined: Wed May 16, 2012 11:40 am

Re: Exporting CoM trajectories

Post by Thomas Uchida » Sat Sep 26, 2020 7:11 pm

What type of simulation are you running? If you are generating your results by tracking experimental data, then changing muscle properties will not change the trajectory of the model. You might want to look at the "Overview of OpenSim Workflows" page in the documentation (https://simtk-confluence.stanford.edu/d ... +Workflows) for descriptions of inverse vs. forward problems.

User avatar
HK Kim
Posts: 6
Joined: Thu Apr 28, 2016 6:13 pm

Re: Exporting CoM trajectories

Post by HK Kim » Mon Sep 28, 2020 7:01 pm

Thanks for your response.
We have used forward dynamics using the CMC results as input data (cmc_states.sto and cmc_controls.xml).
We have modified muscle property (e.g. reduced optimal force) and run the forward dynamics to see if the center of mass is changed.
However, the model looks very unstable (goes crazy) and also the center of mass almost does not change.
Are we using the right method?
Could you kindly give us any advice on this?

Thanks

User avatar
Thomas Uchida
Posts: 1794
Joined: Wed May 16, 2012 11:40 am

Re: Exporting CoM trajectories

Post by Thomas Uchida » Tue Sep 29, 2020 2:26 am

You started with kinematics and ran an inverse analysis to compute muscle forces. If you apply these muscle forces to the model in a forward dynamic simulation, you should not expect to see the same kinematics as what you started with. This is generally true for systems with inherent instability. Even very small differences (round-off error, integration time stepping, etc.) will lead to large deviations. We need to sense the world around us to maintain balance when we walk; your model needs a controller.

POST REPLY