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
panel.h
jsk_rviz_plugins::CancelAction::topicListLayout
Definition: cancel_action.h:63
jsk_rviz_plugins::CancelAction::topic_list_layouts_
std::vector< topicListLayout > topic_list_layouts_
Definition: cancel_action.h:71
jsk_rviz_plugins::CancelAction::topicListLayout::remove_button_
QPushButton * remove_button_
Definition: cancel_action.h:66
ros::Publisher
jsk_rviz_plugins::CancelAction::output_topic_
QString output_topic_
Definition: cancel_action.h:51
rviz::Panel
jsk_rviz_plugins::CancelAction::addTopic
void addTopic()
Definition: cancel_action.cpp:91
jsk_rviz_plugins::CancelAction::topicListLayout::publisher_
ros::Publisher publisher_
Definition: cancel_action.h:68
jsk_rviz_plugins::CancelAction::send_topic_button_
QPushButton * send_topic_button_
Definition: cancel_action.h:57
ros.h
jsk_rviz_plugins::CancelAction::add_topic_button_
QPushButton * add_topic_button_
Definition: cancel_action.h:53
jsk_rviz_plugins::CancelAction::sendTopic
void sendTopic()
Definition: cancel_action.cpp:130
jsk_rviz_plugins::CancelAction::initComboBox
void initComboBox()
Definition: cancel_action.cpp:51
jsk_rviz_plugins::CancelAction
Definition: cancel_action.h:22
jsk_rviz_plugins::CancelAction::m_sigmap
QSignalMapper * m_sigmap
Definition: cancel_action.h:59
jsk_rviz_plugins::CancelAction::add_topic_box_
QComboBox * add_topic_box_
Definition: cancel_action.h:55
jsk_rviz_plugins::CancelAction::topicListLayout::layout_
QHBoxLayout * layout_
Definition: cancel_action.h:65
jsk_rviz_plugins::CancelAction::layout
QVBoxLayout * layout
Definition: cancel_action.h:61
jsk_rviz_plugins::CancelAction::load
virtual void load(const rviz::Config &config)
Definition: cancel_action.cpp:154
jsk_rviz_plugins::CancelAction::addTopicList
void addTopicList(std::string topic_name)
Definition: cancel_action.cpp:101
jsk_rviz_plugins::CancelAction::nh_
ros::NodeHandle nh_
Definition: cancel_action.h:77
jsk_rviz_plugins::CancelAction::CancelAction
CancelAction(QWidget *parent=0)
Definition: cancel_action.cpp:19
jsk_rviz_plugins::CancelAction::topicListLayout::topic_name_
QLabel * topic_name_
Definition: cancel_action.h:67
jsk_rviz_plugins::CancelAction::topicListLayout::id
int id
Definition: cancel_action.h:64
jsk_rviz_plugins::CancelAction::OnClickDeleteButton
void OnClickDeleteButton(int id)
Definition: cancel_action.cpp:71
jsk_rviz_plugins::CancelAction::setTopic
void setTopic(const QString &topic)
Definition: cancel_action.h:36
jsk_rviz_plugins::CancelAction::updateTopic
void updateTopic()
Definition: cancel_action.h:40
config
config
jsk_rviz_plugins::CancelAction::velocity_publisher_
ros::Publisher velocity_publisher_
Definition: cancel_action.h:74
jsk_rviz_plugins
Definition: __init__.py:1
jsk_rviz_plugins::CancelAction::save
virtual void save(rviz::Config config) const
Definition: cancel_action.cpp:139
rviz::Config
ros::NodeHandle


jsk_rviz_plugins
Author(s): Kei Okada , Yohei Kakiuchi , Shohei Fujii , Ryohei Ueda
autogenerated on Tue Dec 10 2024 03:48:24