Skip to content

About

A docker image to interface with all_seaing_vehicle ASV autonomy stack. Credit to MIT RSS for inspiring our workflow.

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Repository files navigation

arcturus_docker

About

arcturus_docker is the docker development environment for all_seaing_vehicle, the ROS 2 Autonomous Surface Vehicle (ASV) autonomy stack developed by the MIT Arcturus Autonomous Robotics Competition Team.

It provides Ubuntu 22.04 with ROS 2 Humble, Gazebo Garden, and the ROS dependencies of all_seaing_vehicle, with a desktop you open in your browser. The image is built on your own machine, so it runs natively on both Intel/AMD (x86_64) and Apple Silicon (arm64).

Setup

You need Git, Docker Desktop, and a GitHub SSH key (the submodules are cloned over SSH).

In Docker Desktop, set the memory limit to at least 8 GB (Settings > Resources).

git clone --recurse-submodules git@github.com:ArcturusNavigation/arcturus_docker.git
cd arcturus_docker
docker compose up          # the first run builds the image (20+ minutes); leave it running

In a second terminal, open a shell inside the container:

docker compose exec arcturus bash

The desktop (Gazebo, RViz, the keyboard window) is at http://localhost:6080/vnc.html?resize=remote. Right-click the desktop for a terminal.

Build the workspaces

Inside the container. The first build takes a while.

cd ~/arcturus/vrx_ws
colcon build

cd ~/arcturus/dev_ws
MAKEFLAGS=-j2 colcon build --symlink-install --executor sequential

MAKEFLAGS=-j2 and --executor sequential limit how many compilers run at once. Without them, all_seaing_perception runs out of memory with Docker's default 8 GB limit and the build fails with c++: fatal error: Killed signal terminated program cc1plus. With more memory you can raise the number.

Open a new terminal afterwards. ~/.bashrc sources ROS and both workspaces.

Run the simulation

ros2 launch all_seaing_bringup sim.launch.py no_gui:=true

no_gui:=true skips the Gazebo window. RViz shows the boat.

Simulation speed on a Mac. Docker on macOS has no GPU access, so Gazebo renders the three cameras and the LiDAR on the CPU. Measured on an Apple Silicon Mac (November 2026): the full stack starts and the world loads, but simulated time advances about 1 second per 34 real seconds, which is too slow to test a task. Building and running nodes works at normal speed. For usable simulation, run on a Linux machine with a GPU.

Two nodes exit at startup inside the container, and that is expected: sound_signal_detector.py (the container has no microphone) and harbor_manual.py (a bug in the node, unrelated to the environment).

Things to know

  • home/ in this repository is mounted as /home/arcturus in the container. Edit code on your own machine with any editor. Everything outside /home/arcturus is reset when the container is removed.
  • After pulling a change to the Dockerfile or requirements.txt, run docker compose build.
  • To add a dependency for everyone, add it to the Dockerfile (apt and ROS packages) or requirements.txt (Python packages). A package installed by hand with apt or pip inside the container is lost on docker compose down.
  • If you built the workspaces under an older image for a different architecture, delete build/, install/ and log/ in both workspaces and build again.
  • The submodules are pinned to specific commits. To get newer code, run git checkout <branch> && git pull inside the submodule directory.
  • Port 8080 is forwarded for the control panel: ros2 run all_seaing_control_panel control_panel.py --host 0.0.0.0 --no-browser, then open http://localhost:8080.

Documentation

Full documentation can be found here

About

A docker image to interface with all_seaing_vehicle ASV autonomy stack. Credit to MIT RSS for inspiring our workflow.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages