feat(lane_route): keep a preferred footprint gap on lattice paths (R2.5)
The lattice tier first finds a path with the minimum gap, as before, so coverage cannot drop. If that path is not legal under lattice_preferred_gap_m (0.15 m) away from the ends, a bounded upgrade search (lattice_preferred_time_fraction of the rung slice) tries a wider path and replaces it on success. Smoothing keeps the margin of the returned path. PlanInfo, eval JSON and the plugin debug/fallback line report the gap pass, the minimum gap and the upgrade time. The plugin loads the preferred-gap and smoother keys. regress7 (3 s): coverage equal to R2c (hook_150 1718, kit 1709), graph-only output identical, middle gap >= 0.15 m on 133/153 and 128/190 lattice paths (R2c 88 and 89), Python recheck 0 bad.
This commit is contained in:
@@ -316,7 +316,8 @@ private:
|
||||
context_.deviation_deg*kPi/180.0 + 1e-9) return false;
|
||||
}
|
||||
}
|
||||
const double radius = std::hypot(context_.config.half_x_m, context_.config.half_y_m) + context_.config.footprint_min_gap_m;
|
||||
const double radius = std::hypot(context_.config.half_x_m + space_.gapMargin(),
|
||||
context_.config.half_y_m + space_.gapMargin());
|
||||
return space_.poseFree(a.x, a.y, a.yaw, bound + 2.0*radius*std::sin(turn/2.0), bound);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user