# Tuning ROS 2 for Energy-Efficient Navigation: Empirical Insights from Costmap 2D Configurations

Robotics.world

> ROS 2 packages expose many parameters, and the resulting configuration space is enormous — the authors estimate that the full combination of the 18 Costmap 2D parameters they study exceeds 30 million…

**arXiv**: 2609.12971

**Published**: 2026-09-11

**Authors**: Michel Albonico, Andreas Wortmann, Ivano Malavolta

## In plain words

ROS 2 packages expose many parameters, and the resulting configuration space is enormous — the authors estimate that the full combination of the 18 Costmap 2D parameters they study exceeds 30 million configurations. Poorly chosen settings can silently degrade both navigation performance and energy consumption, yet little empirical evidence exists on which settings matter.

## AI summary

## Overview

**Research area:** Robotics software engineering, specifically the energy efficiency of ROS 2 (Robot Operating System 2) navigation stacks — here the Nav2 stack and its Costmap 2D package.

**Technical level:** Intermediate. The paper assumes some familiarity with ROS 2 concepts such as packages, parameters, costmap layers, and plugins, and it reports non-parametric statistical tests, but its core message is accessible to anyone who configures robotics software.

**Scope (one sentence):** A controlled, simulation-based experiment measuring how 20 pairwise-generated Costmap 2D configurations affect energy, power, CPU, memory, and navigation performance for a mobile robot navigating two warehouse-like maps.

## What This Paper Is About

ROS 2 packages expose many parameters, and the resulting configuration space is enormous — the authors estimate that the full combination of the 18 Costmap 2D parameters they study exceeds 30 million configurations. Poorly chosen settings can silently degrade both navigation performance and energy consumption, yet little empirical evidence exists on which settings matter.

The paper's goal is to measure, under controlled conditions, how re-configuring the Costmap 2D package of Nav2 changes the energy a ROS 2 system consumes during autonomous navigation, and to identify which specific parameters drive good or bad outcomes.

## Key Contributions

1. **A controlled experiment design for energy-aware ROS 2 configuration.** The authors formalize the ROS configuration space as the Cartesian product of all parameter domains, then operationalize a study with four research questions (RQ1–RQ4) under the Goal Question Metric framework, varying Costmap 2D configuration, obstacle arrangement, and warehouse layout while holding the robot model, Nav2 installation, hardware, start position, and navigation goal constant.
2. **A validated, tractable configuration set.** Eighteen Costmap 2D parameters with low/medium/high value ranges were selected from ROS navigation tuning guides and validated by two experts (an academic Nav2 researcher and the Nav2 project leader) via email in June 2024. Because exhaustive coverage was infeasible, a pairwise combination strategy produced 20 representative configurations, including expert-specified plugin combinations for three navigation strategies (global replanning, hybrid global-local, and local-only obstacle avoidance) using the static_layer, obstacle_layer, voxel_layer, and inflation_layer plugins.
3. **Multi-dimensional measurements across two warehouse layouts.** For a small map (3 × 4 m) and a large map (≈10 times larger), the study measures navigation time, path length, success, recoveries, energy (J), power (mW), CPU (Hz), and memory (KB), using PowerJoular via the RAPL interface for energy and CPU, psutil for memory, and customized profilers for Nav2 navigation feedback.
4. **Empirical identification of critical parameters and practical guidelines.** The paper pinpoints resolution, update frequency, inflation, and unknown-space handling as the dominant settings, and derives four practical recommendations for researchers and practitioners, including prioritizing parameter tuning over plugin selection and integrating energy measurement into the ROS development workflow.

## Main Findings

- **Configuration matters strongly and significantly.** In the small map, configuration had a statistically significant effect on controller power (H = 222.469, p = 1.102 × 10⁻³⁶), planner power (H = 237.752, p = 9.255 × 10⁻⁴⁰), and overall energy (H = 222.469, p = 1.102 × 10⁻³⁶). In the large map the effect remained significant but with smaller effect sizes: controller (H = 188.450, p = 6.652 × 10⁻³⁰), planner (H = 138.150, p = 4.118 × 10⁻²⁰), overall energy (H = 188.450, p = 6.652 × 10⁻³⁰).
- **Three configurations beat the default on aggregated energy.** For the sum of controller and planner energy (navigation time × (controller power + planner power)), only c2, c4, and c12 achieved lower overall energy than the default in the small map. For the whole machine's CPU-based energy, only c3 was more efficient, with c4 and c12 close to the default.
- **The controller node almost always used less power than default.** All configurations consumed less power than the default setup for the controller node; for the planner node, only c2 and c4 exceeded default power. At machine level, most configurations used less power than default except c9 and c13.
- **Three shared settings explain the efficient configurations.** c3, c4, and c12 all use resolution 0.1 m, disable inflate_around_unknown, and use update_frequency ≥ 5 Hz, and none triggered recovery behaviors. The default uses a finer resolution of 0.05, which the authors identify as the main differentiating factor; a coarser 0.2 m resolution consistently caused unsuccessful navigation.
- **Update frequency has opposite effects on the two nodes.** Higher frequencies (≥ 5 Hz) improved responsiveness and lowered controller power, whereas a very low 1 Hz value increased planner power due to more intensive replanning.
- **Inflation and unknown-space handling drive navigation time.** The configurations with the longest navigation times (c2, c6, c7, c8, c16) share inflation_radius = 0.5 and track_unknown_space enabled. The fastest configuration, c3, uses inflation_radius 0.35 with track_unknown_space disabled — but c9 shares those settings and is slower, differing only in transform_tolerance (0.1 versus 0.5), which the authors attribute to the costmap waiting longer for buffered transforms.
- **Success ranges from 100% to below 80%.** c6, c8, c12, c14, c16, c17, and c18 succeeded in all 20 repetitions; c5, c10, c11, c13, and c19 fell below 80%. Failures were mainly crashes at sharp corners, attributed to coarse resolution (0.2 m), obstacle detection restricted to 1 m, and the absence of a local inflation layer. c11 reached only 60% success with no recoveries, meaning its failures could not be mitigated by recovery strategies. c6 reached 100% success but with many recoveries.
- **Path length is not the determining factor.** The default configuration's mean path was 6.49 m, worse than most alternatives (only c1 was longer, and c2 was identical), with most configurations at least one meter shorter. Yet c9 more than doubled both navigation time and total energy versus the default despite a path over one meter shorter, because the robot moved more slowly.
- **A larger map used less power, unexpectedly.** Although the large map is ≈10 times larger, mean CPU cycles and power were lower, driven mainly by the controller node whose power dropped to roughly half, attributed to wider corridors and fewer avoidance micro-corrections. Memory also decreased, though more modestly. Path length and navigation time approximately tripled, implying a similar pace.
- **Memory outliers in the large map.** c2, c17, c18, and c19 showed discrepant memory usage; the voxel plugin alone did not drive it, but combined with broader inflation and unknown-space tracking it expanded the costmap. c2's cost_scaling_factor of 3 (versus 1 elsewhere) narrowed inflated regions and reduced stored cells.
- **Excessive inflation can backfire.** In the large map, c8 favored trajectories close to obstacles and detoured through narrow passages such as between an obstacle and a pile of boxes, producing long oscillatory paths.
- **Obstacle density was not significant.** In the small map, obstacle arrangement was non-significant for controller (H = 1.479, p = 0.224), planner (H = 0.026, p = 0.871), and overall energy (H = 1.479, p = 0.224); the large map showed the same (controller H = 1.720, p = 0.190; planner H = 1.741, p = 0.187; energy H = 1.720, p = 0.190). A two-way ANOVA (map × obstacles) confirmed a significant main effect of map (controller F = 690.28, p = 2.76 × 10⁻¹²⁶; planner F = 33.52, p = 8.53 × 10⁻⁹; energy F = 690.28, p = 2.76 × 10⁻¹²⁶), no significant obstacle effect (all p > 0.17), and no interaction (all p > 0.27).

## Methodology in Plain English

The authors set up a simulated warehouse in Gazebo and sent a mobile robot on a fixed delivery-style mission: travel from a charging station to a fixed goal on the opposite side of the floor, about 6 m in the small map and about 18 m in the large map, with time limits of 180 s and 540 s respectively.

They chose 18 tunable Costmap 2D parameters and gave each a small set of representative values. Because trying every combination would exceed 30 million runs, they used pairwise combination — a technique from software testing based on the idea that most faults come from interactions between two parameters — to generate 20 configurations, with expert-specified constraints on which plugins may be combined.

Each configuration was run 20 times per obstacle arrangement, with two obstacle arrangements, and obstacles were added deterministically after navigation started so the robot had to detect them mid-route. All runs used four Docker containers (Gazebo, RViz, Nav2, and orchestration) on one workstation — Ubuntu 22.04, kernel 6.8.0-65-generic, 16 GB RAM, a 12th Gen Intel Core i7-12700F with 20 cores (8 performance, 12 efficiency), and an NVIDIA GeForce RTX 3060 — with Gazebo's real-time factor fixed at 1.0 and the simulation running the Turtlebot3 Waffle model with 2D LiDAR extended by a 3D depth camera via realsense_gazebo_plugin.

Robot Runner orchestrated each run, starting profilers, driving the mission, then cleaning up, followed by a 60-second cooling-down period. Energy and CPU were measured through RAPL using PowerJoular, memory via psutil, and navigation metrics from Nav2 feedback. The small map experiments took ≈33 h ((90 + 60) × 20 × 2 × 20 ≈ 120,000 s) and the large map ≈3 days ((280 + 60) × 20 × 2 × 20 ≈ 272,000 s). Because Shapiro–Wilk often rejected normality, the analysis used non-parametric tests (Kruskal–Wallis with post-hoc comparisons) plus a two-way ANOVA. Detailed plots are shown for the small map; large-map conclusions come from visual inspection, with full plots in the public replication package.

## Why This Matters

**Impact on research.** The paper provides quantitative evidence that software configuration — not just hardware or algorithm choice — is a first-order factor in robot energy consumption, and it offers a reusable methodology (pairwise configuration sampling plus multi-metric profiling) for studying configuration spaces far too large to enumerate. It complements prior ROS energy work, such as Malavolta et al.'s green architectural tactics reporting up to 7.9% energy savings, Albonico et al.'s study of programming-language effects on ROS node energy, Dordevic et al.'s work on offloading ROS components to edge devices, and Hammer et al.'s comparison of SLAM packages, while differing in focusing on Nav2 reconfiguration rather than language, deployment, or algorithm choice.

**Real-world applications:**

- Warehouse and logistics robots that must run long shifts on limited battery, where small per-mission energy reductions compound across a fleet.
- Service and domestic robots, with the TurtleBot 4 described as representative of real-world vacuum robots.
- Inspection and monitoring robots whose operational time is bounded by battery rather than task completion.
- Any ROS 2 deployment migrating to a new floor plan, since the paper shows a configuration tuned for one layout can behave differently — and even pathologically — in another.

**Industry relevance.** The default Nav2 configuration is shown not to be optimal even for simple missions, because it reflects general-purpose trade-offs rather than mission-specific ones. The practical guidelines — tune parameters before swapping plugins, validate settings under realistic workloads, monitor navigation time as the most influential variable, and instrument energy in the development workflow — are directly actionable for robotics teams, and the finding that 0.2 m resolution causes navigation failures is a concrete warning about a setting teams might otherwise treat as a harmless performance knob.

## Future Directions

- **Replicate beyond Nav2 and a single robot.** The authors state external-validity threats explicitly: only Nav2's Costmap 2D package was studied, with one robot model and fixed sensors and hardware, and they plan to replicate the experiments across diverse robots.
- **Test harder and more dynamic obstacle conditions.** Obstacle density was not statistically significant within the tested ranges, but the authors note that experiments with a larger number of obstacles arranged in more dynamic ways could affect measurements differently.
- **Move from static tuning to runtime reconfiguration.** The paper argues that static tuning is useful for controlled experiments, but real deployments need mechanisms that reconfigure parameters at runtime, and calls for adaptive configuration strategies.
- **Integrate energy measurement into the ROS workflow.** A stated need is tooling that lets practitioners detect inefficient parameter settings early and lets researchers build systematic knowledge for energy-aware robotics software; the paper's own tooling (Robot Runner, PowerJoular, psutil) and replication package provide a starting point.

## Target Audience

Robotics software engineers and ROS 2 practitioners who deploy Nav2 in the field and want concrete, evidence-backed configuration guidance; researchers in green software engineering and robotics software architecture interested in configuration-space methodology; and performance engineers who need to reason about the trade-off between navigation time, power, and reliability when tuning costmaps for a specific environment.

## Authors’ abstract

Robots are increasingly used in diverse application areas, where autonomous navigation plays a central role. As these systems become more widespread, improving their energy efficiency is critical to extending operational time and reducing environmental impact. The Robot Operating System (ROS) is a widely adopted middleware for robotics, offering a rich set of configurable packages. However, this flexibility can result in suboptimal software configurations in dynamic…

[The full abstract on arXiv](https://arxiv.org/abs/2609.12971)

[Read the original paper](https://arxiv.org/abs/2609.12971)

## Related papers

- [SkateNav: Learning Energy-Efficient Navigation through Adaptive Skating on Passive-Wheel Quadrupedal Robots](https://robotics.world/paper/skatenav-learning-energy-efficient-navigation-through-adaptive-skating-2610.25962) 2026-10-19 · cs.RO · Key terms of the title in common
- [Spiderbot: An Open-Source Energy-Efficient Hexapod with Passive Gravity Compensation](https://robotics.world/paper/spiderbot-an-open-source-energy-efficient-hexapod-with-passive-gravity-2609.26989) 2026-09-22 · cs.RO · Key terms of the title in common
- [ActTune: Action-Aware Precision and GPU Operating-Point Adaptation for Energy-Efficient Vision-Language-Action Inference](https://robotics.world/paper/acttune-action-aware-precision-and-gpu-operating-point-adaptation-for-2610.08444) 2026-10-06 · cs.RO · Key terms of the title in common
- [Energy-Efficient Gait Adaptation via Hierarchical Reinforcement Learning for Quadrupedal Locomotion Across Diverse Terrains](https://robotics.world/paper/energy-efficient-gait-adaptation-via-hierarchical-reinforcement-2610.10297) 2026-10-07 · cs.RO · Key terms of the title in common
- [Sim-to-Real Room-Mediated Object-Goal Navigation with ROS 2 and Nav2](https://robotics.world/paper/sim-to-real-room-mediated-object-goal-navigation-with-ros-2-and-nav2-2611.19720) 2026-11-15 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/tuning-ros-2-for-energy-efficient-navigation-empirical-insights-from-2609.12971
