-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·90 lines (71 loc) · 1.57 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
cmake_minimum_required(VERSION 3.5.1)
project(dataset_collector)
set(CMAKE_CXX_STANDARD 11)
#set(PKG_DEPS
# roscpp
# roslib
# std_msgs)
find_package(catkin REQUIRED COMPONENTS ${PKG_DEPS}
std_msgs
gazebo_msgs
message_generation
std_srvs
nav_msgs
geometry_msgs
aidin_msgs
grid_map_core
grid_map_ros
grid_map_msgs
grid_map_octomap
grid_map_cv
cv_bridge
eigen_conversions
sensor_msgs)
find_package(Eigen3 REQUIRED
)
#find_package(OpenCV 3 REQUIRED)
find_package(OpenCV REQUIRED
COMPONENTS
opencv_highgui
CONFIG
)
add_message_files(
FILES
dataset.msg
)
generate_messages(
DEPENDENCIES
std_msgs
grid_map_msgs
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${Eigen_INCLUDE_DIRS}
${OCTOMAP_INCLUDE_DIR}
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES dataset_collector
CATKIN_DEPENDS roscpp rospy std_msgs message_runtime
# INCLUDE_DIRS include ${Eigen_INCLUDE_DIRS}
# LIBRARIES simple_class_node
# CATKIN_DEPENDS ${PKG_DEPS}
# grid_map_core
# grid_map_ros
# grid_map_msgs
# eigen_conversions
# DEPENDS
)
#add_library(thread_class_node
# src/thread_node_class.cpp)
add_executable(dataset_collector src/dataset_collector.cpp)
target_link_libraries(dataset_collector ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_executable(respawn_robot src/respawn_robot.cpp)
add_dependencies(respawn_robot ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(respawn_robot
${catkin_LIBRARIES}
)
catkin_install_python(PROGRAMS src/FH_ROS.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)