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
panel.h
jsk_rviz_plugins::RecordAction::IDLE
@ IDLE
Definition: record_action.h:25
jsk_rviz_plugins::RecordAction
Definition: record_action.h:22
ros::Publisher
rviz::Panel
jsk_rviz_plugins::RecordAction::output_topic_
QString output_topic_
Definition: record_action.h:54
ros.h
jsk_rviz_plugins::RecordAction::motionListLayout
Definition: record_action.h:65
jsk_rviz_plugins::RecordAction::recordClick
void recordClick()
Definition: record_action.cpp:77
jsk_rviz_plugins::RecordAction::motionListLayout::play_button_
QPushButton * play_button_
Definition: record_action.h:68
jsk_rviz_plugins::RecordAction::motionListLayout::id
int id
Definition: record_action.h:66
jsk_rviz_plugins::RecordAction::motionListLayout::remove_button_
QPushButton * remove_button_
Definition: record_action.h:69
jsk_rviz_plugins::RecordAction::save
virtual void save(rviz::Config config) const
Definition: record_action.cpp:132
jsk_rviz_plugins::RecordAction::record_motion_name_editor_
QLineEdit * record_motion_name_editor_
Definition: record_action.h:52
jsk_rviz_plugins::RecordAction::RecordAction
RecordAction(QWidget *parent=0)
Definition: record_action.cpp:13
jsk_rviz_plugins::RecordAction::m_delete_sigmap_
QSignalMapper * m_delete_sigmap_
Definition: record_action.h:60
jsk_rviz_plugins::RecordAction::nh_
ros::NodeHandle nh_
Definition: record_action.h:76
jsk_rviz_plugins::RecordAction::OnClickPlayButton
void OnClickPlayButton(int id)
Definition: record_action.cpp:41
jsk_rviz_plugins::RecordAction::m_play_sigmap_
QSignalMapper * m_play_sigmap_
Definition: record_action.h:61
jsk_rviz_plugins::RecordAction::pub_
ros::Publisher pub_
Definition: record_action.h:75
jsk_rviz_plugins::RecordAction::updateTopic
void updateTopic()
Definition: record_action.h:41
jsk_rviz_plugins::RecordAction::commandPlay
void commandPlay()
Definition: record_action.h:43
jsk_rviz_plugins::RecordAction::add_topic_box_
QComboBox * add_topic_box_
Definition: record_action.h:58
jsk_rviz_plugins::RecordAction::setTopic
void setTopic(const QString &topic)
Definition: record_action.h:37
jsk_rviz_plugins::RecordAction::load
virtual void load(const rviz::Config &config)
Definition: record_action.cpp:137
jsk_rviz_plugins::RecordAction::OnClickDeleteButton
void OnClickDeleteButton(int id)
Definition: record_action.cpp:55
jsk_rviz_plugins::RecordAction::RecordState
RecordState
Definition: record_action.h:24
jsk_rviz_plugins::RecordAction::motionListLayout::layout_
QHBoxLayout * layout_
Definition: record_action.h:67
jsk_rviz_plugins::RecordAction::record_interface_button_
QPushButton * record_interface_button_
Definition: record_action.h:56
jsk_rviz_plugins::RecordAction::rstate_
RecordState rstate_
Definition: record_action.h:77
jsk_rviz_plugins::RecordAction::layout
QVBoxLayout * layout
Definition: record_action.h:63
jsk_rviz_plugins::RecordAction::motionListLayout::target_name_
QLabel * target_name_
Definition: record_action.h:70
jsk_rviz_plugins::RecordAction::motion_list_layouts_
std::vector< motionListLayout > motion_list_layouts_
Definition: record_action.h:73
jsk_rviz_plugins::RecordAction::RECORD
@ RECORD
Definition: record_action.h:26
jsk_rviz_plugins
Definition: __init__.py:1
jsk_rviz_plugins::RecordAction::addTopicList
void addTopicList(std::string topic_name)
Definition: record_action.cpp:86
rviz::Config
ros::NodeHandle


jsk_rviz_plugins
Author(s): Kei Okada , Yohei Kakiuchi , Shohei Fujii , Ryohei Ueda
autogenerated on Fri Dec 13 2024 03:49:57