设置sources.list
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-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt update
安装完全版
sudo apt install ros-melodic-desktop-full
设置环境
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc source ~/.bashrc
source /opt/ros/melodic/setup.bash
安装依赖
sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential
标签:Melodic,melodic,ROS,sudo,apt,source,ros,Ubuntu18.04 From: https://www.cnblogs.com/Hello-words/p/18133881