17 #ifndef _GAZEBO_GUI_JOINTCONTROLWIDGET_HH_ 18 #define _GAZEBO_GUI_JOINTCONTROLWIDGET_HH_ 34 class JointControlWidgetPrivate;
35 class JointForceControl;
36 class JointForceControlPrivate;
37 class JointPIDPosControl;
38 class JointPIDPosControlPrivate;
39 class JointPIDVelControl;
40 class JointPIDVelControlPrivate;
59 public:
void SetModelName(
const std::string &_modelName);
62 private slots:
void OnReset();
67 private slots:
void OnForceChanged(
double _value,
68 const std::string &_name);
73 private slots:
void OnPIDPosChanged(
double _value,
74 const std::string &_name);
79 private slots:
void OnPPosGainChanged(
double _value,
80 const std::string &_name);
85 private slots:
void OnDPosGainChanged(
double _value,
86 const std::string &_name);
91 private slots:
void OnIPosGainChanged(
double _value,
92 const std::string &_name);
97 private slots:
void OnPIDVelChanged(
double _value,
98 const std::string &_name);
103 private slots:
void OnPVelGainChanged(
double _value,
104 const std::string &_name);
109 private slots:
void OnDVelGainChanged(
double _value,
110 const std::string &_name);
115 private slots:
void OnIVelGainChanged(
double _value,
116 const std::string &_name);
120 private slots:
void OnPIDPosUnitsChanged(
int _index);
126 private:
void AddScrollTab(QTabWidget *_tabPane,
127 QGridLayout *_tabLayout,
128 const QString &_name);
132 private:
void LayoutForceTab(msgs::Model &_modelMsg);
136 private:
void LayoutPositionTab(msgs::Model &_modelMsg);
140 private:
void LayoutVelocityTab(msgs::Model &_modelMsg);
144 private: std::unique_ptr<JointControlWidgetPrivate> dataPtr;
159 QGridLayout *_layout, QWidget *_parent,
int _index);
165 public:
void Reset();
169 public slots:
void OnChanged(
double _value);
175 Q_SIGNALS:
void changed(
double _value,
const std::string &_name);
179 private: std::unique_ptr<JointForceControlPrivate> dataPtr;
195 QGridLayout *_layout, QWidget *_parent,
int _index);
201 public:
void Reset();
204 public:
void SetToRadians();
207 public:
void SetToDegrees();
211 public slots:
void OnChanged(
double _value);
215 public slots:
void OnPChanged(
double _value);
219 public slots:
void OnIChanged(
double _value);
223 public slots:
void OnDChanged(
double _value);
229 Q_SIGNALS:
void changed(
double _value,
const std::string &_name);
235 Q_SIGNALS:
void pChanged(
double _value,
const std::string &_name);
241 Q_SIGNALS:
void dChanged(
double _value,
const std::string &_name);
247 Q_SIGNALS:
void iChanged(
double _value,
const std::string &_name);
251 private: std::unique_ptr<JointPIDPosControlPrivate> dataPtr;
267 QGridLayout *_layout, QWidget *_parent,
int _index);
273 public:
void Reset();
277 public slots:
void OnChanged(
double _value);
281 public slots:
void OnPChanged(
double _value);
285 public slots:
void OnIChanged(
double _value);
289 public slots:
void OnDChanged(
double _value);
295 Q_SIGNALS:
void changed(
double _value,
const std::string &_name);
301 Q_SIGNALS:
void pChanged(
double _value,
const std::string &_name);
307 Q_SIGNALS:
void dChanged(
double _value,
const std::string &_name);
313 Q_SIGNALS:
void iChanged(
double _value,
const std::string &_name);
317 private: std::unique_ptr<JointPIDVelControlPrivate> dataPtr;
Forward declarations for the common classes.
Definition: Animation.hh:33
Widget to control joints via application of position PID controller.
Definition: JointControlWidget.hh:185
Widget to control joints via application of a velocity PID controller.
Definition: JointControlWidget.hh:257
Widget to control joints via application of force.
Definition: JointControlWidget.hh:149