public override int GetHashCode() { int hash = 1; if (position_ != null) { hash ^= Position.GetHashCode(); } if (orientation_ != null) { hash ^= Orientation.GetHashCode(); } if (linearVelocity_ != null) { hash ^= LinearVelocity.GetHashCode(); } if (linearAcceleration_ != null) { hash ^= LinearAcceleration.GetHashCode(); } if (angularVelocity_ != null) { hash ^= AngularVelocity.GetHashCode(); } if (Heading != 0D) { hash ^= Heading.GetHashCode(); } if (linearAccelerationVrf_ != null) { hash ^= LinearAccelerationVrf.GetHashCode(); } if (angularVelocityVrf_ != null) { hash ^= AngularVelocityVrf.GetHashCode(); } if (eulerAngles_ != null) { hash ^= EulerAngles.GetHashCode(); } return(hash); }
public void MergeFrom(Pose other) { if (other == null) { return; } if (other.position_ != null) { if (position_ == null) { position_ = new global::Apollo.Common.PointENU(); } Position.MergeFrom(other.Position); } if (other.orientation_ != null) { if (orientation_ == null) { orientation_ = new global::Apollo.Common.Quaternion(); } Orientation.MergeFrom(other.Orientation); } if (other.linearVelocity_ != null) { if (linearVelocity_ == null) { linearVelocity_ = new global::Apollo.Common.Point3D(); } LinearVelocity.MergeFrom(other.LinearVelocity); } if (other.linearAcceleration_ != null) { if (linearAcceleration_ == null) { linearAcceleration_ = new global::Apollo.Common.Point3D(); } LinearAcceleration.MergeFrom(other.LinearAcceleration); } if (other.angularVelocity_ != null) { if (angularVelocity_ == null) { angularVelocity_ = new global::Apollo.Common.Point3D(); } AngularVelocity.MergeFrom(other.AngularVelocity); } if (other.Heading != 0D) { Heading = other.Heading; } if (other.linearAccelerationVrf_ != null) { if (linearAccelerationVrf_ == null) { linearAccelerationVrf_ = new global::Apollo.Common.Point3D(); } LinearAccelerationVrf.MergeFrom(other.LinearAccelerationVrf); } if (other.angularVelocityVrf_ != null) { if (angularVelocityVrf_ == null) { angularVelocityVrf_ = new global::Apollo.Common.Point3D(); } AngularVelocityVrf.MergeFrom(other.AngularVelocityVrf); } if (other.eulerAngles_ != null) { if (eulerAngles_ == null) { eulerAngles_ = new global::Apollo.Common.Point3D(); } EulerAngles.MergeFrom(other.EulerAngles); } }