Skip to main content

Module preprocessed_grid

Module preprocessed_grid 

Source
Expand description

Preprocessed static multi-query grid search substrates. Algorithm-neutral build-once/query-many contracts for static grid search.

A PreprocessedGridBuilder snapshots a Grid into a PreparedGridSearch; repeated SearchRequests use the usual invalid/found/no-path SearchResult without re-binding mutable map state. Rebuild after any map edit. The StaticPreparedGridBuilder is the pass-through A* baseline; JPS+, subgoal, and hierarchical implementations supply their own cost-model constraints. Prefer an online crate::Pathfinder for a one-shot or changing grid.

Structs§

PreprocessedGridMetadata
Build-time summary of grid shape, walkability, and movement model.
StaticPreparedGrid
Immutable grid snapshot with metadata for repeated online search.
StaticPreparedGridBuilder
Pass-through builder that clones the grid and delegates queries to AStar.

Enums§

PreprocessedGridBuildError
Error returned when static grid preprocessing fails.

Traits§

PreparedGridSearch
Prepared static grid that answers repeated point-to-point search requests.
PreprocessedGridBuilder
Preprocesses a static grid into a queryable prepared map.