12 : m_topicManager{topicManager}
17 for(
auto& topic : topicManager.topics())
22 transportHints = transportHints.
udp();
24 boost::function<void(const ros::MessageEvent<topic_tools::ShapeShifter const>&)> cb{
29 cb, {}, transportHints
77 topic.numPublishers = sub.getNumPublishers();
const boost::shared_ptr< ConstMessage > & getConstMessage() const
decltype(sizeof(void *)) typede size_t)
bool push(const Message &msg)
std::vector< Topic > & topics()
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
SteadyTimer createSteadyTimer(WallDuration period, void(T::*callback)(const SteadyTimerEvent &), T *obj, bool oneshot=false, bool autostart=true) const
void notifyMessage(std::uint64_t bytes)
std::vector< ros::Subscriber > m_subscribers
TopicSubscriber(TopicManager &topicManager, MessageQueue &queue)
TopicManager & m_topicManager
std::uint64_t dropCounter
ros::Time lastMessageReceivedROSTime
void handle(Topic &topic, const ros::MessageEvent< topic_tools::ShapeShifter const > &msg)