fix: normalize empty-map path clearance
This commit is contained in:
@@ -586,8 +586,16 @@ internal static class TrajectoryObservationChecks
|
||||
Verification.True(bootstrap.Map != null, "observer empty-map bootstrap returns a map");
|
||||
Verification.Equal(PlanningStatus.Success, bootstrap.CoarseResult.PlanningResult.Status,
|
||||
"observer empty-map coarse planning succeeds");
|
||||
Verification.True(bootstrap.SmoothedPath != null && IsPublishableSmoothingStatus(bootstrap.SmoothedPath.Status),
|
||||
PathSmoothingResult smoothedPath = bootstrap.SmoothedPath ?? throw new InvalidOperationException(
|
||||
"observer empty-map bootstrap has no smoothing result");
|
||||
Verification.True(IsPublishableSmoothingStatus(smoothedPath.Status),
|
||||
"observer empty-map bootstrap returns a publishable smoothing result");
|
||||
for (int index = 0; index < smoothedPath.Path.Count; index++)
|
||||
{
|
||||
Verification.True(!double.IsNaN(smoothedPath.Path[index].BodyClearance) &&
|
||||
!double.IsInfinity(smoothedPath.Path[index].BodyClearance),
|
||||
"observer empty-map smoothing path has finite body clearance at " + index);
|
||||
}
|
||||
Verification.True(bootstrap.Segments.Count > 0,
|
||||
"observer empty-map bootstrap returns at least one direction segment");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user