Gazebo Gazebo

API Reference

3.15.2
gz/sim/gui/TmpIface.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 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_TMPIFACE_HH_
18 #define GZ_GAZEBO_GUI_TMPIFACE_HH_
19 
20 #ifndef Q_MOC_RUN
21  #include <gz/gui/qt.h>
22 #endif
23 
24 #include <gz/msgs.hh>
25 #include <gz/transport.hh>
26 
27 #include "gz/sim/Export.hh"
28 
29 namespace ignition
30 {
31  namespace gazebo
32  {
39  class IGNITION_GAZEBO_VISIBLE TmpIface : public QObject
40  {
41  Q_OBJECT
42 
44  public: TmpIface();
45 
47  public: ~TmpIface() override = default;
48 
52  public slots: void OnNewWorld();
53 
58  public slots: void OnLoadWorld(const QString &_path);
59 
64  public slots: void OnSaveWorldAs(const QString &_path);
65 
72  private: bool IGN_DEPRECATED(3) OnServerControl(
73  const msgs::ServerControl &_req, msgs::Boolean &_res);
74 
76  private: transport::Node node;
77 
79  private: transport::Node::Publisher worldStatsPub;
80  };
81  }
82 }
83 #endif
#define IGN_DEPRECATED(version)
This library is part of the Ignition Robotics project.
TmpIface()
Constructor: advertize services and topics.
void OnSaveWorldAs(const QString &_path)
Callback when user asks to save a world file providing a path. This is the client-side logic which re...
Temporary place to prototype transport interfaces while it's not clear where they will live.
Definition: gz/sim/gui/TmpIface.hh:39
void OnNewWorld()
Callback when user asks to start a new world. This is the client-side logic which requests the server...
void OnLoadWorld(const QString &_path)
Callback when user asks to load a world file. This is the client-side logic which requests the server...
~TmpIface() override=default
Destructor.