Software
manif
From github.com/artivis/manif (opens in a new tab)
- Navigation and mapping
- Library
- MIT
manif is a header-only C++11 library, with Python 3 wrappers, for Lie group computations in state estimation for robotics. It supplies Lie groups and their analytic Jacobians.
- Stale. No commit in 12 months: the newest is from 1 Nov 2025.
Facts
- GitHub stars
- 1,828read on 28 Nov 2026
- Last update
- 1 Nov 2025Newest commit on devel
- Maintenance
- Staleno commit in 12 months
- Difficulty
- Advanced
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- MIT (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit 65166b3 (opens in a new tab), on 16 Oct 2026.
- Commercial use
- Yes
At a glance
- What it is
- Provides groups including R(n), SO(2), SE(2), SO(3), SE(3), SE_2(3), SGal(3), and Bundle composite manifolds.
- Offers operations such as inverse, composition, exp, log, adjoint, plus/minus, between, and norms.
- Computes analytic Jacobians for all listed operations, differentiated with respect to local tangent perturbations.
- Uses Cartesian tangent-space representations with a documented element ordering for each group.
- Compatible with the autodiff libraries ceres::Jet, autodiff::Dual and autodiff::Real.
- Recommends reading the accompanying Lie theory paper before using the library.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- MIT. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's website (opens in a new tab)
- Maintenance
- Stale, last commit on 1 Nov 2025.
Use it
How to install it, in the creator's words: The project's website (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/artivis/manif (opens in a new tab)
- The version Robotheca read65166b3 (opens in a new tab)
- Latest releaseRelease 0.0.5 (11 Aug 2024)
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by @artivis, at commit 65166b3, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
manif
A small header-only library for Lie theory
(opens in a new tab) Image: appveyor (opens in a new tab) (opens in a new tab) Image: Documentation (opens in a new tab) (opens in a new tab) (opens in a new tab) Image: JOSS (opens in a new tab) (opens in a new tab)
Package Summary
manif is a Lie theory library for state-estimation targeted at robotics applications. It is developed as a header-only C++11 library with Python 3 wrappers.
At the moment, it provides the groups:
- ℝ(n): Euclidean space with addition.
- SO(2): rotations in the plane.
- SE(2): rigid motion (rotation and translation) in the plane.
- SO(3): rotations in 3D space.
- SE(3): rigid motion (rotation and translation) in 3D space.
- SE_2(3): extended pose (rotation, translation and velocity) in 3D space, introduced (to the best of knowledge) in this paper (opens in a new tab). NOTE: The implementation here differs slightly from the developments in the paper (opens in a new tab).
- SGal(3): The Special Galilean group (rotation, translation, velocity and time) in 3D space, described in these papers [1 (opens in a new tab)] & [2 (opens in a new tab)].
- Bundle<>: allows manipulating a manifold bundle as a single Lie group. Referred to as a composite manifold in Section IV of the reference paper (opens in a new tab).
Other Lie groups can and will be added, contributions are welcome.
manif is based on the mathematical presentation of the Lie theory available in this paper (opens in a new tab). We recommend every user of manif to read the paper (17 pages) before starting to use the library. The paper offers a comprehensive yet accessible introduction to Lie theory, tailored specifically for roboticists. By presenting the material in a simplified manner, it lowers the barrier to entry for those interested in developing rigorous and elegant algorithms for state estimation, control, learning, and possibly more. This approach ensures that even readers without an advanced mathematical background can grasp the foundational concepts and apply them effectively in robotics.
You may also find the following video online, 'Lie theory for the roboticist' (opens in a new tab), a lecture given at IRI-UPC (opens in a new tab).
In a rush? Check out our Lie group cheat sheet (opens in a new tab).
manif provides analytic computation of Jacobians for all the operations listed below.
Details
- Maintainer status: maintained
- Maintainer: Jeremie Deray
- Authors:
- Jeremie Deray deray.jeremie@gmail.com (opens in a new tab)
- Joan Sola jsola@iri.upc.edu (opens in a new tab)
- License: MIT (opens in a new tab)
- Bug / feature tracker: github.com/artivis/manif/issues (opens in a new tab)
- Source: github.com/artivis/manif.git (opens in a new tab) (branch: devel)
Quick Start
Get quickly started with manif following our 'quick start' guides for both C++ (opens in a new tab) and Python (opens in a new tab).
Features
Available Operations
| Operation | Code | |
|---|---|---|
| Base Operation | ||
| Inverse | $\bf\mathcal{X}^{-1}$ | X.inverse() |
| Composition | $\bf\mathcal{X}\circ\bf\mathcal{Y}$ | X * Y |
X.compose(Y) | ||
| Hat | $\boldsymbol\varphi^\wedge$ | w.hat() |
| Act on vector | $\bf\mathcal{X}\circ{\bf v}$ | X.act(v) |
| Retract to group element | $\exp(\boldsymbol\varphi^\wedge)$ | w.exp() |
| Lift to tangent space | $\log(\bf\mathcal{X})^\vee$ | X.log() |
| Manifold Adjoint | $\mathrm{Adj}(\bf\mathcal{X})$ | X.adj() |
| Tangent adjoint | $\mathrm{adj}(\boldsymbol\varphi^\wedge)$ | w.smallAdj() |
| Composed Operation | ||
| Manifold right plus | ${\bf\mathcal{X}}\circ\exp(\boldsymbol\varphi^\wedge)$ | X + w |
X.plus(w) | ||
X.rplus(w) | ||
| Manifold left plus | $\exp(\boldsymbol\varphi^\wedge)\circ\bf\mathcal{X}$ | w + X |
w.plus(X) | ||
w.lplus(X) | ||
| Manifold right minus | $\log(\bf\mathcal{Y}^{-1}\circ\bf\mathcal{X})^\vee$ | X - Y |
X.minus(Y) | ||
X.rminus(Y) | ||
| Manifold left minus | $\log(\bf\mathcal{X}\circ\bf\mathcal{Y}^{-1})^\vee$ | X.lminus(Y) |
| Between | ${\bf\mathcal{X}^{-1}}\circ{\bf\mathcal{Y}}$ | X.between(Y) |
| Inner Product | $\langle\boldsymbol\varphi,\boldsymbol\tau\rangle$ | w.inner(t) |
| Norm | $\left\lVert\boldsymbol\varphi\right\rVert$ | w.weightedNorm() |
w.squaredWeightedNorm() |
Above, ${\bf\mathcal{X}}$ & ${\bf\mathcal{Y}}$ (X & Y) represent group elements,
${\boldsymbol\varphi^\wedge}$ & ${\boldsymbol\tau^\wedge}$ represent elements in the Lie algebra of the Lie group,
${\boldsymbol\varphi}$ & ${\boldsymbol\tau}$ (w & t) represent the same elements of the tangent space
but expressed in Cartesian coordinates in $\mathbb{R}^n$,
and $\mathbf{v}$ (v) represents any element of $\mathbb{R}^n$.
Tangent spaces
manif favors Cartesian representations of the tangent spaces. This means that the tangent elements are regular vectors in $\mathbb{R}^n$, 'n' being the dimension of the Lie group.
The ordering of the elements in such vectors matters to correctly interpret them. It impacts the form of all Jacobian matrices and covariances matrices that will be defined on those tangent spaces.
As a reference, this is the way tangent spaces are defined in manif
| group | dimension | group elements | tangent elements (in order) |
|---|---|---|---|
| Rn | n | $\bf p$ | $\bf p$ |
| SO(2) | 1 | $\bf R$ | $\theta$ |
| SO(3) | 3 | $\bf R$ | $\boldsymbol\theta$ |
| SE(2) | 3 | $\bf p$, $\bf R$ | $\boldsymbol\rho$, $\theta$ |
| SE(3) | 6 | $\bf p$, $\bf R$ | $\boldsymbol\rho$, $\boldsymbol\theta$ |
| SE_2(3) | 9 | $\bf p$, $\bf R$, $\bf v$ | $\boldsymbol\rho$, $\boldsymbol\theta$, $\boldsymbol\nu$ |
| SGal(3) | 10 | $\bf p$, $\bf R$, $\bf v$, $t$ | $\boldsymbol\rho$, $\boldsymbol\nu$, $\boldsymbol\theta$, $s$ |
NOTE: the unfortunate order mismatch between the tangent elements in SE_2(3) and SGal(3).
As an example, in SE_2(3) the tangent vector ${\boldsymbol\tau}$ is defined by
$$ {\boldsymbol\tau} = \begin{bmatrix} {\boldsymbol\rho} \ {\boldsymbol\theta} \ {\boldsymbol\nu} \end{bmatrix} \in \mathbb{R}^9 $$
where $\boldsymbol\rho$, $\boldsymbol\theta$ and $\boldsymbol\nu$ are $\in \mathbb{R}^3$ and typically correspond respectively to changes in position, orientation and velocity.
A covariances matrix $\bf Q$ of an element of SE_2(3) can be block-partitioned as follows
$$ {\bf Q} = \begin{bmatrix} {\bf Q}_ {\boldsymbol\rho\boldsymbol\rho} & {\bf Q}_ {\boldsymbol\rho\boldsymbol\theta} & {\bf Q}_ {\boldsymbol\rho\boldsymbol\nu} \ {\bf Q}_ {\boldsymbol\theta\boldsymbol\rho} & {\bf Q}_ {\boldsymbol\theta\boldsymbol\theta} & {\bf Q}_ {\boldsymbol\theta\boldsymbol\nu} \ {\bf Q}_ {\boldsymbol\nu\boldsymbol\rho} & {\bf Q}_ {\boldsymbol\nu\boldsymbol\theta} & {\bf Q}_ {\boldsymbol\nu\boldsymbol\nu} \end{bmatrix} \in \mathbb{R}^{9\times 9} $$
All blocks ${\bf Q}_{\bf ij}$ are $3\times3$ and ${\bf Q}$ is $9\times9$.
Jacobians
All operations come with their respective analytical Jacobian matrices. Throughout manif, Jacobians are differentiated with respect to a perturbation on the local tangent space. These Jacobians map tangent spaces, as described in this paper (opens in a new tab). Please consider the order of elements in the tangent spaces when manipulating Jacobians.
Currently, manif implements the right Jacobian, whose definition reads:
$$ \frac{\delta f(\bf\mathcal{X})}{\delta\bf\mathcal{X}}\triangleq \lim_{\boldsymbol\varphi\to\bf0}\frac{f(\bf\mathcal{X}\oplus\boldsymbol\varphi)\ominus f(\bf\mathcal{X})}{\boldsymbol\varphi}\triangleq \lim_{\boldsymbol\varphi\to\bf0}\frac{\log(f({\bf\mathcal{X}})^{-1} f({\bf\mathcal{X}}\exp(\boldsymbol\varphi^\wedge)))^\vee}{\boldsymbol\varphi} $$
The Jacobians of any of the aforementioned operations can then be evaluated:
in C++,
SE3d X = SE3d::Random();
SE3Tangentd w = SE3Tangentd::Random();
SE3d::Jacobian J_o_x, J_o_w;
auto X_plus_w = X.plus(w, J_o_x, J_o_w);
in Python,
X = SE3.Random()
w = SE3Tangentd.Random()
J_o_x = np.zeros((SE3.DoF, SE3.DoF))
J_o_w = np.zeros((SE3.DoF, SE3.DoF))
X_plus_w = X.plus(w, J_o_x, J_o_w)
Note
While Jacobians in manif are differentiated with respect to a
local perturbation on the tangent space, many non-linear solvers
(e.g. Ceres (opens in a new tab)) expect functions to be differentiated with respect to
the underlying representation vector of the group element
(e.g. with respect to quaternion vector for SO3).
For this reason, manif is compliant with the auto-differentiation libraries
ceres::Jet (opens in a new tab), autodiff::Dual (opens in a new tab) & autodiff::Real (opens in a new tab).
Documentation
The documentation is available online at the accompanying website (opens in a new tab). Both the C++ (opens in a new tab) and the Python (opens in a new tab) APIs are documented.
Do you want to build it locally? Find out how on the dedicated page (opens in a new tab).
Note: throughout the code documentation we refer to 'the paper' which you can find on the dedicated page (opens in a new tab).
Tutorials and application demos
We provide some self-contained and self-explained C++ examples (opens in a new tab) to help you get started.
You prefer Python? The same examples are also available in Python (opens in a new tab).
Publications
Check out our related publications (opens in a new tab) and how to cite them.
They use manif
Find out who's already using manif (opens in a new tab).
Contributing
Want to contribute? Great! Check out our contribution guidelines (opens in a new tab).
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.