Function rclc_client_init

Function Documentation

rcl_ret_t rclc_client_init(rcl_client_t *client, 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 client with defined QoS

  • Attribute

    Adherence

    Allocates Memory

    Yes (in RCL)

    Thread-Safe

    No

    Uses Atomics

    No

    Lock-Free

    Yes

Parameters:
  • client[inout] pointer to zero_initialized rcl_client_t

  • node[in] pointer to an initialized rcl node

  • type_support[in] the message data type

  • 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