Skip to content

Commit

Permalink
Update goal response callback signature (#463)
Browse files Browse the repository at this point in the history
The signature changed in ros2/rclcpp#1311

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
  • Loading branch information
jacobperron committed Sep 21, 2020
1 parent 2b94e70 commit 11ec490
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ class FibonacciActionClient : public rclcpp::Node
rclcpp::TimerBase::SharedPtr timer_;

ACTION_TUTORIALS_CPP_LOCAL
void goal_response_callback(std::shared_future<GoalHandleFibonacci::SharedPtr> future)
void goal_response_callback(GoalHandleFibonacci::SharedPtr goal_handle)
{
auto goal_handle = future.get();
if (!goal_handle) {
RCLCPP_ERROR(this->get_logger(), "Goal was rejected by server");
} else {
Expand Down

0 comments on commit 11ec490

Please sign in to comment.