Skip to content

GLIM and GTSAM Pipeline Hub

This is the cross-section hub for understanding GLIM as a SLAM pipeline and GTSAM as the mathematical backend behind that pipeline. It links the method pages to the knowledge-base pages that explain the probability, geometry, optimization, and sparse linear algebra layers.

Use this page when a question spans more than one file, for example: "how does a GLIM scan factor become a GTSAM solve?", "where do Bayes trees and Hessians enter the pipeline?", or "which KB page explains the failure I am seeing?"

Core Spine

text
sensor packets
  -> time sync, calibration, preprocessing, deskew
  -> range/IMU/GNSS/loop/custom residual factors
  -> GTSAM nonlinear factor graph over poses, velocities, biases, and submaps
  -> manifold linearization and whitening
  -> sparse Jacobian/Hessian or Bayes-tree solve
  -> marginals, diagnostics, trajectories, submaps, and map artifacts

The key point: GLIM is the SLAM/mapping framework; GTSAM is the graph optimization and inference machinery; the KB pages explain the math that makes the machinery inspectable.

Pipeline Crosswalk

GLIM pipeline stageGTSAM object or operationMathematical topicDiagnostic artifact
Sensor ingestion and calibrationmeasurements, timestamps, frame transformsLie groups, SE(3), SO(3), and Jacobians, Sensor Calibration and Time Synchronizationframe trace, TF chain, time-offset replay, lever-arm check
Deskew and inertial propagationPreintegratedImuMeasurements, ImuFactor, NavState, bias variablesIMU Error Models and PreintegrationIMU residuals, bias trajectory, gravity alignment, deskew sharpness
Factor constructionNonlinearFactorGraph, Values, NoiseModelFactorN, custom factorsGTSAM Factor Graph Optimization, Objective and Residual Design Auditfactor list, residual units, connected keys, zero-residual synthetic case
Probability modelpriors, likelihood factors, robust noise modelsProbabilistic Graphical Models and Message Passing, Likelihood, MAP, MLE, and Least Squaresposterior factorization, prior policy, factor independence assumptions
Noise and whiteningnoiseModel::Diagonal, Gaussian models, robust wrappersGaussian Noise, Covariance, Information, Whitening, and Uncertainty Ellipses, Robust Losses and M-Estimatorswhitened residual histograms, per-factor chi-square, robust weights
Scan matching and submap matchinggtsam_points scan/VGICP factors, loop factors, plane factorsGICP and VGICP, LiDAR Bundle-Adjustment Factors, Point Cloud Registration Mathinlier count, overlap, voxel covariance, scan Hessian, weak eigenvectors
Nonlinear stepGauss-Newton, Levenberg-Marquardt, Dogleg, iSAM2 update policyGauss-Newton, Levenberg-Marquardt, and Dogleg, Nonlinear Solver Diagnostics Crosswalkcost trace, damping/radius, predicted-vs-actual reduction, accepted/rejected steps
Linearization and HessianGaussianFactorGraph, JacobianFactor, HessianFactor, H = J^T JJacobians, Autodiff, and Manifold Linearization, Eigenvalues, Hessian Conditioning, and Observabilityfinite-difference checks, Hessian spectrum, nullspace, local observability
Sparse backendordered elimination, Cholesky, QR, Bayes net, Bayes treeSparse Matrices, Fill-In, and Ordering, Cholesky, LDLT, and Normal Equations, QR, SVD, and Rank-Revealing Solversfill report, clique size, pivot warnings, QR/SVD rank snapshot
Fixed-lag and map refinementfixed-lag smoother, marginal factors, global submap graphSchur Complement, Marginalization, and PCG, Square-Root Information and Covariance Recoverydense prior rank, separator variables, selected marginal covariance
Pipeline-level SLAM methodGLIM odometry, global mapping, offline correction, multi-session mergeGLIM, Factor Graph SLAM with iSAM2 and GTSAModom_*.txt, traj_*.txt, submap graph, exported PLY/map artifacts

Failure Routing

SymptomFirst route
Low scalar cost but wrong mapObjective and Residual Design Audit, then scan/loop residual pages
Cholesky or indeterminate linear-system failureCholesky, LDLT, and Normal Equations, then Eigenvalues, Hessian Conditioning, and Observability
iSAM2 update-time spikeSparse Matrices, Fill-In, and Ordering, then Factor Graph SLAM with iSAM2 and GTSAM
Covariance looks too confidentGaussian Noise, Covariance, Information, Whitening, and Uncertainty Ellipses, then SLAM/VIO Observability, FEJ, Nullspace, and Consistency
Loop closure bends a mapRobust Losses and M-Estimators, Loop Closure and Place Recognition, and Nonlinear Solver Diagnostics Crosswalk
Open-area drift or repeated-structure ambiguityEigenvalues, Hessian Conditioning, and Observability, GICP and VGICP, and GLIM
Custom factor behaves unexpectedlyJacobians, Autodiff, and Manifold Linearization, Lie Groups SE(3), SO(3), Adjoints, and Jacobians, and GTSAM Factor Graph Optimization

Reading Paths

For the full GLIM pipeline, read GLIM, then GTSAM Factor Graph Optimization, then Factor Graph SLAM with iSAM2 and GTSAM.

For the math behind the solve, read Likelihood, MAP, MLE, and Least Squares, Nonlinear Least Squares from First Principles, Jacobians, Autodiff, and Manifold Linearization, and Gauss-Newton, Levenberg-Marquardt, and Dogleg.

For sparse backend behavior, read Sparse Estimation Backend Crosswalk, then Sparse Matrices, Fill-In, and Ordering, Cholesky, LDLT, and Normal Equations, QR, SVD, and Rank-Revealing Solvers, and Schur Complement, Marginalization, and PCG.

For production-style debugging, start with Nonlinear Solver Diagnostics Crosswalk, then route to objective design, noise whitening, Jacobians, rank/conditioning, sparse backend, or state-estimation observability.

Boundary Notes

  • GLIM owns the concrete range-inertial mapping workflow: odometry, submaps, global mapping, offline correction, multi-session merge, extension modules, and exported artifacts.
  • GTSAM owns the graph abstraction and inference machinery: factor graphs, values, noise models, nonlinear optimization, elimination, Bayes tree/iSAM2, marginals, and fixed-lag smoothing.
  • The KB pages own reusable theory. They should explain the math so that a GLIM/GTSAM issue can be debugged without treating either codebase as a black box.

Public research notes collected from public sources.