Gazebo Sim

API Reference

9.0.0
component_inspector_editor/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 GZ_SIM_GUI_COMPONENTINSPECTOR_POSE3D_HH_
18#define GZ_SIM_GUI_COMPONENTINSPECTOR_POSE3D_HH_
19
20#include <QObject>
21#include <gz/math/Pose3.hh>
22
23namespace gz
24{
25namespace sim
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