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

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.post202606301215
File
gtsam_extended-4.3a1.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-cp310-cp310-macosx_14_0_arm64.whl CPython 3.10 CPython 3.10 macOS 14.0+ ARM64 Details

Total release size: 482.4 MB

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

Download URL gtsam_extended-4.3a1.post202606301215-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
1f4b7209440e044e7d3a3f94266fa226b22a0263a797f193b15f0c4f3f5da0ac
BLAKE2b-256 checksum
How to use checksums
e786dc7e273a2a728e55c257b44bb6d739ab709e6680f2a679ddd26d34f7f682
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.post202606301215-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606301215-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 30.6 MB
Tags CPython 3.14 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
7a52ca87ba866232995c3b03fb41fea62af46909c3201fc165bce3413ef20d42
BLAKE2b-256 checksum
How to use checksums
86bbab1e414e6f5d88c6b626397b18b80084ba1253569ab4e7d52af19139da31
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.post202606301215-cp314-cp314-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202606301215-cp314-cp314-macosx_10_15_universal2.whl
Size 43.4 MB
Tags CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
e6396bf5bba706454152136298cd66867ec8db16b90d2f2b79c2e5b464ebee37
BLAKE2b-256 checksum
How to use checksums
71cd311e72db1cad14c6ee4bd3a4114b70b1200258026595f6b6068135aca785
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.post202606301215-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL gtsam_extended-4.3a1.post202606301215-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
c707fb61aef147087614858e2804ffb06bfa97fa8202301564da3228c52643ff
BLAKE2b-256 checksum
How to use checksums
7b9ecc13c855842c3f851450927326abaf9f684494a27198b5b3951afffca5bd
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.post202606301215-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606301215-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 30.6 MB
Tags CPython 3.13 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
a11c5d069588b47620659c3ede0674bfe79afd575ad7e70f771a2a5be3d30485
BLAKE2b-256 checksum
How to use checksums
72cd6ea41b3eb2190f84c88ed2ba509271fdc52ef3a467683d53e37e10c9fabd
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.post202606301215-cp313-cp313-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202606301215-cp313-cp313-macosx_10_15_universal2.whl
Size 43.4 MB
Tags CPython 3.13 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
5ad24d49044a81aa39a116a93d5648c20bd50a48e19c66435878e91a5750ddef
BLAKE2b-256 checksum
How to use checksums
8d159e1e84fe55a27c7caf1cbe29cccf671e148172938406a224d2da27eda318
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.post202606301215-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL gtsam_extended-4.3a1.post202606301215-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
687ead98c4407bbd415b87d8263e614edaa9d72265c581ab6c413f915aa8507c
BLAKE2b-256 checksum
How to use checksums
f9e5c7e6473965e2a23f88e83696c1a0012138a0ed578247cb944bc0b3fa7826
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.post202606301215-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606301215-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 30.6 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
a36518453e96baf921680068c36ca76ce343658e5f736d9222fa0c714b680c07
BLAKE2b-256 checksum
How to use checksums
6a555e264ee7cfdaa1dd63b00b127871807612bf04f6c7b7c66eff0212821d44
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.post202606301215-cp312-cp312-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202606301215-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
7c5609771d7d987bbfb839dbaaac66dd80014b9b3a736a6d750591db8a8ebf0f
BLAKE2b-256 checksum
How to use checksums
de25c05ba32bd7c6b5a82a0e3c9d2439051898db3bd592baa51cdbaad1370df4
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.post202606301215-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL gtsam_extended-4.3a1.post202606301215-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
9154a38aa9dfd969eb296a5a902049b19653ad10de1db1e6407d5f65ac7e2806
BLAKE2b-256 checksum
How to use checksums
abd39684ebde762c71f945cd06405952d71f40b3705f93d8e9d3054757afb6e7
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.post202606301215-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606301215-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 30.6 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
0e80c1166faaa0cf5f2cae08e14a06ff11ec2654e4905c5992c2681bd9517686
BLAKE2b-256 checksum
How to use checksums
1c1a1c3c3a6831a7c44d9330d0426be82db41b66675b3069cb9bb324bc35bb44
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.post202606301215-cp311-cp311-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202606301215-cp311-cp311-macosx_10_15_universal2.whl
Size 43.1 MB
Tags CPython 3.11 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
2d2a5b626ce084171c079907aaad02b0927e2a7eddfd3f1a427df60a143a77ed
BLAKE2b-256 checksum
How to use checksums
83c0f34665c9b10df6fdc614b037ac90ac8e9431ce6d9c9f788910e882bbed73
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.post202606301215-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606301215-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 30.6 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
889ae381f6011d5475f8057c493f4b499a5597930973f082d24fde1d43b8632c
BLAKE2b-256 checksum
How to use checksums
1439fb88168da3a515ed68e35e3cb677df09d67ae4d8945d207922f90a26449e
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.post202606301215-cp310-cp310-macosx_14_0_arm64.whl

Download URL gtsam_extended-4.3a1.post202606301215-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
3e9baf30ef50a649344122bc0211820facb9173a1210632e49c04c696eebd89d
BLAKE2b-256 checksum
How to use checksums
4fdb75321d3f051629fc75a0e679930ded9ea7458513a3ef514534d2d99a8650
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