@luxonis/visualizer-protobuf 3.1.13 → 3.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FoxgloveServer-Da9kV1cr.js → FoxgloveServer-CpnCBMeV.js} +1 -1
- package/dist/{communicator-Dh2aL-rj.js → communicator-DO6hmBxI.js} +1 -1
- package/dist/{depth-DiD1V2Sg.js → depth-Me_0Xnx6.js} +89 -2
- package/dist/{deserialization.worker-DU2Hs4UP.js → deserialization.worker-CUrCdjHf.js} +401 -137
- package/dist/{foxglove-protocol-BtLMVx24.js → foxglove-protocol-SrBOBs-8.js} +1 -1
- package/dist/{index-B5oN0fQm.js → index-5ZSfZI8d.js} +1 -1
- package/dist/{index-CNjpp5xs.js → index-B8aafdRQ.js} +5 -5
- package/dist/{index-B_3PleIH.js → index-BMew9qiQ.js} +57 -126
- package/dist/{index-D686pHc1.js → index-BsIRFSYD.js} +36 -9
- package/dist/{index-CqayH0_I.js → index-CIhAU5Cs.js} +5 -5
- package/dist/{index-DnhrXuH6.js → index-CN6tI-uI.js} +5 -5
- package/dist/{index--95nXh6E.js → index-CQtXiN8I.js} +5 -5
- package/dist/{index-DewnJOHY.js → index-CZGEFE1k.js} +5 -5
- package/dist/{index-CcWunxJv.js → index-CeRrHeG_.js} +5 -5
- package/dist/{index-BMp_L7Aa.js → index-CqH6rdRP.js} +5 -5
- package/dist/{index-JlGCfxtk.js → index-CrPun-aU.js} +5 -5
- package/dist/{index-B9-rLgJ9.js → index-Dc3rS1Cf.js} +7 -7
- package/dist/{index-CidrwlEk.js → index-DgNYLOM9.js} +5 -5
- package/dist/{index-DzOBiI2h.js → index-DjRF0u25.js} +5 -5
- package/dist/{index-CxKEiKY9.js → index-Dmc1065I.js} +5 -5
- package/dist/{index-BjiepKHF.js → index-Dn6pTTdu.js} +5 -5
- package/dist/{index-CCq5_y78.js → index-N2I7Bhtx.js} +5 -5
- package/dist/{index-X1k93Nku.js → index-_Z7btKy-.js} +5 -5
- package/dist/{index-C45UVGjk.js → index-_ggcs841.js} +5 -5
- package/dist/{index-DopAEQk2.js → index-svPKcEP3.js} +5 -5
- package/dist/{index-DWt4Nj5G.js → index-u1cGSF5c.js} +5 -5
- package/dist/index.js +5 -5
- package/dist/lib/src/components/PanelToolbar.d.ts.map +1 -1
- package/dist/lib/src/components/PanelToolbar.js +2 -2
- package/dist/lib/src/components/PanelToolbar.js.map +1 -1
- package/dist/lib/src/connection/foxglove-connection.d.ts.map +1 -1
- package/dist/lib/src/connection/foxglove-connection.js +12 -2
- package/dist/lib/src/connection/foxglove-connection.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/pointcloud/pointcloudFromDepth.worker.js +59 -20
- package/dist/lib/src/messaging/deserialization/pointcloud/pointcloudFromDepth.worker.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/pointcloud/utils.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/pointcloud/utils.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h264.d.ts +2 -1
- package/dist/lib/src/messaging/deserialization/video/h264.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h264.js +14 -10
- package/dist/lib/src/messaging/deserialization/video/h264.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h265.d.ts +1 -0
- package/dist/lib/src/messaging/deserialization/video/h265.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h265.js +12 -6
- package/dist/lib/src/messaging/deserialization/video/h265.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/rgbd-to-pointcloud.d.ts +4 -4
- package/dist/lib/src/messaging/deserialization/video/rgbd-to-pointcloud.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/rgbd-to-pointcloud.js +350 -84
- package/dist/lib/src/messaging/deserialization/video/rgbd-to-pointcloud.js.map +1 -1
- package/dist/lib/src/messaging/protobuf.d.ts +2 -2
- package/dist/lib/src/messaging/protobuf.d.ts.map +1 -1
- package/dist/lib/src/messaging/protobuf.js +3 -3
- package/dist/lib/src/messaging/protobuf.js.map +1 -1
- package/dist/lib/src/utils/poitcloud-sync.d.ts +7 -2
- package/dist/lib/src/utils/poitcloud-sync.d.ts.map +1 -1
- package/dist/lib/src/utils/poitcloud-sync.js +10 -6
- package/dist/lib/src/utils/poitcloud-sync.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.js +7 -2
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.js +33 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.js.map +1 -1
- package/dist/{pointcloudFromDepth.worker-60RA4Ief.js → pointcloudFromDepth.worker-wzSOsJVb.js} +86 -47
- package/dist/{protobuf-OcbVtxg1.js → protobuf-CKMA2Rn8.js} +214 -214
- package/dist/{worker-C2MHIq3t.js → worker-Bhe7uYcO.js} +4 -4
- package/dist/{worker-Be-hru8f.js → worker-VIU0v1ZW.js} +3 -3
- package/package.json +1 -1
|
@@ -5930,13 +5930,194 @@ function isSet$2(value) {
|
|
|
5930
5930
|
}
|
|
5931
5931
|
const protobufName$2 = "PointCloudData";
|
|
5932
5932
|
|
|
5933
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
5934
|
+
// versions:
|
|
5935
|
+
// protoc-gen-ts_proto v2.10.1
|
|
5936
|
+
// protoc v3.21.12
|
|
5937
|
+
// source: RGBDData.proto
|
|
5938
|
+
|
|
5939
|
+
const protobufPackage$1 = "dai.proto.rgbd_data";
|
|
5940
|
+
function createBaseRGBDData() {
|
|
5941
|
+
return {
|
|
5942
|
+
ts: undefined,
|
|
5943
|
+
tsDevice: undefined,
|
|
5944
|
+
sequenceNum: 0,
|
|
5945
|
+
colorImgFrame: undefined,
|
|
5946
|
+
colorEncodedFrame: undefined,
|
|
5947
|
+
depthImgFrame: undefined,
|
|
5948
|
+
depthEncodedFrame: undefined
|
|
5949
|
+
};
|
|
5950
|
+
}
|
|
5951
|
+
const RGBDData = {
|
|
5952
|
+
encode(message, writer = new BinaryWriter()) {
|
|
5953
|
+
if (message.ts !== undefined) {
|
|
5954
|
+
Timestamp.encode(message.ts, writer.uint32(10).fork()).join();
|
|
5955
|
+
}
|
|
5956
|
+
if (message.tsDevice !== undefined) {
|
|
5957
|
+
Timestamp.encode(message.tsDevice, writer.uint32(18).fork()).join();
|
|
5958
|
+
}
|
|
5959
|
+
if (message.sequenceNum !== 0) {
|
|
5960
|
+
writer.uint32(24).int64(message.sequenceNum);
|
|
5961
|
+
}
|
|
5962
|
+
if (message.colorImgFrame !== undefined) {
|
|
5963
|
+
ImgFrame.encode(message.colorImgFrame, writer.uint32(34).fork()).join();
|
|
5964
|
+
}
|
|
5965
|
+
if (message.colorEncodedFrame !== undefined) {
|
|
5966
|
+
EncodedFrame.encode(message.colorEncodedFrame, writer.uint32(42).fork()).join();
|
|
5967
|
+
}
|
|
5968
|
+
if (message.depthImgFrame !== undefined) {
|
|
5969
|
+
ImgFrame.encode(message.depthImgFrame, writer.uint32(50).fork()).join();
|
|
5970
|
+
}
|
|
5971
|
+
if (message.depthEncodedFrame !== undefined) {
|
|
5972
|
+
EncodedFrame.encode(message.depthEncodedFrame, writer.uint32(58).fork()).join();
|
|
5973
|
+
}
|
|
5974
|
+
return writer;
|
|
5975
|
+
},
|
|
5976
|
+
decode(input, length) {
|
|
5977
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5978
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5979
|
+
const message = createBaseRGBDData();
|
|
5980
|
+
while (reader.pos < end) {
|
|
5981
|
+
const tag = reader.uint32();
|
|
5982
|
+
switch (tag >>> 3) {
|
|
5983
|
+
case 1:
|
|
5984
|
+
{
|
|
5985
|
+
if (tag !== 10) {
|
|
5986
|
+
break;
|
|
5987
|
+
}
|
|
5988
|
+
message.ts = Timestamp.decode(reader, reader.uint32());
|
|
5989
|
+
continue;
|
|
5990
|
+
}
|
|
5991
|
+
case 2:
|
|
5992
|
+
{
|
|
5993
|
+
if (tag !== 18) {
|
|
5994
|
+
break;
|
|
5995
|
+
}
|
|
5996
|
+
message.tsDevice = Timestamp.decode(reader, reader.uint32());
|
|
5997
|
+
continue;
|
|
5998
|
+
}
|
|
5999
|
+
case 3:
|
|
6000
|
+
{
|
|
6001
|
+
if (tag !== 24) {
|
|
6002
|
+
break;
|
|
6003
|
+
}
|
|
6004
|
+
message.sequenceNum = longToNumber$1(reader.int64());
|
|
6005
|
+
continue;
|
|
6006
|
+
}
|
|
6007
|
+
case 4:
|
|
6008
|
+
{
|
|
6009
|
+
if (tag !== 34) {
|
|
6010
|
+
break;
|
|
6011
|
+
}
|
|
6012
|
+
message.colorImgFrame = ImgFrame.decode(reader, reader.uint32());
|
|
6013
|
+
continue;
|
|
6014
|
+
}
|
|
6015
|
+
case 5:
|
|
6016
|
+
{
|
|
6017
|
+
if (tag !== 42) {
|
|
6018
|
+
break;
|
|
6019
|
+
}
|
|
6020
|
+
message.colorEncodedFrame = EncodedFrame.decode(reader, reader.uint32());
|
|
6021
|
+
continue;
|
|
6022
|
+
}
|
|
6023
|
+
case 6:
|
|
6024
|
+
{
|
|
6025
|
+
if (tag !== 50) {
|
|
6026
|
+
break;
|
|
6027
|
+
}
|
|
6028
|
+
message.depthImgFrame = ImgFrame.decode(reader, reader.uint32());
|
|
6029
|
+
continue;
|
|
6030
|
+
}
|
|
6031
|
+
case 7:
|
|
6032
|
+
{
|
|
6033
|
+
if (tag !== 58) {
|
|
6034
|
+
break;
|
|
6035
|
+
}
|
|
6036
|
+
message.depthEncodedFrame = EncodedFrame.decode(reader, reader.uint32());
|
|
6037
|
+
continue;
|
|
6038
|
+
}
|
|
6039
|
+
}
|
|
6040
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6041
|
+
break;
|
|
6042
|
+
}
|
|
6043
|
+
reader.skip(tag & 7);
|
|
6044
|
+
}
|
|
6045
|
+
return message;
|
|
6046
|
+
},
|
|
6047
|
+
fromJSON(object) {
|
|
6048
|
+
return {
|
|
6049
|
+
ts: isSet$1(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
|
|
6050
|
+
tsDevice: isSet$1(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
|
|
6051
|
+
sequenceNum: isSet$1(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
|
|
6052
|
+
colorImgFrame: isSet$1(object.colorImgFrame) ? ImgFrame.fromJSON(object.colorImgFrame) : undefined,
|
|
6053
|
+
colorEncodedFrame: isSet$1(object.colorEncodedFrame) ? EncodedFrame.fromJSON(object.colorEncodedFrame) : undefined,
|
|
6054
|
+
depthImgFrame: isSet$1(object.depthImgFrame) ? ImgFrame.fromJSON(object.depthImgFrame) : undefined,
|
|
6055
|
+
depthEncodedFrame: isSet$1(object.depthEncodedFrame) ? EncodedFrame.fromJSON(object.depthEncodedFrame) : undefined
|
|
6056
|
+
};
|
|
6057
|
+
},
|
|
6058
|
+
toJSON(message) {
|
|
6059
|
+
const obj = {};
|
|
6060
|
+
if (message.ts !== undefined) {
|
|
6061
|
+
obj.ts = Timestamp.toJSON(message.ts);
|
|
6062
|
+
}
|
|
6063
|
+
if (message.tsDevice !== undefined) {
|
|
6064
|
+
obj.tsDevice = Timestamp.toJSON(message.tsDevice);
|
|
6065
|
+
}
|
|
6066
|
+
if (message.sequenceNum !== 0) {
|
|
6067
|
+
obj.sequenceNum = Math.round(message.sequenceNum);
|
|
6068
|
+
}
|
|
6069
|
+
if (message.colorImgFrame !== undefined) {
|
|
6070
|
+
obj.colorImgFrame = ImgFrame.toJSON(message.colorImgFrame);
|
|
6071
|
+
}
|
|
6072
|
+
if (message.colorEncodedFrame !== undefined) {
|
|
6073
|
+
obj.colorEncodedFrame = EncodedFrame.toJSON(message.colorEncodedFrame);
|
|
6074
|
+
}
|
|
6075
|
+
if (message.depthImgFrame !== undefined) {
|
|
6076
|
+
obj.depthImgFrame = ImgFrame.toJSON(message.depthImgFrame);
|
|
6077
|
+
}
|
|
6078
|
+
if (message.depthEncodedFrame !== undefined) {
|
|
6079
|
+
obj.depthEncodedFrame = EncodedFrame.toJSON(message.depthEncodedFrame);
|
|
6080
|
+
}
|
|
6081
|
+
return obj;
|
|
6082
|
+
},
|
|
6083
|
+
create(base) {
|
|
6084
|
+
return RGBDData.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
6085
|
+
},
|
|
6086
|
+
fromPartial(object) {
|
|
6087
|
+
var _object$sequenceNum;
|
|
6088
|
+
const message = createBaseRGBDData();
|
|
6089
|
+
message.ts = object.ts !== undefined && object.ts !== null ? Timestamp.fromPartial(object.ts) : undefined;
|
|
6090
|
+
message.tsDevice = object.tsDevice !== undefined && object.tsDevice !== null ? Timestamp.fromPartial(object.tsDevice) : undefined;
|
|
6091
|
+
message.sequenceNum = (_object$sequenceNum = object.sequenceNum) !== null && _object$sequenceNum !== void 0 ? _object$sequenceNum : 0;
|
|
6092
|
+
message.colorImgFrame = object.colorImgFrame !== undefined && object.colorImgFrame !== null ? ImgFrame.fromPartial(object.colorImgFrame) : undefined;
|
|
6093
|
+
message.colorEncodedFrame = object.colorEncodedFrame !== undefined && object.colorEncodedFrame !== null ? EncodedFrame.fromPartial(object.colorEncodedFrame) : undefined;
|
|
6094
|
+
message.depthImgFrame = object.depthImgFrame !== undefined && object.depthImgFrame !== null ? ImgFrame.fromPartial(object.depthImgFrame) : undefined;
|
|
6095
|
+
message.depthEncodedFrame = object.depthEncodedFrame !== undefined && object.depthEncodedFrame !== null ? EncodedFrame.fromPartial(object.depthEncodedFrame) : undefined;
|
|
6096
|
+
return message;
|
|
6097
|
+
}
|
|
6098
|
+
};
|
|
6099
|
+
function longToNumber$1(int64) {
|
|
6100
|
+
const num = globalThis.Number(int64.toString());
|
|
6101
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
6102
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
6103
|
+
}
|
|
6104
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
6105
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
6106
|
+
}
|
|
6107
|
+
return num;
|
|
6108
|
+
}
|
|
6109
|
+
function isSet$1(value) {
|
|
6110
|
+
return value !== null && value !== undefined;
|
|
6111
|
+
}
|
|
6112
|
+
const protobufName$1 = "RGBDData";
|
|
6113
|
+
|
|
5933
6114
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
5934
6115
|
// versions:
|
|
5935
6116
|
// protoc-gen-ts_proto v2.10.1
|
|
5936
6117
|
// protoc v3.21.12
|
|
5937
6118
|
// source: SpatialImgDetections.proto
|
|
5938
6119
|
|
|
5939
|
-
const protobufPackage
|
|
6120
|
+
const protobufPackage = "dai.proto.spatial_img_detections";
|
|
5940
6121
|
let SpatialLocationCalculatorAlgorithm = /*#__PURE__*/function (SpatialLocationCalculatorAlgorithm) {
|
|
5941
6122
|
SpatialLocationCalculatorAlgorithm[SpatialLocationCalculatorAlgorithm["AVERAGE"] = 0] = "AVERAGE";
|
|
5942
6123
|
SpatialLocationCalculatorAlgorithm[SpatialLocationCalculatorAlgorithm["MEAN"] = 0] = "MEAN";
|
|
@@ -6044,7 +6225,7 @@ const SpatialImgDetections = {
|
|
|
6044
6225
|
if (tag !== 8) {
|
|
6045
6226
|
break;
|
|
6046
6227
|
}
|
|
6047
|
-
message.sequenceNum = longToNumber
|
|
6228
|
+
message.sequenceNum = longToNumber(reader.int64());
|
|
6048
6229
|
continue;
|
|
6049
6230
|
}
|
|
6050
6231
|
case 2:
|
|
@@ -6084,7 +6265,7 @@ const SpatialImgDetections = {
|
|
|
6084
6265
|
if (tag !== 48) {
|
|
6085
6266
|
break;
|
|
6086
6267
|
}
|
|
6087
|
-
message.segmentationMaskWidth = longToNumber
|
|
6268
|
+
message.segmentationMaskWidth = longToNumber(reader.int64());
|
|
6088
6269
|
continue;
|
|
6089
6270
|
}
|
|
6090
6271
|
case 7:
|
|
@@ -6092,7 +6273,7 @@ const SpatialImgDetections = {
|
|
|
6092
6273
|
if (tag !== 56) {
|
|
6093
6274
|
break;
|
|
6094
6275
|
}
|
|
6095
|
-
message.segmentationMaskHeight = longToNumber
|
|
6276
|
+
message.segmentationMaskHeight = longToNumber(reader.int64());
|
|
6096
6277
|
continue;
|
|
6097
6278
|
}
|
|
6098
6279
|
case 8:
|
|
@@ -6113,14 +6294,14 @@ const SpatialImgDetections = {
|
|
|
6113
6294
|
},
|
|
6114
6295
|
fromJSON(object) {
|
|
6115
6296
|
return {
|
|
6116
|
-
sequenceNum: isSet
|
|
6117
|
-
ts: isSet
|
|
6118
|
-
tsDevice: isSet
|
|
6297
|
+
sequenceNum: isSet(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
|
|
6298
|
+
ts: isSet(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
|
|
6299
|
+
tsDevice: isSet(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
|
|
6119
6300
|
detections: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.detections) ? object.detections.map(e => SpatialImgDetection.fromJSON(e)) : [],
|
|
6120
|
-
transformation: isSet
|
|
6121
|
-
segmentationMaskWidth: isSet
|
|
6122
|
-
segmentationMaskHeight: isSet
|
|
6123
|
-
maskData: isSet
|
|
6301
|
+
transformation: isSet(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined,
|
|
6302
|
+
segmentationMaskWidth: isSet(object.segmentationMaskWidth) ? globalThis.Number(object.segmentationMaskWidth) : 0,
|
|
6303
|
+
segmentationMaskHeight: isSet(object.segmentationMaskHeight) ? globalThis.Number(object.segmentationMaskHeight) : 0,
|
|
6304
|
+
maskData: isSet(object.maskData) ? bytesFromBase64(object.maskData) : new Uint8Array(0)
|
|
6124
6305
|
};
|
|
6125
6306
|
},
|
|
6126
6307
|
toJSON(message) {
|
|
@@ -6242,10 +6423,10 @@ const SpatialImgDetection = {
|
|
|
6242
6423
|
},
|
|
6243
6424
|
fromJSON(object) {
|
|
6244
6425
|
return {
|
|
6245
|
-
detection: isSet
|
|
6246
|
-
spatialCoordinates: isSet
|
|
6247
|
-
boundingBoxMapping: isSet
|
|
6248
|
-
keypoints: isSet
|
|
6426
|
+
detection: isSet(object.detection) ? ImgDetection.fromJSON(object.detection) : undefined,
|
|
6427
|
+
spatialCoordinates: isSet(object.spatialCoordinates) ? Point3f.fromJSON(object.spatialCoordinates) : undefined,
|
|
6428
|
+
boundingBoxMapping: isSet(object.boundingBoxMapping) ? SpatialLocationCalculatorConfigData.fromJSON(object.boundingBoxMapping) : undefined,
|
|
6429
|
+
keypoints: isSet(object.keypoints) ? SpatialKeypointsList.fromJSON(object.keypoints) : undefined
|
|
6249
6430
|
};
|
|
6250
6431
|
},
|
|
6251
6432
|
toJSON(message) {
|
|
@@ -6349,10 +6530,10 @@ const SpatialLocationCalculatorConfigData = {
|
|
|
6349
6530
|
},
|
|
6350
6531
|
fromJSON(object) {
|
|
6351
6532
|
return {
|
|
6352
|
-
roi: isSet
|
|
6353
|
-
depthThresholds: isSet
|
|
6354
|
-
calculationAlgorithm: isSet
|
|
6355
|
-
stepSize: isSet
|
|
6533
|
+
roi: isSet(object.roi) ? Rect.fromJSON(object.roi) : undefined,
|
|
6534
|
+
depthThresholds: isSet(object.depthThresholds) ? SpatialLocationCalculatorConfigThresholds.fromJSON(object.depthThresholds) : undefined,
|
|
6535
|
+
calculationAlgorithm: isSet(object.calculationAlgorithm) ? spatialLocationCalculatorAlgorithmFromJSON(object.calculationAlgorithm) : 0,
|
|
6536
|
+
stepSize: isSet(object.stepSize) ? globalThis.Number(object.stepSize) : 0
|
|
6356
6537
|
};
|
|
6357
6538
|
},
|
|
6358
6539
|
toJSON(message) {
|
|
@@ -6457,10 +6638,10 @@ const Rect = {
|
|
|
6457
6638
|
},
|
|
6458
6639
|
fromJSON(object) {
|
|
6459
6640
|
return {
|
|
6460
|
-
x: isSet
|
|
6461
|
-
y: isSet
|
|
6462
|
-
width: isSet
|
|
6463
|
-
height: isSet
|
|
6641
|
+
x: isSet(object.x) ? globalThis.Number(object.x) : 0,
|
|
6642
|
+
y: isSet(object.y) ? globalThis.Number(object.y) : 0,
|
|
6643
|
+
width: isSet(object.width) ? globalThis.Number(object.width) : 0,
|
|
6644
|
+
height: isSet(object.height) ? globalThis.Number(object.height) : 0
|
|
6464
6645
|
};
|
|
6465
6646
|
},
|
|
6466
6647
|
toJSON(message) {
|
|
@@ -6541,8 +6722,8 @@ const SpatialLocationCalculatorConfigThresholds = {
|
|
|
6541
6722
|
},
|
|
6542
6723
|
fromJSON(object) {
|
|
6543
6724
|
return {
|
|
6544
|
-
lowerThreshold: isSet
|
|
6545
|
-
upperThreshold: isSet
|
|
6725
|
+
lowerThreshold: isSet(object.lowerThreshold) ? globalThis.Number(object.lowerThreshold) : 0,
|
|
6726
|
+
upperThreshold: isSet(object.upperThreshold) ? globalThis.Number(object.upperThreshold) : 0
|
|
6546
6727
|
};
|
|
6547
6728
|
},
|
|
6548
6729
|
toJSON(message) {
|
|
@@ -6627,9 +6808,9 @@ const Point3f = {
|
|
|
6627
6808
|
},
|
|
6628
6809
|
fromJSON(object) {
|
|
6629
6810
|
return {
|
|
6630
|
-
x: isSet
|
|
6631
|
-
y: isSet
|
|
6632
|
-
z: isSet
|
|
6811
|
+
x: isSet(object.x) ? globalThis.Number(object.x) : 0,
|
|
6812
|
+
y: isSet(object.y) ? globalThis.Number(object.y) : 0,
|
|
6813
|
+
z: isSet(object.z) ? globalThis.Number(object.z) : 0
|
|
6633
6814
|
};
|
|
6634
6815
|
},
|
|
6635
6816
|
toJSON(message) {
|
|
@@ -6680,187 +6861,6 @@ function base64FromBytes(arr) {
|
|
|
6680
6861
|
return globalThis.btoa(bin.join(""));
|
|
6681
6862
|
}
|
|
6682
6863
|
}
|
|
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
|
-
};
|
|
6864
6864
|
function longToNumber(int64) {
|
|
6865
6865
|
const num = globalThis.Number(int64.toString());
|
|
6866
6866
|
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
@@ -6874,7 +6874,7 @@ function longToNumber(int64) {
|
|
|
6874
6874
|
function isSet(value) {
|
|
6875
6875
|
return value !== null && value !== undefined;
|
|
6876
6876
|
}
|
|
6877
|
-
const protobufName = "
|
|
6877
|
+
const protobufName = "SpatialImgDetections";
|
|
6878
6878
|
|
|
6879
6879
|
const protobufs = {
|
|
6880
6880
|
encodedFrame: {
|
|
@@ -6898,7 +6898,7 @@ const protobufs = {
|
|
|
6898
6898
|
kind: "annotations"
|
|
6899
6899
|
},
|
|
6900
6900
|
imageDetectionsSpatial: {
|
|
6901
|
-
name: `${protobufPackage
|
|
6901
|
+
name: `${protobufPackage}.${protobufName}`,
|
|
6902
6902
|
decoder: SpatialImgDetections,
|
|
6903
6903
|
kind: "annotations"
|
|
6904
6904
|
},
|
|
@@ -6913,7 +6913,7 @@ const protobufs = {
|
|
|
6913
6913
|
kind: "pointCloud"
|
|
6914
6914
|
},
|
|
6915
6915
|
rgbd: {
|
|
6916
|
-
name: `${protobufPackage}.${protobufName}`,
|
|
6916
|
+
name: `${protobufPackage$1}.${protobufName$1}`,
|
|
6917
6917
|
decoder: RGBDData,
|
|
6918
6918
|
kind: "rgbd"
|
|
6919
6919
|
}
|
|
@@ -6931,8 +6931,8 @@ function protobufSchemaNameToType(name) {
|
|
|
6931
6931
|
return "imu";
|
|
6932
6932
|
case "pointCloud":
|
|
6933
6933
|
return "pointCloud";
|
|
6934
|
-
case
|
|
6935
|
-
return
|
|
6934
|
+
case "rgbd":
|
|
6935
|
+
return "rgbd";
|
|
6936
6936
|
default:
|
|
6937
6937
|
throw new Error(`Unknown protobuf schema name: ${name}`);
|
|
6938
6938
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey } from './protobuf-
|
|
2
|
+
import { _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey } from './protobuf-CKMA2Rn8.js';
|
|
3
3
|
import { r as recordToDataView } from './encoding-jXImCIb4.js';
|
|
4
|
-
import { F as FoxgloveCommunicator } from './communicator-
|
|
5
|
-
import { m as makeServiceCallRequest } from './foxglove-protocol-
|
|
4
|
+
import { F as FoxgloveCommunicator } from './communicator-DO6hmBxI.js';
|
|
5
|
+
import { m as makeServiceCallRequest } from './foxglove-protocol-SrBOBs-8.js';
|
|
6
6
|
import './logger-Bqy1nuLj.js';
|
|
7
|
-
import './FoxgloveServer-
|
|
7
|
+
import './FoxgloveServer-CpnCBMeV.js';
|
|
8
8
|
import 'ms';
|
|
9
9
|
|
|
10
10
|
var _subscriptionId = /*#__PURE__*/_classPrivateFieldLooseKey("subscriptionId");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey } from './protobuf-
|
|
3
|
-
import { F as FoxgloveClient } from './FoxgloveServer-
|
|
2
|
+
import { _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey } from './protobuf-CKMA2Rn8.js';
|
|
3
|
+
import { F as FoxgloveClient } from './FoxgloveServer-CpnCBMeV.js';
|
|
4
4
|
import { L as Logger } from './logger-Bqy1nuLj.js';
|
|
5
|
-
import { F as FoxgloveCommunicator } from './communicator-
|
|
5
|
+
import { F as FoxgloveCommunicator } from './communicator-DO6hmBxI.js';
|
|
6
6
|
import 'ms';
|
|
7
7
|
import './encoding-jXImCIb4.js';
|
|
8
8
|
|