rcl
master
C API providing common ROS client library functionality.
|
Go to the documentation of this file.
17 #ifndef RCL__SERVICE_H_
18 #define RCL__SERVICE_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_service_impl_t;
38 struct rcl_service_impl_t *
impl;
159 const rosidl_service_type_support_t * type_support,
160 const char * service_name,
334 void * ros_response);
447 #endif // RCL__SERVICE_H_
Structure which encapsulates a ROS Node.
Definition: node.h:39
rmw_service_t * rcl_service_get_rmw_handle(const rcl_service_t *service)
Return the rmw service handle.
struct rcl_service_impl_t * impl
Pointer to the service implementation.
Definition: service.h:38
struct rcl_service_t rcl_service_t
Structure which encapsulates a ROS Service.
rmw_ret_t rcl_ret_t
The type that holds an rcl return code.
Definition: types.h:23
Options available for a rcl service.
Definition: service.h:42
rcl_ret_t rcl_service_init(rcl_service_t *service, const rcl_node_t *node, const rosidl_service_type_support_t *type_support, const char *service_name, const rcl_service_options_t *options)
Initialize a rcl service.
rcl_allocator_t allocator
Custom allocator for the service, used for incidental allocations.
Definition: service.h:48
rcl_ret_t rcl_take_request_with_info(const rcl_service_t *service, rmw_service_info_t *request_header, void *ros_request)
Take a pending ROS request using a rcl service.
rmw_qos_profile_t qos
Middleware quality of service settings for the service.
Definition: service.h:45
rcl_ret_t rcl_send_response(const rcl_service_t *service, rmw_request_id_t *response_header, void *ros_response)
Send a ROS response to a client using a service.
rcl_ret_t rcl_take_request(const rcl_service_t *service, rmw_request_id_t *request_header, void *ros_request)
Backwards compatibility function to take a pending ROS request using a rcl service.
struct rcl_service_options_t rcl_service_options_t
Options available for a rcl service.
const rcl_service_options_t * rcl_service_get_options(const rcl_service_t *service)
Return the rcl service options.
rcl_ret_t rcl_service_fini(rcl_service_t *service, rcl_node_t *node)
Finalize a rcl_service_t.
Structure which encapsulates a ROS Service.
Definition: service.h:35
const char * rcl_service_get_service_name(const rcl_service_t *service)
Get the topic name for the service.
rcl_service_t rcl_get_zero_initialized_service(void)
Return a rcl_service_t struct with members set to NULL.
bool rcl_service_is_valid(const rcl_service_t *service)
Check that the service is valid.
rcl_service_options_t rcl_service_get_default_options(void)
Return the default service options in a rcl_service_options_t.