树莓派ubuntu mate或其他ubuntu16.04安装ROS(Kinetic)

整理一下安装ros的过程

1.添加源

中科大源:

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 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

2.增加key

sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116

3.更新

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

4.安装

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

5.rosdep

sudo rosdep init
rosdep update

6.全局环境

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

7.依赖

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

试运行一下roscore done!

你可能感兴趣的:(树莓派ubuntu mate或其他ubuntu16.04安装ROS(Kinetic))