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 +};