JointControlWidgetPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef _GAZEBO_GUI_JOINTCONTROLWIDGET_PRIVATE_HH_
18 #define _GAZEBO_GUI_JOINTCONTROLWIDGET_PRIVATE_HH_
19 
20 #include <map>
21 #include <string>
22 
23 #include "gazebo/gui/qt.h"
25 
26 namespace gazebo
27 {
28  namespace gui
29  {
30  class JointForceControl;
31  class JointPIDPosControl;
32  class JointPIDVelControl;
33 
36  {
39 
42 
44  public: std::map<std::string, JointForceControl *> sliders;
45 
47  public: std::map<std::string, JointPIDPosControl *> pidPosSliders;
48 
50  public: std::map<std::string, JointPIDVelControl *> pidVelSliders;
51 
53  public: QLabel *modelLabel;
54 
56  public: QTabWidget *tabWidget;
57 
59  public: QGridLayout *forceGridLayout;
60 
62  public: QGridLayout *positionGridLayout;
63 
65  public: QGridLayout *velocityGridLayout;
66  };
67 
70  {
72  public: std::string name;
73 
75  public: QDoubleSpinBox *forceSpin;
76  };
77 
80  {
82  public: QDoubleSpinBox *posSpin;
83 
85  public: QDoubleSpinBox *pGainSpin;
86 
88  public: QDoubleSpinBox *iGainSpin;
89 
91  public: QDoubleSpinBox *dGainSpin;
92 
94  public: std::string name;
95 
97  public: bool radians;
98  };
99 
102  {
104  public: QDoubleSpinBox *posSpin;
105 
107  public: QDoubleSpinBox *pGainSpin;
108 
110  public: QDoubleSpinBox *iGainSpin;
111 
113  public: QDoubleSpinBox *dGainSpin;
114 
116  public: std::string name;
117  };
118  }
119 }
120 #endif
std::string name
Name of the joint.
Definition: JointControlWidgetPrivate.hh:94
QDoubleSpinBox * pGainSpin
Sliders for the P gain.
Definition: JointControlWidgetPrivate.hh:107
std::string name
Name of the joint.
Definition: JointControlWidgetPrivate.hh:116
Private data for the JointPIDVelControl class.
Definition: JointControlWidgetPrivate.hh:101
QDoubleSpinBox * posSpin
Slider for the position.
Definition: JointControlWidgetPrivate.hh:82
QGridLayout * velocityGridLayout
Layout for the velocity controls.
Definition: JointControlWidgetPrivate.hh:65
bool radians
True if the units are radians.
Definition: JointControlWidgetPrivate.hh:97
std::string name
Name of the joint.
Definition: JointControlWidgetPrivate.hh:72
QDoubleSpinBox * dGainSpin
Sliders for the D gain.
Definition: JointControlWidgetPrivate.hh:113
QDoubleSpinBox * pGainSpin
Sliders for the P gain.
Definition: JointControlWidgetPrivate.hh:85
transport::NodePtr node
Node for coomunication.
Definition: JointControlWidgetPrivate.hh:38
Private data for the JointForceControl class.
Definition: JointControlWidgetPrivate.hh:69
QGridLayout * forceGridLayout
Layout for the force controls.
Definition: JointControlWidgetPrivate.hh:59
QDoubleSpinBox * dGainSpin
Sliders for the D gain.
Definition: JointControlWidgetPrivate.hh:91
Forward declarations for transport.
QDoubleSpinBox * posSpin
Slider for the position.
Definition: JointControlWidgetPrivate.hh:104
std::map< std::string, JointPIDVelControl * > pidVelSliders
Sliders for velocity control.
Definition: JointControlWidgetPrivate.hh:50
std::map< std::string, JointPIDPosControl * > pidPosSliders
Sliders for position control.
Definition: JointControlWidgetPrivate.hh:47
QDoubleSpinBox * iGainSpin
Sliders for the I gain.
Definition: JointControlWidgetPrivate.hh:110
transport::PublisherPtr jointPub
Publisher for joint messages.
Definition: JointControlWidgetPrivate.hh:41
Private data for the JointPIDPosControl class.
Definition: JointControlWidgetPrivate.hh:79
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
QDoubleSpinBox * iGainSpin
Sliders for the I gain.
Definition: JointControlWidgetPrivate.hh:88
QTabWidget * tabWidget
Tab widget for all the types of join control.
Definition: JointControlWidgetPrivate.hh:56
QDoubleSpinBox * forceSpin
Joint force slider.
Definition: JointControlWidgetPrivate.hh:75
QGridLayout * positionGridLayout
Layout for the position controls.
Definition: JointControlWidgetPrivate.hh:62
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
Private data for the JointControlWidget class.
Definition: JointControlWidgetPrivate.hh:35
std::map< std::string, JointForceControl * > sliders
Sliders for force control.
Definition: JointControlWidgetPrivate.hh:44
QLabel * modelLabel
Label for the name of the current model being controlled.
Definition: JointControlWidgetPrivate.hh:53