Skip to main content

ASL Utility

This is a utility library mostly concerned with Numpy and spactial transformation helpers.

The main component is the asl_utility.transform package. This contains multiple classes concerned with rotation, transformation & translation.

  • Vector3: 3d translation, offset or position in cartesian space
  • Quaternion: 3d rotation and orientation in cartesian space
  • Transformaton: 3d transformation (translate, rotate & scale) in cartesian space.

Furthermore, it has some interface and data holder classes to support these main components. Check the module and class documnentation for more details.

Installation

This library is available on PyPi.

pip install asl-utility

Example usage

import numpy as np
from asl_utility import transform_helpers

rot1 = transform_helpers.Quaternion.from_axis_and_angle((1, 0, 0), np.pi/4)  # 45° around x-axis
rot2 = transform_helpers.Quaternion.from_euler("XYZ", [0, 0, 30], degrees=True)

rotation = rot1 * rot2 
translation = transform_helpers.Vector3([42, 13, 37])

camera_to_world = transform_helpers.Transformation.from_translation_and_rotation(translation, rotation)
world_to_camera = camera_to_world.invert()

pos_in_cam = np.asarray([10, 20, 30])

pos_in_world = camera_to_world.apply_vector(pos_in_cam)
pos_in_cam2 = world_to_camera.apply_vector(pos_in_world)

Metadata

Release files for asl-utility 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asl-utility 1.1.0
File Size Uploaded Provenance
asl_utility-1.1.0.tar.gz 20.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for asl-utility 1.1.0
File Interpreter ABI Platform
asl_utility-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 46.2 kB

Release files / asl_utility-1.1.0.tar.gz

Download URL asl_utility-1.1.0.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c7af4c0e9385bc8acda3dd5f1bb89a1d790053810d5c15a65ae064ec32517199
BLAKE2b-256 checksum
How to use checksums
e54b7d6a48f59f84c49f38f562d0b7ae4fac79892f92aef52666108ccc5a17f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / asl_utility-1.1.0-py3-none-any.whl

Download URL asl_utility-1.1.0-py3-none-any.whl
Size 25.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb07e2e90888c929b414f80cfef8fbe33cdabee51847f009cb41b12d3242707b
BLAKE2b-256 checksum
How to use checksums
1b3a70ddf22a7c27638f8c2dd72d35e2517405bd5315681efe7abd17c935edfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Security for asl-utility 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page