Rosdep cannot find all required resources的问题[ROS2]

这个问题在rosdep check中会出现,原因是没有指定Package Path。譬如我们要检查testpkg的依赖性,直接

rosdep check testpkg

则会返回错误:

ERROR: Rosdep cannot find all required resources to answer your query
Missing resource testpkg

解决的办法是下面二选一:

1、设置ROS_PACKAGE_PATH,例如:

export ROS_PACKAGE_PATH=/opt/ros/eloquent/share:~/MyCode/src/testpkg

2、参数设定

rosdep check --from-path /home/xxxx/MyCode/src/testpkg

 

你可能感兴趣的:(Rosdep cannot find all required resources的问题[ROS2])