Skip to content

Commit 9ef13a2

Browse files
nav2_behaviors: drive_on_heading: return TIMEOUT error code when exceeding time allowance (ros-navigation#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 <dylan.decoeyer@quimesis.be> Signed-off-by: stevedanomodolor <stevedan.o.omodolor@gmail.com>
1 parent 6108709 commit 9ef13a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nav2_behaviors/include/nav2_behaviors/plugins/drive_on_heading.hpp

Lines changed: 1 addition & 1 deletion
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)