具体参考小鱼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./github-raw/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://mirrors.tuna./github-raw/ros/rosdistro/master/rosdep/base.yaml
Hit https://mirrors.tuna./github-raw/ros/rosdistro/master/rosdep/python.yaml
Hit https://mirrors.tuna./github-raw/ros/rosdistro/master/rosdep/ruby.yaml
Query rosdistro index https://mirrors.tuna./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
全部记录如下:
zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros-main$ rosdep install -i --from-path srcERROR: your rosdep installation has not been initialized yet. Please run:rosdep updatezhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros-main$ rosdep updatereading in sources list data from /etc/ros/rosdep/sources.list.dHit file:///usr/share/python3-rosdep2/debian.yamlERROR: unable to process source [/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:<urlopen error [Errno 111] Connection refused> (/ros/rosdistro/master/rosdep/osx-homebrew.yaml)ERROR: unable to process source [/ros/rosdistro/master/rosdep/base.yaml]:<urlopen error [Errno 111] Connection refused> (/ros/rosdistro/master/rosdep/base.yaml)ERROR: unable to process source [/ros/rosdistro/master/rosdep/python.yaml]:<urlopen error [Errno 111] Connection refused> (/ros/rosdistro/master/rosdep/python.yaml)ERROR: unable to process source [/ros/rosdistro/master/rosdep/ruby.yaml]:<urlopen error [Errno 111] Connection refused> (/ros/rosdistro/master/rosdep/ruby.yaml)ERROR: unable to process source [/ros/rosdistro/master/releases/fuerte.yaml]:Failed to download target platform data for gbpdistro:<urlopen error [Errno 111] Connection refused>Query rosdistro index /ros/rosdistro/master/index-v4.yamlERROR: error loading sources list:<urlopen error <urlopen error [Errno 111] Connection refused> (/ros/rosdistro/master/index-v4.yaml)>zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros-main$ sudo pip3 install -i https://pypi.tuna./simple rosdepcLooking in indexes: https://pypi.tuna./simpleCollecting rosdepcDownloading https://pypi.tuna./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: rosdepcSuccessfully installed rosdepc-1.0.0WARNING: 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/venvzhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros-main$ rosdep updatereading in sources list data from /etc/ros/rosdep/sources.list.dHit file:///usr/share/python3-rosdep2/debian.yamlERROR: unable to process source [/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:<urlopen error [Errno 111] Connection refused> (/ros/rosdistro/master/rosdep/osx-homebrew.yaml)ERROR: unable to process source [/ros/rosdistro/master/rosdep/base.yaml]:<urlopen error [Errno 111] Connection refused> (/ros/rosdistro/master/rosdep/base.yaml)ERROR: unable to process source [/ros/rosdistro/master/rosdep/python.yaml]:<urlopen error [Errno 111] Connection refused> (/ros/rosdistro/master/rosdep/python.yaml)ERROR: unable to process source [/ros/rosdistro/master/rosdep/ruby.yaml]:<urlopen error [Errno 111] Connection refused> (/ros/rosdistro/master/rosdep/ruby.yaml)ERROR: unable to process source [/ros/rosdistro/master/releases/fuerte.yaml]:Failed to download target platform data for gbpdistro:<urlopen error [Errno 111] Connection refused>Query rosdistro index /ros/rosdistro/master/index-v4.yamlERROR: error loading sources list:<urlopen error <urlopen error [Errno 111] Connection refused> (/ros/rosdistro/master/index-v4.yaml)>zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros-main$ sudo rosdepc init欢迎使用国内版rosdep之rosdepc,我是作者小鱼!小鱼制作了11万字的ROS2教程和配套视频,关注公众号《鱼香ROS》即可领取!小鱼rosdepc正式为您服务------------------------------------------------------------------------------06-28 07:51:57-- https://mirrors.tuna./github-raw/ros/rosdistro/master/rosdep/sources.list.d/20-default.listResolving mirrors.tuna. (mirrors.tuna.)... 101.6.15.130, 2402:f000:1:400::2Connecting to mirrors.tuna. (mirrors.tuna.)|101.6.15.130|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 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-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.dHit file:///usr/share/python3-rosdep2/debian.yamlHit https://mirrors.tuna./github-raw/ros/rosdistro/master/rosdep/osx-homebrew.yamlHit https://mirrors.tuna./github-raw/ros/rosdistro/master/rosdep/base.yamlHit https://mirrors.tuna./github-raw/ros/rosdistro/master/rosdep/python.yamlHit https://mirrors.tuna./github-raw/ros/rosdistro/master/rosdep/ruby.yamlQuery rosdistro index https://mirrors.tuna./rosdistro/index-v4.yamlSkip 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)
开源地址:/fishros/install
常用教程
一键安装微信使用指南
目前支持工具
一键安装:ROS(支持ROS和ROS2,树莓派Jetson) 贡献@小鱼
一键安装:VsCode(支持amd64和arm64) 贡献@小鱼
一键安装:github桌面版(小鱼常用的github客户端) 贡献@小鱼
一键安装:nodejs开发环境(通过nodejs可以预览小鱼官网噢 贡献@小鱼
一键配置:rosdep(小鱼的rosdepc,又快又好用) 贡献@小鱼
一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择) 贡献@小鱼
一键配置:系统源(更换系统源,支持全版本Ubuntu系统) 贡献@小鱼
一键安装:Docker(支持amd64和arm64) 贡献@alyssa
一键安装:cartographer 贡献@小鱼&Catalpa
一键安装:微信客户端 贡献@小鱼
问题反馈
如果在使用过程中遇到问题,欢迎到一键安装板块反馈,小伊会第一时间将反馈推送至小鱼的个人微信。
打赏小鱼
如果余粮不多,可以给小鱼一个star
如果上述命令运行出现错误可以联系小鱼或者在github上提出issue:进行修复