wiki安装网站,有详细的安装介绍,或者按照以下的步骤也可以
http://wiki.ros.org/kinetic/Installation/Ubuntu
1.设置软件源
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
2.设置密钥
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
3.更新
sudo apt-get update
4.全安装
sudo apt-get install ros-kinetic-desktop-full
5.初始化
sudo rosdep init
rosdep update
6.环境设置
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc