Getting started in Python3

manif provides Python3 bindings, called manifpy, allowing to prototype and develop directly in Python3.

Installation

From conda

manifpy can be installed directly from conda-forge:

conda install -c conda-forge manifpy

From source

The Python3 wrappers are generated using pybind11. So first, we need to install it, however it must be available directly in the environment root so that CMake can find it.

To do so use:

python3 -m pip install "pybind11[global]"

Prior to installing manifpy, we have to install its main dependency Eigen3:

apt-get install libeigen3-dev
brew install eigen

Next, clone the repository locally if you haven’t done so already:

git clone https://github.com/artivis/manif.git
cd manif

To buid and install manif, use the following commands:

python3 -m pip install .

Use manif in a project

from manifpy import SE3

...

state = SE3.Identity()

...

From there, have a look at the howtos for further informations as well as the examples to find several self-contained and self-explained examples implementing some real problems.