/* author: Jana-Sophie Schönfeld */ using System.Collections; using System.Collections.Generic; using UnityEngine; namespace RosSharp.RosBridgeClient { [RequireComponent(typeof(RosConnector))] public abstract class UnityServiceSubscriber : MonoBehaviour where Tout : Message where Tin : Message { protected void Start(string ServiceName, Tout serviceArguments) { GetComponent().RosSocket.CallService(ServiceName, ServiceResponseHandler, serviceArguments); } protected abstract void ServiceResponseHandler(Tin message); } }