jog_joint_panel.h
Go to the documentation of this file.
1 #ifndef JOG_JOINT_PANEL_H
2 #define JOG_JOINT_PANEL_H
3 
4 #ifndef Q_MOC_RUN
5 #include <ros/ros.h>
6 #include <rviz/panel.h>
7 #include <boost/thread.hpp>
8 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
9 # include <QtWidgets>
10 #else
11 # include <QtGui>
12 #endif
13 #endif
14 
15 #include "jog_slider.h"
16 
17 namespace jog_controller
18 {
20  {
21  Q_OBJECT
22  public:
23  JogJointPanel(QWidget* parent = 0);
24 
25  virtual void onInitialize();
26  virtual void load(const rviz::Config& config);
27  virtual void save(rviz::Config config) const;
28 
29  protected Q_SLOTS:
30  void update();
31  void updateJoint();
32  void respondEnable(bool checked);
33  void publish();
34 
35  protected:
36  QPushButton* jog_button_;
37  std::vector<QLabel*> joint_label_;
38  std::vector<JogSlider*> jog_slider_;
39 
40  std::string controller_name_;
41  std::vector<std::string> joint_name_;
43  std::string frame_id_;
44  std::vector<double> jog_value_;
46 
47  QLineEdit* makeNumericLabel();
48  void fillNumericLabel( QLineEdit* label, double value );
49  };
50 
51 } // namespace jog_controller
52 
53 #endif // JOG_JOINT_PANEL_H
virtual void save(rviz::Config config) const
config
std::vector< QLabel * > joint_label_
std::vector< JogSlider * > jog_slider_
JogJointPanel(QWidget *parent=0)
virtual void load(const rviz::Config &config)
std::vector< double > jog_value_
void fillNumericLabel(QLineEdit *label, double value)
std::vector< std::string > joint_name_


jog_controller
Author(s): Ryosuke Tajima
autogenerated on Sun May 17 2020 03:25:01