-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
223 lines (177 loc) · 5.04 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
cmake_minimum_required(VERSION 2.8.3)
set(PROJECT_NAME droneMsgsROS)
project(${PROJECT_NAME})
### Use version 2011 of C++ (c++11). By default ROS uses c++98
#see: http://stackoverflow.com/questions/10851247/how-to-activate-c-11-in-cmake
#see: http://stackoverflow.com/questions/10984442/how-to-detect-c11-support-of-a-compiler-with-cmake
#add_definitions(-std=c++11)
#add_definitions(-std=c++0x)
add_definitions(-std=c++03)
# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
# Debug : w/ debug symbols, w/o optimization
# Release : w/o debug symbols, w/ optimization
# RelWithDebInfo : w/ debug symbols, w/ optimization
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE RelWithDebInfo)
set(DRONEMSGS_SOURCE_DIR
src/sources)
set(DRONEMSGS_INCLUDE_DIR
src/include
)
set(DRONEMSGS_SOURCE_FILES
)
set(DRONEMSGS_HEADER_FILES
#General
src/include/nodes_definition.h
src/include/communication_definition.h
)
find_package(catkin REQUIRED
COMPONENTS message_generation std_msgs sensor_msgs geometry_msgs std_srvs opencv_apps)
add_message_files(
DIRECTORY
msg
FILES
#driver msgs
battery.msg
droneAltitude.msg
droneStatus.msg
monoMeasureStamped.msg #never used
vector2.msg
vector2Stamped.msg
robotPose.msg
dronePitchRollCmd.msg
droneDYawCmd.msg
droneDAltitudeCmd.msg
droneCommand.msg
droneAutopilotCommand.msg
#other
droneAltitudeCmd.msg
droneGoTask.msg
droneHLCommandAck.msg
droneHLCommand.msg
droneMissionPlannerCommand.msg
droneManagerStatus.msg
droneInfo.msg
droneMissionInfo.msg
droneNavCommand.msg #obsolete
droneNavData.msg #obsolete
dronePose.msg
dronePoseStamped.msg
dronePositionRefCommand.msg
dronePositionRefCommandStamped.msg
dronePositionTrajectoryRefCommand.msg
droneRefCommand.msg
droneSensorData.msg
droneSpeeds.msg
droneSpeedsStamped.msg
droneTrajectoryRefCommand.msg
droneYawRefCommand.msg
imageFeaturesIBVS.msg
imageFeaturesFeedbackIBVS.msg
Landmark3D.msg
landmarkVector.msg
Observation3D.msg
obstaclesTwoDim.msg
obstacleTwoDimPole.msg
obstacleTwoDimWall.msg
obsVector.msg
societyPose.msg
droneTrajectoryControllerControlMode.msg
FlightAnimation.msg
vectorPoints2D.msg
vector2i.msg
vectorPoints2DInt.msg
robotPoseStamped.msg
robotPoseStampedVector.msg
targetInImage.msg
vectorTargetsInImageStamped.msg
vector3f.msg
points3DStamped.msg
robotPoseStamped.msg
robotPoseVector.msg
robotPoseStampedVector.msg
# trajectories for EuRoC
CommandTrajectoryPath.msg
CommandTrajectoryWaypoint.msg
#Opentld
BoundingBox.msg
Target.msg
VectorROIs.msg
#new process supervisor
AliveSignal.msg
ProcessState.msg
ProcessError.msg
ErrorType.msg
ProcessDescriptorList.msg
ProcessDescriptor.msg
ProcessState.msg
distanceToObstacle.msg
distancesToObstacles.msg
#Global Mission Planner
droneTask.msg
droneMission.msg
visualObjectRecognized.msg
vectorVisualObjectsRecognized.msg
dronePerceptionManagerMissionRequest.msg
dronePerceptionManagerMissionState.msg
actionArguments.msg
actionData.msg
CompletedAction.msg
PublicEvent.msg
SkillDescriptor.msg
SkillsList.msg
SkillState.msg
Event.msg
AllBeliefs.msg
BeliefStatement.msg
# Executive Layer
BehaviorCommand.msg
BehaviorEvent.msg
Capability.msg
ListOfCapabilities.msg
ListOfProcesses.msg
ListOfBehaviors.msg
QRInterpretation.msg
)
add_service_files(
DIRECTORY
srv
FILES
setControlMode.srv
setInitDroneYaw_srv_type.srv
askForModule.srv
getFlightAnim.srv
missionName.srv
openMissionFile.srv
skillRequest.srv
perceptionManagerUpdateMissionStateSrv.srv
classifyImage.srv
ConsultBelief.srv
AddBelief.srv
RemoveBelief.srv
CheckBeliefFormat.srv
#Executive Layer
BehaviorSrv.srv
StartBehavior.srv
QueryResources.srv
ResourcesSrv.srv
CheckSituation.srv
ConsultDefaultBehaviorValues.srv
CheckBehaviorGroupConsistency.srv
CheckCapabilitiesConsistency.srv
InitiateBehaviors.srv
StopBehavior.srv
CheckReactiveActivation.srv
RecordReactiveBehaviors.srv
)
generate_messages(DEPENDENCIES std_msgs sensor_msgs geometry_msgs std_srvs opencv_apps)
catkin_package(
INCLUDE_DIRS ${DRONEMSGS_INCLUDE_DIR}
CATKIN_DEPENDS message_runtime std_msgs sensor_msgs geometry_msgs std_srvs opencv_apps
)
include_directories(${DRONEMSGS_INCLUDE_DIR})
include_directories(${catkin_INCLUDE_DIRS})
add_custom_target(${PROJECT_NAME}
SOURCES ${DRONEMSGS_HEADER_FILES}
)