gaitmap.preprocessing: Helper to align and prepare datasets#

A set of functions that help to align the sensor orientation and prepare the dataset for the use with gaitmap.

Classes#

Methods to perform coordinate system transformation and alignments.

PcaAlignment([target_axis, pca_plane_axis])

Align dataset target axis, to the main foot rotation plane, which is usually the medio-lateral plane.

ForwardDirectionSignAlignment([...])

Flip sensor target axis by 0deg or 180deg to align with the sensor frame with the expected forward direction.

Functions#

align_dataset_to_gravity(dataset, ...[, ...])

Align dataset, so that each sensor z-axis (if multiple present in dataset) will be parallel to gravity.

align_heading_of_sensors(gyro_signal_sensor, ...)

Align the heading (rotation in the ground plane) of multiple sensors attached to the same rigid body.