feat(lane_route): second heuristic field and diagonal zone margin (R2.10)
- lattice_alt_field_enabled (default false), lattice_alt_field_relax_m, lattice_alt_field_switch_fraction: when the search on the first field has not finished at the switch point, it restarts once on a field with no extra clearance and the alternate relax. Exhausted searches do not switch. PlanInfo/eval/debug line report field_pass. - lattice_field_zone_margin_deg (default 0): diagonal field steps through a direction zone must stay that far inside the deviation limit; at exactly 45 deg the field otherwise follows a diagonal a turning robot cannot hold (sim M4, M7, 4a timed out even with 10 s). - lane_route_eval compiles the graph with the live master when it holds preferred cells, as the plugin does. - Measured 10/11 (sim settings, 10 s, margin 15, alternate on): regress7 hook_150 1719, kit 1718, no query lost, independent recheck 0 bad.
This commit is contained in:
12
README.md
12
README.md
@@ -50,6 +50,18 @@ Keys (defaults from `PlannerConfig`):
|
||||
- `lattice_field_standability_relax_m: 0.0` [m]: shrink each inflated footprint half size for the lattice field's
|
||||
standability test only. Higher values can reopen blocked gaps and improve the guide, but can also guide search into
|
||||
impossible gaps. The extra-clearance filter remains separate; search and final footprint checks keep the full gap.
|
||||
- `lattice_field_zone_margin_deg: 0.0` [deg]: the heuristic field takes a diagonal grid step through a direction zone only
|
||||
within (deviation - margin) of the zone direction. Grid steps are 45 deg apart, so at a deviation of exactly 45 deg the
|
||||
field otherwise follows a diagonal at the limit of the rule that a turning robot cannot hold, and the search floods
|
||||
until the budget ends. Axis steps keep the full deviation (closing them too slowed 90 deg queries). Search and
|
||||
verification keep the full deviation.
|
||||
- `lattice_alt_field_enabled: false`, `lattice_alt_field_relax_m: 0.035` [m], `lattice_alt_field_switch_fraction: 0.35`:
|
||||
a second heuristic field. One 2D field cannot suit both kinds of narrow passage: a strict field closes passages the
|
||||
robot only fits off the cell centre, an optimistic one leads the search into post gaps no heading fits. When the
|
||||
search on the first field has not finished at the switch fraction of the fallback slice, it restarts once on a field
|
||||
with no extra clearance and the alternate relax. An exhausted search does not switch (the field orders states, it
|
||||
does not make them legal). Skipped when the first field already has no extra clearance and the same relax. The
|
||||
`[debug] fallback` line reports `field_pass=primary|alternate`.
|
||||
- `debug/dump_dir: ""`, `debug/dump_max_files: 20`: when the directory is set, each failed query
|
||||
writes its static cost, master cost, direction codes and poses as `lane_route_eval` input
|
||||
(`<stem>.grid`, `.live`, `.scene`, `.txt`), at most that many per session. Off by default because
|
||||
|
||||
Reference in New Issue
Block a user