-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
98 lines (83 loc) · 2.17 KB
/
CMakeLists.txt
File metadata and controls
98 lines (83 loc) · 2.17 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
cmake_minimum_required(VERSION 3.0.2)
project(first_project)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
message_generation
std_msgs
nav_msgs
message_filters
geometry_msgs
tf2
tf2_ros
dynamic_reconfigure
std_srvs
)
## Generate messages in the 'msg' folder
add_message_files(
FILES
MotorSpeed.msg
CustomOdometry.msg
)
## Generate services in the 'srv' folder
add_service_files(
FILES
ResetOdometryToPose.srv
)
## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
std_msgs
nav_msgs
std_srvs
)
## Generate dynamic reconfigure parameters in the 'cfg' folder
generate_dynamic_reconfigure_options(
cfg/methods.cfg
)
###################################
## catkin specific configuration ##
###################################
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES first_project
# CATKIN_DEPENDS other_catkin_pkg
CATKIN_DEPENDS
roscpp
rospy
std_msgs
nav_msgs
message_runtime
message_filters
geometry_msgs
std_srvs
# DEPENDS system_lib
)
###########
## Build ##
###########
include_directories(
include
${catkin_INCLUDE_DIRS}
)
#############
## Testing ##
#############
add_executable(scout_velocity src/scout_velocity.cpp)
add_dependencies(scout_velocity first_project_generate_messages_cpp)
target_link_libraries(scout_velocity ${catkin_LIBRARIES})
add_executable(parameters_estimation src/parameters_estimation.cpp)
add_dependencies(parameters_estimation first_project_generate_messages_cpp)
target_link_libraries(parameters_estimation ${catkin_LIBRARIES})
add_executable(odometry src/odometry.cpp)
add_dependencies(odometry first_project_generate_messages_cpp)
add_dependencies(odometry ${PROJECT_NAME}_gencfg)
target_link_libraries(odometry ${catkin_LIBRARIES})
add_executable(pub_tf2 src/pub_tf2.cpp)
target_link_libraries(pub_tf2 ${catkin_LIBRARIES})
add_executable(pub_scout_tf2 src/pub_scout_tf2.cpp)
target_link_libraries(pub_scout_tf2 ${catkin_LIBRARIES})
add_executable(baseline_estimation src/baseline_estimation.cpp)
add_dependencies(baseline_estimation first_project_generate_messages_cpp)
target_link_libraries(baseline_estimation ${catkin_LIBRARIES})