Fix Misplaced Footprint on Static Layer#4911
Fix Misplaced Footprint on Static Layer#4911HovorunBh wants to merge 2 commits intoros-navigation:mainfrom
Conversation
Signed-off-by: HovorunBh <fipogh@gmail.com>
b0a3fe5 to
8552eec
Compare
|
@HovorunBh, your PR has failed to build. Please check CI outputs and resolve issues. |
Codecov Report❌ Patch coverage is
... and 6 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
A few questions from a quick review to motivate discussion: Should anything in updateBounds also be updated? If the costmap is rolling, we find the TF lookup from map to global frame in Finally, should the condition also be if the costmap is rolling or only when it is different? |
|
@HovorunBh can you respond to my questions from Feb? |
|
Closing due to inactivity and not answering necessary questions to move forward |
Basic Info
Description of contribution in a few bullet points
I noticed that the robot footprint clearing is clearing the wrong spot on the local costmap. The offset is exactly odom->map TF

My static_layer on local costmap (rolling_window=True) subscribes to occupancy grid in 'map' frame
The robot pose received by the static layer is in the costmap's global frame, but it should be in the frame of the map it subscribes to, because otherwise the static layer is transformed by odom->map TF and the footprint ends up in the wrong place:
navigation2/nav2_costmap_2d/plugins/static_layer.cpp
Line 454 in 088c423
Description of how this change was tested
Future work that may be required in bullet points
For Maintainers: