Skip to content

v0.2.0

Choose a tag to compare

@hogib hogib released this 01 Nov 18:04
· 35 commits to main since this release

electric-eye is now two programs: eeye, the vision layer (camera → effects → the frame bus), and hellion, everything on the tether (H.264 over RTP from the ROV, QGroundControl, MP4 recording, the browser page, hellion top over SSH). No Python left. Prebuilt, fully static binaries — no libturbojpeg or other libraries needed on the target.

File For
eeye-v0.2.0-linux-arm64, hellion-v0.2.0-linux-arm64 Raspberry Pi 3/4/5 (and Zero 2 W) on a 64-bit OS
eeye-v0.2.0-linux-armv7, hellion-v0.2.0-linux-armv7 Raspberry Pi 2/3/4/5 on a 32-bit OS (needs ARMv7 + NEON; not Pi 1 / Zero)
eeye-v0.2.0-linux-amd64, hellion-v0.2.0-linux-amd64 x86-64 Linux (a topside laptop)

Which machine needs which depends on where the effects run — see Where eeye runs. In short: placement b (effects on the ROV) puts both on the ROV and hellion topside; placement a puts hellion on the ROV and both topside.

Install on the target:

chmod +x eeye-v0.2.0-linux-arm64 hellion-v0.2.0-linux-arm64
sha256sum -c SHA256SUMS --ignore-missing
sudo install -m 0755 eeye-v0.2.0-linux-arm64 /usr/local/bin/eeye
sudo install -m 0755 hellion-v0.2.0-linux-arm64 /usr/local/bin/hellion

Then the config and services from the repository: hellion/examples/ has a hellion.json for each role and placement, and eeye.service / hellion/hellion.service say how to install them by hand. sudo ./install.sh --role rov|topside --placement a|b from a checkout does all of it (building from source) and remains the recommended route.

At runtime hellion needs ffmpeg (sudo apt install ffmpeg), and the topside wants v4l2loopback for its webcam device (sudo apt install v4l2loopback-dkms); rpicam-vid for the Pi camera module. Use IP addresses in hellion.json (as the examples do): a statically linked binary cannot look up hostnames.

What's new

  • Auto visibility — one big toggle on the page, off by default. On, it continuously corrects the water's colour cast, the brightness range and haze on the pilot's picture, following the light as the ROV descends, with nothing to adjust. The page also shows the camera's own picture as a histogram with notes in words ("strong blue-green cast", "12% blown out").
  • hellion — the ROV sends its own video (never BlueOS's) as H.264/RTP; topside relays the packets unchanged to QGroundControl on UDP 5600, records them to MP4 without re-encoding (pausing across a pulled cable and continuing in -part2.mp4), decodes them for the page and a v4l2loopback webcam, and carries eeye's config across the tether. Per-link bitrate and packet loss in hellion top, a pre-dive hellion check, and each end sees what the other reports.
  • The frame bus — eeye publishes the pilot's picture and the untouched camera frame as shared-memory streams (/dev/shm/eeye.*) with capture timestamps, for hellion and for future autonomy code; the layout is documented for readers in any language.
  • Two placements — the effects on the ROV or topside, chosen at install; camera controls reach the camera in both.
  • install.sh --role --placement — systemd services for both programs under one service user, binaries in /usr/local/bin; re-running updates and remembers the choices. --tether IFACE gives a topside interface the BlueROV address.
  • camera.keep_framerate (default on) — stops a webcam's auto exposure from dropping the frame rate in dim light (30 → 17 fps on the test webcam).

Breaking

  • The Python tools (topside/, pi/, tools/) are gone; hellion replaces them.
  • eeye's own JPEG preview server is gone; hellion serves the preview. Old configs still load — stream_frame_interval, stream_quality, stream_raw are ignored, with one log line.
  • install.sh needs --role and --placement (remembered after the first run); the installed effects config is /var/lib/eeye/effects.json.

Build

Built from v0.2.0 with GCC 15.3 (Bootlin 2026.08 toolchains), glibc, statically linked: -O3, OpenMP on, libjpeg-turbo 3.2.0 with its SIMD code, and NEON enabled on armv7 (-march=armv7-a -mfpu=neon-vfpv4). Runs on Linux 3.2+ (amd64, armv7) / 3.7+ (arm64). The same toolchains, library and flags as v0.1.0.

Testing

All 17 C test suites pass on each binary as shipped (built with the same toolchain): natively for amd64, under qemu-user for armv7 and arm64, which exercises the NEON code paths. That includes hellion's RTP round trip through ffmpeg, the frame bus across processes, and auto visibility on synthetic underwater frames. The static amd64 binaries were also run as a whole placement-B chain on one machine — camera → eeye (auto visibility on) → hellion → H.264/RTP → hellion → frame bus — at 30 fps with no packet loss. These binaries have not yet been run on real Pi hardware with a camera attached.

Not yet verified

  • Nothing here has run on the Pi, its camera, or the Fathom-X tether. Placements A and B were tested end to end on x86 machines, with a USB webcam on a laptop as the ROV, across a LAN (cable pulls included).
  • install.sh has only been run in a sandbox (system directories replaced, system commands stubbed), not on a real machine.
  • Auto visibility is tuned on simulated underwater frames and a webcam, not real footage.
  • About two frames (~70 ms at 30 fps) of the glass-to-topside latency is ffmpeg holding frames; which stages hold them is not yet established.