1、ROS软件安装
(1)添加ROS软件源
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
(2)添加密钥
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654
(3)安装ROS
sudo apt update
sudo apt-get install ros-melodic-desktop-full
(4)初始化rosdep
sudo rosdep init
rosdep update
(5)设置环境变量
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc
(6)安装rosinstall
sudo apt-get install python-ros