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#
This example shows how to use the GSD Iluz algorithm and some examples on how the results compare to the original