15 #ifndef RCL__PUBLISHER_H_ 16 #define RCL__PUBLISHER_H_ 23 #include "rosidl_generator_c/message_type_support_struct.h" 30 struct rcl_publisher_impl_t;
35 struct rcl_publisher_impl_t *
impl;
150 const rosidl_message_type_support_t * type_support,
151 const char * topic_name,
366 #endif // RCL__PUBLISHER_H_ rcl_ret_t rcl_publisher_fini(rcl_publisher_t *publisher, rcl_node_t *node)
Finalize a rcl_publisher_t.
struct rcl_publisher_impl_t * impl
Definition: publisher.h:35
rmw_ret_t rcl_ret_t
Definition: types.h:20
rcl_ret_t rcl_publisher_init(rcl_publisher_t *publisher, const rcl_node_t *node, const rosidl_message_type_support_t *type_support, const char *topic_name, const rcl_publisher_options_t *options)
Initialize a rcl publisher.
rmw_qos_profile_t qos
Middleware quality of service settings for the publisher.
Definition: publisher.h:42
bool rcl_publisher_is_valid(const rcl_publisher_t *publisher)
Check that the publisher is valid.
struct rcl_publisher_options_t rcl_publisher_options_t
Options available for a rcl publisher.
rcl_publisher_t rcl_get_zero_initialized_publisher(void)
Return a rcl_publisher_t struct with members set to NULL.
#define RCL_WARN_UNUSED
Ignored return values of functions with this macro will emit a warning.
Definition: macros.h:25
rmw_publisher_t * rcl_publisher_get_rmw_handle(const rcl_publisher_t *publisher)
Return the rmw publisher handle.
#define RCL_PUBLIC
Definition: visibility_control.h:48
rcl_allocator_t allocator
Custom allocator for the publisher, used for incidental allocations.
Definition: publisher.h:45
rcl_publisher_options_t rcl_publisher_get_default_options(void)
Return the default publisher options in a rcl_publisher_options_t.
struct rcl_publisher_t rcl_publisher_t
Structure which encapsulates a ROS Publisher.
Structure which encapsulates a ROS Publisher.
Definition: publisher.h:33
const rcl_publisher_options_t * rcl_publisher_get_options(const rcl_publisher_t *publisher)
Return the rcl publisher options.
const char * rcl_publisher_get_topic_name(const rcl_publisher_t *publisher)
Get the topic name for the publisher.
rcl_ret_t rcl_publish(const rcl_publisher_t *publisher, const void *ros_message)
Publish a ROS message on a topic using a publisher.
Structure which encapsulates a ROS Node.
Definition: node.h:37
Options available for a rcl publisher.
Definition: publisher.h:39