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 the computation to the cloud. However, exploiting the potential of cloud resources in robotic software is difficult, because it involves complex code modification and extensive (re)configuration procedures. Moreover, quality of service (QoS) such as timeliness, which is critical to robot's behavior, have to be considered. In this paper, we propose a transparent and QoS-aware software framework called Cloudroid for cloud robotic applications. This framework supports direct deployment of existing robotic software packages to the cloud, transparently transforming them into Internet-accessible cloud services. And with the automatically generated service stubs, robotic applications can outsource their computation to the cloud without any code modification. Furthermore, the robot and the cloud can cooperate to maintain the specific QoS property such as request response time, even in a highly dynamic and resource-competitive environment. We evaluated Cloudroid based on a group of typical robotic scenarios and a set of software packages widely adopted in real-world robot practices. Results show that robot's capability can be enhanced significantly without code modification and specific QoS objectives can be guaranteed. In certain tasks, the "cloud + robot" setup shows improved performance in orders of magnitude compared with the robot native setup.
Introduction
Modern robots are increasingly expected to perform complex tasks like real-time 3D mapping (SLAM) and deep-learning-based object detection. However, these algorithms are resource-intensive, often exceeding the capabilities of onboard hardware like a Raspberry Pi or low-end laptop. While cloud robotics—outsourcing computation to powerful remote servers—is a viable solution, it typically introduces significant development friction, requiring extensive code modification and complex network configurations. Furthermore, ensuring reliability and Quality of Service (QoS) in the face of network latency or server congestion is a critical challenge. Cloudroid addresses these issues by making cloud resources appear local to the robot while providing a safety net for network instability.
Methodology
Cloudroid is designed as a Platform-as-a-Service (PaaS) infrastructure that enables "plug-and-play" cloud robotics through two primary mechanisms:
Transparent Service Wrapping
Cloudroid leverages the standard Robot Operating System (ROS) package model. It encapsulates compiled ROS packages into Docker containers in the cloud and automatically generates a "service stub" (a proxy) on the robot. Other software components on the robot interact with this stub exactly as they would with a local package, requiring zero code modification to offload tasks.
QoS-Awareness and Failover
To manage unreliable internet connections, Cloudroid implements a cooperated QoS mechanism. The service stub monitors the Request Response Time (RRT). If the cloud connection degrades or fails, a Local Restart Policy automatically triggers a local instance of the software to take over. This ensures the robot remains functional, albeit at a lower performance level, during network disruptions.
Performance Evaluation
The framework was evaluated using industry-standard ROS benchmarks, including RGBD-SLAM, RTAB-Map, and the SSD (Single Shot MultiBox Detector) deep learning model. Testing was conducted on both an ASUS Ultrabook (Intel i3) and a Raspberry Pi, connecting to private and public clouds.
Key Results and Insights
- Massive Speedups: For object detection (SSD), utilizing cloud-side GPU accelerators (NVIDIA Tesla K80) resulted in a 25.05x speedup compared to running natively on an Ultrabook.
- Enabling the Impossible: Cloudroid allows low-power devices to run memory-heavy models. For instance, the SSD model requires over 1GB of RAM, which exceeds the capacity of a Raspberry Pi. By offloading to the cloud, the Pi was able to successfully perform object detection.
- Cloud-Native Stability: Interestingly, the processing time jitter (standard deviation) was often lower in the cloud than on local hardware. This is attributed to the cloud's over-provisioned resources, which avoid the CPU thrashing common on resource-constrained local devices.
Conclusion and Future Work
Cloudroid demonstrates that robotic capabilities can be significantly enhanced through transparent cloud outsourcing without requiring code changes. While the current framework handles stateless tasks effectively, future work will address stateful failover (e.g., ensuring SLAM maps are synchronized during transitions) and more granular QoS metrics like frame-per-second consistency. Additionally, security and data privacy remain key areas for future development as more data is streamed to cloud environments.
Summary updated