Abstract
The recent drive towards achieving greater autonomy and intelligence in robotics has led to high levels of complexity. Autonomous robots increasingly depend on third-party off-the-shelf components and complex machine-learning techniques. This trend makes it challenging to provide strong design-time certification of correct operation. To address these challenges, we present SOTER, a robotics programming framework with two key components: (1) a programming language for implementing and testing high-level reactive robotics software, and (2) an integrated runtime assurance (RTA) system that helps enable the use of uncertified components, while still providing safety guarantees. SOTER provides language primitives to declaratively construct a RTA module consisting of an advanced, high-performance controller (uncertified), a safe, lower-performance controller (certified), and the desired safety specification. The framework provides a formal guarantee that a well-formed RTA module always satisfies the safety specification, without completely sacrificing performance by using higher performance uncertified components whenever safe. SOTER allows the complex robotics software stack to be constructed as a composition of RTA modules, where each uncertified component is protected using a RTA module. To demonstrate the efficacy of our framework, we consider a real-world case-study of building a safe drone surveillance system. Our experiments both in simulation and on actual drones show that the SOTER-enabled RTA ensures the safety of the system, including when untrusted third-party components have bugs or deviate from the desired behavior.
Introduction
Modern robotics faces a persistent conflict between performance and safety. To navigate complex environments, there is a strong desire to utilize advanced, data-driven techniques such as Reinforcement Learning or third-party "black-box" libraries. However, these components are often impossible to formally verify at design time. Traditional solutions like the Simplex Architecture use a "Decision Module" to monitor an Advanced Controller (AC) and switch to a pre-certified Safe Controller (SC) if safety constraints are threatened.
Despite its utility, existing Simplex implementations suffer from three major drawbacks: they are often monolithic and difficult to verify, they lack high-level language support for modular construction, and they frequently lack a principled mechanism to switch back from safe mode to high-performance mode once the threat has passed.
The SOTER Framework
SOTER addresses these gaps through a domain-specific programming language and a formal runtime environment designed for modularity.
Modular RTA Architecture
Instead of a single monolithic monitor, SOTER enables developers to decompose a system into multiple RTA modules. Each module targets a specific safety property (e.g., battery levels or obstacle avoidance).
A SOTER RTA module consists of:
- Advanced Controller (AC): A high-performance, potentially uncertified component.
- Safe Controller (SC): A certified, lower-performance backup.
- Decision Module (DM): A monitor that uses reachability-based switching. It looks ahead by $2\Delta$ (twice the sampling period) to ensure the system can remain in a safe state.
Compositionality
A core strength of SOTER is its support for composition. By proving that individual RTA modules are "well-formed," the framework guarantees that the entire composed system remains safe. This allows complex robotics stacks to be constructed piece-by-piece, with each untrusted component wrapped in its own safety net.
Experimental Evaluation
The framework was evaluated using a drone surveillance mission requiring both obstacle avoidance and battery management. The evaluation setup included:
- Simulation: High-fidelity Gazebo simulations using an Iris drone model in a city environment.
- Hardware: A 3DR Iris drone running the PX4 autopilot.
- Untrusted Components: The Open Motion Planning Library (OMPL) provided the AC, specifically a version of RRT* with intentionally injected bugs.
Results and Discussion
SOTER demonstrated a significant "performance sweet spot." In a 104-hour stress test, the system performed 109 successful safety interventions. While an SC-only mode was safe but slow (24s/lap) and an AC-only mode was fast but prone to crashes (10s/lap), SOTER achieved 14s/lap—a 41% speedup over the safe-only mode while maintaining 100% logic-level safety.
Key Insights
- Safe Return Logic: SOTER introduces a "safer" region ($\phi_{safer}$). Control only returns to the AC once the system is guaranteed to remain safe for at least another $\Delta$ period, preventing oscillations.
- AC as a Black Box: Safety is maintained without needing to verify the internal logic of complex components like neural networks; the framework only requires knowledge of physical limits and the SC's behavior.
Limitations and Future Work
Despite logic-level safety, 34 crashes occurred during long-term testing due to "scheduling misses" in the underlying OS, where the SC was not granted CPU time fast enough. Future work will focus on integration with Real-Time Operating Systems (RTOS) and automating the tuning of parameters like the sampling period $\Delta$ and the "safer" region boundaries.
Summary updated