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.post202608040355

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.post202608040355
File
gtsam_extended-4.3a1.post202608040355-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
gtsam_extended-4.3a1.post202608040355-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.27+ ARM64, Linux glibc 2.28+ ARM64 Details
gtsam_extended-4.3a1.post202608040355-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.post202608040355-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
gtsam_extended-4.3a1.post202608040355-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.27+ ARM64, Linux glibc 2.28+ ARM64 Details
gtsam_extended-4.3a1.post202608040355-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.post202608040355-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
gtsam_extended-4.3a1.post202608040355-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.27+ ARM64, Linux glibc 2.28+ ARM64 Details
gtsam_extended-4.3a1.post202608040355-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.post202608040355-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.post202608040355-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.post202608040355-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.post202608040355-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.post202608040355-cp310-cp310-macosx_14_0_arm64.whl CPython 3.10 CPython 3.10 macOS 14.0+ ARM64 Details

Total release size: 487.2 MB

Release files / gtsam_extended-4.3a1.post202608040355-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL gtsam_extended-4.3a1.post202608040355-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 32.3 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b5ba48467b0c4d3e3f873fa0a41812dcd3c103cd2a3cabaaae89cc03202f8a40
BLAKE2b-256 checksum
How to use checksums
e2b954155244b44ad06a9e935b2a17a55dc4998d1b85be657d58d0df60f1d705
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.post202608040355-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL gtsam_extended-4.3a1.post202608040355-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Size 31.0 MB
Tags CPython 3.14 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
02a1f6543f1d9da05854a46ff6fa4e63effabe352b41629197ac384e03842f4e
BLAKE2b-256 checksum
How to use checksums
cf2fb6b28ba1267b61609c10edab6a94d9a33d8788f6f544bf0ecedb16f4dd01
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.post202608040355-cp314-cp314-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202608040355-cp314-cp314-macosx_10_15_universal2.whl
Size 43.8 MB
Tags CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
6ac7c9226d8681f1ce484d531a814cefd7d3c74f25d1f2ab0be8690711c6e142
BLAKE2b-256 checksum
How to use checksums
0e27bb069d52d7dd8d5e218cd47b09260a5badb4ad9150c8be6efa0047dac574
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.post202608040355-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL gtsam_extended-4.3a1.post202608040355-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 32.3 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
15c1420f904b16b80ec09ccff6f88e4ecfb5bef9076e2a9471d7ae2e3bde9d16
BLAKE2b-256 checksum
How to use checksums
13954817351f107dd250821910a12be6c5115d0b3d71e1c9101f4fa89974fd08
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.post202608040355-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL gtsam_extended-4.3a1.post202608040355-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Size 31.0 MB
Tags CPython 3.13 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
16e9bee8bd2ba11f84d8b7f26dab30d0a9eba723c540e8f870dc74963ff0fb63
BLAKE2b-256 checksum
How to use checksums
b8de496b43e0253c00660d8cfa0bf0347f311f246dab90e656ad2dafdb2917e8
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.post202608040355-cp313-cp313-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202608040355-cp313-cp313-macosx_10_15_universal2.whl
Size 43.8 MB
Tags CPython 3.13 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
0d8c12f83661ee7c72367abcb90b3b9f862f10b1ed6b5dbd26badc615f2dc465
BLAKE2b-256 checksum
How to use checksums
cda25cfaadd399f100747886b2179d07a1c32793681b167245416116fc27ce85
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.post202608040355-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL gtsam_extended-4.3a1.post202608040355-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 32.3 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c45aecf0f70d4b6874feae676f2b508d32a4da3331e06c6e2b4106a4972b43a6
BLAKE2b-256 checksum
How to use checksums
9842bdcdb6eb284052eb892f733ba91f700f7eb4926a13a813a82046bf220faa
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.post202608040355-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL gtsam_extended-4.3a1.post202608040355-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Size 31.0 MB
Tags CPython 3.12 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
2fe1ca21f7359f116f979945058cfea4022f2442fe42b6c82554519e1fe78d50
BLAKE2b-256 checksum
How to use checksums
b76a325c0695b96d9dc95243cbc4ee300feea40899460bfd83468cd2370ba069
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.post202608040355-cp312-cp312-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202608040355-cp312-cp312-macosx_10_15_universal2.whl
Size 43.8 MB
Tags CPython 3.12 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
e8bc7a62f7f5914a34e2cede1f64413e93606683dab08663c54ddeafb51bea2a
BLAKE2b-256 checksum
How to use checksums
3ffcb114e3e6d797aee47dd915cc93e264a67fca96b5458b8a9406e7380224e8
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.post202608040355-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL gtsam_extended-4.3a1.post202608040355-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 32.3 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
df3d87e8fbf24cef533a0627c47fbf599ada2692a059f3a8b58158b903eb2d6b
BLAKE2b-256 checksum
How to use checksums
5cbc54ce7b0ce438adde593d795d3e384fc954f8b89f5d5db6281ffd94952267
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.post202608040355-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gtsam_extended-4.3a1.post202608040355-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 30.8 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
2cfddd9395c596fa360e5c03f718124dd4843d53b1b28597ed930bcf40c137e2
BLAKE2b-256 checksum
How to use checksums
c9649edadc061ebf2e640e430a33ce549b3553eb067d505bb7e11d09f4078a44
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.post202608040355-cp311-cp311-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202608040355-cp311-cp311-macosx_10_15_universal2.whl
Size 43.6 MB
Tags CPython 3.11 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
13cc6f0f70585e4fe2dd6a9f7e1fedd569aa6b2a20ee0051d06e8fbf2c652c70
BLAKE2b-256 checksum
How to use checksums
03575267a372c811552ef6cf4bf575ef0d460155de9b05e3c46c809f5a16c00a
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.post202608040355-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL gtsam_extended-4.3a1.post202608040355-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 30.8 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
e8d9bac68c4d9b982de05f872714df996f2608e3fba4b260b329e71353f13d73
BLAKE2b-256 checksum
How to use checksums
dd11f22b30c06b91bba1cb5b44ef1602fa669297774a5d1e5e029f8b9e1cba35
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.post202608040355-cp310-cp310-macosx_14_0_arm64.whl

Download URL gtsam_extended-4.3a1.post202608040355-cp310-cp310-macosx_14_0_arm64.whl
Size 28.3 MB
Tags CPython 3.10 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
42d756b1668c5e10ca05726648c132e99b5fc1ba3d96e42b840c6e67170cff4a
BLAKE2b-256 checksum
How to use checksums
422fb4bd1d5a92e816e9980f6b21370a7c4d77bb502f620101e7ffc5e27e0c86
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