This guide gets you from a fresh machine to a running simulation environment. Follow the steps in order.
Already running Ubuntu 24.04 natively on Linux? Skip Step 1 and start at Step 2. Step 1 is only for Windows users.
Skip this step entirely if you already have Ubuntu 24.04 installed natively on your machine.
On Windows, we develop inside Ubuntu using WSL2. You can install it from the Microsoft Store or via the command line.
Option A — Microsoft Store (easier): Search for Ubuntu 24.04.x LTS in the Microsoft Store and click Install.
Option B — Command line: Open PowerShell as Administrator and run:
wsl --install -d Ubuntu-24.04Restart your computer if prompted.
Once installed, launch Ubuntu from the Start menu. You will be asked to create a Linux username and password — this is separate from your Windows account.
Inside your Ubuntu terminal:
-
Install Git:
sudo apt update && sudo apt install -y git -
Fork this repository to your own GitHub account. (Not sure how? Ask ChatGPT: "how to fork a GitHub repository")
-
Clone your fork inside your home directory (
~) and switch to the task branch:cd ~ git clone <your_forked_repo_url> cd probation_ws git checkout probation/task
Install Docker using apt inside Ubuntu — do not use Docker Desktop.
- Uninstall any older Docker Engine.
- Install Docker Engine.
- Add your user to the Docker group:
sudo usermod -aG docker $USER - Log out and back in so the group change takes effect — on WSL2, run
wsl --shutdownin Windows PowerShell and reopen Ubuntu instead. Thencd ~/probation_ws.
Inside the probation_ws directory:
-
Build the development image (one-time, ~5 minutes):
docker compose build dev-core
-
Start the container and enter it:
docker compose up -d dev-core docker compose exec dev-core bash -
Inside the container, build the ROS2 workspace:
colcon build --symlink-install
What
colcon builddoes: Compiles your ROS2 packages insrc/and generates thebuild/,install/, andlog/workspace directories.The container entrypoint automatically sources ROS2 and the workspace on every new shell — no manual
sourceneeded after the first build.
You're ready. Go to Section 4 of the README to run the simulation.