Problems building a node which depends on another node.
Hopefully someone can help, I've been trying to get this to work for quite a while now.
I have a custom node which provides services and messages called dp_ptu47 (it's a pan tilt unit). I'm trying to get access to the services of the dp_ptu47 node from another client node, which will be running on a different machine.
I get the following error when I catkin_make my client node:
-- +++ processing catkin package: 'sme_awareness'
-- ==> add_subdirectory(sme_awareness)
-- Using these message generators: gencpp;genlisp;genpy
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
Could not find a package configuration file provided by "dp_ptu47_msgs"
with any of the following names:
dp_ptu47_msgsConfig.cmake
dp_ptu47_msgs-config.cmake
Add the installation prefix of "dp_ptu47_msgs" to CMAKE_PREFIX_PATH or set
"dp_ptu47_msgs_DIR" to a directory containing one of the above files. If
"dp_ptu47_msgs" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
sme_awareness/CMakeLists.txt:7 (find_package)
I've checked that the 'dp_ptu47_msgs' package exists and it's there and ros seems happy, I've also looked for the file that the error message says it can't find 'dp_ptu47_msgsConfig.cmake' and this exists in the 'install/share/dp_ptu47_msgs/cmake' path of the node. The error message doesn't say where it it's looking for the file so I'm not sure if this is in the right place or not.
I've tried all sorts of things to find out what's going on, and I'm out of ideas. Does anyone have any ideas what could be causing this.
Thanks
Can you put up your
package.xml
andCMakeLists.txt
for the package that depends ondp_ptu47
?And seeing your other question: please add some info on the order in which you build & source your workspaces, their (relative) locations, etc.
Thanks, guys. I've managed to get to the bottom of this now. I needed to run the devel/setup.bash script for the dp_ptu47_msgs package. Now it builds fine.