@foxglove/embed 0.2.0 → 0.2.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.
@@ -0,0 +1,1883 @@
1
+ /**
2
+ * This file was automatically generated. DO NOT MODIFY IT BY HAND.
3
+ * */
4
+
5
+ /**
6
+ * A value that can be used as a variable in the layout.
7
+ *
8
+ * This interface was referenced by `Layout`'s JSON-Schema
9
+ * via the `definition` "VariableValue".
10
+ */
11
+ export type VariableValue =
12
+ | boolean
13
+ | number
14
+ | string
15
+ | VariableValue[]
16
+ | {
17
+ [k: string]: VariableValue;
18
+ };
19
+ /**
20
+ * The panel or arrangement of panels comprising the content.
21
+ *
22
+ * This interface was referenced by `Layout`'s JSON-Schema
23
+ * via the `definition` "Content".
24
+ */
25
+ export type Content = BasePanel | Tabs | Stack | Split;
26
+ /**
27
+ * Write documentation and notes formatted using Markdown.
28
+ *
29
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/markdown).
30
+ *
31
+ * This interface was referenced by `Layout`'s JSON-Schema
32
+ * via the `definition` "MarkdownPanel".
33
+ */
34
+ export type MarkdownPanel = BasePanel & {
35
+ panelType: "Markdown";
36
+ config: MarkdownConfig;
37
+ /**
38
+ * The title of the panel.
39
+ */
40
+ title?: string;
41
+ /**
42
+ * The version of the panel config schema.
43
+ */
44
+ version: 1;
45
+ };
46
+ /**
47
+ * A schema for a generic panel; can be used as a fallback for panels that are not yet supported.
48
+ *
49
+ * This interface was referenced by `Layout`'s JSON-Schema
50
+ * via the `definition` "Panel".
51
+ */
52
+ export type Panel = BasePanel & {
53
+ config?: PanelConfig;
54
+ /**
55
+ * The title of the panel.
56
+ */
57
+ title?: string;
58
+ };
59
+ /**
60
+ * Operator used for comparison against message data for state detection
61
+ *
62
+ * This interface was referenced by `Layout`'s JSON-Schema
63
+ * via the `definition` "StateTransitionsRangeCustomStateOperator".
64
+ */
65
+ export type StateTransitionsRangeCustomStateOperator = "=" | "<" | "<=" | ">" | ">=";
66
+ /**
67
+ * A range custom state for the customization strategy
68
+ *
69
+ * This interface was referenced by `Layout`'s JSON-Schema
70
+ * via the `definition` "StateTransitionsRangeCustomState".
71
+ */
72
+ export type StateTransitionsRangeCustomState = StateTransitionsBaseCustomState & {
73
+ /**
74
+ * Value used for comparison against message data for state detection
75
+ */
76
+ value?: number;
77
+ operator: StateTransitionsRangeCustomStateOperator;
78
+ };
79
+ /**
80
+ * A discrete state customization strategy
81
+ *
82
+ * This interface was referenced by `Layout`'s JSON-Schema
83
+ * via the `definition` "StateTransitionsDiscreteCustomState".
84
+ */
85
+ export type StateTransitionsDiscreteCustomState = StateTransitionsBaseCustomState & {
86
+ /**
87
+ * Value used for comparison against message data for state detection. The comparison is done using the '=' operator.
88
+ */
89
+ value: string;
90
+ };
91
+ /**
92
+ * State customization strategy
93
+ *
94
+ * This interface was referenced by `Layout`'s JSON-Schema
95
+ * via the `definition` "StateTransitionsCustomStates".
96
+ */
97
+ export type StateTransitionsCustomStates = StateTransitionsRangeCustomStates | StateTransitionsDiscreteCustomStates;
98
+ /**
99
+ * Timestamp used for message ordering
100
+ * - receiveTime: standard timestamp used for playback message ordering across the app
101
+ * - customField: any field within the message data containing sec and nsec integers
102
+ * - headerStamp: header.stamp ROS 1 or ROS 2 field containing sec and nsec integers (and special case of 'custom field')
103
+ * - publishTime: optional MCAP-specific field
104
+ *
105
+ * This interface was referenced by `Layout`'s JSON-Schema
106
+ * via the `definition` "StateTransitionsTimestampMethod".
107
+ */
108
+ export type StateTransitionsTimestampMethod = "receiveTime" | "publishTime" | "headerStamp" | "customField";
109
+ /**
110
+ * Position of the playback bar in the view
111
+ *
112
+ * This interface was referenced by `Layout`'s JSON-Schema
113
+ * via the `definition` "StateTransitionsPlaybackBarPosition".
114
+ */
115
+ export type StateTransitionsPlaybackBarPosition = "center" | "right";
116
+ /**
117
+ * Configure a sliding or fixed range of time.
118
+ * - Automatic: Last 30 seconds for live data, or the full time range for recorded data
119
+ * - Sliding: Specify a sliding time window that follows the current playback time
120
+ * - Fixed: Set fixed min and max values
121
+ *
122
+ * This interface was referenced by `Layout`'s JSON-Schema
123
+ * via the `definition` "StateTransitionsTimeWindowMode".
124
+ */
125
+ export type StateTransitionsTimeWindowMode = "automatic" | "sliding" | "fixed";
126
+ /**
127
+ * Track when values change over time.
128
+ *
129
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/state-transitions).
130
+ *
131
+ * This interface was referenced by `Layout`'s JSON-Schema
132
+ * via the `definition` "StateTransitionsPanel".
133
+ */
134
+ export type StateTransitionsPanel = BasePanel & {
135
+ panelType: "StateTransitions";
136
+ config: StateTransitionsConfig;
137
+ /**
138
+ * The title of the panel.
139
+ */
140
+ title?: string;
141
+ /**
142
+ * The version of the panel config schema.
143
+ */
144
+ version: 1;
145
+ };
146
+ /**
147
+ * Plot numerical values over time or other values.
148
+ *
149
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/plot).
150
+ *
151
+ * This interface was referenced by `Layout`'s JSON-Schema
152
+ * via the `definition` "PlotPanel".
153
+ */
154
+ export type PlotPanel = BasePanel & {
155
+ panelType: "Plot";
156
+ config: PlotConfig;
157
+ /**
158
+ * The title of the panel.
159
+ */
160
+ title?: string;
161
+ /**
162
+ * The version of the panel config schema.
163
+ */
164
+ version: 1;
165
+ };
166
+ /**
167
+ * Display the transform tree.
168
+ *
169
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/tf-tree).
170
+ *
171
+ * This interface was referenced by `Layout`'s JSON-Schema
172
+ * via the `definition` "TransformTreePanel".
173
+ */
174
+ export type TransformTreePanel = BasePanel & {
175
+ panelType: "TransformTree";
176
+ /**
177
+ * The version of the panel config schema.
178
+ */
179
+ version: 1;
180
+ };
181
+ /**
182
+ * The direction to use as "up" when loading meshes without orientation info (e.g. STL, OBJ)
183
+ *
184
+ * This interface was referenced by `Layout`'s JSON-Schema
185
+ * via the `definition` "BaseRendererMeshUpAxis".
186
+ */
187
+ export type BaseRendererMeshUpAxis = "y_up" | "z_up";
188
+ /**
189
+ * This interface was referenced by `Layout`'s JSON-Schema
190
+ * via the `definition` "BaseRendererLayerSettingsTransform".
191
+ */
192
+ export type BaseRendererLayerSettingsTransform = BaseRendererBaseSettings & {
193
+ /**
194
+ * @minItems 3
195
+ * @maxItems 3
196
+ */
197
+ xyzOffset?: [number, number, number];
198
+ /**
199
+ * @minItems 3
200
+ * @maxItems 3
201
+ */
202
+ rpyCoefficient?: [number, number, number];
203
+ };
204
+ /**
205
+ * This interface was referenced by `Layout`'s JSON-Schema
206
+ * via the `definition` "BaseRendererCustomLayerSettings".
207
+ */
208
+ export type BaseRendererCustomLayerSettings = BaseRendererBaseSettings & {
209
+ /**
210
+ * An identifier for a unique instance of a layer.
211
+ */
212
+ instanceId?: string;
213
+ /**
214
+ * An identifier for a type of layer, such as `"foxglove.Grid"`.
215
+ */
216
+ layerId?: string;
217
+ /**
218
+ * The label to use for this layer in the settings tree, under "Custom Layers".
219
+ */
220
+ label?: string;
221
+ /**
222
+ * Optional value specifying order in the custom layer list
223
+ */
224
+ order?: number;
225
+ };
226
+ /**
227
+ * Viewport following behavior during playback: fixed, or the pose or position of the display frame
228
+ *
229
+ * This interface was referenced by `Layout`'s JSON-Schema
230
+ * via the `definition` "ThreeDeeFollowMode".
231
+ */
232
+ export type ThreeDeeFollowMode = "follow-pose" | "follow-position" | "follow-none";
233
+ /**
234
+ * This interface was referenced by `Layout`'s JSON-Schema
235
+ * via the `definition` "ThreeDeePublishClickType".
236
+ */
237
+ export type ThreeDeePublishClickType = "pose_estimate" | "pose" | "point";
238
+ /**
239
+ * Configuration for the 3D panel
240
+ *
241
+ * This interface was referenced by `Layout`'s JSON-Schema
242
+ * via the `definition` "ThreeDeeConfig".
243
+ */
244
+ export type ThreeDeeConfig = BaseRendererConfig & {
245
+ cameraState?: ThreeDeeCameraState;
246
+ /**
247
+ * Coordinate frame that the scene is rendered relative to. The camera position and orientation will be relative to the origin of this frame.
248
+ */
249
+ followTf?: string;
250
+ /**
251
+ * The stationary world reference relative to which all other objects in the scene are located. Elements that accumulate over time (for example, point clouds) are stored and displayed in this frame, and in 2D mode the camera faces this frame's x-y plane.
252
+ */
253
+ fixedFrame?: string;
254
+ followMode?: ThreeDeeFollowMode;
255
+ /**
256
+ * Topic containing location fix data associated with a frame in the scene. Auto will use the first available topic.
257
+ */
258
+ locationFixTopic?: string;
259
+ /**
260
+ * Defines the East-North-Up orientation of the scene. Maps and location fixes will be aligned relative to the XY plane of this frame.
261
+ */
262
+ enuFrameId?: string;
263
+ publish?: ThreeDeePublishSettings;
264
+ /**
265
+ * instanceId -> settings
266
+ */
267
+ panelOverlays?: {
268
+ [k: string]: ThreeDeeOverlaySettings;
269
+ };
270
+ };
271
+ /**
272
+ * Display markers, camera images, meshes, URDFs, and more in a 3D scene.
273
+ *
274
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/3d).
275
+ *
276
+ * This interface was referenced by `Layout`'s JSON-Schema
277
+ * via the `definition` "ThreeDeePanel".
278
+ */
279
+ export type ThreeDeePanel = BasePanel & {
280
+ panelType: "ThreeDee";
281
+ config: ThreeDeeConfig;
282
+ /**
283
+ * The title of the panel.
284
+ */
285
+ title?: string;
286
+ /**
287
+ * The version of the panel config schema.
288
+ */
289
+ version: 1;
290
+ };
291
+ /**
292
+ * Configuration for the image panel.
293
+ *
294
+ * This interface was referenced by `Layout`'s JSON-Schema
295
+ * via the `definition` "ImageConfig".
296
+ */
297
+ export type ImageConfig = BaseRendererConfig & {
298
+ imageMode?: ImageModeConfig;
299
+ };
300
+ /**
301
+ * Display annotated images.
302
+ *
303
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/image).
304
+ *
305
+ * This interface was referenced by `Layout`'s JSON-Schema
306
+ * via the `definition` "ImagePanel".
307
+ */
308
+ export type ImagePanel = BasePanel & {
309
+ panelType: "Image";
310
+ config: ImageConfig;
311
+ /**
312
+ * The title of the panel.
313
+ */
314
+ title?: string;
315
+ /**
316
+ * The version of the panel config schema.
317
+ */
318
+ version: 1;
319
+ };
320
+ /**
321
+ * Play audio streams.
322
+ *
323
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/audio).
324
+ *
325
+ * This interface was referenced by `Layout`'s JSON-Schema
326
+ * via the `definition` "AudioPanel".
327
+ */
328
+ export type AudioPanel = BasePanel & {
329
+ panelType: "Audio";
330
+ config: AudioConfig;
331
+ /**
332
+ * The title of the panel.
333
+ */
334
+ title?: string;
335
+ /**
336
+ * The version of the panel config schema.
337
+ */
338
+ version: 1;
339
+ };
340
+ /**
341
+ * Display a summary of all ROS DiagnosticArray messages.
342
+ *
343
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/diagnostics).
344
+ *
345
+ * This interface was referenced by `Layout`'s JSON-Schema
346
+ * via the `definition` "DiagnosticsSummaryPanel".
347
+ */
348
+ export type DiagnosticsSummaryPanel = BasePanel & {
349
+ panelType: "DiagnosticsSummary";
350
+ config: DiagnosticsSummaryConfig;
351
+ /**
352
+ * The title of the panel.
353
+ */
354
+ title?: string;
355
+ /**
356
+ * The version of the panel config schema.
357
+ */
358
+ version: 1;
359
+ };
360
+ /**
361
+ * Display ROS DiagnosticArray messages for a specific hardware_id.
362
+ *
363
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/diagnostics).
364
+ *
365
+ * This interface was referenced by `Layout`'s JSON-Schema
366
+ * via the `definition` "DiagnosticsDetailPanel".
367
+ */
368
+ export type DiagnosticsDetailPanel = BasePanel & {
369
+ panelType: "DiagnosticsDetail";
370
+ config: DiagnosticsDetailConfig;
371
+ /**
372
+ * The title of the panel.
373
+ */
374
+ title?: string;
375
+ /**
376
+ * The version of the panel config schema.
377
+ */
378
+ version: 1;
379
+ };
380
+ /**
381
+ * Display a colored and/or textual indicator based on a threshold value.
382
+ *
383
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/indicator).
384
+ *
385
+ * This interface was referenced by `Layout`'s JSON-Schema
386
+ * via the `definition` "IndicatorPanel".
387
+ */
388
+ export type IndicatorPanel = BasePanel & {
389
+ panelType: "Indicator";
390
+ config: IndicatorConfig;
391
+ /**
392
+ * The title of the panel.
393
+ */
394
+ title?: string;
395
+ /**
396
+ * The version of the panel config schema.
397
+ */
398
+ version: 1;
399
+ };
400
+ /**
401
+ * Display a colored gauge based on a continuous value.
402
+ *
403
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/gauge).
404
+ *
405
+ * This interface was referenced by `Layout`'s JSON-Schema
406
+ * via the `definition` "GaugePanel".
407
+ */
408
+ export type GaugePanel = BasePanel & {
409
+ panelType: "Gauge";
410
+ config: GaugeConfig;
411
+ /**
412
+ * The title of the panel.
413
+ */
414
+ title?: string;
415
+ /**
416
+ * The version of the panel config schema.
417
+ */
418
+ version: 1;
419
+ };
420
+ /**
421
+ * Teleoperate a robot over a live connection.
422
+ *
423
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/teleop).
424
+ *
425
+ * This interface was referenced by `Layout`'s JSON-Schema
426
+ * via the `definition` "TeleopPanel".
427
+ */
428
+ export type TeleopPanel = BasePanel & {
429
+ panelType: "Teleop";
430
+ config: TeleopConfig;
431
+ /**
432
+ * The title of the panel.
433
+ */
434
+ title?: string;
435
+ /**
436
+ * The version of the panel config schema.
437
+ */
438
+ version: 1;
439
+ };
440
+ /**
441
+ * Display points on a map.
442
+ *
443
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/map).
444
+ *
445
+ * This interface was referenced by `Layout`'s JSON-Schema
446
+ * via the `definition` "MapPanel".
447
+ */
448
+ export type MapPanel = BasePanel & {
449
+ panelType: "Map";
450
+ config: MapConfig;
451
+ /**
452
+ * The title of the panel.
453
+ */
454
+ title?: string;
455
+ /**
456
+ * The version of the panel config schema.
457
+ */
458
+ version: 1;
459
+ };
460
+ /**
461
+ * Read and set parameters for a data source.
462
+ *
463
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/parameters).
464
+ *
465
+ * This interface was referenced by `Layout`'s JSON-Schema
466
+ * via the `definition` "ParametersPanel".
467
+ */
468
+ export type ParametersPanel = BasePanel & {
469
+ panelType: "Parameters";
470
+ /**
471
+ * The version of the panel config schema.
472
+ */
473
+ version: 1;
474
+ };
475
+ /**
476
+ * Publish messages to the data source (live connections only).
477
+ *
478
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/publish).
479
+ *
480
+ * This interface was referenced by `Layout`'s JSON-Schema
481
+ * via the `definition` "PublishPanel".
482
+ */
483
+ export type PublishPanel = BasePanel & {
484
+ panelType: "Publish";
485
+ config: PublishConfig;
486
+ /**
487
+ * The title of the panel.
488
+ */
489
+ title?: string;
490
+ /**
491
+ * The version of the panel config schema.
492
+ */
493
+ version: 1;
494
+ };
495
+ /**
496
+ * Call a service and view the service call result.
497
+ *
498
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/service-call).
499
+ *
500
+ * This interface was referenced by `Layout`'s JSON-Schema
501
+ * via the `definition` "ServiceCallPanel".
502
+ */
503
+ export type ServiceCallPanel = BasePanel & {
504
+ panelType: "ServiceCall";
505
+ config: ServiceCallConfig;
506
+ /**
507
+ * The title of the panel.
508
+ */
509
+ title?: string;
510
+ /**
511
+ * The version of the panel config schema.
512
+ */
513
+ version: 1;
514
+ };
515
+ /**
516
+ * Inspect topic messages.
517
+ *
518
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/raw-messages).
519
+ *
520
+ * This interface was referenced by `Layout`'s JSON-Schema
521
+ * via the `definition` "RawMessagesPanel".
522
+ */
523
+ export type RawMessagesPanel = BasePanel & {
524
+ panelType: "RawMessages";
525
+ config: RawMessagesConfig;
526
+ /**
527
+ * The version of the panel config schema.
528
+ */
529
+ version: 1;
530
+ };
531
+ /**
532
+ * Display logs by node and severity level.
533
+ *
534
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/log).
535
+ *
536
+ * This interface was referenced by `Layout`'s JSON-Schema
537
+ * via the `definition` "LogPanel".
538
+ */
539
+ export type LogPanel = BasePanel & {
540
+ panelType: "Log";
541
+ config: LogConfig;
542
+ /**
543
+ * The title of the panel.
544
+ */
545
+ title?: string;
546
+ /**
547
+ * The version of the panel config schema.
548
+ */
549
+ version: 1;
550
+ };
551
+ /**
552
+ * Display topic messages in a tabular format.
553
+ *
554
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/table).
555
+ *
556
+ * This interface was referenced by `Layout`'s JSON-Schema
557
+ * via the `definition` "TablePanel".
558
+ */
559
+ export type TablePanel = BasePanel & {
560
+ panelType: "Table";
561
+ config: TableConfig;
562
+ /**
563
+ * The version of the panel config schema.
564
+ */
565
+ version: 1;
566
+ };
567
+ /**
568
+ * Display a graph of active nodes, topics, and services.
569
+ *
570
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/topic-graph).
571
+ *
572
+ * This interface was referenced by `Layout`'s JSON-Schema
573
+ * via the `definition` "TopicGraphPanel".
574
+ */
575
+ export type TopicGraphPanel = BasePanel & {
576
+ panelType: "TopicGraph";
577
+ /**
578
+ * The version of the panel config schema.
579
+ */
580
+ version: 1;
581
+ };
582
+ /**
583
+ * View details like topics and timestamps for the current data source.
584
+ *
585
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/data-source-info).
586
+ *
587
+ * This interface was referenced by `Layout`'s JSON-Schema
588
+ * via the `definition` "DataSourceInfoPanel".
589
+ */
590
+ export type DataSourceInfoPanel = BasePanel & {
591
+ panelType: "DataSourceInfo";
592
+ /**
593
+ * The version of the panel config schema.
594
+ */
595
+ version: 1;
596
+ };
597
+ /**
598
+ * Update numerical variable values for a layout.
599
+ *
600
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/variable-slider).
601
+ *
602
+ * This interface was referenced by `Layout`'s JSON-Schema
603
+ * via the `definition` "VariableSliderPanel".
604
+ */
605
+ export type VariableSliderPanel = BasePanel & {
606
+ panelType: "VariableSlider";
607
+ config: VariableSliderConfig;
608
+ /**
609
+ * The title of the panel.
610
+ */
611
+ title?: string;
612
+ /**
613
+ * The version of the panel config schema.
614
+ */
615
+ version: 1;
616
+ };
617
+ /**
618
+ * Write custom data transformations in TypeScript.
619
+ *
620
+ * For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/user-scripts).
621
+ *
622
+ * This interface was referenced by `Layout`'s JSON-Schema
623
+ * via the `definition` "UserScriptsPanel".
624
+ */
625
+ export type UserScriptsPanel = BasePanel & {
626
+ panelType: "UserScripts";
627
+ config: UserScriptsConfig;
628
+ /**
629
+ * The title of the panel.
630
+ */
631
+ title?: string;
632
+ /**
633
+ * The version of the panel config schema.
634
+ */
635
+ version: 1;
636
+ };
637
+
638
+ /**
639
+ * A Foxglove layout, which describes the arrangement of panels and their configuration.
640
+ */
641
+ export type Layout = {
642
+ /**
643
+ * The version of the Layout schema used to create this layout. This is used to ensure backwards compatibility with previous versions of the schema.
644
+ */
645
+ version: 1;
646
+ variables?: Variables;
647
+ userScripts?: UserScripts;
648
+ content: Content;
649
+ }
650
+ /**
651
+ * A dictionary of variable values available in panels, message paths, user scripts, and extensions.
652
+ *
653
+ * This interface was referenced by `Layout`'s JSON-Schema
654
+ * via the `definition` "Variables".
655
+ */
656
+ export type Variables = {
657
+ [k: string]: VariableValue;
658
+ }
659
+ /**
660
+ * A dictionary of user scripts available in the layout, indexed by their ID.
661
+ *
662
+ * This interface was referenced by `Layout`'s JSON-Schema
663
+ * via the `definition` "UserScripts".
664
+ */
665
+ export type UserScripts = {
666
+ [k: string]: UserScript;
667
+ }
668
+ /**
669
+ * This interface was referenced by `Layout`'s JSON-Schema
670
+ * via the `definition` "UserScript".
671
+ */
672
+ export type UserScript = {
673
+ /**
674
+ * The name of the user script.
675
+ */
676
+ name: string;
677
+ /**
678
+ * The source code of the user script.
679
+ */
680
+ sourceCode: string;
681
+ }
682
+ /**
683
+ * The base panel schema for all panels; defines the minimum required properties for all panels.
684
+ *
685
+ * This interface was referenced by `Layout`'s JSON-Schema
686
+ * via the `definition` "BasePanel".
687
+ */
688
+ export type BasePanel = {
689
+ type: "panel";
690
+ /**
691
+ * A unique identifier for the panel type.
692
+ */
693
+ panelType: string;
694
+ config?: unknown;
695
+ title?: unknown;
696
+ /**
697
+ * The version of the panel config schema.
698
+ */
699
+ version: number;
700
+ }
701
+ /**
702
+ * A container for quickly switching between different groups of panels using a tab bar.
703
+ *
704
+ * This interface was referenced by `Layout`'s JSON-Schema
705
+ * via the `definition` "Tabs".
706
+ */
707
+ export type Tabs = {
708
+ type: "tabs";
709
+ /**
710
+ * The 0-based index of the tab that is selected. Defaults to 0.
711
+ */
712
+ selectedTabIndex?: number;
713
+ /**
714
+ * The tabs to display in the container.
715
+ */
716
+ tabs: Tab[];
717
+ }
718
+ /**
719
+ * A tab in a tabs container.
720
+ *
721
+ * This interface was referenced by `Layout`'s JSON-Schema
722
+ * via the `definition` "Tab".
723
+ */
724
+ export type Tab = {
725
+ /**
726
+ * The title of the tab.
727
+ */
728
+ title: string;
729
+ content: Content;
730
+ }
731
+ /**
732
+ * A container for a vertically-scrollable stack of panels.
733
+ *
734
+ * This interface was referenced by `Layout`'s JSON-Schema
735
+ * via the `definition` "Stack".
736
+ */
737
+ export type Stack = {
738
+ type: "stack";
739
+ /**
740
+ * The panels to display in the stack.
741
+ */
742
+ panels: StackItem[];
743
+ /**
744
+ * The title of the stack.
745
+ */
746
+ title?: string;
747
+ }
748
+ /**
749
+ * An item in the stack, includes the panel and the height of the item.
750
+ *
751
+ * This interface was referenced by `Layout`'s JSON-Schema
752
+ * via the `definition` "StackItem".
753
+ */
754
+ export type StackItem = {
755
+ panel: BasePanel;
756
+ /**
757
+ * Size is a number greater than 0 that represents a proportion of the height of the stack container; e.g., 0.5 is 50% of the height of the stack container, and 1 is 100% of the height of it.
758
+ */
759
+ size: number;
760
+ }
761
+ /**
762
+ * A sequence of items displayed in a vertical or horizontal direction. Items are placed one next to the other (or one above the other for vertical direction), with space allocated according to their ratios.
763
+ *
764
+ * This interface was referenced by `Layout`'s JSON-Schema
765
+ * via the `definition` "Split".
766
+ */
767
+ export type Split = {
768
+ type: "split";
769
+ /**
770
+ * The direction in which items are displayed in the list. Defaults to horizontal.
771
+ */
772
+ direction: "vertical" | "horizontal";
773
+ /**
774
+ * The items to display in the split container.
775
+ *
776
+ * @minItems 1
777
+ */
778
+ items: [SplitItem, ...SplitItem[]];
779
+ }
780
+ /**
781
+ * An item in a layout with a ratio for space allocation.
782
+ *
783
+ * The ratio determines the proportion of space this item takes up. The direction of the Split container determines whether the ratio applies to width (horizontal) or height (vertical).
784
+ * For example, if a split has 3 items with ratios 1, 2, and 3, the first item takes 1/6 of the space,
785
+ * the second item takes 2/6, and the third item takes 3/6.
786
+ *
787
+ * This interface was referenced by `Layout`'s JSON-Schema
788
+ * via the `definition` "SplitItem".
789
+ */
790
+ export type SplitItem = {
791
+ /**
792
+ * Proportion of space this item occupies relative to other items in the split. The actual space allocated is calculated by dividing this item's ratio by the sum of all ratios in the split. The ratio must be greater than 0.
793
+ */
794
+ ratio: number;
795
+ content: Content;
796
+ }
797
+ /**
798
+ * This interface was referenced by `Layout`'s JSON-Schema
799
+ * via the `definition` "MarkdownConfig".
800
+ */
801
+ export type MarkdownConfig = {
802
+ /**
803
+ * Sets the base font size for the Markdown renderer.
804
+ */
805
+ fontSize?: number;
806
+ /**
807
+ * The markdown content to display.
808
+ */
809
+ markdown?: string;
810
+ }
811
+ /**
812
+ * A dictionary of configuration properties for the panel.
813
+ *
814
+ * This interface was referenced by `Layout`'s JSON-Schema
815
+ * via the `definition` "PanelConfig".
816
+ */
817
+ export type PanelConfig = {
818
+ [k: string]: unknown;
819
+ }
820
+ /**
821
+ * Display options for a discrete or continuous custom state
822
+ *
823
+ * This interface was referenced by `Layout`'s JSON-Schema
824
+ * via the `definition` "StateTransitionsBaseCustomState".
825
+ */
826
+ export type StateTransitionsBaseCustomState = {
827
+ label?: string;
828
+ color?: string;
829
+ }
830
+ /**
831
+ * Range state customization strategy.
832
+ *
833
+ * This interface was referenced by `Layout`'s JSON-Schema
834
+ * via the `definition` "StateTransitionsRangeCustomStates".
835
+ */
836
+ export type StateTransitionsRangeCustomStates = {
837
+ type: "range";
838
+ /**
839
+ * The list of range states to display in the panel.
840
+ */
841
+ states: StateTransitionsRangeCustomState[];
842
+ otherwise: StateTransitionsBaseCustomState;
843
+ }
844
+ /**
845
+ * Discrete state customization strategy
846
+ *
847
+ * This interface was referenced by `Layout`'s JSON-Schema
848
+ * via the `definition` "StateTransitionsDiscreteCustomStates".
849
+ */
850
+ export type StateTransitionsDiscreteCustomStates = {
851
+ type: "discrete";
852
+ /**
853
+ * The list of discrete states to display in the panel.
854
+ */
855
+ states: StateTransitionsDiscreteCustomState[];
856
+ }
857
+ /**
858
+ * A series to display in the panel.
859
+ *
860
+ * This interface was referenced by `Layout`'s JSON-Schema
861
+ * via the `definition` "StateTransitionsSeries".
862
+ */
863
+ export type StateTransitionsSeries = {
864
+ /**
865
+ * Message path containing values for the series
866
+ */
867
+ value: string;
868
+ /**
869
+ * Label displayed in the legend for the series
870
+ */
871
+ label?: string;
872
+ /**
873
+ * Whether the series is enabled. If disabled, the series will not be displayed in the panel.
874
+ */
875
+ enabled?: boolean;
876
+ timestampMethod: StateTransitionsTimestampMethod;
877
+ /**
878
+ * Message path containing a timestamp field on the same topic as the y-value path
879
+ */
880
+ timestampPath?: string;
881
+ customStates?: StateTransitionsCustomStates;
882
+ }
883
+ /**
884
+ * Configuration for the State Transitions panel.
885
+ *
886
+ * This interface was referenced by `Layout`'s JSON-Schema
887
+ * via the `definition` "StateTransitionsConfig".
888
+ */
889
+ export type StateTransitionsConfig = {
890
+ /**
891
+ * The list of series to display in the panel.
892
+ */
893
+ paths: StateTransitionsSeries[];
894
+ /**
895
+ * Sync zooming and panning with other plots
896
+ */
897
+ isSynced: boolean;
898
+ /**
899
+ * Minimum time value to display (in seconds)
900
+ */
901
+ xAxisMaxValue?: number;
902
+ /**
903
+ * Maximum time value to display (in seconds)
904
+ */
905
+ xAxisMinValue?: number;
906
+ /**
907
+ * Time range in seconds
908
+ */
909
+ xAxisRange?: number;
910
+ /**
911
+ * Label displayed along the time axis
912
+ */
913
+ xAxisLabel?: string;
914
+ timeWindowMode?: StateTransitionsTimeWindowMode;
915
+ playbackBarPosition?: StateTransitionsPlaybackBarPosition;
916
+ /**
917
+ * Show a point for each incoming message
918
+ */
919
+ showPoints?: boolean;
920
+ }
921
+ /**
922
+ * This interface was referenced by `Layout`'s JSON-Schema
923
+ * via the `definition` "PlotSeries".
924
+ */
925
+ export type PlotSeries = {
926
+ /**
927
+ * Message path containing y-axis values for the series
928
+ */
929
+ value: string;
930
+ /**
931
+ * Whether the series is enabled. If disabled, the series will not be displayed in the panel.
932
+ */
933
+ enabled: boolean;
934
+ /**
935
+ * A unique identifier for the series.
936
+ */
937
+ id?: string;
938
+ /**
939
+ * Color used to plot the series
940
+ */
941
+ color?: string;
942
+ /**
943
+ * Label displayed for the series in the legend
944
+ */
945
+ label?: string;
946
+ /**
947
+ * For Timestamp plots, set which source of time information is used for message ordering:
948
+ * - receiveTime is the standard timestamp used for playback message ordering across the app. For live connections, this is when the message was received; for recorded files, this is when the message was originally recorded
949
+ * - customField is a message path which can point to any field within the message data containing sec and nsec integers
950
+ * - headerStamp is a header.stamp ROS 1 or ROS 2 field containing sec and nsec integers (and special case of 'custom field', above). This typically represents when sensor data was captured
951
+ * - publishTime is an optional MCAP-specific field representing when the event occured
952
+ */
953
+ timestampMethod: "receiveTime" | "publishTime" | "headerStamp" | "customField";
954
+ /**
955
+ * Message path containing a timestamp field on the same topic as the y-value path
956
+ */
957
+ timestampPath?: string;
958
+ /**
959
+ * Show line connecting data points. (Not applicable to reference lines.)
960
+ */
961
+ showLine?: boolean;
962
+ /**
963
+ * Width of line connecting data points
964
+ */
965
+ lineSize?: number;
966
+ /**
967
+ * For Message path plots: message path containing x-axis values for the series. Overrides default x-axis values if set.
968
+ */
969
+ xValuePath?: string;
970
+ }
971
+ /**
972
+ * For path-based values: the message path containing default x-axis values for the series. You can also set these individually for each series.
973
+ *
974
+ * This interface was referenced by `Layout`'s JSON-Schema
975
+ * via the `definition` "PlotXAxisPath".
976
+ */
977
+ export type PlotXAxisPath = {
978
+ /**
979
+ * Message path containing y-axis values for the series
980
+ */
981
+ value: string;
982
+ /**
983
+ * Whether the series is enabled. If disabled, the series will not be displayed in the panel.
984
+ */
985
+ enabled: boolean;
986
+ }
987
+ /**
988
+ * Configuration for the Plot panel.
989
+ *
990
+ * This interface was referenced by `Layout`'s JSON-Schema
991
+ * via the `definition` "PlotConfig".
992
+ */
993
+ export type PlotConfig = {
994
+ /**
995
+ * The list of series to display in the panel.
996
+ */
997
+ paths: PlotSeries[];
998
+ /**
999
+ * For Fixed time window: min value in seconds
1000
+ */
1001
+ minXValue?: number;
1002
+ /**
1003
+ * For Fixed time window: max value in seconds
1004
+ */
1005
+ maxXValue?: number;
1006
+ /**
1007
+ * Fixed minimum value for y-axis
1008
+ */
1009
+ minYValue?: string | number;
1010
+ /**
1011
+ * Fixed maximum value for y-axis
1012
+ */
1013
+ maxYValue?: string | number;
1014
+ /**
1015
+ * Display the legend
1016
+ */
1017
+ showLegend: boolean;
1018
+ /**
1019
+ * Position of the legend in relation to the chart
1020
+ */
1021
+ legendDisplay: "floating" | "top" | "left";
1022
+ /**
1023
+ * Show the corresponding y value next to each series in the legend (either at the current playback time or at a point on user hover)
1024
+ */
1025
+ showPlotValuesInLegend: boolean;
1026
+ /**
1027
+ * Whether or not to display numeric values for x-axis tick marks
1028
+ */
1029
+ showXAxisLabels: boolean;
1030
+ /**
1031
+ * Whether or not to display numeric values for y-axis tick marks
1032
+ */
1033
+ showYAxisLabels: boolean;
1034
+ /**
1035
+ * For Timestamp plots: Sync timeline to other Plot and State Transitions panels.
1036
+ */
1037
+ isSynced: boolean;
1038
+ /**
1039
+ * Type and source of data for values plotted on the x-axis:
1040
+ * - Timestamp: x-values for time series data
1041
+ * - Message path: numeric message fields for XY plots
1042
+ * - Array index: integer indices of an array in the latest message
1043
+ */
1044
+ xAxisVal: "timestamp" | "index" | "custom" | "currentCustom";
1045
+ /**
1046
+ * For Message path plots:
1047
+ * - All shows data from the full time range
1048
+ * - Latest shows data from the most recent message.
1049
+ */
1050
+ timeRange?: "all" | "latest";
1051
+ xAxisPath?: PlotXAxisPath;
1052
+ /**
1053
+ * Label displayed for the x-axis
1054
+ */
1055
+ xAxisLabel?: string;
1056
+ /**
1057
+ * For Timestamp plots:
1058
+ * - Automatic Last 30 seconds for live data, or the full time range for recorded data
1059
+ * - Sliding Specify a sliding time window that follows the current playback time
1060
+ * - Fixed Set fixed min and max values for the time axis
1061
+ */
1062
+ timeWindowMode?: "automatic" | "sliding" | "fixed";
1063
+ /**
1064
+ * For Sliding time window: either at the center or the right edge
1065
+ */
1066
+ playbackBarPosition?: "center" | "right";
1067
+ /**
1068
+ * Label displayed for the y-axis
1069
+ */
1070
+ yAxisLabel?: string;
1071
+ /**
1072
+ * For Sliding time window: range of time in seconds
1073
+ */
1074
+ followingViewWidth?: number;
1075
+ /**
1076
+ * Size of the legend in pixels, when the legend position is Left or Top
1077
+ */
1078
+ sidebarDimension: number;
1079
+ /**
1080
+ * For Message path plots:
1081
+ * - Independent (the default) lets you configure min and max values for the scales independently.
1082
+ * - 1:1 is useful for when axes have the same units, and will keep the scales locked together. It hides the min/max axis settings and always zooms both axes simultaneously.
1083
+ */
1084
+ axisScalesMode?: "independent" | "lockedScales";
1085
+ }
1086
+ /**
1087
+ * This interface was referenced by `Layout`'s JSON-Schema
1088
+ * via the `definition` "BaseRendererBaseSettings".
1089
+ */
1090
+ export type BaseRendererBaseSettings = {
1091
+ /**
1092
+ * true means the grid is rendered before the rest of the scene, so it appears behind other scene elements regardless of their relative depth. false means the grid is rendered normally.
1093
+ */
1094
+ drawBehind?: boolean;
1095
+ /**
1096
+ * Whether this renderable should be displayed in the scene.
1097
+ */
1098
+ visible?: boolean;
1099
+ /**
1100
+ * true means the grid is locked to the frame specified by its frame_id, and will move as that frame's transforms change. false means the grid is relative to the fixed frame and will not move after it is first displayed.
1101
+ */
1102
+ frameLocked?: boolean;
1103
+ }
1104
+ /**
1105
+ * Scene settings for the currently rendering scene
1106
+ *
1107
+ * This interface was referenced by `Layout`'s JSON-Schema
1108
+ * via the `definition` "BaseRendererSceneSettings".
1109
+ */
1110
+ export type BaseRendererSceneSettings = {
1111
+ /**
1112
+ * Display rendering performance statistics in panel
1113
+ */
1114
+ enableStats?: boolean;
1115
+ /**
1116
+ * Background color of the scene
1117
+ */
1118
+ backgroundColor?: string;
1119
+ /**
1120
+ * Scale factor to apply to all rendered labels
1121
+ */
1122
+ labelScaleFactor?: number;
1123
+ /**
1124
+ * Match the behavior of RViz by ignoring the <up_axis> tag in COLLADA files
1125
+ */
1126
+ ignoreColladaUpAxis?: boolean;
1127
+ meshUpAxis?: BaseRendererMeshUpAxis;
1128
+ transforms?: BaseRendererTransforms;
1129
+ /**
1130
+ * Sync the camera with other panels that also have this setting enabled
1131
+ */
1132
+ syncCamera?: boolean;
1133
+ }
1134
+ /**
1135
+ * Transform settings for the currently rendering scene
1136
+ *
1137
+ * This interface was referenced by `Layout`'s JSON-Schema
1138
+ * via the `definition` "BaseRendererTransforms".
1139
+ */
1140
+ export type BaseRendererTransforms = {
1141
+ /**
1142
+ * Toggle visibility of all frames
1143
+ */
1144
+ visible?: boolean;
1145
+ /**
1146
+ * Toggle translation and rotation offset controls for frames
1147
+ */
1148
+ editable?: boolean;
1149
+ /**
1150
+ * Toggle visibility of frame axis labels
1151
+ */
1152
+ showLabel?: boolean;
1153
+ /**
1154
+ * Size of frame axis labels
1155
+ */
1156
+ labelSize?: number;
1157
+ /**
1158
+ * Size of coordinate frame axes
1159
+ */
1160
+ axisSize?: number;
1161
+ /**
1162
+ * Width of the connecting line between child and parent frames
1163
+ */
1164
+ lineWidth?: number;
1165
+ /**
1166
+ * Color of the connecting line between child and parent frames
1167
+ */
1168
+ lineColor?: string;
1169
+ /**
1170
+ * Enable transform preloading
1171
+ */
1172
+ enablePreloading?: boolean;
1173
+ /**
1174
+ * Whether to draw the frames behind the rest of the scene
1175
+ */
1176
+ drawBehind?: boolean;
1177
+ }
1178
+ /**
1179
+ * Base configuration for the 3D and Image panels
1180
+ *
1181
+ * This interface was referenced by `Layout`'s JSON-Schema
1182
+ * via the `definition` "BaseRendererConfig".
1183
+ */
1184
+ export type BaseRendererConfig = {
1185
+ scene?: BaseRendererSceneSettings;
1186
+ /**
1187
+ * frameId -> settings
1188
+ */
1189
+ transforms?: {
1190
+ [k: string]: BaseRendererLayerSettingsTransform;
1191
+ };
1192
+ /**
1193
+ * Settings for layers in the scene, indexed by instanceId.
1194
+ */
1195
+ layers?: {
1196
+ [k: string]: BaseRendererCustomLayerSettings;
1197
+ };
1198
+ /**
1199
+ * Settings for topics, indexed by topicName
1200
+ */
1201
+ topics?: {
1202
+ [k: string]: BaseRendererBaseSettings;
1203
+ };
1204
+ }
1205
+ /**
1206
+ * Camera settings for the currently rendering scene
1207
+ *
1208
+ * This interface was referenced by `Layout`'s JSON-Schema
1209
+ * via the `definition` "ThreeDeeCameraState".
1210
+ */
1211
+ export type ThreeDeeCameraState = {
1212
+ /**
1213
+ * Camera distance from the origin of the display frame
1214
+ */
1215
+ distance?: number;
1216
+ /**
1217
+ * Toggles between 3D and 2D views of the scene. The 2D view looks down the z-axis of the fixed frame and flattens the scene against its x-y plane.
1218
+ */
1219
+ perspective?: boolean;
1220
+ /**
1221
+ * Polar angle offset from the origin of the display frame in degrees
1222
+ */
1223
+ phi?: number;
1224
+ /**
1225
+ * @minItems 3
1226
+ * @maxItems 3
1227
+ */
1228
+ target?: [number, number, number];
1229
+ /**
1230
+ * Translational offset from the origin of the display frame
1231
+ *
1232
+ * @minItems 3
1233
+ * @maxItems 3
1234
+ */
1235
+ targetOffset?: [number, number, number];
1236
+ /**
1237
+ * @minItems 4
1238
+ * @maxItems 4
1239
+ */
1240
+ targetOrientation?: [number, number, number, number];
1241
+ /**
1242
+ * Azimuthal angle offset from the origin of the display frame in degrees
1243
+ */
1244
+ thetaOffset?: number;
1245
+ /**
1246
+ * Vertical field of view in degrees
1247
+ */
1248
+ fovy?: number;
1249
+ /**
1250
+ * Near clipping plane distance
1251
+ */
1252
+ near?: number;
1253
+ /**
1254
+ * Far clipping plane distance
1255
+ */
1256
+ far?: number;
1257
+ /**
1258
+ * Enable logarithmic depth buffer for more uniform depth precision. May result in rendering artifacts or performance degradation.
1259
+ */
1260
+ logDepth?: boolean;
1261
+ }
1262
+ /**
1263
+ * Publish settings for the currently rendering scene
1264
+ *
1265
+ * This interface was referenced by `Layout`'s JSON-Schema
1266
+ * via the `definition` "ThreeDeePublishSettings".
1267
+ */
1268
+ export type ThreeDeePublishSettings = {
1269
+ type?: ThreeDeePublishClickType;
1270
+ /**
1271
+ * The topic on which to publish
1272
+ */
1273
+ poseTopic?: string;
1274
+ /**
1275
+ * The topic on which to publish
1276
+ */
1277
+ pointTopic?: string;
1278
+ /**
1279
+ * The topic on which to publish
1280
+ */
1281
+ poseEstimateTopic?: string;
1282
+ /**
1283
+ * The X standard deviation to publish with pose estimates
1284
+ */
1285
+ poseEstimateXDeviation?: number;
1286
+ /**
1287
+ * The Y standard deviation to publish with pose estimates
1288
+ */
1289
+ poseEstimateYDeviation?: number;
1290
+ /**
1291
+ * The theta standard deviation to publish with pose estimates
1292
+ */
1293
+ poseEstimateThetaDeviation?: number;
1294
+ }
1295
+ /**
1296
+ * This interface was referenced by `Layout`'s JSON-Schema
1297
+ * via the `definition` "ThreeDeeOverlaySettings".
1298
+ */
1299
+ export type ThreeDeeOverlaySettings = {
1300
+ visible?: boolean;
1301
+ }
1302
+ /**
1303
+ * This interface was referenced by `Layout`'s JSON-Schema
1304
+ * via the `definition` "ImageAnnotationSettings".
1305
+ */
1306
+ export type ImageAnnotationSettings = {
1307
+ /**
1308
+ * Whether to display the annotation.
1309
+ */
1310
+ visible?: boolean;
1311
+ }
1312
+ /**
1313
+ * This interface was referenced by `Layout`'s JSON-Schema
1314
+ * via the `definition` "ImageModeConfig".
1315
+ */
1316
+ export type ImageModeConfig = {
1317
+ /**
1318
+ * Camera image or video topic to display.
1319
+ */
1320
+ imageTopic?: string;
1321
+ /**
1322
+ * Message schema to display
1323
+ */
1324
+ imageSchemaName?: string;
1325
+ /**
1326
+ * Calibration topic to use for distortion and 3D markers
1327
+ */
1328
+ calibrationTopic?: string;
1329
+ /**
1330
+ * Settings for the image annotations, indexed by topicName
1331
+ */
1332
+ annotations?: {
1333
+ [k: string]: ImageAnnotationSettings;
1334
+ };
1335
+ /**
1336
+ * Display annotations only when their messages' timestamps match
1337
+ */
1338
+ synchronize?: boolean;
1339
+ /**
1340
+ * Amount of image rotation
1341
+ */
1342
+ rotation?: 0 | 90 | 180 | 270;
1343
+ /**
1344
+ * Flip image across the vertical axis
1345
+ */
1346
+ flipHorizontal?: boolean;
1347
+ /**
1348
+ * Flip image across the horizontal axis
1349
+ */
1350
+ flipVertical?: boolean;
1351
+ /**
1352
+ * Minimum (black) value for single-channel images.
1353
+ */
1354
+ minValue?: number;
1355
+ /**
1356
+ * Maximum (white) value for single-channel images.
1357
+ */
1358
+ maxValue?: number;
1359
+ /**
1360
+ * Video decoder
1361
+ */
1362
+ videoDecoder?: string;
1363
+ /**
1364
+ * Whether to rectify (undistort) the image. If turned off, images will be displayed as is and 3D topic visualization will be disabled.
1365
+ */
1366
+ rectifyImage?: boolean;
1367
+ }
1368
+ /**
1369
+ * Configuration for the Audio panel.
1370
+ *
1371
+ * This interface was referenced by `Layout`'s JSON-Schema
1372
+ * via the `definition` "AudioConfig".
1373
+ */
1374
+ export type AudioConfig = {
1375
+ /**
1376
+ * Color of the audio waveform visualization
1377
+ */
1378
+ color?: string;
1379
+ /**
1380
+ * Mute audio playback
1381
+ */
1382
+ muted?: boolean;
1383
+ /**
1384
+ * Topic containing audio messages
1385
+ */
1386
+ topic?: string;
1387
+ /**
1388
+ * Audio playback volume
1389
+ */
1390
+ volume?: number;
1391
+ /**
1392
+ * Time range in seconds for the sliding window (live sources only)
1393
+ */
1394
+ slidingViewWidth?: number;
1395
+ }
1396
+ /**
1397
+ * Configuration for the Diagnostic Summary panel.
1398
+ *
1399
+ * This interface was referenced by `Layout`'s JSON-Schema
1400
+ * via the `definition` "DiagnosticsSummaryConfig".
1401
+ */
1402
+ export type DiagnosticsSummaryConfig = {
1403
+ /**
1404
+ * Minimum level of diagnostic messages to display
1405
+ */
1406
+ minLevel: number;
1407
+ /**
1408
+ * List of diagnostic IDs to pin to the top of the list. The format is `|hardware_id|name|` or `|hardware_id|` for a hardware ID without a name.
1409
+ */
1410
+ pinnedIds: string[];
1411
+ /**
1412
+ * ROS DiagnosticArray topic to subscribe to
1413
+ */
1414
+ topicToRender: string;
1415
+ /**
1416
+ * Fuzzy filter entries by hardware ID and node names
1417
+ */
1418
+ hardwareIdFilter: string;
1419
+ /**
1420
+ * Sort visible nodes by level
1421
+ */
1422
+ sortByLevel?: boolean;
1423
+ /**
1424
+ * Number of seconds after which entries will be marked as stale if no new messages are received
1425
+ */
1426
+ secondsUntilStale?: number;
1427
+ }
1428
+ /**
1429
+ * Configuration for the Diagnostic Detail panel.
1430
+ *
1431
+ * This interface was referenced by `Layout`'s JSON-Schema
1432
+ * via the `definition` "DiagnosticsDetailConfig".
1433
+ */
1434
+ export type DiagnosticsDetailConfig = {
1435
+ /**
1436
+ * The hardware ID of the diagnostic node to display
1437
+ */
1438
+ selectedHardwareId?: string;
1439
+ /**
1440
+ * The name of the diagnostic node to display
1441
+ */
1442
+ selectedName?: string;
1443
+ /**
1444
+ * The fraction of the panel to split between the diagnostic node and the diagnostic status
1445
+ */
1446
+ splitFraction?: number;
1447
+ /**
1448
+ * ROS DiagnosticArray topic to subscribe to
1449
+ */
1450
+ topicToRender: string;
1451
+ /**
1452
+ * Number of decimal places to display for numeric values
1453
+ */
1454
+ numericPrecision?: number;
1455
+ /**
1456
+ * Number of seconds after which entries will be marked as stale if no new messages are received
1457
+ */
1458
+ secondsUntilStale?: number;
1459
+ }
1460
+ /**
1461
+ * A rule to determine what the indicator should display
1462
+ *
1463
+ * This interface was referenced by `Layout`'s JSON-Schema
1464
+ * via the `definition` "IndicatorRule".
1465
+ */
1466
+ export type IndicatorRule = {
1467
+ /**
1468
+ * Value to compare against
1469
+ */
1470
+ rawValue: string;
1471
+ /**
1472
+ * Operator to use for the indicator rule
1473
+ */
1474
+ operator: "=" | "<" | "<=" | ">" | ">=";
1475
+ /**
1476
+ * Color to use when the rule matches
1477
+ */
1478
+ color: string;
1479
+ /**
1480
+ * Label to use when the rule matches
1481
+ */
1482
+ label: string;
1483
+ }
1484
+ /**
1485
+ * Configuration for the Indicator panel.
1486
+ *
1487
+ * This interface was referenced by `Layout`'s JSON-Schema
1488
+ * via the `definition` "IndicatorConfig".
1489
+ */
1490
+ export type IndicatorConfig = {
1491
+ /**
1492
+ * Message path to the data
1493
+ */
1494
+ path: string;
1495
+ /**
1496
+ * Style of indicator to display
1497
+ */
1498
+ style: "bulb" | "background";
1499
+ /**
1500
+ * Font size of the indicator
1501
+ */
1502
+ fontSize?: number;
1503
+ /**
1504
+ * Range rules list to determine what the indicator should display, evaluated in order of precedence
1505
+ */
1506
+ rules: IndicatorRule[];
1507
+ /**
1508
+ * Color to use when no other rules match
1509
+ */
1510
+ fallbackColor: string;
1511
+ /**
1512
+ * Label to use when no other rules match
1513
+ */
1514
+ fallbackLabel: string;
1515
+ }
1516
+ /**
1517
+ * Configuration for the Gauge panel.
1518
+ *
1519
+ * This interface was referenced by `Layout`'s JSON-Schema
1520
+ * via the `definition` "GaugeConfig".
1521
+ */
1522
+ export type GaugeConfig = {
1523
+ /**
1524
+ * Message path containing a numeric value (or string value that can be coerced to a numeric value)
1525
+ */
1526
+ path: string;
1527
+ /**
1528
+ * Minimum value for the gauge
1529
+ */
1530
+ minValue: number;
1531
+ /**
1532
+ * Maximum value for the gauge
1533
+ */
1534
+ maxValue: number;
1535
+ /**
1536
+ * Type of gradient to use for the gauge
1537
+ */
1538
+ colorMode: "colormap" | "gradient";
1539
+ /**
1540
+ * Preset gradients for the gauge
1541
+ */
1542
+ colorMap: "red-yellow-green" | "rainbow" | "turbo";
1543
+ /**
1544
+ * Starting and ending color stops for custom gradient
1545
+ *
1546
+ * @minItems 2
1547
+ * @maxItems 2
1548
+ */
1549
+ gradient: [string, string];
1550
+ /**
1551
+ * Reverse the colors of the gauge
1552
+ */
1553
+ reverse: boolean;
1554
+ /**
1555
+ * Reverse the direction of the gauge (min on right, max on left)
1556
+ */
1557
+ reverseDirection: boolean;
1558
+ }
1559
+ /**
1560
+ * A button to teleoperate a robot
1561
+ *
1562
+ * This interface was referenced by `Layout`'s JSON-Schema
1563
+ * via the `definition` "TeleopButton".
1564
+ */
1565
+ export type TeleopButton = {
1566
+ /**
1567
+ * Field (linear or angular x, y, or z)
1568
+ */
1569
+ field: string;
1570
+ /**
1571
+ * Value to publish when the button is pressed
1572
+ */
1573
+ value: number;
1574
+ }
1575
+ /**
1576
+ * Configuration for the Teleop panel.
1577
+ *
1578
+ * This interface was referenced by `Layout`'s JSON-Schema
1579
+ * via the `definition` "TeleopConfig".
1580
+ */
1581
+ export type TeleopConfig = {
1582
+ /**
1583
+ * Topic on which to publish geometry_msgs/Twist or geometry_msgs/msg/Twist messages
1584
+ */
1585
+ topic?: string;
1586
+ /**
1587
+ * Rate at which to publish geometry_msgs/Twist or geometry_msgs/msg/Twist messages
1588
+ */
1589
+ publishRate?: number;
1590
+ upButton: TeleopButton;
1591
+ downButton: TeleopButton;
1592
+ leftButton: TeleopButton;
1593
+ rightButton: TeleopButton;
1594
+ }
1595
+ /**
1596
+ * Coordinates of the center of the map
1597
+ *
1598
+ * This interface was referenced by `Layout`'s JSON-Schema
1599
+ * via the `definition` "MapCoordinates".
1600
+ */
1601
+ export type MapCoordinates = {
1602
+ lat: number;
1603
+ lon: number;
1604
+ }
1605
+ /**
1606
+ * This interface was referenced by `Layout`'s JSON-Schema
1607
+ * via the `definition` "MapTopicSettings".
1608
+ */
1609
+ export type MapTopicSettings = {
1610
+ /**
1611
+ * Which messages to display when history (or future data via preloading) is available.
1612
+ */
1613
+ historyMode?: "all" | "none" | "previous";
1614
+ /**
1615
+ * Configure GPS location display
1616
+ */
1617
+ pointDisplayMode?: "dot" | "pin";
1618
+ /**
1619
+ * Sets the diameter of points rendered on the map for this topic, in pixels
1620
+ */
1621
+ pointSize?: number;
1622
+ }
1623
+ /**
1624
+ * Configuration for the Map panel.
1625
+ *
1626
+ * This interface was referenced by `Layout`'s JSON-Schema
1627
+ * via the `definition` "MapConfig".
1628
+ */
1629
+ export type MapConfig = {
1630
+ center?: MapCoordinates;
1631
+ /**
1632
+ * URL to your custom map tiles following the Tile Map Service specs, e.g. https://my.custom.url/{x}/{y}/{z}.png
1633
+ */
1634
+ customTileUrl?: string;
1635
+ /**
1636
+ * Topics to disable from being displayed on the map
1637
+ */
1638
+ disabledTopics?: string[];
1639
+ /**
1640
+ * Topic to follow in the panel viewport
1641
+ */
1642
+ followTopic?: string;
1643
+ /**
1644
+ * The location fix to follow
1645
+ */
1646
+ followFrame?: string;
1647
+ /**
1648
+ * Type of map to display
1649
+ */
1650
+ layer?: "map" | "satellite" | "custom";
1651
+ /**
1652
+ * Colors for topics on the map
1653
+ */
1654
+ topicColors?: {
1655
+ [k: string]: string;
1656
+ };
1657
+ /**
1658
+ * Zoom level of the map
1659
+ */
1660
+ zoomLevel?: number;
1661
+ /**
1662
+ * Highest zoom supported by the custom map source
1663
+ */
1664
+ maxNativeZoom?: number;
1665
+ /**
1666
+ * Configuration for topics on the map
1667
+ */
1668
+ topicConfig?: {
1669
+ [k: string]: MapTopicSettings;
1670
+ };
1671
+ }
1672
+ /**
1673
+ * Configuration for the Publish panel.
1674
+ *
1675
+ * This interface was referenced by `Layout`'s JSON-Schema
1676
+ * via the `definition` "PublishConfig".
1677
+ */
1678
+ export type PublishConfig = {
1679
+ /**
1680
+ * Topic to publish to
1681
+ */
1682
+ topicName?: string;
1683
+ /**
1684
+ * Message schema to publish
1685
+ */
1686
+ datatype?: string;
1687
+ /**
1688
+ * Label for the button
1689
+ */
1690
+ buttonText?: string;
1691
+ /**
1692
+ * Tooltip for the button
1693
+ */
1694
+ buttonTooltip?: string;
1695
+ /**
1696
+ * Color of the button
1697
+ */
1698
+ buttonColor?: string;
1699
+ /**
1700
+ * When enabled, editing the message is allowed and the content is displayed. When disabled, only the button is visible.
1701
+ */
1702
+ advancedView: boolean;
1703
+ /**
1704
+ * JSON blob to publish
1705
+ */
1706
+ value?: string;
1707
+ }
1708
+ /**
1709
+ * Configuration for the Service Call panel.
1710
+ *
1711
+ * This interface was referenced by `Layout`'s JSON-Schema
1712
+ * via the `definition` "ServiceCallConfig".
1713
+ */
1714
+ export type ServiceCallConfig = {
1715
+ /**
1716
+ * Name of service to make a request to
1717
+ */
1718
+ serviceName?: string;
1719
+ /**
1720
+ * Request payload as JSON
1721
+ */
1722
+ requestPayload?: string;
1723
+ /**
1724
+ * Positioning of request and response inputs
1725
+ */
1726
+ layout?: "vertical" | "horizontal";
1727
+ /**
1728
+ * Label displayed on the button
1729
+ */
1730
+ buttonText?: string;
1731
+ /**
1732
+ * Text displayed when hovering over the button
1733
+ */
1734
+ buttonTooltip?: string;
1735
+ /**
1736
+ * Color of the button
1737
+ */
1738
+ buttonColor?: string;
1739
+ /**
1740
+ * When enabled, editing the request is allowed and the response content is displayed. When disabled, only the button is visible.
1741
+ */
1742
+ editingMode?: boolean;
1743
+ /**
1744
+ * Maximum time to wait for a response
1745
+ */
1746
+ timeoutSeconds?: number;
1747
+ }
1748
+ /**
1749
+ * Configuration for the Raw Messages panel.
1750
+ *
1751
+ * This interface was referenced by `Layout`'s JSON-Schema
1752
+ * via the `definition` "RawMessagesConfig".
1753
+ */
1754
+ export type RawMessagesConfig = {
1755
+ /**
1756
+ * Whether to enable diff mode
1757
+ */
1758
+ diffEnabled: boolean;
1759
+ /**
1760
+ * Method to use for diffing
1761
+ */
1762
+ diffMethod: "custom" | "previous message";
1763
+ /**
1764
+ * Topic path to use for diffing
1765
+ */
1766
+ diffTopicPath: string;
1767
+ /**
1768
+ * Node expansion state. Can be 'all' (all nodes expanded), 'none' (all nodes collapsed), or a map of node paths to expansion states. In the map, keys are reversed node paths joined by '~', and values are 'c' (collapsed) or 'e' (expanded).
1769
+ */
1770
+ expansion?:
1771
+ | ("all" | "none")
1772
+ | {
1773
+ [k: string]: "c" | "e";
1774
+ };
1775
+ /**
1776
+ * Whether to show the full message for diffing
1777
+ */
1778
+ showFullMessageForDiff: boolean;
1779
+ /**
1780
+ * Message path to display
1781
+ */
1782
+ topicPath: string;
1783
+ /**
1784
+ * Font size for text display
1785
+ */
1786
+ fontSize?: number;
1787
+ }
1788
+ /**
1789
+ * This interface was referenced by `Layout`'s JSON-Schema
1790
+ * via the `definition` "LogNamespaceSettings".
1791
+ */
1792
+ export type LogNamespaceSettings = {
1793
+ visible?: boolean;
1794
+ }
1795
+ /**
1796
+ * Configuration for the Log panel.
1797
+ *
1798
+ * This interface was referenced by `Layout`'s JSON-Schema
1799
+ * via the `definition` "LogConfig".
1800
+ */
1801
+ export type LogConfig = {
1802
+ /**
1803
+ * Search terms to filter log messages
1804
+ */
1805
+ searchTerms: string[];
1806
+ /**
1807
+ * Attempt to preload logs for recorded sources. If the recording contains over 100,000 messages, fallback to live mode
1808
+ */
1809
+ preload: boolean;
1810
+ /**
1811
+ * Minimum severity of messages to display – always enforced, even if the node name is selected or the message text matches the search filter
1812
+ */
1813
+ minLogLevel: number;
1814
+ /**
1815
+ * Topic to display log messages from
1816
+ */
1817
+ topicToRender?: string;
1818
+ /**
1819
+ * Settings for each namespace, indexed by name
1820
+ */
1821
+ nameFilter?: {
1822
+ [k: string]: LogNamespaceSettings;
1823
+ };
1824
+ /**
1825
+ * Font size for text display
1826
+ */
1827
+ fontSize?: number;
1828
+ }
1829
+ /**
1830
+ * This interface was referenced by `Layout`'s JSON-Schema
1831
+ * via the `definition` "TableConfig".
1832
+ */
1833
+ export type TableConfig = {
1834
+ /**
1835
+ * Message path to display
1836
+ */
1837
+ topicPath: string;
1838
+ }
1839
+ /**
1840
+ * Settings for the slider
1841
+ *
1842
+ * This interface was referenced by `Layout`'s JSON-Schema
1843
+ * via the `definition` "VariableSliderProps".
1844
+ */
1845
+ export type VariableSliderProps = {
1846
+ /**
1847
+ * Minimum value of the slider
1848
+ */
1849
+ min?: number;
1850
+ /**
1851
+ * Maximum value of the slider
1852
+ */
1853
+ max?: number;
1854
+ /**
1855
+ * Size of each incremental step in the slider
1856
+ */
1857
+ step?: number;
1858
+ }
1859
+ /**
1860
+ * This interface was referenced by `Layout`'s JSON-Schema
1861
+ * via the `definition` "VariableSliderConfig".
1862
+ */
1863
+ export type VariableSliderConfig = {
1864
+ /**
1865
+ * Name of variable
1866
+ */
1867
+ globalVariableName: string;
1868
+ sliderProps: VariableSliderProps;
1869
+ }
1870
+ /**
1871
+ * This interface was referenced by `Layout`'s JSON-Schema
1872
+ * via the `definition` "UserScriptsConfig".
1873
+ */
1874
+ export type UserScriptsConfig = {
1875
+ /**
1876
+ * The ID of the selected script.
1877
+ */
1878
+ selectedNodeId?: string;
1879
+ /**
1880
+ * Whether to automatically format the code on save.
1881
+ */
1882
+ autoFormatOnSave?: boolean;
1883
+ }