Пример #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (localization_ == null)
                    {
                        localization_ = new global::Apollo.Localization.LocalizationEstimate();
                    }
                    input.ReadMessage(localization_);
                    break;
                }

                case 18: {
                    if (chassisDetail_ == null)
                    {
                        chassisDetail_ = new global::Apollo.Canbus.ChassisDetail();
                    }
                    input.ReadMessage(chassisDetail_);
                    break;
                }
                }
            }
        }
Пример #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 (hdmap_ == null)
                    {
                        hdmap_ = new global::Apollo.Hdmap.Map();
                    }
                    input.ReadMessage(hdmap_);
                    break;
                }

                case 26: {
                    navigationPath_.AddEntriesFrom(input, _map_navigationPath_codec);
                    break;
                }

                case 34: {
                    if (laneMarker_ == null)
                    {
                        laneMarker_ = new global::Apollo.Perception.LaneMarkers();
                    }
                    input.ReadMessage(laneMarker_);
                    break;
                }

                case 42: {
                    if (localization_ == null)
                    {
                        localization_ = new global::Apollo.Localization.LocalizationEstimate();
                    }
                    input.ReadMessage(localization_);
                    break;
                }
                }
            }
        }
Пример #3
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);
     }
 }
Пример #4
0
 public void MergeFrom(CarStatus other)
 {
     if (other == null)
     {
         return;
     }
     if (other.localization_ != null)
     {
         if (localization_ == null)
         {
             localization_ = new global::Apollo.Localization.LocalizationEstimate();
         }
         Localization.MergeFrom(other.Localization);
     }
     if (other.chassisDetail_ != null)
     {
         if (chassisDetail_ == null)
         {
             chassisDetail_ = new global::Apollo.Canbus.ChassisDetail();
         }
         ChassisDetail.MergeFrom(other.ChassisDetail);
     }
 }