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);
51 public:
void OnRestLoginRequest(ConstRestLoginPtr &_msg);
55 public:
void OnRestLogoutRequest(ConstRestLogoutPtr &_msg);
59 public:
void OnEventRestPost(ConstRestPostPtr &_msg);
63 public:
void OnSimEvent(ConstSimEventPtr &_msg);
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 web plugin.
Definition: RestWebPlugin.hh:36
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
REST interface.
Definition: RestApi.hh:32
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
A plugin loaded within the gzserver on startup.
Definition: Plugin.hh:318
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:59