Go to the documentation of this file.
29 #ifndef ROSCPP_XMLRPC_MANAGER_H
30 #define ROSCPP_XMLRPC_MANAGER_H
40 #include "xmlrpcpp/XmlRpc.h"
69 virtual bool check() = 0;
113 bool validateXmlrpcResponse(
const std::string& method,
122 XmlRpc::XmlRpcClient* getXMLRPCClient(
const std::string& host,
const int port,
const std::string& uri);
128 bool bind(
const std::string& function_name,
const XMLRPCFunc& cb);
129 void unbind(
const std::string& function_name);
137 void serverThreadFunc();
143 #if defined(__APPLE__)
145 std::mutex xmlrpc_call_mutex_;
const std::string response
std::map< std::string, FunctionInfo > M_StringToFuncInfo
std::shared_ptr< XMLRPCManager > XMLRPCManagerPtr
std::shared_ptr< XMLRPCCallWrapper > XMLRPCCallWrapperPtr
XmlRpc::XmlRpcValue responseStr(int code, const std::string &msg, const std::string &response)
XmlRpc::XmlRpcValue responseInt(int code, const std::string &msg, int response)
XmlRpc::XmlRpcClient * client_
ros::WallDuration master_retry_timeout_
A class to handle XML RPC requests.
ROSCPP_DECL bool check()
Check whether the master is up.
std::mutex added_connections_mutex_
XmlRpc::XmlRpcValue responseBool(int code, const std::string &msg, bool response)
XMLRPCCallWrapperPtr wrapper
std::mutex clients_mutex_
std::vector< CachedXmlRpcClient > V_CachedXmlRpcClient
ROSCPP_DECL void shutdown()
Disconnects everything and unregisters from the master. It is generally not necessary to call this fu...
std::shared_ptr< ASyncXMLRPCConnection > ASyncXMLRPCConnectionPtr
const std::string & getServerURI() const
Get the xmlrpc server URI of this node.
S_ASyncXMLRPCConnection added_connections_
A class to send XML RPC requests to a server and return the results.
ros::WallTime last_use_time_
M_StringToFuncInfo functions_
V_CachedXmlRpcClient clients_
CachedXmlRpcClient(XmlRpc::XmlRpcClient *c)
std::thread server_thread_
S_ASyncXMLRPCConnection removed_connections_
std::mutex removed_connections_mutex_
virtual ~ASyncXMLRPCConnection()
uint32_t getServerPort() const
XmlRpc::XmlRpcServer server_
static const ros::WallDuration s_zombie_time_
volatile bool unbind_requested_
S_ASyncXMLRPCConnection connections_
ROSCPP_DECL void start()
Actually starts the internals of the node (spins up threads, starts the network polling and xmlrpc lo...
std::set< ASyncXMLRPCConnectionPtr > S_ASyncXMLRPCConnection
RPC method arguments and results are represented by Values.
std::mutex functions_mutex_
std::function< void(XmlRpc::XmlRpcValue &, XmlRpc::XmlRpcValue &)> XMLRPCFunc
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:13