ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
What is is saying is that you cannot declare the package a catkin package, which is done with the catkin_package()
instruction, before you call generate_messages()
. In order to solve this error move your catkin_package()
snippet to the very end of the file.
Read the error:
generate_messages() must be called before catkin_package() in project beginner_tutorials
And this becomes clear. I hope this helps.
This is a duplicate of error when catkin_make install in tutorial about msg/srv
2 | No.2 Revision |
What is is saying is that you cannot declare the package a catkin package, which is done with the catkin_package()
instruction, before you call generate_messages()
. In order to solve this error move your catkin_package()
snippet to the very end of the file.
Read the error:
generate_messages() must be called before catkin_package() in project beginner_tutorials
And this becomes clear. I hope In order to prevent this helps.error in the future it is highly recommended to follow the instruction to create a catkin package and NOT reorder the components produced in the CMake file. The provided structure and comments/explanations in the auto generated CMakeLists.txt
file are your best friend, even if it is overwhelming to start.
This is a duplicate of error when catkin_make install in tutorial about msg/srv