scikit-kinematics primarily contains functions for working with 3D kinematics, e.g quaternions and rotation matrices. This includes utilities to read in data from the following IMU-sensors: - polulu - XSens - xio - xio-NGIMU - YEI
Compatible with Python >= 3.5
numpy, scipy, matplotlib, pandas, sympy, easygui
http://work.thaslwanter.at/skinematics/html/
Author: Thomas Haslwanter Date: 11-07-2024 Ver: 0.9.3 Licence: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) Copyright (c) 2024, Thomas Haslwanter All rights reserved.
You can install scikit-kinematics with
pip install scikit-kinematics
and upgrade to a new version with
pip install --upgrade --no-deps scikit-kinematics
Analysis of signals from IMUs (intertial-measurement-units). Read in data, calculate orientation (with one of the algorithms below)
get_data ... This method must be taken from one of the existing sensors, or from your own sensor. Currenlty the following sensors types are available:
* polulu
imus.analytical ... Calculate orientation and position, from angular velocity and linear acceleration
imus.kalman ... Calculate orientation from IMU-data using an Extended Kalman Filter.
imus.IMU ... Class for working with data from IMUs
: - imus.IMU.calc_position ... calculate position
imus.Madgwick ... Class for calculating the 3D orientation with the Madgwick-algorithm
imus.Mahony ... Class for calculating the 3D orientation with the Mahony-algorithm
Analysis of signals from video-based marker-recordings of 3D movements
Note that all these functions work with single quaternions and quaternion vectors, as well as with arrays containing these.
quat.Quaternion ... class, including overloading for multiplication and
: division (e.g. "quatCombined = quat1 * quat2"), import and export
Conversion routines - quaternions --------------------------------=
Definition of rotation matrices ------------------------------=
Conversion Routines - rotation matrices --------------------------------------=
For example, you can e.g. generate a Fick-matrix, with
>>> R_Fick = R_s(2, 'theta') * R_s(1, 'phi') * R_s(0, 'psi')
Routines for working with vectors These routines can be used with vectors, as well as with matrices containing a vector in each row.
Interactive Data Analysis ========================-
The file Errata.pdf contains the a list of mistakes in the manuscript, and the corresponding corrections.