Skip to content

Commit 01e89ee

Browse files
mini-1235mach0312
authored andcommitted
Add halt timeout when cancelling actions (ros-navigation#858)
* Add halt timeout when cancelling actions Signed-off-by: Maurice <mauricepurnawan@gmail.com> * Precommit Signed-off-by: Maurice <mauricepurnawan@gmail.com> * Rename Signed-off-by: Maurice <mauricepurnawan@gmail.com> --------- Signed-off-by: Maurice <mauricepurnawan@gmail.com> Signed-off-by: Jaerak Son <sjr9017@naver.com>
1 parent a5c0ad7 commit 01e89ee

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

.codespell_words

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ implementors
44
retuned
55
segway
66
lightening
7+
statics

configuration/packages/configuring-bt-navigator.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,18 @@ Parameters
113113
Default timeout value (in milliseconds) while a BT action node is waiting for acknowledgement from an action server.
114114
This value will be overwritten for a BT node if the input port "server_timeout" is provided.
115115

116+
:default_cancel_timeout:
117+
118+
==== =======
119+
Type Default
120+
---- -------
121+
int 50
122+
==== =======
123+
124+
Description
125+
Default timeout (in seconds) for BT action node cancellation requests during node halt.
126+
This value will be overwritten for a BT node if the input port "cancel_timeout" is provided.
127+
116128
:wait_for_service_timeout:
117129

118130
==== =======
@@ -406,6 +418,8 @@ Example
406418
robot_base_frame: base_link
407419
transform_tolerance: 0.1
408420
filter_duration: 0.3
421+
default_server_timeout: 20
422+
default_cancel_timeout: 50
409423
introspection_mode: "disabled"
410424
default_nav_to_pose_bt_xml: replace/with/path/to/bt.xml # or $(find-pkg-share my_package)/behavior_tree/my_nav_to_pose_bt.xml
411425
default_nav_through_poses_bt_xml: replace/with/path/to/bt.xml # or $(find-pkg-share my_package)/behavior_tree/my_nav_through_poses_bt.xml

migration/Kilted.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,3 +789,10 @@ Key parameters:
789789
This goal checker is particularly useful for applications requiring precise alignment along specific axes, such as docking operations or warehouse navigation where lateral precision differs from forward/backward precision.
790790

791791
See :ref:`configuring_nav2_controller_axis_goal_checker_plugin` for full configuration details.
792+
793+
New default_cancel_timeout parameter in bt_navigator
794+
----------------------------------------------------
795+
796+
In `PR 5895 <https://github.com/ros-navigation/navigation2/pull/5895>`_, a new `default_cancel_timeout` parameter was introduced to address timeout issues during action cancellation, such as ``Failed to get result for follow_path in node halt!``.
797+
798+
The default value is set to `50` milliseconds, and should be adjusted based on the planning time and overall system performance.

0 commit comments

Comments
 (0)