In VSCode install extension Dev Containers and Remote Development. Then open this repo in VSCode and do F1 -> Rebuild and Reopen Container
.
Make sure you have Docker installed (see resources).
cd .devcontainer/
./manualrun.sh
You should automatically create and connect to a Docker container with ROS2.
If a container already exists OR another terminal needs to be opened in same container, run:
docker exec -it ros2workshop /bin/bash
Workshop 1
Workshop 2
Workshop 3
Docker install https://docs.docker.com/engine/install/
ROS2 on Docker https://docs.ros.org/en/humble/How-To-Guides/Run-2-nodes-in-single-or-separate-docker-containers.html
Solution: run xhost +local:docker
on host before running container (tested on Ubuntu18.04). Full conversation about this here.