• Stars
    star
    220
  • Rank 180,422 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 4 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Rigid transforms + Lie groups in JAX

jaxlie

build mypy lint codecov pypi_dowlnoads

[ API reference ] [ PyPI ]

jaxlie is a library containing implementations of Lie groups commonly used for rigid body transformations, targeted at computer vision & robotics applications written in JAX. Heavily inspired by the C++ library Sophus.

We implement Lie groups as high-level (data)classes:

Group Description Parameterization
jaxlie.SO2 Rotations in 2D. (real, imaginary): unit complex (โˆˆ S1)
jaxlie.SE2 Proper rigid transforms in 2D. (real, imaginary, x, y): unit complex & translation
jaxlie.SO3 Rotations in 3D. (qw, qx, qy, qz): wxyz quaternion (โˆˆ S3)
jaxlie.SE3 Proper rigid transforms in 3D. (qw, qx, qy, qz, x, y, z): wxyz quaternion & translation

Where each group supports:

  • Forward- and reverse-mode AD-friendly exp(), log(), adjoint(), apply(), multiply(), inverse(), identity(), from_matrix(), and as_matrix() operations. (see ./examples/se3_example.py)
  • Helpers for optimization on manifolds (see ./examples/se3_optimization.py, jaxlie.manifold.*).
  • Compatibility with standard JAX function transformations. (see ./examples/vmap_example.py)
  • (Un)flattening as pytree nodes.
  • Serialization using flax.

We also implement various common utilities for things like uniform random sampling (sample_uniform()) and converting from/to Euler angles (in the SO3 class).


Install (Python >=3.7)

# Python 3.6 releases also exist, but are no longer being updated.
pip install jaxlie

In the wild


Misc

jaxlie was originally written for our IROS 2021 paper (link). If it's useful for you, you're welcome to cite:

@inproceedings{yi2021iros,
    author={Brent Yi and Michelle Lee and Alina Kloss and Roberto Mart\'in-Mart\'in and Jeannette Bohg},
    title = {Differentiable Factor Graph Optimization for Learning Smoothers},
    year = 2021,
    BOOKTITLE = {2021 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS)}
}

More Repositories

1

tyro

CLI interfaces & config objects, from types
Python
462
star
2

jaxls

Sparse nonlinear least squares for JAX
Python
168
star
3

tilted

Canonical Factors for Hybrid Neural Fields @ ICCV 2023
Python
101
star
4

dfgo

Differentiable Factor Graph Optimization for Learning Smoothers @ IROS 2021
Python
78
star
5

jax_dataclasses

Pytrees + dataclasses โค๏ธ
Python
59
star
6

tensorf-jax

Unofficial implementation of Tensorial Radiance Fields (Chen & Xu โ€˜22)
Python
38
star
7

pips-jax

JAX port of Persistent Independent Particles
Python
36
star
8

multimodalfilter

Jupyter Notebook
27
star
9

jelly_mechanical

Solidworks files for ME135 quadruped project
21
star
10

jax-ekf

Generic EKF, with support for non-Euclidean manifolds
Python
20
star
11

isort.vim

Async isort plugin for Vim + Neovim
Vim Script
20
star
12

minGPT-flax

GPT implementation in Flax
Python
18
star
13

stl_web_viewer2

Javascript utility for embedding 3D models
JavaScript
12
star
14

sparky_firmware

Firmware for RHex-style robot
C++
9
star
15

brushless_driver

BLDC motor driver design; 48V, 3.5A continuous / 6.5A peak
HTML
7
star
16

dotfilesp

Configuration files & setup scripts
Vim Script
6
star
17

fannypack

Tools for training PyTorch models
Python
5
star
18

jax_cuda_boilerplate

Toy package for custom CUDA kernels + JAX
Python
5
star
19

fifteen

Python
4
star
20

as5047d_breakout

Absolute encoder breakout PCB for prototyping
HTML
3
star
21

drawing_machine_firmware

Firmware + G-code parser for plotter
C
3
star
22

jelly2_mechanical

2
star
23

as5048b_breakout

daisy chainable absolute magnetic encoder
HTML
2
star
24

stl_web_viewer

deprecated in favor of https://github.com/brentyi/stl_web_viewer2
JavaScript
2
star
25

jaxfg

new version: https://github.com/brentyi/jaxls
Python
2
star
26

crossmodal_filtering1

obsolete; see https://github.com/stanford-iprl-lab/torchfilter
Jupyter Notebook
1
star
27

digikey_parser

nodejs package for scraping part information from digikey barcodes
JavaScript
1
star
28

marshmello_web

HTML
1
star
29

opthex

Python
1
star
30

170_proj

Python
1
star
31

keyboard

Mechanical keyboard PCB designs
1
star
32

jax-ldr

(unofficial) Closed-Loop Data Transcription to an LDR via Minimaxing Rate Reduction
Jupyter Notebook
1
star