pyCGM2.IMU#

Imu#

Imu(freq, accel, angularVelocity, mag)

The IMU class represents an Inertial Measurement Unit (IMU) sensor.

Filters#

ImuReaderFilter(procedure)

Filter for reading IMU data using a specified reading procedure.

ImuMotionFilter(imuInstance, procedure)

Filter for generating IMU motion from an IMU instance using a specified motion procedure.

ImuRelativeAnglesFilter(imuInstance1, ...)

Filter for calculating the relative angles between two IMUs.

opensenseInterfaceImuPlacerFilter(procedure)

Filter to run the OpenSense IMU Placer.

opensenseInterfaceImuInverseKinematicFilter(...)

Filter to run the OpenSense IMU Inverse Kinematics.

Procedures#

reader#

ImuReaderProcedure()

Base class for procedures to read IMU data from various sources.

DataframeProcedure(dataframe, translators[, ...])

Procedure to read IMU data from a Pandas DataFrame.

C3dBlueTridentProcedure(fullfilename, ...)

Procedure to read Blue Trident IMU data from a C3D file.

motion#

ImuMotionProcedure()

Base class for procedures to construct motion from IMU data.

QuaternionMotionProcedure(quaternions)

Construct motion from quaternions.

GlobalAngleMotionProcedure(globalAngle)

Construct motion from global angles (equivalent to angle-axis representation).

RealignedMotionProcedure([initialRotation])

Realigned IMU motion relative to the first frame.

relative angles#

RelativeImuAnglesProcedure()

Base class for procedures to compute relative angles between two IMUs.

RelativeAnglesProcedure([representation, ...])

Procedure to compute angles between two IMUs.

opensense procedures#

placer#

ImuPlacerXMLProcedure(DATA_PATH, genericOsimFile)

OpenSense IMU placer procedure for setting up and running IMU calibration with OpenSim.

fitter#

ImuInverseKinematicXMLProcedure(DATA_PATH, ...)

Procedure to run OpenSense Inverse Kinematics using IMU data.

Readers#

synchroniseNotAlignedDataFrames(datasets[, ...])

Synchronise different CSV files based on a common time column.

manufacturer-specific readers#

read_blueTridentCsv(filepath)

Read a Vicon Blue Trident csv file and rename its columns.

read_imu_kinventCsv(filepath)

Read a Kinvent IMU csv file (no header) and rename its columns.