@blueyerobotics/protocol-definitions 3.2.0-d9b151ea → 3.2.0-db84868b
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 +43 -4
- package/dist/control.js +286 -17
- package/dist/message_formats.d.ts +387 -8
- package/dist/message_formats.js +2451 -57
- package/dist/mission_planning.d.ts +54 -0
- package/dist/mission_planning.js +243 -1
- package/dist/req_rep.d.ts +24 -0
- package/dist/req_rep.js +208 -1
- package/dist/telemetry.d.ts +44 -3
- package/dist/telemetry.js +250 -8
- package/package.json +1 -1
package/dist/control.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { SetAquaTrollConnectionStatus, SetAquaTrollParameterUnit } from "./aquatroll";
|
|
3
|
-
import { AutoAltitudeState, AutoDepthState, AutoHeadingState, AutoPilotHeaveState, AutoPilotSurgeYawState, ConnectionDuration, GenericServo, GripperVelocities, GuestPortRestartInfo, Laser, LatLongPosition, Lights, MotionInput, MultibeamConfig, MultibeamServo, PingerConfiguration, RecordOn, ResetPositionSettings, StationKeepingState, StorageLocation, SystemTime, TiltStabilizationState, TiltVelocity,
|
|
3
|
+
import { AutoAltitudeState, AutoDepthState, AutoHeadingState, AutoPilotHeaveState, AutoPilotSurgeYawState, BoundingBox, CameraPanTiltZoom, ConnectionDuration, FilterMessage, GenericServo, GripperVelocities, GuestPortRestartInfo, Laser, LatLongPosition, Lights, MotionInput, MultibeamConfig, MultibeamServo, OperatorInfo, PingerConfiguration, RecordOn, ResetPositionSettings, StationKeepingState, StorageLocation, SystemTime, TiltStabilizationState, TiltVelocity, WaterDensity, WeatherVaningState } from "./message_formats";
|
|
4
4
|
/**
|
|
5
5
|
* Control
|
|
6
6
|
*
|
|
@@ -200,6 +200,8 @@ export interface DeactivateMultibeamCtrl {
|
|
|
200
200
|
* at which point the user entered the dive view.
|
|
201
201
|
*/
|
|
202
202
|
export interface StartDiveCtrl {
|
|
203
|
+
/** Optional information about the operator who started the dive. */
|
|
204
|
+
operatorInfo: OperatorInfo | undefined;
|
|
203
205
|
}
|
|
204
206
|
/**
|
|
205
207
|
* Message sent when the user hits the end dive button in the app.
|
|
@@ -220,9 +222,41 @@ export interface EndDiveCtrl {
|
|
|
220
222
|
export interface FormatRemovableStorageDeviceCtrl {
|
|
221
223
|
}
|
|
222
224
|
/** Message sent when the user wants to set turbidity filter settings. */
|
|
223
|
-
export interface
|
|
225
|
+
export interface SetTurbidityFilterCtrl {
|
|
224
226
|
/** Message with the turbidity filter settings to set. */
|
|
225
|
-
turbidityFilter:
|
|
227
|
+
turbidityFilter: FilterMessage | undefined;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Issue a command to set the digital pan, tilt, and zoom of the main camera.
|
|
231
|
+
*
|
|
232
|
+
* Only supported on X3 Ultra.
|
|
233
|
+
*/
|
|
234
|
+
export interface CameraPanTiltZoomCtrl {
|
|
235
|
+
/** The desired pan, tilt, and zoom state. */
|
|
236
|
+
cameraPanTiltZoom: CameraPanTiltZoom | undefined;
|
|
237
|
+
}
|
|
238
|
+
/** Message sent to start streaming log entries to the client. */
|
|
239
|
+
export interface StartLogStreamingCtrl {
|
|
240
|
+
}
|
|
241
|
+
/** Message sent to stop streaming log entries to the client. */
|
|
242
|
+
export interface StopLogStreamingCtrl {
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Issue a command to set the single-object tracking (SOT) target.
|
|
246
|
+
*
|
|
247
|
+
* Send a bounding box to start tracking a new target. The CV pipeline will
|
|
248
|
+
* initialize the SOT tracker on the specified region of the video frame.
|
|
249
|
+
*/
|
|
250
|
+
export interface SetSotTargetCtrl {
|
|
251
|
+
/** Target bounding box. */
|
|
252
|
+
boundingBox: BoundingBox | undefined;
|
|
253
|
+
/** Width of the frame the bounding box was drawn on. */
|
|
254
|
+
imageWidth: number;
|
|
255
|
+
/** Height of the frame the bounding box was drawn on. */
|
|
256
|
+
imageHeight: number;
|
|
257
|
+
}
|
|
258
|
+
/** Issue a command to clear the single-object tracking (SOT) target (stop tracking). */
|
|
259
|
+
export interface ClearSotTargetCtrl {
|
|
226
260
|
}
|
|
227
261
|
export declare const MotionInputCtrl: MessageFns<MotionInputCtrl>;
|
|
228
262
|
export declare const TiltVelocityCtrl: MessageFns<TiltVelocityCtrl>;
|
|
@@ -267,7 +301,12 @@ export declare const DeactivateMultibeamCtrl: MessageFns<DeactivateMultibeamCtrl
|
|
|
267
301
|
export declare const StartDiveCtrl: MessageFns<StartDiveCtrl>;
|
|
268
302
|
export declare const EndDiveCtrl: MessageFns<EndDiveCtrl>;
|
|
269
303
|
export declare const FormatRemovableStorageDeviceCtrl: MessageFns<FormatRemovableStorageDeviceCtrl>;
|
|
270
|
-
export declare const
|
|
304
|
+
export declare const SetTurbidityFilterCtrl: MessageFns<SetTurbidityFilterCtrl>;
|
|
305
|
+
export declare const CameraPanTiltZoomCtrl: MessageFns<CameraPanTiltZoomCtrl>;
|
|
306
|
+
export declare const StartLogStreamingCtrl: MessageFns<StartLogStreamingCtrl>;
|
|
307
|
+
export declare const StopLogStreamingCtrl: MessageFns<StopLogStreamingCtrl>;
|
|
308
|
+
export declare const SetSotTargetCtrl: MessageFns<SetSotTargetCtrl>;
|
|
309
|
+
export declare const ClearSotTargetCtrl: MessageFns<ClearSotTargetCtrl>;
|
|
271
310
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
272
311
|
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 {} ? {
|
|
273
312
|
[K in keyof T]?: DeepPartial<T[K]>;
|
package/dist/control.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: control.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.ClearSotTargetCtrl = exports.SetSotTargetCtrl = exports.StopLogStreamingCtrl = exports.StartLogStreamingCtrl = exports.CameraPanTiltZoomCtrl = exports.SetTurbidityFilterCtrl = exports.FormatRemovableStorageDeviceCtrl = exports.EndDiveCtrl = exports.StartDiveCtrl = exports.DeactivateMultibeamCtrl = exports.ActivateMultibeamCtrl = exports.SetMultibeamConfigCtrl = exports.SetAquaTrollConnectionStatusCtrl = exports.SetAquaTrollParameterUnitCtrl = exports.RestartGuestPortsCtrl = exports.ActivateGuestPortsCtrl = exports.DeactivateGuestPortsCtrl = exports.MultibeamServoCtrl = exports.GenericServoCtrl = exports.GripperCtrl = exports.SystemTimeCtrl = exports.PingerConfigurationCtrl = exports.WaterDensityCtrl = exports.TiltStabilizationCtrl = exports.CalibrateDvlGyroCtrl = exports.ResetOdometerCtrl = exports.ResetPositionCtrl = exports.ClearMissionCtrl = exports.PauseMissionCtrl = exports.RunMissionCtrl = exports.AutoPilotHeaveCtrl = exports.AutoPilotSurgeYawCtrl = exports.WeatherVaningCtrl = exports.StationKeepingCtrl = exports.AutoAltitudeCtrl = exports.AutoDepthCtrl = exports.AutoHeadingCtrl = exports.FinishCalibrationCtrl = exports.CancelCalibrationCtrl = exports.StartCalibrationCtrl = exports.TakePictureCtrl = exports.RecordCtrl = exports.WatchdogCtrl = exports.PilotGPSPositionCtrl = exports.LaserCtrl = exports.GuestportLightsCtrl = exports.LightsCtrl = exports.TiltVelocityCtrl = exports.MotionInputCtrl = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const aquatroll_1 = require("./aquatroll");
|
|
@@ -1999,10 +1999,13 @@ exports.DeactivateMultibeamCtrl = {
|
|
|
1999
1999
|
},
|
|
2000
2000
|
};
|
|
2001
2001
|
function createBaseStartDiveCtrl() {
|
|
2002
|
-
return {};
|
|
2002
|
+
return { operatorInfo: undefined };
|
|
2003
2003
|
}
|
|
2004
2004
|
exports.StartDiveCtrl = {
|
|
2005
|
-
encode(
|
|
2005
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2006
|
+
if (message.operatorInfo !== undefined) {
|
|
2007
|
+
message_formats_1.OperatorInfo.encode(message.operatorInfo, writer.uint32(10).fork()).join();
|
|
2008
|
+
}
|
|
2006
2009
|
return writer;
|
|
2007
2010
|
},
|
|
2008
2011
|
decode(input, length) {
|
|
@@ -2012,6 +2015,13 @@ exports.StartDiveCtrl = {
|
|
|
2012
2015
|
while (reader.pos < end) {
|
|
2013
2016
|
const tag = reader.uint32();
|
|
2014
2017
|
switch (tag >>> 3) {
|
|
2018
|
+
case 1: {
|
|
2019
|
+
if (tag !== 10) {
|
|
2020
|
+
break;
|
|
2021
|
+
}
|
|
2022
|
+
message.operatorInfo = message_formats_1.OperatorInfo.decode(reader, reader.uint32());
|
|
2023
|
+
continue;
|
|
2024
|
+
}
|
|
2015
2025
|
}
|
|
2016
2026
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2017
2027
|
break;
|
|
@@ -2020,18 +2030,24 @@ exports.StartDiveCtrl = {
|
|
|
2020
2030
|
}
|
|
2021
2031
|
return message;
|
|
2022
2032
|
},
|
|
2023
|
-
fromJSON(
|
|
2024
|
-
return {};
|
|
2033
|
+
fromJSON(object) {
|
|
2034
|
+
return { operatorInfo: isSet(object.operatorInfo) ? message_formats_1.OperatorInfo.fromJSON(object.operatorInfo) : undefined };
|
|
2025
2035
|
},
|
|
2026
|
-
toJSON(
|
|
2036
|
+
toJSON(message) {
|
|
2027
2037
|
const obj = {};
|
|
2038
|
+
if (message.operatorInfo !== undefined) {
|
|
2039
|
+
obj.operatorInfo = message_formats_1.OperatorInfo.toJSON(message.operatorInfo);
|
|
2040
|
+
}
|
|
2028
2041
|
return obj;
|
|
2029
2042
|
},
|
|
2030
2043
|
create(base) {
|
|
2031
2044
|
return exports.StartDiveCtrl.fromPartial(base ?? {});
|
|
2032
2045
|
},
|
|
2033
|
-
fromPartial(
|
|
2046
|
+
fromPartial(object) {
|
|
2034
2047
|
const message = createBaseStartDiveCtrl();
|
|
2048
|
+
message.operatorInfo = (object.operatorInfo !== undefined && object.operatorInfo !== null)
|
|
2049
|
+
? message_formats_1.OperatorInfo.fromPartial(object.operatorInfo)
|
|
2050
|
+
: undefined;
|
|
2035
2051
|
return message;
|
|
2036
2052
|
},
|
|
2037
2053
|
};
|
|
@@ -2109,20 +2125,20 @@ exports.FormatRemovableStorageDeviceCtrl = {
|
|
|
2109
2125
|
return message;
|
|
2110
2126
|
},
|
|
2111
2127
|
};
|
|
2112
|
-
function
|
|
2128
|
+
function createBaseSetTurbidityFilterCtrl() {
|
|
2113
2129
|
return { turbidityFilter: undefined };
|
|
2114
2130
|
}
|
|
2115
|
-
exports.
|
|
2131
|
+
exports.SetTurbidityFilterCtrl = {
|
|
2116
2132
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2117
2133
|
if (message.turbidityFilter !== undefined) {
|
|
2118
|
-
message_formats_1.
|
|
2134
|
+
message_formats_1.FilterMessage.encode(message.turbidityFilter, writer.uint32(10).fork()).join();
|
|
2119
2135
|
}
|
|
2120
2136
|
return writer;
|
|
2121
2137
|
},
|
|
2122
2138
|
decode(input, length) {
|
|
2123
2139
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2124
2140
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2125
|
-
const message =
|
|
2141
|
+
const message = createBaseSetTurbidityFilterCtrl();
|
|
2126
2142
|
while (reader.pos < end) {
|
|
2127
2143
|
const tag = reader.uint32();
|
|
2128
2144
|
switch (tag >>> 3) {
|
|
@@ -2130,7 +2146,7 @@ exports.SetTurbidityFilter = {
|
|
|
2130
2146
|
if (tag !== 10) {
|
|
2131
2147
|
break;
|
|
2132
2148
|
}
|
|
2133
|
-
message.turbidityFilter = message_formats_1.
|
|
2149
|
+
message.turbidityFilter = message_formats_1.FilterMessage.decode(reader, reader.uint32());
|
|
2134
2150
|
continue;
|
|
2135
2151
|
}
|
|
2136
2152
|
}
|
|
@@ -2143,24 +2159,277 @@ exports.SetTurbidityFilter = {
|
|
|
2143
2159
|
},
|
|
2144
2160
|
fromJSON(object) {
|
|
2145
2161
|
return {
|
|
2146
|
-
turbidityFilter: isSet(object.turbidityFilter) ? message_formats_1.
|
|
2162
|
+
turbidityFilter: isSet(object.turbidityFilter) ? message_formats_1.FilterMessage.fromJSON(object.turbidityFilter) : undefined,
|
|
2147
2163
|
};
|
|
2148
2164
|
},
|
|
2149
2165
|
toJSON(message) {
|
|
2150
2166
|
const obj = {};
|
|
2151
2167
|
if (message.turbidityFilter !== undefined) {
|
|
2152
|
-
obj.turbidityFilter = message_formats_1.
|
|
2168
|
+
obj.turbidityFilter = message_formats_1.FilterMessage.toJSON(message.turbidityFilter);
|
|
2153
2169
|
}
|
|
2154
2170
|
return obj;
|
|
2155
2171
|
},
|
|
2156
2172
|
create(base) {
|
|
2157
|
-
return exports.
|
|
2173
|
+
return exports.SetTurbidityFilterCtrl.fromPartial(base ?? {});
|
|
2158
2174
|
},
|
|
2159
2175
|
fromPartial(object) {
|
|
2160
|
-
const message =
|
|
2176
|
+
const message = createBaseSetTurbidityFilterCtrl();
|
|
2161
2177
|
message.turbidityFilter = (object.turbidityFilter !== undefined && object.turbidityFilter !== null)
|
|
2162
|
-
? message_formats_1.
|
|
2178
|
+
? message_formats_1.FilterMessage.fromPartial(object.turbidityFilter)
|
|
2179
|
+
: undefined;
|
|
2180
|
+
return message;
|
|
2181
|
+
},
|
|
2182
|
+
};
|
|
2183
|
+
function createBaseCameraPanTiltZoomCtrl() {
|
|
2184
|
+
return { cameraPanTiltZoom: undefined };
|
|
2185
|
+
}
|
|
2186
|
+
exports.CameraPanTiltZoomCtrl = {
|
|
2187
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2188
|
+
if (message.cameraPanTiltZoom !== undefined) {
|
|
2189
|
+
message_formats_1.CameraPanTiltZoom.encode(message.cameraPanTiltZoom, writer.uint32(10).fork()).join();
|
|
2190
|
+
}
|
|
2191
|
+
return writer;
|
|
2192
|
+
},
|
|
2193
|
+
decode(input, length) {
|
|
2194
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2195
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2196
|
+
const message = createBaseCameraPanTiltZoomCtrl();
|
|
2197
|
+
while (reader.pos < end) {
|
|
2198
|
+
const tag = reader.uint32();
|
|
2199
|
+
switch (tag >>> 3) {
|
|
2200
|
+
case 1: {
|
|
2201
|
+
if (tag !== 10) {
|
|
2202
|
+
break;
|
|
2203
|
+
}
|
|
2204
|
+
message.cameraPanTiltZoom = message_formats_1.CameraPanTiltZoom.decode(reader, reader.uint32());
|
|
2205
|
+
continue;
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2209
|
+
break;
|
|
2210
|
+
}
|
|
2211
|
+
reader.skip(tag & 7);
|
|
2212
|
+
}
|
|
2213
|
+
return message;
|
|
2214
|
+
},
|
|
2215
|
+
fromJSON(object) {
|
|
2216
|
+
return {
|
|
2217
|
+
cameraPanTiltZoom: isSet(object.cameraPanTiltZoom)
|
|
2218
|
+
? message_formats_1.CameraPanTiltZoom.fromJSON(object.cameraPanTiltZoom)
|
|
2219
|
+
: undefined,
|
|
2220
|
+
};
|
|
2221
|
+
},
|
|
2222
|
+
toJSON(message) {
|
|
2223
|
+
const obj = {};
|
|
2224
|
+
if (message.cameraPanTiltZoom !== undefined) {
|
|
2225
|
+
obj.cameraPanTiltZoom = message_formats_1.CameraPanTiltZoom.toJSON(message.cameraPanTiltZoom);
|
|
2226
|
+
}
|
|
2227
|
+
return obj;
|
|
2228
|
+
},
|
|
2229
|
+
create(base) {
|
|
2230
|
+
return exports.CameraPanTiltZoomCtrl.fromPartial(base ?? {});
|
|
2231
|
+
},
|
|
2232
|
+
fromPartial(object) {
|
|
2233
|
+
const message = createBaseCameraPanTiltZoomCtrl();
|
|
2234
|
+
message.cameraPanTiltZoom = (object.cameraPanTiltZoom !== undefined && object.cameraPanTiltZoom !== null)
|
|
2235
|
+
? message_formats_1.CameraPanTiltZoom.fromPartial(object.cameraPanTiltZoom)
|
|
2236
|
+
: undefined;
|
|
2237
|
+
return message;
|
|
2238
|
+
},
|
|
2239
|
+
};
|
|
2240
|
+
function createBaseStartLogStreamingCtrl() {
|
|
2241
|
+
return {};
|
|
2242
|
+
}
|
|
2243
|
+
exports.StartLogStreamingCtrl = {
|
|
2244
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
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 = createBaseStartLogStreamingCtrl();
|
|
2251
|
+
while (reader.pos < end) {
|
|
2252
|
+
const tag = reader.uint32();
|
|
2253
|
+
switch (tag >>> 3) {
|
|
2254
|
+
}
|
|
2255
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2256
|
+
break;
|
|
2257
|
+
}
|
|
2258
|
+
reader.skip(tag & 7);
|
|
2259
|
+
}
|
|
2260
|
+
return message;
|
|
2261
|
+
},
|
|
2262
|
+
fromJSON(_) {
|
|
2263
|
+
return {};
|
|
2264
|
+
},
|
|
2265
|
+
toJSON(_) {
|
|
2266
|
+
const obj = {};
|
|
2267
|
+
return obj;
|
|
2268
|
+
},
|
|
2269
|
+
create(base) {
|
|
2270
|
+
return exports.StartLogStreamingCtrl.fromPartial(base ?? {});
|
|
2271
|
+
},
|
|
2272
|
+
fromPartial(_) {
|
|
2273
|
+
const message = createBaseStartLogStreamingCtrl();
|
|
2274
|
+
return message;
|
|
2275
|
+
},
|
|
2276
|
+
};
|
|
2277
|
+
function createBaseStopLogStreamingCtrl() {
|
|
2278
|
+
return {};
|
|
2279
|
+
}
|
|
2280
|
+
exports.StopLogStreamingCtrl = {
|
|
2281
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
2282
|
+
return writer;
|
|
2283
|
+
},
|
|
2284
|
+
decode(input, length) {
|
|
2285
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2286
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2287
|
+
const message = createBaseStopLogStreamingCtrl();
|
|
2288
|
+
while (reader.pos < end) {
|
|
2289
|
+
const tag = reader.uint32();
|
|
2290
|
+
switch (tag >>> 3) {
|
|
2291
|
+
}
|
|
2292
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2293
|
+
break;
|
|
2294
|
+
}
|
|
2295
|
+
reader.skip(tag & 7);
|
|
2296
|
+
}
|
|
2297
|
+
return message;
|
|
2298
|
+
},
|
|
2299
|
+
fromJSON(_) {
|
|
2300
|
+
return {};
|
|
2301
|
+
},
|
|
2302
|
+
toJSON(_) {
|
|
2303
|
+
const obj = {};
|
|
2304
|
+
return obj;
|
|
2305
|
+
},
|
|
2306
|
+
create(base) {
|
|
2307
|
+
return exports.StopLogStreamingCtrl.fromPartial(base ?? {});
|
|
2308
|
+
},
|
|
2309
|
+
fromPartial(_) {
|
|
2310
|
+
const message = createBaseStopLogStreamingCtrl();
|
|
2311
|
+
return message;
|
|
2312
|
+
},
|
|
2313
|
+
};
|
|
2314
|
+
function createBaseSetSotTargetCtrl() {
|
|
2315
|
+
return { boundingBox: undefined, imageWidth: 0, imageHeight: 0 };
|
|
2316
|
+
}
|
|
2317
|
+
exports.SetSotTargetCtrl = {
|
|
2318
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2319
|
+
if (message.boundingBox !== undefined) {
|
|
2320
|
+
message_formats_1.BoundingBox.encode(message.boundingBox, writer.uint32(10).fork()).join();
|
|
2321
|
+
}
|
|
2322
|
+
if (message.imageWidth !== 0) {
|
|
2323
|
+
writer.uint32(16).uint32(message.imageWidth);
|
|
2324
|
+
}
|
|
2325
|
+
if (message.imageHeight !== 0) {
|
|
2326
|
+
writer.uint32(24).uint32(message.imageHeight);
|
|
2327
|
+
}
|
|
2328
|
+
return writer;
|
|
2329
|
+
},
|
|
2330
|
+
decode(input, length) {
|
|
2331
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2332
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2333
|
+
const message = createBaseSetSotTargetCtrl();
|
|
2334
|
+
while (reader.pos < end) {
|
|
2335
|
+
const tag = reader.uint32();
|
|
2336
|
+
switch (tag >>> 3) {
|
|
2337
|
+
case 1: {
|
|
2338
|
+
if (tag !== 10) {
|
|
2339
|
+
break;
|
|
2340
|
+
}
|
|
2341
|
+
message.boundingBox = message_formats_1.BoundingBox.decode(reader, reader.uint32());
|
|
2342
|
+
continue;
|
|
2343
|
+
}
|
|
2344
|
+
case 2: {
|
|
2345
|
+
if (tag !== 16) {
|
|
2346
|
+
break;
|
|
2347
|
+
}
|
|
2348
|
+
message.imageWidth = reader.uint32();
|
|
2349
|
+
continue;
|
|
2350
|
+
}
|
|
2351
|
+
case 3: {
|
|
2352
|
+
if (tag !== 24) {
|
|
2353
|
+
break;
|
|
2354
|
+
}
|
|
2355
|
+
message.imageHeight = reader.uint32();
|
|
2356
|
+
continue;
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2360
|
+
break;
|
|
2361
|
+
}
|
|
2362
|
+
reader.skip(tag & 7);
|
|
2363
|
+
}
|
|
2364
|
+
return message;
|
|
2365
|
+
},
|
|
2366
|
+
fromJSON(object) {
|
|
2367
|
+
return {
|
|
2368
|
+
boundingBox: isSet(object.boundingBox) ? message_formats_1.BoundingBox.fromJSON(object.boundingBox) : undefined,
|
|
2369
|
+
imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
|
|
2370
|
+
imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
|
|
2371
|
+
};
|
|
2372
|
+
},
|
|
2373
|
+
toJSON(message) {
|
|
2374
|
+
const obj = {};
|
|
2375
|
+
if (message.boundingBox !== undefined) {
|
|
2376
|
+
obj.boundingBox = message_formats_1.BoundingBox.toJSON(message.boundingBox);
|
|
2377
|
+
}
|
|
2378
|
+
if (message.imageWidth !== 0) {
|
|
2379
|
+
obj.imageWidth = Math.round(message.imageWidth);
|
|
2380
|
+
}
|
|
2381
|
+
if (message.imageHeight !== 0) {
|
|
2382
|
+
obj.imageHeight = Math.round(message.imageHeight);
|
|
2383
|
+
}
|
|
2384
|
+
return obj;
|
|
2385
|
+
},
|
|
2386
|
+
create(base) {
|
|
2387
|
+
return exports.SetSotTargetCtrl.fromPartial(base ?? {});
|
|
2388
|
+
},
|
|
2389
|
+
fromPartial(object) {
|
|
2390
|
+
const message = createBaseSetSotTargetCtrl();
|
|
2391
|
+
message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
|
|
2392
|
+
? message_formats_1.BoundingBox.fromPartial(object.boundingBox)
|
|
2163
2393
|
: undefined;
|
|
2394
|
+
message.imageWidth = object.imageWidth ?? 0;
|
|
2395
|
+
message.imageHeight = object.imageHeight ?? 0;
|
|
2396
|
+
return message;
|
|
2397
|
+
},
|
|
2398
|
+
};
|
|
2399
|
+
function createBaseClearSotTargetCtrl() {
|
|
2400
|
+
return {};
|
|
2401
|
+
}
|
|
2402
|
+
exports.ClearSotTargetCtrl = {
|
|
2403
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
2404
|
+
return writer;
|
|
2405
|
+
},
|
|
2406
|
+
decode(input, length) {
|
|
2407
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2408
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2409
|
+
const message = createBaseClearSotTargetCtrl();
|
|
2410
|
+
while (reader.pos < end) {
|
|
2411
|
+
const tag = reader.uint32();
|
|
2412
|
+
switch (tag >>> 3) {
|
|
2413
|
+
}
|
|
2414
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2415
|
+
break;
|
|
2416
|
+
}
|
|
2417
|
+
reader.skip(tag & 7);
|
|
2418
|
+
}
|
|
2419
|
+
return message;
|
|
2420
|
+
},
|
|
2421
|
+
fromJSON(_) {
|
|
2422
|
+
return {};
|
|
2423
|
+
},
|
|
2424
|
+
toJSON(_) {
|
|
2425
|
+
const obj = {};
|
|
2426
|
+
return obj;
|
|
2427
|
+
},
|
|
2428
|
+
create(base) {
|
|
2429
|
+
return exports.ClearSotTargetCtrl.fromPartial(base ?? {});
|
|
2430
|
+
},
|
|
2431
|
+
fromPartial(_) {
|
|
2432
|
+
const message = createBaseClearSotTargetCtrl();
|
|
2164
2433
|
return message;
|
|
2165
2434
|
},
|
|
2166
2435
|
};
|