Template Class ServiceClient
Defined in File service_client.hpp
Class Documentation
A simple wrapper on ROS2 services for invoke() and block-style calling.
Public Types
Public Functions
A constructor.
- Parameters:
service_name – name of the service to call
provided_node – Node to create the service client off of
Invoke the service and block until completed or timed out.
- Parameters:
request – The request object to call the service using
timeout – Maximum timeout to wait for, default infinite
- Returns:
Response A pointer to the service response from the request
Invoke the service and block until completed.
- Parameters:
request – The request object to call the service using
Response – A pointer to the service response from the request
- Returns:
bool Whether it was successfully called
Block until a service is available or timeout.
- Parameters:
timeout – Maximum timeout to wait for, default infinite
- Returns:
bool true if service is available
Gets the service name.
- Returns:
string Service name
Protected Attributes