foxglove-sdk 0.14.1__cp312-cp312-musllinux_1_2_i686.whl → 0.16.6__cp312-cp312-musllinux_1_2_i686.whl
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.
- foxglove/__init__.py +164 -52
- foxglove/_foxglove_py/__init__.pyi +94 -32
- foxglove/_foxglove_py/channels.pyi +396 -330
- foxglove/_foxglove_py/cloud.pyi +9 -0
- foxglove/_foxglove_py/mcap.pyi +53 -12
- foxglove/_foxglove_py/schemas.pyi +311 -318
- foxglove/_foxglove_py/schemas_wkt.pyi +8 -9
- foxglove/_foxglove_py/websocket.pyi +120 -76
- foxglove/_foxglove_py.cpython-312-i386-linux-musl.so +0 -0
- foxglove/channel.py +24 -22
- foxglove/channels/__init__.py +2 -0
- foxglove/cloud.py +61 -0
- foxglove/layouts/__init__.py +17 -0
- foxglove/notebook/__init__.py +0 -0
- foxglove/notebook/foxglove_widget.py +82 -0
- foxglove/notebook/notebook_buffer.py +114 -0
- foxglove/notebook/static/widget.js +1 -0
- foxglove/schemas/__init__.py +3 -0
- foxglove/tests/test_context.py +10 -0
- foxglove/tests/test_logging.py +46 -0
- foxglove/tests/test_mcap.py +363 -2
- foxglove/tests/test_server.py +33 -2
- foxglove/websocket.py +40 -18
- foxglove.libs/libgcc_s-8c2f5de4.so.1 +0 -0
- foxglove_sdk-0.16.6.dist-info/METADATA +53 -0
- foxglove_sdk-0.16.6.dist-info/RECORD +35 -0
- {foxglove_sdk-0.14.1.dist-info → foxglove_sdk-0.16.6.dist-info}/WHEEL +1 -1
- foxglove.libs/libgcc_s-27e5a392.so.1 +0 -0
- foxglove_sdk-0.14.1.dist-info/METADATA +0 -29
- foxglove_sdk-0.14.1.dist-info/RECORD +0 -27
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Generated by https://github.com/foxglove/foxglove-sdk
|
|
2
2
|
from enum import Enum
|
|
3
|
-
from typing import
|
|
3
|
+
from typing import Union
|
|
4
4
|
|
|
5
5
|
from . import Schema
|
|
6
6
|
from .schemas_wkt import Duration as Duration
|
|
@@ -84,16 +84,16 @@ class ArrowPrimitive:
|
|
|
84
84
|
A primitive representing an arrow
|
|
85
85
|
"""
|
|
86
86
|
|
|
87
|
-
def
|
|
88
|
-
|
|
87
|
+
def __init__(
|
|
88
|
+
self,
|
|
89
89
|
*,
|
|
90
|
-
pose:
|
|
91
|
-
shaft_length:
|
|
92
|
-
shaft_diameter:
|
|
93
|
-
head_length:
|
|
94
|
-
head_diameter:
|
|
95
|
-
color:
|
|
96
|
-
) ->
|
|
90
|
+
pose: Pose | None = None,
|
|
91
|
+
shaft_length: float = 0.0,
|
|
92
|
+
shaft_diameter: float = 0.0,
|
|
93
|
+
head_length: float = 0.0,
|
|
94
|
+
head_diameter: float = 0.0,
|
|
95
|
+
color: Color | None = None,
|
|
96
|
+
) -> None: ...
|
|
97
97
|
@staticmethod
|
|
98
98
|
def get_schema() -> Schema:
|
|
99
99
|
"""Returns the ArrowPrimitive schema"""
|
|
@@ -108,19 +108,19 @@ class CameraCalibration:
|
|
|
108
108
|
Camera calibration parameters
|
|
109
109
|
"""
|
|
110
110
|
|
|
111
|
-
def
|
|
112
|
-
|
|
111
|
+
def __init__(
|
|
112
|
+
self,
|
|
113
113
|
*,
|
|
114
|
-
timestamp:
|
|
115
|
-
frame_id:
|
|
116
|
-
width:
|
|
117
|
-
height:
|
|
118
|
-
distortion_model:
|
|
119
|
-
D:
|
|
120
|
-
K:
|
|
121
|
-
R:
|
|
122
|
-
P:
|
|
123
|
-
) ->
|
|
114
|
+
timestamp: Timestamp | None = None,
|
|
115
|
+
frame_id: str = "",
|
|
116
|
+
width: int = 0,
|
|
117
|
+
height: int = 0,
|
|
118
|
+
distortion_model: str = "",
|
|
119
|
+
D: list[float] | None = None,
|
|
120
|
+
K: list[float] | None = None,
|
|
121
|
+
R: list[float] | None = None,
|
|
122
|
+
P: list[float] | None = None,
|
|
123
|
+
) -> None: ...
|
|
124
124
|
@staticmethod
|
|
125
125
|
def get_schema() -> Schema:
|
|
126
126
|
"""Returns the CameraCalibration schema"""
|
|
@@ -135,16 +135,16 @@ class CircleAnnotation:
|
|
|
135
135
|
A circle annotation on a 2D image
|
|
136
136
|
"""
|
|
137
137
|
|
|
138
|
-
def
|
|
139
|
-
|
|
138
|
+
def __init__(
|
|
139
|
+
self,
|
|
140
140
|
*,
|
|
141
|
-
timestamp:
|
|
142
|
-
position:
|
|
143
|
-
diameter:
|
|
144
|
-
thickness:
|
|
145
|
-
fill_color:
|
|
146
|
-
outline_color:
|
|
147
|
-
) ->
|
|
141
|
+
timestamp: Timestamp | None = None,
|
|
142
|
+
position: Point2 | None = None,
|
|
143
|
+
diameter: float = 0.0,
|
|
144
|
+
thickness: float = 0.0,
|
|
145
|
+
fill_color: Color | None = None,
|
|
146
|
+
outline_color: Color | None = None,
|
|
147
|
+
) -> None: ...
|
|
148
148
|
@staticmethod
|
|
149
149
|
def get_schema() -> Schema:
|
|
150
150
|
"""Returns the CircleAnnotation schema"""
|
|
@@ -159,14 +159,9 @@ class Color:
|
|
|
159
159
|
A color in RGBA format
|
|
160
160
|
"""
|
|
161
161
|
|
|
162
|
-
def
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
r: "Optional[float]" = 0.0,
|
|
166
|
-
g: "Optional[float]" = 0.0,
|
|
167
|
-
b: "Optional[float]" = 0.0,
|
|
168
|
-
a: "Optional[float]" = 0.0,
|
|
169
|
-
) -> "Color": ...
|
|
162
|
+
def __init__(
|
|
163
|
+
self, *, r: float = 0.0, g: float = 0.0, b: float = 0.0, a: float = 0.0
|
|
164
|
+
) -> None: ...
|
|
170
165
|
@staticmethod
|
|
171
166
|
def get_schema() -> Schema:
|
|
172
167
|
"""Returns the Color schema"""
|
|
@@ -181,14 +176,14 @@ class CompressedImage:
|
|
|
181
176
|
A compressed image
|
|
182
177
|
"""
|
|
183
178
|
|
|
184
|
-
def
|
|
185
|
-
|
|
179
|
+
def __init__(
|
|
180
|
+
self,
|
|
186
181
|
*,
|
|
187
|
-
timestamp:
|
|
188
|
-
frame_id:
|
|
189
|
-
data:
|
|
190
|
-
format:
|
|
191
|
-
) ->
|
|
182
|
+
timestamp: Timestamp | None = None,
|
|
183
|
+
frame_id: str = "",
|
|
184
|
+
data: bytes = b"",
|
|
185
|
+
format: str = "",
|
|
186
|
+
) -> None: ...
|
|
192
187
|
@staticmethod
|
|
193
188
|
def get_schema() -> Schema:
|
|
194
189
|
"""Returns the CompressedImage schema"""
|
|
@@ -203,14 +198,14 @@ class CompressedVideo:
|
|
|
203
198
|
A single frame of a compressed video bitstream
|
|
204
199
|
"""
|
|
205
200
|
|
|
206
|
-
def
|
|
207
|
-
|
|
201
|
+
def __init__(
|
|
202
|
+
self,
|
|
208
203
|
*,
|
|
209
|
-
timestamp:
|
|
210
|
-
frame_id:
|
|
211
|
-
data:
|
|
212
|
-
format:
|
|
213
|
-
) ->
|
|
204
|
+
timestamp: Timestamp | None = None,
|
|
205
|
+
frame_id: str = "",
|
|
206
|
+
data: bytes = b"",
|
|
207
|
+
format: str = "",
|
|
208
|
+
) -> None: ...
|
|
214
209
|
@staticmethod
|
|
215
210
|
def get_schema() -> Schema:
|
|
216
211
|
"""Returns the CompressedVideo schema"""
|
|
@@ -225,13 +220,13 @@ class CubePrimitive:
|
|
|
225
220
|
A primitive representing a cube or rectangular prism
|
|
226
221
|
"""
|
|
227
222
|
|
|
228
|
-
def
|
|
229
|
-
|
|
223
|
+
def __init__(
|
|
224
|
+
self,
|
|
230
225
|
*,
|
|
231
|
-
pose:
|
|
232
|
-
size:
|
|
233
|
-
color:
|
|
234
|
-
) ->
|
|
226
|
+
pose: Pose | None = None,
|
|
227
|
+
size: Vector3 | None = None,
|
|
228
|
+
color: Color | None = None,
|
|
229
|
+
) -> None: ...
|
|
235
230
|
@staticmethod
|
|
236
231
|
def get_schema() -> Schema:
|
|
237
232
|
"""Returns the CubePrimitive schema"""
|
|
@@ -246,15 +241,15 @@ class CylinderPrimitive:
|
|
|
246
241
|
A primitive representing a cylinder, elliptic cylinder, or truncated cone
|
|
247
242
|
"""
|
|
248
243
|
|
|
249
|
-
def
|
|
250
|
-
|
|
244
|
+
def __init__(
|
|
245
|
+
self,
|
|
251
246
|
*,
|
|
252
|
-
pose:
|
|
253
|
-
size:
|
|
254
|
-
bottom_scale:
|
|
255
|
-
top_scale:
|
|
256
|
-
color:
|
|
257
|
-
) ->
|
|
247
|
+
pose: Pose | None = None,
|
|
248
|
+
size: Vector3 | None = None,
|
|
249
|
+
bottom_scale: float = 0.0,
|
|
250
|
+
top_scale: float = 0.0,
|
|
251
|
+
color: Color | None = None,
|
|
252
|
+
) -> None: ...
|
|
258
253
|
@staticmethod
|
|
259
254
|
def get_schema() -> Schema:
|
|
260
255
|
"""Returns the CylinderPrimitive schema"""
|
|
@@ -266,18 +261,24 @@ class CylinderPrimitive:
|
|
|
266
261
|
|
|
267
262
|
class FrameTransform:
|
|
268
263
|
"""
|
|
269
|
-
|
|
264
|
+
A transform between two reference frames in 3D space. The transform defines the position and orientation of a child frame within a parent frame. Translation moves the origin of the child frame relative to the parent origin. The rotation changes the orientiation of the child frame around its origin.
|
|
265
|
+
|
|
266
|
+
Examples:
|
|
267
|
+
|
|
268
|
+
- With translation (x=1, y=0, z=0) and identity rotation (x=0, y=0, z=0, w=1), a point at (x=0, y=0, z=0) in the child frame maps to (x=1, y=0, z=0) in the parent frame.
|
|
269
|
+
|
|
270
|
+
- With translation (x=1, y=2, z=0) and a 90-degree rotation around the z-axis (x=0, y=0, z=0.707, w=0.707), a point at (x=1, y=0, z=0) in the child frame maps to (x=-1, y=3, z=0) in the parent frame.
|
|
270
271
|
"""
|
|
271
272
|
|
|
272
|
-
def
|
|
273
|
-
|
|
273
|
+
def __init__(
|
|
274
|
+
self,
|
|
274
275
|
*,
|
|
275
|
-
timestamp:
|
|
276
|
-
parent_frame_id:
|
|
277
|
-
child_frame_id:
|
|
278
|
-
translation:
|
|
279
|
-
rotation:
|
|
280
|
-
) ->
|
|
276
|
+
timestamp: Timestamp | None = None,
|
|
277
|
+
parent_frame_id: str = "",
|
|
278
|
+
child_frame_id: str = "",
|
|
279
|
+
translation: Vector3 | None = None,
|
|
280
|
+
rotation: Quaternion | None = None,
|
|
281
|
+
) -> None: ...
|
|
281
282
|
@staticmethod
|
|
282
283
|
def get_schema() -> Schema:
|
|
283
284
|
"""Returns the FrameTransform schema"""
|
|
@@ -292,9 +293,7 @@ class FrameTransforms:
|
|
|
292
293
|
An array of FrameTransform messages
|
|
293
294
|
"""
|
|
294
295
|
|
|
295
|
-
def
|
|
296
|
-
cls, *, transforms: "Optional[List[FrameTransform]]" = []
|
|
297
|
-
) -> "FrameTransforms": ...
|
|
296
|
+
def __init__(self, *, transforms: list[FrameTransform] | None = None) -> None: ...
|
|
298
297
|
@staticmethod
|
|
299
298
|
def get_schema() -> Schema:
|
|
300
299
|
"""Returns the FrameTransforms schema"""
|
|
@@ -309,7 +308,7 @@ class GeoJson:
|
|
|
309
308
|
GeoJSON data for annotating maps
|
|
310
309
|
"""
|
|
311
310
|
|
|
312
|
-
def
|
|
311
|
+
def __init__(self, *, geojson: str = "") -> None: ...
|
|
313
312
|
@staticmethod
|
|
314
313
|
def get_schema() -> Schema:
|
|
315
314
|
"""Returns the GeoJson schema"""
|
|
@@ -324,19 +323,19 @@ class Grid:
|
|
|
324
323
|
A 2D grid of data
|
|
325
324
|
"""
|
|
326
325
|
|
|
327
|
-
def
|
|
328
|
-
|
|
326
|
+
def __init__(
|
|
327
|
+
self,
|
|
329
328
|
*,
|
|
330
|
-
timestamp:
|
|
331
|
-
frame_id:
|
|
332
|
-
pose:
|
|
333
|
-
column_count:
|
|
334
|
-
cell_size:
|
|
335
|
-
row_stride:
|
|
336
|
-
cell_stride:
|
|
337
|
-
fields:
|
|
338
|
-
data:
|
|
339
|
-
) ->
|
|
329
|
+
timestamp: Timestamp | None = None,
|
|
330
|
+
frame_id: str = "",
|
|
331
|
+
pose: Pose | None = None,
|
|
332
|
+
column_count: int = 0,
|
|
333
|
+
cell_size: Vector2 | None = None,
|
|
334
|
+
row_stride: int = 0,
|
|
335
|
+
cell_stride: int = 0,
|
|
336
|
+
fields: list[PackedElementField] | None = None,
|
|
337
|
+
data: bytes = b"",
|
|
338
|
+
) -> None: ...
|
|
340
339
|
@staticmethod
|
|
341
340
|
def get_schema() -> Schema:
|
|
342
341
|
"""Returns the Grid schema"""
|
|
@@ -351,13 +350,13 @@ class ImageAnnotations:
|
|
|
351
350
|
Array of annotations for a 2D image
|
|
352
351
|
"""
|
|
353
352
|
|
|
354
|
-
def
|
|
355
|
-
|
|
353
|
+
def __init__(
|
|
354
|
+
self,
|
|
356
355
|
*,
|
|
357
|
-
circles:
|
|
358
|
-
points:
|
|
359
|
-
texts:
|
|
360
|
-
) ->
|
|
356
|
+
circles: list[CircleAnnotation] | None = None,
|
|
357
|
+
points: list[PointsAnnotation] | None = None,
|
|
358
|
+
texts: list[TextAnnotation] | None = None,
|
|
359
|
+
) -> None: ...
|
|
361
360
|
@staticmethod
|
|
362
361
|
def get_schema() -> Schema:
|
|
363
362
|
"""Returns the ImageAnnotations schema"""
|
|
@@ -372,9 +371,7 @@ class KeyValuePair:
|
|
|
372
371
|
A key with its associated value
|
|
373
372
|
"""
|
|
374
373
|
|
|
375
|
-
def
|
|
376
|
-
cls, *, key: "Optional[str]" = "", value: "Optional[str]" = ""
|
|
377
|
-
) -> "KeyValuePair": ...
|
|
374
|
+
def __init__(self, *, key: str = "", value: str = "") -> None: ...
|
|
378
375
|
@staticmethod
|
|
379
376
|
def get_schema() -> Schema:
|
|
380
377
|
"""Returns the KeyValuePair schema"""
|
|
@@ -389,17 +386,17 @@ class LaserScan:
|
|
|
389
386
|
A single scan from a planar laser range-finder
|
|
390
387
|
"""
|
|
391
388
|
|
|
392
|
-
def
|
|
393
|
-
|
|
389
|
+
def __init__(
|
|
390
|
+
self,
|
|
394
391
|
*,
|
|
395
|
-
timestamp:
|
|
396
|
-
frame_id:
|
|
397
|
-
pose:
|
|
398
|
-
start_angle:
|
|
399
|
-
end_angle:
|
|
400
|
-
ranges:
|
|
401
|
-
intensities:
|
|
402
|
-
) ->
|
|
392
|
+
timestamp: Timestamp | None = None,
|
|
393
|
+
frame_id: str = "",
|
|
394
|
+
pose: Pose | None = None,
|
|
395
|
+
start_angle: float = 0.0,
|
|
396
|
+
end_angle: float = 0.0,
|
|
397
|
+
ranges: list[float] | None = None,
|
|
398
|
+
intensities: list[float] | None = None,
|
|
399
|
+
) -> None: ...
|
|
403
400
|
@staticmethod
|
|
404
401
|
def get_schema() -> Schema:
|
|
405
402
|
"""Returns the LaserScan schema"""
|
|
@@ -414,18 +411,18 @@ class LinePrimitive:
|
|
|
414
411
|
A primitive representing a series of points connected by lines
|
|
415
412
|
"""
|
|
416
413
|
|
|
417
|
-
def
|
|
418
|
-
|
|
414
|
+
def __init__(
|
|
415
|
+
self,
|
|
419
416
|
*,
|
|
420
|
-
type:
|
|
421
|
-
pose:
|
|
422
|
-
thickness:
|
|
423
|
-
scale_invariant:
|
|
424
|
-
points:
|
|
425
|
-
color:
|
|
426
|
-
colors:
|
|
427
|
-
indices:
|
|
428
|
-
) ->
|
|
417
|
+
type: LinePrimitiveLineType = LinePrimitiveLineType.LineStrip,
|
|
418
|
+
pose: Pose | None = None,
|
|
419
|
+
thickness: float = 0.0,
|
|
420
|
+
scale_invariant: bool = False,
|
|
421
|
+
points: list[Point3] | None = None,
|
|
422
|
+
color: Color | None = None,
|
|
423
|
+
colors: list[Color] | None = None,
|
|
424
|
+
indices: list[int] | None = None,
|
|
425
|
+
) -> None: ...
|
|
429
426
|
@staticmethod
|
|
430
427
|
def get_schema() -> Schema:
|
|
431
428
|
"""Returns the LinePrimitive schema"""
|
|
@@ -440,18 +437,18 @@ class LocationFix:
|
|
|
440
437
|
A navigation satellite fix for any Global Navigation Satellite System
|
|
441
438
|
"""
|
|
442
439
|
|
|
443
|
-
def
|
|
444
|
-
|
|
440
|
+
def __init__(
|
|
441
|
+
self,
|
|
445
442
|
*,
|
|
446
|
-
timestamp:
|
|
447
|
-
frame_id:
|
|
448
|
-
latitude:
|
|
449
|
-
longitude:
|
|
450
|
-
altitude:
|
|
451
|
-
position_covariance:
|
|
452
|
-
position_covariance_type:
|
|
453
|
-
color:
|
|
454
|
-
) ->
|
|
443
|
+
timestamp: Timestamp | None = None,
|
|
444
|
+
frame_id: str = "",
|
|
445
|
+
latitude: float = 0.0,
|
|
446
|
+
longitude: float = 0.0,
|
|
447
|
+
altitude: float = 0.0,
|
|
448
|
+
position_covariance: list[float] | None = None,
|
|
449
|
+
position_covariance_type: LocationFixPositionCovarianceType = LocationFixPositionCovarianceType.Unknown,
|
|
450
|
+
color: Color | None = None,
|
|
451
|
+
) -> None: ...
|
|
455
452
|
@staticmethod
|
|
456
453
|
def get_schema() -> Schema:
|
|
457
454
|
"""Returns the LocationFix schema"""
|
|
@@ -466,9 +463,7 @@ class LocationFixes:
|
|
|
466
463
|
A group of LocationFix messages
|
|
467
464
|
"""
|
|
468
465
|
|
|
469
|
-
def
|
|
470
|
-
cls, *, fixes: "Optional[List[LocationFix]]" = []
|
|
471
|
-
) -> "LocationFixes": ...
|
|
466
|
+
def __init__(self, *, fixes: list[LocationFix] | None = None) -> None: ...
|
|
472
467
|
@staticmethod
|
|
473
468
|
def get_schema() -> Schema:
|
|
474
469
|
"""Returns the LocationFixes schema"""
|
|
@@ -483,16 +478,16 @@ class Log:
|
|
|
483
478
|
A log message
|
|
484
479
|
"""
|
|
485
480
|
|
|
486
|
-
def
|
|
487
|
-
|
|
481
|
+
def __init__(
|
|
482
|
+
self,
|
|
488
483
|
*,
|
|
489
|
-
timestamp:
|
|
490
|
-
level:
|
|
491
|
-
message:
|
|
492
|
-
name:
|
|
493
|
-
file:
|
|
494
|
-
line:
|
|
495
|
-
) ->
|
|
484
|
+
timestamp: Timestamp | None = None,
|
|
485
|
+
level: LogLevel = LogLevel.Unknown,
|
|
486
|
+
message: str = "",
|
|
487
|
+
name: str = "",
|
|
488
|
+
file: str = "",
|
|
489
|
+
line: int = 0,
|
|
490
|
+
) -> None: ...
|
|
496
491
|
@staticmethod
|
|
497
492
|
def get_schema() -> Schema:
|
|
498
493
|
"""Returns the Log schema"""
|
|
@@ -507,17 +502,17 @@ class ModelPrimitive:
|
|
|
507
502
|
A primitive representing a 3D model file loaded from an external URL or embedded data
|
|
508
503
|
"""
|
|
509
504
|
|
|
510
|
-
def
|
|
511
|
-
|
|
505
|
+
def __init__(
|
|
506
|
+
self,
|
|
512
507
|
*,
|
|
513
|
-
pose:
|
|
514
|
-
scale:
|
|
515
|
-
color:
|
|
516
|
-
override_color:
|
|
517
|
-
url:
|
|
518
|
-
media_type:
|
|
519
|
-
data:
|
|
520
|
-
) ->
|
|
508
|
+
pose: Pose | None = None,
|
|
509
|
+
scale: Vector3 | None = None,
|
|
510
|
+
color: Color | None = None,
|
|
511
|
+
override_color: bool = False,
|
|
512
|
+
url: str = "",
|
|
513
|
+
media_type: str = "",
|
|
514
|
+
data: bytes = b"",
|
|
515
|
+
) -> None: ...
|
|
521
516
|
@staticmethod
|
|
522
517
|
def get_schema() -> Schema:
|
|
523
518
|
"""Returns the ModelPrimitive schema"""
|
|
@@ -532,13 +527,13 @@ class PackedElementField:
|
|
|
532
527
|
A field present within each element in a byte array of packed elements.
|
|
533
528
|
"""
|
|
534
529
|
|
|
535
|
-
def
|
|
536
|
-
|
|
530
|
+
def __init__(
|
|
531
|
+
self,
|
|
537
532
|
*,
|
|
538
|
-
name:
|
|
539
|
-
offset:
|
|
540
|
-
type:
|
|
541
|
-
) ->
|
|
533
|
+
name: str = "",
|
|
534
|
+
offset: int = 0,
|
|
535
|
+
type: PackedElementFieldNumericType = PackedElementFieldNumericType.Unknown,
|
|
536
|
+
) -> None: ...
|
|
542
537
|
@staticmethod
|
|
543
538
|
def get_schema() -> Schema:
|
|
544
539
|
"""Returns the PackedElementField schema"""
|
|
@@ -553,9 +548,7 @@ class Point2:
|
|
|
553
548
|
A point representing a position in 2D space
|
|
554
549
|
"""
|
|
555
550
|
|
|
556
|
-
def
|
|
557
|
-
cls, *, x: "Optional[float]" = 0.0, y: "Optional[float]" = 0.0
|
|
558
|
-
) -> "Point2": ...
|
|
551
|
+
def __init__(self, *, x: float = 0.0, y: float = 0.0) -> None: ...
|
|
559
552
|
@staticmethod
|
|
560
553
|
def get_schema() -> Schema:
|
|
561
554
|
"""Returns the Point2 schema"""
|
|
@@ -570,13 +563,7 @@ class Point3:
|
|
|
570
563
|
A point representing a position in 3D space
|
|
571
564
|
"""
|
|
572
565
|
|
|
573
|
-
def
|
|
574
|
-
cls,
|
|
575
|
-
*,
|
|
576
|
-
x: "Optional[float]" = 0.0,
|
|
577
|
-
y: "Optional[float]" = 0.0,
|
|
578
|
-
z: "Optional[float]" = 0.0,
|
|
579
|
-
) -> "Point3": ...
|
|
566
|
+
def __init__(self, *, x: float = 0.0, y: float = 0.0, z: float = 0.0) -> None: ...
|
|
580
567
|
@staticmethod
|
|
581
568
|
def get_schema() -> Schema:
|
|
582
569
|
"""Returns the Point3 schema"""
|
|
@@ -586,21 +573,42 @@ class Point3:
|
|
|
586
573
|
"""Encodes the Point3."""
|
|
587
574
|
...
|
|
588
575
|
|
|
576
|
+
class Point3InFrame:
|
|
577
|
+
"""
|
|
578
|
+
A timestamped point for a position in 3D space
|
|
579
|
+
"""
|
|
580
|
+
|
|
581
|
+
def __init__(
|
|
582
|
+
self,
|
|
583
|
+
*,
|
|
584
|
+
timestamp: Timestamp | None = None,
|
|
585
|
+
frame_id: str = "",
|
|
586
|
+
point: Point3 | None = None,
|
|
587
|
+
) -> None: ...
|
|
588
|
+
@staticmethod
|
|
589
|
+
def get_schema() -> Schema:
|
|
590
|
+
"""Returns the Point3InFrame schema"""
|
|
591
|
+
...
|
|
592
|
+
|
|
593
|
+
def encode(self) -> bytes:
|
|
594
|
+
"""Encodes the Point3InFrame."""
|
|
595
|
+
...
|
|
596
|
+
|
|
589
597
|
class PointCloud:
|
|
590
598
|
"""
|
|
591
599
|
A collection of N-dimensional points, which may contain additional fields with information like normals, intensity, etc.
|
|
592
600
|
"""
|
|
593
601
|
|
|
594
|
-
def
|
|
595
|
-
|
|
602
|
+
def __init__(
|
|
603
|
+
self,
|
|
596
604
|
*,
|
|
597
|
-
timestamp:
|
|
598
|
-
frame_id:
|
|
599
|
-
pose:
|
|
600
|
-
point_stride:
|
|
601
|
-
fields:
|
|
602
|
-
data:
|
|
603
|
-
) ->
|
|
605
|
+
timestamp: Timestamp | None = None,
|
|
606
|
+
frame_id: str = "",
|
|
607
|
+
pose: Pose | None = None,
|
|
608
|
+
point_stride: int = 0,
|
|
609
|
+
fields: list[PackedElementField] | None = None,
|
|
610
|
+
data: bytes = b"",
|
|
611
|
+
) -> None: ...
|
|
604
612
|
@staticmethod
|
|
605
613
|
def get_schema() -> Schema:
|
|
606
614
|
"""Returns the PointCloud schema"""
|
|
@@ -615,17 +623,17 @@ class PointsAnnotation:
|
|
|
615
623
|
An array of points on a 2D image
|
|
616
624
|
"""
|
|
617
625
|
|
|
618
|
-
def
|
|
619
|
-
|
|
626
|
+
def __init__(
|
|
627
|
+
self,
|
|
620
628
|
*,
|
|
621
|
-
timestamp:
|
|
622
|
-
type:
|
|
623
|
-
points:
|
|
624
|
-
outline_color:
|
|
625
|
-
outline_colors:
|
|
626
|
-
fill_color:
|
|
627
|
-
thickness:
|
|
628
|
-
) ->
|
|
629
|
+
timestamp: Timestamp | None = None,
|
|
630
|
+
type: PointsAnnotationType = PointsAnnotationType.Unknown,
|
|
631
|
+
points: list[Point2] | None = None,
|
|
632
|
+
outline_color: Color | None = None,
|
|
633
|
+
outline_colors: list[Color] | None = None,
|
|
634
|
+
fill_color: Color | None = None,
|
|
635
|
+
thickness: float = 0.0,
|
|
636
|
+
) -> None: ...
|
|
629
637
|
@staticmethod
|
|
630
638
|
def get_schema() -> Schema:
|
|
631
639
|
"""Returns the PointsAnnotation schema"""
|
|
@@ -640,12 +648,9 @@ class Pose:
|
|
|
640
648
|
A position and orientation for an object or reference frame in 3D space
|
|
641
649
|
"""
|
|
642
650
|
|
|
643
|
-
def
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
position: "Optional[Vector3]" = None,
|
|
647
|
-
orientation: "Optional[Quaternion]" = None,
|
|
648
|
-
) -> "Pose": ...
|
|
651
|
+
def __init__(
|
|
652
|
+
self, *, position: Vector3 | None = None, orientation: Quaternion | None = None
|
|
653
|
+
) -> None: ...
|
|
649
654
|
@staticmethod
|
|
650
655
|
def get_schema() -> Schema:
|
|
651
656
|
"""Returns the Pose schema"""
|
|
@@ -660,13 +665,13 @@ class PoseInFrame:
|
|
|
660
665
|
A timestamped pose for an object or reference frame in 3D space
|
|
661
666
|
"""
|
|
662
667
|
|
|
663
|
-
def
|
|
664
|
-
|
|
668
|
+
def __init__(
|
|
669
|
+
self,
|
|
665
670
|
*,
|
|
666
|
-
timestamp:
|
|
667
|
-
frame_id:
|
|
668
|
-
pose:
|
|
669
|
-
) ->
|
|
671
|
+
timestamp: Timestamp | None = None,
|
|
672
|
+
frame_id: str = "",
|
|
673
|
+
pose: Pose | None = None,
|
|
674
|
+
) -> None: ...
|
|
670
675
|
@staticmethod
|
|
671
676
|
def get_schema() -> Schema:
|
|
672
677
|
"""Returns the PoseInFrame schema"""
|
|
@@ -681,13 +686,13 @@ class PosesInFrame:
|
|
|
681
686
|
An array of timestamped poses for an object or reference frame in 3D space
|
|
682
687
|
"""
|
|
683
688
|
|
|
684
|
-
def
|
|
685
|
-
|
|
689
|
+
def __init__(
|
|
690
|
+
self,
|
|
686
691
|
*,
|
|
687
|
-
timestamp:
|
|
688
|
-
frame_id:
|
|
689
|
-
poses:
|
|
690
|
-
) ->
|
|
692
|
+
timestamp: Timestamp | None = None,
|
|
693
|
+
frame_id: str = "",
|
|
694
|
+
poses: list[Pose] | None = None,
|
|
695
|
+
) -> None: ...
|
|
691
696
|
@staticmethod
|
|
692
697
|
def get_schema() -> Schema:
|
|
693
698
|
"""Returns the PosesInFrame schema"""
|
|
@@ -702,14 +707,9 @@ class Quaternion:
|
|
|
702
707
|
A [quaternion](https://eater.net/quaternions) representing a rotation in 3D space
|
|
703
708
|
"""
|
|
704
709
|
|
|
705
|
-
def
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
x: "Optional[float]" = 0.0,
|
|
709
|
-
y: "Optional[float]" = 0.0,
|
|
710
|
-
z: "Optional[float]" = 0.0,
|
|
711
|
-
w: "Optional[float]" = 0.0,
|
|
712
|
-
) -> "Quaternion": ...
|
|
710
|
+
def __init__(
|
|
711
|
+
self, *, x: float = 0.0, y: float = 0.0, z: float = 0.0, w: float = 0.0
|
|
712
|
+
) -> None: ...
|
|
713
713
|
@staticmethod
|
|
714
714
|
def get_schema() -> Schema:
|
|
715
715
|
"""Returns the Quaternion schema"""
|
|
@@ -724,15 +724,15 @@ class RawAudio:
|
|
|
724
724
|
A single block of an audio bitstream
|
|
725
725
|
"""
|
|
726
726
|
|
|
727
|
-
def
|
|
728
|
-
|
|
727
|
+
def __init__(
|
|
728
|
+
self,
|
|
729
729
|
*,
|
|
730
|
-
timestamp:
|
|
731
|
-
data:
|
|
732
|
-
format:
|
|
733
|
-
sample_rate:
|
|
734
|
-
number_of_channels:
|
|
735
|
-
) ->
|
|
730
|
+
timestamp: Timestamp | None = None,
|
|
731
|
+
data: bytes = b"",
|
|
732
|
+
format: str = "",
|
|
733
|
+
sample_rate: int = 0,
|
|
734
|
+
number_of_channels: int = 0,
|
|
735
|
+
) -> None: ...
|
|
736
736
|
@staticmethod
|
|
737
737
|
def get_schema() -> Schema:
|
|
738
738
|
"""Returns the RawAudio schema"""
|
|
@@ -747,17 +747,17 @@ class RawImage:
|
|
|
747
747
|
A raw image
|
|
748
748
|
"""
|
|
749
749
|
|
|
750
|
-
def
|
|
751
|
-
|
|
750
|
+
def __init__(
|
|
751
|
+
self,
|
|
752
752
|
*,
|
|
753
|
-
timestamp:
|
|
754
|
-
frame_id:
|
|
755
|
-
width:
|
|
756
|
-
height:
|
|
757
|
-
encoding:
|
|
758
|
-
step:
|
|
759
|
-
data:
|
|
760
|
-
) ->
|
|
753
|
+
timestamp: Timestamp | None = None,
|
|
754
|
+
frame_id: str = "",
|
|
755
|
+
width: int = 0,
|
|
756
|
+
height: int = 0,
|
|
757
|
+
encoding: str = "",
|
|
758
|
+
step: int = 0,
|
|
759
|
+
data: bytes = b"",
|
|
760
|
+
) -> None: ...
|
|
761
761
|
@staticmethod
|
|
762
762
|
def get_schema() -> Schema:
|
|
763
763
|
"""Returns the RawImage schema"""
|
|
@@ -772,24 +772,24 @@ class SceneEntity:
|
|
|
772
772
|
A visual element in a 3D scene. An entity may be composed of multiple primitives which all share the same frame of reference.
|
|
773
773
|
"""
|
|
774
774
|
|
|
775
|
-
def
|
|
776
|
-
|
|
775
|
+
def __init__(
|
|
776
|
+
self,
|
|
777
777
|
*,
|
|
778
|
-
timestamp:
|
|
779
|
-
frame_id:
|
|
780
|
-
id:
|
|
781
|
-
lifetime:
|
|
782
|
-
frame_locked:
|
|
783
|
-
metadata:
|
|
784
|
-
arrows:
|
|
785
|
-
cubes:
|
|
786
|
-
spheres:
|
|
787
|
-
cylinders:
|
|
788
|
-
lines:
|
|
789
|
-
triangles:
|
|
790
|
-
texts:
|
|
791
|
-
models:
|
|
792
|
-
) ->
|
|
778
|
+
timestamp: Timestamp | None = None,
|
|
779
|
+
frame_id: str = "",
|
|
780
|
+
id: str = "",
|
|
781
|
+
lifetime: Duration | None = None,
|
|
782
|
+
frame_locked: bool = False,
|
|
783
|
+
metadata: list[KeyValuePair] | None = None,
|
|
784
|
+
arrows: list[ArrowPrimitive] | None = None,
|
|
785
|
+
cubes: list[CubePrimitive] | None = None,
|
|
786
|
+
spheres: list[SpherePrimitive] | None = None,
|
|
787
|
+
cylinders: list[CylinderPrimitive] | None = None,
|
|
788
|
+
lines: list[LinePrimitive] | None = None,
|
|
789
|
+
triangles: list[TriangleListPrimitive] | None = None,
|
|
790
|
+
texts: list[TextPrimitive] | None = None,
|
|
791
|
+
models: list[ModelPrimitive] | None = None,
|
|
792
|
+
) -> None: ...
|
|
793
793
|
@staticmethod
|
|
794
794
|
def get_schema() -> Schema:
|
|
795
795
|
"""Returns the SceneEntity schema"""
|
|
@@ -804,13 +804,13 @@ class SceneEntityDeletion:
|
|
|
804
804
|
Command to remove previously published entities
|
|
805
805
|
"""
|
|
806
806
|
|
|
807
|
-
def
|
|
808
|
-
|
|
807
|
+
def __init__(
|
|
808
|
+
self,
|
|
809
809
|
*,
|
|
810
|
-
timestamp:
|
|
811
|
-
type:
|
|
812
|
-
id:
|
|
813
|
-
) ->
|
|
810
|
+
timestamp: Timestamp | None = None,
|
|
811
|
+
type: SceneEntityDeletionType = SceneEntityDeletionType.MatchingId,
|
|
812
|
+
id: str = "",
|
|
813
|
+
) -> None: ...
|
|
814
814
|
@staticmethod
|
|
815
815
|
def get_schema() -> Schema:
|
|
816
816
|
"""Returns the SceneEntityDeletion schema"""
|
|
@@ -825,12 +825,12 @@ class SceneUpdate:
|
|
|
825
825
|
An update to the entities displayed in a 3D scene
|
|
826
826
|
"""
|
|
827
827
|
|
|
828
|
-
def
|
|
829
|
-
|
|
828
|
+
def __init__(
|
|
829
|
+
self,
|
|
830
830
|
*,
|
|
831
|
-
deletions:
|
|
832
|
-
entities:
|
|
833
|
-
) ->
|
|
831
|
+
deletions: list[SceneEntityDeletion] | None = None,
|
|
832
|
+
entities: list[SceneEntity] | None = None,
|
|
833
|
+
) -> None: ...
|
|
834
834
|
@staticmethod
|
|
835
835
|
def get_schema() -> Schema:
|
|
836
836
|
"""Returns the SceneUpdate schema"""
|
|
@@ -845,13 +845,13 @@ class SpherePrimitive:
|
|
|
845
845
|
A primitive representing a sphere or ellipsoid
|
|
846
846
|
"""
|
|
847
847
|
|
|
848
|
-
def
|
|
849
|
-
|
|
848
|
+
def __init__(
|
|
849
|
+
self,
|
|
850
850
|
*,
|
|
851
|
-
pose:
|
|
852
|
-
size:
|
|
853
|
-
color:
|
|
854
|
-
) ->
|
|
851
|
+
pose: Pose | None = None,
|
|
852
|
+
size: Vector3 | None = None,
|
|
853
|
+
color: Color | None = None,
|
|
854
|
+
) -> None: ...
|
|
855
855
|
@staticmethod
|
|
856
856
|
def get_schema() -> Schema:
|
|
857
857
|
"""Returns the SpherePrimitive schema"""
|
|
@@ -866,16 +866,16 @@ class TextAnnotation:
|
|
|
866
866
|
A text label on a 2D image
|
|
867
867
|
"""
|
|
868
868
|
|
|
869
|
-
def
|
|
870
|
-
|
|
869
|
+
def __init__(
|
|
870
|
+
self,
|
|
871
871
|
*,
|
|
872
|
-
timestamp:
|
|
873
|
-
position:
|
|
874
|
-
text:
|
|
875
|
-
font_size:
|
|
876
|
-
text_color:
|
|
877
|
-
background_color:
|
|
878
|
-
) ->
|
|
872
|
+
timestamp: Timestamp | None = None,
|
|
873
|
+
position: Point2 | None = None,
|
|
874
|
+
text: str = "",
|
|
875
|
+
font_size: float = 0.0,
|
|
876
|
+
text_color: Color | None = None,
|
|
877
|
+
background_color: Color | None = None,
|
|
878
|
+
) -> None: ...
|
|
879
879
|
@staticmethod
|
|
880
880
|
def get_schema() -> Schema:
|
|
881
881
|
"""Returns the TextAnnotation schema"""
|
|
@@ -890,16 +890,16 @@ class TextPrimitive:
|
|
|
890
890
|
A primitive representing a text label
|
|
891
891
|
"""
|
|
892
892
|
|
|
893
|
-
def
|
|
894
|
-
|
|
893
|
+
def __init__(
|
|
894
|
+
self,
|
|
895
895
|
*,
|
|
896
|
-
pose:
|
|
897
|
-
billboard:
|
|
898
|
-
font_size:
|
|
899
|
-
scale_invariant:
|
|
900
|
-
color:
|
|
901
|
-
text:
|
|
902
|
-
) ->
|
|
896
|
+
pose: Pose | None = None,
|
|
897
|
+
billboard: bool = False,
|
|
898
|
+
font_size: float = 0.0,
|
|
899
|
+
scale_invariant: bool = False,
|
|
900
|
+
color: Color | None = None,
|
|
901
|
+
text: str = "",
|
|
902
|
+
) -> None: ...
|
|
903
903
|
@staticmethod
|
|
904
904
|
def get_schema() -> Schema:
|
|
905
905
|
"""Returns the TextPrimitive schema"""
|
|
@@ -914,15 +914,15 @@ class TriangleListPrimitive:
|
|
|
914
914
|
A primitive representing a set of triangles or a surface tiled by triangles
|
|
915
915
|
"""
|
|
916
916
|
|
|
917
|
-
def
|
|
918
|
-
|
|
917
|
+
def __init__(
|
|
918
|
+
self,
|
|
919
919
|
*,
|
|
920
|
-
pose:
|
|
921
|
-
points:
|
|
922
|
-
color:
|
|
923
|
-
colors:
|
|
924
|
-
indices:
|
|
925
|
-
) ->
|
|
920
|
+
pose: Pose | None = None,
|
|
921
|
+
points: list[Point3] | None = None,
|
|
922
|
+
color: Color | None = None,
|
|
923
|
+
colors: list[Color] | None = None,
|
|
924
|
+
indices: list[int] | None = None,
|
|
925
|
+
) -> None: ...
|
|
926
926
|
@staticmethod
|
|
927
927
|
def get_schema() -> Schema:
|
|
928
928
|
"""Returns the TriangleListPrimitive schema"""
|
|
@@ -937,9 +937,7 @@ class Vector2:
|
|
|
937
937
|
A vector in 2D space that represents a direction only
|
|
938
938
|
"""
|
|
939
939
|
|
|
940
|
-
def
|
|
941
|
-
cls, *, x: "Optional[float]" = 0.0, y: "Optional[float]" = 0.0
|
|
942
|
-
) -> "Vector2": ...
|
|
940
|
+
def __init__(self, *, x: float = 0.0, y: float = 0.0) -> None: ...
|
|
943
941
|
@staticmethod
|
|
944
942
|
def get_schema() -> Schema:
|
|
945
943
|
"""Returns the Vector2 schema"""
|
|
@@ -954,13 +952,7 @@ class Vector3:
|
|
|
954
952
|
A vector in 3D space that represents a direction only
|
|
955
953
|
"""
|
|
956
954
|
|
|
957
|
-
def
|
|
958
|
-
cls,
|
|
959
|
-
*,
|
|
960
|
-
x: "Optional[float]" = 0.0,
|
|
961
|
-
y: "Optional[float]" = 0.0,
|
|
962
|
-
z: "Optional[float]" = 0.0,
|
|
963
|
-
) -> "Vector3": ...
|
|
955
|
+
def __init__(self, *, x: float = 0.0, y: float = 0.0, z: float = 0.0) -> None: ...
|
|
964
956
|
@staticmethod
|
|
965
957
|
def get_schema() -> Schema:
|
|
966
958
|
"""Returns the Vector3 schema"""
|
|
@@ -975,21 +967,21 @@ class VoxelGrid:
|
|
|
975
967
|
A 3D grid of data
|
|
976
968
|
"""
|
|
977
969
|
|
|
978
|
-
def
|
|
979
|
-
|
|
970
|
+
def __init__(
|
|
971
|
+
self,
|
|
980
972
|
*,
|
|
981
|
-
timestamp:
|
|
982
|
-
frame_id:
|
|
983
|
-
pose:
|
|
984
|
-
row_count:
|
|
985
|
-
column_count:
|
|
986
|
-
cell_size:
|
|
987
|
-
slice_stride:
|
|
988
|
-
row_stride:
|
|
989
|
-
cell_stride:
|
|
990
|
-
fields:
|
|
991
|
-
data:
|
|
992
|
-
) ->
|
|
973
|
+
timestamp: Timestamp | None = None,
|
|
974
|
+
frame_id: str = "",
|
|
975
|
+
pose: Pose | None = None,
|
|
976
|
+
row_count: int = 0,
|
|
977
|
+
column_count: int = 0,
|
|
978
|
+
cell_size: Vector3 | None = None,
|
|
979
|
+
slice_stride: int = 0,
|
|
980
|
+
row_stride: int = 0,
|
|
981
|
+
cell_stride: int = 0,
|
|
982
|
+
fields: list[PackedElementField] | None = None,
|
|
983
|
+
data: bytes = b"",
|
|
984
|
+
) -> None: ...
|
|
993
985
|
@staticmethod
|
|
994
986
|
def get_schema() -> Schema:
|
|
995
987
|
"""Returns the VoxelGrid schema"""
|
|
@@ -1027,6 +1019,7 @@ FoxgloveSchema = Union[
|
|
|
1027
1019
|
PackedElementField,
|
|
1028
1020
|
Point2,
|
|
1029
1021
|
Point3,
|
|
1022
|
+
Point3InFrame,
|
|
1030
1023
|
PointCloud,
|
|
1031
1024
|
PointsAnnotation,
|
|
1032
1025
|
Pose,
|