Setup your computer to accept ROS related software
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'Then setup keys
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654To install ROS,
sudo apt updatesudo apt install ros-melodic-desktop-fullSetup environment
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrcsource ~/.bashrcDependencies
sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essentialsudo rosdep initrosdep updateTo setup catkin tools
sudo apt-get install python-catkin-toolsSetup VS code as text editor https://linuxize.com/post/how-to-install-visual-studio-code-on-ubuntu-18-04/