35 #ifndef ROSCPP_TOPIC_H 36 #define ROSCPP_TOPIC_H 40 #include <boost/shared_ptr.hpp> 123 return waitForMessage<M>(topic, nh, timeout);
143 #endif // ROSCPP_TOPIC_H
boost::shared_ptr< M const > MConstPtr
void callback(const MConstPtr &message)
Encapsulates all options available for creating a Subscriber.
roscpp's interface for creating subscribers, publishers, etc.
ROSCPP_DECL void waitForMessageImpl(SubscribeOptions &ops, const boost::function< bool(void)> &ready_pred, NodeHandle &nh, ros::Duration timeout)
Internal method, do not use.
boost::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.