Skip to main content

pymatlie provides an implementation of Matrix Lie Groups (MLG) used in robotics.

Project description

PyMatLie

workflow

Installation

Either install via pip through

pip install pymatlie

or, for development, clone the repository and install in editable mode using

$ python -m venv venv
$ source venv/bin/activate
$ pip install -e ".[dev]"

Usage

We use $g \in G$ for a group element, where $G$ is the Matrix Lie Group, $\xi \in \mathbb R^m$ for a column vector in the Lie Algebra and $\xi^\wedge \in \mathfrak g$ for the matrix representation of said vector.

from pymatlie.se2 import SE2

g = SE2.random() # Sample random group element

# Moving from the Group to the Lie Algebra
xi_hat = SE2.log(g)
xi     = SE2.vee(xi_hat)
# or alternatively
xi     = SE2.Log(g)

# Moving from the Lie Algebra to the Group
xi_hat = SE2.hat(xi) # Or SE3.wedge(xi)
g       = SE2.expm(xi_hat)
# or alternatively
g       = SE2.exp(xi)

# There are methods for generating common matrices
e       = SE2.get_identity()
Jl      = SE2.left_jacobian(xi)
Jr      = SE2.right_jacobian(xi)
Ad      = SE2.adjoint_matrix(g)
ad      = SE2.ad_operator(g)

Features

  • Implemented SO(2), SE(2)
  • Batched
  • Euler-Poincare and Euler-Poincare-Suslov

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

pymatlie-0.0.1a1.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymatlie-0.0.1a1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file pymatlie-0.0.1a1.tar.gz.

File metadata

  • Download URL: pymatlie-0.0.1a1.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for pymatlie-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 b7ed1542f43fc724ee962a2a46ddd928bac1e311de24723149c7127ea795e092
MD5 5ed14f2fbbd0cd263b51d0aa7b53c32a
BLAKE2b-256 ce4164be4de36d9785b04bf197b6264585f4d9d3e3147e343bc3d7f37790d838

See more details on using hashes here.

File details

Details for the file pymatlie-0.0.1a1-py3-none-any.whl.

File metadata

  • Download URL: pymatlie-0.0.1a1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for pymatlie-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 c74422a8b495d05c7328d484a7421de3cf7b4f32b826c4a38efdf74d5ca5e103
MD5 dd868e80f24dbec89161e6e737e8d68b
BLAKE2b-256 3f2c25da5630ddd1a4bcae84b17d98ce383de33757ea18296f0e75f52173b6b5

See more details on using hashes here.

Supported by

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