calclPower() reports zero
Posted: 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:
Any help would be greatly appreciated.
Regards,
Mohammadreza
I found this description but couldn't understand it very well:
https://github.com/opensim-org/opensim- ... #L380-L385Joints 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.
Any help would be greatly appreciated.
Regards,
Mohammadreza