QuaternionMotionProcedure#

class pyCGM2.IMU.Procedures.imuMotionProcedure.QuaternionMotionProcedure(quaternions: ndarray)#

Construct motion from quaternions.

Parameters:

quaternions (np.ndarray) – Array of quaternions.

__init__(quaternions: ndarray)#

Initializes the QuaternionMotionProcedure with quaternions data.

Methods

__init__(quaternions)

Initializes the QuaternionMotionProcedure with quaternions data.

compute(imuInstance)

Compute the procedure to create motion frames from quaternions.

compute(imuInstance: Imu)#

Compute the procedure to create motion frames from quaternions.

Parameters:

imuInstance (imu.Imu) – An IMU instance to which the motion frames will be added.