implementation of the service client handler
More...
#include <service_client_handler.h>
|
| ServiceClientHandler_impl (void) |
| default constructor
|
|
| ~ServiceClientHandler_impl (void) |
| default destructor
|
|
| ServiceClientHandler_impl (ros::NodeHandle &nh, const std::string &address) |
| constructor More...
|
|
bool | call (ServiceType &srv) |
| "classic" synchronous service call More...
|
|
bool | call (ServiceType &srv, const int &attempts) |
| "classic" synchronous service call with repeats after an error More...
|
|
bool | call (ServiceType &srv, const int &attempts, const double &repeat_delay) |
| "classic" synchronous service call with repeats after an error More...
|
|
std::future< ServiceType > | callAsync (ServiceType &srv) |
| asynchronous service call More...
|
|
std::future< ServiceType > | callAsync (ServiceType &srv, const int &attempts) |
| asynchronous service call with repeates after an error More...
|
|
std::future< ServiceType > | callAsync (ServiceType &srv, const int &attempts, const double &repeat_delay) |
| asynchronous service call with repeates after an error More...
|
|
template<class ServiceType>
class mrs_lib::ServiceClientHandler_impl< ServiceType >
implementation of the service client handler
◆ ServiceClientHandler_impl()
template<class ServiceType >
constructor
- Parameters
-
nh | ROS node handler |
address | service address |
◆ call() [1/3]
template<class ServiceType >
"classic" synchronous service call
- Parameters
-
- Returns
- true when success
◆ call() [2/3]
template<class ServiceType >
"classic" synchronous service call with repeats after an error
- Parameters
-
srv | data |
attempts | how many attempts for the call |
- Returns
- true when success
◆ call() [3/3]
template<class ServiceType >
"classic" synchronous service call with repeats after an error
- Parameters
-
srv | data |
attempts | how many attempts for the call |
repeat_delay | how long to wait before repeating the call |
- Returns
- true when success
◆ callAsync() [1/3]
template<class ServiceType >
asynchronous service call
- Parameters
-
- Returns
- future result
◆ callAsync() [2/3]
template<class ServiceType >
asynchronous service call with repeates after an error
- Parameters
-
srv | data |
attempts | how many attempts for the call |
- Returns
- future result
◆ callAsync() [3/3]
template<class ServiceType >
asynchronous service call with repeates after an error
- Parameters
-
srv | data |
attempts | how many attempts for the call |
repeat_delay | how long to wait before repeating the call |
- Returns
- future result
The documentation for this class was generated from the following files: