@blueyerobotics/protocol-definitions 3.2.0-d3c78945 → 3.2.0-d7dd459b
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 -1
- package/dist/control.js +197 -1
- package/dist/message_formats.d.ts +345 -12
- package/dist/message_formats.js +2353 -136
- package/dist/req_rep.d.ts +24 -0
- package/dist/req_rep.js +208 -1
- package/dist/telemetry.d.ts +32 -5
- package/dist/telemetry.js +127 -17
- 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, 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";
|
|
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
|
*
|
|
@@ -235,6 +235,29 @@ export interface CameraPanTiltZoomCtrl {
|
|
|
235
235
|
/** The desired pan, tilt, and zoom state. */
|
|
236
236
|
cameraPanTiltZoom: CameraPanTiltZoom | undefined;
|
|
237
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 {
|
|
260
|
+
}
|
|
238
261
|
export declare const MotionInputCtrl: MessageFns<MotionInputCtrl>;
|
|
239
262
|
export declare const TiltVelocityCtrl: MessageFns<TiltVelocityCtrl>;
|
|
240
263
|
export declare const LightsCtrl: MessageFns<LightsCtrl>;
|
|
@@ -280,6 +303,10 @@ export declare const EndDiveCtrl: MessageFns<EndDiveCtrl>;
|
|
|
280
303
|
export declare const FormatRemovableStorageDeviceCtrl: MessageFns<FormatRemovableStorageDeviceCtrl>;
|
|
281
304
|
export declare const SetTurbidityFilterCtrl: MessageFns<SetTurbidityFilterCtrl>;
|
|
282
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>;
|
|
283
310
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
284
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 {} ? {
|
|
285
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.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;
|
|
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");
|
|
@@ -2237,6 +2237,202 @@ exports.CameraPanTiltZoomCtrl = {
|
|
|
2237
2237
|
return message;
|
|
2238
2238
|
},
|
|
2239
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)
|
|
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();
|
|
2433
|
+
return message;
|
|
2434
|
+
},
|
|
2435
|
+
};
|
|
2240
2436
|
const gt = (() => {
|
|
2241
2437
|
if (typeof globalThis !== "undefined") {
|
|
2242
2438
|
return globalThis;
|