Table of Contents
Ubuntu16.04 + Kinetic安装说明
1.设置
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
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
文章来源: kings.blog.csdn.net,作者:人工智能博士,版权归原作者所有,如需转载,请联系作者。
原文链接:kings.blog.csdn.net/article/details/106478869