display_topics.hpp
Go to the documentation of this file.
1 #ifndef TOPICS_RVIZ_PLUGIN_DISPLAY_TOPICS_HPP
2 #define TOPICS_RVIZ_PLUGIN_DISPLAY_TOPICS_HPP
3 
4 #ifndef Q_MOC_RUN
5 #include <memory>
6 #include <ros/package.h>
7 #include <ros/ros.h>
8 #include <rviz/panel.h>
10 #endif
11 
12 #include <QApplication>
13 #include <QCheckBox>
14 #include <QDialog>
15 #include <QDialogButtonBox>
16 #include <QHeaderView>
17 #include <QLCDNumber>
18 #include <QLabel>
19 #include <QMessageBox>
20 #include <QPushButton>
21 #include <QScrollArea>
22 #include <QScrollBar>
23 #include <QTableWidget>
24 #include <QVBoxLayout>
25 #include <QtGlobal>
26 
28 {
29 
30 class DisplayTopics : public rviz::Panel
31 {
32 Q_OBJECT
33 
34 public:
35  DisplayTopics(QWidget* parent = NULL);
36  virtual ~DisplayTopics();
37 
38 Q_SIGNALS:
39  void displayMessageBox(const QString,
40  const QString,
41  const QString,
42  const QMessageBox::Icon);
43 
44 protected Q_SLOTS:
45  virtual void load(const rviz::Config& config);
46  virtual void save(rviz::Config config) const;
47 
48  void configure();
49  void updateTopicsDisplayed();
50 
51  void displayMessageBoxHandler(const QString title,
52  const QString message,
53  const QString info_msg = "",
54  const QMessageBox::Icon icon = QMessageBox::Icon::Information);
55 
56 protected:
58 
59  QVBoxLayout *layout_;
60  QTableWidget *table_;
61  std::map<std::string, std::string> displayed_topics_;
62  std::vector<std::shared_ptr<TopicInfo>> topic_infos_;
63 };
64 
65 }
66 
67 #endif
#define NULL
void displayMessageBoxHandler(const QString title, const QString message, const QString info_msg="", const QMessageBox::Icon icon=QMessageBox::Icon::Information)
config
std::vector< std::shared_ptr< TopicInfo > > topic_infos_
virtual void save(rviz::Config config) const
virtual void load(const rviz::Config &config)
std::map< std::string, std::string > displayed_topics_
DisplayTopics(QWidget *parent=NULL)
void displayMessageBox(const QString, const QString, const QString, const QMessageBox::Icon)


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