rosdep工具一键安装依赖项

首先,不管是哪一个ros发行版,先在终端cd切换到工作空间目录

1、运行命令

rosdep update

注意: 这一步网络情况不好的时候,多半失败,可以忽略,然后先catkin_make一下,会报错缺少依赖包,再进行下一步,效果亲测差不多。

2、根据ros发行版选择合适的命令

使用命令一键安装缺少的kinetic依赖:

rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y

sdep install --from-paths src --ignore-src -r -y

使用命令一键安装缺少的melodic 依赖:

rosdep install --from-paths src --ignore-src --rosdistro=melodic -y

rosdep install --from-paths src --ignore-src -r -y

猜你喜欢

转载自blog.csdn.net/qq_21830903/article/details/110407650
今日推荐