public void MergeFrom(Odometry other) { if (other == null) { return; } if (other.header_ != null) { if (header_ == null) { header_ = new global::Header(); } Header.MergeFrom(other.Header); } if (other.ChildFrameId.Length != 0) { ChildFrameId = other.ChildFrameId; } if (other.pose_ != null) { if (pose_ == null) { pose_ = new global::PoseWithCovariance(); } Pose.MergeFrom(other.Pose); } if (other.twist_ != null) { if (twist_ == null) { twist_ = new global::TwistWithCovariance(); } Twist.MergeFrom(other.Twist); } }
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::Header(); } input.ReadMessage(header_); break; } case 18: { ChildFrameId = input.ReadString(); break; } case 26: { if (pose_ == null) { pose_ = new global::PoseWithCovariance(); } input.ReadMessage(pose_); break; } case 34: { if (twist_ == null) { twist_ = new global::TwistWithCovariance(); } input.ReadMessage(twist_); break; } } } }