예제 #1
0
 public void MergeFrom(RecognizeBoxParam other)
 {
     if (other == null)
     {
         return;
     }
     if (other.verticalModel_ != null)
     {
         if (verticalModel_ == null)
         {
             verticalModel_ = new global::Apollo.Perception.Camera.TrafficLight.Recognition.ClassifyParam();
         }
         VerticalModel.MergeFrom(other.VerticalModel);
     }
     if (other.quadrateModel_ != null)
     {
         if (quadrateModel_ == null)
         {
             quadrateModel_ = new global::Apollo.Perception.Camera.TrafficLight.Recognition.ClassifyParam();
         }
         QuadrateModel.MergeFrom(other.QuadrateModel);
     }
     if (other.horizontalModel_ != null)
     {
         if (horizontalModel_ == null)
         {
             horizontalModel_ = new global::Apollo.Perception.Camera.TrafficLight.Recognition.ClassifyParam();
         }
         HorizontalModel.MergeFrom(other.HorizontalModel);
     }
 }
예제 #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (verticalModel_ == null)
                    {
                        verticalModel_ = new global::Apollo.Perception.Camera.TrafficLight.Recognition.ClassifyParam();
                    }
                    input.ReadMessage(verticalModel_);
                    break;
                }

                case 18: {
                    if (quadrateModel_ == null)
                    {
                        quadrateModel_ = new global::Apollo.Perception.Camera.TrafficLight.Recognition.ClassifyParam();
                    }
                    input.ReadMessage(quadrateModel_);
                    break;
                }

                case 26: {
                    if (horizontalModel_ == null)
                    {
                        horizontalModel_ = new global::Apollo.Perception.Camera.TrafficLight.Recognition.ClassifyParam();
                    }
                    input.ReadMessage(horizontalModel_);
                    break;
                }
                }
            }
        }