This guide gets the ground station building, passing its tests and showing the arm in RViz. The ground station runs on Ubuntu 24.04 with ROS 2 Jazzy. The easiest way to get that on any computer is Docker: ROS and every dependency live inside the container, so you don't install ROS yourself.
Most people only need the Docker setup. Use a native setup only for RViz on macOS, or to run ROS outside a container.
| You want to | Windows 11 | Linux | macOS (Apple Silicon) |
|---|---|---|---|
| Build and run the tests | Docker | Docker | Docker |
| See the arm in RViz | WSLg | GUI script | RoboStack |
| Edit the code | VS Code Dev Container | VS Code Dev Container | VS Code Dev Container |
| Run ROS outside Docker | Ubuntu in WSL | Ubuntu 24.04 | RoboStack |
Run commands one at a time, and stop at the first error. Never share passwords or access tokens in chat or issues.
- Docker setup
- macOS: native ROS with RoboStack
- Ubuntu 24.04 or WSL: native ROS 2
- Next steps
- Troubleshooting
- For maintainers: images and CI
Windows 11
-
If WSL isn't installed yet, open PowerShell as Administrator and run the command below, then restart Windows when asked. Docker Desktop needs WSL 2.1.5 or later;
wsl --versionshows yours.wsl --install --no-distribution
-
Install Docker Desktop for Windows with the WSL 2 backend and Linux containers, then start Docker Desktop.
-
Close and reopen PowerShell and VS Code, so they find the
dockercommand.
macOS
Install Docker Desktop for Mac for your chip, then start it. Apple Silicon uses ARM64 containers; don't force x86-64 emulation.
Linux
Install Docker Engine and the Compose plugin for your distribution, and follow its steps for running Docker as your user. Never make the Docker socket world-writable.
Check Docker in any terminal:
docker version
docker compose versionBoth must succeed, and docker version must show a Server section. If it
doesn't, Docker isn't running yet.
Install Git, then:
git clone https://github.com/Waybionic/waybionic_ground_station.git
cd waybionic_ground_stationRun every command below from this folder, the repository root.
docker compose --progress plain build testThis builds every package inside the container and runs all of the tests. A failing test fails the build. The first build downloads ROS, so its time depends mostly on your network (about 5 minutes on a fast connection). Later builds reuse the download and take a few minutes.
Expected result: near the end, Summary: ... 0 errors, 0 failures and the
build finishes without an error. The 11 CAN tests that need a Linux vcan
interface are skipped here; CI runs them separately. A cache error near the start
is harmless; see Messages you can ignore.
The image holds a copy of the source, so build again after you change files.
With Docker Desktop running, open Windows PowerShell (not a terminal inside a container), go to the repository root, and run:
docker compose run --rm --build wslgRViz and the Joint State Publisher window open. Move the joint_1 to joint_5
sliders to move the arm, and use the diagnostics panel's mock controls to try
normal and fault states. Everything is simulated. Press Ctrl+C in PowerShell to
stop.
To sweep each joint in turn instead, add the launch command:
docker compose run --rm --build wslg ros2 launch waybionic_bringup ground_station.launch.py demo_mode:=trueIf RViz doesn't open or stays black, see Troubleshooting.
You need a desktop session with X11, or Wayland with XWayland, and xauth
(sudo apt install xauth on Ubuntu, sudo dnf install xorg-x11-xauth on
Fedora). Docker Desktop and remote Docker engines aren't supported here, because
the script uses your local display. From the repository root, as your normal user:
./scripts/linux-gui.sh --buildRViz and the Joint State Publisher window open. The script builds the workspace
from your checkout each time it starts, so after the first run you can leave out
--build. Use --build again only after changing package dependencies. Press
Ctrl+C to stop.
| Command | Does |
|---|---|
./scripts/linux-gui.sh |
Build the workspace and open RViz |
./scripts/linux-gui.sh --build |
Rebuild the image first |
./scripts/linux-gui.sh -d |
Run in the background |
./scripts/linux-gui.sh --stop |
Stop the background container |
./scripts/linux-gui.sh --controller |
Start teleop with the USB controllers plugged in now |
Restart the script after editing C++ code or launch files.
Docker can't open RViz on macOS. Use the RoboStack setup for RViz.
This runs the ground station with simulated diagnostics and no windows:
docker compose up --build demoIn a second terminal, read one diagnostics message:
docker compose exec demo /entrypoint.sh ros2 topic echo /diagnostics --onceExpected result: a timestamped message with temperature, current and IMU demo values. Press Ctrl+C in the first terminal, then remove the container:
docker compose down- Install the Dev Containers extension.
- Open the repository folder in VS Code, with Docker running.
- Run Dev Containers: Reopen in Container from the Command Palette. The first start builds the workspace.
Terminals open in /waybionic_ws with ROS sourced. Your edits stay in your checkout
on the host. After editing, build and test inside the container:
cd /waybionic_ws
colcon build --symlink-install
source install/setup.bash
colcon test --return-code-on-test-failure --event-handlers console_direct+
colcon test-result --verboseAfter changing a package's dependencies, run Dev Containers: Rebuild Container. A new package needs no Dockerfile change. Before opening a PR, run the build in step 3.
Without VS Code, open the same environment with
docker compose run --rm development bash and use the commands above. Build
outputs there are deleted when you exit.
On Apple Silicon, the workspace runs natively through RoboStack, with RViz. Docker and XQuartz aren't needed. Intel Macs are untested.
Install Homebrew if you don't have it, then:
xcode-select --install
brew install git
brew install --cask miniforge
conda init "$(basename "$SHELL")"If Xcode reports that its tools are already installed, continue. Close Terminal, open a new window, and check Miniforge:
mamba --versionmkdir -p ~/waybionic
cd ~/waybionic
git clone https://github.com/Waybionic/waybionic_ground_station.git
cd waybionic_ground_station./scripts/macos.sh setupWait for Setup complete.
From the repository root:
./scripts/macos.sh launchKeep this Terminal open. Within a few seconds, RViz opens with the WayBionic
Engineering Monitor showing Current State: NORMAL, and the Joint State
Publisher shows the joint_1 to joint_5 sliders. Press Control+C to stop.
To check the ROS nodes, run this in a second Terminal from the repository root, while the first one is running:
RMW_IMPLEMENTATION=rmw_cyclonedds_cpp ./scripts/macos.sh run ros2 node listThe list must include /joint_state_publisher, /robot_state_publisher and
/rviz2.
Always use scripts/macos.sh: it selects the macOS SDK and Cyclone DDS and loads
the workspace. Don't source install/setup.bash from zsh, or run colcon or
ros2 launch directly. Extra arguments to launch go to the launch file, for
example ./scripts/macos.sh launch demo_mode:=true.
After pulling changes:
git pull
./scripts/macos.sh setupTo rebuild without updating the environment, run ./scripts/macos.sh build.
Run these from the repository root, then launch again.
mamba is not found. Close and reopen Terminal. If it still fails, reinstall
Miniforge with brew reinstall --cask miniforge and reopen Terminal.
Setup can't solve the environment, or reports colcon: not found,
xacro: not found or a missing Joint State Publisher. Check that
waybionic_robostack is listed by mamba env list. If it is, repair it:
mamba install --yes --name waybionic_robostack --freeze-installed \
--channel conda-forge --channel robostack-jazzy \
colcon-common-extensions ros-jazzy-xacro \
ros-jazzy-joint-state-publisher-gui
./scripts/macos.sh buildIf it isn't listed, run ./scripts/macos.sh setup again.
CMake reports a missing header under
/System/Library/Frameworks/OpenGL.framework/Headers. Run git pull, then
./scripts/macos.sh build.
RViz stays on Initializing. Stop it, clear any Fast DDS override with
unset RMW_IMPLEMENTATION, and launch again.
The diagnostics panel reports _PyExc_RuntimeError. Rebuild the panel with a
clean CMake cache:
./scripts/macos.sh run colcon build \
--packages-select waybionic_rviz_plugins \
--cmake-clean-cache --symlink-install \
--cmake-args "-DCMAKE_OSX_SYSROOT=${CONDA_BUILD_SYSROOT:-$(xcrun --show-sdk-path)}"Use this to run ROS and RViz outside a container, for example for the real arm on Linux. It isn't needed for Docker development. On Windows, start at step 1; on Ubuntu 24.04, start at step 2.
Open PowerShell as Administrator and run:
wsl --install -d Ubuntu-24.04Use exactly Ubuntu-24.04: ROS 2 Jazzy needs Ubuntu 24.04, not the newest Ubuntu.
Restart Windows when asked, then open Ubuntu 24.04 from the Start menu and
create your Linux user. In a normal PowerShell window, check:
wsl --list --verboseThe Ubuntu-24.04 row must show VERSION 2. Run every remaining command in
the Ubuntu terminal, not in PowerShell.
cat /etc/os-release
localeYou need VERSION_ID="24.04" and a UTF-8 locale. If the locale isn't UTF-8, run:
sudo apt update
sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8sudo apt update
sudo apt install software-properties-common curl python3
sudo add-apt-repository universe
ROS_APT_SOURCE_VERSION=$(curl -fsSL https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | python3 -c 'import json, sys; print(json.load(sys.stdin)["tag_name"])')
curl -fL -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.noble_all.deb"
sudo dpkg -i /tmp/ros2-apt-source.debsudo apt update
sudo apt upgrade
sudo apt install ros-jazzy-desktop git build-essential python3-colcon-common-extensions python3-rosdep
sudo rosdep init
rosdep updateros-jazzy-desktop includes RViz. Run sudo rosdep init only once per Ubuntu
installation; if it says the configuration already exists, just run
rosdep update, without sudo.
Keep the workspace in your Linux home folder, not under /mnt/c:
mkdir -p ~/waybionic_ws/src
cd ~/waybionic_ws/src
git clone https://github.com/Waybionic/waybionic_ground_station.gitIf ~/waybionic_ws/src/waybionic_ground_station already exists, skip the clone.
cd ~/waybionic_ws
source /opt/ros/jazzy/setup.bash
rosdep install --from-paths src --ignore-src -r -y
colcon build --symlink-install
source install/setup.bash
colcon test --return-code-on-test-failure
colcon test-result --verboseExpected result: colcon test-result reports 0 errors, 0 failures.
Then open the arm in RViz:
ros2 launch waybionic_bringup ground_station.launch.pyRViz and the Joint State Publisher window open; move the sliders to move the arm. Press Ctrl+C to stop.
In every new Ubuntu terminal, source both environments before running ROS commands:
source /opt/ros/jazzy/setup.bash
source ~/waybionic_ws/install/setup.bash- Drive the arm with a controller, show the doctor-view camera, or connect the real arm: see the operator guide.
- Change what the ground station starts: the
launch options list every argument of
ground_station.launch.py. - Read the diagnostics panel: see waybionic_rviz_plugins.
- Contribute: read CONTRIBUTING.md before your first pull request.
Close and reopen PowerShell after installing Docker Desktop. If it still isn't found, run Docker by its full path, for example:
& "$env:LOCALAPPDATA\Programs\DockerDesktop\resources\bin\docker.exe" compose versionA build that reports docker-credential-desktop not found has the same cause.
ERROR importing cache manifest from ghcr.io/waybionic/...orfailed to configure registry cache importer ... 401 Unauthorizednear the start of a build. Docker couldn't read the shared image cache, so it builds everything on your computer instead.XDG_RUNTIME_DIR not setandStereo is NOT SUPPORTEDwhen RViz starts.- After Ctrl+C, the joint window exiting with code
-2, and Docker suggesting you debug a Compose error.
-
Run the command in Windows PowerShell. The prompt must start with
PS, notdocker-desktop:~#, and not a prompt inside a container. -
To render on the CPU instead of the GPU, run this, then the
wslgcommand again:$env:WAYBIONIC_GL_DRIVER = 'llvmpipe'
-
If Docker reports that the WSLg display socket is missing, restart Docker Desktop and WSL (
wsl --shutdown) rather than creating the folder yourself.
Run it from a terminal in your logged-in desktop session, without sudo, and
check that DISPLAY and XAUTHORITY point to that session. A Wayland session
needs XWayland. The script renders on the CPU, which can be slow for complex
scenes. Only one GUI container can run per checkout; stop it with --stop before
starting another.
CI runs the same test build on x86-64
and ARM64 Linux for every pull request. A passing build doesn't check RViz
windows, cameras, USB devices, GPU rendering or networking with the arm.
After a push to main passes on both architectures, CI publishes a multi-platform
image tagged with the commit's short hash, and also as
ghcr.io/waybionic/waybionic_ground_station:jazzy if the commit is still the
newest on main. Pull requests build with read-only tokens and don't publish.
Local builds reuse that image's layers when they can read it. While the GHCR
package is private, builds print the cache error listed under
Messages you can ignore, and running main
without building needs docker login ghcr.io. To run main's image instead of
building:
docker compose pull demo
docker compose up demoThe Ubuntu and ROS base image is pinned by digest, but apt packages are resolved when that layer is rebuilt, so builds on different days aren't frozen. To reproduce a problem, keep the image and record its digest:
docker buildx imagetools inspect ghcr.io/waybionic/waybionic_ground_station:jazzyThe containers are headless except for the GUI services. Don't add privileged containers or broad display permissions to make a build work; the WSLg service mounts only WSL's GPU device.