foxglove-sdk 0.8.1__cp312-cp312-win32.whl → 0.16.3__cp312-cp312-win32.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.
Potentially problematic release.
This version of foxglove-sdk might be problematic. Click here for more details.
- foxglove/__init__.py +245 -124
- foxglove/_foxglove_py/__init__.pyi +233 -167
- foxglove/_foxglove_py/channels.pyi +2792 -2580
- foxglove/_foxglove_py/cloud.pyi +9 -0
- foxglove/_foxglove_py/mcap.pyi +125 -84
- foxglove/_foxglove_py/schemas.pyi +1009 -839
- foxglove/_foxglove_py/schemas_wkt.pyi +85 -77
- foxglove/_foxglove_py/websocket.pyi +394 -343
- foxglove/_foxglove_py.cp312-win32.pyd +0 -0
- foxglove/benchmarks/test_mcap_serialization.py +160 -160
- foxglove/channel.py +241 -234
- foxglove/channels/__init__.py +94 -90
- foxglove/cloud.py +61 -0
- foxglove/mcap.py +12 -12
- foxglove/notebook/__init__.py +0 -0
- foxglove/notebook/foxglove_widget.py +100 -0
- foxglove/notebook/notebook_buffer.py +114 -0
- foxglove/schemas/__init__.py +163 -155
- foxglove/tests/test_channel.py +243 -215
- foxglove/tests/test_context.py +10 -0
- foxglove/tests/test_logging.py +62 -16
- foxglove/tests/test_mcap.py +477 -116
- foxglove/tests/test_parameters.py +178 -154
- foxglove/tests/test_schemas.py +17 -0
- foxglove/tests/test_server.py +141 -110
- foxglove/tests/test_time.py +137 -137
- foxglove/websocket.py +220 -195
- foxglove_sdk-0.16.3.dist-info/METADATA +53 -0
- foxglove_sdk-0.16.3.dist-info/RECORD +32 -0
- {foxglove_sdk-0.8.1.dist-info → foxglove_sdk-0.16.3.dist-info}/WHEEL +1 -1
- foxglove_sdk-0.8.1.dist-info/METADATA +0 -51
- foxglove_sdk-0.8.1.dist-info/RECORD +0 -25
foxglove/schemas/__init__.py
CHANGED
|
@@ -1,155 +1,163 @@
|
|
|
1
|
-
"""
|
|
2
|
-
This module contains the definitions of the well-known Foxglove schemas for logging.
|
|
3
|
-
|
|
4
|
-
Log messages to a corresponding channel type from :py:mod:`foxglove.channels`.
|
|
5
|
-
|
|
6
|
-
Note that the schema classes are currently immutable and do not expose
|
|
7
|
-
getters and setters for their fields. This is a limitation we plan to address in the future.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
# Generated by https://github.com/foxglove/foxglove-sdk
|
|
11
|
-
|
|
12
|
-
from typing import Union
|
|
13
|
-
|
|
14
|
-
from foxglove._foxglove_py.schemas import (
|
|
15
|
-
ArrowPrimitive,
|
|
16
|
-
CameraCalibration,
|
|
17
|
-
CircleAnnotation,
|
|
18
|
-
Color,
|
|
19
|
-
CompressedImage,
|
|
20
|
-
CompressedVideo,
|
|
21
|
-
CubePrimitive,
|
|
22
|
-
CylinderPrimitive,
|
|
23
|
-
Duration,
|
|
24
|
-
FrameTransform,
|
|
25
|
-
FrameTransforms,
|
|
26
|
-
GeoJson,
|
|
27
|
-
Grid,
|
|
28
|
-
ImageAnnotations,
|
|
29
|
-
KeyValuePair,
|
|
30
|
-
LaserScan,
|
|
31
|
-
LinePrimitive,
|
|
32
|
-
LinePrimitiveLineType,
|
|
33
|
-
LocationFix,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
|
|
1
|
+
"""
|
|
2
|
+
This module contains the definitions of the well-known Foxglove schemas for logging.
|
|
3
|
+
|
|
4
|
+
Log messages to a corresponding channel type from :py:mod:`foxglove.channels`.
|
|
5
|
+
|
|
6
|
+
Note that the schema classes are currently immutable and do not expose
|
|
7
|
+
getters and setters for their fields. This is a limitation we plan to address in the future.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
# Generated by https://github.com/foxglove/foxglove-sdk
|
|
11
|
+
|
|
12
|
+
from typing import Union
|
|
13
|
+
|
|
14
|
+
from foxglove._foxglove_py.schemas import (
|
|
15
|
+
ArrowPrimitive,
|
|
16
|
+
CameraCalibration,
|
|
17
|
+
CircleAnnotation,
|
|
18
|
+
Color,
|
|
19
|
+
CompressedImage,
|
|
20
|
+
CompressedVideo,
|
|
21
|
+
CubePrimitive,
|
|
22
|
+
CylinderPrimitive,
|
|
23
|
+
Duration,
|
|
24
|
+
FrameTransform,
|
|
25
|
+
FrameTransforms,
|
|
26
|
+
GeoJson,
|
|
27
|
+
Grid,
|
|
28
|
+
ImageAnnotations,
|
|
29
|
+
KeyValuePair,
|
|
30
|
+
LaserScan,
|
|
31
|
+
LinePrimitive,
|
|
32
|
+
LinePrimitiveLineType,
|
|
33
|
+
LocationFix,
|
|
34
|
+
LocationFixes,
|
|
35
|
+
LocationFixPositionCovarianceType,
|
|
36
|
+
Log,
|
|
37
|
+
LogLevel,
|
|
38
|
+
ModelPrimitive,
|
|
39
|
+
PackedElementField,
|
|
40
|
+
PackedElementFieldNumericType,
|
|
41
|
+
Point2,
|
|
42
|
+
Point3,
|
|
43
|
+
PointCloud,
|
|
44
|
+
PointsAnnotation,
|
|
45
|
+
PointsAnnotationType,
|
|
46
|
+
Pose,
|
|
47
|
+
PoseInFrame,
|
|
48
|
+
PosesInFrame,
|
|
49
|
+
Quaternion,
|
|
50
|
+
RawAudio,
|
|
51
|
+
RawImage,
|
|
52
|
+
SceneEntity,
|
|
53
|
+
SceneEntityDeletion,
|
|
54
|
+
SceneEntityDeletionType,
|
|
55
|
+
SceneUpdate,
|
|
56
|
+
SpherePrimitive,
|
|
57
|
+
TextAnnotation,
|
|
58
|
+
TextPrimitive,
|
|
59
|
+
Timestamp,
|
|
60
|
+
TriangleListPrimitive,
|
|
61
|
+
Vector2,
|
|
62
|
+
Vector3,
|
|
63
|
+
VoxelGrid,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
FoxgloveSchema = Union[
|
|
67
|
+
ArrowPrimitive,
|
|
68
|
+
CameraCalibration,
|
|
69
|
+
CircleAnnotation,
|
|
70
|
+
Color,
|
|
71
|
+
CompressedImage,
|
|
72
|
+
CompressedVideo,
|
|
73
|
+
CubePrimitive,
|
|
74
|
+
CylinderPrimitive,
|
|
75
|
+
Duration,
|
|
76
|
+
FrameTransform,
|
|
77
|
+
FrameTransforms,
|
|
78
|
+
GeoJson,
|
|
79
|
+
Grid,
|
|
80
|
+
ImageAnnotations,
|
|
81
|
+
KeyValuePair,
|
|
82
|
+
LaserScan,
|
|
83
|
+
LinePrimitive,
|
|
84
|
+
LocationFix,
|
|
85
|
+
LocationFixes,
|
|
86
|
+
Log,
|
|
87
|
+
ModelPrimitive,
|
|
88
|
+
PackedElementField,
|
|
89
|
+
Point2,
|
|
90
|
+
Point3,
|
|
91
|
+
PointCloud,
|
|
92
|
+
PointsAnnotation,
|
|
93
|
+
Pose,
|
|
94
|
+
PoseInFrame,
|
|
95
|
+
PosesInFrame,
|
|
96
|
+
Quaternion,
|
|
97
|
+
RawAudio,
|
|
98
|
+
RawImage,
|
|
99
|
+
SceneEntity,
|
|
100
|
+
SceneEntityDeletion,
|
|
101
|
+
SceneUpdate,
|
|
102
|
+
SpherePrimitive,
|
|
103
|
+
TextAnnotation,
|
|
104
|
+
TextPrimitive,
|
|
105
|
+
Timestamp,
|
|
106
|
+
TriangleListPrimitive,
|
|
107
|
+
Vector2,
|
|
108
|
+
Vector3,
|
|
109
|
+
VoxelGrid,
|
|
110
|
+
]
|
|
111
|
+
|
|
112
|
+
__all__ = [
|
|
113
|
+
"FoxgloveSchema",
|
|
114
|
+
"ArrowPrimitive",
|
|
115
|
+
"CameraCalibration",
|
|
116
|
+
"CircleAnnotation",
|
|
117
|
+
"Color",
|
|
118
|
+
"CompressedImage",
|
|
119
|
+
"CompressedVideo",
|
|
120
|
+
"CubePrimitive",
|
|
121
|
+
"CylinderPrimitive",
|
|
122
|
+
"Duration",
|
|
123
|
+
"FrameTransform",
|
|
124
|
+
"FrameTransforms",
|
|
125
|
+
"GeoJson",
|
|
126
|
+
"Grid",
|
|
127
|
+
"ImageAnnotations",
|
|
128
|
+
"KeyValuePair",
|
|
129
|
+
"LaserScan",
|
|
130
|
+
"LinePrimitive",
|
|
131
|
+
"LinePrimitiveLineType",
|
|
132
|
+
"LocationFix",
|
|
133
|
+
"LocationFixPositionCovarianceType",
|
|
134
|
+
"LocationFixes",
|
|
135
|
+
"Log",
|
|
136
|
+
"LogLevel",
|
|
137
|
+
"ModelPrimitive",
|
|
138
|
+
"PackedElementField",
|
|
139
|
+
"PackedElementFieldNumericType",
|
|
140
|
+
"Point2",
|
|
141
|
+
"Point3",
|
|
142
|
+
"PointCloud",
|
|
143
|
+
"PointsAnnotation",
|
|
144
|
+
"PointsAnnotationType",
|
|
145
|
+
"Pose",
|
|
146
|
+
"PoseInFrame",
|
|
147
|
+
"PosesInFrame",
|
|
148
|
+
"Quaternion",
|
|
149
|
+
"RawAudio",
|
|
150
|
+
"RawImage",
|
|
151
|
+
"SceneEntity",
|
|
152
|
+
"SceneEntityDeletion",
|
|
153
|
+
"SceneEntityDeletionType",
|
|
154
|
+
"SceneUpdate",
|
|
155
|
+
"SpherePrimitive",
|
|
156
|
+
"TextAnnotation",
|
|
157
|
+
"TextPrimitive",
|
|
158
|
+
"Timestamp",
|
|
159
|
+
"TriangleListPrimitive",
|
|
160
|
+
"Vector2",
|
|
161
|
+
"Vector3",
|
|
162
|
+
"VoxelGrid",
|
|
163
|
+
]
|