Important
Docker images are experimental. For tested setup, see the local setup.
Choose the docker image based on your preferred ROS 2 version.
docker build -t rai:humble --build-arg ROS_DISTRO=humble -f docker/Dockerfile .
docker build -t rai:jazzy --build-arg ROS_DISTRO=jazzy -f docker/Dockerfile .
Tip
If you intend to run demos on the host machine, ensure the docker container can communicate with it. Test this by running the standard ROS 2 example with one node in docker and one on the host: link. If topics are not visible or cannot be subscribed to, try using rmw_cyclone_dds instead of the default rmw_fastrtps_cpp.
docker run --net=host --ipc=host --pid=host -it -v $(pwd):/rai rai:humble
docker run --net=host --ipc=host --pid=host -it -v $(pwd):/rai rai:jazzy
cd /rai
source setup_shell.sh
poetry run pytest