public override int GetHashCode() { int hash = 1; if (totalPathLength_ != null) { hash ^= TotalPathLength.GetHashCode(); } if (totalPathTime_ != null) { hash ^= TotalPathTime.GetHashCode(); } if (v_ != null) { hash ^= V.GetHashCode(); } if (a_ != null) { hash ^= A.GetHashCode(); } if (kappa_ != null) { hash ^= Kappa.GetHashCode(); } if (dkappa_ != null) { hash ^= Dkappa.GetHashCode(); } return(hash); }
public void MergeFrom(PlanningStats other) { if (other == null) { return; } if (other.totalPathLength_ != null) { if (totalPathLength_ == null) { totalPathLength_ = new global::Apollo.Planning.StatsGroup(); } TotalPathLength.MergeFrom(other.TotalPathLength); } if (other.totalPathTime_ != null) { if (totalPathTime_ == null) { totalPathTime_ = new global::Apollo.Planning.StatsGroup(); } TotalPathTime.MergeFrom(other.TotalPathTime); } if (other.v_ != null) { if (v_ == null) { v_ = new global::Apollo.Planning.StatsGroup(); } V.MergeFrom(other.V); } if (other.a_ != null) { if (a_ == null) { a_ = new global::Apollo.Planning.StatsGroup(); } A.MergeFrom(other.A); } if (other.kappa_ != null) { if (kappa_ == null) { kappa_ = new global::Apollo.Planning.StatsGroup(); } Kappa.MergeFrom(other.Kappa); } if (other.dkappa_ != null) { if (dkappa_ == null) { dkappa_ = new global::Apollo.Planning.StatsGroup(); } Dkappa.MergeFrom(other.Dkappa); } }
public override int GetHashCode() { int hash = 1; if (TotalPathLength != 0D) { hash ^= TotalPathLength.GetHashCode(); } if (TotalTime != 0D) { hash ^= TotalTime.GetHashCode(); } if (PreferredAccel != 0D) { hash ^= PreferredAccel.GetHashCode(); } if (PreferredDecel != 0D) { hash ^= PreferredDecel.GetHashCode(); } if (MaxAccel != 0D) { hash ^= MaxAccel.GetHashCode(); } if (MinDecel != 0D) { hash ^= MinDecel.GetHashCode(); } if (SpeedLimitBuffer != 0D) { hash ^= SpeedLimitBuffer.GetHashCode(); } if (SpeedWeight != 0D) { hash ^= SpeedWeight.GetHashCode(); } if (JerkWeight != 0D) { hash ^= JerkWeight.GetHashCode(); } if (ObstacleWeight != 0D) { hash ^= ObstacleWeight.GetHashCode(); } if (UnblockingObstacleCost != 0D) { hash ^= UnblockingObstacleCost.GetHashCode(); } if (stBoundaryConfig_ != null) { hash ^= StBoundaryConfig.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (TotalPathLength != 0D) { hash ^= TotalPathLength.GetHashCode(); } if (PathResolution != 0D) { hash ^= PathResolution.GetHashCode(); } if (MaxDddl != 0D) { hash ^= MaxDddl.GetHashCode(); } if (LWeight != 0D) { hash ^= LWeight.GetHashCode(); } if (DlWeight != 0D) { hash ^= DlWeight.GetHashCode(); } if (DdlWeight != 0D) { hash ^= DdlWeight.GetHashCode(); } if (DddlWeight != 0D) { hash ^= DddlWeight.GetHashCode(); } if (GuidingLineWeight != 0D) { hash ^= GuidingLineWeight.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (TotalPathLength != 0D) { hash ^= TotalPathLength.GetHashCode(); } if (TotalTime != 0D) { hash ^= TotalTime.GetHashCode(); } if (MatrixDimensionS != 0) { hash ^= MatrixDimensionS.GetHashCode(); } if (MatrixDimensionT != 0) { hash ^= MatrixDimensionT.GetHashCode(); } if (SpeedWeight != 0D) { hash ^= SpeedWeight.GetHashCode(); } if (AccelWeight != 0D) { hash ^= AccelWeight.GetHashCode(); } if (JerkWeight != 0D) { hash ^= JerkWeight.GetHashCode(); } if (ObstacleWeight != 0D) { hash ^= ObstacleWeight.GetHashCode(); } if (ReferenceWeight != 0D) { hash ^= ReferenceWeight.GetHashCode(); } if (GoDownBuffer != 0D) { hash ^= GoDownBuffer.GetHashCode(); } if (GoUpBuffer != 0D) { hash ^= GoUpBuffer.GetHashCode(); } if (DefaultObstacleCost != 0D) { hash ^= DefaultObstacleCost.GetHashCode(); } if (DefaultSpeedCost != 0D) { hash ^= DefaultSpeedCost.GetHashCode(); } if (ExceedSpeedPenalty != 0D) { hash ^= ExceedSpeedPenalty.GetHashCode(); } if (LowSpeedPenalty != 0D) { hash ^= LowSpeedPenalty.GetHashCode(); } if (KeepClearLowSpeedPenalty != 0D) { hash ^= KeepClearLowSpeedPenalty.GetHashCode(); } if (AccelPenalty != 0D) { hash ^= AccelPenalty.GetHashCode(); } if (DecelPenalty != 0D) { hash ^= DecelPenalty.GetHashCode(); } if (PositiveJerkCoeff != 0D) { hash ^= PositiveJerkCoeff.GetHashCode(); } if (NegativeJerkCoeff != 0D) { hash ^= NegativeJerkCoeff.GetHashCode(); } if (MaxAcceleration != 0D) { hash ^= MaxAcceleration.GetHashCode(); } if (MaxDeceleration != 0D) { hash ^= MaxDeceleration.GetHashCode(); } if (stBoundaryConfig_ != null) { hash ^= StBoundaryConfig.GetHashCode(); } return(hash); }