Function rcl_node_type_description_service_init
Defined in File node.h
Function Documentation
-
rcl_ret_t rcl_node_type_description_service_init(rcl_node_t *node)
Initialize the node’s ~/get_type_description service.
This function initializes the node’s ~/get_type_description service which can be used to retrieve information about types used by the node’s publishers, subscribers, services or actions.
Note that this will not register any callback for the service, client-level code must register rcl_node_type_description_service_handle_request or a custom callback to handle incoming requests, via that client’s executor/waitset capabilities.
This will initialize the node’s type cache, if it has not been initialized already.
Attribute
Adherence
Allocates Memory
Yes
Thread-Safe
No
Uses Atomics
No
Lock-Free
Yes
- Parameters:
node – [in] handle to the node for which to initialize the service
- Returns:
RCL_RET_OK if the service was successfully initialized, or
- Returns:
RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or
- Returns:
RCL_RET_ALREADY_INIT if the service is already initialized, or
- Returns:
RCL_RET_BAD_ALLOC if memory allocation for the service failed, or
- Returns:
RCL_RET_ERROR if an unspecified error occurs.