JointInspector.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-2015 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 
18 #ifndef _JOINT_INSPECTOR_HH_
19 #define _JOINT_INSPECTOR_HH_
20 
21 #include <string>
22 #include <vector>
23 
24 #include "gazebo/gui/qt.h"
26 #include "gazebo/util/system.hh"
27 
28 
29 namespace gazebo
30 {
31  namespace gui
32  {
33  class JointMaker;
34  class ConfigWidget;
35 
38  class GZ_GUI_MODEL_VISIBLE JointInspector : public QDialog
39  {
40  Q_OBJECT
41 
44  public: JointInspector(QWidget *_parent = 0);
45 
47  public: ~JointInspector();
48 
51  public: void Update(ConstJointPtr _jointMsg);
52 
55  public: msgs::Joint *GetData() const;
56 
59  public: void SetPose(const math::Pose &_pose);
60 
63  protected: virtual void enterEvent(QEvent *_event);
64 
69  private slots: void OnJointTypeChanged(const QString &_name,
70  const QString &_value);
71 
73  Q_SIGNALS: void Applied();
74 
76  private slots: void OnCancel();
77 
79  private slots: void OnApply();
80 
82  private slots: void OnOK();
83 
85  private: ConfigWidget *configWidget;
86  };
88  }
89 }
90 
91 #endif
Encapsulates a position and rotation in three space.
Definition: Pose.hh:37
A widget generated from a google protobuf message.
Definition: ConfigWidget.hh:139
A class to inspect and modify joints.
Definition: JointInspector.hh:38
#define GZ_GUI_MODEL_VISIBLE
Definition: system.hh:418