Advertisement

Ubuntu18.04 ROS Melodic安装与卸载

阅读量:

1.设置软件源

国外源:

复制代码
    sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

国内源(USTC, China):

复制代码
    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'

2.设置密匙

复制代码
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654

3.安装ROS

复制代码
 sudo apt-get update

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

4.初始化rosdep

复制代码
 sudo rosdep init

    
 rosdep update

5.安装rosinstall

复制代码
    sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential

6.添加环境配置

复制代码
 echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc

    
 source ~/.bashrc

7.测试安装

复制代码
    roscore

未出错即可。

卸载:

复制代码
    sudo apt-get remove ros-*

全部评论 (0)

还没有任何评论哟~