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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-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.post202606301215-cp312-cp312-macosx_10_15_universal2.whl (43.3 MB view details)

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

gtsam_extended-4.3a1.post202606301215-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.post202606301215-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.post202606301215-cp311-cp311-macosx_10_15_universal2.whl (43.1 MB view details)

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

gtsam_extended-4.3a1.post202606301215-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.post202606301215-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.post202606301215-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606301215-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1f4b7209440e044e7d3a3f94266fa226b22a0263a797f193b15f0c4f3f5da0ac
MD5 1615b77fb3c3e326cfe718d1ca9cae8f
BLAKE2b-256 e786dc7e273a2a728e55c257b44bb6d739ab709e6680f2a679ddd26d34f7f682

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606301215-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 7a52ca87ba866232995c3b03fb41fea62af46909c3201fc165bce3413ef20d42
MD5 a776db8dc69251f21a5c75ab046e7f47
BLAKE2b-256 86bbab1e414e6f5d88c6b626397b18b80084ba1253569ab4e7d52af19139da31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606301215-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 e6396bf5bba706454152136298cd66867ec8db16b90d2f2b79c2e5b464ebee37
MD5 027438446a3377a329b1468d4da96cc4
BLAKE2b-256 71cd311e72db1cad14c6ee4bd3a4114b70b1200258026595f6b6068135aca785

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606301215-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c707fb61aef147087614858e2804ffb06bfa97fa8202301564da3228c52643ff
MD5 be32f22ddc17167a831786ae58ceb4fe
BLAKE2b-256 7b9ecc13c855842c3f851450927326abaf9f684494a27198b5b3951afffca5bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606301215-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 a11c5d069588b47620659c3ede0674bfe79afd575ad7e70f771a2a5be3d30485
MD5 ff43e4de7a014b34f98e53cbd404d8d3
BLAKE2b-256 72cd6ea41b3eb2190f84c88ed2ba509271fdc52ef3a467683d53e37e10c9fabd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606301215-cp313-cp313-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 5ad24d49044a81aa39a116a93d5648c20bd50a48e19c66435878e91a5750ddef
MD5 c5907f910b8467a81dbafefff6bd9851
BLAKE2b-256 8d159e1e84fe55a27c7caf1cbe29cccf671e148172938406a224d2da27eda318

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606301215-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 687ead98c4407bbd415b87d8263e614edaa9d72265c581ab6c413f915aa8507c
MD5 cea29fbd7375962cc1214dd557a92546
BLAKE2b-256 f9e5c7e6473965e2a23f88e83696c1a0012138a0ed578247cb944bc0b3fa7826

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606301215-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 a36518453e96baf921680068c36ca76ce343658e5f736d9222fa0c714b680c07
MD5 968da47b8086babc1d3604e1f0b6965a
BLAKE2b-256 6a555e264ee7cfdaa1dd63b00b127871807612bf04f6c7b7c66eff0212821d44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606301215-cp312-cp312-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 7c5609771d7d987bbfb839dbaaac66dd80014b9b3a736a6d750591db8a8ebf0f
MD5 ccb505f199a10a57203c16e86f195bf8
BLAKE2b-256 de25c05ba32bd7c6b5a82a0e3c9d2439051898db3bd592baa51cdbaad1370df4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606301215-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 9154a38aa9dfd969eb296a5a902049b19653ad10de1db1e6407d5f65ac7e2806
MD5 412bb04e2e9129295e9e533c1a173cc4
BLAKE2b-256 abd39684ebde762c71f945cd06405952d71f40b3705f93d8e9d3054757afb6e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606301215-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 0e80c1166faaa0cf5f2cae08e14a06ff11ec2654e4905c5992c2681bd9517686
MD5 cd33ebdbe7d060c89142c8dafae09dcb
BLAKE2b-256 1c1a1c3c3a6831a7c44d9330d0426be82db41b66675b3069cb9bb324bc35bb44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606301215-cp311-cp311-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 2d2a5b626ce084171c079907aaad02b0927e2a7eddfd3f1a427df60a143a77ed
MD5 267672c2edfa3dfd00222e23c6c0f72c
BLAKE2b-256 83c0f34665c9b10df6fdc614b037ac90ac8e9431ce6d9c9f788910e882bbed73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606301215-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 889ae381f6011d5475f8057c493f4b499a5597930973f082d24fde1d43b8632c
MD5 d01f99cbf3e28cd266d834c83da93331
BLAKE2b-256 1439fb88168da3a515ed68e35e3cb677df09d67ae4d8945d207922f90a26449e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gtsam_extended-4.3a1.post202606301215-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 3e9baf30ef50a649344122bc0211820facb9173a1210632e49c04c696eebd89d
MD5 64aa86d50d6773e54b58fa0c56834c34
BLAKE2b-256 4fdb75321d3f051629fc75a0e679930ded9ea7458513a3ef514534d2d99a8650

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