pykinematics.omc.calibration.static

pykinematics.omc.calibration.static(static_data, hip_center_data, window, marker_names='default')

Process data from a static calibration trial to create the anatomical frames and create constant cluster to anatomical frame rotations.

Parameters:
static_data : tuple

3-tuple of dictionaries. The first is the dictionary of pelvis data, the second is the dictionary of left-thigh data, and the third is the dictionary of right-thigh data during a static standing trial.

hip_center_data : tuple

3-tuple of dictionaries. The first is the dictionary of pelvis data, the second is the dictionary of left-thigh data, and the third is the dictionary of right-thigh data during a trial where the hip joint center can be calculated (enough rotation in axes is present to compute the joint center).

window : int

Number of samples to window over for finding the most still section of data. Suggested is 1 second worth of samples.

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 : tuple

3-tuple of pelvis anatomical frame, rotation from world to pelvis cluster frame, and constant rotation from segment frame to cluster frame.

left_thigh : tuple

3-tuple of left thigh anatomical frame, rotation from world to the left thigh cluster frame, and constant rotation from segment frame to cluster frame.

right_thigh : tuple

3-tuple of right thigh anatomical frame, rotation from world to the right thigh cluster frame, and constant rotation from segment frame to cluster frame.