Repository navigation
feat(estimation): data association for EKF-SLAM, and an example - #264
Merged
Merged
Conversation
EKFSlam::update_unknown() takes sightings without landmark ids and works out which landmark each is of: it scores every sighting against every landmark by the squared Mahalanobis distance of the innovation, pairs them greedily, the closest first, each landmark at most once a scan, within a match gate (9.21, chi-squared 99 % with 2 degrees of freedom); a sighting beyond a new-landmark gate (25) from every landmark is a new one, and one in between is dropped. EKFSlam::mahalanobis() gives the distance of one sighting from one landmark. The ekf_slam_data_association example drives the loop of ekf_slam with noisier odometry and two pairs of posts 40 cm apart, and associates the same data four ways: with the ids; by the nearest post within 0.2 m, which maps posts again and again; within 0.5 m, which confuses the close posts and drags the robot 1.8 m off; and by the Mahalanobis distance, which does as well as the ids. Its page has an image of the four maps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
EKFSlam::update_unknown() takes sightings without landmark ids and works out which landmark each is of: it scores every sighting against every landmark by the squared Mahalanobis distance of the innovation, pairs them greedily, the closest first, each landmark at most once a scan, within a match gate (9.21, chi-squared 99 % with 2 degrees of freedom); a sighting beyond a new-landmark gate (25) from every landmark is a new one, and one in between is dropped. EKFSlam::mahalanobis() gives the distance of one sighting from one landmark.
The ekf_slam_data_association example drives the loop of ekf_slam with noisier odometry and two pairs of posts 40 cm apart, and associates the same data four ways: with the ids; by the nearest post within 0.2 m, which maps posts again and again; within 0.5 m, which confuses the close posts and drags the robot 1.8 m off; and by the Mahalanobis distance, which does as well as the ids. Its page has an image of the four maps.