ubuntu16.04安装ROS kinetic

先贴上官方网址http://wiki.ros.org/kinetic/Installation/Ubuntu

1 Configure your Ubuntu repositories

Configure your Ubuntu repositories to allow “restricted,” “universe,” and “multiverse.” You can follow the Ubuntu guide for instructions on doing this.

2 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'
3 Set up your keys
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
4 Installation
sudo apt-get update
sudo apt-get install ros-kinetic-desktop-full
5 Initialize rosdep
sudo rosdep init
rosdep update
6 Environment setup
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc

或者选择每打开一次终端就刷新一次的话:

source /opt/ros/kinetic/setup.bash
7 Dependencies for building packages
sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential
8 测试ROS

首先启动ROS

roscore

启动roscore后,重新打开一个终端窗口,输入,出现小海龟:

rosrun turtlesim turtlesim_node

操纵小海龟,重新打开新的一个终端,输入:

rosrun turtlesim  turtle_teleop_key
9 ROS Tutorials

Now, to test your installation, please proceed to the ROS Tutorials.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值