record_action.h
Go to the documentation of this file.
1 #ifndef RECORD_ACTION_H
2 #define RECORD_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 #include <jsk_rviz_plugins/RecordCommand.h>
14 #endif
15 
16 class QLineEdit;
17 class QLabel;
18 class QPushButton;
19 
20 namespace jsk_rviz_plugins
21 {
22  class RecordAction: public rviz::Panel
23  {
25  IDLE = 0,
26  RECORD = 1
27  };
28  Q_OBJECT
29  public:
30  RecordAction( QWidget* parent = 0 );
31 
32  virtual void load( const rviz::Config& config );
33  virtual void save( rviz::Config config ) const;
34 
35  public Q_SLOTS:
36 
37  void setTopic( const QString& topic ) {}
38 
39  protected Q_SLOTS:
40 
41  void updateTopic() {};
42 
43  void commandPlay() {};
44  void recordClick();
45 
46  void addTopicList(std::string topic_name);
47 
48  void OnClickPlayButton(int id);
49  void OnClickDeleteButton(int id);
50 
51  protected:
53 
54  QString output_topic_;
55 
57 
58  QComboBox* add_topic_box_;
59 
60  QSignalMapper *m_delete_sigmap_;
61  QSignalMapper *m_play_sigmap_;
62 
63  QVBoxLayout* layout;
64 
66  int id;
67  QHBoxLayout* layout_;
68  QPushButton* play_button_;
69  QPushButton* remove_button_;
70  QLabel* target_name_;
71  };
72 
73  std::vector<motionListLayout> motion_list_layouts_;
74 
78  };
79 
80 }
81 
82 #endif
void addTopicList(std::string topic_name)
void setTopic(const QString &topic)
Definition: record_action.h:37
RecordAction(QWidget *parent=0)
virtual void save(rviz::Config config) const
QPushButton * record_interface_button_
Definition: record_action.h:56
std::vector< motionListLayout > motion_list_layouts_
Definition: record_action.h:73
virtual void load(const rviz::Config &config)
QSignalMapper * m_delete_sigmap_
Definition: record_action.h:60


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