原因:
在package.xml中检查以下两个地方,中间的依赖名是ament_cmake,如果写成cmake或者没写,就会出现找不的功能包的问题。
添加以下:
<buildtool_depend>ament_cmake</buildtool_depend>
以及文件末尾
<export>
<build_type>ament_cmake</build_type>
</export>
ps://blog.youkuaiyun.com/guanjing_dream/article/details/141329958