Ubuntu16.04安装ROS的kinetic

描述

Ubuntu16.04系统安装ROS的kinetic版本
官方安装文档请看ROS官网安装指南
我下面的只是我安装的示例

命令

1. Setup your sources.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. Set up your keys

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

3. Installation

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

4.Environment setup

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

5.Dependencies for building packages

sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
sudo apt install python-rosdep
sudo rosdep init
rosdep update

验证安装

启动一个终端,输入命令

roscore

另起一个终端,输入命令

rosrun turtlesim turtlesim_node

有小乌龟出现,即为成功

你可能感兴趣的:(ROS,ubuntu)