A Robot Operating System (ROS) environment tailored for running on Ubuntu 22.04 within Windows Subsystem for Linux (WSL). This setup promotes seamless integration between Windows and Ubuntu, allowing ROS to operate without the need of a traditional virtual machine (VM).
- Seamless Windows interoperability, minimizing the overhead of a traditional virtual machine.
- Cross-filesystem access between Linux and Windows.
- Supports ROS virtualization tools such as Rviz and Gazebo Fortress.
- Improved GPU acceleration, offering streamlined rendering.
└── etc
└── ubuntu
└── .dotfiles
├── setup
│ ├── aliases.sh
│ ├── ros.sh
│ ├── packages.sh
│ └── wsl.sh
└── setup.sh
setup.sh automates the dependency installation and environment set up process, including:
| File | Description |
|---|---|
aliases.sh |
Shell aliases |
packages.sh |
Packages and dependencies installation |
ros.sh |
ROS environment configuration |
wsl.sh |
WSL-specific settings, configured in /etc/wsl.conf |
-
Windows Subsystem for Linux feature enabled:
DISM.exe /Online /Enable-Feature /FeatureName:Microsoft-Windows-Subsystem-Linux /All /NoRestart
-
Update WSL to the latest version:
wsl --update
-
Clone the repository:
sudo git clone https://github.com/khangvum/ubuntu-22.04-ros-wsl.git /etc/ubuntu/.dotfiles
-
Apply the settings:
bash /etc/ubuntu/.dotfiles/setup.sh
Important
This method only applies to WSL version 2.4.4 and higher
-
Download the latest version of the distribution: ubuntu-22.04-ros-v1.0.2.wsl
-
Install the distribution by double-clicking the file
-
Launch the distribution and apply the settings:
bash /etc/ubuntu/.dotfiles/setup.sh
This project is a collaboration between: