@@ -2,21 +2,37 @@ cmake_minimum_required(VERSION 2.8.3)
2
2
project (segmentation_projection)
3
3
4
4
## Compile as C++11, supported in ROS Kinetic and newer
5
- # add_compile_options(-std=c++11)
5
+ add_compile_options (-std=c++11)
6
6
7
7
## Find catkin macros and libraries
8
8
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
9
9
## is used, also find other catkin packages
10
10
find_package (catkin REQUIRED COMPONENTS
11
11
message_filters
12
12
rospy
13
+ #octomap
13
14
sensor_msgs
15
+ geometry_msgs
16
+ nav_msgs
17
+ tf2_ros
18
+ cassie_msgs
14
19
cv_bridge
20
+ pcl_ros
21
+ tf_conversions
22
+ eigen_conversions
15
23
)
16
24
17
25
## System dependencies are found with CMake's conventions
18
26
# find_package(Boost REQUIRED COMPONENTS system)
27
+ find_package (PCL REQUIRED)
28
+ link_directories (${PCL_LIBRARY_DIRS} )
29
+ add_definitions (${PCL_DEFINITIONS} )
19
30
31
+ find_package (Eigen3 REQUIRED)
32
+
33
+ #find_package(octomap REQUIRED)
34
+ #include_directories(${OCTOMAP_INCLUDE_DIRS})
35
+ #target_link_libraries(${OCTOMAP_LIBRARIES})
20
36
21
37
## Uncomment this if the package has a setup.py. This macro ensures
22
38
## modules and global scripts declared therein get installed
@@ -104,7 +120,7 @@ catkin_python_setup()
104
120
## CATKIN_DEPENDS: catkin_packages dependent projects also need
105
121
## DEPENDS: system dependencies of this project that dependent projects also need
106
122
catkin_package(
107
- # INCLUDE_DIRS include
123
+ INCLUDE_DIRS include
108
124
# LIBRARIES segmentation_projection
109
125
# CATKIN_DEPENDS message_filter rospy sensor_msgs
110
126
# DEPENDS system_lib
@@ -117,10 +133,14 @@ catkin_package(
117
133
## Specify additional locations of header files
118
134
## Your package locations should be listed before other locations
119
135
include_directories (
120
- # include
121
- ${catkin_INCLUDE_DIRS}
136
+ include
137
+ ${catkin_INCLUDE_DIRS}
138
+ ${PCL_INCLUDE_DIRS}
139
+ ${EIGEN3_INCLUDE_DIRS}
122
140
)
123
141
142
+
143
+
124
144
## Declare a C++ library
125
145
# add_library(${PROJECT_NAME}
126
146
# src/${PROJECT_NAME}/segmentation_projection.cpp
@@ -134,7 +154,7 @@ include_directories(
134
154
## Declare a C++ executable
135
155
## With catkin_make all packages are built within a single CMake context
136
156
## The recommended prefix ensures that target names across packages don't collide
137
- # add_executable(${PROJECT_NAME}_node src/segmentation_projection_node .cpp)
157
+ add_executable (labeled_pc_map_node src/labeled_pc_map_node .cpp)
138
158
139
159
## Rename C++ executable without prefix
140
160
## The above recommended prefix causes long target names, the following renames the
@@ -147,9 +167,11 @@ include_directories(
147
167
# add_dependencies(${PROJECT_NAME}_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
148
168
149
169
## Specify libraries to link a library or executable target against
150
- # target_link_libraries(${PROJECT_NAME}_node
151
- # ${catkin_LIBRARIES}
152
- # )
170
+ target_link_libraries (labeled_pc_map_node
171
+ ${catkin_LIBRARIES}
172
+ ${PCL_COMMON_LIBRARIES}
173
+ ${PCL_IO_LIBRARIES}
174
+ )
153
175
154
176
#############
155
177
## Install ##
@@ -161,7 +183,7 @@ include_directories(
161
183
## Mark executable scripts (Python etc.) for installation
162
184
## in contrast to setup.py, you can choose the destination
163
185
install (PROGRAMS
164
- scripts/segmentation_projection_node scripts/projection.py
186
+ scripts/segmentation_projection_node scripts/projection.py scripts/gt_pose2bag.py
165
187
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
166
188
)
167
189
0 commit comments