@luxonis/visualizer-protobuf 2.62.0 → 2.63.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/{index-CjxQ28_7.js → index-8vtcOv69.js} +1 -1
- package/dist/{index-CdrxBPP7.js → index-BEUK9fjl.js} +1 -1
- package/dist/{index-BLrTffhK.js → index-BVLZBH1f.js} +1 -1
- package/dist/{index-Cn9r4mYb.js → index-BjdZNYkh.js} +1 -1
- package/dist/{index-3OQfXCdz.js → index-C4v_oH5A.js} +1 -1
- package/dist/{index-BF5T69tM.js → index-CAPK46zz.js} +1 -1
- package/dist/{index-CGx-DKea.js → index-CaL5FU3W.js} +1 -1
- package/dist/{index-t6MTe7Ol.js → index-Cl2wsF35.js} +1 -1
- package/dist/{index-DBvBdwxc.js → index-Ctxq9ifh.js} +1 -1
- package/dist/{index-nQiPa_KC.js → index-CyeIwK8g.js} +2 -2
- package/dist/{index-mgeXbOqV.js → index-DT_jjA9M.js} +1 -1
- package/dist/{index-BuBO4knl.js → index-DVTnwOoU.js} +33 -5
- package/dist/{index-Dfgg5K4E.js → index-DW41is0g.js} +1 -1
- package/dist/{index-Dj075g_6.js → index-DZpuBiMu.js} +1 -1
- package/dist/{index-DKm19F-A.js → index-DgjVQNM1.js} +1 -1
- package/dist/{index-3O9kuakb.js → index-DtAhxADj.js} +1 -1
- package/dist/{index-6aRA93dj.js → index-ONl6IrAK.js} +1 -1
- package/dist/{index-C2g6OHkQ.js → index-WBIAVrf5.js} +20 -20
- package/dist/{index-ByLQ9RX9.js → index-t2Zi3vlL.js} +1 -1
- package/dist/index.js +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 +24 -6
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a1 as ExternalTokenizer, a9 as ContextTracker, Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, X as foldNodeProp, a8 as foldInside, U as indentNodeProp, V as continuedIndent, ae as defineCSSCompletionSource, a0 as LanguageSupport } from './index-
|
|
1
|
+
import { a1 as ExternalTokenizer, a9 as ContextTracker, Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, X as foldNodeProp, a8 as foldInside, U as indentNodeProp, V as continuedIndent, ae as defineCSSCompletionSource, a0 as LanguageSupport } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a1 as ExternalTokenizer, Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, U as indentNodeProp, V as continuedIndent, X as foldNodeProp, a8 as foldInside, a0 as LanguageSupport } from './index-
|
|
1
|
+
import { a1 as ExternalTokenizer, Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, U as indentNodeProp, V as continuedIndent, X as foldNodeProp, a8 as foldInside, a0 as LanguageSupport } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as styleTags, Z as tags, $ as LRLanguage, a0 as LanguageSupport, a2 as LRParser, aa as LocalTokenGroup, ah as html, ai as parseMixed, ak as javascriptLanguage } from './index-
|
|
1
|
+
import { Y as styleTags, Z as tags, $ as LRLanguage, a0 as LanguageSupport, a2 as LRParser, aa as LocalTokenGroup, ah as html, ai as parseMixed, ak as javascriptLanguage } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as ContextTracker, a1 as ExternalTokenizer, Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, U as indentNodeProp, a7 as delimitedIndent, X as foldNodeProp, a8 as foldInside, a0 as LanguageSupport, ai as parseMixed } from './index-
|
|
1
|
+
import { a9 as ContextTracker, a1 as ExternalTokenizer, Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, U as indentNodeProp, a7 as delimitedIndent, X as foldNodeProp, a8 as foldInside, a0 as LanguageSupport, ai as parseMixed } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, U as indentNodeProp, V as continuedIndent, a6 as flatIndent, a7 as delimitedIndent, X as foldNodeProp, a8 as foldInside, a0 as LanguageSupport } from './index-
|
|
1
|
+
import { Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, U as indentNodeProp, V as continuedIndent, a6 as flatIndent, a7 as delimitedIndent, X as foldNodeProp, a8 as foldInside, a0 as LanguageSupport } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a1 as ExternalTokenizer, a9 as ContextTracker, Y as styleTags, Z as tags, a2 as LRParser, a5 as syntaxTree, a3 as ifNotIn, $ as LRLanguage, U as indentNodeProp, a7 as delimitedIndent, X as foldNodeProp, a8 as foldInside, a0 as LanguageSupport, ac as IterMode, a4 as completeFromList, ad as NodeWeakMap, ab as snippetCompletion } from './index-
|
|
1
|
+
import { a1 as ExternalTokenizer, a9 as ContextTracker, Y as styleTags, Z as tags, a2 as LRParser, a5 as syntaxTree, a3 as ifNotIn, $ as LRLanguage, U as indentNodeProp, a7 as delimitedIndent, X as foldNodeProp, a8 as foldInside, a0 as LanguageSupport, ac as IterMode, a4 as completeFromList, ad as NodeWeakMap, ab as snippetCompletion } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as LRLanguage, U as indentNodeProp, a7 as delimitedIndent, X as foldNodeProp, a8 as foldInside, Y as styleTags, Z as tags, a0 as LanguageSupport, a2 as LRParser } from './index-
|
|
1
|
+
import { $ as LRLanguage, U as indentNodeProp, a7 as delimitedIndent, X as foldNodeProp, a8 as foldInside, Y as styleTags, Z as tags, a0 as LanguageSupport, a2 as LRParser } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a1 as ExternalTokenizer, a9 as ContextTracker, Y as styleTags, Z as tags, a2 as LRParser, aa as LocalTokenGroup, ab as snippetCompletion, a5 as syntaxTree, $ as LRLanguage, U as indentNodeProp, V as continuedIndent, a6 as flatIndent, a7 as delimitedIndent, X as foldNodeProp, a8 as foldInside, a0 as LanguageSupport, a3 as ifNotIn, a4 as completeFromList, ac as IterMode, ad as NodeWeakMap } from './index-
|
|
1
|
+
import { a1 as ExternalTokenizer, a9 as ContextTracker, Y as styleTags, Z as tags, a2 as LRParser, aa as LocalTokenGroup, ab as snippetCompletion, a5 as syntaxTree, $ as LRLanguage, U as indentNodeProp, V as continuedIndent, a6 as flatIndent, a7 as delimitedIndent, X as foldNodeProp, a8 as foldInside, a0 as LanguageSupport, a3 as ifNotIn, a4 as completeFromList, ac as IterMode, ad as NodeWeakMap } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a1 as ExternalTokenizer, Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, U as indentNodeProp, V as continuedIndent, a6 as flatIndent, a7 as delimitedIndent, X as foldNodeProp, a8 as foldInside, a0 as LanguageSupport } from './index-
|
|
1
|
+
import { a1 as ExternalTokenizer, Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, U as indentNodeProp, V as continuedIndent, a6 as flatIndent, a7 as delimitedIndent, X as foldNodeProp, a8 as foldInside, a0 as LanguageSupport } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImagePanel } from './index-
|
|
1
|
+
import { ImagePanel } from './index-DVTnwOoU.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-dom';
|
|
4
4
|
import './depth-CJRDcPfJ.js';
|
|
@@ -8,7 +8,7 @@ import 'zustand';
|
|
|
8
8
|
import 'react-mosaic-component';
|
|
9
9
|
import '@mui/material';
|
|
10
10
|
import './isArrayLikeObject-Bytw9p-q.js';
|
|
11
|
-
import './index-
|
|
11
|
+
import './index-WBIAVrf5.js';
|
|
12
12
|
import './comlink-DHMAu6X7.js';
|
|
13
13
|
import './utils-Hzt3wxhG.js';
|
|
14
14
|
import './FoxgloveServer-MMAMiqqQ.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as styleTags, Z as tags, $ as LRLanguage, U as indentNodeProp, V as continuedIndent, X as foldNodeProp, a8 as foldInside, ae as defineCSSCompletionSource, a0 as LanguageSupport, a2 as LRParser, a1 as ExternalTokenizer } from './index-
|
|
1
|
+
import { Y as styleTags, Z as tags, $ as LRLanguage, U as indentNodeProp, V as continuedIndent, X as foldNodeProp, a8 as foldInside, ae as defineCSSCompletionSource, a0 as LanguageSupport, a2 as LRParser, a1 as ExternalTokenizer } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -3,7 +3,7 @@ import React__default, { useReducer, useRef, useCallback, useLayoutEffect, Compo
|
|
|
3
3
|
import ReactDOM__default from 'react-dom';
|
|
4
4
|
import { Z as isSymbol, $ as toString, a0 as keys, a1 as getSymbols$1, a2 as stubArray, a3 as arrayPush, a4 as baseGetAllKeys, g as getTag, a5 as getAllKeys, k as baseGet, c as baseIteratee, j as castPath, t as toKey, a6 as arrayMap$1, a7 as baseUniq, b as baseFlatten, a8 as useMustNotChange, a9 as useCurrentLayoutActions, aa as useCurrentLayoutSelector, r as reportError, A as AppError, L as Logger, u as useGuaranteedContext, ab as usePanelMosaicId, ac as useSelectedPanels, ad as PANEL_TITLE_CONFIG_KEY, ae as noop$4, o as getPanelTypeFromId, M as useShallowMemo, T as TAB_PANEL_TYPE, J as filterMap, d as dist$2, af as useAppConfiguration, ag as useValueChangedDebugLog, V as typescript, ah as useJsonTreeTheme } from './depth-CJRDcPfJ.js';
|
|
5
5
|
import { createStore, useStore } from 'zustand';
|
|
6
|
-
import { g as generateUtilityClass, c as createAggregator, f as flatRest, b as baseSet, A as AnalyticsContext, P as PropTypes, E as ErrorDisplay, S as Stack$1, m as makeStyles$1, _ as _extends$1, W as WorkspaceContext, u as useAnalytics, a as AppEvent, L as LeftSidebarItemKeys, R as RightSidebarItemKeys, d as useTranslation, e as usePanelCatalog, h as EmptyState, i as isEmpty, j as PanelContext, k as PanelCatalogContext, l as usePanelStateStore, n as useDefaultPanelTitle, o as useWorkspaceStore, p as WorkspaceStoreSelectors, q as difference, r as usePanelContext, s as useMessagePipeline, v as v4, t as useHoverValue, w as useSetHoverValue, x as useClearHoverValue, y as useMessagePipelineGetter, z as usePanelSettingsTreeUpdate, B as PlayerCapabilities, C as assertNever, D as PlayerPresence, F as isEqual, G as isDesktopApp, H as createTheme, I as propTypesExports, J as DEFAULT_CAMERA_STATE$1, K as format$1, M as z, N as serializeError, O as stringify$1, Q as createIntl, T as createIntlCache } from './index-
|
|
6
|
+
import { g as generateUtilityClass, c as createAggregator, f as flatRest, b as baseSet, A as AnalyticsContext, P as PropTypes, E as ErrorDisplay, S as Stack$1, m as makeStyles$1, _ as _extends$1, W as WorkspaceContext, u as useAnalytics, a as AppEvent, L as LeftSidebarItemKeys, R as RightSidebarItemKeys, d as useTranslation, e as usePanelCatalog, h as EmptyState, i as isEmpty, j as PanelContext, k as PanelCatalogContext, l as usePanelStateStore, n as useDefaultPanelTitle, o as useWorkspaceStore, p as WorkspaceStoreSelectors, q as difference, r as usePanelContext, s as useMessagePipeline, v as v4, t as useHoverValue, w as useSetHoverValue, x as useClearHoverValue, y as useMessagePipelineGetter, z as usePanelSettingsTreeUpdate, B as PlayerCapabilities, C as assertNever, D as PlayerPresence, F as isEqual, G as isDesktopApp, H as createTheme, I as propTypesExports, J as DEFAULT_CAMERA_STATE$1, K as format$1, M as z, N as serializeError, O as stringify$1, Q as createIntl, T as createIntlCache } from './index-WBIAVrf5.js';
|
|
7
7
|
import { MosaicDragType, MosaicContext, MosaicWindowContext, getOtherBranch, getNodeAtPath } from 'react-mosaic-component';
|
|
8
8
|
import { g as getDefaultExportFromCjs, c as commonjsGlobal, d as getAugmentedNamespace } from './protobuf-B55JS-Px.js';
|
|
9
9
|
import { Link, Button, alpha, IconButton, Card, CardActionArea, CardMedia, CardContent, Typography, Container, Tooltip, Fade, ListItem, ListItemButton, ListItemText, List, TextField, InputAdornment, Popper, Grow, Paper, ClickAwayListener, Menu, MenuItem, Divider, buttonClasses, Backdrop, Chip, useTheme, alertClasses, darken, lighten, inputBaseClasses, autocompleteClasses, inputClasses, Checkbox, dialogActionsClasses, filledInputClasses, inputAdornmentClasses, listSubheaderClasses, selectClasses, tableCellClasses, ThemeProvider as ThemeProvider$1, SvgIcon, tabsClasses as tabsClasses$1, tabClasses, Tabs, Tab, ListItemIcon } from '@mui/material';
|
|
@@ -32727,11 +32727,39 @@ class MessageHandler {
|
|
|
32727
32727
|
image: this.lastImage,
|
|
32728
32728
|
annotationsByTopic: new Map()
|
|
32729
32729
|
};
|
|
32730
|
-
const imageTimestamp = this.lastImage.receiveTime ? Number(this.lastImage.receiveTime) : performance.now();
|
|
32730
|
+
const imageTimestamp = this.lastImage.receiveTime ? Number(`${this.lastImage.receiveTime.sec}.${this.lastImage.receiveTime.nsec}`) : performance.now();
|
|
32731
32731
|
const now = performance.now();
|
|
32732
|
-
for (const [topic,
|
|
32733
|
-
|
|
32734
|
-
|
|
32732
|
+
for (const [topic, annotation] of this.annotationsMap.entries()) {
|
|
32733
|
+
// FIXME: We can liekly get this value better from the annotation message itself
|
|
32734
|
+
const annotationTimestamp = Number.parseFloat(`${annotation.annotation.originalMessage.receiveTime?.sec}.${annotation.annotation.originalMessage.receiveTime?.nsec}`);
|
|
32735
|
+
|
|
32736
|
+
// In case the annotation timestamp is not available, we just continue
|
|
32737
|
+
if (Number.isNaN(annotationTimestamp)) {
|
|
32738
|
+
console.warn("Skipping annotation with no/invalid timestamp", annotation);
|
|
32739
|
+
continue;
|
|
32740
|
+
}
|
|
32741
|
+
|
|
32742
|
+
// We only want to show annotations that are older (or same) than the image frame with 100ms tolerance
|
|
32743
|
+
const isAnnotationOlderThanImageFrame = annotationTimestamp <= imageTimestamp + 0.1;
|
|
32744
|
+
|
|
32745
|
+
//console.log({
|
|
32746
|
+
// annotation,
|
|
32747
|
+
// imageTimestamp,
|
|
32748
|
+
// annotationTimestamp,
|
|
32749
|
+
// isAnnotationOlderThanImageFrame,
|
|
32750
|
+
//});
|
|
32751
|
+
|
|
32752
|
+
const annotationGhost = now - annotation.timestamp < this.ghostTimeoutMs;
|
|
32753
|
+
|
|
32754
|
+
// console.log({ now, annotationTimestamp: annotation.timestamp, annotationGhost });
|
|
32755
|
+
|
|
32756
|
+
if ((Math.abs(imageTimestamp - annotation.timestamp) <= this.syncToleranceMs ||
|
|
32757
|
+
// within tolerance
|
|
32758
|
+
annotationGhost) &&
|
|
32759
|
+
// I think this says "or annotation is newer than 1s"
|
|
32760
|
+
isAnnotationOlderThanImageFrame // annotation has to be older than image frame within 100ms tolerance
|
|
32761
|
+
) {
|
|
32762
|
+
state.annotationsByTopic.set(topic, annotation.annotation);
|
|
32735
32763
|
}
|
|
32736
32764
|
}
|
|
32737
32765
|
return state;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as ContextTracker, a1 as ExternalTokenizer, Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, U as indentNodeProp, X as foldNodeProp, aj as bracketMatchingHandle, a0 as LanguageSupport, af as EditorView, a5 as syntaxTree, ag as EditorSelection } from './index-
|
|
1
|
+
import { a9 as ContextTracker, a1 as ExternalTokenizer, Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, U as indentNodeProp, X as foldNodeProp, aj as bracketMatchingHandle, a0 as LanguageSupport, af as EditorView, a5 as syntaxTree, ag as EditorSelection } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, U as indentNodeProp, V as continuedIndent, X as foldNodeProp, a8 as foldInside, a0 as LanguageSupport } from './index-
|
|
1
|
+
import { Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, U as indentNodeProp, V as continuedIndent, X as foldNodeProp, a8 as foldInside, a0 as LanguageSupport } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as styleTags, Z as tags, ak as javascriptLanguage, $ as LRLanguage, a0 as LanguageSupport, a2 as LRParser, ah as html, ai as parseMixed, a1 as ExternalTokenizer } from './index-
|
|
1
|
+
import { Y as styleTags, Z as tags, ak as javascriptLanguage, $ as LRLanguage, a0 as LanguageSupport, a2 as LRParser, ah as html, ai as parseMixed, a1 as ExternalTokenizer } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a1 as ExternalTokenizer, Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, U as indentNodeProp, V as continuedIndent, a7 as delimitedIndent, X as foldNodeProp, a8 as foldInside, ah as html, a0 as LanguageSupport, ai as parseMixed } from './index-
|
|
1
|
+
import { a1 as ExternalTokenizer, Y as styleTags, Z as tags, a2 as LRParser, $ as LRLanguage, U as indentNodeProp, V as continuedIndent, a7 as delimitedIndent, X as foldNodeProp, a8 as foldInside, ah as html, a0 as LanguageSupport, ai as parseMixed } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { af as EditorView, ag as EditorSelection, $ as LRLanguage, Y as styleTags, Z as tags, U as indentNodeProp, a7 as delimitedIndent, X as foldNodeProp, a0 as LanguageSupport, a2 as LRParser, a5 as syntaxTree, ah as html, ai as parseMixed, a1 as ExternalTokenizer } from './index-
|
|
1
|
+
import { af as EditorView, ag as EditorSelection, $ as LRLanguage, Y as styleTags, Z as tags, U as indentNodeProp, a7 as delimitedIndent, X as foldNodeProp, a0 as LanguageSupport, a2 as LRParser, a5 as syntaxTree, ah as html, ai as parseMixed, a1 as ExternalTokenizer } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
@@ -86796,7 +86796,7 @@ function legacy(parser) {
|
|
|
86796
86796
|
return new LanguageSupport(StreamLanguage.define(parser));
|
|
86797
86797
|
}
|
|
86798
86798
|
function sql$1(dialectName) {
|
|
86799
|
-
return import('./index-
|
|
86799
|
+
return import('./index-t2Zi3vlL.js').then(m => m.sql({ dialect: m[dialectName] }));
|
|
86800
86800
|
}
|
|
86801
86801
|
/**
|
|
86802
86802
|
An array of language descriptions for known language packages.
|
|
@@ -86807,7 +86807,7 @@ const languages = [
|
|
|
86807
86807
|
name: "C",
|
|
86808
86808
|
extensions: ["c", "h", "ino"],
|
|
86809
86809
|
load() {
|
|
86810
|
-
return import('./index-
|
|
86810
|
+
return import('./index-Ctxq9ifh.js').then(m => m.cpp());
|
|
86811
86811
|
}
|
|
86812
86812
|
}),
|
|
86813
86813
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -86815,7 +86815,7 @@ const languages = [
|
|
|
86815
86815
|
alias: ["cpp"],
|
|
86816
86816
|
extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
|
|
86817
86817
|
load() {
|
|
86818
|
-
return import('./index-
|
|
86818
|
+
return import('./index-Ctxq9ifh.js').then(m => m.cpp());
|
|
86819
86819
|
}
|
|
86820
86820
|
}),
|
|
86821
86821
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -86835,7 +86835,7 @@ const languages = [
|
|
|
86835
86835
|
name: "Go",
|
|
86836
86836
|
extensions: ["go"],
|
|
86837
86837
|
load() {
|
|
86838
|
-
return import('./index-
|
|
86838
|
+
return import('./index-Cl2wsF35.js').then(m => m.go());
|
|
86839
86839
|
}
|
|
86840
86840
|
}),
|
|
86841
86841
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -86850,7 +86850,7 @@ const languages = [
|
|
|
86850
86850
|
name: "Java",
|
|
86851
86851
|
extensions: ["java"],
|
|
86852
86852
|
load() {
|
|
86853
|
-
return import('./index-
|
|
86853
|
+
return import('./index-C4v_oH5A.js').then(m => m.java());
|
|
86854
86854
|
}
|
|
86855
86855
|
}),
|
|
86856
86856
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -86866,7 +86866,7 @@ const languages = [
|
|
|
86866
86866
|
alias: ["json5"],
|
|
86867
86867
|
extensions: ["json", "map"],
|
|
86868
86868
|
load() {
|
|
86869
|
-
return import('./index-
|
|
86869
|
+
return import('./index-DZpuBiMu.js').then(m => m.json());
|
|
86870
86870
|
}
|
|
86871
86871
|
}),
|
|
86872
86872
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -86880,14 +86880,14 @@ const languages = [
|
|
|
86880
86880
|
name: "LESS",
|
|
86881
86881
|
extensions: ["less"],
|
|
86882
86882
|
load() {
|
|
86883
|
-
return import('./index-
|
|
86883
|
+
return import('./index-DT_jjA9M.js').then(m => m.less());
|
|
86884
86884
|
}
|
|
86885
86885
|
}),
|
|
86886
86886
|
/*@__PURE__*/LanguageDescription.of({
|
|
86887
86887
|
name: "Liquid",
|
|
86888
86888
|
extensions: ["liquid"],
|
|
86889
86889
|
load() {
|
|
86890
|
-
return import('./index-
|
|
86890
|
+
return import('./index-ONl6IrAK.js').then(m => m.liquid());
|
|
86891
86891
|
}
|
|
86892
86892
|
}),
|
|
86893
86893
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -86913,7 +86913,7 @@ const languages = [
|
|
|
86913
86913
|
name: "PHP",
|
|
86914
86914
|
extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
|
|
86915
86915
|
load() {
|
|
86916
|
-
return import('./index-
|
|
86916
|
+
return import('./index-DtAhxADj.js').then(m => m.php());
|
|
86917
86917
|
}
|
|
86918
86918
|
}),
|
|
86919
86919
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -86930,28 +86930,28 @@ const languages = [
|
|
|
86930
86930
|
extensions: ["BUILD", "bzl", "py", "pyw"],
|
|
86931
86931
|
filename: /^(BUCK|BUILD)$/,
|
|
86932
86932
|
load() {
|
|
86933
|
-
return import('./index-
|
|
86933
|
+
return import('./index-CAPK46zz.js').then(m => m.python());
|
|
86934
86934
|
}
|
|
86935
86935
|
}),
|
|
86936
86936
|
/*@__PURE__*/LanguageDescription.of({
|
|
86937
86937
|
name: "Rust",
|
|
86938
86938
|
extensions: ["rs"],
|
|
86939
86939
|
load() {
|
|
86940
|
-
return import('./index-
|
|
86940
|
+
return import('./index-BEUK9fjl.js').then(m => m.rust());
|
|
86941
86941
|
}
|
|
86942
86942
|
}),
|
|
86943
86943
|
/*@__PURE__*/LanguageDescription.of({
|
|
86944
86944
|
name: "Sass",
|
|
86945
86945
|
extensions: ["sass"],
|
|
86946
86946
|
load() {
|
|
86947
|
-
return import('./index-
|
|
86947
|
+
return import('./index-8vtcOv69.js').then(m => m.sass({ indented: true }));
|
|
86948
86948
|
}
|
|
86949
86949
|
}),
|
|
86950
86950
|
/*@__PURE__*/LanguageDescription.of({
|
|
86951
86951
|
name: "SCSS",
|
|
86952
86952
|
extensions: ["scss"],
|
|
86953
86953
|
load() {
|
|
86954
|
-
return import('./index-
|
|
86954
|
+
return import('./index-8vtcOv69.js').then(m => m.sass());
|
|
86955
86955
|
}
|
|
86956
86956
|
}),
|
|
86957
86957
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -86982,7 +86982,7 @@ const languages = [
|
|
|
86982
86982
|
name: "WebAssembly",
|
|
86983
86983
|
extensions: ["wat", "wast"],
|
|
86984
86984
|
load() {
|
|
86985
|
-
return import('./index-
|
|
86985
|
+
return import('./index-CaL5FU3W.js').then(m => m.wast());
|
|
86986
86986
|
}
|
|
86987
86987
|
}),
|
|
86988
86988
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -86990,7 +86990,7 @@ const languages = [
|
|
|
86990
86990
|
alias: ["rss", "wsdl", "xsd"],
|
|
86991
86991
|
extensions: ["xml", "xsl", "xsd", "svg"],
|
|
86992
86992
|
load() {
|
|
86993
|
-
return import('./index-
|
|
86993
|
+
return import('./index-DW41is0g.js').then(m => m.xml());
|
|
86994
86994
|
}
|
|
86995
86995
|
}),
|
|
86996
86996
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -86998,7 +86998,7 @@ const languages = [
|
|
|
86998
86998
|
alias: ["yml"],
|
|
86999
86999
|
extensions: ["yaml", "yml"],
|
|
87000
87000
|
load() {
|
|
87001
|
-
return import('./index-
|
|
87001
|
+
return import('./index-BjdZNYkh.js').then(m => m.yaml());
|
|
87002
87002
|
}
|
|
87003
87003
|
}),
|
|
87004
87004
|
// Legacy modes ported from CodeMirror 5
|
|
@@ -87794,13 +87794,13 @@ const languages = [
|
|
|
87794
87794
|
name: "Vue",
|
|
87795
87795
|
extensions: ["vue"],
|
|
87796
87796
|
load() {
|
|
87797
|
-
return import('./index-
|
|
87797
|
+
return import('./index-BVLZBH1f.js').then(m => m.vue());
|
|
87798
87798
|
}
|
|
87799
87799
|
}),
|
|
87800
87800
|
/*@__PURE__*/LanguageDescription.of({
|
|
87801
87801
|
name: "Angular Template",
|
|
87802
87802
|
load() {
|
|
87803
|
-
return import('./index-
|
|
87803
|
+
return import('./index-DgjVQNM1.js').then(m => m.angular());
|
|
87804
87804
|
}
|
|
87805
87805
|
})
|
|
87806
87806
|
];
|
|
@@ -166498,7 +166498,7 @@ function createRenderDelaySampler() {
|
|
|
166498
166498
|
};
|
|
166499
166499
|
}
|
|
166500
166500
|
|
|
166501
|
-
const ImagePanelComponent = /*#__PURE__*/React__default.lazy(async () => await import('./index-
|
|
166501
|
+
const ImagePanelComponent = /*#__PURE__*/React__default.lazy(async () => await import('./index-CyeIwK8g.js'));
|
|
166502
166502
|
const ImagePanelBody = ({
|
|
166503
166503
|
topic,
|
|
166504
166504
|
frameRenderedEvent,
|
|
@@ -166593,7 +166593,7 @@ const DEFAULT_CAMERA_STATE = {
|
|
|
166593
166593
|
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
166594
166594
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
166595
166595
|
|
|
166596
|
-
const ThreeDeeRenderComponent = /*#__PURE__*/React__default.lazy(async () => await import('./index-
|
|
166596
|
+
const ThreeDeeRenderComponent = /*#__PURE__*/React__default.lazy(async () => await import('./index-DVTnwOoU.js'));
|
|
166597
166597
|
const PointCloudPanelBody = ({
|
|
166598
166598
|
topic,
|
|
166599
166599
|
frameRenderedEvent,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as indentNodeProp, V as continuedIndent, X as foldNodeProp, Y as styleTags, Z as tags, $ as LRLanguage, a0 as LanguageSupport, a1 as ExternalTokenizer, a2 as LRParser, a3 as ifNotIn, a4 as completeFromList, a5 as syntaxTree } from './index-
|
|
1
|
+
import { U as indentNodeProp, V as continuedIndent, X as foldNodeProp, Y as styleTags, Z as tags, $ as LRLanguage, a0 as LanguageSupport, a1 as ExternalTokenizer, a2 as LRParser, a3 as ifNotIn, a4 as completeFromList, a5 as syntaxTree } from './index-WBIAVrf5.js';
|
|
2
2
|
import './depth-CJRDcPfJ.js';
|
|
3
3
|
import './protobuf-B55JS-Px.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { av as FrameStore, ao as ImagePanel, an as PanelLayout, ap as PointCloudPanel, al as VisualizerConnection, am as VisualizerContext, aq as constructKeyForTopicRenderMetrics, as as globalDecodeMetricsManager, ar as globalInputEventMetricsManager, at as globalRenderMetricsManager, au as globalThroughputMetricsManager } from './index-
|
|
1
|
+
export { av as FrameStore, ao as ImagePanel, an as PanelLayout, ap as PointCloudPanel, al as VisualizerConnection, am as VisualizerContext, aq as constructKeyForTopicRenderMetrics, as as globalDecodeMetricsManager, ar as globalInputEventMetricsManager, at as globalRenderMetricsManager, au as globalThroughputMetricsManager } from './index-WBIAVrf5.js';
|
|
2
2
|
export { S as getDistanceFromDepthDataForOffset } from './depth-CJRDcPfJ.js';
|
|
3
3
|
import './comlink-DHMAu6X7.js';
|
|
4
4
|
import './utils-Hzt3wxhG.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageHandler.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,eAAe,EACf,gBAAgB,IAAI,wBAAwB,EAC5C,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EACL,OAAO,EACP,cAAc,EACf,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,MAAM,2EAA2E,CAAC;AAQrG,OAAO,EACL,WAAW,IAAI,cAAc,EAC7B,gBAAgB,IAAI,mBAAmB,EACxC,MAAM,sCAAsC,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAUjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,eAAe,IAAI,kBAAkB,EAAE,KAAK,IAAI,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGjG,KAAK,qBAAqB,GAAG;IAC3B,eAAe,EAAE,YAAY,CAAC,mBAAmB,GAAG,cAAc,GAAG,wBAAwB,CAAC,CAAC;IAC/F,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageHandler.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,eAAe,EACf,gBAA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CAAC,CAAC,GAAG,IAAI,CAAC;IAEhE,KAAK,IAAI,IAAI,CAAC;IAEd,0BAA0B,IAAI,QAAQ,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAErE;;;OAGG;IACH,4BAA4B,CAAC,oBAAoB,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEnE,iCAAiC,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAE7D,OAAO,CAAC,IAAI,IAAI,CAAC;CAClB"}
|
package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.js
CHANGED
|
@@ -240,14 +240,32 @@ export class MessageHandler {
|
|
|
240
240
|
annotationsByTopic: new Map(),
|
|
241
241
|
};
|
|
242
242
|
const imageTimestamp = this.lastImage.receiveTime
|
|
243
|
-
? Number(this.lastImage.receiveTime)
|
|
243
|
+
? Number(`${this.lastImage.receiveTime.sec}.${this.lastImage.receiveTime.nsec}`)
|
|
244
244
|
: performance.now();
|
|
245
245
|
const now = performance.now();
|
|
246
|
-
for (const [topic,
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
246
|
+
for (const [topic, annotation] of this.annotationsMap.entries()) {
|
|
247
|
+
// FIXME: We can liekly get this value better from the annotation message itself
|
|
248
|
+
const annotationTimestamp = Number.parseFloat(`${annotation.annotation.originalMessage.receiveTime?.sec}.${annotation.annotation.originalMessage.receiveTime?.nsec}`);
|
|
249
|
+
// In case the annotation timestamp is not available, we just continue
|
|
250
|
+
if (Number.isNaN(annotationTimestamp)) {
|
|
251
|
+
console.warn("Skipping annotation with no/invalid timestamp", annotation);
|
|
252
|
+
continue;
|
|
253
|
+
}
|
|
254
|
+
// We only want to show annotations that are older (or same) than the image frame with 100ms tolerance
|
|
255
|
+
const isAnnotationOlderThanImageFrame = annotationTimestamp <= imageTimestamp + 0.1;
|
|
256
|
+
//console.log({
|
|
257
|
+
// annotation,
|
|
258
|
+
// imageTimestamp,
|
|
259
|
+
// annotationTimestamp,
|
|
260
|
+
// isAnnotationOlderThanImageFrame,
|
|
261
|
+
//});
|
|
262
|
+
const annotationGhost = now - annotation.timestamp < this.ghostTimeoutMs;
|
|
263
|
+
// console.log({ now, annotationTimestamp: annotation.timestamp, annotationGhost });
|
|
264
|
+
if ((Math.abs(imageTimestamp - annotation.timestamp) <= this.syncToleranceMs || // within tolerance
|
|
265
|
+
annotationGhost) && // I think this says "or annotation is newer than 1s"
|
|
266
|
+
isAnnotationOlderThanImageFrame // annotation has to be older than image frame within 100ms tolerance
|
|
267
|
+
) {
|
|
268
|
+
state.annotationsByTopic.set(topic, annotation.annotation);
|
|
251
269
|
}
|
|
252
270
|
}
|
|
253
271
|
return state;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageHandler.js","sourceRoot":"","sources":["../../../../../../../../../packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAc1D,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,2BAA2B,EAC3B,iBAAiB,GAClB,MAAM,iFAAiF,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,qEAAqE,CAAC;AAM1G,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,OAAO,EACL,uBAAuB,EACvB,gCAAgC,EAChC,8BAA8B,EAC9B,+BAA+B,EAC/B,4BAA4B,EAC5B,6BAA6B,EAC7B,8BAA8B,GAC/B,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageHandler.js","sourceRoot":"","sources":["../../../../../../../../../packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAc1D,OAAO,EACL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