ubuntu18.04 安装ROS(国内源)

ubuntu18.04 安装ROS(国内源)

添加国内中科大源

$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 apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

软件库更新

$sudo apt-get update && sudo apt-get upgrade

安装全功能版本的ROS

$sudo apt-get install ros-melodic-desktop-full

初始化空间

$sudo rosdep init

更新空间

$rosdep update

添加环境变量

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

你可能感兴趣的:(ROS,Linux)