指令1:rosdep update
报错:error loading sources list: The read operation timed out
解决博文:https://blog.csdn.net/weixin_44028876/article/details/120201324https://blog.csdn.net/weixin_44028876/article/details/120201324
指令2:wstool update -t src
错误:无法顺利加载文件。
解决:问题在下面的指令,该指令加载后的.rosinstall中的网址须加上/ghproxy.com,具体可参考下面转载的博文。
wstool merge -t . https://raw.githubusercontent.com/ros-planning/moveit/master/moveit.rosinstall
博文:https://blog.csdn.net/m0_70004555/article/details/129712147
指令3: rosdep install -y --from-paths src --ignore-src --rosdistro ${ROS_DISTRO}
错误:File "/usr/local/lib/python3.6/dist-packages/rosdep2/lookup.py", line 66, in
__init__
raise InvalidData('rosdep data for [%s] must be a dictionary' % (self.rosdep_key),
origin=origin)
rosdep2.core.InvalidData: rosdep data for [type] must be a dictionary
试解决:输入指令sudo gedit /usr/local/lib/python3.6/dist-packages/rosdep2/lookup.py,打开lookup.py后在第66行前加上#,再次运行出现新的错误:
File "/usr/local/lib/python3.6/dist-packages/rosdep2/lookup.py", line 80, in
reverse_merge
if os_name not in self.data:
AttributeError: 'RosdepDefinition' object has no attribute 'data'
解决:笔者还没开始学python语法错误不懂其逻辑,所方寻找哦未果,后在python2.7版本的lookup.py中看到在第第66行上有该行print("***************",rosdep_key,data)代码,加入python3.6版本后解决该问题。