error finding dependent interface package in the same workspace
Hi,
I am using ROS2 Galactic on Ubuntu 20.04.
In my workspace, I have a first package defining a set of messages; I have tried with an official package to be sure this step is working, so let's say it's the "geographic_msgs" package. I then have a second package that defines messages that use the geographic_msgs messages. Let's call this package "my_project_interfaces". This package uses the exact same package.xml and CMakeLists structure and macros as the basic geographic_msgs package. I then have a third package (my_project_nodes) that depends on my_project_interfaces. When colcon building my workspace, I have the following error when configuring my_project_nodes:
Could not find a package configuration file provided by "geographic_msgs" with any of the following names:
geographic_msgsConfig.cmake
geographic_msgs-config.cmake
I have tried several macros for exporting targets in the my_project_interfaces CMakeLists, but could not fix the problem.
Adding geographic_msgs to my_project_nodes as a dependency explicitly is not an option (this code is actually generated from models). Any hint?
Thanks.