@blueyerobotics/protocol-definitions 3.2.0-43e7a52a → 3.2.0-479898f9

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { SetAquaTrollConnectionStatus, SetAquaTrollParameterUnit } from "./aquatroll";
3
- import { AutoAltitudeState, AutoDepthState, AutoHeadingState, AutoPilotHeaveState, AutoPilotSurgeYawState, ConnectionDuration, GenericServo, GripperVelocities, GuestPortRestartInfo, Laser, LatLongPosition, Lights, MotionInput, MultibeamConfig, MultibeamServo, PingerConfiguration, RecordOn, ResetPositionSettings, StationKeepingState, StorageLocation, SystemTime, TiltStabilizationState, TiltVelocity, WaterDensity, WeatherVaningState } from "./message_formats";
3
+ import { AutoAltitudeState, AutoDepthState, AutoHeadingState, AutoPilotHeaveState, AutoPilotSurgeYawState, CameraPanTiltZoom, ConnectionDuration, FilterMessage, GenericServo, GripperVelocities, GuestPortRestartInfo, Laser, LatLongPosition, Lights, MotionInput, MultibeamConfig, MultibeamServo, PingerConfiguration, RecordOn, ResetPositionSettings, StationKeepingState, StorageLocation, SystemTime, TiltStabilizationState, TiltVelocity, WaterDensity, WeatherVaningState } from "./message_formats";
4
4
  /**
5
5
  * Control
6
6
  *
@@ -219,6 +219,20 @@ export interface EndDiveCtrl {
219
219
  */
220
220
  export interface FormatRemovableStorageDeviceCtrl {
221
221
  }
222
+ /** Message sent when the user wants to set turbidity filter settings. */
223
+ export interface SetTurbidityFilterCtrl {
224
+ /** Message with the turbidity filter settings to set. */
225
+ turbidityFilter: FilterMessage | undefined;
226
+ }
227
+ /**
228
+ * Issue a command to set the digital pan, tilt, and zoom of the main camera.
229
+ *
230
+ * Only supported on X3 Ultra.
231
+ */
232
+ export interface CameraPanTiltZoomCtrl {
233
+ /** The desired pan, tilt, and zoom state. */
234
+ cameraPanTiltZoom: CameraPanTiltZoom | undefined;
235
+ }
222
236
  export declare const MotionInputCtrl: MessageFns<MotionInputCtrl>;
223
237
  export declare const TiltVelocityCtrl: MessageFns<TiltVelocityCtrl>;
224
238
  export declare const LightsCtrl: MessageFns<LightsCtrl>;
@@ -262,6 +276,8 @@ export declare const DeactivateMultibeamCtrl: MessageFns<DeactivateMultibeamCtrl
262
276
  export declare const StartDiveCtrl: MessageFns<StartDiveCtrl>;
263
277
  export declare const EndDiveCtrl: MessageFns<EndDiveCtrl>;
264
278
  export declare const FormatRemovableStorageDeviceCtrl: MessageFns<FormatRemovableStorageDeviceCtrl>;
279
+ export declare const SetTurbidityFilterCtrl: MessageFns<SetTurbidityFilterCtrl>;
280
+ export declare const CameraPanTiltZoomCtrl: MessageFns<CameraPanTiltZoomCtrl>;
265
281
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
266
282
  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 {} ? {
267
283
  [K in keyof T]?: DeepPartial<T[K]>;
package/dist/control.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // protoc v3.21.12
6
6
  // source: control.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
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;
8
+ exports.CameraPanTiltZoomCtrl = exports.SetTurbidityFilterCtrl = 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");
@@ -2109,6 +2109,118 @@ exports.FormatRemovableStorageDeviceCtrl = {
2109
2109
  return message;
2110
2110
  },
2111
2111
  };
2112
+ function createBaseSetTurbidityFilterCtrl() {
2113
+ return { turbidityFilter: undefined };
2114
+ }
2115
+ exports.SetTurbidityFilterCtrl = {
2116
+ encode(message, writer = new wire_1.BinaryWriter()) {
2117
+ if (message.turbidityFilter !== undefined) {
2118
+ message_formats_1.FilterMessage.encode(message.turbidityFilter, writer.uint32(10).fork()).join();
2119
+ }
2120
+ return writer;
2121
+ },
2122
+ decode(input, length) {
2123
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2124
+ const end = length === undefined ? reader.len : reader.pos + length;
2125
+ const message = createBaseSetTurbidityFilterCtrl();
2126
+ while (reader.pos < end) {
2127
+ const tag = reader.uint32();
2128
+ switch (tag >>> 3) {
2129
+ case 1: {
2130
+ if (tag !== 10) {
2131
+ break;
2132
+ }
2133
+ message.turbidityFilter = message_formats_1.FilterMessage.decode(reader, reader.uint32());
2134
+ continue;
2135
+ }
2136
+ }
2137
+ if ((tag & 7) === 4 || tag === 0) {
2138
+ break;
2139
+ }
2140
+ reader.skip(tag & 7);
2141
+ }
2142
+ return message;
2143
+ },
2144
+ fromJSON(object) {
2145
+ return {
2146
+ turbidityFilter: isSet(object.turbidityFilter) ? message_formats_1.FilterMessage.fromJSON(object.turbidityFilter) : undefined,
2147
+ };
2148
+ },
2149
+ toJSON(message) {
2150
+ const obj = {};
2151
+ if (message.turbidityFilter !== undefined) {
2152
+ obj.turbidityFilter = message_formats_1.FilterMessage.toJSON(message.turbidityFilter);
2153
+ }
2154
+ return obj;
2155
+ },
2156
+ create(base) {
2157
+ return exports.SetTurbidityFilterCtrl.fromPartial(base ?? {});
2158
+ },
2159
+ fromPartial(object) {
2160
+ const message = createBaseSetTurbidityFilterCtrl();
2161
+ message.turbidityFilter = (object.turbidityFilter !== undefined && object.turbidityFilter !== null)
2162
+ ? message_formats_1.FilterMessage.fromPartial(object.turbidityFilter)
2163
+ : undefined;
2164
+ return message;
2165
+ },
2166
+ };
2167
+ function createBaseCameraPanTiltZoomCtrl() {
2168
+ return { cameraPanTiltZoom: undefined };
2169
+ }
2170
+ exports.CameraPanTiltZoomCtrl = {
2171
+ encode(message, writer = new wire_1.BinaryWriter()) {
2172
+ if (message.cameraPanTiltZoom !== undefined) {
2173
+ message_formats_1.CameraPanTiltZoom.encode(message.cameraPanTiltZoom, writer.uint32(10).fork()).join();
2174
+ }
2175
+ return writer;
2176
+ },
2177
+ decode(input, length) {
2178
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2179
+ const end = length === undefined ? reader.len : reader.pos + length;
2180
+ const message = createBaseCameraPanTiltZoomCtrl();
2181
+ while (reader.pos < end) {
2182
+ const tag = reader.uint32();
2183
+ switch (tag >>> 3) {
2184
+ case 1: {
2185
+ if (tag !== 10) {
2186
+ break;
2187
+ }
2188
+ message.cameraPanTiltZoom = message_formats_1.CameraPanTiltZoom.decode(reader, reader.uint32());
2189
+ continue;
2190
+ }
2191
+ }
2192
+ if ((tag & 7) === 4 || tag === 0) {
2193
+ break;
2194
+ }
2195
+ reader.skip(tag & 7);
2196
+ }
2197
+ return message;
2198
+ },
2199
+ fromJSON(object) {
2200
+ return {
2201
+ cameraPanTiltZoom: isSet(object.cameraPanTiltZoom)
2202
+ ? message_formats_1.CameraPanTiltZoom.fromJSON(object.cameraPanTiltZoom)
2203
+ : undefined,
2204
+ };
2205
+ },
2206
+ toJSON(message) {
2207
+ const obj = {};
2208
+ if (message.cameraPanTiltZoom !== undefined) {
2209
+ obj.cameraPanTiltZoom = message_formats_1.CameraPanTiltZoom.toJSON(message.cameraPanTiltZoom);
2210
+ }
2211
+ return obj;
2212
+ },
2213
+ create(base) {
2214
+ return exports.CameraPanTiltZoomCtrl.fromPartial(base ?? {});
2215
+ },
2216
+ fromPartial(object) {
2217
+ const message = createBaseCameraPanTiltZoomCtrl();
2218
+ message.cameraPanTiltZoom = (object.cameraPanTiltZoom !== undefined && object.cameraPanTiltZoom !== null)
2219
+ ? message_formats_1.CameraPanTiltZoom.fromPartial(object.cameraPanTiltZoom)
2220
+ : undefined;
2221
+ return message;
2222
+ },
2223
+ };
2112
2224
  const gt = (() => {
2113
2225
  if (typeof globalThis !== "undefined") {
2114
2226
  return globalThis;
@@ -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;
@@ -778,8 +789,12 @@ export interface RecordState {
778
789
  multibeamSeconds: number;
779
790
  /** Multibeam record fps. */
780
791
  multibeamFps: number;
781
- /** Storage location used for recording. */
782
- storageLocation: StorageLocation;
792
+ /** Storage location used for main camera recording. */
793
+ mainStorageLocation: StorageLocation;
794
+ /** Storage location used for guestport camera recording. */
795
+ guestportStorageLocation: StorageLocation;
796
+ /** Storage location used for multibeam recording. */
797
+ multibeamStorageLocation: StorageLocation;
783
798
  }
784
799
  /** Time-lapse state published if time-lapse mission is running. */
785
800
  export interface TimeLapseState {
@@ -1297,10 +1312,12 @@ export declare enum RemovableStorageDevice_Status {
1297
1312
  STATUS_UNSPECIFIED = 0,
1298
1313
  /** STATUS_READY - The storage device is valid and ready for use. */
1299
1314
  STATUS_READY = 1,
1300
- /** STATUS_FORMATTING - The storage device is being formatted */
1315
+ /** STATUS_FORMATTING - The storage device is being formatted. */
1301
1316
  STATUS_FORMATTING = 2,
1302
1317
  /** STATUS_ERROR - The storage device is in an error state. */
1303
1318
  STATUS_ERROR = 3,
1319
+ /** STATUS_UNPLUGGED - The storage device is not present. */
1320
+ STATUS_UNPLUGGED = 4,
1304
1321
  UNRECOGNIZED = -1
1305
1322
  }
1306
1323
  export declare function removableStorageDevice_StatusFromJSON(object: any): RemovableStorageDevice_Status;
@@ -1567,6 +1584,12 @@ export interface CameraParameters {
1567
1584
  framerate: Framerate;
1568
1585
  /** Which camera the parameters belong to. */
1569
1586
  camera: Camera;
1587
+ /**
1588
+ * Network MTU (Maximum Transmission Unit) size for video streaming in bytes (68..65535).
1589
+ * If 0 or unset, the system will use a default of 1400.
1590
+ * The Blueye App allows users to set values between 500 and 1460.
1591
+ */
1592
+ mtuSize: number;
1570
1593
  }
1571
1594
  /**
1572
1595
  * Overlay parameters.
@@ -1979,6 +2002,62 @@ export interface SurfaceUnitVersionInfo {
1979
2002
  /** Surface Unit firmware version (x.y.z). */
1980
2003
  version: string;
1981
2004
  }
2005
+ /**
2006
+ * Bounding box for object detection.
2007
+ *
2008
+ * Coordinates are in pixels relative to the camera image,
2009
+ * where (x, y) is the top-left corner of the bounding box.
2010
+ */
2011
+ export interface BoundingBox {
2012
+ /** Horizontal offset of the top-left corner (px). */
2013
+ x: number;
2014
+ /** Vertical offset of the top-left corner (px). */
2015
+ y: number;
2016
+ /** Width of the bounding box (px). */
2017
+ width: number;
2018
+ /** Height of the bounding box (px). */
2019
+ height: number;
2020
+ }
2021
+ /** A single object detection from a computer vision model. */
2022
+ export interface ObjectDetection {
2023
+ /** Bounding box of the detected object. */
2024
+ boundingBox: BoundingBox | undefined;
2025
+ /** Detection confidence score (0..1). */
2026
+ confidence: number;
2027
+ /** Numeric class identifier from the model. */
2028
+ classId: number;
2029
+ /** Human-readable class name. */
2030
+ className: string;
2031
+ /** Unique ID for tracking the same object across frames. */
2032
+ trackingId: number;
2033
+ }
2034
+ /** A list of object detections from a single video frame. */
2035
+ export interface ObjectDetections {
2036
+ /** List of detections in the frame. */
2037
+ detections: ObjectDetection[];
2038
+ /** Which camera the detections are from. */
2039
+ camera: Camera;
2040
+ }
2041
+ /** Generic filter settings. */
2042
+ export interface FilterMessage {
2043
+ /** If the filter is enabled. */
2044
+ enabled: boolean;
2045
+ /** Intensity of the filter (0..1). */
2046
+ intensity: number;
2047
+ }
2048
+ /**
2049
+ * Digital pan, tilt, and zoom state for the main camera.
2050
+ *
2051
+ * Only supported on X3 Ultra. Controls digital (not mechanical) zoom.
2052
+ */
2053
+ export interface CameraPanTiltZoom {
2054
+ /** Horizontal pan (-1.0..1.0), where 0.0 is center. */
2055
+ pan: number;
2056
+ /** Vertical tilt (-1.0..1.0), where 0.0 is center. */
2057
+ tilt: number;
2058
+ /** Zoom level (0.0..1.0), where 0.0 is no zoom and 1.0 is maximum zoom. */
2059
+ zoom: number;
2060
+ }
1982
2061
  export declare const BinlogRecord: MessageFns<BinlogRecord>;
1983
2062
  export declare const LogEntry: MessageFns<LogEntry>;
1984
2063
  export declare const KernelLogEntry: MessageFns<KernelLogEntry>;
@@ -2070,6 +2149,11 @@ export declare const PersistentStorageSettings: MessageFns<PersistentStorageSett
2070
2149
  export declare const CPUInfo: MessageFns<CPUInfo>;
2071
2150
  export declare const SurfaceUnitBatteryInfo: MessageFns<SurfaceUnitBatteryInfo>;
2072
2151
  export declare const SurfaceUnitVersionInfo: MessageFns<SurfaceUnitVersionInfo>;
2152
+ export declare const BoundingBox: MessageFns<BoundingBox>;
2153
+ export declare const ObjectDetection: MessageFns<ObjectDetection>;
2154
+ export declare const ObjectDetections: MessageFns<ObjectDetections>;
2155
+ export declare const FilterMessage: MessageFns<FilterMessage>;
2156
+ export declare const CameraPanTiltZoom: MessageFns<CameraPanTiltZoom>;
2073
2157
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
2074
2158
  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 {} ? {
2075
2159
  [K in keyof T]?: DeepPartial<T[K]>;