Skip to content

Commit

Permalink
Update goal response callback signature (#291)
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 155225c commit d507e65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rclcpp/actions/minimal_action_client/member_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ class MinimalActionClient : public rclcpp::Node
rclcpp::TimerBase::SharedPtr timer_;
bool goal_done_;

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 d507e65

Please sign in to comment.