-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
105 lines (89 loc) · 2.17 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
cmake_minimum_required(VERSION 2.8.3)
project(panda_controllers)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(catkin REQUIRED COMPONENTS
controller_interface
dynamic_reconfigure
franka_hw
geometry_msgs
franka_msgs
hardware_interface
message_generation
pluginlib
realtime_tools
roscpp
rospy
)
find_package(Eigen3 REQUIRED)
find_package(Franka 0.5.0 REQUIRED)
#add_message_files(FILES
# )
# generate_messages(
# DEPENDENCIES##
# franka_msgs##
# std_msgs
# geometry_msgs
# )
include_directories(include ${catkin_INCLUDE_DIRS})
catkin_package(
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS
controller_interface
dynamic_reconfigure
franka_hw
geometry_msgs
franka_msgs
hardware_interface
message_runtime
pluginlib
realtime_tools
roscpp
DEPENDS Franka
)
add_library(${PROJECT_NAME}
src/computed_torque.cpp #Computed Torque controller
src/cartesian_impedance_controller_softbots.cpp #CartesianImpendanceSoftBots controller
)
# add_dependencies(${PROJECT_NAME}
# ${${PROJECT_NAME}_EXPORTED_TARGETS}
# panda_controllers ${catkin_EXPORTED_TARGETS}
# ${catkin_EXPORTED_TARGETS}
# ${PROJECT_NAME}_generate_messages_cpp
# ${PROJECT_NAME}_gencpp
# ${PROJECT_NAME}_gencfg
# )
add_dependencies(${PROJECT_NAME}
${${PROJECT_NAME}_EXPORTED_TARGETS}
panda_controllers ${catkin_EXPORTED_TARGETS}
)
add_executable(menu src/menu.cpp)
target_link_libraries(menu ${catkin_LIBRARIES})
target_link_libraries(${PROJECT_NAME} PUBLIC
${Franka_LIBRARIES}
${catkin_LIBRARIES}
)
target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC
${Franka_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
)
target_include_directories(${PROJECT_NAME} PUBLIC
include
)
## Installation
install(TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(DIRECTORY config
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(FILES ${PROJECT_NAME}_plugin.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)