A Series of Scripts utilizing the Docker Image and XLaunch (X11 Server) to Setup and Install ROS (Windows Only) (Should Probably work with Linux easily enough as most scripts are bash, just need X11 Server on Linux)
- Docker / Docker Desktop
- Docker Account
- XLaunch (winget provided)
- WSL (Ubuntu)
-
Firstly Run
start-xming.bat, this will ensure XLaunch is installed and then run the application (Click next on any prompts till close); -
Ensure that Ubuntu is set as the Default WSL Distro, you can check installed Distro's using
wsl --listand set default usingwsl --setdefault -
Ensure that Docker Desktop is running!
-
Run
ros-container-setup.bat, this will setup the docker container -
Run
start-new-shell.bat, this will create a bash shell within the ros container, start this up for as many nodes etc you require. -
Test that the X11 Configuration is working by performing the following command
ros2 run turtlesim turtlesim_node
-
You may need to run
start-xming.bateverytime you restart your PC, this is because XLaunch doesn't start automatically on boot. (You can set this to boot on launch) -
Ensure the Docker Desktop / Docker Engine is started before attempting to run the
.batfiles, not starting Docker Desktop will lead to arbritrary error messages.