Function rclc_service_init_best_effort

Function Documentation

rcl_ret_t rclc_service_init_best_effort(rcl_service_t *service, const rcl_node_t *node, const rosidl_service_type_support_t *type_support, const char *service_name)

Creates an rcl service with quality-of-service option best effort

  • Attribute

    Adherence

    Allocates Memory

    Yes (in RCL)

    Thread-Safe

    No

    Uses Atomics

    No

    Lock-Free

    Yes

Parameters:
  • service[inout] a zero_initialized rcl_service_t

  • node[in] pointer to an initialized rcl node

  • type_support[in] type of the request message

  • service_name[in] the name of service topic

Returns:

RCL_RET_OK if successful

Returns:

RCL_ERROR (or other error code) if an error has occurred