LookAtDemoPlugin.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 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_PLUGINS_LOOKATDEMOPLUGIN_HH_
18 #define GAZEBO_PLUGINS_LOOKATDEMOPLUGIN_HH_
19 
20 #include <ignition/transport/Node.hh>
21 
22 #include <gazebo/common/Plugin.hh>
23 #include <gazebo/gui/GuiPlugin.hh>
24 #include <gazebo/transport/transport.hh>
25 
26 namespace gazebo
27 {
44  {
45  Q_OBJECT
46 
48  public: LookAtDemoPlugin();
49 
51  public: virtual ~LookAtDemoPlugin();
52 
53  // Documentation inherited
54  public: void Load(sdf::ElementPtr /*_elem*/);
55 
58  private slots: void OnChange(const double _newValue);
59 
61  private: QDoubleSpinBox *eyeX;
62 
64  private: QDoubleSpinBox *eyeY;
65 
67  private: QDoubleSpinBox *eyeZ;
68 
70  private: QDoubleSpinBox *targetX;
71 
73  private: QDoubleSpinBox *targetY;
74 
76  private: QDoubleSpinBox *targetZ;
77 
79  private: QDoubleSpinBox *upX;
80 
82  private: QDoubleSpinBox *upY;
83 
85  private: QDoubleSpinBox *upZ;
86 
88  private: transport::NodePtr node;
89 
91  private: transport::PublisherPtr modelModifyPub;
92 
93  // Place ignition::transport objects at the end of this file to
94  // guarantee they are destructed first.
95 
97  private: ignition::transport::Node nodeIgn;
98 
100  private: ignition::transport::Node::Publisher modelModifyPubIgn;
101  };
102 }
103 
104 #endif
Forward declarations for the common classes.
Definition: Animation.hh:26
A plugin loaded within the gzclient on startup.
Definition: GuiPlugin.hh:26
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
A GUI plugin that demos the ignition::math::Matrix4<T>::LookAt function.
Definition: LookAtDemoPlugin.hh:43
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:59