44 const boost::function<
bool(
void)>& ready_pred,
53 while (!ready_pred() && nh.
ok())
Manages an subscription callback on a specific topic.
This is the default implementation of the ros::CallbackQueueInterface.
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
Subscribe to a topic, version for class member function with bare pointer.
void callAvailable()
Invoke all callbacks currently in the queue. If a callback was not ready to be called, pushes it back onto the queue.
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.
bool ok() const
Check whether it's time to exit.
CallbackQueueInterface * callback_queue
Queue to add callbacks to. If NULL, the global callback queue will be used.