Skip to main content

A lightweight library for handling 3D rotations and translations with ease.

Project description

ezpose

A Python package for working with 3D transformations and poses.
This package aims to extend scipy.spatial.transform.Rotation class to work with rigid transformations(i.e. SE(3) poses).

Installation

To install this package, you can use pip:

pip install ezpose

Usage

Here's an example of how to use this package:

from ezpose import SE3, SO3

# Create a random 3D transformation
transform = SE3.random()

# Apply the transformation to a vector
vector = np.array([1, 2, 3])
transformed_vector = transform.apply(vector)

# Multiply two transformations
transform2 = SE3.random()
result = transform.multiply(transform2)

API Reference

Here's a list of the classes and functions in this package:

  • SO3: A class representing a 3D rotation matrix in SO(3).

    • this is a subclass of scipy.spatial.transform.Rotation
  • SE3: A class representing a 3D transformation matrix in SE(3).

    • random(): A method to generate a random SE3 object.
    • apply(): A method to apply the transformation to a vector.
    • multiply(): A method to multiply two SE3 objects. (= pose1 @ pose2)
    • inv(): A method to return the inverse of the transformation.
    • lookat(): A method that returns the view matrix from the given camera position to the target position.
    • as_matrix(): A method to convert the transformation to a 4x4 matrix.
    • as_xyz_qtn(): A method to convert the transformation to a numpy array of (position, quaternion).

License

This package is licensed under the MIT License.

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

ezpose-0.1.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

ezpose-0.1.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file ezpose-0.1.3.tar.gz.

File metadata

  • Download URL: ezpose-0.1.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.8.10 Linux/5.15.0-119-generic

File hashes

Hashes for ezpose-0.1.3.tar.gz
Algorithm Hash digest
SHA256 dfbaf785600a10dd9cb6b5a8d8119262ca4a741d6fe5725b227fe56ca4ed9b8b
MD5 c45f86966713f3f5979db4dc3cec470f
BLAKE2b-256 ebf1b808627d00e1f77ce2e5197b0c4dcbc9d23dd0a3f43c769ba569b7530d6b

See more details on using hashes here.

File details

Details for the file ezpose-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ezpose-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.8.10 Linux/5.15.0-119-generic

File hashes

Hashes for ezpose-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 19562b330bfb3909d82e38ea484acf397a68c557f0f5cc053917bedba7863dfa
MD5 853c12880607dca6c05877b5c465ad95
BLAKE2b-256 3a01df34a33ad3befb132d2da931210bb58dd95002c3fcd83c404bb0a963711f

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