Function rclc_publisher_init_default
Defined in File publisher.h
Function Documentation
-
rcl_ret_t rclc_publisher_init_default(rcl_publisher_t *publisher, const rcl_node_t *node, const rosidl_message_type_support_t *type_support, const char *topic_name)
Creates an rcl publisher.
Attribute
Adherence
Allocates Memory
Yes (in RCL)
Thread-Safe
No
Uses Atomics
No
Lock-Free
Yes
- Parameters:
publisher – [inout] a zero_initialized rcl_publisher_t
node – [in] the rcl node
type_support – [in] the message data type
topic_name – [in] the name of published topic
- Returns:
RCL_RET_OK
if successful- Returns:
RCL_ERROR
(or other error code) if an error has occurred