I am trying to write ament packages to adopt pieces of code to ament_cmake. Here is something strange I got.
It is supposed that ‘ament’ performs like ‘catkin’ with which dependencies could be resolved by declaring in ‘package.xml’. However, it seems that ‘ament’ cannot do this job. In an ‘ament’ package, dependencies should be declared explicitly in CMakeLists.txt with ‘find_package’ macro. Moreover, *_INCLUDE_DIRS or _LIBRARIES variables have to be add into target_link() macros explicitly too. Is this designed on purpose?
An ‘ament’ package could be compiled by ‘ament.py’ with ‘build_pkg’ parameter. It seems that the python script actually doesn’t check whether its dependencies are built. It this what could be expected? I am just using it in a wrong way?