Beispiel #1
0
 public void MergeFrom(TransformStamped other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             header_ = new global::Apollo.Common.Header();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.ChildFrameId.Length != 0)
     {
         ChildFrameId = other.ChildFrameId;
     }
     if (other.transform_ != null)
     {
         if (transform_ == null)
         {
             transform_ = new global::Apollo.Transform.Transform();
         }
         Transform.MergeFrom(other.Transform);
     }
 }
Beispiel #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: {
                    ChildFrameId = input.ReadString();
                    break;
                }

                case 26: {
                    if (transform_ == null)
                    {
                        transform_ = new global::Apollo.Transform.Transform();
                    }
                    input.ReadMessage(transform_);
                    break;
                }
                }
            }
        }