From 7f6f89ab95d11bbc835723488aca68d9693c4f88 Mon Sep 17 00:00:00 2001 From: jackycstw <48200829+jackycstw@users.noreply.github.com> Date: Tue, 29 Sep 2020 13:27:41 +0800 Subject: [PATCH] Update snapshotclient rclcpp::FutureReturnCode::SUCCESS should be rclcpp::executor::FutureReturnCode::SUCCESS, tested in eloquent. --- src/snapshot_client.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/snapshot_client.hpp b/src/snapshot_client.hpp index f233890..c898596 100644 --- a/src/snapshot_client.hpp +++ b/src/snapshot_client.hpp @@ -33,7 +33,7 @@ class SnapshotClient : public BT::SyncActionNode sleep(3); // To stablize the camera auto request = std::make_shared(); auto result_future = client_->async_send_request(request); - if (rclcpp::spin_until_future_complete(node_, result_future) != rclcpp::FutureReturnCode::SUCCESS) + if (rclcpp::spin_until_future_complete(node_, result_future) != rclcpp::executor::FutureReturnCode::SUCCESS) { RCLCPP_ERROR(node_->get_logger(), "Unable to call /save"); return BT::NodeStatus::FAILURE; @@ -45,4 +45,4 @@ class SnapshotClient : public BT::SyncActionNode private: rclcpp::Node::SharedPtr node_; rclcpp::Client::SharedPtr client_; -}; \ No newline at end of file +};