-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
66 lines (53 loc) · 1.22 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
cmake_minimum_required(VERSION 3.5)
project(ur_rtde_controller)
add_compile_options(-std=c++17)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
find_package(Eigen3 REQUIRED)
find_package(ur_rtde REQUIRED)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
message_generation
std_msgs
sensor_msgs
geometry_msgs
trajectory_msgs
std_srvs
)
add_message_files(
FILES
CartesianPoint.msg
)
add_service_files(
FILES
RobotiQGripperControl.srv
GetForwardKinematic.srv
GetInverseKinematic.srv
StartFreedriveMode.srv
GetRobotStatus.srv
GetGripperPosition.srv
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
${PROJECT_NAME}
)
add_definitions(${EIGEN3_DEFINITIONS})
catkin_package(
INCLUDE_DIRS
include
CATKIN_DEPENDS
message_runtime
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
)
add_library(polyfit_lib src/polyfit/polyfit.cpp)
# RTDE Controller
add_executable(rtde_controller src/rtde_controller/rtde_controller.cpp)
add_dependencies(rtde_controller ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})
target_link_libraries(rtde_controller ${catkin_LIBRARIES} ur_rtde::rtde polyfit_lib)