ubuntu16.04安装ros-kinetic教程

一.添加ROS源,设置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'

二.设置Key

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

三.更新软件源

sudo apt-get update

四.安装ROS-kinetic完整版

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

五.初始化ROSdep

sudo rosdep init
rosdep update

六.配置ROS环境

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

七.安装依赖项

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

八.测试

1.打开终端

roscore

2.打开新终端(成功安装会出现小乌龟)

rosrun turtlesim turtlesim_node

3.打开新终端,用键盘控制小乌龟运动

rosrun turtlesim turtle_teleop_key

 

你可能感兴趣的:(VSLAM)