@blueyerobotics/protocol-definitions 3.2.0-09fee2ba
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.
- package/LICENSE +165 -0
- package/README.md +40 -0
- package/README.npm.md +40 -0
- package/dist/aquatroll.d.ts +435 -0
- package/dist/aquatroll.js +3160 -0
- package/dist/control.d.ts +277 -0
- package/dist/control.js +2129 -0
- package/dist/google/protobuf/any.d.ts +132 -0
- package/dist/google/protobuf/any.js +121 -0
- package/dist/google/protobuf/duration.d.ts +92 -0
- package/dist/google/protobuf/duration.js +106 -0
- package/dist/google/protobuf/timestamp.d.ts +121 -0
- package/dist/google/protobuf/timestamp.js +106 -0
- package/dist/index.blueye.d.ts +1 -0
- package/dist/index.blueye.js +42 -0
- package/dist/index.blueye.protocol.d.ts +6 -0
- package/dist/index.blueye.protocol.js +27 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.google.d.ts +1 -0
- package/dist/index.google.js +42 -0
- package/dist/index.google.protobuf.d.ts +3 -0
- package/dist/index.google.protobuf.js +24 -0
- package/dist/index.js +43 -0
- package/dist/message_formats.d.ts +2085 -0
- package/dist/message_formats.js +13404 -0
- package/dist/mission_planning.d.ts +346 -0
- package/dist/mission_planning.js +2317 -0
- package/dist/req_rep.d.ts +284 -0
- package/dist/req_rep.js +2109 -0
- package/dist/telemetry.d.ts +389 -0
- package/dist/telemetry.js +3260 -0
- package/package.json +25 -0
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Any } from "./google/protobuf/any";
|
|
3
|
+
import { Battery, Camera, CameraParameters, ClientInfo, ConnectedClient, HeadingMode, OverlayParameters, PersistentStorageSettings, SystemTime } from "./message_formats";
|
|
4
|
+
import { Instruction, Mission } from "./mission_planning";
|
|
5
|
+
/**
|
|
6
|
+
* Request reply
|
|
7
|
+
*
|
|
8
|
+
* These messages define request / reply messages for the Blueye drone.
|
|
9
|
+
*/
|
|
10
|
+
/** Request to set video overlay parameters. */
|
|
11
|
+
export interface SetOverlayParametersReq {
|
|
12
|
+
/** The video overlay parameters to apply. */
|
|
13
|
+
overlayParameters: OverlayParameters | undefined;
|
|
14
|
+
}
|
|
15
|
+
/** Response after setting video overlay parameters. */
|
|
16
|
+
export interface SetOverlayParametersRep {
|
|
17
|
+
}
|
|
18
|
+
/** Request to get currently set video overlay parameters. */
|
|
19
|
+
export interface GetOverlayParametersReq {
|
|
20
|
+
}
|
|
21
|
+
/** Response with the currently set video overlay parameters. */
|
|
22
|
+
export interface GetOverlayParametersRep {
|
|
23
|
+
/** The currently set overlay parameters. */
|
|
24
|
+
overlayParameters: OverlayParameters | undefined;
|
|
25
|
+
}
|
|
26
|
+
/** Request to set camera parameters. */
|
|
27
|
+
export interface SetCameraParametersReq {
|
|
28
|
+
/** The camera parameters to apply. */
|
|
29
|
+
cameraParameters: CameraParameters | undefined;
|
|
30
|
+
}
|
|
31
|
+
/** Response after setting the camera parameters. */
|
|
32
|
+
export interface SetCameraParametersRep {
|
|
33
|
+
}
|
|
34
|
+
/** Request to get the currently set camera parameters. */
|
|
35
|
+
export interface GetCameraParametersReq {
|
|
36
|
+
/** Which camera to read camera parameters from. */
|
|
37
|
+
camera: Camera;
|
|
38
|
+
}
|
|
39
|
+
/** Response with the currently set camera parameters. */
|
|
40
|
+
export interface GetCameraParametersRep {
|
|
41
|
+
/** The currently set camera parameters. */
|
|
42
|
+
cameraParameters: CameraParameters | undefined;
|
|
43
|
+
}
|
|
44
|
+
/** Request to set the system time on the drone. */
|
|
45
|
+
export interface SyncTimeReq {
|
|
46
|
+
/** The time to set on the drone. */
|
|
47
|
+
time: SystemTime | undefined;
|
|
48
|
+
}
|
|
49
|
+
/** Response after setting the system time on the drone. */
|
|
50
|
+
export interface SyncTimeRep {
|
|
51
|
+
/** If the time was set successfully. */
|
|
52
|
+
success: boolean;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The simplest message to use to test request/reply communication with the drone.
|
|
56
|
+
*
|
|
57
|
+
* The drone replies with a PingRep message immediately after receiving the PingReq.
|
|
58
|
+
*/
|
|
59
|
+
export interface PingReq {
|
|
60
|
+
}
|
|
61
|
+
/** Response message from a PingReq request. */
|
|
62
|
+
export interface PingRep {
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Request to set parameters for ultrasonic thickness gauge.
|
|
66
|
+
*
|
|
67
|
+
* The sound velocity is used to calculate the thickness of the material being measured.
|
|
68
|
+
*/
|
|
69
|
+
export interface SetThicknessGaugeParametersReq {
|
|
70
|
+
/** Sound velocity in m/s */
|
|
71
|
+
soundVelocity: number;
|
|
72
|
+
}
|
|
73
|
+
/** Response after setting thickness gauge parameters. */
|
|
74
|
+
export interface SetThicknessGaugeParametersRep {
|
|
75
|
+
}
|
|
76
|
+
/** Connect a new client to the drone. */
|
|
77
|
+
export interface ConnectClientReq {
|
|
78
|
+
/** Information about the client connecting to the drone. */
|
|
79
|
+
clientInfo: ClientInfo | undefined;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Response after connecting a client to the drone.
|
|
83
|
+
*
|
|
84
|
+
* Contains information about which client is in control, and a list of
|
|
85
|
+
* all connected clients.
|
|
86
|
+
*/
|
|
87
|
+
export interface ConnectClientRep {
|
|
88
|
+
/** The assigned ID of this client. */
|
|
89
|
+
clientId: number;
|
|
90
|
+
/** The ID of the client in control of the drone. */
|
|
91
|
+
clientIdInControl: number;
|
|
92
|
+
/** List of connected clients. */
|
|
93
|
+
connectedClients: ConnectedClient[];
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Disconnect a client from the drone.
|
|
97
|
+
*
|
|
98
|
+
* This request will remove the client from the list of connected clients.
|
|
99
|
+
* It allows clients to disconnect instantly, without waiting for a watchdog to
|
|
100
|
+
* clear the client in control, or promote a new client to be in control.
|
|
101
|
+
*/
|
|
102
|
+
export interface DisconnectClientReq {
|
|
103
|
+
/** The assigned ID of the client to disconnect. */
|
|
104
|
+
clientId: number;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Response after disconnecting a client from the drone.
|
|
108
|
+
*
|
|
109
|
+
* Contains information about which clients are connected and in control.
|
|
110
|
+
*/
|
|
111
|
+
export interface DisconnectClientRep {
|
|
112
|
+
/** The ID of the client in control of the drone. */
|
|
113
|
+
clientIdInControl: number;
|
|
114
|
+
/** List of connected clients. */
|
|
115
|
+
connectedClients: ConnectedClient[];
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Request essential battery information.
|
|
119
|
+
*
|
|
120
|
+
* Can be used to instantly get battery information,
|
|
121
|
+
* instead of having to wait for the BatteryTel message to be received.
|
|
122
|
+
*/
|
|
123
|
+
export interface GetBatteryReq {
|
|
124
|
+
}
|
|
125
|
+
/** Response with essential battery information. */
|
|
126
|
+
export interface GetBatteryRep {
|
|
127
|
+
/** Essential battery information. */
|
|
128
|
+
battery: Battery | undefined;
|
|
129
|
+
}
|
|
130
|
+
/** Issue a desired mission to the reference_generator. */
|
|
131
|
+
export interface SetMissionReq {
|
|
132
|
+
/** Requested mission issued to the reference generator. */
|
|
133
|
+
mission: Mission | undefined;
|
|
134
|
+
}
|
|
135
|
+
/** Response after setting a new mission. */
|
|
136
|
+
export interface SetMissionRep {
|
|
137
|
+
}
|
|
138
|
+
/** Service request to the reference_generator to get the active mission. */
|
|
139
|
+
export interface GetMissionReq {
|
|
140
|
+
}
|
|
141
|
+
/** Get active mission response. */
|
|
142
|
+
export interface GetMissionRep {
|
|
143
|
+
/** Active mission with waypoints. */
|
|
144
|
+
mission: Mission | undefined;
|
|
145
|
+
}
|
|
146
|
+
/** Updates an instruction in current mission with a new instruction payload. */
|
|
147
|
+
export interface SetInstructionUpdateReq {
|
|
148
|
+
/** instruction that will replace the desired instruction. */
|
|
149
|
+
instruction: Instruction | undefined;
|
|
150
|
+
}
|
|
151
|
+
/** Response after updating an instruction in the current mission. */
|
|
152
|
+
export interface SetInstructionUpdateRep {
|
|
153
|
+
}
|
|
154
|
+
/** Set the heading mode used in dead reckoning. */
|
|
155
|
+
export interface SetHeadingModeReq {
|
|
156
|
+
/** The heading mode to set. */
|
|
157
|
+
headingMode: HeadingMode;
|
|
158
|
+
}
|
|
159
|
+
/** Response after setting the heading mode. */
|
|
160
|
+
export interface SetHeadingModeRep {
|
|
161
|
+
}
|
|
162
|
+
/** Request to update the publish frequency */
|
|
163
|
+
export interface SetPubFrequencyReq {
|
|
164
|
+
/** Message name, f. ex. "AttitudeTel" */
|
|
165
|
+
messageType: string;
|
|
166
|
+
/** Publish frequency (max 100 Hz). */
|
|
167
|
+
frequency: number;
|
|
168
|
+
}
|
|
169
|
+
/** Response after updating publish frequency */
|
|
170
|
+
export interface SetPubFrequencyRep {
|
|
171
|
+
/** True if message name valid and frequency successfully updated. */
|
|
172
|
+
success: boolean;
|
|
173
|
+
}
|
|
174
|
+
/** Request to get latest telemetry data */
|
|
175
|
+
export interface GetTelemetryReq {
|
|
176
|
+
/** Message name, f. ex. "AttitudeTel". */
|
|
177
|
+
messageType: string;
|
|
178
|
+
}
|
|
179
|
+
/** Response with latest telemetry */
|
|
180
|
+
export interface GetTelemetryRep {
|
|
181
|
+
/** The latest telemetry data, empty if no data available. */
|
|
182
|
+
payload: Any | undefined;
|
|
183
|
+
}
|
|
184
|
+
/** Request to set persistent storage settings. */
|
|
185
|
+
export interface SetPersistentStorageSettingsReq {
|
|
186
|
+
/** The persistent storage settings to apply. */
|
|
187
|
+
persistentStorageSettings: PersistentStorageSettings | undefined;
|
|
188
|
+
}
|
|
189
|
+
/** Response after setting persistent storage settings. */
|
|
190
|
+
export interface SetPersistentStorageSettingsRep {
|
|
191
|
+
/** If the persistent storage settings were set successfully. */
|
|
192
|
+
success: boolean;
|
|
193
|
+
}
|
|
194
|
+
/** Request to get currently set persistent storage settings. */
|
|
195
|
+
export interface GetPersistentStorageSettingsReq {
|
|
196
|
+
}
|
|
197
|
+
/** Response with the currently set persistent storage settings. */
|
|
198
|
+
export interface GetPersistentStorageSettingsRep {
|
|
199
|
+
/** The currently set persistent storage settings. */
|
|
200
|
+
persistentStorageSettings: PersistentStorageSettings | undefined;
|
|
201
|
+
}
|
|
202
|
+
/** Request to flash ESC settings. */
|
|
203
|
+
export interface FlashEscSettingsReq {
|
|
204
|
+
/** If startup sounds should be disabled. */
|
|
205
|
+
silent: boolean;
|
|
206
|
+
}
|
|
207
|
+
/** Response after flashing ESC settings. */
|
|
208
|
+
export interface FlashEscSettingsRep {
|
|
209
|
+
/** If the ESC settings were flashed successfully. */
|
|
210
|
+
success: boolean;
|
|
211
|
+
}
|
|
212
|
+
/** Request to set iperf task status. */
|
|
213
|
+
export interface SetIperfStatusReq {
|
|
214
|
+
/** If background iperf task should be enabled or disabled. */
|
|
215
|
+
enabled: boolean;
|
|
216
|
+
}
|
|
217
|
+
/** Response after setting iperf status. */
|
|
218
|
+
export interface SetIperfStatusRep {
|
|
219
|
+
/** If background iperf task is enabled or disabled. */
|
|
220
|
+
enabled: boolean;
|
|
221
|
+
}
|
|
222
|
+
/** Request to get current iperf task status. */
|
|
223
|
+
export interface GetIperfStatusReq {
|
|
224
|
+
}
|
|
225
|
+
/** Response with current iperf status. */
|
|
226
|
+
export interface GetIperfStatusRep {
|
|
227
|
+
/** If background iperf task is enabled or disabled. */
|
|
228
|
+
enabled: boolean;
|
|
229
|
+
}
|
|
230
|
+
export declare const SetOverlayParametersReq: MessageFns<SetOverlayParametersReq>;
|
|
231
|
+
export declare const SetOverlayParametersRep: MessageFns<SetOverlayParametersRep>;
|
|
232
|
+
export declare const GetOverlayParametersReq: MessageFns<GetOverlayParametersReq>;
|
|
233
|
+
export declare const GetOverlayParametersRep: MessageFns<GetOverlayParametersRep>;
|
|
234
|
+
export declare const SetCameraParametersReq: MessageFns<SetCameraParametersReq>;
|
|
235
|
+
export declare const SetCameraParametersRep: MessageFns<SetCameraParametersRep>;
|
|
236
|
+
export declare const GetCameraParametersReq: MessageFns<GetCameraParametersReq>;
|
|
237
|
+
export declare const GetCameraParametersRep: MessageFns<GetCameraParametersRep>;
|
|
238
|
+
export declare const SyncTimeReq: MessageFns<SyncTimeReq>;
|
|
239
|
+
export declare const SyncTimeRep: MessageFns<SyncTimeRep>;
|
|
240
|
+
export declare const PingReq: MessageFns<PingReq>;
|
|
241
|
+
export declare const PingRep: MessageFns<PingRep>;
|
|
242
|
+
export declare const SetThicknessGaugeParametersReq: MessageFns<SetThicknessGaugeParametersReq>;
|
|
243
|
+
export declare const SetThicknessGaugeParametersRep: MessageFns<SetThicknessGaugeParametersRep>;
|
|
244
|
+
export declare const ConnectClientReq: MessageFns<ConnectClientReq>;
|
|
245
|
+
export declare const ConnectClientRep: MessageFns<ConnectClientRep>;
|
|
246
|
+
export declare const DisconnectClientReq: MessageFns<DisconnectClientReq>;
|
|
247
|
+
export declare const DisconnectClientRep: MessageFns<DisconnectClientRep>;
|
|
248
|
+
export declare const GetBatteryReq: MessageFns<GetBatteryReq>;
|
|
249
|
+
export declare const GetBatteryRep: MessageFns<GetBatteryRep>;
|
|
250
|
+
export declare const SetMissionReq: MessageFns<SetMissionReq>;
|
|
251
|
+
export declare const SetMissionRep: MessageFns<SetMissionRep>;
|
|
252
|
+
export declare const GetMissionReq: MessageFns<GetMissionReq>;
|
|
253
|
+
export declare const GetMissionRep: MessageFns<GetMissionRep>;
|
|
254
|
+
export declare const SetInstructionUpdateReq: MessageFns<SetInstructionUpdateReq>;
|
|
255
|
+
export declare const SetInstructionUpdateRep: MessageFns<SetInstructionUpdateRep>;
|
|
256
|
+
export declare const SetHeadingModeReq: MessageFns<SetHeadingModeReq>;
|
|
257
|
+
export declare const SetHeadingModeRep: MessageFns<SetHeadingModeRep>;
|
|
258
|
+
export declare const SetPubFrequencyReq: MessageFns<SetPubFrequencyReq>;
|
|
259
|
+
export declare const SetPubFrequencyRep: MessageFns<SetPubFrequencyRep>;
|
|
260
|
+
export declare const GetTelemetryReq: MessageFns<GetTelemetryReq>;
|
|
261
|
+
export declare const GetTelemetryRep: MessageFns<GetTelemetryRep>;
|
|
262
|
+
export declare const SetPersistentStorageSettingsReq: MessageFns<SetPersistentStorageSettingsReq>;
|
|
263
|
+
export declare const SetPersistentStorageSettingsRep: MessageFns<SetPersistentStorageSettingsRep>;
|
|
264
|
+
export declare const GetPersistentStorageSettingsReq: MessageFns<GetPersistentStorageSettingsReq>;
|
|
265
|
+
export declare const GetPersistentStorageSettingsRep: MessageFns<GetPersistentStorageSettingsRep>;
|
|
266
|
+
export declare const FlashEscSettingsReq: MessageFns<FlashEscSettingsReq>;
|
|
267
|
+
export declare const FlashEscSettingsRep: MessageFns<FlashEscSettingsRep>;
|
|
268
|
+
export declare const SetIperfStatusReq: MessageFns<SetIperfStatusReq>;
|
|
269
|
+
export declare const SetIperfStatusRep: MessageFns<SetIperfStatusRep>;
|
|
270
|
+
export declare const GetIperfStatusReq: MessageFns<GetIperfStatusReq>;
|
|
271
|
+
export declare const GetIperfStatusRep: MessageFns<GetIperfStatusRep>;
|
|
272
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
273
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
274
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
275
|
+
} : Partial<T>;
|
|
276
|
+
interface MessageFns<T> {
|
|
277
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
278
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
279
|
+
fromJSON(object: any): T;
|
|
280
|
+
toJSON(message: T): unknown;
|
|
281
|
+
create(base?: DeepPartial<T>): T;
|
|
282
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
283
|
+
}
|
|
284
|
+
export {};
|