calculateSegmentLength#
- pyCGM2.Tools.opensimTools.calculateSegmentLength(model, jointLabel1, jointLabel2)#
Calculate the distance between two joint centres of an OpenSim model in the default pose.
Joint locations are expressed in the ground frame from the parent frame of each joint.
- Parameters:
model (opensim.Model) – OpenSim model.
jointLabel1 (str | list) – Joint name, or a list of two joint names whose locations are averaged.
jointLabel2 (str) – Joint name.
- Returns:
float – Segment length.