Hello,
I've been working on manipulating inverse kinematics data to calculate center of mass position/veloctiy, angular momentum, kinetic energy, and whole-body inertia. it took a bit more coding than expected due to my model using locked joints when I ran IK, so I wanted to post the code here incase it is helpful for anyone else.
Thanks to Nick Bianco for finding the core issue/addressing it in the attached code.
Inverse Kinematics data processing (center of mass, momentum, kinetic energy, whole-body inertia)
- Michael Raitor
- Posts: 1
- Joined: Mon Jan 23, 2017 6:18 pm
- Mohammadreza Rezaie
- Posts: 407
- Joined: Fri Nov 24, 2017 12:48 am
Re: Inverse Kinematics data processing (center of mass, momentum, kinetic energy, whole-body inertia)
Hi Michael,
I was working on a similar thing and it is of great help, thanks for sharing.
One question: I applied coordinate's value and speed using OpenSim::Coordinate::setValue and OpenSim::Coordinate::setSpeedValue followed by realizeVelocity(). Do you think the methods are similar?
Thank you - Mohammadreza
I was working on a similar thing and it is of great help, thanks for sharing.
One question: I applied coordinate's value and speed using OpenSim::Coordinate::setValue and OpenSim::Coordinate::setSpeedValue followed by realizeVelocity(). Do you think the methods are similar?
Thank you - Mohammadreza