ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Error compiling package with custom messages

asked 2013-02-16 20:10:16 -0600

Poofjunior gravatar image

Hello, everyone,

I'm having some difficulty compiling a package that I've created with custom message.

When I run cmake . at the head of that package's directory, I get the error

 Assertion failed: file
 does not exist.  Message: message file not found

inside of the msg directory in my package, I have a file titled data_logger_measurement.msg but indeed, the file in question, which is the .h file, does not exist in that msg directory.

Isn't this message auto-generated?

Oddly enough, I have been able to run this package before, and I'm slightly convinced that it may be an issue with how my workspace is setup.

Many thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-02-16 21:12:41 -0600

KruseT gravatar image

The header files for messages are autogenerated.


If you use catkin, also see: See

For more help, explain more about your workspace setup,and post your CMakeLists.txt

edit flag offensive delete link more


Aha! It was my fault after all! In my CMakeLists.txt for that package under the add_message_files section, I mislabeled my extension with a *.h extension instead of a *.msg extension. Thanks for the hand, though!

Poofjunior gravatar image Poofjunior  ( 2013-02-17 20:01:02 -0600 )edit

Question Tools


Asked: 2013-02-16 20:10:16 -0600

Seen: 2,536 times

Last updated: Feb 16 '13