@blueyerobotics/protocol-definitions 3.2.0-4aec8fd7 → 3.2.0-50a286b3
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/message_formats.d.ts +39 -0
- package/dist/message_formats.js +284 -1
- package/dist/telemetry.d.ts +7 -1
- package/dist/telemetry.js +56 -1
- package/package.json +1 -1
|
@@ -2002,6 +2002,42 @@ export interface SurfaceUnitVersionInfo {
|
|
|
2002
2002
|
/** Surface Unit firmware version (x.y.z). */
|
|
2003
2003
|
version: string;
|
|
2004
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
|
+
}
|
|
2005
2041
|
/** Generic filter settings. */
|
|
2006
2042
|
export interface FilterMessage {
|
|
2007
2043
|
/** If the filter is enabled. */
|
|
@@ -2113,6 +2149,9 @@ export declare const PersistentStorageSettings: MessageFns<PersistentStorageSett
|
|
|
2113
2149
|
export declare const CPUInfo: MessageFns<CPUInfo>;
|
|
2114
2150
|
export declare const SurfaceUnitBatteryInfo: MessageFns<SurfaceUnitBatteryInfo>;
|
|
2115
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>;
|
|
2116
2155
|
export declare const FilterMessage: MessageFns<FilterMessage>;
|
|
2117
2156
|
export declare const CameraPanTiltZoom: MessageFns<CameraPanTiltZoom>;
|
|
2118
2157
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
package/dist/message_formats.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
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.KernelLogEntry_KeyValuePair = exports.KernelLogEntry = exports.LogEntry = exports.BinlogRecord = exports.SurfaceUnitBatteryInfo_ChargeStatus = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CalibrationState_Status = exports.RemovableStorageDevice_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.KernelLogEntry_KernelLogLevel = 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.StreamingProtocol = exports.Camera = exports.Framerate = exports.Resolution = exports.PressureSensorType = exports.Model = exports.StorageLocation = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
|
|
9
9
|
exports.CameraParameters = exports.ErrorFlags = exports.DroneInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.RemovableStorageErrorFlags = exports.RemovableStorageDevice = exports.StoragePartition = 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 = exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = void 0;
|
|
10
|
-
exports.CameraPanTiltZoom = exports.FilterMessage = exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = 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 = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = exports.GuestPortDevice = exports.NavigationSensorStatus = exports.OverlayParameters = void 0;
|
|
10
|
+
exports.CameraPanTiltZoom = exports.FilterMessage = exports.ObjectDetections = exports.ObjectDetection = exports.BoundingBox = exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = 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 = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = exports.GuestPortDevice = exports.NavigationSensorStatus = exports.OverlayParameters = void 0;
|
|
11
11
|
exports.intervalTypeFromJSON = intervalTypeFromJSON;
|
|
12
12
|
exports.intervalTypeToJSON = intervalTypeToJSON;
|
|
13
13
|
exports.locationSourceFromJSON = locationSourceFromJSON;
|
|
@@ -13413,6 +13413,289 @@ exports.SurfaceUnitVersionInfo = {
|
|
|
13413
13413
|
return message;
|
|
13414
13414
|
},
|
|
13415
13415
|
};
|
|
13416
|
+
function createBaseBoundingBox() {
|
|
13417
|
+
return { x: 0, y: 0, width: 0, height: 0 };
|
|
13418
|
+
}
|
|
13419
|
+
exports.BoundingBox = {
|
|
13420
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13421
|
+
if (message.x !== 0) {
|
|
13422
|
+
writer.uint32(8).uint32(message.x);
|
|
13423
|
+
}
|
|
13424
|
+
if (message.y !== 0) {
|
|
13425
|
+
writer.uint32(16).uint32(message.y);
|
|
13426
|
+
}
|
|
13427
|
+
if (message.width !== 0) {
|
|
13428
|
+
writer.uint32(24).uint32(message.width);
|
|
13429
|
+
}
|
|
13430
|
+
if (message.height !== 0) {
|
|
13431
|
+
writer.uint32(32).uint32(message.height);
|
|
13432
|
+
}
|
|
13433
|
+
return writer;
|
|
13434
|
+
},
|
|
13435
|
+
decode(input, length) {
|
|
13436
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13437
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13438
|
+
const message = createBaseBoundingBox();
|
|
13439
|
+
while (reader.pos < end) {
|
|
13440
|
+
const tag = reader.uint32();
|
|
13441
|
+
switch (tag >>> 3) {
|
|
13442
|
+
case 1: {
|
|
13443
|
+
if (tag !== 8) {
|
|
13444
|
+
break;
|
|
13445
|
+
}
|
|
13446
|
+
message.x = reader.uint32();
|
|
13447
|
+
continue;
|
|
13448
|
+
}
|
|
13449
|
+
case 2: {
|
|
13450
|
+
if (tag !== 16) {
|
|
13451
|
+
break;
|
|
13452
|
+
}
|
|
13453
|
+
message.y = reader.uint32();
|
|
13454
|
+
continue;
|
|
13455
|
+
}
|
|
13456
|
+
case 3: {
|
|
13457
|
+
if (tag !== 24) {
|
|
13458
|
+
break;
|
|
13459
|
+
}
|
|
13460
|
+
message.width = reader.uint32();
|
|
13461
|
+
continue;
|
|
13462
|
+
}
|
|
13463
|
+
case 4: {
|
|
13464
|
+
if (tag !== 32) {
|
|
13465
|
+
break;
|
|
13466
|
+
}
|
|
13467
|
+
message.height = reader.uint32();
|
|
13468
|
+
continue;
|
|
13469
|
+
}
|
|
13470
|
+
}
|
|
13471
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13472
|
+
break;
|
|
13473
|
+
}
|
|
13474
|
+
reader.skip(tag & 7);
|
|
13475
|
+
}
|
|
13476
|
+
return message;
|
|
13477
|
+
},
|
|
13478
|
+
fromJSON(object) {
|
|
13479
|
+
return {
|
|
13480
|
+
x: isSet(object.x) ? gt.Number(object.x) : 0,
|
|
13481
|
+
y: isSet(object.y) ? gt.Number(object.y) : 0,
|
|
13482
|
+
width: isSet(object.width) ? gt.Number(object.width) : 0,
|
|
13483
|
+
height: isSet(object.height) ? gt.Number(object.height) : 0,
|
|
13484
|
+
};
|
|
13485
|
+
},
|
|
13486
|
+
toJSON(message) {
|
|
13487
|
+
const obj = {};
|
|
13488
|
+
if (message.x !== 0) {
|
|
13489
|
+
obj.x = Math.round(message.x);
|
|
13490
|
+
}
|
|
13491
|
+
if (message.y !== 0) {
|
|
13492
|
+
obj.y = Math.round(message.y);
|
|
13493
|
+
}
|
|
13494
|
+
if (message.width !== 0) {
|
|
13495
|
+
obj.width = Math.round(message.width);
|
|
13496
|
+
}
|
|
13497
|
+
if (message.height !== 0) {
|
|
13498
|
+
obj.height = Math.round(message.height);
|
|
13499
|
+
}
|
|
13500
|
+
return obj;
|
|
13501
|
+
},
|
|
13502
|
+
create(base) {
|
|
13503
|
+
return exports.BoundingBox.fromPartial(base ?? {});
|
|
13504
|
+
},
|
|
13505
|
+
fromPartial(object) {
|
|
13506
|
+
const message = createBaseBoundingBox();
|
|
13507
|
+
message.x = object.x ?? 0;
|
|
13508
|
+
message.y = object.y ?? 0;
|
|
13509
|
+
message.width = object.width ?? 0;
|
|
13510
|
+
message.height = object.height ?? 0;
|
|
13511
|
+
return message;
|
|
13512
|
+
},
|
|
13513
|
+
};
|
|
13514
|
+
function createBaseObjectDetection() {
|
|
13515
|
+
return { boundingBox: undefined, confidence: 0, classId: 0, className: "", trackingId: 0 };
|
|
13516
|
+
}
|
|
13517
|
+
exports.ObjectDetection = {
|
|
13518
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13519
|
+
if (message.boundingBox !== undefined) {
|
|
13520
|
+
exports.BoundingBox.encode(message.boundingBox, writer.uint32(10).fork()).join();
|
|
13521
|
+
}
|
|
13522
|
+
if (message.confidence !== 0) {
|
|
13523
|
+
writer.uint32(21).float(message.confidence);
|
|
13524
|
+
}
|
|
13525
|
+
if (message.classId !== 0) {
|
|
13526
|
+
writer.uint32(24).uint32(message.classId);
|
|
13527
|
+
}
|
|
13528
|
+
if (message.className !== "") {
|
|
13529
|
+
writer.uint32(34).string(message.className);
|
|
13530
|
+
}
|
|
13531
|
+
if (message.trackingId !== 0) {
|
|
13532
|
+
writer.uint32(40).uint32(message.trackingId);
|
|
13533
|
+
}
|
|
13534
|
+
return writer;
|
|
13535
|
+
},
|
|
13536
|
+
decode(input, length) {
|
|
13537
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13538
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13539
|
+
const message = createBaseObjectDetection();
|
|
13540
|
+
while (reader.pos < end) {
|
|
13541
|
+
const tag = reader.uint32();
|
|
13542
|
+
switch (tag >>> 3) {
|
|
13543
|
+
case 1: {
|
|
13544
|
+
if (tag !== 10) {
|
|
13545
|
+
break;
|
|
13546
|
+
}
|
|
13547
|
+
message.boundingBox = exports.BoundingBox.decode(reader, reader.uint32());
|
|
13548
|
+
continue;
|
|
13549
|
+
}
|
|
13550
|
+
case 2: {
|
|
13551
|
+
if (tag !== 21) {
|
|
13552
|
+
break;
|
|
13553
|
+
}
|
|
13554
|
+
message.confidence = reader.float();
|
|
13555
|
+
continue;
|
|
13556
|
+
}
|
|
13557
|
+
case 3: {
|
|
13558
|
+
if (tag !== 24) {
|
|
13559
|
+
break;
|
|
13560
|
+
}
|
|
13561
|
+
message.classId = reader.uint32();
|
|
13562
|
+
continue;
|
|
13563
|
+
}
|
|
13564
|
+
case 4: {
|
|
13565
|
+
if (tag !== 34) {
|
|
13566
|
+
break;
|
|
13567
|
+
}
|
|
13568
|
+
message.className = reader.string();
|
|
13569
|
+
continue;
|
|
13570
|
+
}
|
|
13571
|
+
case 5: {
|
|
13572
|
+
if (tag !== 40) {
|
|
13573
|
+
break;
|
|
13574
|
+
}
|
|
13575
|
+
message.trackingId = reader.uint32();
|
|
13576
|
+
continue;
|
|
13577
|
+
}
|
|
13578
|
+
}
|
|
13579
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13580
|
+
break;
|
|
13581
|
+
}
|
|
13582
|
+
reader.skip(tag & 7);
|
|
13583
|
+
}
|
|
13584
|
+
return message;
|
|
13585
|
+
},
|
|
13586
|
+
fromJSON(object) {
|
|
13587
|
+
return {
|
|
13588
|
+
boundingBox: isSet(object.boundingBox) ? exports.BoundingBox.fromJSON(object.boundingBox) : undefined,
|
|
13589
|
+
confidence: isSet(object.confidence) ? gt.Number(object.confidence) : 0,
|
|
13590
|
+
classId: isSet(object.classId) ? gt.Number(object.classId) : 0,
|
|
13591
|
+
className: isSet(object.className) ? gt.String(object.className) : "",
|
|
13592
|
+
trackingId: isSet(object.trackingId) ? gt.Number(object.trackingId) : 0,
|
|
13593
|
+
};
|
|
13594
|
+
},
|
|
13595
|
+
toJSON(message) {
|
|
13596
|
+
const obj = {};
|
|
13597
|
+
if (message.boundingBox !== undefined) {
|
|
13598
|
+
obj.boundingBox = exports.BoundingBox.toJSON(message.boundingBox);
|
|
13599
|
+
}
|
|
13600
|
+
if (message.confidence !== 0) {
|
|
13601
|
+
obj.confidence = message.confidence;
|
|
13602
|
+
}
|
|
13603
|
+
if (message.classId !== 0) {
|
|
13604
|
+
obj.classId = Math.round(message.classId);
|
|
13605
|
+
}
|
|
13606
|
+
if (message.className !== "") {
|
|
13607
|
+
obj.className = message.className;
|
|
13608
|
+
}
|
|
13609
|
+
if (message.trackingId !== 0) {
|
|
13610
|
+
obj.trackingId = Math.round(message.trackingId);
|
|
13611
|
+
}
|
|
13612
|
+
return obj;
|
|
13613
|
+
},
|
|
13614
|
+
create(base) {
|
|
13615
|
+
return exports.ObjectDetection.fromPartial(base ?? {});
|
|
13616
|
+
},
|
|
13617
|
+
fromPartial(object) {
|
|
13618
|
+
const message = createBaseObjectDetection();
|
|
13619
|
+
message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
|
|
13620
|
+
? exports.BoundingBox.fromPartial(object.boundingBox)
|
|
13621
|
+
: undefined;
|
|
13622
|
+
message.confidence = object.confidence ?? 0;
|
|
13623
|
+
message.classId = object.classId ?? 0;
|
|
13624
|
+
message.className = object.className ?? "";
|
|
13625
|
+
message.trackingId = object.trackingId ?? 0;
|
|
13626
|
+
return message;
|
|
13627
|
+
},
|
|
13628
|
+
};
|
|
13629
|
+
function createBaseObjectDetections() {
|
|
13630
|
+
return { detections: [], camera: 0 };
|
|
13631
|
+
}
|
|
13632
|
+
exports.ObjectDetections = {
|
|
13633
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13634
|
+
for (const v of message.detections) {
|
|
13635
|
+
exports.ObjectDetection.encode(v, writer.uint32(10).fork()).join();
|
|
13636
|
+
}
|
|
13637
|
+
if (message.camera !== 0) {
|
|
13638
|
+
writer.uint32(16).int32(message.camera);
|
|
13639
|
+
}
|
|
13640
|
+
return writer;
|
|
13641
|
+
},
|
|
13642
|
+
decode(input, length) {
|
|
13643
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13644
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13645
|
+
const message = createBaseObjectDetections();
|
|
13646
|
+
while (reader.pos < end) {
|
|
13647
|
+
const tag = reader.uint32();
|
|
13648
|
+
switch (tag >>> 3) {
|
|
13649
|
+
case 1: {
|
|
13650
|
+
if (tag !== 10) {
|
|
13651
|
+
break;
|
|
13652
|
+
}
|
|
13653
|
+
message.detections.push(exports.ObjectDetection.decode(reader, reader.uint32()));
|
|
13654
|
+
continue;
|
|
13655
|
+
}
|
|
13656
|
+
case 2: {
|
|
13657
|
+
if (tag !== 16) {
|
|
13658
|
+
break;
|
|
13659
|
+
}
|
|
13660
|
+
message.camera = reader.int32();
|
|
13661
|
+
continue;
|
|
13662
|
+
}
|
|
13663
|
+
}
|
|
13664
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13665
|
+
break;
|
|
13666
|
+
}
|
|
13667
|
+
reader.skip(tag & 7);
|
|
13668
|
+
}
|
|
13669
|
+
return message;
|
|
13670
|
+
},
|
|
13671
|
+
fromJSON(object) {
|
|
13672
|
+
return {
|
|
13673
|
+
detections: gt.Array.isArray(object?.detections)
|
|
13674
|
+
? object.detections.map((e) => exports.ObjectDetection.fromJSON(e))
|
|
13675
|
+
: [],
|
|
13676
|
+
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
13677
|
+
};
|
|
13678
|
+
},
|
|
13679
|
+
toJSON(message) {
|
|
13680
|
+
const obj = {};
|
|
13681
|
+
if (message.detections?.length) {
|
|
13682
|
+
obj.detections = message.detections.map((e) => exports.ObjectDetection.toJSON(e));
|
|
13683
|
+
}
|
|
13684
|
+
if (message.camera !== 0) {
|
|
13685
|
+
obj.camera = cameraToJSON(message.camera);
|
|
13686
|
+
}
|
|
13687
|
+
return obj;
|
|
13688
|
+
},
|
|
13689
|
+
create(base) {
|
|
13690
|
+
return exports.ObjectDetections.fromPartial(base ?? {});
|
|
13691
|
+
},
|
|
13692
|
+
fromPartial(object) {
|
|
13693
|
+
const message = createBaseObjectDetections();
|
|
13694
|
+
message.detections = object.detections?.map((e) => exports.ObjectDetection.fromPartial(e)) || [];
|
|
13695
|
+
message.camera = object.camera ?? 0;
|
|
13696
|
+
return message;
|
|
13697
|
+
},
|
|
13698
|
+
};
|
|
13416
13699
|
function createBaseFilterMessage() {
|
|
13417
13700
|
return { enabled: false, intensity: 0 };
|
|
13418
13701
|
}
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { AquaTrollProbeMetadata, AquaTrollSensorMetadataArray, AquaTrollSensorParametersArray } from "./aquatroll";
|
|
3
|
-
import { Altitude, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LatLongPosition, Lights, LogEntry, MagneticDeclination, MedusaSpectrometerData, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, RecordState, Reference, RemovableStorageDevice, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
|
|
3
|
+
import { Altitude, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LatLongPosition, Lights, LogEntry, MagneticDeclination, MedusaSpectrometerData, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, ObjectDetections, PositionEstimate, RecordState, Reference, RemovableStorageDevice, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
|
|
4
4
|
import { MissionStatus, ReferenceAutoPilot } from "./mission_planning";
|
|
5
5
|
/**
|
|
6
6
|
* Telemetry
|
|
@@ -319,6 +319,11 @@ export interface LogEntryTel {
|
|
|
319
319
|
/** Kernel log entry. */
|
|
320
320
|
kernel?: KernelLogEntry | undefined;
|
|
321
321
|
}
|
|
322
|
+
/** Object detections from a computer vision model. */
|
|
323
|
+
export interface ObjectDetectionsTel {
|
|
324
|
+
/** List of object detections from a video frame. */
|
|
325
|
+
objectDetections: ObjectDetections | undefined;
|
|
326
|
+
}
|
|
322
327
|
/**
|
|
323
328
|
* Turbidity filter settings telemetry message.
|
|
324
329
|
*
|
|
@@ -397,6 +402,7 @@ export declare const MultibeamDiscoveryTel: MessageFns<MultibeamDiscoveryTel>;
|
|
|
397
402
|
export declare const CPUInfoTel: MessageFns<CPUInfoTel>;
|
|
398
403
|
export declare const SurfaceUnitTel: MessageFns<SurfaceUnitTel>;
|
|
399
404
|
export declare const LogEntryTel: MessageFns<LogEntryTel>;
|
|
405
|
+
export declare const ObjectDetectionsTel: MessageFns<ObjectDetectionsTel>;
|
|
400
406
|
export declare const TurbidityFilterTel: MessageFns<TurbidityFilterTel>;
|
|
401
407
|
export declare const CameraPanTiltZoomTel: MessageFns<CameraPanTiltZoomTel>;
|
|
402
408
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
package/dist/telemetry.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// source: telemetry.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.Imu2Tel = exports.Imu1Tel = exports.CalibratedImuTel = exports.GuestPortCurrentTel = exports.MultibeamServoTel = exports.GenericServoTel = exports.ConnectedClientsTel = exports.AquaTrollSensorParametersTel = exports.AquaTrollSensorMetadataTel = exports.AquaTrollProbeMetadataTel = exports.CpProbeTel = exports.ThicknessGaugeTel = exports.ControlModeTel = exports.ErrorFlagsTel = exports.DroneInfoTel = exports.TiltAngleTel = exports.NStreamersTel = exports.IperfTel = exports.TiltStabilizationTel = exports.CalibrationStateTel = exports.DataStorageSpaceTel = exports.RemovableStorageTel = exports.VideoStorageSpaceTel = exports.CanisterBottomHumidityTel = exports.CanisterBottomTemperatureTel = exports.CPUTemperatureTel = exports.WaterTemperatureTel = exports.DroneTimeTel = exports.DiveTimeTel = exports.BatteryBQ40Z50Tel = exports.BatteryTel = exports.TimeLapseStateTel = exports.RecordStateTel = exports.PilotGPSPositionTel = exports.LaserTel = exports.GuestPortLightsTel = exports.LightsTel = exports.ControllerHealthTel = exports.ControlForceTel = exports.NotificationTel = exports.MissionStatusTel = exports.ReferenceAutoPilotTel = exports.ReferenceTel = exports.DepthTel = exports.PositionEstimateTel = exports.DvlVelocityTel = exports.ForwardDistanceTel = exports.AltitudeTel = exports.MagneticDeclinationTel = exports.AttitudeTel = void 0;
|
|
9
|
-
exports.CameraPanTiltZoomTel = exports.TurbidityFilterTel = exports.LogEntryTel = exports.SurfaceUnitTel = exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = exports.MedusaSpectrometerDataTel = exports.CalibratedImuHpTel = exports.ImuHpTel = void 0;
|
|
9
|
+
exports.CameraPanTiltZoomTel = exports.TurbidityFilterTel = exports.ObjectDetectionsTel = exports.LogEntryTel = exports.SurfaceUnitTel = exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = exports.MedusaSpectrometerDataTel = exports.CalibratedImuHpTel = exports.ImuHpTel = void 0;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
12
12
|
const aquatroll_1 = require("./aquatroll");
|
|
@@ -3274,6 +3274,61 @@ exports.LogEntryTel = {
|
|
|
3274
3274
|
return message;
|
|
3275
3275
|
},
|
|
3276
3276
|
};
|
|
3277
|
+
function createBaseObjectDetectionsTel() {
|
|
3278
|
+
return { objectDetections: undefined };
|
|
3279
|
+
}
|
|
3280
|
+
exports.ObjectDetectionsTel = {
|
|
3281
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3282
|
+
if (message.objectDetections !== undefined) {
|
|
3283
|
+
message_formats_1.ObjectDetections.encode(message.objectDetections, writer.uint32(10).fork()).join();
|
|
3284
|
+
}
|
|
3285
|
+
return writer;
|
|
3286
|
+
},
|
|
3287
|
+
decode(input, length) {
|
|
3288
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3289
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3290
|
+
const message = createBaseObjectDetectionsTel();
|
|
3291
|
+
while (reader.pos < end) {
|
|
3292
|
+
const tag = reader.uint32();
|
|
3293
|
+
switch (tag >>> 3) {
|
|
3294
|
+
case 1: {
|
|
3295
|
+
if (tag !== 10) {
|
|
3296
|
+
break;
|
|
3297
|
+
}
|
|
3298
|
+
message.objectDetections = message_formats_1.ObjectDetections.decode(reader, reader.uint32());
|
|
3299
|
+
continue;
|
|
3300
|
+
}
|
|
3301
|
+
}
|
|
3302
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3303
|
+
break;
|
|
3304
|
+
}
|
|
3305
|
+
reader.skip(tag & 7);
|
|
3306
|
+
}
|
|
3307
|
+
return message;
|
|
3308
|
+
},
|
|
3309
|
+
fromJSON(object) {
|
|
3310
|
+
return {
|
|
3311
|
+
objectDetections: isSet(object.objectDetections) ? message_formats_1.ObjectDetections.fromJSON(object.objectDetections) : undefined,
|
|
3312
|
+
};
|
|
3313
|
+
},
|
|
3314
|
+
toJSON(message) {
|
|
3315
|
+
const obj = {};
|
|
3316
|
+
if (message.objectDetections !== undefined) {
|
|
3317
|
+
obj.objectDetections = message_formats_1.ObjectDetections.toJSON(message.objectDetections);
|
|
3318
|
+
}
|
|
3319
|
+
return obj;
|
|
3320
|
+
},
|
|
3321
|
+
create(base) {
|
|
3322
|
+
return exports.ObjectDetectionsTel.fromPartial(base ?? {});
|
|
3323
|
+
},
|
|
3324
|
+
fromPartial(object) {
|
|
3325
|
+
const message = createBaseObjectDetectionsTel();
|
|
3326
|
+
message.objectDetections = (object.objectDetections !== undefined && object.objectDetections !== null)
|
|
3327
|
+
? message_formats_1.ObjectDetections.fromPartial(object.objectDetections)
|
|
3328
|
+
: undefined;
|
|
3329
|
+
return message;
|
|
3330
|
+
},
|
|
3331
|
+
};
|
|
3277
3332
|
function createBaseTurbidityFilterTel() {
|
|
3278
3333
|
return { turbidityFilter: undefined };
|
|
3279
3334
|
}
|