Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Install ROS for Windown10

1. Go to Microsoft store, search Ubuntu (Owned)

Install-> Launch -> User name, password


Go to Control panel -> Uninstall or change a program -> Turn Windows features on or off, check on
“Windows Subsystem for Linux” -> OK

Go to this link: http://wiki.ros.org/Installation/Windows


Install Visual Studio 2019
In the Start Menu, find the "x64 Native Tools Command Prompt for VS 2019" item.
Right Click, select More then "Run as Administrator"
Copy the following command line
• @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -
InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object
System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET
"PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Once it has completed, close the command prompt to complete the install
Reopen the Visual Studio Command Window as described above. (x64 cmd)
• choco upgrade git -y
Check the version
• git --version
Close and reopen the Visual Studio Command Window as described above
Using 4 commands:
• mkdir c:\opt\chocolatey
• set ChocolateyInstall=c:\opt\chocolatey
• choco source add -n=ros-win -s="https://aka.ms/ros/public" --priority=1
• choco upgrade ros-noetic-desktop_full -y --execution-timeout=0

Create a ROS Command Window shortcut


Create an Administrative command line shortcut for Visual Studio:
Right click in a Windows Explorer folder, select New > Shortcut
• C:\Windows\System32\cmd.exe /k "C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64&& set
ChocolateyInstall=c:\opt\chocolatey&& c:\opt\ros\noetic\x64\setup.bat
Name the shortcut "ROS"
Set that shortcut as Administrator
Right Click on the shortcut and choose "Properties".
Select the Shortcut Tab if not already selected.
Press the Advanced button
Check the button "Run as Administrator".
Press OK on the Advanced properties dialog.
Press OK on the "ROS Properties" shortcut dialog.

Open the ROS Command Prompt created above and approve the administrative elevation if not
already opened.
Run the following command:
• set ChocolateyInstall=c:\opt\chocolatey
• choco upgrade all -y --execution-timeout=0
Ubuntu install of ROS Noetic
Using the link http://wiki.ros.org/noetic/Installation/Ubuntu
Using bash command: (Mở icon ROS đã tạo gõ lệnh bash để mở giao diện linux rồi sử dụng các lệnh bên
dưới/ Hoặc có thể vào app ubuntu để sử dụng các lệnh bên dưới)
• sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" >
/etc/apt/sources.list.d/ros-latest.list'
• sudo apt install curl # if you haven't already installed curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add –
• sudo apt update
• sudo apt install ros-noetic-desktop-full
• sudo apt install ros-noetic-ros-base (or sudo apt upgrade ros-noetic-ros-base)
• source /opt/ros/noetic/setup.bash
• echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
• source ~/.bashrc
Download VcXsrv link: https://sourceforge.net/projects/vcxsrv/
Installed VcXsrv
Using bash command:
• echo "export DISPLAY=:0" >> ~/.bashrc
• source ~/.bashrc
Change python location
• whereis python3
• sudo ln -s /usr/bin/python3 /usr/bin/python
fixed the error
error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or
directory
using bash command
• sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

To install/remove a package:
• sudo apt-get install/remove ros-noetic-urdf-tutorial

To publish a topic:
• rostopic echo /joint_states

To edit barzh file:


gedit ~/.bashrc

You might also like