Page 1 of 1
how CoM calculation of BodyKinematics works in Analyze Tool?
Posted: Fri Sep 13, 2019 3:46 am
by lidongdong
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
Re: how CoM calculation of BodyKinematics works in Analyze Tool?
Posted: Fri Sep 13, 2019 3:50 pm
by tkuchida
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).
Re: how CoM calculation of BodyKinematics works in Analyze Tool?
Posted: Fri Sep 13, 2019 5:44 pm
by lidongdong
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
Re: how CoM calculation of BodyKinematics works in Analyze Tool?
Posted: Fri Sep 13, 2019 7:10 pm
by tkuchida
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).