Repository navigation
NavMap filters: incremental, in place, and sparse layer updates - #124
Merged
Merged
Conversation
The filters update the NavMap in NavState in place instead of copying it twice each cycle. ObstacleFilter rebuilds its layer from the static map only when the map changes, and then writes just the cells that become obstacles or stop being one. InflationFilter keeps an exact navmap::DistanceField updated with the obstacle cells that come and go, and rewrites only the cells whose cost changes. The maps manager publishes sparse layer updates, only with subscribers (whole layers for a new one), and clears the recorded changes at the end of each cycle. NavMapFilter gets a virtual destructor: plugins are deleted through it. README: the obstacle filter's plugin name is ObstaclesFilter. 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 #123
get_ptrinstead of copying it in and out.navmap::DistanceField, updated with the obstacle cells that appear or disappear, and rewrites only the cells whose cost changes.inflate_layer_u8uses the exact field too.NavMapLayer, or the whole layer if many changed.NavMapFiltergets a virtual destructor, since plugins are deleted through it. The README now gives the obstacle filter's real plugin name,ObstaclesFilter.Time per cycle, with the robot moving and a 720-beam laser that sees the map's walls and a person walking around:
Two costs to know about:
New tests check that:
The simulation battery gives the same results in
summit_warehouse_amcl,summit_bonxai_amclandtiago_navmap_bonxai_amcl.