@foxglove/embed 0.2.3 → 0.4.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/{cjs/FoxgloveViewer.d.ts → FoxgloveViewer.d.ts} +4 -3
- package/dist/FoxgloveViewer.d.ts.map +1 -0
- package/dist/{esm/FoxgloveViewer.js → FoxgloveViewer.js} +3 -3
- package/dist/FoxgloveViewer.js.map +1 -0
- package/dist/{cjs/commands.d.ts → commands.d.ts} +1 -1
- package/dist/commands.d.ts.map +1 -0
- package/dist/commands.js +1 -0
- package/dist/{cjs/commands.js.map → commands.js.map} +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/{cjs/layout.generated.d.ts → layout.generated.d.ts} +903 -211
- package/dist/layout.generated.d.ts.map +1 -0
- package/dist/{esm/layout.generated.js → layout.generated.js} +0 -1
- package/dist/layout.generated.js.map +1 -0
- package/dist/{cjs/types.d.ts → types.d.ts} +2 -2
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +11 -10
- package/src/FoxgloveViewer.ts +6 -7
- package/src/commands.ts +1 -1
- package/src/index.ts +2 -2
- package/src/layout.generated.ts +922 -211
- package/src/types.ts +2 -2
- package/dist/cjs/FoxgloveViewer.d.ts.map +0 -1
- package/dist/cjs/FoxgloveViewer.js +0 -307
- package/dist/cjs/FoxgloveViewer.js.map +0 -1
- package/dist/cjs/commands.d.ts.map +0 -1
- package/dist/cjs/commands.js +0 -3
- package/dist/cjs/index.d.ts +0 -3
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -7
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/layout.generated.d.ts.map +0 -1
- package/dist/cjs/layout.generated.js +0 -6
- package/dist/cjs/layout.generated.js.map +0 -1
- package/dist/cjs/types.d.ts.map +0 -1
- package/dist/cjs/types.js +0 -5
- package/dist/cjs/types.js.map +0 -1
- package/dist/esm/FoxgloveViewer.d.ts +0 -141
- package/dist/esm/FoxgloveViewer.d.ts.map +0 -1
- package/dist/esm/FoxgloveViewer.js.map +0 -1
- package/dist/esm/commands.d.ts +0 -48
- package/dist/esm/commands.d.ts.map +0 -1
- package/dist/esm/commands.js +0 -2
- package/dist/esm/commands.js.map +0 -1
- package/dist/esm/index.d.ts +0 -3
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js +0 -4
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/layout.generated.d.ts +0 -1875
- package/dist/esm/layout.generated.d.ts.map +0 -1
- package/dist/esm/layout.generated.js.map +0 -1
- package/dist/esm/types.d.ts +0 -78
- package/dist/esm/types.d.ts.map +0 -1
- package/dist/esm/types.js +0 -2
- package/dist/esm/types.js.map +0 -1
- package/dist/tsconfig.cjs.tsbuildinfo +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -16,7 +16,20 @@ export type VariableValue = boolean | number | string | VariableValue[] | {
|
|
|
16
16
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
17
17
|
* via the `definition` "Content".
|
|
18
18
|
*/
|
|
19
|
-
export type Content = BasePanel |
|
|
19
|
+
export type Content = BasePanel | TabContainer | StackContainer | SplitContainer;
|
|
20
|
+
/**
|
|
21
|
+
* A schema for a generic panel; can be used as a fallback for panels that are not yet supported.
|
|
22
|
+
*
|
|
23
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
24
|
+
* via the `definition` "Panel".
|
|
25
|
+
*/
|
|
26
|
+
export type Panel = BasePanel & {
|
|
27
|
+
config?: PanelConfig;
|
|
28
|
+
/**
|
|
29
|
+
* The title of the panel.
|
|
30
|
+
*/
|
|
31
|
+
title?: string;
|
|
32
|
+
};
|
|
20
33
|
/**
|
|
21
34
|
* Write documentation and notes formatted using Markdown.
|
|
22
35
|
*
|
|
@@ -38,148 +51,587 @@ export type MarkdownPanel = BasePanel & {
|
|
|
38
51
|
version: 1;
|
|
39
52
|
};
|
|
40
53
|
/**
|
|
41
|
-
* A
|
|
54
|
+
* A range custom state for the customization strategy
|
|
42
55
|
*
|
|
43
56
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
44
|
-
* via the `definition` "
|
|
57
|
+
* via the `definition` "StateTransitionsRangeCustomState".
|
|
45
58
|
*/
|
|
46
|
-
export type
|
|
47
|
-
|
|
59
|
+
export type StateTransitionsRangeCustomState = StateTransitionsBaseCustomState & {
|
|
60
|
+
/**
|
|
61
|
+
* Value used for comparison against message data for state detection
|
|
62
|
+
*/
|
|
63
|
+
value?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Operator used for comparison against message data for state detection
|
|
66
|
+
*/
|
|
67
|
+
operator?: "=" | "<" | "<=" | ">" | ">=";
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* A discrete state customization strategy
|
|
71
|
+
*
|
|
72
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
73
|
+
* via the `definition` "StateTransitionsDiscreteCustomState".
|
|
74
|
+
*/
|
|
75
|
+
export type StateTransitionsDiscreteCustomState = StateTransitionsBaseCustomState & {
|
|
76
|
+
/**
|
|
77
|
+
* Value used for comparison against message data for state detection. The comparison is done using the '=' operator.
|
|
78
|
+
*/
|
|
79
|
+
value?: string;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* State customization strategy
|
|
83
|
+
*
|
|
84
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
85
|
+
* via the `definition` "StateTransitionsCustomStates".
|
|
86
|
+
*/
|
|
87
|
+
export type StateTransitionsCustomStates = StateTransitionsRangeCustomStates | StateTransitionsDiscreteCustomStates;
|
|
88
|
+
/**
|
|
89
|
+
* Track when values change over time.
|
|
90
|
+
*
|
|
91
|
+
* For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/state-transitions).
|
|
92
|
+
*
|
|
93
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
94
|
+
* via the `definition` "StateTransitionsPanel".
|
|
95
|
+
*/
|
|
96
|
+
export type StateTransitionsPanel = BasePanel & {
|
|
97
|
+
panelType: "StateTransitions";
|
|
98
|
+
config: StateTransitionsConfig;
|
|
48
99
|
/**
|
|
49
100
|
* The title of the panel.
|
|
50
101
|
*/
|
|
51
102
|
title?: string;
|
|
103
|
+
/**
|
|
104
|
+
* The version of the panel config schema.
|
|
105
|
+
*/
|
|
106
|
+
version: 1;
|
|
52
107
|
};
|
|
53
108
|
/**
|
|
54
|
-
*
|
|
109
|
+
* Plot numerical values over time or other values.
|
|
110
|
+
*
|
|
111
|
+
* For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/plot).
|
|
55
112
|
*
|
|
56
113
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
57
|
-
* via the `definition` "
|
|
114
|
+
* via the `definition` "PlotPanel".
|
|
58
115
|
*/
|
|
59
|
-
export type
|
|
116
|
+
export type PlotPanel = BasePanel & {
|
|
117
|
+
panelType: "Plot";
|
|
118
|
+
config: PlotConfig;
|
|
119
|
+
/**
|
|
120
|
+
* The title of the panel.
|
|
121
|
+
*/
|
|
122
|
+
title?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The version of the panel config schema.
|
|
125
|
+
*/
|
|
126
|
+
version: 1;
|
|
127
|
+
};
|
|
60
128
|
/**
|
|
61
|
-
*
|
|
129
|
+
* Display the transform tree.
|
|
130
|
+
*
|
|
131
|
+
* For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/tf-tree).
|
|
62
132
|
*
|
|
63
133
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
64
|
-
* via the `definition` "
|
|
134
|
+
* via the `definition` "TransformTreePanel".
|
|
65
135
|
*/
|
|
66
|
-
export type
|
|
136
|
+
export type TransformTreePanel = BasePanel & {
|
|
137
|
+
panelType: "TransformTree";
|
|
67
138
|
/**
|
|
68
|
-
*
|
|
139
|
+
* The version of the panel config schema.
|
|
69
140
|
*/
|
|
70
|
-
|
|
71
|
-
operator: StateTransitionsRangeCustomStateOperator;
|
|
141
|
+
version: 1;
|
|
72
142
|
};
|
|
73
143
|
/**
|
|
74
|
-
*
|
|
144
|
+
* Calibration parameters for the camera image topic.
|
|
75
145
|
*
|
|
76
146
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
77
|
-
* via the `definition` "
|
|
147
|
+
* via the `definition` "BaseRendererCameraTopicSettings".
|
|
78
148
|
*/
|
|
79
|
-
export type
|
|
149
|
+
export type BaseRendererCameraTopicSettings = BaseRendererBaseSettings & {
|
|
150
|
+
distance?: number;
|
|
151
|
+
planarProjectionFactor?: number;
|
|
152
|
+
width?: number;
|
|
153
|
+
color?: string;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Settings for an OccupancyGrid topic.
|
|
157
|
+
*
|
|
158
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
159
|
+
* via the `definition` "BaseRendererRosOccupancyGridTopicSettings".
|
|
160
|
+
*/
|
|
161
|
+
export type BaseRendererRosOccupancyGridTopicSettings = BaseRendererBaseSettings & {
|
|
162
|
+
minColor?: string;
|
|
163
|
+
maxColor?: string;
|
|
164
|
+
unknownColor?: string;
|
|
165
|
+
invalidColor?: string;
|
|
166
|
+
colorMode?: "custom" | "costmap" | "map" | "raw";
|
|
167
|
+
drawBehind?: boolean;
|
|
168
|
+
alpha?: number;
|
|
80
169
|
/**
|
|
81
|
-
*
|
|
170
|
+
* 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.
|
|
82
171
|
*/
|
|
83
|
-
|
|
172
|
+
frameLocked?: boolean;
|
|
84
173
|
};
|
|
85
174
|
/**
|
|
86
|
-
*
|
|
175
|
+
* Timestamped polygons made up of a series of connected points.
|
|
87
176
|
*
|
|
88
177
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
89
|
-
* via the `definition` "
|
|
178
|
+
* via the `definition` "BaseRendererRosPolygonTopicSettings".
|
|
90
179
|
*/
|
|
91
|
-
export type
|
|
180
|
+
export type BaseRendererRosPolygonTopicSettings = BaseRendererBaseSettings & {
|
|
181
|
+
lineWidth?: number;
|
|
182
|
+
color?: string;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Settings for a pose (PoseInFrame) topic.
|
|
186
|
+
*
|
|
187
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
188
|
+
* via the `definition` "BaseRendererPoseTopicSettings".
|
|
189
|
+
*/
|
|
190
|
+
export type BaseRendererPoseTopicSettings = BaseRendererBaseSettings & {
|
|
191
|
+
type?: "axis" | "arrow";
|
|
192
|
+
axisScale?: number;
|
|
193
|
+
/**
|
|
194
|
+
* @minItems 3
|
|
195
|
+
* @maxItems 3
|
|
196
|
+
*/
|
|
197
|
+
arrowScale?: [number, number, number];
|
|
198
|
+
color?: string;
|
|
199
|
+
showCovariance?: boolean;
|
|
200
|
+
covarianceColor?: string;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Settings for a pose array (PosesInFrame) topic.
|
|
204
|
+
*
|
|
205
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
206
|
+
* via the `definition` "BaseRendererPosesTopicSettings".
|
|
207
|
+
*/
|
|
208
|
+
export type BaseRendererPosesTopicSettings = BaseRendererBaseSettings & {
|
|
209
|
+
type?: "axis" | "arrow" | "line";
|
|
210
|
+
axisScale?: number;
|
|
211
|
+
/**
|
|
212
|
+
* @minItems 3
|
|
213
|
+
* @maxItems 3
|
|
214
|
+
*/
|
|
215
|
+
arrowScale?: [number, number, number];
|
|
216
|
+
lineWidth?: number;
|
|
217
|
+
/**
|
|
218
|
+
* @minItems 2
|
|
219
|
+
* @maxItems 2
|
|
220
|
+
*/
|
|
221
|
+
gradient?: [string, string];
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Settings for a ROS VoxelGrid topic.
|
|
225
|
+
*
|
|
226
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
227
|
+
* via the `definition` "BaseRendererRosVoxelGridTopicSettings".
|
|
228
|
+
*/
|
|
229
|
+
export type BaseRendererRosVoxelGridTopicSettings = BaseRendererBaseSettings & {
|
|
230
|
+
/**
|
|
231
|
+
* If true the grid is rendered before the rest of the scene, so it appears behind other scene elements regardless of their relative depth. Otherwise the grid is rendered normally
|
|
232
|
+
*/
|
|
233
|
+
drawBehind?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* How to color each voxel.
|
|
236
|
+
*/
|
|
237
|
+
colorMode?: "rainbow" | "turbo" | "gradient" | "by type";
|
|
238
|
+
/**
|
|
239
|
+
* Enables lighting for voxel shading in 3D view.
|
|
240
|
+
*/
|
|
241
|
+
useLighting?: boolean;
|
|
242
|
+
/**
|
|
243
|
+
* The two colors to interpolate between, based on the "color field".
|
|
244
|
+
*
|
|
245
|
+
* @minItems 2
|
|
246
|
+
* @maxItems 2
|
|
247
|
+
*/
|
|
248
|
+
colorGradient?: [string, string];
|
|
249
|
+
/**
|
|
250
|
+
* RGBA color for voxels that are both marked and present.
|
|
251
|
+
*/
|
|
252
|
+
markedAndPresentColor?: string;
|
|
253
|
+
/**
|
|
254
|
+
* RGBA color for voxels that are present but not marked.
|
|
255
|
+
*/
|
|
256
|
+
presentColor?: string;
|
|
257
|
+
/**
|
|
258
|
+
* RGBA color for voxels that are marked but not present.
|
|
259
|
+
*/
|
|
260
|
+
markedColor?: string;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* A collection of primitive shapes (cubes, spheres, text, meshes, lines, etc) used to display anything from a basic bounding box to a complex 3D decision tree or road network.
|
|
264
|
+
*
|
|
265
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
266
|
+
* via the `definition` "BaseRendererSceneUpdateTopicSettings".
|
|
267
|
+
*/
|
|
268
|
+
export type BaseRendererSceneUpdateTopicSettings = BaseRendererBaseSettings & {
|
|
269
|
+
/**
|
|
270
|
+
* Display a wireframe outline around rendered entities.
|
|
271
|
+
*/
|
|
272
|
+
showOutlines?: boolean;
|
|
273
|
+
/**
|
|
274
|
+
* Render all entities under this topic with this color, overriding colors defined in the entities.
|
|
275
|
+
*/
|
|
276
|
+
color?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Set a global variable with this name to the selected entity ID.
|
|
279
|
+
*/
|
|
280
|
+
selectedIdVariable?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Toggle calculation of vertex normals. Normals improve lighting and visual appearance but incur a significant performance penalty in some cases.
|
|
283
|
+
*/
|
|
284
|
+
computeVertexNormals?: boolean;
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* Base class for pointcloud-like topic settings.
|
|
288
|
+
*
|
|
289
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
290
|
+
* via the `definition` "BaseRendererBasePointSettings".
|
|
291
|
+
*/
|
|
292
|
+
export type BaseRendererBasePointSettings = BaseRendererBaseSettings & {
|
|
293
|
+
/**
|
|
294
|
+
* Size of each rendered point in pixels. Used only when the point shape is "circle" or "square".
|
|
295
|
+
*/
|
|
296
|
+
pointSize?: number;
|
|
297
|
+
/**
|
|
298
|
+
* Size of each cube in 3D scene units. Used only when the point shape is "cube".
|
|
299
|
+
*/
|
|
300
|
+
cubeSize?: number;
|
|
301
|
+
/**
|
|
302
|
+
* Toggle whether to display wireframe outline around cubes. Used only when the point shape is "cube". Default: false.
|
|
303
|
+
*/
|
|
304
|
+
cubeOutline?: boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Shape of each rendered point: "circle", "square", or "cube". Default: "circle".
|
|
307
|
+
*/
|
|
308
|
+
pointShape?: "circle" | "square" | "cube";
|
|
309
|
+
/**
|
|
310
|
+
* Duration of time (in sec) that each point stays rendered.
|
|
311
|
+
*/
|
|
312
|
+
decayTime?: number;
|
|
313
|
+
frameLocked?: boolean;
|
|
314
|
+
/**
|
|
315
|
+
* One of:
|
|
316
|
+
*
|
|
317
|
+
* - **flat**: solid color
|
|
318
|
+
* - **colormap**: pre-defined color palette
|
|
319
|
+
* - **gradient**: smooth transition between two custom colors
|
|
320
|
+
* - **rgb**: `sensor_msgs/PointCloud2` only; use embedded color from each point's rgb field
|
|
321
|
+
* - **rgba**: `sensor_msgs/PointCloud2` only; use embedded color from each point's rgba field
|
|
322
|
+
* - **rgba-fields**: `foxglove.PointCloud` only; use embedded color from each point's red, green, blue, and alpha fields
|
|
323
|
+
*
|
|
324
|
+
*/
|
|
325
|
+
colorMode?: "flat" | "gradient" | "colormap" | "rgb" | "rgba" | "rgba-fields";
|
|
326
|
+
/**
|
|
327
|
+
* Hex code for color of each point. Used only when "colorMode" is set to "flat".
|
|
328
|
+
*/
|
|
329
|
+
flatColor?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Value used for "colorMap" coloring logic; any numeric field in message such as `x`, `y`, `z`, `_auto_distance` (L2 norm of coordinates), or custom defined field. Used only if "colorMode" is not set to "flat".
|
|
332
|
+
*/
|
|
333
|
+
colorField?: string;
|
|
334
|
+
/**
|
|
335
|
+
* The two colors to interpolate between. Used only if "colorMode" is set to "gradient".
|
|
336
|
+
*
|
|
337
|
+
* @minItems 2
|
|
338
|
+
* @maxItems 2
|
|
339
|
+
*/
|
|
340
|
+
gradient?: [string, string];
|
|
341
|
+
/**
|
|
342
|
+
* "Turbo" (Google) or "Rainbow" (RViz); for mapping "colorField" values to colors. Used only if "colorMode" is set to "colorMap".
|
|
343
|
+
*/
|
|
344
|
+
colorMap?: "turbo" | "rainbow";
|
|
345
|
+
/**
|
|
346
|
+
* Sets alpha value for all points. Only shown if "colorMode" is set to "colorMap" or "rgb".
|
|
347
|
+
*/
|
|
348
|
+
explicitAlpha?: number;
|
|
349
|
+
/**
|
|
350
|
+
* Minimum value used to normalize incoming points' "colorField" values. Used only if "colorMode" is not set to "flat".
|
|
351
|
+
*/
|
|
352
|
+
minValue?: number;
|
|
353
|
+
/**
|
|
354
|
+
* Maximum value used to normalize incoming points' "colorField" values. Used only if "colorMode" is not set to "flat".
|
|
355
|
+
*/
|
|
356
|
+
maxValue?: number;
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* A single scan from a planar laser range-finder.
|
|
360
|
+
*
|
|
361
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
362
|
+
* via the `definition` "BaseRendererLaserScanTopicSettings".
|
|
363
|
+
*/
|
|
364
|
+
export type BaseRendererLaserScanTopicSettings = BaseRendererBasePointSettings;
|
|
365
|
+
/**
|
|
366
|
+
* Base class for grid and voxel grid topic settings.
|
|
367
|
+
*
|
|
368
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
369
|
+
* via the `definition` "BaseRendererBaseGridSettings".
|
|
370
|
+
*/
|
|
371
|
+
export type BaseRendererBaseGridSettings = BaseRendererBaseSettings & {
|
|
372
|
+
colorMode?: "flat" | "gradient" | "colormap" | "rgba-fields";
|
|
373
|
+
/**
|
|
374
|
+
* Hex code for color of each cell
|
|
375
|
+
*/
|
|
376
|
+
flatColor?: string;
|
|
377
|
+
/**
|
|
378
|
+
* Numeric field in message used for coloring logic
|
|
379
|
+
*/
|
|
380
|
+
colorField?: string;
|
|
381
|
+
/**
|
|
382
|
+
* The two colors to interpolate between, based on the colorField
|
|
383
|
+
*
|
|
384
|
+
* @minItems 2
|
|
385
|
+
* @maxItems 2
|
|
386
|
+
*/
|
|
387
|
+
gradient?: [string, string];
|
|
388
|
+
/**
|
|
389
|
+
* For mapping colorField values to colors
|
|
390
|
+
*/
|
|
391
|
+
colorMap?: "turbo" | "rainbow";
|
|
392
|
+
/**
|
|
393
|
+
* Sets alpha value for all cells
|
|
394
|
+
*/
|
|
395
|
+
explicitAlpha?: number;
|
|
396
|
+
/**
|
|
397
|
+
* Minimum value used to normalize incoming grid's colorField values
|
|
398
|
+
*/
|
|
399
|
+
minValue?: number;
|
|
400
|
+
/**
|
|
401
|
+
* Maximum value used to normalize incoming grid's colorField values
|
|
402
|
+
*/
|
|
403
|
+
maxValue?: number;
|
|
404
|
+
};
|
|
405
|
+
/**
|
|
406
|
+
* Settings for a grid topic.
|
|
407
|
+
*
|
|
408
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
409
|
+
* via the `definition` "BaseRendererGridTopicSettings".
|
|
410
|
+
*/
|
|
411
|
+
export type BaseRendererGridTopicSettings = BaseRendererBaseGridSettings & {
|
|
412
|
+
/**
|
|
413
|
+
* If true the grid is rendered before the rest of the scene, so it appears behind other scene elements regardless of their relative depth. Otherwise the grid is rendered normally
|
|
414
|
+
*/
|
|
415
|
+
drawBehind?: boolean;
|
|
416
|
+
/**
|
|
417
|
+
* Optional field to displace each grid cell in the Z axis; if not set, elevation is 0 for all cells
|
|
418
|
+
*/
|
|
419
|
+
elevationField?: string;
|
|
420
|
+
/**
|
|
421
|
+
* Determines how elevation and color values are sampled spatially across the grid.
|
|
422
|
+
*/
|
|
423
|
+
interpolationMethod?: "linear" | "nearestNeighbor";
|
|
424
|
+
/**
|
|
425
|
+
* 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.
|
|
426
|
+
*/
|
|
427
|
+
frameLocked?: boolean;
|
|
428
|
+
/**
|
|
429
|
+
* Whether to render subtle grid cell borders
|
|
430
|
+
*/
|
|
431
|
+
showLines?: boolean;
|
|
432
|
+
/**
|
|
433
|
+
* Color of the cell grid lines
|
|
434
|
+
*/
|
|
435
|
+
lineColor?: string;
|
|
436
|
+
/**
|
|
437
|
+
* Enables shading from simulated directional lighting, based on elevation surface normals
|
|
438
|
+
*/
|
|
439
|
+
useLighting?: boolean;
|
|
440
|
+
};
|
|
441
|
+
/**
|
|
442
|
+
* Settings for a ROS GridMap topic.
|
|
443
|
+
*
|
|
444
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
445
|
+
* via the `definition` "BaseRendererRosGridMapTopicSettings".
|
|
446
|
+
*/
|
|
447
|
+
export type BaseRendererRosGridMapTopicSettings = BaseRendererBaseSettings & {
|
|
448
|
+
/**
|
|
449
|
+
* If true the grid is rendered before the rest of the scene, so it appears behind other scene elements regardless of their relative depth. Otherwise the grid is rendered normally
|
|
450
|
+
*/
|
|
451
|
+
drawBehind?: boolean;
|
|
452
|
+
/**
|
|
453
|
+
* Determines how elevation and color values are sampled spatially across the grid.
|
|
454
|
+
*/
|
|
455
|
+
interpolationMethod?: "linear" | "nearestNeighbor";
|
|
456
|
+
/**
|
|
457
|
+
* Enables shading from simulated directional lighting, based on elevation surface normals
|
|
458
|
+
*/
|
|
459
|
+
useLighting?: boolean;
|
|
460
|
+
/**
|
|
461
|
+
* Whether to render subtle grid cell borders
|
|
462
|
+
*/
|
|
463
|
+
showLines?: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* Color of the cell grid lines
|
|
466
|
+
*/
|
|
467
|
+
lineColor?: string;
|
|
468
|
+
/**
|
|
469
|
+
* Optional field to displace each grid cell in the Z axis; if not set, elevation is 0 for all cells
|
|
470
|
+
*/
|
|
471
|
+
elevationLayer?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Numeric field in message used for coloring logic
|
|
474
|
+
*/
|
|
475
|
+
colorLayer?: string;
|
|
476
|
+
/**
|
|
477
|
+
* The two colors to interpolate between, based on the colorLayer
|
|
478
|
+
*
|
|
479
|
+
* @minItems 2
|
|
480
|
+
* @maxItems 2
|
|
481
|
+
*/
|
|
482
|
+
colorGradient?: [string, string];
|
|
483
|
+
colorMode?: "colorMap" | "gradient";
|
|
484
|
+
/**
|
|
485
|
+
* For mapping colorLayer values to colors
|
|
486
|
+
*/
|
|
487
|
+
colorMap?: "turbo" | "rainbow";
|
|
488
|
+
/**
|
|
489
|
+
* Sets alpha value for all cells
|
|
490
|
+
*/
|
|
491
|
+
explicitAlpha?: number;
|
|
492
|
+
};
|
|
493
|
+
/**
|
|
494
|
+
* Settings for a VoxelGrid topic.
|
|
495
|
+
*
|
|
496
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
497
|
+
* via the `definition` "BaseRendererVoxelGridTopicSettings".
|
|
498
|
+
*/
|
|
499
|
+
export type BaseRendererVoxelGridTopicSettings = BaseRendererBaseGridSettings & {
|
|
500
|
+
/**
|
|
501
|
+
* If true the grid is rendered before the rest of the scene, so it appears behind other scene elements regardless of their relative depth. Otherwise the grid is rendered normally
|
|
502
|
+
*/
|
|
503
|
+
drawBehind?: boolean;
|
|
504
|
+
/**
|
|
505
|
+
* 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.
|
|
506
|
+
*/
|
|
507
|
+
frameLocked?: boolean;
|
|
508
|
+
/**
|
|
509
|
+
* Enables shading from simulated directional lighting, based on elevation surface normals
|
|
510
|
+
*/
|
|
511
|
+
useLighting?: boolean;
|
|
512
|
+
};
|
|
513
|
+
/**
|
|
514
|
+
* Base class for URDF settings.
|
|
515
|
+
*
|
|
516
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
517
|
+
* via the `definition` "BaseRendererUrdfBaseSettings".
|
|
518
|
+
*/
|
|
519
|
+
export type BaseRendererUrdfBaseSettings = BaseRendererBaseSettings & {
|
|
520
|
+
/**
|
|
521
|
+
* Robot link geometries to display.
|
|
522
|
+
*
|
|
523
|
+
* - auto: Defaults to visual geometries, but falls back to collision geometries if there are no visuals
|
|
524
|
+
* - visual: Visual geometries
|
|
525
|
+
* - collision: Collision geometries
|
|
526
|
+
*/
|
|
527
|
+
displayMode?: "auto" | "visual" | "collision";
|
|
528
|
+
/**
|
|
529
|
+
* Fallback color for the URDF model, if the source doesn't contain colors.
|
|
530
|
+
*/
|
|
531
|
+
fallbackColor?: string;
|
|
532
|
+
/**
|
|
533
|
+
* Visualize coordinate frame axis for each URDF link.
|
|
534
|
+
*/
|
|
535
|
+
showAxis?: boolean;
|
|
536
|
+
/**
|
|
537
|
+
* Scale of link coordinate frame axis.
|
|
538
|
+
*/
|
|
539
|
+
axisScale?: number;
|
|
540
|
+
/**
|
|
541
|
+
* Visualize edges of URDF link geometries.
|
|
542
|
+
*/
|
|
543
|
+
showOutlines?: boolean;
|
|
544
|
+
/**
|
|
545
|
+
* Opacity of link geometries on a scale from 0 (fully transparent) to 1 (fully opaque).
|
|
546
|
+
*/
|
|
547
|
+
opacity?: number;
|
|
548
|
+
};
|
|
92
549
|
/**
|
|
93
|
-
*
|
|
94
|
-
* - receiveTime: standard timestamp used for playback message ordering across the app
|
|
95
|
-
* - customField: any field within the message data containing sec and nsec integers
|
|
96
|
-
* - headerStamp: header.stamp ROS 1 or ROS 2 field containing sec and nsec integers (and special case of 'custom field')
|
|
97
|
-
* - publishTime: optional MCAP-specific field
|
|
550
|
+
* Settings for a URDF topic.
|
|
98
551
|
*
|
|
99
552
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
100
|
-
* via the `definition` "
|
|
553
|
+
* via the `definition` "BaseRendererUrdfTopicSettings".
|
|
101
554
|
*/
|
|
102
|
-
export type
|
|
555
|
+
export type BaseRendererUrdfTopicSettings = BaseRendererUrdfBaseSettings & {
|
|
556
|
+
label?: string;
|
|
557
|
+
/**
|
|
558
|
+
* Toggle visibility of each URDF link or set a custom offset with respect to the parent link. The latter is disabled when the transform to the parent link is provided by the datasource.
|
|
559
|
+
*/
|
|
560
|
+
links?: {
|
|
561
|
+
[k: string]: BaseRendererUrdfLinkSettings;
|
|
562
|
+
};
|
|
563
|
+
};
|
|
103
564
|
/**
|
|
104
|
-
*
|
|
565
|
+
* Settings for a ROS VelodyneScan topic.
|
|
105
566
|
*
|
|
106
567
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
107
|
-
* via the `definition` "
|
|
568
|
+
* via the `definition` "BaseRendererRosVelodyneScanTopicSettings".
|
|
108
569
|
*/
|
|
109
|
-
export type
|
|
570
|
+
export type BaseRendererRosVelodyneScanTopicSettings = BaseRendererBasePointSettings & {
|
|
571
|
+
/**
|
|
572
|
+
* Visualize points as stixels that extend from the point's z location to 0
|
|
573
|
+
*/
|
|
574
|
+
stixelsEnabled?: boolean;
|
|
575
|
+
};
|
|
110
576
|
/**
|
|
111
|
-
*
|
|
112
|
-
* - Automatic: Last 30 seconds for live data, or the full time range for recorded data
|
|
113
|
-
* - Sliding: Specify a sliding time window that follows the current playback time
|
|
114
|
-
* - Fixed: Set fixed min and max values
|
|
577
|
+
* Settings for a ROS marker namespace.
|
|
115
578
|
*
|
|
116
579
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
117
|
-
* via the `definition` "
|
|
580
|
+
* via the `definition` "BaseRendererRosMarkerNamespaceSettings".
|
|
118
581
|
*/
|
|
119
|
-
export type
|
|
582
|
+
export type BaseRendererRosMarkerNamespaceSettings = BaseRendererBaseSettings;
|
|
120
583
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/state-transitions).
|
|
584
|
+
* A collection of primitive shapes used to display anything from a basic bounding box to a complex 3D decision tree or road network.
|
|
124
585
|
*
|
|
125
586
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
126
|
-
* via the `definition` "
|
|
587
|
+
* via the `definition` "BaseRendererRosMarkerTopicSettings".
|
|
127
588
|
*/
|
|
128
|
-
export type
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* The version of the panel config schema.
|
|
137
|
-
*/
|
|
138
|
-
version: 1;
|
|
589
|
+
export type BaseRendererRosMarkerTopicSettings = BaseRendererBaseSettings & {
|
|
590
|
+
color?: string;
|
|
591
|
+
showOutlines?: boolean;
|
|
592
|
+
selectedIdVariable?: string;
|
|
593
|
+
namespaces?: {
|
|
594
|
+
[k: string]: BaseRendererRosMarkerNamespaceSettings;
|
|
595
|
+
};
|
|
139
596
|
};
|
|
140
597
|
/**
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
* For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/plot).
|
|
598
|
+
* A collection of N-dimensional points, which may contain additional fields with information like normals, intensity, etc.
|
|
144
599
|
*
|
|
145
600
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
146
|
-
* via the `definition` "
|
|
601
|
+
* via the `definition` "BaseRendererPointCloudTopicSettings".
|
|
147
602
|
*/
|
|
148
|
-
export type
|
|
149
|
-
panelType: "Plot";
|
|
150
|
-
config: PlotConfig;
|
|
151
|
-
/**
|
|
152
|
-
* The title of the panel.
|
|
153
|
-
*/
|
|
154
|
-
title?: string;
|
|
603
|
+
export type BaseRendererPointCloudTopicSettings = BaseRendererBasePointSettings & {
|
|
155
604
|
/**
|
|
156
|
-
*
|
|
605
|
+
* Visualize points as stixels that extend from the point's z location to 0.
|
|
157
606
|
*/
|
|
158
|
-
|
|
607
|
+
stixelsEnabled?: boolean;
|
|
159
608
|
};
|
|
160
609
|
/**
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
* For more information, see [the documentation](https://docs.foxglove.dev/docs/visualization/panels/tf-tree).
|
|
610
|
+
* Settings for an image topic.
|
|
164
611
|
*
|
|
165
612
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
166
|
-
* via the `definition` "
|
|
613
|
+
* via the `definition` "BaseRendererImageTopicSettings".
|
|
167
614
|
*/
|
|
168
|
-
export type
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
615
|
+
export type BaseRendererImageTopicSettings = BaseRendererBasePointSettings & {
|
|
616
|
+
cameraInfoTopic?: string;
|
|
617
|
+
distance?: number;
|
|
618
|
+
planarProjectionFactor?: number;
|
|
619
|
+
renderMode?: "default" | "planeProjection" | "pointCloud";
|
|
620
|
+
projectionFrameId?: string;
|
|
621
|
+
color?: string;
|
|
622
|
+
pointSize?: number;
|
|
623
|
+
customDepthScale?: number;
|
|
174
624
|
};
|
|
175
625
|
/**
|
|
176
|
-
*
|
|
626
|
+
* Settings for topics in the 3D scene
|
|
177
627
|
*
|
|
178
628
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
179
|
-
* via the `definition` "
|
|
629
|
+
* via the `definition` "BaseRendererTopicSettings".
|
|
180
630
|
*/
|
|
181
|
-
export type
|
|
631
|
+
export type BaseRendererTopicSettings = BaseRendererCameraTopicSettings | BaseRendererGridTopicSettings | BaseRendererLaserScanTopicSettings | BaseRendererPointCloudTopicSettings | BaseRendererPosesTopicSettings | BaseRendererPoseTopicSettings | BaseRendererRosGridMapTopicSettings | BaseRendererRosMarkerTopicSettings | BaseRendererRosOccupancyGridTopicSettings | BaseRendererRosPolygonTopicSettings | BaseRendererRosVelodyneScanTopicSettings | BaseRendererRosVoxelGridTopicSettings | BaseRendererSceneUpdateTopicSettings | BaseRendererUrdfTopicSettings | BaseRendererVoxelGridTopicSettings | BaseRendererImageTopicSettings;
|
|
182
632
|
/**
|
|
633
|
+
* Settings for a transform frame.
|
|
634
|
+
*
|
|
183
635
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
184
636
|
* via the `definition` "BaseRendererLayerSettingsTransform".
|
|
185
637
|
*/
|
|
@@ -196,10 +648,12 @@ export type BaseRendererLayerSettingsTransform = BaseRendererBaseSettings & {
|
|
|
196
648
|
rpyCoefficient?: [number, number, number];
|
|
197
649
|
};
|
|
198
650
|
/**
|
|
651
|
+
* Base class for custom layer settings in a 3D or Image panel.
|
|
652
|
+
*
|
|
199
653
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
200
|
-
* via the `definition` "
|
|
654
|
+
* via the `definition` "BaseRendererBaseLayerSettings".
|
|
201
655
|
*/
|
|
202
|
-
export type
|
|
656
|
+
export type BaseRendererBaseLayerSettings = BaseRendererBaseSettings & {
|
|
203
657
|
/**
|
|
204
658
|
* An identifier for a unique instance of a layer.
|
|
205
659
|
*/
|
|
@@ -218,17 +672,127 @@ export type BaseRendererCustomLayerSettings = BaseRendererBaseSettings & {
|
|
|
218
672
|
order?: number;
|
|
219
673
|
};
|
|
220
674
|
/**
|
|
221
|
-
*
|
|
675
|
+
* A grid is 2D square with a fixed size and number of divisions.
|
|
676
|
+
*
|
|
677
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
678
|
+
* via the `definition` "BaseRendererGridLayerSettings".
|
|
679
|
+
*/
|
|
680
|
+
export type BaseRendererGridLayerSettings = BaseRendererBaseLayerSettings & {
|
|
681
|
+
drawBehind?: boolean;
|
|
682
|
+
layerId: "foxglove.Grid";
|
|
683
|
+
frameId?: string;
|
|
684
|
+
size?: number;
|
|
685
|
+
divisions?: number;
|
|
686
|
+
lineWidth?: number;
|
|
687
|
+
color?: string;
|
|
688
|
+
/**
|
|
689
|
+
* @minItems 3
|
|
690
|
+
* @maxItems 3
|
|
691
|
+
*/
|
|
692
|
+
position?: [number, number, number];
|
|
693
|
+
/**
|
|
694
|
+
* @minItems 3
|
|
695
|
+
* @maxItems 3
|
|
696
|
+
*/
|
|
697
|
+
rotation?: [number, number, number];
|
|
698
|
+
};
|
|
699
|
+
/**
|
|
700
|
+
* A tiled map layer for displaying geographic map tiles in the 3D scene.
|
|
701
|
+
*
|
|
702
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
703
|
+
* via the `definition` "BaseRendererTiledMapLayerSettings".
|
|
704
|
+
*/
|
|
705
|
+
export type BaseRendererTiledMapLayerSettings = BaseRendererBaseLayerSettings & {
|
|
706
|
+
drawBehind?: boolean;
|
|
707
|
+
layerId: "foxglove.TiledMap";
|
|
708
|
+
serverConfig?: "map" | "satellite" | "custom";
|
|
709
|
+
customMapTileServer?: string;
|
|
710
|
+
opacity?: number;
|
|
711
|
+
/**
|
|
712
|
+
* The Z-position in meters relative to the fixed frame's XY-plane.
|
|
713
|
+
*/
|
|
714
|
+
zPosition?: number;
|
|
715
|
+
};
|
|
716
|
+
/**
|
|
717
|
+
* Configuration for a URDF (Unified Robot Description Format) custom layer, which can load robot models from various sources.
|
|
222
718
|
*
|
|
223
719
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
224
|
-
* via the `definition` "
|
|
720
|
+
* via the `definition` "BaseRendererUrdfLayerSettings".
|
|
225
721
|
*/
|
|
226
|
-
export type
|
|
722
|
+
export type BaseRendererUrdfLayerSettings = BaseRendererBaseLayerSettings & {
|
|
723
|
+
layerId: "foxglove.Urdf";
|
|
724
|
+
/**
|
|
725
|
+
* The source type for the URDF data. One of:
|
|
726
|
+
*
|
|
727
|
+
* - **url**: URL to the source URDF file
|
|
728
|
+
* - **filePath**: Absolute file path to the source URDF file. Only supported when using the desktop app
|
|
729
|
+
* - **param**: Parameter containing the source URDF file
|
|
730
|
+
* - **topic**: Topic containing the source URDF file
|
|
731
|
+
*
|
|
732
|
+
*/
|
|
733
|
+
sourceType?: "url" | "filePath" | "param" | "topic";
|
|
734
|
+
/**
|
|
735
|
+
* package:// URL or http(s) URL pointing to a Unified Robot Description Format (URDF) XML file. Only shown when sourceType is `url`.
|
|
736
|
+
*/
|
|
737
|
+
url?: string;
|
|
738
|
+
/**
|
|
739
|
+
* Absolute file path to a URDF file (desktop app only). Only shown when sourceType is `filePath`.
|
|
740
|
+
*/
|
|
741
|
+
filePath?: string;
|
|
742
|
+
/**
|
|
743
|
+
* Name of the parameter containing the URDF data. Only shown when sourceType is `param`.
|
|
744
|
+
*/
|
|
745
|
+
parameter?: string;
|
|
746
|
+
/**
|
|
747
|
+
* Name of the topic containing the URDF data. Only shown when sourceType is `topic`.
|
|
748
|
+
*/
|
|
749
|
+
topic?: string;
|
|
750
|
+
/**
|
|
751
|
+
* Prefix for robot's transforms. Also commonly known as a TF prefix.
|
|
752
|
+
*/
|
|
753
|
+
framePrefix?: string;
|
|
754
|
+
/**
|
|
755
|
+
* Robot link geometries to display.
|
|
756
|
+
*
|
|
757
|
+
* - auto: Defaults to visual geometries, but falls back to collision geometries if there are no visuals
|
|
758
|
+
* - visual: Visual geometries
|
|
759
|
+
* - collision: Collision geometries
|
|
760
|
+
*/
|
|
761
|
+
displayMode?: "auto" | "visual" | "collision";
|
|
762
|
+
/**
|
|
763
|
+
* Fallback color for the URDF model, if the source doesn't contain colors.
|
|
764
|
+
*/
|
|
765
|
+
fallbackColor?: string;
|
|
766
|
+
/**
|
|
767
|
+
* Visualize coordinate frame axis for each URDF link.
|
|
768
|
+
*/
|
|
769
|
+
showAxis?: boolean;
|
|
770
|
+
/**
|
|
771
|
+
* Scale of link coordinate frame axis.
|
|
772
|
+
*/
|
|
773
|
+
axisScale?: number;
|
|
774
|
+
/**
|
|
775
|
+
* Visualize edges of URDF link geometries.
|
|
776
|
+
*/
|
|
777
|
+
showOutlines?: boolean;
|
|
778
|
+
/**
|
|
779
|
+
* Opacity of link geometries on a scale from 0 (fully transparent) to 1 (fully opaque).
|
|
780
|
+
*/
|
|
781
|
+
opacity?: number;
|
|
782
|
+
/**
|
|
783
|
+
* Toggle visibility of each URDF link or set a custom offset with respect to the parent link. The latter is disabled when the transform to the parent link is provided by the datasource.
|
|
784
|
+
*/
|
|
785
|
+
links?: {
|
|
786
|
+
[k: string]: BaseRendererUrdfLinkSettings;
|
|
787
|
+
};
|
|
788
|
+
};
|
|
227
789
|
/**
|
|
790
|
+
* Union of available layer settings types.
|
|
791
|
+
*
|
|
228
792
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
229
|
-
* via the `definition` "
|
|
793
|
+
* via the `definition` "BaseRendererCustomLayerSettings".
|
|
230
794
|
*/
|
|
231
|
-
export type
|
|
795
|
+
export type BaseRendererCustomLayerSettings = BaseRendererGridLayerSettings | BaseRendererTiledMapLayerSettings | BaseRendererUrdfLayerSettings;
|
|
232
796
|
/**
|
|
233
797
|
* Configuration for the 3D panel
|
|
234
798
|
*
|
|
@@ -245,7 +809,10 @@ export type ThreeDeeConfig = BaseRendererConfig & {
|
|
|
245
809
|
* 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.
|
|
246
810
|
*/
|
|
247
811
|
fixedFrame?: string;
|
|
248
|
-
|
|
812
|
+
/**
|
|
813
|
+
* Viewport following behavior during playback: fixed, or the pose or position of the display frame
|
|
814
|
+
*/
|
|
815
|
+
followMode?: "follow-pose" | "follow-position" | "follow-none";
|
|
249
816
|
/**
|
|
250
817
|
* Topic containing location fix data associated with a frame in the scene. Auto will use the first available topic.
|
|
251
818
|
*/
|
|
@@ -659,6 +1226,8 @@ export type UserScripts = {
|
|
|
659
1226
|
[k: string]: UserScript;
|
|
660
1227
|
};
|
|
661
1228
|
/**
|
|
1229
|
+
* A user script saved in a layout.
|
|
1230
|
+
*
|
|
662
1231
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
663
1232
|
* via the `definition` "UserScript".
|
|
664
1233
|
*/
|
|
@@ -695,9 +1264,9 @@ export type BasePanel = {
|
|
|
695
1264
|
* A container for quickly switching between different groups of panels using a tab bar.
|
|
696
1265
|
*
|
|
697
1266
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
698
|
-
* via the `definition` "
|
|
1267
|
+
* via the `definition` "TabContainer".
|
|
699
1268
|
*/
|
|
700
|
-
export type
|
|
1269
|
+
export type TabContainer = {
|
|
701
1270
|
type: "tabs";
|
|
702
1271
|
/**
|
|
703
1272
|
* The 0-based index of the tab that is selected. Defaults to 0.
|
|
@@ -706,15 +1275,15 @@ export type Tabs = {
|
|
|
706
1275
|
/**
|
|
707
1276
|
* The tabs to display in the container.
|
|
708
1277
|
*/
|
|
709
|
-
tabs:
|
|
1278
|
+
tabs: TabItem[];
|
|
710
1279
|
};
|
|
711
1280
|
/**
|
|
712
|
-
* A tab in a
|
|
1281
|
+
* A single tab in a tab container.
|
|
713
1282
|
*
|
|
714
1283
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
715
|
-
* via the `definition` "
|
|
1284
|
+
* via the `definition` "TabItem".
|
|
716
1285
|
*/
|
|
717
|
-
export type
|
|
1286
|
+
export type TabItem = {
|
|
718
1287
|
/**
|
|
719
1288
|
* The title of the tab.
|
|
720
1289
|
*/
|
|
@@ -725,9 +1294,9 @@ export type Tab = {
|
|
|
725
1294
|
* A container for a vertically-scrollable stack of panels.
|
|
726
1295
|
*
|
|
727
1296
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
728
|
-
* via the `definition` "
|
|
1297
|
+
* via the `definition` "StackContainer".
|
|
729
1298
|
*/
|
|
730
|
-
export type
|
|
1299
|
+
export type StackContainer = {
|
|
731
1300
|
type: "stack";
|
|
732
1301
|
/**
|
|
733
1302
|
* The panels to display in the stack.
|
|
@@ -755,14 +1324,14 @@ export type StackItem = {
|
|
|
755
1324
|
* 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.
|
|
756
1325
|
*
|
|
757
1326
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
758
|
-
* via the `definition` "
|
|
1327
|
+
* via the `definition` "SplitContainer".
|
|
759
1328
|
*/
|
|
760
|
-
export type
|
|
1329
|
+
export type SplitContainer = {
|
|
761
1330
|
type: "split";
|
|
762
1331
|
/**
|
|
763
|
-
* The direction in which items are displayed in the list. Defaults to
|
|
1332
|
+
* The direction in which items are displayed in the list. Defaults to row.
|
|
764
1333
|
*/
|
|
765
|
-
direction
|
|
1334
|
+
direction?: "row" | "column";
|
|
766
1335
|
/**
|
|
767
1336
|
* The items to display in the split container.
|
|
768
1337
|
*
|
|
@@ -771,23 +1340,30 @@ export type Split = {
|
|
|
771
1340
|
items: [SplitItem, ...SplitItem[]];
|
|
772
1341
|
};
|
|
773
1342
|
/**
|
|
774
|
-
* An item in a
|
|
775
|
-
*
|
|
776
|
-
* 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).
|
|
777
|
-
* For example, if a split has 3 items with ratios 1, 2, and 3, the first item takes 1/6 of the space,
|
|
778
|
-
* the second item takes 2/6, and the third item takes 3/6.
|
|
1343
|
+
* An item in a split container with a proportion for space allocation.
|
|
779
1344
|
*
|
|
780
1345
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
781
1346
|
* via the `definition` "SplitItem".
|
|
782
1347
|
*/
|
|
783
1348
|
export type SplitItem = {
|
|
784
1349
|
/**
|
|
785
|
-
* Proportion of space this item occupies relative to other items in the split. The actual space allocated is calculated by dividing this item's
|
|
1350
|
+
* Proportion of space this item occupies relative to other items in the split. The actual space allocated is calculated by dividing this item's proportion by the sum of all proportions in the split. The proportion must be greater than 0. Defaults to 1.
|
|
786
1351
|
*/
|
|
787
|
-
|
|
1352
|
+
proportion?: number;
|
|
788
1353
|
content: Content;
|
|
789
1354
|
};
|
|
790
1355
|
/**
|
|
1356
|
+
* A dictionary of configuration properties for the panel.
|
|
1357
|
+
*
|
|
1358
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1359
|
+
* via the `definition` "PanelConfig".
|
|
1360
|
+
*/
|
|
1361
|
+
export type PanelConfig = {
|
|
1362
|
+
[k: string]: unknown;
|
|
1363
|
+
};
|
|
1364
|
+
/**
|
|
1365
|
+
* Configuration for the Markdown panel.
|
|
1366
|
+
*
|
|
791
1367
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
792
1368
|
* via the `definition` "MarkdownConfig".
|
|
793
1369
|
*/
|
|
@@ -796,20 +1372,19 @@ export type MarkdownConfig = {
|
|
|
796
1372
|
* Sets the base font size for the Markdown renderer.
|
|
797
1373
|
*/
|
|
798
1374
|
fontSize?: number;
|
|
1375
|
+
/**
|
|
1376
|
+
* Choose whether to render static markdown or message data.
|
|
1377
|
+
*/
|
|
1378
|
+
renderMode?: "static" | "message";
|
|
1379
|
+
/**
|
|
1380
|
+
* Message path to a field containing Markdown text as a string.
|
|
1381
|
+
*/
|
|
1382
|
+
messagePath?: string;
|
|
799
1383
|
/**
|
|
800
1384
|
* The markdown content to display.
|
|
801
1385
|
*/
|
|
802
1386
|
markdown?: string;
|
|
803
1387
|
};
|
|
804
|
-
/**
|
|
805
|
-
* A dictionary of configuration properties for the panel.
|
|
806
|
-
*
|
|
807
|
-
* This interface was referenced by `Layout`'s JSON-Schema
|
|
808
|
-
* via the `definition` "PanelConfig".
|
|
809
|
-
*/
|
|
810
|
-
export type PanelConfig = {
|
|
811
|
-
[k: string]: unknown;
|
|
812
|
-
};
|
|
813
1388
|
/**
|
|
814
1389
|
* Display options for a discrete or continuous custom state
|
|
815
1390
|
*
|
|
@@ -831,8 +1406,8 @@ export type StateTransitionsRangeCustomStates = {
|
|
|
831
1406
|
/**
|
|
832
1407
|
* The list of range states to display in the panel.
|
|
833
1408
|
*/
|
|
834
|
-
states
|
|
835
|
-
otherwise
|
|
1409
|
+
states?: StateTransitionsRangeCustomState[];
|
|
1410
|
+
otherwise?: StateTransitionsBaseCustomState;
|
|
836
1411
|
};
|
|
837
1412
|
/**
|
|
838
1413
|
* Discrete state customization strategy
|
|
@@ -845,7 +1420,7 @@ export type StateTransitionsDiscreteCustomStates = {
|
|
|
845
1420
|
/**
|
|
846
1421
|
* The list of discrete states to display in the panel.
|
|
847
1422
|
*/
|
|
848
|
-
states
|
|
1423
|
+
states?: StateTransitionsDiscreteCustomState[];
|
|
849
1424
|
};
|
|
850
1425
|
/**
|
|
851
1426
|
* A series to display in the panel.
|
|
@@ -857,7 +1432,7 @@ export type StateTransitionsSeries = {
|
|
|
857
1432
|
/**
|
|
858
1433
|
* Message path containing values for the series
|
|
859
1434
|
*/
|
|
860
|
-
value
|
|
1435
|
+
value?: string;
|
|
861
1436
|
/**
|
|
862
1437
|
* Label displayed in the legend for the series
|
|
863
1438
|
*/
|
|
@@ -866,7 +1441,14 @@ export type StateTransitionsSeries = {
|
|
|
866
1441
|
* Whether the series is enabled. If disabled, the series will not be displayed in the panel.
|
|
867
1442
|
*/
|
|
868
1443
|
enabled?: boolean;
|
|
869
|
-
|
|
1444
|
+
/**
|
|
1445
|
+
* Timestamp used for message ordering
|
|
1446
|
+
* - receiveTime: standard timestamp used for playback message ordering across the app
|
|
1447
|
+
* - customField: any field within the message data containing sec and nsec integers
|
|
1448
|
+
* - headerStamp: header.stamp ROS 1 or ROS 2 field containing sec and nsec integers (and special case of 'custom field')
|
|
1449
|
+
* - publishTime: optional MCAP-specific field
|
|
1450
|
+
*/
|
|
1451
|
+
timestampMethod?: "receiveTime" | "publishTime" | "headerStamp" | "customField";
|
|
870
1452
|
/**
|
|
871
1453
|
* Message path containing a timestamp field on the same topic as the y-value path
|
|
872
1454
|
*/
|
|
@@ -883,11 +1465,11 @@ export type StateTransitionsConfig = {
|
|
|
883
1465
|
/**
|
|
884
1466
|
* The list of series to display in the panel.
|
|
885
1467
|
*/
|
|
886
|
-
paths
|
|
1468
|
+
paths?: StateTransitionsSeries[];
|
|
887
1469
|
/**
|
|
888
1470
|
* Sync zooming and panning with other plots
|
|
889
1471
|
*/
|
|
890
|
-
isSynced
|
|
1472
|
+
isSynced?: boolean;
|
|
891
1473
|
/**
|
|
892
1474
|
* Minimum time value to display (in seconds)
|
|
893
1475
|
*/
|
|
@@ -904,14 +1486,25 @@ export type StateTransitionsConfig = {
|
|
|
904
1486
|
* Label displayed along the time axis
|
|
905
1487
|
*/
|
|
906
1488
|
xAxisLabel?: string;
|
|
907
|
-
|
|
908
|
-
|
|
1489
|
+
/**
|
|
1490
|
+
* Configure a sliding or fixed range of time.
|
|
1491
|
+
* - Automatic: Last 30 seconds for live data, or the full time range for recorded data
|
|
1492
|
+
* - Sliding: Specify a sliding time window that follows the current playback time
|
|
1493
|
+
* - Fixed: Set fixed min and max values
|
|
1494
|
+
*/
|
|
1495
|
+
timeWindowMode?: "automatic" | "sliding" | "fixed";
|
|
1496
|
+
/**
|
|
1497
|
+
* Position of the playback bar in the view
|
|
1498
|
+
*/
|
|
1499
|
+
playbackBarPosition?: "center" | "right";
|
|
909
1500
|
/**
|
|
910
1501
|
* Show a point for each incoming message
|
|
911
1502
|
*/
|
|
912
1503
|
showPoints?: boolean;
|
|
913
1504
|
};
|
|
914
1505
|
/**
|
|
1506
|
+
* A series in a Plot panel.
|
|
1507
|
+
*
|
|
915
1508
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
916
1509
|
* via the `definition` "PlotSeries".
|
|
917
1510
|
*/
|
|
@@ -919,11 +1512,11 @@ export type PlotSeries = {
|
|
|
919
1512
|
/**
|
|
920
1513
|
* Message path containing y-axis values for the series
|
|
921
1514
|
*/
|
|
922
|
-
value
|
|
1515
|
+
value?: string;
|
|
923
1516
|
/**
|
|
924
1517
|
* Whether the series is enabled. If disabled, the series will not be displayed in the panel.
|
|
925
1518
|
*/
|
|
926
|
-
enabled
|
|
1519
|
+
enabled?: boolean;
|
|
927
1520
|
/**
|
|
928
1521
|
* A unique identifier for the series.
|
|
929
1522
|
*/
|
|
@@ -941,9 +1534,9 @@ export type PlotSeries = {
|
|
|
941
1534
|
* - 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
|
|
942
1535
|
* - customField is a message path which can point to any field within the message data containing sec and nsec integers
|
|
943
1536
|
* - 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
|
|
944
|
-
* - publishTime is an optional MCAP-specific field representing when the event
|
|
1537
|
+
* - publishTime is an optional MCAP-specific field representing when the event occurred
|
|
945
1538
|
*/
|
|
946
|
-
timestampMethod
|
|
1539
|
+
timestampMethod?: "receiveTime" | "publishTime" | "headerStamp" | "customField";
|
|
947
1540
|
/**
|
|
948
1541
|
* Message path containing a timestamp field on the same topic as the y-value path
|
|
949
1542
|
*/
|
|
@@ -971,11 +1564,11 @@ export type PlotXAxisPath = {
|
|
|
971
1564
|
/**
|
|
972
1565
|
* Message path containing y-axis values for the series
|
|
973
1566
|
*/
|
|
974
|
-
value
|
|
1567
|
+
value?: string;
|
|
975
1568
|
/**
|
|
976
1569
|
* Whether the series is enabled. If disabled, the series will not be displayed in the panel.
|
|
977
1570
|
*/
|
|
978
|
-
enabled
|
|
1571
|
+
enabled?: boolean;
|
|
979
1572
|
};
|
|
980
1573
|
/**
|
|
981
1574
|
* Configuration for the Plot panel.
|
|
@@ -987,7 +1580,7 @@ export type PlotConfig = {
|
|
|
987
1580
|
/**
|
|
988
1581
|
* The list of series to display in the panel.
|
|
989
1582
|
*/
|
|
990
|
-
paths
|
|
1583
|
+
paths?: PlotSeries[];
|
|
991
1584
|
/**
|
|
992
1585
|
* For Fixed time window: min value in seconds
|
|
993
1586
|
*/
|
|
@@ -1007,34 +1600,34 @@ export type PlotConfig = {
|
|
|
1007
1600
|
/**
|
|
1008
1601
|
* Display the legend
|
|
1009
1602
|
*/
|
|
1010
|
-
showLegend
|
|
1603
|
+
showLegend?: boolean;
|
|
1011
1604
|
/**
|
|
1012
1605
|
* Position of the legend in relation to the chart
|
|
1013
1606
|
*/
|
|
1014
|
-
legendDisplay
|
|
1607
|
+
legendDisplay?: "floating" | "top" | "left";
|
|
1015
1608
|
/**
|
|
1016
1609
|
* 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)
|
|
1017
1610
|
*/
|
|
1018
|
-
showPlotValuesInLegend
|
|
1611
|
+
showPlotValuesInLegend?: boolean;
|
|
1019
1612
|
/**
|
|
1020
1613
|
* Whether or not to display numeric values for x-axis tick marks
|
|
1021
1614
|
*/
|
|
1022
|
-
showXAxisLabels
|
|
1615
|
+
showXAxisLabels?: boolean;
|
|
1023
1616
|
/**
|
|
1024
1617
|
* Whether or not to display numeric values for y-axis tick marks
|
|
1025
1618
|
*/
|
|
1026
|
-
showYAxisLabels
|
|
1619
|
+
showYAxisLabels?: boolean;
|
|
1027
1620
|
/**
|
|
1028
1621
|
* For Timestamp plots: Sync timeline to other Plot and State Transitions panels.
|
|
1029
1622
|
*/
|
|
1030
|
-
isSynced
|
|
1623
|
+
isSynced?: boolean;
|
|
1031
1624
|
/**
|
|
1032
1625
|
* Type and source of data for values plotted on the x-axis:
|
|
1033
1626
|
* - Timestamp: x-values for time series data
|
|
1034
1627
|
* - Message path: numeric message fields for XY plots
|
|
1035
1628
|
* - Array index: integer indices of an array in the latest message
|
|
1036
1629
|
*/
|
|
1037
|
-
xAxisVal
|
|
1630
|
+
xAxisVal?: "timestamp" | "index" | "custom" | "currentCustom";
|
|
1038
1631
|
/**
|
|
1039
1632
|
* For Message path plots:
|
|
1040
1633
|
* - All shows data from the full time range
|
|
@@ -1068,7 +1661,7 @@ export type PlotConfig = {
|
|
|
1068
1661
|
/**
|
|
1069
1662
|
* Size of the legend in pixels, when the legend position is Left or Top
|
|
1070
1663
|
*/
|
|
1071
|
-
sidebarDimension
|
|
1664
|
+
sidebarDimension?: number;
|
|
1072
1665
|
/**
|
|
1073
1666
|
* For Message path plots:
|
|
1074
1667
|
* - Independent (the default) lets you configure min and max values for the scales independently.
|
|
@@ -1077,22 +1670,25 @@ export type PlotConfig = {
|
|
|
1077
1670
|
axisScalesMode?: "independent" | "lockedScales";
|
|
1078
1671
|
};
|
|
1079
1672
|
/**
|
|
1673
|
+
* Base class for entities in a 3D or Image panel.
|
|
1674
|
+
*
|
|
1080
1675
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1081
1676
|
* via the `definition` "BaseRendererBaseSettings".
|
|
1082
1677
|
*/
|
|
1083
1678
|
export type BaseRendererBaseSettings = {
|
|
1084
|
-
/**
|
|
1085
|
-
* 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.
|
|
1086
|
-
*/
|
|
1087
|
-
drawBehind?: boolean;
|
|
1088
1679
|
/**
|
|
1089
1680
|
* Whether this renderable should be displayed in the scene.
|
|
1090
1681
|
*/
|
|
1091
1682
|
visible?: boolean;
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1683
|
+
};
|
|
1684
|
+
/**
|
|
1685
|
+
* Settings for a URDF link.
|
|
1686
|
+
*
|
|
1687
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1688
|
+
* via the `definition` "BaseRendererUrdfLinkSettings".
|
|
1689
|
+
*/
|
|
1690
|
+
export type BaseRendererUrdfLinkSettings = {
|
|
1691
|
+
visible?: boolean;
|
|
1096
1692
|
};
|
|
1097
1693
|
/**
|
|
1098
1694
|
* Scene settings for the currently rendering scene
|
|
@@ -1117,7 +1713,10 @@ export type BaseRendererSceneSettings = {
|
|
|
1117
1713
|
* Match the behavior of RViz by ignoring the <up_axis> tag in COLLADA files
|
|
1118
1714
|
*/
|
|
1119
1715
|
ignoreColladaUpAxis?: boolean;
|
|
1120
|
-
|
|
1716
|
+
/**
|
|
1717
|
+
* The direction to use as "up" when loading meshes without orientation info (e.g. STL, OBJ)
|
|
1718
|
+
*/
|
|
1719
|
+
meshUpAxis?: "y_up" | "z_up";
|
|
1121
1720
|
transforms?: BaseRendererTransforms;
|
|
1122
1721
|
/**
|
|
1123
1722
|
* Sync the camera with other panels that also have this setting enabled
|
|
@@ -1192,7 +1791,7 @@ export type BaseRendererConfig = {
|
|
|
1192
1791
|
* Settings for topics, indexed by topicName
|
|
1193
1792
|
*/
|
|
1194
1793
|
topics?: {
|
|
1195
|
-
[k: string]:
|
|
1794
|
+
[k: string]: BaseRendererTopicSettings;
|
|
1196
1795
|
};
|
|
1197
1796
|
};
|
|
1198
1797
|
/**
|
|
@@ -1259,7 +1858,7 @@ export type ThreeDeeCameraState = {
|
|
|
1259
1858
|
* via the `definition` "ThreeDeePublishSettings".
|
|
1260
1859
|
*/
|
|
1261
1860
|
export type ThreeDeePublishSettings = {
|
|
1262
|
-
type?:
|
|
1861
|
+
type?: "pose_estimate" | "pose" | "point";
|
|
1263
1862
|
/**
|
|
1264
1863
|
* The topic on which to publish
|
|
1265
1864
|
*/
|
|
@@ -1286,6 +1885,8 @@ export type ThreeDeePublishSettings = {
|
|
|
1286
1885
|
poseEstimateThetaDeviation?: number;
|
|
1287
1886
|
};
|
|
1288
1887
|
/**
|
|
1888
|
+
* Settings for 3D panel overlays.
|
|
1889
|
+
*
|
|
1289
1890
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1290
1891
|
* via the `definition` "ThreeDeeOverlaySettings".
|
|
1291
1892
|
*/
|
|
@@ -1293,6 +1894,8 @@ export type ThreeDeeOverlaySettings = {
|
|
|
1293
1894
|
visible?: boolean;
|
|
1294
1895
|
};
|
|
1295
1896
|
/**
|
|
1897
|
+
* Settings for an image annotation topic.
|
|
1898
|
+
*
|
|
1296
1899
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1297
1900
|
* via the `definition` "ImageAnnotationSettings".
|
|
1298
1901
|
*/
|
|
@@ -1303,10 +1906,63 @@ export type ImageAnnotationSettings = {
|
|
|
1303
1906
|
visible?: boolean;
|
|
1304
1907
|
};
|
|
1305
1908
|
/**
|
|
1909
|
+
* Cursor publishing settings.
|
|
1910
|
+
*
|
|
1911
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1912
|
+
* via the `definition` "ImageModePublishConfig".
|
|
1913
|
+
*/
|
|
1914
|
+
export type ImageModePublishConfig = {
|
|
1915
|
+
/**
|
|
1916
|
+
* Whether click publishing is enabled.
|
|
1917
|
+
*/
|
|
1918
|
+
clickEnabled?: boolean;
|
|
1919
|
+
/**
|
|
1920
|
+
* Topic name for publishing cursor position when clicking on the image.
|
|
1921
|
+
*/
|
|
1922
|
+
cursorClickTopic?: string;
|
|
1923
|
+
/**
|
|
1924
|
+
* Whether hover publishing is enabled.
|
|
1925
|
+
*/
|
|
1926
|
+
hoverEnabled?: boolean;
|
|
1927
|
+
/**
|
|
1928
|
+
* Topic name for publishing cursor position when hovering over the image.
|
|
1929
|
+
*/
|
|
1930
|
+
cursorHoverTopic?: string;
|
|
1931
|
+
};
|
|
1932
|
+
/**
|
|
1933
|
+
* Settings specific to the Image panel.
|
|
1934
|
+
*
|
|
1306
1935
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1307
1936
|
* via the `definition` "ImageModeConfig".
|
|
1308
1937
|
*/
|
|
1309
1938
|
export type ImageModeConfig = {
|
|
1939
|
+
/**
|
|
1940
|
+
* One of: "flat", "gradient", "colormap", "rgb", "rgba", or "rgba-fields".
|
|
1941
|
+
*/
|
|
1942
|
+
colorMode?: "flat" | "gradient" | "colormap" | "rgb" | "rgba" | "rgba-fields";
|
|
1943
|
+
/**
|
|
1944
|
+
* Hex code for color of each point. Used only when "colorMode" is "flat".
|
|
1945
|
+
*/
|
|
1946
|
+
flatColor?: string;
|
|
1947
|
+
/**
|
|
1948
|
+
* Value used for "colorMap" coloring logic; any numeric field in the message. Used only if "colorMode" is not "flat".
|
|
1949
|
+
*/
|
|
1950
|
+
colorField?: string;
|
|
1951
|
+
/**
|
|
1952
|
+
* The two colors to interpolate between. Used only if "colorMode" is "gradient".
|
|
1953
|
+
*
|
|
1954
|
+
* @minItems 2
|
|
1955
|
+
* @maxItems 2
|
|
1956
|
+
*/
|
|
1957
|
+
gradient?: [string, string];
|
|
1958
|
+
/**
|
|
1959
|
+
* Color palette for mapping "colorField" values to colors. Used only if "colorMode" is "colormap".
|
|
1960
|
+
*/
|
|
1961
|
+
colorMap?: "turbo" | "rainbow";
|
|
1962
|
+
/**
|
|
1963
|
+
* Sets alpha value for all colors. Used only when "colorMode" is "colormap" or "rgb".
|
|
1964
|
+
*/
|
|
1965
|
+
explicitAlpha?: number;
|
|
1310
1966
|
/**
|
|
1311
1967
|
* Camera image or video topic to display.
|
|
1312
1968
|
*/
|
|
@@ -1341,14 +1997,6 @@ export type ImageModeConfig = {
|
|
|
1341
1997
|
* Flip image across the horizontal axis
|
|
1342
1998
|
*/
|
|
1343
1999
|
flipVertical?: boolean;
|
|
1344
|
-
/**
|
|
1345
|
-
* Minimum (black) value for single-channel images.
|
|
1346
|
-
*/
|
|
1347
|
-
minValue?: number;
|
|
1348
|
-
/**
|
|
1349
|
-
* Maximum (white) value for single-channel images.
|
|
1350
|
-
*/
|
|
1351
|
-
maxValue?: number;
|
|
1352
2000
|
/**
|
|
1353
2001
|
* Video decoder
|
|
1354
2002
|
*/
|
|
@@ -1357,6 +2005,15 @@ export type ImageModeConfig = {
|
|
|
1357
2005
|
* Whether to rectify (undistort) the image. If turned off, images will be displayed as is and 3D topic visualization will be disabled.
|
|
1358
2006
|
*/
|
|
1359
2007
|
rectifyImage?: boolean;
|
|
2008
|
+
publish?: ImageModePublishConfig;
|
|
2009
|
+
/**
|
|
2010
|
+
* Minimum (black) value for single-channel images.
|
|
2011
|
+
*/
|
|
2012
|
+
minValue?: number;
|
|
2013
|
+
/**
|
|
2014
|
+
* Maximum (white) value for single-channel images.
|
|
2015
|
+
*/
|
|
2016
|
+
maxValue?: number;
|
|
1360
2017
|
};
|
|
1361
2018
|
/**
|
|
1362
2019
|
* Configuration for the Audio panel.
|
|
@@ -1396,19 +2053,19 @@ export type DiagnosticsSummaryConfig = {
|
|
|
1396
2053
|
/**
|
|
1397
2054
|
* Minimum level of diagnostic messages to display
|
|
1398
2055
|
*/
|
|
1399
|
-
minLevel
|
|
2056
|
+
minLevel?: number;
|
|
1400
2057
|
/**
|
|
1401
2058
|
* 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.
|
|
1402
2059
|
*/
|
|
1403
|
-
pinnedIds
|
|
2060
|
+
pinnedIds?: string[];
|
|
1404
2061
|
/**
|
|
1405
2062
|
* ROS DiagnosticArray topic to subscribe to
|
|
1406
2063
|
*/
|
|
1407
|
-
topicToRender
|
|
2064
|
+
topicToRender?: string;
|
|
1408
2065
|
/**
|
|
1409
2066
|
* Fuzzy filter entries by hardware ID and node names
|
|
1410
2067
|
*/
|
|
1411
|
-
hardwareIdFilter
|
|
2068
|
+
hardwareIdFilter?: string;
|
|
1412
2069
|
/**
|
|
1413
2070
|
* Sort visible nodes by level
|
|
1414
2071
|
*/
|
|
@@ -1440,7 +2097,7 @@ export type DiagnosticsDetailConfig = {
|
|
|
1440
2097
|
/**
|
|
1441
2098
|
* ROS DiagnosticArray topic to subscribe to
|
|
1442
2099
|
*/
|
|
1443
|
-
topicToRender
|
|
2100
|
+
topicToRender?: string;
|
|
1444
2101
|
/**
|
|
1445
2102
|
* Number of decimal places to display for numeric values
|
|
1446
2103
|
*/
|
|
@@ -1460,19 +2117,19 @@ export type IndicatorRule = {
|
|
|
1460
2117
|
/**
|
|
1461
2118
|
* Value to compare against
|
|
1462
2119
|
*/
|
|
1463
|
-
rawValue
|
|
2120
|
+
rawValue?: string;
|
|
1464
2121
|
/**
|
|
1465
2122
|
* Operator to use for the indicator rule
|
|
1466
2123
|
*/
|
|
1467
|
-
operator
|
|
2124
|
+
operator?: "=" | "<" | "<=" | ">" | ">=";
|
|
1468
2125
|
/**
|
|
1469
2126
|
* Color to use when the rule matches
|
|
1470
2127
|
*/
|
|
1471
|
-
color
|
|
2128
|
+
color?: string;
|
|
1472
2129
|
/**
|
|
1473
2130
|
* Label to use when the rule matches
|
|
1474
2131
|
*/
|
|
1475
|
-
label
|
|
2132
|
+
label?: string;
|
|
1476
2133
|
};
|
|
1477
2134
|
/**
|
|
1478
2135
|
* Configuration for the Indicator panel.
|
|
@@ -1484,11 +2141,11 @@ export type IndicatorConfig = {
|
|
|
1484
2141
|
/**
|
|
1485
2142
|
* Message path to the data
|
|
1486
2143
|
*/
|
|
1487
|
-
path
|
|
2144
|
+
path?: string;
|
|
1488
2145
|
/**
|
|
1489
2146
|
* Style of indicator to display
|
|
1490
2147
|
*/
|
|
1491
|
-
style
|
|
2148
|
+
style?: "bulb" | "background";
|
|
1492
2149
|
/**
|
|
1493
2150
|
* Font size of the indicator
|
|
1494
2151
|
*/
|
|
@@ -1496,15 +2153,15 @@ export type IndicatorConfig = {
|
|
|
1496
2153
|
/**
|
|
1497
2154
|
* Range rules list to determine what the indicator should display, evaluated in order of precedence
|
|
1498
2155
|
*/
|
|
1499
|
-
rules
|
|
2156
|
+
rules?: IndicatorRule[];
|
|
1500
2157
|
/**
|
|
1501
2158
|
* Color to use when no other rules match
|
|
1502
2159
|
*/
|
|
1503
|
-
fallbackColor
|
|
2160
|
+
fallbackColor?: string;
|
|
1504
2161
|
/**
|
|
1505
2162
|
* Label to use when no other rules match
|
|
1506
2163
|
*/
|
|
1507
|
-
fallbackLabel
|
|
2164
|
+
fallbackLabel?: string;
|
|
1508
2165
|
};
|
|
1509
2166
|
/**
|
|
1510
2167
|
* Configuration for the Gauge panel.
|
|
@@ -1516,38 +2173,42 @@ export type GaugeConfig = {
|
|
|
1516
2173
|
/**
|
|
1517
2174
|
* Message path containing a numeric value (or string value that can be coerced to a numeric value)
|
|
1518
2175
|
*/
|
|
1519
|
-
path
|
|
2176
|
+
path?: string;
|
|
2177
|
+
/**
|
|
2178
|
+
* Visual style of the gauge
|
|
2179
|
+
*/
|
|
2180
|
+
style?: "dial" | "bar";
|
|
1520
2181
|
/**
|
|
1521
2182
|
* Minimum value for the gauge
|
|
1522
2183
|
*/
|
|
1523
|
-
minValue
|
|
2184
|
+
minValue?: number;
|
|
1524
2185
|
/**
|
|
1525
2186
|
* Maximum value for the gauge
|
|
1526
2187
|
*/
|
|
1527
|
-
maxValue
|
|
2188
|
+
maxValue?: number;
|
|
1528
2189
|
/**
|
|
1529
2190
|
* Type of gradient to use for the gauge
|
|
1530
2191
|
*/
|
|
1531
|
-
colorMode
|
|
2192
|
+
colorMode?: "colormap" | "gradient";
|
|
1532
2193
|
/**
|
|
1533
2194
|
* Preset gradients for the gauge
|
|
1534
2195
|
*/
|
|
1535
|
-
colorMap
|
|
2196
|
+
colorMap?: "red-yellow-green" | "rainbow" | "turbo";
|
|
1536
2197
|
/**
|
|
1537
2198
|
* Starting and ending color stops for custom gradient
|
|
1538
2199
|
*
|
|
1539
2200
|
* @minItems 2
|
|
1540
2201
|
* @maxItems 2
|
|
1541
2202
|
*/
|
|
1542
|
-
gradient
|
|
2203
|
+
gradient?: [string, string];
|
|
1543
2204
|
/**
|
|
1544
2205
|
* Reverse the colors of the gauge
|
|
1545
2206
|
*/
|
|
1546
|
-
reverse
|
|
2207
|
+
reverse?: boolean;
|
|
1547
2208
|
/**
|
|
1548
2209
|
* Reverse the direction of the gauge (min on right, max on left)
|
|
1549
2210
|
*/
|
|
1550
|
-
reverseDirection
|
|
2211
|
+
reverseDirection?: boolean;
|
|
1551
2212
|
};
|
|
1552
2213
|
/**
|
|
1553
2214
|
* A button to teleoperate a robot
|
|
@@ -1559,11 +2220,11 @@ export type TeleopButton = {
|
|
|
1559
2220
|
/**
|
|
1560
2221
|
* Field (linear or angular x, y, or z)
|
|
1561
2222
|
*/
|
|
1562
|
-
field
|
|
2223
|
+
field?: string;
|
|
1563
2224
|
/**
|
|
1564
2225
|
* Value to publish when the button is pressed
|
|
1565
2226
|
*/
|
|
1566
|
-
value
|
|
2227
|
+
value?: number;
|
|
1567
2228
|
};
|
|
1568
2229
|
/**
|
|
1569
2230
|
* Configuration for the Teleop panel.
|
|
@@ -1580,22 +2241,14 @@ export type TeleopConfig = {
|
|
|
1580
2241
|
* Rate at which to publish geometry_msgs/Twist or geometry_msgs/msg/Twist messages
|
|
1581
2242
|
*/
|
|
1582
2243
|
publishRate?: number;
|
|
1583
|
-
upButton
|
|
1584
|
-
downButton
|
|
1585
|
-
leftButton
|
|
1586
|
-
rightButton
|
|
2244
|
+
upButton?: TeleopButton;
|
|
2245
|
+
downButton?: TeleopButton;
|
|
2246
|
+
leftButton?: TeleopButton;
|
|
2247
|
+
rightButton?: TeleopButton;
|
|
1587
2248
|
};
|
|
1588
2249
|
/**
|
|
1589
|
-
*
|
|
2250
|
+
* Settings for a topic displayed on the map.
|
|
1590
2251
|
*
|
|
1591
|
-
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1592
|
-
* via the `definition` "MapCoordinates".
|
|
1593
|
-
*/
|
|
1594
|
-
export type MapCoordinates = {
|
|
1595
|
-
lat: number;
|
|
1596
|
-
lon: number;
|
|
1597
|
-
};
|
|
1598
|
-
/**
|
|
1599
2252
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1600
2253
|
* via the `definition` "MapTopicSettings".
|
|
1601
2254
|
*/
|
|
@@ -1603,15 +2256,43 @@ export type MapTopicSettings = {
|
|
|
1603
2256
|
/**
|
|
1604
2257
|
* Which messages to display when history (or future data via preloading) is available.
|
|
1605
2258
|
*/
|
|
1606
|
-
historyMode?: "all" | "none" | "previous";
|
|
2259
|
+
historyMode?: "all" | "none" | "previous" | "last-n-seconds";
|
|
1607
2260
|
/**
|
|
1608
2261
|
* Configure GPS location display
|
|
1609
2262
|
*/
|
|
1610
|
-
pointDisplayMode?: "dot" | "pin";
|
|
2263
|
+
pointDisplayMode?: "dot" | "pin" | "diamond" | "square" | "plus" | "cross";
|
|
1611
2264
|
/**
|
|
1612
2265
|
* Sets the diameter of points rendered on the map for this topic, in pixels
|
|
1613
2266
|
*/
|
|
1614
2267
|
pointSize?: number;
|
|
2268
|
+
/**
|
|
2269
|
+
* Time window in seconds for 'previous' mode sliding window. When left blank, shows all data from the beginning up to current playback time. When set, shows only the last N seconds of data.
|
|
2270
|
+
*/
|
|
2271
|
+
timeWindowSeconds?: number;
|
|
2272
|
+
};
|
|
2273
|
+
/**
|
|
2274
|
+
* Configuration for a map layer displayed on top of the base map.
|
|
2275
|
+
*
|
|
2276
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
2277
|
+
* via the `definition` "MapLayerConfig".
|
|
2278
|
+
*/
|
|
2279
|
+
export type MapLayerConfig = {
|
|
2280
|
+
/**
|
|
2281
|
+
* Type of map layer to display.
|
|
2282
|
+
*/
|
|
2283
|
+
type: "street" | "satellite" | "custom" | "shaded-relief" | "seamark" | "isobaths";
|
|
2284
|
+
/**
|
|
2285
|
+
* Whether this layer is visible
|
|
2286
|
+
*/
|
|
2287
|
+
enabled?: boolean;
|
|
2288
|
+
/**
|
|
2289
|
+
* Opacity of the layer (0 to 1)
|
|
2290
|
+
*/
|
|
2291
|
+
opacity?: number;
|
|
2292
|
+
/**
|
|
2293
|
+
* URL to custom map tiles when type is 'custom', following Tile Map Service specs
|
|
2294
|
+
*/
|
|
2295
|
+
customTileUrl?: string;
|
|
1615
2296
|
};
|
|
1616
2297
|
/**
|
|
1617
2298
|
* Configuration for the Map panel.
|
|
@@ -1620,7 +2301,6 @@ export type MapTopicSettings = {
|
|
|
1620
2301
|
* via the `definition` "MapConfig".
|
|
1621
2302
|
*/
|
|
1622
2303
|
export type MapConfig = {
|
|
1623
|
-
center?: MapCoordinates;
|
|
1624
2304
|
/**
|
|
1625
2305
|
* URL to your custom map tiles following the Tile Map Service specs, e.g. https://my.custom.url/{x}/{y}/{z}.png
|
|
1626
2306
|
*/
|
|
@@ -1640,7 +2320,7 @@ export type MapConfig = {
|
|
|
1640
2320
|
/**
|
|
1641
2321
|
* Type of map to display
|
|
1642
2322
|
*/
|
|
1643
|
-
layer?: "map" | "satellite" | "custom";
|
|
2323
|
+
layer?: "map" | "satellite" | "custom" | "shaded-relief";
|
|
1644
2324
|
/**
|
|
1645
2325
|
* Colors for topics on the map
|
|
1646
2326
|
*/
|
|
@@ -1661,6 +2341,10 @@ export type MapConfig = {
|
|
|
1661
2341
|
topicConfig?: {
|
|
1662
2342
|
[k: string]: MapTopicSettings;
|
|
1663
2343
|
};
|
|
2344
|
+
/**
|
|
2345
|
+
* Additional layers displayed on top of the base map layer
|
|
2346
|
+
*/
|
|
2347
|
+
layers?: MapLayerConfig[];
|
|
1664
2348
|
};
|
|
1665
2349
|
/**
|
|
1666
2350
|
* Configuration for the Publish panel.
|
|
@@ -1692,7 +2376,7 @@ export type PublishConfig = {
|
|
|
1692
2376
|
/**
|
|
1693
2377
|
* When enabled, editing the message is allowed and the content is displayed. When disabled, only the button is visible.
|
|
1694
2378
|
*/
|
|
1695
|
-
advancedView
|
|
2379
|
+
advancedView?: boolean;
|
|
1696
2380
|
/**
|
|
1697
2381
|
* JSON blob to publish
|
|
1698
2382
|
*/
|
|
@@ -1748,15 +2432,15 @@ export type RawMessagesConfig = {
|
|
|
1748
2432
|
/**
|
|
1749
2433
|
* Whether to enable diff mode
|
|
1750
2434
|
*/
|
|
1751
|
-
diffEnabled
|
|
2435
|
+
diffEnabled?: boolean;
|
|
1752
2436
|
/**
|
|
1753
2437
|
* Method to use for diffing
|
|
1754
2438
|
*/
|
|
1755
|
-
diffMethod
|
|
2439
|
+
diffMethod?: "custom" | "previous message";
|
|
1756
2440
|
/**
|
|
1757
2441
|
* Topic path to use for diffing
|
|
1758
2442
|
*/
|
|
1759
|
-
diffTopicPath
|
|
2443
|
+
diffTopicPath?: string;
|
|
1760
2444
|
/**
|
|
1761
2445
|
* 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).
|
|
1762
2446
|
*/
|
|
@@ -1766,17 +2450,19 @@ export type RawMessagesConfig = {
|
|
|
1766
2450
|
/**
|
|
1767
2451
|
* Whether to show the full message for diffing
|
|
1768
2452
|
*/
|
|
1769
|
-
showFullMessageForDiff
|
|
2453
|
+
showFullMessageForDiff?: boolean;
|
|
1770
2454
|
/**
|
|
1771
2455
|
* Message path to display
|
|
1772
2456
|
*/
|
|
1773
|
-
topicPath
|
|
2457
|
+
topicPath?: string;
|
|
1774
2458
|
/**
|
|
1775
2459
|
* Font size for text display
|
|
1776
2460
|
*/
|
|
1777
2461
|
fontSize?: number;
|
|
1778
2462
|
};
|
|
1779
2463
|
/**
|
|
2464
|
+
* Settings for a namespace in the Log panel.
|
|
2465
|
+
*
|
|
1780
2466
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1781
2467
|
* via the `definition` "LogNamespaceSettings".
|
|
1782
2468
|
*/
|
|
@@ -1793,15 +2479,15 @@ export type LogConfig = {
|
|
|
1793
2479
|
/**
|
|
1794
2480
|
* Search terms to filter log messages
|
|
1795
2481
|
*/
|
|
1796
|
-
searchTerms
|
|
2482
|
+
searchTerms?: string[];
|
|
1797
2483
|
/**
|
|
1798
2484
|
* Attempt to preload logs for recorded sources. If the recording contains over 100,000 messages, fallback to live mode
|
|
1799
2485
|
*/
|
|
1800
|
-
preload
|
|
2486
|
+
preload?: boolean;
|
|
1801
2487
|
/**
|
|
1802
2488
|
* Minimum severity of messages to display – always enforced, even if the node name is selected or the message text matches the search filter
|
|
1803
2489
|
*/
|
|
1804
|
-
minLogLevel
|
|
2490
|
+
minLogLevel?: number;
|
|
1805
2491
|
/**
|
|
1806
2492
|
* Topic to display log messages from
|
|
1807
2493
|
*/
|
|
@@ -1818,6 +2504,8 @@ export type LogConfig = {
|
|
|
1818
2504
|
fontSize?: number;
|
|
1819
2505
|
};
|
|
1820
2506
|
/**
|
|
2507
|
+
* Configuration for the Table panel.
|
|
2508
|
+
*
|
|
1821
2509
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1822
2510
|
* via the `definition` "TableConfig".
|
|
1823
2511
|
*/
|
|
@@ -1825,7 +2513,7 @@ export type TableConfig = {
|
|
|
1825
2513
|
/**
|
|
1826
2514
|
* Message path to display
|
|
1827
2515
|
*/
|
|
1828
|
-
topicPath
|
|
2516
|
+
topicPath?: string;
|
|
1829
2517
|
};
|
|
1830
2518
|
/**
|
|
1831
2519
|
* Settings for the slider
|
|
@@ -1848,6 +2536,8 @@ export type VariableSliderProps = {
|
|
|
1848
2536
|
step?: number;
|
|
1849
2537
|
};
|
|
1850
2538
|
/**
|
|
2539
|
+
* Configuration for the Variable Slider panel.
|
|
2540
|
+
*
|
|
1851
2541
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1852
2542
|
* via the `definition` "VariableSliderConfig".
|
|
1853
2543
|
*/
|
|
@@ -1855,10 +2545,12 @@ export type VariableSliderConfig = {
|
|
|
1855
2545
|
/**
|
|
1856
2546
|
* Name of variable
|
|
1857
2547
|
*/
|
|
1858
|
-
globalVariableName
|
|
1859
|
-
sliderProps
|
|
2548
|
+
globalVariableName?: string;
|
|
2549
|
+
sliderProps?: VariableSliderProps;
|
|
1860
2550
|
};
|
|
1861
2551
|
/**
|
|
2552
|
+
* Configuration for the User Scripts panel.
|
|
2553
|
+
*
|
|
1862
2554
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
1863
2555
|
* via the `definition` "UserScriptsConfig".
|
|
1864
2556
|
*/
|