Introduction
Programming autonomous machines, ranging from robot vacuums to Level 4 autonomous vehicles, presents a significant "synergy" challenge. It requires a convergence of expertise in robotics, artificial intelligence, computer architecture, and real-time systems. Current development often relies on frameworks like the Robot Operating System (ROS), which can be cumbersome, possess a steep learning curve, and force developers to manage low-level hardware details. The fundamental difficulty lies in balancing hardware heterogeneity with execution predictability. Autonomous systems must operate across diverse compute substrates—CPUs, GPUs, FPGAs, and DSPs—while adhering to strict real-time deadlines.
A Holistic Software Stack
To address these challenges, this work proposes a three-layer holistic software stack designed to bridge the gap between high-level robotic intent and low-level hardware execution.
- High-Level Programming Language: The stack utilizes a declarative, functional approach based on $\lambda$-calculus. This allows developers to describe the system as a dataflow graph, focusing on "what to do" (e.g., defining data flow from Perception to Localization to Planning) rather than managing low-level buffers and threads.
- Optimizing Compiler (MLIR): By leveraging Multi-Level Intermediate Representation (MLIR), the compiler can progressively lower high-level code while retaining semantic information. This enables the system to make informed mapping decisions, such as identifying image processing kernels suitable for GPU or FPGA acceleration.
- Adaptive Runtime System: The runtime manages "Performance Contracts," monitoring the system in real-time to dynamically map tasks to the optimal compute unit. This ensures that real-time deadlines are met even as environmental complexity or hardware availability changes.
Evaluation and Key Insights
The prototype was evaluated using the ORB (Oriented FAST and Rotated BRIEF) algorithm, a cornerstone of Simultaneous Localization and Mapping (SLAM), across industry-standard benchmarks like KITTI and TUM RGB-D.
Hardware Diversity and Performance
A key insight is the extreme variability in performance across different hardware targets. As shown in the evaluation of the ORB feature extraction prototype, different substrates offer vastly different trade-offs between latency and energy consumption.
The results highlight that while an FPGA-accelerator might offer superior energy efficiency, it requires specialized implementation. The proposed stack automates this complexity through "Performance Contracts" and the concept of a "Performance Envelope"—a Pareto surface representing the trade-offs between latency, throughput, and variability.
Conclusion
This research outlines a vision for a unified autonomous computing stack. By treating autonomous tasks as dataflow graphs and using an MLIR-based compiler with an adaptive runtime, the system can enforce performance guarantees across heterogeneous hardware. While currently a preliminary prototype focused on vision tasks, future work aims to expand the Domain-Specific Language (DSL) to encompass a broader range of robotics primitives and more complex scheduling policies.
Summary updated