Ejemplo n.º 1
0
 public void MergeFrom(MapMsg other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             header_ = new global::Apollo.Common.Header();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.hdmap_ != null)
     {
         if (hdmap_ == null)
         {
             hdmap_ = new global::Apollo.Hdmap.Map();
         }
         Hdmap.MergeFrom(other.Hdmap);
     }
     navigationPath_.Add(other.navigationPath_);
     if (other.laneMarker_ != null)
     {
         if (laneMarker_ == null)
         {
             laneMarker_ = new global::Apollo.Perception.LaneMarkers();
         }
         LaneMarker.MergeFrom(other.LaneMarker);
     }
     if (other.localization_ != null)
     {
         if (localization_ == null)
         {
             localization_ = new global::Apollo.Localization.LocalizationEstimate();
         }
         Localization.MergeFrom(other.Localization);
     }
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (hdmap_ != null)
            {
                hash ^= Hdmap.GetHashCode();
            }
            hash ^= NavigationPath.GetHashCode();
            if (laneMarker_ != null)
            {
                hash ^= LaneMarker.GetHashCode();
            }
            if (localization_ != null)
            {
                hash ^= Localization.GetHashCode();
            }
            return(hash);
        }