Gazebo Gazebo

API Reference

3.15.1
gz/sim/gui/GuiRunner.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 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_GAZEBO_GUI_GUIRUNNER_HH_
18 #define GZ_GAZEBO_GUI_GUIRUNNER_HH_
19 
20 #include <gz/msgs/serialized.pb.h>
21 
22 #include <QtCore>
23 #include <memory>
24 #include <mutex>
25 #include <string>
26 
27 #include <gz/transport/Node.hh>
28 
30 #include "gz/sim/gui/Export.hh"
31 
32 namespace ignition
33 {
34 namespace gazebo
35 {
36 // Inline bracket to help doxygen filtering.
37 inline namespace IGNITION_GAZEBO_VERSION_NAMESPACE {
40 class IGNITION_GAZEBO_GUI_VISIBLE GuiRunner : public QObject
41 {
42  Q_OBJECT
43 
46  public: explicit GuiRunner(const std::string &_worldName);
47 
49  public: ~GuiRunner() override;
50 
54  public slots: void OnPluginAdded(const QString &_objectName);
55 
57  public slots: void RequestState();
58 
61  private: void OnStateAsyncService(const msgs::SerializedStepMap &_res);
62 
66  private: void OnState(const msgs::SerializedStepMap &_msg);
67 
70  private: Q_INVOKABLE void OnStateQt(const msgs::SerializedStepMap &_msg);
71 
74  private: Q_INVOKABLE void UpdatePlugins();
75 
78 
80  private: transport::Node node;
81 
83  private: std::string stateTopic;
84 
86  private: UpdateInfo updateInfo;
87 };
88 }
89 }
90 }
91 #endif
This library is part of the Ignition Robotics project.
STL class.
The EntityComponentManager constructs, deletes, and returns components and entities....
Definition: gz/sim/EntityComponentManager.hh:65
Information passed to systems on the update callback.
Definition: include/gz/sim/Types.hh:37
Responsible for running GUI systems as new states are received from the backend.
Definition: gz/sim/gui/GuiRunner.hh:40