@blueyerobotics/protocol-definitions 3.4.0-eddb8a5e → 3.4.0-efe27311
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/control.d.ts +28 -0
- package/dist/control.js +159 -0
- package/dist/index.blueye.protocol.d.ts +1 -1
- package/dist/index.blueye.protocol.js +1 -1
- package/dist/message_formats.d.ts +16 -0
- package/dist/message_formats.js +46 -0
- package/dist/mission_planning.d.ts +526 -5
- package/dist/mission_planning.js +3098 -143
- package/dist/req_rep.d.ts +61 -4
- package/dist/req_rep.js +383 -20
- package/dist/telemetry.d.ts +18 -1
- package/dist/telemetry.js +107 -1
- package/package.json +1 -1
package/dist/telemetry.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
8
|
import { AquaTrollProbeMetadata, AquaTrollSensorMetadataArray, AquaTrollSensorParametersArray } from "./aquatroll.js";
|
|
9
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
|
-
import { MissionStatus, ReferenceAutoPilot } from "./mission_planning.js";
|
|
10
|
+
import { InstructionResult, MissionRuleStatus, MissionStatus, ReferenceAutoPilot } from "./mission_planning.js";
|
|
11
11
|
import { SlamAiding, SlamMap, SlamMapFrame, SlamMapUpdate, SlamPoseEstimate, SlamRecordingState, SlamScan, SlamSensorStatus, } from "./slam.js";
|
|
12
12
|
function createBaseAttitudeTel() {
|
|
13
13
|
return { attitude: undefined };
|
|
@@ -602,6 +602,112 @@ export const NotificationTel = {
|
|
|
602
602
|
return message;
|
|
603
603
|
},
|
|
604
604
|
};
|
|
605
|
+
function createBaseInstructionResultTel() {
|
|
606
|
+
return { result: undefined };
|
|
607
|
+
}
|
|
608
|
+
export const InstructionResultTel = {
|
|
609
|
+
encode(message, writer = new BinaryWriter()) {
|
|
610
|
+
if (message.result !== undefined) {
|
|
611
|
+
InstructionResult.encode(message.result, writer.uint32(10).fork()).join();
|
|
612
|
+
}
|
|
613
|
+
return writer;
|
|
614
|
+
},
|
|
615
|
+
decode(input, length) {
|
|
616
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
617
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
618
|
+
const message = createBaseInstructionResultTel();
|
|
619
|
+
while (reader.pos < end) {
|
|
620
|
+
const tag = reader.uint32();
|
|
621
|
+
switch (tag >>> 3) {
|
|
622
|
+
case 1: {
|
|
623
|
+
if (tag !== 10) {
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
626
|
+
message.result = InstructionResult.decode(reader, reader.uint32());
|
|
627
|
+
continue;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
631
|
+
break;
|
|
632
|
+
}
|
|
633
|
+
reader.skip(tag & 7);
|
|
634
|
+
}
|
|
635
|
+
return message;
|
|
636
|
+
},
|
|
637
|
+
fromJSON(object) {
|
|
638
|
+
return { result: isSet(object.result) ? InstructionResult.fromJSON(object.result) : undefined };
|
|
639
|
+
},
|
|
640
|
+
toJSON(message) {
|
|
641
|
+
const obj = {};
|
|
642
|
+
if (message.result !== undefined) {
|
|
643
|
+
obj.result = InstructionResult.toJSON(message.result);
|
|
644
|
+
}
|
|
645
|
+
return obj;
|
|
646
|
+
},
|
|
647
|
+
create(base) {
|
|
648
|
+
return InstructionResultTel.fromPartial(base ?? {});
|
|
649
|
+
},
|
|
650
|
+
fromPartial(object) {
|
|
651
|
+
const message = createBaseInstructionResultTel();
|
|
652
|
+
message.result = (object.result !== undefined && object.result !== null)
|
|
653
|
+
? InstructionResult.fromPartial(object.result)
|
|
654
|
+
: undefined;
|
|
655
|
+
return message;
|
|
656
|
+
},
|
|
657
|
+
};
|
|
658
|
+
function createBaseMissionRulesTel() {
|
|
659
|
+
return { rules: [] };
|
|
660
|
+
}
|
|
661
|
+
export const MissionRulesTel = {
|
|
662
|
+
encode(message, writer = new BinaryWriter()) {
|
|
663
|
+
for (const v of message.rules) {
|
|
664
|
+
MissionRuleStatus.encode(v, writer.uint32(10).fork()).join();
|
|
665
|
+
}
|
|
666
|
+
return writer;
|
|
667
|
+
},
|
|
668
|
+
decode(input, length) {
|
|
669
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
670
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
671
|
+
const message = createBaseMissionRulesTel();
|
|
672
|
+
while (reader.pos < end) {
|
|
673
|
+
const tag = reader.uint32();
|
|
674
|
+
switch (tag >>> 3) {
|
|
675
|
+
case 1: {
|
|
676
|
+
if (tag !== 10) {
|
|
677
|
+
break;
|
|
678
|
+
}
|
|
679
|
+
message.rules.push(MissionRuleStatus.decode(reader, reader.uint32()));
|
|
680
|
+
continue;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
686
|
+
reader.skip(tag & 7);
|
|
687
|
+
}
|
|
688
|
+
return message;
|
|
689
|
+
},
|
|
690
|
+
fromJSON(object) {
|
|
691
|
+
return {
|
|
692
|
+
rules: gt.Array.isArray(object?.rules) ? object.rules.map((e) => MissionRuleStatus.fromJSON(e)) : [],
|
|
693
|
+
};
|
|
694
|
+
},
|
|
695
|
+
toJSON(message) {
|
|
696
|
+
const obj = {};
|
|
697
|
+
if (message.rules?.length) {
|
|
698
|
+
obj.rules = message.rules.map((e) => MissionRuleStatus.toJSON(e));
|
|
699
|
+
}
|
|
700
|
+
return obj;
|
|
701
|
+
},
|
|
702
|
+
create(base) {
|
|
703
|
+
return MissionRulesTel.fromPartial(base ?? {});
|
|
704
|
+
},
|
|
705
|
+
fromPartial(object) {
|
|
706
|
+
const message = createBaseMissionRulesTel();
|
|
707
|
+
message.rules = object.rules?.map((e) => MissionRuleStatus.fromPartial(e)) || [];
|
|
708
|
+
return message;
|
|
709
|
+
},
|
|
710
|
+
};
|
|
605
711
|
function createBaseControlForceTel() {
|
|
606
712
|
return { controlForce: undefined };
|
|
607
713
|
}
|