Template Function agnocast::create_service

Function Documentation

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

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

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

  • service_nameService name.

  • callback – Callback invoked on each request.

  • qos – Quality of service profile.

  • group – Callback group (nullptr = default).

Returns:

Shared pointer to the created service.