How to get ROS source code
Configurate rosdep by yuxiangROS script.
1... 3]:一键配置:rosdep(小鱼的rosdepc,又快又好用)
2... rosdepc init
Traceback (most recent call last):
File "/usr/bin/rosinstall_generator", line 11, in <module>
load_entry_point('rosinstall-generator==0.1.18', 'console_scripts', 'rosinstall_generator')()
File "/usr/lib/python3/dist-packages/rosinstall_generator/cli.py", line 152, in main
rosinstall_data = generate_rosinstall(args.rosdistro, args.package_names,
File "/usr/lib/python3/dist-packages/rosinstall_generator/generator.py", line 263, in generate_rosinstall
wet_package_names, unreleased_repo_names = _get_packages_for_repos(distro_name, repo_names, source=upstream_source_version)
File "/usr/lib/python3/dist-packages/rosinstall_generator/generator.py", line 93, in _get_packages_for_repos
wet_distro = get_wet_distro(distro_name)
File "/usr/lib/python3/dist-packages/rosinstall_generator/generator.py", line 220, in get_wet_distro
_wet_distro = _get_wet_distro(distro_name)
File "/usr/lib/python3/dist-packages/rosinstall_generator/distro.py", line 45, in get_distro
index = get_index(get_index_url())
File "/usr/lib/python3/dist-packages/rosdistro/__init__.py", line 104, in get_index
yaml_str = load_url(url)
File "/usr/lib/python3/dist-packages/rosdistro/loader.py", line 59, in load_url
raise URLError(str(e) + ' (%s)' % url)
urllib.error.URLError: <urlopen error <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml)>
@@@@
thb@thb-VirtualBox:~/.ros/rosdep/meta.cache$ grep ghproxy !$
grep ghproxy /usr/lib/python3/dist-packages/rosdistro/__init__.py
DEFAULT_INDEX_URL = 'https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml'
thb@thb-VirtualBox:~/ros_catkin_ws$ vcs import --input noetic-desktop.rosinstall ./src
Command 'vcs' not found, but there are 15 similar ones.
@@@@sudo pip install -U vcstool
Download speed be too slow
@@replace url with GitHub Proxy 代理加速 in the file noetic-desktop.rosinstall