@blueyerobotics/protocol-definitions 3.2.0-3e0ba702 → 3.2.0-423f0fbf
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/LICENSE +165 -0
- package/README.npm.md +40 -0
- package/dist/aquatroll.js +1 -1
- package/dist/control.d.ts +105 -2
- package/dist/control.js +573 -16
- package/dist/google/protobuf/any.js +1 -1
- package/dist/google/protobuf/duration.js +1 -1
- package/dist/google/protobuf/timestamp.js +1 -1
- package/dist/index.blueye.js +1 -1
- package/dist/index.blueye.protocol.js +1 -1
- package/dist/index.google.js +1 -1
- package/dist/index.google.protobuf.js +1 -1
- package/dist/index.js +1 -1
- package/dist/message_formats.d.ts +1037 -23
- package/dist/message_formats.js +8201 -2070
- package/dist/mission_planning.d.ts +54 -0
- package/dist/mission_planning.js +244 -2
- package/dist/req_rep.d.ts +46 -0
- package/dist/req_rep.js +399 -2
- package/dist/telemetry.d.ts +133 -4
- package/dist/telemetry.js +815 -15
- package/package.json +8 -6
package/dist/control.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: control.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
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.SetSotTargetCtrl = exports.StopLogStreamingCtrl = exports.StartLogStreamingCtrl = exports.CameraPanTiltZoomCtrl = exports.SetColorCorrectionCtrl = 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.VisionTrackingCtrl = 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
|
+
exports.AnnotationCtrl = exports.ClearSotTargetCtrl = void 0;
|
|
9
10
|
/* eslint-disable */
|
|
10
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
12
|
const aquatroll_1 = require("./aquatroll");
|
|
@@ -399,13 +400,16 @@ exports.WatchdogCtrl = {
|
|
|
399
400
|
},
|
|
400
401
|
};
|
|
401
402
|
function createBaseRecordCtrl() {
|
|
402
|
-
return { recordOn: undefined };
|
|
403
|
+
return { recordOn: undefined, storageLocation: 0 };
|
|
403
404
|
}
|
|
404
405
|
exports.RecordCtrl = {
|
|
405
406
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
406
407
|
if (message.recordOn !== undefined) {
|
|
407
408
|
message_formats_1.RecordOn.encode(message.recordOn, writer.uint32(10).fork()).join();
|
|
408
409
|
}
|
|
410
|
+
if (message.storageLocation !== 0) {
|
|
411
|
+
writer.uint32(16).int32(message.storageLocation);
|
|
412
|
+
}
|
|
409
413
|
return writer;
|
|
410
414
|
},
|
|
411
415
|
decode(input, length) {
|
|
@@ -422,6 +426,13 @@ exports.RecordCtrl = {
|
|
|
422
426
|
message.recordOn = message_formats_1.RecordOn.decode(reader, reader.uint32());
|
|
423
427
|
continue;
|
|
424
428
|
}
|
|
429
|
+
case 2: {
|
|
430
|
+
if (tag !== 16) {
|
|
431
|
+
break;
|
|
432
|
+
}
|
|
433
|
+
message.storageLocation = reader.int32();
|
|
434
|
+
continue;
|
|
435
|
+
}
|
|
425
436
|
}
|
|
426
437
|
if ((tag & 7) === 4 || tag === 0) {
|
|
427
438
|
break;
|
|
@@ -431,13 +442,19 @@ exports.RecordCtrl = {
|
|
|
431
442
|
return message;
|
|
432
443
|
},
|
|
433
444
|
fromJSON(object) {
|
|
434
|
-
return {
|
|
445
|
+
return {
|
|
446
|
+
recordOn: isSet(object.recordOn) ? message_formats_1.RecordOn.fromJSON(object.recordOn) : undefined,
|
|
447
|
+
storageLocation: isSet(object.storageLocation) ? (0, message_formats_1.storageLocationFromJSON)(object.storageLocation) : 0,
|
|
448
|
+
};
|
|
435
449
|
},
|
|
436
450
|
toJSON(message) {
|
|
437
451
|
const obj = {};
|
|
438
452
|
if (message.recordOn !== undefined) {
|
|
439
453
|
obj.recordOn = message_formats_1.RecordOn.toJSON(message.recordOn);
|
|
440
454
|
}
|
|
455
|
+
if (message.storageLocation !== 0) {
|
|
456
|
+
obj.storageLocation = (0, message_formats_1.storageLocationToJSON)(message.storageLocation);
|
|
457
|
+
}
|
|
441
458
|
return obj;
|
|
442
459
|
},
|
|
443
460
|
create(base) {
|
|
@@ -448,14 +465,18 @@ exports.RecordCtrl = {
|
|
|
448
465
|
message.recordOn = (object.recordOn !== undefined && object.recordOn !== null)
|
|
449
466
|
? message_formats_1.RecordOn.fromPartial(object.recordOn)
|
|
450
467
|
: undefined;
|
|
468
|
+
message.storageLocation = object.storageLocation ?? 0;
|
|
451
469
|
return message;
|
|
452
470
|
},
|
|
453
471
|
};
|
|
454
472
|
function createBaseTakePictureCtrl() {
|
|
455
|
-
return {};
|
|
473
|
+
return { storageLocation: 0 };
|
|
456
474
|
}
|
|
457
475
|
exports.TakePictureCtrl = {
|
|
458
|
-
encode(
|
|
476
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
477
|
+
if (message.storageLocation !== 0) {
|
|
478
|
+
writer.uint32(8).int32(message.storageLocation);
|
|
479
|
+
}
|
|
459
480
|
return writer;
|
|
460
481
|
},
|
|
461
482
|
decode(input, length) {
|
|
@@ -465,6 +486,13 @@ exports.TakePictureCtrl = {
|
|
|
465
486
|
while (reader.pos < end) {
|
|
466
487
|
const tag = reader.uint32();
|
|
467
488
|
switch (tag >>> 3) {
|
|
489
|
+
case 1: {
|
|
490
|
+
if (tag !== 8) {
|
|
491
|
+
break;
|
|
492
|
+
}
|
|
493
|
+
message.storageLocation = reader.int32();
|
|
494
|
+
continue;
|
|
495
|
+
}
|
|
468
496
|
}
|
|
469
497
|
if ((tag & 7) === 4 || tag === 0) {
|
|
470
498
|
break;
|
|
@@ -473,18 +501,22 @@ exports.TakePictureCtrl = {
|
|
|
473
501
|
}
|
|
474
502
|
return message;
|
|
475
503
|
},
|
|
476
|
-
fromJSON(
|
|
477
|
-
return {};
|
|
504
|
+
fromJSON(object) {
|
|
505
|
+
return { storageLocation: isSet(object.storageLocation) ? (0, message_formats_1.storageLocationFromJSON)(object.storageLocation) : 0 };
|
|
478
506
|
},
|
|
479
|
-
toJSON(
|
|
507
|
+
toJSON(message) {
|
|
480
508
|
const obj = {};
|
|
509
|
+
if (message.storageLocation !== 0) {
|
|
510
|
+
obj.storageLocation = (0, message_formats_1.storageLocationToJSON)(message.storageLocation);
|
|
511
|
+
}
|
|
481
512
|
return obj;
|
|
482
513
|
},
|
|
483
514
|
create(base) {
|
|
484
515
|
return exports.TakePictureCtrl.fromPartial(base ?? {});
|
|
485
516
|
},
|
|
486
|
-
fromPartial(
|
|
517
|
+
fromPartial(object) {
|
|
487
518
|
const message = createBaseTakePictureCtrl();
|
|
519
|
+
message.storageLocation = object.storageLocation ?? 0;
|
|
488
520
|
return message;
|
|
489
521
|
},
|
|
490
522
|
};
|
|
@@ -970,6 +1002,59 @@ exports.AutoPilotHeaveCtrl = {
|
|
|
970
1002
|
return message;
|
|
971
1003
|
},
|
|
972
1004
|
};
|
|
1005
|
+
function createBaseVisionTrackingCtrl() {
|
|
1006
|
+
return { state: undefined };
|
|
1007
|
+
}
|
|
1008
|
+
exports.VisionTrackingCtrl = {
|
|
1009
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1010
|
+
if (message.state !== undefined) {
|
|
1011
|
+
message_formats_1.VisionTrackingState.encode(message.state, writer.uint32(10).fork()).join();
|
|
1012
|
+
}
|
|
1013
|
+
return writer;
|
|
1014
|
+
},
|
|
1015
|
+
decode(input, length) {
|
|
1016
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1017
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1018
|
+
const message = createBaseVisionTrackingCtrl();
|
|
1019
|
+
while (reader.pos < end) {
|
|
1020
|
+
const tag = reader.uint32();
|
|
1021
|
+
switch (tag >>> 3) {
|
|
1022
|
+
case 1: {
|
|
1023
|
+
if (tag !== 10) {
|
|
1024
|
+
break;
|
|
1025
|
+
}
|
|
1026
|
+
message.state = message_formats_1.VisionTrackingState.decode(reader, reader.uint32());
|
|
1027
|
+
continue;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1031
|
+
break;
|
|
1032
|
+
}
|
|
1033
|
+
reader.skip(tag & 7);
|
|
1034
|
+
}
|
|
1035
|
+
return message;
|
|
1036
|
+
},
|
|
1037
|
+
fromJSON(object) {
|
|
1038
|
+
return { state: isSet(object.state) ? message_formats_1.VisionTrackingState.fromJSON(object.state) : undefined };
|
|
1039
|
+
},
|
|
1040
|
+
toJSON(message) {
|
|
1041
|
+
const obj = {};
|
|
1042
|
+
if (message.state !== undefined) {
|
|
1043
|
+
obj.state = message_formats_1.VisionTrackingState.toJSON(message.state);
|
|
1044
|
+
}
|
|
1045
|
+
return obj;
|
|
1046
|
+
},
|
|
1047
|
+
create(base) {
|
|
1048
|
+
return exports.VisionTrackingCtrl.fromPartial(base ?? {});
|
|
1049
|
+
},
|
|
1050
|
+
fromPartial(object) {
|
|
1051
|
+
const message = createBaseVisionTrackingCtrl();
|
|
1052
|
+
message.state = (object.state !== undefined && object.state !== null)
|
|
1053
|
+
? message_formats_1.VisionTrackingState.fromPartial(object.state)
|
|
1054
|
+
: undefined;
|
|
1055
|
+
return message;
|
|
1056
|
+
},
|
|
1057
|
+
};
|
|
973
1058
|
function createBaseRunMissionCtrl() {
|
|
974
1059
|
return {};
|
|
975
1060
|
}
|
|
@@ -1968,10 +2053,13 @@ exports.DeactivateMultibeamCtrl = {
|
|
|
1968
2053
|
},
|
|
1969
2054
|
};
|
|
1970
2055
|
function createBaseStartDiveCtrl() {
|
|
1971
|
-
return {};
|
|
2056
|
+
return { operatorInfo: undefined };
|
|
1972
2057
|
}
|
|
1973
2058
|
exports.StartDiveCtrl = {
|
|
1974
|
-
encode(
|
|
2059
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2060
|
+
if (message.operatorInfo !== undefined) {
|
|
2061
|
+
message_formats_1.OperatorInfo.encode(message.operatorInfo, writer.uint32(10).fork()).join();
|
|
2062
|
+
}
|
|
1975
2063
|
return writer;
|
|
1976
2064
|
},
|
|
1977
2065
|
decode(input, length) {
|
|
@@ -1981,6 +2069,13 @@ exports.StartDiveCtrl = {
|
|
|
1981
2069
|
while (reader.pos < end) {
|
|
1982
2070
|
const tag = reader.uint32();
|
|
1983
2071
|
switch (tag >>> 3) {
|
|
2072
|
+
case 1: {
|
|
2073
|
+
if (tag !== 10) {
|
|
2074
|
+
break;
|
|
2075
|
+
}
|
|
2076
|
+
message.operatorInfo = message_formats_1.OperatorInfo.decode(reader, reader.uint32());
|
|
2077
|
+
continue;
|
|
2078
|
+
}
|
|
1984
2079
|
}
|
|
1985
2080
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1986
2081
|
break;
|
|
@@ -1989,18 +2084,24 @@ exports.StartDiveCtrl = {
|
|
|
1989
2084
|
}
|
|
1990
2085
|
return message;
|
|
1991
2086
|
},
|
|
1992
|
-
fromJSON(
|
|
1993
|
-
return {};
|
|
2087
|
+
fromJSON(object) {
|
|
2088
|
+
return { operatorInfo: isSet(object.operatorInfo) ? message_formats_1.OperatorInfo.fromJSON(object.operatorInfo) : undefined };
|
|
1994
2089
|
},
|
|
1995
|
-
toJSON(
|
|
2090
|
+
toJSON(message) {
|
|
1996
2091
|
const obj = {};
|
|
2092
|
+
if (message.operatorInfo !== undefined) {
|
|
2093
|
+
obj.operatorInfo = message_formats_1.OperatorInfo.toJSON(message.operatorInfo);
|
|
2094
|
+
}
|
|
1997
2095
|
return obj;
|
|
1998
2096
|
},
|
|
1999
2097
|
create(base) {
|
|
2000
2098
|
return exports.StartDiveCtrl.fromPartial(base ?? {});
|
|
2001
2099
|
},
|
|
2002
|
-
fromPartial(
|
|
2100
|
+
fromPartial(object) {
|
|
2003
2101
|
const message = createBaseStartDiveCtrl();
|
|
2102
|
+
message.operatorInfo = (object.operatorInfo !== undefined && object.operatorInfo !== null)
|
|
2103
|
+
? message_formats_1.OperatorInfo.fromPartial(object.operatorInfo)
|
|
2104
|
+
: undefined;
|
|
2004
2105
|
return message;
|
|
2005
2106
|
},
|
|
2006
2107
|
};
|
|
@@ -2041,6 +2142,462 @@ exports.EndDiveCtrl = {
|
|
|
2041
2142
|
return message;
|
|
2042
2143
|
},
|
|
2043
2144
|
};
|
|
2145
|
+
function createBaseFormatRemovableStorageDeviceCtrl() {
|
|
2146
|
+
return {};
|
|
2147
|
+
}
|
|
2148
|
+
exports.FormatRemovableStorageDeviceCtrl = {
|
|
2149
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
2150
|
+
return writer;
|
|
2151
|
+
},
|
|
2152
|
+
decode(input, length) {
|
|
2153
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2154
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2155
|
+
const message = createBaseFormatRemovableStorageDeviceCtrl();
|
|
2156
|
+
while (reader.pos < end) {
|
|
2157
|
+
const tag = reader.uint32();
|
|
2158
|
+
switch (tag >>> 3) {
|
|
2159
|
+
}
|
|
2160
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2161
|
+
break;
|
|
2162
|
+
}
|
|
2163
|
+
reader.skip(tag & 7);
|
|
2164
|
+
}
|
|
2165
|
+
return message;
|
|
2166
|
+
},
|
|
2167
|
+
fromJSON(_) {
|
|
2168
|
+
return {};
|
|
2169
|
+
},
|
|
2170
|
+
toJSON(_) {
|
|
2171
|
+
const obj = {};
|
|
2172
|
+
return obj;
|
|
2173
|
+
},
|
|
2174
|
+
create(base) {
|
|
2175
|
+
return exports.FormatRemovableStorageDeviceCtrl.fromPartial(base ?? {});
|
|
2176
|
+
},
|
|
2177
|
+
fromPartial(_) {
|
|
2178
|
+
const message = createBaseFormatRemovableStorageDeviceCtrl();
|
|
2179
|
+
return message;
|
|
2180
|
+
},
|
|
2181
|
+
};
|
|
2182
|
+
function createBaseSetTurbidityFilterCtrl() {
|
|
2183
|
+
return { turbidityFilter: undefined };
|
|
2184
|
+
}
|
|
2185
|
+
exports.SetTurbidityFilterCtrl = {
|
|
2186
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2187
|
+
if (message.turbidityFilter !== undefined) {
|
|
2188
|
+
message_formats_1.FilterMessage.encode(message.turbidityFilter, writer.uint32(10).fork()).join();
|
|
2189
|
+
}
|
|
2190
|
+
return writer;
|
|
2191
|
+
},
|
|
2192
|
+
decode(input, length) {
|
|
2193
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2194
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2195
|
+
const message = createBaseSetTurbidityFilterCtrl();
|
|
2196
|
+
while (reader.pos < end) {
|
|
2197
|
+
const tag = reader.uint32();
|
|
2198
|
+
switch (tag >>> 3) {
|
|
2199
|
+
case 1: {
|
|
2200
|
+
if (tag !== 10) {
|
|
2201
|
+
break;
|
|
2202
|
+
}
|
|
2203
|
+
message.turbidityFilter = message_formats_1.FilterMessage.decode(reader, reader.uint32());
|
|
2204
|
+
continue;
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
2207
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2208
|
+
break;
|
|
2209
|
+
}
|
|
2210
|
+
reader.skip(tag & 7);
|
|
2211
|
+
}
|
|
2212
|
+
return message;
|
|
2213
|
+
},
|
|
2214
|
+
fromJSON(object) {
|
|
2215
|
+
return {
|
|
2216
|
+
turbidityFilter: isSet(object.turbidityFilter) ? message_formats_1.FilterMessage.fromJSON(object.turbidityFilter) : undefined,
|
|
2217
|
+
};
|
|
2218
|
+
},
|
|
2219
|
+
toJSON(message) {
|
|
2220
|
+
const obj = {};
|
|
2221
|
+
if (message.turbidityFilter !== undefined) {
|
|
2222
|
+
obj.turbidityFilter = message_formats_1.FilterMessage.toJSON(message.turbidityFilter);
|
|
2223
|
+
}
|
|
2224
|
+
return obj;
|
|
2225
|
+
},
|
|
2226
|
+
create(base) {
|
|
2227
|
+
return exports.SetTurbidityFilterCtrl.fromPartial(base ?? {});
|
|
2228
|
+
},
|
|
2229
|
+
fromPartial(object) {
|
|
2230
|
+
const message = createBaseSetTurbidityFilterCtrl();
|
|
2231
|
+
message.turbidityFilter = (object.turbidityFilter !== undefined && object.turbidityFilter !== null)
|
|
2232
|
+
? message_formats_1.FilterMessage.fromPartial(object.turbidityFilter)
|
|
2233
|
+
: undefined;
|
|
2234
|
+
return message;
|
|
2235
|
+
},
|
|
2236
|
+
};
|
|
2237
|
+
function createBaseSetColorCorrectionCtrl() {
|
|
2238
|
+
return { colorCorrectionFilter: undefined };
|
|
2239
|
+
}
|
|
2240
|
+
exports.SetColorCorrectionCtrl = {
|
|
2241
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2242
|
+
if (message.colorCorrectionFilter !== undefined) {
|
|
2243
|
+
message_formats_1.FilterMessage.encode(message.colorCorrectionFilter, writer.uint32(10).fork()).join();
|
|
2244
|
+
}
|
|
2245
|
+
return writer;
|
|
2246
|
+
},
|
|
2247
|
+
decode(input, length) {
|
|
2248
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2249
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2250
|
+
const message = createBaseSetColorCorrectionCtrl();
|
|
2251
|
+
while (reader.pos < end) {
|
|
2252
|
+
const tag = reader.uint32();
|
|
2253
|
+
switch (tag >>> 3) {
|
|
2254
|
+
case 1: {
|
|
2255
|
+
if (tag !== 10) {
|
|
2256
|
+
break;
|
|
2257
|
+
}
|
|
2258
|
+
message.colorCorrectionFilter = message_formats_1.FilterMessage.decode(reader, reader.uint32());
|
|
2259
|
+
continue;
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2263
|
+
break;
|
|
2264
|
+
}
|
|
2265
|
+
reader.skip(tag & 7);
|
|
2266
|
+
}
|
|
2267
|
+
return message;
|
|
2268
|
+
},
|
|
2269
|
+
fromJSON(object) {
|
|
2270
|
+
return {
|
|
2271
|
+
colorCorrectionFilter: isSet(object.colorCorrectionFilter)
|
|
2272
|
+
? message_formats_1.FilterMessage.fromJSON(object.colorCorrectionFilter)
|
|
2273
|
+
: undefined,
|
|
2274
|
+
};
|
|
2275
|
+
},
|
|
2276
|
+
toJSON(message) {
|
|
2277
|
+
const obj = {};
|
|
2278
|
+
if (message.colorCorrectionFilter !== undefined) {
|
|
2279
|
+
obj.colorCorrectionFilter = message_formats_1.FilterMessage.toJSON(message.colorCorrectionFilter);
|
|
2280
|
+
}
|
|
2281
|
+
return obj;
|
|
2282
|
+
},
|
|
2283
|
+
create(base) {
|
|
2284
|
+
return exports.SetColorCorrectionCtrl.fromPartial(base ?? {});
|
|
2285
|
+
},
|
|
2286
|
+
fromPartial(object) {
|
|
2287
|
+
const message = createBaseSetColorCorrectionCtrl();
|
|
2288
|
+
message.colorCorrectionFilter =
|
|
2289
|
+
(object.colorCorrectionFilter !== undefined && object.colorCorrectionFilter !== null)
|
|
2290
|
+
? message_formats_1.FilterMessage.fromPartial(object.colorCorrectionFilter)
|
|
2291
|
+
: undefined;
|
|
2292
|
+
return message;
|
|
2293
|
+
},
|
|
2294
|
+
};
|
|
2295
|
+
function createBaseCameraPanTiltZoomCtrl() {
|
|
2296
|
+
return { cameraPanTiltZoom: undefined };
|
|
2297
|
+
}
|
|
2298
|
+
exports.CameraPanTiltZoomCtrl = {
|
|
2299
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2300
|
+
if (message.cameraPanTiltZoom !== undefined) {
|
|
2301
|
+
message_formats_1.CameraPanTiltZoom.encode(message.cameraPanTiltZoom, writer.uint32(10).fork()).join();
|
|
2302
|
+
}
|
|
2303
|
+
return writer;
|
|
2304
|
+
},
|
|
2305
|
+
decode(input, length) {
|
|
2306
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2307
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2308
|
+
const message = createBaseCameraPanTiltZoomCtrl();
|
|
2309
|
+
while (reader.pos < end) {
|
|
2310
|
+
const tag = reader.uint32();
|
|
2311
|
+
switch (tag >>> 3) {
|
|
2312
|
+
case 1: {
|
|
2313
|
+
if (tag !== 10) {
|
|
2314
|
+
break;
|
|
2315
|
+
}
|
|
2316
|
+
message.cameraPanTiltZoom = message_formats_1.CameraPanTiltZoom.decode(reader, reader.uint32());
|
|
2317
|
+
continue;
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2321
|
+
break;
|
|
2322
|
+
}
|
|
2323
|
+
reader.skip(tag & 7);
|
|
2324
|
+
}
|
|
2325
|
+
return message;
|
|
2326
|
+
},
|
|
2327
|
+
fromJSON(object) {
|
|
2328
|
+
return {
|
|
2329
|
+
cameraPanTiltZoom: isSet(object.cameraPanTiltZoom)
|
|
2330
|
+
? message_formats_1.CameraPanTiltZoom.fromJSON(object.cameraPanTiltZoom)
|
|
2331
|
+
: undefined,
|
|
2332
|
+
};
|
|
2333
|
+
},
|
|
2334
|
+
toJSON(message) {
|
|
2335
|
+
const obj = {};
|
|
2336
|
+
if (message.cameraPanTiltZoom !== undefined) {
|
|
2337
|
+
obj.cameraPanTiltZoom = message_formats_1.CameraPanTiltZoom.toJSON(message.cameraPanTiltZoom);
|
|
2338
|
+
}
|
|
2339
|
+
return obj;
|
|
2340
|
+
},
|
|
2341
|
+
create(base) {
|
|
2342
|
+
return exports.CameraPanTiltZoomCtrl.fromPartial(base ?? {});
|
|
2343
|
+
},
|
|
2344
|
+
fromPartial(object) {
|
|
2345
|
+
const message = createBaseCameraPanTiltZoomCtrl();
|
|
2346
|
+
message.cameraPanTiltZoom = (object.cameraPanTiltZoom !== undefined && object.cameraPanTiltZoom !== null)
|
|
2347
|
+
? message_formats_1.CameraPanTiltZoom.fromPartial(object.cameraPanTiltZoom)
|
|
2348
|
+
: undefined;
|
|
2349
|
+
return message;
|
|
2350
|
+
},
|
|
2351
|
+
};
|
|
2352
|
+
function createBaseStartLogStreamingCtrl() {
|
|
2353
|
+
return {};
|
|
2354
|
+
}
|
|
2355
|
+
exports.StartLogStreamingCtrl = {
|
|
2356
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
2357
|
+
return writer;
|
|
2358
|
+
},
|
|
2359
|
+
decode(input, length) {
|
|
2360
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2361
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2362
|
+
const message = createBaseStartLogStreamingCtrl();
|
|
2363
|
+
while (reader.pos < end) {
|
|
2364
|
+
const tag = reader.uint32();
|
|
2365
|
+
switch (tag >>> 3) {
|
|
2366
|
+
}
|
|
2367
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2368
|
+
break;
|
|
2369
|
+
}
|
|
2370
|
+
reader.skip(tag & 7);
|
|
2371
|
+
}
|
|
2372
|
+
return message;
|
|
2373
|
+
},
|
|
2374
|
+
fromJSON(_) {
|
|
2375
|
+
return {};
|
|
2376
|
+
},
|
|
2377
|
+
toJSON(_) {
|
|
2378
|
+
const obj = {};
|
|
2379
|
+
return obj;
|
|
2380
|
+
},
|
|
2381
|
+
create(base) {
|
|
2382
|
+
return exports.StartLogStreamingCtrl.fromPartial(base ?? {});
|
|
2383
|
+
},
|
|
2384
|
+
fromPartial(_) {
|
|
2385
|
+
const message = createBaseStartLogStreamingCtrl();
|
|
2386
|
+
return message;
|
|
2387
|
+
},
|
|
2388
|
+
};
|
|
2389
|
+
function createBaseStopLogStreamingCtrl() {
|
|
2390
|
+
return {};
|
|
2391
|
+
}
|
|
2392
|
+
exports.StopLogStreamingCtrl = {
|
|
2393
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
2394
|
+
return writer;
|
|
2395
|
+
},
|
|
2396
|
+
decode(input, length) {
|
|
2397
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2398
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2399
|
+
const message = createBaseStopLogStreamingCtrl();
|
|
2400
|
+
while (reader.pos < end) {
|
|
2401
|
+
const tag = reader.uint32();
|
|
2402
|
+
switch (tag >>> 3) {
|
|
2403
|
+
}
|
|
2404
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2405
|
+
break;
|
|
2406
|
+
}
|
|
2407
|
+
reader.skip(tag & 7);
|
|
2408
|
+
}
|
|
2409
|
+
return message;
|
|
2410
|
+
},
|
|
2411
|
+
fromJSON(_) {
|
|
2412
|
+
return {};
|
|
2413
|
+
},
|
|
2414
|
+
toJSON(_) {
|
|
2415
|
+
const obj = {};
|
|
2416
|
+
return obj;
|
|
2417
|
+
},
|
|
2418
|
+
create(base) {
|
|
2419
|
+
return exports.StopLogStreamingCtrl.fromPartial(base ?? {});
|
|
2420
|
+
},
|
|
2421
|
+
fromPartial(_) {
|
|
2422
|
+
const message = createBaseStopLogStreamingCtrl();
|
|
2423
|
+
return message;
|
|
2424
|
+
},
|
|
2425
|
+
};
|
|
2426
|
+
function createBaseSetSotTargetCtrl() {
|
|
2427
|
+
return { boundingBox: undefined, imageWidth: 0, imageHeight: 0 };
|
|
2428
|
+
}
|
|
2429
|
+
exports.SetSotTargetCtrl = {
|
|
2430
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2431
|
+
if (message.boundingBox !== undefined) {
|
|
2432
|
+
message_formats_1.BoundingBox.encode(message.boundingBox, writer.uint32(10).fork()).join();
|
|
2433
|
+
}
|
|
2434
|
+
if (message.imageWidth !== 0) {
|
|
2435
|
+
writer.uint32(16).uint32(message.imageWidth);
|
|
2436
|
+
}
|
|
2437
|
+
if (message.imageHeight !== 0) {
|
|
2438
|
+
writer.uint32(24).uint32(message.imageHeight);
|
|
2439
|
+
}
|
|
2440
|
+
return writer;
|
|
2441
|
+
},
|
|
2442
|
+
decode(input, length) {
|
|
2443
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2444
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2445
|
+
const message = createBaseSetSotTargetCtrl();
|
|
2446
|
+
while (reader.pos < end) {
|
|
2447
|
+
const tag = reader.uint32();
|
|
2448
|
+
switch (tag >>> 3) {
|
|
2449
|
+
case 1: {
|
|
2450
|
+
if (tag !== 10) {
|
|
2451
|
+
break;
|
|
2452
|
+
}
|
|
2453
|
+
message.boundingBox = message_formats_1.BoundingBox.decode(reader, reader.uint32());
|
|
2454
|
+
continue;
|
|
2455
|
+
}
|
|
2456
|
+
case 2: {
|
|
2457
|
+
if (tag !== 16) {
|
|
2458
|
+
break;
|
|
2459
|
+
}
|
|
2460
|
+
message.imageWidth = reader.uint32();
|
|
2461
|
+
continue;
|
|
2462
|
+
}
|
|
2463
|
+
case 3: {
|
|
2464
|
+
if (tag !== 24) {
|
|
2465
|
+
break;
|
|
2466
|
+
}
|
|
2467
|
+
message.imageHeight = reader.uint32();
|
|
2468
|
+
continue;
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2472
|
+
break;
|
|
2473
|
+
}
|
|
2474
|
+
reader.skip(tag & 7);
|
|
2475
|
+
}
|
|
2476
|
+
return message;
|
|
2477
|
+
},
|
|
2478
|
+
fromJSON(object) {
|
|
2479
|
+
return {
|
|
2480
|
+
boundingBox: isSet(object.boundingBox) ? message_formats_1.BoundingBox.fromJSON(object.boundingBox) : undefined,
|
|
2481
|
+
imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
|
|
2482
|
+
imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
|
|
2483
|
+
};
|
|
2484
|
+
},
|
|
2485
|
+
toJSON(message) {
|
|
2486
|
+
const obj = {};
|
|
2487
|
+
if (message.boundingBox !== undefined) {
|
|
2488
|
+
obj.boundingBox = message_formats_1.BoundingBox.toJSON(message.boundingBox);
|
|
2489
|
+
}
|
|
2490
|
+
if (message.imageWidth !== 0) {
|
|
2491
|
+
obj.imageWidth = Math.round(message.imageWidth);
|
|
2492
|
+
}
|
|
2493
|
+
if (message.imageHeight !== 0) {
|
|
2494
|
+
obj.imageHeight = Math.round(message.imageHeight);
|
|
2495
|
+
}
|
|
2496
|
+
return obj;
|
|
2497
|
+
},
|
|
2498
|
+
create(base) {
|
|
2499
|
+
return exports.SetSotTargetCtrl.fromPartial(base ?? {});
|
|
2500
|
+
},
|
|
2501
|
+
fromPartial(object) {
|
|
2502
|
+
const message = createBaseSetSotTargetCtrl();
|
|
2503
|
+
message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
|
|
2504
|
+
? message_formats_1.BoundingBox.fromPartial(object.boundingBox)
|
|
2505
|
+
: undefined;
|
|
2506
|
+
message.imageWidth = object.imageWidth ?? 0;
|
|
2507
|
+
message.imageHeight = object.imageHeight ?? 0;
|
|
2508
|
+
return message;
|
|
2509
|
+
},
|
|
2510
|
+
};
|
|
2511
|
+
function createBaseClearSotTargetCtrl() {
|
|
2512
|
+
return {};
|
|
2513
|
+
}
|
|
2514
|
+
exports.ClearSotTargetCtrl = {
|
|
2515
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
2516
|
+
return writer;
|
|
2517
|
+
},
|
|
2518
|
+
decode(input, length) {
|
|
2519
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2520
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2521
|
+
const message = createBaseClearSotTargetCtrl();
|
|
2522
|
+
while (reader.pos < end) {
|
|
2523
|
+
const tag = reader.uint32();
|
|
2524
|
+
switch (tag >>> 3) {
|
|
2525
|
+
}
|
|
2526
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2527
|
+
break;
|
|
2528
|
+
}
|
|
2529
|
+
reader.skip(tag & 7);
|
|
2530
|
+
}
|
|
2531
|
+
return message;
|
|
2532
|
+
},
|
|
2533
|
+
fromJSON(_) {
|
|
2534
|
+
return {};
|
|
2535
|
+
},
|
|
2536
|
+
toJSON(_) {
|
|
2537
|
+
const obj = {};
|
|
2538
|
+
return obj;
|
|
2539
|
+
},
|
|
2540
|
+
create(base) {
|
|
2541
|
+
return exports.ClearSotTargetCtrl.fromPartial(base ?? {});
|
|
2542
|
+
},
|
|
2543
|
+
fromPartial(_) {
|
|
2544
|
+
const message = createBaseClearSotTargetCtrl();
|
|
2545
|
+
return message;
|
|
2546
|
+
},
|
|
2547
|
+
};
|
|
2548
|
+
function createBaseAnnotationCtrl() {
|
|
2549
|
+
return { annotation: undefined };
|
|
2550
|
+
}
|
|
2551
|
+
exports.AnnotationCtrl = {
|
|
2552
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2553
|
+
if (message.annotation !== undefined) {
|
|
2554
|
+
message_formats_1.Annotation.encode(message.annotation, writer.uint32(10).fork()).join();
|
|
2555
|
+
}
|
|
2556
|
+
return writer;
|
|
2557
|
+
},
|
|
2558
|
+
decode(input, length) {
|
|
2559
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2560
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2561
|
+
const message = createBaseAnnotationCtrl();
|
|
2562
|
+
while (reader.pos < end) {
|
|
2563
|
+
const tag = reader.uint32();
|
|
2564
|
+
switch (tag >>> 3) {
|
|
2565
|
+
case 1: {
|
|
2566
|
+
if (tag !== 10) {
|
|
2567
|
+
break;
|
|
2568
|
+
}
|
|
2569
|
+
message.annotation = message_formats_1.Annotation.decode(reader, reader.uint32());
|
|
2570
|
+
continue;
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2574
|
+
break;
|
|
2575
|
+
}
|
|
2576
|
+
reader.skip(tag & 7);
|
|
2577
|
+
}
|
|
2578
|
+
return message;
|
|
2579
|
+
},
|
|
2580
|
+
fromJSON(object) {
|
|
2581
|
+
return { annotation: isSet(object.annotation) ? message_formats_1.Annotation.fromJSON(object.annotation) : undefined };
|
|
2582
|
+
},
|
|
2583
|
+
toJSON(message) {
|
|
2584
|
+
const obj = {};
|
|
2585
|
+
if (message.annotation !== undefined) {
|
|
2586
|
+
obj.annotation = message_formats_1.Annotation.toJSON(message.annotation);
|
|
2587
|
+
}
|
|
2588
|
+
return obj;
|
|
2589
|
+
},
|
|
2590
|
+
create(base) {
|
|
2591
|
+
return exports.AnnotationCtrl.fromPartial(base ?? {});
|
|
2592
|
+
},
|
|
2593
|
+
fromPartial(object) {
|
|
2594
|
+
const message = createBaseAnnotationCtrl();
|
|
2595
|
+
message.annotation = (object.annotation !== undefined && object.annotation !== null)
|
|
2596
|
+
? message_formats_1.Annotation.fromPartial(object.annotation)
|
|
2597
|
+
: undefined;
|
|
2598
|
+
return message;
|
|
2599
|
+
},
|
|
2600
|
+
};
|
|
2044
2601
|
const gt = (() => {
|
|
2045
2602
|
if (typeof globalThis !== "undefined") {
|
|
2046
2603
|
return globalThis;
|