topic_subscriber.h
Go to the documentation of this file.
1 // Subcribes to input topics
2 // Author: Max Schwarz <max.schwarz@ais.uni-bonn.de>
3 
4 #ifndef ROSBAG_FANCY_TOPIC_SUBSCRIBER_H
5 #define ROSBAG_FANCY_TOPIC_SUBSCRIBER_H
6 
7 #include <ros/message_event.h>
8 #include <ros/subscriber.h>
9 #include <ros/steady_timer.h>
10 
11 namespace topic_tools { class ShapeShifter; }
12 
13 namespace rosbag_fancy
14 {
15 
16 class TopicManager;
17 class MessageQueue;
18 struct Topic;
19 
21 {
22 public:
23  explicit TopicSubscriber(TopicManager& topicManager, MessageQueue& queue);
24 private:
25  void handle(Topic& topic, const ros::MessageEvent<topic_tools::ShapeShifter const>& msg);
26  void updateStats();
27 
30 
31  std::vector<ros::Subscriber> m_subscribers;
32 
34 };
35 
36 }
37 
38 #endif
std::vector< ros::Subscriber > m_subscribers


rosbag_fancy
Author(s):
autogenerated on Fri Dec 9 2022 04:00:10