Linking between two workspaces
Hey there!
To keep everything neat and clean I decided to have a devws with my packages and a toolsws containing all other packages (for example visionopencv and perceptionpcl).
Now I´m not sure why but whenever I try to include header files from packages in toolsws in my own packages in devws colcon is unable to find those headers.
So if I try to add #include
/home/test_ws/src/test_pkg/include/CameraAdapter.h:8:10: fatal error: pcl_conversions/pcl_conversions.h: No such file or directory
#include <pcl_conversions/pcl_conversions.h>
I usually just add < depend>pclconversions< /depend> in my package.xml and findpackage(pcl_conversions REQUIRED) in my CMakeList.txt
The tools_ws is sourced and ros2 is able to find launchfiles etc in there. I´m quite sure the answer is really simple but I didn´t manage to find anything in the Ros2 Documentation or via googling.
Do you have any idea what I´m missing here?
PS: Using these packages in python works fine (only tested it with cv_bridge though)
PPS: I know how to link between workspaces in Ros1 but because Ros2 doesn´t use catkin I´m unable to use certain lines in my CMakeList and i don´t know the proper substitutes
Asked by TheBee on 2020-08-07 05:56:04 UTC
Answers
Hallo,
I have the same error. Have you already found out something about it?
Asked by Schloern93 on 2020-12-24 06:30:23 UTC
Comments