コード例 #1
0
        /// <summary>
        /// Post Connect To Brick with body and return the response port.
        /// </summary>
        public virtual PortSet <DefaultUpdateResponseType, Fault> ConnectToBrick(DriveState body)
        {
            ConnectToBrick op = new ConnectToBrick(body);

            this.Post(op);
            return(op.ResponsePort);
        }
コード例 #2
0
        /// <summary>
        /// Deep Clone DriveState
        /// </summary>
        /// <returns></returns>
        public DriveState Clone()
        {
            DriveState clone = new DriveState();

            clone.DistanceBetweenWheels = this.DistanceBetweenWheels;
            clone.LeftWheel             = (this.LeftWheel == null) ? null : (WheelConfiguration)this.LeftWheel.Clone();
            clone.RightWheel            = (this.RightWheel == null) ? null : (WheelConfiguration)this.RightWheel.Clone();
            clone.PollingFrequencyMs    = this.PollingFrequencyMs;
            clone.TimeStamp             = this.TimeStamp;
            clone.RuntimeStatistics     = (this.RuntimeStatistics == null) ? null : (RuntimeStatistics)this.RuntimeStatistics.Clone();
            return(clone);
        }
コード例 #3
0
 /// <summary>
 /// Configure Drive Connection
 /// </summary>
 public ConnectToBrick(DriveState body, PortSet <DefaultUpdateResponseType, Fault> responsePort)
     : base(body, responsePort)
 {
 }
コード例 #4
0
 /// <summary>
 /// Configure Drive Connection
 /// </summary>
 public ConnectToBrick(DriveState body)
     : base(body)
 {
 }