Robotics StackExchange | Archived questions

CMake error when performing catkin_make after creating custom message

Hey everyone,

I've been following along with this ROS edx tutorials series on creating custom message types when I got a CMake error upon using catkin_make after creating the custom message"SensorInformation.msg" as the instructor does in the video. The error reads:

"CMake error at /home/turk/catkinws/build/firstpack.cmake/firstpack-genmsg.cmake:3 (message): Could not find messages which '/home/turk/catkinws/src/firstpack/msg/SensorInformation.msg' depends on. Did you forget to specify generatemessages(DEPENDENCIES...)?"

I'm assuming this has to do with how I've modified my CMakeLists.txt file for the package I've created. Here's a link to the CMakeLists.txt below:

https://github.com/blackout85/CMakeLists.txt-for-custom-package/commit/b8af7f7475d42c7ecbdae28866dbb267a5b8b4c1

Asked by blackoutnyc on 2020-08-07 18:18:34 UTC

Comments

can you add the custom msg content? Its not possible to say exactly but as the error says you might be depending on a non-std_msg and will have to add that msg under generate_messages().

Asked by KalanaR on 2020-08-11 02:40:06 UTC

Answers