@blueyerobotics/protocol-definitions 3.4.0-8187f91a → 3.4.0-eddb8a5e
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/index.blueye.protocol.d.ts +1 -0
- package/dist/index.blueye.protocol.js +1 -0
- package/dist/message_formats.d.ts +88 -2
- package/dist/message_formats.js +307 -2
- package/dist/req_rep.d.ts +168 -1
- package/dist/req_rep.js +1033 -16
- package/dist/slam.d.ts +512 -0
- package/dist/slam.js +2427 -0
- package/dist/telemetry.d.ts +80 -0
- package/dist/telemetry.js +424 -0
- package/package.json +1 -1
|
@@ -516,6 +516,12 @@ export declare enum GuestPortDeviceID {
|
|
|
516
516
|
GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200 = 51,
|
|
517
517
|
/** GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5 - Reach Robotics Reach Alpha 5 Manipulator. */
|
|
518
518
|
GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5 = 52,
|
|
519
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3 - Blueye Multibeam Skid Servo V3. */
|
|
520
|
+
GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3 = 53,
|
|
521
|
+
/** GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2 - Detachable Blue Robotics Newton V2. */
|
|
522
|
+
GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2 = 54,
|
|
523
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2 - Blueye Scaling Laser V2. */
|
|
524
|
+
GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2 = 55,
|
|
519
525
|
UNRECOGNIZED = -1
|
|
520
526
|
}
|
|
521
527
|
export declare function guestPortDeviceIDFromJSON(object: any): GuestPortDeviceID;
|
|
@@ -563,6 +569,10 @@ export declare enum GuestPortCapability {
|
|
|
563
569
|
GUEST_PORT_CAPABILITY_PWM = 6,
|
|
564
570
|
/** GUEST_PORT_CAPABILITY_ETHERNET_1G - Gigabit Ethernet. */
|
|
565
571
|
GUEST_PORT_CAPABILITY_ETHERNET_1G = 7,
|
|
572
|
+
/** GUEST_PORT_CAPABILITY_I2C_IO - TCA9536 I/O expander. */
|
|
573
|
+
GUEST_PORT_CAPABILITY_I2C_IO = 8,
|
|
574
|
+
/** GUEST_PORT_CAPABILITY_I2C_IO_V2 - PCA9554A I/O expander. */
|
|
575
|
+
GUEST_PORT_CAPABILITY_I2C_IO_V2 = 9,
|
|
566
576
|
UNRECOGNIZED = -1
|
|
567
577
|
}
|
|
568
578
|
export declare function guestPortCapabilityFromJSON(object: any): GuestPortCapability;
|
|
@@ -881,6 +891,11 @@ export interface LaserDetection {
|
|
|
881
891
|
correctedPixelDistance: number;
|
|
882
892
|
/** Estimated subject distance (m). */
|
|
883
893
|
estimatedDistance: number;
|
|
894
|
+
/**
|
|
895
|
+
* Id of the camera frame the detection was computed from, 0 if unknown. Matches the frame id
|
|
896
|
+
* embedded in recorded video; ModelDetections describes the format.
|
|
897
|
+
*/
|
|
898
|
+
frameId: number;
|
|
884
899
|
}
|
|
885
900
|
/** Latitude and longitude position in WGS 84 decimal degrees format. */
|
|
886
901
|
export interface LatLongPosition {
|
|
@@ -1651,7 +1666,7 @@ export interface DvlVelocity {
|
|
|
1651
1666
|
deltaTime: number;
|
|
1652
1667
|
/** Figure of merit, a measure of the accuracy of the velocities (m/s). */
|
|
1653
1668
|
fom: number;
|
|
1654
|
-
/** Velocity, x forward, y
|
|
1669
|
+
/** Velocity, x forward, y right, z down (m/s). */
|
|
1655
1670
|
velocity: Vector3 | undefined;
|
|
1656
1671
|
/** Water tracking status. */
|
|
1657
1672
|
isWaterTracking: boolean;
|
|
@@ -1981,6 +1996,13 @@ export interface DroneInfo {
|
|
|
1981
1996
|
powerSource: PowerSource;
|
|
1982
1997
|
/** Intrinsic calibration of the main camera. Unset when unknown. */
|
|
1983
1998
|
mainCameraCalibration: CameraCalibration | undefined;
|
|
1999
|
+
/** Dive number, the counter at the end of the logfile name. 0 when unknown. */
|
|
2000
|
+
diveNumber: number;
|
|
2001
|
+
/**
|
|
2002
|
+
* Name of the dive logfile without extension (e.g. BYEDP070012_ea9ac92e040aa9d4_00231).
|
|
2003
|
+
* Unlike dive_number it stays unique when the counter restarts, e.g. after the storage is replaced.
|
|
2004
|
+
*/
|
|
2005
|
+
logName: string;
|
|
1984
2006
|
}
|
|
1985
2007
|
/** Known error states for the drone. */
|
|
1986
2008
|
export interface ErrorFlags {
|
|
@@ -3017,7 +3039,26 @@ export interface ObjectDetection {
|
|
|
3017
3039
|
/** Instance segmentation mask (absent if model has no segmentation). */
|
|
3018
3040
|
mask: SegmentationMask | undefined;
|
|
3019
3041
|
}
|
|
3020
|
-
/**
|
|
3042
|
+
/**
|
|
3043
|
+
* A list of object detections from a single model for a single video frame.
|
|
3044
|
+
*
|
|
3045
|
+
* frame_id matches detections to the exact frame of a recording. The video pipeline on the X3 Ultra
|
|
3046
|
+
* assigns an id to each camera frame once, passes it to the computer vision models and the recorder,
|
|
3047
|
+
* and writes it into the recorded video. An id is never reused within one boot of the drone, and stays
|
|
3048
|
+
* below 2^53, so it is exact as a JavaScript number. The models do not process every frame, so the ids
|
|
3049
|
+
* of successive results can skip.
|
|
3050
|
+
*
|
|
3051
|
+
* Recorded video carries the id in a user_data_unregistered SEI message (payload type 5), one per access
|
|
3052
|
+
* unit, placed before the first slice: NAL unit type 6 in H.264 and PREFIX_SEI_NUT (type 39) in H.265.
|
|
3053
|
+
* The payload is 32 bytes, counted after the emulation prevention bytes are removed:
|
|
3054
|
+
*
|
|
3055
|
+
* - Bytes 0-15: UUID 6b1e2f0c-935d-4a8e-b17a-52d40e3c91f6, in the byte order written.
|
|
3056
|
+
* - Bytes 16-23: frame_id, uint64 big-endian.
|
|
3057
|
+
* - Bytes 24-31: capture time of the frame in CLOCK_MONOTONIC on the drone (ns), uint64 big-endian, 0 if unknown.
|
|
3058
|
+
*
|
|
3059
|
+
* A frame that the recorder repeats to keep the frame rate carries the id of the frame it repeats.
|
|
3060
|
+
* Re-encoding the video drops the SEI, so only the original recording carries the ids.
|
|
3061
|
+
*/
|
|
3021
3062
|
export interface ModelDetections {
|
|
3022
3063
|
/** List of detections in the frame. */
|
|
3023
3064
|
detections: ObjectDetection[];
|
|
@@ -3029,6 +3070,11 @@ export interface ModelDetections {
|
|
|
3029
3070
|
imageHeight: number;
|
|
3030
3071
|
/** Name of the computer vision model that produced the detections. */
|
|
3031
3072
|
modelName: string;
|
|
3073
|
+
/**
|
|
3074
|
+
* Id of the camera frame the detections were computed from, 0 if unknown. Matches the frame id
|
|
3075
|
+
* embedded in recorded video; the message description gives the format.
|
|
3076
|
+
*/
|
|
3077
|
+
frameId: number;
|
|
3032
3078
|
}
|
|
3033
3079
|
/** Generic filter settings. */
|
|
3034
3080
|
export interface FilterMessage {
|
|
@@ -3094,6 +3140,11 @@ export interface SotState {
|
|
|
3094
3140
|
vs: number;
|
|
3095
3141
|
/** Kalman rate of change of the bounding box aspect ratio, width / height (1/s). */
|
|
3096
3142
|
vr: number;
|
|
3143
|
+
/**
|
|
3144
|
+
* Id of the camera frame the state was computed from, 0 if unknown. Matches the frame id embedded
|
|
3145
|
+
* in recorded video; ModelDetections describes the format.
|
|
3146
|
+
*/
|
|
3147
|
+
frameId: number;
|
|
3097
3148
|
}
|
|
3098
3149
|
/** Current state of the SOT tracker. */
|
|
3099
3150
|
export declare enum SotState_State {
|
|
@@ -3140,6 +3191,39 @@ export interface Annotation {
|
|
|
3140
3191
|
/** Origin of the annotation; the app sets APP, the drone sets DRONE for its own. */
|
|
3141
3192
|
source: AnnotationSource;
|
|
3142
3193
|
}
|
|
3194
|
+
/**
|
|
3195
|
+
* Unit quaternion describing a rotation (Hamilton convention: w + xi + yj + zk).
|
|
3196
|
+
*
|
|
3197
|
+
* Where it is a body's orientation, it rotates vectors from the body's frame to
|
|
3198
|
+
* the frame the body is placed in.
|
|
3199
|
+
*/
|
|
3200
|
+
export interface Quaternion {
|
|
3201
|
+
/** X-component of the vector part. */
|
|
3202
|
+
x: number;
|
|
3203
|
+
/** Y-component of the vector part. */
|
|
3204
|
+
y: number;
|
|
3205
|
+
/** Z-component of the vector part. */
|
|
3206
|
+
z: number;
|
|
3207
|
+
/** Scalar part. */
|
|
3208
|
+
w: number;
|
|
3209
|
+
}
|
|
3210
|
+
/**
|
|
3211
|
+
* Points packed for use as typed arrays without decoding them one by one.
|
|
3212
|
+
*
|
|
3213
|
+
* The frame the positions are in is the one the enclosing message names.
|
|
3214
|
+
*
|
|
3215
|
+
* count says how many points the bytes hold: positions is exactly count * 12 bytes,
|
|
3216
|
+
* and intensities either empty or count bytes. A cloud whose bytes disagree with
|
|
3217
|
+
* count is malformed, and is not used.
|
|
3218
|
+
*/
|
|
3219
|
+
export interface PointCloud {
|
|
3220
|
+
/** Number of points. */
|
|
3221
|
+
count: number;
|
|
3222
|
+
/** count x, y, z triplets of little-endian float32 (m): 12 bytes per point. */
|
|
3223
|
+
positions: Uint8Array;
|
|
3224
|
+
/** count signal strengths, one byte each (0 to 255), or empty when unknown. */
|
|
3225
|
+
intensities: Uint8Array;
|
|
3226
|
+
}
|
|
3143
3227
|
export declare const BinlogRecord: MessageFns<BinlogRecord>;
|
|
3144
3228
|
export declare const LogEntry: MessageFns<LogEntry>;
|
|
3145
3229
|
export declare const KernelLogEntry: MessageFns<KernelLogEntry>;
|
|
@@ -3270,6 +3354,8 @@ export declare const CameraPanTiltZoom: MessageFns<CameraPanTiltZoom>;
|
|
|
3270
3354
|
export declare const OperatorInfo: MessageFns<OperatorInfo>;
|
|
3271
3355
|
export declare const SotState: MessageFns<SotState>;
|
|
3272
3356
|
export declare const Annotation: MessageFns<Annotation>;
|
|
3357
|
+
export declare const Quaternion: MessageFns<Quaternion>;
|
|
3358
|
+
export declare const PointCloud: MessageFns<PointCloud>;
|
|
3273
3359
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
3274
3360
|
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 {} ? {
|
|
3275
3361
|
[K in keyof T]?: DeepPartial<T[K]>;
|
package/dist/message_formats.js
CHANGED
|
@@ -1456,6 +1456,12 @@ export var GuestPortDeviceID;
|
|
|
1456
1456
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200"] = 51] = "GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200";
|
|
1457
1457
|
/** GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5 - Reach Robotics Reach Alpha 5 Manipulator. */
|
|
1458
1458
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5"] = 52] = "GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5";
|
|
1459
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3 - Blueye Multibeam Skid Servo V3. */
|
|
1460
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3"] = 53] = "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3";
|
|
1461
|
+
/** GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2 - Detachable Blue Robotics Newton V2. */
|
|
1462
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2"] = 54] = "GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2";
|
|
1463
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2 - Blueye Scaling Laser V2. */
|
|
1464
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2"] = 55] = "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2";
|
|
1459
1465
|
GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1460
1466
|
})(GuestPortDeviceID || (GuestPortDeviceID = {}));
|
|
1461
1467
|
export function guestPortDeviceIDFromJSON(object) {
|
|
@@ -1619,6 +1625,15 @@ export function guestPortDeviceIDFromJSON(object) {
|
|
|
1619
1625
|
case 52:
|
|
1620
1626
|
case "GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5":
|
|
1621
1627
|
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5;
|
|
1628
|
+
case 53:
|
|
1629
|
+
case "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3":
|
|
1630
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3;
|
|
1631
|
+
case 54:
|
|
1632
|
+
case "GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2":
|
|
1633
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2;
|
|
1634
|
+
case 55:
|
|
1635
|
+
case "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2":
|
|
1636
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2;
|
|
1622
1637
|
case -1:
|
|
1623
1638
|
case "UNRECOGNIZED":
|
|
1624
1639
|
default:
|
|
@@ -1733,6 +1748,12 @@ export function guestPortDeviceIDToJSON(object) {
|
|
|
1733
1748
|
return "GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200";
|
|
1734
1749
|
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5:
|
|
1735
1750
|
return "GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5";
|
|
1751
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3:
|
|
1752
|
+
return "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3";
|
|
1753
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2:
|
|
1754
|
+
return "GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2";
|
|
1755
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2:
|
|
1756
|
+
return "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2";
|
|
1736
1757
|
case GuestPortDeviceID.UNRECOGNIZED:
|
|
1737
1758
|
default:
|
|
1738
1759
|
return "UNRECOGNIZED";
|
|
@@ -1831,6 +1852,10 @@ export var GuestPortCapability;
|
|
|
1831
1852
|
GuestPortCapability[GuestPortCapability["GUEST_PORT_CAPABILITY_PWM"] = 6] = "GUEST_PORT_CAPABILITY_PWM";
|
|
1832
1853
|
/** GUEST_PORT_CAPABILITY_ETHERNET_1G - Gigabit Ethernet. */
|
|
1833
1854
|
GuestPortCapability[GuestPortCapability["GUEST_PORT_CAPABILITY_ETHERNET_1G"] = 7] = "GUEST_PORT_CAPABILITY_ETHERNET_1G";
|
|
1855
|
+
/** GUEST_PORT_CAPABILITY_I2C_IO - TCA9536 I/O expander. */
|
|
1856
|
+
GuestPortCapability[GuestPortCapability["GUEST_PORT_CAPABILITY_I2C_IO"] = 8] = "GUEST_PORT_CAPABILITY_I2C_IO";
|
|
1857
|
+
/** GUEST_PORT_CAPABILITY_I2C_IO_V2 - PCA9554A I/O expander. */
|
|
1858
|
+
GuestPortCapability[GuestPortCapability["GUEST_PORT_CAPABILITY_I2C_IO_V2"] = 9] = "GUEST_PORT_CAPABILITY_I2C_IO_V2";
|
|
1834
1859
|
GuestPortCapability[GuestPortCapability["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1835
1860
|
})(GuestPortCapability || (GuestPortCapability = {}));
|
|
1836
1861
|
export function guestPortCapabilityFromJSON(object) {
|
|
@@ -1859,6 +1884,12 @@ export function guestPortCapabilityFromJSON(object) {
|
|
|
1859
1884
|
case 7:
|
|
1860
1885
|
case "GUEST_PORT_CAPABILITY_ETHERNET_1G":
|
|
1861
1886
|
return GuestPortCapability.GUEST_PORT_CAPABILITY_ETHERNET_1G;
|
|
1887
|
+
case 8:
|
|
1888
|
+
case "GUEST_PORT_CAPABILITY_I2C_IO":
|
|
1889
|
+
return GuestPortCapability.GUEST_PORT_CAPABILITY_I2C_IO;
|
|
1890
|
+
case 9:
|
|
1891
|
+
case "GUEST_PORT_CAPABILITY_I2C_IO_V2":
|
|
1892
|
+
return GuestPortCapability.GUEST_PORT_CAPABILITY_I2C_IO_V2;
|
|
1862
1893
|
case -1:
|
|
1863
1894
|
case "UNRECOGNIZED":
|
|
1864
1895
|
default:
|
|
@@ -1883,6 +1914,10 @@ export function guestPortCapabilityToJSON(object) {
|
|
|
1883
1914
|
return "GUEST_PORT_CAPABILITY_PWM";
|
|
1884
1915
|
case GuestPortCapability.GUEST_PORT_CAPABILITY_ETHERNET_1G:
|
|
1885
1916
|
return "GUEST_PORT_CAPABILITY_ETHERNET_1G";
|
|
1917
|
+
case GuestPortCapability.GUEST_PORT_CAPABILITY_I2C_IO:
|
|
1918
|
+
return "GUEST_PORT_CAPABILITY_I2C_IO";
|
|
1919
|
+
case GuestPortCapability.GUEST_PORT_CAPABILITY_I2C_IO_V2:
|
|
1920
|
+
return "GUEST_PORT_CAPABILITY_I2C_IO_V2";
|
|
1886
1921
|
case GuestPortCapability.UNRECOGNIZED:
|
|
1887
1922
|
default:
|
|
1888
1923
|
return "UNRECOGNIZED";
|
|
@@ -3857,6 +3892,7 @@ function createBaseLaserDetection() {
|
|
|
3857
3892
|
laserWidth: 0,
|
|
3858
3893
|
correctedPixelDistance: 0,
|
|
3859
3894
|
estimatedDistance: 0,
|
|
3895
|
+
frameId: 0,
|
|
3860
3896
|
};
|
|
3861
3897
|
}
|
|
3862
3898
|
export const LaserDetection = {
|
|
@@ -3891,6 +3927,9 @@ export const LaserDetection = {
|
|
|
3891
3927
|
if (message.estimatedDistance !== 0) {
|
|
3892
3928
|
writer.uint32(85).float(message.estimatedDistance);
|
|
3893
3929
|
}
|
|
3930
|
+
if (message.frameId !== 0) {
|
|
3931
|
+
writer.uint32(88).uint64(message.frameId);
|
|
3932
|
+
}
|
|
3894
3933
|
return writer;
|
|
3895
3934
|
},
|
|
3896
3935
|
decode(input, length) {
|
|
@@ -3970,6 +4009,13 @@ export const LaserDetection = {
|
|
|
3970
4009
|
message.estimatedDistance = reader.float();
|
|
3971
4010
|
continue;
|
|
3972
4011
|
}
|
|
4012
|
+
case 11: {
|
|
4013
|
+
if (tag !== 88) {
|
|
4014
|
+
break;
|
|
4015
|
+
}
|
|
4016
|
+
message.frameId = longToNumber(reader.uint64());
|
|
4017
|
+
continue;
|
|
4018
|
+
}
|
|
3973
4019
|
}
|
|
3974
4020
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3975
4021
|
break;
|
|
@@ -3990,6 +4036,7 @@ export const LaserDetection = {
|
|
|
3990
4036
|
laserWidth: isSet(object.laserWidth) ? gt.Number(object.laserWidth) : 0,
|
|
3991
4037
|
correctedPixelDistance: isSet(object.correctedPixelDistance) ? gt.Number(object.correctedPixelDistance) : 0,
|
|
3992
4038
|
estimatedDistance: isSet(object.estimatedDistance) ? gt.Number(object.estimatedDistance) : 0,
|
|
4039
|
+
frameId: isSet(object.frameId) ? gt.Number(object.frameId) : 0,
|
|
3993
4040
|
};
|
|
3994
4041
|
},
|
|
3995
4042
|
toJSON(message) {
|
|
@@ -4024,6 +4071,9 @@ export const LaserDetection = {
|
|
|
4024
4071
|
if (message.estimatedDistance !== 0) {
|
|
4025
4072
|
obj.estimatedDistance = message.estimatedDistance;
|
|
4026
4073
|
}
|
|
4074
|
+
if (message.frameId !== 0) {
|
|
4075
|
+
obj.frameId = Math.round(message.frameId);
|
|
4076
|
+
}
|
|
4027
4077
|
return obj;
|
|
4028
4078
|
},
|
|
4029
4079
|
create(base) {
|
|
@@ -4041,6 +4091,7 @@ export const LaserDetection = {
|
|
|
4041
4091
|
message.laserWidth = object.laserWidth ?? 0;
|
|
4042
4092
|
message.correctedPixelDistance = object.correctedPixelDistance ?? 0;
|
|
4043
4093
|
message.estimatedDistance = object.estimatedDistance ?? 0;
|
|
4094
|
+
message.frameId = object.frameId ?? 0;
|
|
4044
4095
|
return message;
|
|
4045
4096
|
},
|
|
4046
4097
|
};
|
|
@@ -11880,6 +11931,8 @@ function createBaseDroneInfo() {
|
|
|
11880
11931
|
cvModels: [],
|
|
11881
11932
|
powerSource: 0,
|
|
11882
11933
|
mainCameraCalibration: undefined,
|
|
11934
|
+
diveNumber: 0,
|
|
11935
|
+
logName: "",
|
|
11883
11936
|
};
|
|
11884
11937
|
}
|
|
11885
11938
|
export const DroneInfo = {
|
|
@@ -11926,6 +11979,12 @@ export const DroneInfo = {
|
|
|
11926
11979
|
if (message.mainCameraCalibration !== undefined) {
|
|
11927
11980
|
CameraCalibration.encode(message.mainCameraCalibration, writer.uint32(114).fork()).join();
|
|
11928
11981
|
}
|
|
11982
|
+
if (message.diveNumber !== 0) {
|
|
11983
|
+
writer.uint32(120).uint32(message.diveNumber);
|
|
11984
|
+
}
|
|
11985
|
+
if (message.logName !== "") {
|
|
11986
|
+
writer.uint32(130).string(message.logName);
|
|
11987
|
+
}
|
|
11929
11988
|
return writer;
|
|
11930
11989
|
},
|
|
11931
11990
|
decode(input, length) {
|
|
@@ -12033,6 +12092,20 @@ export const DroneInfo = {
|
|
|
12033
12092
|
message.mainCameraCalibration = CameraCalibration.decode(reader, reader.uint32());
|
|
12034
12093
|
continue;
|
|
12035
12094
|
}
|
|
12095
|
+
case 15: {
|
|
12096
|
+
if (tag !== 120) {
|
|
12097
|
+
break;
|
|
12098
|
+
}
|
|
12099
|
+
message.diveNumber = reader.uint32();
|
|
12100
|
+
continue;
|
|
12101
|
+
}
|
|
12102
|
+
case 16: {
|
|
12103
|
+
if (tag !== 130) {
|
|
12104
|
+
break;
|
|
12105
|
+
}
|
|
12106
|
+
message.logName = reader.string();
|
|
12107
|
+
continue;
|
|
12108
|
+
}
|
|
12036
12109
|
}
|
|
12037
12110
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12038
12111
|
break;
|
|
@@ -12059,6 +12132,8 @@ export const DroneInfo = {
|
|
|
12059
12132
|
mainCameraCalibration: isSet(object.mainCameraCalibration)
|
|
12060
12133
|
? CameraCalibration.fromJSON(object.mainCameraCalibration)
|
|
12061
12134
|
: undefined,
|
|
12135
|
+
diveNumber: isSet(object.diveNumber) ? gt.Number(object.diveNumber) : 0,
|
|
12136
|
+
logName: isSet(object.logName) ? gt.String(object.logName) : "",
|
|
12062
12137
|
};
|
|
12063
12138
|
},
|
|
12064
12139
|
toJSON(message) {
|
|
@@ -12105,6 +12180,12 @@ export const DroneInfo = {
|
|
|
12105
12180
|
if (message.mainCameraCalibration !== undefined) {
|
|
12106
12181
|
obj.mainCameraCalibration = CameraCalibration.toJSON(message.mainCameraCalibration);
|
|
12107
12182
|
}
|
|
12183
|
+
if (message.diveNumber !== 0) {
|
|
12184
|
+
obj.diveNumber = Math.round(message.diveNumber);
|
|
12185
|
+
}
|
|
12186
|
+
if (message.logName !== "") {
|
|
12187
|
+
obj.logName = message.logName;
|
|
12188
|
+
}
|
|
12108
12189
|
return obj;
|
|
12109
12190
|
},
|
|
12110
12191
|
create(base) {
|
|
@@ -12129,6 +12210,8 @@ export const DroneInfo = {
|
|
|
12129
12210
|
(object.mainCameraCalibration !== undefined && object.mainCameraCalibration !== null)
|
|
12130
12211
|
? CameraCalibration.fromPartial(object.mainCameraCalibration)
|
|
12131
12212
|
: undefined;
|
|
12213
|
+
message.diveNumber = object.diveNumber ?? 0;
|
|
12214
|
+
message.logName = object.logName ?? "";
|
|
12132
12215
|
return message;
|
|
12133
12216
|
},
|
|
12134
12217
|
};
|
|
@@ -19935,7 +20018,7 @@ export const ObjectDetection = {
|
|
|
19935
20018
|
},
|
|
19936
20019
|
};
|
|
19937
20020
|
function createBaseModelDetections() {
|
|
19938
|
-
return { detections: [], camera: 0, imageWidth: 0, imageHeight: 0, modelName: "" };
|
|
20021
|
+
return { detections: [], camera: 0, imageWidth: 0, imageHeight: 0, modelName: "", frameId: 0 };
|
|
19939
20022
|
}
|
|
19940
20023
|
export const ModelDetections = {
|
|
19941
20024
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -19954,6 +20037,9 @@ export const ModelDetections = {
|
|
|
19954
20037
|
if (message.modelName !== "") {
|
|
19955
20038
|
writer.uint32(42).string(message.modelName);
|
|
19956
20039
|
}
|
|
20040
|
+
if (message.frameId !== 0) {
|
|
20041
|
+
writer.uint32(48).uint64(message.frameId);
|
|
20042
|
+
}
|
|
19957
20043
|
return writer;
|
|
19958
20044
|
},
|
|
19959
20045
|
decode(input, length) {
|
|
@@ -19998,6 +20084,13 @@ export const ModelDetections = {
|
|
|
19998
20084
|
message.modelName = reader.string();
|
|
19999
20085
|
continue;
|
|
20000
20086
|
}
|
|
20087
|
+
case 6: {
|
|
20088
|
+
if (tag !== 48) {
|
|
20089
|
+
break;
|
|
20090
|
+
}
|
|
20091
|
+
message.frameId = longToNumber(reader.uint64());
|
|
20092
|
+
continue;
|
|
20093
|
+
}
|
|
20001
20094
|
}
|
|
20002
20095
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20003
20096
|
break;
|
|
@@ -20015,6 +20108,7 @@ export const ModelDetections = {
|
|
|
20015
20108
|
imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
|
|
20016
20109
|
imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
|
|
20017
20110
|
modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
|
|
20111
|
+
frameId: isSet(object.frameId) ? gt.Number(object.frameId) : 0,
|
|
20018
20112
|
};
|
|
20019
20113
|
},
|
|
20020
20114
|
toJSON(message) {
|
|
@@ -20034,6 +20128,9 @@ export const ModelDetections = {
|
|
|
20034
20128
|
if (message.modelName !== "") {
|
|
20035
20129
|
obj.modelName = message.modelName;
|
|
20036
20130
|
}
|
|
20131
|
+
if (message.frameId !== 0) {
|
|
20132
|
+
obj.frameId = Math.round(message.frameId);
|
|
20133
|
+
}
|
|
20037
20134
|
return obj;
|
|
20038
20135
|
},
|
|
20039
20136
|
create(base) {
|
|
@@ -20046,6 +20143,7 @@ export const ModelDetections = {
|
|
|
20046
20143
|
message.imageWidth = object.imageWidth ?? 0;
|
|
20047
20144
|
message.imageHeight = object.imageHeight ?? 0;
|
|
20048
20145
|
message.modelName = object.modelName ?? "";
|
|
20146
|
+
message.frameId = object.frameId ?? 0;
|
|
20049
20147
|
return message;
|
|
20050
20148
|
},
|
|
20051
20149
|
};
|
|
@@ -20337,7 +20435,18 @@ export const OperatorInfo = {
|
|
|
20337
20435
|
},
|
|
20338
20436
|
};
|
|
20339
20437
|
function createBaseSotState() {
|
|
20340
|
-
return {
|
|
20438
|
+
return {
|
|
20439
|
+
state: 0,
|
|
20440
|
+
boundingBox: undefined,
|
|
20441
|
+
imageWidth: 0,
|
|
20442
|
+
imageHeight: 0,
|
|
20443
|
+
confidence: 0,
|
|
20444
|
+
vx: 0,
|
|
20445
|
+
vy: 0,
|
|
20446
|
+
vs: 0,
|
|
20447
|
+
vr: 0,
|
|
20448
|
+
frameId: 0,
|
|
20449
|
+
};
|
|
20341
20450
|
}
|
|
20342
20451
|
export const SotState = {
|
|
20343
20452
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -20368,6 +20477,9 @@ export const SotState = {
|
|
|
20368
20477
|
if (message.vr !== 0) {
|
|
20369
20478
|
writer.uint32(77).float(message.vr);
|
|
20370
20479
|
}
|
|
20480
|
+
if (message.frameId !== 0) {
|
|
20481
|
+
writer.uint32(80).uint64(message.frameId);
|
|
20482
|
+
}
|
|
20371
20483
|
return writer;
|
|
20372
20484
|
},
|
|
20373
20485
|
decode(input, length) {
|
|
@@ -20440,6 +20552,13 @@ export const SotState = {
|
|
|
20440
20552
|
message.vr = reader.float();
|
|
20441
20553
|
continue;
|
|
20442
20554
|
}
|
|
20555
|
+
case 10: {
|
|
20556
|
+
if (tag !== 80) {
|
|
20557
|
+
break;
|
|
20558
|
+
}
|
|
20559
|
+
message.frameId = longToNumber(reader.uint64());
|
|
20560
|
+
continue;
|
|
20561
|
+
}
|
|
20443
20562
|
}
|
|
20444
20563
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20445
20564
|
break;
|
|
@@ -20459,6 +20578,7 @@ export const SotState = {
|
|
|
20459
20578
|
vy: isSet(object.vy) ? gt.Number(object.vy) : 0,
|
|
20460
20579
|
vs: isSet(object.vs) ? gt.Number(object.vs) : 0,
|
|
20461
20580
|
vr: isSet(object.vr) ? gt.Number(object.vr) : 0,
|
|
20581
|
+
frameId: isSet(object.frameId) ? gt.Number(object.frameId) : 0,
|
|
20462
20582
|
};
|
|
20463
20583
|
},
|
|
20464
20584
|
toJSON(message) {
|
|
@@ -20490,6 +20610,9 @@ export const SotState = {
|
|
|
20490
20610
|
if (message.vr !== 0) {
|
|
20491
20611
|
obj.vr = message.vr;
|
|
20492
20612
|
}
|
|
20613
|
+
if (message.frameId !== 0) {
|
|
20614
|
+
obj.frameId = Math.round(message.frameId);
|
|
20615
|
+
}
|
|
20493
20616
|
return obj;
|
|
20494
20617
|
},
|
|
20495
20618
|
create(base) {
|
|
@@ -20508,6 +20631,7 @@ export const SotState = {
|
|
|
20508
20631
|
message.vy = object.vy ?? 0;
|
|
20509
20632
|
message.vs = object.vs ?? 0;
|
|
20510
20633
|
message.vr = object.vr ?? 0;
|
|
20634
|
+
message.frameId = object.frameId ?? 0;
|
|
20511
20635
|
return message;
|
|
20512
20636
|
},
|
|
20513
20637
|
};
|
|
@@ -20680,6 +20804,187 @@ export const Annotation = {
|
|
|
20680
20804
|
return message;
|
|
20681
20805
|
},
|
|
20682
20806
|
};
|
|
20807
|
+
function createBaseQuaternion() {
|
|
20808
|
+
return { x: 0, y: 0, z: 0, w: 0 };
|
|
20809
|
+
}
|
|
20810
|
+
export const Quaternion = {
|
|
20811
|
+
encode(message, writer = new BinaryWriter()) {
|
|
20812
|
+
if (message.x !== 0) {
|
|
20813
|
+
writer.uint32(9).double(message.x);
|
|
20814
|
+
}
|
|
20815
|
+
if (message.y !== 0) {
|
|
20816
|
+
writer.uint32(17).double(message.y);
|
|
20817
|
+
}
|
|
20818
|
+
if (message.z !== 0) {
|
|
20819
|
+
writer.uint32(25).double(message.z);
|
|
20820
|
+
}
|
|
20821
|
+
if (message.w !== 0) {
|
|
20822
|
+
writer.uint32(33).double(message.w);
|
|
20823
|
+
}
|
|
20824
|
+
return writer;
|
|
20825
|
+
},
|
|
20826
|
+
decode(input, length) {
|
|
20827
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
20828
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
20829
|
+
const message = createBaseQuaternion();
|
|
20830
|
+
while (reader.pos < end) {
|
|
20831
|
+
const tag = reader.uint32();
|
|
20832
|
+
switch (tag >>> 3) {
|
|
20833
|
+
case 1: {
|
|
20834
|
+
if (tag !== 9) {
|
|
20835
|
+
break;
|
|
20836
|
+
}
|
|
20837
|
+
message.x = reader.double();
|
|
20838
|
+
continue;
|
|
20839
|
+
}
|
|
20840
|
+
case 2: {
|
|
20841
|
+
if (tag !== 17) {
|
|
20842
|
+
break;
|
|
20843
|
+
}
|
|
20844
|
+
message.y = reader.double();
|
|
20845
|
+
continue;
|
|
20846
|
+
}
|
|
20847
|
+
case 3: {
|
|
20848
|
+
if (tag !== 25) {
|
|
20849
|
+
break;
|
|
20850
|
+
}
|
|
20851
|
+
message.z = reader.double();
|
|
20852
|
+
continue;
|
|
20853
|
+
}
|
|
20854
|
+
case 4: {
|
|
20855
|
+
if (tag !== 33) {
|
|
20856
|
+
break;
|
|
20857
|
+
}
|
|
20858
|
+
message.w = reader.double();
|
|
20859
|
+
continue;
|
|
20860
|
+
}
|
|
20861
|
+
}
|
|
20862
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
20863
|
+
break;
|
|
20864
|
+
}
|
|
20865
|
+
reader.skip(tag & 7);
|
|
20866
|
+
}
|
|
20867
|
+
return message;
|
|
20868
|
+
},
|
|
20869
|
+
fromJSON(object) {
|
|
20870
|
+
return {
|
|
20871
|
+
x: isSet(object.x) ? gt.Number(object.x) : 0,
|
|
20872
|
+
y: isSet(object.y) ? gt.Number(object.y) : 0,
|
|
20873
|
+
z: isSet(object.z) ? gt.Number(object.z) : 0,
|
|
20874
|
+
w: isSet(object.w) ? gt.Number(object.w) : 0,
|
|
20875
|
+
};
|
|
20876
|
+
},
|
|
20877
|
+
toJSON(message) {
|
|
20878
|
+
const obj = {};
|
|
20879
|
+
if (message.x !== 0) {
|
|
20880
|
+
obj.x = message.x;
|
|
20881
|
+
}
|
|
20882
|
+
if (message.y !== 0) {
|
|
20883
|
+
obj.y = message.y;
|
|
20884
|
+
}
|
|
20885
|
+
if (message.z !== 0) {
|
|
20886
|
+
obj.z = message.z;
|
|
20887
|
+
}
|
|
20888
|
+
if (message.w !== 0) {
|
|
20889
|
+
obj.w = message.w;
|
|
20890
|
+
}
|
|
20891
|
+
return obj;
|
|
20892
|
+
},
|
|
20893
|
+
create(base) {
|
|
20894
|
+
return Quaternion.fromPartial(base ?? {});
|
|
20895
|
+
},
|
|
20896
|
+
fromPartial(object) {
|
|
20897
|
+
const message = createBaseQuaternion();
|
|
20898
|
+
message.x = object.x ?? 0;
|
|
20899
|
+
message.y = object.y ?? 0;
|
|
20900
|
+
message.z = object.z ?? 0;
|
|
20901
|
+
message.w = object.w ?? 0;
|
|
20902
|
+
return message;
|
|
20903
|
+
},
|
|
20904
|
+
};
|
|
20905
|
+
function createBasePointCloud() {
|
|
20906
|
+
return { count: 0, positions: new Uint8Array(0), intensities: new Uint8Array(0) };
|
|
20907
|
+
}
|
|
20908
|
+
export const PointCloud = {
|
|
20909
|
+
encode(message, writer = new BinaryWriter()) {
|
|
20910
|
+
if (message.count !== 0) {
|
|
20911
|
+
writer.uint32(8).uint32(message.count);
|
|
20912
|
+
}
|
|
20913
|
+
if (message.positions.length !== 0) {
|
|
20914
|
+
writer.uint32(18).bytes(message.positions);
|
|
20915
|
+
}
|
|
20916
|
+
if (message.intensities.length !== 0) {
|
|
20917
|
+
writer.uint32(26).bytes(message.intensities);
|
|
20918
|
+
}
|
|
20919
|
+
return writer;
|
|
20920
|
+
},
|
|
20921
|
+
decode(input, length) {
|
|
20922
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
20923
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
20924
|
+
const message = createBasePointCloud();
|
|
20925
|
+
while (reader.pos < end) {
|
|
20926
|
+
const tag = reader.uint32();
|
|
20927
|
+
switch (tag >>> 3) {
|
|
20928
|
+
case 1: {
|
|
20929
|
+
if (tag !== 8) {
|
|
20930
|
+
break;
|
|
20931
|
+
}
|
|
20932
|
+
message.count = reader.uint32();
|
|
20933
|
+
continue;
|
|
20934
|
+
}
|
|
20935
|
+
case 2: {
|
|
20936
|
+
if (tag !== 18) {
|
|
20937
|
+
break;
|
|
20938
|
+
}
|
|
20939
|
+
message.positions = reader.bytes();
|
|
20940
|
+
continue;
|
|
20941
|
+
}
|
|
20942
|
+
case 3: {
|
|
20943
|
+
if (tag !== 26) {
|
|
20944
|
+
break;
|
|
20945
|
+
}
|
|
20946
|
+
message.intensities = reader.bytes();
|
|
20947
|
+
continue;
|
|
20948
|
+
}
|
|
20949
|
+
}
|
|
20950
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
20951
|
+
break;
|
|
20952
|
+
}
|
|
20953
|
+
reader.skip(tag & 7);
|
|
20954
|
+
}
|
|
20955
|
+
return message;
|
|
20956
|
+
},
|
|
20957
|
+
fromJSON(object) {
|
|
20958
|
+
return {
|
|
20959
|
+
count: isSet(object.count) ? gt.Number(object.count) : 0,
|
|
20960
|
+
positions: isSet(object.positions) ? bytesFromBase64(object.positions) : new Uint8Array(0),
|
|
20961
|
+
intensities: isSet(object.intensities) ? bytesFromBase64(object.intensities) : new Uint8Array(0),
|
|
20962
|
+
};
|
|
20963
|
+
},
|
|
20964
|
+
toJSON(message) {
|
|
20965
|
+
const obj = {};
|
|
20966
|
+
if (message.count !== 0) {
|
|
20967
|
+
obj.count = Math.round(message.count);
|
|
20968
|
+
}
|
|
20969
|
+
if (message.positions.length !== 0) {
|
|
20970
|
+
obj.positions = base64FromBytes(message.positions);
|
|
20971
|
+
}
|
|
20972
|
+
if (message.intensities.length !== 0) {
|
|
20973
|
+
obj.intensities = base64FromBytes(message.intensities);
|
|
20974
|
+
}
|
|
20975
|
+
return obj;
|
|
20976
|
+
},
|
|
20977
|
+
create(base) {
|
|
20978
|
+
return PointCloud.fromPartial(base ?? {});
|
|
20979
|
+
},
|
|
20980
|
+
fromPartial(object) {
|
|
20981
|
+
const message = createBasePointCloud();
|
|
20982
|
+
message.count = object.count ?? 0;
|
|
20983
|
+
message.positions = object.positions ?? new Uint8Array(0);
|
|
20984
|
+
message.intensities = object.intensities ?? new Uint8Array(0);
|
|
20985
|
+
return message;
|
|
20986
|
+
},
|
|
20987
|
+
};
|
|
20683
20988
|
const gt = (() => {
|
|
20684
20989
|
if (typeof globalThis !== "undefined") {
|
|
20685
20990
|
return globalThis;
|