- Get docker desktop
- Run this in powershell:
docker run -it osrf/ros:jazzy-desktop bash
- Then run this to test:
source /opt/ros/dashing/setup.bash ros2 run demo_nodes_cpp talker
, press crntl + c to exit out of example
- Download and open Docker Desktop (only for AMD/ARM 64 OR Mac)
- Navigate to the PowerShell in the docker GUI (Terminal), you should be in PS
C:\Users\"yourUserName">
- Paste
docker run -it osrf/ros:jazzy-desktop bash
(to instantly download an image, and run it indefinitely in a new container)
- This downloads the OSRF ROS2 Docker jazzy image), builds a container with this image, and runs it.
- The
it
keeps the image running, where i = STDIN is kept open, t = allocate interface for terminal
- Test with
source /opt/ros/dashing/setup.bash ros2 run demo_nodes_cpp talker
(crntl c to exit)
- Run the source command user root
- Should never need to change the source command if you not have changed anything with the image. If you're having problems finding the source, enter
source/"pathTo_setup.bash"
- go to
See here for the official guide on setting up Clion dev containers