-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
134 lines (119 loc) · 3.72 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
cmake_minimum_required(VERSION 2.8.3)
project(abb_robotnode)
add_compile_options(-std=c++14 -Wno-deprecated)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
sensor_msgs
geometry_msgs
message_generation
)
FIND_PACKAGE(Protobuf REQUIRED)
INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIRS})
PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS src/egm/egm.proto)
#add_message_files(DIRECTORY msg FILES
# robot_CartesianLog.msg
# robot_ForceLog.msg
# robot_JointsLog.msg
#)
# All services should go here
add_service_files(DIRECTORY srv FILES
# Info services
Info/Service_GetCartesian.srv
Info/Service_GetEGMMode.srv
Info/Service_GetFK.srv
Info/Service_GetGripperPosition.srv
Info/Service_GetGripperStatus.srv
Info/Service_GetIK.srv
Info/Service_GetJoints.srv
Info/Service_GetRobotAngle.srv
Info/Service_Ping.srv
# Motion services
Motion/Service_AddToCartesianBuffer.srv
Motion/Service_ClearCartesianBuffer.srv
Motion/Service_ExecuteCartesianBuffer.srv
Motion/Service_ExecuteSynchroCartesianBuffer.srv
Motion/Service_GetCartesianBufferSize.srv
Motion/Service_AddToJointBuffer.srv
Motion/Service_ClearJointBuffer.srv
Motion/Service_ExecuteJointBuffer.srv
Motion/Service_ExecuteSynchroJointBuffer.srv
Motion/Service_GetJointBufferSize.srv
Motion/Service_SetCartesian.srv
Motion/Service_SetEGMMode.srv
Motion/Service_SetJoints.srv
Motion/Service_SetMaxAcceleration.srv
Motion/Service_SetMotionSupervision.srv
Motion/Service_Stop.srv
Motion/Service_SetDefaults.srv
Motion/Service_SetInertia.srv
Motion/Service_SetIOSignal.srv
Motion/Service_SetMaxSpeed.srv
Motion/Service_SetTool.srv
Motion/Service_SetWorkObject.srv
Motion/Service_SetZone.srv
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
sensor_msgs
)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS roscpp std_msgs sensor_msgs geometry_msgs message_generation
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
# All services should go here
add_executable(abb_robotnode
src/Main.cpp
src/Logger.cpp
src/RobotController.cpp
# EGM
src/egm/EGMThread.cpp
src/egm/PracticalSocket.cpp
# Common functions for services
src/services/Common.cpp
# Info services
src/services/Info/Ping.cpp
src/services/Info/GetCartesian.cpp
src/services/Info/GetEGMMode.cpp
src/services/Info/GetFK.cpp
src/services/Info/GetGripperPosition.cpp
src/services/Info/GetGripperStatus.cpp
src/services/Info/GetIK.cpp
src/services/Info/GetJoints.cpp
src/services/Info/GetRobotAngle.cpp
# Motion services
src/services/Motion/AddToCartesianBuffer.cpp
src/services/Motion/ClearCartesianBuffer.cpp
src/services/Motion/ExecuteCartesianBuffer.cpp
src/services/Motion/ExecuteSynchroCartesianBuffer.cpp
src/services/Motion/GetCartesianBufferSize.cpp
src/services/Motion/AddToJointBuffer.cpp
src/services/Motion/ClearJointBuffer.cpp
src/services/Motion/ExecuteJointBuffer.cpp
src/services/Motion/ExecuteSynchroJointBuffer.cpp
src/services/Motion/GetJointBufferSize.cpp
src/services/Motion/SetCartesian.cpp
src/services/Motion/SetEGMMode.cpp
src/services/Motion/SetJoints.cpp
src/services/Motion/SetMaxAcceleration.cpp
src/services/Motion/SetMotionSupervision.cpp
src/services/Motion/Stop.cpp
src/services/Motion/SetDefaults.cpp
src/services/Motion/SetInertia.cpp
src/services/Motion/SetIOSignal.cpp
src/services/Motion/SetMaxSpeed.cpp
src/services/Motion/SetTool.cpp
src/services/Motion/SetWorkObject.cpp
src/services/Motion/SetZone.cpp
${PROTO_SRCS}
${PROTO_HDRS}
)
target_include_directories(abb_robotnode PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(abb_robotnode ${catkin_LIBRARIES} ${PROTOBUF_LIBRARY} ${PROTO_HDRS})
add_dependencies(abb_robotnode abb_robotnode_generate_messages_cpp)