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:
@@ -141,8 +141,10 @@ void applyOverrides(PlannerConfig* config)
|
||||
{ "fallback_time_limit_s", &config->fallback_time_limit_s },
|
||||
{ "lattice_end_relax_radius_m", &config->lattice_end_relax_radius_m },
|
||||
{ "min_turn_radius_m", &config->min_turn_radius_m },
|
||||
{ "max_kink_deg", &config->max_kink_deg },
|
||||
{ "regular_turn_radius_m", &config->regular_turn_radius_m },
|
||||
{ "lattice_tight_turn_cost_m", &config->lattice_tight_turn_cost_m },
|
||||
{ "lattice_field_extra_clearance_m", &config->lattice_field_extra_clearance_m },
|
||||
};
|
||||
const std::map<std::string, int*> ints{
|
||||
{ "lattice_heading_bins", &config->lattice_heading_bins },
|
||||
@@ -352,7 +354,7 @@ int main(int argc, char** argv)
|
||||
if (result.ok)
|
||||
{
|
||||
out << ",\"min_gap\":" << info.min_gap_m << ",\"exempt\":" << (info.gap_exemption_used ? 1 : 0) << ",\"kinks\":" << result.check.kinks
|
||||
<< ",\"crossings\":" << result.check.self_crossings << ",\"zone_violations\":" << result.check.zone_violations
|
||||
<< ",\"corners\":" << result.check.corners << ",\"crossings\":" << result.check.self_crossings << ",\"zone_violations\":" << result.check.zone_violations
|
||||
<< ",\"collisions\":" << result.check.footprint_collisions << ",\"path\":[";
|
||||
for (std::size_t i = 0; i < result.path.size(); ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user