@blueyerobotics/protocol-definitions 3.4.0-618bf0b0 → 3.4.0-eddb8a5e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.blueye.protocol.d.ts +1 -0
- package/dist/index.blueye.protocol.js +1 -0
- package/dist/message_formats.d.ts +196 -2
- package/dist/message_formats.js +1139 -49
- package/dist/req_rep.d.ts +168 -1
- package/dist/req_rep.js +1033 -16
- package/dist/slam.d.ts +512 -0
- package/dist/slam.js +2427 -0
- package/dist/telemetry.d.ts +99 -1
- package/dist/telemetry.js +535 -1
- package/package.json +1 -1
package/dist/telemetry.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { AquaTrollProbeMetadata, AquaTrollSensorMetadataArray, AquaTrollSensorParametersArray } from "./aquatroll.js";
|
|
3
|
-
import { Altitude, Annotation, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GnssStatus, Gripper, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LaserDetection, LatLongPosition, Lights, LogEntry, MagneticDeclination, MarineSnowFilterFrames, MedusaSpectrometerData, ModelDetections, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, PowerCanister, RecordState, Reference, RemovableStorageDevice, SotState, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemPerformanceInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats.js";
|
|
3
|
+
import { Altitude, Annotation, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GnssStatus, Gripper, GripperDiagnostics, GripperInfo, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LaserDetection, LatLongPosition, Lights, LogEntry, MagneticDeclination, MarineSnowFilterFrames, MedusaSpectrometerData, ModelDetections, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, PowerCanister, RecordState, Reference, RemovableStorageDevice, SotState, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemPerformanceInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats.js";
|
|
4
4
|
import { MissionStatus, ReferenceAutoPilot } from "./mission_planning.js";
|
|
5
|
+
import { SlamAiding, SlamMap, SlamMapFrame, SlamMapUpdate, SlamPoseEstimate, SlamRecordingState, SlamScan, SlamSensorStatus } from "./slam.js";
|
|
5
6
|
/**
|
|
6
7
|
* Telemetry
|
|
7
8
|
*
|
|
@@ -281,6 +282,22 @@ export interface GripperTel {
|
|
|
281
282
|
/** Gripper state. */
|
|
282
283
|
gripper: Gripper | undefined;
|
|
283
284
|
}
|
|
285
|
+
/**
|
|
286
|
+
* Identity of a gripper, published every minute for each connected gripper.
|
|
287
|
+
* With several grippers, GetTelemetryReq returns the one that published last: its guest port tells which.
|
|
288
|
+
*/
|
|
289
|
+
export interface GripperInfoTel {
|
|
290
|
+
/** Gripper identity. */
|
|
291
|
+
gripperInfo: GripperInfo | undefined;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Health of a gripper, published every few seconds for each connected gripper that reports it.
|
|
295
|
+
* With several grippers, GetTelemetryReq returns the one that published last: its guest port tells which.
|
|
296
|
+
*/
|
|
297
|
+
export interface GripperDiagnosticsTel {
|
|
298
|
+
/** Gripper diagnostics. */
|
|
299
|
+
gripperDiagnostics: GripperDiagnostics | undefined;
|
|
300
|
+
}
|
|
284
301
|
/** GuestPort current readings. */
|
|
285
302
|
export interface GuestPortCurrentTel {
|
|
286
303
|
/** Guest port current readings. */
|
|
@@ -427,6 +444,80 @@ export interface AnnotationTel {
|
|
|
427
444
|
/** The annotation that was added. */
|
|
428
445
|
annotation: Annotation | undefined;
|
|
429
446
|
}
|
|
447
|
+
/**
|
|
448
|
+
* SLAM estimate of its platform's pose (SlamMapFrame.platform: the drone's, each
|
|
449
|
+
* sensor on it at its mount, which the estimate carries; or, without a known
|
|
450
|
+
* mount, the sensor's own).
|
|
451
|
+
*
|
|
452
|
+
* Published for every scan on the SLAM publisher, not the main telemetry socket.
|
|
453
|
+
*/
|
|
454
|
+
export interface SlamPoseTel {
|
|
455
|
+
/** The pose estimate. */
|
|
456
|
+
estimate: SlamPoseEstimate | undefined;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* A change to the SLAM map: new keyframes and points, or a corrected trajectory.
|
|
460
|
+
*
|
|
461
|
+
* Published on the SLAM publisher. A client applies the updates that follow the
|
|
462
|
+
* map it holds (SlamMapTel); one it missed it asks for again (GetSlamMapReq).
|
|
463
|
+
*/
|
|
464
|
+
export interface SlamMapUpdateTel {
|
|
465
|
+
/** The change. */
|
|
466
|
+
update: SlamMapUpdate | undefined;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* The latest scan placed in the SLAM map.
|
|
470
|
+
*
|
|
471
|
+
* Published on the SLAM publisher for live display; not part of the map.
|
|
472
|
+
*/
|
|
473
|
+
export interface SlamScanTel {
|
|
474
|
+
/** The scan. */
|
|
475
|
+
scan: SlamScan | undefined;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* The whole SLAM map, or a part of it (SlamMap.part).
|
|
479
|
+
*
|
|
480
|
+
* Published on the SLAM publisher when a client asks for it (GetSlamMapReq). A
|
|
481
|
+
* client subscribes, asks, keeps the updates that arrive meanwhile, and applies
|
|
482
|
+
* those that follow the map's sequence once it has all of its parts (put together
|
|
483
|
+
* as SlamMap says: repeated fields concatenated, every other field the first
|
|
484
|
+
* part's). A SLAM recording has the map at its start, and ends each map it holds
|
|
485
|
+
* with it.
|
|
486
|
+
*/
|
|
487
|
+
export interface SlamMapTel {
|
|
488
|
+
/** The map, or a part of it. */
|
|
489
|
+
map: SlamMap | undefined;
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* The SLAM's state.
|
|
493
|
+
*
|
|
494
|
+
* Published on the SLAM publisher once a second, and when it changes.
|
|
495
|
+
*/
|
|
496
|
+
export interface SlamStatusTel {
|
|
497
|
+
/** True while the SLAM is mapping: its sensors are on and scans are placed. */
|
|
498
|
+
active: boolean;
|
|
499
|
+
/** Identifier of the current map, 0 when the SLAM has no map. */
|
|
500
|
+
mapId: number;
|
|
501
|
+
/** The recording, when one runs or ran. */
|
|
502
|
+
recording: SlamRecordingState | undefined;
|
|
503
|
+
/** The sensors that feed the SLAM. */
|
|
504
|
+
sensors: SlamSensorStatus[];
|
|
505
|
+
/** True if the map holds as many points as it may: it is placed in, but grows no more. */
|
|
506
|
+
mapFull: boolean;
|
|
507
|
+
/** True if the SLAM corrects its trajectory with loop closures (it has a back end). */
|
|
508
|
+
loopClosure: boolean;
|
|
509
|
+
/** How the current map's frame lies in the world (unset before its first scan). */
|
|
510
|
+
frame: SlamMapFrame | undefined;
|
|
511
|
+
/**
|
|
512
|
+
* Sequence of the newest update of the current map (SlamMapUpdate.sequence), 0 for none: a client
|
|
513
|
+
* that has applied less of the current map has missed one, and catches up (GetSlamMapReq).
|
|
514
|
+
*/
|
|
515
|
+
sequence: number;
|
|
516
|
+
/** What other than its sensors the estimate rests on now. */
|
|
517
|
+
aiding: SlamAiding | undefined;
|
|
518
|
+
/** True if the SLAM's back end failed and was dropped: the current map has no more loop closures. */
|
|
519
|
+
backendFailed: boolean;
|
|
520
|
+
}
|
|
430
521
|
export declare const AttitudeTel: MessageFns<AttitudeTel>;
|
|
431
522
|
export declare const MagneticDeclinationTel: MessageFns<MagneticDeclinationTel>;
|
|
432
523
|
export declare const AltitudeTel: MessageFns<AltitudeTel>;
|
|
@@ -476,6 +567,8 @@ export declare const ConnectedClientsTel: MessageFns<ConnectedClientsTel>;
|
|
|
476
567
|
export declare const GenericServoTel: MessageFns<GenericServoTel>;
|
|
477
568
|
export declare const MultibeamServoTel: MessageFns<MultibeamServoTel>;
|
|
478
569
|
export declare const GripperTel: MessageFns<GripperTel>;
|
|
570
|
+
export declare const GripperInfoTel: MessageFns<GripperInfoTel>;
|
|
571
|
+
export declare const GripperDiagnosticsTel: MessageFns<GripperDiagnosticsTel>;
|
|
479
572
|
export declare const GuestPortCurrentTel: MessageFns<GuestPortCurrentTel>;
|
|
480
573
|
export declare const CalibratedImuTel: MessageFns<CalibratedImuTel>;
|
|
481
574
|
export declare const Imu1Tel: MessageFns<Imu1Tel>;
|
|
@@ -497,6 +590,11 @@ export declare const MarineSnowFilterTel: MessageFns<MarineSnowFilterTel>;
|
|
|
497
590
|
export declare const CameraPanTiltZoomTel: MessageFns<CameraPanTiltZoomTel>;
|
|
498
591
|
export declare const SotStateTel: MessageFns<SotStateTel>;
|
|
499
592
|
export declare const AnnotationTel: MessageFns<AnnotationTel>;
|
|
593
|
+
export declare const SlamPoseTel: MessageFns<SlamPoseTel>;
|
|
594
|
+
export declare const SlamMapUpdateTel: MessageFns<SlamMapUpdateTel>;
|
|
595
|
+
export declare const SlamScanTel: MessageFns<SlamScanTel>;
|
|
596
|
+
export declare const SlamMapTel: MessageFns<SlamMapTel>;
|
|
597
|
+
export declare const SlamStatusTel: MessageFns<SlamStatusTel>;
|
|
500
598
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
501
599
|
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 {} ? {
|
|
502
600
|
[K in keyof T]?: DeepPartial<T[K]>;
|
package/dist/telemetry.js
CHANGED
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
8
|
import { AquaTrollProbeMetadata, AquaTrollSensorMetadataArray, AquaTrollSensorParametersArray } from "./aquatroll.js";
|
|
9
|
-
import { Altitude, Annotation, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GnssStatus, Gripper, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LaserDetection, LatLongPosition, Lights, LogEntry, MagneticDeclination, MarineSnowFilterFrames, MedusaSpectrometerData, ModelDetections, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, PowerCanister, RecordState, Reference, RemovableStorageDevice, SotState, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemPerformanceInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature, } from "./message_formats.js";
|
|
9
|
+
import { Altitude, Annotation, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GnssStatus, Gripper, GripperDiagnostics, GripperInfo, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LaserDetection, LatLongPosition, Lights, LogEntry, MagneticDeclination, MarineSnowFilterFrames, MedusaSpectrometerData, ModelDetections, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, PowerCanister, RecordState, Reference, RemovableStorageDevice, SotState, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemPerformanceInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature, } from "./message_formats.js";
|
|
10
10
|
import { MissionStatus, ReferenceAutoPilot } from "./mission_planning.js";
|
|
11
|
+
import { SlamAiding, SlamMap, SlamMapFrame, SlamMapUpdate, SlamPoseEstimate, SlamRecordingState, SlamScan, SlamSensorStatus, } from "./slam.js";
|
|
11
12
|
function createBaseAttitudeTel() {
|
|
12
13
|
return { attitude: undefined };
|
|
13
14
|
}
|
|
@@ -2769,6 +2770,116 @@ export const GripperTel = {
|
|
|
2769
2770
|
return message;
|
|
2770
2771
|
},
|
|
2771
2772
|
};
|
|
2773
|
+
function createBaseGripperInfoTel() {
|
|
2774
|
+
return { gripperInfo: undefined };
|
|
2775
|
+
}
|
|
2776
|
+
export const GripperInfoTel = {
|
|
2777
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2778
|
+
if (message.gripperInfo !== undefined) {
|
|
2779
|
+
GripperInfo.encode(message.gripperInfo, writer.uint32(10).fork()).join();
|
|
2780
|
+
}
|
|
2781
|
+
return writer;
|
|
2782
|
+
},
|
|
2783
|
+
decode(input, length) {
|
|
2784
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2785
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2786
|
+
const message = createBaseGripperInfoTel();
|
|
2787
|
+
while (reader.pos < end) {
|
|
2788
|
+
const tag = reader.uint32();
|
|
2789
|
+
switch (tag >>> 3) {
|
|
2790
|
+
case 1: {
|
|
2791
|
+
if (tag !== 10) {
|
|
2792
|
+
break;
|
|
2793
|
+
}
|
|
2794
|
+
message.gripperInfo = GripperInfo.decode(reader, reader.uint32());
|
|
2795
|
+
continue;
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2799
|
+
break;
|
|
2800
|
+
}
|
|
2801
|
+
reader.skip(tag & 7);
|
|
2802
|
+
}
|
|
2803
|
+
return message;
|
|
2804
|
+
},
|
|
2805
|
+
fromJSON(object) {
|
|
2806
|
+
return { gripperInfo: isSet(object.gripperInfo) ? GripperInfo.fromJSON(object.gripperInfo) : undefined };
|
|
2807
|
+
},
|
|
2808
|
+
toJSON(message) {
|
|
2809
|
+
const obj = {};
|
|
2810
|
+
if (message.gripperInfo !== undefined) {
|
|
2811
|
+
obj.gripperInfo = GripperInfo.toJSON(message.gripperInfo);
|
|
2812
|
+
}
|
|
2813
|
+
return obj;
|
|
2814
|
+
},
|
|
2815
|
+
create(base) {
|
|
2816
|
+
return GripperInfoTel.fromPartial(base ?? {});
|
|
2817
|
+
},
|
|
2818
|
+
fromPartial(object) {
|
|
2819
|
+
const message = createBaseGripperInfoTel();
|
|
2820
|
+
message.gripperInfo = (object.gripperInfo !== undefined && object.gripperInfo !== null)
|
|
2821
|
+
? GripperInfo.fromPartial(object.gripperInfo)
|
|
2822
|
+
: undefined;
|
|
2823
|
+
return message;
|
|
2824
|
+
},
|
|
2825
|
+
};
|
|
2826
|
+
function createBaseGripperDiagnosticsTel() {
|
|
2827
|
+
return { gripperDiagnostics: undefined };
|
|
2828
|
+
}
|
|
2829
|
+
export const GripperDiagnosticsTel = {
|
|
2830
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2831
|
+
if (message.gripperDiagnostics !== undefined) {
|
|
2832
|
+
GripperDiagnostics.encode(message.gripperDiagnostics, writer.uint32(10).fork()).join();
|
|
2833
|
+
}
|
|
2834
|
+
return writer;
|
|
2835
|
+
},
|
|
2836
|
+
decode(input, length) {
|
|
2837
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2838
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2839
|
+
const message = createBaseGripperDiagnosticsTel();
|
|
2840
|
+
while (reader.pos < end) {
|
|
2841
|
+
const tag = reader.uint32();
|
|
2842
|
+
switch (tag >>> 3) {
|
|
2843
|
+
case 1: {
|
|
2844
|
+
if (tag !== 10) {
|
|
2845
|
+
break;
|
|
2846
|
+
}
|
|
2847
|
+
message.gripperDiagnostics = GripperDiagnostics.decode(reader, reader.uint32());
|
|
2848
|
+
continue;
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2852
|
+
break;
|
|
2853
|
+
}
|
|
2854
|
+
reader.skip(tag & 7);
|
|
2855
|
+
}
|
|
2856
|
+
return message;
|
|
2857
|
+
},
|
|
2858
|
+
fromJSON(object) {
|
|
2859
|
+
return {
|
|
2860
|
+
gripperDiagnostics: isSet(object.gripperDiagnostics)
|
|
2861
|
+
? GripperDiagnostics.fromJSON(object.gripperDiagnostics)
|
|
2862
|
+
: undefined,
|
|
2863
|
+
};
|
|
2864
|
+
},
|
|
2865
|
+
toJSON(message) {
|
|
2866
|
+
const obj = {};
|
|
2867
|
+
if (message.gripperDiagnostics !== undefined) {
|
|
2868
|
+
obj.gripperDiagnostics = GripperDiagnostics.toJSON(message.gripperDiagnostics);
|
|
2869
|
+
}
|
|
2870
|
+
return obj;
|
|
2871
|
+
},
|
|
2872
|
+
create(base) {
|
|
2873
|
+
return GripperDiagnosticsTel.fromPartial(base ?? {});
|
|
2874
|
+
},
|
|
2875
|
+
fromPartial(object) {
|
|
2876
|
+
const message = createBaseGripperDiagnosticsTel();
|
|
2877
|
+
message.gripperDiagnostics = (object.gripperDiagnostics !== undefined && object.gripperDiagnostics !== null)
|
|
2878
|
+
? GripperDiagnostics.fromPartial(object.gripperDiagnostics)
|
|
2879
|
+
: undefined;
|
|
2880
|
+
return message;
|
|
2881
|
+
},
|
|
2882
|
+
};
|
|
2772
2883
|
function createBaseGuestPortCurrentTel() {
|
|
2773
2884
|
return { current: undefined };
|
|
2774
2885
|
}
|
|
@@ -3947,6 +4058,419 @@ export const AnnotationTel = {
|
|
|
3947
4058
|
return message;
|
|
3948
4059
|
},
|
|
3949
4060
|
};
|
|
4061
|
+
function createBaseSlamPoseTel() {
|
|
4062
|
+
return { estimate: undefined };
|
|
4063
|
+
}
|
|
4064
|
+
export const SlamPoseTel = {
|
|
4065
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4066
|
+
if (message.estimate !== undefined) {
|
|
4067
|
+
SlamPoseEstimate.encode(message.estimate, writer.uint32(10).fork()).join();
|
|
4068
|
+
}
|
|
4069
|
+
return writer;
|
|
4070
|
+
},
|
|
4071
|
+
decode(input, length) {
|
|
4072
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4073
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4074
|
+
const message = createBaseSlamPoseTel();
|
|
4075
|
+
while (reader.pos < end) {
|
|
4076
|
+
const tag = reader.uint32();
|
|
4077
|
+
switch (tag >>> 3) {
|
|
4078
|
+
case 1: {
|
|
4079
|
+
if (tag !== 10) {
|
|
4080
|
+
break;
|
|
4081
|
+
}
|
|
4082
|
+
message.estimate = SlamPoseEstimate.decode(reader, reader.uint32());
|
|
4083
|
+
continue;
|
|
4084
|
+
}
|
|
4085
|
+
}
|
|
4086
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4087
|
+
break;
|
|
4088
|
+
}
|
|
4089
|
+
reader.skip(tag & 7);
|
|
4090
|
+
}
|
|
4091
|
+
return message;
|
|
4092
|
+
},
|
|
4093
|
+
fromJSON(object) {
|
|
4094
|
+
return { estimate: isSet(object.estimate) ? SlamPoseEstimate.fromJSON(object.estimate) : undefined };
|
|
4095
|
+
},
|
|
4096
|
+
toJSON(message) {
|
|
4097
|
+
const obj = {};
|
|
4098
|
+
if (message.estimate !== undefined) {
|
|
4099
|
+
obj.estimate = SlamPoseEstimate.toJSON(message.estimate);
|
|
4100
|
+
}
|
|
4101
|
+
return obj;
|
|
4102
|
+
},
|
|
4103
|
+
create(base) {
|
|
4104
|
+
return SlamPoseTel.fromPartial(base ?? {});
|
|
4105
|
+
},
|
|
4106
|
+
fromPartial(object) {
|
|
4107
|
+
const message = createBaseSlamPoseTel();
|
|
4108
|
+
message.estimate = (object.estimate !== undefined && object.estimate !== null)
|
|
4109
|
+
? SlamPoseEstimate.fromPartial(object.estimate)
|
|
4110
|
+
: undefined;
|
|
4111
|
+
return message;
|
|
4112
|
+
},
|
|
4113
|
+
};
|
|
4114
|
+
function createBaseSlamMapUpdateTel() {
|
|
4115
|
+
return { update: undefined };
|
|
4116
|
+
}
|
|
4117
|
+
export const SlamMapUpdateTel = {
|
|
4118
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4119
|
+
if (message.update !== undefined) {
|
|
4120
|
+
SlamMapUpdate.encode(message.update, writer.uint32(10).fork()).join();
|
|
4121
|
+
}
|
|
4122
|
+
return writer;
|
|
4123
|
+
},
|
|
4124
|
+
decode(input, length) {
|
|
4125
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4126
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4127
|
+
const message = createBaseSlamMapUpdateTel();
|
|
4128
|
+
while (reader.pos < end) {
|
|
4129
|
+
const tag = reader.uint32();
|
|
4130
|
+
switch (tag >>> 3) {
|
|
4131
|
+
case 1: {
|
|
4132
|
+
if (tag !== 10) {
|
|
4133
|
+
break;
|
|
4134
|
+
}
|
|
4135
|
+
message.update = SlamMapUpdate.decode(reader, reader.uint32());
|
|
4136
|
+
continue;
|
|
4137
|
+
}
|
|
4138
|
+
}
|
|
4139
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4140
|
+
break;
|
|
4141
|
+
}
|
|
4142
|
+
reader.skip(tag & 7);
|
|
4143
|
+
}
|
|
4144
|
+
return message;
|
|
4145
|
+
},
|
|
4146
|
+
fromJSON(object) {
|
|
4147
|
+
return { update: isSet(object.update) ? SlamMapUpdate.fromJSON(object.update) : undefined };
|
|
4148
|
+
},
|
|
4149
|
+
toJSON(message) {
|
|
4150
|
+
const obj = {};
|
|
4151
|
+
if (message.update !== undefined) {
|
|
4152
|
+
obj.update = SlamMapUpdate.toJSON(message.update);
|
|
4153
|
+
}
|
|
4154
|
+
return obj;
|
|
4155
|
+
},
|
|
4156
|
+
create(base) {
|
|
4157
|
+
return SlamMapUpdateTel.fromPartial(base ?? {});
|
|
4158
|
+
},
|
|
4159
|
+
fromPartial(object) {
|
|
4160
|
+
const message = createBaseSlamMapUpdateTel();
|
|
4161
|
+
message.update = (object.update !== undefined && object.update !== null)
|
|
4162
|
+
? SlamMapUpdate.fromPartial(object.update)
|
|
4163
|
+
: undefined;
|
|
4164
|
+
return message;
|
|
4165
|
+
},
|
|
4166
|
+
};
|
|
4167
|
+
function createBaseSlamScanTel() {
|
|
4168
|
+
return { scan: undefined };
|
|
4169
|
+
}
|
|
4170
|
+
export const SlamScanTel = {
|
|
4171
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4172
|
+
if (message.scan !== undefined) {
|
|
4173
|
+
SlamScan.encode(message.scan, writer.uint32(10).fork()).join();
|
|
4174
|
+
}
|
|
4175
|
+
return writer;
|
|
4176
|
+
},
|
|
4177
|
+
decode(input, length) {
|
|
4178
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4179
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4180
|
+
const message = createBaseSlamScanTel();
|
|
4181
|
+
while (reader.pos < end) {
|
|
4182
|
+
const tag = reader.uint32();
|
|
4183
|
+
switch (tag >>> 3) {
|
|
4184
|
+
case 1: {
|
|
4185
|
+
if (tag !== 10) {
|
|
4186
|
+
break;
|
|
4187
|
+
}
|
|
4188
|
+
message.scan = SlamScan.decode(reader, reader.uint32());
|
|
4189
|
+
continue;
|
|
4190
|
+
}
|
|
4191
|
+
}
|
|
4192
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4193
|
+
break;
|
|
4194
|
+
}
|
|
4195
|
+
reader.skip(tag & 7);
|
|
4196
|
+
}
|
|
4197
|
+
return message;
|
|
4198
|
+
},
|
|
4199
|
+
fromJSON(object) {
|
|
4200
|
+
return { scan: isSet(object.scan) ? SlamScan.fromJSON(object.scan) : undefined };
|
|
4201
|
+
},
|
|
4202
|
+
toJSON(message) {
|
|
4203
|
+
const obj = {};
|
|
4204
|
+
if (message.scan !== undefined) {
|
|
4205
|
+
obj.scan = SlamScan.toJSON(message.scan);
|
|
4206
|
+
}
|
|
4207
|
+
return obj;
|
|
4208
|
+
},
|
|
4209
|
+
create(base) {
|
|
4210
|
+
return SlamScanTel.fromPartial(base ?? {});
|
|
4211
|
+
},
|
|
4212
|
+
fromPartial(object) {
|
|
4213
|
+
const message = createBaseSlamScanTel();
|
|
4214
|
+
message.scan = (object.scan !== undefined && object.scan !== null) ? SlamScan.fromPartial(object.scan) : undefined;
|
|
4215
|
+
return message;
|
|
4216
|
+
},
|
|
4217
|
+
};
|
|
4218
|
+
function createBaseSlamMapTel() {
|
|
4219
|
+
return { map: undefined };
|
|
4220
|
+
}
|
|
4221
|
+
export const SlamMapTel = {
|
|
4222
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4223
|
+
if (message.map !== undefined) {
|
|
4224
|
+
SlamMap.encode(message.map, writer.uint32(10).fork()).join();
|
|
4225
|
+
}
|
|
4226
|
+
return writer;
|
|
4227
|
+
},
|
|
4228
|
+
decode(input, length) {
|
|
4229
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4230
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4231
|
+
const message = createBaseSlamMapTel();
|
|
4232
|
+
while (reader.pos < end) {
|
|
4233
|
+
const tag = reader.uint32();
|
|
4234
|
+
switch (tag >>> 3) {
|
|
4235
|
+
case 1: {
|
|
4236
|
+
if (tag !== 10) {
|
|
4237
|
+
break;
|
|
4238
|
+
}
|
|
4239
|
+
message.map = SlamMap.decode(reader, reader.uint32());
|
|
4240
|
+
continue;
|
|
4241
|
+
}
|
|
4242
|
+
}
|
|
4243
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4244
|
+
break;
|
|
4245
|
+
}
|
|
4246
|
+
reader.skip(tag & 7);
|
|
4247
|
+
}
|
|
4248
|
+
return message;
|
|
4249
|
+
},
|
|
4250
|
+
fromJSON(object) {
|
|
4251
|
+
return { map: isSet(object.map) ? SlamMap.fromJSON(object.map) : undefined };
|
|
4252
|
+
},
|
|
4253
|
+
toJSON(message) {
|
|
4254
|
+
const obj = {};
|
|
4255
|
+
if (message.map !== undefined) {
|
|
4256
|
+
obj.map = SlamMap.toJSON(message.map);
|
|
4257
|
+
}
|
|
4258
|
+
return obj;
|
|
4259
|
+
},
|
|
4260
|
+
create(base) {
|
|
4261
|
+
return SlamMapTel.fromPartial(base ?? {});
|
|
4262
|
+
},
|
|
4263
|
+
fromPartial(object) {
|
|
4264
|
+
const message = createBaseSlamMapTel();
|
|
4265
|
+
message.map = (object.map !== undefined && object.map !== null) ? SlamMap.fromPartial(object.map) : undefined;
|
|
4266
|
+
return message;
|
|
4267
|
+
},
|
|
4268
|
+
};
|
|
4269
|
+
function createBaseSlamStatusTel() {
|
|
4270
|
+
return {
|
|
4271
|
+
active: false,
|
|
4272
|
+
mapId: 0,
|
|
4273
|
+
recording: undefined,
|
|
4274
|
+
sensors: [],
|
|
4275
|
+
mapFull: false,
|
|
4276
|
+
loopClosure: false,
|
|
4277
|
+
frame: undefined,
|
|
4278
|
+
sequence: 0,
|
|
4279
|
+
aiding: undefined,
|
|
4280
|
+
backendFailed: false,
|
|
4281
|
+
};
|
|
4282
|
+
}
|
|
4283
|
+
export const SlamStatusTel = {
|
|
4284
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4285
|
+
if (message.active !== false) {
|
|
4286
|
+
writer.uint32(8).bool(message.active);
|
|
4287
|
+
}
|
|
4288
|
+
if (message.mapId !== 0) {
|
|
4289
|
+
writer.uint32(16).uint32(message.mapId);
|
|
4290
|
+
}
|
|
4291
|
+
if (message.recording !== undefined) {
|
|
4292
|
+
SlamRecordingState.encode(message.recording, writer.uint32(26).fork()).join();
|
|
4293
|
+
}
|
|
4294
|
+
for (const v of message.sensors) {
|
|
4295
|
+
SlamSensorStatus.encode(v, writer.uint32(34).fork()).join();
|
|
4296
|
+
}
|
|
4297
|
+
if (message.mapFull !== false) {
|
|
4298
|
+
writer.uint32(40).bool(message.mapFull);
|
|
4299
|
+
}
|
|
4300
|
+
if (message.loopClosure !== false) {
|
|
4301
|
+
writer.uint32(48).bool(message.loopClosure);
|
|
4302
|
+
}
|
|
4303
|
+
if (message.frame !== undefined) {
|
|
4304
|
+
SlamMapFrame.encode(message.frame, writer.uint32(58).fork()).join();
|
|
4305
|
+
}
|
|
4306
|
+
if (message.sequence !== 0) {
|
|
4307
|
+
writer.uint32(64).uint64(message.sequence);
|
|
4308
|
+
}
|
|
4309
|
+
if (message.aiding !== undefined) {
|
|
4310
|
+
SlamAiding.encode(message.aiding, writer.uint32(74).fork()).join();
|
|
4311
|
+
}
|
|
4312
|
+
if (message.backendFailed !== false) {
|
|
4313
|
+
writer.uint32(80).bool(message.backendFailed);
|
|
4314
|
+
}
|
|
4315
|
+
return writer;
|
|
4316
|
+
},
|
|
4317
|
+
decode(input, length) {
|
|
4318
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4319
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4320
|
+
const message = createBaseSlamStatusTel();
|
|
4321
|
+
while (reader.pos < end) {
|
|
4322
|
+
const tag = reader.uint32();
|
|
4323
|
+
switch (tag >>> 3) {
|
|
4324
|
+
case 1: {
|
|
4325
|
+
if (tag !== 8) {
|
|
4326
|
+
break;
|
|
4327
|
+
}
|
|
4328
|
+
message.active = reader.bool();
|
|
4329
|
+
continue;
|
|
4330
|
+
}
|
|
4331
|
+
case 2: {
|
|
4332
|
+
if (tag !== 16) {
|
|
4333
|
+
break;
|
|
4334
|
+
}
|
|
4335
|
+
message.mapId = reader.uint32();
|
|
4336
|
+
continue;
|
|
4337
|
+
}
|
|
4338
|
+
case 3: {
|
|
4339
|
+
if (tag !== 26) {
|
|
4340
|
+
break;
|
|
4341
|
+
}
|
|
4342
|
+
message.recording = SlamRecordingState.decode(reader, reader.uint32());
|
|
4343
|
+
continue;
|
|
4344
|
+
}
|
|
4345
|
+
case 4: {
|
|
4346
|
+
if (tag !== 34) {
|
|
4347
|
+
break;
|
|
4348
|
+
}
|
|
4349
|
+
message.sensors.push(SlamSensorStatus.decode(reader, reader.uint32()));
|
|
4350
|
+
continue;
|
|
4351
|
+
}
|
|
4352
|
+
case 5: {
|
|
4353
|
+
if (tag !== 40) {
|
|
4354
|
+
break;
|
|
4355
|
+
}
|
|
4356
|
+
message.mapFull = reader.bool();
|
|
4357
|
+
continue;
|
|
4358
|
+
}
|
|
4359
|
+
case 6: {
|
|
4360
|
+
if (tag !== 48) {
|
|
4361
|
+
break;
|
|
4362
|
+
}
|
|
4363
|
+
message.loopClosure = reader.bool();
|
|
4364
|
+
continue;
|
|
4365
|
+
}
|
|
4366
|
+
case 7: {
|
|
4367
|
+
if (tag !== 58) {
|
|
4368
|
+
break;
|
|
4369
|
+
}
|
|
4370
|
+
message.frame = SlamMapFrame.decode(reader, reader.uint32());
|
|
4371
|
+
continue;
|
|
4372
|
+
}
|
|
4373
|
+
case 8: {
|
|
4374
|
+
if (tag !== 64) {
|
|
4375
|
+
break;
|
|
4376
|
+
}
|
|
4377
|
+
message.sequence = longToNumber(reader.uint64());
|
|
4378
|
+
continue;
|
|
4379
|
+
}
|
|
4380
|
+
case 9: {
|
|
4381
|
+
if (tag !== 74) {
|
|
4382
|
+
break;
|
|
4383
|
+
}
|
|
4384
|
+
message.aiding = SlamAiding.decode(reader, reader.uint32());
|
|
4385
|
+
continue;
|
|
4386
|
+
}
|
|
4387
|
+
case 10: {
|
|
4388
|
+
if (tag !== 80) {
|
|
4389
|
+
break;
|
|
4390
|
+
}
|
|
4391
|
+
message.backendFailed = reader.bool();
|
|
4392
|
+
continue;
|
|
4393
|
+
}
|
|
4394
|
+
}
|
|
4395
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4396
|
+
break;
|
|
4397
|
+
}
|
|
4398
|
+
reader.skip(tag & 7);
|
|
4399
|
+
}
|
|
4400
|
+
return message;
|
|
4401
|
+
},
|
|
4402
|
+
fromJSON(object) {
|
|
4403
|
+
return {
|
|
4404
|
+
active: isSet(object.active) ? gt.Boolean(object.active) : false,
|
|
4405
|
+
mapId: isSet(object.mapId) ? gt.Number(object.mapId) : 0,
|
|
4406
|
+
recording: isSet(object.recording) ? SlamRecordingState.fromJSON(object.recording) : undefined,
|
|
4407
|
+
sensors: gt.Array.isArray(object?.sensors) ? object.sensors.map((e) => SlamSensorStatus.fromJSON(e)) : [],
|
|
4408
|
+
mapFull: isSet(object.mapFull) ? gt.Boolean(object.mapFull) : false,
|
|
4409
|
+
loopClosure: isSet(object.loopClosure) ? gt.Boolean(object.loopClosure) : false,
|
|
4410
|
+
frame: isSet(object.frame) ? SlamMapFrame.fromJSON(object.frame) : undefined,
|
|
4411
|
+
sequence: isSet(object.sequence) ? gt.Number(object.sequence) : 0,
|
|
4412
|
+
aiding: isSet(object.aiding) ? SlamAiding.fromJSON(object.aiding) : undefined,
|
|
4413
|
+
backendFailed: isSet(object.backendFailed) ? gt.Boolean(object.backendFailed) : false,
|
|
4414
|
+
};
|
|
4415
|
+
},
|
|
4416
|
+
toJSON(message) {
|
|
4417
|
+
const obj = {};
|
|
4418
|
+
if (message.active !== false) {
|
|
4419
|
+
obj.active = message.active;
|
|
4420
|
+
}
|
|
4421
|
+
if (message.mapId !== 0) {
|
|
4422
|
+
obj.mapId = Math.round(message.mapId);
|
|
4423
|
+
}
|
|
4424
|
+
if (message.recording !== undefined) {
|
|
4425
|
+
obj.recording = SlamRecordingState.toJSON(message.recording);
|
|
4426
|
+
}
|
|
4427
|
+
if (message.sensors?.length) {
|
|
4428
|
+
obj.sensors = message.sensors.map((e) => SlamSensorStatus.toJSON(e));
|
|
4429
|
+
}
|
|
4430
|
+
if (message.mapFull !== false) {
|
|
4431
|
+
obj.mapFull = message.mapFull;
|
|
4432
|
+
}
|
|
4433
|
+
if (message.loopClosure !== false) {
|
|
4434
|
+
obj.loopClosure = message.loopClosure;
|
|
4435
|
+
}
|
|
4436
|
+
if (message.frame !== undefined) {
|
|
4437
|
+
obj.frame = SlamMapFrame.toJSON(message.frame);
|
|
4438
|
+
}
|
|
4439
|
+
if (message.sequence !== 0) {
|
|
4440
|
+
obj.sequence = Math.round(message.sequence);
|
|
4441
|
+
}
|
|
4442
|
+
if (message.aiding !== undefined) {
|
|
4443
|
+
obj.aiding = SlamAiding.toJSON(message.aiding);
|
|
4444
|
+
}
|
|
4445
|
+
if (message.backendFailed !== false) {
|
|
4446
|
+
obj.backendFailed = message.backendFailed;
|
|
4447
|
+
}
|
|
4448
|
+
return obj;
|
|
4449
|
+
},
|
|
4450
|
+
create(base) {
|
|
4451
|
+
return SlamStatusTel.fromPartial(base ?? {});
|
|
4452
|
+
},
|
|
4453
|
+
fromPartial(object) {
|
|
4454
|
+
const message = createBaseSlamStatusTel();
|
|
4455
|
+
message.active = object.active ?? false;
|
|
4456
|
+
message.mapId = object.mapId ?? 0;
|
|
4457
|
+
message.recording = (object.recording !== undefined && object.recording !== null)
|
|
4458
|
+
? SlamRecordingState.fromPartial(object.recording)
|
|
4459
|
+
: undefined;
|
|
4460
|
+
message.sensors = object.sensors?.map((e) => SlamSensorStatus.fromPartial(e)) || [];
|
|
4461
|
+
message.mapFull = object.mapFull ?? false;
|
|
4462
|
+
message.loopClosure = object.loopClosure ?? false;
|
|
4463
|
+
message.frame = (object.frame !== undefined && object.frame !== null)
|
|
4464
|
+
? SlamMapFrame.fromPartial(object.frame)
|
|
4465
|
+
: undefined;
|
|
4466
|
+
message.sequence = object.sequence ?? 0;
|
|
4467
|
+
message.aiding = (object.aiding !== undefined && object.aiding !== null)
|
|
4468
|
+
? SlamAiding.fromPartial(object.aiding)
|
|
4469
|
+
: undefined;
|
|
4470
|
+
message.backendFailed = object.backendFailed ?? false;
|
|
4471
|
+
return message;
|
|
4472
|
+
},
|
|
4473
|
+
};
|
|
3950
4474
|
const gt = (() => {
|
|
3951
4475
|
if (typeof globalThis !== "undefined") {
|
|
3952
4476
|
return globalThis;
|
|
@@ -3962,6 +4486,16 @@ const gt = (() => {
|
|
|
3962
4486
|
}
|
|
3963
4487
|
throw "Unable to locate global object";
|
|
3964
4488
|
})();
|
|
4489
|
+
function longToNumber(int64) {
|
|
4490
|
+
const num = gt.Number(int64.toString());
|
|
4491
|
+
if (num > gt.Number.MAX_SAFE_INTEGER) {
|
|
4492
|
+
throw new gt.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
4493
|
+
}
|
|
4494
|
+
if (num < gt.Number.MIN_SAFE_INTEGER) {
|
|
4495
|
+
throw new gt.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
4496
|
+
}
|
|
4497
|
+
return num;
|
|
4498
|
+
}
|
|
3965
4499
|
function isSet(value) {
|
|
3966
4500
|
return value !== null && value !== undefined;
|
|
3967
4501
|
}
|