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 <[email protected]>
  • Loading branch information
aosmw committed Sep 13, 2024
1 parent b947597 commit 9db0eef
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 @@ -321,6 +321,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 @@ -355,6 +356,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 @@ -374,6 +376,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 9db0eef

Please sign in to comment.