A recovery plane for ROS 2 robots: detect a fault, decide what to do about it, and gate the actuation that follows. It has been run on a live Unitree GO2 with a Jetson Orin NX companion computer.
An injected error-log fault on the live GO2 stack, detected in about 1.8 s.
One controlled /rosout error-log injection, sensing tier only, in a 12-minute run in one on-robot trial, HELIX on the GO2's Jetson Orin NX beside the live stack. Two physical faults in the same run, a covered LiDAR and an unplugged microphone, were not detected. Eight bounded on-robot trials in all.
- Senses faults from heartbeats, metric anomalies and error-log patterns.
- Diagnoses them with four rules that turn a fault into a recovery hint.
- Publishes recovery commands as the only publisher of
/helix/cmd_vel, gated by an enable flag, a per-fault cooldown and an action allowlist. - Explains faults with an optional local language model (advisory).
| Measure | Value | Basis |
|---|---|---|
| Injected error-log fault to detection | about 1.8 s | One on-robot trial |
| Faults, recovery hints, audited actions | 30, 14, 14 | Idle GO2, software path |
| Zero-twist commands published | 3,064 | Idle GO2, no subscriber |
| Sustained 10-sigma steps detected, shipped config | 1 of 62 | Synthetic faults, recorded telemetry |
| Same steps, proposed config | 60 of 62 | Synthetic faults; config not shipped |
| C++ port memory, Python to C++ | 42.51 to 19.81 MB | Orin; Python from a separate run |
mkdir -p ~/helix_ws/src && cd ~/helix_ws/src
git clone https://github.com/yusufdxb/helix.git
cd ~/helix_ws && source /opt/ros/humble/setup.bash
colcon build --symlink-install && source install/setup.bash
ros2 launch helix_bringup helix_sensing.launch.py # sensing stack
ros2 run helix_bringup helix_fault_injector # second terminalhelix_fault_injector is a demo node that publishes test faults. More commands, including the detector analysis, are in docs/DEVELOPMENT.md.
Four ROS 2 lifecycle tiers, plus an advisory sidecar:
- SENSE:
helix_core,helix_adapter, and the C++ porthelix_sensing_cpp. - CONTEXT: a buffer in
helix_diagnosisholding recent logs and metrics. - DIAGNOSE:
helix_diagnosis, rules R1 to R4. - RECOVER:
helix_recovery, with a safety envelope. - EXPLAIN (sidecar, not a tier in the chain):
helix_explanationreads/helix/faults; advisory.
The diagram and package table are in docs/DEVELOPMENT.md and ARCHITECTURE.md.
| Component | Evidence | Environment |
|---|---|---|
| Sense | Eight bounded on-robot trials | GO2; PC and Jetson Orin NX |
| Diagnose | 14 of 14 hints correctly ruled | GO2 graph, software path |
| Recover | Audited; twist_mux fallback in simulation only |
GO2 graph; simulation |
| Explain | 26 unit tests | Unit tests |
| Detector analysis | Replay of recorded idle telemetry | Offline |
- The covered LiDAR and the unplugged microphone were not detected: HELIX only sees signals an adapter bridges into it.
- Recovery commands were verified at the publisher only: nothing downstream subscribed, and the
twist_muxfallback has not been run on the GO2. - The shipped detector config misses most sustained faults in synthetic tests, and produced 9 stop events in seven minutes on an idle robot.
- Results come from one robot, short runs, and single trials; the 1.8 s figure is one injection.
- docs/RESULTS.md: hardware trials, benchmarks, detector analysis and runtime console.
- docs/VALIDATION.md: evidence per component and the undetected physical faults.
- docs/DEVELOPMENT.md: background, architecture, build, packages, testing, roadmap.
- docs/LIMITATIONS.md, docs/comparison.md, docs/GO2_HARDWARE_EVIDENCE.md: limits, ecosystem comparison, raw evidence.
MIT license, see LICENSE. Maintainer: Yusuf Guenena.