fixup! feat: apply ST stop constraints only at real boundaries
This commit is contained in:
+3
-2
@@ -62,8 +62,9 @@ public sealed class LongitudinalSolutionValidator
|
||||
failureReason = "ST candidate violates physical bounds at knot " + index + ".";
|
||||
return false;
|
||||
}
|
||||
double speedLimitAtProgress = speedLimit.MaximumSpeedAt(
|
||||
Math.Max(0d, Math.Min(input.PathUpperBoundS, progress)));
|
||||
double speedLimitAtProgress = index == 0
|
||||
? input.DirectionMaximumSpeedMetersPerSecond
|
||||
: speedLimit.MaximumSpeedAt(Math.Max(0d, Math.Min(input.PathUpperBoundS, progress)));
|
||||
if (speed > speedLimitAtProgress + tolerance)
|
||||
{
|
||||
failureReason = "ST candidate violates the actual-PathS speed envelope at knot " + index +
|
||||
|
||||
Reference in New Issue
Block a user