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

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

Total release size: 482.7 MB

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

Download URL gtsam_extended-4.3a1.post202606281605-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
8ce7731a5f49af6c5c89f67e81586329a71329b979666d9ede0260f245c8ed47
BLAKE2b-256 checksum
How to use checksums
03817a3e49128841c0d98af7ce0a02b75b3636ef4b59c0047e81338a0c1d0175
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.post202606281605-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606281605-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
ae58e544739387f48f6704dd29571a21ff59c217395aefa462a71b9e8fc49c21
BLAKE2b-256 checksum
How to use checksums
931c9ce02db83a7d7b0a94a0a51f148ce06a2ac80246e88084718a311b1001db
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.post202606281605-cp314-cp314-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202606281605-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
5957ea33f8c3a670808006a5ab4694612fb497fa35f8147e941d963f14e510a0
BLAKE2b-256 checksum
How to use checksums
2798d8ee05266fa322be7a49263f577eb951d2e806ec76f07859ebd4c3600720
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.post202606281605-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL gtsam_extended-4.3a1.post202606281605-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
5d940729f0394cee0e847296ec1f752cc7ad321b6572ea0c553ab581801d43b6
BLAKE2b-256 checksum
How to use checksums
b124420b486ab1f4f095ff93cff56996f9fecae8c78d23a7e34973d7accf918e
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.post202606281605-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606281605-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
85294a0c2d6bbdab9d90ea1d4e5ed8f3e402fb96b51eb2d2093f805baec934ad
BLAKE2b-256 checksum
How to use checksums
39995b808fd72705bae8d4b3dec3e7171af750de9df0443dee367cadda041144
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.post202606281605-cp313-cp313-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202606281605-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
47ff1ec49e2f9c37504e8ff13642b933f680f6116f45d3490824808a2dc57ca4
BLAKE2b-256 checksum
How to use checksums
bb764e11e14c7b688f51592143fe04f5b08d32008d77c1b3347f59f410cf40e0
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.post202606281605-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL gtsam_extended-4.3a1.post202606281605-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
2cda9e017e8226013f25a972c1a79e07609b9e0c18a70222ab0c0975062be882
BLAKE2b-256 checksum
How to use checksums
3222a16077bc286ea53cd5883f93574ca2e307b9d9cc92919c52506ec60c5991
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.post202606281605-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606281605-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
c65cb509c3197730a2802a41d81c03fbf4cc597de02256d80ac900520eca843e
BLAKE2b-256 checksum
How to use checksums
e781c19de61e9cdb1bb446e6dada03b1742ce372b5f7c53e8dde0c835833eee3
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.post202606281605-cp312-cp312-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202606281605-cp312-cp312-macosx_10_15_universal2.whl
Size 43.4 MB
Tags CPython 3.12 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
6cfa56113b6b67af64cb71b07ba26936b9c0425aae02f6e100a9c79023ea78ff
BLAKE2b-256 checksum
How to use checksums
2a6a1e4c15650b37c38acf2ddea1c1753d37a307061797c7b6f6ea34bf1b90ff
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.post202606281605-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL gtsam_extended-4.3a1.post202606281605-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
2502e30c77e37e828a36c262b3d94e5b1ceb68b1ded9c31297f197218b260aa4
BLAKE2b-256 checksum
How to use checksums
58aee47050b12b2dc433343ae5eaf9db00a871f789a7104d0586adf79620cd83
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.post202606281605-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606281605-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
4c779f8762efed58d83208743e9bf3004126338e9f83178e329ed4c646fcf96b
BLAKE2b-256 checksum
How to use checksums
c9a186f01d38943d1f1ea392113b2b92e9490c1c102e8942664967e708b58e0d
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.post202606281605-cp311-cp311-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a1.post202606281605-cp311-cp311-macosx_10_15_universal2.whl
Size 43.2 MB
Tags CPython 3.11 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
8e511724d46821863f64ca05119de8e7036837f9a892e3addc8d4c77c3138852
BLAKE2b-256 checksum
How to use checksums
6d1bd439e9d4da3164b46056af98e19417ed8a3e93edf4562455cf900b3dbe3a
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.post202606281605-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL gtsam_extended-4.3a1.post202606281605-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
a1a4b114998f88728c1af2556d877d6fcb60c291efd7e8de94b39fb315cbfe2e
BLAKE2b-256 checksum
How to use checksums
9726b2077608b9ebdada48d229c53734932c233b85092ffccfe6e44fd44f12e9
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.post202606281605-cp310-cp310-macosx_14_0_arm64.whl

Download URL gtsam_extended-4.3a1.post202606281605-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
7b1af4099d6c0ea7254ba0e8e2281eb0d5132d08a6231f49ccb3366a10926954
BLAKE2b-256 checksum
How to use checksums
aefd934fd8e3073eaff6c6e77d59f24722dc16859cb6a7e7d067939657b3642a
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