2021-04-19 08:20:56 +02:00
2021-04-19 08:20:56 +02:00
2021-04-19 08:20:56 +02:00
2021-04-19 08:20:56 +02:00

Turtlebot 2 on Ubuntu 20.04 and WSL

Install Ubuntu 20.04 subsystem

  1. Enable the Windows Subsystem for Linux (PowerShell as Administrator)

    dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart  
    
  2. Enable Virtual Machine feature (PowerShell as Administrator)

    dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart 
    
  3. Restar PC

  4. Install Ubuntu 20.04 using Microsoft Store

  5. Open Ubuntu 20.04 and set your user and password

  6. Check WSL version(PowerShell as Administrator)

    wsl -l -v 
    
    1. If version is 2 change to 1 (PowerShell as Administrator)
    wsl --set-version Ubuntu-20.04 1 
    

Install VcXsrv Windows X Server

https://sourceforge.net/projects/vcxsrv/

Install ROS Noetic

git clone https://github.com/cafemesa/Focal_Noetic_WSL
cd ~/Focal_Noetic_WSL/
bash ./ROS_Noetic_Install.sh

Compile Turtlebot 2 packages for noetic

cd ~/Focal_Noetic_WSL/
bash ./TurtleBot2.sh

Fix Turtlebot Teleoperation execution error

Replace line 160 from « (e_errno, msg, *_) = e.args » to « (e_errno, msg) = e.args » in tcpros_base.py file. Use the next command to open the file

sudo gedit /opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_base.py 
S
Description
Guide to install Ubuntu 20.04 as subsystem, ROS Noetic, Compile Turtlebot2 Packages and XServer for visualization
Readme
28 KiB
Languages
Shell 100%