feat(lane_route): footprint-zone rule with entry/exit transition, longer lane-end links (R2.11)

- A footprint may overlap a direction zone against its heading only within
  zone_transition_m (default 1.0 m) of path where the centre is inside that
  same zone, or at a parked endpoint. Checked on whole paths by the verifier.
- The lattice C-space keeps the strict per-pose rule so its paths always pass.
- Lane-end junction links reach 8 m with up to 24 links (was 6 m / 12 tries).
- lane_route_eval can dump the graph, attempts and routes per query.
This commit is contained in:
2026-11-10 16:32:02 +07:00
parent f6c69b94a9
commit ab8fc7a540
3 changed files with 12 additions and 2 deletions

View File

@@ -222,6 +222,9 @@ TEST(AdapterConfig, RejectsInvalidParameters)
c.planner.min_turn_radius_m = 0;
EXPECT_FALSE(c.validate().empty());
c = SessionConfig();
c.planner.zone_transition_m = -0.01;
EXPECT_FALSE(c.validate().empty());
c = SessionConfig();
c.planner.max_route_attempts = 0;
EXPECT_FALSE(c.validate().empty());
c = SessionConfig();
@@ -234,6 +237,7 @@ TEST(AdapterConfig, LatticeYamlReachesPlannerConfig)
robot::NodeHandle root;
root.setParam("LaneRouteLatticeConfigTest", YAML::Load(R"(
lattice_enabled: true
zone_transition_m: 0.7
lattice_preferred_gap_m: 0.18
lattice_preferred_time_fraction: 0.35
lattice_smooth_enabled: false
@@ -267,6 +271,7 @@ TEST(AdapterConfig, LatticeYamlReachesPlannerConfig)
const auto& p = config.planner;
EXPECT_TRUE(config.validate().empty());
EXPECT_TRUE(p.lattice_enabled);
EXPECT_DOUBLE_EQ(p.zone_transition_m, 0.7);
EXPECT_DOUBLE_EQ(p.lattice_preferred_gap_m, 0.18);
EXPECT_DOUBLE_EQ(p.lattice_preferred_time_fraction, 0.35);
EXPECT_FALSE(p.lattice_smooth_enabled);
@@ -299,6 +304,7 @@ TEST(AdapterConfig, LatticeYamlReachesPlannerConfig)
const auto defaults = loadSessionConfig(robot::NodeHandle(root, "LaneRouteLatticeDefaultsTest"));
const PlannerConfig expected;
EXPECT_FALSE(defaults.planner.lattice_enabled);
EXPECT_DOUBLE_EQ(defaults.planner.zone_transition_m, 1.0);
EXPECT_EQ(defaults.planner.lattice_heading_bins, expected.lattice_heading_bins);
EXPECT_DOUBLE_EQ(defaults.planner.lattice_preferred_gap_m, expected.lattice_preferred_gap_m);
EXPECT_DOUBLE_EQ(defaults.planner.lattice_preferred_time_fraction, expected.lattice_preferred_time_fraction);