Function rclc_service_init

Function Documentation

rcl_ret_t rclc_service_init(rcl_service_t *service, const rcl_node_t *node, const rosidl_service_type_support_t *type_support, const char *service_name, const rmw_qos_profile_t *qos_profile)

Creates an rcl service with defined QoS

  • 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

  • qos_profile[in] the qos of the topic

Returns:

RCL_RET_OK if successful

Returns:

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