查看安装的Ubuntu版本,终端输入

cat /etc/issue

1、添加ROS软件源

用的是中科大的镜像,也可以用其他镜像

sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'

2、添加密钥

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

3、安装ROS

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

4、初始化rosdep

sudo rosdep init

 解决方法:修改hosts试试,并且用手机热点

cd /etc
sudo gedit hosts

另外一个方法:

手动进行完成sudo rosdep init的步骤

1、创建一个source.list.d 的文件夹

sudo mkdir -p /etc/ros/rosdep/sources.list.d

2、进入source.list.d文件夹

cd /etc/ros/rosdep/sources.list.d

3、创建并编辑20-default.list 文件

sudo gedit 20-default.list

4、将下列内容复制进20-default.list 文件中

# os-specific listings first
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx# generic
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
gbpdistro https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml fuerte# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead

再执行rosdep update

rosdep update

解决rosdep update 安装失败问题

采用代理即可:方法如下

https://ghproxy.com/

对于github下载十分友好!

第一步:

sudo gedit /usr/lib/python2.7/dist-packages/rosdep2/sources_list.py

第311行 download_rosdep_data 函数里添加,在try里面

url="https://ghproxy.com/"+url

第72行

其实就是在网站前面加代理网站 https://ghproxy.com/

DEFAULT_SOURCES_LIST_URL = 'https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list'

第二步:

sudo gedit /usr/lib/python2.7/dist-packages/rosdistro/__init__.py

第68行

DEFAULT_INDEX_URL = 'https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml'

第三步:

sudo gedit /usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py

第36行

FUERTE_GBPDISTRO_URL = 'https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/' \'master/releases/fuerte.yaml'

 第204行

gbpdistro_url = "https://ghproxy.com/" + gbpdistro_url

第四步:

sudo gedit /usr/lib/python2.7/dist-packages/rosdep2/rep3.py

第39行

REP3_TARGETS_URL = 'https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/releases/targets.yaml'

第五步:

sudo gedit /usr/lib/python2.7/dist-packages/rosdistro/manifest_provider/github.py

第68行119行

url = 'https://ghproxy.com/https://raw.githubusercontent.com/%s/%s/package.xml' % (path, release_tag)
url = 'https://ghproxy.com/https://raw.githubusercontent.com/%s/%s/%s' % \(path, cache.ref(), package_xml_path + '/package.xml' if package_xml_path else 'package.xml')

5、配置环境变量

其实就是添加路径的意思

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

6、下载和安装ROS中的功能安装包

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

 测试:启动海龟仿真器

在终端输入

roscore

rosrun turtlesim turtlesim_node

rosrun turtlesim turtle_teleop_key

【ROS学习】ROS系统安装 kinetic (超详细)相关推荐

  1. ROS系统安装 kinetic (超详细)

    查看安装的Ubuntu版本,终端输入 cat /etc/issue 1.添加ROS软件源 用的是中科大的镜像,也可以用其他镜像 sudo sh -c '. /etc/lsb-release & ...

  2. 一、css清除浮动方法学习笔记总结(超详细,简单易懂)

    ** css清除浮动方法学习笔记总结(超详细,简单易懂) ** 问题: 上图中,由于container(父级元素)未设置高度,其内部子元素设置了float浮动,导致与container同级(也就是co ...

  3. [扩展阅读] EasyGUI 学习文档【超详细中文版】

    [扩展阅读] EasyGUI 学习文档[超详细中文版] 0. 安装 EasyGUI 官网:https://github.com/robertlugg/easygui python查看内置的所有模块 h ...

  4. Hbase学习文档(超详细单机安装)

    Hbase学习文档(超详细单机安装) 一.前言 1.1简述 本文分为五个部分:linux主机名的设置.jdk的安装.hadoop的安装.单机模式下hbase的安装.hbase的shell常用命令及ja ...

  5. kali双系统安装(超详细)

    kali双系统安装步骤(超详细) 1.为kali创建一个新的磁盘分区 安装前的准备 笔记本电脑一个(本文是华硕) 首先准备一个U盘(U盘要清空) kali的iso镜像包文件 win32diskimag ...

  6. ROS学习-ROS简介

    文章目录 1.ROS 1.1 ROS概念 1.2 ROS特征 1.3 ROS特点 1.4 ROS版本 1.5 ROS程序 其他名词介绍 1. 元操作系统 2. IDL 接口定义语言 一些网站 1.RO ...

  7. 算法学习之——二分法解题超详细

    [二分法]解题步骤超详细! 什么是二分法 二分法的通用格式 寻找一个数(基本的二分搜索) 什么是二分法 二分法,也称为折半法,是一种在有序数组中查找特定元素的搜索算法. 二分法查找的思路如下: (1) ...

  8. 别瞎学了,我的MySQL学习之路(超详细超硬核)

    大家好,我是帅地. 在之前校招面试中,mysql 被问到频率是真的高,当初为了能够在 mysql 这块加分,看了不少书籍,在网上也找了不少资料,走了不少弯路,庆幸的是,每次面试官问到 mysql 相关 ...

  9. 【深度学习】基础知识 | 超详细逐步图解 Transformer

    作者 | Chilia 整理 | NewBeeNLP 1. 引言 读完先修知识中的文章之后,你会发现:RNN由于其顺序结构训练速度常常受到限制,既然Attention模型本身可以看到全局的信息, 那么 ...

最新文章

  1. android 设置自动弹框,安卓开发 弹出对话框,然后自动消失
  2. python break
  3. hdu 5587(数学规律)
  4. redis的watch命令没有ABA的问题
  5. aws 弹性三剑客_AWS和弹性:超越用户需求
  6. PHP以xml形式获取POST数据
  7. HDU1282 回文数猜想【回文】
  8. windows 下 MyEclipse 运行hadoop 出错
  9. 软件评测师教程书本对软考的作用有多大?
  10. 审计小trick结合
  11. JavaWeb网上商城项目中用户注册,使用MailServer和FoxMail搭建本地邮件服务器
  12. 八位数字后加逗号_【PTE干货】英文数字的读法
  13. 【数据库原理】函数依赖 平凡依赖 非平凡依赖 完全函数依赖 部分函数依赖 传递函数依赖
  14. springboot实现oos上传下载
  15. Ant Design 省市区联动数据
  16. 【十八掌●基本功篇】第一掌:Java之IO
  17. 亚太成为第一季度全球存储市场唯一增长地区;亚马逊云科技在中国区域推出Amazon ECS Anywhere | 全球TMT...
  18. 安卓java 模拟点击类_Android模拟用户点击的实现方法
  19. 阿里云短信服务报错:SignatureDoesNotMatch : Specified signature is not matched with our calculation.
  20. mac下source tree配置外部比较工具beyond compare

热门文章

  1. ORA-12034: materialized view log on SCOTT.T_ROWID younger than last refresh
  2. 456. 132 模式
  3. 在微信小程序中使用自定义字体【font-family】、同时在canvas
  4. 计算机房况控制功能是,从实际出发加强计算机房的管理和维护-文档资料.docx
  5. Scala学习笔记(三)
  6. 【资源网站】推荐几个搜索资源网站
  7. 技术人员都喜欢的坚果,竟然有这么好吃?
  8. 穿过已知点画平滑曲线(3次贝塞尔曲线)
  9. 京东出王炸,地下物流要来了!以后快递直接从管道送到家
  10. ps aux | grep 进程