##

RestUiPlugin.hh
Go to the documentation of this file.
/*
* Copyright 2015 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GAZEBO_PLUGINS_REST_WEB_RESTUIPLUGIN_HH_
#define GAZEBO_PLUGINS_REST_WEB_RESTUIPLUGIN_HH_
#include <string>
#include <vector>
#include <gazebo/gazebo.hh>
#include <gazebo/gui/qt.h>
#include <gazebo/util/system.hh>
#include "RestUiWidget.hh"
namespace gazebo
{
class GAZEBO_VISIBLE RestUiPlugin : public SystemPlugin
{
public: RestUiPlugin();
public: virtual ~RestUiPlugin() = default;
public: virtual void Load(int _argc, char **_argv);
private: virtual void Init();
private: void OnMainWindowReady();
private: void Update();
private: std::vector<event::ConnectionPtr> connections;
private: std::string menuTitle;
private: std::string loginTitle;
private: std::string urlLabel;
private: std::string defaultUrl;
private: RestUiWidget *widget;
};
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
system.hh
gazebo.hh
RestUiWidget.hh
gazebo::SystemPlugin
A plugin loaded within the gzserver on startup.
Definition: Plugin.hh:361
gazebo::msgs::Init
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
gazebo::RestUiPlugin
REST user interface plugin.
Definition: RestUiPlugin.hh:34
gazebo::RestUiWidget
REST user interface widget.
Definition: RestUiWidget.hh:41
GAZEBO_VISIBLE
#define GAZEBO_VISIBLE
Definition: system.hh:59