gaitmap.utils.rotations: Helper to handle rotations#
A set of util functions that ease handling rotations.
All util functions use scipy.spatial.transform.Rotation to represent rotations.
Functions#
|
Create a rotation based on a rotation axis and a angle. |
|
Apply a rotation to acc and gyro data of a dataset. |
|
Flip datasets around axis data of a dataset. |
|
Rotate data of a single sensor using a series of rotations. |
|
Find a quaternion that rotates v1 into v2 via the shortest way. |
|
Find the rotation matrix needed to align z-axis with gravity. |
|
Find the angle (in rad) between two 3D vectors. |
|
Find the signed angle (in rad) between two 3D vectors. |
|
Get the required rotation angle between two orientations. |
|
Calculate the rotation component of rot around the given rotation axis. |