-
Notifications
You must be signed in to change notification settings - Fork 9
Getting Started
Prabodh Gyawali edited this page Oct 19, 2025
·
1 revision
There are multiple ways to get started with having ROS2 environment with code installed.
I recommend Docker or UoL Apptainer and transitioning to Dual Boot once you have done intermediate docs.
-
Install Docker Desktop
-
Install X11 server for GUI support:
-
Configure X11 server:
-
macOS: In XQuartz, go to
XQuartz>Settings>Securityand check "Allow connections from network clients" - Windows: In VcXsrv/XLaunch, ensure "Disable access control" is checked when starting XLaunch
-
macOS: In XQuartz, go to
-
Pull ROS2 Jazzy Image
docker pull osrf/ros:jazzy-desktop
-
Create container with GUI Support
# Allow Docker to connect to X11 xhost +local:docker # Create container docker run -it --name gra-dev \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e DISPLAY=$DISPLAY \ --network host \ osrf/ros:jazzy-desktop
Test GUI:
xclock(should open a clock window) -
Stop and restart container
- Stop:
docker stop gra-dev - Start:
docker start -i gra-dev(then runxhost +local:dockeragain)
- Stop:
-
Dev Containers
- Install Dev Containers extension in VS Code
- Click bottom left-corner and attach to
gra-devcontainer
UoL students: See apptainer setup
Ideal if you have NVIDIA GPU.
Refer to this.