-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
75 lines (62 loc) · 1.56 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
cmake_minimum_required(VERSION 3.0.2)
project(followbot)
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
# message and service dependencies
set(MESSAGE_DEPENDENCIES
std_msgs
geometry_msgs
trajectory_msgs
sensor_msgs
nav_msgs
)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
message_generation
${MESSAGE_DEPENDENCIES}
)
catkin_python_setup()
################################################
## Declare ROS messages, services and actions ##
################################################
add_message_files(
DIRECTORY msg
FILES
MGSMarker.msg
MGSMeasurement.msg
MGSMeasurements.msg
PathSegment.msg
)
generate_messages(
DEPENDENCIES
geometry_msgs
${MESSAGE_DEPENDENCIES}
)
catkin_package(
CATKIN_DEPENDS
roscpp
rospy
message_runtime
${MESSAGE_DEPENDENCIES}
)
#############
## Install ##
#############
## Mark executable scripts (Python etc.) for installation
## in contrast to setup.py, you can choose the destination
catkin_install_python(PROGRAMS
src/calibration/follower_color_filter.py
src/calibration/follower_line_finder.py
src/calibration/follower_opencv.py
src/calibration/hsv_color_finder.py
src/controller/auto_restart.py
src/controller/follower_p_controller.py
src/detector/follower_detector.py
src/detector/marker_identifier.py
src/detector/segment_mapper.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
## Mark other files for installation (e.g. launch and bag files, etc.)
install(DIRECTORY config images launch meshes robots urdf world
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)