H.E.A.D
A bolt-on autonomy brain for small ground robots
The problem
Small ground robots usually ship as a chassis and a motor board. Giving one depth sensing, obstacle mapping, person following and safe stopping means wiring together cameras, LIDAR, neural networks and motor drivers that were never meant to work as one system.
I wanted a single module that could sit on top of any rover, take in its sensors, and hand back safe drive commands, while staying easy to rewire as new sensors and behaviours were added.
What I built
- Built the whole system as a graph of small nodes: sources (camera, LIDAR, gamepad, browser), transforms (depth refinement, voxel grid, costmap, detection, fusion), an agent, and sinks (motor control, data capture, logging). One config file wires the graph.
- A Node.js runtime starts and connects the nodes; the heavy perception and learning nodes run as Python processes, so each part uses the language that suits it.
- The driving policy is a small CNN encoder plus a GRU memory that turns a short stack of depth frames into a heading, urgency and confidence.
- The neural network only proposes. A rule-based safety validator checks every command against hard limits (emergency stop near obstacles, speed caps, no turning into occupied space) and can override it.
- Wrote my own interactive node-graph viewer so the architecture can be explored, clicked through and explained, down to the layers inside the policy network.
What it does
- Full system graph from sensors to motors, with live animated data flow between nodes
- Click any node for a plain description of what it does and what it consumes and produces
- Drill from the Intent Agent node into the layer-by-layer CNN + GRU model view
- A separate view for the person-following agent, showing how the safety validator sits between the policy and the drive base
- Pan, zoom, minimap and fit-to-view on every graph
Built with Node.js, Python, PyTorch, Socket.IO, Three.js, Own NodeFlow graph viewer, 2025.