Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
-
Mohammadreza Rezaie
- Posts: 407
- Joined: Fri Nov 24, 2017 12:48 am
Post
by Mohammadreza Rezaie » Thu Jun 08, 2023 11:42 am
Hi, I'm trying to get joint power (joint moment * joint angular velocity) using
OpenSim::Joint::calcPower but the outputs are always zero. The model is Rajagopal (torque-actuated) and the input data are kinematics, external load, and generalized forces followed. In GUI, the OutputReporter (e.g., /jointset/hip_r|power) also reports zero.
I found this description but couldn't understand it very well:
Joints only produce power when internal constraint forces have components along the mobilities of the joint (for example to satisfy prescribed motion). In which case the joint power is the constraint forces projected onto the mobilities multiplied by the mobilities (internal coordinate velocities). Only constraints internal to the joint are accounted for, not external constraints that affect joint motion.
https://github.com/opensim-org/opensim- ... #L380-L385
Any help would be greatly appreciated.
Regards,
Mohammadreza
Tags:
-
Mohammadreza Rezaie
- Posts: 407
- Joined: Fri Nov 24, 2017 12:48 am
Post
by Mohammadreza Rezaie » Tue Jun 13, 2023 6:06 am
Thanks for your reply, I had removed all muscles and the model is now actuated by coordinateActuators (I'm interested in intersegmental power, forces and moments). In what circumstances does calcPower() work?
Thanks for your help.