@@ -22,20 +22,24 @@ else()
22
22
endif ()
23
23
endif ()
24
24
25
- find_package (glog REQUIRED)
26
25
find_package (PCL REQUIRED COMPONENTS common io registration)
27
26
include_directories (${PCL_INCLUDE_DIRS} )
28
27
29
- ament_auto_add_executable(ndt_scan_matcher
28
+ ament_auto_add_library( ${PROJECT_NAME} SHARED
30
29
src/diagnostics_module.cpp
31
30
src/map_update_module.cpp
32
31
src/ndt_scan_matcher_core.cpp
33
- src/ndt_scan_matcher_node.cpp
34
32
src/particle.cpp
35
33
)
36
34
37
35
link_directories (${PCL_LIBRARY_DIRS} )
38
- target_link_libraries (ndt_scan_matcher ${PCL_LIBRARIES} glog::glog)
36
+ target_link_libraries (ndt_scan_matcher ${PCL_LIBRARIES} )
37
+
38
+ rclcpp_components_register_node(${PROJECT_NAME}
39
+ PLUGIN "NDTScanMatcher"
40
+ EXECUTABLE ${PROJECT_NAME} _node
41
+ EXECUTOR MultiThreadedExecutor
42
+ )
39
43
40
44
if (BUILD_TESTING)
41
45
add_launch_test(
@@ -49,15 +53,13 @@ if(BUILD_TESTING)
49
53
src/diagnostics_module.cpp
50
54
src/map_update_module.cpp
51
55
src/ndt_scan_matcher_core.cpp
52
- # src/ndt_scan_matcher_node.cpp
53
56
src/particle.cpp
54
57
)
55
58
ament_auto_add_gtest(once_initialize_at_out_of_map_then_initialize_correctly
56
59
test /test_cases/once_initialize_at_out_of_map_then_initialize_correctly.cpp
57
60
src/diagnostics_module.cpp
58
61
src/map_update_module.cpp
59
62
src/ndt_scan_matcher_core.cpp
60
- # src/ndt_scan_matcher_node.cpp
61
63
src/particle.cpp
62
64
)
63
65
endif ()
0 commit comments