public void MergeFrom(DriveEvent other) { if (other == null) { return; } if (other.header_ != null) { if (header_ == null) { header_ = new global::Apollo.Common.Header(); } Header.MergeFrom(other.Header); } if (other.Event.Length != 0) { Event = other.Event; } if (other.location_ != null) { if (location_ == null) { location_ = new global::Apollo.Localization.Pose(); } Location.MergeFrom(other.Location); } type_.Add(other.type_); }
public void MergeFrom(Detection3DArray other) { if (other == null) { return; } if (other.header_ != null) { if (header_ == null) { header_ = new global::Apollo.Common.Header(); } Header.MergeFrom(other.Header); } detections_.Add(other.detections_); }
public void MergeFrom(Detection3D other) { if (other == null) { return; } if (other.header_ != null) { if (header_ == null) { header_ = new global::Apollo.Common.Header(); } Header.MergeFrom(other.Header); } if (other.Id != 0) { Id = other.Id; } if (other.Label.Length != 0) { Label = other.Label; } if (other.Score != 0D) { Score = other.Score; } if (other.bbox_ != null) { if (bbox_ == null) { bbox_ = new global::Apollo.Common.BoundingBox3D(); } Bbox.MergeFrom(other.Bbox); } if (other.velocity_ != null) { if (velocity_ == null) { velocity_ = new global::Apollo.Common.Twist(); } Velocity.MergeFrom(other.Velocity); } }