public virtual global::Microsoft.Ccr.Core.Choice LaserRangeFinderUpdate(out global::Microsoft.Robotics.Services.Explorer.Proxy.LaserRangeFinderUpdate operation) { global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State body = new global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State(); operation = new global::Microsoft.Robotics.Services.Explorer.Proxy.LaserRangeFinderUpdate(body); this.Post(operation); return(operation.ResponsePort); }
public virtual global::Microsoft.Dss.ServiceModel.Dssp.DsspResponsePort <global::Microsoft.Dss.ServiceModel.Dssp.DefaultReplaceResponseType> Replace() { global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State body = new global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State(); global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.Replace operation = new global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.Replace(body); this.Post(operation); return(operation.ResponsePort); }
public virtual global::Microsoft.Ccr.Core.Choice Replace(out global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.Replace operation) { global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State body = new global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State(); operation = new global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.Replace(body); this.Post(operation); return(operation.ResponsePort); }
public static object Microsoft_Robotics_Services_Explorer_State_TO_Microsoft_Robotics_Services_Explorer_Proxy_State(object transformFrom) { global::Microsoft.Robotics.Services.Explorer.Proxy.State target = new global::Microsoft.Robotics.Services.Explorer.Proxy.State(); global::Microsoft.Robotics.Services.Explorer.State from = ((global::Microsoft.Robotics.Services.Explorer.State)(transformFrom)); global::Microsoft.Robotics.Services.Drive.Proxy.DriveDifferentialTwoWheelState tmp = from.DriveState; if ((tmp != null)) { global::Microsoft.Robotics.Services.Drive.Proxy.DriveDifferentialTwoWheelState tmp0 = new global::Microsoft.Robotics.Services.Drive.Proxy.DriveDifferentialTwoWheelState(); ((Microsoft.Dss.Core.IDssSerializable)(tmp)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp0))); target.DriveState = tmp0; } target.Countdown = from.Countdown; target.LogicalState = ((global::Microsoft.Robotics.Services.Explorer.Proxy.LogicalState)(((int)(from.LogicalState)))); target.NewHeading = from.NewHeading; target.Velocity = from.Velocity; global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State tmp1 = from.South; if ((tmp1 != null)) { global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State tmp2 = new global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State(); ((Microsoft.Dss.Core.IDssSerializable)(tmp1)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp2))); target.South = tmp2; } target.Mapped = from.Mapped; target.MostRecentLaser = from.MostRecentLaser; return(target); }
public virtual global::Microsoft.Ccr.Core.PortSet <global::Microsoft.Dss.ServiceModel.Dssp.DefaultUpdateResponseType, global:: W3C.Soap.Fault> LaserRangeFinderUpdate(global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State body) { if ((body == null)) { body = new global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State(); } global::Microsoft.Robotics.Services.Explorer.Proxy.LaserRangeFinderUpdate operation = new global::Microsoft.Robotics.Services.Explorer.Proxy.LaserRangeFinderUpdate(body); this.Post(operation); return(operation.ResponsePort); }
/// <summary> ///Deserializes State ///</summary> ///<param name="reader">the reader from which to deserialize</param> ///<returns>deserialized State</returns> public virtual object Deserialize(System.IO.BinaryReader reader) { if ((reader.ReadByte() != 0)) { this._DriveState = ((global::Microsoft.Robotics.Services.Drive.Proxy.DriveDifferentialTwoWheelState)(((Microsoft.Dss.Core.IDssSerializable)(new global::Microsoft.Robotics.Services.Drive.Proxy.DriveDifferentialTwoWheelState())).Deserialize(reader))); } this._Countdown = reader.ReadInt32(); this._LogicalState = ((global::Microsoft.Robotics.Services.Explorer.Proxy.LogicalState)(reader.ReadInt32())); this._NewHeading = reader.ReadInt32(); this._Velocity = reader.ReadInt32(); if ((reader.ReadByte() != 0)) { this._South = ((global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State)(((Microsoft.Dss.Core.IDssSerializable)(new global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State())).Deserialize(reader))); } this._Mapped = reader.ReadBoolean(); this._MostRecentLaser = global::Microsoft.Dss.Services.Serializer.BinarySerializationHelper.DeserializeDateTime(reader); return(this); }
/// <summary> ///Copies the data member values of the current State to the specified target object ///</summary> ///<param name="target">target object (must be an instance of)</param> public virtual void CopyTo(Microsoft.Dss.Core.IDssSerializable target) { global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State typedTarget = ((global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State)(target)); typedTarget._Description = this._Description; if ((this._DistanceMeasurements != null)) { int count = this._DistanceMeasurements.Length; int[] tmp = new int[count]; global::System.Buffer.BlockCopy(this._DistanceMeasurements, 0, tmp, 0, global::System.Buffer.ByteLength(this._DistanceMeasurements)); typedTarget._DistanceMeasurements = tmp; } typedTarget._AngularRange = this._AngularRange; typedTarget._AngularResolution = this._AngularResolution; typedTarget._Units = this._Units; typedTarget._TimeStamp = this._TimeStamp; typedTarget._LinkState = this._LinkState; typedTarget._ComPort = this._ComPort; }
public static object Microsoft_Robotics_Services_Sensors_SickLRF_State_TO_Microsoft_Robotics_Services_Sensors_SickLRF_Proxy_State(object transformFrom) { global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State target = new global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State(); global::Microsoft.Robotics.Services.Sensors.SickLRF.State from = ((global::Microsoft.Robotics.Services.Sensors.SickLRF.State)(transformFrom)); target.Description = from.Description; int[] tmp = from.DistanceMeasurements; if ((tmp != null)) { int count = tmp.Length; int[] tmp0 = new int[count]; global::System.Buffer.BlockCopy(tmp, 0, tmp0, 0, global::System.Buffer.ByteLength(tmp)); target.DistanceMeasurements = tmp0; } target.AngularRange = from.AngularRange; target.AngularResolution = from.AngularResolution; target.Units = ((global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.Units)(((int)(from.Units)))); target.TimeStamp = from.TimeStamp; target.LinkState = from.LinkState; target.ComPort = from.ComPort; return(target); }
/// <summary> ///Copies the data member values of the current State to the specified target object ///</summary> ///<param name="target">target object (must be an instance of)</param> public virtual void CopyTo(Microsoft.Dss.Core.IDssSerializable target) { global::Microsoft.Robotics.Services.Explorer.Proxy.State typedTarget = ((global::Microsoft.Robotics.Services.Explorer.Proxy.State)(target)); if ((this._DriveState != null)) { global::Microsoft.Robotics.Services.Drive.Proxy.DriveDifferentialTwoWheelState tmp = new global::Microsoft.Robotics.Services.Drive.Proxy.DriveDifferentialTwoWheelState(); ((Microsoft.Dss.Core.IDssSerializable)(this._DriveState)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp))); typedTarget._DriveState = tmp; } typedTarget._Countdown = this._Countdown; typedTarget._LogicalState = this._LogicalState; typedTarget._NewHeading = this._NewHeading; typedTarget._Velocity = this._Velocity; if ((this._South != null)) { global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State tmp0 = new global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State(); ((Microsoft.Dss.Core.IDssSerializable)(this._South)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp0))); typedTarget._South = tmp0; } typedTarget._Mapped = this._Mapped; typedTarget._MostRecentLaser = this._MostRecentLaser; }
public LaserRangeFinderUpdate(global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State body, global::Microsoft.Ccr.Core.PortSet <global::Microsoft.Dss.ServiceModel.Dssp.DefaultUpdateResponseType, global:: W3C.Soap.Fault> responsePort) : base(body, responsePort) { }
public LaserRangeFinderUpdate(global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State body) : base(body) { }
public Replace(global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State body, global::Microsoft.Dss.ServiceModel.Dssp.DsspResponsePort <global::Microsoft.Dss.ServiceModel.Dssp.DefaultReplaceResponseType> responsePort) : base(body, responsePort) { }
public Replace(global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State body) : base(body) { }
/// <summary> ///Clones State ///</summary> ///<returns>cloned value</returns> public virtual object Clone() { global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State target0 = new global::Microsoft.Robotics.Services.Sensors.SickLRF.Proxy.State(); this.CopyTo(target0); return(target0); }