小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
Ubuntu16.04-kinetic,rosdep install找不到功能包怎么解决
-
问题原因
kinetic版本在2021年就已经走到生命的尽头了。
当你用rosdep update的时候可以看到,kinetic版本的被跳过了。mzebra@mzebra:~$ rosdepc update 欢迎使用国内版rosdep之rosdepc 我是作者小鱼,更多ROS学习资源请关注公众号鱼香ROS 小鱼rosdepc开始为您服务--------------- reading in sources list data from /etc/ros/rosdep/sources.list.d Skip end-of-life distro "kinetic" Skip end-of-life distro "lunar"
解决方案
所以我们要在rosdep update的时候加上一个参数,包含eol的发布版本数据即可。
rosdepc update --include-eol-distros
-
@小鱼 在docker容器里运行这个系统,python2.7的环境下是不是不可以用一键安装rosdep了,一键安装是python3以上吧,我装完之后rosdepc update
Traceback (most recent call last):
File "/usr/local/bin/rosdepc", line 7, in <module>
from rosdepc.rosdepc import main
File "/usr/local/lib/python3.5/dist-packages/rosdepc/init.py", line 1, in <module>
from .rosdepc import main
File "/usr/local/lib/python3.5/dist-packages/rosdepc/rosdepc.py", line 3, in <module>
import rosdep2
File "/usr/local/lib/python3.5/dist-packages/rosdep2/init.py", line 45, in <module>
from .lookup import RosdepDefinition, RosdepView, RosdepLookup,
File "/usr/local/lib/python3.5/dist-packages/rosdep2/lookup.py", line 41, in <module>
from .rospkg_loader import RosPkgLoader
File "/usr/local/lib/python3.5/dist-packages/rosdep2/rospkg_loader.py", line 39, in <module>
import catkin_pkg.package
File "/usr/local/lib/python3.5/dist-packages/catkin_pkg/package.py", line 44, in <module>
from catkin_pkg.condition import evaluate_condition
File "/usr/local/lib/python3.5/dist-packages/catkin_pkg/condition.py", line 17, in <module>
import pyparsing as pp
File "/usr/local/lib/python3.5/dist-packages/pyparsing/init.py", line 100
major: int
^
SyntaxError: invalid syntax
有这个报错,要怎么解决呢