Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (pose_ != null)
            {
                hash ^= Pose.GetHashCode();
            }
            if (uncertainty_ != null)
            {
                hash ^= Uncertainty.GetHashCode();
            }
            if (MeasurementTime != 0D)
            {
                hash ^= MeasurementTime.GetHashCode();
            }
            hash ^= trajectoryPoint_.GetHashCode();
            if (msfStatus_ != null)
            {
                hash ^= MsfStatus.GetHashCode();
            }
            if (sensorStatus_ != null)
            {
                hash ^= SensorStatus.GetHashCode();
            }
            return(hash);
        }
Exemple #2
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);
     }
 }