Skip to content

Commit 348e6a2

Browse files
nav2_behaviors: drive_on_heading: return TIMEOUT error code when exceeding time allowance
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 43d7f7e commit 348e6a2

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
@@ -104,7 +104,7 @@ class DriveOnHeading : public TimedBehavior<ActionT>
104104
RCLCPP_WARN(
105105
this->logger_,
106106
"Exceeded time allowance before reaching the DriveOnHeading goal - Exiting DriveOnHeading");
107-
return ResultStatus{Status::FAILED, ActionT::Result::NONE};
107+
return ResultStatus{Status::FAILED, ActionT::Result::TIMEOUT};
108108
}
109109

110110
geometry_msgs::msg::PoseStamped current_pose;

0 commit comments

Comments
 (0)