@@ -152,8 +152,7 @@ rcl_publisher_init(
152152 const rcl_node_t * node ,
153153 const rosidl_message_type_support_t * type_support ,
154154 const char * topic_name ,
155- const rcl_publisher_options_t * options
156- );
155+ const rcl_publisher_options_t * options );
157156
158157/// Finalize a rcl_publisher_t.
159158/**
@@ -190,6 +189,7 @@ rcl_publisher_fini(rcl_publisher_t * publisher, rcl_node_t * node);
190189 *
191190 * - qos = rmw_qos_profile_default
192191 * - allocator = rcl_get_default_allocator()
192+ * - rmw_publisher_options = rmw_get_default_publisher_options()
193193 */
194194RCL_PUBLIC
195195RCL_WARN_UNUSED
@@ -247,6 +247,7 @@ rcl_borrow_loaned_message(
247247 * \return `RCL_RET_OK` if successful, or
248248 * \return `RCL_RET_INVALID_ARGUMENT` if an argument is null, or
249249 * \return `RCL_RET_UNIMPLEMENTED` if the middleware does not support that feature, or
250+ * \return `RCL_RET_PUBLISHER_INVALID` if the publisher is invalid, or
250251 * \return `RCL_RET_ERROR` if an unexpected error occurs and no message can be initialized.
251252 */
252253RCL_PUBLIC
@@ -319,8 +320,7 @@ rcl_ret_t
319320rcl_publish (
320321 const rcl_publisher_t * publisher ,
321322 const void * ros_message ,
322- rmw_publisher_allocation_t * allocation
323- );
323+ rmw_publisher_allocation_t * allocation );
324324
325325/// Publish a serialized message on a topic using a publisher.
326326/**
@@ -349,6 +349,7 @@ rcl_publish(
349349 * \param[in] serialized_message pointer to the already serialized message in raw form
350350 * \param[in] allocation structure pointer, used for memory preallocation (may be NULL)
351351 * \return `RCL_RET_OK` if the message was published successfully, or
352+ * \return `RCL_RET_BAD_ALLOC` if allocating memory failed, or
352353 * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or
353354 * \return `RCL_RET_PUBLISHER_INVALID` if the publisher is invalid, or
354355 * \return `RCL_RET_ERROR` if an unspecified error occurs.
@@ -359,8 +360,7 @@ rcl_ret_t
359360rcl_publish_serialized_message (
360361 const rcl_publisher_t * publisher ,
361362 const rcl_serialized_message_t * serialized_message ,
362- rmw_publisher_allocation_t * allocation
363- );
363+ rmw_publisher_allocation_t * allocation );
364364
365365/// Publish a loaned message on a topic using a publisher.
366366/**
@@ -401,8 +401,7 @@ rcl_ret_t
401401rcl_publish_loaned_message (
402402 const rcl_publisher_t * publisher ,
403403 void * ros_message ,
404- rmw_publisher_allocation_t * allocation
405- );
404+ rmw_publisher_allocation_t * allocation );
406405
407406/// Manually assert that this Publisher is alive (for RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC)
408407/**
0 commit comments