@blueyerobotics/protocol-definitions 3.3.0-2b26d5f0 → 3.3.0-2d5d3956

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { SetAquaTrollConnectionStatus, SetAquaTrollParameterUnit } from "./aquatroll";
3
- import { Annotation, 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, VisionTrackingState, WaterDensity, WeatherVaningState } from "./message_formats";
3
+ import { Annotation, AutoAltitudeState, AutoDepthState, AutoHeadingState, AutoPilotHeaveState, AutoPilotSurgeYawState, BoundingBox, CameraPanTiltZoom, CartesianManipulatorInput, ConnectionDuration, CylindricalManipulatorInput, FilterMessage, GenericServo, GripperVelocities, GuestPortRestartInfo, KnownPoseManipulatorInput, Laser, LatLongPosition, Lights, MotionInput, MultibeamConfig, MultibeamServo, OperatorInfo, PingerConfiguration, RecordOn, ResetPositionSettings, StationKeepingState, StorageLocation, SystemTime, TiltStabilizationState, TiltVelocity, VisionTrackingState, WaterDensity, WeatherVaningState } from "./message_formats";
4
4
  /**
5
5
  * Control
6
6
  *
@@ -157,10 +157,26 @@ export interface SystemTimeCtrl {
157
157
  /** Message with the system time to set. */
158
158
  systemTime: SystemTime | undefined;
159
159
  }
160
- /** Issue a command to control the gripper. */
160
+ /**
161
+ * Issue a command to control the gripper.
162
+ *
163
+ * On a manipulator arm the command can also move the arm. Each command stands until the next one: the
164
+ * arm stops on a command without arm input, or when the client watchdog (WatchdogCtrl) lapses.
165
+ */
161
166
  export interface GripperCtrl {
162
167
  /** The desired gripping and rotation velocity. */
163
168
  gripperVelocities: GripperVelocities | undefined;
169
+ /** In the drone body frame. */
170
+ cartesian?: CartesianManipulatorInput | undefined;
171
+ /** About the axis of the arm's base joint. */
172
+ cylindrical?: CylindricalManipulatorInput | undefined;
173
+ /** Towards a named pose, such as stowed or deployed. */
174
+ knownPose?: KnownPoseManipulatorInput | undefined;
175
+ /**
176
+ * Speed of the arm input relative to the drone default (-1.0..1.0): negative is slower, positive is
177
+ * faster, and 0 is the default speed. Scales arm_input only, not gripper_velocities.
178
+ */
179
+ speedModifier: number;
164
180
  }
165
181
  /** Issue a command to set a generic servo value. */
166
182
  export interface GenericServoCtrl {
package/dist/control.js CHANGED
@@ -1508,13 +1508,31 @@ exports.SystemTimeCtrl = {
1508
1508
  },
1509
1509
  };
1510
1510
  function createBaseGripperCtrl() {
1511
- return { gripperVelocities: undefined };
1511
+ return {
1512
+ gripperVelocities: undefined,
1513
+ cartesian: undefined,
1514
+ cylindrical: undefined,
1515
+ knownPose: undefined,
1516
+ speedModifier: 0,
1517
+ };
1512
1518
  }
1513
1519
  exports.GripperCtrl = {
1514
1520
  encode(message, writer = new wire_1.BinaryWriter()) {
1515
1521
  if (message.gripperVelocities !== undefined) {
1516
1522
  message_formats_1.GripperVelocities.encode(message.gripperVelocities, writer.uint32(10).fork()).join();
1517
1523
  }
1524
+ if (message.cartesian !== undefined) {
1525
+ message_formats_1.CartesianManipulatorInput.encode(message.cartesian, writer.uint32(18).fork()).join();
1526
+ }
1527
+ if (message.cylindrical !== undefined) {
1528
+ message_formats_1.CylindricalManipulatorInput.encode(message.cylindrical, writer.uint32(26).fork()).join();
1529
+ }
1530
+ if (message.knownPose !== undefined) {
1531
+ message_formats_1.KnownPoseManipulatorInput.encode(message.knownPose, writer.uint32(42).fork()).join();
1532
+ }
1533
+ if (message.speedModifier !== 0) {
1534
+ writer.uint32(37).float(message.speedModifier);
1535
+ }
1518
1536
  return writer;
1519
1537
  },
1520
1538
  decode(input, length) {
@@ -1531,6 +1549,34 @@ exports.GripperCtrl = {
1531
1549
  message.gripperVelocities = message_formats_1.GripperVelocities.decode(reader, reader.uint32());
1532
1550
  continue;
1533
1551
  }
1552
+ case 2: {
1553
+ if (tag !== 18) {
1554
+ break;
1555
+ }
1556
+ message.cartesian = message_formats_1.CartesianManipulatorInput.decode(reader, reader.uint32());
1557
+ continue;
1558
+ }
1559
+ case 3: {
1560
+ if (tag !== 26) {
1561
+ break;
1562
+ }
1563
+ message.cylindrical = message_formats_1.CylindricalManipulatorInput.decode(reader, reader.uint32());
1564
+ continue;
1565
+ }
1566
+ case 5: {
1567
+ if (tag !== 42) {
1568
+ break;
1569
+ }
1570
+ message.knownPose = message_formats_1.KnownPoseManipulatorInput.decode(reader, reader.uint32());
1571
+ continue;
1572
+ }
1573
+ case 4: {
1574
+ if (tag !== 37) {
1575
+ break;
1576
+ }
1577
+ message.speedModifier = reader.float();
1578
+ continue;
1579
+ }
1534
1580
  }
1535
1581
  if ((tag & 7) === 4 || tag === 0) {
1536
1582
  break;
@@ -1544,6 +1590,10 @@ exports.GripperCtrl = {
1544
1590
  gripperVelocities: isSet(object.gripperVelocities)
1545
1591
  ? message_formats_1.GripperVelocities.fromJSON(object.gripperVelocities)
1546
1592
  : undefined,
1593
+ cartesian: isSet(object.cartesian) ? message_formats_1.CartesianManipulatorInput.fromJSON(object.cartesian) : undefined,
1594
+ cylindrical: isSet(object.cylindrical) ? message_formats_1.CylindricalManipulatorInput.fromJSON(object.cylindrical) : undefined,
1595
+ knownPose: isSet(object.knownPose) ? message_formats_1.KnownPoseManipulatorInput.fromJSON(object.knownPose) : undefined,
1596
+ speedModifier: isSet(object.speedModifier) ? gt.Number(object.speedModifier) : 0,
1547
1597
  };
1548
1598
  },
1549
1599
  toJSON(message) {
@@ -1551,6 +1601,18 @@ exports.GripperCtrl = {
1551
1601
  if (message.gripperVelocities !== undefined) {
1552
1602
  obj.gripperVelocities = message_formats_1.GripperVelocities.toJSON(message.gripperVelocities);
1553
1603
  }
1604
+ if (message.cartesian !== undefined) {
1605
+ obj.cartesian = message_formats_1.CartesianManipulatorInput.toJSON(message.cartesian);
1606
+ }
1607
+ if (message.cylindrical !== undefined) {
1608
+ obj.cylindrical = message_formats_1.CylindricalManipulatorInput.toJSON(message.cylindrical);
1609
+ }
1610
+ if (message.knownPose !== undefined) {
1611
+ obj.knownPose = message_formats_1.KnownPoseManipulatorInput.toJSON(message.knownPose);
1612
+ }
1613
+ if (message.speedModifier !== 0) {
1614
+ obj.speedModifier = message.speedModifier;
1615
+ }
1554
1616
  return obj;
1555
1617
  },
1556
1618
  create(base) {
@@ -1561,6 +1623,16 @@ exports.GripperCtrl = {
1561
1623
  message.gripperVelocities = (object.gripperVelocities !== undefined && object.gripperVelocities !== null)
1562
1624
  ? message_formats_1.GripperVelocities.fromPartial(object.gripperVelocities)
1563
1625
  : undefined;
1626
+ message.cartesian = (object.cartesian !== undefined && object.cartesian !== null)
1627
+ ? message_formats_1.CartesianManipulatorInput.fromPartial(object.cartesian)
1628
+ : undefined;
1629
+ message.cylindrical = (object.cylindrical !== undefined && object.cylindrical !== null)
1630
+ ? message_formats_1.CylindricalManipulatorInput.fromPartial(object.cylindrical)
1631
+ : undefined;
1632
+ message.knownPose = (object.knownPose !== undefined && object.knownPose !== null)
1633
+ ? message_formats_1.KnownPoseManipulatorInput.fromPartial(object.knownPose)
1634
+ : undefined;
1635
+ message.speedModifier = object.speedModifier ?? 0;
1564
1636
  return message;
1565
1637
  },
1566
1638
  };
@@ -6,6 +6,32 @@ import { Duration } from "./google/protobuf/duration";
6
6
  *
7
7
  * These are used for logging as well as building requests and responses.
8
8
  */
9
+ /** How the arm input of the last command was read, as reported in telemetry. */
10
+ export declare enum ManipulatorControlMode {
11
+ /** MANIPULATOR_CONTROL_MODE_UNSPECIFIED - No arm input. */
12
+ MANIPULATOR_CONTROL_MODE_UNSPECIFIED = 0,
13
+ /** MANIPULATOR_CONTROL_MODE_CYLINDRICAL - CylindricalManipulatorInput. */
14
+ MANIPULATOR_CONTROL_MODE_CYLINDRICAL = 1,
15
+ /** MANIPULATOR_CONTROL_MODE_CARTESIAN - CartesianManipulatorInput. */
16
+ MANIPULATOR_CONTROL_MODE_CARTESIAN = 2,
17
+ /** MANIPULATOR_CONTROL_MODE_KNOWN_POSE - KnownPoseManipulatorInput. */
18
+ MANIPULATOR_CONTROL_MODE_KNOWN_POSE = 3,
19
+ UNRECOGNIZED = -1
20
+ }
21
+ export declare function manipulatorControlModeFromJSON(object: any): ManipulatorControlMode;
22
+ export declare function manipulatorControlModeToJSON(object: ManipulatorControlMode): string;
23
+ /** Named manipulator poses. */
24
+ export declare enum ManipulatorPose {
25
+ /** MANIPULATOR_POSE_UNSPECIFIED - No pose. */
26
+ MANIPULATOR_POSE_UNSPECIFIED = 0,
27
+ /** MANIPULATOR_POSE_STOWED - Folded for transport, launch and recovery. */
28
+ MANIPULATOR_POSE_STOWED = 1,
29
+ /** MANIPULATOR_POSE_DEPLOYED - Unfolded and ready to work. */
30
+ MANIPULATOR_POSE_DEPLOYED = 2,
31
+ UNRECOGNIZED = -1
32
+ }
33
+ export declare function manipulatorPoseFromJSON(object: any): ManipulatorPose;
34
+ export declare function manipulatorPoseToJSON(object: ManipulatorPose): string;
9
35
  /** Interval type for time-lapse photos. */
10
36
  export declare enum IntervalType {
11
37
  /** INTERVAL_TYPE_UNSPECIFIED - Unspecified. */
@@ -486,6 +512,8 @@ export declare enum GuestPortDeviceID {
486
512
  GUEST_PORT_DEVICE_ID_WATERLINKED_DVL_A100 = 50,
487
513
  /** GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200 - Outland Technology MP-200 Manipulator. */
488
514
  GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200 = 51,
515
+ /** GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5 - Reach Robotics Reach Alpha 5 Manipulator. */
516
+ GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5 = 52,
489
517
  UNRECOGNIZED = -1
490
518
  }
491
519
  export declare function guestPortDeviceIDFromJSON(object: any): GuestPortDeviceID;
@@ -1004,6 +1032,63 @@ export interface GripperVelocities {
1004
1032
  /** The rotating velocity (-1.0..1.0). */
1005
1033
  rotateVelocity: number;
1006
1034
  }
1035
+ /**
1036
+ * Cartesian velocity of the end of a manipulator arm, in the drone body frame.
1037
+ *
1038
+ * Each value is normalized (-1.0..1.0) and scaled by the drone to its configured maximum speed.
1039
+ */
1040
+ export interface CartesianManipulatorInput {
1041
+ /** Forward (positive) and backward (negative). */
1042
+ x: number;
1043
+ /** Right (positive) and left (negative). */
1044
+ y: number;
1045
+ /** Down (positive) and up (negative). */
1046
+ z: number;
1047
+ }
1048
+ /**
1049
+ * Cylindrical velocity of the end of a manipulator arm, about the axis of the arm's base joint.
1050
+ *
1051
+ * Each value is normalized (-1.0..1.0) and scaled by the drone to its configured maximum speed.
1052
+ */
1053
+ export interface CylindricalManipulatorInput {
1054
+ /** Out from the base axis (positive) and in towards it (negative). */
1055
+ radial: number;
1056
+ /** Along the base axis: down (positive) and up (negative), as in the drone body frame. */
1057
+ vertical: number;
1058
+ /** Swing about the base axis: clockwise seen from above (positive). */
1059
+ azimuth: number;
1060
+ }
1061
+ /**
1062
+ * Movement of a manipulator arm towards a named pose, along a path the drone chooses.
1063
+ *
1064
+ * Hold-to-run: the arm moves only while the velocity is above zero, and resumes from wherever it
1065
+ * stopped.
1066
+ */
1067
+ export interface KnownPoseManipulatorInput {
1068
+ /** The pose to move towards. */
1069
+ pose: ManipulatorPose;
1070
+ /** Speed along the path (0.0..1.0): 0 holds the arm where it is. */
1071
+ velocity: number;
1072
+ }
1073
+ /** Gripper state: of its arm too, when the gripper is a manipulator arm. */
1074
+ export interface Gripper {
1075
+ /** How the arm input of the last command was read. */
1076
+ mode: ManipulatorControlMode;
1077
+ /** Joint positions from the jaws to the base: jaws opening (m), then joint angles (rad). */
1078
+ jointPositions: number[];
1079
+ /** Position of the base of the jaws in the drone body frame (m). */
1080
+ endPosition: Vector3 | undefined;
1081
+ /** A joint at the end of its range keeps the arm from going further. */
1082
+ atLimit: boolean;
1083
+ /** The arm stopped itself short of an obstacle or of itself. */
1084
+ collision: boolean;
1085
+ /** The jaws closed on something. */
1086
+ holding: boolean;
1087
+ /** A joint reports a hardware fault. */
1088
+ fault: boolean;
1089
+ /** Named pose the arm is moving towards, if any. */
1090
+ movingTo: ManipulatorPose;
1091
+ }
1007
1092
  /** Information about a remote client. */
1008
1093
  export interface ClientInfo {
1009
1094
  /** The type of client (such as Blueye App, Observer App, SDK, etc). */
@@ -2968,6 +3053,10 @@ export declare const ControlMode: MessageFns<ControlMode>;
2968
3053
  export declare const TiltStabilizationState: MessageFns<TiltStabilizationState>;
2969
3054
  export declare const SystemTime: MessageFns<SystemTime>;
2970
3055
  export declare const GripperVelocities: MessageFns<GripperVelocities>;
3056
+ export declare const CartesianManipulatorInput: MessageFns<CartesianManipulatorInput>;
3057
+ export declare const CylindricalManipulatorInput: MessageFns<CylindricalManipulatorInput>;
3058
+ export declare const KnownPoseManipulatorInput: MessageFns<KnownPoseManipulatorInput>;
3059
+ export declare const Gripper: MessageFns<Gripper>;
2971
3060
  export declare const ClientInfo: MessageFns<ClientInfo>;
2972
3061
  export declare const ConnectedClient: MessageFns<ConnectedClient>;
2973
3062
  export declare const RecordState: MessageFns<RecordState>;
@@ -5,10 +5,14 @@
5
5
  // protoc v3.21.12
6
6
  // source: message_formats.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.Lights = exports.MotionInput = exports.KernelLogEntry_KeyValuePair = exports.KernelLogEntry = exports.LogEntry = exports.BinlogRecord = exports.SotState_State = exports.SurfaceUnitBatteryInfo_ChargeStatus = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CvModelInfo_State = exports.CvModelInfo_ModelType = exports.CalibrationState_Status = exports.RemovableStorageDevice_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.KernelLogEntry_KernelLogLevel = exports.LogEntry_LogLevel = exports.AnnotationSource = exports.ThermalZoneId = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.GnssConstellation = exports.GnssFixMode = exports.NavigationSensorID = exports.GuestPortCapability = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.RecordingCodec = exports.StreamingProtocol = exports.Camera = exports.Framerate = exports.Resolution = exports.PowerSource = exports.PressureSensorType = exports.Model = exports.StorageLocation = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
9
- exports.Depth = exports.DvlVelocity = exports.DvlTransducer = exports.ResetPositionSettings = exports.PositionEstimate = exports.ForwardDistance = exports.Altitude = exports.MagneticDeclination = exports.Attitude = exports.BatteryBQ40Z50_BatteryChargingEvents = exports.BatteryBQ40Z50_BatterySafetyEvents = exports.BatteryBQ40Z50_BatteryLifetimes_CellVoltages = exports.BatteryBQ40Z50_BatteryLifetimes = exports.BatteryBQ40Z50_BatteryStatus = exports.BatteryBQ40Z50_Temperature = exports.BatteryBQ40Z50_Voltage = exports.BatteryBQ40Z50 = exports.Battery = exports.PowerCanister_Sensors = exports.PowerCanister = exports.CanisterHumidity = exports.CanisterTemperature = exports.CPUTemperature = exports.WaterTemperature = exports.PingerConfiguration = exports.WaterDensity = exports.TimeLapseState = exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = exports.VisionTrackingState = exports.OrbitState = exports.ActiveTrackState = exports.SpotlightState = exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.LaserDetection = exports.Point2D = exports.Laser = void 0;
10
- exports.MemoryInfo = exports.DlaInfo = exports.GpuInfo = exports.CpuCoreLoad = exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamColorFilter = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = exports.GuestPortCurrent = exports.MultibeamServo = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = exports.GuestPortDevice = exports.GnssStatus = exports.GnssSatellite = exports.NavigationSensorStatus = exports.OverlayParameters = exports.CameraParameters = exports.ErrorFlags = exports.DroneInfo = exports.CameraCalibration = exports.CvModelInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.RemovableStorageErrorFlags = exports.RemovableStorageDevice = exports.StoragePartition = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = void 0;
11
- exports.Annotation = exports.SotState = exports.OperatorInfo = exports.CameraPanTiltZoom = exports.FilterMessage = exports.ModelDetections = exports.ObjectDetection = exports.SegmentationMask = exports.BoundingBox = exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = exports.SystemPerformanceInfo = exports.NvmeInfo = exports.VideoCodecInfo = exports.ThermalZone = void 0;
8
+ exports.KernelLogEntry_KeyValuePair = exports.KernelLogEntry = exports.LogEntry = exports.BinlogRecord = exports.SotState_State = exports.SurfaceUnitBatteryInfo_ChargeStatus = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CvModelInfo_State = exports.CvModelInfo_ModelType = exports.CalibrationState_Status = exports.RemovableStorageDevice_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.KernelLogEntry_KernelLogLevel = exports.LogEntry_LogLevel = exports.AnnotationSource = exports.ThermalZoneId = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.GnssConstellation = exports.GnssFixMode = exports.NavigationSensorID = exports.GuestPortCapability = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.RecordingCodec = exports.StreamingProtocol = exports.Camera = exports.Framerate = exports.Resolution = exports.PowerSource = exports.PressureSensorType = exports.Model = exports.StorageLocation = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = exports.ManipulatorPose = exports.ManipulatorControlMode = void 0;
9
+ exports.Altitude = exports.MagneticDeclination = exports.Attitude = exports.BatteryBQ40Z50_BatteryChargingEvents = exports.BatteryBQ40Z50_BatterySafetyEvents = exports.BatteryBQ40Z50_BatteryLifetimes_CellVoltages = exports.BatteryBQ40Z50_BatteryLifetimes = exports.BatteryBQ40Z50_BatteryStatus = exports.BatteryBQ40Z50_Temperature = exports.BatteryBQ40Z50_Voltage = exports.BatteryBQ40Z50 = exports.Battery = exports.PowerCanister_Sensors = exports.PowerCanister = exports.CanisterHumidity = exports.CanisterTemperature = exports.CPUTemperature = exports.WaterTemperature = exports.PingerConfiguration = exports.WaterDensity = exports.TimeLapseState = exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.Gripper = exports.KnownPoseManipulatorInput = exports.CylindricalManipulatorInput = exports.CartesianManipulatorInput = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = exports.VisionTrackingState = exports.OrbitState = exports.ActiveTrackState = exports.SpotlightState = exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.LaserDetection = exports.Point2D = exports.Laser = exports.Lights = exports.MotionInput = void 0;
10
+ exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamColorFilter = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = exports.GuestPortCurrent = exports.MultibeamServo = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = exports.GuestPortDevice = exports.GnssStatus = exports.GnssSatellite = exports.NavigationSensorStatus = exports.OverlayParameters = exports.CameraParameters = exports.ErrorFlags = exports.DroneInfo = exports.CameraCalibration = exports.CvModelInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.RemovableStorageErrorFlags = exports.RemovableStorageDevice = exports.StoragePartition = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = exports.Depth = exports.DvlVelocity = exports.DvlTransducer = exports.ResetPositionSettings = exports.PositionEstimate = exports.ForwardDistance = void 0;
11
+ exports.Annotation = exports.SotState = exports.OperatorInfo = exports.CameraPanTiltZoom = exports.FilterMessage = exports.ModelDetections = exports.ObjectDetection = exports.SegmentationMask = exports.BoundingBox = exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = exports.SystemPerformanceInfo = exports.NvmeInfo = exports.VideoCodecInfo = exports.ThermalZone = exports.MemoryInfo = exports.DlaInfo = exports.GpuInfo = exports.CpuCoreLoad = exports.CPUInfo = exports.PersistentStorageSettings = void 0;
12
+ exports.manipulatorControlModeFromJSON = manipulatorControlModeFromJSON;
13
+ exports.manipulatorControlModeToJSON = manipulatorControlModeToJSON;
14
+ exports.manipulatorPoseFromJSON = manipulatorPoseFromJSON;
15
+ exports.manipulatorPoseToJSON = manipulatorPoseToJSON;
12
16
  exports.intervalTypeFromJSON = intervalTypeFromJSON;
13
17
  exports.intervalTypeToJSON = intervalTypeToJSON;
14
18
  exports.locationSourceFromJSON = locationSourceFromJSON;
@@ -107,6 +111,95 @@ const timestamp_1 = require("./google/protobuf/timestamp");
107
111
  *
108
112
  * These are used for logging as well as building requests and responses.
109
113
  */
114
+ /** How the arm input of the last command was read, as reported in telemetry. */
115
+ var ManipulatorControlMode;
116
+ (function (ManipulatorControlMode) {
117
+ /** MANIPULATOR_CONTROL_MODE_UNSPECIFIED - No arm input. */
118
+ ManipulatorControlMode[ManipulatorControlMode["MANIPULATOR_CONTROL_MODE_UNSPECIFIED"] = 0] = "MANIPULATOR_CONTROL_MODE_UNSPECIFIED";
119
+ /** MANIPULATOR_CONTROL_MODE_CYLINDRICAL - CylindricalManipulatorInput. */
120
+ ManipulatorControlMode[ManipulatorControlMode["MANIPULATOR_CONTROL_MODE_CYLINDRICAL"] = 1] = "MANIPULATOR_CONTROL_MODE_CYLINDRICAL";
121
+ /** MANIPULATOR_CONTROL_MODE_CARTESIAN - CartesianManipulatorInput. */
122
+ ManipulatorControlMode[ManipulatorControlMode["MANIPULATOR_CONTROL_MODE_CARTESIAN"] = 2] = "MANIPULATOR_CONTROL_MODE_CARTESIAN";
123
+ /** MANIPULATOR_CONTROL_MODE_KNOWN_POSE - KnownPoseManipulatorInput. */
124
+ ManipulatorControlMode[ManipulatorControlMode["MANIPULATOR_CONTROL_MODE_KNOWN_POSE"] = 3] = "MANIPULATOR_CONTROL_MODE_KNOWN_POSE";
125
+ ManipulatorControlMode[ManipulatorControlMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
126
+ })(ManipulatorControlMode || (exports.ManipulatorControlMode = ManipulatorControlMode = {}));
127
+ function manipulatorControlModeFromJSON(object) {
128
+ switch (object) {
129
+ case 0:
130
+ case "MANIPULATOR_CONTROL_MODE_UNSPECIFIED":
131
+ return ManipulatorControlMode.MANIPULATOR_CONTROL_MODE_UNSPECIFIED;
132
+ case 1:
133
+ case "MANIPULATOR_CONTROL_MODE_CYLINDRICAL":
134
+ return ManipulatorControlMode.MANIPULATOR_CONTROL_MODE_CYLINDRICAL;
135
+ case 2:
136
+ case "MANIPULATOR_CONTROL_MODE_CARTESIAN":
137
+ return ManipulatorControlMode.MANIPULATOR_CONTROL_MODE_CARTESIAN;
138
+ case 3:
139
+ case "MANIPULATOR_CONTROL_MODE_KNOWN_POSE":
140
+ return ManipulatorControlMode.MANIPULATOR_CONTROL_MODE_KNOWN_POSE;
141
+ case -1:
142
+ case "UNRECOGNIZED":
143
+ default:
144
+ return ManipulatorControlMode.UNRECOGNIZED;
145
+ }
146
+ }
147
+ function manipulatorControlModeToJSON(object) {
148
+ switch (object) {
149
+ case ManipulatorControlMode.MANIPULATOR_CONTROL_MODE_UNSPECIFIED:
150
+ return "MANIPULATOR_CONTROL_MODE_UNSPECIFIED";
151
+ case ManipulatorControlMode.MANIPULATOR_CONTROL_MODE_CYLINDRICAL:
152
+ return "MANIPULATOR_CONTROL_MODE_CYLINDRICAL";
153
+ case ManipulatorControlMode.MANIPULATOR_CONTROL_MODE_CARTESIAN:
154
+ return "MANIPULATOR_CONTROL_MODE_CARTESIAN";
155
+ case ManipulatorControlMode.MANIPULATOR_CONTROL_MODE_KNOWN_POSE:
156
+ return "MANIPULATOR_CONTROL_MODE_KNOWN_POSE";
157
+ case ManipulatorControlMode.UNRECOGNIZED:
158
+ default:
159
+ return "UNRECOGNIZED";
160
+ }
161
+ }
162
+ /** Named manipulator poses. */
163
+ var ManipulatorPose;
164
+ (function (ManipulatorPose) {
165
+ /** MANIPULATOR_POSE_UNSPECIFIED - No pose. */
166
+ ManipulatorPose[ManipulatorPose["MANIPULATOR_POSE_UNSPECIFIED"] = 0] = "MANIPULATOR_POSE_UNSPECIFIED";
167
+ /** MANIPULATOR_POSE_STOWED - Folded for transport, launch and recovery. */
168
+ ManipulatorPose[ManipulatorPose["MANIPULATOR_POSE_STOWED"] = 1] = "MANIPULATOR_POSE_STOWED";
169
+ /** MANIPULATOR_POSE_DEPLOYED - Unfolded and ready to work. */
170
+ ManipulatorPose[ManipulatorPose["MANIPULATOR_POSE_DEPLOYED"] = 2] = "MANIPULATOR_POSE_DEPLOYED";
171
+ ManipulatorPose[ManipulatorPose["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
172
+ })(ManipulatorPose || (exports.ManipulatorPose = ManipulatorPose = {}));
173
+ function manipulatorPoseFromJSON(object) {
174
+ switch (object) {
175
+ case 0:
176
+ case "MANIPULATOR_POSE_UNSPECIFIED":
177
+ return ManipulatorPose.MANIPULATOR_POSE_UNSPECIFIED;
178
+ case 1:
179
+ case "MANIPULATOR_POSE_STOWED":
180
+ return ManipulatorPose.MANIPULATOR_POSE_STOWED;
181
+ case 2:
182
+ case "MANIPULATOR_POSE_DEPLOYED":
183
+ return ManipulatorPose.MANIPULATOR_POSE_DEPLOYED;
184
+ case -1:
185
+ case "UNRECOGNIZED":
186
+ default:
187
+ return ManipulatorPose.UNRECOGNIZED;
188
+ }
189
+ }
190
+ function manipulatorPoseToJSON(object) {
191
+ switch (object) {
192
+ case ManipulatorPose.MANIPULATOR_POSE_UNSPECIFIED:
193
+ return "MANIPULATOR_POSE_UNSPECIFIED";
194
+ case ManipulatorPose.MANIPULATOR_POSE_STOWED:
195
+ return "MANIPULATOR_POSE_STOWED";
196
+ case ManipulatorPose.MANIPULATOR_POSE_DEPLOYED:
197
+ return "MANIPULATOR_POSE_DEPLOYED";
198
+ case ManipulatorPose.UNRECOGNIZED:
199
+ default:
200
+ return "UNRECOGNIZED";
201
+ }
202
+ }
110
203
  /** Interval type for time-lapse photos. */
111
204
  var IntervalType;
112
205
  (function (IntervalType) {
@@ -1452,6 +1545,8 @@ var GuestPortDeviceID;
1452
1545
  GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_WATERLINKED_DVL_A100"] = 50] = "GUEST_PORT_DEVICE_ID_WATERLINKED_DVL_A100";
1453
1546
  /** GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200 - Outland Technology MP-200 Manipulator. */
1454
1547
  GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200"] = 51] = "GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200";
1548
+ /** GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5 - Reach Robotics Reach Alpha 5 Manipulator. */
1549
+ GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5"] = 52] = "GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5";
1455
1550
  GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1456
1551
  })(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
1457
1552
  function guestPortDeviceIDFromJSON(object) {
@@ -1612,6 +1707,9 @@ function guestPortDeviceIDFromJSON(object) {
1612
1707
  case 51:
1613
1708
  case "GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200":
1614
1709
  return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200;
1710
+ case 52:
1711
+ case "GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5":
1712
+ return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5;
1615
1713
  case -1:
1616
1714
  case "UNRECOGNIZED":
1617
1715
  default:
@@ -1724,6 +1822,8 @@ function guestPortDeviceIDToJSON(object) {
1724
1822
  return "GUEST_PORT_DEVICE_ID_WATERLINKED_DVL_A100";
1725
1823
  case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200:
1726
1824
  return "GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200";
1825
+ case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5:
1826
+ return "GUEST_PORT_DEVICE_ID_REACH_ROBOTICS_REACH_ALPHA_5";
1727
1827
  case GuestPortDeviceID.UNRECOGNIZED:
1728
1828
  default:
1729
1829
  return "UNRECOGNIZED";
@@ -5064,6 +5164,420 @@ exports.GripperVelocities = {
5064
5164
  return message;
5065
5165
  },
5066
5166
  };
5167
+ function createBaseCartesianManipulatorInput() {
5168
+ return { x: 0, y: 0, z: 0 };
5169
+ }
5170
+ exports.CartesianManipulatorInput = {
5171
+ encode(message, writer = new wire_1.BinaryWriter()) {
5172
+ if (message.x !== 0) {
5173
+ writer.uint32(13).float(message.x);
5174
+ }
5175
+ if (message.y !== 0) {
5176
+ writer.uint32(21).float(message.y);
5177
+ }
5178
+ if (message.z !== 0) {
5179
+ writer.uint32(29).float(message.z);
5180
+ }
5181
+ return writer;
5182
+ },
5183
+ decode(input, length) {
5184
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5185
+ const end = length === undefined ? reader.len : reader.pos + length;
5186
+ const message = createBaseCartesianManipulatorInput();
5187
+ while (reader.pos < end) {
5188
+ const tag = reader.uint32();
5189
+ switch (tag >>> 3) {
5190
+ case 1: {
5191
+ if (tag !== 13) {
5192
+ break;
5193
+ }
5194
+ message.x = reader.float();
5195
+ continue;
5196
+ }
5197
+ case 2: {
5198
+ if (tag !== 21) {
5199
+ break;
5200
+ }
5201
+ message.y = reader.float();
5202
+ continue;
5203
+ }
5204
+ case 3: {
5205
+ if (tag !== 29) {
5206
+ break;
5207
+ }
5208
+ message.z = reader.float();
5209
+ continue;
5210
+ }
5211
+ }
5212
+ if ((tag & 7) === 4 || tag === 0) {
5213
+ break;
5214
+ }
5215
+ reader.skip(tag & 7);
5216
+ }
5217
+ return message;
5218
+ },
5219
+ fromJSON(object) {
5220
+ return {
5221
+ x: isSet(object.x) ? gt.Number(object.x) : 0,
5222
+ y: isSet(object.y) ? gt.Number(object.y) : 0,
5223
+ z: isSet(object.z) ? gt.Number(object.z) : 0,
5224
+ };
5225
+ },
5226
+ toJSON(message) {
5227
+ const obj = {};
5228
+ if (message.x !== 0) {
5229
+ obj.x = message.x;
5230
+ }
5231
+ if (message.y !== 0) {
5232
+ obj.y = message.y;
5233
+ }
5234
+ if (message.z !== 0) {
5235
+ obj.z = message.z;
5236
+ }
5237
+ return obj;
5238
+ },
5239
+ create(base) {
5240
+ return exports.CartesianManipulatorInput.fromPartial(base ?? {});
5241
+ },
5242
+ fromPartial(object) {
5243
+ const message = createBaseCartesianManipulatorInput();
5244
+ message.x = object.x ?? 0;
5245
+ message.y = object.y ?? 0;
5246
+ message.z = object.z ?? 0;
5247
+ return message;
5248
+ },
5249
+ };
5250
+ function createBaseCylindricalManipulatorInput() {
5251
+ return { radial: 0, vertical: 0, azimuth: 0 };
5252
+ }
5253
+ exports.CylindricalManipulatorInput = {
5254
+ encode(message, writer = new wire_1.BinaryWriter()) {
5255
+ if (message.radial !== 0) {
5256
+ writer.uint32(13).float(message.radial);
5257
+ }
5258
+ if (message.vertical !== 0) {
5259
+ writer.uint32(21).float(message.vertical);
5260
+ }
5261
+ if (message.azimuth !== 0) {
5262
+ writer.uint32(29).float(message.azimuth);
5263
+ }
5264
+ return writer;
5265
+ },
5266
+ decode(input, length) {
5267
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5268
+ const end = length === undefined ? reader.len : reader.pos + length;
5269
+ const message = createBaseCylindricalManipulatorInput();
5270
+ while (reader.pos < end) {
5271
+ const tag = reader.uint32();
5272
+ switch (tag >>> 3) {
5273
+ case 1: {
5274
+ if (tag !== 13) {
5275
+ break;
5276
+ }
5277
+ message.radial = reader.float();
5278
+ continue;
5279
+ }
5280
+ case 2: {
5281
+ if (tag !== 21) {
5282
+ break;
5283
+ }
5284
+ message.vertical = reader.float();
5285
+ continue;
5286
+ }
5287
+ case 3: {
5288
+ if (tag !== 29) {
5289
+ break;
5290
+ }
5291
+ message.azimuth = reader.float();
5292
+ continue;
5293
+ }
5294
+ }
5295
+ if ((tag & 7) === 4 || tag === 0) {
5296
+ break;
5297
+ }
5298
+ reader.skip(tag & 7);
5299
+ }
5300
+ return message;
5301
+ },
5302
+ fromJSON(object) {
5303
+ return {
5304
+ radial: isSet(object.radial) ? gt.Number(object.radial) : 0,
5305
+ vertical: isSet(object.vertical) ? gt.Number(object.vertical) : 0,
5306
+ azimuth: isSet(object.azimuth) ? gt.Number(object.azimuth) : 0,
5307
+ };
5308
+ },
5309
+ toJSON(message) {
5310
+ const obj = {};
5311
+ if (message.radial !== 0) {
5312
+ obj.radial = message.radial;
5313
+ }
5314
+ if (message.vertical !== 0) {
5315
+ obj.vertical = message.vertical;
5316
+ }
5317
+ if (message.azimuth !== 0) {
5318
+ obj.azimuth = message.azimuth;
5319
+ }
5320
+ return obj;
5321
+ },
5322
+ create(base) {
5323
+ return exports.CylindricalManipulatorInput.fromPartial(base ?? {});
5324
+ },
5325
+ fromPartial(object) {
5326
+ const message = createBaseCylindricalManipulatorInput();
5327
+ message.radial = object.radial ?? 0;
5328
+ message.vertical = object.vertical ?? 0;
5329
+ message.azimuth = object.azimuth ?? 0;
5330
+ return message;
5331
+ },
5332
+ };
5333
+ function createBaseKnownPoseManipulatorInput() {
5334
+ return { pose: 0, velocity: 0 };
5335
+ }
5336
+ exports.KnownPoseManipulatorInput = {
5337
+ encode(message, writer = new wire_1.BinaryWriter()) {
5338
+ if (message.pose !== 0) {
5339
+ writer.uint32(8).int32(message.pose);
5340
+ }
5341
+ if (message.velocity !== 0) {
5342
+ writer.uint32(21).float(message.velocity);
5343
+ }
5344
+ return writer;
5345
+ },
5346
+ decode(input, length) {
5347
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5348
+ const end = length === undefined ? reader.len : reader.pos + length;
5349
+ const message = createBaseKnownPoseManipulatorInput();
5350
+ while (reader.pos < end) {
5351
+ const tag = reader.uint32();
5352
+ switch (tag >>> 3) {
5353
+ case 1: {
5354
+ if (tag !== 8) {
5355
+ break;
5356
+ }
5357
+ message.pose = reader.int32();
5358
+ continue;
5359
+ }
5360
+ case 2: {
5361
+ if (tag !== 21) {
5362
+ break;
5363
+ }
5364
+ message.velocity = reader.float();
5365
+ continue;
5366
+ }
5367
+ }
5368
+ if ((tag & 7) === 4 || tag === 0) {
5369
+ break;
5370
+ }
5371
+ reader.skip(tag & 7);
5372
+ }
5373
+ return message;
5374
+ },
5375
+ fromJSON(object) {
5376
+ return {
5377
+ pose: isSet(object.pose) ? manipulatorPoseFromJSON(object.pose) : 0,
5378
+ velocity: isSet(object.velocity) ? gt.Number(object.velocity) : 0,
5379
+ };
5380
+ },
5381
+ toJSON(message) {
5382
+ const obj = {};
5383
+ if (message.pose !== 0) {
5384
+ obj.pose = manipulatorPoseToJSON(message.pose);
5385
+ }
5386
+ if (message.velocity !== 0) {
5387
+ obj.velocity = message.velocity;
5388
+ }
5389
+ return obj;
5390
+ },
5391
+ create(base) {
5392
+ return exports.KnownPoseManipulatorInput.fromPartial(base ?? {});
5393
+ },
5394
+ fromPartial(object) {
5395
+ const message = createBaseKnownPoseManipulatorInput();
5396
+ message.pose = object.pose ?? 0;
5397
+ message.velocity = object.velocity ?? 0;
5398
+ return message;
5399
+ },
5400
+ };
5401
+ function createBaseGripper() {
5402
+ return {
5403
+ mode: 0,
5404
+ jointPositions: [],
5405
+ endPosition: undefined,
5406
+ atLimit: false,
5407
+ collision: false,
5408
+ holding: false,
5409
+ fault: false,
5410
+ movingTo: 0,
5411
+ };
5412
+ }
5413
+ exports.Gripper = {
5414
+ encode(message, writer = new wire_1.BinaryWriter()) {
5415
+ if (message.mode !== 0) {
5416
+ writer.uint32(8).int32(message.mode);
5417
+ }
5418
+ writer.uint32(18).fork();
5419
+ for (const v of message.jointPositions) {
5420
+ writer.float(v);
5421
+ }
5422
+ writer.join();
5423
+ if (message.endPosition !== undefined) {
5424
+ exports.Vector3.encode(message.endPosition, writer.uint32(26).fork()).join();
5425
+ }
5426
+ if (message.atLimit !== false) {
5427
+ writer.uint32(32).bool(message.atLimit);
5428
+ }
5429
+ if (message.collision !== false) {
5430
+ writer.uint32(40).bool(message.collision);
5431
+ }
5432
+ if (message.holding !== false) {
5433
+ writer.uint32(48).bool(message.holding);
5434
+ }
5435
+ if (message.fault !== false) {
5436
+ writer.uint32(56).bool(message.fault);
5437
+ }
5438
+ if (message.movingTo !== 0) {
5439
+ writer.uint32(64).int32(message.movingTo);
5440
+ }
5441
+ return writer;
5442
+ },
5443
+ decode(input, length) {
5444
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5445
+ const end = length === undefined ? reader.len : reader.pos + length;
5446
+ const message = createBaseGripper();
5447
+ while (reader.pos < end) {
5448
+ const tag = reader.uint32();
5449
+ switch (tag >>> 3) {
5450
+ case 1: {
5451
+ if (tag !== 8) {
5452
+ break;
5453
+ }
5454
+ message.mode = reader.int32();
5455
+ continue;
5456
+ }
5457
+ case 2: {
5458
+ if (tag === 21) {
5459
+ message.jointPositions.push(reader.float());
5460
+ continue;
5461
+ }
5462
+ if (tag === 18) {
5463
+ const end2 = reader.uint32() + reader.pos;
5464
+ while (reader.pos < end2) {
5465
+ message.jointPositions.push(reader.float());
5466
+ }
5467
+ continue;
5468
+ }
5469
+ break;
5470
+ }
5471
+ case 3: {
5472
+ if (tag !== 26) {
5473
+ break;
5474
+ }
5475
+ message.endPosition = exports.Vector3.decode(reader, reader.uint32());
5476
+ continue;
5477
+ }
5478
+ case 4: {
5479
+ if (tag !== 32) {
5480
+ break;
5481
+ }
5482
+ message.atLimit = reader.bool();
5483
+ continue;
5484
+ }
5485
+ case 5: {
5486
+ if (tag !== 40) {
5487
+ break;
5488
+ }
5489
+ message.collision = reader.bool();
5490
+ continue;
5491
+ }
5492
+ case 6: {
5493
+ if (tag !== 48) {
5494
+ break;
5495
+ }
5496
+ message.holding = reader.bool();
5497
+ continue;
5498
+ }
5499
+ case 7: {
5500
+ if (tag !== 56) {
5501
+ break;
5502
+ }
5503
+ message.fault = reader.bool();
5504
+ continue;
5505
+ }
5506
+ case 8: {
5507
+ if (tag !== 64) {
5508
+ break;
5509
+ }
5510
+ message.movingTo = reader.int32();
5511
+ continue;
5512
+ }
5513
+ }
5514
+ if ((tag & 7) === 4 || tag === 0) {
5515
+ break;
5516
+ }
5517
+ reader.skip(tag & 7);
5518
+ }
5519
+ return message;
5520
+ },
5521
+ fromJSON(object) {
5522
+ return {
5523
+ mode: isSet(object.mode) ? manipulatorControlModeFromJSON(object.mode) : 0,
5524
+ jointPositions: gt.Array.isArray(object?.jointPositions)
5525
+ ? object.jointPositions.map((e) => gt.Number(e))
5526
+ : [],
5527
+ endPosition: isSet(object.endPosition) ? exports.Vector3.fromJSON(object.endPosition) : undefined,
5528
+ atLimit: isSet(object.atLimit) ? gt.Boolean(object.atLimit) : false,
5529
+ collision: isSet(object.collision) ? gt.Boolean(object.collision) : false,
5530
+ holding: isSet(object.holding) ? gt.Boolean(object.holding) : false,
5531
+ fault: isSet(object.fault) ? gt.Boolean(object.fault) : false,
5532
+ movingTo: isSet(object.movingTo) ? manipulatorPoseFromJSON(object.movingTo) : 0,
5533
+ };
5534
+ },
5535
+ toJSON(message) {
5536
+ const obj = {};
5537
+ if (message.mode !== 0) {
5538
+ obj.mode = manipulatorControlModeToJSON(message.mode);
5539
+ }
5540
+ if (message.jointPositions?.length) {
5541
+ obj.jointPositions = message.jointPositions;
5542
+ }
5543
+ if (message.endPosition !== undefined) {
5544
+ obj.endPosition = exports.Vector3.toJSON(message.endPosition);
5545
+ }
5546
+ if (message.atLimit !== false) {
5547
+ obj.atLimit = message.atLimit;
5548
+ }
5549
+ if (message.collision !== false) {
5550
+ obj.collision = message.collision;
5551
+ }
5552
+ if (message.holding !== false) {
5553
+ obj.holding = message.holding;
5554
+ }
5555
+ if (message.fault !== false) {
5556
+ obj.fault = message.fault;
5557
+ }
5558
+ if (message.movingTo !== 0) {
5559
+ obj.movingTo = manipulatorPoseToJSON(message.movingTo);
5560
+ }
5561
+ return obj;
5562
+ },
5563
+ create(base) {
5564
+ return exports.Gripper.fromPartial(base ?? {});
5565
+ },
5566
+ fromPartial(object) {
5567
+ const message = createBaseGripper();
5568
+ message.mode = object.mode ?? 0;
5569
+ message.jointPositions = object.jointPositions?.map((e) => e) || [];
5570
+ message.endPosition = (object.endPosition !== undefined && object.endPosition !== null)
5571
+ ? exports.Vector3.fromPartial(object.endPosition)
5572
+ : undefined;
5573
+ message.atLimit = object.atLimit ?? false;
5574
+ message.collision = object.collision ?? false;
5575
+ message.holding = object.holding ?? false;
5576
+ message.fault = object.fault ?? false;
5577
+ message.movingTo = object.movingTo ?? 0;
5578
+ return message;
5579
+ },
5580
+ };
5067
5581
  function createBaseClientInfo() {
5068
5582
  return { type: "", version: "", deviceType: "", platform: "", platformVersion: "", name: "", isObserver: false };
5069
5583
  }
@@ -1,6 +1,6 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { AquaTrollProbeMetadata, AquaTrollSensorMetadataArray, AquaTrollSensorParametersArray } from "./aquatroll";
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, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LaserDetection, LatLongPosition, Lights, LogEntry, MagneticDeclination, 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";
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, 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";
4
4
  import { MissionStatus, ReferenceAutoPilot } from "./mission_planning";
5
5
  /**
6
6
  * Telemetry
@@ -276,6 +276,11 @@ export interface MultibeamServoTel {
276
276
  /** Servo set point (-30..30). */
277
277
  setPoint: number;
278
278
  }
279
+ /** State of a gripper, published while one is connected. */
280
+ export interface GripperTel {
281
+ /** Gripper state. */
282
+ gripper: Gripper | undefined;
283
+ }
279
284
  /** GuestPort current readings. */
280
285
  export interface GuestPortCurrentTel {
281
286
  /** Guest port current readings. */
@@ -459,6 +464,7 @@ export declare const AquaTrollSensorParametersTel: MessageFns<AquaTrollSensorPar
459
464
  export declare const ConnectedClientsTel: MessageFns<ConnectedClientsTel>;
460
465
  export declare const GenericServoTel: MessageFns<GenericServoTel>;
461
466
  export declare const MultibeamServoTel: MessageFns<MultibeamServoTel>;
467
+ export declare const GripperTel: MessageFns<GripperTel>;
462
468
  export declare const GuestPortCurrentTel: MessageFns<GuestPortCurrentTel>;
463
469
  export declare const CalibratedImuTel: MessageFns<CalibratedImuTel>;
464
470
  export declare const Imu1Tel: MessageFns<Imu1Tel>;
package/dist/telemetry.js CHANGED
@@ -5,8 +5,8 @@
5
5
  // protoc v3.21.12
6
6
  // source: telemetry.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.CalibratedImuTel = exports.GuestPortCurrentTel = exports.MultibeamServoTel = exports.GenericServoTel = exports.ConnectedClientsTel = exports.AquaTrollSensorParametersTel = exports.AquaTrollSensorMetadataTel = exports.AquaTrollProbeMetadataTel = exports.CpProbeTel = exports.ThicknessGaugeTel = exports.ControlModeTel = exports.ErrorFlagsTel = exports.DroneInfoTel = exports.TiltAngleTel = exports.NStreamersTel = exports.IperfTel = exports.TiltStabilizationTel = exports.CalibrationStateTel = exports.DataStorageSpaceTel = exports.RemovableStorageTel = exports.VideoStorageSpaceTel = exports.PowerCanisterTel = exports.CanisterBottomHumidityTel = exports.CanisterBottomTemperatureTel = exports.CPUTemperatureTel = exports.WaterTemperatureTel = exports.DroneTimeTel = exports.DiveTimeTel = exports.BatteryBQ40Z50Tel = exports.BatteryTel = exports.TimeLapseStateTel = exports.RecordStateTel = exports.GnssStatusTel = exports.PilotGPSPositionTel = exports.LaserTel = exports.GuestPortLightsTel = exports.LightsTel = exports.ControllerHealthTel = exports.ControlForceTel = exports.NotificationTel = exports.MissionStatusTel = exports.ReferenceAutoPilotTel = exports.ReferenceTel = exports.DepthTel = exports.PositionEstimateTel = exports.DvlVelocityTel = exports.ForwardDistanceTel = exports.AltitudeTel = exports.MagneticDeclinationTel = exports.AttitudeTel = void 0;
9
- exports.AnnotationTel = exports.SotStateTel = exports.CameraPanTiltZoomTel = exports.ColorCorrectionTel = exports.TurbidityFilterTel = exports.ObjectDetectionsTel = exports.LogEntryTel = exports.SurfaceUnitTel = exports.SystemPerformanceInfoTel = exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = exports.MedusaSpectrometerDataTel = exports.CalibratedImuHpTel = exports.ImuHpTel = exports.Imu2Tel = exports.Imu1Tel = void 0;
8
+ exports.GuestPortCurrentTel = exports.GripperTel = exports.MultibeamServoTel = exports.GenericServoTel = exports.ConnectedClientsTel = exports.AquaTrollSensorParametersTel = exports.AquaTrollSensorMetadataTel = exports.AquaTrollProbeMetadataTel = exports.CpProbeTel = exports.ThicknessGaugeTel = exports.ControlModeTel = exports.ErrorFlagsTel = exports.DroneInfoTel = exports.TiltAngleTel = exports.NStreamersTel = exports.IperfTel = exports.TiltStabilizationTel = exports.CalibrationStateTel = exports.DataStorageSpaceTel = exports.RemovableStorageTel = exports.VideoStorageSpaceTel = exports.PowerCanisterTel = exports.CanisterBottomHumidityTel = exports.CanisterBottomTemperatureTel = exports.CPUTemperatureTel = exports.WaterTemperatureTel = exports.DroneTimeTel = exports.DiveTimeTel = exports.BatteryBQ40Z50Tel = exports.BatteryTel = exports.TimeLapseStateTel = exports.RecordStateTel = exports.GnssStatusTel = exports.PilotGPSPositionTel = exports.LaserTel = exports.GuestPortLightsTel = exports.LightsTel = exports.ControllerHealthTel = exports.ControlForceTel = exports.NotificationTel = exports.MissionStatusTel = exports.ReferenceAutoPilotTel = exports.ReferenceTel = exports.DepthTel = exports.PositionEstimateTel = exports.DvlVelocityTel = exports.ForwardDistanceTel = exports.AltitudeTel = exports.MagneticDeclinationTel = exports.AttitudeTel = void 0;
9
+ exports.AnnotationTel = exports.SotStateTel = exports.CameraPanTiltZoomTel = exports.ColorCorrectionTel = exports.TurbidityFilterTel = exports.ObjectDetectionsTel = exports.LogEntryTel = exports.SurfaceUnitTel = exports.SystemPerformanceInfoTel = exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = exports.MedusaSpectrometerDataTel = exports.CalibratedImuHpTel = exports.ImuHpTel = exports.Imu2Tel = exports.Imu1Tel = exports.CalibratedImuTel = void 0;
10
10
  /* eslint-disable */
11
11
  const wire_1 = require("@bufbuild/protobuf/wire");
12
12
  const aquatroll_1 = require("./aquatroll");
@@ -2720,6 +2720,59 @@ exports.MultibeamServoTel = {
2720
2720
  return message;
2721
2721
  },
2722
2722
  };
2723
+ function createBaseGripperTel() {
2724
+ return { gripper: undefined };
2725
+ }
2726
+ exports.GripperTel = {
2727
+ encode(message, writer = new wire_1.BinaryWriter()) {
2728
+ if (message.gripper !== undefined) {
2729
+ message_formats_1.Gripper.encode(message.gripper, writer.uint32(10).fork()).join();
2730
+ }
2731
+ return writer;
2732
+ },
2733
+ decode(input, length) {
2734
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2735
+ const end = length === undefined ? reader.len : reader.pos + length;
2736
+ const message = createBaseGripperTel();
2737
+ while (reader.pos < end) {
2738
+ const tag = reader.uint32();
2739
+ switch (tag >>> 3) {
2740
+ case 1: {
2741
+ if (tag !== 10) {
2742
+ break;
2743
+ }
2744
+ message.gripper = message_formats_1.Gripper.decode(reader, reader.uint32());
2745
+ continue;
2746
+ }
2747
+ }
2748
+ if ((tag & 7) === 4 || tag === 0) {
2749
+ break;
2750
+ }
2751
+ reader.skip(tag & 7);
2752
+ }
2753
+ return message;
2754
+ },
2755
+ fromJSON(object) {
2756
+ return { gripper: isSet(object.gripper) ? message_formats_1.Gripper.fromJSON(object.gripper) : undefined };
2757
+ },
2758
+ toJSON(message) {
2759
+ const obj = {};
2760
+ if (message.gripper !== undefined) {
2761
+ obj.gripper = message_formats_1.Gripper.toJSON(message.gripper);
2762
+ }
2763
+ return obj;
2764
+ },
2765
+ create(base) {
2766
+ return exports.GripperTel.fromPartial(base ?? {});
2767
+ },
2768
+ fromPartial(object) {
2769
+ const message = createBaseGripperTel();
2770
+ message.gripper = (object.gripper !== undefined && object.gripper !== null)
2771
+ ? message_formats_1.Gripper.fromPartial(object.gripper)
2772
+ : undefined;
2773
+ return message;
2774
+ },
2775
+ };
2723
2776
  function createBaseGuestPortCurrentTel() {
2724
2777
  return { current: undefined };
2725
2778
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueyerobotics/protocol-definitions",
3
- "version": "3.3.0-2b26d5f0",
3
+ "version": "3.3.0-2d5d3956",
4
4
  "license": "LGPL-3.0-only",
5
5
  "description": "TypeScript definitions for Blueye Robotics protocols",
6
6
  "repository": {