The reason is that there is something missing in the CMakelists.text
file of the function package, and both find_package
and include_directories
are indispensable.
find_package(catkin REQUIRED COMPONENTS
roscpp
)
include_directories(include ${catkin_INCLUDE_DIRS} )