Go to the documentation of this file.
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;
virtual ~RestWebPlugin()
Destructor.
Forward declarations for the common classes.
Definition: Animation.hh:27
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
void OnEventRestPost(ConstRestPostPtr &_msg)
Called everytime a REST POST event message is received.
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
RestWebPlugin()
Constructor.
void OnRestLogoutRequest(ConstRestLogoutPtr &_msg)
Called everytime a logout message is received.
void OnSimEvent(ConstSimEventPtr &_msg)
Called everytime a SimEvent message is received.
REST interface.
Definition: RestApi.hh:33
virtual void Load(int _argc, char **_argv)
Plugin Load.
A plugin loaded within the gzserver on startup.
Definition: Plugin.hh:362
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
REST web plugin.
Definition: RestWebPlugin.hh:37
void OnRestLoginRequest(ConstRestLoginPtr &_msg)
Called everytime a login message is received.