to_body_frame#

mobgap.utils.conversions.to_body_frame(data: DataFrame) DataFrame[source]#

Rename the columns of the passed dataframe to match the body frame axis names.

This will work for either data in the sensor frame or the global frame. Data from the sensor frame will be converted in the body-frame (x -> is, y -> ml, z -> pa). Data in the global frame will be converted to the body-frame aligned global frame (gx -> gpa, -gy -> gml, gz -> gis). In this case, the y-axis is inverted to match the body frame axis definitions and keep the coordinate system right-handed.

In both cases, we assume that the coordinate system definitions of the provided data matches the mobgap/Mobilise-D guidelines.

Parameters:
data

The dataframe to rename.

Returns:
pd.DataFrame

The dataframe with the columns renamed to match the body frame axis names

Examples using mobgap.utils.conversions.to_body_frame#

Custom Data and Datasets

Custom Data and Datasets

The Mobilise-D pipeline: Step-by-Step Breakdown

The Mobilise-D pipeline: Step-by-Step Breakdown

GSD Iluz

This example shows how to use the GSD Iluz algorithm and some examples on how the results compare to the original

GSD Evaluation

GSD Evaluation

ICD Ionescu

ICD Ionescu

Shin Algo

Shin Algo

HKLee algo

HKLee algo

ICD Evaluation

ICD Evaluation

McCamley L/R Classifier

McCamley L/R Classifier

Ullrich L/R Classifier

Ullrich L/R Classifier

LRC Evaluation

LRC Evaluation

Cadence from Initial Contacts

Cadence from Initial Contacts

Cadence Evaluation

Cadence Evaluation

SL Zijlstra

SL Zijlstra

Stride Length Evaluation

Stride Length Evaluation

ElGohary Turning Algo

ElGohary Turning Algo