Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/snapshot_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SnapshotClient : public BT::SyncActionNode
sleep(3); // To stablize the camera
auto request = std::make_shared<std_srvs::srv::Empty::Request>();
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;
Expand All @@ -45,4 +45,4 @@ class SnapshotClient : public BT::SyncActionNode
private:
rclcpp::Node::SharedPtr node_;
rclcpp::Client<std_srvs::srv::Empty>::SharedPtr client_;
};
};