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