public void MergeFrom(Ins other) { if (other == null) { return; } if (other.header_ != null) { if (header_ == null) { header_ = new global::Apollo.Common.Header(); } Header.MergeFrom(other.Header); } if (other.MeasurementTime != 0D) { MeasurementTime = other.MeasurementTime; } if (other.Type != 0) { Type = other.Type; } if (other.position_ != null) { if (position_ == null) { position_ = new global::Apollo.Common.PointLLH(); } Position.MergeFrom(other.Position); } if (other.eulerAngles_ != null) { if (eulerAngles_ == null) { eulerAngles_ = new global::Apollo.Common.Point3D(); } EulerAngles.MergeFrom(other.EulerAngles); } if (other.linearVelocity_ != null) { if (linearVelocity_ == null) { linearVelocity_ = new global::Apollo.Common.Point3D(); } LinearVelocity.MergeFrom(other.LinearVelocity); } if (other.angularVelocity_ != null) { if (angularVelocity_ == null) { angularVelocity_ = new global::Apollo.Common.Point3D(); } AngularVelocity.MergeFrom(other.AngularVelocity); } if (other.linearAcceleration_ != null) { if (linearAcceleration_ == null) { linearAcceleration_ = new global::Apollo.Common.Point3D(); } LinearAcceleration.MergeFrom(other.LinearAcceleration); } positionCovariance_.Add(other.positionCovariance_); eulerAnglesCovariance_.Add(other.eulerAnglesCovariance_); linearVelocityCovariance_.Add(other.linearVelocityCovariance_); angularVelocityCovariance_.Add(other.angularVelocityCovariance_); linearAccelerationCovariance_.Add(other.linearAccelerationCovariance_); }