Skip to main content

Georgia Tech Smoothing And Mapping library

Project description

GTSAM: Georgia Tech Smoothing and Mapping Library

C++ API Docs

Important Note

The develop branch is officially in "Pre 4.3" mode. We envision several API-breaking changes as we switch to C++17 and away from boost.

In addition, features deprecated in 4.2 will be removed. Please use the stable 4.2 release if you need those features. However, most are easily converted and can be tracked down (in 4.2) by disabling the cmake flag GTSAM_ALLOW_DEPRECATED_SINCE_V42.

What is GTSAM?

GTSAM is a C++ library that implements smoothing and mapping (SAM) in robotics and vision, using Factor Graphs and Bayes Networks as the underlying computing paradigm rather than sparse matrices.

CI Status Platform Compiler
Python CI Ubuntu 22.04, MacOS 13-14, Windows gcc/clang,MSVC
vcpkg Latest Windows/Ubuntu/Mac -
Build Wheels for Develop See pypi files; no Windows -

On top of the C++ library, GTSAM includes wrappers for MATLAB & Python.

Documentation

Quickstart

In the root library folder execute:

#!bash
mkdir build
cd build
cmake ..
make check  # optional, runs all unit tests
make install

Prerequisites:

  • A modern compiler:
    • Mac: at least xcode-14.2
    • Linux: at least clang-11 or gcc-9
    • Windows: at least msvc-14.2
  • CMake >= 3.9
    • Ubuntu: sudo apt-get install cmake

Optional Boost prerequisite:

Boost is now optional. Two cmake flags govern its behavior:

  • GTSAM_USE_BOOST_FEATURES = ON|OFF: some of our timers and concept checking in the tests still depend on boost.
  • GTSAM_ENABLE_BOOST_SERIALIZATION = ON|OFF: serialization of factor graphs, factors, etc still is done using boost

If one or both of these flags are ON, you need to install Boost >= 1.70 - Mac: brew install boost - Ubuntu: sudo apt-get install libboost-all-dev - Windows: We highly recommend using the vcpkg package manager. For other installation methods or troubleshooting, please see the guidance in the cmake/HandleBoost.cmake script.

Optional prerequisites - used automatically if findable by CMake:

GTSAM 4 Compatibility

GTSAM 4 introduces several new features, most notably Expressions and a Python toolbox. It also introduces traits, a C++ technique that allows optimizing with non-GTSAM types. That opens the door to retiring geometric types such as Point2 and Point3 to pure Eigen types, which we also do. A significant change which will not trigger a compile error is that zero-initializing of Point2 and Point3 is deprecated, so please be aware that this might render functions using their default constructor incorrect.

There is a flag GTSAM_ALLOW_DEPRECATED_SINCE_V43 for newly deprecated methods since the 4.3 release, which is on by default, allowing anyone to just pull version 4.3 and compile.

Wrappers

We provide support for MATLAB and Python wrappers for GTSAM. Please refer to the linked documents for more details.

Citation

If you are using GTSAM for academic work, please use the following citation:

@software{gtsam,
  author       = {Frank Dellaert and GTSAM Contributors},
  title        = {borglab/gtsam},
  month        = May,
  year         = 2022,
  publisher    = {Georgia Tech Borg Lab},
  version      = {4.2a8},
  doi          = {10.5281/zenodo.5794541},
  url          = {https://github.com/borglab/gtsam)}}
}

To cite the Factor Graphs for Robot Perception book, please use:

@book{factor_graphs_for_robot_perception,
    author={Frank Dellaert and Michael Kaess},
    year={2017},
    title={Factor Graphs for Robot Perception},
    publisher={Foundations and Trends in Robotics, Vol. 6},
    url={http://www.cs.cmu.edu/~kaess/pub/Dellaert17fnt.pdf}
}

If you are using the IMU preintegration scheme, please cite:

@book{imu_preintegration,
    author={Christian Forster and Luca Carlone and Frank Dellaert and Davide Scaramuzza},
    title={IMU preintegration on Manifold for Efficient Visual-Inertial Maximum-a-Posteriori Estimation},
    year={2015}
}

The Preintegrated IMU Factor

GTSAM includes a state of the art IMU handling scheme based on

  • Todd Lupton and Salah Sukkarieh, "Visual-Inertial-Aided Navigation for High-Dynamic Motion in Built Environments Without Initial Conditions", TRO, 28(1):61-76, 2012. [link]

Our implementation improves on this using integration on the manifold, as detailed in

  • Luca Carlone, Zsolt Kira, Chris Beall, Vadim Indelman, and Frank Dellaert, "Eliminating conditionally independent sets in factor graphs: a unifying perspective based on smart factors", Int. Conf. on Robotics and Automation (ICRA), 2014. [link]
  • Christian Forster, Luca Carlone, Frank Dellaert, and Davide Scaramuzza, "IMU Preintegration on Manifold for Efficient Visual-Inertial Maximum-a-Posteriori Estimation", Robotics: Science and Systems (RSS), 2015. [link]

If you are using the factor in academic work, please cite the publications above.

In GTSAM 4 a new and more efficient implementation, based on integrating on the NavState tangent space and detailed in this document, is enabled by default. To switch to the RSS 2015 version, set the flag GTSAM_TANGENT_PREINTEGRATION to OFF.

Additional Information

There is a GTSAM users Google group for general discussion.

Read about important GTSAM-Concepts here. A primer on GTSAM Expressions, which support (superfast) automatic differentiation, can be found on the GTSAM wiki on BitBucket.

See the INSTALL file for more detailed installation instructions. Our CI/CD process is detailed in workflows.md.

GTSAM is open source under the BSD license, see the LICENSE and LICENSE.BSD files.

Please see the examples/ directory and the USAGE file for examples on how to use GTSAM.

GTSAM was developed in the lab of Frank Dellaert at the Georgia Institute of Technology, with the help of many contributors over the years, see THANKS.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gtsam_extended-4.3a1.post1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (30.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

gtsam_extended-4.3a1.post1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (29.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

gtsam_extended-4.3a1.post1-cp314-cp314-macosx_10_15_universal2.whl (41.2 MB view details)

Uploaded CPython 3.14macOS 10.15+ universal2 (ARM64, x86-64)

gtsam_extended-4.3a1.post1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (30.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

gtsam_extended-4.3a1.post1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (29.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

gtsam_extended-4.3a1.post1-cp313-cp313-macosx_10_15_universal2.whl (41.2 MB view details)

Uploaded CPython 3.13macOS 10.15+ universal2 (ARM64, x86-64)

gtsam_extended-4.3a1.post1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (30.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

gtsam_extended-4.3a1.post1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (29.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

gtsam_extended-4.3a1.post1-cp312-cp312-macosx_14_0_arm64.whl (26.7 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

gtsam_extended-4.3a1.post1-cp312-cp312-macosx_10_15_universal2.whl (41.2 MB view details)

Uploaded CPython 3.12macOS 10.15+ universal2 (ARM64, x86-64)

gtsam_extended-4.3a1.post1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (30.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

gtsam_extended-4.3a1.post1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (29.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

gtsam_extended-4.3a1.post1-cp311-cp311-macosx_10_15_universal2.whl (41.0 MB view details)

Uploaded CPython 3.11macOS 10.15+ universal2 (ARM64, x86-64)

gtsam_extended-4.3a1.post1-cp310-cp310-macosx_14_0_arm64.whl (26.7 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

Details for the file gtsam_extended-4.3a1.post1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 843b4ab9ed1b4bc77eb2e3066d9be76d412f88b7659cebcf1b6074844b7b482f
MD5 b57e5fac3c1be79cfc60796a3378c1c2
BLAKE2b-256 78ef9381669e6164520a2173d92e41522461a1133937205d318c4782973266da

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 0dccf1bdcb81604b6c032d717810a2fecd8fccfc27cfebdcf0dfb94c2955bf51
MD5 37a99176567d8bf481c3c0c22aa1424c
BLAKE2b-256 a021b5a51843c0a51a4f83f5f32780525947bfac829c1b9f0159d19b9cd43c5f

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post1-cp314-cp314-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post1-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 deb2d5301a84f03fdc32b43ab1adefe652e6b2a7fc3c739149f87c6f4e999968
MD5 8a6c9b51f1124ecef237bb58ee690c6e
BLAKE2b-256 0d545a470f80543b1a87ac4ad2c0493bfcb5aff5f78cc808f5d6c0c6e4c09bd2

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 37b2cb130cb73a6d33f59596dfa52484668867a30220715bdb87e449ea185e86
MD5 61e78b2e60b6a8387877da55b0f9798c
BLAKE2b-256 7cf878fd2f3375b3be2e9c5e42480075645ed56d5a465775bf31d799655b8d9e

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 e3ed478cad77869d6205ef518b025b0d5c76d02c0fdf86849e785fe1e8bb0c00
MD5 c5f9a1d42615b4e6d65280475f5654d4
BLAKE2b-256 b43116012c0c8829a686f6969f0ad0f132c2920c6b8ea6d585128b2a9a60e3e9

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post1-cp313-cp313-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post1-cp313-cp313-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 2f5e1a40071a2b117aa2fc85a13a4ef60705d04793d857da7dd76bbf36e64851
MD5 a6ae241bd1116d19fd9e077d4d1e8357
BLAKE2b-256 24def965ab85ac298810aebbf5e933b91b290feba68bf93ea7cdba230f23c9d6

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 b8f267f3d15a155bd513c0e1d0b4aaaf391df654ed38063887cb4c8e4d6b54e8
MD5 45bd08530045ea368c708fefe12f4144
BLAKE2b-256 20eac867ef50a58978f31e9808e7511cd6e37b286f003b7ef6a43857e04bf8e6

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 acd84ad1ad9c042c8f1669c9f5fc684aad999ffd32f8ff963892d993bc5b9d38
MD5 8cc80b91a7f1aa35917eebc87b14775b
BLAKE2b-256 908bb065667145e8e8bda8b6ab208621f48a2973d62a0cf643f95b2c3f0f9c33

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post1-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post1-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 124f5c9cab5c22bb86534e5e95b6b26cb8894f89cdb25459702354365be305e6
MD5 9a03e6f79fdf4e48b11d99724c7eec48
BLAKE2b-256 be152be4185a25f5fe58f88485f47f2aa7d83082388ee989517fdbe97324aa26

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post1-cp312-cp312-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post1-cp312-cp312-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 96cfd7325098d21b01d832306f0cdfb5fcc90df74424f58b1906cda68a3a544a
MD5 cd07e4b3a98c1dc168de9e4031ab0795
BLAKE2b-256 f8d74215cb63394c8609892b42492e43ac9781e6ba1164833aac5b691afb6008

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 959e8098b9898904fc8d975ad70de36fb9ec876b0ced37ac82a25dade94b1cbf
MD5 1be6c4dcef43dc258b6384fd30ffa457
BLAKE2b-256 ad00d85dc96bc84b7ecfdffef1d3f6d4262ce0f8d546fe4096f27ef439bac493

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 8f6e5c2b0da7b8ee0455e5360274e88f769306a67b548fa822c6131250f23d88
MD5 351d31c982a29959866f3bfaa7f41d44
BLAKE2b-256 c518c37e2e1f9b7371b2c6464b302f32576a6127ce4ff996d9e13e1a88ec3f33

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post1-cp311-cp311-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post1-cp311-cp311-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 f9cafd219b2870af708a27166880f6a76ad37977a2203957cfa71f745596cc86
MD5 0192210547a247ff7770a0d77d311a91
BLAKE2b-256 27dbbe9ed707f594532538232a6b04b88424777e30c7c34aba3ee3006e6989e4

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post1-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post1-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 20291cdf65ae8b97abd0dc3f9d62cbeec6a76144f9f796044cccc3ffacbaae13
MD5 04cca3f9afb9780c434b76aa30426054
BLAKE2b-256 7fa3f815f6768994d1cd11f76cfa094be1d50c84edf1d85908fa93b461bb2eaf

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