该笔记将重要操作的步骤进行列表,以便查询:
<build_depend>message_generation</build_depend> <exec_depend>message_runtime</exec_depend>
## Find catkin macros and libraries ## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz) ## is used, also find other catkin packages find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs message_generation )
catkin_package( # INCLUDE_DIRS include # LIBRARIES begginner_tutorials # CATKIN_DEPENDS roscpp rospy std_msgs # DEPENDS system_lib CATKIN_DEPENDS message_runtime )
add_message_files( FILES Num.msg )
generate_messages( DEPENDENCIES std_msgs )
原文:https://www.cnblogs.com/spyplus/p/11544061.html