Template Function agnocast::create_client

Function Documentation

template<typename ServiceT>
Client<ServiceT>::SharedPtr agnocast::create_client(rclcpp::Node *node, const std::string &service_name, const rclcpp::QoS &qos = rclcpp::ServicesQoS(), rclcpp::CallbackGroup::SharedPtr group = nullptr)

Create an Agnocast service client (Stage 1 free function).

Template Parameters:

ServiceT – ROS service type.

Parameters:
  • node – Pointer to rclcpp::Node.

  • service_nameService name.

  • qos – Quality of service profile.

  • group – Callback group (nullptr = default).

Returns:

Shared pointer to the created client.