-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
167 lines (128 loc) · 5.97 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
cmake_minimum_required(VERSION 2.8.3)
project(perception3d)
find_package(catkin REQUIRED COMPONENTS
pcl_conversions
pcl_ros
roscpp
rospy
sensor_msgs
std_msgs
pcl_msgs
image_transport
moveit_ros_planning_interface
tf
tf_conversions
)
#set(PCL_DIR "/usr/share/pcl-1.7/PCLConfig.cmake")
#set(Boost_NO_SYSTEM_PATHS TRUE)
#set(DBoost_NO_BOOST_CMAKE TRUE)
#set(Boost_DIR /home/jp/boost154)
#set(BOOST_ROOT /home/jp/boost154)
#set(Boost_ADDITIONAL_VERSIONS "1.54" "1.54.0")
find_package( PCL REQUIRED )
#find_package( PCL 1.7 REQUIRED )
include_directories( ${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
include
#gtest-1.7.0/include
)
#add_subdirectory(gtest-1.7.0)
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
#add_library(codeToTest test/testApi.cpp
# test/testObjectBd.cpp)
add_library(lperception src/perception/perception.cpp
src/perception/objectExtractor.cpp
src/perception/jaco_custom.cpp
src/perception/communication.cpp
src/perception/fileAPI.cpp
src/perception/object_recognition.cpp
src/perception/objectBd.cpp)
target_link_libraries(lperception ${catkin_LIBRARIES} ${PCL_LIBRARIES})
catkin_package(
INCLUDE_DIRS include
#gtest-1.7.0/include
#${PCL_INCLUDE_DIRS}
# LIBRARIES ${PCL_LIBRARY_DIRS}
# CATKIN_DEPENDS other_catkin_pkg
# DEPENDS system_lib
)
#add_executable(segmentation src/segmentation.cpp)
#target_link_libraries(segmentation ${catkin_LIBRARIES} ${PCL_LIBRARIES})
add_executable(snapshot src/snapshot.cpp)
target_link_libraries(snapshot ${catkin_LIBRARIES} ${PCL_LIBRARIES})
add_dependencies(snapshot perception3d_gencpp)
#add_executable(objects_extraction src/objects_extraction.cpp)
#target_link_libraries(objects_extraction ${catkin_LIBRARIES} ${PCL_LIBRARIES})
#add_dependencies(objects_extraction perception3d_gencpp)
#add_executable(connected_segmentation src/connected_segmentation.cpp)
#target_link_libraries(connected_segmentation ${catkin_LIBRARIES} ${PCL_LIBRARIES})
#add_dependencies(connected_segmentation perception3d_gencpp)
#add_executable(find_cloud src/find_cloud.cpp)
#target_link_libraries(find_cloud ${catkin_LIBRARIES} ${PCL_LIBRARIES})
#add_dependencies(find_cloud perception3d_gencpp)
#add_executable(tracking src/tracking.cpp)
#target_link_libraries(tracking ${catkin_LIBRARIES} ${PCL_LIBRARIES})
#add_dependencies(tracking perception3d_gencpp)
add_executable(image_transport_node src/image_transport_node.cpp)
target_link_libraries(image_transport_node ${catkin_LIBRARIES} ${PCL_LIBRARIES})
add_dependencies(image_transport_node perception3d_gencpp)
add_executable(perception
src/perception/perception.cpp
src/perception/objectExtractor.cpp
src/perception/jaco_custom.cpp
src/perception/communication.cpp
src/perception/fileAPI.cpp
src/perception/object_recognition.cpp
src/perception/objectBd.cpp
)
target_link_libraries(perception ${catkin_LIBRARIES} ${PCL_LIBRARIES})
add_dependencies(perception perception3d_gencpp)
#add_executable(unit-test test/testApi.cpp
# test/testObjectBd.cpp)
#target_link_libraries(unit-test gtest gtest_main rt pthread boost_system lperception)
add_executable(segmentation
src/segmentation/mainProgram.cpp
src/segmentation/planSegmentor.cpp
)
target_link_libraries(segmentation ${catkin_LIBRARIES} ${PCL_LIBRARIES})
add_dependencies(segmentation perception3d_gencpp)
#add_executable(grasp src/jacoTests/grasp.cpp)
#target_link_libraries(grasp ${catkin_LIBRARIES} ${PCL_LIBRARIES})
#add_dependencies(grasp perception3d_gencpp)
#add_executable(jaco_joint_states src/jacoTests/jaco_joint_states.cpp)
#target_link_libraries(jaco_joint_states ${catkin_LIBRARIES} ${PCL_LIBRARIES})
#add_dependencies(jaco_joint_states perception3d_gencpp)
add_executable(jaco_calibration src/jacoTests/calibration.cpp)
target_link_libraries(jaco_calibration ${catkin_LIBRARIES} ${PCL_LIBRARIES})
add_dependencies(jaco_calibration perception3d_gencpp)
add_executable(testMoveit src/moveitTest/testMoveit.cpp)
target_link_libraries(testMoveit ${catkin_LIBRARIES} ${PCL_LIBRARIES} lperception)
add_dependencies(testMoveit perception3d_gencpp)
add_executable(terminalListener src/moveitTest/terminalListener.cpp)
target_link_libraries(terminalListener ${catkin_LIBRARIES} ${PCL_LIBRARIES})
#add_executable(arm_action_server src/moveitPlugin/arm_action_server.cpp)
#target_link_libraries(arm_action_server ${catkin_LIBRARIES} ${PCL_LIBRARIES})
add_executable( moveit_jaco_listener src/moveitPlugin/moveit_jaco_listener.cpp)
target_link_libraries(moveit_jaco_listener ${catkin_LIBRARIES} ${PCL_LIBRARIES} lperception)
add_executable( pointcloud_object_remover src/moveitPlugin/pointcloud_object_remover.cpp)
target_link_libraries(pointcloud_object_remover ${catkin_LIBRARIES} ${PCL_LIBRARIES} lperception)
#add_executable( data_publisher_joint_test src/data_publisher_joint_test.cpp)
#target_link_libraries(data_publisher_joint_test ${catkin_LIBRARIES} ${PCL_LIBRARIES} lperception)
#add_executable(redoPose src/moveitTest/redoPose.cpp)
#target_link_libraries(redoPose ${catkin_LIBRARIES} ${PCL_LIBRARIES} lperception )
add_executable(icp_test src/tests/icp_test.cpp)
target_link_libraries(icp_test ${catkin_LIBRARIES} ${PCL_LIBRARIES} lperception)
add_dependencies(icp_test perception3d_gencpp)
add_executable(view_surfaces src/tests/view_surfaces.cpp)
target_link_libraries(view_surfaces ${catkin_LIBRARIES} ${PCL_LIBRARIES} lperception)
add_dependencies(view_surfaces perception3d_gencpp)
add_executable(upsampling src/tests/upsampling.cpp)
target_link_libraries(upsampling ${catkin_LIBRARIES} ${PCL_LIBRARIES} lperception)
add_dependencies(upsampling perception3d_gencpp)
add_executable(multipleKinects src/tests/multipleKinects.cpp)
target_link_libraries(multipleKinects ${catkin_LIBRARIES} ${PCL_LIBRARIES})
add_dependencies(multipleKinects perception3d_gencpp)
add_executable(moveJaco src/tests/moveJaco.cpp)
target_link_libraries(moveJaco ${catkin_LIBRARIES} ${PCL_LIBRARIES} lperception)
add_dependencies(moveJaco perception3d_gencpp)