Expand description
Traversal-risk graph planning over a 2-D grid.
This is a compact pure-Rust planner inspired by traversal-risk graph planners for unstructured terrain. Each cell has independent risk channels and the planner searches for the minimum distance-plus-risk path.
Structs§
- Clearance
Risk Config - Converts clearance from blocked cells into exposure risk.
- Elevation
Risk Config - Converts an elevation grid into traversal-risk cells.
- Risk
MapSmoothing Config - Gaussian-style local smoothing for terrain-risk channels.
- Risk
Waypoint - One cell in a planned risk path.
- Terrain
Risk Cell - Risk attributes for one terrain cell.
- Traversal
Risk Graph Config - Planner configuration.
- Traversal
Risk Graph Planner - Traversal-risk graph planner.
- Traversal
Risk Path - Planned path plus decomposed costs.
- Traversal
Risk Weight Sample - One result from a risk-weight sweep.
Functions§
- add_
clearance_ exposure_ risk - Add low-clearance exposure risk while preserving existing terrain channels.
- clearance_
map - Compute Euclidean clearance from every cell to the nearest blocked cell.
- inflate_
blocked_ cells - Inflate blocked cells by a Euclidean radius expressed in grid cells.
- inflate_
blocked_ cells_ by_ radius - Inflate blocked cells by a metric footprint radius.
- smooth_
terrain_ risk - Smooth terrain-risk channels while preserving blocked-cell topology.
- sweep_
traversal_ risk_ weights - Plan the same query for several
risk_weightvalues. - terrain_
risk_ from_ elevation_ map - Build traversal-risk cells from an elevation grid.