Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Metadata

Release files for gtsam-extended 4.3a1.post202606262021

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for gtsam-extended 4.3a1.post202606262021
File
gtsam_extended-4.3a1.post202606262021-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details
gtsam_extended-4.3a1.post202606262021-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ ARM64 Details
gtsam_extended-4.3a1.post202606262021-cp314-cp314-macosx_10_15_universal2.whl CPython 3.14 CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64) Details
gtsam_extended-4.3a1.post202606262021-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
gtsam_extended-4.3a1.post202606262021-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ ARM64 Details
gtsam_extended-4.3a1.post202606262021-cp313-cp313-macosx_10_15_universal2.whl CPython 3.13 CPython 3.13 macOS 10.15+ universal2 (ARM64, x86-64) Details
gtsam_extended-4.3a1.post202606262021-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
gtsam_extended-4.3a1.post202606262021-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details
gtsam_extended-4.3a1.post202606262021-cp312-cp312-macosx_10_15_universal2.whl CPython 3.12 CPython 3.12 macOS 10.15+ universal2 (ARM64, x86-64) Details
gtsam_extended-4.3a1.post202606262021-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
gtsam_extended-4.3a1.post202606262021-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details
gtsam_extended-4.3a1.post202606262021-cp311-cp311-macosx_10_15_universal2.whl CPython 3.11 CPython 3.11 macOS 10.15+ universal2 (ARM64, x86-64) Details
gtsam_extended-4.3a1.post202606262021-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details
gtsam_extended-4.3a1.post202606262021-cp310-cp310-macosx_14_0_arm64.whl CPython 3.10 CPython 3.10 macOS 14.0+ ARM64 Details

Total release size: 481.6 MB

Release files / gtsam_extended-4.3a1.post202606262021-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL gtsam_extended-4.3a1.post202606262021-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 32.0 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a905627fc9c410c62e7919e5b25e40408343f6685d6b8fa7cf8cb06a65885f42
BLAKE2b-256 checksum
How to use checksums
fcf01061b116e26df3bd0269bf152dc897ac0032250c9080de4ae71d347682c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / gtsam_extended-4.3a1.post202606262021-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606262021-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 30.5 MB
Tags CPython 3.14 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
d942037cab39cb6f31c1959aea012cf0b9c77b196a58402eb271a13d705cbae3
BLAKE2b-256 checksum
How to use checksums
eb96cb140200a727c0c8ad12a2e6d30f46281c28c9138d6ec40654b44449945c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / gtsam_extended-4.3a1.post202606262021-cp314-cp314-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202606262021-cp314-cp314-macosx_10_15_universal2.whl
Size 43.3 MB
Tags CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
5fc92c2d08f372d681f22973eed096941cc8cbac56f55f6688d814c7b413cae0
BLAKE2b-256 checksum
How to use checksums
21c25e17734db4ba0a34a39a377f4342f76c36f4b3142266814cb325e4534b63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / gtsam_extended-4.3a1.post202606262021-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL gtsam_extended-4.3a1.post202606262021-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 32.0 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
c9851cc5a15fdd4d58cb282afe201417e3a1a23d8b827f9ec397c5df4b045b1c
BLAKE2b-256 checksum
How to use checksums
3fed95d5103b14306a060bf603016984ee5d88748def4cfa470802ff2bb03127
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / gtsam_extended-4.3a1.post202606262021-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606262021-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 30.5 MB
Tags CPython 3.13 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
4785fafc61eeee2d22c7dd26effdba0ed4b2f2d25b86f3b0eba69ccd54ea71b2
BLAKE2b-256 checksum
How to use checksums
927ea22e626cd7163911cda9fe50ca3706336c1fb6d8e55569fbc3c149deb11e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / gtsam_extended-4.3a1.post202606262021-cp313-cp313-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202606262021-cp313-cp313-macosx_10_15_universal2.whl
Size 43.2 MB
Tags CPython 3.13 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
fac8b852848694647f7c17fbd54a70c43399f7b474fd5dd8d9aa735ec0cfdd9a
BLAKE2b-256 checksum
How to use checksums
d84bc93ccc68ab6c6088fab43fbde8537d33cda7b32de6c7977a80cf66e690bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / gtsam_extended-4.3a1.post202606262021-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL gtsam_extended-4.3a1.post202606262021-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 32.0 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
cf25f0101c44628ed73b651ff48ce6c7270d05026e1b848dd4366a7784d12adc
BLAKE2b-256 checksum
How to use checksums
128401ad2d53544858add3cbf7fc22f4b2526342ed5d6aa7d262eb7ab8a451ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / gtsam_extended-4.3a1.post202606262021-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606262021-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 30.5 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
937cc6a0d103b841919de7f5a8d64b30003d27947d3889eb4132179ad93f0955
BLAKE2b-256 checksum
How to use checksums
1b3b08ea28c77a7958b4003adc31ffd5526718d0b0126ccad0e0ba19ac40bf7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / gtsam_extended-4.3a1.post202606262021-cp312-cp312-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202606262021-cp312-cp312-macosx_10_15_universal2.whl
Size 43.3 MB
Tags CPython 3.12 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
a5f5c69d431cc819a8fdc581fbe511e57f77c70ba4dd7bf6f822bec4c6d55924
BLAKE2b-256 checksum
How to use checksums
c94cad0ff2a3a7f7110fe87b9356220dde556c6942f9858903b0818c8dc83ac3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / gtsam_extended-4.3a1.post202606262021-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL gtsam_extended-4.3a1.post202606262021-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 32.0 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
eafd60b20a37cee672acaf5af57b4b4f8f3b68d748a1fde55f8be8ab492d54dc
BLAKE2b-256 checksum
How to use checksums
81ae0be346da109219187b6bf26a0842d92e6cf2bc25df2d8fa2862de0663c9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / gtsam_extended-4.3a1.post202606262021-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606262021-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 30.5 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
521f94e7bf3087b893111b1cb10d2183e81bbac0801f0b44172111b39af51dbd
BLAKE2b-256 checksum
How to use checksums
2b01ede2e6a4ffa5b9c51735a11d91317c28fb18d2b146ad0c3ffd1eb2c4734c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / gtsam_extended-4.3a1.post202606262021-cp311-cp311-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202606262021-cp311-cp311-macosx_10_15_universal2.whl
Size 43.0 MB
Tags CPython 3.11 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
883727c182336504c080c6095ca1ba2786e4066b22e8fc88355fefe5cc02f577
BLAKE2b-256 checksum
How to use checksums
315d2f281f279abe578ab4e4d698adf6a357ca8926e4713c6b99ad2cfea6a226
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / gtsam_extended-4.3a1.post202606262021-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606262021-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 30.5 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
290b5446eeb29afcc4da94846c6dfffe5c12e136ab026d0fdc66813650954211
BLAKE2b-256 checksum
How to use checksums
9aa34d6990f498261f41013d149537fad46c88d0ab24b6d8323584216e736642
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / gtsam_extended-4.3a1.post202606262021-cp310-cp310-macosx_14_0_arm64.whl

Download URL gtsam_extended-4.3a1.post202606262021-cp310-cp310-macosx_14_0_arm64.whl
Size 28.1 MB
Tags CPython 3.10 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
b49fa8b13265ba4c2e4506098f019f0301577b82143b8d8fa3269af9ac4a6931
BLAKE2b-256 checksum
How to use checksums
491b4055037d97d9b0d302f49cd9324d374decf308fa1a33ccddcc6c530bc984
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page