#include <service_client.h>
|
template<class MReq , class MRes > |
bool | call (MReq &req, MRes &res) |
| Call the service aliased by this handle with the specified request/response messages. More...
|
|
template<class Service > |
bool | call (Service &service) |
| Call the service aliased by this handle with the specified service request/response. More...
|
|
template<typename MReq , typename MRes > |
bool | call (const MReq &req, MRes &resp, const std::string &service_md5sum) |
| Mostly for internal use, the other templated versions of call() just call into this one. More...
|
|
bool | call (const ros::SerializedMessage &req, ros::SerializedMessage &resp, const std::string &service_md5sum) |
|
std::string | getService () |
| Returns the name of the service this ServiceClient connects to. More...
|
|
template<typename Service > |
bool | init (const std::string &service_name, std::string host=std::string(), uint32_t port=0, const ros::M_string &header_values=ros::M_string()) |
|
bool | init (const std::string &service_name, const std::string &service_md5sum, std::string host=std::string(), uint32_t port=0, const ros::M_string &header_values=ros::M_string()) |
|
bool | isValid () const |
| Returns whether or not this handle is valid. For a persistent service, this becomes false when the connection has dropped. Non-persistent service handles are always valid. More...
|
|
| ServiceClient () |
|
| ServiceClient (const ServiceClient &rhs) |
|
template<typename Service > |
| ServiceClient (const std::string &service_name, const std::string &host=std::string(), uint32_t port=0, const ros::M_string &header_values=ros::M_string()) |
|
void | shutdown () |
| Shutdown the connection associated with this ServiceClient. More...
|
|
| ~ServiceClient () |
|
Definition at line 40 of file service_client.h.
topic_proxy::ServiceClient::ServiceClient |
( |
| ) |
|
topic_proxy::ServiceClient::ServiceClient |
( |
const ServiceClient & |
rhs | ) |
|
topic_proxy::ServiceClient::~ServiceClient |
( |
| ) |
|
template<typename Service >
topic_proxy::ServiceClient::ServiceClient |
( |
const std::string & |
service_name, |
|
|
const std::string & |
host = std::string() , |
|
|
uint32_t |
port = 0 , |
|
|
const ros::M_string & |
header_values = ros::M_string() |
|
) |
| |
|
inline |
template<class MReq , class MRes >
bool topic_proxy::ServiceClient::call |
( |
MReq & |
req, |
|
|
MRes & |
res |
|
) |
| |
|
inline |
template<class Service >
bool topic_proxy::ServiceClient::call |
( |
Service & |
service | ) |
|
|
inline |
Call the service aliased by this handle with the specified service request/response.
Definition at line 91 of file service_client.h.
template<typename MReq , typename MRes >
bool topic_proxy::ServiceClient::call |
( |
const MReq & |
req, |
|
|
MRes & |
resp, |
|
|
const std::string & |
service_md5sum |
|
) |
| |
|
inline |
Mostly for internal use, the other templated versions of call() just call into this one.
Definition at line 107 of file service_client.h.
void topic_proxy::ServiceClient::deserializeFailed |
( |
const std::exception & |
e | ) |
|
|
inlineprivate |
std::string topic_proxy::ServiceClient::getService |
( |
| ) |
|
template<typename Service >
bool topic_proxy::ServiceClient::init |
( |
const std::string & |
service_name, |
|
|
std::string |
host = std::string() , |
|
|
uint32_t |
port = 0 , |
|
|
const ros::M_string & |
header_values = ros::M_string() |
|
) |
| |
|
inline |
bool topic_proxy::ServiceClient::init |
( |
const std::string & |
service_name, |
|
|
const std::string & |
service_md5sum, |
|
|
std::string |
host = std::string() , |
|
|
uint32_t |
port = 0 , |
|
|
const ros::M_string & |
header_values = ros::M_string() |
|
) |
| |
bool topic_proxy::ServiceClient::isValid |
( |
| ) |
const |
Returns whether or not this handle is valid. For a persistent service, this becomes false when the connection has dropped. Non-persistent service handles are always valid.
void topic_proxy::ServiceClient::shutdown |
( |
| ) |
|
Shutdown the connection associated with this ServiceClient.
This method usually does not need to be explicitly called, as automatic shutdown happens when all copies of this ServiceClient go out of scope
This method overrides the automatic reference counted shutdown, and does so immediately.
ImplPtr topic_proxy::ServiceClient::impl_ |
|
private |
The documentation for this class was generated from the following file: