Skip to content

Commit 1434ef6

Browse files
Add costmap update timeout (#662)
* Add costmap update timeout in controller and planner Signed-off-by: Maurice-1235 <mauricepurnawan@gmail.com> * Remove [ Signed-off-by: Maurice-1235 <mauricepurnawan@gmail.com> * Update configuration/packages/configuring-planner-server.rst Signed-off-by: Steve Macenski <stevenmacenski@gmail.com> * Update configuration/packages/configuring-controller-server.rst Signed-off-by: Steve Macenski <stevenmacenski@gmail.com> --------- Signed-off-by: Maurice-1235 <mauricepurnawan@gmail.com> Signed-off-by: Steve Macenski <stevenmacenski@gmail.com> Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
1 parent 5b3bf46 commit 1434ef6

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

configuration/packages/configuring-controller-server.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ Parameters
2525
Description
2626
Frequency to run controller (Hz).
2727

28+
:costmap_update_timeout:
29+
30+
============== ========
31+
Type Default
32+
-------------- --------
33+
double 0.3
34+
============== ========
35+
36+
Description
37+
The timeout value (seconds) for the costmap to be fully updated before a control effort can be computed.
38+
2839
:use_realtime_priority:
2940

3041
============== =======
@@ -264,6 +275,7 @@ Example
264275
ros__parameters:
265276
use_sim_time: True
266277
controller_frequency: 20.0
278+
costmap_update_timeout: 0.3
267279
min_x_velocity_threshold: 0.001
268280
min_y_velocity_threshold: 0.5
269281
min_theta_velocity_threshold: 0.001

configuration/packages/configuring-planner-server.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Parameters
4444
============== ========
4545
Type Default
4646
-------------- --------
47-
double [20.0]
47+
double 20.0
4848
============== ========
4949

5050
Description
@@ -75,6 +75,17 @@ Parameters
7575
Description
7676
The lifecycle node bond mechanism publishing period (on the /bond topic). Disabled if inferior or equal to 0.0.
7777

78+
:costmap_update_timeout:
79+
80+
============== ========
81+
Type Default
82+
-------------- --------
83+
double 1.0
84+
============== ========
85+
86+
Description
87+
The timeout value (seconds) for the costmap to be fully updated before a planning request.
88+
7889
Default Plugins
7990
***************
8091

@@ -93,6 +104,7 @@ Example
93104
planner_server:
94105
ros__parameters:
95106
expected_planner_frequency: 20.0
107+
costmap_update_timeout: 1.0
96108
planner_plugins: ['GridBased']
97109
GridBased:
98110
plugin: 'nav2_navfn_planner::NavfnPlanner' # In Iron and older versions, "/" was used instead of "::"

0 commit comments

Comments
 (0)