Skip to content

Commit 83652b3

Browse files
nav2_behaviors: drive_on_heading: return TIMEOUT error code when exceeding time allowance (#4836)
Until now, the NONE error code was returned when exceeding the time allowance. Let's return the more appropriate TIMEOUT error code instead. Signed-off-by: Dylan De Coeyer <[email protected]>
1 parent ff3392d commit 83652b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nav2_behaviors/include/nav2_behaviors/plugins/drive_on_heading.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class DriveOnHeading : public TimedBehavior<ActionT>
102102
RCLCPP_WARN(
103103
this->logger_,
104104
"Exceeded time allowance before reaching the DriveOnHeading goal - Exiting DriveOnHeading");
105-
return ResultStatus{Status::FAILED, ActionT::Result::NONE};
105+
return ResultStatus{Status::FAILED, ActionT::Result::TIMEOUT};
106106
}
107107

108108
geometry_msgs::msg::PoseStamped current_pose;

0 commit comments

Comments
 (0)