Skip to content

Commit

Permalink
Return the actual future from async_send_request (ros#209)
Browse files Browse the repository at this point in the history
Recent changes to rclcpp in Rolling make it return a structure
rather than just the future.  In order to maintain this test,
return the actual future.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
  • Loading branch information
clalancette authored and wep21 committed Oct 30, 2021
1 parent da22d43 commit 0ad4940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion self_test/src/run_selftest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class ClientNode : public rclcpp::Node
}
}
};
return client_->async_send_request(request, response_received_callback);
return client_->async_send_request(request, response_received_callback).future;
}

private:
Expand Down

0 comments on commit 0ad4940

Please sign in to comment.