Ignition Gazebo

API Reference

3.5.0
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 IGNITION_GAZEBO_GUI_GUIRUNNER_HH_
18 #define IGNITION_GAZEBO_GUI_GUIRUNNER_HH_
19 
21 
22 #include <QtCore>
23 #include <memory>
24 #include <mutex>
25 #include <string>
26 
28 
30 #include "ignition/gazebo/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_VISIBLE GuiRunner : public QObject
41 {
42  Q_OBJECT
43 
46  public: explicit GuiRunner(const std::string &_worldName);
47 
49  public: ~GuiRunner() override;
50 
53  public slots: void OnPluginAdded(const QString &_objectName);
54 
56  public slots: void RequestState();
57 
60  private: void OnStateAsyncService(const msgs::SerializedStepMap &_res);
61 
64  private: void OnState(const msgs::SerializedStepMap &_msg);
65 
67  private: gazebo::EntityComponentManager ecm;
68 
70  private: transport::Node node;
71 
73  private: std::string stateTopic;
74 
76  private: UpdateInfo updateInfo;
77 };
78 }
79 }
80 }
81 #endif
Responsible for running GUI systems as new states are received from the backend.
Definition: GuiRunner.hh:40
Information passed to systems on the update callback.
Definition: Types.hh:37
STL class.
The EntityComponentManager constructs, deletes, and returns components and entities. A component can be of any class which inherits from components::BaseComponent.
Definition: EntityComponentManager.hh:64
This library is part of the Ignition Robotics project.