Python bindings for the GAFRO geometric-algebra robotics library
Project description
gafropy
Python bindings for the GAFRO geometric-algebra library.
gafropy mirrors the binding surface exposed by
gafrojs: one Python class per concrete
C++ wrapper, with no template variants or operator overloads. The intent is to
expose CGA primitives (Point, Vector, Rotor, Translator, Motor, Line, Plane,
Sphere, Circle, PointPair, FlatPoint, DirectionVector, TangentVector, Dilator,
Transversion) and the robot System (loaded from URDF/MJCF/YAML) in an
ergonomic Python API.
Visualization-specific methods (anything tied to three.js in gafrojs) are
not bound. Methods that return arrays/matrices return numpy.ndarray.
Install (from source)
pip install -v .
The build pulls gafro, gafro_robot_descriptions, eigen3, yaml-cpp,
tinyxml2, behemoth and sackmesser via CMake FetchContent, the same way
gafrojs does.
Usage
import gafropy as ga
p = ga.Point(1.0, 0.0, 0.0)
r = ga.Rotor.from_angle_axis(0.5, 0.0, 0.0, 1.0)
t = ga.Translator(0.0, 0.0, 0.1)
m = ga.Motor(r, t)
p2 = p.apply(m)
print(p2.to_array()) # numpy.ndarray, shape (3,)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gafropy-2.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: gafropy-2.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.12, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2827cd33bfdd4bc345af5991c2684cb597e1363b174f0f43b2531f1ff6b13de9
|
|
| MD5 |
8bb4d9cc18478fb509831472909f8bc5
|
|
| BLAKE2b-256 |
a24d841a02357ea59a90aa18766506e6a9dc113b304ac425b0efaf050971a095
|