提纲
1、问题描述
2、解决方法
3、原因分析
1、问题描述
下载了ROS-Academy-for-Beginners后,开始用rosdep安装依赖,但是发现执行官方文档提供的依赖安装命令:rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y,后出现了错误,如下所示:
zzl@zzl-virtual-machine:~/prjs/rosprj/tutorial_ws$ rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
robot_sim_demo: Cannot locate rosdep definition for [gazebo_ros]
navigation_sim_demo: Cannot locate rosdep definition for [gazebo_ros]
slam_sim_demo: Cannot locate rosdep definition for [gazebo_ros]
zzl@zzl-virtual-machine:~/prjs/rosprj/tutorial_ws$
2、解决方法:
zzl@zzl-virtual-machine:~/prjs/rosprj/tutorial_ws$ rosdep install --from-paths ./src/ROS-Academy-for-Beginners --ignore-src -r
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
robot_sim_demo: Cannot locate rosdep definition for [gazebo_ros]
navigation_sim_demo: Cannot locate rosdep definition for [gazebo_ros]
slam_sim_demo: Cannot locate rosdep definition for [gazebo_ros]
Continuing to install resolvable dependencies...
#All required rosdeps installed successfully
参考资料
1、https://blog.csdn.net/qq_40078576/article/details/119962452
标签:locate,definition,demo,Cannot,rosdep,sim From: https://www.cnblogs.com/zhangzl419/p/18077820