I got the following error during catkin_make:
Generating .msg files for action actions_quiz/CustomActionMsg /home/user/catkin_ws/src/actions_quiz/action/CustomActionMsg.action
CMake Error at /home/user/catkin_ws/build/actions_quiz/cmake/actions_quiz-genmsg.cmake:3 (message):
Could not find messages which
‘/home/user/catkin_ws/devel/share/actions_quiz/msg/CustomActionMsgAction.msg’
depends on. Did you forget to specify generate_messages(DEPENDENCIES …)?
Cannot locate message [Header] in package [std_msgs] with paths
[[’/home/user/catkin_ws/devel/share/std_msgs/cmake/…/msg’]]
Call Stack (most recent call first):
/opt/ros/noetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include)
actions_quiz/CMakeLists.txt:71 (generate_messages)
However I should already included all necessary dependencies. Not sure what went wrong?
The pasted code here seems to have some display issue, some code is somehow outside of screen display range. However it still includes the points I think…
This error shows that the message Header is not found. Try double checking your dependencies and remove your build and devel folders before compiling again, and then source your worskpace:
Anyone knows why it is necessary to do so? It’s very counter-intuitive. If there is a problem with a package, the initial catkin_make should have signaled an error not silently exit successfully.
I did as instructions suggested, catkin_make exited without error but rosmsg list | grep Custom was empty. Had to remove build/ and devel/ and rebuild for it to come up in rosmsg list
Well, the developers of catkin_make didn’t think that was super necessary.
You can get around that by creating a bash alias for catkin_make that does that.