Skip to content

Getting Started

This guide walks you through the full setup: cloning the repo, opening the Dev Container, and getting a display running so you can launch simulations.

Host terminal
git clone https://github.com/TrickfireRobotics/gazebo-simulations.git
cd gazebo-simulations

Open the folder in VS Code. You should see a prompt asking to Reopen in Container — click it. If the prompt doesn’t appear, open the Command Palette (Ctrl+Shift+P) and run Dev Containers: Reopen in Container.

The first build takes a while since it downloads the full Docker image with ROS 2 Humble, Gazebo Fortress, and all dependencies. Subsequent opens are fast.

Once inside, you’ll be the trickfire user at /home/trickfire/gazebo-simulations.

Gazebo and RViz need a display to render their GUIs. Since the container has no physical monitor, we run a virtual X11 server with VNC so you can view the desktop remotely.

Inside devcontainer
./scripts/start_x_server.sh

This starts:

  1. Xorg with a dummy display driver
  2. Openbox window manager
  3. x11vnc VNC server on port 5900
  4. noVNC web bridge on port 6080

Connect to the container desktop using your VNC viewer at:

localhost:5900

You should see a desktop. To verify the display is working, open a new terminal and run:

Inside devcontainer
xeyes

A pair of eyes should appear on the VNC desktop. Leave the X server script running in its terminal.