topic_info.hpp
Go to the documentation of this file.
1 #ifndef TOPICS_RVIZ_PLUGIN_TOPIC_INFO_HPP
2 #define TOPICS_RVIZ_PLUGIN_TOPIC_INFO_HPP
3 
4 #include <QLCDNumber>
5 #include <QLabel>
6 #include <QTime>
7 #include <ros/ros.h>
8 #include <std_msgs/Bool.h>
9 #include <std_msgs/Duration.h>
10 #include <std_msgs/Int8.h>
11 #include <std_msgs/Int16.h>
12 #include <std_msgs/Int32.h>
13 #include <std_msgs/Int64.h>
14 #include <std_msgs/Time.h>
15 #include <std_msgs/UInt8.h>
16 #include <std_msgs/UInt16.h>
17 #include <std_msgs/UInt32.h>
18 #include <std_msgs/UInt64.h>
19 #include <std_msgs/String.h>
20 #include <std_msgs/Float32.h>
21 #include <std_msgs/Float64.h>
22 
23 namespace topics_rviz_plugin
24 {
25 
26 class TopicInfo : public QObject
27 {
28 Q_OBJECT
29 
30 public:
31  TopicInfo(const std::string topic_name,
32  const std::string topic_type);
33 
34  virtual ~TopicInfo();
35 
36  const std::string topic_name_;
37  const std::string topic_type_;
38  std::shared_ptr<QLabel> label_;
39  std::shared_ptr<QWidget> display_;
40 
41 Q_SIGNALS:
42  void adjustLCDNumberOfDigits(const long unsigned number);
43 
44 protected:
47 
48 private Q_SLOTS:
49  void adjustLCDNumberOfDigitsHandler(const long unsigned number);
50 
51 private:
52  void boolCallback(const std_msgs::BoolConstPtr &msg);
53  void durationCallback(const std_msgs::DurationConstPtr &msg);
54  void float32Callback(const std_msgs::Float32ConstPtr &msg);
55  void float64Callback(const std_msgs::Float64ConstPtr &msg);
56  void int8Callback(const std_msgs::Int8ConstPtr &msg);
57  void int16Callback(const std_msgs::Int16ConstPtr &msg);
58  void int32Callback(const std_msgs::Int32ConstPtr &msg);
59  void int64Callback(const std_msgs::Int64ConstPtr &msg);
60  void stringCallback(const std_msgs::StringConstPtr &msg);
61  void timeCallback(const std_msgs::TimeConstPtr &msg);
62  void uint8Callback(const std_msgs::UInt8ConstPtr &msg);
63  void uint16Callback(const std_msgs::UInt16ConstPtr &msg);
64  void uint32Callback(const std_msgs::UInt32ConstPtr &msg);
65  void uint64Callback(const std_msgs::UInt64ConstPtr &msg);
66 };
67 
68 }
69 
70 #endif
void uint64Callback(const std_msgs::UInt64ConstPtr &msg)
Definition: topic_info.cpp:211
void int8Callback(const std_msgs::Int8ConstPtr &msg)
Definition: topic_info.cpp:142
void adjustLCDNumberOfDigitsHandler(const long unsigned number)
Definition: topic_info.cpp:86
const std::string topic_type_
Definition: topic_info.hpp:37
void float32Callback(const std_msgs::Float32ConstPtr &msg)
Definition: topic_info.cpp:126
void durationCallback(const std_msgs::DurationConstPtr &msg)
Definition: topic_info.cpp:115
void stringCallback(const std_msgs::StringConstPtr &msg)
Definition: topic_info.cpp:175
void float64Callback(const std_msgs::Float64ConstPtr &msg)
Definition: topic_info.cpp:134
const std::string topic_name_
Definition: topic_info.hpp:36
void timeCallback(const std_msgs::TimeConstPtr &msg)
Definition: topic_info.cpp:181
std::shared_ptr< QLabel > label_
Definition: topic_info.hpp:38
void int16Callback(const std_msgs::Int16ConstPtr &msg)
Definition: topic_info.cpp:150
std::shared_ptr< QWidget > display_
Definition: topic_info.hpp:39
void uint8Callback(const std_msgs::UInt8ConstPtr &msg)
Definition: topic_info.cpp:189
TopicInfo(const std::string topic_name, const std::string topic_type)
Definition: topic_info.cpp:6
void uint32Callback(const std_msgs::UInt32ConstPtr &msg)
Definition: topic_info.cpp:203
void int64Callback(const std_msgs::Int64ConstPtr &msg)
Definition: topic_info.cpp:166
void int32Callback(const std_msgs::Int32ConstPtr &msg)
Definition: topic_info.cpp:158
void uint16Callback(const std_msgs::UInt16ConstPtr &msg)
Definition: topic_info.cpp:196
void adjustLCDNumberOfDigits(const long unsigned number)
void boolCallback(const std_msgs::BoolConstPtr &msg)
Definition: topic_info.cpp:105


topics_rviz_plugin
Author(s): Victor Lamoine - Institut Maupertuis
autogenerated on Mon Jun 10 2019 15:34:43