Python utilites for movements in 3d space
Project description
 — scikit-kinematics —
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
Dependencies
numpy, scipy, matplotlib, pandas, sympy, easygui
Homepage
<http://work.thaslwanter.at/skinematics/html/>
Author: Thomas Haslwanter Date: 04-10-2019 Ver: 0.8.4 Licence: BSD 2-Clause License (<http://opensource.org/licenses/BSD-2-Clause>) Copyright (c) 2020, Thomas Haslwanter All rights reserved.
Installation
You can install scikit-kinematics with
> pip install scikit-kinematics
and upgrade to a new version with
> pip install –upgrade –no-deps scikit-kinematics
IMUs
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: - XSens - xio (original, and NGIMU) - yei
* polulu
calc_position
MARG Systems
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.IMU.setData … set the properties of an IMU-object
imus.IMU.set_qtype … sets q_type, and automatically performs the relevant calculations.
imus.Madgwick … Class for calculating the 3D orientation with the Madgwick-algorithm
imus.Mahony … Class for calculating the 3D orientation with the Mahony-algorithm
Markers
Analysis of signals from video-based marker-recordings of 3D movements
markers.analyze_3Dmarkers … Kinematic analysis of video-basedrecordings of 3D markers
markers.find_trajectory … Calculation of joint-movements from 3D marker positions
Quaternions
Note that all these functions work with single quaternions and quaternion vectors, as well as with arrays containing these.
Quaternion class
quat.Quaternion … class, including overloading for multiplication and
- : division (e.g. “quatCombined = quat1 * quat2”), import and
export
Functions for working with quaternions
quat.q_conj … Conjugate quaternion
quat.q_inv … Quaternion inversion
quat.q_mult … Quaternion multiplication
quat.q_scalar … Extract the scalar part from a quaternion
quat.q_vector … Extract the vector part from a quaternion
quat.unit_q … Extend a quaternion vector to a unit quaternion.
Conversion routines - quaternions
quat.calc_angvel … Calculates the velocity in space from quaternions
quat.calc_quat … Calculate orientation from a starting orientation and angular velocity.
quat.convert … Convert quaternion to corresponding rotation matrix or Gibbs vector
quat.deg2quat … Convert number or axis angles to quaternion vectors
quat.quat2seq … Convert quaternions to sequention rotations (“nautical” angles, etc)
quat.scale2deg … Convert quaternion to corresponding axis angle
Rotation Matrices
Definition of rotation matrices
rotmat.R … 3D rotation matrix for rotation about a coordinate axis
Conversion Routines - rotation matrices
rotmat.convert … Convert a rotation matrix to the corresponding quaternion
rotmat.seq2quat … Convert nautical angles etc. to quaternions
rotmat.sequence … Calculation of Euler, Fick, Helmholtz, … angles
Symbolic matrices
rotmat.R_s() … symbolix matrix for rotation about a coordinate axis
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’)
Spatial Transformation Matrices
rotmat.stm … spatial transformation matrix, for combined rotations/translations
rotmat.stm_s() … symbolix spatial transformation matrix
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scikit-kinematics-0.8.4.tar.gz.
File metadata
- Download URL: scikit-kinematics-0.8.4.tar.gz
- Upload date:
- Size: 3.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4db221708c1a1fa4906ff49d2ba3778caf047955174fe602be4e235c73ce6c87
|
|
| MD5 |
ac5971ee7e7f3af4fb94ec4323c9638b
|
|
| BLAKE2b-256 |
6e116be1e9fb932af728cc2291d532ad9677257a32a92ded3f76c5024117ed90
|
File details
Details for the file scikit_kinematics-0.8.4-py3.8.egg.
File metadata
- Download URL: scikit_kinematics-0.8.4-py3.8.egg
- Upload date:
- Size: 2.1 MB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76d3a73f5f923bca3c5ebdaa3b2b3ceda3a7c6b81a59724918b0f273e03e81cc
|
|
| MD5 |
8c09f2b189e06e70d3c1f3216bbd2880
|
|
| BLAKE2b-256 |
5822c04b72de6b4067952e6922bf1d5f11844a6f344542c0aa5706f42753c3ca
|
File details
Details for the file scikit_kinematics-0.8.4-py2.py3-none-any.whl.
File metadata
- Download URL: scikit_kinematics-0.8.4-py2.py3-none-any.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26a2e08023d42e7784195d84d9ac14e643ec910f6ecc15a88d1531e805bb0c40
|
|
| MD5 |
75efc2fe72701d8c47f12269a3b6d2b3
|
|
| BLAKE2b-256 |
010d3378aa7689a480d2cb613388bcdfc9555ed5bd218940716626270931d625
|