Set up your computer
What you need
Section titled “What you need”- A computer running Linux. Step 1 lists the options.
- 20 GB of free disk space: about 8 GB for the build, plus the downloaded packages.
- 8 GB of RAM or more. Building uses a lot of memory, so 16 GB is better.
- OpenGL 4.3 graphics for the simulator’s window. Almost any laptop from the last ten years has it, even with only integrated graphics. Without it, the simulator runs with no window.
- A good internet connection: the first install downloads several GB.
Step 1: Get Linux
Section titled “Step 1: Get Linux”Thalassic runs only on Linux; we use Ubuntu 24.04 LTS. Your options, best first:
| Option | Good | Bad |
|---|---|---|
| Ubuntu on its own computer, such as an old laptop | Nothing to lose, and full speed | Needs a spare computer |
| Dual boot with Ubuntu beside Windows | Full speed. You pick which one to use at startup | Repartitions your disk, so back up first |
| WSL 2 on Windows | Easy to install, nothing to repartition | Untested on the team |
| A virtual machine on Windows or Mac | Easy to delete and start over | Slow, and probably no OpenGL 4.3, so run the simulator without a window |
Ubuntu’s install guide also covers dual booting. For WSL, follow Microsoft’s guide. For a virtual machine, try VirtualBox, or UTM on a Mac.
Step 2: Install git and curl
Section titled “Step 2: Install git and curl”Open a terminal (on Ubuntu, press Ctrl-Alt-T) and run:
sudo apt updatesudo apt install git curlsudo runs a command as the administrator, so it asks for your password. Nothing appears as you type it; press Enter when done.
Step 3: Get the code and build it
Section titled “Step 3: Get the code and build it”mkdir -p ~/avbotzcd ~/avbotzgit clone --recurse-submodules https://github.com/avbotz/thalassic.gitcd thalassicscripts/install.shWhat these do:
mkdir -p ~/avbotzmakes a folder calledavbotzin your home folder, andcdmoves into it.git clonedownloads the code, and--recurse-submodulesthe other repositories Thalassic includes.scripts/install.shdoes the rest. It is safe to rerun if interrupted.
install.sh prints a line as it starts each step:
| It prints | What is happening |
|---|---|
Installing pixi |
Installs pixi, the tool that manages everything else |
Fetching submodules |
Makes sure the submodules are there |
Creating the pixi environment |
Downloads ROS 2, the compilers and libraries, several GB in all |
Installing the git hooks |
Sets up the automatic checks that run when you commit |
Building the workspace |
Compiles all the code |
Downloading the model weights |
Downloads the trained neural networks |
The build prints many warnings, which are fine. A successful build ends like this:
Summary: 18 packages finished [5min 14s] 15 packages had stderr output: flir_camera_description flir_camera_msgs ...Downloading the model weightsdownloading bins_blood.onnx (missing)downloading bins_fire.onnx (missing)...downloading torp_find.onnx (missing)“Had stderr output” means those packages printed warnings. If it stopped with Failed <<< or Aborted, see Troubleshooting.
Step 4: Check that it worked
Section titled “Step 4: Check that it worked”Close your terminal and open a new one, so it picks up pixi. Then:
cd ~/avbotz/thalassicpixi task listIt lists every pixi task:
Task Descriptionbuild Build the workspaceclean Remove build, install, and log directoriesfetch-weights Download the models in weights/manifest.toml into weights/ (--check only reports)format Format files (--check just lints)lint Lint filespreflight Check a running stack before it goes in the water (--sim for the simulator)reset Stop all ROS2 processes and clear stale Fast DDS shared memorysync-mission Test the mission behavior trees and copy them to the vehicletest Run testsup Launch the $arg_launch.pyIf it says pixi: command not found, run this, then close the terminal and open a new one:
echo 'export PATH="$HOME/.pixi/bin:$PATH"' >> ~/.bashrcSteps 5 and 6 can wait: Run the simulator needs them only for its Foxglove section.
Step 5: Set up an editor
Section titled “Step 5: Set up an editor”Any editor works. If you don’t have a favorite, use VS Code, and open the code with:
cd ~/avbotz/thalassiccode .Install these from its Extensions panel:
| Extension | For |
|---|---|
| Python (from Microsoft) | Python code |
| clangd (from LLVM) | C++ code: jump to definitions, see errors as you type |
| Pixi (from prefix.dev) | Using the pixi environment |
Two settings make those work. Press Ctrl-Shift-P and run Python: Select Interpreter, then choose .pixi/envs/default/bin/python. Then open your settings (Ctrl-comma), search for clangd.arguments, and add this:
--query-driver=**/.pixi/envs/*/bin/*Editors explains why.
Step 6: Install Foxglove
Section titled “Step 6: Install Foxglove”Foxglove shows the robot’s cameras, graphs its signals, and lets you drive it by hand.
-
Download Foxglove, choosing the Linux
.debfile. -
Install it. The file’s name includes a version number:
Terminal window cd ~/Downloadssudo apt install ./foxglove-*.deb -
Open it and sign in; a free account is enough.
Then install our own panels. They are built with Node.js, which mise installs:
curl https://mise.run | shClose the terminal, open a new one, then:
cd ~/avbotzgit clone https://github.com/avbotz/foxglove-extensions.gitcd foxglove-extensionsmise trustmise installmise x -- npx --yes pnpm installmise x -- npx --yes pnpm run local-installIf you get mise: command not found, use ~/.local/bin/mise instead of mise. Restart Foxglove when that finishes.
Run the simulator shows how to use it.
Updating later
Section titled “Updating later”To pull in other people’s changes:
cd ~/avbotz/thalassicgit pull --recurse-submodulespixi install --frozenpixi run buildpixi run fetch-weights