Ignition Gazebo

API Reference

5.1.0
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 IGNITION_GAZEBO_GUI_TMPIFACE_HH_
18 #define IGNITION_GAZEBO_GUI_TMPIFACE_HH_
19 
20 #ifndef Q_MOC_RUN
21  #include <ignition/gui/qt.h>
22 #endif
23 
24 #include <ignition/msgs.hh>
25 #include <ignition/transport.hh>
26 
27 #include "ignition/gazebo/gui/Export.hh"
28 
29 namespace ignition
30 {
31  namespace gazebo
32  {
39  class TmpIface : public QObject
40  {
41  Q_OBJECT
42 
44  public: IGN_DEPRECATED(5.0) 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 OnServerControl(const msgs::ServerControl &_req,
73  msgs::Boolean &_res);
74 
76  private: transport::Node node;
77  };
78  }
79 }
80 #endif
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...
#define IGN_DEPRECATED(version)
Temporary place to prototype transport interfaces while it&#39;s not clear where they will live...
Definition: TmpIface.hh:39
void OnLoadWorld(const QString &_path)
Callback when user asks to load a world file. This is the client-side logic which requests the server...
This library is part of the Ignition Robotics project.
TmpIface()
Constructor: advertize services and topics.
~TmpIface() override=default
Destructor.
void OnNewWorld()
Callback when user asks to start a new world. This is the client-side logic which requests the server...