Template Function rclcpp::create_service

Function Documentation

template<typename ServiceT, typename CallbackT>
rclcpp::Service<ServiceT>::SharedPtr rclcpp::create_service(std::shared_ptr<node_interfaces::NodeBaseInterface> node_base, std::shared_ptr<node_interfaces::NodeServicesInterface> node_services, const std::string &service_name, CallbackT &&callback, const rmw_qos_profile_t &qos_profile, rclcpp::CallbackGroup::SharedPtr group)

Create a service with a given type.