ROS 安装教程-Ubuntu16.04 + Kinetic安装ROS说明

Table of Contents

1.设置

2. 安装源

3. 设置端口

4. 更新

5. 安装

6. 依赖项

7. 环境设置到默认路径

8.这一步可选,安装rosinstall


 Ubuntu16.04 + Kinetic安装说明

1.设置

ROS 安装教程-Ubuntu16.04 + Kinetic安装ROS说明_第1张图片

ROS 安装教程-Ubuntu16.04 + Kinetic安装ROS说明_第2张图片

2. 安装源

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'

3. 设置端口

sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

4. 更新

sudo apt-get update

5. 安装

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

ROS 安装教程-Ubuntu16.04 + Kinetic安装ROS说明_第3张图片

6. 依赖项

sudo rosdep init
rosdep update

如果遇到了错

ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.

请:

sudo vi /etc/hosts

加这句话

199.232.28.133 raw.githubusercontent.com

7. 环境设置到默认路径

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

8.这一步可选,安装rosinstall

sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential

 

 

你可能感兴趣的:(ROS)