ubuntu 18.04 安装 ROS
1.设置软件源
国外的:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
国内的:
sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'
清华的:
sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'
设置秘钥:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654
2.安装命令:
sudo apt-get update
sudo apt-get install -y ros-melodic-desktop-full
sudo apt-get install -y ros-melodic-rqt*
3.配置命令:
sudo apt-get install -y python-pip
sudo pip install rosdepc
sudo rosdepc init
rosdepc update