Exemple #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (pathTimePoint_ == null)
                    {
                        pathTimePoint_ = new global::Apollo.Planning.PathTimePoint();
                    }
                    input.ReadMessage(pathTimePoint_);
                    break;
                }

                case 17: {
                    RefV = input.ReadDouble();
                    break;
                }
                }
            }
        }
Exemple #2
0
 public void MergeFrom(PathTimeObstacle other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ObstacleId.Length != 0)
     {
         ObstacleId = other.ObstacleId;
     }
     if (other.bottomLeft_ != null)
     {
         if (bottomLeft_ == null)
         {
             bottomLeft_ = new global::Apollo.Planning.PathTimePoint();
         }
         BottomLeft.MergeFrom(other.BottomLeft);
     }
     if (other.upperLeft_ != null)
     {
         if (upperLeft_ == null)
         {
             upperLeft_ = new global::Apollo.Planning.PathTimePoint();
         }
         UpperLeft.MergeFrom(other.UpperLeft);
     }
     if (other.upperRight_ != null)
     {
         if (upperRight_ == null)
         {
             upperRight_ = new global::Apollo.Planning.PathTimePoint();
         }
         UpperRight.MergeFrom(other.UpperRight);
     }
     if (other.bottomRight_ != null)
     {
         if (bottomRight_ == null)
         {
             bottomRight_ = new global::Apollo.Planning.PathTimePoint();
         }
         BottomRight.MergeFrom(other.BottomRight);
     }
     if (other.TimeLower != 0D)
     {
         TimeLower = other.TimeLower;
     }
     if (other.TimeUpper != 0D)
     {
         TimeUpper = other.TimeUpper;
     }
     if (other.PathLower != 0D)
     {
         PathLower = other.PathLower;
     }
     if (other.PathUpper != 0D)
     {
         PathUpper = other.PathUpper;
     }
 }
Exemple #3
0
 public void MergeFrom(SamplePoint other)
 {
     if (other == null)
     {
         return;
     }
     if (other.pathTimePoint_ != null)
     {
         if (pathTimePoint_ == null)
         {
             pathTimePoint_ = new global::Apollo.Planning.PathTimePoint();
         }
         PathTimePoint.MergeFrom(other.PathTimePoint);
     }
     if (other.RefV != 0D)
     {
         RefV = other.RefV;
     }
 }
Exemple #4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    ObstacleId = input.ReadString();
                    break;
                }

                case 18: {
                    if (bottomLeft_ == null)
                    {
                        bottomLeft_ = new global::Apollo.Planning.PathTimePoint();
                    }
                    input.ReadMessage(bottomLeft_);
                    break;
                }

                case 26: {
                    if (upperLeft_ == null)
                    {
                        upperLeft_ = new global::Apollo.Planning.PathTimePoint();
                    }
                    input.ReadMessage(upperLeft_);
                    break;
                }

                case 34: {
                    if (upperRight_ == null)
                    {
                        upperRight_ = new global::Apollo.Planning.PathTimePoint();
                    }
                    input.ReadMessage(upperRight_);
                    break;
                }

                case 42: {
                    if (bottomRight_ == null)
                    {
                        bottomRight_ = new global::Apollo.Planning.PathTimePoint();
                    }
                    input.ReadMessage(bottomRight_);
                    break;
                }

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

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

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

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