Page 1 of 1

Angular momentum issue

Posted: Sat Feb 22, 2025 6:05 am
by caesar0729
Hi
I would like to ask whether opensim supports calculating the angular velocity of whole body segments.
If so, which function can do it? I have not found this function yet. The body kinematics function seems to only have position, velocity and acceleration data.
Another question is whether opensim can calculate the angular momentum of whole body segments.

Best
jintao Pan

Re: Angular momentum issue

Posted: Sat Feb 22, 2025 6:38 pm
by nicos1993
Hello Jintao!

To get the angular velocity of a body you can use getAngularVelocity https://simtk.org/api_docs/opensim/api_ ... 93fa89daae or getVelocityInGround https://simtk.org/api_docs/opensim/api_ ... 4526ef9629 - returns angular and linear

To get the whole body angular momentum you can use calcMomentum https://simtk.org/api_docs/opensim/api_ ... 3cd9e8b471 - returns angular and linear whole system momentum

Thanks,

Nicos

Re: Angular momentum issue

Posted: Sat Feb 22, 2025 10:33 pm
by caesar0729
Hi

Thank you very much for your detailed reply!
Now I know what to do!

Thanks,

Jintao Pan