Go to file
Varun Agrawal 3d40ceb033 Merging 'master' into 'wrap' 2024-06-28 11:03:51 -04:00
.github update setup-python action version 2024-06-26 12:46:36 -04:00
.settings Merge remote-tracking branch 'origin/develop' into feature/Similarity 2015-01-23 08:10:21 -05:00
CppUnitLite remove extra semicolons 2023-03-10 15:36:46 -05:00
cmake Merge pull request #1572 from borglab/chi-squared-quantile 2023-12-29 17:26:07 -05:00
doc fix CMake variable in doc folder 2023-09-15 16:27:48 -04:00
docker remove requirements install step as it is now a part of the cmake process 2023-09-05 12:40:21 -04:00
examples Fixing strength of bias constraints in IMUKittiExampleGPS.cpp 2024-03-18 08:47:11 +01:00
gtsam Merge branch 'borglab:develop' into python-helpers 2024-06-03 14:57:46 -06:00
gtsam_unstable rename error to errorTree when it returns an AlgebraicDecisionTree 2024-01-05 03:24:50 -05:00
matlab Update CMakeLists.txt 2023-11-27 13:55:05 -05:00
python more explicit numpy version to avoid compiler issues 2024-06-28 09:15:58 -04:00
tests Squashed 'wrap/' changes from cdcf23207..38a1bfa01 2024-06-28 11:03:51 -04:00
timing update gtsamAddExamplesGlob and gtsamAddTimingGlob to take an additional argument rather than using a global variable 2023-10-08 12:16:24 -04:00
wrap Merging 'master' into 'wrap' 2024-06-28 11:03:51 -04:00
.clang-format add clang-format 2023-04-08 16:24:46 +08:00
.gitignore Squashed 'wrap/' changes from 2f136936d..bd57210d9 2023-10-06 12:21:06 -04:00
.project Fixed build command 2014-11-23 10:43:00 +01:00
CMakeLists.txt minor formatting 2023-12-29 13:44:52 -05:00
DEVELOP.md Updated docs to reflect switch. 2023-01-19 09:45:32 -08:00
GTSAM-Concepts.md GTSAM_CONCEPT_ASSERT to replace BOOST equivalent. 2023-02-06 00:35:36 -08:00
INSTALL.md Update INSTALL.md 2023-10-01 22:32:26 +02:00
LICENSE Added Spectra 0.9.0 to 3rdparty 2020-08-10 22:56:43 -04:00
LICENSE.BSD Final cleanup of text files - README.md, LICENSE*, USAGE, and INSTALL. 2014-01-30 14:42:23 -05:00
README.md Update README.md with release 4.2 2023-09-03 19:47:16 -07:00
THANKS.md make all top level docs as markdown files 2019-06-13 17:09:50 -04:00
USAGE.md renamed all READMEs to README.md and updated markdown syntax 2019-06-13 17:26:07 -04:00
Using-GTSAM-EXPORT.md documentation updates 2022-02-17 11:15:15 -05:00
gtsam_extra.cmake.in remove all Cython references 2020-10-01 19:56:35 -04:00
makestats.sh Command line for generating svn stats, needs statsvn from statsvn.org 2012-06-11 14:31:32 +00:00
package.xml Update package.xml 2023-01-31 17:35:43 +01:00
update_wrap.sh Add script to update the wrap subtree 2020-08-20 10:31:40 -04:00

README.md

README - Georgia Tech Smoothing and Mapping Library

Important Note

As of January 2023, 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.

The current support matrix is:

Platform Compiler Build Status
Ubuntu 18.04 gcc/clang Linux CI
macOS clang macOS CI
Windows MSVC Windows CI

On top of the C++ library, GTSAM includes wrappers for MATLAB & Python.

Quickstart

In the root library folder execute:

#!bash
mkdir build
cd build
cmake ..
make check (optional, runs unit tests)
make install

Prerequisites:

  • Boost >= 1.65 (Ubuntu: sudo apt-get install libboost-all-dev)
  • CMake >= 3.0 (Ubuntu: sudo apt-get install cmake)
  • A modern compiler, i.e., at least gcc 4.7.3 on Linux.

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.

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.

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.