@luxonis/visualizer-protobuf 2.66.5 → 2.66.7

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 (51) hide show
  1. package/dist/{FoxgloveServer-MMAMiqqQ.js → FoxgloveServer-h5m-pXp3.js} +1 -1
  2. package/dist/{communicator-_qNxRS4H.js → communicator-Ch92rcoU.js} +1 -1
  3. package/dist/{depth-CgtekUia.js → depth-B7VOdK0y.js} +1 -1
  4. package/dist/{deserialization.worker-BjIUNwwz.js → deserialization.worker-GXEWF6Ah.js} +21 -2
  5. package/dist/{foxglove-protocol-CtwNj7ND.js → foxglove-protocol-BSYuI-q2.js} +1 -1
  6. package/dist/{index-iG64FR0h.js → index-43TgprEu.js} +5 -5
  7. package/dist/{index-CYct1Qom.js → index-BDiEoQwc.js} +5 -5
  8. package/dist/{index-B0tgXZzg.js → index-BNjJ_8FK.js} +5 -5
  9. package/dist/{index-xIgJOW2f.js → index-BRqRNqQp.js} +5 -5
  10. package/dist/{index-B85kRrNv.js → index-BbCJPKqP.js} +73 -29
  11. package/dist/{index-DMHqBvsA.js → index-Bdbez_kQ.js} +5 -5
  12. package/dist/{index-DjZHdwqo.js → index-Bh1K2fdQ.js} +5 -5
  13. package/dist/{index-CNt8mQKQ.js → index-BokmU-9s.js} +5 -5
  14. package/dist/{index-DtWYw9HE.js → index-Brf_c1SY.js} +5 -5
  15. package/dist/{index-eJ8RDVxI.js → index-CE5UvJEK.js} +5 -5
  16. package/dist/{index-DOmudt-J.js → index-CR9ZZr7_.js} +6 -6
  17. package/dist/{index-I8Y7jTrq.js → index-CkJYVb2C.js} +5 -5
  18. package/dist/{index-Dp-ALVmp.js → index-Cuz3eK79.js} +5 -5
  19. package/dist/{index-hEcKpuQ-.js → index-CwoKA3TI.js} +5 -5
  20. package/dist/{index-DgkFMVpk.js → index-DKEcQxvw.js} +5 -5
  21. package/dist/{index-CVvcsdSj.js → index-DsI_LKa6.js} +5 -5
  22. package/dist/{index-Cp-Nz9Kv.js → index-HHNfaqCT.js} +5 -5
  23. package/dist/{index-IJSnFJtF.js → index-IhyjAROl.js} +5 -5
  24. package/dist/{index-DZ6EeqlH.js → index-fChvFOT8.js} +5 -5
  25. package/dist/index.js +5 -5
  26. package/dist/lib/src/connection/connection.d.ts +1 -1
  27. package/dist/lib/src/connection/connection.d.ts.map +1 -1
  28. package/dist/lib/src/connection/foxglove-connection.d.ts +1 -0
  29. package/dist/lib/src/connection/foxglove-connection.d.ts.map +1 -1
  30. package/dist/lib/src/connection/foxglove-connection.js +7 -0
  31. package/dist/lib/src/connection/foxglove-connection.js.map +1 -1
  32. package/dist/lib/src/index.d.ts +1 -0
  33. package/dist/lib/src/index.d.ts.map +1 -1
  34. package/dist/lib/src/index.js +1 -0
  35. package/dist/lib/src/index.js.map +1 -1
  36. package/dist/lib/src/messaging/deserialization.worker.d.ts +4 -0
  37. package/dist/lib/src/messaging/deserialization.worker.d.ts.map +1 -1
  38. package/dist/lib/src/messaging/deserialization.worker.js +13 -0
  39. package/dist/lib/src/messaging/deserialization.worker.js.map +1 -1
  40. package/dist/lib/src/messaging/protobuf.d.ts +27 -2
  41. package/dist/lib/src/messaging/protobuf.d.ts.map +1 -1
  42. package/dist/lib/src/messaging/protobuf.js +8 -0
  43. package/dist/lib/src/messaging/protobuf.js.map +1 -1
  44. package/dist/lib/src/utils/imu-manager.d.ts +13 -0
  45. package/dist/lib/src/utils/imu-manager.d.ts.map +1 -0
  46. package/dist/lib/src/utils/imu-manager.js +34 -0
  47. package/dist/lib/src/utils/imu-manager.js.map +1 -0
  48. package/dist/{protobuf-B55JS-Px.js → protobuf-BFCtaU7c.js} +886 -179
  49. package/dist/{worker-DeosokNQ.js → worker-BaUgfqvr.js} +4 -4
  50. package/dist/{worker-DTCGSU9Q.js → worker-BpVhgPF8.js} +3 -3
  51. package/package.json +1 -1
@@ -1578,13 +1578,13 @@ const Timestamp = {
1578
1578
  if (tag !== 8) {
1579
1579
  break;
1580
1580
  }
1581
- message.sec = longToNumber$6(reader.int64());
1581
+ message.sec = longToNumber$7(reader.int64());
1582
1582
  continue;
1583
1583
  case 2:
1584
1584
  if (tag !== 16) {
1585
1585
  break;
1586
1586
  }
1587
- message.nsec = longToNumber$6(reader.int64());
1587
+ message.nsec = longToNumber$7(reader.int64());
1588
1588
  continue;
1589
1589
  }
1590
1590
  if ((tag & 7) === 4 || tag === 0) {
@@ -1596,8 +1596,8 @@ const Timestamp = {
1596
1596
  },
1597
1597
  fromJSON(object) {
1598
1598
  return {
1599
- sec: isSet$6(object.sec) ? globalThis.Number(object.sec) : 0,
1600
- nsec: isSet$6(object.nsec) ? globalThis.Number(object.nsec) : 0
1599
+ sec: isSet$7(object.sec) ? globalThis.Number(object.sec) : 0,
1600
+ nsec: isSet$7(object.nsec) ? globalThis.Number(object.nsec) : 0
1601
1601
  };
1602
1602
  },
1603
1603
  toJSON(message) {
@@ -1695,11 +1695,11 @@ const CameraSettings = {
1695
1695
  },
1696
1696
  fromJSON(object) {
1697
1697
  return {
1698
- exposureTimeUs: isSet$6(object.exposureTimeUs) ? globalThis.Number(object.exposureTimeUs) : 0,
1699
- sensitivityIso: isSet$6(object.sensitivityIso) ? globalThis.Number(object.sensitivityIso) : 0,
1700
- lensPosition: isSet$6(object.lensPosition) ? globalThis.Number(object.lensPosition) : 0,
1701
- wbColorTemp: isSet$6(object.wbColorTemp) ? globalThis.Number(object.wbColorTemp) : 0,
1702
- lensPositionRaw: isSet$6(object.lensPositionRaw) ? globalThis.Number(object.lensPositionRaw) : 0
1698
+ exposureTimeUs: isSet$7(object.exposureTimeUs) ? globalThis.Number(object.exposureTimeUs) : 0,
1699
+ sensitivityIso: isSet$7(object.sensitivityIso) ? globalThis.Number(object.sensitivityIso) : 0,
1700
+ lensPosition: isSet$7(object.lensPosition) ? globalThis.Number(object.lensPosition) : 0,
1701
+ wbColorTemp: isSet$7(object.wbColorTemp) ? globalThis.Number(object.wbColorTemp) : 0,
1702
+ lensPositionRaw: isSet$7(object.lensPositionRaw) ? globalThis.Number(object.lensPositionRaw) : 0
1703
1703
  };
1704
1704
  },
1705
1705
  toJSON(message) {
@@ -1839,14 +1839,14 @@ const ImgTransformation = {
1839
1839
  },
1840
1840
  fromJSON(object) {
1841
1841
  return {
1842
- transformationMatrix: isSet$6(object.transformationMatrix) ? TransformationMatrix.fromJSON(object.transformationMatrix) : undefined,
1843
- sourceIntrinsicMatrix: isSet$6(object.sourceIntrinsicMatrix) ? TransformationMatrix.fromJSON(object.sourceIntrinsicMatrix) : undefined,
1844
- distortionModel: isSet$6(object.distortionModel) ? cameraModelFromJSON(object.distortionModel) : 0,
1845
- distortionCoefficients: isSet$6(object.distortionCoefficients) ? FloatArray.fromJSON(object.distortionCoefficients) : undefined,
1846
- srcWidth: isSet$6(object.srcWidth) ? globalThis.Number(object.srcWidth) : 0,
1847
- srcHeight: isSet$6(object.srcHeight) ? globalThis.Number(object.srcHeight) : 0,
1848
- width: isSet$6(object.width) ? globalThis.Number(object.width) : 0,
1849
- height: isSet$6(object.height) ? globalThis.Number(object.height) : 0
1842
+ transformationMatrix: isSet$7(object.transformationMatrix) ? TransformationMatrix.fromJSON(object.transformationMatrix) : undefined,
1843
+ sourceIntrinsicMatrix: isSet$7(object.sourceIntrinsicMatrix) ? TransformationMatrix.fromJSON(object.sourceIntrinsicMatrix) : undefined,
1844
+ distortionModel: isSet$7(object.distortionModel) ? cameraModelFromJSON(object.distortionModel) : 0,
1845
+ distortionCoefficients: isSet$7(object.distortionCoefficients) ? FloatArray.fromJSON(object.distortionCoefficients) : undefined,
1846
+ srcWidth: isSet$7(object.srcWidth) ? globalThis.Number(object.srcWidth) : 0,
1847
+ srcHeight: isSet$7(object.srcHeight) ? globalThis.Number(object.srcHeight) : 0,
1848
+ width: isSet$7(object.width) ? globalThis.Number(object.width) : 0,
1849
+ height: isSet$7(object.height) ? globalThis.Number(object.height) : 0
1850
1850
  };
1851
1851
  },
1852
1852
  toJSON(message) {
@@ -2075,10 +2075,10 @@ const Color = {
2075
2075
  },
2076
2076
  fromJSON(object) {
2077
2077
  return {
2078
- r: isSet$6(object.r) ? globalThis.Number(object.r) : 0,
2079
- g: isSet$6(object.g) ? globalThis.Number(object.g) : 0,
2080
- b: isSet$6(object.b) ? globalThis.Number(object.b) : 0,
2081
- a: isSet$6(object.a) ? globalThis.Number(object.a) : 0
2078
+ r: isSet$7(object.r) ? globalThis.Number(object.r) : 0,
2079
+ g: isSet$7(object.g) ? globalThis.Number(object.g) : 0,
2080
+ b: isSet$7(object.b) ? globalThis.Number(object.b) : 0,
2081
+ a: isSet$7(object.a) ? globalThis.Number(object.a) : 0
2082
2082
  };
2083
2083
  },
2084
2084
  toJSON(message) {
@@ -2154,8 +2154,8 @@ const Point2f = {
2154
2154
  },
2155
2155
  fromJSON(object) {
2156
2156
  return {
2157
- x: isSet$6(object.x) ? globalThis.Number(object.x) : 0,
2158
- y: isSet$6(object.y) ? globalThis.Number(object.y) : 0
2157
+ x: isSet$7(object.x) ? globalThis.Number(object.x) : 0,
2158
+ y: isSet$7(object.y) ? globalThis.Number(object.y) : 0
2159
2159
  };
2160
2160
  },
2161
2161
  toJSON(message) {
@@ -2178,7 +2178,7 @@ const Point2f = {
2178
2178
  return message;
2179
2179
  }
2180
2180
  };
2181
- function longToNumber$6(long) {
2181
+ function longToNumber$7(long) {
2182
2182
  if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
2183
2183
  throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
2184
2184
  }
@@ -2191,7 +2191,7 @@ if (_m0.util.Long !== Long) {
2191
2191
  _m0.util.Long = Long;
2192
2192
  _m0.configure();
2193
2193
  }
2194
- function isSet$6(value) {
2194
+ function isSet$7(value) {
2195
2195
  return value !== null && value !== undefined;
2196
2196
  }
2197
2197
 
@@ -2201,7 +2201,7 @@ function isSet$6(value) {
2201
2201
  // protoc v3.21.12
2202
2202
  // source: EncodedFrame.proto
2203
2203
 
2204
- const protobufPackage$5 = "dai.proto.encoded_frame";
2204
+ const protobufPackage$6 = "dai.proto.encoded_frame";
2205
2205
  let Profile = /*#__PURE__*/function (Profile) {
2206
2206
  Profile[Profile["JPEG"] = 0] = "JPEG";
2207
2207
  Profile[Profile["AVC"] = 1] = "AVC";
@@ -2346,18 +2346,687 @@ const EncodedFrame = {
2346
2346
  if (message.tsDevice !== undefined) {
2347
2347
  Timestamp.encode(message.tsDevice, writer.uint32(114).fork()).ldelim();
2348
2348
  }
2349
- if (message.transformation !== undefined) {
2350
- ImgTransformation.encode(message.transformation, writer.uint32(122).fork()).ldelim();
2349
+ if (message.transformation !== undefined) {
2350
+ ImgTransformation.encode(message.transformation, writer.uint32(122).fork()).ldelim();
2351
+ }
2352
+ if (message.data.length !== 0) {
2353
+ writer.uint32(130).bytes(message.data);
2354
+ }
2355
+ return writer;
2356
+ },
2357
+ decode(input, length) {
2358
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2359
+ let end = length === undefined ? reader.len : reader.pos + length;
2360
+ const message = createBaseEncodedFrame();
2361
+ while (reader.pos < end) {
2362
+ const tag = reader.uint32();
2363
+ switch (tag >>> 3) {
2364
+ case 1:
2365
+ if (tag !== 10) {
2366
+ break;
2367
+ }
2368
+ message.cam = CameraSettings.decode(reader, reader.uint32());
2369
+ continue;
2370
+ case 2:
2371
+ if (tag !== 16) {
2372
+ break;
2373
+ }
2374
+ message.instanceNum = reader.uint32();
2375
+ continue;
2376
+ case 3:
2377
+ if (tag !== 24) {
2378
+ break;
2379
+ }
2380
+ message.width = reader.uint32();
2381
+ continue;
2382
+ case 4:
2383
+ if (tag !== 32) {
2384
+ break;
2385
+ }
2386
+ message.height = reader.uint32();
2387
+ continue;
2388
+ case 5:
2389
+ if (tag !== 40) {
2390
+ break;
2391
+ }
2392
+ message.quality = reader.uint32();
2393
+ continue;
2394
+ case 6:
2395
+ if (tag !== 48) {
2396
+ break;
2397
+ }
2398
+ message.bitrate = reader.uint32();
2399
+ continue;
2400
+ case 7:
2401
+ if (tag !== 56) {
2402
+ break;
2403
+ }
2404
+ message.profile = reader.int32();
2405
+ continue;
2406
+ case 8:
2407
+ if (tag !== 64) {
2408
+ break;
2409
+ }
2410
+ message.lossless = reader.bool();
2411
+ continue;
2412
+ case 9:
2413
+ if (tag !== 72) {
2414
+ break;
2415
+ }
2416
+ message.type = reader.int32();
2417
+ continue;
2418
+ case 10:
2419
+ if (tag !== 80) {
2420
+ break;
2421
+ }
2422
+ message.frameOffset = reader.uint32();
2423
+ continue;
2424
+ case 11:
2425
+ if (tag !== 88) {
2426
+ break;
2427
+ }
2428
+ message.frameSize = reader.uint32();
2429
+ continue;
2430
+ case 12:
2431
+ if (tag !== 96) {
2432
+ break;
2433
+ }
2434
+ message.sequenceNum = longToNumber$6(reader.int64());
2435
+ continue;
2436
+ case 13:
2437
+ if (tag !== 106) {
2438
+ break;
2439
+ }
2440
+ message.ts = Timestamp.decode(reader, reader.uint32());
2441
+ continue;
2442
+ case 14:
2443
+ if (tag !== 114) {
2444
+ break;
2445
+ }
2446
+ message.tsDevice = Timestamp.decode(reader, reader.uint32());
2447
+ continue;
2448
+ case 15:
2449
+ if (tag !== 122) {
2450
+ break;
2451
+ }
2452
+ message.transformation = ImgTransformation.decode(reader, reader.uint32());
2453
+ continue;
2454
+ case 16:
2455
+ if (tag !== 130) {
2456
+ break;
2457
+ }
2458
+ message.data = reader.bytes();
2459
+ continue;
2460
+ }
2461
+ if ((tag & 7) === 4 || tag === 0) {
2462
+ break;
2463
+ }
2464
+ reader.skipType(tag & 7);
2465
+ }
2466
+ return message;
2467
+ },
2468
+ fromJSON(object) {
2469
+ return {
2470
+ cam: isSet$6(object.cam) ? CameraSettings.fromJSON(object.cam) : undefined,
2471
+ instanceNum: isSet$6(object.instanceNum) ? globalThis.Number(object.instanceNum) : 0,
2472
+ width: isSet$6(object.width) ? globalThis.Number(object.width) : 0,
2473
+ height: isSet$6(object.height) ? globalThis.Number(object.height) : 0,
2474
+ quality: isSet$6(object.quality) ? globalThis.Number(object.quality) : 0,
2475
+ bitrate: isSet$6(object.bitrate) ? globalThis.Number(object.bitrate) : 0,
2476
+ profile: isSet$6(object.profile) ? profileFromJSON(object.profile) : 0,
2477
+ lossless: isSet$6(object.lossless) ? globalThis.Boolean(object.lossless) : false,
2478
+ type: isSet$6(object.type) ? frameTypeFromJSON(object.type) : 0,
2479
+ frameOffset: isSet$6(object.frameOffset) ? globalThis.Number(object.frameOffset) : 0,
2480
+ frameSize: isSet$6(object.frameSize) ? globalThis.Number(object.frameSize) : 0,
2481
+ sequenceNum: isSet$6(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
2482
+ ts: isSet$6(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
2483
+ tsDevice: isSet$6(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
2484
+ transformation: isSet$6(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined,
2485
+ data: isSet$6(object.data) ? bytesFromBase64$2(object.data) : new Uint8Array(0)
2486
+ };
2487
+ },
2488
+ toJSON(message) {
2489
+ const obj = {};
2490
+ if (message.cam !== undefined) {
2491
+ obj.cam = CameraSettings.toJSON(message.cam);
2492
+ }
2493
+ if (message.instanceNum !== 0) {
2494
+ obj.instanceNum = Math.round(message.instanceNum);
2495
+ }
2496
+ if (message.width !== 0) {
2497
+ obj.width = Math.round(message.width);
2498
+ }
2499
+ if (message.height !== 0) {
2500
+ obj.height = Math.round(message.height);
2501
+ }
2502
+ if (message.quality !== 0) {
2503
+ obj.quality = Math.round(message.quality);
2504
+ }
2505
+ if (message.bitrate !== 0) {
2506
+ obj.bitrate = Math.round(message.bitrate);
2507
+ }
2508
+ if (message.profile !== 0) {
2509
+ obj.profile = profileToJSON(message.profile);
2510
+ }
2511
+ if (message.lossless !== false) {
2512
+ obj.lossless = message.lossless;
2513
+ }
2514
+ if (message.type !== 0) {
2515
+ obj.type = frameTypeToJSON(message.type);
2516
+ }
2517
+ if (message.frameOffset !== 0) {
2518
+ obj.frameOffset = Math.round(message.frameOffset);
2519
+ }
2520
+ if (message.frameSize !== 0) {
2521
+ obj.frameSize = Math.round(message.frameSize);
2522
+ }
2523
+ if (message.sequenceNum !== 0) {
2524
+ obj.sequenceNum = Math.round(message.sequenceNum);
2525
+ }
2526
+ if (message.ts !== undefined) {
2527
+ obj.ts = Timestamp.toJSON(message.ts);
2528
+ }
2529
+ if (message.tsDevice !== undefined) {
2530
+ obj.tsDevice = Timestamp.toJSON(message.tsDevice);
2531
+ }
2532
+ if (message.transformation !== undefined) {
2533
+ obj.transformation = ImgTransformation.toJSON(message.transformation);
2534
+ }
2535
+ if (message.data.length !== 0) {
2536
+ obj.data = base64FromBytes$2(message.data);
2537
+ }
2538
+ return obj;
2539
+ },
2540
+ create(base) {
2541
+ return EncodedFrame.fromPartial(base ?? {});
2542
+ },
2543
+ fromPartial(object) {
2544
+ const message = createBaseEncodedFrame();
2545
+ message.cam = object.cam !== undefined && object.cam !== null ? CameraSettings.fromPartial(object.cam) : undefined;
2546
+ message.instanceNum = object.instanceNum ?? 0;
2547
+ message.width = object.width ?? 0;
2548
+ message.height = object.height ?? 0;
2549
+ message.quality = object.quality ?? 0;
2550
+ message.bitrate = object.bitrate ?? 0;
2551
+ message.profile = object.profile ?? 0;
2552
+ message.lossless = object.lossless ?? false;
2553
+ message.type = object.type ?? 0;
2554
+ message.frameOffset = object.frameOffset ?? 0;
2555
+ message.frameSize = object.frameSize ?? 0;
2556
+ message.sequenceNum = object.sequenceNum ?? 0;
2557
+ message.ts = object.ts !== undefined && object.ts !== null ? Timestamp.fromPartial(object.ts) : undefined;
2558
+ message.tsDevice = object.tsDevice !== undefined && object.tsDevice !== null ? Timestamp.fromPartial(object.tsDevice) : undefined;
2559
+ message.transformation = object.transformation !== undefined && object.transformation !== null ? ImgTransformation.fromPartial(object.transformation) : undefined;
2560
+ message.data = object.data ?? new Uint8Array(0);
2561
+ return message;
2562
+ }
2563
+ };
2564
+ function bytesFromBase64$2(b64) {
2565
+ if (globalThis.Buffer) {
2566
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
2567
+ } else {
2568
+ const bin = globalThis.atob(b64);
2569
+ const arr = new Uint8Array(bin.length);
2570
+ for (let i = 0; i < bin.length; ++i) {
2571
+ arr[i] = bin.charCodeAt(i);
2572
+ }
2573
+ return arr;
2574
+ }
2575
+ }
2576
+ function base64FromBytes$2(arr) {
2577
+ if (globalThis.Buffer) {
2578
+ return globalThis.Buffer.from(arr).toString("base64");
2579
+ } else {
2580
+ const bin = [];
2581
+ arr.forEach(byte => {
2582
+ bin.push(globalThis.String.fromCharCode(byte));
2583
+ });
2584
+ return globalThis.btoa(bin.join(""));
2585
+ }
2586
+ }
2587
+ function longToNumber$6(long) {
2588
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
2589
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
2590
+ }
2591
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
2592
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
2593
+ }
2594
+ return long.toNumber();
2595
+ }
2596
+ if (_m0.util.Long !== Long) {
2597
+ _m0.util.Long = Long;
2598
+ _m0.configure();
2599
+ }
2600
+ function isSet$6(value) {
2601
+ return value !== null && value !== undefined;
2602
+ }
2603
+ const protobufName$5 = "EncodedFrame";
2604
+
2605
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2606
+ // versions:
2607
+ // protoc-gen-ts_proto v1.181.1
2608
+ // protoc v3.21.12
2609
+ // source: IMUData.proto
2610
+
2611
+ const protobufPackage$5 = "dai.proto.imu_data";
2612
+ let Accuracy = /*#__PURE__*/function (Accuracy) {
2613
+ Accuracy[Accuracy["UNRELIABLE"] = 0] = "UNRELIABLE";
2614
+ Accuracy[Accuracy["LOW"] = 1] = "LOW";
2615
+ Accuracy[Accuracy["MEDIUM"] = 2] = "MEDIUM";
2616
+ Accuracy[Accuracy["HIGH"] = 3] = "HIGH";
2617
+ Accuracy[Accuracy["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2618
+ return Accuracy;
2619
+ }({});
2620
+ function accuracyFromJSON(object) {
2621
+ switch (object) {
2622
+ case 0:
2623
+ case "UNRELIABLE":
2624
+ return Accuracy.UNRELIABLE;
2625
+ case 1:
2626
+ case "LOW":
2627
+ return Accuracy.LOW;
2628
+ case 2:
2629
+ case "MEDIUM":
2630
+ return Accuracy.MEDIUM;
2631
+ case 3:
2632
+ case "HIGH":
2633
+ return Accuracy.HIGH;
2634
+ case -1:
2635
+ case "UNRECOGNIZED":
2636
+ default:
2637
+ return Accuracy.UNRECOGNIZED;
2638
+ }
2639
+ }
2640
+ function accuracyToJSON(object) {
2641
+ switch (object) {
2642
+ case Accuracy.UNRELIABLE:
2643
+ return "UNRELIABLE";
2644
+ case Accuracy.LOW:
2645
+ return "LOW";
2646
+ case Accuracy.MEDIUM:
2647
+ return "MEDIUM";
2648
+ case Accuracy.HIGH:
2649
+ return "HIGH";
2650
+ case Accuracy.UNRECOGNIZED:
2651
+ default:
2652
+ return "UNRECOGNIZED";
2653
+ }
2654
+ }
2655
+ function createBaseIMUVec() {
2656
+ return {
2657
+ x: 0,
2658
+ y: 0,
2659
+ z: 0
2660
+ };
2661
+ }
2662
+ const IMUVec = {
2663
+ encode(message, writer = _m0.Writer.create()) {
2664
+ if (message.x !== 0) {
2665
+ writer.uint32(13).float(message.x);
2666
+ }
2667
+ if (message.y !== 0) {
2668
+ writer.uint32(21).float(message.y);
2669
+ }
2670
+ if (message.z !== 0) {
2671
+ writer.uint32(29).float(message.z);
2672
+ }
2673
+ return writer;
2674
+ },
2675
+ decode(input, length) {
2676
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2677
+ let end = length === undefined ? reader.len : reader.pos + length;
2678
+ const message = createBaseIMUVec();
2679
+ while (reader.pos < end) {
2680
+ const tag = reader.uint32();
2681
+ switch (tag >>> 3) {
2682
+ case 1:
2683
+ if (tag !== 13) {
2684
+ break;
2685
+ }
2686
+ message.x = reader.float();
2687
+ continue;
2688
+ case 2:
2689
+ if (tag !== 21) {
2690
+ break;
2691
+ }
2692
+ message.y = reader.float();
2693
+ continue;
2694
+ case 3:
2695
+ if (tag !== 29) {
2696
+ break;
2697
+ }
2698
+ message.z = reader.float();
2699
+ continue;
2700
+ }
2701
+ if ((tag & 7) === 4 || tag === 0) {
2702
+ break;
2703
+ }
2704
+ reader.skipType(tag & 7);
2705
+ }
2706
+ return message;
2707
+ },
2708
+ fromJSON(object) {
2709
+ return {
2710
+ x: isSet$5(object.x) ? globalThis.Number(object.x) : 0,
2711
+ y: isSet$5(object.y) ? globalThis.Number(object.y) : 0,
2712
+ z: isSet$5(object.z) ? globalThis.Number(object.z) : 0
2713
+ };
2714
+ },
2715
+ toJSON(message) {
2716
+ const obj = {};
2717
+ if (message.x !== 0) {
2718
+ obj.x = message.x;
2719
+ }
2720
+ if (message.y !== 0) {
2721
+ obj.y = message.y;
2722
+ }
2723
+ if (message.z !== 0) {
2724
+ obj.z = message.z;
2725
+ }
2726
+ return obj;
2727
+ },
2728
+ create(base) {
2729
+ return IMUVec.fromPartial(base ?? {});
2730
+ },
2731
+ fromPartial(object) {
2732
+ const message = createBaseIMUVec();
2733
+ message.x = object.x ?? 0;
2734
+ message.y = object.y ?? 0;
2735
+ message.z = object.z ?? 0;
2736
+ return message;
2737
+ }
2738
+ };
2739
+ function createBaseIMUQuat() {
2740
+ return {
2741
+ x: 0,
2742
+ y: 0,
2743
+ z: 0,
2744
+ w: 0
2745
+ };
2746
+ }
2747
+ const IMUQuat = {
2748
+ encode(message, writer = _m0.Writer.create()) {
2749
+ if (message.x !== 0) {
2750
+ writer.uint32(13).float(message.x);
2751
+ }
2752
+ if (message.y !== 0) {
2753
+ writer.uint32(21).float(message.y);
2754
+ }
2755
+ if (message.z !== 0) {
2756
+ writer.uint32(29).float(message.z);
2757
+ }
2758
+ if (message.w !== 0) {
2759
+ writer.uint32(37).float(message.w);
2760
+ }
2761
+ return writer;
2762
+ },
2763
+ decode(input, length) {
2764
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2765
+ let end = length === undefined ? reader.len : reader.pos + length;
2766
+ const message = createBaseIMUQuat();
2767
+ while (reader.pos < end) {
2768
+ const tag = reader.uint32();
2769
+ switch (tag >>> 3) {
2770
+ case 1:
2771
+ if (tag !== 13) {
2772
+ break;
2773
+ }
2774
+ message.x = reader.float();
2775
+ continue;
2776
+ case 2:
2777
+ if (tag !== 21) {
2778
+ break;
2779
+ }
2780
+ message.y = reader.float();
2781
+ continue;
2782
+ case 3:
2783
+ if (tag !== 29) {
2784
+ break;
2785
+ }
2786
+ message.z = reader.float();
2787
+ continue;
2788
+ case 4:
2789
+ if (tag !== 37) {
2790
+ break;
2791
+ }
2792
+ message.w = reader.float();
2793
+ continue;
2794
+ }
2795
+ if ((tag & 7) === 4 || tag === 0) {
2796
+ break;
2797
+ }
2798
+ reader.skipType(tag & 7);
2799
+ }
2800
+ return message;
2801
+ },
2802
+ fromJSON(object) {
2803
+ return {
2804
+ x: isSet$5(object.x) ? globalThis.Number(object.x) : 0,
2805
+ y: isSet$5(object.y) ? globalThis.Number(object.y) : 0,
2806
+ z: isSet$5(object.z) ? globalThis.Number(object.z) : 0,
2807
+ w: isSet$5(object.w) ? globalThis.Number(object.w) : 0
2808
+ };
2809
+ },
2810
+ toJSON(message) {
2811
+ const obj = {};
2812
+ if (message.x !== 0) {
2813
+ obj.x = message.x;
2814
+ }
2815
+ if (message.y !== 0) {
2816
+ obj.y = message.y;
2817
+ }
2818
+ if (message.z !== 0) {
2819
+ obj.z = message.z;
2820
+ }
2821
+ if (message.w !== 0) {
2822
+ obj.w = message.w;
2823
+ }
2824
+ return obj;
2825
+ },
2826
+ create(base) {
2827
+ return IMUQuat.fromPartial(base ?? {});
2828
+ },
2829
+ fromPartial(object) {
2830
+ const message = createBaseIMUQuat();
2831
+ message.x = object.x ?? 0;
2832
+ message.y = object.y ?? 0;
2833
+ message.z = object.z ?? 0;
2834
+ message.w = object.w ?? 0;
2835
+ return message;
2836
+ }
2837
+ };
2838
+ function createBaseIMUReport() {
2839
+ return {
2840
+ sequence: 0,
2841
+ accuracy: 0,
2842
+ ts: undefined,
2843
+ tsDevice: undefined
2844
+ };
2845
+ }
2846
+ const IMUReport = {
2847
+ encode(message, writer = _m0.Writer.create()) {
2848
+ if (message.sequence !== 0) {
2849
+ writer.uint32(8).int32(message.sequence);
2850
+ }
2851
+ if (message.accuracy !== 0) {
2852
+ writer.uint32(16).int32(message.accuracy);
2853
+ }
2854
+ if (message.ts !== undefined) {
2855
+ Timestamp.encode(message.ts, writer.uint32(26).fork()).ldelim();
2856
+ }
2857
+ if (message.tsDevice !== undefined) {
2858
+ Timestamp.encode(message.tsDevice, writer.uint32(34).fork()).ldelim();
2859
+ }
2860
+ return writer;
2861
+ },
2862
+ decode(input, length) {
2863
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2864
+ let end = length === undefined ? reader.len : reader.pos + length;
2865
+ const message = createBaseIMUReport();
2866
+ while (reader.pos < end) {
2867
+ const tag = reader.uint32();
2868
+ switch (tag >>> 3) {
2869
+ case 1:
2870
+ if (tag !== 8) {
2871
+ break;
2872
+ }
2873
+ message.sequence = reader.int32();
2874
+ continue;
2875
+ case 2:
2876
+ if (tag !== 16) {
2877
+ break;
2878
+ }
2879
+ message.accuracy = reader.int32();
2880
+ continue;
2881
+ case 3:
2882
+ if (tag !== 26) {
2883
+ break;
2884
+ }
2885
+ message.ts = Timestamp.decode(reader, reader.uint32());
2886
+ continue;
2887
+ case 4:
2888
+ if (tag !== 34) {
2889
+ break;
2890
+ }
2891
+ message.tsDevice = Timestamp.decode(reader, reader.uint32());
2892
+ continue;
2893
+ }
2894
+ if ((tag & 7) === 4 || tag === 0) {
2895
+ break;
2896
+ }
2897
+ reader.skipType(tag & 7);
2898
+ }
2899
+ return message;
2900
+ },
2901
+ fromJSON(object) {
2902
+ return {
2903
+ sequence: isSet$5(object.sequence) ? globalThis.Number(object.sequence) : 0,
2904
+ accuracy: isSet$5(object.accuracy) ? accuracyFromJSON(object.accuracy) : 0,
2905
+ ts: isSet$5(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
2906
+ tsDevice: isSet$5(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined
2907
+ };
2908
+ },
2909
+ toJSON(message) {
2910
+ const obj = {};
2911
+ if (message.sequence !== 0) {
2912
+ obj.sequence = Math.round(message.sequence);
2913
+ }
2914
+ if (message.accuracy !== 0) {
2915
+ obj.accuracy = accuracyToJSON(message.accuracy);
2916
+ }
2917
+ if (message.ts !== undefined) {
2918
+ obj.ts = Timestamp.toJSON(message.ts);
2919
+ }
2920
+ if (message.tsDevice !== undefined) {
2921
+ obj.tsDevice = Timestamp.toJSON(message.tsDevice);
2922
+ }
2923
+ return obj;
2924
+ },
2925
+ create(base) {
2926
+ return IMUReport.fromPartial(base ?? {});
2927
+ },
2928
+ fromPartial(object) {
2929
+ const message = createBaseIMUReport();
2930
+ message.sequence = object.sequence ?? 0;
2931
+ message.accuracy = object.accuracy ?? 0;
2932
+ message.ts = object.ts !== undefined && object.ts !== null ? Timestamp.fromPartial(object.ts) : undefined;
2933
+ message.tsDevice = object.tsDevice !== undefined && object.tsDevice !== null ? Timestamp.fromPartial(object.tsDevice) : undefined;
2934
+ return message;
2935
+ }
2936
+ };
2937
+ function createBaseIMUReportVec() {
2938
+ return {
2939
+ report: undefined,
2940
+ vec: undefined
2941
+ };
2942
+ }
2943
+ const IMUReportVec = {
2944
+ encode(message, writer = _m0.Writer.create()) {
2945
+ if (message.report !== undefined) {
2946
+ IMUReport.encode(message.report, writer.uint32(10).fork()).ldelim();
2947
+ }
2948
+ if (message.vec !== undefined) {
2949
+ IMUVec.encode(message.vec, writer.uint32(18).fork()).ldelim();
2950
+ }
2951
+ return writer;
2952
+ },
2953
+ decode(input, length) {
2954
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2955
+ let end = length === undefined ? reader.len : reader.pos + length;
2956
+ const message = createBaseIMUReportVec();
2957
+ while (reader.pos < end) {
2958
+ const tag = reader.uint32();
2959
+ switch (tag >>> 3) {
2960
+ case 1:
2961
+ if (tag !== 10) {
2962
+ break;
2963
+ }
2964
+ message.report = IMUReport.decode(reader, reader.uint32());
2965
+ continue;
2966
+ case 2:
2967
+ if (tag !== 18) {
2968
+ break;
2969
+ }
2970
+ message.vec = IMUVec.decode(reader, reader.uint32());
2971
+ continue;
2972
+ }
2973
+ if ((tag & 7) === 4 || tag === 0) {
2974
+ break;
2975
+ }
2976
+ reader.skipType(tag & 7);
2977
+ }
2978
+ return message;
2979
+ },
2980
+ fromJSON(object) {
2981
+ return {
2982
+ report: isSet$5(object.report) ? IMUReport.fromJSON(object.report) : undefined,
2983
+ vec: isSet$5(object.vec) ? IMUVec.fromJSON(object.vec) : undefined
2984
+ };
2985
+ },
2986
+ toJSON(message) {
2987
+ const obj = {};
2988
+ if (message.report !== undefined) {
2989
+ obj.report = IMUReport.toJSON(message.report);
2990
+ }
2991
+ if (message.vec !== undefined) {
2992
+ obj.vec = IMUVec.toJSON(message.vec);
2993
+ }
2994
+ return obj;
2995
+ },
2996
+ create(base) {
2997
+ return IMUReportVec.fromPartial(base ?? {});
2998
+ },
2999
+ fromPartial(object) {
3000
+ const message = createBaseIMUReportVec();
3001
+ message.report = object.report !== undefined && object.report !== null ? IMUReport.fromPartial(object.report) : undefined;
3002
+ message.vec = object.vec !== undefined && object.vec !== null ? IMUVec.fromPartial(object.vec) : undefined;
3003
+ return message;
3004
+ }
3005
+ };
3006
+ function createBaseIMUReportQuatWAcc() {
3007
+ return {
3008
+ report: undefined,
3009
+ quat: undefined,
3010
+ rotationVectorAccuracy: 0
3011
+ };
3012
+ }
3013
+ const IMUReportQuatWAcc = {
3014
+ encode(message, writer = _m0.Writer.create()) {
3015
+ if (message.report !== undefined) {
3016
+ IMUReport.encode(message.report, writer.uint32(10).fork()).ldelim();
3017
+ }
3018
+ if (message.quat !== undefined) {
3019
+ IMUQuat.encode(message.quat, writer.uint32(18).fork()).ldelim();
2351
3020
  }
2352
- if (message.data.length !== 0) {
2353
- writer.uint32(130).bytes(message.data);
3021
+ if (message.rotationVectorAccuracy !== 0) {
3022
+ writer.uint32(29).float(message.rotationVectorAccuracy);
2354
3023
  }
2355
3024
  return writer;
2356
3025
  },
2357
3026
  decode(input, length) {
2358
3027
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2359
3028
  let end = length === undefined ? reader.len : reader.pos + length;
2360
- const message = createBaseEncodedFrame();
3029
+ const message = createBaseIMUReportQuatWAcc();
2361
3030
  while (reader.pos < end) {
2362
3031
  const tag = reader.uint32();
2363
3032
  switch (tag >>> 3) {
@@ -2365,98 +3034,213 @@ const EncodedFrame = {
2365
3034
  if (tag !== 10) {
2366
3035
  break;
2367
3036
  }
2368
- message.cam = CameraSettings.decode(reader, reader.uint32());
3037
+ message.report = IMUReport.decode(reader, reader.uint32());
2369
3038
  continue;
2370
3039
  case 2:
2371
- if (tag !== 16) {
3040
+ if (tag !== 18) {
2372
3041
  break;
2373
3042
  }
2374
- message.instanceNum = reader.uint32();
3043
+ message.quat = IMUQuat.decode(reader, reader.uint32());
2375
3044
  continue;
2376
3045
  case 3:
2377
- if (tag !== 24) {
2378
- break;
2379
- }
2380
- message.width = reader.uint32();
2381
- continue;
2382
- case 4:
2383
- if (tag !== 32) {
2384
- break;
2385
- }
2386
- message.height = reader.uint32();
2387
- continue;
2388
- case 5:
2389
- if (tag !== 40) {
2390
- break;
2391
- }
2392
- message.quality = reader.uint32();
2393
- continue;
2394
- case 6:
2395
- if (tag !== 48) {
3046
+ if (tag !== 29) {
2396
3047
  break;
2397
3048
  }
2398
- message.bitrate = reader.uint32();
3049
+ message.rotationVectorAccuracy = reader.float();
2399
3050
  continue;
2400
- case 7:
2401
- if (tag !== 56) {
3051
+ }
3052
+ if ((tag & 7) === 4 || tag === 0) {
3053
+ break;
3054
+ }
3055
+ reader.skipType(tag & 7);
3056
+ }
3057
+ return message;
3058
+ },
3059
+ fromJSON(object) {
3060
+ return {
3061
+ report: isSet$5(object.report) ? IMUReport.fromJSON(object.report) : undefined,
3062
+ quat: isSet$5(object.quat) ? IMUQuat.fromJSON(object.quat) : undefined,
3063
+ rotationVectorAccuracy: isSet$5(object.rotationVectorAccuracy) ? globalThis.Number(object.rotationVectorAccuracy) : 0
3064
+ };
3065
+ },
3066
+ toJSON(message) {
3067
+ const obj = {};
3068
+ if (message.report !== undefined) {
3069
+ obj.report = IMUReport.toJSON(message.report);
3070
+ }
3071
+ if (message.quat !== undefined) {
3072
+ obj.quat = IMUQuat.toJSON(message.quat);
3073
+ }
3074
+ if (message.rotationVectorAccuracy !== 0) {
3075
+ obj.rotationVectorAccuracy = message.rotationVectorAccuracy;
3076
+ }
3077
+ return obj;
3078
+ },
3079
+ create(base) {
3080
+ return IMUReportQuatWAcc.fromPartial(base ?? {});
3081
+ },
3082
+ fromPartial(object) {
3083
+ const message = createBaseIMUReportQuatWAcc();
3084
+ message.report = object.report !== undefined && object.report !== null ? IMUReport.fromPartial(object.report) : undefined;
3085
+ message.quat = object.quat !== undefined && object.quat !== null ? IMUQuat.fromPartial(object.quat) : undefined;
3086
+ message.rotationVectorAccuracy = object.rotationVectorAccuracy ?? 0;
3087
+ return message;
3088
+ }
3089
+ };
3090
+ function createBaseIMUPacket() {
3091
+ return {
3092
+ accelerometer: undefined,
3093
+ gyroscope: undefined,
3094
+ magnetometer: undefined,
3095
+ rotationVector: undefined
3096
+ };
3097
+ }
3098
+ const IMUPacket = {
3099
+ encode(message, writer = _m0.Writer.create()) {
3100
+ if (message.accelerometer !== undefined) {
3101
+ IMUReportVec.encode(message.accelerometer, writer.uint32(10).fork()).ldelim();
3102
+ }
3103
+ if (message.gyroscope !== undefined) {
3104
+ IMUReportVec.encode(message.gyroscope, writer.uint32(18).fork()).ldelim();
3105
+ }
3106
+ if (message.magnetometer !== undefined) {
3107
+ IMUReportVec.encode(message.magnetometer, writer.uint32(26).fork()).ldelim();
3108
+ }
3109
+ if (message.rotationVector !== undefined) {
3110
+ IMUReportQuatWAcc.encode(message.rotationVector, writer.uint32(34).fork()).ldelim();
3111
+ }
3112
+ return writer;
3113
+ },
3114
+ decode(input, length) {
3115
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
3116
+ let end = length === undefined ? reader.len : reader.pos + length;
3117
+ const message = createBaseIMUPacket();
3118
+ while (reader.pos < end) {
3119
+ const tag = reader.uint32();
3120
+ switch (tag >>> 3) {
3121
+ case 1:
3122
+ if (tag !== 10) {
2402
3123
  break;
2403
3124
  }
2404
- message.profile = reader.int32();
3125
+ message.accelerometer = IMUReportVec.decode(reader, reader.uint32());
2405
3126
  continue;
2406
- case 8:
2407
- if (tag !== 64) {
3127
+ case 2:
3128
+ if (tag !== 18) {
2408
3129
  break;
2409
3130
  }
2410
- message.lossless = reader.bool();
3131
+ message.gyroscope = IMUReportVec.decode(reader, reader.uint32());
2411
3132
  continue;
2412
- case 9:
2413
- if (tag !== 72) {
3133
+ case 3:
3134
+ if (tag !== 26) {
2414
3135
  break;
2415
3136
  }
2416
- message.type = reader.int32();
3137
+ message.magnetometer = IMUReportVec.decode(reader, reader.uint32());
2417
3138
  continue;
2418
- case 10:
2419
- if (tag !== 80) {
3139
+ case 4:
3140
+ if (tag !== 34) {
2420
3141
  break;
2421
3142
  }
2422
- message.frameOffset = reader.uint32();
3143
+ message.rotationVector = IMUReportQuatWAcc.decode(reader, reader.uint32());
2423
3144
  continue;
2424
- case 11:
2425
- if (tag !== 88) {
3145
+ }
3146
+ if ((tag & 7) === 4 || tag === 0) {
3147
+ break;
3148
+ }
3149
+ reader.skipType(tag & 7);
3150
+ }
3151
+ return message;
3152
+ },
3153
+ fromJSON(object) {
3154
+ return {
3155
+ accelerometer: isSet$5(object.accelerometer) ? IMUReportVec.fromJSON(object.accelerometer) : undefined,
3156
+ gyroscope: isSet$5(object.gyroscope) ? IMUReportVec.fromJSON(object.gyroscope) : undefined,
3157
+ magnetometer: isSet$5(object.magnetometer) ? IMUReportVec.fromJSON(object.magnetometer) : undefined,
3158
+ rotationVector: isSet$5(object.rotationVector) ? IMUReportQuatWAcc.fromJSON(object.rotationVector) : undefined
3159
+ };
3160
+ },
3161
+ toJSON(message) {
3162
+ const obj = {};
3163
+ if (message.accelerometer !== undefined) {
3164
+ obj.accelerometer = IMUReportVec.toJSON(message.accelerometer);
3165
+ }
3166
+ if (message.gyroscope !== undefined) {
3167
+ obj.gyroscope = IMUReportVec.toJSON(message.gyroscope);
3168
+ }
3169
+ if (message.magnetometer !== undefined) {
3170
+ obj.magnetometer = IMUReportVec.toJSON(message.magnetometer);
3171
+ }
3172
+ if (message.rotationVector !== undefined) {
3173
+ obj.rotationVector = IMUReportQuatWAcc.toJSON(message.rotationVector);
3174
+ }
3175
+ return obj;
3176
+ },
3177
+ create(base) {
3178
+ return IMUPacket.fromPartial(base ?? {});
3179
+ },
3180
+ fromPartial(object) {
3181
+ const message = createBaseIMUPacket();
3182
+ message.accelerometer = object.accelerometer !== undefined && object.accelerometer !== null ? IMUReportVec.fromPartial(object.accelerometer) : undefined;
3183
+ message.gyroscope = object.gyroscope !== undefined && object.gyroscope !== null ? IMUReportVec.fromPartial(object.gyroscope) : undefined;
3184
+ message.magnetometer = object.magnetometer !== undefined && object.magnetometer !== null ? IMUReportVec.fromPartial(object.magnetometer) : undefined;
3185
+ message.rotationVector = object.rotationVector !== undefined && object.rotationVector !== null ? IMUReportQuatWAcc.fromPartial(object.rotationVector) : undefined;
3186
+ return message;
3187
+ }
3188
+ };
3189
+ function createBaseIMUData() {
3190
+ return {
3191
+ packets: [],
3192
+ sequenceNum: 0,
3193
+ ts: undefined,
3194
+ tsDevice: undefined
3195
+ };
3196
+ }
3197
+ const IMUData = {
3198
+ encode(message, writer = _m0.Writer.create()) {
3199
+ for (const v of message.packets) {
3200
+ IMUPacket.encode(v, writer.uint32(10).fork()).ldelim();
3201
+ }
3202
+ if (message.sequenceNum !== 0) {
3203
+ writer.uint32(16).int64(message.sequenceNum);
3204
+ }
3205
+ if (message.ts !== undefined) {
3206
+ Timestamp.encode(message.ts, writer.uint32(26).fork()).ldelim();
3207
+ }
3208
+ if (message.tsDevice !== undefined) {
3209
+ Timestamp.encode(message.tsDevice, writer.uint32(34).fork()).ldelim();
3210
+ }
3211
+ return writer;
3212
+ },
3213
+ decode(input, length) {
3214
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
3215
+ let end = length === undefined ? reader.len : reader.pos + length;
3216
+ const message = createBaseIMUData();
3217
+ while (reader.pos < end) {
3218
+ const tag = reader.uint32();
3219
+ switch (tag >>> 3) {
3220
+ case 1:
3221
+ if (tag !== 10) {
2426
3222
  break;
2427
3223
  }
2428
- message.frameSize = reader.uint32();
3224
+ message.packets.push(IMUPacket.decode(reader, reader.uint32()));
2429
3225
  continue;
2430
- case 12:
2431
- if (tag !== 96) {
3226
+ case 2:
3227
+ if (tag !== 16) {
2432
3228
  break;
2433
3229
  }
2434
3230
  message.sequenceNum = longToNumber$5(reader.int64());
2435
3231
  continue;
2436
- case 13:
2437
- if (tag !== 106) {
3232
+ case 3:
3233
+ if (tag !== 26) {
2438
3234
  break;
2439
3235
  }
2440
3236
  message.ts = Timestamp.decode(reader, reader.uint32());
2441
3237
  continue;
2442
- case 14:
2443
- if (tag !== 114) {
3238
+ case 4:
3239
+ if (tag !== 34) {
2444
3240
  break;
2445
3241
  }
2446
3242
  message.tsDevice = Timestamp.decode(reader, reader.uint32());
2447
3243
  continue;
2448
- case 15:
2449
- if (tag !== 122) {
2450
- break;
2451
- }
2452
- message.transformation = ImgTransformation.decode(reader, reader.uint32());
2453
- continue;
2454
- case 16:
2455
- if (tag !== 130) {
2456
- break;
2457
- }
2458
- message.data = reader.bytes();
2459
- continue;
2460
3244
  }
2461
3245
  if ((tag & 7) === 4 || tag === 0) {
2462
3246
  break;
@@ -2467,58 +3251,16 @@ const EncodedFrame = {
2467
3251
  },
2468
3252
  fromJSON(object) {
2469
3253
  return {
2470
- cam: isSet$5(object.cam) ? CameraSettings.fromJSON(object.cam) : undefined,
2471
- instanceNum: isSet$5(object.instanceNum) ? globalThis.Number(object.instanceNum) : 0,
2472
- width: isSet$5(object.width) ? globalThis.Number(object.width) : 0,
2473
- height: isSet$5(object.height) ? globalThis.Number(object.height) : 0,
2474
- quality: isSet$5(object.quality) ? globalThis.Number(object.quality) : 0,
2475
- bitrate: isSet$5(object.bitrate) ? globalThis.Number(object.bitrate) : 0,
2476
- profile: isSet$5(object.profile) ? profileFromJSON(object.profile) : 0,
2477
- lossless: isSet$5(object.lossless) ? globalThis.Boolean(object.lossless) : false,
2478
- type: isSet$5(object.type) ? frameTypeFromJSON(object.type) : 0,
2479
- frameOffset: isSet$5(object.frameOffset) ? globalThis.Number(object.frameOffset) : 0,
2480
- frameSize: isSet$5(object.frameSize) ? globalThis.Number(object.frameSize) : 0,
3254
+ packets: globalThis.Array.isArray(object?.packets) ? object.packets.map(e => IMUPacket.fromJSON(e)) : [],
2481
3255
  sequenceNum: isSet$5(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
2482
3256
  ts: isSet$5(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
2483
- tsDevice: isSet$5(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
2484
- transformation: isSet$5(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined,
2485
- data: isSet$5(object.data) ? bytesFromBase64$2(object.data) : new Uint8Array(0)
3257
+ tsDevice: isSet$5(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined
2486
3258
  };
2487
3259
  },
2488
3260
  toJSON(message) {
2489
3261
  const obj = {};
2490
- if (message.cam !== undefined) {
2491
- obj.cam = CameraSettings.toJSON(message.cam);
2492
- }
2493
- if (message.instanceNum !== 0) {
2494
- obj.instanceNum = Math.round(message.instanceNum);
2495
- }
2496
- if (message.width !== 0) {
2497
- obj.width = Math.round(message.width);
2498
- }
2499
- if (message.height !== 0) {
2500
- obj.height = Math.round(message.height);
2501
- }
2502
- if (message.quality !== 0) {
2503
- obj.quality = Math.round(message.quality);
2504
- }
2505
- if (message.bitrate !== 0) {
2506
- obj.bitrate = Math.round(message.bitrate);
2507
- }
2508
- if (message.profile !== 0) {
2509
- obj.profile = profileToJSON(message.profile);
2510
- }
2511
- if (message.lossless !== false) {
2512
- obj.lossless = message.lossless;
2513
- }
2514
- if (message.type !== 0) {
2515
- obj.type = frameTypeToJSON(message.type);
2516
- }
2517
- if (message.frameOffset !== 0) {
2518
- obj.frameOffset = Math.round(message.frameOffset);
2519
- }
2520
- if (message.frameSize !== 0) {
2521
- obj.frameSize = Math.round(message.frameSize);
3262
+ if (message.packets?.length) {
3263
+ obj.packets = message.packets.map(e => IMUPacket.toJSON(e));
2522
3264
  }
2523
3265
  if (message.sequenceNum !== 0) {
2524
3266
  obj.sequenceNum = Math.round(message.sequenceNum);
@@ -2529,61 +3271,20 @@ const EncodedFrame = {
2529
3271
  if (message.tsDevice !== undefined) {
2530
3272
  obj.tsDevice = Timestamp.toJSON(message.tsDevice);
2531
3273
  }
2532
- if (message.transformation !== undefined) {
2533
- obj.transformation = ImgTransformation.toJSON(message.transformation);
2534
- }
2535
- if (message.data.length !== 0) {
2536
- obj.data = base64FromBytes$2(message.data);
2537
- }
2538
3274
  return obj;
2539
3275
  },
2540
3276
  create(base) {
2541
- return EncodedFrame.fromPartial(base ?? {});
3277
+ return IMUData.fromPartial(base ?? {});
2542
3278
  },
2543
3279
  fromPartial(object) {
2544
- const message = createBaseEncodedFrame();
2545
- message.cam = object.cam !== undefined && object.cam !== null ? CameraSettings.fromPartial(object.cam) : undefined;
2546
- message.instanceNum = object.instanceNum ?? 0;
2547
- message.width = object.width ?? 0;
2548
- message.height = object.height ?? 0;
2549
- message.quality = object.quality ?? 0;
2550
- message.bitrate = object.bitrate ?? 0;
2551
- message.profile = object.profile ?? 0;
2552
- message.lossless = object.lossless ?? false;
2553
- message.type = object.type ?? 0;
2554
- message.frameOffset = object.frameOffset ?? 0;
2555
- message.frameSize = object.frameSize ?? 0;
3280
+ const message = createBaseIMUData();
3281
+ message.packets = object.packets?.map(e => IMUPacket.fromPartial(e)) || [];
2556
3282
  message.sequenceNum = object.sequenceNum ?? 0;
2557
3283
  message.ts = object.ts !== undefined && object.ts !== null ? Timestamp.fromPartial(object.ts) : undefined;
2558
3284
  message.tsDevice = object.tsDevice !== undefined && object.tsDevice !== null ? Timestamp.fromPartial(object.tsDevice) : undefined;
2559
- message.transformation = object.transformation !== undefined && object.transformation !== null ? ImgTransformation.fromPartial(object.transformation) : undefined;
2560
- message.data = object.data ?? new Uint8Array(0);
2561
3285
  return message;
2562
3286
  }
2563
3287
  };
2564
- function bytesFromBase64$2(b64) {
2565
- if (globalThis.Buffer) {
2566
- return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
2567
- } else {
2568
- const bin = globalThis.atob(b64);
2569
- const arr = new Uint8Array(bin.length);
2570
- for (let i = 0; i < bin.length; ++i) {
2571
- arr[i] = bin.charCodeAt(i);
2572
- }
2573
- return arr;
2574
- }
2575
- }
2576
- function base64FromBytes$2(arr) {
2577
- if (globalThis.Buffer) {
2578
- return globalThis.Buffer.from(arr).toString("base64");
2579
- } else {
2580
- const bin = [];
2581
- arr.forEach(byte => {
2582
- bin.push(globalThis.String.fromCharCode(byte));
2583
- });
2584
- return globalThis.btoa(bin.join(""));
2585
- }
2586
- }
2587
3288
  function longToNumber$5(long) {
2588
3289
  if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
2589
3290
  throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
@@ -2600,7 +3301,6 @@ if (_m0.util.Long !== Long) {
2600
3301
  function isSet$5(value) {
2601
3302
  return value !== null && value !== undefined;
2602
3303
  }
2603
- const protobufName$5 = "EncodedFrame";
2604
3304
 
2605
3305
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2606
3306
  // versions:
@@ -5080,7 +5780,7 @@ const protobufName = "SpatialImgDetections";
5080
5780
 
5081
5781
  const protobufs = {
5082
5782
  encodedFrame: {
5083
- name: `${protobufPackage$5}.${protobufName$5}`,
5783
+ name: `${protobufPackage$6}.${protobufName$5}`,
5084
5784
  decoder: EncodedFrame,
5085
5785
  kind: "image"
5086
5786
  },
@@ -5104,6 +5804,11 @@ const protobufs = {
5104
5804
  decoder: SpatialImgDetections,
5105
5805
  kind: "annotations"
5106
5806
  },
5807
+ imu: {
5808
+ name: `${protobufPackage$5}.IMUData`,
5809
+ decoder: IMUData,
5810
+ kind: "imu"
5811
+ },
5107
5812
  pointCloud: {
5108
5813
  name: `${protobufPackage$1}.${protobufName$1}`,
5109
5814
  decoder: PointCloudData,
@@ -5119,6 +5824,8 @@ function protobufSchemaNameToType(name) {
5119
5824
  case "imageDetectionsCustom":
5120
5825
  case "imageDetectionsSpatial":
5121
5826
  return "annotations";
5827
+ case "imu":
5828
+ return "imu";
5122
5829
  case "pointCloud":
5123
5830
  return "pointCloud";
5124
5831
  default: