rcl
master
C API providing common ROS client library functionality.
|
Go to the documentation of this file.
17 #ifndef RCL__CLIENT_H_
18 #define RCL__CLIENT_H_
25 #include "rosidl_runtime_c/service_type_support_struct.h"
27 #include "rcl/macros.h"
29 #include "rcl/visibility_control.h"
32 struct rcl_client_impl_t;
38 struct rcl_client_impl_t *
impl;
161 const rosidl_service_type_support_t * type_support,
162 const char * service_name,
294 void * ros_response);
303 void * ros_response);
416 #endif // RCL__CLIENT_H_
Structure which encapsulates a ROS Node.
Definition: node.h:39
Options available for a rcl_client_t.
Definition: client.h:42
rmw_qos_profile_t qos
Middleware quality of service settings for the client.
Definition: client.h:45
rmw_ret_t rcl_ret_t
The type that holds an rcl return code.
Definition: types.h:23
Structure which encapsulates a ROS Client.
Definition: client.h:35
rcl_ret_t rcl_take_response_with_info(const rcl_client_t *client, rmw_service_info_t *request_header, void *ros_response)
Take a ROS response using a client.
rmw_client_t * rcl_client_get_rmw_handle(const rcl_client_t *client)
Return the rmw client handle.
const rcl_client_options_t * rcl_client_get_options(const rcl_client_t *client)
Return the rcl client options.
rcl_ret_t rcl_send_request(const rcl_client_t *client, const void *ros_request, int64_t *sequence_number)
Send a ROS request using a client.
rcl_client_t rcl_get_zero_initialized_client(void)
Return a rcl_client_t struct with members set to NULL.
rcl_ret_t rcl_client_init(rcl_client_t *client, const rcl_node_t *node, const rosidl_service_type_support_t *type_support, const char *service_name, const rcl_client_options_t *options)
Initialize a rcl client.
const char * rcl_client_get_service_name(const rcl_client_t *client)
Get the name of the service that this client will request a response from.
struct rcl_client_impl_t * impl
Pointer to the client implementation.
Definition: client.h:38
struct rcl_client_options_t rcl_client_options_t
Options available for a rcl_client_t.
rcl_allocator_t allocator
Custom allocator for the client, used for incidental allocations.
Definition: client.h:48
rcl_client_options_t rcl_client_get_default_options(void)
Return the default client options in a rcl_client_options_t.
rcl_ret_t rcl_client_fini(rcl_client_t *client, rcl_node_t *node)
Finalize a rcl_client_t.
rcl_ret_t rcl_take_response(const rcl_client_t *client, rmw_request_id_t *request_header, void *ros_response)
backwards compatibility function that takes a rmw_request_id_t only
bool rcl_client_is_valid(const rcl_client_t *client)
Check that the client is valid.
struct rcl_client_t rcl_client_t
Structure which encapsulates a ROS Client.