Deployment
The vehicle runs the developers’ pixi packages plus its GPU stack, in its own environment, jetson, on bare metal. Every pixi command on it names that environment (-e jetson). The stack is launched by hand.
One-time provisioning
Section titled “One-time provisioning”As the vehicle user (avbotz, created when the Jetson is flashed):
git clone --recurse-submodules https://github.com/avbotz/thalassic.git ~/thalassiccd ~/thalassicscripts/install.sh # pixi + the jetson environment (ONNX Runtime on CUDA included) + buildsudo deploy/jetson/setup.sh # OS configuration, see below; installs chrony, which needs a network onceThen reboot, so the new groups apply.
What deploy/jetson/setup.sh does
Section titled “What deploy/jetson/setup.sh does”It installs the files in deploy/jetson/files/ and the udev rules in deploy/udev/. Everything it applies survives a reboot. It is idempotent: re-run it after reflashing, or after editing anything in either directory.
| What | Installed as | Why |
|---|---|---|
Static address 192.168.5.245/24 and MTU 9000 on end0 |
/etc/netplan/60-thalassic-vehicle.yaml |
The DVL and the down camera are pointed at that address, and the GigE camera needs jumbo frames (MTU) |
NTP server for 192.168.5.0/24 |
/etc/chrony/conf.d/thalassic.conf |
The DVL and the down camera take their time from the Jetson, and systemd-timesyncd cannot serve |
| chrony, if it is missing | the chrony package |
The NTP server above. Needs a network the first time |
| Power mode MAXN, clocks left to DVFS | /etc/systemd/system/thalassic-power-mode.service |
JetPack boots power-capped, and nvpmodel -m 0 by hand does not survive a reflash. DVFS still scales the clocks with load, and throttles them when the SoC runs hot |
| Fan pinned at full speed | /etc/systemd/system/thalassic-fan.service + /usr/local/sbin/thalassic-fan-max |
In the sealed hull, the fan carries heat to the water-cooled wall. nvfancontrol waits for heat before it spins up, so it is disabled |
| Socket buffers, 10 MB | /etc/sysctl.d/60-thalassic-gige.conf |
The GigE camera bursts a frame faster than the default receive buffer holds |
udev rules from deploy/udev/ |
/etc/udev/rules.d/ |
Stable device names (udev rules) |
User added to the dialout and video groups |
/etc/group |
Non-root access to the serial devices and cameras. Under sudo this is root, not the vehicle user: see Open items |
It runs netplan apply every time, after netplan generate has validated the file in a scratch copy, so a rejected file changes nothing and the vehicle keeps its network. Changing the address drops any SSH session over end0, so run the script from the console after changing it.
The FLIR-related steps come from the spinnaker_camera_driver README for machines without the Spinnaker SDK installed. The driver builds against an SDK it downloads itself, so no SDK package is installed on the Jetson.
udev rules
Section titled “udev rules”| Rule | Device |
|---|---|
99-maritime.rules |
maritime firmware as /dev/maritime |
99-naviguider-imu.rules |
NaviGuider IMU as /dev/naviguider_imu |
99-logitech-front-camera.rules |
Logitech C922 as /dev/front_camera |
To apply a rule change without re-running setup.sh, copy the file to /etc/udev/rules.d/ and run deploy/udev/reload.sh.
GenTL producer
Section titled “GenTL producer”The GigE camera is opened through a GenTL producer shipped with the source-built driver. With --merge-install it ends up at install/lib/spinnaker-gentl/Spinnaker_GenTL.cti, and pixi.toml’s [activation.env] sets SPINNAKER_GENTL64_CTI to that path.
The GPU stack
Section titled “The GPU stack”JetPack 7.2 provides the GPU driver (CUDA 13.2) and nothing else the stack uses. ONNX Runtime’s CUDA 13 build and the CUDA 13.4 libraries it depends on (cuDNN, cuBLAS and the runtime) are the jetson environment’s dependencies in pixi.toml, about 1.7 GB to download. pixi install --frozen -e jetson is the whole GPU install, and only a pixi.lock change can change it (Decision 4).
pixi.toml declares the Jetson platform with its driver (CUDA 13) and compute capability (8.7), which pixi checks against the host when it installs, so a JetPack upgrade to a newer CUDA major version means updating that entry. If pixi install reports that the host has no __cuda, pixi cannot see the driver; declare it by hand:
CONDA_OVERRIDE_CUDA=13.2 CONDA_OVERRIDE_CUDA_ARCH=8.7 pixi install --frozen -e jetsonTo see what a model runs on, load it with the stack running. The reply names the provider and the time per inference:
ros2 service call /marlin_v3/sub_vision/load_model sub_vision_interfaces/srv/LoadModel "{task: 'gate'}"# message: loaded 'gate' (ffc_rs_26) via onnxruntime/cuda (warmup 25.0 ms/iter)The vehicle’s launch file sets device: gpu, so a GPU that cannot run a model fails this call and says why, rather than leaving the model on the CPU (Device selection).
maritime
Section titled “maritime”The thruster board runs maritime. sub_low needs firmware with protocol 3: older firmware speaks text, not binary frames. /diagnostics_agg shows the protocol the board reports under sub_low: board, which is an error for any other protocol, or when no state arrives at all, as from older firmware. Build and flash it as Setup and build says.
Running
Section titled “Running”cd ~/thalassicpixi run -e jetson up pool_test # hardware stackpixi run -e jetson up pool_test -- mission:=pool_a # with a missionpixi shell -e jetson # ros2 topic echo ... etc.Nothing drives until the kill switch has been engaged and released after the stack started; if it started released, cycle it. sub_control logs what it is waiting for, and control/armed says when it is armed (Control system).
A mission runs under sub_mission’s restart supervisor (Mission system): pulling the kill switch stops it, and releasing it starts it again from the beginning, so a botched run is rerun by carrying the vehicle back to the start. restart:=false runs it once, as the simulator does.
record:=true records the run into ~/thalassic/bags/ (Recording), which grows until it is cleared. From a laptop on the vehicle network, copy the bags with rsync, and reach the ROS graph with subnet discovery (Networking):
pixi run -e jetson up pool_test -- record:=true # on the vehiclersync -av avbotz@192.168.5.245:thalassic/bags/ bags/ # on the laptopROS_AUTOMATIC_DISCOVERY_RANGE=SUBNET pixi shell # on the laptopPool-day checklist
Section titled “Pool-day checklist”- On the bench, with the stack running and the vehicle killed:
pixi run -e jetson preflight. It listens for 5 s and fails on any sensor or controller topic below its rate, a missing kill switch state, an uncalibrated camera, anything in error or stale on/diagnostics_agg, or a missing model. Fix what it reports. - Tag what is running:
git tag pool-$(date +%F) && git push origin pool-$(date +%F). Bags recordgit describe, so each bag then names its tag. - In the water, killed: check
control/statusin Foxglove fordvl_ok(once the DVL has bottom lock),depth_okandimu_ok. - Release the kill switch, watch
armedcome up, and run.
Updating the vehicle
Section titled “Updating the vehicle”cd ~/thalassicgit pull --recurse-submodulespixi install --frozen -e jetson # only changes anything if pixi.lock changedpixi run --frozen -e jetson buildpixi run --frozen -e jetson fetch-weights # downloads only models whose manifest entry changed--frozen installs pixi.lock as it is: it never re-solves or rewrites the lockfile, even if pixi.toml has changed without it.
If the pull touched deploy/, re-run sudo deploy/jetson/setup.sh.
Updating only the missions
Section titled “Updating only the missions”From a laptop on the vehicle network, with the vehicle killed:
pixi run sync-mission # to avbotz@192.168.5.245pixi run sync-mission user@host # to another vehicleIt runs sub_mission’s tests on the laptop, and copies nothing if they fail or if the vehicle’s sub_mission C++ differs from the laptop’s, since the tests would not cover what the vehicle runs. Otherwise it copies src/sub_mission/resources/ across, deleting any tree that is gone from the laptop. An edited file needs no build, as the install space links to it; a new file gets a build of sub_mission on the vehicle. Under restart, the next kill switch release runs the new trees; a stack launched with restart:=false has to be relaunched.
Rolling back
Section titled “Rolling back”Every pool build is tagged (see the checklist), so roll back by checking out the last tag that worked:
git checkout pool-2026-10-10 && git submodule update --init --recursivepixi install --frozen -e jetson && pixi run --frozen -e jetson build && pixi run --frozen -e jetson fetch-weightsThis needs no network if the tag’s packages are still in pixi’s cache (~/.cache/rattler) and its models in weights/ (fetch-weights keeps the replaced file as .old). A clean build of the FLIR driver downloads the Spinnaker SDK, so do not pixi run clean on the vehicle away from a network.
Open items
Section titled “Open items”deploy/jetson/setup.shadds$USERto thedialoutandvideogroups, and undersudothat isroot, not the vehicle user. On a newly flashed Jetson, also runsudo usermod -aG dialout,video avbotzand reboot, or the drivers cannot open the serial ports and cameras.- ONNX Runtime’s CUDA provider has not been run on the Orin. Load each model on the bench as in The GPU stack and compare its time per inference with what the missions need; Decision 4 has the way out if it fails.
- Camera calibrations are not in the repository: neither camera config sets a
camera_info_url, so on a vehicle without~/.ros/camera_info/files every bearing is 0.sub_visionreports it on/diagnosticsandpreflightfails on it; calibrate both cameras underwater (camera_calibration) and commit the files undersub_bringup/config/devices/. - An offline bundle (a packed environment and built
install/) for updating the vehicle without the internet.