r/humanoidrobotics • u/drtikov • 4h ago
Aetheris Microbrains: Open-source Control Barrier Function (CBF) & Embodied AI safety kernel for robotics and VLA agents
I want to share Aetheris Microbrains, an open-source, sub-millisecond safety and control kernel designed for embodied AI, Vision-Language-Action (VLA) policies, and autonomous robots.
GitHub repo: https://github.com/drtikov/microbrainsforagents
As more people connect LLMs, VLAs, and learned policies to real hardware, the biggest gap is deterministic physical safety. Neural policies can hallucinate velocities, ignore obstacles, or issue dangerous tool calls. Aetheris Microbrains sits between your high-level planner/AI and your low-level actuators to mathematically guarantee safety constraints before anything reaches the motors.
Here are the main robotics capabilities and recent advances built into it:
- Real-time Control Barrier Functions (CBF) & High-Order CBF (HOCBF)
- Projects unsafe nominal control inputs onto safe sets using Dykstra's projection and QP-style halfspace/sphere/box constraints.
- Includes High-Order CBFs (HOCBF) for relative-degree >= 2 dynamics, dynamic obstacle CBFs, and differentiable CLF-CBF layers (with implicit KKT Jacobians and VJP for end-to-end policy training).
- Includes a zero-dependency 64-DoF Rust real-time kernel (with C FFI and WebAssembly support) for tight control loops.
2. Whole-Body, Legged, Bimanual & Dexterous Hand Control
- Hierarchical Task-Priority CBF-IK: lexicographic nullspace inverse kinematics where Tier-0 safety barriers strictly override lower-priority tracking tasks.
- Legged & Loco-Manipulation: centroidal momentum / ZMP / friction-cone CBFs, 2.5D terrain heightmap foothold projection, and whole-body self-collision barriers.
- Bimanual & Dexterous Hands: SE(3) belief-occlusion barriers, N-finger Ferrari-Canny grasp closure, tactile slip prevention, and I2t thermal derating.
- Hybrid Contact Passivity: energy-tank passivity layers for stiff wall contact and payload drop protection.
3. Crowd Navigation & Online System Identification
- Multimodal CVaR-CBF: handles multi-hypothesis pedestrian/human predictions using Rockafellar-Uryasev Conditional Value-at-Risk (CVaR) so the robot stays safe under uncertainty.
- Online Inertial SysID: forgetting-factor recursive least squares with SPD pseudo-inertia cone projection to adapt to unknown payloads in real time.
4. Protocol Firewall & VLA Threat Guard (ROS 2, MoveIt2, LeRobot, MAVLink, Unitree)
- Normalizes commands across ROS 2, MoveIt2, LeRobot, MAVLink, and Unitree, rejecting NaN/Inf inputs, enforcing 3D polytope geofences (including waypoints), velocity/force/energy limits, and HMAC-signed capability tokens.
- Protects against visual prompt injection, midair payload drops, and cross-modal sensor spoofing.
- Includes a static AST verifier that catches unsafe robot scripts before execution.
5. Unitree Hardware Stack & Simulation-to-Real Tools
- Built-in profiles, Motor-PD CBF adapters, 4-state homing/watchdog/thermal lifecycle bridge, and DDS LowCmd_ wire shim with CRC32 for Go2, B2, Z1, H1, H1-2, G1 (23/29 DoF), and Dex3-1.
- Shared-memory sensorimotor bus, hash-chained flight recorder with counterfactual replay, automatic safety policy synthesizer, and a 6-scenario closed-loop benchmark suite ("aetheris robo-bench") with 0/560 barrier violations.
Everything is pure Python/NumPy (with optional Rust/WASM acceleration) and has 960+ passing tests.
If you are working on safe RL, VLA deployment, legged/humanoid control, or ROS 2/Unitree integration, I would love for you to check it out and share your feedback!