8
8
9
9
from . import action
10
10
from . import action_server
11
+ from . import arm_authorizer_server
11
12
from . import calibration
12
13
from . import camera
13
14
from . import camera_server
14
15
from . import component_information
15
16
from . import component_information_server
17
+ from . import component_metadata
18
+ from . import component_metadata_server
16
19
from . import core
20
+ from . import events
17
21
from . import failure
18
22
from . import follow_me
19
23
from . import ftp
24
+ from . import ftp_server
20
25
from . import geofence
21
26
from . import gimbal
22
27
from . import gripper
23
28
from . import info
24
29
from . import log_files
25
30
from . import log_streaming
26
31
from . import manual_control
32
+ from . import mavlink_direct
27
33
from . import mission
28
34
from . import mission_raw
29
35
from . import mission_raw_server
@@ -137,22 +143,28 @@ async def _init_plugins(self, host, port):
137
143
self ._plugins = {}
138
144
self ._plugins ["action" ] = action .Action (plugin_manager )
139
145
self ._plugins ["action_server" ] = action_server .ActionServer (plugin_manager )
146
+ self ._plugins ["arm_authorizer_server" ] = arm_authorizer_server .ArmAuthorizerServer (plugin_manager )
140
147
self ._plugins ["calibration" ] = calibration .Calibration (plugin_manager )
141
148
self ._plugins ["camera" ] = camera .Camera (plugin_manager )
142
149
self ._plugins ["camera_server" ] = camera_server .CameraServer (plugin_manager )
143
150
self ._plugins ["component_information" ] = component_information .ComponentInformation (plugin_manager )
144
151
self ._plugins ["component_information_server" ] = component_information_server .ComponentInformationServer (plugin_manager )
152
+ self ._plugins ["component_metadata" ] = component_metadata .ComponentMetadata (plugin_manager )
153
+ self ._plugins ["component_metadata_server" ] = component_metadata_server .ComponentMetadataServer (plugin_manager )
145
154
self ._plugins ["core" ] = core .Core (plugin_manager )
155
+ self ._plugins ["events" ] = events .Events (plugin_manager )
146
156
self ._plugins ["failure" ] = failure .Failure (plugin_manager )
147
157
self ._plugins ["follow_me" ] = follow_me .FollowMe (plugin_manager )
148
158
self ._plugins ["ftp" ] = ftp .Ftp (plugin_manager )
159
+ self ._plugins ["ftp_server" ] = ftp_server .FtpServer (plugin_manager )
149
160
self ._plugins ["geofence" ] = geofence .Geofence (plugin_manager )
150
161
self ._plugins ["gimbal" ] = gimbal .Gimbal (plugin_manager )
151
162
self ._plugins ["gripper" ] = gripper .Gripper (plugin_manager )
152
163
self ._plugins ["info" ] = info .Info (plugin_manager )
153
164
self ._plugins ["log_files" ] = log_files .LogFiles (plugin_manager )
154
165
self ._plugins ["log_streaming" ] = log_streaming .LogStreaming (plugin_manager )
155
166
self ._plugins ["manual_control" ] = manual_control .ManualControl (plugin_manager )
167
+ self ._plugins ["mavlink_direct" ] = mavlink_direct .MavlinkDirect (plugin_manager )
156
168
self ._plugins ["mission" ] = mission .Mission (plugin_manager )
157
169
self ._plugins ["mission_raw" ] = mission_raw .MissionRaw (plugin_manager )
158
170
self ._plugins ["mission_raw_server" ] = mission_raw_server .MissionRawServer (plugin_manager )
@@ -187,6 +199,12 @@ def action_server(self) -> action_server.ActionServer:
187
199
raise RuntimeError (self .error_uninitialized ("ActionServer" ))
188
200
return self ._plugins ["action_server" ]
189
201
202
+ @property
203
+ def arm_authorizer_server (self ) -> arm_authorizer_server .ArmAuthorizerServer :
204
+ if "arm_authorizer_server" not in self ._plugins :
205
+ raise RuntimeError (self .error_uninitialized ("ArmAuthorizerServer" ))
206
+ return self ._plugins ["arm_authorizer_server" ]
207
+
190
208
@property
191
209
def calibration (self ) -> calibration .Calibration :
192
210
if "calibration" not in self ._plugins :
@@ -217,12 +235,30 @@ def component_information_server(self) -> component_information_server.Component
217
235
raise RuntimeError (self .error_uninitialized ("ComponentInformationServer" ))
218
236
return self ._plugins ["component_information_server" ]
219
237
238
+ @property
239
+ def component_metadata (self ) -> component_metadata .ComponentMetadata :
240
+ if "component_metadata" not in self ._plugins :
241
+ raise RuntimeError (self .error_uninitialized ("ComponentMetadata" ))
242
+ return self ._plugins ["component_metadata" ]
243
+
244
+ @property
245
+ def component_metadata_server (self ) -> component_metadata_server .ComponentMetadataServer :
246
+ if "component_metadata_server" not in self ._plugins :
247
+ raise RuntimeError (self .error_uninitialized ("ComponentMetadataServer" ))
248
+ return self ._plugins ["component_metadata_server" ]
249
+
220
250
@property
221
251
def core (self ) -> core .Core :
222
252
if "core" not in self ._plugins :
223
253
raise RuntimeError (self .error_uninitialized ("Core" ))
224
254
return self ._plugins ["core" ]
225
255
256
+ @property
257
+ def events (self ) -> events .Events :
258
+ if "events" not in self ._plugins :
259
+ raise RuntimeError (self .error_uninitialized ("Events" ))
260
+ return self ._plugins ["events" ]
261
+
226
262
@property
227
263
def failure (self ) -> failure .Failure :
228
264
if "failure" not in self ._plugins :
@@ -241,6 +277,12 @@ def ftp(self) -> ftp.Ftp:
241
277
raise RuntimeError (self .error_uninitialized ("Ftp" ))
242
278
return self ._plugins ["ftp" ]
243
279
280
+ @property
281
+ def ftp_server (self ) -> ftp_server .FtpServer :
282
+ if "ftp_server" not in self ._plugins :
283
+ raise RuntimeError (self .error_uninitialized ("FtpServer" ))
284
+ return self ._plugins ["ftp_server" ]
285
+
244
286
@property
245
287
def geofence (self ) -> geofence .Geofence :
246
288
if "geofence" not in self ._plugins :
@@ -283,6 +325,12 @@ def manual_control(self) -> manual_control.ManualControl:
283
325
raise RuntimeError (self .error_uninitialized ("ManualControl" ))
284
326
return self ._plugins ["manual_control" ]
285
327
328
+ @property
329
+ def mavlink_direct (self ) -> mavlink_direct .MavlinkDirect :
330
+ if "mavlink_direct" not in self ._plugins :
331
+ raise RuntimeError (self .error_uninitialized ("MavlinkDirect" ))
332
+ return self ._plugins ["mavlink_direct" ]
333
+
286
334
@property
287
335
def mission (self ) -> mission .Mission :
288
336
if "mission" not in self ._plugins :
@@ -375,7 +423,7 @@ def tune(self) -> tune.Tune:
375
423
376
424
@property
377
425
def winch (self ) -> winch .Winch :
378
- if "tune " not in self ._plugins :
426
+ if "winch " not in self ._plugins :
379
427
raise RuntimeError (self .error_uninitialized ("Winch" ))
380
428
return self ._plugins ["winch" ]
381
429
0 commit comments