-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
62 lines (48 loc) · 1.45 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
cmake_minimum_required(VERSION 3.8)
project(bumperbot_localization)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
find_package(ament_cmake REQUIRED)
find_package(ament_cmake_python REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rclpy REQUIRED)
find_package(nav_msgs REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(tf2 REQUIRED)
include_directories(include)
add_executable(kalman_filter src/kalman_filter.cpp)
ament_target_dependencies(kalman_filter rclcpp nav_msgs sensor_msgs)
add_executable(imu_republisher src/imu_republisher.cpp)
ament_target_dependencies(imu_republisher rclcpp sensor_msgs)
add_executable(odometry_motion_model src/odometry_motion_model.cpp)
ament_target_dependencies(odometry_motion_model rclcpp tf2 nav_msgs geometry_msgs)
ament_python_install_package(${PROJECT_NAME})
install(
DIRECTORY include
DESTINATION include
)
install(TARGETS
odometry_motion_model
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
)
install(TARGETS
kalman_filter
imu_republisher
odometry_motion_model
DESTINATION lib/${PROJECT_NAME}
)
install(
DIRECTORY launch config rviz
DESTINATION share/${PROJECT_NAME}
)
install(PROGRAMS
${PROJECT_NAME}/kalman_filter.py
${PROJECT_NAME}/imu_republisher.py
${PROJECT_NAME}/odometry_motion_model.py
DESTINATION lib/${PROJECT_NAME}
)
ament_package()