Repository navigation
NavMap ObstacleFilter: optional obstacle memory - #126
Merged
Merged
Conversation
With memory.enabled (off by default), the evidence is accumulated per NavCel in log-odds (obstacles_logodds, OctoMap clamping): points above the surface are hits; the cells a ray from the robot crosses along the surface, and those where a ground point lies, are misses; unobserved cells can decay back to unknown (memory.decay_time). obstacles_sensor holds what the sensors know, and the obstacles layer is the static map with the sensors on top (navmap::combine_layer, max): they fill in unknown static cells and never erase a static obstacle. NO_INFORMATION is the declared unknown value of these layers. The filters tell a replaced layer by weak_ptr, not by its address. 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 #125
With
memory.enabled(off by default, so existing configurations behave as before),ObstacleFilterremembers what it has seen:obstacles_logodds, an int16 layer clamped as in OctoMap. A point above the surface is a hit. A cell is a miss when a ray from the robot to a point crosses it along the surface, or when a ground point lies on it.memory.decay_time, cells that are no longer observed fade back to unknown.obstacles_sensorholds obstacle, free or unknown for each cell.obstaclesis the static map with the sensor layer on top (navmap::combine_layer, max). The sensors can mark cells that the static map does not know about, but they never erase a static obstacle.NO_INFORMATIONis the declared unknown value of these layers.weak_ptrinstead of its address, so a cleared change record no longer causes a rebuild.Cost per cycle, with a robot moving through home2 at 5 cm and a 720-beam laser:
ObstacleFiltertakes 1.07 ms with memory and 0.24 ms without.Eight new tests cover:
The simulation battery gives the same results in
summit_warehouse_amcl,summit_bonxai_amclandtiago_navmap_bonxai_amcl, both with and without memory (all reach the goal).