-
Notifications
You must be signed in to change notification settings - Fork 1.6k
nav2_costmap_2d: static_layer: add grid value interpretation for inscribed inflated obstacles #5561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@DylanDeCoeyer-Quimesis I need much more detailed explanation of this, possibly with a diagram to meaningfully review it. I believe you that something may benefit from this, but I need to understand in detail like you do with references 😉 This touches a very old and very established piece of software, so some explanation for myself and future readers is important |
@SteveMacenski sure! The class To recover the original Costmap2D from the OccupancyGrid on the subscription side, the subscribers must use the same (reciprocal) conversion table. However, in the case of the StaticLayer subscription, the special value attributed to the inscribed inflated obstacle was ignored. The usual scaling factor was applied:
So, this costmap layer initially supposed to copy the incoming costmap was transforming every inscribed inflated obstacle cells (253) into non lethal obstacle cells with cost of 251. If this is the expected behavior for any historical reason, then I'll have at least to make the |
Thanks! LGTM. CI had an unexpected test fail, so running again to make sure it wasn't just a rare one off. |
@DylanDeCoeyer-Quimesis please rebase or pull in main to acquire #5569 to fix CI |
…ribed inflated obstacles Until now, the special OccupancyGrid value "99" attributed to the inscribed inflated obstacles was mapped to 251 on conversion to Costmap2D, using the default linear relation. This is incorrect since a special value exists in the Costmap2D for inscribed obstacles: 253. This commit makes sure that the correct value is used in case of inflated obstacle. Signed-off-by: Dylan De Coeyer <[email protected]>
0542a09
to
2d67d9b
Compare
Signed-off-by: Dylan De Coeyer <[email protected]>
2d67d9b
to
6a58990
Compare
@SteveMacenski there is still an issue with the unit tests, but I don't understand it. It says the number of INSCRIBED_INFLATED_OBSTACLE cells is 28 while 78 was expected by the
|
I'm not sure - I'd look at printing the map (uncommenting |
Until now, the special OccupancyGrid value "99" attributed to the inscribed inflated obstacles was mapped to 251 on conversion to Costmap2D, using the default linear relation. This is incorrect since a special value exists in the Costmap2D for inscribed obstacles: 253.
This commit makes sure that the correct value is used in case of inflated obstacle.
Basic Info
Description of contribution in a few bullet points
Description of documentation updates required from your changes
Description of how this change was tested
Future work that may be required in bullet points
For Maintainers:
backport-*
.