Skip to main content

smooth_terrain_risk

Function smooth_terrain_risk 

Source
pub fn smooth_terrain_risk(
    cells: &[Vec<TerrainRiskCell>],
    config: &RiskMapSmoothingConfig,
) -> RoboticsResult<Vec<Vec<TerrainRiskCell>>>
Expand description

Smooth terrain-risk channels while preserving blocked-cell topology.

Blocked cells remain blocked. When smooth_blocked_cells is false, their risk values are left untouched, but they still contribute to neighboring risk smoothing.