Skip to content

Commit

Permalink
Update goal response callback signature
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 15, 2020
1 parent ef1851e commit e3342f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tf2_ros/test/test_buffer_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ class MockBufferClient : public rclcpp::Node

auto send_goal_options = rclcpp_action::Client<LookupTransformAction>::SendGoalOptions();
send_goal_options.goal_response_callback =
[this](std::shared_future<GoalHandle::SharedPtr> future) {
auto goal_handle = future.get();
[this](GoalHandle::SharedPtr goal_handle) {
if (!goal_handle) {
this->accepted_ = false;
} else {
Expand Down

0 comments on commit e3342f9

Please sign in to comment.