ROSCPP_DECL void waitForMessageImpl(SubscribeOptions &ops, const std::function< bool(void)> &ready_pred, NodeHandle &nh, ros::Duration timeout)
Internal method, do not use.
std::shared_ptr< M const > waitForMessage(const std::string &topic, NodeHandle &nh, ros::Duration timeout)
Wait for a single message to arrive on a topic, with timeout.