Feature request
Feature description
I would like to propose a virtual costmap layer plugin that enables adding and managing dynamic zones and obstacles at runtime.
The plugin allows defining shapes such as polygons, circles, and lines directly in the costmap, with configurable cost values for each shape.
This makes it easier to represent temporary obstacles, safety zones, or restricted areas without requiring map changes or restarting Nav2.
Repository:
https://github.com/sherif1152/nav2-virtual-layer
Implementation considerations
The feature can be implemented as a standard Nav2 costmap layer plugin.
- Supports geometric shapes: circles, lines, and polygons (filled or open)
- Assigns configurable cost values per shape
- Provides runtime management via services (add/remove/clear)
- Supports time-based expiration of shapes
- Uses unique shape IDs for tracking and updates
- Applies updates directly to the layered costmap in real-time
- Handles coordinate transforms using TF
- Works with both global and local costmaps
The plugin follows Nav2’s existing plugin architecture and integrates without requiring core changes.
Feature request
Feature description
I would like to propose a virtual costmap layer plugin that enables adding and managing dynamic zones and obstacles at runtime.
The plugin allows defining shapes such as polygons, circles, and lines directly in the costmap, with configurable cost values for each shape.
This makes it easier to represent temporary obstacles, safety zones, or restricted areas without requiring map changes or restarting Nav2.
Repository:
https://github.com/sherif1152/nav2-virtual-layer
Implementation considerations
The feature can be implemented as a standard Nav2 costmap layer plugin.
The plugin follows Nav2’s existing plugin architecture and integrates without requiring core changes.