pykinematics.omc.segmentFrames.pelvis¶
-
pykinematics.omc.segmentFrames.
pelvis
(marker_data, use_cluster=False, R_s_c=None, marker_names='default')¶ Create the pelvis anatomical frame.
Parameters: - marker_data : dictionary
Dictionary of marker position data. Keys correspond to marker names
- use_cluster : bool, optional
Use the cluster to segment rotation to compute the anatomical frame. Default is False.
- R_s_c : {None, numpy.ndarray}, optional
If use_cluster is False, R_s_c is ignored. If use_cluster is True, then a 3x3 rotation matrix must be provided that is the rotation from the segment to cluster frame for the pelvis.
- marker_names : {‘default’, pymotion.omc.utility.MarkerNames}, optional
Either ‘default’, which will use the default marker names, or a modified MarkerNames object, with marker names as used in the keys of pelvis_data, left_thigh_data, and right_thigh_data.
Returns: - pelvis_af : numpy.ndarray
3x3 matrix representing the pelvis anatomical frame. Also is the rotation from world frame into the pelvis anatomical frame. Columns are the x, y, z axes of the anatomical frame.