Function rcl_node_type_cache_init
Defined in File node_type_cache.h
Function Documentation
-
rcl_ret_t rcl_node_type_cache_init(rcl_node_t *node)
Initialize the node’s type cache.
This function initializes hash map of the node’s type cache such that types can be registered and retrieved. Note that to correctly capture all types used by a node, this needs to be called before any “builtin” publishers or services are created.
Attribute
Adherence
Allocates Memory
Yes
Thread-Safe
No
Uses Atomics
No
Lock-Free
Yes
- Parameters:
node – [in] the handle to the node whose type cache should be initialized
- Returns:
RCL_RET_OK if the node’s type cache was successfully initialized, or
- Returns:
RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or
- Returns:
RCL_RET_NODE_INVALID if the given
node
is invalid, or- Returns:
RCL_RET_ERROR if an unspecified error occurs.