LinkConfig.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 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 _LINK_CONFIG_HH_
19 #define _LINK_CONFIG_HH_
20 
21 #include <string>
22 
23 #include "gazebo/math/Pose.hh"
24 #include "gazebo/msgs/msgs.hh"
25 
26 #include "gazebo/gui/qt.h"
27 
28 namespace gazebo
29 {
30  namespace gui
31  {
32  class ConfigWidget;
33 
36 
39  class LinkConfig : public QWidget
40  {
41  Q_OBJECT
42 
44  public: LinkConfig();
45 
47  public: ~LinkConfig();
48 
51  public: void Update(ConstLinkPtr _linkMsg);
52 
55  public: msgs::Link *GetData() const;
56 
59  public: void SetPose(const math::Pose &_pose);
60 
62  private: ConfigWidget *configWidget;
63  };
65  }
66 }
67 #endif
Encapsulates a position and rotation in three space.
Definition: Pose.hh:37
void Update(ConstLinkPtr _linkMsg)
Update the link config widget with a link msg.
void SetPose(const math::Pose &_pose)
Set the pose of the link.
A widget generated from a google protobuf message.
Definition: ConfigWidget.hh:139
~LinkConfig()
Destructor.
msgs::Link * GetData() const
Get the msg containing all link data.
A tab for configuring properties of a link.
Definition: LinkConfig.hh:39
LinkConfig()
Constructor.