Skip to content

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 ​

StateMeaning
INACTIVEno route running
JOININGwalking onto the route from up to join.max_distance away
FOLLOWINGon the route, at the speed profile’s speed
APPROACHINGconverging onto a stop point or the route’s end
DWELLINGstanding at a stop point: the inspection runs
PAUSEDa pause reason holds it: the operator, the e-stop, REMOTE, localization (NONE), the battery, disarmed
BLOCKEDstanding still too long: an obstacle path shift, detours and backing up could not pass
OFF_PATHfarther from the route than off_path_stop
GOAL_REACHEDthe route’s end
FAILEDa 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.

5.3 A patrol from NETRA ​