-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
85 lines (70 loc) · 2.29 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
77
78
79
80
81
82
83
84
85
cmake_minimum_required(VERSION 3.22)
project(moveit_drake LANGUAGES CXX)
list(APPEND CMAKE_PREFIX_PATH /opt/drake/lib)
find_package(drake CONFIG REQUIRED PATHS /opt/drake)
find_package(ament_cmake REQUIRED)
# Common cmake code applied to all moveit packages
find_package(moveit_common REQUIRED)
moveit_package()
find_package(ament_cmake REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(class_loader REQUIRED)
find_package(generate_parameter_library REQUIRED)
find_package(moveit_core REQUIRED)
find_package(moveit_msgs REQUIRED)
find_package(moveit_ros_planning REQUIRED)
find_package(moveit_ros_planning_interface REQUIRED)
find_package(moveit_visual_tools REQUIRED)
find_package(pluginlib REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rviz_visual_tools REQUIRED)
find_package(warehouse_ros REQUIRED)
find_package(shape_msgs REQUIRED)
generate_parameter_library(ktopt_moveit_parameters
parameters/ktopt_moveit_parameters.yaml)
set(THIS_PACKAGE_INCLUDE_DEPENDS
ament_cmake
moveit_core
moveit_ros_planning
moveit_ros_planning_interface
moveit_visual_tools
rclcpp
rviz_visual_tools
shape_msgs
warehouse_ros)
include_directories(include)
# ktopt planning plugin
add_library(
moveit_drake SHARED
# Kinematic Trajectory Optimization (KTOpt)
src/ktopt_planner_manager.cpp
src/ktopt_planning_context.cpp
# TOPPRA
src/add_toppra_time_parameterization.cpp
# Conversions
src/conversions.cpp)
ament_target_dependencies(
moveit_drake
EIGEN3
moveit_core
moveit_msgs
pluginlib
rclcpp
shape_msgs)
target_link_libraries(moveit_drake drake::drake ktopt_moveit_parameters)
# Ensure that the plugin finds libdrake.so at runtime
set_target_properties(moveit_drake PROPERTIES INSTALL_RPATH "/opt/drake/lib"
BUILD_RPATH "/opt/drake/lib")
pluginlib_export_plugin_description_file(moveit_core plugin_descriptions.xml)
install(
TARGETS moveit_drake ktopt_moveit_parameters
EXPORT moveit_drakeTargets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES
DESTINATION include/drake)
ament_export_targets(moveit_drakeTargets HAS_LIBRARY_TARGET)
ament_export_dependencies(moveit_core drake::drake generate_parameter_library)
add_subdirectory(demo)
ament_package()