@blueyerobotics/protocol-definitions 3.4.0-8187f91a → 3.4.0-efe27311
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 +28 -0
- package/dist/control.js +159 -0
- package/dist/index.blueye.protocol.d.ts +2 -1
- package/dist/index.blueye.protocol.js +2 -1
- package/dist/message_formats.d.ts +104 -2
- package/dist/message_formats.js +353 -2
- package/dist/mission_planning.d.ts +526 -5
- package/dist/mission_planning.js +3098 -143
- package/dist/req_rep.d.ts +229 -5
- package/dist/req_rep.js +1780 -400
- package/dist/slam.d.ts +512 -0
- package/dist/slam.js +2427 -0
- package/dist/telemetry.d.ts +98 -1
- package/dist/telemetry.js +531 -1
- package/package.json +1 -1
package/dist/message_formats.js
CHANGED
|
@@ -387,6 +387,22 @@ export var NotificationType;
|
|
|
387
387
|
NotificationType[NotificationType["NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED"] = 33] = "NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED";
|
|
388
388
|
/** NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED - DVL firmware speaks a protocol version Blunux does not support. */
|
|
389
389
|
NotificationType[NotificationType["NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED"] = 34] = "NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED";
|
|
390
|
+
/** NOTIFICATION_TYPE_INSTRUCTION_STARTED - An instruction started; the value names it or is its target. */
|
|
391
|
+
NotificationType[NotificationType["NOTIFICATION_TYPE_INSTRUCTION_STARTED"] = 35] = "NOTIFICATION_TYPE_INSTRUCTION_STARTED";
|
|
392
|
+
/** NOTIFICATION_TYPE_MISSION_PAUSED_BY_INSTRUCTION - Paused after the instruction whose id is the value. */
|
|
393
|
+
NotificationType[NotificationType["NOTIFICATION_TYPE_MISSION_PAUSED_BY_INSTRUCTION"] = 36] = "NOTIFICATION_TYPE_MISSION_PAUSED_BY_INSTRUCTION";
|
|
394
|
+
/** NOTIFICATION_TYPE_MISSION_UPDATED - The loaded mission was changed; the value says what changed. */
|
|
395
|
+
NotificationType[NotificationType["NOTIFICATION_TYPE_MISSION_UPDATED"] = 37] = "NOTIFICATION_TYPE_MISSION_UPDATED";
|
|
396
|
+
/** NOTIFICATION_TYPE_MISSION_RULE_FIRED - A mission rule fired; the value is its name. */
|
|
397
|
+
NotificationType[NotificationType["NOTIFICATION_TYPE_MISSION_RULE_FIRED"] = 38] = "NOTIFICATION_TYPE_MISSION_RULE_FIRED";
|
|
398
|
+
/** NOTIFICATION_TYPE_MISSION_RULE_RELEASED - A mission rule released; the value is its name. */
|
|
399
|
+
NotificationType[NotificationType["NOTIFICATION_TYPE_MISSION_RULE_RELEASED"] = 39] = "NOTIFICATION_TYPE_MISSION_RULE_RELEASED";
|
|
400
|
+
/**
|
|
401
|
+
* NOTIFICATION_TYPE_MULTIBEAM_SONAR_MISMATCH - A multibeam instruction was made for a different sonar than the one the multibeam driver
|
|
402
|
+
* reports; the value is the instruction's id. A MultibeamConfigCommand is skipped. An
|
|
403
|
+
* ActivateMultibeamCommand still starts or stops the driver, but without its configuration.
|
|
404
|
+
*/
|
|
405
|
+
NotificationType[NotificationType["NOTIFICATION_TYPE_MULTIBEAM_SONAR_MISMATCH"] = 40] = "NOTIFICATION_TYPE_MULTIBEAM_SONAR_MISMATCH";
|
|
390
406
|
NotificationType[NotificationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
391
407
|
})(NotificationType || (NotificationType = {}));
|
|
392
408
|
export function notificationTypeFromJSON(object) {
|
|
@@ -496,6 +512,24 @@ export function notificationTypeFromJSON(object) {
|
|
|
496
512
|
case 34:
|
|
497
513
|
case "NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED":
|
|
498
514
|
return NotificationType.NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED;
|
|
515
|
+
case 35:
|
|
516
|
+
case "NOTIFICATION_TYPE_INSTRUCTION_STARTED":
|
|
517
|
+
return NotificationType.NOTIFICATION_TYPE_INSTRUCTION_STARTED;
|
|
518
|
+
case 36:
|
|
519
|
+
case "NOTIFICATION_TYPE_MISSION_PAUSED_BY_INSTRUCTION":
|
|
520
|
+
return NotificationType.NOTIFICATION_TYPE_MISSION_PAUSED_BY_INSTRUCTION;
|
|
521
|
+
case 37:
|
|
522
|
+
case "NOTIFICATION_TYPE_MISSION_UPDATED":
|
|
523
|
+
return NotificationType.NOTIFICATION_TYPE_MISSION_UPDATED;
|
|
524
|
+
case 38:
|
|
525
|
+
case "NOTIFICATION_TYPE_MISSION_RULE_FIRED":
|
|
526
|
+
return NotificationType.NOTIFICATION_TYPE_MISSION_RULE_FIRED;
|
|
527
|
+
case 39:
|
|
528
|
+
case "NOTIFICATION_TYPE_MISSION_RULE_RELEASED":
|
|
529
|
+
return NotificationType.NOTIFICATION_TYPE_MISSION_RULE_RELEASED;
|
|
530
|
+
case 40:
|
|
531
|
+
case "NOTIFICATION_TYPE_MULTIBEAM_SONAR_MISMATCH":
|
|
532
|
+
return NotificationType.NOTIFICATION_TYPE_MULTIBEAM_SONAR_MISMATCH;
|
|
499
533
|
case -1:
|
|
500
534
|
case "UNRECOGNIZED":
|
|
501
535
|
default:
|
|
@@ -574,6 +608,18 @@ export function notificationTypeToJSON(object) {
|
|
|
574
608
|
return "NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED";
|
|
575
609
|
case NotificationType.NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED:
|
|
576
610
|
return "NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED";
|
|
611
|
+
case NotificationType.NOTIFICATION_TYPE_INSTRUCTION_STARTED:
|
|
612
|
+
return "NOTIFICATION_TYPE_INSTRUCTION_STARTED";
|
|
613
|
+
case NotificationType.NOTIFICATION_TYPE_MISSION_PAUSED_BY_INSTRUCTION:
|
|
614
|
+
return "NOTIFICATION_TYPE_MISSION_PAUSED_BY_INSTRUCTION";
|
|
615
|
+
case NotificationType.NOTIFICATION_TYPE_MISSION_UPDATED:
|
|
616
|
+
return "NOTIFICATION_TYPE_MISSION_UPDATED";
|
|
617
|
+
case NotificationType.NOTIFICATION_TYPE_MISSION_RULE_FIRED:
|
|
618
|
+
return "NOTIFICATION_TYPE_MISSION_RULE_FIRED";
|
|
619
|
+
case NotificationType.NOTIFICATION_TYPE_MISSION_RULE_RELEASED:
|
|
620
|
+
return "NOTIFICATION_TYPE_MISSION_RULE_RELEASED";
|
|
621
|
+
case NotificationType.NOTIFICATION_TYPE_MULTIBEAM_SONAR_MISMATCH:
|
|
622
|
+
return "NOTIFICATION_TYPE_MULTIBEAM_SONAR_MISMATCH";
|
|
577
623
|
case NotificationType.UNRECOGNIZED:
|
|
578
624
|
default:
|
|
579
625
|
return "UNRECOGNIZED";
|
|
@@ -1456,6 +1502,12 @@ export var GuestPortDeviceID;
|
|
|
1456
1502
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200"] = 51] = "GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200";
|
|
1457
1503
|
/** GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5 - Reach Robotics Reach Alpha 5 Manipulator. */
|
|
1458
1504
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5"] = 52] = "GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5";
|
|
1505
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3 - Blueye Multibeam Skid Servo V3. */
|
|
1506
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3"] = 53] = "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3";
|
|
1507
|
+
/** GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2 - Detachable Blue Robotics Newton V2. */
|
|
1508
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2"] = 54] = "GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2";
|
|
1509
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2 - Blueye Scaling Laser V2. */
|
|
1510
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2"] = 55] = "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2";
|
|
1459
1511
|
GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1460
1512
|
})(GuestPortDeviceID || (GuestPortDeviceID = {}));
|
|
1461
1513
|
export function guestPortDeviceIDFromJSON(object) {
|
|
@@ -1619,6 +1671,15 @@ export function guestPortDeviceIDFromJSON(object) {
|
|
|
1619
1671
|
case 52:
|
|
1620
1672
|
case "GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5":
|
|
1621
1673
|
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5;
|
|
1674
|
+
case 53:
|
|
1675
|
+
case "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3":
|
|
1676
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3;
|
|
1677
|
+
case 54:
|
|
1678
|
+
case "GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2":
|
|
1679
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2;
|
|
1680
|
+
case 55:
|
|
1681
|
+
case "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2":
|
|
1682
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2;
|
|
1622
1683
|
case -1:
|
|
1623
1684
|
case "UNRECOGNIZED":
|
|
1624
1685
|
default:
|
|
@@ -1733,6 +1794,12 @@ export function guestPortDeviceIDToJSON(object) {
|
|
|
1733
1794
|
return "GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200";
|
|
1734
1795
|
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5:
|
|
1735
1796
|
return "GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5";
|
|
1797
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3:
|
|
1798
|
+
return "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V3";
|
|
1799
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2:
|
|
1800
|
+
return "GUEST_PORT_DEVICE_ID_BLUE_ROBOTICS_DETACHABLE_NEWTON_V2";
|
|
1801
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2:
|
|
1802
|
+
return "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER_V2";
|
|
1736
1803
|
case GuestPortDeviceID.UNRECOGNIZED:
|
|
1737
1804
|
default:
|
|
1738
1805
|
return "UNRECOGNIZED";
|
|
@@ -1831,6 +1898,10 @@ export var GuestPortCapability;
|
|
|
1831
1898
|
GuestPortCapability[GuestPortCapability["GUEST_PORT_CAPABILITY_PWM"] = 6] = "GUEST_PORT_CAPABILITY_PWM";
|
|
1832
1899
|
/** GUEST_PORT_CAPABILITY_ETHERNET_1G - Gigabit Ethernet. */
|
|
1833
1900
|
GuestPortCapability[GuestPortCapability["GUEST_PORT_CAPABILITY_ETHERNET_1G"] = 7] = "GUEST_PORT_CAPABILITY_ETHERNET_1G";
|
|
1901
|
+
/** GUEST_PORT_CAPABILITY_I2C_IO - TCA9536 I/O expander. */
|
|
1902
|
+
GuestPortCapability[GuestPortCapability["GUEST_PORT_CAPABILITY_I2C_IO"] = 8] = "GUEST_PORT_CAPABILITY_I2C_IO";
|
|
1903
|
+
/** GUEST_PORT_CAPABILITY_I2C_IO_V2 - PCA9554A I/O expander. */
|
|
1904
|
+
GuestPortCapability[GuestPortCapability["GUEST_PORT_CAPABILITY_I2C_IO_V2"] = 9] = "GUEST_PORT_CAPABILITY_I2C_IO_V2";
|
|
1834
1905
|
GuestPortCapability[GuestPortCapability["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1835
1906
|
})(GuestPortCapability || (GuestPortCapability = {}));
|
|
1836
1907
|
export function guestPortCapabilityFromJSON(object) {
|
|
@@ -1859,6 +1930,12 @@ export function guestPortCapabilityFromJSON(object) {
|
|
|
1859
1930
|
case 7:
|
|
1860
1931
|
case "GUEST_PORT_CAPABILITY_ETHERNET_1G":
|
|
1861
1932
|
return GuestPortCapability.GUEST_PORT_CAPABILITY_ETHERNET_1G;
|
|
1933
|
+
case 8:
|
|
1934
|
+
case "GUEST_PORT_CAPABILITY_I2C_IO":
|
|
1935
|
+
return GuestPortCapability.GUEST_PORT_CAPABILITY_I2C_IO;
|
|
1936
|
+
case 9:
|
|
1937
|
+
case "GUEST_PORT_CAPABILITY_I2C_IO_V2":
|
|
1938
|
+
return GuestPortCapability.GUEST_PORT_CAPABILITY_I2C_IO_V2;
|
|
1862
1939
|
case -1:
|
|
1863
1940
|
case "UNRECOGNIZED":
|
|
1864
1941
|
default:
|
|
@@ -1883,6 +1960,10 @@ export function guestPortCapabilityToJSON(object) {
|
|
|
1883
1960
|
return "GUEST_PORT_CAPABILITY_PWM";
|
|
1884
1961
|
case GuestPortCapability.GUEST_PORT_CAPABILITY_ETHERNET_1G:
|
|
1885
1962
|
return "GUEST_PORT_CAPABILITY_ETHERNET_1G";
|
|
1963
|
+
case GuestPortCapability.GUEST_PORT_CAPABILITY_I2C_IO:
|
|
1964
|
+
return "GUEST_PORT_CAPABILITY_I2C_IO";
|
|
1965
|
+
case GuestPortCapability.GUEST_PORT_CAPABILITY_I2C_IO_V2:
|
|
1966
|
+
return "GUEST_PORT_CAPABILITY_I2C_IO_V2";
|
|
1886
1967
|
case GuestPortCapability.UNRECOGNIZED:
|
|
1887
1968
|
default:
|
|
1888
1969
|
return "UNRECOGNIZED";
|
|
@@ -3857,6 +3938,7 @@ function createBaseLaserDetection() {
|
|
|
3857
3938
|
laserWidth: 0,
|
|
3858
3939
|
correctedPixelDistance: 0,
|
|
3859
3940
|
estimatedDistance: 0,
|
|
3941
|
+
frameId: 0,
|
|
3860
3942
|
};
|
|
3861
3943
|
}
|
|
3862
3944
|
export const LaserDetection = {
|
|
@@ -3891,6 +3973,9 @@ export const LaserDetection = {
|
|
|
3891
3973
|
if (message.estimatedDistance !== 0) {
|
|
3892
3974
|
writer.uint32(85).float(message.estimatedDistance);
|
|
3893
3975
|
}
|
|
3976
|
+
if (message.frameId !== 0) {
|
|
3977
|
+
writer.uint32(88).uint64(message.frameId);
|
|
3978
|
+
}
|
|
3894
3979
|
return writer;
|
|
3895
3980
|
},
|
|
3896
3981
|
decode(input, length) {
|
|
@@ -3970,6 +4055,13 @@ export const LaserDetection = {
|
|
|
3970
4055
|
message.estimatedDistance = reader.float();
|
|
3971
4056
|
continue;
|
|
3972
4057
|
}
|
|
4058
|
+
case 11: {
|
|
4059
|
+
if (tag !== 88) {
|
|
4060
|
+
break;
|
|
4061
|
+
}
|
|
4062
|
+
message.frameId = longToNumber(reader.uint64());
|
|
4063
|
+
continue;
|
|
4064
|
+
}
|
|
3973
4065
|
}
|
|
3974
4066
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3975
4067
|
break;
|
|
@@ -3990,6 +4082,7 @@ export const LaserDetection = {
|
|
|
3990
4082
|
laserWidth: isSet(object.laserWidth) ? gt.Number(object.laserWidth) : 0,
|
|
3991
4083
|
correctedPixelDistance: isSet(object.correctedPixelDistance) ? gt.Number(object.correctedPixelDistance) : 0,
|
|
3992
4084
|
estimatedDistance: isSet(object.estimatedDistance) ? gt.Number(object.estimatedDistance) : 0,
|
|
4085
|
+
frameId: isSet(object.frameId) ? gt.Number(object.frameId) : 0,
|
|
3993
4086
|
};
|
|
3994
4087
|
},
|
|
3995
4088
|
toJSON(message) {
|
|
@@ -4024,6 +4117,9 @@ export const LaserDetection = {
|
|
|
4024
4117
|
if (message.estimatedDistance !== 0) {
|
|
4025
4118
|
obj.estimatedDistance = message.estimatedDistance;
|
|
4026
4119
|
}
|
|
4120
|
+
if (message.frameId !== 0) {
|
|
4121
|
+
obj.frameId = Math.round(message.frameId);
|
|
4122
|
+
}
|
|
4027
4123
|
return obj;
|
|
4028
4124
|
},
|
|
4029
4125
|
create(base) {
|
|
@@ -4041,6 +4137,7 @@ export const LaserDetection = {
|
|
|
4041
4137
|
message.laserWidth = object.laserWidth ?? 0;
|
|
4042
4138
|
message.correctedPixelDistance = object.correctedPixelDistance ?? 0;
|
|
4043
4139
|
message.estimatedDistance = object.estimatedDistance ?? 0;
|
|
4140
|
+
message.frameId = object.frameId ?? 0;
|
|
4044
4141
|
return message;
|
|
4045
4142
|
},
|
|
4046
4143
|
};
|
|
@@ -11880,6 +11977,8 @@ function createBaseDroneInfo() {
|
|
|
11880
11977
|
cvModels: [],
|
|
11881
11978
|
powerSource: 0,
|
|
11882
11979
|
mainCameraCalibration: undefined,
|
|
11980
|
+
diveNumber: 0,
|
|
11981
|
+
logName: "",
|
|
11883
11982
|
};
|
|
11884
11983
|
}
|
|
11885
11984
|
export const DroneInfo = {
|
|
@@ -11926,6 +12025,12 @@ export const DroneInfo = {
|
|
|
11926
12025
|
if (message.mainCameraCalibration !== undefined) {
|
|
11927
12026
|
CameraCalibration.encode(message.mainCameraCalibration, writer.uint32(114).fork()).join();
|
|
11928
12027
|
}
|
|
12028
|
+
if (message.diveNumber !== 0) {
|
|
12029
|
+
writer.uint32(120).uint32(message.diveNumber);
|
|
12030
|
+
}
|
|
12031
|
+
if (message.logName !== "") {
|
|
12032
|
+
writer.uint32(130).string(message.logName);
|
|
12033
|
+
}
|
|
11929
12034
|
return writer;
|
|
11930
12035
|
},
|
|
11931
12036
|
decode(input, length) {
|
|
@@ -12033,6 +12138,20 @@ export const DroneInfo = {
|
|
|
12033
12138
|
message.mainCameraCalibration = CameraCalibration.decode(reader, reader.uint32());
|
|
12034
12139
|
continue;
|
|
12035
12140
|
}
|
|
12141
|
+
case 15: {
|
|
12142
|
+
if (tag !== 120) {
|
|
12143
|
+
break;
|
|
12144
|
+
}
|
|
12145
|
+
message.diveNumber = reader.uint32();
|
|
12146
|
+
continue;
|
|
12147
|
+
}
|
|
12148
|
+
case 16: {
|
|
12149
|
+
if (tag !== 130) {
|
|
12150
|
+
break;
|
|
12151
|
+
}
|
|
12152
|
+
message.logName = reader.string();
|
|
12153
|
+
continue;
|
|
12154
|
+
}
|
|
12036
12155
|
}
|
|
12037
12156
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12038
12157
|
break;
|
|
@@ -12059,6 +12178,8 @@ export const DroneInfo = {
|
|
|
12059
12178
|
mainCameraCalibration: isSet(object.mainCameraCalibration)
|
|
12060
12179
|
? CameraCalibration.fromJSON(object.mainCameraCalibration)
|
|
12061
12180
|
: undefined,
|
|
12181
|
+
diveNumber: isSet(object.diveNumber) ? gt.Number(object.diveNumber) : 0,
|
|
12182
|
+
logName: isSet(object.logName) ? gt.String(object.logName) : "",
|
|
12062
12183
|
};
|
|
12063
12184
|
},
|
|
12064
12185
|
toJSON(message) {
|
|
@@ -12105,6 +12226,12 @@ export const DroneInfo = {
|
|
|
12105
12226
|
if (message.mainCameraCalibration !== undefined) {
|
|
12106
12227
|
obj.mainCameraCalibration = CameraCalibration.toJSON(message.mainCameraCalibration);
|
|
12107
12228
|
}
|
|
12229
|
+
if (message.diveNumber !== 0) {
|
|
12230
|
+
obj.diveNumber = Math.round(message.diveNumber);
|
|
12231
|
+
}
|
|
12232
|
+
if (message.logName !== "") {
|
|
12233
|
+
obj.logName = message.logName;
|
|
12234
|
+
}
|
|
12108
12235
|
return obj;
|
|
12109
12236
|
},
|
|
12110
12237
|
create(base) {
|
|
@@ -12129,6 +12256,8 @@ export const DroneInfo = {
|
|
|
12129
12256
|
(object.mainCameraCalibration !== undefined && object.mainCameraCalibration !== null)
|
|
12130
12257
|
? CameraCalibration.fromPartial(object.mainCameraCalibration)
|
|
12131
12258
|
: undefined;
|
|
12259
|
+
message.diveNumber = object.diveNumber ?? 0;
|
|
12260
|
+
message.logName = object.logName ?? "";
|
|
12132
12261
|
return message;
|
|
12133
12262
|
},
|
|
12134
12263
|
};
|
|
@@ -19935,7 +20064,7 @@ export const ObjectDetection = {
|
|
|
19935
20064
|
},
|
|
19936
20065
|
};
|
|
19937
20066
|
function createBaseModelDetections() {
|
|
19938
|
-
return { detections: [], camera: 0, imageWidth: 0, imageHeight: 0, modelName: "" };
|
|
20067
|
+
return { detections: [], camera: 0, imageWidth: 0, imageHeight: 0, modelName: "", frameId: 0 };
|
|
19939
20068
|
}
|
|
19940
20069
|
export const ModelDetections = {
|
|
19941
20070
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -19954,6 +20083,9 @@ export const ModelDetections = {
|
|
|
19954
20083
|
if (message.modelName !== "") {
|
|
19955
20084
|
writer.uint32(42).string(message.modelName);
|
|
19956
20085
|
}
|
|
20086
|
+
if (message.frameId !== 0) {
|
|
20087
|
+
writer.uint32(48).uint64(message.frameId);
|
|
20088
|
+
}
|
|
19957
20089
|
return writer;
|
|
19958
20090
|
},
|
|
19959
20091
|
decode(input, length) {
|
|
@@ -19998,6 +20130,13 @@ export const ModelDetections = {
|
|
|
19998
20130
|
message.modelName = reader.string();
|
|
19999
20131
|
continue;
|
|
20000
20132
|
}
|
|
20133
|
+
case 6: {
|
|
20134
|
+
if (tag !== 48) {
|
|
20135
|
+
break;
|
|
20136
|
+
}
|
|
20137
|
+
message.frameId = longToNumber(reader.uint64());
|
|
20138
|
+
continue;
|
|
20139
|
+
}
|
|
20001
20140
|
}
|
|
20002
20141
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20003
20142
|
break;
|
|
@@ -20015,6 +20154,7 @@ export const ModelDetections = {
|
|
|
20015
20154
|
imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
|
|
20016
20155
|
imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
|
|
20017
20156
|
modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
|
|
20157
|
+
frameId: isSet(object.frameId) ? gt.Number(object.frameId) : 0,
|
|
20018
20158
|
};
|
|
20019
20159
|
},
|
|
20020
20160
|
toJSON(message) {
|
|
@@ -20034,6 +20174,9 @@ export const ModelDetections = {
|
|
|
20034
20174
|
if (message.modelName !== "") {
|
|
20035
20175
|
obj.modelName = message.modelName;
|
|
20036
20176
|
}
|
|
20177
|
+
if (message.frameId !== 0) {
|
|
20178
|
+
obj.frameId = Math.round(message.frameId);
|
|
20179
|
+
}
|
|
20037
20180
|
return obj;
|
|
20038
20181
|
},
|
|
20039
20182
|
create(base) {
|
|
@@ -20046,6 +20189,7 @@ export const ModelDetections = {
|
|
|
20046
20189
|
message.imageWidth = object.imageWidth ?? 0;
|
|
20047
20190
|
message.imageHeight = object.imageHeight ?? 0;
|
|
20048
20191
|
message.modelName = object.modelName ?? "";
|
|
20192
|
+
message.frameId = object.frameId ?? 0;
|
|
20049
20193
|
return message;
|
|
20050
20194
|
},
|
|
20051
20195
|
};
|
|
@@ -20337,7 +20481,18 @@ export const OperatorInfo = {
|
|
|
20337
20481
|
},
|
|
20338
20482
|
};
|
|
20339
20483
|
function createBaseSotState() {
|
|
20340
|
-
return {
|
|
20484
|
+
return {
|
|
20485
|
+
state: 0,
|
|
20486
|
+
boundingBox: undefined,
|
|
20487
|
+
imageWidth: 0,
|
|
20488
|
+
imageHeight: 0,
|
|
20489
|
+
confidence: 0,
|
|
20490
|
+
vx: 0,
|
|
20491
|
+
vy: 0,
|
|
20492
|
+
vs: 0,
|
|
20493
|
+
vr: 0,
|
|
20494
|
+
frameId: 0,
|
|
20495
|
+
};
|
|
20341
20496
|
}
|
|
20342
20497
|
export const SotState = {
|
|
20343
20498
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -20368,6 +20523,9 @@ export const SotState = {
|
|
|
20368
20523
|
if (message.vr !== 0) {
|
|
20369
20524
|
writer.uint32(77).float(message.vr);
|
|
20370
20525
|
}
|
|
20526
|
+
if (message.frameId !== 0) {
|
|
20527
|
+
writer.uint32(80).uint64(message.frameId);
|
|
20528
|
+
}
|
|
20371
20529
|
return writer;
|
|
20372
20530
|
},
|
|
20373
20531
|
decode(input, length) {
|
|
@@ -20440,6 +20598,13 @@ export const SotState = {
|
|
|
20440
20598
|
message.vr = reader.float();
|
|
20441
20599
|
continue;
|
|
20442
20600
|
}
|
|
20601
|
+
case 10: {
|
|
20602
|
+
if (tag !== 80) {
|
|
20603
|
+
break;
|
|
20604
|
+
}
|
|
20605
|
+
message.frameId = longToNumber(reader.uint64());
|
|
20606
|
+
continue;
|
|
20607
|
+
}
|
|
20443
20608
|
}
|
|
20444
20609
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20445
20610
|
break;
|
|
@@ -20459,6 +20624,7 @@ export const SotState = {
|
|
|
20459
20624
|
vy: isSet(object.vy) ? gt.Number(object.vy) : 0,
|
|
20460
20625
|
vs: isSet(object.vs) ? gt.Number(object.vs) : 0,
|
|
20461
20626
|
vr: isSet(object.vr) ? gt.Number(object.vr) : 0,
|
|
20627
|
+
frameId: isSet(object.frameId) ? gt.Number(object.frameId) : 0,
|
|
20462
20628
|
};
|
|
20463
20629
|
},
|
|
20464
20630
|
toJSON(message) {
|
|
@@ -20490,6 +20656,9 @@ export const SotState = {
|
|
|
20490
20656
|
if (message.vr !== 0) {
|
|
20491
20657
|
obj.vr = message.vr;
|
|
20492
20658
|
}
|
|
20659
|
+
if (message.frameId !== 0) {
|
|
20660
|
+
obj.frameId = Math.round(message.frameId);
|
|
20661
|
+
}
|
|
20493
20662
|
return obj;
|
|
20494
20663
|
},
|
|
20495
20664
|
create(base) {
|
|
@@ -20508,6 +20677,7 @@ export const SotState = {
|
|
|
20508
20677
|
message.vy = object.vy ?? 0;
|
|
20509
20678
|
message.vs = object.vs ?? 0;
|
|
20510
20679
|
message.vr = object.vr ?? 0;
|
|
20680
|
+
message.frameId = object.frameId ?? 0;
|
|
20511
20681
|
return message;
|
|
20512
20682
|
},
|
|
20513
20683
|
};
|
|
@@ -20680,6 +20850,187 @@ export const Annotation = {
|
|
|
20680
20850
|
return message;
|
|
20681
20851
|
},
|
|
20682
20852
|
};
|
|
20853
|
+
function createBaseQuaternion() {
|
|
20854
|
+
return { x: 0, y: 0, z: 0, w: 0 };
|
|
20855
|
+
}
|
|
20856
|
+
export const Quaternion = {
|
|
20857
|
+
encode(message, writer = new BinaryWriter()) {
|
|
20858
|
+
if (message.x !== 0) {
|
|
20859
|
+
writer.uint32(9).double(message.x);
|
|
20860
|
+
}
|
|
20861
|
+
if (message.y !== 0) {
|
|
20862
|
+
writer.uint32(17).double(message.y);
|
|
20863
|
+
}
|
|
20864
|
+
if (message.z !== 0) {
|
|
20865
|
+
writer.uint32(25).double(message.z);
|
|
20866
|
+
}
|
|
20867
|
+
if (message.w !== 0) {
|
|
20868
|
+
writer.uint32(33).double(message.w);
|
|
20869
|
+
}
|
|
20870
|
+
return writer;
|
|
20871
|
+
},
|
|
20872
|
+
decode(input, length) {
|
|
20873
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
20874
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
20875
|
+
const message = createBaseQuaternion();
|
|
20876
|
+
while (reader.pos < end) {
|
|
20877
|
+
const tag = reader.uint32();
|
|
20878
|
+
switch (tag >>> 3) {
|
|
20879
|
+
case 1: {
|
|
20880
|
+
if (tag !== 9) {
|
|
20881
|
+
break;
|
|
20882
|
+
}
|
|
20883
|
+
message.x = reader.double();
|
|
20884
|
+
continue;
|
|
20885
|
+
}
|
|
20886
|
+
case 2: {
|
|
20887
|
+
if (tag !== 17) {
|
|
20888
|
+
break;
|
|
20889
|
+
}
|
|
20890
|
+
message.y = reader.double();
|
|
20891
|
+
continue;
|
|
20892
|
+
}
|
|
20893
|
+
case 3: {
|
|
20894
|
+
if (tag !== 25) {
|
|
20895
|
+
break;
|
|
20896
|
+
}
|
|
20897
|
+
message.z = reader.double();
|
|
20898
|
+
continue;
|
|
20899
|
+
}
|
|
20900
|
+
case 4: {
|
|
20901
|
+
if (tag !== 33) {
|
|
20902
|
+
break;
|
|
20903
|
+
}
|
|
20904
|
+
message.w = reader.double();
|
|
20905
|
+
continue;
|
|
20906
|
+
}
|
|
20907
|
+
}
|
|
20908
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
20909
|
+
break;
|
|
20910
|
+
}
|
|
20911
|
+
reader.skip(tag & 7);
|
|
20912
|
+
}
|
|
20913
|
+
return message;
|
|
20914
|
+
},
|
|
20915
|
+
fromJSON(object) {
|
|
20916
|
+
return {
|
|
20917
|
+
x: isSet(object.x) ? gt.Number(object.x) : 0,
|
|
20918
|
+
y: isSet(object.y) ? gt.Number(object.y) : 0,
|
|
20919
|
+
z: isSet(object.z) ? gt.Number(object.z) : 0,
|
|
20920
|
+
w: isSet(object.w) ? gt.Number(object.w) : 0,
|
|
20921
|
+
};
|
|
20922
|
+
},
|
|
20923
|
+
toJSON(message) {
|
|
20924
|
+
const obj = {};
|
|
20925
|
+
if (message.x !== 0) {
|
|
20926
|
+
obj.x = message.x;
|
|
20927
|
+
}
|
|
20928
|
+
if (message.y !== 0) {
|
|
20929
|
+
obj.y = message.y;
|
|
20930
|
+
}
|
|
20931
|
+
if (message.z !== 0) {
|
|
20932
|
+
obj.z = message.z;
|
|
20933
|
+
}
|
|
20934
|
+
if (message.w !== 0) {
|
|
20935
|
+
obj.w = message.w;
|
|
20936
|
+
}
|
|
20937
|
+
return obj;
|
|
20938
|
+
},
|
|
20939
|
+
create(base) {
|
|
20940
|
+
return Quaternion.fromPartial(base ?? {});
|
|
20941
|
+
},
|
|
20942
|
+
fromPartial(object) {
|
|
20943
|
+
const message = createBaseQuaternion();
|
|
20944
|
+
message.x = object.x ?? 0;
|
|
20945
|
+
message.y = object.y ?? 0;
|
|
20946
|
+
message.z = object.z ?? 0;
|
|
20947
|
+
message.w = object.w ?? 0;
|
|
20948
|
+
return message;
|
|
20949
|
+
},
|
|
20950
|
+
};
|
|
20951
|
+
function createBasePointCloud() {
|
|
20952
|
+
return { count: 0, positions: new Uint8Array(0), intensities: new Uint8Array(0) };
|
|
20953
|
+
}
|
|
20954
|
+
export const PointCloud = {
|
|
20955
|
+
encode(message, writer = new BinaryWriter()) {
|
|
20956
|
+
if (message.count !== 0) {
|
|
20957
|
+
writer.uint32(8).uint32(message.count);
|
|
20958
|
+
}
|
|
20959
|
+
if (message.positions.length !== 0) {
|
|
20960
|
+
writer.uint32(18).bytes(message.positions);
|
|
20961
|
+
}
|
|
20962
|
+
if (message.intensities.length !== 0) {
|
|
20963
|
+
writer.uint32(26).bytes(message.intensities);
|
|
20964
|
+
}
|
|
20965
|
+
return writer;
|
|
20966
|
+
},
|
|
20967
|
+
decode(input, length) {
|
|
20968
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
20969
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
20970
|
+
const message = createBasePointCloud();
|
|
20971
|
+
while (reader.pos < end) {
|
|
20972
|
+
const tag = reader.uint32();
|
|
20973
|
+
switch (tag >>> 3) {
|
|
20974
|
+
case 1: {
|
|
20975
|
+
if (tag !== 8) {
|
|
20976
|
+
break;
|
|
20977
|
+
}
|
|
20978
|
+
message.count = reader.uint32();
|
|
20979
|
+
continue;
|
|
20980
|
+
}
|
|
20981
|
+
case 2: {
|
|
20982
|
+
if (tag !== 18) {
|
|
20983
|
+
break;
|
|
20984
|
+
}
|
|
20985
|
+
message.positions = reader.bytes();
|
|
20986
|
+
continue;
|
|
20987
|
+
}
|
|
20988
|
+
case 3: {
|
|
20989
|
+
if (tag !== 26) {
|
|
20990
|
+
break;
|
|
20991
|
+
}
|
|
20992
|
+
message.intensities = reader.bytes();
|
|
20993
|
+
continue;
|
|
20994
|
+
}
|
|
20995
|
+
}
|
|
20996
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
20997
|
+
break;
|
|
20998
|
+
}
|
|
20999
|
+
reader.skip(tag & 7);
|
|
21000
|
+
}
|
|
21001
|
+
return message;
|
|
21002
|
+
},
|
|
21003
|
+
fromJSON(object) {
|
|
21004
|
+
return {
|
|
21005
|
+
count: isSet(object.count) ? gt.Number(object.count) : 0,
|
|
21006
|
+
positions: isSet(object.positions) ? bytesFromBase64(object.positions) : new Uint8Array(0),
|
|
21007
|
+
intensities: isSet(object.intensities) ? bytesFromBase64(object.intensities) : new Uint8Array(0),
|
|
21008
|
+
};
|
|
21009
|
+
},
|
|
21010
|
+
toJSON(message) {
|
|
21011
|
+
const obj = {};
|
|
21012
|
+
if (message.count !== 0) {
|
|
21013
|
+
obj.count = Math.round(message.count);
|
|
21014
|
+
}
|
|
21015
|
+
if (message.positions.length !== 0) {
|
|
21016
|
+
obj.positions = base64FromBytes(message.positions);
|
|
21017
|
+
}
|
|
21018
|
+
if (message.intensities.length !== 0) {
|
|
21019
|
+
obj.intensities = base64FromBytes(message.intensities);
|
|
21020
|
+
}
|
|
21021
|
+
return obj;
|
|
21022
|
+
},
|
|
21023
|
+
create(base) {
|
|
21024
|
+
return PointCloud.fromPartial(base ?? {});
|
|
21025
|
+
},
|
|
21026
|
+
fromPartial(object) {
|
|
21027
|
+
const message = createBasePointCloud();
|
|
21028
|
+
message.count = object.count ?? 0;
|
|
21029
|
+
message.positions = object.positions ?? new Uint8Array(0);
|
|
21030
|
+
message.intensities = object.intensities ?? new Uint8Array(0);
|
|
21031
|
+
return message;
|
|
21032
|
+
},
|
|
21033
|
+
};
|
|
20683
21034
|
const gt = (() => {
|
|
20684
21035
|
if (typeof globalThis !== "undefined") {
|
|
20685
21036
|
return globalThis;
|