Problemcore
Pose graph optimization
Also called pose graph SLAM.
Find the poses that minimize the sum of squared Mahalanobis errors of all relative pose constraints in a pose graph.
Pose graph optimization is the back end problem of graph-based SLAM. The input is a pose graph: poses as vertices and measured relative poses with information matrices as edges. The output is the set of poses that best agrees with all edges, in the sense of the least sum of squared Mahalanobis errors. With Gaussian noise this is the maximum likelihood estimate of the poses. The problem is a nonlinear least squares problem on a product of the groups or . It is nonconvex because of the rotations, so local methods such as Gauss-Newton can stop at a local minimum that is not global. SE-Sync certifies a global optimum when its semidefinite relaxation is tight, which Rosen et al. prove for noise below a level that depends on the graph. The pose graph is the data, this page is the question, and GraphSLAM is a method that solves a version with landmarks.
In plain words
A robot recorded where it stood many times, and for many pairs of those places it measured how far apart they are and how they are turned. The measurements do not fit together exactly, because each one has some error. The problem asks for one set of places that fits all the measurements as well as possible. A measurement that the robot trusts more counts more. When the robot drives a loop, the small errors of each step add up, and the measurement at the end of the loop shows the total. A good answer spreads that total over the whole loop. The turning part makes the problem hard, because a search can get stuck in an answer that is good near by but not the best overall.
Definition
Input. A connected graph with vertices and an edge set . Each edge has a measured relative pose , with or , and a symmetric positive definite information matrix of size 3 or 6.
Error of an edge. For poses , the error is
the vector of the transformation that is left when the measured relative pose is removed from the estimated one. In the plane, many systems use the simpler form . See pose compounding operators.
The question. Find
The cost does not change when all poses are multiplied on the left by one pose, so one pose is fixed, usually . Without this gauge the minimizer is not unique.
Nonconvexity. Even with exact measurements on a cycle, the cost has local minima that are not global. See the second example below.
Variants
- Planar and spatial. with 3 parameters per pose, or with 6.
- Chordal cost. Replace the geodesic rotation error by the Frobenius distance , and the translation error by . This is the form that SE-Sync relaxes. For small errors it is close to the geodesic form.
- Rotations only. Without translations the problem is rotation synchronization, also called rotation averaging in structure from motion.
- Translations only. With known rotations the cost is a linear least squares problem in the translations and is convex.
- With landmarks. If landmark positions are also unknowns, the problem is full SLAM on a factor graph. Marginalizing the landmarks gives a pose graph again, with denser edges.
- Robust versions. With wrong loop closures, a robust kernel or switchable constraints replace the squared error for the doubtful edges.
- Online. The graph grows over time, and the estimate must be updated after each new edge, as in iSAM and iSAM2.
Examples
A one-dimensional loop. Three poses on a line, fixed. Odometry says and . A loop closure says . All weights are 1. The cost is . Setting the two derivatives to zero gives and , so and . The three errors are , and , and the cost is . The disagreement of 0.3 between odometry and the loop closure is spread equally over the three edges. Without rotations the problem is linear and convex, and this is the global optimum.
A wrong local minimum. Take rotations in the plane on a cycle, with every measurement equal to the identity and every weight 1. In the chordal cost, an edge whose two angles differ by costs . The global minimum puts all angles equal, with cost 0. Now put . Each edge has , and the cost is . The derivative with respect to is , so this is a critical point. The Hessian in the angles is times the Laplacian matrix of the cycle. For , , so the Hessian is positive semidefinite, and its only null direction turns all angles together, which does not change the cost. So the twisted state is a local minimum that is not global. For its cost is . A Gauss-Newton solver started there does not move. The SE-Sync page shows how its certificate finds the way out of this state.
Known algorithms
- Gauss-Newton and Levenberg-Marquardt on the manifold. Linearize each error at the current poses, solve the sparse normal equations, and update each pose by a retraction. This is the method of Lu and Milios and of the tutorial of Grisetti et al., and the core of general solvers such as g2o, Ceres and GTSAM. See Gauss-Newton, Levenberg-Marquardt and Powell's dog leg. Each step costs one sparse solve. They find a local minimum and depend on the initial guess.
- Square root methods. Square root SAM factors the measurement Jacobian by QR or Cholesky with a fill-reducing order. iSAM and iSAM2 update the factor as the graph grows. They solve the same linearized systems, faster.
- Initialization. A spanning tree of odometry edges, or chordal relaxation of the rotations followed by a linear solve for the translations, gives a starting point that often lies in the basin of the global minimum.
- Stochastic gradient and tree parameterizations. Olson, Leonard and Teller, and later Grisetti and colleagues in TORO, used incremental pose parameterizations that converge from poor initial guesses.
- Certifiable methods. SE-Sync solves a semidefinite relaxation by a low rank Riemannian method and returns a certificate of global optimality when the relaxation is tight.
- Information filters. GraphSLAM and the extended information filter work with the same information form, with landmarks.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| SE-Sync | O(r (n + m)) certificate · local_search_sweep | O(r n) iterate | certifies global optimumdeterministicnot exactneeds tight relaxation | 1 language |
Bounds
No closed form solution is known for the general problem. A Gauss-Newton step costs one solve of a sparse positive definite system of size or . Its cost depends on the fill-in of the factor; see elimination ordering. For a graph that is mostly a chain with few loops, the fill is small and a step takes close to linear time. The number of steps depends on the initial guess and the noise.
SE-Sync gives a global optimum in polynomial time when the relaxation is exact. Rosen et al. prove that it is exact when the noise is below a level that depends on the graph. Above that level the relaxation can have a gap, and then it gives only a lower bound. This page gives no complexity result for the general problem, because none was confirmed from a source.
Reductions
- Translations from rotations. For fixed rotations the cost is a linear least squares problem in the translations. So the problem reduces to a problem over the rotations alone, with a modified data matrix. SE-Sync uses this step.
- Full SLAM to a pose graph. Eliminating the landmarks from the information matrix of full SLAM leaves a pose graph whose edges are the marginal constraints. This is the step of GraphSLAM after the landmarks are eliminated.
- Linear least squares. Each Gauss-Newton step is a least squares problem with a sparse Jacobian.
Applications
- The back end of lidar SLAM systems that build pose graphs from scan matching, such as LOAM with a loop closure module, or systems based on correlative scan matching.
- The loop closing step of visual SLAM, for example the essential graph optimization of ORB-SLAM.
- Multi-robot mapping, where the graphs of several robots are joined by inter-robot edges.
- Rotation averaging and the initialization of bundle adjustment in structure from motion.
References
- Feng Lu and Evangelos Milios, Globally consistent range scan alignment for environment mapping, Autonomous Robots 4(4), 1997, pages 333 to 349, the joint estimation of all scan poses from a network of relative pose constraints
- Giorgio Grisetti, Rainer Kümmerle, Cyrill Stachniss and Wolfram Burgard, A tutorial on graph-based SLAM, IEEE Intelligent Transportation Systems Magazine 2(4), 2010, pages 31 to 43, the error of a constraint, the least squares cost, and its minimization by Gauss-Newton on the manifold of poses
- David M. Rosen, Luca Carlone, Afonso S. Bandeira and John J. Leonard, SE-Sync: a certifiably correct algorithm for synchronization over the special Euclidean group, International Journal of Robotics Research 38(2-3), 2019, pages 95 to 125, the nonconvexity of pose graph optimization, its semidefinite relaxation, and the exact recovery guarantee for small noise
- Cesar Cadena, Luca Carlone, Henry Carrillo, Yasir Latif, Davide Scaramuzza, Jose Neira, Ian Reid and John J. Leonard, Past, present, and future of simultaneous localization and mapping: toward the robust-perception age, IEEE Transactions on Robotics 32(6), 2016, pages 1309 to 1332, the maximum a posteriori formulation of the SLAM back end and the open problems of convergence and robustness
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 2DWA9Q Edit this page History Report an error Markdown