Ignition Gazebo

API Reference

6.6.0
Pose3d.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 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 IGNITION_GAZEBO_GUI_COMPONENTINSPECTOR_POSE3D_HH_
18 #define IGNITION_GAZEBO_GUI_COMPONENTINSPECTOR_POSE3D_HH_
19 
20 #include <QObject>
21 #include <ignition/math/Pose3.hh>
22 
23 namespace ignition
24 {
25 namespace gazebo
26 {
27  class ComponentInspectorEditor;
28 
30  class Pose3d : public QObject
31  {
32  Q_OBJECT
33 
36  public: explicit Pose3d(ComponentInspectorEditor *_inspector);
37 
45  public: Q_INVOKABLE void PoseUpdate(
46  double _x, double _y, double _z, double _roll,
47  double _pitch, double _yaw);
48 
50  signals: void poseChanged();
51 
54  private: ComponentInspectorEditor *inspector{nullptr};
55 
58  private: math::Pose3d currentPose;
59  };
60 }
61 }
62 #endif
void poseChanged()
Notify that simulation paused state has changed.
A class that handles Pose3d changes.
Definition: Pose3d.hh:30
Q_INVOKABLE void PoseUpdate(double _x, double _y, double _z, double _roll, double _pitch, double _yaw)
Handle pose updates from the GUI.
Pose3d(ComponentInspectorEditor *_inspector)
Constructor.
This library is part of the Ignition Robotics project.