FogROS2-Config: Optimizing Latency and Cost for Multi-Cloud Robot Applications
Kaiyuan Chen, Kush Hari, Rohil Khare, Charlotte Le, Trinity Chung, Jaimyn Drake, Jeffrey Ichnowski, John Kubiatowicz, Ken Goldberg
TL;DR
FogROS2-Config addresses the problem of per-request compute offloading for ROS2 across multiple cloud providers by modeling a latency-cost tradeoff via a relaxed optimization objective $\alpha \cdot latency(x) + (1-\alpha) \cdot cost(x)$ over hardware $x = \{CPU, memory, GPU\}$ and selecting cost-effective configurations that satisfy user constraints. It builds surrogate latency and cost functions by benchmarking a small set of edge-case servers and uses SkyPilot to deploy and manage multi-cloud instances without modifying ROS2 code. The approach is evaluated on three robotics tasks—visual SLAM, grasp planning with Dex-Net, and motion planning—showing that the optimizer's Pareto frontier closely matches ground-truth fronts and can reduce benchmarking cost by up to about 20x. The results demonstrate practical impact by enabling affordable, latency-aware cloud offloading for diverse robotic workloads.
Abstract
Cloud service providers provide over 50,000 distinct and dynamically changing set of cloud server options. To help roboticists make cost-effective decisions, we present FogROS2-Config, an open toolkit that takes ROS2 nodes as input and automatically runs relevant benchmarks to quickly return a menu of cloud compute services that tradeoff latency and cost. Because it is infeasible to try every hardware configuration, FogROS2-Config quickly samples tests a small set of edge case servers. We evaluate FogROS2-Config on three robotics application tasks: visual SLAM, grasp planning. and motion planning. FogROS2-Config can reduce the cost by up to 20x. By comparing with a Pareto frontier for cost and latency by running the application task on feasible server configurations, we evaluate cost and latency models and confirm that FogROS2-Config selects efficient hardware configurations to balance cost and latency.
