Function rcl_node_type_cache_get_type_info
Defined in File node_type_cache.h
Function Documentation
-
rcl_ret_t rcl_node_type_cache_get_type_info(const rcl_node_t *node, const rosidl_type_hash_t *type_hash, rcl_type_info_t *type_info)
Retrieve type information from the node’s type cache.
This function returns the desired type information from the node’s type cache
The
type_info
field must point to an allocatedrcl_type_info_t
object to which the type information will be written.Attribute
Adherence
Allocates Memory
No
Thread-Safe
No
Uses Atomics
No
Lock-Free
Yes
- Parameters:
node – [in] the handle to the node whose type cache should be queried
type_hash – [in] type hash
type_info – [out] pointer to the type info struct that will be populated
- Returns:
RCL_RET_OK if type information was retrieved successfully
- 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_NOT_INIT if node’s type cache has not been initialized, or
- Returns:
RCL_RET_ERROR if an unspecified error occurs.