@blueyerobotics/protocol-definitions 3.2.0-153cd3ce → 3.2.0-35603a2b
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/README.md +40 -0
- package/dist/aquatroll.d.ts +2 -8
- package/dist/aquatroll.js +1 -1
- package/dist/control.d.ts +13 -8
- package/dist/control.js +39 -2
- package/dist/google/protobuf/any.d.ts +2 -8
- package/dist/google/protobuf/any.js +1 -1
- package/dist/google/protobuf/duration.d.ts +2 -8
- package/dist/google/protobuf/duration.js +1 -1
- package/dist/google/protobuf/timestamp.d.ts +2 -8
- package/dist/google/protobuf/timestamp.js +1 -1
- package/dist/index.blueye.js +1 -1
- package/dist/index.blueye.protocol.js +1 -1
- package/dist/index.google.js +1 -1
- package/dist/index.google.protobuf.js +1 -1
- package/dist/index.js +1 -1
- package/dist/message_formats.d.ts +107 -10
- package/dist/message_formats.js +661 -7
- package/dist/mission_planning.d.ts +2 -8
- package/dist/mission_planning.js +1 -1
- package/dist/req_rep.d.ts +2 -8
- package/dist/req_rep.js +1 -1
- package/dist/telemetry.d.ts +12 -10
- package/dist/telemetry.js +79 -5
- package/package.json +7 -1
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @blueyerobotics/protocol-definitions
|
|
2
|
+
|
|
3
|
+
TypeScript protobuf definitions for Blueye Robotics protocols generated using [ts-proto](https://github.com/stephenh/ts-proto).
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @blueyerobotics/protocol-definitions
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { blueye } from "@blueyerobotics/protocol-definitions";
|
|
15
|
+
|
|
16
|
+
// Create a new GetBatteryReq message
|
|
17
|
+
const request = blueye.protocol.GetBatteryReq.create();
|
|
18
|
+
|
|
19
|
+
// Serialize the message to a Uint8Array (binary)
|
|
20
|
+
const binary = blueye.protocol.GetBatteryReq.encode(request).finish();
|
|
21
|
+
|
|
22
|
+
// ...
|
|
23
|
+
|
|
24
|
+
// For demonstration, we will simulate a response from the device
|
|
25
|
+
const response = blueye.protocol.GetBatteryRep.create({
|
|
26
|
+
battery: {
|
|
27
|
+
level: 85,
|
|
28
|
+
voltage: 12.5,
|
|
29
|
+
temperature: 25,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const binaryResponse = blueye.protocol.GetBatteryRep.encode(response).finish();
|
|
34
|
+
|
|
35
|
+
// Decode a binary response back into a message
|
|
36
|
+
const decoded = blueye.protocol.GetBatteryRep.decode(binaryResponse);
|
|
37
|
+
|
|
38
|
+
// Access fields
|
|
39
|
+
console.log(decoded.battery?.level);
|
|
40
|
+
```
|
package/dist/aquatroll.d.ts
CHANGED
|
@@ -424,18 +424,12 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
424
424
|
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 {} ? {
|
|
425
425
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
426
426
|
} : Partial<T>;
|
|
427
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
428
|
-
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
429
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
430
|
-
} & {
|
|
431
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
432
|
-
};
|
|
433
427
|
interface MessageFns<T> {
|
|
434
428
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
435
429
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
436
430
|
fromJSON(object: any): T;
|
|
437
431
|
toJSON(message: T): unknown;
|
|
438
|
-
create
|
|
439
|
-
fromPartial
|
|
432
|
+
create(base?: DeepPartial<T>): T;
|
|
433
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
440
434
|
}
|
|
441
435
|
export {};
|
package/dist/aquatroll.js
CHANGED
package/dist/control.d.ts
CHANGED
|
@@ -205,6 +205,16 @@ export interface StartDiveCtrl {
|
|
|
205
205
|
*/
|
|
206
206
|
export interface EndDiveCtrl {
|
|
207
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* Message sent when the user wants to format a connected removable storage device.
|
|
210
|
+
*
|
|
211
|
+
* The app will receive a RemovableStorageTel message with information about the newly formatted drive.
|
|
212
|
+
*
|
|
213
|
+
* Warning: The drone will delete any partitions and format the drive with a single exFat partition.
|
|
214
|
+
* Any data on the drive will be lost.
|
|
215
|
+
*/
|
|
216
|
+
export interface FormatRemovableStorageDeviceCtrl {
|
|
217
|
+
}
|
|
208
218
|
export declare const MotionInputCtrl: MessageFns<MotionInputCtrl>;
|
|
209
219
|
export declare const TiltVelocityCtrl: MessageFns<TiltVelocityCtrl>;
|
|
210
220
|
export declare const LightsCtrl: MessageFns<LightsCtrl>;
|
|
@@ -247,22 +257,17 @@ export declare const ActivateMultibeamCtrl: MessageFns<ActivateMultibeamCtrl>;
|
|
|
247
257
|
export declare const DeactivateMultibeamCtrl: MessageFns<DeactivateMultibeamCtrl>;
|
|
248
258
|
export declare const StartDiveCtrl: MessageFns<StartDiveCtrl>;
|
|
249
259
|
export declare const EndDiveCtrl: MessageFns<EndDiveCtrl>;
|
|
260
|
+
export declare const FormatRemovableStorageDeviceCtrl: MessageFns<FormatRemovableStorageDeviceCtrl>;
|
|
250
261
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
251
262
|
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 {} ? {
|
|
252
263
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
253
264
|
} : Partial<T>;
|
|
254
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
255
|
-
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
256
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
257
|
-
} & {
|
|
258
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
259
|
-
};
|
|
260
265
|
interface MessageFns<T> {
|
|
261
266
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
262
267
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
263
268
|
fromJSON(object: any): T;
|
|
264
269
|
toJSON(message: T): unknown;
|
|
265
|
-
create
|
|
266
|
-
fromPartial
|
|
270
|
+
create(base?: DeepPartial<T>): T;
|
|
271
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
267
272
|
}
|
|
268
273
|
export {};
|
package/dist/control.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: control.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.EndDiveCtrl = exports.StartDiveCtrl = exports.DeactivateMultibeamCtrl = exports.ActivateMultibeamCtrl = exports.SetMultibeamConfigCtrl = exports.SetAquaTrollConnectionStatusCtrl = exports.SetAquaTrollParameterUnitCtrl = exports.RestartGuestPortsCtrl = exports.ActivateGuestPortsCtrl = exports.DeactivateGuestPortsCtrl = exports.MultibeamServoCtrl = exports.GenericServoCtrl = exports.GripperCtrl = exports.SystemTimeCtrl = exports.PingerConfigurationCtrl = exports.WaterDensityCtrl = exports.TiltStabilizationCtrl = exports.CalibrateDvlGyroCtrl = exports.ResetOdometerCtrl = exports.ResetPositionCtrl = exports.ClearMissionCtrl = exports.PauseMissionCtrl = exports.RunMissionCtrl = exports.AutoPilotHeaveCtrl = exports.AutoPilotSurgeYawCtrl = exports.WeatherVaningCtrl = exports.StationKeepingCtrl = exports.AutoAltitudeCtrl = exports.AutoDepthCtrl = exports.AutoHeadingCtrl = exports.FinishCalibrationCtrl = exports.CancelCalibrationCtrl = exports.StartCalibrationCtrl = exports.TakePictureCtrl = exports.RecordCtrl = exports.WatchdogCtrl = exports.PilotGPSPositionCtrl = exports.LaserCtrl = exports.GuestportLightsCtrl = exports.LightsCtrl = exports.TiltVelocityCtrl = exports.MotionInputCtrl = void 0;
|
|
8
|
+
exports.FormatRemovableStorageDeviceCtrl = exports.EndDiveCtrl = exports.StartDiveCtrl = exports.DeactivateMultibeamCtrl = exports.ActivateMultibeamCtrl = exports.SetMultibeamConfigCtrl = exports.SetAquaTrollConnectionStatusCtrl = exports.SetAquaTrollParameterUnitCtrl = exports.RestartGuestPortsCtrl = exports.ActivateGuestPortsCtrl = exports.DeactivateGuestPortsCtrl = exports.MultibeamServoCtrl = exports.GenericServoCtrl = exports.GripperCtrl = exports.SystemTimeCtrl = exports.PingerConfigurationCtrl = exports.WaterDensityCtrl = exports.TiltStabilizationCtrl = exports.CalibrateDvlGyroCtrl = exports.ResetOdometerCtrl = exports.ResetPositionCtrl = exports.ClearMissionCtrl = exports.PauseMissionCtrl = exports.RunMissionCtrl = exports.AutoPilotHeaveCtrl = exports.AutoPilotSurgeYawCtrl = exports.WeatherVaningCtrl = exports.StationKeepingCtrl = exports.AutoAltitudeCtrl = exports.AutoDepthCtrl = exports.AutoHeadingCtrl = exports.FinishCalibrationCtrl = exports.CancelCalibrationCtrl = exports.StartCalibrationCtrl = exports.TakePictureCtrl = exports.RecordCtrl = exports.WatchdogCtrl = exports.PilotGPSPositionCtrl = exports.LaserCtrl = exports.GuestportLightsCtrl = exports.LightsCtrl = exports.TiltVelocityCtrl = exports.MotionInputCtrl = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const aquatroll_1 = require("./aquatroll");
|
|
@@ -2041,6 +2041,43 @@ exports.EndDiveCtrl = {
|
|
|
2041
2041
|
return message;
|
|
2042
2042
|
},
|
|
2043
2043
|
};
|
|
2044
|
+
function createBaseFormatRemovableStorageDeviceCtrl() {
|
|
2045
|
+
return {};
|
|
2046
|
+
}
|
|
2047
|
+
exports.FormatRemovableStorageDeviceCtrl = {
|
|
2048
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
2049
|
+
return writer;
|
|
2050
|
+
},
|
|
2051
|
+
decode(input, length) {
|
|
2052
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2053
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2054
|
+
const message = createBaseFormatRemovableStorageDeviceCtrl();
|
|
2055
|
+
while (reader.pos < end) {
|
|
2056
|
+
const tag = reader.uint32();
|
|
2057
|
+
switch (tag >>> 3) {
|
|
2058
|
+
}
|
|
2059
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2060
|
+
break;
|
|
2061
|
+
}
|
|
2062
|
+
reader.skip(tag & 7);
|
|
2063
|
+
}
|
|
2064
|
+
return message;
|
|
2065
|
+
},
|
|
2066
|
+
fromJSON(_) {
|
|
2067
|
+
return {};
|
|
2068
|
+
},
|
|
2069
|
+
toJSON(_) {
|
|
2070
|
+
const obj = {};
|
|
2071
|
+
return obj;
|
|
2072
|
+
},
|
|
2073
|
+
create(base) {
|
|
2074
|
+
return exports.FormatRemovableStorageDeviceCtrl.fromPartial(base ?? {});
|
|
2075
|
+
},
|
|
2076
|
+
fromPartial(_) {
|
|
2077
|
+
const message = createBaseFormatRemovableStorageDeviceCtrl();
|
|
2078
|
+
return message;
|
|
2079
|
+
},
|
|
2080
|
+
};
|
|
2044
2081
|
const gt = (() => {
|
|
2045
2082
|
if (typeof globalThis !== "undefined") {
|
|
2046
2083
|
return globalThis;
|
|
@@ -121,18 +121,12 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
121
121
|
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 {} ? {
|
|
122
122
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
123
123
|
} : Partial<T>;
|
|
124
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
125
|
-
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
126
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
127
|
-
} & {
|
|
128
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
129
|
-
};
|
|
130
124
|
interface MessageFns<T> {
|
|
131
125
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
132
126
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
133
127
|
fromJSON(object: any): T;
|
|
134
128
|
toJSON(message: T): unknown;
|
|
135
|
-
create
|
|
136
|
-
fromPartial
|
|
129
|
+
create(base?: DeepPartial<T>): T;
|
|
130
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
137
131
|
}
|
|
138
132
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: google/protobuf/any.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -81,18 +81,12 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
81
81
|
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 {} ? {
|
|
82
82
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
83
83
|
} : Partial<T>;
|
|
84
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
85
|
-
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
86
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
87
|
-
} & {
|
|
88
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
89
|
-
};
|
|
90
84
|
interface MessageFns<T> {
|
|
91
85
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
92
86
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
93
87
|
fromJSON(object: any): T;
|
|
94
88
|
toJSON(message: T): unknown;
|
|
95
|
-
create
|
|
96
|
-
fromPartial
|
|
89
|
+
create(base?: DeepPartial<T>): T;
|
|
90
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
97
91
|
}
|
|
98
92
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: google/protobuf/duration.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -110,18 +110,12 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
110
110
|
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 {} ? {
|
|
111
111
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
112
112
|
} : Partial<T>;
|
|
113
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
114
|
-
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
115
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
116
|
-
} & {
|
|
117
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
118
|
-
};
|
|
119
113
|
interface MessageFns<T> {
|
|
120
114
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
121
115
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
122
116
|
fromJSON(object: any): T;
|
|
123
117
|
toJSON(message: T): unknown;
|
|
124
|
-
create
|
|
125
|
-
fromPartial
|
|
118
|
+
create(base?: DeepPartial<T>): T;
|
|
119
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
126
120
|
}
|
|
127
121
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: google/protobuf/timestamp.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/index.blueye.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
7
|
if (k2 === undefined) k2 = k;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
7
|
if (k2 === undefined) k2 = k;
|
package/dist/index.google.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
7
|
if (k2 === undefined) k2 = k;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
7
|
if (k2 === undefined) k2 = k;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
7
|
if (k2 === undefined) k2 = k;
|
|
@@ -390,6 +390,8 @@ export declare enum GuestPortDeviceID {
|
|
|
390
390
|
GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15 = 43,
|
|
391
391
|
/** GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650 - Cerulean Tracker 650. */
|
|
392
392
|
GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650 = 44,
|
|
393
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE - Blueye External USB Storage */
|
|
394
|
+
GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE = 45,
|
|
393
395
|
UNRECOGNIZED = -1
|
|
394
396
|
}
|
|
395
397
|
export declare function guestPortDeviceIDFromJSON(object: any): GuestPortDeviceID;
|
|
@@ -491,6 +493,46 @@ export interface BinlogRecord {
|
|
|
491
493
|
/** Posix CLOCK_MONOTONIC timestamp. */
|
|
492
494
|
clockMonotonic: Date | undefined;
|
|
493
495
|
}
|
|
496
|
+
/**
|
|
497
|
+
* Log entry
|
|
498
|
+
*
|
|
499
|
+
* Used to store ROS log entries in the bez file
|
|
500
|
+
*/
|
|
501
|
+
export interface LogEntry {
|
|
502
|
+
/** Timestamp of the log entry. */
|
|
503
|
+
timestamp: Date | undefined;
|
|
504
|
+
/** Name of the process that generated the log entry. */
|
|
505
|
+
processName: string;
|
|
506
|
+
/** Process ID of the log entry. */
|
|
507
|
+
processId: number;
|
|
508
|
+
/** Thread ID of the log entry. */
|
|
509
|
+
threadId: number;
|
|
510
|
+
/** Source of the log entry (specific class or named logger). */
|
|
511
|
+
source: string;
|
|
512
|
+
/** Log level, info, warning, error, etc. */
|
|
513
|
+
level: LogEntry_LogLevel;
|
|
514
|
+
/** Log message. */
|
|
515
|
+
message: string;
|
|
516
|
+
}
|
|
517
|
+
export declare enum LogEntry_LogLevel {
|
|
518
|
+
/** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
519
|
+
LOG_LEVEL_UNSPECIFIED = 0,
|
|
520
|
+
/** LOG_LEVEL_TRACE - Trace log level. */
|
|
521
|
+
LOG_LEVEL_TRACE = 1,
|
|
522
|
+
/** LOG_LEVEL_DEBUG - Debug log level. */
|
|
523
|
+
LOG_LEVEL_DEBUG = 2,
|
|
524
|
+
/** LOG_LEVEL_INFO - Info log level. */
|
|
525
|
+
LOG_LEVEL_INFO = 3,
|
|
526
|
+
/** LOG_LEVEL_WARNING - Warning log level. */
|
|
527
|
+
LOG_LEVEL_WARNING = 4,
|
|
528
|
+
/** LOG_LEVEL_ERROR - Error log level. */
|
|
529
|
+
LOG_LEVEL_ERROR = 5,
|
|
530
|
+
/** LOG_LEVEL_CRITICAL - Critical log level. */
|
|
531
|
+
LOG_LEVEL_CRITICAL = 6,
|
|
532
|
+
UNRECOGNIZED = -1
|
|
533
|
+
}
|
|
534
|
+
export declare function logEntry_LogLevelFromJSON(object: any): LogEntry_LogLevel;
|
|
535
|
+
export declare function logEntry_LogLevelToJSON(object: LogEntry_LogLevel): string;
|
|
494
536
|
/** If you use both values at the same time they cancel each other out. */
|
|
495
537
|
export interface MotionInput {
|
|
496
538
|
/** Forward (positive) and backwards (negative) movement. (-1..1). */
|
|
@@ -1143,6 +1185,61 @@ export interface StorageSpace {
|
|
|
1143
1185
|
/** Available bytes of storage space (B). */
|
|
1144
1186
|
freeSpace: number;
|
|
1145
1187
|
}
|
|
1188
|
+
/** Storage partition. */
|
|
1189
|
+
export interface StoragePartition {
|
|
1190
|
+
/** The amount of storage space on the device. */
|
|
1191
|
+
storageSpace: StorageSpace | undefined;
|
|
1192
|
+
/** File system type of the removable storage device. */
|
|
1193
|
+
fileSystemType: string;
|
|
1194
|
+
/** Partition device path */
|
|
1195
|
+
devicePath: string;
|
|
1196
|
+
/** Mount path of the partition. */
|
|
1197
|
+
mountPath: string;
|
|
1198
|
+
}
|
|
1199
|
+
/** Removable storage device. */
|
|
1200
|
+
export interface RemovableStorageDevice {
|
|
1201
|
+
/** USB vendor name. */
|
|
1202
|
+
vendorName: string;
|
|
1203
|
+
/** Model name of the USB storage device. */
|
|
1204
|
+
modelName: string;
|
|
1205
|
+
/** Mount path of the storage device. */
|
|
1206
|
+
devicePath: string;
|
|
1207
|
+
/** Status of the storage device. */
|
|
1208
|
+
status: RemovableStorageDevice_Status;
|
|
1209
|
+
/** Any active error flags for the storage device. */
|
|
1210
|
+
errorFlags: RemovableStorageErrorFlags | undefined;
|
|
1211
|
+
/** List of partitions on the storage device. */
|
|
1212
|
+
partitions: StoragePartition[];
|
|
1213
|
+
}
|
|
1214
|
+
/** Overall status of the storage device. */
|
|
1215
|
+
export declare enum RemovableStorageDevice_Status {
|
|
1216
|
+
/** STATUS_UNSPECIFIED - Unspecified. */
|
|
1217
|
+
STATUS_UNSPECIFIED = 0,
|
|
1218
|
+
/** STATUS_READY - The storage device is valid and ready for use. */
|
|
1219
|
+
STATUS_READY = 1,
|
|
1220
|
+
/** STATUS_FORMATTING - The storage device is being formatted */
|
|
1221
|
+
STATUS_FORMATTING = 2,
|
|
1222
|
+
/** STATUS_ERROR - The storage device is in an error state. */
|
|
1223
|
+
STATUS_ERROR = 3,
|
|
1224
|
+
UNRECOGNIZED = -1
|
|
1225
|
+
}
|
|
1226
|
+
export declare function removableStorageDevice_StatusFromJSON(object: any): RemovableStorageDevice_Status;
|
|
1227
|
+
export declare function removableStorageDevice_StatusToJSON(object: RemovableStorageDevice_Status): string;
|
|
1228
|
+
/** Error flags related to a removable storage device. */
|
|
1229
|
+
export interface RemovableStorageErrorFlags {
|
|
1230
|
+
/** Optional error message to give additional information from the drone to a client about active error flags. */
|
|
1231
|
+
errorMessage: string;
|
|
1232
|
+
/** Device is attached but no partitions are found. */
|
|
1233
|
+
noPartitionsFound: boolean;
|
|
1234
|
+
/** Multiple partitions are found. */
|
|
1235
|
+
multiplePartitionsFound: boolean;
|
|
1236
|
+
/** The wrong file system is found. */
|
|
1237
|
+
wrongFileSystemFound: boolean;
|
|
1238
|
+
/** The device is in read-only mode. */
|
|
1239
|
+
deviceIsReadOnly: boolean;
|
|
1240
|
+
/** Formatting of the device failed. */
|
|
1241
|
+
formattingFailed: boolean;
|
|
1242
|
+
}
|
|
1146
1243
|
/** Compass calibration state. */
|
|
1147
1244
|
export interface CalibrationState {
|
|
1148
1245
|
/** Current calibration status. */
|
|
@@ -1165,7 +1262,7 @@ export interface CalibrationState {
|
|
|
1165
1262
|
/**
|
|
1166
1263
|
* Status of the compass calibration procedure.
|
|
1167
1264
|
*
|
|
1168
|
-
* When calibration is started, the status will indicate the active (
|
|
1265
|
+
* When calibration is started, the status will indicate the active (up facing) axis.
|
|
1169
1266
|
*/
|
|
1170
1267
|
export declare enum CalibrationState_Status {
|
|
1171
1268
|
/** STATUS_UNSPECIFIED - Unspecified status. */
|
|
@@ -1186,7 +1283,7 @@ export declare enum CalibrationState_Status {
|
|
|
1186
1283
|
STATUS_CALIBRATING_Z_POSITIVE = 7,
|
|
1187
1284
|
/** STATUS_CALIBRATING_Z_NEGATIVE - Compass is calibrating and the negative Z axis is active. */
|
|
1188
1285
|
STATUS_CALIBRATING_Z_NEGATIVE = 8,
|
|
1189
|
-
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster
|
|
1286
|
+
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster interference. */
|
|
1190
1287
|
STATUS_CALIBRATING_THRUSTER = 9,
|
|
1191
1288
|
UNRECOGNIZED = -1
|
|
1192
1289
|
}
|
|
@@ -1747,8 +1844,11 @@ export interface CPUInfo {
|
|
|
1747
1844
|
mainQueueLoad: number;
|
|
1748
1845
|
/** Guestport queue load (0..1). */
|
|
1749
1846
|
guestportQueueLoad: number;
|
|
1847
|
+
/** Communication queue load (0..1). */
|
|
1848
|
+
commQueueLoad: number;
|
|
1750
1849
|
}
|
|
1751
1850
|
export declare const BinlogRecord: MessageFns<BinlogRecord>;
|
|
1851
|
+
export declare const LogEntry: MessageFns<LogEntry>;
|
|
1752
1852
|
export declare const MotionInput: MessageFns<MotionInput>;
|
|
1753
1853
|
export declare const Lights: MessageFns<Lights>;
|
|
1754
1854
|
export declare const Laser: MessageFns<Laser>;
|
|
@@ -1800,6 +1900,9 @@ export declare const ControllerHealth: MessageFns<ControllerHealth>;
|
|
|
1800
1900
|
export declare const DiveTime: MessageFns<DiveTime>;
|
|
1801
1901
|
export declare const RecordOn: MessageFns<RecordOn>;
|
|
1802
1902
|
export declare const StorageSpace: MessageFns<StorageSpace>;
|
|
1903
|
+
export declare const StoragePartition: MessageFns<StoragePartition>;
|
|
1904
|
+
export declare const RemovableStorageDevice: MessageFns<RemovableStorageDevice>;
|
|
1905
|
+
export declare const RemovableStorageErrorFlags: MessageFns<RemovableStorageErrorFlags>;
|
|
1803
1906
|
export declare const CalibrationState: MessageFns<CalibrationState>;
|
|
1804
1907
|
export declare const IperfStatus: MessageFns<IperfStatus>;
|
|
1805
1908
|
export declare const NStreamers: MessageFns<NStreamers>;
|
|
@@ -1835,18 +1938,12 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
1835
1938
|
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 {} ? {
|
|
1836
1939
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
1837
1940
|
} : Partial<T>;
|
|
1838
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1839
|
-
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
1840
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
1841
|
-
} & {
|
|
1842
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
1843
|
-
};
|
|
1844
1941
|
interface MessageFns<T> {
|
|
1845
1942
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1846
1943
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1847
1944
|
fromJSON(object: any): T;
|
|
1848
1945
|
toJSON(message: T): unknown;
|
|
1849
|
-
create
|
|
1850
|
-
fromPartial
|
|
1946
|
+
create(base?: DeepPartial<T>): T;
|
|
1947
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
1851
1948
|
}
|
|
1852
1949
|
export {};
|