diff --git a/action_tutorials/action_tutorials_cpp/src/fibonacci_action_client.cpp b/action_tutorials/action_tutorials_cpp/src/fibonacci_action_client.cpp index 8062cf11e..8ddcfc100 100644 --- a/action_tutorials/action_tutorials_cpp/src/fibonacci_action_client.cpp +++ b/action_tutorials/action_tutorials_cpp/src/fibonacci_action_client.cpp @@ -81,9 +81,8 @@ class FibonacciActionClient : public rclcpp::Node rclcpp::TimerBase::SharedPtr timer_; ACTION_TUTORIALS_CPP_LOCAL - void goal_response_callback(std::shared_future 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 {