catkin messages and node in same package
Hi,
While working on some ROS node we bumped into the following problem:
We got a package containing a library, messages and services, the library is using these messages and services
The header files of the services and messages are generated succesfully, however when building the library, the error occurs that the header files of the messages and services are not found.
Is this due to the fact that services and messages should not be in a same packages as library or node?
the error looks like
header.h:34:27: fatal error: ns/header.h: No such file or directory compilation terminated.
Thank in advance
@KruseT, thanks for your answer, i inspected the cmake and i dont think its a typo
Please provide the exact error message, failing code snippets and cmake files.
I noticed that the messages and services are generated after the library builds, for that reason it cant be found. However i call generate_messages before add_executable