@@ -4,27 +4,32 @@ project(imu_corrector)
4
4
find_package (autoware_cmake REQUIRED)
5
5
autoware_package()
6
6
7
- ament_auto_add_library(gyro_bias_estimation_module SHARED
8
- src/gyro_bias_estimation_module.cpp
9
- )
10
-
11
- ament_auto_add_executable(imu_corrector
7
+ ament_auto_add_library(${PROJECT_NAME} SHARED
12
8
src/imu_corrector_core.cpp
13
- src/imu_corrector_node.cpp
14
9
)
15
10
16
- ament_auto_add_executable (gyro_bias_estimator
11
+ ament_auto_add_library (gyro_bias_estimator SHARED
17
12
src/gyro_bias_estimator.cpp
18
- src/gyro_bias_estimator_node .cpp
13
+ src/gyro_bias_estimation_module .cpp
19
14
)
20
15
21
- target_link_libraries (gyro_bias_estimator gyro_bias_estimation_module)
16
+ rclcpp_components_register_node(${PROJECT_NAME}
17
+ PLUGIN "imu_corrector::ImuCorrector"
18
+ EXECUTABLE ${PROJECT_NAME} _node
19
+ EXECUTOR SingleThreadedExecutor
20
+ )
21
+
22
+ rclcpp_components_register_node(gyro_bias_estimator
23
+ PLUGIN "imu_corrector::GyroBiasEstimator"
24
+ EXECUTABLE gyro_bias_estimator_node
25
+ EXECUTOR SingleThreadedExecutor
26
+ )
22
27
23
28
function (add_testcase filepath )
24
29
get_filename_component (filename ${filepath} NAME )
25
30
string (REGEX REPLACE ".cpp" "" test_name ${filename} )
26
31
ament_add_gmock(${test_name} ${filepath} )
27
- target_link_libraries ("${test_name} " gyro_bias_estimation_module )
32
+ target_link_libraries ("${test_name} " gyro_bias_estimator )
28
33
ament_target_dependencies(${test_name} ${${PROJECT_NAME} _FOUND_BUILD_DEPENDS})
29
34
endfunction ()
30
35
0 commit comments