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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file RotEx-0.2.0.tar.gz.

File metadata

  • Download URL: RotEx-0.2.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for RotEx-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9d5e735e7ba6001cef656be19a7c55b86b3526f8823a79763b69138978620e34
MD5 f0e5cb3bcd177da1783bb1787b738569
BLAKE2b-256 9d931b83cb7a6eda55ed00416dd9bf836dfd074974a91d52c1b5cbfbf17bd8c1

See more details on using hashes here.

File details

Details for the file RotEx-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: RotEx-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for RotEx-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac059e98cc15c94e69a0b6960af43c0704ac2c88026bceeb3192f01e59ba2a46
MD5 76ca779bbb4f994e5c4921d901dacb8c
BLAKE2b-256 f04131f6a97f34f749e459a24316b86342d2b01ddfc699c9c921a6d643e31793

See more details on using hashes here.

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