Atlas Robotics
Tuning Nav2Intermediate

Footprint tuning: how robot shape affects costmaps

Atlasbot · 17/8/2026 · 11 min read

Footprint tuning: how robot shape affects costmaps
Simple circular footprint vs more accurate polygon footprint

The article Costmap stated that the Inflation Layer needs radius robot to calculate the diffuse cost around the obstacle. Where that parameter comes from —footprint— is the subject of this article.

Key concepts

Two types of robot shape declarations:

local_costmap:
  local_costmap:
    ros__parameters:
      # Option 1: simple circle
      robot_radius: 0.22

      # Option 2: exact polygon (use instead of robot radius, not both)
      footprint: "[[0.2, 0.15], [0.2, -0.15], [-0.2, -0.15], [-0.2, 0.15]]"
  • robot_radius— treats the robot as a simple, fast-calculating, circular shape, but wastes space if the real-world robot is not circular (e.g., the long rectangular robot — whose full circular shape encloses it will be much wider than the true size horizontally).
  • footprint— polygons accurately declare each robot's angular point, reflecting the correct true shape, allowing the robot to squeeze through the narrow space the outer circle would refuse to traverse.

How it works

robot_radius fits near-round or near-square robots (Mecanum, differential with length/width ratio close to 1) — simple, sufficient for use. footprint is required when the robot has a markedly long/distorted shape (pallet robot, robot with one-sided protruding hand) — if robot_radius is used for long robots, the costmap will consider even the "excess" without the robot to be avoided, preventing the robot from slipping through sufficiently wide real-world space.

Bad footprints cause two different types of errors:

Footprint LARGER than the actual robot:
  → refuses narrow passages that are actually wide enough
  → planner chooses unnecessary detours or reports no path found

Footprint SMALLER than the actual robot:
  → plans closer to obstacles than the true dimensions allow
  → real collision risk even though Nav2 considers it safe

In summary: A smaller real-world footprint is much more dangerous than a larger — footprint, which should always accurately measure the robot's physical dimensions (including overhangs such as bumper, edge-mounted sensors) and add a small safety margin, which should not be rounded down to save travel space.

Technical details

Formulas

footprint_padding: 0.03    # add 3cm safety margin around declared footprint

Instead of adding amplitude to each angular point coordinates in footprint, footprint_padding applies uniform amplitude around the entire declared polygon:

Effective_area_with_padding ≈ Original_footprint_area
                              + Footprint_perimeter × footprint_padding

Example: rectangular footprint 0.4m × 0.3m (perimeter 1.4m), padding 0.03m
Added_area ≈ 1.4 × 0.03 = 0.042 m² (~3.5% of the original area 0.12m²)

Parameters

Declaration methodAdvantagesDisadvantages
robot_radiusSimple, quick calculation.Space squandering if the robot isn't circular
footprint (polygon)Exactly the shapeNeeds to measure carefully, more complicated than declaration
footprint_paddingAdd safe margin without recalculating coordinatesApply evenly, do not adjust each edge separately

Practical applications

Local costmap and global costmap sharing 1 footprint — do not have the concept of "different footprint for local and global costmap". The physical shape of a robot is a fixed, constant fact according to the type of costmap (learned at Costmap) — only the footprint size (local 3x3m vs. full map) is different between the two types. For cargo AMR (learned in AMR Loading Calculation), it is noted that the footprint only reflects the size of the robot frame, does not automatically expand to the size of the cargo being carried — if the cargo is protruding out of the robot frame, the corresponding footprint should be adjusted when carrying that type of cargo, or the mechanical design should ensure that the cargo stays within the frame.

Practical example

Compare footprints for a rectangular robot 0.4m long x 0.25m wide:

Using robot_radius (must cover the full length):
  robot_radius = 0.4/2 × √2 ≈ 0.28m (circumscribed circle radius)
  → when the robot rotates 45°, this circular safety region
    is much larger than the area the robot actually occupies

Using an accurate polygon footprint:
  footprint: "[[0.2, 0.125], [0.2, -0.125], [-0.2, -0.125], [-0.2, 0.125]]"
  → costmap represents the actual 0.4m x 0.25m dimensions without wasting space

In a 0.6m-wide corridor, robot_radius 0.28m requires a minimum width of 0.56m
in EVERY orientation — potentially refusing passage despite sufficient space
when the robot stays aligned with the corridor

Common mistakes

  • Using robot_radius for a robot with a markedly long/distorted shape— as the example above, which causes significant space wastage, the robot refuses to traverse sufficiently wide real-world space.
  • Measurement of the footprint excludes overhangs (bumps, edge-mounted sensors) — the footprint is smaller than real physical size, risk of real-world collision despite Nav2's "safe" calculations.
  • Unless updating the footprint when the cargo robot protrudes out of the frame— as stated in the Real-world Application section, the footprint only reflects the robot frame, does not automatically calculate the cargo being carried.
  • Place footprint_padding too large "for sure"— similar to the problem of inflation_radius too large (Facemap article), causing the robot to refuse to traverse the narrow real-world space wide enough to squeeze through.

Conclusion

The Footprint is the original source of data for the Inflation Layer calculating the safety buffer zone — choosing the correct declaration (simple circular or exact polygonal) in the shape of real-world robots, and always prioritizing accurate measurements over "rounding down", as smaller real-world footprints are much more dangerous than larger ones. The next article in the column goes into Tuning Costmap — the two parameters inflation_radius and cost_scaling_factor use this same footprint to calculate cost areas.

Get new articles and lessons by email

When a new technical article or course module is published, Atlas Robotics sends you a short email. No spam.

Unsubscribe any time with the link in each email. See our Privacy policy.

Footprint tuning: how robot shape affects costmaps — Atlas Robotics