@blueyerobotics/protocol-definitions 3.2.0-10007c3e → 3.2.0-13a0ac0d

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.
@@ -184,6 +184,8 @@ export declare enum Model {
184
184
  MODEL_X3 = 3,
185
185
  /** MODEL_X3_ULTRA - Blueye X3 Ultra. */
186
186
  MODEL_X3_ULTRA = 6,
187
+ /** MODEL_X7 - Blueye X7. */
188
+ MODEL_X7 = 7,
187
189
  /** MODEL_NEXT - Blueye ? */
188
190
  MODEL_NEXT = 5,
189
191
  UNRECOGNIZED = -1
@@ -218,11 +220,18 @@ export declare enum Resolution {
218
220
  RESOLUTION_FULLHD_1080P = 1,
219
221
  /** RESOLUTION_UHD_4K - 4K Ultra HD (3840x2160, Only supported on X3 Ultra). */
220
222
  RESOLUTION_UHD_4K = 3,
223
+ /** RESOLUTION_QHD_2K - 2K QHD (2560x1440, Only supported on X3 Ultra). */
224
+ RESOLUTION_QHD_2K = 5,
221
225
  UNRECOGNIZED = -1
222
226
  }
223
227
  export declare function resolutionFromJSON(object: any): Resolution;
224
228
  export declare function resolutionToJSON(object: Resolution): string;
225
- /** Available camera frame rates. */
229
+ /**
230
+ * Available camera frame rates.
231
+ *
232
+ * If the requested frame rate is higher than what is supported at the current resolution,
233
+ * the frame rate will be reduced while the resolution is respected.
234
+ */
226
235
  export declare enum Framerate {
227
236
  /** FRAMERATE_UNSPECIFIED - Framerate not specified. */
228
237
  FRAMERATE_UNSPECIFIED = 0,
@@ -230,6 +239,8 @@ export declare enum Framerate {
230
239
  FRAMERATE_FPS_30 = 1,
231
240
  /** FRAMERATE_FPS_25 - 25 frames per second. (Only supported on Pioneer/Pro/X1/X3) */
232
241
  FRAMERATE_FPS_25 = 2,
242
+ /** FRAMERATE_FPS_60 - 60 frames per second. (Only supported on X3 Ultra at QHD, 1080p and 720p) */
243
+ FRAMERATE_FPS_60 = 3,
233
244
  UNRECOGNIZED = -1
234
245
  }
235
246
  export declare function framerateFromJSON(object: any): Framerate;
@@ -257,6 +268,18 @@ export declare enum StreamingProtocol {
257
268
  }
258
269
  export declare function streamingProtocolFromJSON(object: any): StreamingProtocol;
259
270
  export declare function streamingProtocolToJSON(object: StreamingProtocol): string;
271
+ /** Recording video codec. */
272
+ export declare enum RecordingCodec {
273
+ /** RECORDING_CODEC_UNSPECIFIED - Use platform default (H.264). */
274
+ RECORDING_CODEC_UNSPECIFIED = 0,
275
+ /** RECORDING_CODEC_H264 - H.264/AVC codec. Wider compatibility with players/editors. */
276
+ RECORDING_CODEC_H264 = 1,
277
+ /** RECORDING_CODEC_H265 - H.265/HEVC codec. Better compression, limited compatibility. Ultra only. */
278
+ RECORDING_CODEC_H265 = 2,
279
+ UNRECOGNIZED = -1
280
+ }
281
+ export declare function recordingCodecFromJSON(object: any): RecordingCodec;
282
+ export declare function recordingCodecToJSON(object: RecordingCodec): string;
260
283
  /** Available temperature units. */
261
284
  export declare enum TemperatureUnit {
262
285
  /** TEMPERATURE_UNIT_UNSPECIFIED - Temperature unit not specified. */
@@ -323,6 +346,8 @@ export declare enum FontSize {
323
346
  FONT_SIZE_PX35 = 5,
324
347
  /** FONT_SIZE_PX40 - 40 px. */
325
348
  FONT_SIZE_PX40 = 6,
349
+ /** FONT_SIZE_PX50 - 50 px. */
350
+ FONT_SIZE_PX50 = 7,
326
351
  UNRECOGNIZED = -1
327
352
  }
328
353
  export declare function fontSizeFromJSON(object: any): FontSize;
@@ -425,6 +450,8 @@ export declare enum GuestPortDeviceID {
425
450
  GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2 = 46,
426
451
  /** GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT - Cerulean Omniscan 450 Compact. */
427
452
  GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT = 47,
453
+ /** GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER - Blueye Scaling Laser. */
454
+ GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER = 48,
428
455
  UNRECOGNIZED = -1
429
456
  }
430
457
  export declare function guestPortDeviceIDFromJSON(object: any): GuestPortDeviceID;
@@ -510,6 +537,18 @@ export declare enum MultibeamFrequencyMode {
510
537
  }
511
538
  export declare function multibeamFrequencyModeFromJSON(object: any): MultibeamFrequencyMode;
512
539
  export declare function multibeamFrequencyModeToJSON(object: MultibeamFrequencyMode): string;
540
+ /** Thermal zone identifiers. */
541
+ export declare enum ThermalZoneId {
542
+ /** THERMAL_ZONE_ID_UNSPECIFIED - Unspecified thermal zone. */
543
+ THERMAL_ZONE_ID_UNSPECIFIED = 0,
544
+ /** THERMAL_ZONE_ID_TJ - Junction temperature (Tj). */
545
+ THERMAL_ZONE_ID_TJ = 1,
546
+ /** THERMAL_ZONE_ID_CANISTER - Canister temperature. */
547
+ THERMAL_ZONE_ID_CANISTER = 2,
548
+ UNRECOGNIZED = -1
549
+ }
550
+ export declare function thermalZoneIdFromJSON(object: any): ThermalZoneId;
551
+ export declare function thermalZoneIdToJSON(object: ThermalZoneId): string;
513
552
  /**
514
553
  * Wrapper message for each entry in the drone telemetry logfile.
515
554
  *
@@ -829,7 +868,7 @@ export interface WaterTemperature {
829
868
  /** Water temperature (°C). */
830
869
  value: number;
831
870
  }
832
- /** CPU temperature. */
871
+ /** CPU temperature (deprecated, use SystemPerformanceInfo.thermal_zones instead). */
833
872
  export interface CPUTemperature {
834
873
  /** CPU temperature (°C). */
835
874
  value: number;
@@ -1402,6 +1441,31 @@ export interface TiltVelocity {
1402
1441
  /**
1403
1442
  * Information about the drone.
1404
1443
  *
1444
+ * Information about a loaded computer vision model.
1445
+ */
1446
+ export interface CvModelInfo {
1447
+ /** Human-readable model name (from model_meta.json). */
1448
+ name: string;
1449
+ /** Type of CV model. */
1450
+ type: CvModelInfo_ModelType;
1451
+ /** Whether the model is currently running. */
1452
+ running: boolean;
1453
+ /** Execution provider (e.g. "cuda", "tensorrt"). */
1454
+ device: string;
1455
+ /** Package directory name (e.g. "tinyyolov2_package"). Stable identifier. */
1456
+ packageId: string;
1457
+ /** Class names the model can detect (indexed by class_id). */
1458
+ labels: string[];
1459
+ }
1460
+ export declare enum CvModelInfo_ModelType {
1461
+ MODEL_TYPE_UNSPECIFIED = 0,
1462
+ MODEL_TYPE_DETECTION = 1,
1463
+ MODEL_TYPE_SOT = 2,
1464
+ UNRECOGNIZED = -1
1465
+ }
1466
+ export declare function cvModelInfo_ModelTypeFromJSON(object: any): CvModelInfo_ModelType;
1467
+ export declare function cvModelInfo_ModelTypeToJSON(object: CvModelInfo_ModelType): string;
1468
+ /**
1405
1469
  * This message contains serial numbers and version information for
1406
1470
  * internal components in the drone. Primarily used for diagnostics, or to
1407
1471
  * determine the origin of a logfile.
@@ -1429,6 +1493,8 @@ export interface DroneInfo {
1429
1493
  gp: GuestPortInfo | undefined;
1430
1494
  /** Type of depth sensor that is connected to the drone. */
1431
1495
  depthSensor: PressureSensorType;
1496
+ /** List of loaded computer vision models. */
1497
+ cvModels: CvModelInfo[];
1432
1498
  }
1433
1499
  /** Known error states for the drone. */
1434
1500
  export interface ErrorFlags {
@@ -1579,6 +1645,13 @@ export interface CameraParameters {
1579
1645
  * The Blueye App allows users to set values between 500 and 1460.
1580
1646
  */
1581
1647
  mtuSize: number;
1648
+ /** Recording video codec. If unset, uses platform default. */
1649
+ recordingCodec: RecordingCodec;
1650
+ /**
1651
+ * Recording bitrate in bits/sec. If 0 or unset, a default is computed based
1652
+ * on resolution, framerate, and encoding. Set explicitly to override.
1653
+ */
1654
+ recordingBitrate: number;
1582
1655
  }
1583
1656
  /**
1584
1657
  * Overlay parameters.
@@ -1944,7 +2017,7 @@ export interface PersistentStorageSettings {
1944
2017
  accCalibration: boolean;
1945
2018
  }
1946
2019
  /**
1947
- * CPU information.
2020
+ * CPU information (deprecated, use SystemPerformanceInfo instead).
1948
2021
  *
1949
2022
  * Contains information about the CPU load and memory usage of the drone.
1950
2023
  */
@@ -1960,6 +2033,119 @@ export interface CPUInfo {
1960
2033
  /** Communication queue load (0..1). */
1961
2034
  commQueueLoad: number;
1962
2035
  }
2036
+ /** Per-core CPU utilization. */
2037
+ export interface CpuCoreLoad {
2038
+ /** Core index (0-based). */
2039
+ coreIndex: number;
2040
+ /** Core load (0..1). */
2041
+ load: number;
2042
+ /** Current clock frequency (MHz). */
2043
+ frequencyMhz: number;
2044
+ }
2045
+ /** GPU utilization and status. */
2046
+ export interface GpuInfo {
2047
+ /** GPU load (0..1). */
2048
+ load: number;
2049
+ /** Current GPU clock frequency (MHz). */
2050
+ frequencyMhz: number;
2051
+ }
2052
+ /**
2053
+ * Deep Learning Accelerator (DLA) utilization.
2054
+ *
2055
+ * Jetson Orin NX has two DLA engines used for inference offload.
2056
+ */
2057
+ export interface DlaInfo {
2058
+ /** DLA engine index (0-based). */
2059
+ engineIndex: number;
2060
+ /** DLA engine load (0..1). */
2061
+ load: number;
2062
+ /** Core clock frequency (MHz). 0 when disabled. */
2063
+ frequencyMhz: number;
2064
+ /** True when the DLA engine is actively processing. */
2065
+ enabled: boolean;
2066
+ /** Falcon microcontroller clock frequency (MHz). 0 when disabled. */
2067
+ falconFrequencyMhz: number;
2068
+ }
2069
+ /** System memory information. */
2070
+ export interface MemoryInfo {
2071
+ /** Total RAM (bytes). */
2072
+ totalBytes: number;
2073
+ /** Used RAM (bytes). */
2074
+ usedBytes: number;
2075
+ /** Cached RAM (bytes). */
2076
+ cachedBytes: number;
2077
+ /** Memory bus utilization (0..1). i.MX only. */
2078
+ busLoad: number;
2079
+ }
2080
+ /** Thermal zone reading. */
2081
+ export interface ThermalZone {
2082
+ /** Thermal zone identifier. */
2083
+ zone: ThermalZoneId;
2084
+ /** Temperature (°C). */
2085
+ temperature: number;
2086
+ }
2087
+ /** Video codec engine status. */
2088
+ export interface VideoCodecInfo {
2089
+ /** Jetson only (NVENC/NVDEC/NVJPG/VIC devfreq). */
2090
+ encoderActive: boolean;
2091
+ /** Video encoder clock frequency (MHz). */
2092
+ encoderFrequencyMhz: number;
2093
+ /** Video decoder (NVDEC) is active. */
2094
+ decoderActive: boolean;
2095
+ /** Video decoder clock frequency (MHz). */
2096
+ decoderFrequencyMhz: number;
2097
+ /** JPEG engine (NVJPG) is active. */
2098
+ nvjpgActive: boolean;
2099
+ /** JPEG engine clock frequency (MHz). */
2100
+ nvjpgFrequencyMhz: number;
2101
+ /** Video Image Compositor (VIC) is active. */
2102
+ vicActive: boolean;
2103
+ /** VIC clock frequency (MHz). */
2104
+ vicFrequencyMhz: number;
2105
+ /** i.MX only (CODA VPU). */
2106
+ vpuActive: boolean;
2107
+ /** VPU AXI clock frequency (MHz). */
2108
+ vpuFrequencyMhz: number;
2109
+ /** Cumulative VPU_CODEC_IRQ count. */
2110
+ vpuCodecIrqCount: number;
2111
+ /** Cumulative VPU_JPG_IRQ count. */
2112
+ vpuJpgIrqCount: number;
2113
+ }
2114
+ /**
2115
+ * System performance information.
2116
+ *
2117
+ * Comprehensive performance metrics for the drone's compute platform.
2118
+ * Covers CPU, GPU, DLA, memory, thermals, and video codec utilization.
2119
+ * Fields not applicable to a platform are left at their zero/empty defaults.
2120
+ */
2121
+ export interface SystemPerformanceInfo {
2122
+ /** Per-core CPU utilization. */
2123
+ cpuCores: CpuCoreLoad[];
2124
+ /** Mean CPU utilization across all cores (0..1). */
2125
+ cpuUtilization: number;
2126
+ /** GPU utilization. */
2127
+ gpu: GpuInfo | undefined;
2128
+ /** DLA engine utilization (Jetson only). */
2129
+ dlaEngines: DlaInfo[];
2130
+ /** RAM usage. */
2131
+ memory: MemoryInfo | undefined;
2132
+ /** All thermal zone readings. */
2133
+ thermalZones: ThermalZone[];
2134
+ /** Video encoder/decoder status. */
2135
+ videoCodec: VideoCodecInfo | undefined;
2136
+ /** Main queue load (0..1). */
2137
+ mainQueueLoad: number;
2138
+ /** Guestport queue load (0..1). */
2139
+ guestportQueueLoad: number;
2140
+ /** Communication queue load (0..1). */
2141
+ commQueueLoad: number;
2142
+ /** Camera queue load (0..1). */
2143
+ cameraQueueLoad: number;
2144
+ /** Overlay queue load (0..1). */
2145
+ overlayQueueLoad: number;
2146
+ /** Position observer queue load (0..1). */
2147
+ positionObserverQueueLoad: number;
2148
+ }
1963
2149
  /**
1964
2150
  * Surface Unit battery information.
1965
2151
  *
@@ -1991,6 +2177,123 @@ export interface SurfaceUnitVersionInfo {
1991
2177
  /** Surface Unit firmware version (x.y.z). */
1992
2178
  version: string;
1993
2179
  }
2180
+ /**
2181
+ * Bounding box for object detection.
2182
+ *
2183
+ * Coordinates are in pixels relative to the camera image,
2184
+ * where (x, y) is the top-left corner of the bounding box.
2185
+ */
2186
+ export interface BoundingBox {
2187
+ /** Horizontal offset of the top-left corner (px). */
2188
+ x: number;
2189
+ /** Vertical offset of the top-left corner (px). */
2190
+ y: number;
2191
+ /** Width of the bounding box (px). */
2192
+ width: number;
2193
+ /** Height of the bounding box (px). */
2194
+ height: number;
2195
+ }
2196
+ /**
2197
+ * RLE-encoded binary segmentation mask relative to the bounding box.
2198
+ *
2199
+ * The mask bitmap has dimensions (mask_width x mask_height) covering the
2200
+ * detection's bounding box area. The counts field stores run-length encoded
2201
+ * data as packed uint16 little-endian: alternating background/foreground
2202
+ * pixel runs starting with background.
2203
+ */
2204
+ export interface SegmentationMask {
2205
+ /** Width of the RLE bitmap. */
2206
+ maskWidth: number;
2207
+ /** Height of the RLE bitmap. */
2208
+ maskHeight: number;
2209
+ /** RLE counts as packed uint16 little-endian. */
2210
+ counts: Uint8Array;
2211
+ }
2212
+ /** A single object detection from a computer vision model. */
2213
+ export interface ObjectDetection {
2214
+ /** Bounding box of the detected object. */
2215
+ boundingBox: BoundingBox | undefined;
2216
+ /** Detection confidence score (0..1). */
2217
+ confidence: number;
2218
+ /** Numeric class identifier from the model. */
2219
+ classId: number;
2220
+ /** Human-readable class name. */
2221
+ className: string;
2222
+ /** Unique ID for tracking the same object across frames. */
2223
+ trackingId: number;
2224
+ /** Instance segmentation mask (absent if model has no segmentation). */
2225
+ mask: SegmentationMask | undefined;
2226
+ }
2227
+ /** A list of object detections from a single model for a single video frame. */
2228
+ export interface ModelDetections {
2229
+ /** List of detections in the frame. */
2230
+ detections: ObjectDetection[];
2231
+ /** Which camera the detections are from. */
2232
+ camera: Camera;
2233
+ /** Width of the source image (px). */
2234
+ imageWidth: number;
2235
+ /** Height of the source image (px). */
2236
+ imageHeight: number;
2237
+ /** Name of the computer vision model that produced the detections. */
2238
+ modelName: string;
2239
+ }
2240
+ /** Generic filter settings. */
2241
+ export interface FilterMessage {
2242
+ /** If the filter is enabled. */
2243
+ enabled: boolean;
2244
+ /** Intensity of the filter (0..1). */
2245
+ intensity: number;
2246
+ }
2247
+ /**
2248
+ * Digital pan, tilt, and zoom state for the main camera.
2249
+ *
2250
+ * Only supported on X3 Ultra. Controls digital (not mechanical) zoom.
2251
+ */
2252
+ export interface CameraPanTiltZoom {
2253
+ /** Horizontal pan (-1.0..1.0), where 0.0 is center. */
2254
+ pan: number;
2255
+ /** Vertical tilt (-1.0..1.0), where 0.0 is center. */
2256
+ tilt: number;
2257
+ /** Zoom level (0.0..1.0), where 0.0 is no zoom and 1.0 is maximum zoom. */
2258
+ zoom: number;
2259
+ }
2260
+ /**
2261
+ * Information about the operator controlling the drone.
2262
+ *
2263
+ * Used to identify who started a dive, for reporting and when importing
2264
+ * dives to Blueye Cloud.
2265
+ */
2266
+ export interface OperatorInfo {
2267
+ /** Full name of the operator. */
2268
+ name: string;
2269
+ /** E-mail address of the operator. */
2270
+ email: string;
2271
+ }
2272
+ /** Single-object tracking (SOT) state reported by the computer vision pipeline. */
2273
+ export interface SotState {
2274
+ /** Current tracking state. */
2275
+ state: SotState_State;
2276
+ /** Current tracked bounding box (valid when TRACKING). */
2277
+ boundingBox: BoundingBox | undefined;
2278
+ /** Width of the source frame in pixels. */
2279
+ imageWidth: number;
2280
+ /** Height of the source frame in pixels. */
2281
+ imageHeight: number;
2282
+ }
2283
+ /** Current state of the SOT tracker. */
2284
+ export declare enum SotState_State {
2285
+ /** STATE_UNSPECIFIED - Unspecified state. */
2286
+ STATE_UNSPECIFIED = 0,
2287
+ /** STATE_IDLE - No target selected, waiting for a target bounding box. */
2288
+ STATE_IDLE = 1,
2289
+ /** STATE_TRACKING - Actively tracking a target. */
2290
+ STATE_TRACKING = 2,
2291
+ /** STATE_LOST - Target was lost (tracker failed to follow the object). */
2292
+ STATE_LOST = 3,
2293
+ UNRECOGNIZED = -1
2294
+ }
2295
+ export declare function sotState_StateFromJSON(object: any): SotState_State;
2296
+ export declare function sotState_StateToJSON(object: SotState_State): string;
1994
2297
  export declare const BinlogRecord: MessageFns<BinlogRecord>;
1995
2298
  export declare const LogEntry: MessageFns<LogEntry>;
1996
2299
  export declare const KernelLogEntry: MessageFns<KernelLogEntry>;
@@ -2054,6 +2357,7 @@ export declare const IperfStatus: MessageFns<IperfStatus>;
2054
2357
  export declare const NStreamers: MessageFns<NStreamers>;
2055
2358
  export declare const TiltAngle: MessageFns<TiltAngle>;
2056
2359
  export declare const TiltVelocity: MessageFns<TiltVelocity>;
2360
+ export declare const CvModelInfo: MessageFns<CvModelInfo>;
2057
2361
  export declare const DroneInfo: MessageFns<DroneInfo>;
2058
2362
  export declare const ErrorFlags: MessageFns<ErrorFlags>;
2059
2363
  export declare const CameraParameters: MessageFns<CameraParameters>;
@@ -2080,8 +2384,23 @@ export declare const MultibeamFrameOffset: MessageFns<MultibeamFrameOffset>;
2080
2384
  export declare const MutltibeamRecordingIndex: MessageFns<MutltibeamRecordingIndex>;
2081
2385
  export declare const PersistentStorageSettings: MessageFns<PersistentStorageSettings>;
2082
2386
  export declare const CPUInfo: MessageFns<CPUInfo>;
2387
+ export declare const CpuCoreLoad: MessageFns<CpuCoreLoad>;
2388
+ export declare const GpuInfo: MessageFns<GpuInfo>;
2389
+ export declare const DlaInfo: MessageFns<DlaInfo>;
2390
+ export declare const MemoryInfo: MessageFns<MemoryInfo>;
2391
+ export declare const ThermalZone: MessageFns<ThermalZone>;
2392
+ export declare const VideoCodecInfo: MessageFns<VideoCodecInfo>;
2393
+ export declare const SystemPerformanceInfo: MessageFns<SystemPerformanceInfo>;
2083
2394
  export declare const SurfaceUnitBatteryInfo: MessageFns<SurfaceUnitBatteryInfo>;
2084
2395
  export declare const SurfaceUnitVersionInfo: MessageFns<SurfaceUnitVersionInfo>;
2396
+ export declare const BoundingBox: MessageFns<BoundingBox>;
2397
+ export declare const SegmentationMask: MessageFns<SegmentationMask>;
2398
+ export declare const ObjectDetection: MessageFns<ObjectDetection>;
2399
+ export declare const ModelDetections: MessageFns<ModelDetections>;
2400
+ export declare const FilterMessage: MessageFns<FilterMessage>;
2401
+ export declare const CameraPanTiltZoom: MessageFns<CameraPanTiltZoom>;
2402
+ export declare const OperatorInfo: MessageFns<OperatorInfo>;
2403
+ export declare const SotState: MessageFns<SotState>;
2085
2404
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
2086
2405
  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 {} ? {
2087
2406
  [K in keyof T]?: DeepPartial<T[K]>;