遇到?sudo rosdep init报错
?解决办法:
问题主要原因:主要是国内无法访问国外软件源,因此只要把软件源换成可以访问到的地址或国内数据源即可,下面是查找了很久发现一个热心网友提供的gitee源,修改办法如下:
1.在本地新建对应目录/etc/ros/rosdep/sources.list.d下新建或打开文件 20-default.list.
2.修改20-default.list文件或者添加如下内容
# os-specific listings first
yaml https://gitee.com/ohhuo/rosdistro/raw/master/rosdep/osx-homebrew.yaml osx
# generic
yaml https://gitee.com/ohhuo/rosdistro/raw/master/rosdep/base.yaml
yaml https://gitee.com/ohhuo/rosdistro/raw/master/rosdep/python.yaml
yaml https://gitee.com/ohhuo/rosdistro/raw/master/rosdep/ruby.yaml
gbpdistro https://gitee.com/ohhuo/rosdistro/raw/master/releases/fuerte.yaml fuerte
# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead
?3.保存文件, 然后执行
rosdep update
4.ROS成功开启的标志
?
?参考资料来源: 鱼香ROS
|