Skip to content

Releases

v0.15.1 · Locked down: Foxglove and the chat page only through an SSH tunnel

Choose a tag to compare

@CosminBMemetea CosminBMemetea released this 29 Nov 14:04

foxglove_bridge and the chat page have no password. Until now they listened on every network the Jetson was on, and
the bridge let any client publish to any topic (PX4's command topics included, in a live flight), change any node's
parameters and call any service. They now listen on the Jetson only and are reached through an SSH tunnel; the
bridge is read-only.

Models:

Highlights

  • On the Jetson only: foxglove_bridge and the chat page bind to 127.0.0.1 by default
    (foxglove_address:=127.0.0.1, chat_bind:=127.0.0.1). A direct connection over the LAN or Tailscale is refused.
  • Read-only bridge: no clientPublish (Foxglove cannot publish, so it cannot command PX4), no parameter access,
    and the drone's bridge offers one service, the chat's /robot/ask; the ground robot's offers none. Topics stay
    visible.
  • The robot's data stays off Foxglove's servers: with ws://localhost:8765, the browser (or the Foxglove app)
    connects to your own computer, and SSH carries the stream to the Jetson.
  • Everything points at the tunnel: ros.sh's messages, the panel's ROS 2 card (its Foxglove link is now
    ws://localhost:8765), the docs and the READMEs in all nine languages.
  • The chat page fits half a screen: camera on top, chat below, no page scroll.
  • Guarded by tests: 4 checks on the launch files fail if a default opens the bridge or the chat to the network, or
    gives the bridge publishing or parameters back (each checked against v0.15.0's launch files). 128 tests in all.

Install or run

Copy ros2/ to /ssd/querra/ros2 on the Jetson and start as before (./ros.sh demo). From your computer:

ssh -N -L 8765:127.0.0.1:8765 -L 8091:127.0.0.1:8091 <user>@<jetson>    # over the LAN or Tailscale

Then Foxglove on ws://localhost:8765 (layout ros2/foxglove/querra-demo-layout.json) and the chat on
http://localhost:8091. To open them to a network you trust, for a cable-connected demo for example:
./ros.sh demo foxglove_address:=0.0.0.0 chat_bind:=0.0.0.0. The panel's new page goes to
querra-scout-20261107/panel/static/index.html on the Jetson; it is served from disk, so no restart is needed.

Known limits

  • Anyone with SSH access to the Jetson still sees everything: the tunnel is the access control.
  • The panel itself is unchanged: it still listens on the LAN, protected by its PIN.
  • The micro-ROS agent's UDP port (8888) is still open on the Jetson's networks while px4:=true runs, as PX4's
    link needs it. Run live PX4 flights on a network you trust.
  • Every score is still from simulation.

Changes since v0.15.0 ·
CHANGELOG ·
ROS 2 on the Jetson: access

v0.15.0 · Alerts land on the fault: the re-fly verifies all three, and the drone answers questions

Choose a tag to compare

@CosminBMemetea CosminBMemetea released this 29 Nov 12:03

How each fence detector scored, model-v0.1 to model-v0.9: held-out farms, the recorded mission and live flights

An alert used to sit where the first few sightings put it, often seen from far ahead and a few metres off. It now
sits at the mean of every sighting, a metre or two from the fault, and that is what the drone flies back to. In
two live flights on the Jetson the re-fly verified all three faults up close, including the branch it missed in
November. You can also ask the drone in plain words what it sees and what it has found, through a ROS 2 service, a
page or Foxglove; every answer comes from the live topics. And the Jetson no longer has to be on the same network:
PX4 now connects to it over the internet.

Models:

  • The drone keeps model-v0.5 (default since
    v0.11.0). Four candidates were trained and tested in this release, model-v0.6 to model-v0.9, and none was adopted:
    the three with thin-wire frames found fallen posts on thin wire better but raised false broken wires, and the
    control run without new data was quieter, not better. Their records are in
    ml/runs; they have no release.
  • The ground robot keeps ground-v0.1 for its
    fault alerts. ground-v0.2 stays a candidate,
    and ground-v0.3 (thin wire) joins it as a candidate with a run record, not yet a release: neither has had its live
    patrols.

Highlights

  • Alerts land on the fault (tools/confirm.py, the same logic in the Jetson's alert_confirm): an alert's
    position is the mean of every sighting matched to it, not only the 5 that confirmed it. On the recorded mission
    model-v0.5's alerts moved from 2.3–5.8 m to 0.4–1.4 m from their fault, two duplicate alerts merged, and no model
    gained a false alert. The re-fly reads the refined positions from /fence/alerts/updates.

  • The re-fly verifies every fault. Two live flights on the Jetson, model-v0.5, rich look:

    21 Nov, positions of the first sightings 29 Nov, flight 1 29 Nov, flight 2
    Alerts in the inspection 4: 3 faults, the fallen post twice 3: 3 faults, 0 false 3: 3 faults, 0 false
    Broken wire, hover frames that see it 68 of 68 75 of 75 70 of 70
    Fallen post 56 of 56 (the duplicate alert: 0 of 76) 75 of 75 72 of 72
    Branch 0 of 74, not seen 76 of 76 75 of 75
  • Ask the drone (robot_chat,
    docs): what
    it sees, what it has found, where a fault is (distance and direction from the drone), where it is, what it is doing,
    how the close-up checks went, how fast the detector runs. Three ways in:

    • the ROS 2 service /robot/ask (querra_fence_msgs/srv/Ask);
    • the topics /robot/chat/question and /robot/chat/answer, so every exchange shows in Foxglove and in bags;
    • a page on port 8091 with the annotated camera and spoken answers.

    There is no language model: the answers are built from the live topics, so no number is invented. It only reads; it
    cannot command the drone. It starts with ./ros.sh demo (chat:=false turns it off).

  • PX4 over the internet. PX4 drops every uXRCE-DDS time-sync sample with a round trip over 10 ms, so with the
    Jetson reached over Tailscale (42 ms) its client waited for the sync forever and no /fmu/out topic arrived.
    start.sh now sets UXRCE_DDS_SYNCT=0; nothing here needs synced stamps. Checked on a machine whose saved setting
    had the sync on.

  • A threshold per fault class for the drone's alerts: ./ros.sh … class_conf:=wire_break=0.75 (empty by default:
    every fault from 0.7). tools/eval_mission.py --class-conf … --reuse tries a setting on the recorded mission from
    saved detections.

  • Four models, one cause found (retraining log):
    model-v0.6 (real conductors) and model-v0.7 (negatives near corners) both raised false broken wires; the control
    model-v0.8 (more training, no new data) did not; model-v0.9 (only the steel-wire and polywire frames) did. Those
    frames have no wire boxes, and they are the cause. They also give the best fallen-post recall on thin wire yet (81%
    and 82% from 0.7, model-v0.5 59% and 61%), so the next run keeps them and boxes the wire where it is visible.

  • Real images: tools/fetch_commons.py collects openly licensed fence photos from Wikimedia Commons with their
    author and licence; tools/ttpla_check.py runs a drone model on TTPLA's 1,242 real drone photos of power lines and
    is now a guard on every run; label_drafts.py draft merges several models' boxes (YOLO-World for posts, COCO for
    animals).

  • Real fence conductors, stress tests: steel wire, polywire, polyrope and polytape at their real size, for the
    drone and the ground robot, with 3× supersampling. From flight height a 2.5 mm wire is a tenth of a pixel: no drone
    model finds a broken steel wire or polywire. ground-v0.3 (candidate) learned thin wire from the ground: wire mAP50 0.95 on steel
    and polywire (ground-v0.2: 0.44, 0.20), 29 of 29 faults offline.

  • Phone alerts (docs/phone-alerts.md):
    each new alert, from the drone or the ground robot, through ntfy or Telegram, with its photo and a map link.

  • Tests on every push: 124 tests with pytest, no GPU, Gazebo or ROS 2 needed, plus the registry, release-notes and
    README checks on GitHub.

  • Also: training on the M2's GPU (4× faster), negatives for broken wires (make_dataset.sh --breaks 0 --corner-share 0.9), and a Foxglove layout for screen shares (ros2/foxglove/querra-demo-layout.json: the camera,
    the map, the alerts and the chat, without the bench cameras).

Install or run

On the Jetson, copy ros2/ to /ssd/querra/ros2 and start; the container rebuilds the workspace (the messages
package gets the new service):

./ros.sh demo                                                     # replay, detector, alerts and the chat page on :8091
./ros.sh demo tcp://<mac>:5601 px4:=true refly:=true              # live flight with the Mac's simulation

On the Mac, ./start.sh sets the PX4 time-sync setting itself. For a Jetson on another network, use the Tailscale
addresses: python3 tools/uxrce_relay.py <jetson> and tcp://<mac>:5601 above. The chat page needs no install: open
http://<jetson>:8091, or http://localhost:8091 through an SSH tunnel for the microphone.

Known limits

  • Every score is still from simulation. No real fence footage has gone through the models yet; the real-image
    tools are ready for it.
  • Two re-fly flights, one farm, one look. Both verified all three faults; the classic look and other farms have not
    been re-flown with the refined positions.
  • The chat is simple: English only, keyword rules, read-only. The microphone works in Chrome on a secure page only.
  • PX4 stamps are not synced with the time sync off. Nothing in this pipeline needs them (PX4 clamps incoming stamps
    to its own clock, px4_pose stamps with ROS time); a node that fused PX4's own stamps with the Jetson's would need
    the sync on a fast link.
  • foxglove_bridge logs errors in PX4 mode for PX4's /fmu/vehicle_command service, whose type is not in the
    minimal px4_msgs. Nothing uses that service; the re-fly commands PX4 through its topic.
  • False broken wires on thin wire are not solved. model-v0.5 stays the default because every candidate traded them
    for better fallen posts.
  • The ground candidates are not live-tested, and phone alerts have not run on a real phone or the Jetson.

Changes since v0.14.0 ·
CHANGELOG ·
ROS 2 on the Jetson ·
Retraining log ·
model-v0.5 live flights

v0.14.0 · Ready for real footage: a phone walk, a labelling page, and ground-v0.2 (candidate)

Choose a tag to compare

@CosminBMemetea CosminBMemetea released this 26 Nov 15:55

The labelling page: a model's draft boxes on a frame of a simulated walk, ready to be checked

Every score in this project so far was measured in simulation. This release prepares the first real images: how to
film a real fence with a phone the way the ground robot's camera would see it, and a page to label real frames
quickly, with a model drafting the boxes, so that every model can be scored on real footage. It also brings the next
ground model, ground-v0.2, as a candidate: better than ground-v0.1 offline everywhere, not yet tested live.

Models:

  • The drone keeps model-v0.5 (default since
    v0.11.0).
  • The ground robot keeps ground-v0.1 for its
    fault alerts, with fallen posts from conf 0.5.
  • New: ground-v0.2, a candidate.
    Offline it finds 29 of 29 faults on four patrols with every class from conf 0.7. It becomes the default after live
    patrols on the Jetson.

Highlights

  • Label real footage (docs/labelling.md),
    with tools/label_drafts.py:

    • draft takes frames from a video and lets a model draw the boxes;
    • serve opens a review page on the Mac: delete, fix, draw what is missing, Enter saves;
    • score scores any model on the reviewed frames, with mAP50 per class and the recall, precision and false frames
      of each fault class at the alert thresholds.

    It needs no internet, and the page no extra packages.

  • The phone walk (docs/phone-walk.md):
    film a fence with the phone's ultra-wide lens at 0.7 m, 1.5–2.5 m from the fence, at a slow walk, which is the
    robot camera's view. Then run a ground model over the video with the robot's alert rule (tools/video_eval.py --class-conf, new). The page also says how to stage faults safely on an electric fence.

  • ground-v0.2, ground-v0.1 fine-tuned with 1,500 frames full of fallen posts:

    Offline, forests never trained on ground-v0.1 ground-v0.2
    Test enclosures, mAP50 0.957 0.979
    Fallen posts kept from conf 0.7 52% 82%
    Four patrols, every fault from conf 0.7 25 of 29, 0 false 29 of 29, 0 false
  • Patrols of new forests (tools/make_ground_dataset.sh --patrol --patrol-seed S): three random forests never
    trained on join the patrol forest as a test, with 29 faults in all. --focus and --posts-down make targeted
    training data.

  • Cooling breaks hold when training is started detached (tools/train_with_breaks.py).

  • Model registry: a candidate status, and the ground table shows all four patrols.

Install or run

On the Mac, with the models from their releases in ~/querra-data/models:

~/.querra-train-venv/bin/python tools/video_eval.py IMG_1234.MOV --model ~/querra-data/models/ground-yolo11n-v0.2.pt --no-srt --fps 2
~/.querra-train-venv/bin/python tools/label_drafts.py draft IMG_1234.MOV --model ~/querra-data/models/ground-yolo11n-v0.1.pt --every 2
python3 tools/label_drafts.py serve ~/querra-data/real/IMG_1234
~/.querra-train-venv/bin/python tools/label_drafts.py score ~/querra-data/real/IMG_1234 --model ~/querra-data/models/ground-yolo11n-v0.1.pt ~/querra-data/models/ground-yolo11n-v0.2.pt

Nothing changed on the Jetson: v0.13.0's setup holds.

Known limits

  • ground-v0.2 is not live-tested. The Jetson was not available for this release. The robot keeps ground-v0.1 with
    fallen posts from conf 0.5, and ground-v0.2's margin at 0.7 (6–7 frames where 5 are needed) still has to hold live.
  • Tested on simulated video only. The phone walk and the labelling page were checked on forest 700's patrol played
    as a 2 fps walk: 8 alerts for the 8 faults, none false. The page's editing was driven in headless Chrome. No real
    footage has gone through them yet.
  • A phone is not the robot. Height and distance wander, and the lens differs; a phone walk's scores are a guide.
  • Every published score is still from simulation.

Changes since v0.13.0 ·
CHANGELOG ·
Phone walk ·
Labelling ·
ground-v0.2 run record

ground-v0.2 · More fallen posts: every fault found at conf 0.7, offline (candidate)

Choose a tag to compare

@CosminBMemetea CosminBMemetea released this 26 Nov 15:55

Every fallen post on four patrols: frames that show it at conf 0.7, ground-v0.1 and ground-v0.2

ground-v0.1 found 50 of 50 faults in 10 live patrols, but only because fallen posts count from conf 0.5. At 0.7, the
threshold of the other faults, its first live patrols missed a fallen post, and so did its offline patrols of three
new forests. ground-v0.2 learned from 2.4 times as many fallen posts. Offline, on the patrols of four forests, it finds every fault with every class from
conf 0.7: 29 of 29, with no false alert
.

A candidate, not yet live-tested. The Jetson was not available for this release. The ground robot keeps
ground-v0.1 by default until ground-v0.2 passes live patrols on it.

Role Candidate. Not used by default; the ground robot keeps ground-v0.1 (./ros.sh ugv … detect:=true) until ground-v0.2 passes live patrols
Parent ground-v0.1 (fine-tuned)
Trained on 5,100 frames from the robot's camera: ground-v0.1's 3,600 and 1,500 from 6 enclosures full of fallen posts; 908 fallen posts (ground-v0.1: 372)
Code 5ab9979
Run record ml/runs/ground-v0.2

What changed

  1. Fallen-post data (tools/make_ground_dataset.sh --focus post_down --posts-down 4-6). 6 new random forest
    enclosures (seeds 520–525, outside every other range) with 4–6 fallen posts each, and 70% of the camera poses near
    a fault, 70% of those near a fallen post. 1,500 frames, three quarters compressed like the robot's camera stream.
  2. Fine-tuned from ground-v0.1 for 8 epochs on the laptop CPU, 2.4 h. The last epoch was the best, and the scores
    were still rising.

Scores

Offline, on forests never used for training. The patrols are the forest the robot patrols and three random forests
(seeds 700–702), one frame every 0.5 m along each route, scored as the alert chain counts: 5 of 8 frames.

ground-v0.1 ground-v0.2
Test enclosures (3 forests, 600 frames), mAP50 0.957 0.979
… broken wire / fallen post / branch 0.957 / 0.942 / 0.958 0.982 / 0.993 / 0.972
Fallen posts kept from conf 0.7 on the test enclosures, precision 52%, 1.00 82%, 1.00
Four patrols, every fault from conf 0.7: faults found, false alerts 25 of 29, 0 29 of 29, 0
Four patrols, fallen posts from 0.5 (the live rule today) 29 of 29, 0 29 of 29, 0
Frames that show each fallen post from conf 0.7 (an alert needs 5) 4–6 6–7

Broken wires and branches stay within 2 frames of ground-v0.1, and at the alert thresholds no class is worse. One step
back below them: broken-wire recall at conf 0.5 on the test enclosures, 0.94 → 0.93.

Live on the Jetson

Not yet. To test it, build the engine once from the ONNX in the models folder, then patrol with it:

trtexec --onnx=ground-yolo11n-v0.2.onnx --saveEngine=ground-yolo11n-v0.2-fp16.engine --fp16
./ros.sh ugv tcp://<mac-ip>:5611 pose:=slam slam:=localization detect:=true engine:=/models/ground-yolo11n-v0.2-fp16.engine

It becomes the default after 10 live patrols with today's rule (fallen posts from 0.5) as good as ground-v0.1's:
50 of 50 faults, no false alert.

Known limits

  • Offline only. ground-v0.1's live patrols showed a fallen post in 1–2 fewer steps than its offline frames, so
    the 6–7 frames at conf 0.7 may be thin on the robot. The fallen-post threshold of 0.5 stays until live patrols at
    0.7 show it can go.
  • One generator. The new forests vary the layout, the trees and the light, not the style, and every branch fault
    has the same shape.
  • Simulation only. No real ground-view images yet; v0.14.0
    adds the phone walk and a labelling page to get them.

Files

File What it is SHA-256
ground-yolo11n-v0.2.pt PyTorch weights (Ultralytics), to fine-tune from 5a8a9dafca3f312bc118969129c5d3d3cc5f421e4c9b778e99c7523cf71af9f0
ground-yolo11n-v0.2.onnx ONNX, 1×3×416×640. Build the Jetson engine with trtexec --fp16 0eb81e25f9f943849fd084992002eb55681495841fda169ba1e84f5ab45cf8c9
classes.json Class names in output order (the same as ground-v0.1) 4bc311cdc19b0ab73d26877dac914ffd61fb63b9e69e534b5405d5dad00e24e1

v0.13.0 · The ground robot finds the faults: 50 of 50 in 10 live patrols

Choose a tag to compare

@CosminBMemetea CosminBMemetea released this 25 Nov 09:34

10 live patrols on the Jetson: every alert at its fault

In v0.12.0 the ground robot patrolled the forest and every fault passed through its camera's view, but nothing
looked for them. Now it does: a fence detector trained for its side view runs on the Jetson during the patrol and
confirms the faults it sees. In 10 live patrols in a row it found all five faults every time, with no false alert.

Models:

  • The ground robot's fault alerts use ground-v0.1,
    the first model of a new track for the ground view (./ros.sh ugv … detect:=true).
  • The drone keeps model-v0.5 for everything
    else.

Highlights

  • ground-v0.1, model-v0.5 fine-tuned on 3,600 frames from the robot's camera in random forests. On test forests
    it never saw: mAP50 0.957 (model-v0.5: 0.040).

  • 10 live patrols on the Jetson, each from a clean start:

    Each patrol
    Faults found 5 of 5 (50 of 50 in all)
    False alerts 0
    Alert position 0.4–1.4 m from the fault (median per fault)
    Route completed 99.7% in 692–780 s, SLAM median 0.25–0.27 m
  • Fault alerts on the robot (detect:=true): the detector runs on the side camera with TensorRT (3.43 ms per
    frame) and ugv_alerts confirms a fault when 5 of 8 frames taken 0.5 m of travel apart see it at the same spot on
    the fence. Frames are counted by distance, not time: at 0.8 m/s and 10 frames per second, counting every frame
    would let a bush mistaken for a branch for half a second raise an alert. Alerts show in Foxglove, go to
    /fence/alerts, and are logged on the Mac, where tools/ugv_eval.py scores them.

  • Fallen posts count from conf 0.5, the others from 0.7. At 0.7 the first live patrols missed the fallen post.
    The threshold was taken from held-out forests, where 0.5 keeps 90% of the fallen posts (0.7: 52%) with false ones
    in 0.5% of the frames.

  • Ground-view data and scoring: tools/make_ground_dataset.sh renders random forests from the robot's camera;
    tools/ground_patrol_eval.py scores a model on the patrol frames as the alert chain would.

  • Real fence video (docs/drone-video.md):
    tools/video_eval.py runs a fence model over a drone video with the Jetson's alert rule, ready for footage from a
    DJI Mini 4 Pro. With DJI's subtitle file every alert gets a map position. The page says how to fly so the camera
    sees the fence as the drone models learned it (12 m, gimbal 55° down, 2–3 m beside the fence).

  • The model registry now has a table for ground models, and a release track for them (ground-vX.Y).

  • README in nine languages and the project page cover the ground robot's fault alerts.

Install or run

On the Mac and on the Jetson:

./ugv.sh                                                                         # Mac: the forest world and the relay
./ros.sh ugv tcp://<mac-ip>:5611 pose:=slam slam:=localization detect:=true       # Jetson: patrol and look for faults
tools/ugv_series.sh 10 mmx@<jetson-ip> detect:=true                              # Mac: ten patrols, each scored
~/.querra-train-venv/bin/python tools/video_eval.py DJI_..._D.MP4 --pitch 55     # Mac: a drone video, with its .SRT

The Jetson needs the engine built once from the release's ONNX:
trtexec --onnx=ground-yolo11n-v0.1.onnx --saveEngine=ground-yolo11n-v0.1-fp16.engine --fp16 in the models folder.

Known limits

  • The fallen post is the thin margin: 6–7 steps near it show it where 5 are needed, and it needs its own
    threshold. ground-v0.2 will add fallen-post data.
  • One static forest. The patrols drive the same world as the teach run, on flat ground.
  • The video tool is tested on simulated video (a recorded mission as a DJI-style MP4 and subtitle file: the same
    5 alerts as the mission evaluation). Real footage comes next.
  • Simulation only: no ground robot hardware, no real ground-view images yet.

Changes since v0.12.0 ·
CHANGELOG ·
Ground robot docs ·
ground-v0.1 run record

ground-v0.1 · The fence from the ground robot's side camera

Choose a tag to compare

@CosminBMemetea CosminBMemetea released this 25 Nov 09:34

10 live patrols on the Jetson: every alert at its fault

The first fence detector for the ground robot. Its camera looks at the fence from the side, 0.7 m up, under the
trees, where the drone's models (trained from 12 m above) found 2 of 5 faults and raised 19 false alerts. Live on the
Jetson, in 10 patrols in a row, ground-v0.1 found all 5 faults every time, 50 of 50, with no false alert.

Role Default for the ground robot's fault alerts from platform v0.13.0: ./ros.sh ugv … detect:=true
Parent model-v0.5 (fine-tuned)
Trained on 3,600 frames from the robot's camera in 12 random forest enclosures; 2,720 compressed like its camera stream
Code dcd017a
Run record ml/runs/ground-v0.1

What changed

  1. Ground-view data (tools/make_ground_dataset.sh). Random forest enclosures in the style of the patrol world:
    6–9 sided fences, 3–5 broken wires, 2–3 fallen posts and 2–3 branches on the wires each, forest density and sun
    randomised. A copy of the robot's camera (640×400, 100° wide) at robot poses 1.4–2.5 m outside the fence, with
    heading, pitch and roll noise. Labels come from Gazebo's geometry; a depth camera on the same mount removes hidden
    parts.
  2. Stream-like JPEG on 75% of the training frames and all of the validation and test frames, as the robot's
    camera reaches the Jetson.
  3. Fine-tuned from model-v0.5 for 10 epochs: CPU, 3.5 h, in five sessions with 15-minute cooling breaks. The last
    epoch was the best, and the scores were still rising.

Scores

model-v0.5 ground-v0.1
Test enclosures (3 forests of their own seeds, 600 frames), mAP50 0.040 0.957
… broken wire / fallen post / branch 0.119 / 0.047 / 0.004 0.957 / 0.942 / 0.958
Patrol frames of the real forest, offline, 5 of 8 frames: faults found, false alerts 2 of 5, 19 5 of 5, 0

The patrol frames are the forest the robot patrols, one frame every 0.5 m along its route, never used for training.

Live on the Jetson

Gazebo's forest on the Mac, the robot's brain in ROS 2 on the Jetson. The TensorRT FP16 engine (3.43 ms per frame,
286 per second) runs on the side camera. ugv_alerts confirms a fault when 5 of 8 frames taken 0.5 m of travel apart
see it at the same spot on the fence, placed from the SLAM pose. An alert is real when its class matches a fault
within 5 m.

Fault Found in 10 patrols Alert distance from the fault, median
F1 broken wire 10 1.2 m
F2 branch on the wires 10 0.8 m
F3 fallen post 10 0.4 m
F4 broken wire 10 1.1 m
F5 branch on the wires 10 0.4 m
False alerts 0

Fallen posts count from conf 0.5, the other faults from 0.7. With every class at 0.7, the first two live patrols
found 4 of 5 and missed F3 both times. ground-v0.1 scores fallen posts lower than the other faults: on its held-out
test forests conf 0.7 keeps 52% of them, conf 0.5 keeps 90% with false fallen posts in 0.5% of the frames. The
threshold was taken from those forests, not from the patrol.

Known limits

  • The fallen post is the thin margin: 6–7 steps near F3 show it, where 5 are needed. ground-v0.2 will add
    fallen-post data, the rarest class here (372 against 812 broken wires and 693 branches), so 0.7 works for all.
  • One patrol world. The live patrols drive the same forest every time; the test enclosures are the check on
    other forests.
  • Simulation only. No real ground-view images yet.

Files

File What it is SHA-256
ground-yolo11n-v0.1.pt PyTorch weights (Ultralytics), to fine-tune from a6837e2413f955a86c23b4d25c9e3aaeca411465e357a80441c3f12dcbabcaa4
ground-yolo11n-v0.1.onnx ONNX, 1×3×416×640. Build the Jetson engine with trtexec --fp16 9eb8a54398912e68879a6f79a9e71324437fbc805da7dbcda09faaedede65911
classes.json Class names in output order 4bc311cdc19b0ab73d26877dac914ffd61fb63b9e69e534b5405d5dad00e24e1

v0.12.0 · A ground robot under the trees: LiDAR SLAM, 10 of 10 loops

Choose a tag to compare

@CosminBMemetea CosminBMemetea released this 22 Nov 20:44

The forest strip in the ground robot's LiDAR: trunks banded orange where they cross the slice SLAM matches, the fence wire, crowns overhead, the path driven

Under the trees the drone can neither see the fence nor fly safely, and GNSS is metres off. This release adds a
second inspector for those places: a small ground robot, simulated end to end in Gazebo, with its brain in ROS 2 on
the Jetson. It localises with LiDAR SLAM (teach and repeat) and completed the forest loop in 10 of 10 patrols.

Models: the drone keeps model-v0.5
(default since v0.11.0). The ground robot has no fault detector yet in this release.

Highlights

  • A forest to patrol: 500 m of fence through a procedural forest of 880 trees, with bushes, logs, rocks, pinch
    points and five faults (two broken wires, two branches on the wires, a fallen post).

  • A robot to patrol it: a 4×4 skid steer with a 16-beam LiDAR, a side camera and an IMU. GNSS degrades with the
    sky the crowns hide; wheel odometry has realistic scale and heading errors.

  • LiDAR SLAM, teach and repeat (slam_toolbox on the Orin Nano): the robot maps the loop once, saves the route as
    the map sees it, and localises against that map on every patrol.

  • 10 of 10 loops (2 repeats, then 8 in a row from clean starts):

    Each patrol
    Route completed 99.7–99.8% in 717–751 s
    Off the true route 0.18–0.19 m at the 95th percentile
    SLAM position against the truth 0.25–0.27 m median, under 1 m throughout
    Faults through the camera's view 5 of 5
    Obstacle stops, link gaps 0

    For comparison, GNSS under the trees: 4.3 m median. On wheel odometry alone the robot stopped at the first tight
    spot (about 100 m).

  • On the Orin Nano the whole ground-robot stack uses 119% of one core of six (it started at 327%).

  • The map fits the forest: 0.10 m on median from each true trunk centre to the nearest occupied cell, over 739
    trunks.

  • Pictures from the logs and from Gazebo: the patrol from above, the error along the loop, the LiDAR cloud in 3D
    (the whole loop, one scan, the faults), and the SLAM map against the true forest.

  • GPS fix: gpsd reported a 3D fix at 0,0 with the u-blox 7. The panel and the ROS 2 node now detect it, ask
    gpsd for NAV-POSLLH and report no position until it agrees.

  • README in nine languages and the project page now cover the ground robot.

Repeat patrol from above: the true path and the SLAM position overlap, wheel odometry drifts up to 4.6 m The SLAM map against the true forest: trunks in their rings around the whole loop

Install or run

On the Mac (Gazebo comes with PX4) and on the Jetson:

./ugv.sh                                                              # Mac: the forest world and the relay
./ros.sh ugv tcp://<mac-ip>:5611 pose:=slam slam:=mapping              # Jetson: teach (drive once, save map + route)
./ros.sh ugv tcp://<mac-ip>:5611 pose:=slam slam:=localization         # Jetson: repeat (patrol on SLAM)
tools/ugv_series.sh 10                                                # Mac: ten patrols, each scored

The robot's sensor stream is about 0.5 MB/s from the Mac to the Jetson: use 5 GHz Wi-Fi or Ethernet (2.4 GHz stalled).

Known limits

  • Faults are not found from the ground yet. All five pass through the camera's view, but model-v0.5 knows only
    the drone's view from 12 m. The ground view needs its own data and model; that is the next step.
  • Flat ground, a static forest. No slopes, mud or roots, and nothing changes between the teach run and the
    patrols.
  • The simulated wires are 36 mm thick, like wide polytape. A real 2.5 mm steel wire would barely show in a
    16-beam LiDAR.
  • No ground robot hardware yet: this is phase 0, in simulation.

Changes since v0.11.0 ·
CHANGELOG ·
Ground robot docs

v0.11.0 · model-v0.5: no false alerts in flight

Choose a tag to compare

@CosminBMemetea CosminBMemetea released this 21 Nov 14:48

Fence detector: how each model scored

A new fence detector, trained on frames posed like the inspection flight and compressed like the camera stream, and
now the default everywhere. It finds all three faults with no false alert in the live flights and in the recorded
mission.

Models:

  • The default for everything is model-v0.5:
    ./ros.sh demo (replay), ./ros.sh demo tcp://… (live Gazebo), the ROS 2 detector and field mode in the panel.
  • model-v0.3 and model-v0.4 are retired. They stay selectable with engine:= and in the panel.

Highlights

  • model-v0.5, fine-tuned from v0.4 on 9,600 frames. Live on the Jetson it finds 3 of 3 faults with 0 false
    alerts
    in both world looks (v0.4: 13 classic, 6 rich).
  • The cause of the false alerts: the camera stream's JPEG compression (MJPEG, -q:v 4, 4:2:0). The models were
    trained on lossless PNG, and at 12 m a 1–2 px wire breaks into JPEG blocks. Compressed the same way, synthetic
    flight frames predict the false broken-wire frames of the recorded flight within about one percentage point.
  • Data tools:
    • tools/flight_poses_from_ulog.py measures the flight's camera pitch, offset, heading and roll in PX4 logs
      (camera 48–67° down, median 58°, 2.4 m outside the fence);
    • make_dataset.py --style v4 renders farms from those poses along each farm's inspection route;
    • tools/jpeg_like_stream.py makes dataset copies compressed like the stream;
    • tools/eval_sets.py reads .jpg sets and reports wb_false, the share of frames with a false broken wire;
    • tools/train_with_breaks.py trains in sessions with cooling breaks.
  • Benchmark for every model in ml/benchmark/:
    • model-v0.1 to v0.5 on the same 9 held-out sets and the recorded mission replay;
    • a new set of 8 stream-like test sets (stream.json) for v0.3 to v0.5.
  • Registry:
    • model-v0.5 with its 12 new datasets and the run record ml/runs/model-v0.5/;
    • charts drawn from the registry (tools/model_charts.py).
  • Release notes as files:
    • every release has its text in docs/release-notes/<tag>.md, on one template per track;
    • tools/release_notes.py checks them, drafts included, and publishes them with gh.
  • Jetson:
    • ros.sh, the launch file and the detector node default to the v0.5 engine;
    • field mode uses v0.5, and the panel lists v0.5.

Measured

model-v0.3 model-v0.4 model-v0.5
Live flight, rich world: faults found, false alerts 1 of 3, 0 3 of 3, 6 3 of 3, 0
Live flight, classic world: faults found, false alerts 3 of 3, 5 3 of 3, 13 3 of 3, 0
Recorded mission replay: faults found, false alerts 3 of 3, 6 3 of 3, 12 3 of 3, 0
Held-out test, PNG, classic / rich (mAP50) 0.911 / 0.710 0.938 / 0.938 0.937 / 0.937
Detector on the Jetson GPU (TensorRT FP16) 3.64 ms 3.65 ms

Install or run

On the Jetson, copy ros2/ and build the engine from the model-v0.5 ONNX:

cd ~/querra-scout-20261107/models/fence-yolo
/usr/src/tensorrt/bin/trtexec --onnx=fence-yolo11n-v0.5.onnx --saveEngine=fence-yolo11n-v0.5-fp16.engine --fp16
cd /ssd/querra/ros2
./ros.sh doctor                                          # checks the v0.5 engine
./ros.sh demo                                            # classic replay: model-v0.5
./ros.sh demo tcp://<mac-ip>:5601 px4:=true refly:=true   # live Gazebo: model-v0.5

Known limits

  • model-v0.5 sees the broken wire in fewer frames than v0.4 (66 against 147 in the replay, best confidence 0.87).
    The 5-of-8 confirmation still raises the alert, with a smaller margin.
  • Branch alerts sit about 4 m from the branch, so the re-fly misses it up close.
  • Everything is still simulation. Real frames from the field recorder come next.

Changes since v0.10.0 ·
CHANGELOG ·
All releases and models

model-v0.5 · Flight poses and the camera stream's JPEG

Choose a tag to compare

@CosminBMemetea CosminBMemetea released this 21 Nov 14:48

Fence detector: how each model scored

Fine-tuned from model-v0.4 on frames posed like the inspection flight and compressed like the camera stream. It is
the first model with no false alert in any flight: the live classic and rich flights on the Jetson and the recorded
mission replay. It finds all three faults in each.

Role Default from platform v0.11.0: the replay demo, live Gazebo flights, the ROS 2 detector and field mode
Parent model-v0.4
Trained on 9,600 frames: 4,800 new flight-pose frames (2,400 classic, 2,400 rich) + 4,800 from earlier datasets; 6,119 compressed like the stream
Code 2f04ece
Run record ml/runs/model-v0.5

What changed

  1. Found the cause of v0.4's false alerts: JPEG. The camera reaches the Jetson as MJPEG (-q:v 4, 4:2:0
    colour), but every model was trained on lossless PNG. At 12 m a wire is 1–2 px wide, and JPEG blocks cut it into
    pieces. Compressed like the stream, synthetic flight frames give v0.3 and v0.4 8.2% and 14.8% false broken-wire
    frames. The recorded flight gives 7.7% and 12.9%. As PNG, the same frames give 1.0% and 0.2%.
  2. Measured how the drone looks at the fence. tools/flight_poses_from_ulog.py reads PX4 logs of the mission.
    The camera is mounted at 55°, but the drone noses down in flight, so the camera looks 48–67° down (median 58°). The
    drone flies 2.4 m outside the fence, rolls down to −12° in the corners, and spends 48% of the time within 12 m of
    a corner.
  3. Flight-pose data (make_dataset.py --style v4). 70% of the poses fly each farm's inspection route at those
    attitudes. 16 new farms, 8 in each look, 4,800 frames.
  4. Stream-like JPEG (tools/jpeg_like_stream.py). 75% of the new frames and 50% of the old ones are compressed
    at a random quality. Validation uses the stream's own quality.
  5. Fine-tuned from v0.4 for 6 epochs. CPU, 3.4 h, in three sessions with 15-minute cooling breaks. The last epoch
    was the best.

Scores

The shared benchmark (ml/benchmark), plus a
new set of frames posed like the flight and compressed like the stream (stream.json):

model-v0.3 model-v0.4 model-v0.5
Recorded classic mission, 5-of-8 confirmation: faults alerted, false alerts 3 of 3, 6 3 of 3, 12 3 of 3, 0
Recorded classic mission: false wire_break frames, conf ≥ 0.7 153 257 1
Flight poses, mission pasture, stream JPEG, classic / rich (mAP50) 0.896 / 0.591 0.884 / 0.887 0.963 / 0.954
Frames with a false wire_break there, classic / rich 8.2% / 0.0% 14.8% / 9.8% 0.0% / 0.0%
Held-out test farms, PNG, classic / rich (mAP50) 0.911 / 0.710 0.938 / 0.938 0.937 / 0.937
Broken wires found on the test farms (recall), classic / rich 0.61 / 0.14 0.69 / 0.68 0.65 / 0.61

On the PNG sets v0.5 equals v0.4. Its broken-wire precision is equal or higher on every set and its recall a
little lower.

In flight on the Jetson

Gazebo → LAN → TensorRT FP16 (3.65 ms per frame) → 5-of-8 confirmation → PX4 pose, inspection loop only:

World model-v0.3 model-v0.4 model-v0.5
rich (the default look) 1 of 3 faults, 0 false alerts 3 of 3 faults, 6 false alerts 3 of 3 faults, 0 false alerts
classic 3 of 3 faults, 5 false alerts 3 of 3 faults, 13 false alerts 3 of 3 faults, 0 false alerts

Re-fly (6 m, 5 s hover over each alert):

  • verified the broken wire and the fallen post in both looks;
  • did not see the branch up close: both branch alerts sat about 4 m from the branch, at the edge of the hover view;
  • in the rich look, hovering over the fallen post, raised one broken-wire alert on the loose wires there.

Known limits

  • Fewer frames see a broken wire. In the replay, the broken wire is seen in 66 frames (v0.4: 147), best
    confidence 0.87 (v0.4: 0.94). The 5-of-8 confirmation still raises the alert in both flights, with a smaller margin.
  • Branch alerts sit about 4 m off, so the re-fly misses the branch.
  • Simulation only. Not tested on real fences. The real camera's stream is MJPEG too, which is why this model is
    also the field-mode default.

Files

File What it is SHA-256
fence-yolo11n-v0.5.pt PyTorch weights (Ultralytics), to fine-tune from aada10a358b504fac95baa873ae6e037ca5f115768ea2095bb4ce2af940cb0bc
fence-yolo11n-v0.5.onnx ONNX, 1×3×416×640. Build the Jetson engine with trtexec --fp16 24be9ad3d4279d09d5153e243469d72d897b65c3898fea5e6a860dc6ff422601
classes.json Class names in output order c64ac943dbbfb1298d036f7156f1c2bf395fd5eb88052dcbb5a0267b3c7378b8

Changes since model-v0.4 ·
Retraining log ·
Model card ·
All releases and models

v0.10.0 · model-v0.4 and a model registry

Choose a tag to compare

@CosminBMemetea CosminBMemetea released this 20 Nov 19:23

Fence detector: how each model scored

A second fence detector trained on both simulation looks, and a registry that records every model and dataset: data,
code commit, scores, live flights and sha256.

Models:

  • The default is still model-v0.3: the ROS 2 detector, the classic replay demo and field mode.
  • Live Gazebo flights (ros.sh demo tcp://…) use model-v0.4.

Highlights

  • model-v0.4, fine-tuned from v0.3 on 7,200 frames: half in the rich look, half classic, with re-fly close-ups.
    It finds all three faults in the rich world, where v0.3 found one. On the classic mission it raises more false
    broken-wire alerts, at corner posts and along the dead strand, so v0.3 stays the default.
  • Model and dataset registry in ml/:
    • models.json covers every model from v0.1 to v0.4: status, data, code commit, training, offline and live
      scores, and the sha256 of every file, checked against the releases, the Mac and the Jetson;
    • datasets.json holds the generator command and commit, seeds and splits. Test splits are marked, and the
      validator refuses a model trained on one;
    • runs/model-v0.4/ keeps the arguments, scores per epoch, data mix, held-out and replay scores, the live flights
      alert by alert, and the engine build;
    • tools/model_registry.py validates the registries, writes the model table and checks local files.
  • Tools:
    • make_dataset.py --look rich and --style v3 (re-fly poses);
    • tools/mix_dataset.py for training mixes;
    • tools/eval_sets.py scores the held-out sets of both looks;
    • train_yolo.py --resume continues a paused run.
  • Jetson:
    • ros.sh demo tcp://… picks model-v0.4, and engine:= overrides it;
    • doctor checks both engines;
    • the detector overlay names the model;
    • the panel lists v0.4 for field mode.

Releases: the platform and the fence detector models

Measured

model-v0.3 model-v0.4
Held-out test, classic look (mAP50) 0.911 0.938
Held-out test, rich look (mAP50) 0.710 0.938
Live flight, rich world: faults found, false alerts 1 of 3, 0 3 of 3, 6
Live flight, classic world: faults found, false alerts 3 of 3, 5 3 of 3, 13

Install or run

On the Jetson, after copying ros2/ and building the engine (see the model-v0.4 release):

cd /ssd/querra/ros2
./ros.sh demo tcp://<mac-ip>:5601 px4:=true refly:=true   # live Gazebo: model-v0.4
./ros.sh demo                                            # classic replay: model-v0.3
./ros.sh doctor                                          # checks both engines

The registry, in the repository:

python3 tools/model_registry.py                 # validate and print the model table
python3 tools/model_registry.py --check DIR     # sha256 of local model files against the registry

Known limits

  • model-v0.4 raises 13 false broken-wire alerts on the classic mission (v0.3: 5). Offline tests did not show it; only
    the flight did.
  • The re-fly visits the 8 nearest alerts. With 18 alerts on the classic mission, two real faults were not revisited.
  • Everything is still simulation. Real frames from the field recorder come next.

Changes since v0.9.0 ·
CHANGELOG ·
All releases and models