Function rclcpp::wait_for_message(MsgT&, std::shared_ptr<rclcpp::Subscription<MsgT>>, std::shared_ptr<rclcpp::Context>, std::chrono::duration<Rep, Period>)

Function Documentation

bool rclcpp::wait_for_message(MsgT &out, std::shared_ptr<rclcpp::Subscription<MsgT>> subscription, std::shared_ptr<rclcpp::Context> context, std::chrono::duration<Rep, Period> time_to_wait = std::chrono::duration<Rep, Period>(-1))