@blueyerobotics/protocol-definitions 3.4.0-618bf0b0 → 3.4.0-8187f91a

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.
@@ -1091,6 +1091,110 @@ export interface Gripper {
1091
1091
  /** Named pose the arm is moving towards, if any. */
1092
1092
  movingTo: ManipulatorPose;
1093
1093
  }
1094
+ /**
1095
+ * Hardware status flags a device of a Reach Robotics gripper raises about itself, named as Reach names them.
1096
+ * A gripper of another make would need flags of its own.
1097
+ */
1098
+ export interface ReachHardwareStatus {
1099
+ /** Reading the device's flash memory failed. */
1100
+ flashFailedRead: boolean;
1101
+ /** Humidity in the housing is too high: water may have got in. */
1102
+ overHumidity: boolean;
1103
+ /** The housing is too hot. */
1104
+ overTemperature: boolean;
1105
+ /** Error on the serial line. */
1106
+ commsSerialError: boolean;
1107
+ /** A packet failed its checksum. */
1108
+ commsCrcError: boolean;
1109
+ /** The motor driver reports a fault. */
1110
+ motorDriverFault: boolean;
1111
+ /** The position encoder reads an invalid position. */
1112
+ encoderPositionError: boolean;
1113
+ /** The position encoder is not detected. */
1114
+ encoderNotDetected: boolean;
1115
+ /** Another device has the same axis. */
1116
+ deviceAxisConflict: boolean;
1117
+ /** The motor is not connected. */
1118
+ motorNotConnected: boolean;
1119
+ /** The motor draws too much current. */
1120
+ motorOverCurrent: boolean;
1121
+ /** The input encoder reads an invalid position. */
1122
+ inputEncoderPositionError: boolean;
1123
+ /** Another device has the same ID. */
1124
+ deviceIdConflict: boolean;
1125
+ /** Pressure in the housing is too high: the seal may have failed. */
1126
+ overPressure: boolean;
1127
+ /** Over current or under voltage in the motor driver. */
1128
+ motorDriverOverCurrentAndUnderVoltage: boolean;
1129
+ /** The motor driver is too hot. */
1130
+ motorDriverOverTemperature: boolean;
1131
+ /** The device is due for service. */
1132
+ jointServiceDue: boolean;
1133
+ /** The position encoder reports a fault. */
1134
+ encoderFault: boolean;
1135
+ /** The supply voltage is too low. */
1136
+ lowSupplyVoltage: boolean;
1137
+ /** A position report the device waits for has not arrived. */
1138
+ positionReportNotReceived: boolean;
1139
+ }
1140
+ /**
1141
+ * Health of one device of a gripper: a joint, or a device of its own.
1142
+ *
1143
+ * A value the device did not report is 0, with its is_*_valid false.
1144
+ */
1145
+ export interface GripperDeviceDiagnostics {
1146
+ /** Address of the device on the gripper's bus. On a Reach Robotics arm, 1 is the jaws. */
1147
+ address: number;
1148
+ /** Supply voltage (V). */
1149
+ supplyVoltage: number;
1150
+ /** True when the device reported its supply voltage. */
1151
+ isSupplyVoltageValid: boolean;
1152
+ /** Temperature in the housing (°C). */
1153
+ temperature: number;
1154
+ /** True when the device reported the temperature in its housing. */
1155
+ isTemperatureValid: boolean;
1156
+ /** Relative humidity in the housing (%). */
1157
+ humidity: number;
1158
+ /** True when the device reported the humidity in its housing. */
1159
+ isHumidityValid: boolean;
1160
+ /** Absolute pressure in the housing (bar), a partial vacuum: a rise can mean a leak. */
1161
+ internalPressure: number;
1162
+ /** True when the device reported the pressure in its housing. */
1163
+ isInternalPressureValid: boolean;
1164
+ /** Motor current (A). */
1165
+ current: number;
1166
+ /** True when the device reported its motor current. */
1167
+ isCurrentValid: boolean;
1168
+ /**
1169
+ * Flags the device reported, and those it raised since the last report.
1170
+ * Not set if the device sent no hardware status.
1171
+ */
1172
+ hardwareStatus: ReachHardwareStatus | undefined;
1173
+ }
1174
+ /**
1175
+ * Identity of a gripper: what it is, and what it reports of itself.
1176
+ *
1177
+ * A value the gripper does not report is empty.
1178
+ */
1179
+ export interface GripperInfo {
1180
+ /** Guest port the gripper is on. */
1181
+ guestPortNumber: GuestPortNumber;
1182
+ /** What the gripper is, as its guest-port connector names it. */
1183
+ deviceId: GuestPortDeviceID;
1184
+ /** Serial number of the gripper, such as 5854. */
1185
+ serialNumber: string;
1186
+ /** Model number of the gripper, such as 5001 for a Reach Alpha 5 or 2130 for a Reach Alpha 2. */
1187
+ modelNumber: string;
1188
+ /** Firmware version of the gripper, such as 5.2.0. */
1189
+ firmwareVersion: string;
1190
+ }
1191
+ /** Health of a gripper and its devices, for diagnostics. */
1192
+ export interface GripperDiagnostics {
1193
+ /** One for each device of the gripper that answered. */
1194
+ devices: GripperDeviceDiagnostics[];
1195
+ /** Guest port the gripper is on. */
1196
+ guestPortNumber: GuestPortNumber;
1197
+ }
1094
1198
  /** Information about a remote client. */
1095
1199
  export interface ClientInfo {
1096
1200
  /** The type of client (such as Blueye App, Observer App, SDK, etc). */
@@ -3066,6 +3170,10 @@ export declare const CartesianManipulatorInput: MessageFns<CartesianManipulatorI
3066
3170
  export declare const CylindricalManipulatorInput: MessageFns<CylindricalManipulatorInput>;
3067
3171
  export declare const KnownPoseManipulatorInput: MessageFns<KnownPoseManipulatorInput>;
3068
3172
  export declare const Gripper: MessageFns<Gripper>;
3173
+ export declare const ReachHardwareStatus: MessageFns<ReachHardwareStatus>;
3174
+ export declare const GripperDeviceDiagnostics: MessageFns<GripperDeviceDiagnostics>;
3175
+ export declare const GripperInfo: MessageFns<GripperInfo>;
3176
+ export declare const GripperDiagnostics: MessageFns<GripperDiagnostics>;
3069
3177
  export declare const ClientInfo: MessageFns<ClientInfo>;
3070
3178
  export declare const ConnectedClient: MessageFns<ConnectedClient>;
3071
3179
  export declare const RecordState: MessageFns<RecordState>;
@@ -5487,6 +5487,791 @@ export const Gripper = {
5487
5487
  return message;
5488
5488
  },
5489
5489
  };
5490
+ function createBaseReachHardwareStatus() {
5491
+ return {
5492
+ flashFailedRead: false,
5493
+ overHumidity: false,
5494
+ overTemperature: false,
5495
+ commsSerialError: false,
5496
+ commsCrcError: false,
5497
+ motorDriverFault: false,
5498
+ encoderPositionError: false,
5499
+ encoderNotDetected: false,
5500
+ deviceAxisConflict: false,
5501
+ motorNotConnected: false,
5502
+ motorOverCurrent: false,
5503
+ inputEncoderPositionError: false,
5504
+ deviceIdConflict: false,
5505
+ overPressure: false,
5506
+ motorDriverOverCurrentAndUnderVoltage: false,
5507
+ motorDriverOverTemperature: false,
5508
+ jointServiceDue: false,
5509
+ encoderFault: false,
5510
+ lowSupplyVoltage: false,
5511
+ positionReportNotReceived: false,
5512
+ };
5513
+ }
5514
+ export const ReachHardwareStatus = {
5515
+ encode(message, writer = new BinaryWriter()) {
5516
+ if (message.flashFailedRead !== false) {
5517
+ writer.uint32(8).bool(message.flashFailedRead);
5518
+ }
5519
+ if (message.overHumidity !== false) {
5520
+ writer.uint32(16).bool(message.overHumidity);
5521
+ }
5522
+ if (message.overTemperature !== false) {
5523
+ writer.uint32(24).bool(message.overTemperature);
5524
+ }
5525
+ if (message.commsSerialError !== false) {
5526
+ writer.uint32(32).bool(message.commsSerialError);
5527
+ }
5528
+ if (message.commsCrcError !== false) {
5529
+ writer.uint32(40).bool(message.commsCrcError);
5530
+ }
5531
+ if (message.motorDriverFault !== false) {
5532
+ writer.uint32(48).bool(message.motorDriverFault);
5533
+ }
5534
+ if (message.encoderPositionError !== false) {
5535
+ writer.uint32(56).bool(message.encoderPositionError);
5536
+ }
5537
+ if (message.encoderNotDetected !== false) {
5538
+ writer.uint32(64).bool(message.encoderNotDetected);
5539
+ }
5540
+ if (message.deviceAxisConflict !== false) {
5541
+ writer.uint32(72).bool(message.deviceAxisConflict);
5542
+ }
5543
+ if (message.motorNotConnected !== false) {
5544
+ writer.uint32(80).bool(message.motorNotConnected);
5545
+ }
5546
+ if (message.motorOverCurrent !== false) {
5547
+ writer.uint32(88).bool(message.motorOverCurrent);
5548
+ }
5549
+ if (message.inputEncoderPositionError !== false) {
5550
+ writer.uint32(96).bool(message.inputEncoderPositionError);
5551
+ }
5552
+ if (message.deviceIdConflict !== false) {
5553
+ writer.uint32(104).bool(message.deviceIdConflict);
5554
+ }
5555
+ if (message.overPressure !== false) {
5556
+ writer.uint32(112).bool(message.overPressure);
5557
+ }
5558
+ if (message.motorDriverOverCurrentAndUnderVoltage !== false) {
5559
+ writer.uint32(120).bool(message.motorDriverOverCurrentAndUnderVoltage);
5560
+ }
5561
+ if (message.motorDriverOverTemperature !== false) {
5562
+ writer.uint32(128).bool(message.motorDriverOverTemperature);
5563
+ }
5564
+ if (message.jointServiceDue !== false) {
5565
+ writer.uint32(136).bool(message.jointServiceDue);
5566
+ }
5567
+ if (message.encoderFault !== false) {
5568
+ writer.uint32(144).bool(message.encoderFault);
5569
+ }
5570
+ if (message.lowSupplyVoltage !== false) {
5571
+ writer.uint32(152).bool(message.lowSupplyVoltage);
5572
+ }
5573
+ if (message.positionReportNotReceived !== false) {
5574
+ writer.uint32(160).bool(message.positionReportNotReceived);
5575
+ }
5576
+ return writer;
5577
+ },
5578
+ decode(input, length) {
5579
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5580
+ const end = length === undefined ? reader.len : reader.pos + length;
5581
+ const message = createBaseReachHardwareStatus();
5582
+ while (reader.pos < end) {
5583
+ const tag = reader.uint32();
5584
+ switch (tag >>> 3) {
5585
+ case 1: {
5586
+ if (tag !== 8) {
5587
+ break;
5588
+ }
5589
+ message.flashFailedRead = reader.bool();
5590
+ continue;
5591
+ }
5592
+ case 2: {
5593
+ if (tag !== 16) {
5594
+ break;
5595
+ }
5596
+ message.overHumidity = reader.bool();
5597
+ continue;
5598
+ }
5599
+ case 3: {
5600
+ if (tag !== 24) {
5601
+ break;
5602
+ }
5603
+ message.overTemperature = reader.bool();
5604
+ continue;
5605
+ }
5606
+ case 4: {
5607
+ if (tag !== 32) {
5608
+ break;
5609
+ }
5610
+ message.commsSerialError = reader.bool();
5611
+ continue;
5612
+ }
5613
+ case 5: {
5614
+ if (tag !== 40) {
5615
+ break;
5616
+ }
5617
+ message.commsCrcError = reader.bool();
5618
+ continue;
5619
+ }
5620
+ case 6: {
5621
+ if (tag !== 48) {
5622
+ break;
5623
+ }
5624
+ message.motorDriverFault = reader.bool();
5625
+ continue;
5626
+ }
5627
+ case 7: {
5628
+ if (tag !== 56) {
5629
+ break;
5630
+ }
5631
+ message.encoderPositionError = reader.bool();
5632
+ continue;
5633
+ }
5634
+ case 8: {
5635
+ if (tag !== 64) {
5636
+ break;
5637
+ }
5638
+ message.encoderNotDetected = reader.bool();
5639
+ continue;
5640
+ }
5641
+ case 9: {
5642
+ if (tag !== 72) {
5643
+ break;
5644
+ }
5645
+ message.deviceAxisConflict = reader.bool();
5646
+ continue;
5647
+ }
5648
+ case 10: {
5649
+ if (tag !== 80) {
5650
+ break;
5651
+ }
5652
+ message.motorNotConnected = reader.bool();
5653
+ continue;
5654
+ }
5655
+ case 11: {
5656
+ if (tag !== 88) {
5657
+ break;
5658
+ }
5659
+ message.motorOverCurrent = reader.bool();
5660
+ continue;
5661
+ }
5662
+ case 12: {
5663
+ if (tag !== 96) {
5664
+ break;
5665
+ }
5666
+ message.inputEncoderPositionError = reader.bool();
5667
+ continue;
5668
+ }
5669
+ case 13: {
5670
+ if (tag !== 104) {
5671
+ break;
5672
+ }
5673
+ message.deviceIdConflict = reader.bool();
5674
+ continue;
5675
+ }
5676
+ case 14: {
5677
+ if (tag !== 112) {
5678
+ break;
5679
+ }
5680
+ message.overPressure = reader.bool();
5681
+ continue;
5682
+ }
5683
+ case 15: {
5684
+ if (tag !== 120) {
5685
+ break;
5686
+ }
5687
+ message.motorDriverOverCurrentAndUnderVoltage = reader.bool();
5688
+ continue;
5689
+ }
5690
+ case 16: {
5691
+ if (tag !== 128) {
5692
+ break;
5693
+ }
5694
+ message.motorDriverOverTemperature = reader.bool();
5695
+ continue;
5696
+ }
5697
+ case 17: {
5698
+ if (tag !== 136) {
5699
+ break;
5700
+ }
5701
+ message.jointServiceDue = reader.bool();
5702
+ continue;
5703
+ }
5704
+ case 18: {
5705
+ if (tag !== 144) {
5706
+ break;
5707
+ }
5708
+ message.encoderFault = reader.bool();
5709
+ continue;
5710
+ }
5711
+ case 19: {
5712
+ if (tag !== 152) {
5713
+ break;
5714
+ }
5715
+ message.lowSupplyVoltage = reader.bool();
5716
+ continue;
5717
+ }
5718
+ case 20: {
5719
+ if (tag !== 160) {
5720
+ break;
5721
+ }
5722
+ message.positionReportNotReceived = reader.bool();
5723
+ continue;
5724
+ }
5725
+ }
5726
+ if ((tag & 7) === 4 || tag === 0) {
5727
+ break;
5728
+ }
5729
+ reader.skip(tag & 7);
5730
+ }
5731
+ return message;
5732
+ },
5733
+ fromJSON(object) {
5734
+ return {
5735
+ flashFailedRead: isSet(object.flashFailedRead) ? gt.Boolean(object.flashFailedRead) : false,
5736
+ overHumidity: isSet(object.overHumidity) ? gt.Boolean(object.overHumidity) : false,
5737
+ overTemperature: isSet(object.overTemperature) ? gt.Boolean(object.overTemperature) : false,
5738
+ commsSerialError: isSet(object.commsSerialError) ? gt.Boolean(object.commsSerialError) : false,
5739
+ commsCrcError: isSet(object.commsCrcError) ? gt.Boolean(object.commsCrcError) : false,
5740
+ motorDriverFault: isSet(object.motorDriverFault) ? gt.Boolean(object.motorDriverFault) : false,
5741
+ encoderPositionError: isSet(object.encoderPositionError) ? gt.Boolean(object.encoderPositionError) : false,
5742
+ encoderNotDetected: isSet(object.encoderNotDetected) ? gt.Boolean(object.encoderNotDetected) : false,
5743
+ deviceAxisConflict: isSet(object.deviceAxisConflict) ? gt.Boolean(object.deviceAxisConflict) : false,
5744
+ motorNotConnected: isSet(object.motorNotConnected) ? gt.Boolean(object.motorNotConnected) : false,
5745
+ motorOverCurrent: isSet(object.motorOverCurrent) ? gt.Boolean(object.motorOverCurrent) : false,
5746
+ inputEncoderPositionError: isSet(object.inputEncoderPositionError)
5747
+ ? gt.Boolean(object.inputEncoderPositionError)
5748
+ : false,
5749
+ deviceIdConflict: isSet(object.deviceIdConflict) ? gt.Boolean(object.deviceIdConflict) : false,
5750
+ overPressure: isSet(object.overPressure) ? gt.Boolean(object.overPressure) : false,
5751
+ motorDriverOverCurrentAndUnderVoltage: isSet(object.motorDriverOverCurrentAndUnderVoltage)
5752
+ ? gt.Boolean(object.motorDriverOverCurrentAndUnderVoltage)
5753
+ : false,
5754
+ motorDriverOverTemperature: isSet(object.motorDriverOverTemperature)
5755
+ ? gt.Boolean(object.motorDriverOverTemperature)
5756
+ : false,
5757
+ jointServiceDue: isSet(object.jointServiceDue) ? gt.Boolean(object.jointServiceDue) : false,
5758
+ encoderFault: isSet(object.encoderFault) ? gt.Boolean(object.encoderFault) : false,
5759
+ lowSupplyVoltage: isSet(object.lowSupplyVoltage) ? gt.Boolean(object.lowSupplyVoltage) : false,
5760
+ positionReportNotReceived: isSet(object.positionReportNotReceived)
5761
+ ? gt.Boolean(object.positionReportNotReceived)
5762
+ : false,
5763
+ };
5764
+ },
5765
+ toJSON(message) {
5766
+ const obj = {};
5767
+ if (message.flashFailedRead !== false) {
5768
+ obj.flashFailedRead = message.flashFailedRead;
5769
+ }
5770
+ if (message.overHumidity !== false) {
5771
+ obj.overHumidity = message.overHumidity;
5772
+ }
5773
+ if (message.overTemperature !== false) {
5774
+ obj.overTemperature = message.overTemperature;
5775
+ }
5776
+ if (message.commsSerialError !== false) {
5777
+ obj.commsSerialError = message.commsSerialError;
5778
+ }
5779
+ if (message.commsCrcError !== false) {
5780
+ obj.commsCrcError = message.commsCrcError;
5781
+ }
5782
+ if (message.motorDriverFault !== false) {
5783
+ obj.motorDriverFault = message.motorDriverFault;
5784
+ }
5785
+ if (message.encoderPositionError !== false) {
5786
+ obj.encoderPositionError = message.encoderPositionError;
5787
+ }
5788
+ if (message.encoderNotDetected !== false) {
5789
+ obj.encoderNotDetected = message.encoderNotDetected;
5790
+ }
5791
+ if (message.deviceAxisConflict !== false) {
5792
+ obj.deviceAxisConflict = message.deviceAxisConflict;
5793
+ }
5794
+ if (message.motorNotConnected !== false) {
5795
+ obj.motorNotConnected = message.motorNotConnected;
5796
+ }
5797
+ if (message.motorOverCurrent !== false) {
5798
+ obj.motorOverCurrent = message.motorOverCurrent;
5799
+ }
5800
+ if (message.inputEncoderPositionError !== false) {
5801
+ obj.inputEncoderPositionError = message.inputEncoderPositionError;
5802
+ }
5803
+ if (message.deviceIdConflict !== false) {
5804
+ obj.deviceIdConflict = message.deviceIdConflict;
5805
+ }
5806
+ if (message.overPressure !== false) {
5807
+ obj.overPressure = message.overPressure;
5808
+ }
5809
+ if (message.motorDriverOverCurrentAndUnderVoltage !== false) {
5810
+ obj.motorDriverOverCurrentAndUnderVoltage = message.motorDriverOverCurrentAndUnderVoltage;
5811
+ }
5812
+ if (message.motorDriverOverTemperature !== false) {
5813
+ obj.motorDriverOverTemperature = message.motorDriverOverTemperature;
5814
+ }
5815
+ if (message.jointServiceDue !== false) {
5816
+ obj.jointServiceDue = message.jointServiceDue;
5817
+ }
5818
+ if (message.encoderFault !== false) {
5819
+ obj.encoderFault = message.encoderFault;
5820
+ }
5821
+ if (message.lowSupplyVoltage !== false) {
5822
+ obj.lowSupplyVoltage = message.lowSupplyVoltage;
5823
+ }
5824
+ if (message.positionReportNotReceived !== false) {
5825
+ obj.positionReportNotReceived = message.positionReportNotReceived;
5826
+ }
5827
+ return obj;
5828
+ },
5829
+ create(base) {
5830
+ return ReachHardwareStatus.fromPartial(base ?? {});
5831
+ },
5832
+ fromPartial(object) {
5833
+ const message = createBaseReachHardwareStatus();
5834
+ message.flashFailedRead = object.flashFailedRead ?? false;
5835
+ message.overHumidity = object.overHumidity ?? false;
5836
+ message.overTemperature = object.overTemperature ?? false;
5837
+ message.commsSerialError = object.commsSerialError ?? false;
5838
+ message.commsCrcError = object.commsCrcError ?? false;
5839
+ message.motorDriverFault = object.motorDriverFault ?? false;
5840
+ message.encoderPositionError = object.encoderPositionError ?? false;
5841
+ message.encoderNotDetected = object.encoderNotDetected ?? false;
5842
+ message.deviceAxisConflict = object.deviceAxisConflict ?? false;
5843
+ message.motorNotConnected = object.motorNotConnected ?? false;
5844
+ message.motorOverCurrent = object.motorOverCurrent ?? false;
5845
+ message.inputEncoderPositionError = object.inputEncoderPositionError ?? false;
5846
+ message.deviceIdConflict = object.deviceIdConflict ?? false;
5847
+ message.overPressure = object.overPressure ?? false;
5848
+ message.motorDriverOverCurrentAndUnderVoltage = object.motorDriverOverCurrentAndUnderVoltage ?? false;
5849
+ message.motorDriverOverTemperature = object.motorDriverOverTemperature ?? false;
5850
+ message.jointServiceDue = object.jointServiceDue ?? false;
5851
+ message.encoderFault = object.encoderFault ?? false;
5852
+ message.lowSupplyVoltage = object.lowSupplyVoltage ?? false;
5853
+ message.positionReportNotReceived = object.positionReportNotReceived ?? false;
5854
+ return message;
5855
+ },
5856
+ };
5857
+ function createBaseGripperDeviceDiagnostics() {
5858
+ return {
5859
+ address: 0,
5860
+ supplyVoltage: 0,
5861
+ isSupplyVoltageValid: false,
5862
+ temperature: 0,
5863
+ isTemperatureValid: false,
5864
+ humidity: 0,
5865
+ isHumidityValid: false,
5866
+ internalPressure: 0,
5867
+ isInternalPressureValid: false,
5868
+ current: 0,
5869
+ isCurrentValid: false,
5870
+ hardwareStatus: undefined,
5871
+ };
5872
+ }
5873
+ export const GripperDeviceDiagnostics = {
5874
+ encode(message, writer = new BinaryWriter()) {
5875
+ if (message.address !== 0) {
5876
+ writer.uint32(8).uint32(message.address);
5877
+ }
5878
+ if (message.supplyVoltage !== 0) {
5879
+ writer.uint32(21).float(message.supplyVoltage);
5880
+ }
5881
+ if (message.isSupplyVoltageValid !== false) {
5882
+ writer.uint32(64).bool(message.isSupplyVoltageValid);
5883
+ }
5884
+ if (message.temperature !== 0) {
5885
+ writer.uint32(29).float(message.temperature);
5886
+ }
5887
+ if (message.isTemperatureValid !== false) {
5888
+ writer.uint32(72).bool(message.isTemperatureValid);
5889
+ }
5890
+ if (message.humidity !== 0) {
5891
+ writer.uint32(37).float(message.humidity);
5892
+ }
5893
+ if (message.isHumidityValid !== false) {
5894
+ writer.uint32(80).bool(message.isHumidityValid);
5895
+ }
5896
+ if (message.internalPressure !== 0) {
5897
+ writer.uint32(45).float(message.internalPressure);
5898
+ }
5899
+ if (message.isInternalPressureValid !== false) {
5900
+ writer.uint32(88).bool(message.isInternalPressureValid);
5901
+ }
5902
+ if (message.current !== 0) {
5903
+ writer.uint32(53).float(message.current);
5904
+ }
5905
+ if (message.isCurrentValid !== false) {
5906
+ writer.uint32(96).bool(message.isCurrentValid);
5907
+ }
5908
+ if (message.hardwareStatus !== undefined) {
5909
+ ReachHardwareStatus.encode(message.hardwareStatus, writer.uint32(58).fork()).join();
5910
+ }
5911
+ return writer;
5912
+ },
5913
+ decode(input, length) {
5914
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5915
+ const end = length === undefined ? reader.len : reader.pos + length;
5916
+ const message = createBaseGripperDeviceDiagnostics();
5917
+ while (reader.pos < end) {
5918
+ const tag = reader.uint32();
5919
+ switch (tag >>> 3) {
5920
+ case 1: {
5921
+ if (tag !== 8) {
5922
+ break;
5923
+ }
5924
+ message.address = reader.uint32();
5925
+ continue;
5926
+ }
5927
+ case 2: {
5928
+ if (tag !== 21) {
5929
+ break;
5930
+ }
5931
+ message.supplyVoltage = reader.float();
5932
+ continue;
5933
+ }
5934
+ case 8: {
5935
+ if (tag !== 64) {
5936
+ break;
5937
+ }
5938
+ message.isSupplyVoltageValid = reader.bool();
5939
+ continue;
5940
+ }
5941
+ case 3: {
5942
+ if (tag !== 29) {
5943
+ break;
5944
+ }
5945
+ message.temperature = reader.float();
5946
+ continue;
5947
+ }
5948
+ case 9: {
5949
+ if (tag !== 72) {
5950
+ break;
5951
+ }
5952
+ message.isTemperatureValid = reader.bool();
5953
+ continue;
5954
+ }
5955
+ case 4: {
5956
+ if (tag !== 37) {
5957
+ break;
5958
+ }
5959
+ message.humidity = reader.float();
5960
+ continue;
5961
+ }
5962
+ case 10: {
5963
+ if (tag !== 80) {
5964
+ break;
5965
+ }
5966
+ message.isHumidityValid = reader.bool();
5967
+ continue;
5968
+ }
5969
+ case 5: {
5970
+ if (tag !== 45) {
5971
+ break;
5972
+ }
5973
+ message.internalPressure = reader.float();
5974
+ continue;
5975
+ }
5976
+ case 11: {
5977
+ if (tag !== 88) {
5978
+ break;
5979
+ }
5980
+ message.isInternalPressureValid = reader.bool();
5981
+ continue;
5982
+ }
5983
+ case 6: {
5984
+ if (tag !== 53) {
5985
+ break;
5986
+ }
5987
+ message.current = reader.float();
5988
+ continue;
5989
+ }
5990
+ case 12: {
5991
+ if (tag !== 96) {
5992
+ break;
5993
+ }
5994
+ message.isCurrentValid = reader.bool();
5995
+ continue;
5996
+ }
5997
+ case 7: {
5998
+ if (tag !== 58) {
5999
+ break;
6000
+ }
6001
+ message.hardwareStatus = ReachHardwareStatus.decode(reader, reader.uint32());
6002
+ continue;
6003
+ }
6004
+ }
6005
+ if ((tag & 7) === 4 || tag === 0) {
6006
+ break;
6007
+ }
6008
+ reader.skip(tag & 7);
6009
+ }
6010
+ return message;
6011
+ },
6012
+ fromJSON(object) {
6013
+ return {
6014
+ address: isSet(object.address) ? gt.Number(object.address) : 0,
6015
+ supplyVoltage: isSet(object.supplyVoltage) ? gt.Number(object.supplyVoltage) : 0,
6016
+ isSupplyVoltageValid: isSet(object.isSupplyVoltageValid) ? gt.Boolean(object.isSupplyVoltageValid) : false,
6017
+ temperature: isSet(object.temperature) ? gt.Number(object.temperature) : 0,
6018
+ isTemperatureValid: isSet(object.isTemperatureValid) ? gt.Boolean(object.isTemperatureValid) : false,
6019
+ humidity: isSet(object.humidity) ? gt.Number(object.humidity) : 0,
6020
+ isHumidityValid: isSet(object.isHumidityValid) ? gt.Boolean(object.isHumidityValid) : false,
6021
+ internalPressure: isSet(object.internalPressure) ? gt.Number(object.internalPressure) : 0,
6022
+ isInternalPressureValid: isSet(object.isInternalPressureValid)
6023
+ ? gt.Boolean(object.isInternalPressureValid)
6024
+ : false,
6025
+ current: isSet(object.current) ? gt.Number(object.current) : 0,
6026
+ isCurrentValid: isSet(object.isCurrentValid) ? gt.Boolean(object.isCurrentValid) : false,
6027
+ hardwareStatus: isSet(object.hardwareStatus) ? ReachHardwareStatus.fromJSON(object.hardwareStatus) : undefined,
6028
+ };
6029
+ },
6030
+ toJSON(message) {
6031
+ const obj = {};
6032
+ if (message.address !== 0) {
6033
+ obj.address = Math.round(message.address);
6034
+ }
6035
+ if (message.supplyVoltage !== 0) {
6036
+ obj.supplyVoltage = message.supplyVoltage;
6037
+ }
6038
+ if (message.isSupplyVoltageValid !== false) {
6039
+ obj.isSupplyVoltageValid = message.isSupplyVoltageValid;
6040
+ }
6041
+ if (message.temperature !== 0) {
6042
+ obj.temperature = message.temperature;
6043
+ }
6044
+ if (message.isTemperatureValid !== false) {
6045
+ obj.isTemperatureValid = message.isTemperatureValid;
6046
+ }
6047
+ if (message.humidity !== 0) {
6048
+ obj.humidity = message.humidity;
6049
+ }
6050
+ if (message.isHumidityValid !== false) {
6051
+ obj.isHumidityValid = message.isHumidityValid;
6052
+ }
6053
+ if (message.internalPressure !== 0) {
6054
+ obj.internalPressure = message.internalPressure;
6055
+ }
6056
+ if (message.isInternalPressureValid !== false) {
6057
+ obj.isInternalPressureValid = message.isInternalPressureValid;
6058
+ }
6059
+ if (message.current !== 0) {
6060
+ obj.current = message.current;
6061
+ }
6062
+ if (message.isCurrentValid !== false) {
6063
+ obj.isCurrentValid = message.isCurrentValid;
6064
+ }
6065
+ if (message.hardwareStatus !== undefined) {
6066
+ obj.hardwareStatus = ReachHardwareStatus.toJSON(message.hardwareStatus);
6067
+ }
6068
+ return obj;
6069
+ },
6070
+ create(base) {
6071
+ return GripperDeviceDiagnostics.fromPartial(base ?? {});
6072
+ },
6073
+ fromPartial(object) {
6074
+ const message = createBaseGripperDeviceDiagnostics();
6075
+ message.address = object.address ?? 0;
6076
+ message.supplyVoltage = object.supplyVoltage ?? 0;
6077
+ message.isSupplyVoltageValid = object.isSupplyVoltageValid ?? false;
6078
+ message.temperature = object.temperature ?? 0;
6079
+ message.isTemperatureValid = object.isTemperatureValid ?? false;
6080
+ message.humidity = object.humidity ?? 0;
6081
+ message.isHumidityValid = object.isHumidityValid ?? false;
6082
+ message.internalPressure = object.internalPressure ?? 0;
6083
+ message.isInternalPressureValid = object.isInternalPressureValid ?? false;
6084
+ message.current = object.current ?? 0;
6085
+ message.isCurrentValid = object.isCurrentValid ?? false;
6086
+ message.hardwareStatus = (object.hardwareStatus !== undefined && object.hardwareStatus !== null)
6087
+ ? ReachHardwareStatus.fromPartial(object.hardwareStatus)
6088
+ : undefined;
6089
+ return message;
6090
+ },
6091
+ };
6092
+ function createBaseGripperInfo() {
6093
+ return { guestPortNumber: 0, deviceId: 0, serialNumber: "", modelNumber: "", firmwareVersion: "" };
6094
+ }
6095
+ export const GripperInfo = {
6096
+ encode(message, writer = new BinaryWriter()) {
6097
+ if (message.guestPortNumber !== 0) {
6098
+ writer.uint32(8).int32(message.guestPortNumber);
6099
+ }
6100
+ if (message.deviceId !== 0) {
6101
+ writer.uint32(16).int32(message.deviceId);
6102
+ }
6103
+ if (message.serialNumber !== "") {
6104
+ writer.uint32(26).string(message.serialNumber);
6105
+ }
6106
+ if (message.modelNumber !== "") {
6107
+ writer.uint32(34).string(message.modelNumber);
6108
+ }
6109
+ if (message.firmwareVersion !== "") {
6110
+ writer.uint32(42).string(message.firmwareVersion);
6111
+ }
6112
+ return writer;
6113
+ },
6114
+ decode(input, length) {
6115
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
6116
+ const end = length === undefined ? reader.len : reader.pos + length;
6117
+ const message = createBaseGripperInfo();
6118
+ while (reader.pos < end) {
6119
+ const tag = reader.uint32();
6120
+ switch (tag >>> 3) {
6121
+ case 1: {
6122
+ if (tag !== 8) {
6123
+ break;
6124
+ }
6125
+ message.guestPortNumber = reader.int32();
6126
+ continue;
6127
+ }
6128
+ case 2: {
6129
+ if (tag !== 16) {
6130
+ break;
6131
+ }
6132
+ message.deviceId = reader.int32();
6133
+ continue;
6134
+ }
6135
+ case 3: {
6136
+ if (tag !== 26) {
6137
+ break;
6138
+ }
6139
+ message.serialNumber = reader.string();
6140
+ continue;
6141
+ }
6142
+ case 4: {
6143
+ if (tag !== 34) {
6144
+ break;
6145
+ }
6146
+ message.modelNumber = reader.string();
6147
+ continue;
6148
+ }
6149
+ case 5: {
6150
+ if (tag !== 42) {
6151
+ break;
6152
+ }
6153
+ message.firmwareVersion = reader.string();
6154
+ continue;
6155
+ }
6156
+ }
6157
+ if ((tag & 7) === 4 || tag === 0) {
6158
+ break;
6159
+ }
6160
+ reader.skip(tag & 7);
6161
+ }
6162
+ return message;
6163
+ },
6164
+ fromJSON(object) {
6165
+ return {
6166
+ guestPortNumber: isSet(object.guestPortNumber) ? guestPortNumberFromJSON(object.guestPortNumber) : 0,
6167
+ deviceId: isSet(object.deviceId) ? guestPortDeviceIDFromJSON(object.deviceId) : 0,
6168
+ serialNumber: isSet(object.serialNumber) ? gt.String(object.serialNumber) : "",
6169
+ modelNumber: isSet(object.modelNumber) ? gt.String(object.modelNumber) : "",
6170
+ firmwareVersion: isSet(object.firmwareVersion) ? gt.String(object.firmwareVersion) : "",
6171
+ };
6172
+ },
6173
+ toJSON(message) {
6174
+ const obj = {};
6175
+ if (message.guestPortNumber !== 0) {
6176
+ obj.guestPortNumber = guestPortNumberToJSON(message.guestPortNumber);
6177
+ }
6178
+ if (message.deviceId !== 0) {
6179
+ obj.deviceId = guestPortDeviceIDToJSON(message.deviceId);
6180
+ }
6181
+ if (message.serialNumber !== "") {
6182
+ obj.serialNumber = message.serialNumber;
6183
+ }
6184
+ if (message.modelNumber !== "") {
6185
+ obj.modelNumber = message.modelNumber;
6186
+ }
6187
+ if (message.firmwareVersion !== "") {
6188
+ obj.firmwareVersion = message.firmwareVersion;
6189
+ }
6190
+ return obj;
6191
+ },
6192
+ create(base) {
6193
+ return GripperInfo.fromPartial(base ?? {});
6194
+ },
6195
+ fromPartial(object) {
6196
+ const message = createBaseGripperInfo();
6197
+ message.guestPortNumber = object.guestPortNumber ?? 0;
6198
+ message.deviceId = object.deviceId ?? 0;
6199
+ message.serialNumber = object.serialNumber ?? "";
6200
+ message.modelNumber = object.modelNumber ?? "";
6201
+ message.firmwareVersion = object.firmwareVersion ?? "";
6202
+ return message;
6203
+ },
6204
+ };
6205
+ function createBaseGripperDiagnostics() {
6206
+ return { devices: [], guestPortNumber: 0 };
6207
+ }
6208
+ export const GripperDiagnostics = {
6209
+ encode(message, writer = new BinaryWriter()) {
6210
+ for (const v of message.devices) {
6211
+ GripperDeviceDiagnostics.encode(v, writer.uint32(10).fork()).join();
6212
+ }
6213
+ if (message.guestPortNumber !== 0) {
6214
+ writer.uint32(16).int32(message.guestPortNumber);
6215
+ }
6216
+ return writer;
6217
+ },
6218
+ decode(input, length) {
6219
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
6220
+ const end = length === undefined ? reader.len : reader.pos + length;
6221
+ const message = createBaseGripperDiagnostics();
6222
+ while (reader.pos < end) {
6223
+ const tag = reader.uint32();
6224
+ switch (tag >>> 3) {
6225
+ case 1: {
6226
+ if (tag !== 10) {
6227
+ break;
6228
+ }
6229
+ message.devices.push(GripperDeviceDiagnostics.decode(reader, reader.uint32()));
6230
+ continue;
6231
+ }
6232
+ case 2: {
6233
+ if (tag !== 16) {
6234
+ break;
6235
+ }
6236
+ message.guestPortNumber = reader.int32();
6237
+ continue;
6238
+ }
6239
+ }
6240
+ if ((tag & 7) === 4 || tag === 0) {
6241
+ break;
6242
+ }
6243
+ reader.skip(tag & 7);
6244
+ }
6245
+ return message;
6246
+ },
6247
+ fromJSON(object) {
6248
+ return {
6249
+ devices: gt.Array.isArray(object?.devices)
6250
+ ? object.devices.map((e) => GripperDeviceDiagnostics.fromJSON(e))
6251
+ : [],
6252
+ guestPortNumber: isSet(object.guestPortNumber) ? guestPortNumberFromJSON(object.guestPortNumber) : 0,
6253
+ };
6254
+ },
6255
+ toJSON(message) {
6256
+ const obj = {};
6257
+ if (message.devices?.length) {
6258
+ obj.devices = message.devices.map((e) => GripperDeviceDiagnostics.toJSON(e));
6259
+ }
6260
+ if (message.guestPortNumber !== 0) {
6261
+ obj.guestPortNumber = guestPortNumberToJSON(message.guestPortNumber);
6262
+ }
6263
+ return obj;
6264
+ },
6265
+ create(base) {
6266
+ return GripperDiagnostics.fromPartial(base ?? {});
6267
+ },
6268
+ fromPartial(object) {
6269
+ const message = createBaseGripperDiagnostics();
6270
+ message.devices = object.devices?.map((e) => GripperDeviceDiagnostics.fromPartial(e)) || [];
6271
+ message.guestPortNumber = object.guestPortNumber ?? 0;
6272
+ return message;
6273
+ },
6274
+ };
5490
6275
  function createBaseClientInfo() {
5491
6276
  return { type: "", version: "", deviceType: "", platform: "", platformVersion: "", name: "", isObserver: false };
5492
6277
  }
@@ -1,6 +1,6 @@
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
5
  /**
6
6
  * Telemetry
@@ -281,6 +281,22 @@ export interface GripperTel {
281
281
  /** Gripper state. */
282
282
  gripper: Gripper | undefined;
283
283
  }
284
+ /**
285
+ * Identity of a gripper, published every minute for each connected gripper.
286
+ * With several grippers, GetTelemetryReq returns the one that published last: its guest port tells which.
287
+ */
288
+ export interface GripperInfoTel {
289
+ /** Gripper identity. */
290
+ gripperInfo: GripperInfo | undefined;
291
+ }
292
+ /**
293
+ * Health of a gripper, published every few seconds for each connected gripper that reports it.
294
+ * With several grippers, GetTelemetryReq returns the one that published last: its guest port tells which.
295
+ */
296
+ export interface GripperDiagnosticsTel {
297
+ /** Gripper diagnostics. */
298
+ gripperDiagnostics: GripperDiagnostics | undefined;
299
+ }
284
300
  /** GuestPort current readings. */
285
301
  export interface GuestPortCurrentTel {
286
302
  /** Guest port current readings. */
@@ -476,6 +492,8 @@ export declare const ConnectedClientsTel: MessageFns<ConnectedClientsTel>;
476
492
  export declare const GenericServoTel: MessageFns<GenericServoTel>;
477
493
  export declare const MultibeamServoTel: MessageFns<MultibeamServoTel>;
478
494
  export declare const GripperTel: MessageFns<GripperTel>;
495
+ export declare const GripperInfoTel: MessageFns<GripperInfoTel>;
496
+ export declare const GripperDiagnosticsTel: MessageFns<GripperDiagnosticsTel>;
479
497
  export declare const GuestPortCurrentTel: MessageFns<GuestPortCurrentTel>;
480
498
  export declare const CalibratedImuTel: MessageFns<CalibratedImuTel>;
481
499
  export declare const Imu1Tel: MessageFns<Imu1Tel>;
package/dist/telemetry.js CHANGED
@@ -6,7 +6,7 @@
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
11
  function createBaseAttitudeTel() {
12
12
  return { attitude: undefined };
@@ -2769,6 +2769,116 @@ export const GripperTel = {
2769
2769
  return message;
2770
2770
  },
2771
2771
  };
2772
+ function createBaseGripperInfoTel() {
2773
+ return { gripperInfo: undefined };
2774
+ }
2775
+ export const GripperInfoTel = {
2776
+ encode(message, writer = new BinaryWriter()) {
2777
+ if (message.gripperInfo !== undefined) {
2778
+ GripperInfo.encode(message.gripperInfo, writer.uint32(10).fork()).join();
2779
+ }
2780
+ return writer;
2781
+ },
2782
+ decode(input, length) {
2783
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2784
+ const end = length === undefined ? reader.len : reader.pos + length;
2785
+ const message = createBaseGripperInfoTel();
2786
+ while (reader.pos < end) {
2787
+ const tag = reader.uint32();
2788
+ switch (tag >>> 3) {
2789
+ case 1: {
2790
+ if (tag !== 10) {
2791
+ break;
2792
+ }
2793
+ message.gripperInfo = GripperInfo.decode(reader, reader.uint32());
2794
+ continue;
2795
+ }
2796
+ }
2797
+ if ((tag & 7) === 4 || tag === 0) {
2798
+ break;
2799
+ }
2800
+ reader.skip(tag & 7);
2801
+ }
2802
+ return message;
2803
+ },
2804
+ fromJSON(object) {
2805
+ return { gripperInfo: isSet(object.gripperInfo) ? GripperInfo.fromJSON(object.gripperInfo) : undefined };
2806
+ },
2807
+ toJSON(message) {
2808
+ const obj = {};
2809
+ if (message.gripperInfo !== undefined) {
2810
+ obj.gripperInfo = GripperInfo.toJSON(message.gripperInfo);
2811
+ }
2812
+ return obj;
2813
+ },
2814
+ create(base) {
2815
+ return GripperInfoTel.fromPartial(base ?? {});
2816
+ },
2817
+ fromPartial(object) {
2818
+ const message = createBaseGripperInfoTel();
2819
+ message.gripperInfo = (object.gripperInfo !== undefined && object.gripperInfo !== null)
2820
+ ? GripperInfo.fromPartial(object.gripperInfo)
2821
+ : undefined;
2822
+ return message;
2823
+ },
2824
+ };
2825
+ function createBaseGripperDiagnosticsTel() {
2826
+ return { gripperDiagnostics: undefined };
2827
+ }
2828
+ export const GripperDiagnosticsTel = {
2829
+ encode(message, writer = new BinaryWriter()) {
2830
+ if (message.gripperDiagnostics !== undefined) {
2831
+ GripperDiagnostics.encode(message.gripperDiagnostics, writer.uint32(10).fork()).join();
2832
+ }
2833
+ return writer;
2834
+ },
2835
+ decode(input, length) {
2836
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2837
+ const end = length === undefined ? reader.len : reader.pos + length;
2838
+ const message = createBaseGripperDiagnosticsTel();
2839
+ while (reader.pos < end) {
2840
+ const tag = reader.uint32();
2841
+ switch (tag >>> 3) {
2842
+ case 1: {
2843
+ if (tag !== 10) {
2844
+ break;
2845
+ }
2846
+ message.gripperDiagnostics = GripperDiagnostics.decode(reader, reader.uint32());
2847
+ continue;
2848
+ }
2849
+ }
2850
+ if ((tag & 7) === 4 || tag === 0) {
2851
+ break;
2852
+ }
2853
+ reader.skip(tag & 7);
2854
+ }
2855
+ return message;
2856
+ },
2857
+ fromJSON(object) {
2858
+ return {
2859
+ gripperDiagnostics: isSet(object.gripperDiagnostics)
2860
+ ? GripperDiagnostics.fromJSON(object.gripperDiagnostics)
2861
+ : undefined,
2862
+ };
2863
+ },
2864
+ toJSON(message) {
2865
+ const obj = {};
2866
+ if (message.gripperDiagnostics !== undefined) {
2867
+ obj.gripperDiagnostics = GripperDiagnostics.toJSON(message.gripperDiagnostics);
2868
+ }
2869
+ return obj;
2870
+ },
2871
+ create(base) {
2872
+ return GripperDiagnosticsTel.fromPartial(base ?? {});
2873
+ },
2874
+ fromPartial(object) {
2875
+ const message = createBaseGripperDiagnosticsTel();
2876
+ message.gripperDiagnostics = (object.gripperDiagnostics !== undefined && object.gripperDiagnostics !== null)
2877
+ ? GripperDiagnostics.fromPartial(object.gripperDiagnostics)
2878
+ : undefined;
2879
+ return message;
2880
+ },
2881
+ };
2772
2882
  function createBaseGuestPortCurrentTel() {
2773
2883
  return { current: undefined };
2774
2884
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueyerobotics/protocol-definitions",
3
- "version": "3.4.0-618bf0b0",
3
+ "version": "3.4.0-8187f91a",
4
4
  "license": "LGPL-3.0-only",
5
5
  "description": "TypeScript definitions for Blueye Robotics protocols",
6
6
  "repository": {