pose_widget.hpp
Go to the documentation of this file.
1 #ifndef RAM_QT_GUIS_MODIFY_WIDGETS_POSE_WIDGET_HPP
2 #define RAM_QT_GUIS_MODIFY_WIDGETS_POSE_WIDGET_HPP
3 
4 #include <Eigen/Geometry>
5 
6 #include <rviz/panel.h>
7 
8 #include <QDoubleSpinBox>
9 #include <QGridLayout>
10 #include <QLabel>
11 #include <QVBoxLayout>
12 #include <QWidget>
13 
14 namespace ram_qt_guis
15 {
16 class Pose : public QWidget
17 {
18 Q_OBJECT
19  public:
20  Pose(const QString name,
21  QWidget* parent = NULL);
22 
23  void save(rviz::Config);
24  void load(const rviz::Config&);
25 
26  void setTranslationEnabled(const bool);
27  void setText(const QString name);
28  void getPose(Eigen::Affine3d &pose);
29  Eigen::Affine3d getPose();
30  void resetPose();
31 
32  QVBoxLayout* getLayout();
33 
34 Q_SIGNALS:
35  void valueChanged();
36 
37 protected Q_SLOTS:
38  void computePose();
39 
40 protected:
41  const double deg2rad_;
42  const double rad2deg_;
43 
44  Eigen::Affine3d convertXYZWPRtoMatrix(const double x,
45  const double y,
46  const double z,
47  const double w,
48  const double p,
49  const double r);
50 
51  Eigen::Affine3d pose_;
52 
53  QVBoxLayout *layout_;
54  QLabel *label_pose_;
55  QDoubleSpinBox *pose_x_;
56  QDoubleSpinBox *pose_y_;
57  QDoubleSpinBox *pose_z_;
58  QDoubleSpinBox *pose_w_;
59  QDoubleSpinBox *pose_p_;
60  QDoubleSpinBox *pose_r_;
61 };
62 
63 }
64 
65 #endif
QDoubleSpinBox * pose_y_
Definition: pose_widget.hpp:56
#define NULL
QDoubleSpinBox * pose_r_
Definition: pose_widget.hpp:60
const double rad2deg_
Definition: pose_widget.hpp:42
Eigen::Affine3d getPose()
QDoubleSpinBox * pose_p_
Definition: pose_widget.hpp:59
Eigen::Affine3d convertXYZWPRtoMatrix(const double x, const double y, const double z, const double w, const double p, const double r)
QLabel * label_pose_
Definition: pose_widget.hpp:54
void setTranslationEnabled(const bool)
void save(rviz::Config)
Definition: pose_widget.cpp:81
QDoubleSpinBox * pose_x_
Definition: pose_widget.hpp:55
QDoubleSpinBox * pose_w_
Definition: pose_widget.hpp:58
QVBoxLayout * getLayout()
Pose(const QString name, QWidget *parent=NULL)
Definition: pose_widget.cpp:6
void load(const rviz::Config &)
Definition: pose_widget.cpp:92
void setText(const QString name)
QDoubleSpinBox * pose_z_
Definition: pose_widget.hpp:57
const double deg2rad_
Definition: pose_widget.hpp:41
QVBoxLayout * layout_
Definition: pose_widget.hpp:53
Eigen::Affine3d pose_
Definition: pose_widget.hpp:51


ram_qt_guis
Author(s): Victor Lamoine - Institut Maupertuis
autogenerated on Mon Jun 10 2019 14:50:11