@luxonis/visualizer-protobuf 2.54.0 → 2.55.0
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/{tslib.es6-DRjIPBeG.js → depth-CJRDcPfJ.js} +606 -7
- package/dist/{deserialization.worker-Bpkjw7D9.js → deserialization.worker-CSrvuPJi.js} +3 -163
- package/dist/{index-CyrPYTGX.js → index-B0IpMdax.js} +5 -5
- package/dist/{index-DHGAv31w.js → index-B1EWIlvs.js} +5 -5
- package/dist/{index-m4X-dAYE.js → index-BDHayiTI.js} +5 -5
- package/dist/{index-CjYzC0A7.js → index-BSAMfz5u.js} +5 -5
- package/dist/{index-yPVnPyRX.js → index-BqQBFD5u.js} +5 -5
- package/dist/{index-fYQyZr0d.js → index-BufdvuOr.js} +91 -32
- package/dist/{index-qlOWIORo.js → index-C1cjJ7ot.js} +5 -5
- package/dist/{index-CH-H51Mb.js → index-C21bRml-.js} +5 -5
- package/dist/{index-h2VnGOmu.js → index-C4FZGmwk.js} +5 -5
- package/dist/{index-DCsuDhRW.js → index-CCsyHqht.js} +5 -5
- package/dist/{index-JVuuB2xM.js → index-CjDSWxpT.js} +5 -5
- package/dist/{index-gX9xRfib.js → index-CjbUVJBU.js} +5 -5
- package/dist/{index-J5Q3wT5J.js → index-CuAv3dv7.js} +129 -13
- package/dist/{index-B4MBUxAy.js → index-Cvfc3u1v.js} +5 -5
- package/dist/{index-V9dvhdte.js → index-DXSdCiF4.js} +5 -5
- package/dist/{index-B7o1it73.js → index-DayMpcW2.js} +5 -5
- package/dist/{index-DFQcHMES.js → index-DtPRSZis.js} +5 -6
- package/dist/{index-DCcMNVVP.js → index-VBr6opQ-.js} +5 -5
- package/dist/{index-DP8vP8Lv.js → index-bjF9nlAn.js} +5 -5
- package/dist/index.js +8 -8
- package/dist/lib/src/components/Panel.d.ts +3 -0
- package/dist/lib/src/components/Panel.d.ts.map +1 -1
- package/dist/lib/src/components/Panel.js.map +1 -1
- package/dist/lib/src/connection/foxglove-connection.d.ts +1 -1
- package/dist/lib/src/connection/foxglove-connection.d.ts.map +1 -1
- package/dist/lib/src/connection/foxglove-connection.js +9 -2
- package/dist/lib/src/connection/foxglove-connection.js.map +1 -1
- package/dist/lib/src/index.d.ts +2 -0
- package/dist/lib/src/index.d.ts.map +1 -1
- package/dist/lib/src/index.js +3 -0
- package/dist/lib/src/index.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/depth.d.ts +1 -0
- package/dist/lib/src/messaging/deserialization/video/depth.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/depth.js +16 -0
- package/dist/lib/src/messaging/deserialization/video/depth.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h265.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h265.js +0 -1
- package/dist/lib/src/messaging/deserialization/video/h265.js.map +1 -1
- package/dist/lib/src/panels/ImagePanel.d.ts +8 -0
- package/dist/lib/src/panels/ImagePanel.d.ts.map +1 -1
- package/dist/lib/src/panels/ImagePanel.js +5 -3
- package/dist/lib/src/panels/ImagePanel.js.map +1 -1
- package/dist/lib/src/panels/PointCloudPanel.d.ts +8 -0
- package/dist/lib/src/panels/PointCloudPanel.d.ts.map +1 -1
- package/dist/lib/src/panels/PointCloudPanel.js +7 -7
- package/dist/lib/src/panels/PointCloudPanel.js.map +1 -1
- package/dist/lib/src/utils/frame-store.d.ts +11 -0
- package/dist/lib/src/utils/frame-store.d.ts.map +1 -0
- package/dist/lib/src/utils/frame-store.js +22 -0
- package/dist/lib/src/utils/frame-store.js.map +1 -0
- package/dist/lib/src/utils/metrics-manager.d.ts.map +1 -1
- package/dist/lib/src/utils/metrics-manager.js +1 -0
- package/dist/lib/src/utils/metrics-manager.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/IRenderer.d.ts +3 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/IRenderer.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/IRenderer.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.d.ts +6 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.js +57 -3
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/RendererOverlay.d.ts +1 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/RendererOverlay.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/RendererOverlay.js +11 -11
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/RendererOverlay.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.d.ts +9 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.js +36 -3
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/index.d.ts +11 -2
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/index.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/index.js +7 -2
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/useMessageReducer-DdY2kZpp.js +0 -422
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs, d as getAugmentedNamespace, T as Type } from './protobuf-B55JS-Px.js';
|
|
1
2
|
import { useContext, useRef, useLayoutEffect, createContext, useReducer, useState, useCallback } from 'react';
|
|
3
|
+
import 'zustand';
|
|
2
4
|
import { isParent, getLeaves, createRemoveUpdate, updateTree, getNodeAtPath } from 'react-mosaic-component';
|
|
3
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './protobuf-B55JS-Px.js';
|
|
4
5
|
import { useTheme } from '@mui/material';
|
|
5
6
|
import { k as isObjectLike, l as baseGetTag, S as Symbol$1, i as isArray, m as getNative, r as root, n as overArg, g as isPrototype, c as isArrayLike, p as arrayLikeKeys, M as MapCache, f as isArguments, t as toSource, q as Map$1, u as eq, U as Uint8Array, d as isBuffer, v as Stack, e as isTypedArray, h as isObject, w as isLength, j as isIndex, x as identity, y as baseFor, b as baseRest, a as isArrayLikeObject } from './isArrayLikeObject-Bytw9p-q.js';
|
|
6
7
|
|
|
@@ -309,14 +310,14 @@ timeUtils.toMillis = toMillis;
|
|
|
309
310
|
* @param value Milliseconds number
|
|
310
311
|
* @returns Time object
|
|
311
312
|
*/
|
|
312
|
-
function fromMillis(value) {
|
|
313
|
+
function fromMillis$1(value) {
|
|
313
314
|
let sec = Math.trunc(value / 1000);
|
|
314
315
|
let nsec = Math.round((value - sec * 1000) * 1e6);
|
|
315
316
|
sec += Math.trunc(nsec / 1e9);
|
|
316
317
|
nsec %= 1e9;
|
|
317
318
|
return { sec, nsec };
|
|
318
319
|
}
|
|
319
|
-
timeUtils.fromMillis = fromMillis;
|
|
320
|
+
timeUtils.fromMillis = fromMillis$1;
|
|
320
321
|
/**
|
|
321
322
|
* Convert microseconds to Time
|
|
322
323
|
* @param value Microseconds number
|
|
@@ -1333,7 +1334,7 @@ function getAllKeys(object) {
|
|
|
1333
1334
|
}
|
|
1334
1335
|
|
|
1335
1336
|
/* Built-in method references that are verified to be native. */
|
|
1336
|
-
var DataView = getNative(root, 'DataView');
|
|
1337
|
+
var DataView$1 = getNative(root, 'DataView');
|
|
1337
1338
|
|
|
1338
1339
|
/* Built-in method references that are verified to be native. */
|
|
1339
1340
|
var Promise$1 = getNative(root, 'Promise');
|
|
@@ -1351,7 +1352,7 @@ var mapTag$1 = '[object Map]',
|
|
|
1351
1352
|
var dataViewTag$1 = '[object DataView]';
|
|
1352
1353
|
|
|
1353
1354
|
/** Used to detect maps, sets, and weakmaps. */
|
|
1354
|
-
var dataViewCtorString = toSource(DataView),
|
|
1355
|
+
var dataViewCtorString = toSource(DataView$1),
|
|
1355
1356
|
mapCtorString = toSource(Map$1),
|
|
1356
1357
|
promiseCtorString = toSource(Promise$1),
|
|
1357
1358
|
setCtorString = toSource(Set$1),
|
|
@@ -1367,7 +1368,7 @@ var dataViewCtorString = toSource(DataView),
|
|
|
1367
1368
|
var getTag = baseGetTag;
|
|
1368
1369
|
|
|
1369
1370
|
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
1370
|
-
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$1) ||
|
|
1371
|
+
if ((DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$1) ||
|
|
1371
1372
|
(Map$1 && getTag(new Map$1) != mapTag$1) ||
|
|
1372
1373
|
(Promise$1 && getTag(Promise$1.resolve()) != promiseTag) ||
|
|
1373
1374
|
(Set$1 && getTag(new Set$1) != setTag$1) ||
|
|
@@ -4083,4 +4084,602 @@ var tslib_es6$1 = /*#__PURE__*/Object.freeze({
|
|
|
4083
4084
|
default: tslib_es6
|
|
4084
4085
|
});
|
|
4085
4086
|
|
|
4086
|
-
|
|
4087
|
+
var typescript = {};
|
|
4088
|
+
|
|
4089
|
+
var require$$0 = /*@__PURE__*/getAugmentedNamespace(tslib_es6$1);
|
|
4090
|
+
|
|
4091
|
+
var ArrowPrimitive = /*#__PURE__*/Object.freeze({
|
|
4092
|
+
__proto__: null
|
|
4093
|
+
});
|
|
4094
|
+
|
|
4095
|
+
var require$$1 = /*@__PURE__*/getAugmentedNamespace(ArrowPrimitive);
|
|
4096
|
+
|
|
4097
|
+
var CameraCalibration = /*#__PURE__*/Object.freeze({
|
|
4098
|
+
__proto__: null
|
|
4099
|
+
});
|
|
4100
|
+
|
|
4101
|
+
var require$$2 = /*@__PURE__*/getAugmentedNamespace(CameraCalibration);
|
|
4102
|
+
|
|
4103
|
+
var CircleAnnotation = /*#__PURE__*/Object.freeze({
|
|
4104
|
+
__proto__: null
|
|
4105
|
+
});
|
|
4106
|
+
|
|
4107
|
+
var require$$3 = /*@__PURE__*/getAugmentedNamespace(CircleAnnotation);
|
|
4108
|
+
|
|
4109
|
+
var Color = /*#__PURE__*/Object.freeze({
|
|
4110
|
+
__proto__: null
|
|
4111
|
+
});
|
|
4112
|
+
|
|
4113
|
+
var require$$4 = /*@__PURE__*/getAugmentedNamespace(Color);
|
|
4114
|
+
|
|
4115
|
+
var CompressedImage = /*#__PURE__*/Object.freeze({
|
|
4116
|
+
__proto__: null
|
|
4117
|
+
});
|
|
4118
|
+
|
|
4119
|
+
var require$$5 = /*@__PURE__*/getAugmentedNamespace(CompressedImage);
|
|
4120
|
+
|
|
4121
|
+
var CompressedVideo = /*#__PURE__*/Object.freeze({
|
|
4122
|
+
__proto__: null
|
|
4123
|
+
});
|
|
4124
|
+
|
|
4125
|
+
var require$$6 = /*@__PURE__*/getAugmentedNamespace(CompressedVideo);
|
|
4126
|
+
|
|
4127
|
+
var CubePrimitive = /*#__PURE__*/Object.freeze({
|
|
4128
|
+
__proto__: null
|
|
4129
|
+
});
|
|
4130
|
+
|
|
4131
|
+
var require$$7 = /*@__PURE__*/getAugmentedNamespace(CubePrimitive);
|
|
4132
|
+
|
|
4133
|
+
var CylinderPrimitive = /*#__PURE__*/Object.freeze({
|
|
4134
|
+
__proto__: null
|
|
4135
|
+
});
|
|
4136
|
+
|
|
4137
|
+
var require$$8 = /*@__PURE__*/getAugmentedNamespace(CylinderPrimitive);
|
|
4138
|
+
|
|
4139
|
+
var FrameTransform = /*#__PURE__*/Object.freeze({
|
|
4140
|
+
__proto__: null
|
|
4141
|
+
});
|
|
4142
|
+
|
|
4143
|
+
var require$$9 = /*@__PURE__*/getAugmentedNamespace(FrameTransform);
|
|
4144
|
+
|
|
4145
|
+
var FrameTransforms = /*#__PURE__*/Object.freeze({
|
|
4146
|
+
__proto__: null
|
|
4147
|
+
});
|
|
4148
|
+
|
|
4149
|
+
var require$$10 = /*@__PURE__*/getAugmentedNamespace(FrameTransforms);
|
|
4150
|
+
|
|
4151
|
+
var GeoJSON = /*#__PURE__*/Object.freeze({
|
|
4152
|
+
__proto__: null
|
|
4153
|
+
});
|
|
4154
|
+
|
|
4155
|
+
var require$$11 = /*@__PURE__*/getAugmentedNamespace(GeoJSON);
|
|
4156
|
+
|
|
4157
|
+
var Grid = /*#__PURE__*/Object.freeze({
|
|
4158
|
+
__proto__: null
|
|
4159
|
+
});
|
|
4160
|
+
|
|
4161
|
+
var require$$12 = /*@__PURE__*/getAugmentedNamespace(Grid);
|
|
4162
|
+
|
|
4163
|
+
var ImageAnnotations = /*#__PURE__*/Object.freeze({
|
|
4164
|
+
__proto__: null
|
|
4165
|
+
});
|
|
4166
|
+
|
|
4167
|
+
var require$$13 = /*@__PURE__*/getAugmentedNamespace(ImageAnnotations);
|
|
4168
|
+
|
|
4169
|
+
var KeyValuePair = /*#__PURE__*/Object.freeze({
|
|
4170
|
+
__proto__: null
|
|
4171
|
+
});
|
|
4172
|
+
|
|
4173
|
+
var require$$14 = /*@__PURE__*/getAugmentedNamespace(KeyValuePair);
|
|
4174
|
+
|
|
4175
|
+
var LaserScan = /*#__PURE__*/Object.freeze({
|
|
4176
|
+
__proto__: null
|
|
4177
|
+
});
|
|
4178
|
+
|
|
4179
|
+
var require$$15 = /*@__PURE__*/getAugmentedNamespace(LaserScan);
|
|
4180
|
+
|
|
4181
|
+
var LinePrimitive = /*#__PURE__*/Object.freeze({
|
|
4182
|
+
__proto__: null
|
|
4183
|
+
});
|
|
4184
|
+
|
|
4185
|
+
var require$$16 = /*@__PURE__*/getAugmentedNamespace(LinePrimitive);
|
|
4186
|
+
|
|
4187
|
+
// Generated by https://github.com/foxglove/schemas
|
|
4188
|
+
// Options: {}
|
|
4189
|
+
|
|
4190
|
+
/** An enumeration indicating how input points should be interpreted to create lines */
|
|
4191
|
+
let LineType = /*#__PURE__*/function (LineType) {
|
|
4192
|
+
LineType[LineType["LINE_STRIP"] = 0] = "LINE_STRIP";
|
|
4193
|
+
LineType[LineType["LINE_LOOP"] = 1] = "LINE_LOOP";
|
|
4194
|
+
LineType[LineType["LINE_LIST"] = 2] = "LINE_LIST";
|
|
4195
|
+
return LineType;
|
|
4196
|
+
}({});
|
|
4197
|
+
|
|
4198
|
+
var LineType$1 = /*#__PURE__*/Object.freeze({
|
|
4199
|
+
__proto__: null,
|
|
4200
|
+
LineType: LineType
|
|
4201
|
+
});
|
|
4202
|
+
|
|
4203
|
+
var require$$17 = /*@__PURE__*/getAugmentedNamespace(LineType$1);
|
|
4204
|
+
|
|
4205
|
+
var LocationFix = /*#__PURE__*/Object.freeze({
|
|
4206
|
+
__proto__: null
|
|
4207
|
+
});
|
|
4208
|
+
|
|
4209
|
+
var require$$18 = /*@__PURE__*/getAugmentedNamespace(LocationFix);
|
|
4210
|
+
|
|
4211
|
+
var Log = /*#__PURE__*/Object.freeze({
|
|
4212
|
+
__proto__: null
|
|
4213
|
+
});
|
|
4214
|
+
|
|
4215
|
+
var require$$19 = /*@__PURE__*/getAugmentedNamespace(Log);
|
|
4216
|
+
|
|
4217
|
+
// Generated by https://github.com/foxglove/schemas
|
|
4218
|
+
// Options: {}
|
|
4219
|
+
|
|
4220
|
+
/** Log level */
|
|
4221
|
+
let LogLevel = /*#__PURE__*/function (LogLevel) {
|
|
4222
|
+
LogLevel[LogLevel["UNKNOWN"] = 0] = "UNKNOWN";
|
|
4223
|
+
LogLevel[LogLevel["DEBUG"] = 1] = "DEBUG";
|
|
4224
|
+
LogLevel[LogLevel["INFO"] = 2] = "INFO";
|
|
4225
|
+
LogLevel[LogLevel["WARNING"] = 3] = "WARNING";
|
|
4226
|
+
LogLevel[LogLevel["ERROR"] = 4] = "ERROR";
|
|
4227
|
+
LogLevel[LogLevel["FATAL"] = 5] = "FATAL";
|
|
4228
|
+
return LogLevel;
|
|
4229
|
+
}({});
|
|
4230
|
+
|
|
4231
|
+
var LogLevel$1 = /*#__PURE__*/Object.freeze({
|
|
4232
|
+
__proto__: null,
|
|
4233
|
+
LogLevel: LogLevel
|
|
4234
|
+
});
|
|
4235
|
+
|
|
4236
|
+
var require$$20 = /*@__PURE__*/getAugmentedNamespace(LogLevel$1);
|
|
4237
|
+
|
|
4238
|
+
var ModelPrimitive = /*#__PURE__*/Object.freeze({
|
|
4239
|
+
__proto__: null
|
|
4240
|
+
});
|
|
4241
|
+
|
|
4242
|
+
var require$$21 = /*@__PURE__*/getAugmentedNamespace(ModelPrimitive);
|
|
4243
|
+
|
|
4244
|
+
// Generated by https://github.com/foxglove/schemas
|
|
4245
|
+
// Options: {}
|
|
4246
|
+
|
|
4247
|
+
/** Numeric type */
|
|
4248
|
+
let NumericType = /*#__PURE__*/function (NumericType) {
|
|
4249
|
+
NumericType[NumericType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
4250
|
+
NumericType[NumericType["UINT8"] = 1] = "UINT8";
|
|
4251
|
+
NumericType[NumericType["INT8"] = 2] = "INT8";
|
|
4252
|
+
NumericType[NumericType["UINT16"] = 3] = "UINT16";
|
|
4253
|
+
NumericType[NumericType["INT16"] = 4] = "INT16";
|
|
4254
|
+
NumericType[NumericType["UINT32"] = 5] = "UINT32";
|
|
4255
|
+
NumericType[NumericType["INT32"] = 6] = "INT32";
|
|
4256
|
+
NumericType[NumericType["FLOAT32"] = 7] = "FLOAT32";
|
|
4257
|
+
NumericType[NumericType["FLOAT64"] = 8] = "FLOAT64";
|
|
4258
|
+
return NumericType;
|
|
4259
|
+
}({});
|
|
4260
|
+
|
|
4261
|
+
var NumericType$1 = /*#__PURE__*/Object.freeze({
|
|
4262
|
+
__proto__: null,
|
|
4263
|
+
NumericType: NumericType
|
|
4264
|
+
});
|
|
4265
|
+
|
|
4266
|
+
var require$$22 = /*@__PURE__*/getAugmentedNamespace(NumericType$1);
|
|
4267
|
+
|
|
4268
|
+
var PackedElementField = /*#__PURE__*/Object.freeze({
|
|
4269
|
+
__proto__: null
|
|
4270
|
+
});
|
|
4271
|
+
|
|
4272
|
+
var require$$23 = /*@__PURE__*/getAugmentedNamespace(PackedElementField);
|
|
4273
|
+
|
|
4274
|
+
var Point2 = /*#__PURE__*/Object.freeze({
|
|
4275
|
+
__proto__: null
|
|
4276
|
+
});
|
|
4277
|
+
|
|
4278
|
+
var require$$24 = /*@__PURE__*/getAugmentedNamespace(Point2);
|
|
4279
|
+
|
|
4280
|
+
var Point3 = /*#__PURE__*/Object.freeze({
|
|
4281
|
+
__proto__: null
|
|
4282
|
+
});
|
|
4283
|
+
|
|
4284
|
+
var require$$25 = /*@__PURE__*/getAugmentedNamespace(Point3);
|
|
4285
|
+
|
|
4286
|
+
var PointCloud = /*#__PURE__*/Object.freeze({
|
|
4287
|
+
__proto__: null
|
|
4288
|
+
});
|
|
4289
|
+
|
|
4290
|
+
var require$$26 = /*@__PURE__*/getAugmentedNamespace(PointCloud);
|
|
4291
|
+
|
|
4292
|
+
var PointsAnnotation = /*#__PURE__*/Object.freeze({
|
|
4293
|
+
__proto__: null
|
|
4294
|
+
});
|
|
4295
|
+
|
|
4296
|
+
var require$$27 = /*@__PURE__*/getAugmentedNamespace(PointsAnnotation);
|
|
4297
|
+
|
|
4298
|
+
// Generated by https://github.com/foxglove/schemas
|
|
4299
|
+
// Options: {}
|
|
4300
|
+
|
|
4301
|
+
/** Type of points annotation */
|
|
4302
|
+
let PointsAnnotationType = /*#__PURE__*/function (PointsAnnotationType) {
|
|
4303
|
+
PointsAnnotationType[PointsAnnotationType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
4304
|
+
PointsAnnotationType[PointsAnnotationType["POINTS"] = 1] = "POINTS";
|
|
4305
|
+
PointsAnnotationType[PointsAnnotationType["LINE_LOOP"] = 2] = "LINE_LOOP";
|
|
4306
|
+
PointsAnnotationType[PointsAnnotationType["LINE_STRIP"] = 3] = "LINE_STRIP";
|
|
4307
|
+
PointsAnnotationType[PointsAnnotationType["LINE_LIST"] = 4] = "LINE_LIST";
|
|
4308
|
+
return PointsAnnotationType;
|
|
4309
|
+
}({});
|
|
4310
|
+
|
|
4311
|
+
var PointsAnnotationType$1 = /*#__PURE__*/Object.freeze({
|
|
4312
|
+
__proto__: null,
|
|
4313
|
+
PointsAnnotationType: PointsAnnotationType
|
|
4314
|
+
});
|
|
4315
|
+
|
|
4316
|
+
var require$$28 = /*@__PURE__*/getAugmentedNamespace(PointsAnnotationType$1);
|
|
4317
|
+
|
|
4318
|
+
var Pose = /*#__PURE__*/Object.freeze({
|
|
4319
|
+
__proto__: null
|
|
4320
|
+
});
|
|
4321
|
+
|
|
4322
|
+
var require$$29 = /*@__PURE__*/getAugmentedNamespace(Pose);
|
|
4323
|
+
|
|
4324
|
+
var PoseInFrame = /*#__PURE__*/Object.freeze({
|
|
4325
|
+
__proto__: null
|
|
4326
|
+
});
|
|
4327
|
+
|
|
4328
|
+
var require$$30 = /*@__PURE__*/getAugmentedNamespace(PoseInFrame);
|
|
4329
|
+
|
|
4330
|
+
var PosesInFrame = /*#__PURE__*/Object.freeze({
|
|
4331
|
+
__proto__: null
|
|
4332
|
+
});
|
|
4333
|
+
|
|
4334
|
+
var require$$31 = /*@__PURE__*/getAugmentedNamespace(PosesInFrame);
|
|
4335
|
+
|
|
4336
|
+
// Generated by https://github.com/foxglove/schemas
|
|
4337
|
+
// Options: {}
|
|
4338
|
+
|
|
4339
|
+
/** Type of position covariance */
|
|
4340
|
+
let PositionCovarianceType = /*#__PURE__*/function (PositionCovarianceType) {
|
|
4341
|
+
PositionCovarianceType[PositionCovarianceType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
4342
|
+
PositionCovarianceType[PositionCovarianceType["APPROXIMATED"] = 1] = "APPROXIMATED";
|
|
4343
|
+
PositionCovarianceType[PositionCovarianceType["DIAGONAL_KNOWN"] = 2] = "DIAGONAL_KNOWN";
|
|
4344
|
+
PositionCovarianceType[PositionCovarianceType["KNOWN"] = 3] = "KNOWN";
|
|
4345
|
+
return PositionCovarianceType;
|
|
4346
|
+
}({});
|
|
4347
|
+
|
|
4348
|
+
var PositionCovarianceType$1 = /*#__PURE__*/Object.freeze({
|
|
4349
|
+
__proto__: null,
|
|
4350
|
+
PositionCovarianceType: PositionCovarianceType
|
|
4351
|
+
});
|
|
4352
|
+
|
|
4353
|
+
var require$$32 = /*@__PURE__*/getAugmentedNamespace(PositionCovarianceType$1);
|
|
4354
|
+
|
|
4355
|
+
var Quaternion = /*#__PURE__*/Object.freeze({
|
|
4356
|
+
__proto__: null
|
|
4357
|
+
});
|
|
4358
|
+
|
|
4359
|
+
var require$$33 = /*@__PURE__*/getAugmentedNamespace(Quaternion);
|
|
4360
|
+
|
|
4361
|
+
var RawImage = /*#__PURE__*/Object.freeze({
|
|
4362
|
+
__proto__: null
|
|
4363
|
+
});
|
|
4364
|
+
|
|
4365
|
+
var require$$34 = /*@__PURE__*/getAugmentedNamespace(RawImage);
|
|
4366
|
+
|
|
4367
|
+
var SceneEntity = /*#__PURE__*/Object.freeze({
|
|
4368
|
+
__proto__: null
|
|
4369
|
+
});
|
|
4370
|
+
|
|
4371
|
+
var require$$35 = /*@__PURE__*/getAugmentedNamespace(SceneEntity);
|
|
4372
|
+
|
|
4373
|
+
var SceneEntityDeletion = /*#__PURE__*/Object.freeze({
|
|
4374
|
+
__proto__: null
|
|
4375
|
+
});
|
|
4376
|
+
|
|
4377
|
+
var require$$36 = /*@__PURE__*/getAugmentedNamespace(SceneEntityDeletion);
|
|
4378
|
+
|
|
4379
|
+
// Generated by https://github.com/foxglove/schemas
|
|
4380
|
+
// Options: {}
|
|
4381
|
+
|
|
4382
|
+
/** An enumeration indicating which entities should match a SceneEntityDeletion command */
|
|
4383
|
+
let SceneEntityDeletionType = /*#__PURE__*/function (SceneEntityDeletionType) {
|
|
4384
|
+
SceneEntityDeletionType[SceneEntityDeletionType["MATCHING_ID"] = 0] = "MATCHING_ID";
|
|
4385
|
+
SceneEntityDeletionType[SceneEntityDeletionType["ALL"] = 1] = "ALL";
|
|
4386
|
+
return SceneEntityDeletionType;
|
|
4387
|
+
}({});
|
|
4388
|
+
|
|
4389
|
+
var SceneEntityDeletionType$1 = /*#__PURE__*/Object.freeze({
|
|
4390
|
+
__proto__: null,
|
|
4391
|
+
SceneEntityDeletionType: SceneEntityDeletionType
|
|
4392
|
+
});
|
|
4393
|
+
|
|
4394
|
+
var require$$37 = /*@__PURE__*/getAugmentedNamespace(SceneEntityDeletionType$1);
|
|
4395
|
+
|
|
4396
|
+
var SceneUpdate = /*#__PURE__*/Object.freeze({
|
|
4397
|
+
__proto__: null
|
|
4398
|
+
});
|
|
4399
|
+
|
|
4400
|
+
var require$$38 = /*@__PURE__*/getAugmentedNamespace(SceneUpdate);
|
|
4401
|
+
|
|
4402
|
+
var SpherePrimitive = /*#__PURE__*/Object.freeze({
|
|
4403
|
+
__proto__: null
|
|
4404
|
+
});
|
|
4405
|
+
|
|
4406
|
+
var require$$39 = /*@__PURE__*/getAugmentedNamespace(SpherePrimitive);
|
|
4407
|
+
|
|
4408
|
+
var TextAnnotation = /*#__PURE__*/Object.freeze({
|
|
4409
|
+
__proto__: null
|
|
4410
|
+
});
|
|
4411
|
+
|
|
4412
|
+
var require$$40 = /*@__PURE__*/getAugmentedNamespace(TextAnnotation);
|
|
4413
|
+
|
|
4414
|
+
var TextPrimitive = /*#__PURE__*/Object.freeze({
|
|
4415
|
+
__proto__: null
|
|
4416
|
+
});
|
|
4417
|
+
|
|
4418
|
+
var require$$41 = /*@__PURE__*/getAugmentedNamespace(TextPrimitive);
|
|
4419
|
+
|
|
4420
|
+
var TriangleListPrimitive = /*#__PURE__*/Object.freeze({
|
|
4421
|
+
__proto__: null
|
|
4422
|
+
});
|
|
4423
|
+
|
|
4424
|
+
var require$$42 = /*@__PURE__*/getAugmentedNamespace(TriangleListPrimitive);
|
|
4425
|
+
|
|
4426
|
+
var Vector2 = /*#__PURE__*/Object.freeze({
|
|
4427
|
+
__proto__: null
|
|
4428
|
+
});
|
|
4429
|
+
|
|
4430
|
+
var require$$43 = /*@__PURE__*/getAugmentedNamespace(Vector2);
|
|
4431
|
+
|
|
4432
|
+
var Vector3 = /*#__PURE__*/Object.freeze({
|
|
4433
|
+
__proto__: null
|
|
4434
|
+
});
|
|
4435
|
+
|
|
4436
|
+
var require$$44 = /*@__PURE__*/getAugmentedNamespace(Vector3);
|
|
4437
|
+
|
|
4438
|
+
(function (exports) {
|
|
4439
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4440
|
+
const tslib_1 = require$$0;
|
|
4441
|
+
tslib_1.__exportStar(require$$1, exports);
|
|
4442
|
+
tslib_1.__exportStar(require$$2, exports);
|
|
4443
|
+
tslib_1.__exportStar(require$$3, exports);
|
|
4444
|
+
tslib_1.__exportStar(require$$4, exports);
|
|
4445
|
+
tslib_1.__exportStar(require$$5, exports);
|
|
4446
|
+
tslib_1.__exportStar(require$$6, exports);
|
|
4447
|
+
tslib_1.__exportStar(require$$7, exports);
|
|
4448
|
+
tslib_1.__exportStar(require$$8, exports);
|
|
4449
|
+
tslib_1.__exportStar(require$$9, exports);
|
|
4450
|
+
tslib_1.__exportStar(require$$10, exports);
|
|
4451
|
+
tslib_1.__exportStar(require$$11, exports);
|
|
4452
|
+
tslib_1.__exportStar(require$$12, exports);
|
|
4453
|
+
tslib_1.__exportStar(require$$13, exports);
|
|
4454
|
+
tslib_1.__exportStar(require$$14, exports);
|
|
4455
|
+
tslib_1.__exportStar(require$$15, exports);
|
|
4456
|
+
tslib_1.__exportStar(require$$16, exports);
|
|
4457
|
+
tslib_1.__exportStar(require$$17, exports);
|
|
4458
|
+
tslib_1.__exportStar(require$$18, exports);
|
|
4459
|
+
tslib_1.__exportStar(require$$19, exports);
|
|
4460
|
+
tslib_1.__exportStar(require$$20, exports);
|
|
4461
|
+
tslib_1.__exportStar(require$$21, exports);
|
|
4462
|
+
tslib_1.__exportStar(require$$22, exports);
|
|
4463
|
+
tslib_1.__exportStar(require$$23, exports);
|
|
4464
|
+
tslib_1.__exportStar(require$$24, exports);
|
|
4465
|
+
tslib_1.__exportStar(require$$25, exports);
|
|
4466
|
+
tslib_1.__exportStar(require$$26, exports);
|
|
4467
|
+
tslib_1.__exportStar(require$$27, exports);
|
|
4468
|
+
tslib_1.__exportStar(require$$28, exports);
|
|
4469
|
+
tslib_1.__exportStar(require$$29, exports);
|
|
4470
|
+
tslib_1.__exportStar(require$$30, exports);
|
|
4471
|
+
tslib_1.__exportStar(require$$31, exports);
|
|
4472
|
+
tslib_1.__exportStar(require$$32, exports);
|
|
4473
|
+
tslib_1.__exportStar(require$$33, exports);
|
|
4474
|
+
tslib_1.__exportStar(require$$34, exports);
|
|
4475
|
+
tslib_1.__exportStar(require$$35, exports);
|
|
4476
|
+
tslib_1.__exportStar(require$$36, exports);
|
|
4477
|
+
tslib_1.__exportStar(require$$37, exports);
|
|
4478
|
+
tslib_1.__exportStar(require$$38, exports);
|
|
4479
|
+
tslib_1.__exportStar(require$$39, exports);
|
|
4480
|
+
tslib_1.__exportStar(require$$40, exports);
|
|
4481
|
+
tslib_1.__exportStar(require$$41, exports);
|
|
4482
|
+
tslib_1.__exportStar(require$$42, exports);
|
|
4483
|
+
tslib_1.__exportStar(require$$43, exports);
|
|
4484
|
+
tslib_1.__exportStar(require$$44, exports);
|
|
4485
|
+
|
|
4486
|
+
} (typescript));
|
|
4487
|
+
|
|
4488
|
+
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
4489
|
+
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
4490
|
+
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
4491
|
+
//
|
|
4492
|
+
// This file incorporates work covered by the following copyright and
|
|
4493
|
+
// permission notice:
|
|
4494
|
+
//
|
|
4495
|
+
// Copyright 2018-2021 Cruise LLC
|
|
4496
|
+
//
|
|
4497
|
+
// This source code is licensed under the Apache License, Version 2.0,
|
|
4498
|
+
// found at http://www.apache.org/licenses/LICENSE-2.0
|
|
4499
|
+
// You may not use this file except in compliance with the License.
|
|
4500
|
+
|
|
4501
|
+
Logger$1.getLogger("src/index.ts");
|
|
4502
|
+
|
|
4503
|
+
function fromMillis(value) {
|
|
4504
|
+
let sec = Math.trunc(value / 1000);
|
|
4505
|
+
let nsec = Math.round((value - sec * 1000) * 1e6);
|
|
4506
|
+
sec += Math.trunc(nsec / 1e9);
|
|
4507
|
+
nsec %= 1e9;
|
|
4508
|
+
return {
|
|
4509
|
+
sec,
|
|
4510
|
+
nsec
|
|
4511
|
+
};
|
|
4512
|
+
}
|
|
4513
|
+
function parsePixelFormat(format) {
|
|
4514
|
+
switch (format) {
|
|
4515
|
+
case "BGRA":
|
|
4516
|
+
return ["bgra8", 3];
|
|
4517
|
+
case "BGRX":
|
|
4518
|
+
return ["bgr8", 3];
|
|
4519
|
+
// Closest supported
|
|
4520
|
+
case "I420":
|
|
4521
|
+
case "I420A":
|
|
4522
|
+
return ['I420', 2];
|
|
4523
|
+
case "I422":
|
|
4524
|
+
case "I444":
|
|
4525
|
+
return ['yuv422', 2];
|
|
4526
|
+
case "RGBA":
|
|
4527
|
+
return ["rgba8", 1];
|
|
4528
|
+
case "RGBX":
|
|
4529
|
+
return ["rgb8", 1];
|
|
4530
|
+
// Closest supported
|
|
4531
|
+
case "NV12":
|
|
4532
|
+
return ["nv12", 1];
|
|
4533
|
+
default:
|
|
4534
|
+
// Unsupported
|
|
4535
|
+
return ["bgra8", 3];
|
|
4536
|
+
}
|
|
4537
|
+
}
|
|
4538
|
+
function parseMessageType(type) {
|
|
4539
|
+
switch (type) {
|
|
4540
|
+
case Type.YUV422i:
|
|
4541
|
+
case Type.YUV422p:
|
|
4542
|
+
return ["yuv422", 2];
|
|
4543
|
+
case Type.NV12:
|
|
4544
|
+
return ["nv12", 1];
|
|
4545
|
+
case Type.RGB888i:
|
|
4546
|
+
return ["rgb8", 3];
|
|
4547
|
+
case Type.RGB888p:
|
|
4548
|
+
return ["rgb8p", 1];
|
|
4549
|
+
case Type.RGBA8888:
|
|
4550
|
+
return ["rgba8", 1];
|
|
4551
|
+
case Type.BGR888i:
|
|
4552
|
+
return ["bgr8i", 3];
|
|
4553
|
+
case Type.BGR888p:
|
|
4554
|
+
return ["bgr8p", 3];
|
|
4555
|
+
case Type.RAW16:
|
|
4556
|
+
return ["mono16", 2];
|
|
4557
|
+
case Type.RAW8:
|
|
4558
|
+
return ["mono8", 2];
|
|
4559
|
+
default:
|
|
4560
|
+
throw new Error(`Unsupported encoding ${Type[type]}`);
|
|
4561
|
+
}
|
|
4562
|
+
}
|
|
4563
|
+
function parseMessage(message) {
|
|
4564
|
+
const width = Number(message.fb?.width ?? message.sourceFb?.width ?? 1920);
|
|
4565
|
+
const height = Number(message.fb?.height ?? message.sourceFb?.height ?? 1200);
|
|
4566
|
+
const stride = message.fb?.stride ?? message.sourceFb?.stride ?? null;
|
|
4567
|
+
const p2Offset = message.fb?.p2Offset ?? message.sourceFb?.p2Offset ?? null;
|
|
4568
|
+
const p1Offset = message.fb?.p1Offset ?? message.sourceFb?.p1Offset ?? null;
|
|
4569
|
+
let planeStride = p1Offset != null && p2Offset != null ? p2Offset - p1Offset : 0;
|
|
4570
|
+
if (planeStride <= 0) {
|
|
4571
|
+
planeStride = null;
|
|
4572
|
+
}
|
|
4573
|
+
const type = message.fb?.type ?? message.sourceFb?.type ?? Type.RGB888p;
|
|
4574
|
+
const [encoding, step] = parseMessageType(type);
|
|
4575
|
+
const receiveTime = message.ts ?? message.tsDevice ?? fromMillis(Date.now());
|
|
4576
|
+
return {
|
|
4577
|
+
encoding,
|
|
4578
|
+
step: stride ?? step,
|
|
4579
|
+
receiveTime,
|
|
4580
|
+
width,
|
|
4581
|
+
height,
|
|
4582
|
+
stride,
|
|
4583
|
+
planeStride,
|
|
4584
|
+
type
|
|
4585
|
+
};
|
|
4586
|
+
}
|
|
4587
|
+
|
|
4588
|
+
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
4589
|
+
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
4590
|
+
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
4591
|
+
|
|
4592
|
+
async function deserializeDepthFrame({
|
|
4593
|
+
topic,
|
|
4594
|
+
message,
|
|
4595
|
+
callback
|
|
4596
|
+
}) {
|
|
4597
|
+
const {
|
|
4598
|
+
receiveTime,
|
|
4599
|
+
width,
|
|
4600
|
+
height
|
|
4601
|
+
} = parseMessage(message);
|
|
4602
|
+
const foxgloveMessage = {
|
|
4603
|
+
timestamp: message.tsDevice ?? receiveTime,
|
|
4604
|
+
frame_id: `pointcloud-${topic}-frame`,
|
|
4605
|
+
point_stride: 16,
|
|
4606
|
+
pose: {
|
|
4607
|
+
position: {
|
|
4608
|
+
x: 0,
|
|
4609
|
+
y: 0,
|
|
4610
|
+
z: 0
|
|
4611
|
+
},
|
|
4612
|
+
orientation: {
|
|
4613
|
+
x: 0,
|
|
4614
|
+
y: 0,
|
|
4615
|
+
z: 1,
|
|
4616
|
+
w: 0
|
|
4617
|
+
}
|
|
4618
|
+
},
|
|
4619
|
+
width,
|
|
4620
|
+
height,
|
|
4621
|
+
fields: [{
|
|
4622
|
+
name: "x",
|
|
4623
|
+
offset: 0,
|
|
4624
|
+
type: typescript.NumericType.FLOAT32
|
|
4625
|
+
}, {
|
|
4626
|
+
name: "y",
|
|
4627
|
+
offset: 4,
|
|
4628
|
+
type: typescript.NumericType.FLOAT32
|
|
4629
|
+
}, {
|
|
4630
|
+
name: "z",
|
|
4631
|
+
offset: 8,
|
|
4632
|
+
type: typescript.NumericType.FLOAT32
|
|
4633
|
+
}, {
|
|
4634
|
+
name: "red",
|
|
4635
|
+
offset: 12,
|
|
4636
|
+
type: typescript.NumericType.UINT8
|
|
4637
|
+
}, {
|
|
4638
|
+
name: "green",
|
|
4639
|
+
offset: 13,
|
|
4640
|
+
type: typescript.NumericType.UINT8
|
|
4641
|
+
}, {
|
|
4642
|
+
name: "blue",
|
|
4643
|
+
offset: 14,
|
|
4644
|
+
type: typescript.NumericType.UINT8
|
|
4645
|
+
}, {
|
|
4646
|
+
name: "alpha",
|
|
4647
|
+
offset: 15,
|
|
4648
|
+
type: typescript.NumericType.UINT8
|
|
4649
|
+
}],
|
|
4650
|
+
data: message.data
|
|
4651
|
+
};
|
|
4652
|
+
callback({
|
|
4653
|
+
topic,
|
|
4654
|
+
receiveTime,
|
|
4655
|
+
message: foxgloveMessage,
|
|
4656
|
+
sizeInBytes: estimateObjectSize(foxgloveMessage),
|
|
4657
|
+
schemaName: "foxglove.PointCloud"
|
|
4658
|
+
});
|
|
4659
|
+
}
|
|
4660
|
+
function getDistanceFromDepthDataForOffset(depthData, width, height, xOffset, yOffset) {
|
|
4661
|
+
if (xOffset < 0 || xOffset > 1 || yOffset < 0 || yOffset > 1) {
|
|
4662
|
+
console.error("Offsets must be between 0 and 1", {
|
|
4663
|
+
xOffset,
|
|
4664
|
+
yOffset
|
|
4665
|
+
});
|
|
4666
|
+
return undefined;
|
|
4667
|
+
}
|
|
4668
|
+
|
|
4669
|
+
// Select the pixel based on the offsets
|
|
4670
|
+
const [x, y] = [Math.floor(xOffset * width), Math.floor(yOffset * height)];
|
|
4671
|
+
|
|
4672
|
+
// Each "pixel" is represented by 16 bytes where z value is 4 bytes offset by 8 bytes so we want to read bytes <9-12>
|
|
4673
|
+
const offset = (y * width + x) * 16 + 8;
|
|
4674
|
+
|
|
4675
|
+
// Next 4 bytes represent the z value
|
|
4676
|
+
const zBytes = depthData.slice(offset, offset + 4);
|
|
4677
|
+
|
|
4678
|
+
// Convert the 4 bytes to a float
|
|
4679
|
+
const view = new DataView(zBytes.buffer, zBytes.byteOffset, zBytes.byteLength);
|
|
4680
|
+
const distance = view.getFloat32(0, true); // true for little-endian
|
|
4681
|
+
|
|
4682
|
+
return distance;
|
|
4683
|
+
}
|
|
4684
|
+
|
|
4685
|
+
export { toString as $, AppError as A, getAllPanelIds as B, getConfigsForNestedPanelsInsideTab as C, reorderTabWithinTabPanel as D, moveTabBetweenTabPanels as E, isTabPanelConfig as F, DEFAULT_TAB_PANEL_CONFIG as G, addPanelToTab as H, createAddUpdates as I, filterMap as J, uniq as K, Logger$1 as L, useShallowMemo as M, CurrentLayoutContext as N, MessageOrderTracker as O, AppConfigurationContext as P, __rest as Q, __spreadArray as R, getDistanceFromDepthDataForOffset as S, TAB_PANEL_TYPE as T, parseMessage as U, typescript as V, fromMillis as W, parsePixelFormat as X, deserializeDepthFrame as Y, isSymbol as Z, __assign as _, baseEach as a, keys as a0, getSymbols as a1, stubArray as a2, arrayPush as a3, baseGetAllKeys as a4, getAllKeys as a5, arrayMap as a6, baseUniq as a7, useMustNotChange as a8, useCurrentLayoutActions as a9, useCurrentLayoutSelector as aa, usePanelMosaicId as ab, useSelectedPanels as ac, PANEL_TITLE_CONFIG_KEY as ad, noop as ae, useAppConfiguration as af, useValueChangedDebugLog as ag, useJsonTreeTheme as ah, baseFlatten as b, baseIteratee as c, dist as d, estimateObjectSize as e, baseDifference as f, getTag as g, baseKeys as h, baseIsEqual as i, castPath as j, baseGet as k, hasIn as l, shallowequal$1 as m, getPanelIdsInsideTabPanels as n, getPanelTypeFromId as o, removePanelFromTabPanel as p, getPanelIdForType as q, reportError as r, sendNotification as s, toKey as t, useGuaranteedContext as u, getPathFromNode as v, updateTabPanelLayout as w, getSaveConfigsPayloadForAddedPanel as x, replaceAndRemovePanels as y, inlineTabPanelLayouts as z };
|