You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

220 lines
7.2 KiB

  1. # find_package(catkin REQUIRED COMPONENTS
  2. # rospy
  3. # std_msgs
  4. # nav_msgs
  5. # geometry_msgs
  6. # )
  7. # find_package(roslaunch)
  8. # foreach(dir config launch meshes urdf)
  9. # install(DIRECTORY ${dir}/
  10. # DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
  11. # endforeach(dir)
  12. ##################################################################
  13. ## initial file generated by the following command on Dec 20, 2018
  14. ## catkin_create_pkg stretch_description message_generation message_runtime rospy
  15. cmake_minimum_required(VERSION 2.8.3)
  16. project(stretch_description)
  17. ## Compile as C++11, supported in ROS Kinetic and newer
  18. # add_compile_options(-std=c++11)
  19. ## Find catkin macros and libraries
  20. ## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
  21. ## is used, also find other catkin packages
  22. find_package(catkin REQUIRED COMPONENTS
  23. message_generation
  24. message_runtime
  25. rospy
  26. )
  27. ## System dependencies are found with CMake's conventions
  28. # find_package(Boost REQUIRED COMPONENTS system)
  29. ## Uncomment this if the package has a setup.py. This macro ensures
  30. ## modules and global scripts declared therein get installed
  31. ## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
  32. #catkin_python_setup()
  33. ################################################
  34. ## Declare ROS messages, services and actions ##
  35. ################################################
  36. ## To declare and build messages, services or actions from within this
  37. ## package, follow these steps:
  38. ## * Let MSG_DEP_SET be the set of packages whose message types you use in
  39. ## your messages/services/actions (e.g. std_msgs, actionlib_msgs, ...).
  40. ## * In the file package.xml:
  41. ## * add a build_depend tag for "message_generation"
  42. ## * add a build_depend and a exec_depend tag for each package in MSG_DEP_SET
  43. ## * If MSG_DEP_SET isn't empty the following dependency has been pulled in
  44. ## but can be declared for certainty nonetheless:
  45. ## * add a exec_depend tag for "message_runtime"
  46. ## * In this file (CMakeLists.txt):
  47. ## * add "message_generation" and every package in MSG_DEP_SET to
  48. ## find_package(catkin REQUIRED COMPONENTS ...)
  49. ## * add "message_runtime" and every package in MSG_DEP_SET to
  50. ## catkin_package(CATKIN_DEPENDS ...)
  51. ## * uncomment the add_*_files sections below as needed
  52. ## and list every .msg/.srv/.action file to be processed
  53. ## * uncomment the generate_messages entry below
  54. ## * add every package in MSG_DEP_SET to generate_messages(DEPENDENCIES ...)
  55. ## Generate messages in the 'msg' folder
  56. # add_message_files(
  57. # FILES
  58. # Message1.msg
  59. # Message2.msg
  60. # )
  61. ## Generate services in the 'srv' folder
  62. # add_service_files(
  63. # FILES
  64. # Service1.srv
  65. # Service2.srv
  66. # )
  67. ## Generate actions in the 'action' folder
  68. # add_action_files(
  69. # FILES
  70. # Action1.action
  71. # Action2.action
  72. # )
  73. ## Generate added messages and services with any dependencies listed here
  74. # generate_messages(
  75. # DEPENDENCIES
  76. # std_msgs # Or other packages containing msgs
  77. # )
  78. ################################################
  79. ## Declare ROS dynamic reconfigure parameters ##
  80. ################################################
  81. ## To declare and build dynamic reconfigure parameters within this
  82. ## package, follow these steps:
  83. ## * In the file package.xml:
  84. ## * add a build_depend and a exec_depend tag for "dynamic_reconfigure"
  85. ## * In this file (CMakeLists.txt):
  86. ## * add "dynamic_reconfigure" to
  87. ## find_package(catkin REQUIRED COMPONENTS ...)
  88. ## * uncomment the "generate_dynamic_reconfigure_options" section below
  89. ## and list every .cfg file to be processed
  90. ## Generate dynamic reconfigure parameters in the 'cfg' folder
  91. # generate_dynamic_reconfigure_options(
  92. # cfg/DynReconf1.cfg
  93. # cfg/DynReconf2.cfg
  94. # )
  95. ###################################
  96. ## catkin specific configuration ##
  97. ###################################
  98. ## The catkin_package macro generates cmake config files for your package
  99. ## Declare things to be passed to dependent projects
  100. ## INCLUDE_DIRS: uncomment this if your package contains header files
  101. ## LIBRARIES: libraries you create in this project that dependent projects also need
  102. ## CATKIN_DEPENDS: catkin_packages dependent projects also need
  103. ## DEPENDS: system dependencies of this project that dependent projects also need
  104. catkin_package(
  105. # INCLUDE_DIRS include
  106. # LIBRARIES stretch_description
  107. # CATKIN_DEPENDS message_generation message_runtime rospy
  108. # DEPENDS system_lib
  109. )
  110. ###########
  111. ## Build ##
  112. ###########
  113. ## Specify additional locations of header files
  114. ## Your package locations should be listed before other locations
  115. include_directories(
  116. # include
  117. ${catkin_INCLUDE_DIRS}
  118. )
  119. ## Declare a C++ library
  120. # add_library(${PROJECT_NAME}
  121. # src/${PROJECT_NAME}/stretch_description.cpp
  122. # )
  123. ## Add cmake target dependencies of the library
  124. ## as an example, code may need to be generated before libraries
  125. ## either from message generation or dynamic reconfigure
  126. # add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
  127. ## Declare a C++ executable
  128. ## With catkin_make all packages are built within a single CMake context
  129. ## The recommended prefix ensures that target names across packages don't collide
  130. # add_executable(${PROJECT_NAME}_node src/stretch_description_node.cpp)
  131. ## Rename C++ executable without prefix
  132. ## The above recommended prefix causes long target names, the following renames the
  133. ## target back to the shorter version for ease of user use
  134. ## e.g. "rosrun someones_pkg node" instead of "rosrun someones_pkg someones_pkg_node"
  135. # set_target_properties(${PROJECT_NAME}_node PROPERTIES OUTPUT_NAME node PREFIX "")
  136. ## Add cmake target dependencies of the executable
  137. ## same as for the library above
  138. # add_dependencies(${PROJECT_NAME}_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
  139. ## Specify libraries to link a library or executable target against
  140. # target_link_libraries(${PROJECT_NAME}_node
  141. # ${catkin_LIBRARIES}
  142. # )
  143. #############
  144. ## Install ##
  145. #############
  146. # all install targets should use catkin DESTINATION variables
  147. # See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html
  148. ## Mark executable scripts (Python etc.) for installation
  149. ## in contrast to setup.py, you can choose the destination
  150. # install(PROGRAMS
  151. # scripts/my_python_script
  152. # DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  153. # )
  154. ## Mark executables and/or libraries for installation
  155. # install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}_node
  156. # ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  157. # LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  158. # RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  159. # )
  160. ## Mark cpp header files for installation
  161. # install(DIRECTORY include/${PROJECT_NAME}/
  162. # DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
  163. # FILES_MATCHING PATTERN "*.h"
  164. # PATTERN ".svn" EXCLUDE
  165. # )
  166. ## Mark other files for installation (e.g. launch and bag files, etc.)
  167. # install(FILES
  168. # # myfile1
  169. # # myfile2
  170. # DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
  171. # )
  172. #############
  173. ## Testing ##
  174. #############
  175. ## Add gtest based cpp test target and link libraries
  176. # catkin_add_gtest(${PROJECT_NAME}-test test/test_stretch_description.cpp)
  177. # if(TARGET ${PROJECT_NAME}-test)
  178. # target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
  179. # endif()
  180. ## Add folders to be run by python nosetests
  181. # catkin_add_nosetests(test)