The Nav2 inflation layer assigns costs around lethal obstacles so planners and controllers prefer clearance. Within the robot's inscribed radius, cells receive lethal or inscribed-level treatment appropriate to footprint collision. Beyond that region, cost decays with distance until the configured inflation radius. The outer edge of that decay is not a new physical wall.

This distinction matters when teams tune inflation_radius and cost_scaling_factor. A path through a nonlethal inflated cell may be undesirable or expensive, but the cell does not automatically become an obstacle. Whether a planner enters it depends on the planner, cost interpretation, footprint model, other layers, and available alternatives.

Three different boundaries

First is observed obstacle geometry. An obstacle layer or static map marks cells based on sensors or map data. Its accuracy depends on resolution, transforms, observation persistence, clearing, and the physical environment.

Second is the footprint collision boundary. Nav2 uses the robot footprint and inscribed radius to determine where the robot cannot be placed without collision with lethal geometry. The official inflation documentation says the layer places lethal cost around obstacles within the fully inscribed radius, even for noncircular robots as an optimized first-order check.

Third is the inflation radius. It limits how far the graded cost field extends around lethal obstacles. Crossing this radius only means the inflation contribution has decayed away. It says nothing about sensor range, braking distance, localization uncertainty, or a certified safety separation.

Cost decay is a preference field

The cost_scaling_factor controls the exponential decay across the inflation region. Higher scaling generally makes cost fall more quickly with distance; lower scaling keeps higher costs farther from the obstacle. The exact path response depends on how a planner or controller scores cost.

Changing the factor can move a planned path without changing any obstacle cell. That is the point: inflation shapes optimization. It can encourage a route near the center of a corridor or let a robot choose a tighter passage when alternatives are limited.

Do not label every inflated cell occupied in analysis. Preserve the raw or lethal obstacle classification separately from derived navigation cost. When debugging, inspect both the source layers and the combined master costmap.

Footprint and resolution set practical limits

An inaccurate footprint undermines inflation tuning. If a tool, payload, open door, or cable protrusion is missing, a visually generous cost field may still permit collision. Update the footprint with configuration changes and verify it against the physical envelope.

Costmaps are grids. Resolution discretizes obstacle boundaries, footprint checks, and decay bands. A narrow corridor can gain or lose traversable cells when resolution, origin, or obstacle rasterization changes. Test the released map and parameters together.

For a noncircular robot, inscribed radius is conservative in some orientations and insufficient as a complete shape description in others. Planners and controllers that perform footprint collision checking supply more specific evidence than an inscribed-radius visualization alone.

Unknown space is another policy

The inflation layer has options related to unknown cells. Inflating unknown space or around unknown space changes the cost field near unmapped regions. It does not convert missing observations into measured obstacles.

Decide whether unknown cells are traversable, lethal, or costly at the planning layer and document that policy. A robot entering unknown space needs perception and stopping behavior consistent with the decision.

Tuning cannot replace safety controls

Inflation is a navigation heuristic. It does not enforce protective separation, certified speed-and-separation monitoring, emergency stopping, or guaranteed braking distance. Localization error, control latency, wheel slip, and dynamic obstacle motion can consume planned clearance.

Use an independent safety system where risk assessment requires one. Treat inflation as one part of path-quality and collision-avoidance behavior, then validate the full sensing, planning, control, and stop chain.

Build a cost profile test

Create a simple map with one known obstacle and sample cost along a radial line. Record map resolution, footprint, inscribed radius, inflation_radius, cost_scaling_factor, and resulting cell costs. Confirm the lethal or inscribed region and the monotonic decay outside it.

Repeat after changing only the scaling factor. Obstacle cells should remain the same while the preference profile changes. Repeat after changing only inflation radius. The decay extent should change without moving the physical obstacle.

Use a corridor test. Sweep corridor widths around the robot envelope and record whether a global path is found, its minimum footprint clearance, integrated cost, and centerline offset. Run the local controller through the same corridor at declared speeds and disturbances.

Include orientation. A rectangular base passing lengthwise may fit where a turn does not. Test rotations at corridor entrances and corners, not just a straight centerline.

Add uncertainty deliberately

Perturb localization within its expected error bounds, vary obstacle pose within sensor uncertainty, and change latency or speed within the operational range. Measure physical clearance and collision outcomes rather than trusting the nominal costmap image.

For dynamic obstacles, inspect observation and clearing behavior. Inflation follows the marked obstacle state; stale marking can block free space, while premature clearing can remove a needed cost field. Record layer update rates and sensor timestamps.

Verify each consumer

Global planners, local controllers, and behavior modules can use costs differently. A parameter change that improves one planner may have little effect or an adverse effect elsewhere. Preserve plugin names and versions with results.

Visualize lethal cells, inscribed costs, decay costs, unknown cells, and the robot footprint using distinct colors. Avoid a single red blob that hides which boundary produced the appearance.

State the result narrowly

A defensible report says that a named costmap configuration produced a measured cost profile and that selected planners and controllers maintained observed footprint clearance in stated maps and perturbations. It does not claim that inflation_radius is the obstacle's physical size or a guaranteed safety distance.

Inflation works best when used for what it is: a graded navigation preference around obstacle data. Keep obstacle evidence, footprint collision, optimization cost, and physical safety distance separate, then test how the complete navigation stack turns those layers into motion.