Add ObstacleLayer to Represent Unmapped and Dynamic Obstacles in the Layered Costmap#85
Merged
JustusBraun merged 3 commits intoAug 17, 2025
Conversation
This layer maps obstacles represented by PointCloud2 messages onto the mesh surface using raycasting. The vertices of the obstructed faces are added to the lethal vertex set and their cost is set to infinity. This enables replanning around dynamic and unmapped obstacles and dynamic obstacle avoidance (support depends on the controller plugin).
… acceleration datastructure instance.
Collaborator
Author
|
I moved the raycasting interface to the MeshMap so it can be shared across all plugins that access the MeshMap. I also changed the obstacle layer to use the robot's down axis in its local frame as the projection direction. The axis and the axis' reference frame are configurable via ROS parameters. They default to |
amock
approved these changes
Aug 17, 2025
JustusBraun
merged commit Aug 17, 2025
ee913e6
into
naturerobots:feature/dynamic-cost-updates
2 checks passed
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.
This layer maps obstacles represented by PointCloud2 messages onto the mesh surface using raycasting. The vertices of the obstructed faces are added to the lethal vertex set and their cost is set to infinity. This enables replanning around dynamic and unmapped obstacles and dynamic obstacle avoidance (support depends on the controller plugin).
The layer uses lvr2's raycasting interfaces to cast rays. We use the embree backend if available, otherwise we fall back to the
lvr2::BVHRaycasterimplementation. I currently recommend to installembree4before compiling the lvr2 project to enable the embree backend as it is much better optimized.I have also added a method to the MeshMap to allow layers to access the shared tf buffer.