Ask Your Question

Revision history [back]

I'm guessing you have the service and the node in the same package. Thus, you need to properly define the dependencies therein:

Add the following line in the CMakeLists.txt

add_dependencies(<TARGET> ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})

Where <TARGET> is the library or executable you want to build.