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
jsk_rviz_plugins::PublishTopic::nh_
ros::NodeHandle nh_
Definition: publish_topic.h:45
panel.h
jsk_rviz_plugins::PublishTopic::send_topic_button_
QPushButton * send_topic_button_
Definition: publish_topic.h:41
ros::Publisher
rviz::Panel
ros.h
jsk_rviz_plugins::PublishTopic::output_topic_editor_
QLineEdit * output_topic_editor_
Definition: publish_topic.h:37
jsk_rviz_plugins::PublishTopic::sendVel
void sendVel()
Definition: publish_topic.h:30
jsk_rviz_plugins::PublishTopic::velocity_publisher_
ros::Publisher velocity_publisher_
Definition: publish_topic.h:43
jsk_rviz_plugins::PublishTopic::sendTopic
void sendTopic()
Definition: publish_topic.cpp:66
jsk_rviz_plugins::PublishTopic::updateTopic
void updateTopic()
Definition: publish_topic.cpp:40
jsk_rviz_plugins::PublishTopic::setTopic
void setTopic(const QString &topic)
Definition: publish_topic.cpp:46
jsk_rviz_plugins::PublishTopic::save
virtual void save(rviz::Config config) const
Definition: publish_topic.cpp:72
jsk_rviz_plugins::PublishTopic
Definition: publish_topic.h:15
jsk_rviz_plugins::PublishTopic::load
virtual void load(const rviz::Config &config)
Definition: publish_topic.cpp:79
config
config
jsk_rviz_plugins
Definition: __init__.py:1
jsk_rviz_plugins::PublishTopic::PublishTopic
PublishTopic(QWidget *parent=0)
Definition: publish_topic.cpp:17
rviz::Config
ros::NodeHandle
jsk_rviz_plugins::PublishTopic::output_topic_
QString output_topic_
Definition: publish_topic.h:39


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