jog_frame_panel.h
Go to the documentation of this file.
1 #ifndef JOG_FRAME_PANEL_H
2 #define JOG_FRAME_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 namespace jog_controller
16 {
18  {
19  Q_OBJECT
20  public:
21  JogFramePanel(QWidget* parent = 0);
22 
23  virtual void onInitialize();
24  virtual void load(const rviz::Config& config);
25  virtual void save(rviz::Config config) const;
26 
27  protected Q_SLOTS:
28  void update();
29  void updateFrame();
30  void updateGroups();
31  void updateTargetLink();
32  void respondEnable(bool checked);
33  void respondFrame(int index);
34  void respondTargetLink(int index);
35  void respondAxis(int index);
36  void respondOrientationAxis(int index);
37  void respondSliderChanged(int value);
38  void respondSliderReleased();
39  void respondOrientationSliderChanged(int value);
41  void publish();
42 
43  protected:
44  QPushButton* jog_button_;
45  QComboBox* group_cbox_;
46  QComboBox* frame_cbox_;
47  QComboBox* target_link_cbox_;
48  QComboBox* axis_cbox_;
49  QComboBox* ori_axis_cbox_;
50  QSlider* jog_slider_;
51  QSlider* ori_jog_slider_;
52  QLineEdit* pos_x_text_;
53  QLineEdit* pos_y_text_;
54  QLineEdit* pos_z_text_;
55  QLineEdit* rot_x_text_;
56  QLineEdit* rot_y_text_;
57  QLineEdit* rot_z_text_;
58  std::vector<std::string> group_names_;
59  std::vector<std::string> link_names_;
60  std::string frame_id_;
61  std::string target_link_id_;
62  std::string axis_id_;
63  std::string ori_axis_id_;
64  boost::mutex mutex_;
65  double jog_value_;
68 
69  void initFrameComboBox();
70  void initAxisComboBox();
72 
73  QLineEdit* makeNumericLabel();
74  void fillNumericLabel( QLineEdit* label, double value );
75  };
76 
77 } // namespace jog_controller
78 
79 #endif // JOG_FRAME_PANEL_H
std::vector< std::string > link_names_
config
void respondOrientationSliderChanged(int value)
unsigned int index
virtual void save(rviz::Config config) const
virtual void load(const rviz::Config &config)
std::vector< std::string > group_names_
void fillNumericLabel(QLineEdit *label, double value)
JogFramePanel(QWidget *parent=0)


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