Skip to main content

Georgia Tech Smoothing And Mapping library

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gtsam_extended-4.3a1.post202606281605-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (32.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

gtsam_extended-4.3a1.post202606281605-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (30.6 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

gtsam_extended-4.3a1.post202606281605-cp314-cp314-macosx_10_15_universal2.whl (43.4 MB view details)

Uploaded CPython 3.14macOS 10.15+ universal2 (ARM64, x86-64)

gtsam_extended-4.3a1.post202606281605-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (32.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

gtsam_extended-4.3a1.post202606281605-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (30.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

gtsam_extended-4.3a1.post202606281605-cp313-cp313-macosx_10_15_universal2.whl (43.4 MB view details)

Uploaded CPython 3.13macOS 10.15+ universal2 (ARM64, x86-64)

gtsam_extended-4.3a1.post202606281605-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (32.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

gtsam_extended-4.3a1.post202606281605-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (30.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

gtsam_extended-4.3a1.post202606281605-cp312-cp312-macosx_10_15_universal2.whl (43.4 MB view details)

Uploaded CPython 3.12macOS 10.15+ universal2 (ARM64, x86-64)

gtsam_extended-4.3a1.post202606281605-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (32.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

gtsam_extended-4.3a1.post202606281605-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (30.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

gtsam_extended-4.3a1.post202606281605-cp311-cp311-macosx_10_15_universal2.whl (43.2 MB view details)

Uploaded CPython 3.11macOS 10.15+ universal2 (ARM64, x86-64)

gtsam_extended-4.3a1.post202606281605-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (30.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

gtsam_extended-4.3a1.post202606281605-cp310-cp310-macosx_14_0_arm64.whl (28.1 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

Details for the file gtsam_extended-4.3a1.post202606281605-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606281605-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 8ce7731a5f49af6c5c89f67e81586329a71329b979666d9ede0260f245c8ed47
MD5 78f550b52a02df2828f4bb838d21e891
BLAKE2b-256 03817a3e49128841c0d98af7ce0a02b75b3636ef4b59c0047e81338a0c1d0175

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post202606281605-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606281605-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 ae58e544739387f48f6704dd29571a21ff59c217395aefa462a71b9e8fc49c21
MD5 8c916b28ffbae1808281faa15c5e6821
BLAKE2b-256 931c9ce02db83a7d7b0a94a0a51f148ce06a2ac80246e88084718a311b1001db

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post202606281605-cp314-cp314-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606281605-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 5957ea33f8c3a670808006a5ab4694612fb497fa35f8147e941d963f14e510a0
MD5 81feb61c6e998e2c4dd858483475b35a
BLAKE2b-256 2798d8ee05266fa322be7a49263f577eb951d2e806ec76f07859ebd4c3600720

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post202606281605-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606281605-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 5d940729f0394cee0e847296ec1f752cc7ad321b6572ea0c553ab581801d43b6
MD5 c329a3a36b40ff5164731a99b0a5a516
BLAKE2b-256 b124420b486ab1f4f095ff93cff56996f9fecae8c78d23a7e34973d7accf918e

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post202606281605-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606281605-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 85294a0c2d6bbdab9d90ea1d4e5ed8f3e402fb96b51eb2d2093f805baec934ad
MD5 09f5b067c3c6e545650c433ae1efd46b
BLAKE2b-256 39995b808fd72705bae8d4b3dec3e7171af750de9df0443dee367cadda041144

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post202606281605-cp313-cp313-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606281605-cp313-cp313-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 47ff1ec49e2f9c37504e8ff13642b933f680f6116f45d3490824808a2dc57ca4
MD5 0ed52c9d0df633f848d0ef28160a22ab
BLAKE2b-256 bb764e11e14c7b688f51592143fe04f5b08d32008d77c1b3347f59f410cf40e0

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post202606281605-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606281605-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2cda9e017e8226013f25a972c1a79e07609b9e0c18a70222ab0c0975062be882
MD5 63319fa8d908f7f0e17a5c1aef842715
BLAKE2b-256 3222a16077bc286ea53cd5883f93574ca2e307b9d9cc92919c52506ec60c5991

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post202606281605-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606281605-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 c65cb509c3197730a2802a41d81c03fbf4cc597de02256d80ac900520eca843e
MD5 de951d7c5b1c1a395c2aa4ac4f62d8f2
BLAKE2b-256 e781c19de61e9cdb1bb446e6dada03b1742ce372b5f7c53e8dde0c835833eee3

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post202606281605-cp312-cp312-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606281605-cp312-cp312-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 6cfa56113b6b67af64cb71b07ba26936b9c0425aae02f6e100a9c79023ea78ff
MD5 e3684cc01d35a2558eb9eede5f3dfb76
BLAKE2b-256 2a6a1e4c15650b37c38acf2ddea1c1753d37a307061797c7b6f6ea34bf1b90ff

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post202606281605-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606281605-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2502e30c77e37e828a36c262b3d94e5b1ceb68b1ded9c31297f197218b260aa4
MD5 012488f4ef6d6504ffd5d0494c77c3ee
BLAKE2b-256 58aee47050b12b2dc433343ae5eaf9db00a871f789a7104d0586adf79620cd83

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post202606281605-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606281605-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 4c779f8762efed58d83208743e9bf3004126338e9f83178e329ed4c646fcf96b
MD5 1248a25c2984a21d6df877962d8eb67f
BLAKE2b-256 c9a186f01d38943d1f1ea392113b2b92e9490c1c102e8942664967e708b58e0d

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post202606281605-cp311-cp311-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606281605-cp311-cp311-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 8e511724d46821863f64ca05119de8e7036837f9a892e3addc8d4c77c3138852
MD5 584801a26cac7376d5d8dd49d1f6ade4
BLAKE2b-256 6d1bd439e9d4da3164b46056af98e19417ed8a3e93edf4562455cf900b3dbe3a

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post202606281605-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606281605-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a1a4b114998f88728c1af2556d877d6fcb60c291efd7e8de94b39fb315cbfe2e
MD5 3dc668f47aaa7f20e1c7811d964d0ae0
BLAKE2b-256 9726b2077608b9ebdada48d229c53734932c233b85092ffccfe6e44fd44f12e9

See more details on using hashes here.

File details

Details for the file gtsam_extended-4.3a1.post202606281605-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606281605-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 7b1af4099d6c0ea7254ba0e8e2281eb0d5132d08a6231f49ccb3366a10926954
MD5 c2525bee80abce9daddd2e5bed2040b7
BLAKE2b-256 aefd934fd8e3073eaff6c6e77d59f24722dc16859cb6a7e7d067939657b3642a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page