Cloudroid: A Cloud Framework for Transparent and QoS-Aware Robotic Computation Outsourcing

Ben Hu, Huaimin Wang, Pengfei Zhang, Bo Ding, Huimin Che

TL;DR

Cloudroid is a "Platform-as-a-Service" (PaaS) framework that allows robots to offload heavy computational tasks to the cloud without changing a single line of code. By combining transparent Docker-based encapsulation with a smart Quality-of-Service (QoS) mechanism, it enables low-power robots to perform complex tasks like real-time object detection and 3D mapping with massive performance gains.

What Problem Does This Paper Address?

Modern robots are expected to "see" and "think" in real-time, but algorithms like SLAM (Simultaneous Localization and Mapping) and deep-learning-based object detection are incredibly resource-hungry. A Raspberry Pi or a low-end laptop simply doesn't have the CPU or GPU "muscle" to run these at the required 5–10Hz for safe navigation.

While "Cloud Robotics" (outsourcing math to powerful remote servers) is a known solution, it usually comes with two massive headaches:

  1. Development Friction: Developers often have to rewrite their code or deal with complex network configurations to make a robot talk to the cloud.
  2. Reliability (QoS): If the network lags or the cloud server gets busy, the robot might "go blind" or crash into a wall.

Cloudroid aims to solve both by making the cloud look like a local resource to the robot while providing a safety net for network instability.

Methods

The authors built Cloudroid as a PaaS infrastructure with two standout features:

  • Transparent Service Wrapping: Cloudroid leverages the Robot Operating System (ROS) package model. It takes a standard, compiled ROS package and wraps it into a Docker container in the cloud. It then automatically generates a "service stub" (a proxy) on the robot. The robot’s other software components interact with this stub exactly as they would with a local package, meaning zero code modification is required.
  • Cooperated QoS Awareness: To handle the "unreliable internet" problem, Cloudroid uses a Local Restart Policy (Algorithm 1). The service stub monitors the Request Response Time (RRT). If the cloud becomes too slow or the connection drops, the stub automatically spins up a local instance of the software to take over, ensuring the robot remains functional (albeit slower) during a "failover" event.
  • Communication & Compression: It uses ROSBridges to convert ROS messages to JSON/WebSockets for internet travel and employs custom compression (like libav for video and zlib for maps) to save bandwidth.

Datasets

The framework was evaluated using three industry-standard ROS benchmarks:

  1. RGBD-SLAM: For incremental 3D environment reconstruction.
  2. RTAB-Map: For large-scale mapping and loop closure detection.
  3. SSD (Single Shot MultiBox Detector): A deep learning model for object recognition.

The tests were conducted on two robot-side setups: an ASUS Ultrabook (Intel i3) and a Raspberry Pi (ARMv7), connecting to both private laboratory clouds and public clouds (Aliyun).

Key Insights and Ideas

  • The "Black Box" Abstraction: By treating ROS packages as self-contained services, Cloudroid decouples the function of the robot software from the hardware it runs on.
  • Cloud-Native Stability: Surprisingly, the authors found that the Standard Deviation (jitter) of processing time was often lower in the cloud than on the local robot. This is because heavy algorithms on weak local hardware cause resource contention (CPU thrashing), whereas the cloud provides stable, over-provisioned resources.
  • Enabling the Impossible: The framework doesn't just speed things up; it enables functionality. For example, the SSD model requires more than 1GB of RAM—more than a Raspberry Pi can provide. Cloudroid allowed the Pi to "run" SSD by offloading the memory-heavy lifting to the cloud.

Key Results

  • Massive Speedups: For object detection (SSD) using cloud-side GPU accelerators (NVIDIA Tesla K80), Cloudroid achieved a 25.05x speedup compared to running natively on an Ultrabook.
  • Improved Mapping Quality: In real-world tests, a robot running SLAM natively produced a noisy, distorted map because it couldn't process frames fast enough. The Cloudroid-enabled robot produced a clean, recognizable 3D map of the room.
  • Bandwidth Efficiency: The custom compression policies achieved significant results, particularly for grid maps, which saw a 99.9% compression ratio using zlib.
  • Dynamic Recovery: During network interference tests, the QoS mechanism successfully triggered local failovers, keeping the response times within an "acceptable" range even when the cloud connection degraded.

Limitations and Future Work

  • Stateful vs. Stateless Failover: While the "local restart" works great for stateless tasks like object detection, it is harder for stateful tasks like SLAM. If the cloud SLAM service fails, the local backup starts with a "blank slate" map, which isn't a perfect transition.
  • Fine-Grained QoS: The current model primarily focuses on response time (RRT). The authors suggest that future versions should look at more complex metrics, such as frame-per-second (FPS) consistency for video-heavy tasks.
  • Security: As with any cloud-connected system, the paper notes that future work will need to address the security and privacy of data being streamed from the robot to the cloud.

Summary updated

Abstract

Many robotic tasks require heavy computation, which can easily exceed the robot's onboard computer capability. A promising solution to address this challenge is outsourcing thecomputation to the cloud. However, exploiting the potential ofcloud resources in robotic software is difficult, because it in-volves complex code modification and extensive (re)configurationprocedures. Moreover, quality of service (QoS) such as timeliness, which is critical to robot's behavior, have to be considered. Inthis paper, we propose a transparent and QoS-aware softwareframework called Cloudroid for cloud robotic applications. Thisframework supports direct deployment of existing robotic soft-ware packages to the cloud, transparently transforming theminto Internet-accessible cloud services. And with the automati-cally generated service stubs, robotic applications can outsourcetheir computation to the cloud without any code modification. Furthermore, the robot and the cloud can cooperate to maintainthe specific QoS property such as request response time, evenin a highly dynamic and resource-competitive environment. Weevaluated Cloudroid based on a group of typical robotic scenariosand a set of software packages widely adopted in real-worldrobot practices. Results show that robots capability can beenhanced significantly without code modification and specific QoSobjectives can be guaranteed. In certain tasks, the "cloud + robot" setup shows improved performance in orders of magnitudecompared with the robot native setup.
BibTeX
@inproceedings{hu2017cloudroid,
  author = {Ben Hu and Huaimin Wang and Pengfei Zhang and Bo Ding and Huimin Che},
  title = {{Cloudroid: A Cloud Framework for Transparent and QoS-Aware Robotic Computation Outsourcing}},
  booktitle = {CLOUD},
  year = {2017},
  url = {https://openreview.net/forum?id=Vxv63EO0Gm},
}

Loading related content...

Figure