how CoM calculation of BodyKinematics works in Analyze Tool?

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Dongdong LI
Posts: 9
Joined: Wed Sep 20, 2017 6:06 am

how CoM calculation of BodyKinematics works in Analyze Tool?

Post by Dongdong LI » Fri Sep 13, 2019 3:46 am

Dear guys.

Thanks for your reading.
I want to know how the CoM calculation of BodyKinematics works in the Analyze Tool of OpenSim 3.3? For example, what is the mathematic equation the OpenSim used?

LI Dongdong :D

Tags:

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

Re: how CoM calculation of BodyKinematics works in Analyze Tool?

Post by Thomas Uchida » Fri Sep 13, 2019 3:50 pm

You can find the code in BodyKinematics.cpp; the accelerations are computed starting from here: https://github.com/opensim-org/opensim- ... s.cpp#L541. The API documentation may be helpful to look up the methods that are called (e.g., getAccelerationInGround: https://simtk.org/api_docs/opensim/api_ ... 285ccd015e).

User avatar
Dongdong LI
Posts: 9
Joined: Wed Sep 20, 2017 6:06 am

Re: how CoM calculation of BodyKinematics works in Analyze Tool?

Post by Dongdong LI » Fri Sep 13, 2019 5:44 pm

Dear Prof. Uchida,

Thanks for your reply. I found how the position and acceleration are calculated. However, I found the function "get_mass_center()". It seems to get the mass center of the body. So I want to know how the function "get_mass_center()" works? What's the equation it uses?

Thanks

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

Re: how CoM calculation of BodyKinematics works in Analyze Tool?

Post by Thomas Uchida » Fri Sep 13, 2019 7:10 pm

I found the function "get_mass_center()". It seems to get the mass center of the body. So I want to know how the function "get_mass_center()" works? What's the equation it uses?
There is no equation because the center of mass is a property of the Body (see the API documentation for the get_mass_center() method: https://simtk.org/api_docs/opensim/api_ ... fdc91b48e3). Properties are described in the User's Guide in the Confluence documentation (see the "Property Editor and Outputs List" page under "What is a model property?": https://simtk-confluence.stanford.edu/d ... lproperty?) and in the API documentation (see the "API Guide" page under "Property": https://simtk.org/api_docs/opensim/api_ ... l#property).

POST REPLY