cancel_action.h
Go to the documentation of this file.
1 #ifndef CANCEL_ACTION_H
2 #define CANCEL_ACTION_H
3 
4 #ifndef Q_MOC_RUN
5 #include <ros/ros.h>
6 
7 #include <rviz/panel.h>
8 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
9 # include <QtWidgets>
10 #else
11 # include <QtGui>
12 #endif
13 #endif
14 
15 class QLineEdit;
16 class QLabel;
17 class QPushButton;
18 //class QSignalMapper;
19 
20 namespace jsk_rviz_plugins
21 {
22  class CancelAction: public rviz::Panel
23  {
24  // This class uses Qt slots and is a subclass of QObject, so it needs
25  // the Q_OBJECT macro.
26 Q_OBJECT
27  public:
28  CancelAction( QWidget* parent = 0 );
29 
30 
31  virtual void load( const rviz::Config& config );
32  virtual void save( rviz::Config config ) const;
33 
34  public Q_SLOTS:
35 
36  void setTopic( const QString& topic ) {};
37 
38  protected Q_SLOTS:
39 
40  void updateTopic() {};
41 
42  void sendTopic();
43  void addTopic();
44  void initComboBox();
45 
46  void addTopicList(std::string topic_name);
47 
48  void OnClickDeleteButton(int id);
49 
50  protected:
51  QString output_topic_;
52 
53  QPushButton* add_topic_button_;
54 
55  QComboBox* add_topic_box_;
56 
57  QPushButton* send_topic_button_;
58 
59  QSignalMapper *m_sigmap;
60 
61  QVBoxLayout* layout;
62 
64  int id;
65  QHBoxLayout* layout_;
66  QPushButton* remove_button_;
67  QLabel* topic_name_;
69  };
70 
71  std::vector<topicListLayout> topic_list_layouts_;
72 
73  // The ROS publisher for the command velocity.
75 
76  // The ROS node handle.
78 
79  };
80 
81 }
82 
83 #endif // TELEOP_PANEL_H
void addTopicList(std::string topic_name)
void setTopic(const QString &topic)
Definition: cancel_action.h:36
virtual void load(const rviz::Config &config)
config
ros::Publisher velocity_publisher_
Definition: cancel_action.h:74
CancelAction(QWidget *parent=0)
std::vector< topicListLayout > topic_list_layouts_
Definition: cancel_action.h:71
virtual void save(rviz::Config config) const


jsk_rviz_plugins
Author(s): Kei Okada , Yohei Kakiuchi , Shohei Fujii , Ryohei Ueda
autogenerated on Sat Mar 20 2021 03:03:18