9
9
from . import action_server
10
10
from . import calibration
11
11
from . import camera
12
- from . import core
12
+ from . import camera_server
13
13
from . import component_information
14
14
from . import component_information_server
15
+ from . import core
15
16
from . import failure
16
17
from . import follow_me
17
18
from . import ftp
27
28
from . import offboard
28
29
from . import param
29
30
from . import param_server
31
+ from . import rtk
30
32
from . import server_utility
31
33
from . import shell
32
34
from . import telemetry
@@ -130,9 +132,10 @@ async def _init_plugins(self, host, port):
130
132
self ._plugins ["action_server" ] = action_server .ActionServer (plugin_manager )
131
133
self ._plugins ["calibration" ] = calibration .Calibration (plugin_manager )
132
134
self ._plugins ["camera" ] = camera .Camera (plugin_manager )
133
- self ._plugins ["core " ] = core . Core (plugin_manager )
135
+ self ._plugins ["camera_server " ] = camera_server . CameraServer (plugin_manager )
134
136
self ._plugins ["component_information" ] = component_information .ComponentInformation (plugin_manager )
135
137
self ._plugins ["component_information_server" ] = component_information_server .ComponentInformationServer (plugin_manager )
138
+ self ._plugins ["core" ] = core .Core (plugin_manager )
136
139
self ._plugins ["failure" ] = failure .Failure (plugin_manager )
137
140
self ._plugins ["follow_me" ] = follow_me .FollowMe (plugin_manager )
138
141
self ._plugins ["ftp" ] = ftp .Ftp (plugin_manager )
@@ -148,6 +151,7 @@ async def _init_plugins(self, host, port):
148
151
self ._plugins ["offboard" ] = offboard .Offboard (plugin_manager )
149
152
self ._plugins ["param" ] = param .Param (plugin_manager )
150
153
self ._plugins ["param_server" ] = param_server .ParamServer (plugin_manager )
154
+ self ._plugins ["rtk" ] = rtk .Rtk (plugin_manager )
151
155
self ._plugins ["server_utility" ] = server_utility .ServerUtility (plugin_manager )
152
156
self ._plugins ["shell" ] = shell .Shell (plugin_manager )
153
157
self ._plugins ["telemetry" ] = telemetry .Telemetry (plugin_manager )
@@ -158,7 +162,7 @@ async def _init_plugins(self, host, port):
158
162
159
163
@staticmethod
160
164
def error_uninitialized (plugin_name : str ) -> str :
161
- return "{plugin_name} plugin has not been initialized!" \
165
+ return "{plugin_name} plugin has not been initialized! " \
162
166
"Did you run `System.connect()`?"
163
167
164
168
@property
@@ -186,10 +190,10 @@ def camera(self) -> camera.Camera:
186
190
return self ._plugins ["camera" ]
187
191
188
192
@property
189
- def core (self ) -> core . Core :
190
- if "core " not in self ._plugins :
191
- raise RuntimeError (self .error_uninitialized ("Core " ))
192
- return self ._plugins ["core " ]
193
+ def camera_server (self ) -> camera_server . CameraServer :
194
+ if "camera_server " not in self ._plugins :
195
+ raise RuntimeError (self .error_uninitialized ("CameraServer " ))
196
+ return self ._plugins ["camera_server " ]
193
197
194
198
@property
195
199
def component_information (self ) -> component_information .ComponentInformation :
@@ -203,6 +207,12 @@ def component_information_server(self) -> component_information_server.Component
203
207
raise RuntimeError (self .error_uninitialized ("ComponentInformationServer" ))
204
208
return self ._plugins ["component_informationServer" ]
205
209
210
+ @property
211
+ def core (self ) -> core .Core :
212
+ if "core" not in self ._plugins :
213
+ raise RuntimeError (self .error_uninitialized ("Core" ))
214
+ return self ._plugins ["core" ]
215
+
206
216
@property
207
217
def failure (self ) -> failure .Failure :
208
218
if "failure" not in self ._plugins :
@@ -293,6 +303,12 @@ def param_server(self) -> param_server.ParamServer:
293
303
raise RuntimeError (self .error_uninitialized ("ParamServer" ))
294
304
return self ._plugins ["param_server" ]
295
305
306
+ @property
307
+ def rtk (self ) -> rtk .Rtk :
308
+ if "rtk" not in self ._plugins :
309
+ raise RuntimeError (self .error_uninitialized ("Rtk" ))
310
+ return self ._plugins ["rtk" ]
311
+
296
312
@property
297
313
def server_utility (self ) -> server_utility .ServerUtility :
298
314
if "server_utility" not in self ._plugins :
0 commit comments