- Landmark maps: assign each detection to a landmark. This is data association, and it applies to any sensor that detects landmarks.
- Point maps, as in LIDAR scan matching: pair points between two scans.
- Image feature maps: match keypoints by appearance.
Landmark data association
Maximum likelihood correspondence
The robot has a predicted pose belief and a map of landmarks . This section indexes landmarks with , as Table 7.3 of Probabilistic Robotics does, because each rule compares every candidate landmark. The EKF localization section writes for the landmark an observation came from. For an observation with range and bearing , and a landmark , the predicted measurement is , as on the EKF localization page. If observation came from landmark , the innovation is approximately Gaussian with zero mean and covariance The first term is the pose uncertainty mapped into measurement space and is the sensor noise. The maximum likelihood correspondence is the landmark under which the measurement is most likely: is the Mahalanobis distance. Taking of the likelihood and dropping the constant gives the equivalent rule When the observations carry a signature, the likelihood under landmark also has an appearance factor , which scores how well the observed signature matches the one stored for landmark . The measurement model of EKF localization takes it as independent of the geometric error and of the pose. For a numerical signature, Thrun, Burgard and Fox make it a Gaussian, (Probabilistic Robotics, Table 6.4). That needs a signature you can subtract. A class label is not one, and numbering the classes would make the model depend on an arbitrary order. For the class label and appearance embedding of the office example, the label and the embedding get their own factors instead: The first factor comes from the detector’s confusion matrix: the probability that it reports class when the object is of class . The second is a von Mises-Fisher density for embeddings scaled to unit length. It plays the role of a Gaussian on the unit sphere: it peaks when the two embeddings point the same way, the concentration sets how sharply, and normalizes it. The same adds one term to the score: The appearance term does not depend on the pose, so it changes the score of each landmark without changing . The examples below use landmarks without signatures, so the term is absent there. In practice the appearance term is rarely a calibrated likelihood. Systems accept a match when the descriptor or embedding similarity passes a threshold, and then check it against the geometry, for example with RANSAC. Only matches that pass both checks go to the filter. Multi-object tracking uses the same structure. DeepSORT (Wojke, Bewley and Paulus, 2017) gates each detection by its Mahalanobis distance from the Kalman prediction of each track, matches the remaining pairs by the cosine distance between their CNN appearance embeddings, and updates each track’s Kalman filter with the position and size of the detected box alone. The determinant term matters because differs from landmark to landmark: the Jacobian depends on where the landmark is. A landmark with a large gets a small Mahalanobis distance for almost any measurement, and the term adds a penalty that grows with that spread. Thrun, Burgard and Fox (2005, Section 7.6.2) derive the likelihood by integrating the measurement model over the predicted belief. Each measurement is decided separately, which assumes the measurements are conditionally independent given the pose.Gating
The minimization always returns a landmark, even when the measurement comes from an object that is not in the map. A gate rejects such measurements. For a correct correspondence, is chi-squared distributed with two degrees of freedom (range and bearing). A measurement is accepted for landmark only if is below the 99th percentile of , which is 9.21. A measurement that passes no gate is an outlier or a new landmark. EKF SLAM starts a new landmark when the distance to every landmark in the map exceeds a threshold (Thrun, Burgard and Fox, 2005, Section 10.3.1). Spurious measurements would then create false landmarks, so practical systems keep new landmarks on a provisional list until they have been seen several times (Section 10.3.3). The code defines a map of six landmarks and the range-bearing model, and computes for four measurements.Code
Code
Code
Code
Code
Code
Joint compatibility
The measurements share one pose error. A heading error rotates all of them by the same angle, so a set of assignments is plausible only if one pose explains all of it. The joint compatibility test checks this. For a hypothesis that pairs measurements with landmarks , stack the innovations and Jacobians: The off-diagonal blocks of couple the measurements through the shared pose. The hypothesis is jointly compatible if is below the threshold for degrees of freedom. Neira and Tardós (2001) find the largest jointly compatible hypothesis with joint compatibility branch and bound (JCBB). With four measurements, the code enumerates all hypotheses instead. A measurement may stay unassigned, and no landmark is paired with more than one measurement. That second rule is the mutual exclusion principle (Thrun, Burgard and Fox, 2005, Section 7.8). The code keeps the jointly compatible hypothesis with the most pairings and breaks ties by the smaller joint distance.Code
Code
Scan registration with ICP
A LIDAR map can also be a set of raw points. The motion between two scans is then estimated by aligning them, which again needs correspondences: which point in one scan is the same surface point as a given point in the other. The iterative closest point algorithm (ICP) of Besl and McKay (1992) guesses them from the current alignment, pairing each point with its nearest neighbor in the other scan. It fits the rigid transform to the guessed pairs and repeats. When the starting estimate is good, most nearest neighbors are correct pairs and the alignment improves. When the starting estimate is poor, ICP can converge to a wrong alignment. The scan registration section builds ICP step by step.LIDAR features and loop closure
LOAM (Zhang and Singh, 2014) does not pair every point. It selects points on sharp edges and points on flat surfaces, using the curvature of the scan line around each point, and matches edge points to edge lines and surface points to planar patches in the map. The features are defined by local geometry. Loop closure needs a correspondence between whole places. A robot that returns to a mapped area has to recognize it so that the loop in the map can be closed. Scan Context (Kim and Kim, 2018) summarizes a LIDAR scan in a descriptor that is compared with stored scans. PointNetVLAD (Uy and Lee, 2018) computes such a descriptor from the point cloud with a neural network. A false loop closure merges two different places and can distort the whole map. Landmark data association also applies to LIDAR. The Victoria Park dataset of Guivant and Nebot (2001), recorded from a vehicle in a park in Sydney, uses tree trunks detected in laser scans as landmarks. It is widely used to compare landmark-based SLAM algorithms.Image feature matching
A detector finds keypoints, such as corners, that are likely to be detected again from another viewpoint. A descriptor encodes the image patch around each keypoint as a vector. Keypoints in two images are matched by descriptor distance, and the matches are checked with a geometric model, for example with RANSAC as in the homographies section. The descriptor has the role of the signature in the landmark model, where a landmark observation is . Distinct signatures make landmarks easier to tell apart. Torralba, Isola and Freeman (2024, Section 44.3.3) cover hand-designed detectors and descriptors such as SIFT and ORB, and learned ones such as SuperPoint with the SuperGlue matcher. LightGlue (Lindenberger, Sarlin and Pollefeys, 2023) is a faster learned matcher in the same line. Place recognition compares whole images with one global descriptor per image, such as NetVLAD (Arandjelović et al., 2015) or the features of the DINOv2 foundation model (Oquab et al., 2023), which AnyLoc (Keetha et al., 2023) uses for place recognition across indoor, outdoor and aerial images. The stereo vision section uses matching for depth.References
- Arandjelović, R., Gronat, P., Torii, A., Pajdla, T., and Sivic, J. (2015). NetVLAD: CNN architecture for weakly supervised place recognition. arXiv:1511.07247.
- Besl, P. J., and McKay, N. D. (1992). A method for registration of 3-D shapes. IEEE Transactions on Pattern Analysis and Machine Intelligence, 14(2), 239-256.
- Guivant, J. E., and Nebot, E. M. (2001). Optimization of the simultaneous localization and map-building algorithm for real-time implementation. IEEE Transactions on Robotics and Automation, 17(3), 242-257.
- Keetha, N., Mishra, A., Karhade, J., Jatavallabhula, K. M., Scherer, S., Krishna, M., and Garg, S. (2023). AnyLoc: Towards universal visual place recognition. arXiv:2308.00688.
- Kim, G., and Kim, A. (2018). Scan Context: Egocentric spatial descriptor for place recognition within 3D point cloud map. IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 4802-4809.
- Lindenberger, P., Sarlin, P.-E., and Pollefeys, M. (2023). LightGlue: Local feature matching at light speed. arXiv:2306.13643.
- Neira, J., and Tardós, J. D. (2001). Data association in stochastic mapping using the joint compatibility test. IEEE Transactions on Robotics and Automation, 17(6), 890-897.
- Oquab, M., Darcet, T., Moutakanni, T., Vo, H., et al. (2023). DINOv2: Learning robust visual features without supervision. arXiv:2304.07193.
- Thrun, S., Burgard, W., and Fox, D. (2005). Probabilistic Robotics. MIT Press.
- Torralba, A., Isola, P., and Freeman, W. T. (2024). Foundations of Computer Vision. MIT Press.
- Uy, M. A., and Lee, G. H. (2018). PointNetVLAD: Deep point cloud based retrieval for large-scale place recognition. arXiv:1804.03492.
- Wojke, N., Bewley, A., and Paulus, D. (2017). Simple online and realtime tracking with a deep association metric. arXiv:1703.07402.
- Zhang, J., and Singh, S. (2014). LOAM: LIDAR odometry and mapping in real-time. Robotics: Science and Systems.
Found an error on this page? Report an issue.

