@luxonis/visualizer-protobuf 3.1.11 → 3.1.13

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.
Files changed (81) hide show
  1. package/dist/{FoxgloveServer-B98MHUu6.js → FoxgloveServer-Da9kV1cr.js} +1 -1
  2. package/dist/{communicator-Bzkx3Qfr.js → communicator-Dh2aL-rj.js} +1 -1
  3. package/dist/{depth-DlC6A3Te.js → depth-DiD1V2Sg.js} +15 -28
  4. package/dist/{deserialization.worker-CO4m6y8V.js → deserialization.worker-DU2Hs4UP.js} +577 -341
  5. package/dist/{foxglove-protocol-yHdoBNaD.js → foxglove-protocol-BtLMVx24.js} +1 -1
  6. package/dist/{index-CB1fYMKI.js → index--95nXh6E.js} +5 -5
  7. package/dist/{index-Dqm1x8G2.js → index-B5oN0fQm.js} +1 -1
  8. package/dist/{index-BXzWxQD4.js → index-B9-rLgJ9.js} +7 -7
  9. package/dist/{index-DCsDqt-U.js → index-BMp_L7Aa.js} +5 -5
  10. package/dist/{index-Be6EYnox.js → index-B_3PleIH.js} +49 -35
  11. package/dist/{index-BYTk-1GW.js → index-BjiepKHF.js} +5 -5
  12. package/dist/{index-DgUF0rJi.js → index-C45UVGjk.js} +5 -5
  13. package/dist/{index-D_pNGJGQ.js → index-CCq5_y78.js} +5 -5
  14. package/dist/{index-D2sxEb00.js → index-CNjpp5xs.js} +5 -5
  15. package/dist/{index-B-g3aWAt.js → index-CcWunxJv.js} +5 -5
  16. package/dist/{index-BEUjTghZ.js → index-CidrwlEk.js} +5 -5
  17. package/dist/{index-CKE7xLWy.js → index-CqayH0_I.js} +5 -5
  18. package/dist/{index-CDp9Pzg1.js → index-CxKEiKY9.js} +5 -5
  19. package/dist/{index-BlROWu-J.js → index-D686pHc1.js} +6 -6
  20. package/dist/{index-DCsBkCC7.js → index-DWt4Nj5G.js} +5 -5
  21. package/dist/{index-DtnnnQqJ.js → index-DewnJOHY.js} +5 -5
  22. package/dist/{index-D0BOBLGo.js → index-DnhrXuH6.js} +5 -5
  23. package/dist/{index-OIOsl1pr.js → index-DopAEQk2.js} +5 -5
  24. package/dist/{index-D063HnO-.js → index-DzOBiI2h.js} +5 -5
  25. package/dist/{index-Dvd5sByT.js → index-JlGCfxtk.js} +5 -5
  26. package/dist/{index-DXmbPIsN.js → index-X1k93Nku.js} +5 -5
  27. package/dist/index.js +5 -5
  28. package/dist/lib/src/connection/foxglove-connection.d.ts.map +1 -1
  29. package/dist/lib/src/connection/foxglove-connection.js +7 -1
  30. package/dist/lib/src/connection/foxglove-connection.js.map +1 -1
  31. package/dist/lib/src/messaging/deserialization/pointcloud/pointcloudFromDepth.worker.js +2 -2
  32. package/dist/lib/src/messaging/deserialization/pointcloud/pointcloudFromDepth.worker.js.map +1 -1
  33. package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.js.map +1 -1
  34. package/dist/lib/src/messaging/deserialization/pointcloud/utils.d.ts.map +1 -1
  35. package/dist/lib/src/messaging/deserialization/pointcloud/utils.js.map +1 -1
  36. package/dist/lib/src/messaging/deserialization/video/depth.d.ts.map +1 -1
  37. package/dist/lib/src/messaging/deserialization/video/depth.js +11 -1
  38. package/dist/lib/src/messaging/deserialization/video/depth.js.map +1 -1
  39. package/dist/lib/src/messaging/deserialization/video/h264.d.ts +11 -6
  40. package/dist/lib/src/messaging/deserialization/video/h264.d.ts.map +1 -1
  41. package/dist/lib/src/messaging/deserialization/video/h264.js +115 -166
  42. package/dist/lib/src/messaging/deserialization/video/h264.js.map +1 -1
  43. package/dist/lib/src/messaging/deserialization/video/h265.d.ts +2 -7
  44. package/dist/lib/src/messaging/deserialization/video/h265.d.ts.map +1 -1
  45. package/dist/lib/src/messaging/deserialization/video/h265.js +55 -126
  46. package/dist/lib/src/messaging/deserialization/video/h265.js.map +1 -1
  47. package/dist/lib/src/messaging/deserialization/video/mjpeg.d.ts.map +1 -1
  48. package/dist/lib/src/messaging/deserialization/video/mjpeg.js +7 -8
  49. package/dist/lib/src/messaging/deserialization/video/mjpeg.js.map +1 -1
  50. package/dist/lib/src/messaging/deserialization/video/rgbd-to-pointcloud.d.ts +17 -0
  51. package/dist/lib/src/messaging/deserialization/video/rgbd-to-pointcloud.d.ts.map +1 -0
  52. package/dist/lib/src/messaging/deserialization/video/rgbd-to-pointcloud.js +325 -0
  53. package/dist/lib/src/messaging/deserialization/video/rgbd-to-pointcloud.js.map +1 -0
  54. package/dist/lib/src/messaging/deserialization.worker.d.ts +4 -0
  55. package/dist/lib/src/messaging/deserialization.worker.d.ts.map +1 -1
  56. package/dist/lib/src/messaging/deserialization.worker.js +16 -3
  57. package/dist/lib/src/messaging/deserialization.worker.js.map +1 -1
  58. package/dist/lib/src/messaging/protobuf.d.ts +12 -1
  59. package/dist/lib/src/messaging/protobuf.d.ts.map +1 -1
  60. package/dist/lib/src/messaging/protobuf.js +8 -0
  61. package/dist/lib/src/messaging/protobuf.js.map +1 -1
  62. package/dist/lib/src/messaging/utils.d.ts.map +1 -1
  63. package/dist/lib/src/messaging/utils.js +2 -0
  64. package/dist/lib/src/messaging/utils.js.map +1 -1
  65. package/dist/lib/src/output.css +2 -21
  66. package/dist/lib/src/panels/PointCloudPanel.d.ts.map +1 -1
  67. package/dist/lib/src/panels/PointCloudPanel.js +5 -1
  68. package/dist/lib/src/panels/PointCloudPanel.js.map +1 -1
  69. package/dist/lib/src/utils/metrics-manager.d.ts +1 -0
  70. package/dist/lib/src/utils/metrics-manager.d.ts.map +1 -1
  71. package/dist/lib/src/utils/metrics-manager.js +4 -2
  72. package/dist/lib/src/utils/metrics-manager.js.map +1 -1
  73. package/dist/lib/src/utils/poitcloud-sync.d.ts +4 -3
  74. package/dist/lib/src/utils/poitcloud-sync.d.ts.map +1 -1
  75. package/dist/lib/src/utils/poitcloud-sync.js +3 -1
  76. package/dist/lib/src/utils/poitcloud-sync.js.map +1 -1
  77. package/dist/{pointcloudFromDepth.worker-JLptpLHr.js → pointcloudFromDepth.worker-60RA4Ief.js} +2 -2
  78. package/dist/{protobuf-Be0G3NFz.js → protobuf-OcbVtxg1.js} +406 -218
  79. package/dist/{worker-NFznpx6V.js → worker-Be-hru8f.js} +3 -3
  80. package/dist/{worker-0Q6os6Ck.js → worker-C2MHIq3t.js} +4 -4
  81. package/package.json +2 -2
@@ -1225,7 +1225,7 @@ const Timestamp = {
1225
1225
  if (tag !== 8) {
1226
1226
  break;
1227
1227
  }
1228
- message.sec = longToNumber$7(reader.int64());
1228
+ message.sec = longToNumber$8(reader.int64());
1229
1229
  continue;
1230
1230
  }
1231
1231
  case 2:
@@ -1233,7 +1233,7 @@ const Timestamp = {
1233
1233
  if (tag !== 16) {
1234
1234
  break;
1235
1235
  }
1236
- message.nsec = longToNumber$7(reader.int64());
1236
+ message.nsec = longToNumber$8(reader.int64());
1237
1237
  continue;
1238
1238
  }
1239
1239
  }
@@ -1246,8 +1246,8 @@ const Timestamp = {
1246
1246
  },
1247
1247
  fromJSON(object) {
1248
1248
  return {
1249
- sec: isSet$7(object.sec) ? globalThis.Number(object.sec) : 0,
1250
- nsec: isSet$7(object.nsec) ? globalThis.Number(object.nsec) : 0
1249
+ sec: isSet$8(object.sec) ? globalThis.Number(object.sec) : 0,
1250
+ nsec: isSet$8(object.nsec) ? globalThis.Number(object.nsec) : 0
1251
1251
  };
1252
1252
  },
1253
1253
  toJSON(message) {
@@ -1356,11 +1356,11 @@ const CameraSettings = {
1356
1356
  },
1357
1357
  fromJSON(object) {
1358
1358
  return {
1359
- exposureTimeUs: isSet$7(object.exposureTimeUs) ? globalThis.Number(object.exposureTimeUs) : 0,
1360
- sensitivityIso: isSet$7(object.sensitivityIso) ? globalThis.Number(object.sensitivityIso) : 0,
1361
- lensPosition: isSet$7(object.lensPosition) ? globalThis.Number(object.lensPosition) : 0,
1362
- wbColorTemp: isSet$7(object.wbColorTemp) ? globalThis.Number(object.wbColorTemp) : 0,
1363
- lensPositionRaw: isSet$7(object.lensPositionRaw) ? globalThis.Number(object.lensPositionRaw) : 0
1359
+ exposureTimeUs: isSet$8(object.exposureTimeUs) ? globalThis.Number(object.exposureTimeUs) : 0,
1360
+ sensitivityIso: isSet$8(object.sensitivityIso) ? globalThis.Number(object.sensitivityIso) : 0,
1361
+ lensPosition: isSet$8(object.lensPosition) ? globalThis.Number(object.lensPosition) : 0,
1362
+ wbColorTemp: isSet$8(object.wbColorTemp) ? globalThis.Number(object.wbColorTemp) : 0,
1363
+ lensPositionRaw: isSet$8(object.lensPositionRaw) ? globalThis.Number(object.lensPositionRaw) : 0
1364
1364
  };
1365
1365
  },
1366
1366
  toJSON(message) {
@@ -1517,14 +1517,14 @@ const ImgTransformation = {
1517
1517
  },
1518
1518
  fromJSON(object) {
1519
1519
  return {
1520
- transformationMatrix: isSet$7(object.transformationMatrix) ? TransformationMatrix.fromJSON(object.transformationMatrix) : undefined,
1521
- sourceIntrinsicMatrix: isSet$7(object.sourceIntrinsicMatrix) ? TransformationMatrix.fromJSON(object.sourceIntrinsicMatrix) : undefined,
1522
- distortionModel: isSet$7(object.distortionModel) ? cameraModelFromJSON(object.distortionModel) : 0,
1523
- distortionCoefficients: isSet$7(object.distortionCoefficients) ? FloatArray.fromJSON(object.distortionCoefficients) : undefined,
1524
- srcWidth: isSet$7(object.srcWidth) ? globalThis.Number(object.srcWidth) : 0,
1525
- srcHeight: isSet$7(object.srcHeight) ? globalThis.Number(object.srcHeight) : 0,
1526
- width: isSet$7(object.width) ? globalThis.Number(object.width) : 0,
1527
- height: isSet$7(object.height) ? globalThis.Number(object.height) : 0
1520
+ transformationMatrix: isSet$8(object.transformationMatrix) ? TransformationMatrix.fromJSON(object.transformationMatrix) : undefined,
1521
+ sourceIntrinsicMatrix: isSet$8(object.sourceIntrinsicMatrix) ? TransformationMatrix.fromJSON(object.sourceIntrinsicMatrix) : undefined,
1522
+ distortionModel: isSet$8(object.distortionModel) ? cameraModelFromJSON(object.distortionModel) : 0,
1523
+ distortionCoefficients: isSet$8(object.distortionCoefficients) ? FloatArray.fromJSON(object.distortionCoefficients) : undefined,
1524
+ srcWidth: isSet$8(object.srcWidth) ? globalThis.Number(object.srcWidth) : 0,
1525
+ srcHeight: isSet$8(object.srcHeight) ? globalThis.Number(object.srcHeight) : 0,
1526
+ width: isSet$8(object.width) ? globalThis.Number(object.width) : 0,
1527
+ height: isSet$8(object.height) ? globalThis.Number(object.height) : 0
1528
1528
  };
1529
1529
  },
1530
1530
  toJSON(message) {
@@ -1770,10 +1770,10 @@ const Color = {
1770
1770
  },
1771
1771
  fromJSON(object) {
1772
1772
  return {
1773
- r: isSet$7(object.r) ? globalThis.Number(object.r) : 0,
1774
- g: isSet$7(object.g) ? globalThis.Number(object.g) : 0,
1775
- b: isSet$7(object.b) ? globalThis.Number(object.b) : 0,
1776
- a: isSet$7(object.a) ? globalThis.Number(object.a) : 0
1773
+ r: isSet$8(object.r) ? globalThis.Number(object.r) : 0,
1774
+ g: isSet$8(object.g) ? globalThis.Number(object.g) : 0,
1775
+ b: isSet$8(object.b) ? globalThis.Number(object.b) : 0,
1776
+ a: isSet$8(object.a) ? globalThis.Number(object.a) : 0
1777
1777
  };
1778
1778
  },
1779
1779
  toJSON(message) {
@@ -1854,8 +1854,8 @@ const Point2f = {
1854
1854
  },
1855
1855
  fromJSON(object) {
1856
1856
  return {
1857
- x: isSet$7(object.x) ? globalThis.Number(object.x) : 0,
1858
- y: isSet$7(object.y) ? globalThis.Number(object.y) : 0
1857
+ x: isSet$8(object.x) ? globalThis.Number(object.x) : 0,
1858
+ y: isSet$8(object.y) ? globalThis.Number(object.y) : 0
1859
1859
  };
1860
1860
  },
1861
1861
  toJSON(message) {
@@ -1940,9 +1940,9 @@ const Point3f$1 = {
1940
1940
  },
1941
1941
  fromJSON(object) {
1942
1942
  return {
1943
- x: isSet$7(object.x) ? globalThis.Number(object.x) : 0,
1944
- y: isSet$7(object.y) ? globalThis.Number(object.y) : 0,
1945
- z: isSet$7(object.z) ? globalThis.Number(object.z) : 0
1943
+ x: isSet$8(object.x) ? globalThis.Number(object.x) : 0,
1944
+ y: isSet$8(object.y) ? globalThis.Number(object.y) : 0,
1945
+ z: isSet$8(object.z) ? globalThis.Number(object.z) : 0
1946
1946
  };
1947
1947
  },
1948
1948
  toJSON(message) {
@@ -2019,8 +2019,8 @@ const Size2f = {
2019
2019
  },
2020
2020
  fromJSON(object) {
2021
2021
  return {
2022
- width: isSet$7(object.width) ? globalThis.Number(object.width) : 0,
2023
- height: isSet$7(object.height) ? globalThis.Number(object.height) : 0
2022
+ width: isSet$8(object.width) ? globalThis.Number(object.width) : 0,
2023
+ height: isSet$8(object.height) ? globalThis.Number(object.height) : 0
2024
2024
  };
2025
2025
  },
2026
2026
  toJSON(message) {
@@ -2105,9 +2105,9 @@ const RotatedRect = {
2105
2105
  },
2106
2106
  fromJSON(object) {
2107
2107
  return {
2108
- center: isSet$7(object.center) ? Point2f.fromJSON(object.center) : undefined,
2109
- size: isSet$7(object.size) ? Size2f.fromJSON(object.size) : undefined,
2110
- angle: isSet$7(object.angle) ? globalThis.Number(object.angle) : 0
2108
+ center: isSet$8(object.center) ? Point2f.fromJSON(object.center) : undefined,
2109
+ size: isSet$8(object.size) ? Size2f.fromJSON(object.size) : undefined,
2110
+ angle: isSet$8(object.angle) ? globalThis.Number(object.angle) : 0
2111
2111
  };
2112
2112
  },
2113
2113
  toJSON(message) {
@@ -2283,10 +2283,10 @@ const Keypoint = {
2283
2283
  },
2284
2284
  fromJSON(object) {
2285
2285
  return {
2286
- imageCoordinates: isSet$7(object.imageCoordinates) ? Point3f$1.fromJSON(object.imageCoordinates) : undefined,
2287
- confidence: isSet$7(object.confidence) ? globalThis.Number(object.confidence) : 0,
2288
- label: isSet$7(object.label) ? globalThis.Number(object.label) : 0,
2289
- labelName: isSet$7(object.labelName) ? globalThis.String(object.labelName) : ""
2286
+ imageCoordinates: isSet$8(object.imageCoordinates) ? Point3f$1.fromJSON(object.imageCoordinates) : undefined,
2287
+ confidence: isSet$8(object.confidence) ? globalThis.Number(object.confidence) : 0,
2288
+ label: isSet$8(object.label) ? globalThis.Number(object.label) : 0,
2289
+ labelName: isSet$8(object.labelName) ? globalThis.String(object.labelName) : ""
2290
2290
  };
2291
2291
  },
2292
2292
  toJSON(message) {
@@ -2367,8 +2367,8 @@ const Edge = {
2367
2367
  },
2368
2368
  fromJSON(object) {
2369
2369
  return {
2370
- src: isSet$7(object.src) ? globalThis.Number(object.src) : 0,
2371
- dst: isSet$7(object.dst) ? globalThis.Number(object.dst) : 0
2370
+ src: isSet$8(object.src) ? globalThis.Number(object.src) : 0,
2371
+ dst: isSet$8(object.dst) ? globalThis.Number(object.dst) : 0
2372
2372
  };
2373
2373
  },
2374
2374
  toJSON(message) {
@@ -2552,11 +2552,11 @@ const SpatialKeypoint = {
2552
2552
  },
2553
2553
  fromJSON(object) {
2554
2554
  return {
2555
- imageCoordinates: isSet$7(object.imageCoordinates) ? Point3f$1.fromJSON(object.imageCoordinates) : undefined,
2556
- confidence: isSet$7(object.confidence) ? globalThis.Number(object.confidence) : 0,
2557
- label: isSet$7(object.label) ? globalThis.Number(object.label) : 0,
2558
- labelName: isSet$7(object.labelName) ? globalThis.String(object.labelName) : "",
2559
- spatialCoordinates: isSet$7(object.spatialCoordinates) ? Point3f$1.fromJSON(object.spatialCoordinates) : undefined
2555
+ imageCoordinates: isSet$8(object.imageCoordinates) ? Point3f$1.fromJSON(object.imageCoordinates) : undefined,
2556
+ confidence: isSet$8(object.confidence) ? globalThis.Number(object.confidence) : 0,
2557
+ label: isSet$8(object.label) ? globalThis.Number(object.label) : 0,
2558
+ labelName: isSet$8(object.labelName) ? globalThis.String(object.labelName) : "",
2559
+ spatialCoordinates: isSet$8(object.spatialCoordinates) ? Point3f$1.fromJSON(object.spatialCoordinates) : undefined
2560
2560
  };
2561
2561
  },
2562
2562
  toJSON(message) {
@@ -2592,7 +2592,7 @@ const SpatialKeypoint = {
2592
2592
  return message;
2593
2593
  }
2594
2594
  };
2595
- function longToNumber$7(int64) {
2595
+ function longToNumber$8(int64) {
2596
2596
  const num = globalThis.Number(int64.toString());
2597
2597
  if (num > globalThis.Number.MAX_SAFE_INTEGER) {
2598
2598
  throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
@@ -2602,7 +2602,7 @@ function longToNumber$7(int64) {
2602
2602
  }
2603
2603
  return num;
2604
2604
  }
2605
- function isSet$7(value) {
2605
+ function isSet$8(value) {
2606
2606
  return value !== null && value !== undefined;
2607
2607
  }
2608
2608
 
@@ -2612,7 +2612,7 @@ function isSet$7(value) {
2612
2612
  // protoc v3.21.12
2613
2613
  // source: EncodedFrame.proto
2614
2614
 
2615
- const protobufPackage$6 = "dai.proto.encoded_frame";
2615
+ const protobufPackage$7 = "dai.proto.encoded_frame";
2616
2616
  let Profile = /*#__PURE__*/function (Profile) {
2617
2617
  Profile[Profile["JPEG"] = 0] = "JPEG";
2618
2618
  Profile[Profile["AVC"] = 1] = "AVC";
@@ -2865,7 +2865,7 @@ const EncodedFrame = {
2865
2865
  if (tag !== 96) {
2866
2866
  break;
2867
2867
  }
2868
- message.sequenceNum = longToNumber$6(reader.int64());
2868
+ message.sequenceNum = longToNumber$7(reader.int64());
2869
2869
  continue;
2870
2870
  }
2871
2871
  case 13:
@@ -2910,22 +2910,22 @@ const EncodedFrame = {
2910
2910
  },
2911
2911
  fromJSON(object) {
2912
2912
  return {
2913
- cam: isSet$6(object.cam) ? CameraSettings.fromJSON(object.cam) : undefined,
2914
- instanceNum: isSet$6(object.instanceNum) ? globalThis.Number(object.instanceNum) : 0,
2915
- width: isSet$6(object.width) ? globalThis.Number(object.width) : 0,
2916
- height: isSet$6(object.height) ? globalThis.Number(object.height) : 0,
2917
- quality: isSet$6(object.quality) ? globalThis.Number(object.quality) : 0,
2918
- bitrate: isSet$6(object.bitrate) ? globalThis.Number(object.bitrate) : 0,
2919
- profile: isSet$6(object.profile) ? profileFromJSON(object.profile) : 0,
2920
- lossless: isSet$6(object.lossless) ? globalThis.Boolean(object.lossless) : false,
2921
- type: isSet$6(object.type) ? frameTypeFromJSON(object.type) : 0,
2922
- frameOffset: isSet$6(object.frameOffset) ? globalThis.Number(object.frameOffset) : 0,
2923
- frameSize: isSet$6(object.frameSize) ? globalThis.Number(object.frameSize) : 0,
2924
- sequenceNum: isSet$6(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
2925
- ts: isSet$6(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
2926
- tsDevice: isSet$6(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
2927
- transformation: isSet$6(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined,
2928
- data: isSet$6(object.data) ? bytesFromBase64$4(object.data) : new Uint8Array(0)
2913
+ cam: isSet$7(object.cam) ? CameraSettings.fromJSON(object.cam) : undefined,
2914
+ instanceNum: isSet$7(object.instanceNum) ? globalThis.Number(object.instanceNum) : 0,
2915
+ width: isSet$7(object.width) ? globalThis.Number(object.width) : 0,
2916
+ height: isSet$7(object.height) ? globalThis.Number(object.height) : 0,
2917
+ quality: isSet$7(object.quality) ? globalThis.Number(object.quality) : 0,
2918
+ bitrate: isSet$7(object.bitrate) ? globalThis.Number(object.bitrate) : 0,
2919
+ profile: isSet$7(object.profile) ? profileFromJSON(object.profile) : 0,
2920
+ lossless: isSet$7(object.lossless) ? globalThis.Boolean(object.lossless) : false,
2921
+ type: isSet$7(object.type) ? frameTypeFromJSON(object.type) : 0,
2922
+ frameOffset: isSet$7(object.frameOffset) ? globalThis.Number(object.frameOffset) : 0,
2923
+ frameSize: isSet$7(object.frameSize) ? globalThis.Number(object.frameSize) : 0,
2924
+ sequenceNum: isSet$7(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
2925
+ ts: isSet$7(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
2926
+ tsDevice: isSet$7(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
2927
+ transformation: isSet$7(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined,
2928
+ data: isSet$7(object.data) ? bytesFromBase64$4(object.data) : new Uint8Array(0)
2929
2929
  };
2930
2930
  },
2931
2931
  toJSON(message) {
@@ -3028,7 +3028,7 @@ function base64FromBytes$4(arr) {
3028
3028
  return globalThis.btoa(bin.join(""));
3029
3029
  }
3030
3030
  }
3031
- function longToNumber$6(int64) {
3031
+ function longToNumber$7(int64) {
3032
3032
  const num = globalThis.Number(int64.toString());
3033
3033
  if (num > globalThis.Number.MAX_SAFE_INTEGER) {
3034
3034
  throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
@@ -3038,10 +3038,10 @@ function longToNumber$6(int64) {
3038
3038
  }
3039
3039
  return num;
3040
3040
  }
3041
- function isSet$6(value) {
3041
+ function isSet$7(value) {
3042
3042
  return value !== null && value !== undefined;
3043
3043
  }
3044
- const protobufName$5 = "EncodedFrame";
3044
+ const protobufName$6 = "EncodedFrame";
3045
3045
 
3046
3046
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3047
3047
  // versions:
@@ -3049,7 +3049,7 @@ const protobufName$5 = "EncodedFrame";
3049
3049
  // protoc v3.21.12
3050
3050
  // source: IMUData.proto
3051
3051
 
3052
- const protobufPackage$5 = "dai.proto.imu_data";
3052
+ const protobufPackage$6 = "dai.proto.imu_data";
3053
3053
  let Accuracy = /*#__PURE__*/function (Accuracy) {
3054
3054
  Accuracy[Accuracy["UNRELIABLE"] = 0] = "UNRELIABLE";
3055
3055
  Accuracy[Accuracy["LOW"] = 1] = "LOW";
@@ -3154,9 +3154,9 @@ const IMUVec = {
3154
3154
  },
3155
3155
  fromJSON(object) {
3156
3156
  return {
3157
- x: isSet$5(object.x) ? globalThis.Number(object.x) : 0,
3158
- y: isSet$5(object.y) ? globalThis.Number(object.y) : 0,
3159
- z: isSet$5(object.z) ? globalThis.Number(object.z) : 0
3157
+ x: isSet$6(object.x) ? globalThis.Number(object.x) : 0,
3158
+ y: isSet$6(object.y) ? globalThis.Number(object.y) : 0,
3159
+ z: isSet$6(object.z) ? globalThis.Number(object.z) : 0
3160
3160
  };
3161
3161
  },
3162
3162
  toJSON(message) {
@@ -3257,10 +3257,10 @@ const IMUQuat = {
3257
3257
  },
3258
3258
  fromJSON(object) {
3259
3259
  return {
3260
- x: isSet$5(object.x) ? globalThis.Number(object.x) : 0,
3261
- y: isSet$5(object.y) ? globalThis.Number(object.y) : 0,
3262
- z: isSet$5(object.z) ? globalThis.Number(object.z) : 0,
3263
- w: isSet$5(object.w) ? globalThis.Number(object.w) : 0
3260
+ x: isSet$6(object.x) ? globalThis.Number(object.x) : 0,
3261
+ y: isSet$6(object.y) ? globalThis.Number(object.y) : 0,
3262
+ z: isSet$6(object.z) ? globalThis.Number(object.z) : 0,
3263
+ w: isSet$6(object.w) ? globalThis.Number(object.w) : 0
3264
3264
  };
3265
3265
  },
3266
3266
  toJSON(message) {
@@ -3365,10 +3365,10 @@ const IMUReport = {
3365
3365
  },
3366
3366
  fromJSON(object) {
3367
3367
  return {
3368
- sequence: isSet$5(object.sequence) ? globalThis.Number(object.sequence) : 0,
3369
- accuracy: isSet$5(object.accuracy) ? accuracyFromJSON(object.accuracy) : 0,
3370
- ts: isSet$5(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
3371
- tsDevice: isSet$5(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined
3368
+ sequence: isSet$6(object.sequence) ? globalThis.Number(object.sequence) : 0,
3369
+ accuracy: isSet$6(object.accuracy) ? accuracyFromJSON(object.accuracy) : 0,
3370
+ ts: isSet$6(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
3371
+ tsDevice: isSet$6(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined
3372
3372
  };
3373
3373
  },
3374
3374
  toJSON(message) {
@@ -3449,8 +3449,8 @@ const IMUReportVec = {
3449
3449
  },
3450
3450
  fromJSON(object) {
3451
3451
  return {
3452
- report: isSet$5(object.report) ? IMUReport.fromJSON(object.report) : undefined,
3453
- vec: isSet$5(object.vec) ? IMUVec.fromJSON(object.vec) : undefined
3452
+ report: isSet$6(object.report) ? IMUReport.fromJSON(object.report) : undefined,
3453
+ vec: isSet$6(object.vec) ? IMUVec.fromJSON(object.vec) : undefined
3454
3454
  };
3455
3455
  },
3456
3456
  toJSON(message) {
@@ -3534,9 +3534,9 @@ const IMUReportQuatWAcc = {
3534
3534
  },
3535
3535
  fromJSON(object) {
3536
3536
  return {
3537
- report: isSet$5(object.report) ? IMUReport.fromJSON(object.report) : undefined,
3538
- quat: isSet$5(object.quat) ? IMUQuat.fromJSON(object.quat) : undefined,
3539
- rotationVectorAccuracy: isSet$5(object.rotationVectorAccuracy) ? globalThis.Number(object.rotationVectorAccuracy) : 0
3537
+ report: isSet$6(object.report) ? IMUReport.fromJSON(object.report) : undefined,
3538
+ quat: isSet$6(object.quat) ? IMUQuat.fromJSON(object.quat) : undefined,
3539
+ rotationVectorAccuracy: isSet$6(object.rotationVectorAccuracy) ? globalThis.Number(object.rotationVectorAccuracy) : 0
3540
3540
  };
3541
3541
  },
3542
3542
  toJSON(message) {
@@ -3637,10 +3637,10 @@ const IMUPacket = {
3637
3637
  },
3638
3638
  fromJSON(object) {
3639
3639
  return {
3640
- accelerometer: isSet$5(object.accelerometer) ? IMUReportVec.fromJSON(object.accelerometer) : undefined,
3641
- gyroscope: isSet$5(object.gyroscope) ? IMUReportVec.fromJSON(object.gyroscope) : undefined,
3642
- magnetometer: isSet$5(object.magnetometer) ? IMUReportVec.fromJSON(object.magnetometer) : undefined,
3643
- rotationVector: isSet$5(object.rotationVector) ? IMUReportQuatWAcc.fromJSON(object.rotationVector) : undefined
3640
+ accelerometer: isSet$6(object.accelerometer) ? IMUReportVec.fromJSON(object.accelerometer) : undefined,
3641
+ gyroscope: isSet$6(object.gyroscope) ? IMUReportVec.fromJSON(object.gyroscope) : undefined,
3642
+ magnetometer: isSet$6(object.magnetometer) ? IMUReportVec.fromJSON(object.magnetometer) : undefined,
3643
+ rotationVector: isSet$6(object.rotationVector) ? IMUReportQuatWAcc.fromJSON(object.rotationVector) : undefined
3644
3644
  };
3645
3645
  },
3646
3646
  toJSON(message) {
@@ -3715,7 +3715,7 @@ const IMUData = {
3715
3715
  if (tag !== 16) {
3716
3716
  break;
3717
3717
  }
3718
- message.sequenceNum = longToNumber$5(reader.int64());
3718
+ message.sequenceNum = longToNumber$6(reader.int64());
3719
3719
  continue;
3720
3720
  }
3721
3721
  case 3:
@@ -3745,9 +3745,9 @@ const IMUData = {
3745
3745
  fromJSON(object) {
3746
3746
  return {
3747
3747
  packets: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.packets) ? object.packets.map(e => IMUPacket.fromJSON(e)) : [],
3748
- sequenceNum: isSet$5(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
3749
- ts: isSet$5(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
3750
- tsDevice: isSet$5(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined
3748
+ sequenceNum: isSet$6(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
3749
+ ts: isSet$6(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
3750
+ tsDevice: isSet$6(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined
3751
3751
  };
3752
3752
  },
3753
3753
  toJSON(message) {
@@ -3780,7 +3780,7 @@ const IMUData = {
3780
3780
  return message;
3781
3781
  }
3782
3782
  };
3783
- function longToNumber$5(int64) {
3783
+ function longToNumber$6(int64) {
3784
3784
  const num = globalThis.Number(int64.toString());
3785
3785
  if (num > globalThis.Number.MAX_SAFE_INTEGER) {
3786
3786
  throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
@@ -3790,7 +3790,7 @@ function longToNumber$5(int64) {
3790
3790
  }
3791
3791
  return num;
3792
3792
  }
3793
- function isSet$5(value) {
3793
+ function isSet$6(value) {
3794
3794
  return value !== null && value !== undefined;
3795
3795
  }
3796
3796
 
@@ -3800,7 +3800,7 @@ function isSet$5(value) {
3800
3800
  // protoc v3.21.12
3801
3801
  // source: ImageAnnotations.proto
3802
3802
 
3803
- const protobufPackage$4 = "dai.proto.image_annotations";
3803
+ const protobufPackage$5 = "dai.proto.image_annotations";
3804
3804
  let PointsAnnotationType = /*#__PURE__*/function (PointsAnnotationType) {
3805
3805
  PointsAnnotationType[PointsAnnotationType["UNKNOWN"] = 0] = "UNKNOWN";
3806
3806
  PointsAnnotationType[PointsAnnotationType["POINTS"] = 1] = "POINTS";
@@ -3890,7 +3890,7 @@ const ImageAnnotations = {
3890
3890
  if (tag !== 8) {
3891
3891
  break;
3892
3892
  }
3893
- message.sequenceNum = longToNumber$4(reader.int64());
3893
+ message.sequenceNum = longToNumber$5(reader.int64());
3894
3894
  continue;
3895
3895
  }
3896
3896
  case 2:
@@ -3935,11 +3935,11 @@ const ImageAnnotations = {
3935
3935
  },
3936
3936
  fromJSON(object) {
3937
3937
  return {
3938
- sequenceNum: isSet$4(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
3939
- ts: isSet$4(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
3940
- tsDevice: isSet$4(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
3938
+ sequenceNum: isSet$5(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
3939
+ ts: isSet$5(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
3940
+ tsDevice: isSet$5(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
3941
3941
  annotations: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.annotations) ? object.annotations.map(e => ImageAnnotation.fromJSON(e)) : [],
3942
- transformation: isSet$4(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined
3942
+ transformation: isSet$5(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined
3943
3943
  };
3944
3944
  },
3945
3945
  toJSON(message) {
@@ -4153,11 +4153,11 @@ const CircleAnnotation = {
4153
4153
  },
4154
4154
  fromJSON(object) {
4155
4155
  return {
4156
- position: isSet$4(object.position) ? Point2f.fromJSON(object.position) : undefined,
4157
- diameter: isSet$4(object.diameter) ? globalThis.Number(object.diameter) : 0,
4158
- thickness: isSet$4(object.thickness) ? globalThis.Number(object.thickness) : 0,
4159
- fillColor: isSet$4(object.fillColor) ? Color.fromJSON(object.fillColor) : undefined,
4160
- outlineColor: isSet$4(object.outlineColor) ? Color.fromJSON(object.outlineColor) : undefined
4156
+ position: isSet$5(object.position) ? Point2f.fromJSON(object.position) : undefined,
4157
+ diameter: isSet$5(object.diameter) ? globalThis.Number(object.diameter) : 0,
4158
+ thickness: isSet$5(object.thickness) ? globalThis.Number(object.thickness) : 0,
4159
+ fillColor: isSet$5(object.fillColor) ? Color.fromJSON(object.fillColor) : undefined,
4160
+ outlineColor: isSet$5(object.outlineColor) ? Color.fromJSON(object.outlineColor) : undefined
4161
4161
  };
4162
4162
  },
4163
4163
  toJSON(message) {
@@ -4290,12 +4290,12 @@ const PointsAnnotation = {
4290
4290
  },
4291
4291
  fromJSON(object) {
4292
4292
  return {
4293
- type: isSet$4(object.type) ? pointsAnnotationTypeFromJSON(object.type) : 0,
4293
+ type: isSet$5(object.type) ? pointsAnnotationTypeFromJSON(object.type) : 0,
4294
4294
  points: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.points) ? object.points.map(e => Point2f.fromJSON(e)) : [],
4295
- outlineColor: isSet$4(object.outlineColor) ? Color.fromJSON(object.outlineColor) : undefined,
4295
+ outlineColor: isSet$5(object.outlineColor) ? Color.fromJSON(object.outlineColor) : undefined,
4296
4296
  outlineColors: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.outlineColors) ? object.outlineColors.map(e => Color.fromJSON(e)) : [],
4297
- fillColor: isSet$4(object.fillColor) ? Color.fromJSON(object.fillColor) : undefined,
4298
- thickness: isSet$4(object.thickness) ? globalThis.Number(object.thickness) : 0
4297
+ fillColor: isSet$5(object.fillColor) ? Color.fromJSON(object.fillColor) : undefined,
4298
+ thickness: isSet$5(object.thickness) ? globalThis.Number(object.thickness) : 0
4299
4299
  };
4300
4300
  },
4301
4301
  toJSON(message) {
@@ -4421,11 +4421,11 @@ const TextAnnotation = {
4421
4421
  },
4422
4422
  fromJSON(object) {
4423
4423
  return {
4424
- position: isSet$4(object.position) ? Point2f.fromJSON(object.position) : undefined,
4425
- text: isSet$4(object.text) ? globalThis.String(object.text) : "",
4426
- fontSize: isSet$4(object.fontSize) ? globalThis.Number(object.fontSize) : 0,
4427
- textColor: isSet$4(object.textColor) ? Color.fromJSON(object.textColor) : undefined,
4428
- backgroundColor: isSet$4(object.backgroundColor) ? Color.fromJSON(object.backgroundColor) : undefined
4424
+ position: isSet$5(object.position) ? Point2f.fromJSON(object.position) : undefined,
4425
+ text: isSet$5(object.text) ? globalThis.String(object.text) : "",
4426
+ fontSize: isSet$5(object.fontSize) ? globalThis.Number(object.fontSize) : 0,
4427
+ textColor: isSet$5(object.textColor) ? Color.fromJSON(object.textColor) : undefined,
4428
+ backgroundColor: isSet$5(object.backgroundColor) ? Color.fromJSON(object.backgroundColor) : undefined
4429
4429
  };
4430
4430
  },
4431
4431
  toJSON(message) {
@@ -4461,7 +4461,7 @@ const TextAnnotation = {
4461
4461
  return message;
4462
4462
  }
4463
4463
  };
4464
- function longToNumber$4(int64) {
4464
+ function longToNumber$5(int64) {
4465
4465
  const num = globalThis.Number(int64.toString());
4466
4466
  if (num > globalThis.Number.MAX_SAFE_INTEGER) {
4467
4467
  throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
@@ -4471,10 +4471,10 @@ function longToNumber$4(int64) {
4471
4471
  }
4472
4472
  return num;
4473
4473
  }
4474
- function isSet$4(value) {
4474
+ function isSet$5(value) {
4475
4475
  return value !== null && value !== undefined;
4476
4476
  }
4477
- const protobufName$4 = "ImageAnnotations";
4477
+ const protobufName$5 = "ImageAnnotations";
4478
4478
 
4479
4479
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
4480
4480
  // versions:
@@ -4482,7 +4482,7 @@ const protobufName$4 = "ImageAnnotations";
4482
4482
  // protoc v3.21.12
4483
4483
  // source: ImgDetections.proto
4484
4484
 
4485
- const protobufPackage$3 = "dai.proto.img_detections";
4485
+ const protobufPackage$4 = "dai.proto.img_detections";
4486
4486
  function createBaseImgDetections() {
4487
4487
  return {
4488
4488
  sequenceNum: 0,
@@ -4535,7 +4535,7 @@ const ImgDetections = {
4535
4535
  if (tag !== 8) {
4536
4536
  break;
4537
4537
  }
4538
- message.sequenceNum = longToNumber$3(reader.int64());
4538
+ message.sequenceNum = longToNumber$4(reader.int64());
4539
4539
  continue;
4540
4540
  }
4541
4541
  case 2:
@@ -4575,7 +4575,7 @@ const ImgDetections = {
4575
4575
  if (tag !== 48) {
4576
4576
  break;
4577
4577
  }
4578
- message.segmentationMaskWidth = longToNumber$3(reader.int64());
4578
+ message.segmentationMaskWidth = longToNumber$4(reader.int64());
4579
4579
  continue;
4580
4580
  }
4581
4581
  case 7:
@@ -4583,7 +4583,7 @@ const ImgDetections = {
4583
4583
  if (tag !== 56) {
4584
4584
  break;
4585
4585
  }
4586
- message.segmentationMaskHeight = longToNumber$3(reader.int64());
4586
+ message.segmentationMaskHeight = longToNumber$4(reader.int64());
4587
4587
  continue;
4588
4588
  }
4589
4589
  case 8:
@@ -4604,14 +4604,14 @@ const ImgDetections = {
4604
4604
  },
4605
4605
  fromJSON(object) {
4606
4606
  return {
4607
- sequenceNum: isSet$3(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
4608
- ts: isSet$3(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
4609
- tsDevice: isSet$3(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
4607
+ sequenceNum: isSet$4(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
4608
+ ts: isSet$4(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
4609
+ tsDevice: isSet$4(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
4610
4610
  detections: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.detections) ? object.detections.map(e => ImgDetection.fromJSON(e)) : [],
4611
- transformation: isSet$3(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined,
4612
- segmentationMaskWidth: isSet$3(object.segmentationMaskWidth) ? globalThis.Number(object.segmentationMaskWidth) : 0,
4613
- segmentationMaskHeight: isSet$3(object.segmentationMaskHeight) ? globalThis.Number(object.segmentationMaskHeight) : 0,
4614
- maskData: isSet$3(object.maskData) ? bytesFromBase64$3(object.maskData) : new Uint8Array(0)
4611
+ transformation: isSet$4(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined,
4612
+ segmentationMaskWidth: isSet$4(object.segmentationMaskWidth) ? globalThis.Number(object.segmentationMaskWidth) : 0,
4613
+ segmentationMaskHeight: isSet$4(object.segmentationMaskHeight) ? globalThis.Number(object.segmentationMaskHeight) : 0,
4614
+ maskData: isSet$4(object.maskData) ? bytesFromBase64$3(object.maskData) : new Uint8Array(0)
4615
4615
  };
4616
4616
  },
4617
4617
  toJSON(message) {
@@ -4793,15 +4793,15 @@ const ImgDetection = {
4793
4793
  },
4794
4794
  fromJSON(object) {
4795
4795
  return {
4796
- label: isSet$3(object.label) ? globalThis.Number(object.label) : 0,
4797
- confidence: isSet$3(object.confidence) ? globalThis.Number(object.confidence) : 0,
4798
- xmin: isSet$3(object.xmin) ? globalThis.Number(object.xmin) : 0,
4799
- ymin: isSet$3(object.ymin) ? globalThis.Number(object.ymin) : 0,
4800
- xmax: isSet$3(object.xmax) ? globalThis.Number(object.xmax) : 0,
4801
- ymax: isSet$3(object.ymax) ? globalThis.Number(object.ymax) : 0,
4802
- labelName: isSet$3(object.labelName) ? globalThis.String(object.labelName) : "",
4803
- boundingBox: isSet$3(object.boundingBox) ? RotatedRect.fromJSON(object.boundingBox) : undefined,
4804
- keypoints: isSet$3(object.keypoints) ? KeypointsList.fromJSON(object.keypoints) : undefined
4796
+ label: isSet$4(object.label) ? globalThis.Number(object.label) : 0,
4797
+ confidence: isSet$4(object.confidence) ? globalThis.Number(object.confidence) : 0,
4798
+ xmin: isSet$4(object.xmin) ? globalThis.Number(object.xmin) : 0,
4799
+ ymin: isSet$4(object.ymin) ? globalThis.Number(object.ymin) : 0,
4800
+ xmax: isSet$4(object.xmax) ? globalThis.Number(object.xmax) : 0,
4801
+ ymax: isSet$4(object.ymax) ? globalThis.Number(object.ymax) : 0,
4802
+ labelName: isSet$4(object.labelName) ? globalThis.String(object.labelName) : "",
4803
+ boundingBox: isSet$4(object.boundingBox) ? RotatedRect.fromJSON(object.boundingBox) : undefined,
4804
+ keypoints: isSet$4(object.keypoints) ? KeypointsList.fromJSON(object.keypoints) : undefined
4805
4805
  };
4806
4806
  },
4807
4807
  toJSON(message) {
@@ -4876,7 +4876,7 @@ function base64FromBytes$3(arr) {
4876
4876
  return globalThis.btoa(bin.join(""));
4877
4877
  }
4878
4878
  }
4879
- function longToNumber$3(int64) {
4879
+ function longToNumber$4(int64) {
4880
4880
  const num = globalThis.Number(int64.toString());
4881
4881
  if (num > globalThis.Number.MAX_SAFE_INTEGER) {
4882
4882
  throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
@@ -4886,10 +4886,10 @@ function longToNumber$3(int64) {
4886
4886
  }
4887
4887
  return num;
4888
4888
  }
4889
- function isSet$3(value) {
4889
+ function isSet$4(value) {
4890
4890
  return value !== null && value !== undefined;
4891
4891
  }
4892
- const protobufName$3 = "ImgDetections";
4892
+ const protobufName$4 = "ImgDetections";
4893
4893
 
4894
4894
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
4895
4895
  // versions:
@@ -4897,7 +4897,7 @@ const protobufName$3 = "ImgDetections";
4897
4897
  // protoc v3.21.12
4898
4898
  // source: ImgFrame.proto
4899
4899
 
4900
- const protobufPackage$2 = "dai.proto.img_frame";
4900
+ const protobufPackage$3 = "dai.proto.img_frame";
4901
4901
  let Type = /*#__PURE__*/function (Type) {
4902
4902
  /** YUV422i - interleaved 8 bit */
4903
4903
  Type[Type["YUV422i"] = 0] = "YUV422i";
@@ -5229,7 +5229,7 @@ const ImgFrame = {
5229
5229
  if (tag !== 24) {
5230
5230
  break;
5231
5231
  }
5232
- message.sequenceNum = longToNumber$2(reader.int64());
5232
+ message.sequenceNum = longToNumber$3(reader.int64());
5233
5233
  continue;
5234
5234
  }
5235
5235
  case 4:
@@ -5306,17 +5306,17 @@ const ImgFrame = {
5306
5306
  },
5307
5307
  fromJSON(object) {
5308
5308
  return {
5309
- ts: isSet$2(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
5310
- tsDevice: isSet$2(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
5311
- sequenceNum: isSet$2(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
5312
- fb: isSet$2(object.fb) ? Specs.fromJSON(object.fb) : undefined,
5313
- sourceFb: isSet$2(object.sourceFb) ? Specs.fromJSON(object.sourceFb) : undefined,
5314
- cam: isSet$2(object.cam) ? CameraSettings.fromJSON(object.cam) : undefined,
5315
- HFovDegrees: isSet$2(object.HFovDegrees) ? globalThis.Number(object.HFovDegrees) : 0,
5316
- instanceNum: isSet$2(object.instanceNum) ? globalThis.Number(object.instanceNum) : 0,
5317
- transformation: isSet$2(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined,
5318
- category: isSet$2(object.category) ? globalThis.Number(object.category) : 0,
5319
- data: isSet$2(object.data) ? bytesFromBase64$2(object.data) : new Uint8Array(0)
5309
+ ts: isSet$3(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
5310
+ tsDevice: isSet$3(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
5311
+ sequenceNum: isSet$3(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
5312
+ fb: isSet$3(object.fb) ? Specs.fromJSON(object.fb) : undefined,
5313
+ sourceFb: isSet$3(object.sourceFb) ? Specs.fromJSON(object.sourceFb) : undefined,
5314
+ cam: isSet$3(object.cam) ? CameraSettings.fromJSON(object.cam) : undefined,
5315
+ HFovDegrees: isSet$3(object.HFovDegrees) ? globalThis.Number(object.HFovDegrees) : 0,
5316
+ instanceNum: isSet$3(object.instanceNum) ? globalThis.Number(object.instanceNum) : 0,
5317
+ transformation: isSet$3(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined,
5318
+ category: isSet$3(object.category) ? globalThis.Number(object.category) : 0,
5319
+ data: isSet$3(object.data) ? bytesFromBase64$2(object.data) : new Uint8Array(0)
5320
5320
  };
5321
5321
  },
5322
5322
  toJSON(message) {
@@ -5497,14 +5497,14 @@ const Specs = {
5497
5497
  },
5498
5498
  fromJSON(object) {
5499
5499
  return {
5500
- type: isSet$2(object.type) ? typeFromJSON(object.type) : 0,
5501
- width: isSet$2(object.width) ? globalThis.Number(object.width) : 0,
5502
- height: isSet$2(object.height) ? globalThis.Number(object.height) : 0,
5503
- stride: isSet$2(object.stride) ? globalThis.Number(object.stride) : 0,
5504
- bytesPP: isSet$2(object.bytesPP) ? globalThis.Number(object.bytesPP) : 0,
5505
- p1Offset: isSet$2(object.p1Offset) ? globalThis.Number(object.p1Offset) : 0,
5506
- p2Offset: isSet$2(object.p2Offset) ? globalThis.Number(object.p2Offset) : 0,
5507
- p3Offset: isSet$2(object.p3Offset) ? globalThis.Number(object.p3Offset) : 0
5500
+ type: isSet$3(object.type) ? typeFromJSON(object.type) : 0,
5501
+ width: isSet$3(object.width) ? globalThis.Number(object.width) : 0,
5502
+ height: isSet$3(object.height) ? globalThis.Number(object.height) : 0,
5503
+ stride: isSet$3(object.stride) ? globalThis.Number(object.stride) : 0,
5504
+ bytesPP: isSet$3(object.bytesPP) ? globalThis.Number(object.bytesPP) : 0,
5505
+ p1Offset: isSet$3(object.p1Offset) ? globalThis.Number(object.p1Offset) : 0,
5506
+ p2Offset: isSet$3(object.p2Offset) ? globalThis.Number(object.p2Offset) : 0,
5507
+ p3Offset: isSet$3(object.p3Offset) ? globalThis.Number(object.p3Offset) : 0
5508
5508
  };
5509
5509
  },
5510
5510
  toJSON(message) {
@@ -5575,7 +5575,7 @@ function base64FromBytes$2(arr) {
5575
5575
  return globalThis.btoa(bin.join(""));
5576
5576
  }
5577
5577
  }
5578
- function longToNumber$2(int64) {
5578
+ function longToNumber$3(int64) {
5579
5579
  const num = globalThis.Number(int64.toString());
5580
5580
  if (num > globalThis.Number.MAX_SAFE_INTEGER) {
5581
5581
  throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
@@ -5585,10 +5585,10 @@ function longToNumber$2(int64) {
5585
5585
  }
5586
5586
  return num;
5587
5587
  }
5588
- function isSet$2(value) {
5588
+ function isSet$3(value) {
5589
5589
  return value !== null && value !== undefined;
5590
5590
  }
5591
- const protobufName$2 = "ImgFrame";
5591
+ const protobufName$3 = "ImgFrame";
5592
5592
 
5593
5593
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
5594
5594
  // versions:
@@ -5596,7 +5596,7 @@ const protobufName$2 = "ImgFrame";
5596
5596
  // protoc v3.21.12
5597
5597
  // source: PointCloudData.proto
5598
5598
 
5599
- const protobufPackage$1 = "dai.proto.point_cloud_data";
5599
+ const protobufPackage$2 = "dai.proto.point_cloud_data";
5600
5600
  function createBasePointCloudData() {
5601
5601
  return {
5602
5602
  ts: undefined,
@@ -5693,7 +5693,7 @@ const PointCloudData = {
5693
5693
  if (tag !== 24) {
5694
5694
  break;
5695
5695
  }
5696
- message.sequenceNum = longToNumber$1(reader.int64());
5696
+ message.sequenceNum = longToNumber$2(reader.int64());
5697
5697
  continue;
5698
5698
  }
5699
5699
  case 4:
@@ -5802,21 +5802,21 @@ const PointCloudData = {
5802
5802
  },
5803
5803
  fromJSON(object) {
5804
5804
  return {
5805
- ts: isSet$1(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
5806
- tsDevice: isSet$1(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
5807
- sequenceNum: isSet$1(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
5808
- width: isSet$1(object.width) ? globalThis.Number(object.width) : 0,
5809
- height: isSet$1(object.height) ? globalThis.Number(object.height) : 0,
5810
- instanceNum: isSet$1(object.instanceNum) ? globalThis.Number(object.instanceNum) : 0,
5811
- minx: isSet$1(object.minx) ? globalThis.Number(object.minx) : 0,
5812
- miny: isSet$1(object.miny) ? globalThis.Number(object.miny) : 0,
5813
- minz: isSet$1(object.minz) ? globalThis.Number(object.minz) : 0,
5814
- maxx: isSet$1(object.maxx) ? globalThis.Number(object.maxx) : 0,
5815
- maxy: isSet$1(object.maxy) ? globalThis.Number(object.maxy) : 0,
5816
- maxz: isSet$1(object.maxz) ? globalThis.Number(object.maxz) : 0,
5817
- sparse: isSet$1(object.sparse) ? globalThis.Boolean(object.sparse) : false,
5818
- color: isSet$1(object.color) ? globalThis.Boolean(object.color) : false,
5819
- data: isSet$1(object.data) ? bytesFromBase64$1(object.data) : new Uint8Array(0)
5805
+ ts: isSet$2(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
5806
+ tsDevice: isSet$2(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
5807
+ sequenceNum: isSet$2(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
5808
+ width: isSet$2(object.width) ? globalThis.Number(object.width) : 0,
5809
+ height: isSet$2(object.height) ? globalThis.Number(object.height) : 0,
5810
+ instanceNum: isSet$2(object.instanceNum) ? globalThis.Number(object.instanceNum) : 0,
5811
+ minx: isSet$2(object.minx) ? globalThis.Number(object.minx) : 0,
5812
+ miny: isSet$2(object.miny) ? globalThis.Number(object.miny) : 0,
5813
+ minz: isSet$2(object.minz) ? globalThis.Number(object.minz) : 0,
5814
+ maxx: isSet$2(object.maxx) ? globalThis.Number(object.maxx) : 0,
5815
+ maxy: isSet$2(object.maxy) ? globalThis.Number(object.maxy) : 0,
5816
+ maxz: isSet$2(object.maxz) ? globalThis.Number(object.maxz) : 0,
5817
+ sparse: isSet$2(object.sparse) ? globalThis.Boolean(object.sparse) : false,
5818
+ color: isSet$2(object.color) ? globalThis.Boolean(object.color) : false,
5819
+ data: isSet$2(object.data) ? bytesFromBase64$1(object.data) : new Uint8Array(0)
5820
5820
  };
5821
5821
  },
5822
5822
  toJSON(message) {
@@ -5915,7 +5915,7 @@ function base64FromBytes$1(arr) {
5915
5915
  return globalThis.btoa(bin.join(""));
5916
5916
  }
5917
5917
  }
5918
- function longToNumber$1(int64) {
5918
+ function longToNumber$2(int64) {
5919
5919
  const num = globalThis.Number(int64.toString());
5920
5920
  if (num > globalThis.Number.MAX_SAFE_INTEGER) {
5921
5921
  throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
@@ -5925,10 +5925,10 @@ function longToNumber$1(int64) {
5925
5925
  }
5926
5926
  return num;
5927
5927
  }
5928
- function isSet$1(value) {
5928
+ function isSet$2(value) {
5929
5929
  return value !== null && value !== undefined;
5930
5930
  }
5931
- const protobufName$1 = "PointCloudData";
5931
+ const protobufName$2 = "PointCloudData";
5932
5932
 
5933
5933
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
5934
5934
  // versions:
@@ -5936,7 +5936,7 @@ const protobufName$1 = "PointCloudData";
5936
5936
  // protoc v3.21.12
5937
5937
  // source: SpatialImgDetections.proto
5938
5938
 
5939
- const protobufPackage = "dai.proto.spatial_img_detections";
5939
+ const protobufPackage$1 = "dai.proto.spatial_img_detections";
5940
5940
  let SpatialLocationCalculatorAlgorithm = /*#__PURE__*/function (SpatialLocationCalculatorAlgorithm) {
5941
5941
  SpatialLocationCalculatorAlgorithm[SpatialLocationCalculatorAlgorithm["AVERAGE"] = 0] = "AVERAGE";
5942
5942
  SpatialLocationCalculatorAlgorithm[SpatialLocationCalculatorAlgorithm["MEAN"] = 0] = "MEAN";
@@ -6044,7 +6044,7 @@ const SpatialImgDetections = {
6044
6044
  if (tag !== 8) {
6045
6045
  break;
6046
6046
  }
6047
- message.sequenceNum = longToNumber(reader.int64());
6047
+ message.sequenceNum = longToNumber$1(reader.int64());
6048
6048
  continue;
6049
6049
  }
6050
6050
  case 2:
@@ -6084,7 +6084,7 @@ const SpatialImgDetections = {
6084
6084
  if (tag !== 48) {
6085
6085
  break;
6086
6086
  }
6087
- message.segmentationMaskWidth = longToNumber(reader.int64());
6087
+ message.segmentationMaskWidth = longToNumber$1(reader.int64());
6088
6088
  continue;
6089
6089
  }
6090
6090
  case 7:
@@ -6092,7 +6092,7 @@ const SpatialImgDetections = {
6092
6092
  if (tag !== 56) {
6093
6093
  break;
6094
6094
  }
6095
- message.segmentationMaskHeight = longToNumber(reader.int64());
6095
+ message.segmentationMaskHeight = longToNumber$1(reader.int64());
6096
6096
  continue;
6097
6097
  }
6098
6098
  case 8:
@@ -6113,14 +6113,14 @@ const SpatialImgDetections = {
6113
6113
  },
6114
6114
  fromJSON(object) {
6115
6115
  return {
6116
- sequenceNum: isSet(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
6117
- ts: isSet(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
6118
- tsDevice: isSet(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
6116
+ sequenceNum: isSet$1(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
6117
+ ts: isSet$1(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
6118
+ tsDevice: isSet$1(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
6119
6119
  detections: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.detections) ? object.detections.map(e => SpatialImgDetection.fromJSON(e)) : [],
6120
- transformation: isSet(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined,
6121
- segmentationMaskWidth: isSet(object.segmentationMaskWidth) ? globalThis.Number(object.segmentationMaskWidth) : 0,
6122
- segmentationMaskHeight: isSet(object.segmentationMaskHeight) ? globalThis.Number(object.segmentationMaskHeight) : 0,
6123
- maskData: isSet(object.maskData) ? bytesFromBase64(object.maskData) : new Uint8Array(0)
6120
+ transformation: isSet$1(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined,
6121
+ segmentationMaskWidth: isSet$1(object.segmentationMaskWidth) ? globalThis.Number(object.segmentationMaskWidth) : 0,
6122
+ segmentationMaskHeight: isSet$1(object.segmentationMaskHeight) ? globalThis.Number(object.segmentationMaskHeight) : 0,
6123
+ maskData: isSet$1(object.maskData) ? bytesFromBase64(object.maskData) : new Uint8Array(0)
6124
6124
  };
6125
6125
  },
6126
6126
  toJSON(message) {
@@ -6242,10 +6242,10 @@ const SpatialImgDetection = {
6242
6242
  },
6243
6243
  fromJSON(object) {
6244
6244
  return {
6245
- detection: isSet(object.detection) ? ImgDetection.fromJSON(object.detection) : undefined,
6246
- spatialCoordinates: isSet(object.spatialCoordinates) ? Point3f.fromJSON(object.spatialCoordinates) : undefined,
6247
- boundingBoxMapping: isSet(object.boundingBoxMapping) ? SpatialLocationCalculatorConfigData.fromJSON(object.boundingBoxMapping) : undefined,
6248
- keypoints: isSet(object.keypoints) ? SpatialKeypointsList.fromJSON(object.keypoints) : undefined
6245
+ detection: isSet$1(object.detection) ? ImgDetection.fromJSON(object.detection) : undefined,
6246
+ spatialCoordinates: isSet$1(object.spatialCoordinates) ? Point3f.fromJSON(object.spatialCoordinates) : undefined,
6247
+ boundingBoxMapping: isSet$1(object.boundingBoxMapping) ? SpatialLocationCalculatorConfigData.fromJSON(object.boundingBoxMapping) : undefined,
6248
+ keypoints: isSet$1(object.keypoints) ? SpatialKeypointsList.fromJSON(object.keypoints) : undefined
6249
6249
  };
6250
6250
  },
6251
6251
  toJSON(message) {
@@ -6349,10 +6349,10 @@ const SpatialLocationCalculatorConfigData = {
6349
6349
  },
6350
6350
  fromJSON(object) {
6351
6351
  return {
6352
- roi: isSet(object.roi) ? Rect.fromJSON(object.roi) : undefined,
6353
- depthThresholds: isSet(object.depthThresholds) ? SpatialLocationCalculatorConfigThresholds.fromJSON(object.depthThresholds) : undefined,
6354
- calculationAlgorithm: isSet(object.calculationAlgorithm) ? spatialLocationCalculatorAlgorithmFromJSON(object.calculationAlgorithm) : 0,
6355
- stepSize: isSet(object.stepSize) ? globalThis.Number(object.stepSize) : 0
6352
+ roi: isSet$1(object.roi) ? Rect.fromJSON(object.roi) : undefined,
6353
+ depthThresholds: isSet$1(object.depthThresholds) ? SpatialLocationCalculatorConfigThresholds.fromJSON(object.depthThresholds) : undefined,
6354
+ calculationAlgorithm: isSet$1(object.calculationAlgorithm) ? spatialLocationCalculatorAlgorithmFromJSON(object.calculationAlgorithm) : 0,
6355
+ stepSize: isSet$1(object.stepSize) ? globalThis.Number(object.stepSize) : 0
6356
6356
  };
6357
6357
  },
6358
6358
  toJSON(message) {
@@ -6457,10 +6457,10 @@ const Rect = {
6457
6457
  },
6458
6458
  fromJSON(object) {
6459
6459
  return {
6460
- x: isSet(object.x) ? globalThis.Number(object.x) : 0,
6461
- y: isSet(object.y) ? globalThis.Number(object.y) : 0,
6462
- width: isSet(object.width) ? globalThis.Number(object.width) : 0,
6463
- height: isSet(object.height) ? globalThis.Number(object.height) : 0
6460
+ x: isSet$1(object.x) ? globalThis.Number(object.x) : 0,
6461
+ y: isSet$1(object.y) ? globalThis.Number(object.y) : 0,
6462
+ width: isSet$1(object.width) ? globalThis.Number(object.width) : 0,
6463
+ height: isSet$1(object.height) ? globalThis.Number(object.height) : 0
6464
6464
  };
6465
6465
  },
6466
6466
  toJSON(message) {
@@ -6541,8 +6541,8 @@ const SpatialLocationCalculatorConfigThresholds = {
6541
6541
  },
6542
6542
  fromJSON(object) {
6543
6543
  return {
6544
- lowerThreshold: isSet(object.lowerThreshold) ? globalThis.Number(object.lowerThreshold) : 0,
6545
- upperThreshold: isSet(object.upperThreshold) ? globalThis.Number(object.upperThreshold) : 0
6544
+ lowerThreshold: isSet$1(object.lowerThreshold) ? globalThis.Number(object.lowerThreshold) : 0,
6545
+ upperThreshold: isSet$1(object.upperThreshold) ? globalThis.Number(object.upperThreshold) : 0
6546
6546
  };
6547
6547
  },
6548
6548
  toJSON(message) {
@@ -6627,9 +6627,9 @@ const Point3f = {
6627
6627
  },
6628
6628
  fromJSON(object) {
6629
6629
  return {
6630
- x: isSet(object.x) ? globalThis.Number(object.x) : 0,
6631
- y: isSet(object.y) ? globalThis.Number(object.y) : 0,
6632
- z: isSet(object.z) ? globalThis.Number(object.z) : 0
6630
+ x: isSet$1(object.x) ? globalThis.Number(object.x) : 0,
6631
+ y: isSet$1(object.y) ? globalThis.Number(object.y) : 0,
6632
+ z: isSet$1(object.z) ? globalThis.Number(object.z) : 0
6633
6633
  };
6634
6634
  },
6635
6635
  toJSON(message) {
@@ -6680,6 +6680,187 @@ function base64FromBytes(arr) {
6680
6680
  return globalThis.btoa(bin.join(""));
6681
6681
  }
6682
6682
  }
6683
+ function longToNumber$1(int64) {
6684
+ const num = globalThis.Number(int64.toString());
6685
+ if (num > globalThis.Number.MAX_SAFE_INTEGER) {
6686
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
6687
+ }
6688
+ if (num < globalThis.Number.MIN_SAFE_INTEGER) {
6689
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
6690
+ }
6691
+ return num;
6692
+ }
6693
+ function isSet$1(value) {
6694
+ return value !== null && value !== undefined;
6695
+ }
6696
+ const protobufName$1 = "SpatialImgDetections";
6697
+
6698
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
6699
+ // versions:
6700
+ // protoc-gen-ts_proto v2.10.1
6701
+ // protoc v3.21.12
6702
+ // source: RGBDData.proto
6703
+
6704
+ const protobufPackage = "dai.proto.rgbd_data";
6705
+ function createBaseRGBDData() {
6706
+ return {
6707
+ ts: undefined,
6708
+ tsDevice: undefined,
6709
+ sequenceNum: 0,
6710
+ colorImgFrame: undefined,
6711
+ colorEncodedFrame: undefined,
6712
+ depthImgFrame: undefined,
6713
+ depthEncodedFrame: undefined
6714
+ };
6715
+ }
6716
+ const RGBDData = {
6717
+ encode(message, writer = new BinaryWriter()) {
6718
+ if (message.ts !== undefined) {
6719
+ Timestamp.encode(message.ts, writer.uint32(10).fork()).join();
6720
+ }
6721
+ if (message.tsDevice !== undefined) {
6722
+ Timestamp.encode(message.tsDevice, writer.uint32(18).fork()).join();
6723
+ }
6724
+ if (message.sequenceNum !== 0) {
6725
+ writer.uint32(24).int64(message.sequenceNum);
6726
+ }
6727
+ if (message.colorImgFrame !== undefined) {
6728
+ ImgFrame.encode(message.colorImgFrame, writer.uint32(34).fork()).join();
6729
+ }
6730
+ if (message.colorEncodedFrame !== undefined) {
6731
+ EncodedFrame.encode(message.colorEncodedFrame, writer.uint32(42).fork()).join();
6732
+ }
6733
+ if (message.depthImgFrame !== undefined) {
6734
+ ImgFrame.encode(message.depthImgFrame, writer.uint32(50).fork()).join();
6735
+ }
6736
+ if (message.depthEncodedFrame !== undefined) {
6737
+ EncodedFrame.encode(message.depthEncodedFrame, writer.uint32(58).fork()).join();
6738
+ }
6739
+ return writer;
6740
+ },
6741
+ decode(input, length) {
6742
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
6743
+ const end = length === undefined ? reader.len : reader.pos + length;
6744
+ const message = createBaseRGBDData();
6745
+ while (reader.pos < end) {
6746
+ const tag = reader.uint32();
6747
+ switch (tag >>> 3) {
6748
+ case 1:
6749
+ {
6750
+ if (tag !== 10) {
6751
+ break;
6752
+ }
6753
+ message.ts = Timestamp.decode(reader, reader.uint32());
6754
+ continue;
6755
+ }
6756
+ case 2:
6757
+ {
6758
+ if (tag !== 18) {
6759
+ break;
6760
+ }
6761
+ message.tsDevice = Timestamp.decode(reader, reader.uint32());
6762
+ continue;
6763
+ }
6764
+ case 3:
6765
+ {
6766
+ if (tag !== 24) {
6767
+ break;
6768
+ }
6769
+ message.sequenceNum = longToNumber(reader.int64());
6770
+ continue;
6771
+ }
6772
+ case 4:
6773
+ {
6774
+ if (tag !== 34) {
6775
+ break;
6776
+ }
6777
+ message.colorImgFrame = ImgFrame.decode(reader, reader.uint32());
6778
+ continue;
6779
+ }
6780
+ case 5:
6781
+ {
6782
+ if (tag !== 42) {
6783
+ break;
6784
+ }
6785
+ message.colorEncodedFrame = EncodedFrame.decode(reader, reader.uint32());
6786
+ continue;
6787
+ }
6788
+ case 6:
6789
+ {
6790
+ if (tag !== 50) {
6791
+ break;
6792
+ }
6793
+ message.depthImgFrame = ImgFrame.decode(reader, reader.uint32());
6794
+ continue;
6795
+ }
6796
+ case 7:
6797
+ {
6798
+ if (tag !== 58) {
6799
+ break;
6800
+ }
6801
+ message.depthEncodedFrame = EncodedFrame.decode(reader, reader.uint32());
6802
+ continue;
6803
+ }
6804
+ }
6805
+ if ((tag & 7) === 4 || tag === 0) {
6806
+ break;
6807
+ }
6808
+ reader.skip(tag & 7);
6809
+ }
6810
+ return message;
6811
+ },
6812
+ fromJSON(object) {
6813
+ return {
6814
+ ts: isSet(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
6815
+ tsDevice: isSet(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
6816
+ sequenceNum: isSet(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
6817
+ colorImgFrame: isSet(object.colorImgFrame) ? ImgFrame.fromJSON(object.colorImgFrame) : undefined,
6818
+ colorEncodedFrame: isSet(object.colorEncodedFrame) ? EncodedFrame.fromJSON(object.colorEncodedFrame) : undefined,
6819
+ depthImgFrame: isSet(object.depthImgFrame) ? ImgFrame.fromJSON(object.depthImgFrame) : undefined,
6820
+ depthEncodedFrame: isSet(object.depthEncodedFrame) ? EncodedFrame.fromJSON(object.depthEncodedFrame) : undefined
6821
+ };
6822
+ },
6823
+ toJSON(message) {
6824
+ const obj = {};
6825
+ if (message.ts !== undefined) {
6826
+ obj.ts = Timestamp.toJSON(message.ts);
6827
+ }
6828
+ if (message.tsDevice !== undefined) {
6829
+ obj.tsDevice = Timestamp.toJSON(message.tsDevice);
6830
+ }
6831
+ if (message.sequenceNum !== 0) {
6832
+ obj.sequenceNum = Math.round(message.sequenceNum);
6833
+ }
6834
+ if (message.colorImgFrame !== undefined) {
6835
+ obj.colorImgFrame = ImgFrame.toJSON(message.colorImgFrame);
6836
+ }
6837
+ if (message.colorEncodedFrame !== undefined) {
6838
+ obj.colorEncodedFrame = EncodedFrame.toJSON(message.colorEncodedFrame);
6839
+ }
6840
+ if (message.depthImgFrame !== undefined) {
6841
+ obj.depthImgFrame = ImgFrame.toJSON(message.depthImgFrame);
6842
+ }
6843
+ if (message.depthEncodedFrame !== undefined) {
6844
+ obj.depthEncodedFrame = EncodedFrame.toJSON(message.depthEncodedFrame);
6845
+ }
6846
+ return obj;
6847
+ },
6848
+ create(base) {
6849
+ return RGBDData.fromPartial(base !== null && base !== void 0 ? base : {});
6850
+ },
6851
+ fromPartial(object) {
6852
+ var _object$sequenceNum;
6853
+ const message = createBaseRGBDData();
6854
+ message.ts = object.ts !== undefined && object.ts !== null ? Timestamp.fromPartial(object.ts) : undefined;
6855
+ message.tsDevice = object.tsDevice !== undefined && object.tsDevice !== null ? Timestamp.fromPartial(object.tsDevice) : undefined;
6856
+ message.sequenceNum = (_object$sequenceNum = object.sequenceNum) !== null && _object$sequenceNum !== void 0 ? _object$sequenceNum : 0;
6857
+ message.colorImgFrame = object.colorImgFrame !== undefined && object.colorImgFrame !== null ? ImgFrame.fromPartial(object.colorImgFrame) : undefined;
6858
+ message.colorEncodedFrame = object.colorEncodedFrame !== undefined && object.colorEncodedFrame !== null ? EncodedFrame.fromPartial(object.colorEncodedFrame) : undefined;
6859
+ message.depthImgFrame = object.depthImgFrame !== undefined && object.depthImgFrame !== null ? ImgFrame.fromPartial(object.depthImgFrame) : undefined;
6860
+ message.depthEncodedFrame = object.depthEncodedFrame !== undefined && object.depthEncodedFrame !== null ? EncodedFrame.fromPartial(object.depthEncodedFrame) : undefined;
6861
+ return message;
6862
+ }
6863
+ };
6683
6864
  function longToNumber(int64) {
6684
6865
  const num = globalThis.Number(int64.toString());
6685
6866
  if (num > globalThis.Number.MAX_SAFE_INTEGER) {
@@ -6693,43 +6874,48 @@ function longToNumber(int64) {
6693
6874
  function isSet(value) {
6694
6875
  return value !== null && value !== undefined;
6695
6876
  }
6696
- const protobufName = "SpatialImgDetections";
6877
+ const protobufName = "RGBDData";
6697
6878
 
6698
6879
  const protobufs = {
6699
6880
  encodedFrame: {
6700
- name: `${protobufPackage$6}.${protobufName$5}`,
6881
+ name: `${protobufPackage$7}.${protobufName$6}`,
6701
6882
  decoder: EncodedFrame,
6702
6883
  kind: "image"
6703
6884
  },
6704
6885
  imageFrame: {
6705
- name: `${protobufPackage$2}.${protobufName$2}`,
6886
+ name: `${protobufPackage$3}.${protobufName$3}`,
6706
6887
  decoder: ImgFrame,
6707
6888
  kind: "image"
6708
6889
  },
6709
6890
  imageDetections: {
6710
- name: `${protobufPackage$3}.${protobufName$3}`,
6891
+ name: `${protobufPackage$4}.${protobufName$4}`,
6711
6892
  decoder: ImgDetections,
6712
6893
  kind: "annotations"
6713
6894
  },
6714
6895
  imageDetectionsCustom: {
6715
- name: `${protobufPackage$4}.${protobufName$4}`,
6896
+ name: `${protobufPackage$5}.${protobufName$5}`,
6716
6897
  decoder: ImageAnnotations,
6717
6898
  kind: "annotations"
6718
6899
  },
6719
6900
  imageDetectionsSpatial: {
6720
- name: `${protobufPackage}.${protobufName}`,
6901
+ name: `${protobufPackage$1}.${protobufName$1}`,
6721
6902
  decoder: SpatialImgDetections,
6722
6903
  kind: "annotations"
6723
6904
  },
6724
6905
  imu: {
6725
- name: `${protobufPackage$5}.IMUData`,
6906
+ name: `${protobufPackage$6}.IMUData`,
6726
6907
  decoder: IMUData,
6727
6908
  kind: "imu"
6728
6909
  },
6729
6910
  pointCloud: {
6730
- name: `${protobufPackage$1}.${protobufName$1}`,
6911
+ name: `${protobufPackage$2}.${protobufName$2}`,
6731
6912
  decoder: PointCloudData,
6732
6913
  kind: "pointCloud"
6914
+ },
6915
+ rgbd: {
6916
+ name: `${protobufPackage}.${protobufName}`,
6917
+ decoder: RGBDData,
6918
+ kind: "rgbd"
6733
6919
  }
6734
6920
  };
6735
6921
  function protobufSchemaNameToType(name) {
@@ -6745,6 +6931,8 @@ function protobufSchemaNameToType(name) {
6745
6931
  return "imu";
6746
6932
  case "pointCloud":
6747
6933
  return "pointCloud";
6934
+ case 'rgbd':
6935
+ return 'rgbd';
6748
6936
  default:
6749
6937
  throw new Error(`Unknown protobuf schema name: ${name}`);
6750
6938
  }