Skip to content
Snippets Groups Projects
Unverified Commit 3c736f87 authored by Carlos A. Orduno's avatar Carlos A. Orduno Committed by GitHub
Browse files

Fix build errors (#1427)

Fixing build error introduced by #1356
parent fc81f1b2
No related branches found
No related tags found
No related merge requests found
...@@ -198,7 +198,7 @@ void ControllerServer::computeControl() ...@@ -198,7 +198,7 @@ void ControllerServer::computeControl()
RCLCPP_ERROR(get_logger(), "FollowPath called with controller name %s, " RCLCPP_ERROR(get_logger(), "FollowPath called with controller name %s, "
"which does not exist. Available controllers are %s.", "which does not exist. Available controllers are %s.",
c_name.c_str(), controller_ids_concat_.c_str()); c_name.c_str(), controller_ids_concat_.c_str());
action_server_->terminate_goals(); action_server_->terminate_current();
return; return;
} }
} else { } else {
......
...@@ -132,7 +132,7 @@ WaypointFollower::followWaypoints() ...@@ -132,7 +132,7 @@ WaypointFollower::followWaypoints()
// Check if asked to stop processing action // Check if asked to stop processing action
if (action_server_->is_cancel_requested()) { if (action_server_->is_cancel_requested()) {
RCLCPP_INFO(get_logger(), "Cancelling action."); RCLCPP_INFO(get_logger(), "Cancelling action.");
action_server_->terminate_goals(); action_server_->terminate_all();
return; return;
} }
...@@ -171,7 +171,7 @@ WaypointFollower::followWaypoints() ...@@ -171,7 +171,7 @@ WaypointFollower::followWaypoints()
"list and stop on failure is enabled." "list and stop on failure is enabled."
" Terminating action.", goal_index); " Terminating action.", goal_index);
result->missed_waypoints = failed_ids_; result->missed_waypoints = failed_ids_;
action_server_->terminate_goals(result); action_server_->terminate_current(result);
failed_ids_.clear(); failed_ids_.clear();
return; return;
} else { } else {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment