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.3a2.post202608080328

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.3a2.post202608080328
File
gtsam_extended-4.3a2.post202608080328-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.3a2.post202608080328-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64, Linux glibc 2.27+ ARM64 Details
gtsam_extended-4.3a2.post202608080328-cp314-cp314-macosx_10_15_universal2.whl CPython 3.14 CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64) Details
gtsam_extended-4.3a2.post202608080328-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
gtsam_extended-4.3a2.post202608080328-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64, Linux glibc 2.27+ ARM64 Details
gtsam_extended-4.3a2.post202608080328-cp313-cp313-macosx_10_15_universal2.whl CPython 3.13 CPython 3.13 macOS 10.15+ universal2 (ARM64, x86-64) Details
gtsam_extended-4.3a2.post202608080328-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
gtsam_extended-4.3a2.post202608080328-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64, Linux glibc 2.27+ ARM64 Details
gtsam_extended-4.3a2.post202608080328-cp312-cp312-macosx_10_15_universal2.whl CPython 3.12 CPython 3.12 macOS 10.15+ universal2 (ARM64, x86-64) Details
gtsam_extended-4.3a2.post202608080328-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.3a2.post202608080328-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details
gtsam_extended-4.3a2.post202608080328-cp311-cp311-macosx_10_15_universal2.whl CPython 3.11 CPython 3.11 macOS 10.15+ universal2 (ARM64, x86-64) Details
gtsam_extended-4.3a2.post202608080328-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details
gtsam_extended-4.3a2.post202608080328-cp310-cp310-macosx_14_0_arm64.whl CPython 3.10 CPython 3.10 macOS 14.0+ ARM64 Details

Total release size: 487.9 MB

Release files / gtsam_extended-4.3a2.post202608080328-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL gtsam_extended-4.3a2.post202608080328-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 32.4 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
cc0b8b4a422a97fc8ea7d4436026fd39d784d62eb13120ffff38ea9d906adaa6
BLAKE2b-256 checksum
How to use checksums
5ab11b63daf4871a31444caf1004c2df6f38dd34a1304e222a03b5bb0459814d
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.3a2.post202608080328-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL gtsam_extended-4.3a2.post202608080328-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Size 31.1 MB
Tags CPython 3.14 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
5a4d5faff20db74b128f95beab42377260230fbc49865769b9f20e2faf26f170
BLAKE2b-256 checksum
How to use checksums
ae731b014137c14748d818fd42846e785d7108b7c8eb99864261df2d2b8ea942
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.3a2.post202608080328-cp314-cp314-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a2.post202608080328-cp314-cp314-macosx_10_15_universal2.whl
Size 43.9 MB
Tags CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
1b204f89fc09d262ba7f60c43e210283ebda4534a0c3632b40e58cd1d6faff85
BLAKE2b-256 checksum
How to use checksums
ef113f346cf13bd9d539493f1c4c53892e7c03c10c9cc9d3eb7912d913b34db1
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.3a2.post202608080328-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL gtsam_extended-4.3a2.post202608080328-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 32.4 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
42046170d59c8efd49b3c9f7ce38ec94af643266de6d67432954f197517220f4
BLAKE2b-256 checksum
How to use checksums
33eb64567a1484b42a0228ed51ab7fc267c868e65cb0eb131bdc96c59085b921
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.3a2.post202608080328-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL gtsam_extended-4.3a2.post202608080328-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
8595afad08d17d1749f4159a4c026b82351a02a3a67957fd3f8d3c4378e304b9
BLAKE2b-256 checksum
How to use checksums
b6989c1f58b3c48751d4a3f56fb2213fc0e3918266cb97eeb4d7eac77c57685e
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.3a2.post202608080328-cp313-cp313-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a2.post202608080328-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
831d650890f9d35366f014179797769bfdc915c58c508a5b760ac2a7bf4f683c
BLAKE2b-256 checksum
How to use checksums
c18658d5a19800cbc17ed2d5ac1c65c4bc536c5117fc8451a9b02bb1f22f7ffc
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.3a2.post202608080328-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL gtsam_extended-4.3a2.post202608080328-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 32.4 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
50ea7530acb7f1a525361b5f9bab9916d92de3b6b2221c499a67420da4677f93
BLAKE2b-256 checksum
How to use checksums
dd1d8db7ff316ef848301e908f6dffe923c8d3e62140edec63b719ff34042700
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.3a2.post202608080328-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL gtsam_extended-4.3a2.post202608080328-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
45523274c12d75cf379950b97fea0739714050a1c9f3bd08d9f1ce9e28b472d1
BLAKE2b-256 checksum
How to use checksums
e968320eeebd505c4e4146d1420d9766ba41a1a95cfeef7d6a223446047ffe1c
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.3a2.post202608080328-cp312-cp312-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a2.post202608080328-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
ccbeecd48f08c67e172df9f6fc06534668cc9fff00c30799f2387e11821b6a71
BLAKE2b-256 checksum
How to use checksums
c6063efbe030b032f9b54ab201d9f22b5c7d6aa56a1a4d17fb392dfce128e3a0
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.3a2.post202608080328-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL gtsam_extended-4.3a2.post202608080328-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
ac52a6e318470d37e444684874becbb41294361b119042285037f49eccca062f
BLAKE2b-256 checksum
How to use checksums
f87f6298bbc31c0fb133f433dec587e0c659f6c93aea44f8921897237fe6fa77
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.3a2.post202608080328-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gtsam_extended-4.3a2.post202608080328-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 30.9 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
660f732e87ff416acab3a483b013572ea059ac9df41ea00b57d907b530e53330
BLAKE2b-256 checksum
How to use checksums
e398a893b3613eb430a4fdbe68007d81f353ab2aeee6db3d856a9e5ac6a746bc
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.3a2.post202608080328-cp311-cp311-macosx_10_15_universal2.whl

Download URL gtsam_extended-4.3a2.post202608080328-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
3bc82832201610b3a291404ff8dda2a4d81c58ffdfe2b1576b2313ce47ada896
BLAKE2b-256 checksum
How to use checksums
fe2eb1a0c278da45876271abea653f877f7c9c003729f6a474fd19f0a15a01ac
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.3a2.post202608080328-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL gtsam_extended-4.3a2.post202608080328-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 30.9 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
3fd11d9bb15995a4879cc88db70a2673e3d906dfd77a5f6ed4d40b5e8cfd2137
BLAKE2b-256 checksum
How to use checksums
3b4d3a876c7f84960dd70753ced929f7bbe460bd850b820661dfc1fd4c8e43ae
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.3a2.post202608080328-cp310-cp310-macosx_14_0_arm64.whl

Download URL gtsam_extended-4.3a2.post202608080328-cp310-cp310-macosx_14_0_arm64.whl
Size 28.4 MB
Tags CPython 3.10 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
8122357977745b82774f75cf41f5271988133c7ef39319144580636a48bf1805
BLAKE2b-256 checksum
How to use checksums
f2437a015497de6655e8c64f605cb083ea7ea9dae5f7845c812a22e53886f782
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