@blueyerobotics/protocol-definitions 3.2.0-d9b151ea → 3.2.0-db84868b
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/dist/control.d.ts +43 -4
- package/dist/control.js +286 -17
- package/dist/message_formats.d.ts +387 -8
- package/dist/message_formats.js +2451 -57
- package/dist/mission_planning.d.ts +54 -0
- package/dist/mission_planning.js +243 -1
- package/dist/req_rep.d.ts +24 -0
- package/dist/req_rep.js +208 -1
- package/dist/telemetry.d.ts +44 -3
- package/dist/telemetry.js +250 -8
- package/package.json +1 -1
|
@@ -136,6 +136,8 @@ export declare enum NotificationType {
|
|
|
136
136
|
NOTIFICATION_TYPE_DVL_HIGH_TEMPERATURE_DETECTED = 31,
|
|
137
137
|
/** NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED - DVL thermal protection mode detected. */
|
|
138
138
|
NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED = 32,
|
|
139
|
+
/** NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED - Video partition not mounted. */
|
|
140
|
+
NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED = 33,
|
|
139
141
|
UNRECOGNIZED = -1
|
|
140
142
|
}
|
|
141
143
|
export declare function notificationTypeFromJSON(object: any): NotificationType;
|
|
@@ -184,6 +186,8 @@ export declare enum Model {
|
|
|
184
186
|
MODEL_X3 = 3,
|
|
185
187
|
/** MODEL_X3_ULTRA - Blueye X3 Ultra. */
|
|
186
188
|
MODEL_X3_ULTRA = 6,
|
|
189
|
+
/** MODEL_X7 - Blueye X7. */
|
|
190
|
+
MODEL_X7 = 7,
|
|
187
191
|
/** MODEL_NEXT - Blueye ? */
|
|
188
192
|
MODEL_NEXT = 5,
|
|
189
193
|
UNRECOGNIZED = -1
|
|
@@ -218,11 +222,18 @@ export declare enum Resolution {
|
|
|
218
222
|
RESOLUTION_FULLHD_1080P = 1,
|
|
219
223
|
/** RESOLUTION_UHD_4K - 4K Ultra HD (3840x2160, Only supported on X3 Ultra). */
|
|
220
224
|
RESOLUTION_UHD_4K = 3,
|
|
225
|
+
/** RESOLUTION_QHD_2K - 2K QHD (2560x1440, Only supported on X3 Ultra). */
|
|
226
|
+
RESOLUTION_QHD_2K = 5,
|
|
221
227
|
UNRECOGNIZED = -1
|
|
222
228
|
}
|
|
223
229
|
export declare function resolutionFromJSON(object: any): Resolution;
|
|
224
230
|
export declare function resolutionToJSON(object: Resolution): string;
|
|
225
|
-
/**
|
|
231
|
+
/**
|
|
232
|
+
* Available camera frame rates.
|
|
233
|
+
*
|
|
234
|
+
* If the requested frame rate is higher than what is supported at the current resolution,
|
|
235
|
+
* the frame rate will be reduced while the resolution is respected.
|
|
236
|
+
*/
|
|
226
237
|
export declare enum Framerate {
|
|
227
238
|
/** FRAMERATE_UNSPECIFIED - Framerate not specified. */
|
|
228
239
|
FRAMERATE_UNSPECIFIED = 0,
|
|
@@ -230,6 +241,8 @@ export declare enum Framerate {
|
|
|
230
241
|
FRAMERATE_FPS_30 = 1,
|
|
231
242
|
/** FRAMERATE_FPS_25 - 25 frames per second. (Only supported on Pioneer/Pro/X1/X3) */
|
|
232
243
|
FRAMERATE_FPS_25 = 2,
|
|
244
|
+
/** FRAMERATE_FPS_60 - 60 frames per second. (Only supported on X3 Ultra at QHD, 1080p and 720p) */
|
|
245
|
+
FRAMERATE_FPS_60 = 3,
|
|
233
246
|
UNRECOGNIZED = -1
|
|
234
247
|
}
|
|
235
248
|
export declare function framerateFromJSON(object: any): Framerate;
|
|
@@ -257,6 +270,18 @@ export declare enum StreamingProtocol {
|
|
|
257
270
|
}
|
|
258
271
|
export declare function streamingProtocolFromJSON(object: any): StreamingProtocol;
|
|
259
272
|
export declare function streamingProtocolToJSON(object: StreamingProtocol): string;
|
|
273
|
+
/** Recording video codec. */
|
|
274
|
+
export declare enum RecordingCodec {
|
|
275
|
+
/** RECORDING_CODEC_UNSPECIFIED - Use platform default (H.264). */
|
|
276
|
+
RECORDING_CODEC_UNSPECIFIED = 0,
|
|
277
|
+
/** RECORDING_CODEC_H264 - H.264/AVC codec. Wider compatibility with players/editors. */
|
|
278
|
+
RECORDING_CODEC_H264 = 1,
|
|
279
|
+
/** RECORDING_CODEC_H265 - H.265/HEVC codec. Better compression, limited compatibility. Ultra only. */
|
|
280
|
+
RECORDING_CODEC_H265 = 2,
|
|
281
|
+
UNRECOGNIZED = -1
|
|
282
|
+
}
|
|
283
|
+
export declare function recordingCodecFromJSON(object: any): RecordingCodec;
|
|
284
|
+
export declare function recordingCodecToJSON(object: RecordingCodec): string;
|
|
260
285
|
/** Available temperature units. */
|
|
261
286
|
export declare enum TemperatureUnit {
|
|
262
287
|
/** TEMPERATURE_UNIT_UNSPECIFIED - Temperature unit not specified. */
|
|
@@ -323,6 +348,8 @@ export declare enum FontSize {
|
|
|
323
348
|
FONT_SIZE_PX35 = 5,
|
|
324
349
|
/** FONT_SIZE_PX40 - 40 px. */
|
|
325
350
|
FONT_SIZE_PX40 = 6,
|
|
351
|
+
/** FONT_SIZE_PX50 - 50 px. */
|
|
352
|
+
FONT_SIZE_PX50 = 7,
|
|
326
353
|
UNRECOGNIZED = -1
|
|
327
354
|
}
|
|
328
355
|
export declare function fontSizeFromJSON(object: any): FontSize;
|
|
@@ -425,6 +452,8 @@ export declare enum GuestPortDeviceID {
|
|
|
425
452
|
GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2 = 46,
|
|
426
453
|
/** GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT - Cerulean Omniscan 450 Compact. */
|
|
427
454
|
GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT = 47,
|
|
455
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER - Blueye Scaling Laser. */
|
|
456
|
+
GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER = 48,
|
|
428
457
|
UNRECOGNIZED = -1
|
|
429
458
|
}
|
|
430
459
|
export declare function guestPortDeviceIDFromJSON(object: any): GuestPortDeviceID;
|
|
@@ -510,6 +539,34 @@ export declare enum MultibeamFrequencyMode {
|
|
|
510
539
|
}
|
|
511
540
|
export declare function multibeamFrequencyModeFromJSON(object: any): MultibeamFrequencyMode;
|
|
512
541
|
export declare function multibeamFrequencyModeToJSON(object: MultibeamFrequencyMode): string;
|
|
542
|
+
/** Thermal zone identifiers. */
|
|
543
|
+
export declare enum ThermalZoneId {
|
|
544
|
+
/** THERMAL_ZONE_ID_UNSPECIFIED - Unspecified thermal zone. */
|
|
545
|
+
THERMAL_ZONE_ID_UNSPECIFIED = 0,
|
|
546
|
+
/** THERMAL_ZONE_ID_TJ - Junction temperature (Tj). */
|
|
547
|
+
THERMAL_ZONE_ID_TJ = 1,
|
|
548
|
+
/** THERMAL_ZONE_ID_CANISTER - Canister temperature. */
|
|
549
|
+
THERMAL_ZONE_ID_CANISTER = 2,
|
|
550
|
+
/** THERMAL_ZONE_ID_CPU - CPU thermal zone. */
|
|
551
|
+
THERMAL_ZONE_ID_CPU = 3,
|
|
552
|
+
/** THERMAL_ZONE_ID_GPU - GPU thermal zone. */
|
|
553
|
+
THERMAL_ZONE_ID_GPU = 4,
|
|
554
|
+
/** THERMAL_ZONE_ID_CV0 - Vision accelerator 0 thermal zone. */
|
|
555
|
+
THERMAL_ZONE_ID_CV0 = 5,
|
|
556
|
+
/** THERMAL_ZONE_ID_CV1 - Vision accelerator 1 thermal zone. */
|
|
557
|
+
THERMAL_ZONE_ID_CV1 = 6,
|
|
558
|
+
/** THERMAL_ZONE_ID_CV2 - Vision accelerator 2 thermal zone. */
|
|
559
|
+
THERMAL_ZONE_ID_CV2 = 7,
|
|
560
|
+
/** THERMAL_ZONE_ID_SOC0 - SoC 0 thermal zone. */
|
|
561
|
+
THERMAL_ZONE_ID_SOC0 = 8,
|
|
562
|
+
/** THERMAL_ZONE_ID_SOC1 - SoC 1 thermal zone. */
|
|
563
|
+
THERMAL_ZONE_ID_SOC1 = 9,
|
|
564
|
+
/** THERMAL_ZONE_ID_SOC2 - SoC 2 thermal zone. */
|
|
565
|
+
THERMAL_ZONE_ID_SOC2 = 10,
|
|
566
|
+
UNRECOGNIZED = -1
|
|
567
|
+
}
|
|
568
|
+
export declare function thermalZoneIdFromJSON(object: any): ThermalZoneId;
|
|
569
|
+
export declare function thermalZoneIdToJSON(object: ThermalZoneId): string;
|
|
513
570
|
/**
|
|
514
571
|
* Wrapper message for each entry in the drone telemetry logfile.
|
|
515
572
|
*
|
|
@@ -643,6 +700,46 @@ export interface Lights {
|
|
|
643
700
|
export interface Laser {
|
|
644
701
|
/** Laser intensity, any value above 0 turns the laser on (0..1). */
|
|
645
702
|
value: number;
|
|
703
|
+
/** Modulate the laser at 5Hz for tracking. Only available on Ultra. */
|
|
704
|
+
modulated: boolean;
|
|
705
|
+
}
|
|
706
|
+
/** Point in 2D space. */
|
|
707
|
+
export interface Point2D {
|
|
708
|
+
/** X coordinate of the point (px). */
|
|
709
|
+
x: number;
|
|
710
|
+
/** Y coordinate of the point (px). */
|
|
711
|
+
y: number;
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Message representing the detection of scaling lasers in the main camera.
|
|
715
|
+
*
|
|
716
|
+
* The message contains the centroids of the detected dots, the distance between them in pixels,
|
|
717
|
+
* and the confidence of the detection. The dots are detected through temporal DFT analysis of
|
|
718
|
+
* 5 Hz laser modulation, isolating flickering pixels from the static scene background.
|
|
719
|
+
*
|
|
720
|
+
* Only available on Ultra.
|
|
721
|
+
*/
|
|
722
|
+
export interface LaserDetection {
|
|
723
|
+
/** True if the laser is detected by the drone. */
|
|
724
|
+
detected: boolean;
|
|
725
|
+
/** First dot centroid (leftmost). */
|
|
726
|
+
dot1: Point2D | undefined;
|
|
727
|
+
/** Second dot centroid (rightmost). */
|
|
728
|
+
dot2: Point2D | undefined;
|
|
729
|
+
/** Distance between dots in pixels. */
|
|
730
|
+
pixelDistance: number;
|
|
731
|
+
/** Confidence of the detection (0..1). */
|
|
732
|
+
confidence: number;
|
|
733
|
+
/** Source frame width. */
|
|
734
|
+
imageWidth: number;
|
|
735
|
+
/** Source frame height. */
|
|
736
|
+
imageHeight: number;
|
|
737
|
+
/** Real world distance between the two laser dots (m). */
|
|
738
|
+
laserWidth: number;
|
|
739
|
+
/** Distance after lens undistortion (px). */
|
|
740
|
+
correctedPixelDistance: number;
|
|
741
|
+
/** Estimated subject distance (m). */
|
|
742
|
+
estimatedDistance: number;
|
|
646
743
|
}
|
|
647
744
|
/** Latitude and longitude position in WGS 84 decimal degrees format. */
|
|
648
745
|
export interface LatLongPosition {
|
|
@@ -829,7 +926,7 @@ export interface WaterTemperature {
|
|
|
829
926
|
/** Water temperature (°C). */
|
|
830
927
|
value: number;
|
|
831
928
|
}
|
|
832
|
-
/** CPU temperature. */
|
|
929
|
+
/** CPU temperature (deprecated, use SystemPerformanceInfo.thermal_zones instead). */
|
|
833
930
|
export interface CPUTemperature {
|
|
834
931
|
/** CPU temperature (°C). */
|
|
835
932
|
value: number;
|
|
@@ -1402,6 +1499,31 @@ export interface TiltVelocity {
|
|
|
1402
1499
|
/**
|
|
1403
1500
|
* Information about the drone.
|
|
1404
1501
|
*
|
|
1502
|
+
* Information about a loaded computer vision model.
|
|
1503
|
+
*/
|
|
1504
|
+
export interface CvModelInfo {
|
|
1505
|
+
/** Human-readable model name (from model_meta.json). */
|
|
1506
|
+
name: string;
|
|
1507
|
+
/** Type of CV model. */
|
|
1508
|
+
type: CvModelInfo_ModelType;
|
|
1509
|
+
/** Whether the model is currently running. */
|
|
1510
|
+
running: boolean;
|
|
1511
|
+
/** Execution provider (e.g. "cuda", "tensorrt"). */
|
|
1512
|
+
device: string;
|
|
1513
|
+
/** Package directory name (e.g. "tinyyolov2_package"). Stable identifier. */
|
|
1514
|
+
packageId: string;
|
|
1515
|
+
/** Class names the model can detect (indexed by class_id). */
|
|
1516
|
+
labels: string[];
|
|
1517
|
+
}
|
|
1518
|
+
export declare enum CvModelInfo_ModelType {
|
|
1519
|
+
MODEL_TYPE_UNSPECIFIED = 0,
|
|
1520
|
+
MODEL_TYPE_DETECTION = 1,
|
|
1521
|
+
MODEL_TYPE_SOT = 2,
|
|
1522
|
+
UNRECOGNIZED = -1
|
|
1523
|
+
}
|
|
1524
|
+
export declare function cvModelInfo_ModelTypeFromJSON(object: any): CvModelInfo_ModelType;
|
|
1525
|
+
export declare function cvModelInfo_ModelTypeToJSON(object: CvModelInfo_ModelType): string;
|
|
1526
|
+
/**
|
|
1405
1527
|
* This message contains serial numbers and version information for
|
|
1406
1528
|
* internal components in the drone. Primarily used for diagnostics, or to
|
|
1407
1529
|
* determine the origin of a logfile.
|
|
@@ -1429,6 +1551,8 @@ export interface DroneInfo {
|
|
|
1429
1551
|
gp: GuestPortInfo | undefined;
|
|
1430
1552
|
/** Type of depth sensor that is connected to the drone. */
|
|
1431
1553
|
depthSensor: PressureSensorType;
|
|
1554
|
+
/** List of loaded computer vision models. */
|
|
1555
|
+
cvModels: CvModelInfo[];
|
|
1432
1556
|
}
|
|
1433
1557
|
/** Known error states for the drone. */
|
|
1434
1558
|
export interface ErrorFlags {
|
|
@@ -1579,6 +1703,13 @@ export interface CameraParameters {
|
|
|
1579
1703
|
* The Blueye App allows users to set values between 500 and 1460.
|
|
1580
1704
|
*/
|
|
1581
1705
|
mtuSize: number;
|
|
1706
|
+
/** Recording video codec. If unset, uses platform default. */
|
|
1707
|
+
recordingCodec: RecordingCodec;
|
|
1708
|
+
/**
|
|
1709
|
+
* Recording bitrate in bits/sec. If 0 or unset, a default is computed based
|
|
1710
|
+
* on resolution, framerate, and encoding. Set explicitly to override.
|
|
1711
|
+
*/
|
|
1712
|
+
recordingBitrate: number;
|
|
1582
1713
|
}
|
|
1583
1714
|
/**
|
|
1584
1715
|
* Overlay parameters.
|
|
@@ -1944,7 +2075,7 @@ export interface PersistentStorageSettings {
|
|
|
1944
2075
|
accCalibration: boolean;
|
|
1945
2076
|
}
|
|
1946
2077
|
/**
|
|
1947
|
-
* CPU information.
|
|
2078
|
+
* CPU information (deprecated, use SystemPerformanceInfo instead).
|
|
1948
2079
|
*
|
|
1949
2080
|
* Contains information about the CPU load and memory usage of the drone.
|
|
1950
2081
|
*/
|
|
@@ -1960,6 +2091,127 @@ export interface CPUInfo {
|
|
|
1960
2091
|
/** Communication queue load (0..1). */
|
|
1961
2092
|
commQueueLoad: number;
|
|
1962
2093
|
}
|
|
2094
|
+
/** Per-core CPU utilization. */
|
|
2095
|
+
export interface CpuCoreLoad {
|
|
2096
|
+
/** Core index (0-based). */
|
|
2097
|
+
coreIndex: number;
|
|
2098
|
+
/** Core load (0..1). */
|
|
2099
|
+
load: number;
|
|
2100
|
+
/** Current clock frequency (MHz). */
|
|
2101
|
+
frequencyMhz: number;
|
|
2102
|
+
}
|
|
2103
|
+
/** GPU utilization and status. */
|
|
2104
|
+
export interface GpuInfo {
|
|
2105
|
+
/** GPU load (0..1). */
|
|
2106
|
+
load: number;
|
|
2107
|
+
/** Current GPU clock frequency (MHz). */
|
|
2108
|
+
frequencyMhz: number;
|
|
2109
|
+
}
|
|
2110
|
+
/**
|
|
2111
|
+
* Deep Learning Accelerator (DLA) utilization.
|
|
2112
|
+
*
|
|
2113
|
+
* Jetson Orin NX has two DLA engines used for inference offload.
|
|
2114
|
+
*/
|
|
2115
|
+
export interface DlaInfo {
|
|
2116
|
+
/** DLA engine index (0-based). */
|
|
2117
|
+
engineIndex: number;
|
|
2118
|
+
/** DLA engine load (0..1). */
|
|
2119
|
+
load: number;
|
|
2120
|
+
/** Core clock frequency (MHz). 0 when disabled. */
|
|
2121
|
+
frequencyMhz: number;
|
|
2122
|
+
/** True when the DLA engine is actively processing. */
|
|
2123
|
+
enabled: boolean;
|
|
2124
|
+
/** Falcon microcontroller clock frequency (MHz). 0 when disabled. */
|
|
2125
|
+
falconFrequencyMhz: number;
|
|
2126
|
+
}
|
|
2127
|
+
/** System memory information. */
|
|
2128
|
+
export interface MemoryInfo {
|
|
2129
|
+
/** Total RAM (bytes). */
|
|
2130
|
+
totalBytes: number;
|
|
2131
|
+
/** Used RAM (bytes). */
|
|
2132
|
+
usedBytes: number;
|
|
2133
|
+
/** Cached RAM (bytes). */
|
|
2134
|
+
cachedBytes: number;
|
|
2135
|
+
/** Memory bus utilization (0..1). i.MX only. */
|
|
2136
|
+
busLoad: number;
|
|
2137
|
+
}
|
|
2138
|
+
/** Thermal zone reading. */
|
|
2139
|
+
export interface ThermalZone {
|
|
2140
|
+
/** Thermal zone identifier. */
|
|
2141
|
+
zone: ThermalZoneId;
|
|
2142
|
+
/** Temperature (°C). */
|
|
2143
|
+
temperature: number;
|
|
2144
|
+
}
|
|
2145
|
+
/** Video codec engine status. */
|
|
2146
|
+
export interface VideoCodecInfo {
|
|
2147
|
+
/** Jetson only (NVENC/NVDEC/NVJPG/VIC devfreq). */
|
|
2148
|
+
encoderActive: boolean;
|
|
2149
|
+
/** Video encoder clock frequency (MHz). */
|
|
2150
|
+
encoderFrequencyMhz: number;
|
|
2151
|
+
/** Video decoder (NVDEC) is active. */
|
|
2152
|
+
decoderActive: boolean;
|
|
2153
|
+
/** Video decoder clock frequency (MHz). */
|
|
2154
|
+
decoderFrequencyMhz: number;
|
|
2155
|
+
/** JPEG engine (NVJPG) is active. */
|
|
2156
|
+
nvjpgActive: boolean;
|
|
2157
|
+
/** JPEG engine clock frequency (MHz). */
|
|
2158
|
+
nvjpgFrequencyMhz: number;
|
|
2159
|
+
/** Video Image Compositor (VIC) is active. */
|
|
2160
|
+
vicActive: boolean;
|
|
2161
|
+
/** VIC clock frequency (MHz). */
|
|
2162
|
+
vicFrequencyMhz: number;
|
|
2163
|
+
/** i.MX only (CODA VPU). */
|
|
2164
|
+
vpuActive: boolean;
|
|
2165
|
+
/** VPU AXI clock frequency (MHz). */
|
|
2166
|
+
vpuFrequencyMhz: number;
|
|
2167
|
+
/** Cumulative VPU_CODEC_IRQ count. */
|
|
2168
|
+
vpuCodecIrqCount: number;
|
|
2169
|
+
/** Cumulative VPU_JPG_IRQ count. */
|
|
2170
|
+
vpuJpgIrqCount: number;
|
|
2171
|
+
/** Jetson only (host1x actmon engine utilization, 0..1). */
|
|
2172
|
+
encoderLoad: number;
|
|
2173
|
+
/** Video decoder (NVDEC) utilization (0..1). */
|
|
2174
|
+
decoderLoad: number;
|
|
2175
|
+
/** JPEG engine (NVJPG) utilization (0..1). */
|
|
2176
|
+
nvjpgLoad: number;
|
|
2177
|
+
/** Video Image Compositor (VIC) utilization (0..1). */
|
|
2178
|
+
vicLoad: number;
|
|
2179
|
+
}
|
|
2180
|
+
/**
|
|
2181
|
+
* System performance information.
|
|
2182
|
+
*
|
|
2183
|
+
* Comprehensive performance metrics for the drone's compute platform.
|
|
2184
|
+
* Covers CPU, GPU, DLA, memory, thermals, and video codec utilization.
|
|
2185
|
+
* Fields not applicable to a platform are left at their zero/empty defaults.
|
|
2186
|
+
*/
|
|
2187
|
+
export interface SystemPerformanceInfo {
|
|
2188
|
+
/** Per-core CPU utilization. */
|
|
2189
|
+
cpuCores: CpuCoreLoad[];
|
|
2190
|
+
/** Mean CPU utilization across all cores (0..1). */
|
|
2191
|
+
cpuUtilization: number;
|
|
2192
|
+
/** GPU utilization. */
|
|
2193
|
+
gpu: GpuInfo | undefined;
|
|
2194
|
+
/** DLA engine utilization (Jetson only). */
|
|
2195
|
+
dlaEngines: DlaInfo[];
|
|
2196
|
+
/** RAM usage. */
|
|
2197
|
+
memory: MemoryInfo | undefined;
|
|
2198
|
+
/** All thermal zone readings. */
|
|
2199
|
+
thermalZones: ThermalZone[];
|
|
2200
|
+
/** Video encoder/decoder status. */
|
|
2201
|
+
videoCodec: VideoCodecInfo | undefined;
|
|
2202
|
+
/** Main queue load (0..1). */
|
|
2203
|
+
mainQueueLoad: number;
|
|
2204
|
+
/** Guestport queue load (0..1). */
|
|
2205
|
+
guestportQueueLoad: number;
|
|
2206
|
+
/** Communication queue load (0..1). */
|
|
2207
|
+
commQueueLoad: number;
|
|
2208
|
+
/** Camera queue load (0..1). */
|
|
2209
|
+
cameraQueueLoad: number;
|
|
2210
|
+
/** Overlay queue load (0..1). */
|
|
2211
|
+
overlayQueueLoad: number;
|
|
2212
|
+
/** Position observer queue load (0..1). */
|
|
2213
|
+
positionObserverQueueLoad: number;
|
|
2214
|
+
}
|
|
1963
2215
|
/**
|
|
1964
2216
|
* Surface Unit battery information.
|
|
1965
2217
|
*
|
|
@@ -1991,13 +2243,123 @@ export interface SurfaceUnitVersionInfo {
|
|
|
1991
2243
|
/** Surface Unit firmware version (x.y.z). */
|
|
1992
2244
|
version: string;
|
|
1993
2245
|
}
|
|
1994
|
-
/**
|
|
1995
|
-
|
|
1996
|
-
|
|
2246
|
+
/**
|
|
2247
|
+
* Bounding box for object detection.
|
|
2248
|
+
*
|
|
2249
|
+
* Coordinates are in pixels relative to the camera image,
|
|
2250
|
+
* where (x, y) is the top-left corner of the bounding box.
|
|
2251
|
+
*/
|
|
2252
|
+
export interface BoundingBox {
|
|
2253
|
+
/** Horizontal offset of the top-left corner (px). */
|
|
2254
|
+
x: number;
|
|
2255
|
+
/** Vertical offset of the top-left corner (px). */
|
|
2256
|
+
y: number;
|
|
2257
|
+
/** Width of the bounding box (px). */
|
|
2258
|
+
width: number;
|
|
2259
|
+
/** Height of the bounding box (px). */
|
|
2260
|
+
height: number;
|
|
2261
|
+
}
|
|
2262
|
+
/**
|
|
2263
|
+
* RLE-encoded binary segmentation mask relative to the bounding box.
|
|
2264
|
+
*
|
|
2265
|
+
* The mask bitmap has dimensions (mask_width x mask_height) covering the
|
|
2266
|
+
* detection's bounding box area. The counts field stores run-length encoded
|
|
2267
|
+
* data as packed uint16 little-endian: alternating background/foreground
|
|
2268
|
+
* pixel runs starting with background.
|
|
2269
|
+
*/
|
|
2270
|
+
export interface SegmentationMask {
|
|
2271
|
+
/** Width of the RLE bitmap. */
|
|
2272
|
+
maskWidth: number;
|
|
2273
|
+
/** Height of the RLE bitmap. */
|
|
2274
|
+
maskHeight: number;
|
|
2275
|
+
/** RLE counts as packed uint16 little-endian. */
|
|
2276
|
+
counts: Uint8Array;
|
|
2277
|
+
}
|
|
2278
|
+
/** A single object detection from a computer vision model. */
|
|
2279
|
+
export interface ObjectDetection {
|
|
2280
|
+
/** Bounding box of the detected object. */
|
|
2281
|
+
boundingBox: BoundingBox | undefined;
|
|
2282
|
+
/** Detection confidence score (0..1). */
|
|
2283
|
+
confidence: number;
|
|
2284
|
+
/** Numeric class identifier from the model. */
|
|
2285
|
+
classId: number;
|
|
2286
|
+
/** Human-readable class name. */
|
|
2287
|
+
className: string;
|
|
2288
|
+
/** Unique ID for tracking the same object across frames. */
|
|
2289
|
+
trackingId: number;
|
|
2290
|
+
/** Instance segmentation mask (absent if model has no segmentation). */
|
|
2291
|
+
mask: SegmentationMask | undefined;
|
|
2292
|
+
}
|
|
2293
|
+
/** A list of object detections from a single model for a single video frame. */
|
|
2294
|
+
export interface ModelDetections {
|
|
2295
|
+
/** List of detections in the frame. */
|
|
2296
|
+
detections: ObjectDetection[];
|
|
2297
|
+
/** Which camera the detections are from. */
|
|
2298
|
+
camera: Camera;
|
|
2299
|
+
/** Width of the source image (px). */
|
|
2300
|
+
imageWidth: number;
|
|
2301
|
+
/** Height of the source image (px). */
|
|
2302
|
+
imageHeight: number;
|
|
2303
|
+
/** Name of the computer vision model that produced the detections. */
|
|
2304
|
+
modelName: string;
|
|
2305
|
+
}
|
|
2306
|
+
/** Generic filter settings. */
|
|
2307
|
+
export interface FilterMessage {
|
|
2308
|
+
/** If the filter is enabled. */
|
|
1997
2309
|
enabled: boolean;
|
|
1998
|
-
/** Intensity of the
|
|
2310
|
+
/** Intensity of the filter (0..1). */
|
|
1999
2311
|
intensity: number;
|
|
2000
2312
|
}
|
|
2313
|
+
/**
|
|
2314
|
+
* Digital pan, tilt, and zoom state for the main camera.
|
|
2315
|
+
*
|
|
2316
|
+
* Only supported on X3 Ultra. Controls digital (not mechanical) zoom.
|
|
2317
|
+
*/
|
|
2318
|
+
export interface CameraPanTiltZoom {
|
|
2319
|
+
/** Horizontal pan (-1.0..1.0), where 0.0 is center. */
|
|
2320
|
+
pan: number;
|
|
2321
|
+
/** Vertical tilt (-1.0..1.0), where 0.0 is center. */
|
|
2322
|
+
tilt: number;
|
|
2323
|
+
/** Zoom level (0.0..1.0), where 0.0 is no zoom and 1.0 is maximum zoom. */
|
|
2324
|
+
zoom: number;
|
|
2325
|
+
}
|
|
2326
|
+
/**
|
|
2327
|
+
* Information about the operator controlling the drone.
|
|
2328
|
+
*
|
|
2329
|
+
* Used to identify who started a dive, for reporting and when importing
|
|
2330
|
+
* dives to Blueye Cloud.
|
|
2331
|
+
*/
|
|
2332
|
+
export interface OperatorInfo {
|
|
2333
|
+
/** Full name of the operator. */
|
|
2334
|
+
name: string;
|
|
2335
|
+
/** E-mail address of the operator. */
|
|
2336
|
+
email: string;
|
|
2337
|
+
}
|
|
2338
|
+
/** Single-object tracking (SOT) state reported by the computer vision pipeline. */
|
|
2339
|
+
export interface SotState {
|
|
2340
|
+
/** Current tracking state. */
|
|
2341
|
+
state: SotState_State;
|
|
2342
|
+
/** Current tracked bounding box (valid when TRACKING). */
|
|
2343
|
+
boundingBox: BoundingBox | undefined;
|
|
2344
|
+
/** Width of the source frame in pixels. */
|
|
2345
|
+
imageWidth: number;
|
|
2346
|
+
/** Height of the source frame in pixels. */
|
|
2347
|
+
imageHeight: number;
|
|
2348
|
+
}
|
|
2349
|
+
/** Current state of the SOT tracker. */
|
|
2350
|
+
export declare enum SotState_State {
|
|
2351
|
+
/** STATE_UNSPECIFIED - Unspecified state. */
|
|
2352
|
+
STATE_UNSPECIFIED = 0,
|
|
2353
|
+
/** STATE_IDLE - No target selected, waiting for a target bounding box. */
|
|
2354
|
+
STATE_IDLE = 1,
|
|
2355
|
+
/** STATE_TRACKING - Actively tracking a target. */
|
|
2356
|
+
STATE_TRACKING = 2,
|
|
2357
|
+
/** STATE_LOST - Target was lost (tracker failed to follow the object). */
|
|
2358
|
+
STATE_LOST = 3,
|
|
2359
|
+
UNRECOGNIZED = -1
|
|
2360
|
+
}
|
|
2361
|
+
export declare function sotState_StateFromJSON(object: any): SotState_State;
|
|
2362
|
+
export declare function sotState_StateToJSON(object: SotState_State): string;
|
|
2001
2363
|
export declare const BinlogRecord: MessageFns<BinlogRecord>;
|
|
2002
2364
|
export declare const LogEntry: MessageFns<LogEntry>;
|
|
2003
2365
|
export declare const KernelLogEntry: MessageFns<KernelLogEntry>;
|
|
@@ -2005,6 +2367,8 @@ export declare const KernelLogEntry_KeyValuePair: MessageFns<KernelLogEntry_KeyV
|
|
|
2005
2367
|
export declare const MotionInput: MessageFns<MotionInput>;
|
|
2006
2368
|
export declare const Lights: MessageFns<Lights>;
|
|
2007
2369
|
export declare const Laser: MessageFns<Laser>;
|
|
2370
|
+
export declare const Point2D: MessageFns<Point2D>;
|
|
2371
|
+
export declare const LaserDetection: MessageFns<LaserDetection>;
|
|
2008
2372
|
export declare const LatLongPosition: MessageFns<LatLongPosition>;
|
|
2009
2373
|
export declare const ConnectionDuration: MessageFns<ConnectionDuration>;
|
|
2010
2374
|
export declare const AutoHeadingState: MessageFns<AutoHeadingState>;
|
|
@@ -2061,6 +2425,7 @@ export declare const IperfStatus: MessageFns<IperfStatus>;
|
|
|
2061
2425
|
export declare const NStreamers: MessageFns<NStreamers>;
|
|
2062
2426
|
export declare const TiltAngle: MessageFns<TiltAngle>;
|
|
2063
2427
|
export declare const TiltVelocity: MessageFns<TiltVelocity>;
|
|
2428
|
+
export declare const CvModelInfo: MessageFns<CvModelInfo>;
|
|
2064
2429
|
export declare const DroneInfo: MessageFns<DroneInfo>;
|
|
2065
2430
|
export declare const ErrorFlags: MessageFns<ErrorFlags>;
|
|
2066
2431
|
export declare const CameraParameters: MessageFns<CameraParameters>;
|
|
@@ -2087,9 +2452,23 @@ export declare const MultibeamFrameOffset: MessageFns<MultibeamFrameOffset>;
|
|
|
2087
2452
|
export declare const MutltibeamRecordingIndex: MessageFns<MutltibeamRecordingIndex>;
|
|
2088
2453
|
export declare const PersistentStorageSettings: MessageFns<PersistentStorageSettings>;
|
|
2089
2454
|
export declare const CPUInfo: MessageFns<CPUInfo>;
|
|
2455
|
+
export declare const CpuCoreLoad: MessageFns<CpuCoreLoad>;
|
|
2456
|
+
export declare const GpuInfo: MessageFns<GpuInfo>;
|
|
2457
|
+
export declare const DlaInfo: MessageFns<DlaInfo>;
|
|
2458
|
+
export declare const MemoryInfo: MessageFns<MemoryInfo>;
|
|
2459
|
+
export declare const ThermalZone: MessageFns<ThermalZone>;
|
|
2460
|
+
export declare const VideoCodecInfo: MessageFns<VideoCodecInfo>;
|
|
2461
|
+
export declare const SystemPerformanceInfo: MessageFns<SystemPerformanceInfo>;
|
|
2090
2462
|
export declare const SurfaceUnitBatteryInfo: MessageFns<SurfaceUnitBatteryInfo>;
|
|
2091
2463
|
export declare const SurfaceUnitVersionInfo: MessageFns<SurfaceUnitVersionInfo>;
|
|
2092
|
-
export declare const
|
|
2464
|
+
export declare const BoundingBox: MessageFns<BoundingBox>;
|
|
2465
|
+
export declare const SegmentationMask: MessageFns<SegmentationMask>;
|
|
2466
|
+
export declare const ObjectDetection: MessageFns<ObjectDetection>;
|
|
2467
|
+
export declare const ModelDetections: MessageFns<ModelDetections>;
|
|
2468
|
+
export declare const FilterMessage: MessageFns<FilterMessage>;
|
|
2469
|
+
export declare const CameraPanTiltZoom: MessageFns<CameraPanTiltZoom>;
|
|
2470
|
+
export declare const OperatorInfo: MessageFns<OperatorInfo>;
|
|
2471
|
+
export declare const SotState: MessageFns<SotState>;
|
|
2093
2472
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
2094
2473
|
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 {} ? {
|
|
2095
2474
|
[K in keyof T]?: DeepPartial<T[K]>;
|