@blueyerobotics/protocol-definitions 3.3.0-2d41d872 → 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 +18 -2
- package/dist/control.js +73 -1
- package/dist/message_formats.d.ts +141 -4
- package/dist/message_formats.js +807 -5
- package/dist/req_rep.d.ts +21 -1
- package/dist/req_rep.js +181 -0
- package/dist/telemetry.d.ts +13 -1
- package/dist/telemetry.js +108 -2
- package/package.json +1 -1
package/dist/message_formats.js
CHANGED
|
@@ -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.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
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 = 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) {
|
|
@@ -390,6 +483,8 @@ var NotificationType;
|
|
|
390
483
|
NotificationType[NotificationType["NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED"] = 32] = "NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED";
|
|
391
484
|
/** NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED - Video partition not mounted. */
|
|
392
485
|
NotificationType[NotificationType["NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED"] = 33] = "NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED";
|
|
486
|
+
/** NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED - DVL firmware speaks a protocol version Blunux does not support. */
|
|
487
|
+
NotificationType[NotificationType["NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED"] = 34] = "NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED";
|
|
393
488
|
NotificationType[NotificationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
394
489
|
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
395
490
|
function notificationTypeFromJSON(object) {
|
|
@@ -496,6 +591,9 @@ function notificationTypeFromJSON(object) {
|
|
|
496
591
|
case 33:
|
|
497
592
|
case "NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED":
|
|
498
593
|
return NotificationType.NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED;
|
|
594
|
+
case 34:
|
|
595
|
+
case "NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED":
|
|
596
|
+
return NotificationType.NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED;
|
|
499
597
|
case -1:
|
|
500
598
|
case "UNRECOGNIZED":
|
|
501
599
|
default:
|
|
@@ -572,6 +670,8 @@ function notificationTypeToJSON(object) {
|
|
|
572
670
|
return "NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED";
|
|
573
671
|
case NotificationType.NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED:
|
|
574
672
|
return "NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED";
|
|
673
|
+
case NotificationType.NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED:
|
|
674
|
+
return "NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED";
|
|
575
675
|
case NotificationType.UNRECOGNIZED:
|
|
576
676
|
default:
|
|
577
677
|
return "UNRECOGNIZED";
|
|
@@ -1259,7 +1359,10 @@ function thicknessUnitToJSON(object) {
|
|
|
1259
1359
|
/** Available font sizes for overlay text elements. */
|
|
1260
1360
|
var FontSize;
|
|
1261
1361
|
(function (FontSize) {
|
|
1262
|
-
/**
|
|
1362
|
+
/**
|
|
1363
|
+
* FONT_SIZE_UNSPECIFIED - Font size and margins derived from the recording resolution (Blunux >= 5.2).
|
|
1364
|
+
* Older firmware defaults to 25px.
|
|
1365
|
+
*/
|
|
1263
1366
|
FontSize[FontSize["FONT_SIZE_UNSPECIFIED"] = 0] = "FONT_SIZE_UNSPECIFIED";
|
|
1264
1367
|
/** FONT_SIZE_PX15 - 15 px. */
|
|
1265
1368
|
FontSize[FontSize["FONT_SIZE_PX15"] = 1] = "FONT_SIZE_PX15";
|
|
@@ -1440,6 +1543,10 @@ var GuestPortDeviceID;
|
|
|
1440
1543
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CYGNUS_MINI_ROV_THICKNESS_GAUGE_RS232"] = 49] = "GUEST_PORT_DEVICE_ID_CYGNUS_MINI_ROV_THICKNESS_GAUGE_RS232";
|
|
1441
1544
|
/** GUEST_PORT_DEVICE_ID_WATERLINKED_DVL_A100 - Waterlinked DVL A100. */
|
|
1442
1545
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_WATERLINKED_DVL_A100"] = 50] = "GUEST_PORT_DEVICE_ID_WATERLINKED_DVL_A100";
|
|
1546
|
+
/** GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200 - Outland Technology MP-200 Manipulator. */
|
|
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";
|
|
1443
1550
|
GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1444
1551
|
})(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
|
|
1445
1552
|
function guestPortDeviceIDFromJSON(object) {
|
|
@@ -1597,6 +1704,12 @@ function guestPortDeviceIDFromJSON(object) {
|
|
|
1597
1704
|
case 50:
|
|
1598
1705
|
case "GUEST_PORT_DEVICE_ID_WATERLINKED_DVL_A100":
|
|
1599
1706
|
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_WATERLINKED_DVL_A100;
|
|
1707
|
+
case 51:
|
|
1708
|
+
case "GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200":
|
|
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;
|
|
1600
1713
|
case -1:
|
|
1601
1714
|
case "UNRECOGNIZED":
|
|
1602
1715
|
default:
|
|
@@ -1707,6 +1820,10 @@ function guestPortDeviceIDToJSON(object) {
|
|
|
1707
1820
|
return "GUEST_PORT_DEVICE_ID_CYGNUS_MINI_ROV_THICKNESS_GAUGE_RS232";
|
|
1708
1821
|
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_WATERLINKED_DVL_A100:
|
|
1709
1822
|
return "GUEST_PORT_DEVICE_ID_WATERLINKED_DVL_A100";
|
|
1823
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_OUTLAND_TECHNOLOGY_MP200:
|
|
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";
|
|
1710
1827
|
case GuestPortDeviceID.UNRECOGNIZED:
|
|
1711
1828
|
default:
|
|
1712
1829
|
return "UNRECOGNIZED";
|
|
@@ -5047,6 +5164,420 @@ exports.GripperVelocities = {
|
|
|
5047
5164
|
return message;
|
|
5048
5165
|
},
|
|
5049
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
|
+
};
|
|
5050
5581
|
function createBaseClientInfo() {
|
|
5051
5582
|
return { type: "", version: "", deviceType: "", platform: "", platformVersion: "", name: "", isObserver: false };
|
|
5052
5583
|
}
|
|
@@ -5888,6 +6419,146 @@ exports.CanisterHumidity = {
|
|
|
5888
6419
|
return message;
|
|
5889
6420
|
},
|
|
5890
6421
|
};
|
|
6422
|
+
function createBasePowerCanister() {
|
|
6423
|
+
return { frontEsc: undefined, rearEsc: undefined };
|
|
6424
|
+
}
|
|
6425
|
+
exports.PowerCanister = {
|
|
6426
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
6427
|
+
if (message.frontEsc !== undefined) {
|
|
6428
|
+
exports.PowerCanister_Sensors.encode(message.frontEsc, writer.uint32(10).fork()).join();
|
|
6429
|
+
}
|
|
6430
|
+
if (message.rearEsc !== undefined) {
|
|
6431
|
+
exports.PowerCanister_Sensors.encode(message.rearEsc, writer.uint32(18).fork()).join();
|
|
6432
|
+
}
|
|
6433
|
+
return writer;
|
|
6434
|
+
},
|
|
6435
|
+
decode(input, length) {
|
|
6436
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
6437
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6438
|
+
const message = createBasePowerCanister();
|
|
6439
|
+
while (reader.pos < end) {
|
|
6440
|
+
const tag = reader.uint32();
|
|
6441
|
+
switch (tag >>> 3) {
|
|
6442
|
+
case 1: {
|
|
6443
|
+
if (tag !== 10) {
|
|
6444
|
+
break;
|
|
6445
|
+
}
|
|
6446
|
+
message.frontEsc = exports.PowerCanister_Sensors.decode(reader, reader.uint32());
|
|
6447
|
+
continue;
|
|
6448
|
+
}
|
|
6449
|
+
case 2: {
|
|
6450
|
+
if (tag !== 18) {
|
|
6451
|
+
break;
|
|
6452
|
+
}
|
|
6453
|
+
message.rearEsc = exports.PowerCanister_Sensors.decode(reader, reader.uint32());
|
|
6454
|
+
continue;
|
|
6455
|
+
}
|
|
6456
|
+
}
|
|
6457
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6458
|
+
break;
|
|
6459
|
+
}
|
|
6460
|
+
reader.skip(tag & 7);
|
|
6461
|
+
}
|
|
6462
|
+
return message;
|
|
6463
|
+
},
|
|
6464
|
+
fromJSON(object) {
|
|
6465
|
+
return {
|
|
6466
|
+
frontEsc: isSet(object.frontEsc) ? exports.PowerCanister_Sensors.fromJSON(object.frontEsc) : undefined,
|
|
6467
|
+
rearEsc: isSet(object.rearEsc) ? exports.PowerCanister_Sensors.fromJSON(object.rearEsc) : undefined,
|
|
6468
|
+
};
|
|
6469
|
+
},
|
|
6470
|
+
toJSON(message) {
|
|
6471
|
+
const obj = {};
|
|
6472
|
+
if (message.frontEsc !== undefined) {
|
|
6473
|
+
obj.frontEsc = exports.PowerCanister_Sensors.toJSON(message.frontEsc);
|
|
6474
|
+
}
|
|
6475
|
+
if (message.rearEsc !== undefined) {
|
|
6476
|
+
obj.rearEsc = exports.PowerCanister_Sensors.toJSON(message.rearEsc);
|
|
6477
|
+
}
|
|
6478
|
+
return obj;
|
|
6479
|
+
},
|
|
6480
|
+
create(base) {
|
|
6481
|
+
return exports.PowerCanister.fromPartial(base ?? {});
|
|
6482
|
+
},
|
|
6483
|
+
fromPartial(object) {
|
|
6484
|
+
const message = createBasePowerCanister();
|
|
6485
|
+
message.frontEsc = (object.frontEsc !== undefined && object.frontEsc !== null)
|
|
6486
|
+
? exports.PowerCanister_Sensors.fromPartial(object.frontEsc)
|
|
6487
|
+
: undefined;
|
|
6488
|
+
message.rearEsc = (object.rearEsc !== undefined && object.rearEsc !== null)
|
|
6489
|
+
? exports.PowerCanister_Sensors.fromPartial(object.rearEsc)
|
|
6490
|
+
: undefined;
|
|
6491
|
+
return message;
|
|
6492
|
+
},
|
|
6493
|
+
};
|
|
6494
|
+
function createBasePowerCanister_Sensors() {
|
|
6495
|
+
return { temperature: 0, humidity: 0 };
|
|
6496
|
+
}
|
|
6497
|
+
exports.PowerCanister_Sensors = {
|
|
6498
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
6499
|
+
if (message.temperature !== 0) {
|
|
6500
|
+
writer.uint32(13).float(message.temperature);
|
|
6501
|
+
}
|
|
6502
|
+
if (message.humidity !== 0) {
|
|
6503
|
+
writer.uint32(21).float(message.humidity);
|
|
6504
|
+
}
|
|
6505
|
+
return writer;
|
|
6506
|
+
},
|
|
6507
|
+
decode(input, length) {
|
|
6508
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
6509
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6510
|
+
const message = createBasePowerCanister_Sensors();
|
|
6511
|
+
while (reader.pos < end) {
|
|
6512
|
+
const tag = reader.uint32();
|
|
6513
|
+
switch (tag >>> 3) {
|
|
6514
|
+
case 1: {
|
|
6515
|
+
if (tag !== 13) {
|
|
6516
|
+
break;
|
|
6517
|
+
}
|
|
6518
|
+
message.temperature = reader.float();
|
|
6519
|
+
continue;
|
|
6520
|
+
}
|
|
6521
|
+
case 2: {
|
|
6522
|
+
if (tag !== 21) {
|
|
6523
|
+
break;
|
|
6524
|
+
}
|
|
6525
|
+
message.humidity = reader.float();
|
|
6526
|
+
continue;
|
|
6527
|
+
}
|
|
6528
|
+
}
|
|
6529
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6530
|
+
break;
|
|
6531
|
+
}
|
|
6532
|
+
reader.skip(tag & 7);
|
|
6533
|
+
}
|
|
6534
|
+
return message;
|
|
6535
|
+
},
|
|
6536
|
+
fromJSON(object) {
|
|
6537
|
+
return {
|
|
6538
|
+
temperature: isSet(object.temperature) ? gt.Number(object.temperature) : 0,
|
|
6539
|
+
humidity: isSet(object.humidity) ? gt.Number(object.humidity) : 0,
|
|
6540
|
+
};
|
|
6541
|
+
},
|
|
6542
|
+
toJSON(message) {
|
|
6543
|
+
const obj = {};
|
|
6544
|
+
if (message.temperature !== 0) {
|
|
6545
|
+
obj.temperature = message.temperature;
|
|
6546
|
+
}
|
|
6547
|
+
if (message.humidity !== 0) {
|
|
6548
|
+
obj.humidity = message.humidity;
|
|
6549
|
+
}
|
|
6550
|
+
return obj;
|
|
6551
|
+
},
|
|
6552
|
+
create(base) {
|
|
6553
|
+
return exports.PowerCanister_Sensors.fromPartial(base ?? {});
|
|
6554
|
+
},
|
|
6555
|
+
fromPartial(object) {
|
|
6556
|
+
const message = createBasePowerCanister_Sensors();
|
|
6557
|
+
message.temperature = object.temperature ?? 0;
|
|
6558
|
+
message.humidity = object.humidity ?? 0;
|
|
6559
|
+
return message;
|
|
6560
|
+
},
|
|
6561
|
+
};
|
|
5891
6562
|
function createBaseBattery() {
|
|
5892
6563
|
return { voltage: 0, level: 0, temperature: 0 };
|
|
5893
6564
|
}
|
|
@@ -10849,9 +11520,14 @@ function createBaseErrorFlags() {
|
|
|
10849
11520
|
gp65vCurrent: false,
|
|
10850
11521
|
dvlThermalProtectionMode: false,
|
|
10851
11522
|
dvlNoPower: false,
|
|
11523
|
+
dvlProtocolUnsupported: false,
|
|
10852
11524
|
usbDisconnect: false,
|
|
10853
11525
|
videoUrbError: false,
|
|
10854
11526
|
hardwareNotSupported: false,
|
|
11527
|
+
imu1: false,
|
|
11528
|
+
imu2: false,
|
|
11529
|
+
imuHp: false,
|
|
11530
|
+
imuAttitude: false,
|
|
10855
11531
|
};
|
|
10856
11532
|
}
|
|
10857
11533
|
exports.ErrorFlags = {
|
|
@@ -11096,6 +11772,9 @@ exports.ErrorFlags = {
|
|
|
11096
11772
|
if (message.dvlNoPower !== false) {
|
|
11097
11773
|
writer.uint32(352).bool(message.dvlNoPower);
|
|
11098
11774
|
}
|
|
11775
|
+
if (message.dvlProtocolUnsupported !== false) {
|
|
11776
|
+
writer.uint32(672).bool(message.dvlProtocolUnsupported);
|
|
11777
|
+
}
|
|
11099
11778
|
if (message.usbDisconnect !== false) {
|
|
11100
11779
|
writer.uint32(360).bool(message.usbDisconnect);
|
|
11101
11780
|
}
|
|
@@ -11105,6 +11784,18 @@ exports.ErrorFlags = {
|
|
|
11105
11784
|
if (message.hardwareNotSupported !== false) {
|
|
11106
11785
|
writer.uint32(376).bool(message.hardwareNotSupported);
|
|
11107
11786
|
}
|
|
11787
|
+
if (message.imu1 !== false) {
|
|
11788
|
+
writer.uint32(680).bool(message.imu1);
|
|
11789
|
+
}
|
|
11790
|
+
if (message.imu2 !== false) {
|
|
11791
|
+
writer.uint32(688).bool(message.imu2);
|
|
11792
|
+
}
|
|
11793
|
+
if (message.imuHp !== false) {
|
|
11794
|
+
writer.uint32(696).bool(message.imuHp);
|
|
11795
|
+
}
|
|
11796
|
+
if (message.imuAttitude !== false) {
|
|
11797
|
+
writer.uint32(704).bool(message.imuAttitude);
|
|
11798
|
+
}
|
|
11108
11799
|
return writer;
|
|
11109
11800
|
},
|
|
11110
11801
|
decode(input, length) {
|
|
@@ -11674,6 +12365,13 @@ exports.ErrorFlags = {
|
|
|
11674
12365
|
message.dvlNoPower = reader.bool();
|
|
11675
12366
|
continue;
|
|
11676
12367
|
}
|
|
12368
|
+
case 84: {
|
|
12369
|
+
if (tag !== 672) {
|
|
12370
|
+
break;
|
|
12371
|
+
}
|
|
12372
|
+
message.dvlProtocolUnsupported = reader.bool();
|
|
12373
|
+
continue;
|
|
12374
|
+
}
|
|
11677
12375
|
case 45: {
|
|
11678
12376
|
if (tag !== 360) {
|
|
11679
12377
|
break;
|
|
@@ -11695,6 +12393,34 @@ exports.ErrorFlags = {
|
|
|
11695
12393
|
message.hardwareNotSupported = reader.bool();
|
|
11696
12394
|
continue;
|
|
11697
12395
|
}
|
|
12396
|
+
case 85: {
|
|
12397
|
+
if (tag !== 680) {
|
|
12398
|
+
break;
|
|
12399
|
+
}
|
|
12400
|
+
message.imu1 = reader.bool();
|
|
12401
|
+
continue;
|
|
12402
|
+
}
|
|
12403
|
+
case 86: {
|
|
12404
|
+
if (tag !== 688) {
|
|
12405
|
+
break;
|
|
12406
|
+
}
|
|
12407
|
+
message.imu2 = reader.bool();
|
|
12408
|
+
continue;
|
|
12409
|
+
}
|
|
12410
|
+
case 87: {
|
|
12411
|
+
if (tag !== 696) {
|
|
12412
|
+
break;
|
|
12413
|
+
}
|
|
12414
|
+
message.imuHp = reader.bool();
|
|
12415
|
+
continue;
|
|
12416
|
+
}
|
|
12417
|
+
case 88: {
|
|
12418
|
+
if (tag !== 704) {
|
|
12419
|
+
break;
|
|
12420
|
+
}
|
|
12421
|
+
message.imuAttitude = reader.bool();
|
|
12422
|
+
continue;
|
|
12423
|
+
}
|
|
11698
12424
|
}
|
|
11699
12425
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11700
12426
|
break;
|
|
@@ -11791,9 +12517,14 @@ exports.ErrorFlags = {
|
|
|
11791
12517
|
? gt.Boolean(object.dvlThermalProtectionMode)
|
|
11792
12518
|
: false,
|
|
11793
12519
|
dvlNoPower: isSet(object.dvlNoPower) ? gt.Boolean(object.dvlNoPower) : false,
|
|
12520
|
+
dvlProtocolUnsupported: isSet(object.dvlProtocolUnsupported) ? gt.Boolean(object.dvlProtocolUnsupported) : false,
|
|
11794
12521
|
usbDisconnect: isSet(object.usbDisconnect) ? gt.Boolean(object.usbDisconnect) : false,
|
|
11795
12522
|
videoUrbError: isSet(object.videoUrbError) ? gt.Boolean(object.videoUrbError) : false,
|
|
11796
12523
|
hardwareNotSupported: isSet(object.hardwareNotSupported) ? gt.Boolean(object.hardwareNotSupported) : false,
|
|
12524
|
+
imu1: isSet(object.imu1) ? gt.Boolean(object.imu1) : false,
|
|
12525
|
+
imu2: isSet(object.imu2) ? gt.Boolean(object.imu2) : false,
|
|
12526
|
+
imuHp: isSet(object.imuHp) ? gt.Boolean(object.imuHp) : false,
|
|
12527
|
+
imuAttitude: isSet(object.imuAttitude) ? gt.Boolean(object.imuAttitude) : false,
|
|
11797
12528
|
};
|
|
11798
12529
|
},
|
|
11799
12530
|
toJSON(message) {
|
|
@@ -12038,6 +12769,9 @@ exports.ErrorFlags = {
|
|
|
12038
12769
|
if (message.dvlNoPower !== false) {
|
|
12039
12770
|
obj.dvlNoPower = message.dvlNoPower;
|
|
12040
12771
|
}
|
|
12772
|
+
if (message.dvlProtocolUnsupported !== false) {
|
|
12773
|
+
obj.dvlProtocolUnsupported = message.dvlProtocolUnsupported;
|
|
12774
|
+
}
|
|
12041
12775
|
if (message.usbDisconnect !== false) {
|
|
12042
12776
|
obj.usbDisconnect = message.usbDisconnect;
|
|
12043
12777
|
}
|
|
@@ -12047,6 +12781,18 @@ exports.ErrorFlags = {
|
|
|
12047
12781
|
if (message.hardwareNotSupported !== false) {
|
|
12048
12782
|
obj.hardwareNotSupported = message.hardwareNotSupported;
|
|
12049
12783
|
}
|
|
12784
|
+
if (message.imu1 !== false) {
|
|
12785
|
+
obj.imu1 = message.imu1;
|
|
12786
|
+
}
|
|
12787
|
+
if (message.imu2 !== false) {
|
|
12788
|
+
obj.imu2 = message.imu2;
|
|
12789
|
+
}
|
|
12790
|
+
if (message.imuHp !== false) {
|
|
12791
|
+
obj.imuHp = message.imuHp;
|
|
12792
|
+
}
|
|
12793
|
+
if (message.imuAttitude !== false) {
|
|
12794
|
+
obj.imuAttitude = message.imuAttitude;
|
|
12795
|
+
}
|
|
12050
12796
|
return obj;
|
|
12051
12797
|
},
|
|
12052
12798
|
create(base) {
|
|
@@ -12134,9 +12880,14 @@ exports.ErrorFlags = {
|
|
|
12134
12880
|
message.gp65vCurrent = object.gp65vCurrent ?? false;
|
|
12135
12881
|
message.dvlThermalProtectionMode = object.dvlThermalProtectionMode ?? false;
|
|
12136
12882
|
message.dvlNoPower = object.dvlNoPower ?? false;
|
|
12883
|
+
message.dvlProtocolUnsupported = object.dvlProtocolUnsupported ?? false;
|
|
12137
12884
|
message.usbDisconnect = object.usbDisconnect ?? false;
|
|
12138
12885
|
message.videoUrbError = object.videoUrbError ?? false;
|
|
12139
12886
|
message.hardwareNotSupported = object.hardwareNotSupported ?? false;
|
|
12887
|
+
message.imu1 = object.imu1 ?? false;
|
|
12888
|
+
message.imu2 = object.imu2 ?? false;
|
|
12889
|
+
message.imuHp = object.imuHp ?? false;
|
|
12890
|
+
message.imuAttitude = object.imuAttitude ?? false;
|
|
12140
12891
|
return message;
|
|
12141
12892
|
},
|
|
12142
12893
|
};
|
|
@@ -16048,6 +16799,57 @@ exports.MultibeamDiscovery = {
|
|
|
16048
16799
|
return message;
|
|
16049
16800
|
},
|
|
16050
16801
|
};
|
|
16802
|
+
function createBaseMultibeamColorFilter() {
|
|
16803
|
+
return { rgb: new Uint8Array(0) };
|
|
16804
|
+
}
|
|
16805
|
+
exports.MultibeamColorFilter = {
|
|
16806
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
16807
|
+
if (message.rgb.length !== 0) {
|
|
16808
|
+
writer.uint32(10).bytes(message.rgb);
|
|
16809
|
+
}
|
|
16810
|
+
return writer;
|
|
16811
|
+
},
|
|
16812
|
+
decode(input, length) {
|
|
16813
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
16814
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
16815
|
+
const message = createBaseMultibeamColorFilter();
|
|
16816
|
+
while (reader.pos < end) {
|
|
16817
|
+
const tag = reader.uint32();
|
|
16818
|
+
switch (tag >>> 3) {
|
|
16819
|
+
case 1: {
|
|
16820
|
+
if (tag !== 10) {
|
|
16821
|
+
break;
|
|
16822
|
+
}
|
|
16823
|
+
message.rgb = reader.bytes();
|
|
16824
|
+
continue;
|
|
16825
|
+
}
|
|
16826
|
+
}
|
|
16827
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16828
|
+
break;
|
|
16829
|
+
}
|
|
16830
|
+
reader.skip(tag & 7);
|
|
16831
|
+
}
|
|
16832
|
+
return message;
|
|
16833
|
+
},
|
|
16834
|
+
fromJSON(object) {
|
|
16835
|
+
return { rgb: isSet(object.rgb) ? bytesFromBase64(object.rgb) : new Uint8Array(0) };
|
|
16836
|
+
},
|
|
16837
|
+
toJSON(message) {
|
|
16838
|
+
const obj = {};
|
|
16839
|
+
if (message.rgb.length !== 0) {
|
|
16840
|
+
obj.rgb = base64FromBytes(message.rgb);
|
|
16841
|
+
}
|
|
16842
|
+
return obj;
|
|
16843
|
+
},
|
|
16844
|
+
create(base) {
|
|
16845
|
+
return exports.MultibeamColorFilter.fromPartial(base ?? {});
|
|
16846
|
+
},
|
|
16847
|
+
fromPartial(object) {
|
|
16848
|
+
const message = createBaseMultibeamColorFilter();
|
|
16849
|
+
message.rgb = object.rgb ?? new Uint8Array(0);
|
|
16850
|
+
return message;
|
|
16851
|
+
},
|
|
16852
|
+
};
|
|
16051
16853
|
function createBaseMultibeamErrorFlags() {
|
|
16052
16854
|
return { connectedToAnotherClient: false, deviceOverheating: false, outOfWater: false };
|
|
16053
16855
|
}
|