Exemplo n.º 1
0
 public void MergeFrom(DriveEvent other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             header_ = new global::Apollo.Common.Header();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.Event.Length != 0)
     {
         Event = other.Event;
     }
     if (other.location_ != null)
     {
         if (location_ == null)
         {
             location_ = new global::Apollo.Localization.Pose();
         }
         Location.MergeFrom(other.Location);
     }
     type_.Add(other.type_);
 }
Exemplo n.º 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (header_ == null)
                    {
                        header_ = new global::Apollo.Common.Header();
                    }
                    input.ReadMessage(header_);
                    break;
                }

                case 18: {
                    if (localization_ == null)
                    {
                        localization_ = new global::Apollo.Localization.Pose();
                    }
                    input.ReadMessage(localization_);
                    break;
                }
                }
            }
        }
Exemplo n.º 3
0
 public void MergeFrom(LocalizationEstimate other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             header_ = new global::Apollo.Common.Header();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.pose_ != null)
     {
         if (pose_ == null)
         {
             pose_ = new global::Apollo.Localization.Pose();
         }
         Pose.MergeFrom(other.Pose);
     }
     if (other.uncertainty_ != null)
     {
         if (uncertainty_ == null)
         {
             uncertainty_ = new global::Apollo.Localization.Uncertainty();
         }
         Uncertainty.MergeFrom(other.Uncertainty);
     }
     if (other.MeasurementTime != 0D)
     {
         MeasurementTime = other.MeasurementTime;
     }
     trajectoryPoint_.Add(other.trajectoryPoint_);
     if (other.msfStatus_ != null)
     {
         if (msfStatus_ == null)
         {
             msfStatus_ = new global::Apollo.Localization.MsfStatus();
         }
         MsfStatus.MergeFrom(other.MsfStatus);
     }
     if (other.sensorStatus_ != null)
     {
         if (sensorStatus_ == null)
         {
             sensorStatus_ = new global::Apollo.Localization.MsfSensorMsgStatus();
         }
         SensorStatus.MergeFrom(other.SensorStatus);
     }
 }
Exemplo n.º 4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (header_ == null)
                    {
                        header_ = new global::Apollo.Common.Header();
                    }
                    input.ReadMessage(header_);
                    break;
                }

                case 18: {
                    Event = input.ReadString();
                    break;
                }

                case 26: {
                    if (location_ == null)
                    {
                        location_ = new global::Apollo.Localization.Pose();
                    }
                    input.ReadMessage(location_);
                    break;
                }

                case 34:
                case 32: {
                    type_.AddEntriesFrom(input, _repeated_type_codec);
                    break;
                }
                }
            }
        }
Exemplo n.º 5
0
 public void MergeFrom(Gps other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             header_ = new global::Apollo.Common.Header();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.localization_ != null)
     {
         if (localization_ == null)
         {
             localization_ = new global::Apollo.Localization.Pose();
         }
         Localization.MergeFrom(other.Localization);
     }
 }
Exemplo n.º 6
0
 public void MergeFrom(CorrectedImu other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             header_ = new global::Apollo.Common.Header();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.imu_ != null)
     {
         if (imu_ == null)
         {
             imu_ = new global::Apollo.Localization.Pose();
         }
         Imu.MergeFrom(other.Imu);
     }
 }
Exemplo n.º 7
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 9: {
                    X = input.ReadDouble();
                    break;
                }

                case 17: {
                    Y = input.ReadDouble();
                    break;
                }

                case 25: {
                    Z = input.ReadDouble();
                    break;
                }

                case 33: {
                    Timestamp = input.ReadDouble();
                    break;
                }

                case 41: {
                    Roll = input.ReadDouble();
                    break;
                }

                case 49: {
                    Pitch = input.ReadDouble();
                    break;
                }

                case 57: {
                    Yaw = input.ReadDouble();
                    break;
                }

                case 65: {
                    Heading = input.ReadDouble();
                    break;
                }

                case 73: {
                    Kappa = input.ReadDouble();
                    break;
                }

                case 81: {
                    LinearVelocity = input.ReadDouble();
                    break;
                }

                case 89: {
                    AngularVelocity = input.ReadDouble();
                    break;
                }

                case 97: {
                    LinearAcceleration = input.ReadDouble();
                    break;
                }

                case 104: {
                    gear_ = (global::Apollo.Canbus.Chassis.Types.GearPosition)input.ReadEnum();
                    break;
                }

                case 112: {
                    drivingMode_ = (global::Apollo.Canbus.Chassis.Types.DrivingMode)input.ReadEnum();
                    break;
                }

                case 122: {
                    if (pose_ == null)
                    {
                        pose_ = new global::Apollo.Localization.Pose();
                    }
                    input.ReadMessage(pose_);
                    break;
                }
                }
            }
        }
Exemplo n.º 8
0
 public void MergeFrom(VehicleState other)
 {
     if (other == null)
     {
         return;
     }
     if (other.X != 0D)
     {
         X = other.X;
     }
     if (other.Y != 0D)
     {
         Y = other.Y;
     }
     if (other.Z != 0D)
     {
         Z = other.Z;
     }
     if (other.Timestamp != 0D)
     {
         Timestamp = other.Timestamp;
     }
     if (other.Roll != 0D)
     {
         Roll = other.Roll;
     }
     if (other.Pitch != 0D)
     {
         Pitch = other.Pitch;
     }
     if (other.Yaw != 0D)
     {
         Yaw = other.Yaw;
     }
     if (other.Heading != 0D)
     {
         Heading = other.Heading;
     }
     if (other.Kappa != 0D)
     {
         Kappa = other.Kappa;
     }
     if (other.LinearVelocity != 0D)
     {
         LinearVelocity = other.LinearVelocity;
     }
     if (other.AngularVelocity != 0D)
     {
         AngularVelocity = other.AngularVelocity;
     }
     if (other.LinearAcceleration != 0D)
     {
         LinearAcceleration = other.LinearAcceleration;
     }
     if (other.Gear != 0)
     {
         Gear = other.Gear;
     }
     if (other.DrivingMode != 0)
     {
         DrivingMode = other.DrivingMode;
     }
     if (other.pose_ != null)
     {
         if (pose_ == null)
         {
             pose_ = new global::Apollo.Localization.Pose();
         }
         Pose.MergeFrom(other.Pose);
     }
 }
Exemplo n.º 9
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (header_ == null)
                    {
                        header_ = new global::Apollo.Common.Header();
                    }
                    input.ReadMessage(header_);
                    break;
                }

                case 18: {
                    if (pose_ == null)
                    {
                        pose_ = new global::Apollo.Localization.Pose();
                    }
                    input.ReadMessage(pose_);
                    break;
                }

                case 26: {
                    if (uncertainty_ == null)
                    {
                        uncertainty_ = new global::Apollo.Localization.Uncertainty();
                    }
                    input.ReadMessage(uncertainty_);
                    break;
                }

                case 33: {
                    MeasurementTime = input.ReadDouble();
                    break;
                }

                case 42: {
                    trajectoryPoint_.AddEntriesFrom(input, _repeated_trajectoryPoint_codec);
                    break;
                }

                case 50: {
                    if (msfStatus_ == null)
                    {
                        msfStatus_ = new global::Apollo.Localization.MsfStatus();
                    }
                    input.ReadMessage(msfStatus_);
                    break;
                }

                case 58: {
                    if (sensorStatus_ == null)
                    {
                        sensorStatus_ = new global::Apollo.Localization.MsfSensorMsgStatus();
                    }
                    input.ReadMessage(sensorStatus_);
                    break;
                }
                }
            }
        }