Introduction
Deploying autonomous robots in real-world environments, such as university campuses or warehouses, introduces significant management challenges. Standard communication frameworks like the Robot Operating System (ROS) and Rosbridge often falter under the constraints of unreliable Wi-Fi networks, high bandwidth requirements, and the need for secure, multi-user access. These systems frequently suffer from "runaway latency," where stale messages accumulate during network drops, and high computational overhead due to inefficient serialization formats like JSON.
To address these issues, we present Robofleet, an open-source communication middleware designed for resilient, secure, and scalable fleet management.
System Architecture and Methods
Robofleet utilizes a centralized hub-and-spoke architecture to decouple robots from end-users, optimizing bandwidth and ensuring consistent performance across the fleet.
The system consists of three primary components:
- Robofleet Client: Resides on the robot, handling message encoding and local ROS integration.
- Robofleet Server: Acts as a central relay, managing user authentication via Google SSO and distributing data streams to multiple clients.
- Robofleet Webviz: A browser-based visualization tool that allows monitoring and tasking without requiring a local ROS installation.
Key Technical Innovations
- Efficient Binary Serialization: Robofleet replaces JSON with Flatbuffers. This binary format reduces message sizes—for example, shrinking
LaserScandata from 28,000 bytes to approximately 7,300 bytes—and significantly lowers CPU usage for encoding and decoding. - Intelligent Message Scheduling: To combat network instability, Robofleet implements a backpressure mechanism. It categorizes data into "no-drop" queues for critical messages and "fair-priority" queues for high-bandwidth sensor data. When the network is congested, the system intelligently drops older sensor readings to ensure the most recent data is prioritized, maintaining low latency.
- Secure Communication: All robot-to-server traffic is encapsulated within a WireGuard VPN, providing robust encryption and simplified network traversal.
Performance Evaluation
The efficacy of Robofleet was evaluated through synthetic stress tests and real-world deployments on the UT Austin campus. Performance was compared against native ROS and Rosbridge (RosLibPy) under varying network conditions.
Key Results
- Latency Resilience: In simulated network dropouts, Robofleet recovered to nominal latency approximately five times faster than Rosbridge. As shown in the performance graphs, Robofleet maintains near-constant latency even as publish rates increase, whereas Rosbridge experiences exponential latency growth.
- Computational Efficiency: On a standard workstation processing 10Hz point cloud data, Robofleet required only 1.3% CPU, a stark contrast to the 16.6% required by Rosbridge.
- Scalability: By redistributing data at the server level, Robofleet allows dozens of users to monitor a single robot without increasing the robot's upload burden. Native ROS latency typically increases linearly with each additional consumer, a limitation Robofleet successfully bypasses.
Conclusion and Future Work
Robofleet provides a robust solution for managing heterogeneous robot fleets over challenging networks. By prioritizing the "latest" data and offloading distribution tasks to a central server, it achieves high scalability and low latency. While the current implementation focuses on the publish/subscribe model, future work includes the integration of Remote Procedure Call (RPC) mechanisms for complex tasking and exploring Augmented Reality interfaces for fleet monitoring.
Check out the code: https://github.com/ut-amrl/robofleet
Summary updated