Follow these steps to set up WSL with Ubuntu 22.04, install ROS 2 Humble Desktop, and Gazebo 11.
Launch the Command Prompt as an administrator.
Run the following command to install WSL and Ubuntu 22.04:
wsl --install -d Ubuntu-22.04When prompted to set up a default user during the first launch of Ubuntu, cancel the setup by pressing:
Ctrl + C
Set WSL to log in as the root user by default:
wsl -d Ubuntu-22.04 --user rootClone the repository containing the setup scripts:
git clone https://github.com/Aum-Barai/WSL_ROS2_Setup.gitChange to the directory of the cloned repository:
cd WSL_ROS2_SetupInstall ROS 2 Humble Desktop by running:
./ros2-humble-desktop-main.shInstall Gazebo 11 by running:
./install_gazebo11.sh- Run all commands with appropriate permissions (
rootin this case). - Ensure a stable internet connection throughout the installation process.
- If you encounter issues during installation, refer to the respective repository's documentation or logs for troubleshooting.