ros2--service/服务--接口
获取service名称
const char *get_service_name() const;
std::string client_name = client_->get_service_name();RCLCPP_INFO(this->get_logger(), "Client name: %s", client_name.c_str());
const char *get_service_name() const;
std::string client_name = client_->get_service_name();RCLCPP_INFO(this->get_logger(), "Client name: %s", client_name.c_str());