Repository navigation
AmclRelocalizeMitigation: pose resets instead of rotation; AMCL refines after a reset - #174
Merged
Merged
Conversation
…es after a reset Closes #173. Signed-off-by: Francisco Martín Rico <fmrico@gmail.com>
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.
Closes #173.
AmclRelocalizeMitigationmakes up toattemptspose resets (default 5) at the pose from before the recovery, using RViz's covariance. Each attempt waitsattempt_timeout(default 5 s) for convergence. The first attempt uses the exact pose; the others add an offset of up tomax_offset(default 1 m), uniform over the disc. The robot is stopped every cycle.quality_ratiolike the evaluator. Without a robot pose it fails without publishing anything.rotation_speedandtimeoutare no longer used; setting them logs a warning.AMCLLocalizer: after an initial pose, reseeds use noise from the reset covariance ×reset_refine_noise(0.25), decaying overreset_refine_time(3 s), so a stopped robot converges. Both parameters can be set to 0, which turns the refinement off; negative values are rejected.Kidnap test on the Kobuki playground (0.4, 0.6 and 0.9 m): all three recovered on the first attempt in 2–3 s, final error 0.03–0.09 m, and no re-trigger in the 15 s watched afterwards.