Skip to content

Commit

Permalink
nav2_waypoint_follower: clear error_msg when clearing error_code (ros…
Browse files Browse the repository at this point in the history
…-navigation#4341)

Signed-off-by: Mike Wake <michael.wake@aosgrp.com.au>
  • Loading branch information
aosmw authored and ewak committed Feb 11, 2025
1 parent e9c758e commit c603204
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nav2_waypoint_follower/src/waypoint_follower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ void WaypointFollower::followWaypointsHandler(
RCLCPP_WARN(get_logger(), result->error_msg.c_str());
action_server->terminate_current(result);
current_goal_status_.error_code = 0;
current_goal_status_.error_msg = "";
return;
} else {
RCLCPP_INFO(
Expand Down Expand Up @@ -356,6 +357,7 @@ void WaypointFollower::followWaypointsHandler(
RCLCPP_WARN(get_logger(), result->error_msg.c_str());
action_server->terminate_current(result);
current_goal_status_.error_code = 0;
current_goal_status_.error_msg = "";
return;
} else {
RCLCPP_INFO(
Expand All @@ -375,6 +377,7 @@ void WaypointFollower::followWaypointsHandler(
poses.size());
action_server->succeeded_current(result);
current_goal_status_.error_code = 0;
current_goal_status_.error_msg = "";
return;
}
RCLCPP_INFO(
Expand Down

0 comments on commit c603204

Please sign in to comment.