RestUiPlugin.hh
Go to the documentation of this file.
1/*
2 * Copyright 2015 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
18#ifndef GAZEBO_PLUGINS_REST_WEB_RESTUIPLUGIN_HH_
19#define GAZEBO_PLUGINS_REST_WEB_RESTUIPLUGIN_HH_
20
21#include <string>
22#include <vector>
23
24#include <gazebo/gazebo.hh>
25#include <gazebo/gui/qt.h>
26#include <gazebo/util/system.hh>
27
28#include "RestUiWidget.hh"
29
30namespace gazebo
31{
34 class GZ_PLUGIN_VISIBLE RestUiPlugin : public SystemPlugin
35 {
37 public: RestUiPlugin();
38
40 public: virtual ~RestUiPlugin() = default;
41
45 public: virtual void Load(int _argc, char **_argv);
46
48 private: virtual void Init();
49
51 private: void OnMainWindowReady();
52
54 private: void Update();
55
57 private: std::vector<event::ConnectionPtr> connections;
58
60 private: std::string menuTitle;
61
63 private: std::string loginTitle;
64
66 private: std::string urlLabel;
67
69 private: std::string defaultUrl;
70
72 private: RestUiWidget *widget;
73 };
74}
75
76#endif
REST user interface plugin.
Definition RestUiPlugin.hh:35
virtual void Load(int _argc, char **_argv)
Called when plugin is loaded.
RestUiPlugin()
Constructor.
virtual ~RestUiPlugin()=default
Destructor.
REST user interface widget.
Definition RestUiWidget.hh:42
A plugin loaded within the gzserver on startup.
Definition Plugin.hh:362
Forward declarations for the common classes.
Definition Animation.hh:27