Skip to content

Python package for attitude representations (Euler angles, unit quaternions, DCMs)

License

Notifications You must be signed in to change notification settings

speterius/rotations

Repository files navigation

Rotations

A python package to describe 3D rotations using unit quaternions, rotation matrices, Euler angles.

Tests Code style: black License: MIT

Usage

from rotations import UnitQuaternion, RotationMatrix, EulerAngles, AngleType

# Specify unit quaternions
q1 = UnitQuaternion.from_(1.0, 0.0, 0.0, 0.0)
q2 = UnitQuaternion.from_euler_angles(roll=30.0, pitch=10.0, yaw=0, angletype=AngleType.DEGREES)

# Use it for quaternion rotations
rotated_vector = q2 @ [1.0, 0.0, 0.0]

Development guide

Install package

git clone git@github.com:peter-seres/rotations.git
cd rotations
python -m venv venv
venv\scripts\Activate
pip install -r requirements.txt
pip install -r requirements_dev.txt
pip install -e .

CI

  • Automate tests with pytest
  • Automate linting using black
  • tox: automate github actions for multiple environments

About

Python package for attitude representations (Euler angles, unit quaternions, DCMs)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages