@blueyerobotics/protocol-definitions 3.3.0-369b31cc → 3.3.0-58812d17
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 +31 -2
- package/dist/control.js +147 -3
- package/dist/message_formats.d.ts +133 -4
- package/dist/message_formats.js +801 -5
- package/dist/telemetry.d.ts +25 -1
- package/dist/telemetry.js +180 -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 = exports.NvmeInfo = 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.MarineSnowFilterFrames = 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) {
|
|
@@ -1266,7 +1359,10 @@ function thicknessUnitToJSON(object) {
|
|
|
1266
1359
|
/** Available font sizes for overlay text elements. */
|
|
1267
1360
|
var FontSize;
|
|
1268
1361
|
(function (FontSize) {
|
|
1269
|
-
/**
|
|
1362
|
+
/**
|
|
1363
|
+
* FONT_SIZE_UNSPECIFIED - Font size and margins derived from the recording resolution (Blunux >= 5.2).
|
|
1364
|
+
* Older firmware defaults to 25px.
|
|
1365
|
+
*/
|
|
1270
1366
|
FontSize[FontSize["FONT_SIZE_UNSPECIFIED"] = 0] = "FONT_SIZE_UNSPECIFIED";
|
|
1271
1367
|
/** FONT_SIZE_PX15 - 15 px. */
|
|
1272
1368
|
FontSize[FontSize["FONT_SIZE_PX15"] = 1] = "FONT_SIZE_PX15";
|
|
@@ -1447,6 +1543,10 @@ var GuestPortDeviceID;
|
|
|
1447
1543
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CYGNUS_MINI_ROV_THICKNESS_GAUGE_RS232"] = 49] = "GUEST_PORT_DEVICE_ID_CYGNUS_MINI_ROV_THICKNESS_GAUGE_RS232";
|
|
1448
1544
|
/** GUEST_PORT_DEVICE_ID_WATERLINKED_DVL_A100 - Waterlinked DVL A100. */
|
|
1449
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";
|
|
1450
1550
|
GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1451
1551
|
})(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
|
|
1452
1552
|
function guestPortDeviceIDFromJSON(object) {
|
|
@@ -1604,6 +1704,12 @@ function guestPortDeviceIDFromJSON(object) {
|
|
|
1604
1704
|
case 50:
|
|
1605
1705
|
case "GUEST_PORT_DEVICE_ID_WATERLINKED_DVL_A100":
|
|
1606
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;
|
|
1607
1713
|
case -1:
|
|
1608
1714
|
case "UNRECOGNIZED":
|
|
1609
1715
|
default:
|
|
@@ -1714,6 +1820,10 @@ function guestPortDeviceIDToJSON(object) {
|
|
|
1714
1820
|
return "GUEST_PORT_DEVICE_ID_CYGNUS_MINI_ROV_THICKNESS_GAUGE_RS232";
|
|
1715
1821
|
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_WATERLINKED_DVL_A100:
|
|
1716
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";
|
|
1717
1827
|
case GuestPortDeviceID.UNRECOGNIZED:
|
|
1718
1828
|
default:
|
|
1719
1829
|
return "UNRECOGNIZED";
|
|
@@ -5054,6 +5164,420 @@ exports.GripperVelocities = {
|
|
|
5054
5164
|
return message;
|
|
5055
5165
|
},
|
|
5056
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
|
+
};
|
|
5057
5581
|
function createBaseClientInfo() {
|
|
5058
5582
|
return { type: "", version: "", deviceType: "", platform: "", platformVersion: "", name: "", isObserver: false };
|
|
5059
5583
|
}
|
|
@@ -5895,6 +6419,146 @@ exports.CanisterHumidity = {
|
|
|
5895
6419
|
return message;
|
|
5896
6420
|
},
|
|
5897
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
|
+
};
|
|
5898
6562
|
function createBaseBattery() {
|
|
5899
6563
|
return { voltage: 0, level: 0, temperature: 0 };
|
|
5900
6564
|
}
|
|
@@ -10860,6 +11524,10 @@ function createBaseErrorFlags() {
|
|
|
10860
11524
|
usbDisconnect: false,
|
|
10861
11525
|
videoUrbError: false,
|
|
10862
11526
|
hardwareNotSupported: false,
|
|
11527
|
+
imu1: false,
|
|
11528
|
+
imu2: false,
|
|
11529
|
+
imuHp: false,
|
|
11530
|
+
imuAttitude: false,
|
|
10863
11531
|
};
|
|
10864
11532
|
}
|
|
10865
11533
|
exports.ErrorFlags = {
|
|
@@ -11116,6 +11784,18 @@ exports.ErrorFlags = {
|
|
|
11116
11784
|
if (message.hardwareNotSupported !== false) {
|
|
11117
11785
|
writer.uint32(376).bool(message.hardwareNotSupported);
|
|
11118
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
|
+
}
|
|
11119
11799
|
return writer;
|
|
11120
11800
|
},
|
|
11121
11801
|
decode(input, length) {
|
|
@@ -11713,6 +12393,34 @@ exports.ErrorFlags = {
|
|
|
11713
12393
|
message.hardwareNotSupported = reader.bool();
|
|
11714
12394
|
continue;
|
|
11715
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
|
+
}
|
|
11716
12424
|
}
|
|
11717
12425
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11718
12426
|
break;
|
|
@@ -11813,6 +12521,10 @@ exports.ErrorFlags = {
|
|
|
11813
12521
|
usbDisconnect: isSet(object.usbDisconnect) ? gt.Boolean(object.usbDisconnect) : false,
|
|
11814
12522
|
videoUrbError: isSet(object.videoUrbError) ? gt.Boolean(object.videoUrbError) : false,
|
|
11815
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,
|
|
11816
12528
|
};
|
|
11817
12529
|
},
|
|
11818
12530
|
toJSON(message) {
|
|
@@ -12069,6 +12781,18 @@ exports.ErrorFlags = {
|
|
|
12069
12781
|
if (message.hardwareNotSupported !== false) {
|
|
12070
12782
|
obj.hardwareNotSupported = message.hardwareNotSupported;
|
|
12071
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
|
+
}
|
|
12072
12796
|
return obj;
|
|
12073
12797
|
},
|
|
12074
12798
|
create(base) {
|
|
@@ -12160,6 +12884,10 @@ exports.ErrorFlags = {
|
|
|
12160
12884
|
message.usbDisconnect = object.usbDisconnect ?? false;
|
|
12161
12885
|
message.videoUrbError = object.videoUrbError ?? false;
|
|
12162
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;
|
|
12163
12891
|
return message;
|
|
12164
12892
|
},
|
|
12165
12893
|
};
|
|
@@ -18695,6 +19423,74 @@ exports.FilterMessage = {
|
|
|
18695
19423
|
return message;
|
|
18696
19424
|
},
|
|
18697
19425
|
};
|
|
19426
|
+
function createBaseMarineSnowFilterFrames() {
|
|
19427
|
+
return { pastFrames: 0, futureFrames: 0 };
|
|
19428
|
+
}
|
|
19429
|
+
exports.MarineSnowFilterFrames = {
|
|
19430
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
19431
|
+
if (message.pastFrames !== 0) {
|
|
19432
|
+
writer.uint32(8).uint32(message.pastFrames);
|
|
19433
|
+
}
|
|
19434
|
+
if (message.futureFrames !== 0) {
|
|
19435
|
+
writer.uint32(16).uint32(message.futureFrames);
|
|
19436
|
+
}
|
|
19437
|
+
return writer;
|
|
19438
|
+
},
|
|
19439
|
+
decode(input, length) {
|
|
19440
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
19441
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
19442
|
+
const message = createBaseMarineSnowFilterFrames();
|
|
19443
|
+
while (reader.pos < end) {
|
|
19444
|
+
const tag = reader.uint32();
|
|
19445
|
+
switch (tag >>> 3) {
|
|
19446
|
+
case 1: {
|
|
19447
|
+
if (tag !== 8) {
|
|
19448
|
+
break;
|
|
19449
|
+
}
|
|
19450
|
+
message.pastFrames = reader.uint32();
|
|
19451
|
+
continue;
|
|
19452
|
+
}
|
|
19453
|
+
case 2: {
|
|
19454
|
+
if (tag !== 16) {
|
|
19455
|
+
break;
|
|
19456
|
+
}
|
|
19457
|
+
message.futureFrames = reader.uint32();
|
|
19458
|
+
continue;
|
|
19459
|
+
}
|
|
19460
|
+
}
|
|
19461
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
19462
|
+
break;
|
|
19463
|
+
}
|
|
19464
|
+
reader.skip(tag & 7);
|
|
19465
|
+
}
|
|
19466
|
+
return message;
|
|
19467
|
+
},
|
|
19468
|
+
fromJSON(object) {
|
|
19469
|
+
return {
|
|
19470
|
+
pastFrames: isSet(object.pastFrames) ? gt.Number(object.pastFrames) : 0,
|
|
19471
|
+
futureFrames: isSet(object.futureFrames) ? gt.Number(object.futureFrames) : 0,
|
|
19472
|
+
};
|
|
19473
|
+
},
|
|
19474
|
+
toJSON(message) {
|
|
19475
|
+
const obj = {};
|
|
19476
|
+
if (message.pastFrames !== 0) {
|
|
19477
|
+
obj.pastFrames = Math.round(message.pastFrames);
|
|
19478
|
+
}
|
|
19479
|
+
if (message.futureFrames !== 0) {
|
|
19480
|
+
obj.futureFrames = Math.round(message.futureFrames);
|
|
19481
|
+
}
|
|
19482
|
+
return obj;
|
|
19483
|
+
},
|
|
19484
|
+
create(base) {
|
|
19485
|
+
return exports.MarineSnowFilterFrames.fromPartial(base ?? {});
|
|
19486
|
+
},
|
|
19487
|
+
fromPartial(object) {
|
|
19488
|
+
const message = createBaseMarineSnowFilterFrames();
|
|
19489
|
+
message.pastFrames = object.pastFrames ?? 0;
|
|
19490
|
+
message.futureFrames = object.futureFrames ?? 0;
|
|
19491
|
+
return message;
|
|
19492
|
+
},
|
|
19493
|
+
};
|
|
18698
19494
|
function createBaseCameraPanTiltZoom() {
|
|
18699
19495
|
return { pan: 0, tilt: 0, zoom: 0 };
|
|
18700
19496
|
}
|