-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
executable file
·76 lines (69 loc) · 2.21 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
cmake_minimum_required(VERSION 3.8)
project(norlab_imu_tools)
set(CMAKE_BUILD_TYPE "Release")
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rclpy REQUIRED)
find_package(std_msgs REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(nav_msgs REQUIRED)
find_package(tf2_ros REQUIRED)
find_package(tf2 REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)
include_directories(
${norlab_imu_tools_INCLUDE_DIRS}
)
install(DIRECTORY launch
DESTINATION share/${PROJECT_NAME})
add_executable(imu_bias_observer src/imu_bias_observer.cpp)
ament_target_dependencies(imu_bias_observer
rclcpp
rclpy
std_msgs
nav_msgs
sensor_msgs
tf2_ros
tf2
tf2_geometry_msgs
)
#rosidl_get_typesupport_target(cpp_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_cpp")
target_link_libraries(imu_bias_observer "${cpp_typesupport_target}")
ament_export_dependencies(rosidl_default_runtime)
install(TARGETS imu_bias_observer
DESTINATION lib/${PROJECT_NAME}
)
add_executable(imu_and_wheel_odom_node src/imu_and_wheel_odom_node.cpp)
ament_target_dependencies(imu_and_wheel_odom_node
rclcpp
rclpy
std_msgs
sensor_msgs
nav_msgs
tf2_ros
tf2
tf2_geometry_msgs
)
#rosidl_get_typesupport_target(cpp_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_cpp")
target_link_libraries(imu_and_wheel_odom_node "${cpp_typesupport_target}")
ament_export_dependencies(rosidl_default_runtime)
install(TARGETS imu_and_wheel_odom_node
DESTINATION lib/${PROJECT_NAME}
)
add_executable(imu_bias_compensator_node src/imu_bias_compensator_node.cpp)
ament_target_dependencies(imu_bias_compensator_node
rclcpp
rclpy
std_msgs
sensor_msgs
nav_msgs
tf2_ros
tf2
tf2_geometry_msgs
)
#rosidl_get_typesupport_target(cpp_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_cpp")
target_link_libraries(imu_bias_compensator_node "${cpp_typesupport_target}")
ament_export_dependencies(rosidl_default_runtime)
install(TARGETS imu_bias_compensator_node
DESTINATION lib/${PROJECT_NAME}
)
ament_package()