前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >rosdep update 使用小鱼fishros解决ros1/ros2问题 2022

rosdep update 使用小鱼fishros解决ros1/ros2问题 2022

作者头像
zhangrelay
发布2022-06-30 15:04:15
1.8K0
发布2022-06-30 15:04:15
举报

具体参考小鱼fishros。

当然如果想要学习一下,推荐看一下内部命令:


不用就是这个效果:

用了效果如下:


reading in sources list data from /etc/ros/rosdep/sources.list.d Hit file:///usr/share/python3-rosdep2/debian.yaml Hit https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/osx-homebrew.yaml Hit https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/base.yaml Hit https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/python.yaml Hit https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/ruby.yaml Query rosdistro index https://mirrors.tuna.tsinghua.edu.cn/rosdistro/index-v4.yaml Skip end-of-life distro "ardent" Skip end-of-life distro "bouncy" Skip end-of-life distro "crystal" Skip end-of-life distro "dashing" Skip end-of-life distro "eloquent" Add distro "foxy" Add distro "galactic" Skip end-of-life distro "groovy" Add distro "humble" Skip end-of-life distro "hydro" Skip end-of-life distro "indigo" Skip end-of-life distro "jade" Skip end-of-life distro "kinetic" Skip end-of-life distro "lunar" Add distro "melodic" Add distro "noetic" Add distro "rolling" updated cache in /home/zhangrelay/.ros/rosdep/sources.cache


全部记录如下:

代码语言:javascript
复制
zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros-main$ rosdep install -i --from-path src

ERROR: your rosdep installation has not been initialized yet.  Please run:

    rosdep update

zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros-main$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit file:///usr/share/python3-rosdep2/debian.yaml
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:
        <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml]:
        <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml]:
        <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml]:
        <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml]:
        Failed to download target platform data for gbpdistro:
        <urlopen error [Errno 111] Connection refused>
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
ERROR: error loading sources list:
        <urlopen error <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml)>
zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros-main$ sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple rosdepc
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting rosdepc
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ce/7c/a9659fc0a2184cb3fa4bddb2c6895212c924357540fd2be3fe092196c146/rosdepc-1.0.0-py3-none-any.whl (3.5 kB)
Requirement already satisfied: rosdep in /usr/lib/python3/dist-packages (from rosdepc) (0.21.0)
Installing collected packages: rosdepc
Successfully installed rosdepc-1.0.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros-main$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit file:///usr/share/python3-rosdep2/debian.yaml
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:
        <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml]:
        <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml]:
        <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml]:
        <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml]:
        Failed to download target platform data for gbpdistro:
        <urlopen error [Errno 111] Connection refused>
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
ERROR: error loading sources list:
        <urlopen error <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml)>
zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros-main$ sudo rosdepc init
欢迎使用国内版rosdep之rosdepc,我是作者小鱼!

小鱼制作了11万字的ROS2教程和配套视频,关注公众号《鱼香ROS》即可领取!

小鱼rosdepc正式为您服务
---------------------------------------------------------------------------
--2022-06-28 07:51:57--  https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Resolving mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.15.130, 2402:f000:1:400::2
Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 550 [application/octet-stream]
Saving to: ‘/etc/ros/rosdep/sources.list.d/20-default.list’

/etc/ros/rosdep/sources.list. 100%[=================================================>]     550  --.-KB/s    in 0s

2022-06-28 07:51:58 (194 MB/s) - ‘/etc/ros/rosdep/sources.list.d/20-default.list’ saved [550/550]

小鱼提示:恭喜你完成初始化,快点使用

 rosdepc update

更新吧
---------------------------------------------------------------------------
zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros-main$  rosdepc update
欢迎使用国内版rosdep之rosdepc,我是作者小鱼!

小鱼制作了11万字的ROS2教程和配套视频,关注公众号《鱼香ROS》即可领取!
zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros-main$
小鱼rosdepc正式为您服务
---------------------------------------------------------------------------
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit file:///usr/share/python3-rosdep2/debian.yaml
Hit https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/base.yaml
Hit https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/python.yaml
Hit https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/ruby.yaml
Query rosdistro index https://mirrors.tuna.tsinghua.edu.cn/rosdistro/index-v4.yaml
Skip end-of-life distro "ardent"
Skip end-of-life distro "bouncy"
Skip end-of-life distro "crystal"
Skip end-of-life distro "dashing"
Skip end-of-life distro "eloquent"
Add distro "foxy"
Add distro "galactic"
Skip end-of-life distro "groovy"
Add distro "humble"
Skip end-of-life distro "hydro"
Skip end-of-life distro "indigo"
Skip end-of-life distro "jade"
Skip end-of-life distro "kinetic"
Skip end-of-life distro "lunar"
Add distro "melodic"
Add distro "noetic"
Add distro "rolling"
updated cache in /home/zhangrelay/.ros/rosdep/sources.cache
小鱼恭喜:rosdepc已为您完成更新!!
---------------------------------------------------------------------------
zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros-main$ rosdep install -i --from-path src
#All required rosdeps installed successfully

一行代码-解决人生烦恼 推荐语:一行代码搭建机器人开发环境(ROS/ROS2/ROSDEP) 开源地址:github.com/fishros/install 常用教程 一键安装微信使用指南 目前支持工具 一键安装:ROS(支持ROS和ROS2,树莓派Jetson) 贡献@小鱼 一键安装:VsCode(支持amd64和arm64) 贡献@小鱼 一键安装:github桌面版(小鱼常用的github客户端) 贡献@小鱼 一键安装:nodejs开发环境(通过nodejs可以预览小鱼官网噢 贡献@小鱼 一键配置:rosdep(小鱼的rosdepc,又快又好用) 贡献@小鱼 一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择) 贡献@小鱼 一键配置:系统源(更换系统源,支持全版本Ubuntu系统) 贡献@小鱼 一键安装:Docker(支持amd64和arm64) 贡献@alyssa 一键安装:cartographer 贡献@小鱼&Catalpa 一键安装:微信客户端 贡献@小鱼 问题反馈 如果在使用过程中遇到问题,欢迎到一键安装板块反馈,小伊会第一时间将反馈推送至小鱼的个人微信。

如果上述命令运行出现错误可以联系小鱼或者在github上提出issue:进行修复


本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2022-06-28,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档