18#ifndef GAZEBO_PLUGINS_REST_WEB_RESTWEBPLUGIN_HH_
19#define GAZEBO_PLUGINS_REST_WEB_RESTWEBPLUGIN_HH_
28#include <gazebo/physics/physics.hh>
47 public:
virtual void Load(
int _argc,
char **_argv);
66 private:
virtual void Init();
69 private:
void RunRequestQ();
73 private:
void ProcessLoginRequest(ConstRestLoginPtr _msg);
94 private: std::vector<event::ConnectionPtr> connections;
100 private:
bool stopMsgProcessing;
103 private: std::list<boost::shared_ptr<const gazebo::msgs::RestLogin>>
107 private: std::thread *requestQThread;
110 private: std::mutex requestQMutex;
113 private: std::string session;
REST interface.
Definition RestApi.hh:33
REST web plugin.
Definition RestWebPlugin.hh:37
virtual ~RestWebPlugin()
Destructor.
void OnSimEvent(ConstSimEventPtr &_msg)
Called everytime a SimEvent message is received.
RestWebPlugin()
Constructor.
virtual void Load(int _argc, char **_argv)
Plugin Load.
void OnRestLogoutRequest(ConstRestLogoutPtr &_msg)
Called everytime a logout message is received.
void OnRestLoginRequest(ConstRestLoginPtr &_msg)
Called everytime a login message is received.
void OnEventRestPost(ConstRestPostPtr &_msg)
Called everytime a REST POST event message is received.
A plugin loaded within the gzserver on startup.
Definition Plugin.hh:362
boost::shared_ptr< Subscriber > SubscriberPtr
Definition TransportTypes.hh:53
boost::shared_ptr< Publisher > PublisherPtr
Definition TransportTypes.hh:49
boost::shared_ptr< Node > NodePtr
Definition TransportTypes.hh:57
Forward declarations for the common classes.
Definition Animation.hh:27