ROS2 eloquent 用rosdep自动化下载依赖报错踩坑
前景提要:
本人电脑win10 虚拟机安装的是ubuntu18.04 ros2安装的是eloquent发行版,参考
古月居学习ros2
核心概念中的工作空间中运行
rosdepc install -i --from-path src --rosdistro eloquent -y
报错:
harry@ubuntu:~/dev_ws$ rosdep install -i --from-path src --rosdistro eloquent -yERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
learning_tf: Cannot locate rosdep definition for [tf_transformations]
原因分析:
因为古月居教程ros安装的是humble,而且古月居教程中git克隆的是
git clone https://gitee.com/guyuehome/ros2_21_tutorials.git
打开该文件的yml,发现有tf_transformations,但是命令行中报错,原因就是古月居的ros2_21_tutorials.git,也是针对与ros2的humble版本。
解决方法:
官方文档找到自己的版本编译