@blueyerobotics/protocol-definitions 3.2.0-569cf784 → 3.2.0-56e1f510
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/control.d.ts +2 -8
- package/dist/google/protobuf/any.d.ts +2 -8
- package/dist/google/protobuf/duration.d.ts +2 -8
- package/dist/google/protobuf/timestamp.d.ts +2 -8
- package/dist/message_formats.d.ts +43 -8
- package/dist/message_formats.js +216 -3
- package/dist/mission_planning.d.ts +2 -8
- package/dist/req_rep.d.ts +2 -8
- package/dist/telemetry.d.ts +2 -8
- 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/control.d.ts
CHANGED
|
@@ -251,18 +251,12 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
251
251
|
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
252
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
253
253
|
} : 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
254
|
interface MessageFns<T> {
|
|
261
255
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
262
256
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
263
257
|
fromJSON(object: any): T;
|
|
264
258
|
toJSON(message: T): unknown;
|
|
265
|
-
create
|
|
266
|
-
fromPartial
|
|
259
|
+
create(base?: DeepPartial<T>): T;
|
|
260
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
267
261
|
}
|
|
268
262
|
export {};
|
|
@@ -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 {};
|
|
@@ -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 {};
|
|
@@ -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 {};
|
|
@@ -491,6 +491,46 @@ export interface BinlogRecord {
|
|
|
491
491
|
/** Posix CLOCK_MONOTONIC timestamp. */
|
|
492
492
|
clockMonotonic: Date | undefined;
|
|
493
493
|
}
|
|
494
|
+
/**
|
|
495
|
+
* Log entry
|
|
496
|
+
*
|
|
497
|
+
* Used to store ROS log entries in the bez file
|
|
498
|
+
*/
|
|
499
|
+
export interface LogEntry {
|
|
500
|
+
/** Timestamp of the log entry. */
|
|
501
|
+
timestamp: Date | undefined;
|
|
502
|
+
/** Name of the process that generated the log entry. */
|
|
503
|
+
processName: string;
|
|
504
|
+
/** Process ID of the log entry. */
|
|
505
|
+
processId: number;
|
|
506
|
+
/** Thread ID of the log entry. */
|
|
507
|
+
threadId: number;
|
|
508
|
+
/** Source of the log entry (specific class or named logger). */
|
|
509
|
+
source: string;
|
|
510
|
+
/** Log level, info, warning, error, etc. */
|
|
511
|
+
level: LogEntry_LogLevel;
|
|
512
|
+
/** Log message. */
|
|
513
|
+
message: string;
|
|
514
|
+
}
|
|
515
|
+
export declare enum LogEntry_LogLevel {
|
|
516
|
+
/** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
517
|
+
LOG_LEVEL_UNSPECIFIED = 0,
|
|
518
|
+
/** LOG_LEVEL_TRACE - Trace log level. */
|
|
519
|
+
LOG_LEVEL_TRACE = 1,
|
|
520
|
+
/** LOG_LEVEL_DEBUG - Debug log level. */
|
|
521
|
+
LOG_LEVEL_DEBUG = 2,
|
|
522
|
+
/** LOG_LEVEL_INFO - Info log level. */
|
|
523
|
+
LOG_LEVEL_INFO = 3,
|
|
524
|
+
/** LOG_LEVEL_WARNING - Warning log level. */
|
|
525
|
+
LOG_LEVEL_WARNING = 4,
|
|
526
|
+
/** LOG_LEVEL_ERROR - Error log level. */
|
|
527
|
+
LOG_LEVEL_ERROR = 5,
|
|
528
|
+
/** LOG_LEVEL_CRITICAL - Critical log level. */
|
|
529
|
+
LOG_LEVEL_CRITICAL = 6,
|
|
530
|
+
UNRECOGNIZED = -1
|
|
531
|
+
}
|
|
532
|
+
export declare function logEntry_LogLevelFromJSON(object: any): LogEntry_LogLevel;
|
|
533
|
+
export declare function logEntry_LogLevelToJSON(object: LogEntry_LogLevel): string;
|
|
494
534
|
/** If you use both values at the same time they cancel each other out. */
|
|
495
535
|
export interface MotionInput {
|
|
496
536
|
/** Forward (positive) and backwards (negative) movement. (-1..1). */
|
|
@@ -1749,6 +1789,7 @@ export interface CPUInfo {
|
|
|
1749
1789
|
guestportQueueLoad: number;
|
|
1750
1790
|
}
|
|
1751
1791
|
export declare const BinlogRecord: MessageFns<BinlogRecord>;
|
|
1792
|
+
export declare const LogEntry: MessageFns<LogEntry>;
|
|
1752
1793
|
export declare const MotionInput: MessageFns<MotionInput>;
|
|
1753
1794
|
export declare const Lights: MessageFns<Lights>;
|
|
1754
1795
|
export declare const Laser: MessageFns<Laser>;
|
|
@@ -1835,18 +1876,12 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
1835
1876
|
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
1877
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
1837
1878
|
} : 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
1879
|
interface MessageFns<T> {
|
|
1845
1880
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1846
1881
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1847
1882
|
fromJSON(object: any): T;
|
|
1848
1883
|
toJSON(message: T): unknown;
|
|
1849
|
-
create
|
|
1850
|
-
fromPartial
|
|
1884
|
+
create(base?: DeepPartial<T>): T;
|
|
1885
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
1851
1886
|
}
|
|
1852
1887
|
export {};
|
package/dist/message_formats.js
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: message_formats.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = void 0;
|
|
8
|
+
exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.Laser = exports.Lights = exports.MotionInput = exports.LogEntry = exports.BinlogRecord = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CalibrationState_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.LogEntry_LogLevel = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.NavigationSensorID = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.Camera = exports.Framerate = exports.Resolution = exports.PressureSensorType = exports.Model = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
|
|
9
|
+
exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = exports.GuestPortDevice = exports.NavigationSensorStatus = exports.OverlayParameters = exports.CameraParameters = exports.ErrorFlags = exports.DroneInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = exports.Depth = exports.DvlVelocity = exports.DvlTransducer = exports.ResetPositionSettings = exports.PositionEstimate = exports.ForwardDistance = exports.Altitude = exports.MagneticDeclination = exports.Attitude = exports.BatteryBQ40Z50_BatteryChargingEvents = exports.BatteryBQ40Z50_BatterySafetyEvents = exports.BatteryBQ40Z50_BatteryLifetimes_CellVoltages = exports.BatteryBQ40Z50_BatteryLifetimes = exports.BatteryBQ40Z50_BatteryStatus = exports.BatteryBQ40Z50_Temperature = exports.BatteryBQ40Z50_Voltage = exports.BatteryBQ40Z50 = exports.Battery = exports.CanisterHumidity = exports.CanisterTemperature = exports.CPUTemperature = exports.WaterTemperature = exports.PingerConfiguration = exports.WaterDensity = exports.TimeLapseState = void 0;
|
|
10
|
+
exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = exports.GuestPortCurrent = exports.MultibeamServo = void 0;
|
|
11
11
|
exports.intervalTypeFromJSON = intervalTypeFromJSON;
|
|
12
12
|
exports.intervalTypeToJSON = intervalTypeToJSON;
|
|
13
13
|
exports.locationSourceFromJSON = locationSourceFromJSON;
|
|
@@ -54,6 +54,8 @@ exports.guestPortErrorFromJSON = guestPortErrorFromJSON;
|
|
|
54
54
|
exports.guestPortErrorToJSON = guestPortErrorToJSON;
|
|
55
55
|
exports.multibeamFrequencyModeFromJSON = multibeamFrequencyModeFromJSON;
|
|
56
56
|
exports.multibeamFrequencyModeToJSON = multibeamFrequencyModeToJSON;
|
|
57
|
+
exports.logEntry_LogLevelFromJSON = logEntry_LogLevelFromJSON;
|
|
58
|
+
exports.logEntry_LogLevelToJSON = logEntry_LogLevelToJSON;
|
|
57
59
|
exports.pingerConfiguration_MountingDirectionFromJSON = pingerConfiguration_MountingDirectionFromJSON;
|
|
58
60
|
exports.pingerConfiguration_MountingDirectionToJSON = pingerConfiguration_MountingDirectionToJSON;
|
|
59
61
|
exports.batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON;
|
|
@@ -1685,6 +1687,74 @@ function multibeamFrequencyModeToJSON(object) {
|
|
|
1685
1687
|
return "UNRECOGNIZED";
|
|
1686
1688
|
}
|
|
1687
1689
|
}
|
|
1690
|
+
var LogEntry_LogLevel;
|
|
1691
|
+
(function (LogEntry_LogLevel) {
|
|
1692
|
+
/** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
1693
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_UNSPECIFIED"] = 0] = "LOG_LEVEL_UNSPECIFIED";
|
|
1694
|
+
/** LOG_LEVEL_TRACE - Trace log level. */
|
|
1695
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_TRACE"] = 1] = "LOG_LEVEL_TRACE";
|
|
1696
|
+
/** LOG_LEVEL_DEBUG - Debug log level. */
|
|
1697
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_DEBUG"] = 2] = "LOG_LEVEL_DEBUG";
|
|
1698
|
+
/** LOG_LEVEL_INFO - Info log level. */
|
|
1699
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_INFO"] = 3] = "LOG_LEVEL_INFO";
|
|
1700
|
+
/** LOG_LEVEL_WARNING - Warning log level. */
|
|
1701
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_WARNING"] = 4] = "LOG_LEVEL_WARNING";
|
|
1702
|
+
/** LOG_LEVEL_ERROR - Error log level. */
|
|
1703
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_ERROR"] = 5] = "LOG_LEVEL_ERROR";
|
|
1704
|
+
/** LOG_LEVEL_CRITICAL - Critical log level. */
|
|
1705
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_CRITICAL"] = 6] = "LOG_LEVEL_CRITICAL";
|
|
1706
|
+
LogEntry_LogLevel[LogEntry_LogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1707
|
+
})(LogEntry_LogLevel || (exports.LogEntry_LogLevel = LogEntry_LogLevel = {}));
|
|
1708
|
+
function logEntry_LogLevelFromJSON(object) {
|
|
1709
|
+
switch (object) {
|
|
1710
|
+
case 0:
|
|
1711
|
+
case "LOG_LEVEL_UNSPECIFIED":
|
|
1712
|
+
return LogEntry_LogLevel.LOG_LEVEL_UNSPECIFIED;
|
|
1713
|
+
case 1:
|
|
1714
|
+
case "LOG_LEVEL_TRACE":
|
|
1715
|
+
return LogEntry_LogLevel.LOG_LEVEL_TRACE;
|
|
1716
|
+
case 2:
|
|
1717
|
+
case "LOG_LEVEL_DEBUG":
|
|
1718
|
+
return LogEntry_LogLevel.LOG_LEVEL_DEBUG;
|
|
1719
|
+
case 3:
|
|
1720
|
+
case "LOG_LEVEL_INFO":
|
|
1721
|
+
return LogEntry_LogLevel.LOG_LEVEL_INFO;
|
|
1722
|
+
case 4:
|
|
1723
|
+
case "LOG_LEVEL_WARNING":
|
|
1724
|
+
return LogEntry_LogLevel.LOG_LEVEL_WARNING;
|
|
1725
|
+
case 5:
|
|
1726
|
+
case "LOG_LEVEL_ERROR":
|
|
1727
|
+
return LogEntry_LogLevel.LOG_LEVEL_ERROR;
|
|
1728
|
+
case 6:
|
|
1729
|
+
case "LOG_LEVEL_CRITICAL":
|
|
1730
|
+
return LogEntry_LogLevel.LOG_LEVEL_CRITICAL;
|
|
1731
|
+
case -1:
|
|
1732
|
+
case "UNRECOGNIZED":
|
|
1733
|
+
default:
|
|
1734
|
+
return LogEntry_LogLevel.UNRECOGNIZED;
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
function logEntry_LogLevelToJSON(object) {
|
|
1738
|
+
switch (object) {
|
|
1739
|
+
case LogEntry_LogLevel.LOG_LEVEL_UNSPECIFIED:
|
|
1740
|
+
return "LOG_LEVEL_UNSPECIFIED";
|
|
1741
|
+
case LogEntry_LogLevel.LOG_LEVEL_TRACE:
|
|
1742
|
+
return "LOG_LEVEL_TRACE";
|
|
1743
|
+
case LogEntry_LogLevel.LOG_LEVEL_DEBUG:
|
|
1744
|
+
return "LOG_LEVEL_DEBUG";
|
|
1745
|
+
case LogEntry_LogLevel.LOG_LEVEL_INFO:
|
|
1746
|
+
return "LOG_LEVEL_INFO";
|
|
1747
|
+
case LogEntry_LogLevel.LOG_LEVEL_WARNING:
|
|
1748
|
+
return "LOG_LEVEL_WARNING";
|
|
1749
|
+
case LogEntry_LogLevel.LOG_LEVEL_ERROR:
|
|
1750
|
+
return "LOG_LEVEL_ERROR";
|
|
1751
|
+
case LogEntry_LogLevel.LOG_LEVEL_CRITICAL:
|
|
1752
|
+
return "LOG_LEVEL_CRITICAL";
|
|
1753
|
+
case LogEntry_LogLevel.UNRECOGNIZED:
|
|
1754
|
+
default:
|
|
1755
|
+
return "UNRECOGNIZED";
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1688
1758
|
var PingerConfiguration_MountingDirection;
|
|
1689
1759
|
(function (PingerConfiguration_MountingDirection) {
|
|
1690
1760
|
/** MOUNTING_DIRECTION_UNSPECIFIED - Mounting direction is unspecified. */
|
|
@@ -2100,6 +2170,149 @@ exports.BinlogRecord = {
|
|
|
2100
2170
|
return message;
|
|
2101
2171
|
},
|
|
2102
2172
|
};
|
|
2173
|
+
function createBaseLogEntry() {
|
|
2174
|
+
return { timestamp: undefined, processName: "", processId: 0, threadId: 0, source: "", level: 0, message: "" };
|
|
2175
|
+
}
|
|
2176
|
+
exports.LogEntry = {
|
|
2177
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2178
|
+
if (message.timestamp !== undefined) {
|
|
2179
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
|
|
2180
|
+
}
|
|
2181
|
+
if (message.processName !== "") {
|
|
2182
|
+
writer.uint32(18).string(message.processName);
|
|
2183
|
+
}
|
|
2184
|
+
if (message.processId !== 0) {
|
|
2185
|
+
writer.uint32(24).uint64(message.processId);
|
|
2186
|
+
}
|
|
2187
|
+
if (message.threadId !== 0) {
|
|
2188
|
+
writer.uint32(32).uint64(message.threadId);
|
|
2189
|
+
}
|
|
2190
|
+
if (message.source !== "") {
|
|
2191
|
+
writer.uint32(42).string(message.source);
|
|
2192
|
+
}
|
|
2193
|
+
if (message.level !== 0) {
|
|
2194
|
+
writer.uint32(48).int32(message.level);
|
|
2195
|
+
}
|
|
2196
|
+
if (message.message !== "") {
|
|
2197
|
+
writer.uint32(58).string(message.message);
|
|
2198
|
+
}
|
|
2199
|
+
return writer;
|
|
2200
|
+
},
|
|
2201
|
+
decode(input, length) {
|
|
2202
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2203
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2204
|
+
const message = createBaseLogEntry();
|
|
2205
|
+
while (reader.pos < end) {
|
|
2206
|
+
const tag = reader.uint32();
|
|
2207
|
+
switch (tag >>> 3) {
|
|
2208
|
+
case 1: {
|
|
2209
|
+
if (tag !== 10) {
|
|
2210
|
+
break;
|
|
2211
|
+
}
|
|
2212
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2213
|
+
continue;
|
|
2214
|
+
}
|
|
2215
|
+
case 2: {
|
|
2216
|
+
if (tag !== 18) {
|
|
2217
|
+
break;
|
|
2218
|
+
}
|
|
2219
|
+
message.processName = reader.string();
|
|
2220
|
+
continue;
|
|
2221
|
+
}
|
|
2222
|
+
case 3: {
|
|
2223
|
+
if (tag !== 24) {
|
|
2224
|
+
break;
|
|
2225
|
+
}
|
|
2226
|
+
message.processId = longToNumber(reader.uint64());
|
|
2227
|
+
continue;
|
|
2228
|
+
}
|
|
2229
|
+
case 4: {
|
|
2230
|
+
if (tag !== 32) {
|
|
2231
|
+
break;
|
|
2232
|
+
}
|
|
2233
|
+
message.threadId = longToNumber(reader.uint64());
|
|
2234
|
+
continue;
|
|
2235
|
+
}
|
|
2236
|
+
case 5: {
|
|
2237
|
+
if (tag !== 42) {
|
|
2238
|
+
break;
|
|
2239
|
+
}
|
|
2240
|
+
message.source = reader.string();
|
|
2241
|
+
continue;
|
|
2242
|
+
}
|
|
2243
|
+
case 6: {
|
|
2244
|
+
if (tag !== 48) {
|
|
2245
|
+
break;
|
|
2246
|
+
}
|
|
2247
|
+
message.level = reader.int32();
|
|
2248
|
+
continue;
|
|
2249
|
+
}
|
|
2250
|
+
case 7: {
|
|
2251
|
+
if (tag !== 58) {
|
|
2252
|
+
break;
|
|
2253
|
+
}
|
|
2254
|
+
message.message = reader.string();
|
|
2255
|
+
continue;
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2259
|
+
break;
|
|
2260
|
+
}
|
|
2261
|
+
reader.skip(tag & 7);
|
|
2262
|
+
}
|
|
2263
|
+
return message;
|
|
2264
|
+
},
|
|
2265
|
+
fromJSON(object) {
|
|
2266
|
+
return {
|
|
2267
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
2268
|
+
processName: isSet(object.processName) ? gt.String(object.processName) : "",
|
|
2269
|
+
processId: isSet(object.processId) ? gt.Number(object.processId) : 0,
|
|
2270
|
+
threadId: isSet(object.threadId) ? gt.Number(object.threadId) : 0,
|
|
2271
|
+
source: isSet(object.source) ? gt.String(object.source) : "",
|
|
2272
|
+
level: isSet(object.level) ? logEntry_LogLevelFromJSON(object.level) : 0,
|
|
2273
|
+
message: isSet(object.message) ? gt.String(object.message) : "",
|
|
2274
|
+
};
|
|
2275
|
+
},
|
|
2276
|
+
toJSON(message) {
|
|
2277
|
+
const obj = {};
|
|
2278
|
+
if (message.timestamp !== undefined) {
|
|
2279
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
2280
|
+
}
|
|
2281
|
+
if (message.processName !== "") {
|
|
2282
|
+
obj.processName = message.processName;
|
|
2283
|
+
}
|
|
2284
|
+
if (message.processId !== 0) {
|
|
2285
|
+
obj.processId = Math.round(message.processId);
|
|
2286
|
+
}
|
|
2287
|
+
if (message.threadId !== 0) {
|
|
2288
|
+
obj.threadId = Math.round(message.threadId);
|
|
2289
|
+
}
|
|
2290
|
+
if (message.source !== "") {
|
|
2291
|
+
obj.source = message.source;
|
|
2292
|
+
}
|
|
2293
|
+
if (message.level !== 0) {
|
|
2294
|
+
obj.level = logEntry_LogLevelToJSON(message.level);
|
|
2295
|
+
}
|
|
2296
|
+
if (message.message !== "") {
|
|
2297
|
+
obj.message = message.message;
|
|
2298
|
+
}
|
|
2299
|
+
return obj;
|
|
2300
|
+
},
|
|
2301
|
+
create(base) {
|
|
2302
|
+
return exports.LogEntry.fromPartial(base ?? {});
|
|
2303
|
+
},
|
|
2304
|
+
fromPartial(object) {
|
|
2305
|
+
const message = createBaseLogEntry();
|
|
2306
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
2307
|
+
message.processName = object.processName ?? "";
|
|
2308
|
+
message.processId = object.processId ?? 0;
|
|
2309
|
+
message.threadId = object.threadId ?? 0;
|
|
2310
|
+
message.source = object.source ?? "";
|
|
2311
|
+
message.level = object.level ?? 0;
|
|
2312
|
+
message.message = object.message ?? "";
|
|
2313
|
+
return message;
|
|
2314
|
+
},
|
|
2315
|
+
};
|
|
2103
2316
|
function createBaseMotionInput() {
|
|
2104
2317
|
return { surge: 0, sway: 0, heave: 0, roll: 0, pitch: 0, yaw: 0, slow: 0, boost: 0 };
|
|
2105
2318
|
}
|
|
@@ -335,18 +335,12 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
335
335
|
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 {} ? {
|
|
336
336
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
337
337
|
} : Partial<T>;
|
|
338
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
339
|
-
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
340
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
341
|
-
} & {
|
|
342
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
343
|
-
};
|
|
344
338
|
interface MessageFns<T> {
|
|
345
339
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
346
340
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
347
341
|
fromJSON(object: any): T;
|
|
348
342
|
toJSON(message: T): unknown;
|
|
349
|
-
create
|
|
350
|
-
fromPartial
|
|
343
|
+
create(base?: DeepPartial<T>): T;
|
|
344
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
351
345
|
}
|
|
352
346
|
export {};
|
package/dist/req_rep.d.ts
CHANGED
|
@@ -251,18 +251,12 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
251
251
|
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
252
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
253
253
|
} : 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
254
|
interface MessageFns<T> {
|
|
261
255
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
262
256
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
263
257
|
fromJSON(object: any): T;
|
|
264
258
|
toJSON(message: T): unknown;
|
|
265
|
-
create
|
|
266
|
-
fromPartial
|
|
259
|
+
create(base?: DeepPartial<T>): T;
|
|
260
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
267
261
|
}
|
|
268
262
|
export {};
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -342,18 +342,12 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
342
342
|
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 {} ? {
|
|
343
343
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
344
344
|
} : Partial<T>;
|
|
345
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
346
|
-
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
347
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
348
|
-
} & {
|
|
349
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
350
|
-
};
|
|
351
345
|
interface MessageFns<T> {
|
|
352
346
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
353
347
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
354
348
|
fromJSON(object: any): T;
|
|
355
349
|
toJSON(message: T): unknown;
|
|
356
|
-
create
|
|
357
|
-
fromPartial
|
|
350
|
+
create(base?: DeepPartial<T>): T;
|
|
351
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
358
352
|
}
|
|
359
353
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blueyerobotics/protocol-definitions",
|
|
3
|
-
"version": "3.2.0-
|
|
3
|
+
"version": "3.2.0-56e1f510",
|
|
4
|
+
"license": "LGPL-3.0-only",
|
|
5
|
+
"description": "TypeScript definitions for Blueye Robotics protocols",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/BluEye-Robotics/ProtocolDefinitions.git"
|
|
9
|
+
},
|
|
4
10
|
"main": "dist/index.js",
|
|
5
11
|
"types": "dist/index.d.ts",
|
|
6
12
|
"files": ["dist"],
|