8000 Loaned functions returning rcl_ret_t use rmw_ret_t · Issue #735 · ros2/rcl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
Loaned functions returning rcl_ret_t use rmw_ret_t #735
Closed
@Blast545

Description

@Blast545

Loaned functions as rcl_borrow_loaned_message:

rcl_ret_t
rcl_borrow_loaned_message(
  const rcl_publisher_t * publisher,
  const rosidl_message_type_support_t * type_support,
  void ** ros_message)
{
  if (!rcl_publisher_is_valid(publisher)) {
    return RCL_RET_PUBLISHER_INVALID;  // error already set
  }
  return rmw_borrow_loaned_message(publisher->impl->rmw_handle, type_support, ros_message);
}

Make a call to a rmw function and the result is returned as a rcl_ret_t. I think for those it's needed an additional rcl_convert_rmw_ret_to_rcl_ret call. Let me know your thoughts and I'll open a PR accordingly.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0