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.
@@ -1,6 +1,6 @@
1
1
  # Generated by https://github.com/foxglove/foxglove-sdk
2
2
  from enum import Enum
3
- from typing import List, Optional, Union
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 __new__(
88
- cls,
87
+ def __init__(
88
+ self,
89
89
  *,
90
- pose: "Optional[Pose]" = None,
91
- shaft_length: "Optional[float]" = 0.0,
92
- shaft_diameter: "Optional[float]" = 0.0,
93
- head_length: "Optional[float]" = 0.0,
94
- head_diameter: "Optional[float]" = 0.0,
95
- color: "Optional[Color]" = None,
96
- ) -> "ArrowPrimitive": ...
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 __new__(
112
- cls,
111
+ def __init__(
112
+ self,
113
113
  *,
114
- timestamp: "Optional[Timestamp]" = None,
115
- frame_id: "Optional[str]" = "",
116
- width: "Optional[int]" = 0,
117
- height: "Optional[int]" = 0,
118
- distortion_model: "Optional[str]" = "",
119
- D: "Optional[List[float]]" = [],
120
- K: "Optional[List[float]]" = [],
121
- R: "Optional[List[float]]" = [],
122
- P: "Optional[List[float]]" = [],
123
- ) -> "CameraCalibration": ...
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 __new__(
139
- cls,
138
+ def __init__(
139
+ self,
140
140
  *,
141
- timestamp: "Optional[Timestamp]" = None,
142
- position: "Optional[Point2]" = None,
143
- diameter: "Optional[float]" = 0.0,
144
- thickness: "Optional[float]" = 0.0,
145
- fill_color: "Optional[Color]" = None,
146
- outline_color: "Optional[Color]" = None,
147
- ) -> "CircleAnnotation": ...
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 __new__(
163
- cls,
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 __new__(
185
- cls,
179
+ def __init__(
180
+ self,
186
181
  *,
187
- timestamp: "Optional[Timestamp]" = None,
188
- frame_id: "Optional[str]" = "",
189
- data: "Optional[bytes]" = b"",
190
- format: "Optional[str]" = "",
191
- ) -> "CompressedImage": ...
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 __new__(
207
- cls,
201
+ def __init__(
202
+ self,
208
203
  *,
209
- timestamp: "Optional[Timestamp]" = None,
210
- frame_id: "Optional[str]" = "",
211
- data: "Optional[bytes]" = b"",
212
- format: "Optional[str]" = "",
213
- ) -> "CompressedVideo": ...
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 __new__(
229
- cls,
223
+ def __init__(
224
+ self,
230
225
  *,
231
- pose: "Optional[Pose]" = None,
232
- size: "Optional[Vector3]" = None,
233
- color: "Optional[Color]" = None,
234
- ) -> "CubePrimitive": ...
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 __new__(
250
- cls,
244
+ def __init__(
245
+ self,
251
246
  *,
252
- pose: "Optional[Pose]" = None,
253
- size: "Optional[Vector3]" = None,
254
- bottom_scale: "Optional[float]" = 0.0,
255
- top_scale: "Optional[float]" = 0.0,
256
- color: "Optional[Color]" = None,
257
- ) -> "CylinderPrimitive": ...
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
- A transform between two reference frames in 3D space
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 __new__(
273
- cls,
273
+ def __init__(
274
+ self,
274
275
  *,
275
- timestamp: "Optional[Timestamp]" = None,
276
- parent_frame_id: "Optional[str]" = "",
277
- child_frame_id: "Optional[str]" = "",
278
- translation: "Optional[Vector3]" = None,
279
- rotation: "Optional[Quaternion]" = None,
280
- ) -> "FrameTransform": ...
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 __new__(
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 __new__(cls, *, geojson: "Optional[str]" = "") -> "GeoJson": ...
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 __new__(
328
- cls,
326
+ def __init__(
327
+ self,
329
328
  *,
330
- timestamp: "Optional[Timestamp]" = None,
331
- frame_id: "Optional[str]" = "",
332
- pose: "Optional[Pose]" = None,
333
- column_count: "Optional[int]" = 0,
334
- cell_size: "Optional[Vector2]" = None,
335
- row_stride: "Optional[int]" = 0,
336
- cell_stride: "Optional[int]" = 0,
337
- fields: "Optional[List[PackedElementField]]" = [],
338
- data: "Optional[bytes]" = b"",
339
- ) -> "Grid": ...
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 __new__(
355
- cls,
353
+ def __init__(
354
+ self,
356
355
  *,
357
- circles: "Optional[List[CircleAnnotation]]" = [],
358
- points: "Optional[List[PointsAnnotation]]" = [],
359
- texts: "Optional[List[TextAnnotation]]" = [],
360
- ) -> "ImageAnnotations": ...
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 __new__(
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 __new__(
393
- cls,
389
+ def __init__(
390
+ self,
394
391
  *,
395
- timestamp: "Optional[Timestamp]" = None,
396
- frame_id: "Optional[str]" = "",
397
- pose: "Optional[Pose]" = None,
398
- start_angle: "Optional[float]" = 0.0,
399
- end_angle: "Optional[float]" = 0.0,
400
- ranges: "Optional[List[float]]" = [],
401
- intensities: "Optional[List[float]]" = [],
402
- ) -> "LaserScan": ...
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 __new__(
418
- cls,
414
+ def __init__(
415
+ self,
419
416
  *,
420
- type: "Optional[LinePrimitiveLineType]" = LinePrimitiveLineType.LineStrip,
421
- pose: "Optional[Pose]" = None,
422
- thickness: "Optional[float]" = 0.0,
423
- scale_invariant: "Optional[bool]" = False,
424
- points: "Optional[List[Point3]]" = [],
425
- color: "Optional[Color]" = None,
426
- colors: "Optional[List[Color]]" = [],
427
- indices: "Optional[List[int]]" = [],
428
- ) -> "LinePrimitive": ...
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 __new__(
444
- cls,
440
+ def __init__(
441
+ self,
445
442
  *,
446
- timestamp: "Optional[Timestamp]" = None,
447
- frame_id: "Optional[str]" = "",
448
- latitude: "Optional[float]" = 0.0,
449
- longitude: "Optional[float]" = 0.0,
450
- altitude: "Optional[float]" = 0.0,
451
- position_covariance: "Optional[List[float]]" = [],
452
- position_covariance_type: "Optional[LocationFixPositionCovarianceType]" = LocationFixPositionCovarianceType.Unknown,
453
- color: "Optional[Color]" = None,
454
- ) -> "LocationFix": ...
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 __new__(
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 __new__(
487
- cls,
481
+ def __init__(
482
+ self,
488
483
  *,
489
- timestamp: "Optional[Timestamp]" = None,
490
- level: "Optional[LogLevel]" = LogLevel.Unknown,
491
- message: "Optional[str]" = "",
492
- name: "Optional[str]" = "",
493
- file: "Optional[str]" = "",
494
- line: "Optional[int]" = 0,
495
- ) -> "Log": ...
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 __new__(
511
- cls,
505
+ def __init__(
506
+ self,
512
507
  *,
513
- pose: "Optional[Pose]" = None,
514
- scale: "Optional[Vector3]" = None,
515
- color: "Optional[Color]" = None,
516
- override_color: "Optional[bool]" = False,
517
- url: "Optional[str]" = "",
518
- media_type: "Optional[str]" = "",
519
- data: "Optional[bytes]" = b"",
520
- ) -> "ModelPrimitive": ...
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 __new__(
536
- cls,
530
+ def __init__(
531
+ self,
537
532
  *,
538
- name: "Optional[str]" = "",
539
- offset: "Optional[int]" = 0,
540
- type: "Optional[PackedElementFieldNumericType]" = PackedElementFieldNumericType.Unknown,
541
- ) -> "PackedElementField": ...
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 __new__(
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 __new__(
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 __new__(
595
- cls,
602
+ def __init__(
603
+ self,
596
604
  *,
597
- timestamp: "Optional[Timestamp]" = None,
598
- frame_id: "Optional[str]" = "",
599
- pose: "Optional[Pose]" = None,
600
- point_stride: "Optional[int]" = 0,
601
- fields: "Optional[List[PackedElementField]]" = [],
602
- data: "Optional[bytes]" = b"",
603
- ) -> "PointCloud": ...
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 __new__(
619
- cls,
626
+ def __init__(
627
+ self,
620
628
  *,
621
- timestamp: "Optional[Timestamp]" = None,
622
- type: "Optional[PointsAnnotationType]" = PointsAnnotationType.Unknown,
623
- points: "Optional[List[Point2]]" = [],
624
- outline_color: "Optional[Color]" = None,
625
- outline_colors: "Optional[List[Color]]" = [],
626
- fill_color: "Optional[Color]" = None,
627
- thickness: "Optional[float]" = 0.0,
628
- ) -> "PointsAnnotation": ...
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 __new__(
644
- cls,
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 __new__(
664
- cls,
668
+ def __init__(
669
+ self,
665
670
  *,
666
- timestamp: "Optional[Timestamp]" = None,
667
- frame_id: "Optional[str]" = "",
668
- pose: "Optional[Pose]" = None,
669
- ) -> "PoseInFrame": ...
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 __new__(
685
- cls,
689
+ def __init__(
690
+ self,
686
691
  *,
687
- timestamp: "Optional[Timestamp]" = None,
688
- frame_id: "Optional[str]" = "",
689
- poses: "Optional[List[Pose]]" = [],
690
- ) -> "PosesInFrame": ...
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 __new__(
706
- cls,
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 __new__(
728
- cls,
727
+ def __init__(
728
+ self,
729
729
  *,
730
- timestamp: "Optional[Timestamp]" = None,
731
- data: "Optional[bytes]" = b"",
732
- format: "Optional[str]" = "",
733
- sample_rate: "Optional[int]" = 0,
734
- number_of_channels: "Optional[int]" = 0,
735
- ) -> "RawAudio": ...
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 __new__(
751
- cls,
750
+ def __init__(
751
+ self,
752
752
  *,
753
- timestamp: "Optional[Timestamp]" = None,
754
- frame_id: "Optional[str]" = "",
755
- width: "Optional[int]" = 0,
756
- height: "Optional[int]" = 0,
757
- encoding: "Optional[str]" = "",
758
- step: "Optional[int]" = 0,
759
- data: "Optional[bytes]" = b"",
760
- ) -> "RawImage": ...
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 __new__(
776
- cls,
775
+ def __init__(
776
+ self,
777
777
  *,
778
- timestamp: "Optional[Timestamp]" = None,
779
- frame_id: "Optional[str]" = "",
780
- id: "Optional[str]" = "",
781
- lifetime: "Optional[Duration]" = None,
782
- frame_locked: "Optional[bool]" = False,
783
- metadata: "Optional[List[KeyValuePair]]" = [],
784
- arrows: "Optional[List[ArrowPrimitive]]" = [],
785
- cubes: "Optional[List[CubePrimitive]]" = [],
786
- spheres: "Optional[List[SpherePrimitive]]" = [],
787
- cylinders: "Optional[List[CylinderPrimitive]]" = [],
788
- lines: "Optional[List[LinePrimitive]]" = [],
789
- triangles: "Optional[List[TriangleListPrimitive]]" = [],
790
- texts: "Optional[List[TextPrimitive]]" = [],
791
- models: "Optional[List[ModelPrimitive]]" = [],
792
- ) -> "SceneEntity": ...
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 __new__(
808
- cls,
807
+ def __init__(
808
+ self,
809
809
  *,
810
- timestamp: "Optional[Timestamp]" = None,
811
- type: "Optional[SceneEntityDeletionType]" = SceneEntityDeletionType.MatchingId,
812
- id: "Optional[str]" = "",
813
- ) -> "SceneEntityDeletion": ...
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 __new__(
829
- cls,
828
+ def __init__(
829
+ self,
830
830
  *,
831
- deletions: "Optional[List[SceneEntityDeletion]]" = [],
832
- entities: "Optional[List[SceneEntity]]" = [],
833
- ) -> "SceneUpdate": ...
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 __new__(
849
- cls,
848
+ def __init__(
849
+ self,
850
850
  *,
851
- pose: "Optional[Pose]" = None,
852
- size: "Optional[Vector3]" = None,
853
- color: "Optional[Color]" = None,
854
- ) -> "SpherePrimitive": ...
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 __new__(
870
- cls,
869
+ def __init__(
870
+ self,
871
871
  *,
872
- timestamp: "Optional[Timestamp]" = None,
873
- position: "Optional[Point2]" = None,
874
- text: "Optional[str]" = "",
875
- font_size: "Optional[float]" = 0.0,
876
- text_color: "Optional[Color]" = None,
877
- background_color: "Optional[Color]" = None,
878
- ) -> "TextAnnotation": ...
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 __new__(
894
- cls,
893
+ def __init__(
894
+ self,
895
895
  *,
896
- pose: "Optional[Pose]" = None,
897
- billboard: "Optional[bool]" = False,
898
- font_size: "Optional[float]" = 0.0,
899
- scale_invariant: "Optional[bool]" = False,
900
- color: "Optional[Color]" = None,
901
- text: "Optional[str]" = "",
902
- ) -> "TextPrimitive": ...
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 __new__(
918
- cls,
917
+ def __init__(
918
+ self,
919
919
  *,
920
- pose: "Optional[Pose]" = None,
921
- points: "Optional[List[Point3]]" = [],
922
- color: "Optional[Color]" = None,
923
- colors: "Optional[List[Color]]" = [],
924
- indices: "Optional[List[int]]" = [],
925
- ) -> "TriangleListPrimitive": ...
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 __new__(
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 __new__(
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 __new__(
979
- cls,
970
+ def __init__(
971
+ self,
980
972
  *,
981
- timestamp: "Optional[Timestamp]" = None,
982
- frame_id: "Optional[str]" = "",
983
- pose: "Optional[Pose]" = None,
984
- row_count: "Optional[int]" = 0,
985
- column_count: "Optional[int]" = 0,
986
- cell_size: "Optional[Vector3]" = None,
987
- slice_stride: "Optional[int]" = 0,
988
- row_stride: "Optional[int]" = 0,
989
- cell_stride: "Optional[int]" = 0,
990
- fields: "Optional[List[PackedElementField]]" = [],
991
- data: "Optional[bytes]" = b"",
992
- ) -> "VoxelGrid": ...
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,