Skip to main content

RotEx is a set of python helper functions to apply 3D rotation, especially Euler Angles, based on scipy.spatial.transform.Rotation

Project description

RotEx

RotEx is a set of python helper functions to apply 3D rotation, like Euler Angles etc, based on scipy.spatial.transform.Rotation. You can learn, understand and test Rotation quickly, and use these functions in your codes easily.

It includes:

  • rotex, the core of module, as an extension of scipy.spatial.transform.Rotation. It provides basic algrithm from mathematics perspective.
  • attitude, rotate_vectors ..., providing some functions for all kinds of applications of rotation from application perspective.
  • tests, pytest functions for the above, for dev only.
  • tools, some tools, for dev only.

Please see the comments above all functions in source code to get details.

Please ref to ./tests/* code to get some examples to call these functions.

Make rotation easy, not dizzy!

Dependencies

  • python >3.0
  • scipy
  • pytest

Installation

  • Install from the Python Package Index:

    pip install RotEx
    
  • Install from the source:

    cd RotEx
    pip install -e .
    

Get started

  • Use the RotEx module

    from RotEx import utils
    from RotEx import rotex
    from RotEx import attitude
    from RotEx import rotate_vectors
    
    (rot, att) = attitude.from_heading_in_enu_frame(np.array([-1, 2, 3]), 15, True)
    ...
    
  • Try test RotEx (only for from source)

    Run test.py in the root. It calls tests on all functions provided in RotEx folder.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

RotEx-0.2.0.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

RotEx-0.2.0-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page