1 下载配置文件

在用户目录下执行:git clone https://github.com/ros/rosdistro.git

2 修改映射关系

2.1 sudo vim /usr/lib/python3/dist-packages/rosdep2/rep3.py
  REP3_TARGETS_URL ='file:///home/用户名/rosdistro/releases/targets.yaml'

2.2 sudo vim /usr/lib/python3/dist-packages/rosdistro/init.py
  DEFAULT_INDEX_URL = 'file:///home/用户名/rosdistro/index-v4.yaml'

2.3 vim /home/用户名/rosdistro/rosdep/sources.list.d/20-default.list
  yaml file:///home/用户名/rosdistro/rosdep/osx-homebrew.yaml osx
  yaml file:///home/用户名/rosdistro/rosdep/base.yaml
  yaml file:///home/用户名/rosdistro/rosdep/python.yaml
  yaml file:///home/用户名/rosdistro/rosdep/ruby.yaml
  gbpdistro file:///home/用户名/rosdistro/releases/fuerte.yaml fuerte

2.4 sudo vim /usr/lib/python3/dist-packages/rosdep2/sources_list.py
  DEFAULT_SOURCES_LIST_URL = 'file:///home/用户名/rosdistro/rosdep/sources.list.d/20-default.list'

results matching ""

    No results matching ""