public override int GetHashCode() { int hash = 1; if (header_ != null) { hash ^= Header.GetHashCode(); } if (MeasurementTime != 0D) { hash ^= MeasurementTime.GetHashCode(); } if (MeasurementSpan != 0F) { hash ^= MeasurementSpan.GetHashCode(); } if (linearAcceleration_ != null) { hash ^= LinearAcceleration.GetHashCode(); } if (angularVelocity_ != null) { hash ^= AngularVelocity.GetHashCode(); } return(hash); }
public static TabiApiClient.Models.MotionSensor ToApiModel(this LinearAcceleration linearAcceleration) { return(new TabiApiClient.Models.MotionSensor() { X = linearAcceleration.X, Y = linearAcceleration.Y, Z = linearAcceleration.Z, Timestamp = linearAcceleration.Timestamp }); }
public override int GetHashCode() { int hash = 1; if (header_ != null) { hash ^= Header.GetHashCode(); } if (MeasurementTime != 0D) { hash ^= MeasurementTime.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (position_ != null) { hash ^= Position.GetHashCode(); } if (eulerAngles_ != null) { hash ^= EulerAngles.GetHashCode(); } if (linearVelocity_ != null) { hash ^= LinearVelocity.GetHashCode(); } if (angularVelocity_ != null) { hash ^= AngularVelocity.GetHashCode(); } if (linearAcceleration_ != null) { hash ^= LinearAcceleration.GetHashCode(); } hash ^= positionCovariance_.GetHashCode(); hash ^= eulerAnglesCovariance_.GetHashCode(); hash ^= linearVelocityCovariance_.GetHashCode(); hash ^= angularVelocityCovariance_.GetHashCode(); hash ^= linearAccelerationCovariance_.GetHashCode(); return(hash); }
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(Imu 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.MeasurementSpan != 0F) { MeasurementSpan = other.MeasurementSpan; } 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); } }
protected override void OnDisappearing() { base.OnDisappearing(); LinearAcceleration?.Stop(); }
protected override void OnAppearing() { base.OnAppearing(); LinearAcceleration?.Start(); }
public override int GetHashCode() { int hash = 1; if (X != 0D) { hash ^= X.GetHashCode(); } if (Y != 0D) { hash ^= Y.GetHashCode(); } if (Z != 0D) { hash ^= Z.GetHashCode(); } if (Timestamp != 0D) { hash ^= Timestamp.GetHashCode(); } if (Roll != 0D) { hash ^= Roll.GetHashCode(); } if (Pitch != 0D) { hash ^= Pitch.GetHashCode(); } if (Yaw != 0D) { hash ^= Yaw.GetHashCode(); } if (Heading != 0D) { hash ^= Heading.GetHashCode(); } if (Kappa != 0D) { hash ^= Kappa.GetHashCode(); } if (LinearVelocity != 0D) { hash ^= LinearVelocity.GetHashCode(); } if (AngularVelocity != 0D) { hash ^= AngularVelocity.GetHashCode(); } if (LinearAcceleration != 0D) { hash ^= LinearAcceleration.GetHashCode(); } if (Gear != 0) { hash ^= Gear.GetHashCode(); } if (DrivingMode != 0) { hash ^= DrivingMode.GetHashCode(); } if (pose_ != null) { hash ^= Pose.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); } }
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_); }