-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
155 lines (123 loc) · 2.61 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
cmake_minimum_required(VERSION 2.8.3)
project(upo_nav_irl)
## Add support for C++11, supported in ROS Kinetic and newer
add_definitions(-std=c++11)
#set (CMAKE_BUILD_TYPE Debug)
find_package(catkin REQUIRED COMPONENTS
angles
cmake_modules
geometry_msgs
nav_msgs
roscpp
pluginlib
actionlib
rosconsole
message_generation
nav_core
tf
std_msgs
visualization_msgs
upo_msgs
rosbag
upo_rrt_planners
move_base_msgs
)
## System dependencies are found with CMake's conventions
find_package(Boost REQUIRED
COMPONENTS
thread
)
find_package(Eigen3 REQUIRED)
find_package(PCL REQUIRED)
include_directories(
include
${catkin_INCLUDE_DIRS}
${EIGEN_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
add_definitions(${EIGEN_DEFINITIONS})
# dynamic reconfigure
#generate_dynamic_reconfigure_options(
# cfg/upo_navigation.cfg
#)
## Generate messages in the 'msg' folder
#add_message_files(
# DIRECTORY msg
# FILES
# Position2DInt.msg
# PointCost.msg
# FeaturesWeights.msg
# )
#add_service_files(
# FILES
# PointCosts.srv
#)
#generate_messages(
# DEPENDENCIES
# std_msgs
#)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS
angles
cmake_modules
geometry_msgs
nav_msgs
roscpp
pluginlib
actionlib
rosconsole
roscpp
#message_generation
message_runtime
nav_core
tf
rospy
std_msgs
visualization_msgs
upo_msgs
navigation_features
upo_rrt_planners
rosbag
#DEPENDS system_lib
)
#---learning -----------------------------------
add_executable(upo_nav_irl
src/Learning.cpp
src/Learner.cpp
src/Algorithms/RTIRL.cpp
src/Algorithms/RLT.cpp
src/ros/PlanningRos.cpp
src/ros/DataManagementRos.cpp
src/ros/RunLearningRos.cpp
)
add_dependencies(upo_nav_irl upo_msgs_gencpp)
add_dependencies(upo_nav_irl upo_rrt_planners_gencpp)
target_link_libraries(upo_nav_irl
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${Boost_LIBRARIES}
${Eigen_LIBRARIES}
upo_navigation
upo_rrt_planners_ros
)
set_target_properties(upo_nav_irl PROPERTIES OUTPUT_NAME upo_nav_irl)
add_dependencies(upo_nav_irl ${catkin_EXPORTED_TARGETS})
#---Evaluation -----------------------------------
add_executable(evaluate_paths
src/ros/EvaluatePaths.cpp
src/ros/PlanningRos.cpp
src/ros/DataManagementRos.cpp
)
add_dependencies(evaluate_paths upo_msgs_gencpp)
add_dependencies(evaluate_paths upo_rrt_planners_gencpp)
target_link_libraries(evaluate_paths
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${Boost_LIBRARIES}
${Eigen_LIBRARIES}
upo_rrt_planners_ros
upo_rrt_planners3_ros
)
set_target_properties(evaluate_paths PROPERTIES OUTPUT_NAME evaluate_paths)
add_dependencies(evaluate_paths ${catkin_EXPORTED_TARGETS})