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.
Prerequisites
Section titled “Prerequisites”- Docker Desktop installed and running
- VS Code with the Dev Containers extension
- A VNC viewer (e.g. RealVNC, TigerVNC, or any VNC client)
1. Clone the repository
Section titled “1. Clone the repository”git clone https://github.com/TrickfireRobotics/gazebo-simulations.gitcd gazebo-simulations2. Open in the Dev Container
Section titled “2. Open in the Dev Container”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.
3. Start the display
Section titled “3. Start the display”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.
./scripts/start_x_server.shThis starts:
- Xorg with a dummy display driver
- Openbox window manager
- x11vnc VNC server on port
5900 - noVNC web bridge on port
6080
Connect to the container desktop using your VNC viewer at:
localhost:5900You should see a desktop. To verify the display is working, open a new terminal and run:
xeyesA pair of eyes should appear on the VNC desktop. Leave the X server script running in its terminal.