ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Your CMakeLists.txt
shows:
project(explore_lite) [..] add_message_files( FILES util.msg )
The error output shows:
/home/erinline/Documents/testsim/src/m-explore/explore/src/explore.cpp:39:10: fatal error: msg/util.h: No such file or directory
#include <msg/util.h>
You write:
My message is called util.msg, it is in a file called msg within the package file called explore [..]
There are a few discrepancies here:
explore_lite
, not explore
m-explore
(or the package is actually called m-explore
)As to why the include fails: message header #include
lines follow the pattern: pkg_that_hosts_the_msg/MsgHeader.h
.
In your care this should probably be explore_lite/util.h
, not msg/util.h
.
Two additional comments:
util
as a name does not convey much semantics and message (file)names should start with an uppercase character2 | No.2 Revision |
Your CMakeLists.txt
shows:
project(explore_lite) [..] add_message_files( FILES util.msg )
The error output shows:
/home/erinline/Documents/testsim/src/m-explore/explore/src/explore.cpp:39:10: fatal error: msg/util.h: No such file or directory
#include <msg/util.h>
You write:
My message is called util.msg, it is in a file called msg within the package file called explore [..]
There are a few discrepancies here:
explore_lite
, not explore
m-explore
(or the package is actually called m-explore
)As to why the include fails: message header #include
lines follow the pattern: pkg_that_hosts_the_msg/MsgHeader.h
.
In your care this should probably be explore_lite/util.h
, not msg/util.h
.
Two additional comments:
util
as a name does not convey much semantics and message (file)names should start with an uppercase character