feat(lane_route): sharp corners as the last radius rung, heuristic field margin (R2.7)
max_kink_deg (default 45): in the graph's second pass, a corner where no radius fits may become a sharp corner (two straight lines meeting at one vertex pose, no turn in place) when the footprint can rotate at the vertex; the verifier counts it in PathCheck::corners. The verifier's bend limit now follows min_turn_radius_m (it blocked radii below ~0.72 m). lattice_field_extra_clearance_m (default 0): extra clearance for a cell to be passable in the lattice heuristic field only, with a rebuild of the plain field when the margin field never reaches the start. regress7 with the sim settings (0.4 m floor, margin 0.1): hook_150 1717/1757, kit 1716/1757 (R2.5: 1718, 1709); Python recheck finds no curvature, corner, spin, zone or crossing errors. The graph tier's 30 mm gap still ignores unknown cells, as since R0.
This commit is contained in:
@@ -127,7 +127,9 @@ PlanResult planRoute(const GraphProvider& graphs, const RouteRequest& request, c
|
||||
regular.corner_radii_m.push_back(radius);
|
||||
if (regular.corner_radii_m.empty())
|
||||
regular.corner_radii_m.push_back(regular.min_turn_radius_m);
|
||||
const bool tight_corners = config.min_turn_radius_m < regular.min_turn_radius_m - 1e-9;
|
||||
regular.max_kink_deg = 0.0;
|
||||
// The second pass adds the tight radii and, at its bottom, sharp corners up to max_kink_deg.
|
||||
const bool tight_corners = config.min_turn_radius_m < regular.min_turn_radius_m - 1e-9 || config.max_kink_deg > 0.0;
|
||||
const PlannerConfig& lattice_config = config.lattice_tight_arcs ? config : regular;
|
||||
const double chord = std::hypot(request.goal.x - request.start.x, request.goal.y - request.start.y);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user