Skip to content

ChristofDubs/pyrotation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyrotation

A numpy-based rotation library

Build Status Language grade: Python Coverage Status

Getting started

Prerequisites

Installation

The recommended way is installing the package using pip:

pip install git+https://github.com/ChristofDubs/[email protected]#egg=pyrotation

Alternatively, clone this repo:

git clone https://github.com/ChristofDubs/pyrotation.git

Usage

Example:

from pyrotation import quat_from_angle_axis, quat_from_roll_pitch_yaw
import numpy

q1 = quat_from_angle_axis(0.5, numpy.array([1,1,0]))
q2 = quat_from_roll_pitch_yaw(0.3, -0.8, 2.4)
q3 = q1.inverse() * q2
rot3 = q3.rotation_matrix()

To view all available functions, run pydoc pyrotation in the terminal, or type import pyrotation followed by help(pyrotation) in a python file.

License

License

About

Numpy-based rotation library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages