borglab/gtsam

GTSAM is a library of C++ classes that implement smoothing and mapping (SAM) in robotics and vision, using factor graphs and Bayes networks as the underlying computing paradigm rather than sparse matrices.

GTSAM: Georgia Tech Smoothing and Mapping Library

What it is: A C++ library for smoothing and mapping (SAM) in robotics and vision. Instead of working with sparse matrices directly, it uses factor graphs and Bayes networks as its core computing model.

What it's used for: Solving estimation problems in robotics and vision — for example, figuring out where a robot is and what its surroundings look like, by combining noisy sensor measurements over time.

Key features:

  • Factor graph / Bayes network paradigm — the underlying math is organized around these graph structures rather than raw matrices.
  • Preintegrated IMU Factor — a state-of-the-art method for handling inertial measurement unit (IMU) data, based on published research (Lupton & Sukkarieh 2012; Forster et al. 2015). A newer, more efficient implementation is enabled by default in GTSAM 4.
  • Expressions — a feature introduced in GTSAM 4 that supports efficient automatic differentiation.
  • Traits — allow optimization with non-GTSAM types.
  • Python toolbox — also introduced in GTSAM 4.
  • Wrappers — the library includes wrappers for MATLAB and Python on top of the C++ core.
  • CUDA linear solvers — documented separately (see doc/CUDA_LINEAR_SOLVERS.md).

Build requirements:

  • CMake 3.16 or newer
  • A C++17-capable compiler (tested: GCC 11/13/14/15, Clang 11/14/16, Xcode 16, MSVC 14.40)
  • Boost is optional — controlled by two CMake flags (GTSAM_USE_BOOST_FEATURES and GTSAM_ENABLE_BOOST_SERIALIZATION), both default ON except in ROS 2 builds.
  • Optional: oneTBB (default ON) and Intel oneMKL (only if GTSAM_WITH_EIGEN_MKL=ON).

Versioning note: The develop branch contains changes for the next release and may have API changes. For production, use the latest stable release. GTSAM 4.3 is the version cited in the README's citation block.

Compatibility detail: Point2 and Point3 are aliases for Eigen vectors; their default constructors do not initialize coefficients, so you must initialize them explicitly.

License: Open source under the BSD license.

Origin: Developed in Frank Dellaert's lab at the Georgia Institute of Technology, with many contributors over the years.

Documentation & community: C++ API docs at gtsam.org/doxygen, Python docs at borglab.github.io/gtsam, and a GTSAM users Google group for discussion.

Related

  • Project
  • Project
  • Project
  • Project
  • Project