5. Sites, routes and the follower
5.1 On disk
~/x30/map/<site>/ a site: a substation (1-48 of a-z, 0-9, _ and -)
tags.json recorded tags: their map poses
routes/<name>.csv taught routes: x, y (m, map frame), yaw_deg, dwell_sec
inspection.yaml the site's own inspection points and targets
netra/<route_id>.csv routes NETRA started a patrol on
netra/inspection.yaml NETRA's plan for them (points netra_stop<k>, targets netra_<id>)
~/x30/reports/<day>/... inspection reports
~/x30/recordings/<day>/<time>_<reason>/ recorder sessions (perception host)
~/x30/spool/ uploads waiting for NETRA
~/x30/logs/ each node's JSON lines log
A row with dwell_sec above zero is a stop point. Files are written atomically (a temporary file renamed), so a power cut never leaves half a route.
5.2 The follower
| State | Meaning |
|---|---|
| INACTIVE | no route running |
| JOINING | walking onto the route from up to join.max_distance away |
| FOLLOWING | on the route, at the speed profile’s speed |
| APPROACHING | converging onto a stop point or the route’s end |
| DWELLING | standing at a stop point: the inspection runs |
| PAUSED | a pause reason holds it: the operator, the e-stop, REMOTE, localization (NONE), the battery, disarmed |
| BLOCKED | standing still too long: an obstacle path shift, detours and backing up could not pass |
| OFF_PATH | farther from the route than off_path_stop |
| GOAL_REACHED | the route’s end |
| FAILED | a problem the follower cannot leave by itself |
The follower is a pure state machine: Follower.tick(inputs) -> Decision every 50 ms, with the scan, the pose, the avoidance output and the time as its inputs; the node only gathers them and publishes the decision. Every state may go to INACTIVE (stop) or FAILED.