07sainishanth_SER515-Spring22-Team2/RoverSim/Assets/RosMessages/UnityRoboticsDemo/srv/PositionServiceRequest.cs
//Do not edit! This file was generated by Unity-ROS MessageGeneration.
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;

namespace RosMessageTypes.UnityRoboticsDemo
{
    [Serializable]
    public class PositionServiceRequest : Message
    {
        public const string k_RosMessageName = "unity_robotics_demo_msgs/PositionService";
        public override string RosMessageName => k_RosMessageName;

        public PosRotMsg input;

        public PositionServiceRequest()
        {
            this.input = new PosRotMsg();
        }

        public PositionServiceRequest(PosRotMsg input)
        {
            this.input = input;
        }

        public static PositionServiceRequest Deserialize(MessageDeserializer deserializer) => new PositionServiceRequest(deserializer);

        private PositionServiceRequest(MessageDeserializer deserializer)
        {
            this.input = PosRotMsg.Deserialize(deserializer);
        }

        public override void SerializeTo(MessageSerializer serializer)
        {
            serializer.Write(this.input);
        }

        public override string ToString()
        {
            return "PositionServiceRequest: " +
            "\ninput: " + input.ToString();
        }

#if UNITY_EDITOR
        [UnityEditor.InitializeOnLoadMethod]
#else
        [UnityEngine.RuntimeInitializeOnLoadMethod]
#endif
        public static void Register()
        {
            MessageRegistry.Register(k_RosMessageName, Deserialize);
        }
    }
}
