Skip to content

Commit

Permalink
Update controller server goal checker (ros-navigation#3240)
Browse files Browse the repository at this point in the history
* [FIX] Update controller server goal checker

* [FIX] Autoformat code

* [FIX] Misplaced tabs.

Co-authored-by: Pedro Alejandro González <71234974+pepisg@users.noreply.github.com>
  • Loading branch information
2 people authored and shrijitsingh99 committed Nov 8, 2022
1 parent c888561 commit c255ba6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nav2_controller/src/controller_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,16 @@ void ControllerServer::updateGlobalPath()
action_server_->terminate_current();
return;
}
std::string current_goal_checker;
if (findGoalCheckerId(goal->goal_checker_id, current_goal_checker)) {
current_goal_checker_ = current_goal_checker;
} else {
RCLCPP_INFO(
get_logger(), "Terminating action, invalid goal checker %s requested.",
goal->goal_checker_id.c_str());
action_server_->terminate_current();
return;
}
setPlannerPath(goal->path);
}
}
Expand Down

0 comments on commit c255ba6

Please sign in to comment.