Skip to content
yusufdxbPublic

About

Self-healing runtime for ROS 2 robots: sense faults, diagnose them, hold the robot safe, explain what happened. Validated on a live Unitree GO2 + Jetson Orin NX graph.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

HELIX

CI ROS 2 Humble C++17 Python 3.10 License: MIT

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.

HELIX demo: detect, decide, and publish a recovery command on a live GO2

What it does

  • 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).

Results

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

Quick start

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 terminal

helix_fault_injector is a demo node that publishes test faults. More commands, including the detector analysis, are in docs/DEVELOPMENT.md.

Architecture

Four ROS 2 lifecycle tiers, plus an advisory sidecar:

  • SENSE: helix_core, helix_adapter, and the C++ port helix_sensing_cpp.
  • CONTEXT: a buffer in helix_diagnosis holding 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_explanation reads /helix/faults; advisory.

The diagram and package table are in docs/DEVELOPMENT.md and ARCHITECTURE.md.

Validation

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

Limitations

  • 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_mux fallback 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.

Documentation

MIT license, see LICENSE. Maintainer: Yusuf Guenena.

About

Self-healing runtime for ROS 2 robots: sense faults, diagnose them, hold the robot safe, explain what happened. Validated on a live Unitree GO2 + Jetson Orin NX graph.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages