Skip to content

7. NETRA on site ​

At the site the Mac joins the robot’s Wi-Fi and runs NETRA without internet; the robot connects to it directly.

7.1 Start NETRA ​

bash
cd ~/x30/Netra
scripts/local.sh start
scripts/local.sh awake
scripts/local.sh lan

start runs the images built before (no internet needed), awake keeps the Mac awake for schedules and the robot, lan prints the Mac’s address on each network, e.g. http://192.168.1.50. Reserve that address for the Mac in the robot’s router, or check it after each join: the robot uses it.

7.2 Connect the robot ​

On the navigation host, check that NETRA answers, then give the robot its address, its ID and its token:

bash
curl http://192.168.1.50/healthz
sudo nano /etc/x30/navigation.env

NETRA answers "status":"ok". In the settings:

bash
X30_LAUNCH_ARGS="site:=gardu netra_url:=http://192.168.1.50 netra_robot_id:=x30-01"
X30_NETRA_TOKEN=<CC_TOKEN>
bash
sudo systemctl restart x30-navigation
journalctl -u x30-navigation -f | grep -i netra

command center in the log: connected.

Within seconds the robot is online on the dashboard: battery, mode, the navigation state, the recorder and the inspection in Live control. site:= must be there: NETRA’s routes and their inspection plans go into the active site (~/x30/map/<site>/netra/).

7.3 What the robot sends and keeps ​

  • Telemetry every second; patrol and stop events, alerts and the answers to commands, all over one WebSocket that comes back by itself.

  • Uploads: every taught route and every inspection of NETRA’s points wait in a spool on the robot (~/x30/spool) until NETRA has them, across restarts and while NETRA is away.

  • Clock: the robot has no internet clock; NETRA measures the offset and puts every measurement on its own clock.

Install the license first

Without the substation module NETRA accepts an inspection upload but drops it, and the robot does not send it again. The reports stay on the robot (~/x30/reports), but NETRA will not have them.