执行后
rosdep install --from-paths src --ignore-src -r -y --rosdistro melodic
WARNING: given --rosdistro melodic but ROS_DISTRO is "foxy". Ignoring environment.
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
tutorial: No definition of [xacro] for OS version [focal]
Continuing to install resolvable dependencies...
#All required rosdeps installed successfully
存在丢包问题安装的ROS与对应添加的依赖不符合版本修改命令或者安装与系统对应的ROS
我安装的是foxy
rosdep install --from-paths src --ignore-src -r -y --rosdistro foxy
所以修改命令