Graph SLAM solver in Python
Project description
Documentation for this package can be found at https://python-graphslam.readthedocs.io/.
This package implements a Graph SLAM solver in Python.
Features
Optimize R^2, R^3, SE(2), and SE(3) datasets
Analytic Jacobians
Supports odometry edges
Load SE(2) and SE(3) datasets from .g2o files
Installation
pip install graphslam
Example Usage
SE(3) Dataset
>>> from graphslam.load import load_g2o_se3
>>> g = load_g2o_se3("parking-garage.g2o")
>>> g.calc_chi2()
16720.020602489112
>>> g.optimize()
Output:
Iteration chi^2 rel. change --------- ----- ----------- 0 16720.0206 1 26.5495 -0.998412 2 1.2712 -0.952119 3 1.2402 -0.024439 4 1.2396 -0.000456 5 1.2395 -0.000091
SE(2) Dataset
>>> from graphslam.load import load_g2o_se2
>>> g = load_g2o_se2("input_INTEL.g2o") # https://lucacarlone.mit.edu/datasets/
>>> g.calc_chi2()
7191686.382493544
>>> g.optimize()
Output:
Iteration chi^2 rel. change --------- ----- ----------- 0 7191686.3825 1 319915276.1284 43.484042 2 124894535.1749 -0.609601 3 338185.8171 -0.997292 4 734.5142 -0.997828 5 215.8405 -0.706145 6 215.8405 -0.000000
References and Links
Live Coding Graph SLAM in Python
If you’re interested, you can watch as I coded this up.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
graphslam-0.0.3.tar.gz
(11.7 kB
view hashes)
Built Distribution
graphslam-0.0.3-py3-none-any.whl
(18.6 kB
view hashes)
Close
Hashes for graphslam-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c805b0cd5363d7a1328f2890f054ac40cf811ac08cff5adfd81cb2bb1de7161b |
|
MD5 | 59bc6c74297599a8ff90b87b1aa15148 |
|
BLAKE2b-256 | 0162fa16930e443a003f6962906475ff76c6d85f344553088d0cc64075b7ab5c |