publish_topic.h
Go to the documentation of this file.
1 #ifndef PUBLISH_TOPIC_H
2 #define PUBLISH_TOPIC_H
3 
4 #ifndef Q_MOC_RUN
5 #include <ros/ros.h>
6 
7 #include <rviz/panel.h>
8 #endif
9 
10 class QLineEdit;
11 class QPushButton;
12 
13 namespace jsk_rviz_plugins
14 {
15  class PublishTopic: public rviz::Panel
16  {
17 Q_OBJECT
18  public:
19  PublishTopic( QWidget* parent = 0 );
20 
21  virtual void load( const rviz::Config& config );
22  virtual void save( rviz::Config config ) const;
23 
24  public Q_SLOTS:
25 
26  void setTopic( const QString& topic );
27 
28  protected Q_SLOTS:
29 
30  void sendVel() {}
31 
32  void updateTopic();
33 
34  void sendTopic();
35 
36  protected:
38 
39  QString output_topic_;
40 
41  QPushButton* send_topic_button_;
42 
44 
46  };
47 
48 }
49 
50 #endif
PublishTopic(QWidget *parent=0)
ros::Publisher velocity_publisher_
Definition: publish_topic.h:43
virtual void save(rviz::Config config) const
config
void setTopic(const QString &topic)
topic
virtual void load(const rviz::Config &config)


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