[ROS] mounted ubuntu18.04 + ros-melodic

Install Ubuntu

Download image

https://ubuntu.com/download/desktop

Installation image

It can be installed virtual machine or dual system

Replacement source

Software update

Install chrome

https://www.google.cn/intl/zh-CN/chrome/

Installation ROS

USTC use of mirrors here, the official mirror is very slow. rosdep initialization fails another network or over time and try again. Ros install a software update before all the contents to be checked.

sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'

sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

sudo apt update

sudo apt install ros-melodic-desktop-full

sudo rosdep init
rosdep update

echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc

sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential

 

Guess you like

Origin www.cnblogs.com/joeyzhao/p/12042127.html