feat(lane_route): footprint standability, unknown cells in graph gap (R2.8)
- Standability: a cell is passable for the graph length reference and the lattice heuristic field only when the footprint plus the minimum gap fits at one of 16 headings; memoised per 32x32 tile, open space skips the test. - Graph reference no longer cuts diagonal corners; route_too_long reports the reference length. - Lattice field: coarse block passability decided lazily on first touch. - ReferenceMemo: one route_too_long reference search per core pass instead of one per candidate. - Graph tier counts unknown cells as obstacles for the footprint gap, like the lattice (user ruling 10/11). - PlanInfo and eval JSON: standability counters, graph reference length.
This commit is contained in:
@@ -98,6 +98,9 @@ private:
|
||||
};
|
||||
|
||||
/** Everything one core pass needs. The corner cache lives across retries and the neutral pass. */
|
||||
class Standability;
|
||||
struct ReferenceMemo;
|
||||
|
||||
struct QueryContext
|
||||
{
|
||||
const GridRef& grid;
|
||||
@@ -116,6 +119,8 @@ struct QueryContext
|
||||
std::map<std::array<double, 6>, std::vector<CornerOption>> corner_options;
|
||||
PlanInfo* info = nullptr;
|
||||
const std::atomic<bool>* cancel = nullptr;
|
||||
Standability* standability = nullptr;
|
||||
ReferenceMemo* reference = nullptr; // Shared route_too_long reference of this pass; set with standability.
|
||||
|
||||
bool expired() const { return (cancel && cancel->load(std::memory_order_relaxed)) || Clock::now() >= deadline; }
|
||||
bool lineLegal(const Point2& a, const Point2& b) const { return lineOk(grid, a, b, deviation_deg, hard_mm); }
|
||||
|
||||
Reference in New Issue
Block a user