@luxonis/visualizer-protobuf 1.6.0 → 1.6.2
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/apps/depthai-visualizer/lib/src/connection/BaseConnection.d.ts +2 -1
- package/dist/apps/depthai-visualizer/lib/src/connection/BaseConnection.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/connection/BaseConnection.js.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/connection/ws/worker.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/connection/ws/worker.js +5 -9
- package/dist/apps/depthai-visualizer/lib/src/connection/ws/worker.js.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/messaging/deserialization.d.ts +6 -6
- package/dist/apps/depthai-visualizer/lib/src/messaging/deserialization.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/messaging/deserialization.js +6 -6
- package/dist/apps/depthai-visualizer/lib/src/messaging/deserialization.js.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/messaging/message-handler.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/messaging/message-handler.js +5 -35
- package/dist/apps/depthai-visualizer/lib/src/messaging/message-handler.js.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/messaging/protobuf.d.ts +158 -0
- package/dist/apps/depthai-visualizer/lib/src/messaging/protobuf.d.ts.map +1 -0
- package/dist/apps/depthai-visualizer/lib/src/messaging/protobuf.js +40 -0
- package/dist/apps/depthai-visualizer/lib/src/messaging/protobuf.js.map +1 -0
- package/dist/{index-FbdFgxfl.js → index-B8tJ5E-v.js} +5 -5
- package/dist/{index-CssU1TR9.js → index-BoCFgPcb.js} +341 -5538
- package/dist/{index-BHqhWNC3.js → index-CDLN8AQd.js} +50 -56
- package/dist/{index-E-b7zaCM.js → index-CcszYLTP.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.d.ts +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.js +47 -50
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.js.map +1 -1
- package/dist/protobuf-CjDCjqx3.js +5242 -0
- package/dist/{worker-DYxcuzJr.js → worker-prm9jOcV.js} +10 -11
- package/package.json +1 -1
- package/dist/_commonjsHelpers-Dr0z5XX9.js +0 -32
|
@@ -2,6 +2,7 @@ import { Time } from "@foxglove/rostime";
|
|
|
2
2
|
import { MessageEvent, PlayerState, PlayerPresence, PlayerProblem } from "@foxglove/studio-base/players/types";
|
|
3
3
|
import { MessageHandler } from "../messaging/message-handler.js";
|
|
4
4
|
import { WebSocketConnectionMessage } from "./ws/Adapter.js";
|
|
5
|
+
import { ProtobufKind } from "../messaging/protobuf.js";
|
|
5
6
|
declare class ProblemManager {
|
|
6
7
|
protected problems: PlayerProblem[];
|
|
7
8
|
addProblem(problem: PlayerProblem): void;
|
|
@@ -41,7 +42,7 @@ declare abstract class FoxgloveConnection {
|
|
|
41
42
|
}
|
|
42
43
|
export type PublicChannelData = {
|
|
43
44
|
topic: string;
|
|
44
|
-
kind:
|
|
45
|
+
kind: ProtobufKind;
|
|
45
46
|
};
|
|
46
47
|
export type ConnectionEventMap = {
|
|
47
48
|
open: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseConnection.d.ts","sourceRoot":"","sources":["../../../../../../src/connection/BaseConnection.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAyC,MAAM,mBAAmB,CAAC;AAEhF,OAAO,EACL,YAAY,EACZ,WAAW,EACX,cAAc,EACd,aAAa,EAEd,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAwB,MAAM,iCAAiC,CAAC;AACvF,OAAO,EAAE,0BAA0B,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IAAI,IAAI;aAEb,EAAE,CAAC,CAAC,SAAS,MAAM,kBAAkB,EACnD,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAC9B,IAAI;aAES,GAAG,CAAC,CAAC,SAAS,MAAM,kBAAkB,EACpD,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAC9B,IAAI;aAES,OAAO,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAE3E,aAAoB,SAAS,IAAI,OAAO,CAAC;CAC1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseConnection.js","sourceRoot":"","sources":["../../../../../../src/connection/BaseConnection.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAQ,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uDAAuD,CAAC;AAC3F,OAAO,EAGL,cAAc,EAEd,kBAAkB,EACnB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAkB,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseConnection.js","sourceRoot":"","sources":["../../../../../../src/connection/BaseConnection.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAQ,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uDAAuD,CAAC;AAC3F,OAAO,EAGL,cAAc,EAEd,kBAAkB,EACnB,MAAM,qCAAqC,CAAC;A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V,QAAQ;gBACR,kBAAkB,EAAE,IAAI,CAAC,aAAa;gBACtC,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,WAAW;gBACX,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,KAAK;gBACpB,KAAK,EAAE,CAAC;gBACR,YAAY,EAAE,CAAC;gBACf,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;gBAClC,UAAU,EAAE,IAAI,GAAG,EAAE;gBACrB,SAAS,EAAE,IAAI,GAAG,EAAE;gBACpB,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,eAAe,EAAE,IAAI,CAAC,eAAe;gBACrC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;gBACvC,QAAQ,EAAE,IAAI,CAAC,kBAAkB;aAClC;SACF,CAAC;QAEF,MAAM,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;CACJ;AAqBD,MAAM,OAAgB,cAAe,SAAQ,kBAAkB;CAgB9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../../../../../../src/connection/ws/worker.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../../../../../../src/connection/ws/worker.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAIzD,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,QAAQ,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,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}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { Waterfall } from "hydrated-ws";
|
|
5
5
|
import { FoxgloveClient } from "@foxglove/ws-protocol";
|
|
6
6
|
import { recordToDataView } from "../../utils/encoding.js";
|
|
7
|
+
import { protobufsBySchema } from "../../messaging/protobuf.js";
|
|
7
8
|
class WsWorker {
|
|
8
9
|
#ws;
|
|
9
10
|
#client;
|
|
@@ -41,21 +42,16 @@ class WsWorker {
|
|
|
41
42
|
handleAdvertisements() {
|
|
42
43
|
this.#client.on("advertise", (channels) => {
|
|
43
44
|
const data = [];
|
|
44
|
-
const kinds = {
|
|
45
|
-
'proto.ImgFrame': 'image',
|
|
46
|
-
'proto.EncodedFrame': 'image',
|
|
47
|
-
'proto.PointCloudData': 'pointCloud',
|
|
48
|
-
};
|
|
49
45
|
for (const channel of channels) {
|
|
50
46
|
const subscriptionId = this.#client.subscribe(channel.id);
|
|
51
47
|
this.subscriptions.set(subscriptionId, {
|
|
52
48
|
topic: channel.topic,
|
|
53
49
|
schema: channel.schemaName
|
|
54
50
|
});
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
51
|
+
const kind = protobufsBySchema[channel.schemaName]?.kind;
|
|
52
|
+
if (kind) {
|
|
53
|
+
data.push({ topic: channel.topic, kind });
|
|
54
|
+
}
|
|
59
55
|
}
|
|
60
56
|
send({ type: "channels", data });
|
|
61
57
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../../../../../../../src/connection/ws/worker.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAW,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AA+
|
|
1
|
+
{"version":3,"file":"worker.js","sourceRoot":"","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IAAI,CAAC,WAAW,CAAC;AAEnB,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,KAAK,EAAE,KAAoC,EAAE,EAAE;IAC9E,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC;IAElC,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,MAAM;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACpC,MAAM;QACR,KAAK,OAAO;YACV,QAAQ,EAAE,KAAK,EAAE,CAAC;YAClB,MAAM;QACR,KAAK,MAAM;YACT,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;YACrB,MAAM;QACR,KAAK,cAAc;YACjB,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;YAC5B,MAAM;IACV,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -11,22 +11,22 @@ export type DeserializeDepthAiMessageArgs = {
|
|
|
11
11
|
topicDecoders: TopicDecoders;
|
|
12
12
|
callback: (event: MessageEvent) => void;
|
|
13
13
|
} & ({
|
|
14
|
-
type: "
|
|
14
|
+
type: "imageFrame";
|
|
15
15
|
message: ImgFrame;
|
|
16
16
|
} | {
|
|
17
|
-
type: "
|
|
17
|
+
type: "encodedFrame";
|
|
18
18
|
message: EncodedFrame;
|
|
19
19
|
} | {
|
|
20
|
-
type: "
|
|
20
|
+
type: "imageDetections";
|
|
21
21
|
message: ImgDetections;
|
|
22
22
|
} | {
|
|
23
|
-
type: "
|
|
23
|
+
type: "imageDetectionsCustom";
|
|
24
24
|
message: ImageAnnotations;
|
|
25
25
|
} | {
|
|
26
|
-
type: "
|
|
26
|
+
type: "imageDetectionsSpatial";
|
|
27
27
|
message: SpatialImgDetections;
|
|
28
28
|
} | {
|
|
29
|
-
type: "
|
|
29
|
+
type: "pointCloud";
|
|
30
30
|
message: PointCloudData;
|
|
31
31
|
});
|
|
32
32
|
export declare function deserializeDepthAiMessage(args: DeserializeDepthAiMessageArgs): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deserialization.d.ts","sourceRoot":"","sources":["../../../../../../src/messaging/deserialization.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAKnE,OAAO,EAA+B,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAW,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAQ,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAG7E,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;CACzC,GAAG,CACE;IAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"deserialization.d.ts","sourceRoot":"","sources":["../../../../../../src/messaging/deserialization.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAKnE,OAAO,EAA+B,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAW,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAQ,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAG7E,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;CACzC,GAAG,CACE;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,QAAQ,CAAA;CAAE,GACzC;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,YAAY,CAAA;CAAE,GAC/C;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,OAAO,EAAE,aAAa,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,uBAAuB,CAAC;IAAC,OAAO,EAAE,gBAAgB,CAAA;CAAE,GAC5D;IAAE,IAAI,EAAE,wBAAwB,CAAC;IAAC,OAAO,EAAE,oBAAoB,CAAA;CAAE,GACjE;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,cAAc,CAAA;CAAE,CAClD,CAAC;AAEJ,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,6BAA6B,GAClC,OAAO,CAAC,IAAI,CAAC,CA8Df"}
|
|
@@ -13,7 +13,7 @@ import { deserializeImgDetectionsCustom } from "./deserialization/detections/cus
|
|
|
13
13
|
export async function deserializeDepthAiMessage(args) {
|
|
14
14
|
const { topicDecoders, type, message, callback, topic } = args;
|
|
15
15
|
switch (type) {
|
|
16
|
-
case "
|
|
16
|
+
case "encodedFrame": {
|
|
17
17
|
if (message.profile === Profile.AVC) {
|
|
18
18
|
deserializeEncodedFrameH264({ topic, message, topicDecoders, callback });
|
|
19
19
|
}
|
|
@@ -25,7 +25,7 @@ export async function deserializeDepthAiMessage(args) {
|
|
|
25
25
|
}
|
|
26
26
|
break;
|
|
27
27
|
}
|
|
28
|
-
case "
|
|
28
|
+
case "imageFrame": {
|
|
29
29
|
const specs = message.fb ?? message.sourceFb;
|
|
30
30
|
if (specs) {
|
|
31
31
|
switch (specs.type) {
|
|
@@ -44,15 +44,15 @@ export async function deserializeDepthAiMessage(args) {
|
|
|
44
44
|
}
|
|
45
45
|
break;
|
|
46
46
|
}
|
|
47
|
-
case "
|
|
47
|
+
case "imageDetections": {
|
|
48
48
|
deserializeImgDetections({ topic, message, callback });
|
|
49
49
|
break;
|
|
50
50
|
}
|
|
51
|
-
case "
|
|
51
|
+
case "imageDetectionsCustom": {
|
|
52
52
|
deserializeImgDetectionsCustom({ topic, message, callback });
|
|
53
53
|
break;
|
|
54
54
|
}
|
|
55
|
-
case "
|
|
55
|
+
case "imageDetectionsSpatial": {
|
|
56
56
|
// TODO: Use separate 3D detection deserializer
|
|
57
57
|
deserializeImgDetections({
|
|
58
58
|
topic,
|
|
@@ -64,7 +64,7 @@ export async function deserializeDepthAiMessage(args) {
|
|
|
64
64
|
});
|
|
65
65
|
break;
|
|
66
66
|
}
|
|
67
|
-
case "
|
|
67
|
+
case "pointCloud": {
|
|
68
68
|
deserializePointCloudData({ topic, message, callback });
|
|
69
69
|
break;
|
|
70
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deserialization.js","sourceRoot":"","sources":["../../../../../../src/messaging/deserialization.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAI1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAiB,MAAM,iCAAiC,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAgB,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAE9E,OAAO,EAAY,IAAI,EAAE,MAAM,mCAAmC,CAAC;AAGnE,OAAO,EAAE,yBAAyB,EAA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B,+CAA+C;YAC/C,wBAAwB,CAAC;gBACvB,KAAK;gBACL,OAAO,EAAE;oBACP,GAAG,OAAO;oBACV,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,SAAU,CAAC;iBAC1E;gBACD,QAAQ;aACT,CAAC,CAAC;YACH,MAAM;QACR,CAAC;QACD,KAAK,YAAY,CAAC,CAAC,CAAC;YAClB,yBAAyB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;YACxD,MAAM;QACR,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;YACR,OAAO,CAAC,IAAI,CAAC,8CAA8C,IAAI,GAAG,CAAC,CAAC;YACpE,MAAM;QACR,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-handler.d.ts","sourceRoot":"","sources":["../../../../../../src/messaging/message-handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAGnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"message-handler.d.ts","sourceRoot":"","sources":["../../../../../../src/messaging/message-handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAGnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAIzE,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,GAAG,cAAc,CAsB5F"}
|
|
@@ -2,51 +2,21 @@
|
|
|
2
2
|
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
3
3
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
4
4
|
import { deserializeDepthAiMessage } from "./deserialization";
|
|
5
|
-
import {
|
|
6
|
-
import { ImgDetections, protobufPackage as ImgDetectionsPackage, protobufName as ImgDetectionsProto } from "../protobuf.generated/ImgDetections.js";
|
|
7
|
-
import { ImgFrame, protobufPackage as ImgFramePackage, protobufName as ImgFrameProto } from "../protobuf.generated/ImgFrame.js";
|
|
8
|
-
import { SpatialImgDetections, protobufPackage as SpatialImgDetectionsPackage, protobufName as SpatialImgDetectionsProto } from "../protobuf.generated/SpatialImgDetections.js";
|
|
9
|
-
import { PointCloudData, protobufPackage as PointCloudDataPackage, protobufName as PointCloudDataProto } from "../protobuf.generated/PointCloudData.js";
|
|
10
|
-
import { ImageAnnotations, protobufPackage as ImageAnnotationsPackage, protobufName as ImageAnnotationsProto } from "../protobuf.generated/ImageAnnotations.js";
|
|
5
|
+
import { protobufsBySchema } from "./protobuf.js";
|
|
11
6
|
export function createMessageHandler(callback) {
|
|
12
7
|
const topicDecoders = new Map();
|
|
13
8
|
return {
|
|
14
9
|
handle: (({ schema, buffer, topic }) => {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
type: "encoded_frame",
|
|
18
|
-
protobuf: EncodedFrame
|
|
19
|
-
},
|
|
20
|
-
[`${ImgFramePackage}.${ImgFrameProto}`]: {
|
|
21
|
-
type: "img_frame",
|
|
22
|
-
protobuf: ImgFrame
|
|
23
|
-
},
|
|
24
|
-
[`${ImgDetectionsPackage}.${ImgDetectionsProto}`]: {
|
|
25
|
-
type: "img_detections",
|
|
26
|
-
protobuf: ImgDetections
|
|
27
|
-
},
|
|
28
|
-
[`${ImageAnnotationsPackage}.${ImageAnnotationsProto}`]: {
|
|
29
|
-
type: "img_detections_custom",
|
|
30
|
-
protobuf: ImageAnnotations
|
|
31
|
-
},
|
|
32
|
-
[`${SpatialImgDetectionsPackage}.${SpatialImgDetectionsProto}`]: {
|
|
33
|
-
type: "img_detections_spatial",
|
|
34
|
-
protobuf: SpatialImgDetections
|
|
35
|
-
},
|
|
36
|
-
[`${PointCloudDataPackage}.${PointCloudDataProto}`]: {
|
|
37
|
-
type: "point_cloud_data",
|
|
38
|
-
protobuf: PointCloudData
|
|
39
|
-
}
|
|
40
|
-
}[schema];
|
|
41
|
-
if (decoderInfo) {
|
|
10
|
+
const protobuf = protobufsBySchema[schema];
|
|
11
|
+
if (protobuf) {
|
|
42
12
|
const bufferArray = new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
|
43
|
-
const message =
|
|
13
|
+
const message = protobuf.decoder.decode(bufferArray);
|
|
44
14
|
void deserializeDepthAiMessage({
|
|
45
15
|
topic,
|
|
46
16
|
topicDecoders,
|
|
47
17
|
message,
|
|
48
18
|
callback,
|
|
49
|
-
type:
|
|
19
|
+
type: protobuf.type
|
|
50
20
|
});
|
|
51
21
|
}
|
|
52
22
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-handler.js","sourceRoot":"","sources":["../../../../../../src/messaging/message-handler.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAI1D,OAAO,EAAE,yBAAyB,EAAiC,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"message-handler.js","sourceRoot":"","sources":["../../../../../../src/messaging/message-handler.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAI1D,OAAO,EAAE,yBAAyB,EAAiC,MAAM,mBAAmB,CAAC;AAG7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAMlD,MAAM,UAAU,oBAAoB,CAAC,QAAuC;IAC1E,MAAM,aAAa,GAAkB,IAAI,GAAG,EAAE,CAAC;IAE/C,OAAO;QACL,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;YACrC,MAAM,QAAQ,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;YAC3C,IAAI,QAAQ,EAAE,CAAC;gBACb,MAAM,WAAW,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;gBACxF,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;gBAErD,KAAK,yBAAyB,CAAC;oBAC7B,KAAK;oBACL,aAAa;oBACb,OAAO;oBACP,QAAQ;oBACR,IAAI,EAAE,QAAQ,CAAC,IAAI;iBACa,CAAC,CAAC;YACtC,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,IAAI,CAAC,+BAA+B,MAAM,GAAG,CAAC,CAAC;YACzD,CAAC;QACH,CAAC,CAA6B;KAC/B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { EncodedFrame } from "../protobuf.generated/EncodedFrame.js";
|
|
2
|
+
import { ImgDetections } from "../protobuf.generated/ImgDetections.js";
|
|
3
|
+
import { ImgFrame } from "../protobuf.generated/ImgFrame.js";
|
|
4
|
+
import { SpatialImgDetections } from "../protobuf.generated/SpatialImgDetections.js";
|
|
5
|
+
import { PointCloudData } from "../protobuf.generated/PointCloudData.js";
|
|
6
|
+
import { ImageAnnotations } from "../protobuf.generated/ImageAnnotations.js";
|
|
7
|
+
export type ProtobufKind = 'image' | 'pointCloud' | 'annotations';
|
|
8
|
+
export declare const protobufs: {
|
|
9
|
+
encodedFrame: {
|
|
10
|
+
name: string;
|
|
11
|
+
decoder: {
|
|
12
|
+
encode(message: EncodedFrame, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
13
|
+
decode(input: import("protobufjs").Reader | Uint8Array, length?: number): EncodedFrame;
|
|
14
|
+
fromJSON(object: any): EncodedFrame;
|
|
15
|
+
toJSON(message: EncodedFrame): unknown;
|
|
16
|
+
create<I extends import("../protobuf.generated/EncodedFrame.js").Exact<import("../protobuf.generated/EncodedFrame.js").DeepPartial<EncodedFrame>, I>>(base?: I): EncodedFrame;
|
|
17
|
+
fromPartial<I extends import("../protobuf.generated/EncodedFrame.js").Exact<import("../protobuf.generated/EncodedFrame.js").DeepPartial<EncodedFrame>, I>>(object: I): EncodedFrame;
|
|
18
|
+
};
|
|
19
|
+
kind: "image";
|
|
20
|
+
};
|
|
21
|
+
imageFrame: {
|
|
22
|
+
name: string;
|
|
23
|
+
decoder: {
|
|
24
|
+
encode(message: ImgFrame, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
25
|
+
decode(input: import("protobufjs").Reader | Uint8Array, length?: number): ImgFrame;
|
|
26
|
+
fromJSON(object: any): ImgFrame;
|
|
27
|
+
toJSON(message: ImgFrame): unknown;
|
|
28
|
+
create<I extends import("../protobuf.generated/ImgFrame.js").Exact<import("../protobuf.generated/ImgFrame.js").DeepPartial<ImgFrame>, I>>(base?: I): ImgFrame;
|
|
29
|
+
fromPartial<I extends import("../protobuf.generated/ImgFrame.js").Exact<import("../protobuf.generated/ImgFrame.js").DeepPartial<ImgFrame>, I>>(object: I): ImgFrame;
|
|
30
|
+
};
|
|
31
|
+
kind: "image";
|
|
32
|
+
};
|
|
33
|
+
imageDetections: {
|
|
34
|
+
name: string;
|
|
35
|
+
decoder: {
|
|
36
|
+
encode(message: ImgDetections, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
37
|
+
decode(input: import("protobufjs").Reader | Uint8Array, length?: number): ImgDetections;
|
|
38
|
+
fromJSON(object: any): ImgDetections;
|
|
39
|
+
toJSON(message: ImgDetections): unknown;
|
|
40
|
+
create<I extends import("../protobuf.generated/ImgDetections.js").Exact<import("../protobuf.generated/ImgDetections.js").DeepPartial<ImgDetections>, I>>(base?: I): ImgDetections;
|
|
41
|
+
fromPartial<I extends import("../protobuf.generated/ImgDetections.js").Exact<import("../protobuf.generated/ImgDetections.js").DeepPartial<ImgDetections>, I>>(object: I): ImgDetections;
|
|
42
|
+
};
|
|
43
|
+
kind: "annotations";
|
|
44
|
+
};
|
|
45
|
+
imageDetectionsCustom: {
|
|
46
|
+
name: string;
|
|
47
|
+
decoder: {
|
|
48
|
+
encode(message: ImageAnnotations, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
49
|
+
decode(input: import("protobufjs").Reader | Uint8Array, length?: number): ImageAnnotations;
|
|
50
|
+
fromJSON(object: any): ImageAnnotations;
|
|
51
|
+
toJSON(message: ImageAnnotations): unknown;
|
|
52
|
+
create<I extends import("../protobuf.generated/ImageAnnotations.js").Exact<import("../protobuf.generated/ImageAnnotations.js").DeepPartial<ImageAnnotations>, I>>(base?: I): ImageAnnotations;
|
|
53
|
+
fromPartial<I extends import("../protobuf.generated/ImageAnnotations.js").Exact<import("../protobuf.generated/ImageAnnotations.js").DeepPartial<ImageAnnotations>, I>>(object: I): ImageAnnotations;
|
|
54
|
+
};
|
|
55
|
+
kind: "annotations";
|
|
56
|
+
};
|
|
57
|
+
imageDetectionsSpatial: {
|
|
58
|
+
name: string;
|
|
59
|
+
decoder: {
|
|
60
|
+
encode(message: SpatialImgDetections, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
61
|
+
decode(input: import("protobufjs").Reader | Uint8Array, length?: number): SpatialImgDetections;
|
|
62
|
+
fromJSON(object: any): SpatialImgDetections;
|
|
63
|
+
toJSON(message: SpatialImgDetections): unknown;
|
|
64
|
+
create<I extends import("../protobuf.generated/SpatialImgDetections.js").Exact<import("../protobuf.generated/SpatialImgDetections.js").DeepPartial<SpatialImgDetections>, I>>(base?: I): SpatialImgDetections;
|
|
65
|
+
fromPartial<I extends import("../protobuf.generated/SpatialImgDetections.js").Exact<import("../protobuf.generated/SpatialImgDetections.js").DeepPartial<SpatialImgDetections>, I>>(object: I): SpatialImgDetections;
|
|
66
|
+
};
|
|
67
|
+
kind: "annotations";
|
|
68
|
+
};
|
|
69
|
+
pointCloud: {
|
|
70
|
+
name: string;
|
|
71
|
+
decoder: {
|
|
72
|
+
encode(message: PointCloudData, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
73
|
+
decode(input: import("protobufjs").Reader | Uint8Array, length?: number): PointCloudData;
|
|
74
|
+
fromJSON(object: any): PointCloudData;
|
|
75
|
+
toJSON(message: PointCloudData): unknown;
|
|
76
|
+
create<I extends import("../protobuf.generated/PointCloudData.js").Exact<import("../protobuf.generated/PointCloudData.js").DeepPartial<PointCloudData>, I>>(base?: I): PointCloudData;
|
|
77
|
+
fromPartial<I extends import("../protobuf.generated/PointCloudData.js").Exact<import("../protobuf.generated/PointCloudData.js").DeepPartial<PointCloudData>, I>>(object: I): PointCloudData;
|
|
78
|
+
};
|
|
79
|
+
kind: "pointCloud";
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export type ProtobufType = keyof typeof protobufs;
|
|
83
|
+
export declare const protobufsBySchema: {
|
|
84
|
+
[k: string]: {
|
|
85
|
+
name: string;
|
|
86
|
+
decoder: {
|
|
87
|
+
encode(message: EncodedFrame, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
88
|
+
decode(input: import("protobufjs").Reader | Uint8Array, length?: number): EncodedFrame;
|
|
89
|
+
fromJSON(object: any): EncodedFrame;
|
|
90
|
+
toJSON(message: EncodedFrame): unknown;
|
|
91
|
+
create<I extends import("../protobuf.generated/EncodedFrame.js").Exact<import("../protobuf.generated/EncodedFrame.js").DeepPartial<EncodedFrame>, I>>(base?: I): EncodedFrame;
|
|
92
|
+
fromPartial<I extends import("../protobuf.generated/EncodedFrame.js").Exact<import("../protobuf.generated/EncodedFrame.js").DeepPartial<EncodedFrame>, I>>(object: I): EncodedFrame;
|
|
93
|
+
};
|
|
94
|
+
kind: "image";
|
|
95
|
+
type: string;
|
|
96
|
+
} | {
|
|
97
|
+
name: string;
|
|
98
|
+
decoder: {
|
|
99
|
+
encode(message: ImgFrame, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
100
|
+
decode(input: import("protobufjs").Reader | Uint8Array, length?: number): ImgFrame;
|
|
101
|
+
fromJSON(object: any): ImgFrame;
|
|
102
|
+
toJSON(message: ImgFrame): unknown;
|
|
103
|
+
create<I extends import("../protobuf.generated/ImgFrame.js").Exact<import("../protobuf.generated/ImgFrame.js").DeepPartial<ImgFrame>, I>>(base?: I): ImgFrame;
|
|
104
|
+
fromPartial<I extends import("../protobuf.generated/ImgFrame.js").Exact<import("../protobuf.generated/ImgFrame.js").DeepPartial<ImgFrame>, I>>(object: I): ImgFrame;
|
|
105
|
+
};
|
|
106
|
+
kind: "image";
|
|
107
|
+
type: string;
|
|
108
|
+
} | {
|
|
109
|
+
name: string;
|
|
110
|
+
decoder: {
|
|
111
|
+
encode(message: ImgDetections, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
112
|
+
decode(input: import("protobufjs").Reader | Uint8Array, length?: number): ImgDetections;
|
|
113
|
+
fromJSON(object: any): ImgDetections;
|
|
114
|
+
toJSON(message: ImgDetections): unknown;
|
|
115
|
+
create<I extends import("../protobuf.generated/ImgDetections.js").Exact<import("../protobuf.generated/ImgDetections.js").DeepPartial<ImgDetections>, I>>(base?: I): ImgDetections;
|
|
116
|
+
fromPartial<I extends import("../protobuf.generated/ImgDetections.js").Exact<import("../protobuf.generated/ImgDetections.js").DeepPartial<ImgDetections>, I>>(object: I): ImgDetections;
|
|
117
|
+
};
|
|
118
|
+
kind: "annotations";
|
|
119
|
+
type: string;
|
|
120
|
+
} | {
|
|
121
|
+
name: string;
|
|
122
|
+
decoder: {
|
|
123
|
+
encode(message: ImageAnnotations, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
124
|
+
decode(input: import("protobufjs").Reader | Uint8Array, length?: number): ImageAnnotations;
|
|
125
|
+
fromJSON(object: any): ImageAnnotations;
|
|
126
|
+
toJSON(message: ImageAnnotations): unknown;
|
|
127
|
+
create<I extends import("../protobuf.generated/ImageAnnotations.js").Exact<import("../protobuf.generated/ImageAnnotations.js").DeepPartial<ImageAnnotations>, I>>(base?: I): ImageAnnotations;
|
|
128
|
+
fromPartial<I extends import("../protobuf.generated/ImageAnnotations.js").Exact<import("../protobuf.generated/ImageAnnotations.js").DeepPartial<ImageAnnotations>, I>>(object: I): ImageAnnotations;
|
|
129
|
+
};
|
|
130
|
+
kind: "annotations";
|
|
131
|
+
type: string;
|
|
132
|
+
} | {
|
|
133
|
+
name: string;
|
|
134
|
+
decoder: {
|
|
135
|
+
encode(message: SpatialImgDetections, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
136
|
+
decode(input: import("protobufjs").Reader | Uint8Array, length?: number): SpatialImgDetections;
|
|
137
|
+
fromJSON(object: any): SpatialImgDetections;
|
|
138
|
+
toJSON(message: SpatialImgDetections): unknown;
|
|
139
|
+
create<I extends import("../protobuf.generated/SpatialImgDetections.js").Exact<import("../protobuf.generated/SpatialImgDetections.js").DeepPartial<SpatialImgDetections>, I>>(base?: I): SpatialImgDetections;
|
|
140
|
+
fromPartial<I extends import("../protobuf.generated/SpatialImgDetections.js").Exact<import("../protobuf.generated/SpatialImgDetections.js").DeepPartial<SpatialImgDetections>, I>>(object: I): SpatialImgDetections;
|
|
141
|
+
};
|
|
142
|
+
kind: "annotations";
|
|
143
|
+
type: string;
|
|
144
|
+
} | {
|
|
145
|
+
name: string;
|
|
146
|
+
decoder: {
|
|
147
|
+
encode(message: PointCloudData, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
148
|
+
decode(input: import("protobufjs").Reader | Uint8Array, length?: number): PointCloudData;
|
|
149
|
+
fromJSON(object: any): PointCloudData;
|
|
150
|
+
toJSON(message: PointCloudData): unknown;
|
|
151
|
+
create<I extends import("../protobuf.generated/PointCloudData.js").Exact<import("../protobuf.generated/PointCloudData.js").DeepPartial<PointCloudData>, I>>(base?: I): PointCloudData;
|
|
152
|
+
fromPartial<I extends import("../protobuf.generated/PointCloudData.js").Exact<import("../protobuf.generated/PointCloudData.js").DeepPartial<PointCloudData>, I>>(object: I): PointCloudData;
|
|
153
|
+
};
|
|
154
|
+
kind: "pointCloud";
|
|
155
|
+
type: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
//# sourceMappingURL=protobuf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protobuf.d.ts","sourceRoot":"","sources":["../../../../../../src/messaging/protobuf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA6E,MAAM,uCAAuC,CAAC;AAChJ,OAAO,EAAE,aAAa,EAA+E,MAAM,wCAAwC,CAAC;AACpJ,OAAO,EAAE,QAAQ,EAAqE,MAAM,mCAAmC,CAAC;AAChI,OAAO,EAAE,oBAAoB,EAA6F,MAAM,+CAA+C,CAAC;AAChL,OAAO,EAAE,cAAc,EAAiF,MAAM,yCAAyC,CAAC;AACxJ,OAAO,EAAE,gBAAgB,EAAqF,MAAM,2CAA2C,CAAC;AAEhK,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,YAAY,GAAG,aAAa,CAAC;AAElE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BrB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,SAAS,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI7B,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { EncodedFrame, protobufPackage as EncodedFramePackage, protobufName as EncodedFrameProto } from "../protobuf.generated/EncodedFrame.js";
|
|
2
|
+
import { ImgDetections, protobufPackage as ImgDetectionsPackage, protobufName as ImgDetectionsProto } from "../protobuf.generated/ImgDetections.js";
|
|
3
|
+
import { ImgFrame, protobufPackage as ImgFramePackage, protobufName as ImgFrameProto } from "../protobuf.generated/ImgFrame.js";
|
|
4
|
+
import { SpatialImgDetections, protobufPackage as SpatialImgDetectionsPackage, protobufName as SpatialImgDetectionsProto } from "../protobuf.generated/SpatialImgDetections.js";
|
|
5
|
+
import { PointCloudData, protobufPackage as PointCloudDataPackage, protobufName as PointCloudDataProto } from "../protobuf.generated/PointCloudData.js";
|
|
6
|
+
import { ImageAnnotations, protobufPackage as ImageAnnotationsPackage, protobufName as ImageAnnotationsProto } from "../protobuf.generated/ImageAnnotations.js";
|
|
7
|
+
export const protobufs = {
|
|
8
|
+
encodedFrame: {
|
|
9
|
+
name: `${EncodedFramePackage}.${EncodedFrameProto}`,
|
|
10
|
+
decoder: EncodedFrame,
|
|
11
|
+
kind: 'image'
|
|
12
|
+
},
|
|
13
|
+
imageFrame: {
|
|
14
|
+
name: `${ImgFramePackage}.${ImgFrameProto}`,
|
|
15
|
+
decoder: ImgFrame,
|
|
16
|
+
kind: 'image'
|
|
17
|
+
},
|
|
18
|
+
imageDetections: {
|
|
19
|
+
name: `${ImgDetectionsPackage}.${ImgDetectionsProto}`,
|
|
20
|
+
decoder: ImgDetections,
|
|
21
|
+
kind: 'annotations'
|
|
22
|
+
},
|
|
23
|
+
imageDetectionsCustom: {
|
|
24
|
+
name: `${ImageAnnotationsPackage}.${ImageAnnotationsProto}`,
|
|
25
|
+
decoder: ImageAnnotations,
|
|
26
|
+
kind: 'annotations'
|
|
27
|
+
},
|
|
28
|
+
imageDetectionsSpatial: {
|
|
29
|
+
name: `${SpatialImgDetectionsPackage}.${SpatialImgDetectionsProto}`,
|
|
30
|
+
decoder: SpatialImgDetections,
|
|
31
|
+
kind: 'annotations'
|
|
32
|
+
},
|
|
33
|
+
pointCloud: {
|
|
34
|
+
name: `${PointCloudDataPackage}.${PointCloudDataProto}`,
|
|
35
|
+
decoder: PointCloudData,
|
|
36
|
+
kind: 'pointCloud'
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export const protobufsBySchema = Object.fromEntries(Object.entries(protobufs).map(([type, data]) => [data.name, { type, ...data }]));
|
|
40
|
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BAAqB,EAAE;QAC3D,OAAO,EAAE,gBAAgB;QACzB,IAAI,EAAE,aAAsB;KAC7B;IACD,sBAAsB,EAAE;QACtB,IAAI,EAAE,GAAG,2BAA2B,IAAI,yBAAyB,EAAE;QACnE,OAAO,EAAE,oBAAoB;QAC7B,IAAI,EAAE,aAAsB;KAC7B;IACD,UAAU,EAAE;QACV,IAAI,EAAE,GAAG,qBAAqB,IAAI,mBAAmB,EAAE;QACvD,OAAO,EAAE,cAAc;QACvB,IAAI,EAAE,YAAqB;KAC5B;CACF,CAAA;AAID,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,WAAW,CACjD,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,CAC3B,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,CAAC,CACjD,CACF,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ImagePanel } from './index-
|
|
1
|
+
import { ImagePanel } from './index-CDLN8AQd.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-dom';
|
|
4
|
-
import './index-
|
|
5
|
-
import './
|
|
4
|
+
import './index-BoCFgPcb.js';
|
|
5
|
+
import './protobuf-CjDCjqx3.js';
|
|
6
|
+
import 'protobufjs/minimal';
|
|
6
7
|
import 'zustand';
|
|
7
8
|
import 'react-mosaic-component';
|
|
8
9
|
import '@mui/material';
|
|
9
10
|
import './i18next-C5Qe4-E1.js';
|
|
10
|
-
import 'protobufjs/minimal';
|
|
11
11
|
import 'react-dnd';
|
|
12
12
|
import 'react-dnd-html5-backend';
|
|
13
13
|
import '@emotion/react';
|
|
@@ -23,7 +23,7 @@ import '@mui/icons-material/Cancel';
|
|
|
23
23
|
import '@mui/icons-material/Search';
|
|
24
24
|
import './decodeImage-tR9QKhiM.js';
|
|
25
25
|
import '@mui/material/styles/createTypography';
|
|
26
|
-
import './index-
|
|
26
|
+
import './index-CcszYLTP.js';
|
|
27
27
|
import 'color';
|
|
28
28
|
import 'lodash.curry';
|
|
29
29
|
import '@mui/icons-material/OpenInNew';
|