首页 > 其他分享 >rosdep update超时问题解决

rosdep update超时问题解决

时间:2024-03-11 15:23:00浏览次数:20  
标签:超时 update yaml rosdep https rosdistro ros com

此问题的解决也适用ros1

1、初始化

$ sudo rosdep init

2、下载rosdistro到本地

$ git clone https://github.com/ros/rosdistro.git

3、修改以下文件,将其url指向本地

(1)文件1:20-default.list

地址路径:/etc/ros/rosdep/sources.list.d/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

修改后:

# os-specific listings first
yaml file:///home/hqauto/workspace/rosdistro/rosdep/osx-homebrew.yaml osx

# generic
yaml file:///home/hqauto/workspace/rosdistro/rosdep/base.yaml
yaml file:///home/hqauto/workspace/rosdistro/rosdep/python.yaml
yaml file:///home/hqauto/workspace/rosdistro/rosdep/ruby.yaml
gbpdistro file:///home/hqauto/workspace/rosdistro/releases/fuerte.yaml fuerte

# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead

(2)文件2:/usr/lib/python2.7/dist-packages/rosdep2/main.py

地址路径:/usr/lib/python3/dist-packages/rosdep2/main.py

这里没有,不用修改。

(3)文件3:/usr/lib/python2.7/dist-packages/rosdep2/rep3.py
地址路径:/usr/lib/python3/dist-packages/rosdep2/rep3.py

原来内容:

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

修改后:

REP3_TARGETS_URL = 'file:///home/hqauto/workspace/rosdistro/releases/targets.yaml'

(4)文件4:/usr/lib/python2.7/dist-packages/rosdistro/__init__.py

地址路径:/usr/lib/python3/dist-packages/rosdistro/__init__.py

原来内容:

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

修改后:

DEFAULT_INDEX_URL = 'file:///home/hqauto/workspace/rosdistro/index-v4.yaml'

4、rosdep update解决问题

标签:超时,update,yaml,rosdep,https,rosdistro,ros,com
From: https://www.cnblogs.com/capybara-lsq/p/18066149

相关文章

  • SQLIntegrityConstraintViolationException: Cannot add or update a child row: a fo
    异常原因:两张表存在外键关联并且有级联操作,级联更新或级联删除等1.(此处为)设置的外键与另一个表中的唯一索引列(一般是主键)中的值不匹配2.添加的外键列与另一个表的唯一索引列(一般是主键)的数据类型不同......
  • VMware vSphere 7 Update 3p 下载 (安全更新)
    VMwarevSphere7Update3p下载(安全更新)vCenterServer&ESXi,Dell,HPE,Cisco,LENOVO,FUJITSU,NEC,Inspur,HitachiCustomImage请访问原文链接:https://sysin.org/blog/vmware-vsphere-7-u3/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.org服务器虚拟......
  • VMware ESXi 7.0 Update 3p 下载 - 领先的裸机 Hypervisor (安全更新)
    VMwareESXi7.0Update3p下载-领先的裸机Hypervisor(安全更新)VMwareESXi7.0Update3pStandard&AllCustomImageforESXi7.0U3InstallCD请访问原文链接:https://sysin.org/blog/vmware-esxi-7-u3/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.org......
  • AutoUpdater.NET自动更新库使用
    原文链接:https://blog.csdn.net/g313105910/article/details/112313695.NET程序当部署很多的时候,每次手动下载升级麻烦,原来自己写了个自动升级的程序,独立运行,需要主程序来更新自动升级程序,自动升级程序升级主程序,功能运行正常,最近发现有AutoUpdater.NET库很方便,在此写下使用方法,......
  • httpd使用systemctl启动超时解决过程
    现象:systemctlstarthttpd启动超时,提示信息如下:Jobforhttpd.servicefailedbecausethecontrolprocessexitedwitherrorcode.See"systemctlstatushttpd.service"and"journalctl-xe"fordetails.systemctlstatushttpd信息如下:httpd.service......
  • AT_abc287_g [ABC287G] Balance Update Query 题解
    分析一眼分块。用值域分块来维护。先把所有的值离散化,使得至于不大于$n+q$。统计一下每个值的数量,每个块包含值的数量,每个块的价值和。修改值的时候先把原来值的数量,块包含的数量,块的价值剪掉被修改值的贡献,然后在新的值上面更新。修改数量直接改数量的变化贡献即可。找前$x$......
  • AT_abc287_g [ABC287G] Balance Update Query 题解2
    分析权值线段树。给每个节点赋一个值$val$和$a_i=val$的$b_i$之和。修改$a_x$的时候先将$a_x$的出现次数在树上剪掉$b_x$,再在$y$上面加上;修改$b_x$的时候直接加上变化量$y-b_x$。由于我们是要取前$x$大的$a_i$之和,在询问的时候有限考虑右儿子,然后在是当前......
  • python-pip更改下载路径,解决超时问题
    有时pip安装包时,会提示pip._vendor.urllib3.exceptions.ReadTimeoutError:HTTPSConnectionPool(host='files.pythonhosted.org',port=443):Readtimedout.原因跟解决方式PyPI镜像:考虑使用PyPI的镜像站点。中国用户经常遇到与files.pythonhosted.org的连接问题,因此他们经常......
  • 解决SSH连接Linux超时自动断开
    问题使用SSH客户端(如WindTerm)连接Linux服务器时,当键盘和鼠标长时间不操作,服务器就自动断开连接了,需要再次登录密码重新连接。解决echo$TMOUT#判断是否是否设置了该参数,如果输出空或0表示不超时,大于0的数字n表示n秒没有收入则超时vim/etc/profile#编辑此配置文件exp......
  • python之为函数执行设置超时时间(允许函数执行的最大时间)
    1、背景    通常我们在自定义一个函数后,会调用这个函数来完成我们想要的功能。  就拿爬虫来举例,发送请求后服务器会在指定时间内响应(通常这个时间很短),但是有可能服务器没有返回任何数据。  无论是服务器已经识别爬虫不予返回数据亦或者是服务器繁忙等其他原因,......