ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2016-09-30 04:18:32 -0500 | received badge | ● Student (source) |
2013-05-17 10:38:13 -0500 | received badge | ● Popular Question (source) |
2013-05-17 10:38:13 -0500 | received badge | ● Notable Question (source) |
2013-05-17 10:38:13 -0500 | received badge | ● Famous Question (source) |
2011-09-01 23:25:04 -0500 | answered a question | Why is msg header not generated Eventually I solved it. It appears that the contents of my message were not valid: I used the type Int32 instead of int32. This became clear to me when I removed all references to the non-existent header, built it and looked very closely at the build output in QtCreator. Because of the wrong type used, it gave a very non-descriptive error, telling me that Gui/msg/Int32.msg was not found (the message name was Gui/msg/rect.msg). |
2011-09-01 20:27:41 -0500 | asked a question | 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 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 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: 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 |