collab/igvc2018

git clone https://git.julia.blue/collab/igvc2018

Ricky ChenFix vision code and broadcast transformc369a39

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