Referential#
- class pyCGM2.Model.model.Referential#
Represents a segmental coordinate system.
- motion#
A list of Frame instances characterizing the pose at each time-frame of a dynamic trial.
- Type:
List[Frame]
- relativeMatrixAnatomic#
A matrix representing the relative rotation of the anatomical Referential expressed in the technical referential.
- Type:
numpy.array
- additionalInfos#
Additional information about the referential.
- Type:
Dict
- __init__()#
Methods
__init__
()addMotionFrame
(frame)Append a Frame instance to the motion attribute.
getAxisTrajectory
(axis)Return the trajectory of a specified axis.
getNodeTrajectory
(label)Return the trajectory of a node.
Return the trajectory of the origin of the referential.
setStaticFrame
(frame)Set the static pose of the referential.
- addMotionFrame(frame: Frame)#
Append a Frame instance to the motion attribute. :param frame: A Frame instance representing a pose at a specific time frame. :type frame: Frame
- getAxisTrajectory(axis: str) ndarray #
Return the trajectory of a specified axis. :param axis: Axis for which the trajectory is required. Must be ‘X’, ‘Y’, or ‘Z’. :type axis: str
- Returns:
np.ndarray – Trajectory of the specified axis.
- getNodeTrajectory(label: str) ndarray #
Return the trajectory of a node. :param label: Label of the desired node. :type label: str
- Returns:
np.ndarray – Trajectory of the specified node.
- getOriginTrajectory() ndarray #
Return the trajectory of the origin of the referential. :Returns: np.ndarray – Trajectory of the origin.