steeleagle-protocol 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- steeleagle_protocol/v1/common_pb2.py +43 -0
- steeleagle_protocol/v1/common_pb2_grpc.py +4 -0
- steeleagle_protocol/v1/messages/result/result_pb2.py +49 -0
- steeleagle_protocol/v1/messages/result/result_pb2_grpc.py +4 -0
- steeleagle_protocol/v1/messages/stream/stream_pb2.py +70 -0
- steeleagle_protocol/v1/messages/stream/stream_pb2_grpc.py +4 -0
- steeleagle_protocol/v1/services/driver/control_pb2.py +88 -0
- steeleagle_protocol/v1/services/driver/control_pb2_grpc.py +583 -0
- steeleagle_protocol/v1/services/driver/stream_pb2.py +52 -0
- steeleagle_protocol/v1/services/driver/stream_pb2_grpc.py +198 -0
- steeleagle_protocol/v1/services/mission/mission_pb2.py +51 -0
- steeleagle_protocol/v1/services/mission/mission_pb2_grpc.py +200 -0
- steeleagle_protocol/v1/services/swarm/swarm_pb2.py +80 -0
- steeleagle_protocol/v1/services/swarm/swarm_pb2_grpc.py +565 -0
- steeleagle_protocol/v1/services/vehicle/compute_pb2.py +47 -0
- steeleagle_protocol/v1/services/vehicle/compute_pb2_grpc.py +102 -0
- steeleagle_protocol/v1/services/vehicle/data_pb2.py +51 -0
- steeleagle_protocol/v1/services/vehicle/data_pb2_grpc.py +190 -0
- steeleagle_protocol-0.1.0.dist-info/METADATA +15 -0
- steeleagle_protocol-0.1.0.dist-info/RECORD +22 -0
- steeleagle_protocol-0.1.0.dist-info/WHEEL +5 -0
- steeleagle_protocol-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from steeleagle_protocol.v1.services.driver import control_pb2 as steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ControlServiceStub:
|
|
9
|
+
"""
|
|
10
|
+
Used for low-level control of a vehicle.
|
|
11
|
+
|
|
12
|
+
This service is hosted by the driver module and represents the global
|
|
13
|
+
control interface for the vehicle. Most methods called here will result
|
|
14
|
+
in actuation of the vehicle if it is armed (be careful!).
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
def __init__(self, channel):
|
|
18
|
+
"""Constructor.
|
|
19
|
+
|
|
20
|
+
Args:
|
|
21
|
+
channel: A grpc.Channel.
|
|
22
|
+
"""
|
|
23
|
+
self.TakeOff = channel.unary_unary(
|
|
24
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/TakeOff',
|
|
25
|
+
request_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.TakeOffRequest.SerializeToString,
|
|
26
|
+
response_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.TakeOffResponse.FromString,
|
|
27
|
+
_registered_method=True)
|
|
28
|
+
self.Land = channel.unary_unary(
|
|
29
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/Land',
|
|
30
|
+
request_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.LandRequest.SerializeToString,
|
|
31
|
+
response_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.LandResponse.FromString,
|
|
32
|
+
_registered_method=True)
|
|
33
|
+
self.Hold = channel.unary_unary(
|
|
34
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/Hold',
|
|
35
|
+
request_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.HoldRequest.SerializeToString,
|
|
36
|
+
response_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.HoldResponse.FromString,
|
|
37
|
+
_registered_method=True)
|
|
38
|
+
self.Kill = channel.unary_unary(
|
|
39
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/Kill',
|
|
40
|
+
request_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.KillRequest.SerializeToString,
|
|
41
|
+
response_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.KillResponse.FromString,
|
|
42
|
+
_registered_method=True)
|
|
43
|
+
self.SetHome = channel.unary_unary(
|
|
44
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/SetHome',
|
|
45
|
+
request_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetHomeRequest.SerializeToString,
|
|
46
|
+
response_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetHomeResponse.FromString,
|
|
47
|
+
_registered_method=True)
|
|
48
|
+
self.ReturnToHome = channel.unary_unary(
|
|
49
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/ReturnToHome',
|
|
50
|
+
request_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.ReturnToHomeRequest.SerializeToString,
|
|
51
|
+
response_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.ReturnToHomeResponse.FromString,
|
|
52
|
+
_registered_method=True)
|
|
53
|
+
self.GoToGlobalPosition = channel.unary_unary(
|
|
54
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/GoToGlobalPosition',
|
|
55
|
+
request_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.GoToGlobalPositionRequest.SerializeToString,
|
|
56
|
+
response_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.GoToGlobalPositionResponse.FromString,
|
|
57
|
+
_registered_method=True)
|
|
58
|
+
self.GoToRelativePosition = channel.unary_unary(
|
|
59
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/GoToRelativePosition',
|
|
60
|
+
request_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.GoToRelativePositionRequest.SerializeToString,
|
|
61
|
+
response_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.GoToRelativePositionResponse.FromString,
|
|
62
|
+
_registered_method=True)
|
|
63
|
+
self.SetVelocity = channel.unary_unary(
|
|
64
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/SetVelocity',
|
|
65
|
+
request_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetVelocityRequest.SerializeToString,
|
|
66
|
+
response_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetVelocityResponse.FromString,
|
|
67
|
+
_registered_method=True)
|
|
68
|
+
self.SetGimbalPose = channel.unary_unary(
|
|
69
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/SetGimbalPose',
|
|
70
|
+
request_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetGimbalPoseRequest.SerializeToString,
|
|
71
|
+
response_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetGimbalPoseResponse.FromString,
|
|
72
|
+
_registered_method=True)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class ControlServiceServicer:
|
|
76
|
+
"""
|
|
77
|
+
Used for low-level control of a vehicle.
|
|
78
|
+
|
|
79
|
+
This service is hosted by the driver module and represents the global
|
|
80
|
+
control interface for the vehicle. Most methods called here will result
|
|
81
|
+
in actuation of the vehicle if it is armed (be careful!).
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
def TakeOff(self, request, context):
|
|
85
|
+
"""
|
|
86
|
+
Order the vehicle to take off.
|
|
87
|
+
|
|
88
|
+
Causes the vehicle to take off to a specified take off altitude.
|
|
89
|
+
Implicitly arms the vehicle.
|
|
90
|
+
"""
|
|
91
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
92
|
+
context.set_details('Method not implemented!')
|
|
93
|
+
raise NotImplementedError('Method not implemented!')
|
|
94
|
+
|
|
95
|
+
def Land(self, request, context):
|
|
96
|
+
"""
|
|
97
|
+
Order the vehicle to land.
|
|
98
|
+
|
|
99
|
+
Causes the vehicle to land at its current location. Implicitly
|
|
100
|
+
disarms the vehicle.
|
|
101
|
+
"""
|
|
102
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
103
|
+
context.set_details('Method not implemented!')
|
|
104
|
+
raise NotImplementedError('Method not implemented!')
|
|
105
|
+
|
|
106
|
+
def Hold(self, request, context):
|
|
107
|
+
"""
|
|
108
|
+
Order the vehicle to hold/loiter.
|
|
109
|
+
|
|
110
|
+
Causes the vehicle to hold at its current location and to
|
|
111
|
+
cancel any ongoing movement commands (`ReturnToHome` e.g.).
|
|
112
|
+
"""
|
|
113
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
114
|
+
context.set_details('Method not implemented!')
|
|
115
|
+
raise NotImplementedError('Method not implemented!')
|
|
116
|
+
|
|
117
|
+
def Kill(self, request, context):
|
|
118
|
+
"""
|
|
119
|
+
Orders an emergency shutdown of the vehicle motors.
|
|
120
|
+
|
|
121
|
+
Causes the vehicle to immediately turn off its motors. _This will
|
|
122
|
+
result in the vehicle going into freefall, only for emergencies!_
|
|
123
|
+
"""
|
|
124
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
125
|
+
context.set_details('Method not implemented!')
|
|
126
|
+
raise NotImplementedError('Method not implemented!')
|
|
127
|
+
|
|
128
|
+
def SetHome(self, request, context):
|
|
129
|
+
"""
|
|
130
|
+
Set the home location of the vehicle.
|
|
131
|
+
|
|
132
|
+
Changes the home location of the vehicle. Future `ReturnToHome`
|
|
133
|
+
commands will move the vehicle to the provided location instead
|
|
134
|
+
of its starting position.
|
|
135
|
+
"""
|
|
136
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
137
|
+
context.set_details('Method not implemented!')
|
|
138
|
+
raise NotImplementedError('Method not implemented!')
|
|
139
|
+
|
|
140
|
+
def ReturnToHome(self, request, context):
|
|
141
|
+
"""
|
|
142
|
+
Order the vehicle to return to its home position.
|
|
143
|
+
|
|
144
|
+
Causes the vehicle to return to its home position. If the home position
|
|
145
|
+
has not been explicitly set, this will be its start position (defined
|
|
146
|
+
as its takeoff position by default). If the home position has been
|
|
147
|
+
explicitly set, by `SetHome`, the vehicle will return to that
|
|
148
|
+
position instead. If `return_altitude` is set, the vehicle will ascend
|
|
149
|
+
to that altitude before transit.
|
|
150
|
+
|
|
151
|
+
The vehicle will interpret `end_behavior` as follows:
|
|
152
|
+
- `HOVER` -> hover at `final_altitude` above home position
|
|
153
|
+
- `LAND` -> land at home position
|
|
154
|
+
"""
|
|
155
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
156
|
+
context.set_details('Method not implemented!')
|
|
157
|
+
raise NotImplementedError('Method not implemented!')
|
|
158
|
+
|
|
159
|
+
def GoToGlobalPosition(self, request, context):
|
|
160
|
+
"""
|
|
161
|
+
Order the vehicle to move to a global position.
|
|
162
|
+
|
|
163
|
+
Causes the vehicle to transit to the provided global position. The vehicle
|
|
164
|
+
will interpret the heading of travel according to `heading_mode`:
|
|
165
|
+
- `TO_TARGET` -> turn to face the target position bearing
|
|
166
|
+
- `HEADING_START` -> turn to face the provided heading in the global position object.
|
|
167
|
+
|
|
168
|
+
This will be the heading the vehicle maintains for the duration of transit.
|
|
169
|
+
|
|
170
|
+
The vehicle will move towards the target at the specified maximum velocity
|
|
171
|
+
until the vehicle has reached its destination. Error tolerance is determined
|
|
172
|
+
by the driver. Maximum velocity is interpreted from `max_velocity` as follows:
|
|
173
|
+
- `x_vel` -> maximum _horizontal_ velocity
|
|
174
|
+
- `y_vel` -> ignored
|
|
175
|
+
- `z_vel` -> maximum _vertical_ velocity
|
|
176
|
+
|
|
177
|
+
If no maximum velocity is provided, the driver will use a preset speed usually
|
|
178
|
+
determined by the manufacturer or hardware settings.
|
|
179
|
+
|
|
180
|
+
During motion, the vehicle will also ascend or descend towards the target
|
|
181
|
+
altitude, linearly interpolating this movement over the duration of travel.
|
|
182
|
+
The vehicle will interpret altitude from `altitude_mode` as follows:
|
|
183
|
+
- `ABSOLUTE` -> altitude is relative to MSL (Mean Sea Level)
|
|
184
|
+
- `RELATIVE` -> altitude is relative to take off position
|
|
185
|
+
"""
|
|
186
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
187
|
+
context.set_details('Method not implemented!')
|
|
188
|
+
raise NotImplementedError('Method not implemented!')
|
|
189
|
+
|
|
190
|
+
def GoToRelativePosition(self, request, context):
|
|
191
|
+
"""
|
|
192
|
+
Order the vehicle to move to a relative position.
|
|
193
|
+
|
|
194
|
+
Causes the vehicle to transit to the provided relative position. The vehicle
|
|
195
|
+
will interpret the input position according to `frame` as follows:
|
|
196
|
+
- `BODY` -> (`x`, `y`, `z`) = (forward offset, right offset, up offset) _from current position_
|
|
197
|
+
- `NEU` -> (`x`, `y`, `z`) = (north offset, east offset, up offset) _from start position_
|
|
198
|
+
|
|
199
|
+
The vehicle will move towards the target at the specified maximum velocity
|
|
200
|
+
until the vehicle has reached its destination. Error tolerance is determined
|
|
201
|
+
by the driver. Maximum velocity is interpreted from `max_velocity` as follows:
|
|
202
|
+
- `x_vel` -> maximum _horizontal_ velocity
|
|
203
|
+
- `y_vel` -> ignored
|
|
204
|
+
- `z_vel` -> maximum _vertical_ velocity
|
|
205
|
+
|
|
206
|
+
If no maximum velocity is provided, the driver will use a preset speed usually
|
|
207
|
+
determined by the manufacturer or hardware settings.
|
|
208
|
+
"""
|
|
209
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
210
|
+
context.set_details('Method not implemented!')
|
|
211
|
+
raise NotImplementedError('Method not implemented!')
|
|
212
|
+
|
|
213
|
+
def SetVelocity(self, request, context):
|
|
214
|
+
"""
|
|
215
|
+
Order the vehicle to accelerate to a velocity.
|
|
216
|
+
|
|
217
|
+
Causes the vehicle to accelerate until it reaches a provided velocity.
|
|
218
|
+
The vehicle will interpret the input velocity according to `frame` as follows:
|
|
219
|
+
- `BODY` -> (`x_vel`, `y_vel`, `z_vel`) = (forward velocity, right velocity, up velocity)
|
|
220
|
+
- `NEU` -> (`x_vel`, `y_vel`, `z_vel`) = (north velocity, east velocity, up velocity)
|
|
221
|
+
"""
|
|
222
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
223
|
+
context.set_details('Method not implemented!')
|
|
224
|
+
raise NotImplementedError('Method not implemented!')
|
|
225
|
+
|
|
226
|
+
def SetGimbalPose(self, request, context):
|
|
227
|
+
"""
|
|
228
|
+
Order the vehicle to set the pose of a gimbal.
|
|
229
|
+
|
|
230
|
+
Causes the vehicle to actuate a gimbal to a new pose. The vehicle
|
|
231
|
+
will interpret the new pose type from `pose_mode` as follows:
|
|
232
|
+
- `ABSOLUTE` -> absolute angle
|
|
233
|
+
- `RELATIVE` -> angle relative to current position
|
|
234
|
+
- `VELOCITY` -> angular velocities
|
|
235
|
+
|
|
236
|
+
The vehicle will interpret the new pose angles according to `frame`
|
|
237
|
+
as follows:
|
|
238
|
+
- `BODY` -> (`pitch`, `roll`, `yaw`) = (body pitch, body roll, body yaw)
|
|
239
|
+
- `NEU` -> (`pitch`, `roll`, `yaw`) = (body pitch, body roll, global yaw)
|
|
240
|
+
"""
|
|
241
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
242
|
+
context.set_details('Method not implemented!')
|
|
243
|
+
raise NotImplementedError('Method not implemented!')
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
def add_ControlServiceServicer_to_server(servicer, server):
|
|
247
|
+
rpc_method_handlers = {
|
|
248
|
+
'TakeOff': grpc.unary_unary_rpc_method_handler(
|
|
249
|
+
servicer.TakeOff,
|
|
250
|
+
request_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.TakeOffRequest.FromString,
|
|
251
|
+
response_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.TakeOffResponse.SerializeToString,
|
|
252
|
+
),
|
|
253
|
+
'Land': grpc.unary_unary_rpc_method_handler(
|
|
254
|
+
servicer.Land,
|
|
255
|
+
request_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.LandRequest.FromString,
|
|
256
|
+
response_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.LandResponse.SerializeToString,
|
|
257
|
+
),
|
|
258
|
+
'Hold': grpc.unary_unary_rpc_method_handler(
|
|
259
|
+
servicer.Hold,
|
|
260
|
+
request_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.HoldRequest.FromString,
|
|
261
|
+
response_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.HoldResponse.SerializeToString,
|
|
262
|
+
),
|
|
263
|
+
'Kill': grpc.unary_unary_rpc_method_handler(
|
|
264
|
+
servicer.Kill,
|
|
265
|
+
request_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.KillRequest.FromString,
|
|
266
|
+
response_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.KillResponse.SerializeToString,
|
|
267
|
+
),
|
|
268
|
+
'SetHome': grpc.unary_unary_rpc_method_handler(
|
|
269
|
+
servicer.SetHome,
|
|
270
|
+
request_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetHomeRequest.FromString,
|
|
271
|
+
response_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetHomeResponse.SerializeToString,
|
|
272
|
+
),
|
|
273
|
+
'ReturnToHome': grpc.unary_unary_rpc_method_handler(
|
|
274
|
+
servicer.ReturnToHome,
|
|
275
|
+
request_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.ReturnToHomeRequest.FromString,
|
|
276
|
+
response_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.ReturnToHomeResponse.SerializeToString,
|
|
277
|
+
),
|
|
278
|
+
'GoToGlobalPosition': grpc.unary_unary_rpc_method_handler(
|
|
279
|
+
servicer.GoToGlobalPosition,
|
|
280
|
+
request_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.GoToGlobalPositionRequest.FromString,
|
|
281
|
+
response_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.GoToGlobalPositionResponse.SerializeToString,
|
|
282
|
+
),
|
|
283
|
+
'GoToRelativePosition': grpc.unary_unary_rpc_method_handler(
|
|
284
|
+
servicer.GoToRelativePosition,
|
|
285
|
+
request_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.GoToRelativePositionRequest.FromString,
|
|
286
|
+
response_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.GoToRelativePositionResponse.SerializeToString,
|
|
287
|
+
),
|
|
288
|
+
'SetVelocity': grpc.unary_unary_rpc_method_handler(
|
|
289
|
+
servicer.SetVelocity,
|
|
290
|
+
request_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetVelocityRequest.FromString,
|
|
291
|
+
response_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetVelocityResponse.SerializeToString,
|
|
292
|
+
),
|
|
293
|
+
'SetGimbalPose': grpc.unary_unary_rpc_method_handler(
|
|
294
|
+
servicer.SetGimbalPose,
|
|
295
|
+
request_deserializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetGimbalPoseRequest.FromString,
|
|
296
|
+
response_serializer=steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetGimbalPoseResponse.SerializeToString,
|
|
297
|
+
),
|
|
298
|
+
}
|
|
299
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
300
|
+
'steeleagle_protocol.v1.services.driver.control.ControlService', rpc_method_handlers)
|
|
301
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
302
|
+
server.add_registered_method_handlers('steeleagle_protocol.v1.services.driver.control.ControlService', rpc_method_handlers)
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
# This class is part of an EXPERIMENTAL API.
|
|
306
|
+
class ControlService:
|
|
307
|
+
"""
|
|
308
|
+
Used for low-level control of a vehicle.
|
|
309
|
+
|
|
310
|
+
This service is hosted by the driver module and represents the global
|
|
311
|
+
control interface for the vehicle. Most methods called here will result
|
|
312
|
+
in actuation of the vehicle if it is armed (be careful!).
|
|
313
|
+
"""
|
|
314
|
+
|
|
315
|
+
@staticmethod
|
|
316
|
+
def TakeOff(request,
|
|
317
|
+
target,
|
|
318
|
+
options=(),
|
|
319
|
+
channel_credentials=None,
|
|
320
|
+
call_credentials=None,
|
|
321
|
+
insecure=False,
|
|
322
|
+
compression=None,
|
|
323
|
+
wait_for_ready=None,
|
|
324
|
+
timeout=None,
|
|
325
|
+
metadata=None):
|
|
326
|
+
return grpc.experimental.unary_unary(
|
|
327
|
+
request,
|
|
328
|
+
target,
|
|
329
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/TakeOff',
|
|
330
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.TakeOffRequest.SerializeToString,
|
|
331
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.TakeOffResponse.FromString,
|
|
332
|
+
options,
|
|
333
|
+
channel_credentials,
|
|
334
|
+
insecure,
|
|
335
|
+
call_credentials,
|
|
336
|
+
compression,
|
|
337
|
+
wait_for_ready,
|
|
338
|
+
timeout,
|
|
339
|
+
metadata,
|
|
340
|
+
_registered_method=True)
|
|
341
|
+
|
|
342
|
+
@staticmethod
|
|
343
|
+
def Land(request,
|
|
344
|
+
target,
|
|
345
|
+
options=(),
|
|
346
|
+
channel_credentials=None,
|
|
347
|
+
call_credentials=None,
|
|
348
|
+
insecure=False,
|
|
349
|
+
compression=None,
|
|
350
|
+
wait_for_ready=None,
|
|
351
|
+
timeout=None,
|
|
352
|
+
metadata=None):
|
|
353
|
+
return grpc.experimental.unary_unary(
|
|
354
|
+
request,
|
|
355
|
+
target,
|
|
356
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/Land',
|
|
357
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.LandRequest.SerializeToString,
|
|
358
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.LandResponse.FromString,
|
|
359
|
+
options,
|
|
360
|
+
channel_credentials,
|
|
361
|
+
insecure,
|
|
362
|
+
call_credentials,
|
|
363
|
+
compression,
|
|
364
|
+
wait_for_ready,
|
|
365
|
+
timeout,
|
|
366
|
+
metadata,
|
|
367
|
+
_registered_method=True)
|
|
368
|
+
|
|
369
|
+
@staticmethod
|
|
370
|
+
def Hold(request,
|
|
371
|
+
target,
|
|
372
|
+
options=(),
|
|
373
|
+
channel_credentials=None,
|
|
374
|
+
call_credentials=None,
|
|
375
|
+
insecure=False,
|
|
376
|
+
compression=None,
|
|
377
|
+
wait_for_ready=None,
|
|
378
|
+
timeout=None,
|
|
379
|
+
metadata=None):
|
|
380
|
+
return grpc.experimental.unary_unary(
|
|
381
|
+
request,
|
|
382
|
+
target,
|
|
383
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/Hold',
|
|
384
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.HoldRequest.SerializeToString,
|
|
385
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.HoldResponse.FromString,
|
|
386
|
+
options,
|
|
387
|
+
channel_credentials,
|
|
388
|
+
insecure,
|
|
389
|
+
call_credentials,
|
|
390
|
+
compression,
|
|
391
|
+
wait_for_ready,
|
|
392
|
+
timeout,
|
|
393
|
+
metadata,
|
|
394
|
+
_registered_method=True)
|
|
395
|
+
|
|
396
|
+
@staticmethod
|
|
397
|
+
def Kill(request,
|
|
398
|
+
target,
|
|
399
|
+
options=(),
|
|
400
|
+
channel_credentials=None,
|
|
401
|
+
call_credentials=None,
|
|
402
|
+
insecure=False,
|
|
403
|
+
compression=None,
|
|
404
|
+
wait_for_ready=None,
|
|
405
|
+
timeout=None,
|
|
406
|
+
metadata=None):
|
|
407
|
+
return grpc.experimental.unary_unary(
|
|
408
|
+
request,
|
|
409
|
+
target,
|
|
410
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/Kill',
|
|
411
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.KillRequest.SerializeToString,
|
|
412
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.KillResponse.FromString,
|
|
413
|
+
options,
|
|
414
|
+
channel_credentials,
|
|
415
|
+
insecure,
|
|
416
|
+
call_credentials,
|
|
417
|
+
compression,
|
|
418
|
+
wait_for_ready,
|
|
419
|
+
timeout,
|
|
420
|
+
metadata,
|
|
421
|
+
_registered_method=True)
|
|
422
|
+
|
|
423
|
+
@staticmethod
|
|
424
|
+
def SetHome(request,
|
|
425
|
+
target,
|
|
426
|
+
options=(),
|
|
427
|
+
channel_credentials=None,
|
|
428
|
+
call_credentials=None,
|
|
429
|
+
insecure=False,
|
|
430
|
+
compression=None,
|
|
431
|
+
wait_for_ready=None,
|
|
432
|
+
timeout=None,
|
|
433
|
+
metadata=None):
|
|
434
|
+
return grpc.experimental.unary_unary(
|
|
435
|
+
request,
|
|
436
|
+
target,
|
|
437
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/SetHome',
|
|
438
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetHomeRequest.SerializeToString,
|
|
439
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetHomeResponse.FromString,
|
|
440
|
+
options,
|
|
441
|
+
channel_credentials,
|
|
442
|
+
insecure,
|
|
443
|
+
call_credentials,
|
|
444
|
+
compression,
|
|
445
|
+
wait_for_ready,
|
|
446
|
+
timeout,
|
|
447
|
+
metadata,
|
|
448
|
+
_registered_method=True)
|
|
449
|
+
|
|
450
|
+
@staticmethod
|
|
451
|
+
def ReturnToHome(request,
|
|
452
|
+
target,
|
|
453
|
+
options=(),
|
|
454
|
+
channel_credentials=None,
|
|
455
|
+
call_credentials=None,
|
|
456
|
+
insecure=False,
|
|
457
|
+
compression=None,
|
|
458
|
+
wait_for_ready=None,
|
|
459
|
+
timeout=None,
|
|
460
|
+
metadata=None):
|
|
461
|
+
return grpc.experimental.unary_unary(
|
|
462
|
+
request,
|
|
463
|
+
target,
|
|
464
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/ReturnToHome',
|
|
465
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.ReturnToHomeRequest.SerializeToString,
|
|
466
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.ReturnToHomeResponse.FromString,
|
|
467
|
+
options,
|
|
468
|
+
channel_credentials,
|
|
469
|
+
insecure,
|
|
470
|
+
call_credentials,
|
|
471
|
+
compression,
|
|
472
|
+
wait_for_ready,
|
|
473
|
+
timeout,
|
|
474
|
+
metadata,
|
|
475
|
+
_registered_method=True)
|
|
476
|
+
|
|
477
|
+
@staticmethod
|
|
478
|
+
def GoToGlobalPosition(request,
|
|
479
|
+
target,
|
|
480
|
+
options=(),
|
|
481
|
+
channel_credentials=None,
|
|
482
|
+
call_credentials=None,
|
|
483
|
+
insecure=False,
|
|
484
|
+
compression=None,
|
|
485
|
+
wait_for_ready=None,
|
|
486
|
+
timeout=None,
|
|
487
|
+
metadata=None):
|
|
488
|
+
return grpc.experimental.unary_unary(
|
|
489
|
+
request,
|
|
490
|
+
target,
|
|
491
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/GoToGlobalPosition',
|
|
492
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.GoToGlobalPositionRequest.SerializeToString,
|
|
493
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.GoToGlobalPositionResponse.FromString,
|
|
494
|
+
options,
|
|
495
|
+
channel_credentials,
|
|
496
|
+
insecure,
|
|
497
|
+
call_credentials,
|
|
498
|
+
compression,
|
|
499
|
+
wait_for_ready,
|
|
500
|
+
timeout,
|
|
501
|
+
metadata,
|
|
502
|
+
_registered_method=True)
|
|
503
|
+
|
|
504
|
+
@staticmethod
|
|
505
|
+
def GoToRelativePosition(request,
|
|
506
|
+
target,
|
|
507
|
+
options=(),
|
|
508
|
+
channel_credentials=None,
|
|
509
|
+
call_credentials=None,
|
|
510
|
+
insecure=False,
|
|
511
|
+
compression=None,
|
|
512
|
+
wait_for_ready=None,
|
|
513
|
+
timeout=None,
|
|
514
|
+
metadata=None):
|
|
515
|
+
return grpc.experimental.unary_unary(
|
|
516
|
+
request,
|
|
517
|
+
target,
|
|
518
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/GoToRelativePosition',
|
|
519
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.GoToRelativePositionRequest.SerializeToString,
|
|
520
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.GoToRelativePositionResponse.FromString,
|
|
521
|
+
options,
|
|
522
|
+
channel_credentials,
|
|
523
|
+
insecure,
|
|
524
|
+
call_credentials,
|
|
525
|
+
compression,
|
|
526
|
+
wait_for_ready,
|
|
527
|
+
timeout,
|
|
528
|
+
metadata,
|
|
529
|
+
_registered_method=True)
|
|
530
|
+
|
|
531
|
+
@staticmethod
|
|
532
|
+
def SetVelocity(request,
|
|
533
|
+
target,
|
|
534
|
+
options=(),
|
|
535
|
+
channel_credentials=None,
|
|
536
|
+
call_credentials=None,
|
|
537
|
+
insecure=False,
|
|
538
|
+
compression=None,
|
|
539
|
+
wait_for_ready=None,
|
|
540
|
+
timeout=None,
|
|
541
|
+
metadata=None):
|
|
542
|
+
return grpc.experimental.unary_unary(
|
|
543
|
+
request,
|
|
544
|
+
target,
|
|
545
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/SetVelocity',
|
|
546
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetVelocityRequest.SerializeToString,
|
|
547
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetVelocityResponse.FromString,
|
|
548
|
+
options,
|
|
549
|
+
channel_credentials,
|
|
550
|
+
insecure,
|
|
551
|
+
call_credentials,
|
|
552
|
+
compression,
|
|
553
|
+
wait_for_ready,
|
|
554
|
+
timeout,
|
|
555
|
+
metadata,
|
|
556
|
+
_registered_method=True)
|
|
557
|
+
|
|
558
|
+
@staticmethod
|
|
559
|
+
def SetGimbalPose(request,
|
|
560
|
+
target,
|
|
561
|
+
options=(),
|
|
562
|
+
channel_credentials=None,
|
|
563
|
+
call_credentials=None,
|
|
564
|
+
insecure=False,
|
|
565
|
+
compression=None,
|
|
566
|
+
wait_for_ready=None,
|
|
567
|
+
timeout=None,
|
|
568
|
+
metadata=None):
|
|
569
|
+
return grpc.experimental.unary_unary(
|
|
570
|
+
request,
|
|
571
|
+
target,
|
|
572
|
+
'/steeleagle_protocol.v1.services.driver.control.ControlService/SetGimbalPose',
|
|
573
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetGimbalPoseRequest.SerializeToString,
|
|
574
|
+
steeleagle__protocol_dot_v1_dot_services_dot_driver_dot_control__pb2.SetGimbalPoseResponse.FromString,
|
|
575
|
+
options,
|
|
576
|
+
channel_credentials,
|
|
577
|
+
insecure,
|
|
578
|
+
call_credentials,
|
|
579
|
+
compression,
|
|
580
|
+
wait_for_ready,
|
|
581
|
+
timeout,
|
|
582
|
+
metadata,
|
|
583
|
+
_registered_method=True)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: steeleagle_protocol/v1/services/driver/stream.proto
|
|
5
|
+
# Protobuf Python Version: 7.35.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
7,
|
|
15
|
+
35,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'steeleagle_protocol/v1/services/driver/stream.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from steeleagle_protocol.v1.messages.stream import stream_pb2 as steeleagle__protocol_dot_v1_dot_messages_dot_stream_dot_stream__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3steeleagle_protocol/v1/services/driver/stream.proto\x12+steeleagle_protocol.v1.services.driver.data\x1a\x33steeleagle_protocol/v1/messages/stream/stream.proto\"\x89\x02\n\x18GetVideoStreamURLRequest\x12p\n\nresolution\x18\x01 \x01(\x0e\x32P.steeleagle_protocol.v1.services.driver.data.GetVideoStreamURLRequest.ResolutionR\nresolution\"{\n\nResolution\x12\x1a\n\x16RESOLUTION_UNSPECIFIED\x10\x00\x12\x13\n\x0fRESOLUTION_480P\x10\x01\x12\x13\n\x0fRESOLUTION_720P\x10\x02\x12\x14\n\x10RESOLUTION_1080P\x10\x03\x12\x11\n\rRESOLUTION_4K\x10\x04\":\n\x19GetVideoStreamURLResponse\x12\x1d\n\nstream_url\x18\x01 \x01(\tR\tstreamUrl\"\x1a\n\x18StreamVideoFramesRequest\"c\n\x19StreamVideoFramesResponse\x12\x46\n\x05\x66rame\x18\x01 \x01(\x0b\x32\x30.steeleagle_protocol.v1.messages.stream.RawFrameR\x05\x66rame\"\x18\n\x16StreamTelemetryRequest\"j\n\x17StreamTelemetryResponse\x12O\n\ttelemetry\x18\x01 \x01(\x0b\x32\x31.steeleagle_protocol.v1.messages.stream.TelemetryR\ttelemetry2\xfc\x03\n\rStreamService\x12\xa2\x01\n\x11GetVideoStreamURL\x12\x45.steeleagle_protocol.v1.services.driver.data.GetVideoStreamURLRequest\x1a\x46.steeleagle_protocol.v1.services.driver.data.GetVideoStreamURLResponse\x12\xa4\x01\n\x11StreamVideoFrames\x12\x45.steeleagle_protocol.v1.services.driver.data.StreamVideoFramesRequest\x1a\x46.steeleagle_protocol.v1.services.driver.data.StreamVideoFramesResponse0\x01\x12\x9e\x01\n\x0fStreamTelemetry\x12\x43.steeleagle_protocol.v1.services.driver.data.StreamTelemetryRequest\x1a\x44.steeleagle_protocol.v1.services.driver.data.StreamTelemetryResponse0\x01\x42\xdd\x02\n/com.steeleagle_protocol.v1.services.driver.dataB\x0bStreamProtoP\x01ZOgithub.com/cmusatyalab/steeleagle/api/go/steeleagle_protocol/v1/services/driver\xa2\x02\x05SVSDD\xaa\x02*SteeleagleProtocol.V1.Services.Driver.Data\xca\x02*SteeleagleProtocol\\V1\\Services\\Driver\\Data\xe2\x02\x36SteeleagleProtocol\\V1\\Services\\Driver\\Data\\GPBMetadata\xea\x02.SteeleagleProtocol::V1::Services::Driver::Datab\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'steeleagle_protocol.v1.services.driver.stream_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n/com.steeleagle_protocol.v1.services.driver.dataB\013StreamProtoP\001ZOgithub.com/cmusatyalab/steeleagle/api/go/steeleagle_protocol/v1/services/driver\242\002\005SVSDD\252\002*SteeleagleProtocol.V1.Services.Driver.Data\312\002*SteeleagleProtocol\\V1\\Services\\Driver\\Data\342\0026SteeleagleProtocol\\V1\\Services\\Driver\\Data\\GPBMetadata\352\002.SteeleagleProtocol::V1::Services::Driver::Data'
|
|
36
|
+
_globals['_GETVIDEOSTREAMURLREQUEST']._serialized_start=154
|
|
37
|
+
_globals['_GETVIDEOSTREAMURLREQUEST']._serialized_end=419
|
|
38
|
+
_globals['_GETVIDEOSTREAMURLREQUEST_RESOLUTION']._serialized_start=296
|
|
39
|
+
_globals['_GETVIDEOSTREAMURLREQUEST_RESOLUTION']._serialized_end=419
|
|
40
|
+
_globals['_GETVIDEOSTREAMURLRESPONSE']._serialized_start=421
|
|
41
|
+
_globals['_GETVIDEOSTREAMURLRESPONSE']._serialized_end=479
|
|
42
|
+
_globals['_STREAMVIDEOFRAMESREQUEST']._serialized_start=481
|
|
43
|
+
_globals['_STREAMVIDEOFRAMESREQUEST']._serialized_end=507
|
|
44
|
+
_globals['_STREAMVIDEOFRAMESRESPONSE']._serialized_start=509
|
|
45
|
+
_globals['_STREAMVIDEOFRAMESRESPONSE']._serialized_end=608
|
|
46
|
+
_globals['_STREAMTELEMETRYREQUEST']._serialized_start=610
|
|
47
|
+
_globals['_STREAMTELEMETRYREQUEST']._serialized_end=634
|
|
48
|
+
_globals['_STREAMTELEMETRYRESPONSE']._serialized_start=636
|
|
49
|
+
_globals['_STREAMTELEMETRYRESPONSE']._serialized_end=742
|
|
50
|
+
_globals['_STREAMSERVICE']._serialized_start=745
|
|
51
|
+
_globals['_STREAMSERVICE']._serialized_end=1253
|
|
52
|
+
# @@protoc_insertion_point(module_scope)
|