Skip to main content

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

Project description

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 .

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)

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.1a0.tar.gz (14.7 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.1a0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pymatlie-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 7387779e69f1e0e6ad2d957637ffc5a2998bd640f9e4e3f1f5a349c4d361dd0c
MD5 68fa42a1b903c19651f7cc52e31becf2
BLAKE2b-256 28f3397e2af40736540be0904fdff5f807ae0a5904fb28362d613d2bccffc8b8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymatlie-0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fb78544a1b832707854d95eaeb516a70cc55047b09d8cdc76d48d401e39fac0
MD5 28b7792a3b788ebf0ef1288bb0671013
BLAKE2b-256 77a90862a9a8d6ff4c125f9e84e8483f57be33f6581a75bbbd4465b3380ca14a

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