Why is msg header not generated
Hi,
I'm trying to build my package (Gui), which contains a msg-folder, containing rect.msg, containing four Int32 values. In my CMakeLists.txt I added
rosbuild_genmsg()
When running cmake, the folder msg_gen is generated, containing the "generated"-file (containing "yes"). In my cpp-file (which location is {Gui}/foo/bar.cpp) I could use
#include "Gui/rect.h"
and it would build just fine. I committed it to my build server, and there it failed to build, giving the error Gui/rect.h: No such file or directory. . And for some reason, since then, my local rosmake couldn't find the header any more either.
I've searched and found nothing about what is causing this. I tried several things that didn't work, including:
rosbuild_add_generated_msgs(rect.msg)
This would tell the compiler that the messages are generated during the build. I also tried including "ros/ros.h" above including the message-header.
I checked my manifest.xml but that doesn't seem to be relavant for this.
I'm sure it's a rooky mistake, I've been working with ros (and cmake) little over a month, running into several issues that would eventually become clear to me, but this one doesn't.
TIA
Jan Willem