Age.msg is in topic_subscriber_pkg package under topic_subscriber_pkg/msg/Age.msg
I have tried #include <topic_subscriber_pkg/Age.h> #include <topic_subscriber_pkg/msg/Age.h> #include <msg/Age.h>
It just can’t seem to find it. Do I need the msg file to be in a seperate pkg to the cpp I am trying to include it in?
Thank you for your response. Still having issues I am afraid. I have done the #include correctly. I have the source and have catkin_make also. If I use rosmsg info Age, I am getting the response showing the msg information. However the #include is still flagging that it cannot find the Age.h file! I have shown this below. help|448x500
I seem to meet the same problem, the file can be successfully compiled and publish the data. I use the command source ~/catkin_ws/devel/setup.bash after catkin_make. While I have the error saying age.h not found. Have you found the reason to cause this issue?
If not, then your message is not properly compiled yet. Please go over the process to get it compiled again.
If you are able to show the message, is this preventing you from running the program? If not please ignore that warning for now (sorry for the trouble). We’ll look again into why the IDE is not recognizing the message.