-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added docs for plugin container layer Signed-off-by: alexander <[email protected]> * set default plugin list to empty string array Signed-off-by: alexander <[email protected]> * added PluginContainerLayer in tuning guide Signed-off-by: alexander <[email protected]> * added example image and settings to plugin container layer configuration guide Signed-off-by: alexander <[email protected]> * clarified plugin descriptions Signed-off-by: alexander <[email protected]> * Update configuration/packages/costmap-plugins/plugin_container.rst Co-authored-by: Steve Macenski <[email protected]> Signed-off-by: alexanderjyuen <[email protected]> * example image shows different inflations Signed-off-by: alexander <[email protected]> * modified yaml to match example image Signed-off-by: alexander <[email protected]> * added to Migration guide Signed-off-by: alexander <[email protected]> * updated Migration wording Signed-off-by: alexander <[email protected]> --------- Signed-off-by: alexander <[email protected]> Signed-off-by: alexanderjyuen <[email protected]> Co-authored-by: Steve Macenski <[email protected]>
- Loading branch information
1 parent
1e7510d
commit 560f511
Showing
6 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
95 changes: 95 additions & 0 deletions
95
configuration/packages/costmap-plugins/plugin_container.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
.. plugin_container: | ||
Plugin Container Layer Parameters | ||
================================= | ||
|
||
This implements a costmap layer which combines costmap layers within a submap, which can then be integrated with other submaps in the same parent costmap. An example would be the use of different inflation layers for different sensors, objects, or static layers | ||
|
||
``<plugin container layer>`` is the corresponding plugin name selected for this type. | ||
|
||
:``<plugin container layer>``.enabled: | ||
|
||
==== ======= | ||
Type Default | ||
---- ------- | ||
bool True | ||
==== ======= | ||
|
||
Description | ||
Whether it is enabled. | ||
|
||
:``<plugin container layer>``.plugins: | ||
|
||
============== ======= | ||
Type Default | ||
-------------- ------- | ||
vector<string> {} | ||
============== ======= | ||
|
||
Description | ||
List of mapped costmap layer names for parameter namespaces and names. | ||
|
||
Note | ||
Costmap filters are presently unsupported | ||
|
||
Example | ||
******* | ||
.. code-block:: yaml | ||
global_costmap: | ||
ros__parameters: | ||
update_frequency: 1.0 | ||
publish_frequency: 1.0 | ||
global_frame: map | ||
robot_base_frame: base_link | ||
robot_radius: 0.22 | ||
resolution: 0.05 | ||
track_unknown_space: true | ||
plugins: ["plugin_container_static_layer", "plugin_container_obstacle_layer"] | ||
plugin_container_static_layer: | ||
plugin: "nav2_costmap_2d::PluginContainerLayer" | ||
enabled: True | ||
combination_method: 1 | ||
plugins: ["static_layer", "inflation_layer"] | ||
static_layer: | ||
plugin: "nav2_costmap_2d::StaticLayer" | ||
map_subscribe_transient_local: True | ||
inflation_layer: | ||
plugin: "nav2_costmap_2d::InflationLayer" | ||
cost_scaling_factor: 2.0 | ||
inflation_radius: 0.5 | ||
plugin_container_obstacle_layer: | ||
plugin: "nav2_costmap_2d::PluginContainerLayer" | ||
enabled: True | ||
combination_method: 1 | ||
plugins: ["obstacle_layer", "inflation_layer"] | ||
obstacle_layer: | ||
plugin: "nav2_costmap_2d::ObstacleLayer" | ||
enabled: True | ||
observation_sources: scan | ||
scan: | ||
topic: /scan | ||
max_obstacle_height: 2.0 | ||
clearing: True | ||
marking: True | ||
data_type: "LaserScan" | ||
raytrace_max_range: 3.0 | ||
raytrace_min_range: 0.0 | ||
obstacle_max_range: 2.5 | ||
obstacle_min_range: 0.0 | ||
inflation_layer: | ||
plugin: "nav2_costmap_2d::InflationLayer" | ||
cost_scaling_factor: 3.0 | ||
inflation_radius: 1.0 | ||
The above example settings, when applied to the Nav2 turtlebot simulation would give the following costmap on startup | ||
|
||
.. figure:: plugin_container_layer.png | ||
:align: center | ||
:alt: Costmap generated by plugin container layer | ||
|
||
Costmap generated by turtlebot using example plugin container layer settings | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
This file contains 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