@@ -4,12 +4,18 @@ project(ed_sensor_integration)
44add_compile_options (-Wall -Werror=all )
55add_compile_options (-Wextra -Werror=extra)
66
7+ find_package (OpenCV REQUIRED)
8+ find_package (PCL REQUIRED COMPONENTS common kdtree)
79find_package (catkin REQUIRED COMPONENTS
10+ code_profiler
811 ed
9- ed_sensor_integration_msgs
12+ ${PROJECT_NAME} _msgs
1013 geolib2
1114 geometry_msgs
1215 image_geometry
16+ rgbd
17+ rgbd_image_buffer
18+ roscpp
1319 sensor_msgs
1420 tf2_ros
1521 tue_config
@@ -24,8 +30,8 @@ find_package(catkin REQUIRED COMPONENTS
2430catkin_package(
2531 INCLUDE_DIRS include
2632 LIBRARIES ed_kinect
27- # DEPENDS
28- CATKIN_DEPENDS ed ed_sensor_integration_msgs tue_config
33+ CATKIN_DEPENDS code_profiler ed ${PROJECT_NAME} _msgs geolib2 image_geometry rgbd rgbd_image_buffer roscpp tue_config visualization_msgs
34+ DEPENDS OpenCV PCL
2935)
3036
3137# ------------------------------------------------------------------------------------------------
@@ -43,36 +49,34 @@ include_directories(
4349# ------------------------------------------------------------------------------------------------
4450
4551add_library (ed_association
52+ include /${PROJECT_NAME} /association_matrix.h
4653 src/association_matrix.cpp
47- include /ed_sensor_integration/association_matrix.h
4854)
4955
5056add_library (ed_kinect
51- src/kinect/image_buffer.cpp
52- include /ed/kinect/image_buffer.h
53- src/kinect/fitter.cpp
54- include /ed/kinect/fitter.h
55- src/kinect/beam_model.cpp
57+ include /ed/kinect/association.h
5658 include /ed/kinect/beam_model.h
57- src/kinect/mesh_tools.cpp
59+ include /ed/kinect/entity_update.h
60+ include /ed/kinect/fitter.h
5861 include /ed/kinect/mesh_tools.h
59- src/ kinect/segmenter.cpp
62+ include /ed/ kinect/renderer.h
6063 include /ed/kinect/segmenter.h
61- src/kinect/association.cpp
62- include /ed/kinect/association.h
63- src/kinect/updater.cpp
6464 include /ed/kinect/updater.h
65- include /ed/kinect/entity_update.h
65+ src/kinect/association.cpp
66+ src/kinect/beam_model.cpp
67+ src/kinect/fitter.cpp
68+ src/kinect/mesh_tools.cpp
6669 src/kinect/renderer.cpp
67- include /ed/kinect/renderer.h
70+ src/kinect/segmenter.cpp
71+ src/kinect/updater.cpp
6872)
6973target_link_libraries (ed_kinect ed_association ${catkin_LIBRARIES} )
7074add_dependencies (ed_kinect ${catkin_EXPORTED_TARGETS} )
7175
7276add_library (ed_laser
73- src/laser/updater.cpp
74- include /ed/laser/updater.h
7577 include /ed/laser/entity_update.h
78+ include /ed/laser/updater.h
79+ src/laser/updater.cpp
7680)
7781target_link_libraries (ed_laser ed_association ${catkin_LIBRARIES} )
7882add_dependencies (ed_laser ${catkin_EXPORTED_TARGETS} )
@@ -123,10 +127,49 @@ target_link_libraries(ed_fitter_data ed_kinect)
123127add_executable (ed_fitter_live tools/fitter_viz_live.cpp)
124128target_link_libraries (ed_fitter_live ed_kinect)
125129
130+ # ------------------------------------------------------------------------------------------------
131+ # Install
132+ # ------------------------------------------------------------------------------------------------
133+
134+ install (
135+ FILES plugins.xml
136+ DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
137+ )
138+
139+ install (
140+ DIRECTORY include /
141+ DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}
142+ )
143+
144+ install (
145+ TARGETS
146+ ed_association
147+ ed_clearer_plugin
148+ ed_kinect
149+ ed_kinect_plugin
150+ ed_laser
151+ ed_laser_plugin
152+ ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
153+ LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
154+ RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
155+ )
156+
157+ install (
158+ TARGETS
159+ ed_fitter_data
160+ ed_fitter_live
161+ ed_image_saver
162+ ed_segmenter
163+ DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
164+ )
165+
126166# ------------------------------------------------------------------------------------------------
127167# TESTS
128168# ------------------------------------------------------------------------------------------------
129- if (CATKIN_ENABLE_TESTING)
169+ if (CATKIN_ENABLE_TESTING)
170+ find_package (catkin_lint_cmake REQUIRED)
171+ catkin_add_catkin_lint_test("-W2 --ignore HEADER_OUTSIDE_PACKAGE_INCLUDE_PATH" )
172+
130173 catkin_add_gtest(test_furniture_fitting test /test_furniture_fit.cpp)
131174 target_link_libraries (test_furniture_fitting ed_kinect ${catkin_LIBRARIES} )
132175
0 commit comments