Ignition Gazebo

API Reference

4.1.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 <string>
24 
26 
28 #include "ignition/gazebo/Export.hh"
29 
30 namespace ignition
31 {
32 namespace gazebo
33 {
34 // Inline bracket to help doxygen filtering.
35 inline namespace IGNITION_GAZEBO_VERSION_NAMESPACE {
38 class IGNITION_GAZEBO_VISIBLE GuiRunner : public QObject
39 {
40  Q_OBJECT
41 
44  public: explicit GuiRunner(const std::string &_worldName);
45 
47  public: ~GuiRunner() override;
48 
51  public slots: void OnPluginAdded(const QString &_objectName);
52 
54  public slots: void RequestState();
55 
58  private: void OnStateAsyncService(const msgs::SerializedStepMap &_res);
59 
62  private: void OnState(const msgs::SerializedStepMap &_msg);
63 
65  private: gazebo::EntityComponentManager ecm;
66 
68  private: transport::Node node;
69 
71  private: std::string stateTopic;
72 
74  private: UpdateInfo updateInfo;
75 };
76 }
77 }
78 }
79 #endif
Responsible for running GUI systems as new states are received from the backend.
Definition: GuiRunner.hh:38
Information passed to systems on the update callback.
Definition: Types.hh:36
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.