Skip to content

Commit fd2966d

Browse files
Add option to override lethal cost in keepout zone (#757)
* Add option to override lethal cost in keepout zone Signed-off-by: Maurice <[email protected]> * Update configuration/packages/costmap-plugins/keepout_filter.rst Signed-off-by: Steve Macenski <[email protected]> --------- Signed-off-by: Maurice <[email protected]> Signed-off-by: Steve Macenski <[email protected]> Co-authored-by: Steve Macenski <[email protected]>
1 parent 0f2b4e4 commit fd2966d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

configuration/packages/costmap-plugins/keepout_filter.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,28 @@ Note: As Costmap Filters does not have the inflation layer applied to them (sinc
3131
Description
3232
Name of the incoming `CostmapFilterInfo <https://github.com/ros-navigation/navigation2/blob/main/nav2_msgs/msg/CostmapFilterInfo.msg>`_ topic having filter-related information. Published by Costmap Filter Info Server along with filter mask topic. For more details about Map and Costmap Filter Info servers configuration please refer to the :ref:`configuring_map_server` configuration page.
3333

34+
:``<filter name>``.override_lethal_cost:
35+
36+
====== =======
37+
Type Default
38+
------ -------
39+
bool False
40+
====== =======
41+
42+
Description
43+
When true, check if the robot is in a lethal keepout zone, if so, replaces those lethal costs with lethal_override_cost.
44+
45+
:``<filter name>``.lethal_override_cost:
46+
47+
====== =======
48+
Type Default
49+
------ -------
50+
double 252
51+
====== =======
52+
53+
Description
54+
The cost value written into those cells instead of lethal cost when override is active. Default sets cost very high to incentivize leaving the area as soon as possible.
55+
3456
:``<filter name>``.transform_tolerance:
3557

3658
====== =======
@@ -58,6 +80,8 @@ Example
5880
enabled: True
5981
filter_info_topic: "/costmap_filter_info"
6082
transform_tolerance: 0.1
83+
override_lethal_cost: True
84+
lethal_override_cost: 200
6185
...
6286
local_costmap:
6387
local_costmap:
@@ -71,3 +95,5 @@ Example
7195
enabled: True
7296
filter_info_topic: "/costmap_filter_info"
7397
transform_tolerance: 0.1
98+
override_lethal_cost: True
99+
lethal_override_cost: 200

0 commit comments

Comments
 (0)