Skip to main content

Georgia Tech Smoothing And Mapping library

Project description

GTSAM: Georgia Tech Smoothing and Mapping Library

C++ API Docs

GTSAM is a manifold optimization library

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.16
    • 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.post202606262021-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (32.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

gtsam_extended-4.3a1.post202606262021-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (30.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

gtsam_extended-4.3a1.post202606262021-cp314-cp314-macosx_10_15_universal2.whl (43.3 MB view details)

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

gtsam_extended-4.3a1.post202606262021-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (32.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

gtsam_extended-4.3a1.post202606262021-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (30.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

gtsam_extended-4.3a1.post202606262021-cp313-cp313-macosx_10_15_universal2.whl (43.2 MB view details)

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

gtsam_extended-4.3a1.post202606262021-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (32.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

gtsam_extended-4.3a1.post202606262021-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (30.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

gtsam_extended-4.3a1.post202606262021-cp312-cp312-macosx_10_15_universal2.whl (43.3 MB view details)

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

gtsam_extended-4.3a1.post202606262021-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (32.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

gtsam_extended-4.3a1.post202606262021-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (30.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

gtsam_extended-4.3a1.post202606262021-cp311-cp311-macosx_10_15_universal2.whl (43.0 MB view details)

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

gtsam_extended-4.3a1.post202606262021-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (30.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

gtsam_extended-4.3a1.post202606262021-cp310-cp310-macosx_14_0_arm64.whl (28.1 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606262021-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 a905627fc9c410c62e7919e5b25e40408343f6685d6b8fa7cf8cb06a65885f42
MD5 fc3b8229b895f0341dec13a9f04b0dac
BLAKE2b-256 fcf01061b116e26df3bd0269bf152dc897ac0032250c9080de4ae71d347682c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606262021-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 d942037cab39cb6f31c1959aea012cf0b9c77b196a58402eb271a13d705cbae3
MD5 196216fdea28ef9dfff4c5a00bc386f9
BLAKE2b-256 eb96cb140200a727c0c8ad12a2e6d30f46281c28c9138d6ec40654b44449945c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606262021-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 5fc92c2d08f372d681f22973eed096941cc8cbac56f55f6688d814c7b413cae0
MD5 79d45927884c261c7f031d81efa63a81
BLAKE2b-256 21c25e17734db4ba0a34a39a377f4342f76c36f4b3142266814cb325e4534b63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606262021-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c9851cc5a15fdd4d58cb282afe201417e3a1a23d8b827f9ec397c5df4b045b1c
MD5 8afa9c637f98ac1387b72a3da8f25605
BLAKE2b-256 3fed95d5103b14306a060bf603016984ee5d88748def4cfa470802ff2bb03127

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606262021-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 4785fafc61eeee2d22c7dd26effdba0ed4b2f2d25b86f3b0eba69ccd54ea71b2
MD5 901ae3075d761d694e501ec0f5d725fd
BLAKE2b-256 927ea22e626cd7163911cda9fe50ca3706336c1fb6d8e55569fbc3c149deb11e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606262021-cp313-cp313-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 fac8b852848694647f7c17fbd54a70c43399f7b474fd5dd8d9aa735ec0cfdd9a
MD5 75c8910ca6afdda4145fb492b91ad6ac
BLAKE2b-256 d84bc93ccc68ab6c6088fab43fbde8537d33cda7b32de6c7977a80cf66e690bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606262021-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 cf25f0101c44628ed73b651ff48ce6c7270d05026e1b848dd4366a7784d12adc
MD5 ba478399100b7fc7962c147555fd8ef7
BLAKE2b-256 128401ad2d53544858add3cbf7fc22f4b2526342ed5d6aa7d262eb7ab8a451ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606262021-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 937cc6a0d103b841919de7f5a8d64b30003d27947d3889eb4132179ad93f0955
MD5 7750a909cb6d458eb0f405688f04077d
BLAKE2b-256 1b3b08ea28c77a7958b4003adc31ffd5526718d0b0126ccad0e0ba19ac40bf7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606262021-cp312-cp312-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 a5f5c69d431cc819a8fdc581fbe511e57f77c70ba4dd7bf6f822bec4c6d55924
MD5 46b745135dbbb42f4f21399997a35288
BLAKE2b-256 c94cad0ff2a3a7f7110fe87b9356220dde556c6942f9858903b0818c8dc83ac3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606262021-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 eafd60b20a37cee672acaf5af57b4b4f8f3b68d748a1fde55f8be8ab492d54dc
MD5 2be5819b48824a00bfdaf1b861ffc7b3
BLAKE2b-256 81ae0be346da109219187b6bf26a0842d92e6cf2bc25df2d8fa2862de0663c9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606262021-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 521f94e7bf3087b893111b1cb10d2183e81bbac0801f0b44172111b39af51dbd
MD5 4aa16d606fe7a987af284535d6818ca0
BLAKE2b-256 2b01ede2e6a4ffa5b9c51735a11d91317c28fb18d2b146ad0c3ffd1eb2c4734c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606262021-cp311-cp311-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 883727c182336504c080c6095ca1ba2786e4066b22e8fc88355fefe5cc02f577
MD5 ee2047f44245dcd21ff81171cdfd3b64
BLAKE2b-256 315d2f281f279abe578ab4e4d698adf6a357ca8926e4713c6b99ad2cfea6a226

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post202606262021-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606262021-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 290b5446eeb29afcc4da94846c6dfffe5c12e136ab026d0fdc66813650954211
MD5 9f3eb1277edeb439db5f09700d163dd9
BLAKE2b-256 9aa34d6990f498261f41013d149537fad46c88d0ab24b6d8323584216e736642

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606262021-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b49fa8b13265ba4c2e4506098f019f0301577b82143b8d8fa3269af9ac4a6931
MD5 316c41ff572a0a96a1182faa5f006a52
BLAKE2b-256 491b4055037d97d9b0d302f49cd9324d374decf308fa1a33ccddcc6c530bc984

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