in this repository I will explain the steps of ROS set up using virtual box and ubuntu
-
to download virtual box click on the next link https://www.virtualbox.org/wiki/Downloads and set it up
-
to download ubuntu20.04 click on the next link https://releases.ubuntu.com/20.04/
1- launch vitual box and click on new button to create a new device
2- and type any name for your machine, I typed ros as the name, then click on next
3- click on your machine and then start button do not change the default settings and click on next
1- from the folder select the ubuntu file you already download it, then click on start button
2- intall ubuntu and keep clicking on next or continue
3- set your name and password
4- wait until all the set up thing end then click on restart
5- when your virtual device is turned on search for the terminal from the search bar
6- click on the terminal to type the next lines for ROS set up
1.1- Setup your computer to accept software from packages.ros.org.
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
1.2- Set up your kyes
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 -
1.3- Installation
sudo apt update
sudo apt install ros-noetic-desktop-full
sudo apt install ros-noetic-PACKAGE
1.4- enviroment set up
source /opt/ros/noetic/setup.bash
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
1.5- Dependencies for building packages
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
1.6- Initialize rosdep
sudo apt install python3-rosdep
sudo rosdep init
rosdep update