@foxglove/schemas 1.6.2 → 1.6.3
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/.github/workflows/ci.yml +11 -12
- package/.vscode/settings.json +2 -6
- package/README.md +11 -11
- package/internal/__snapshots__/exportTypeScriptSchemas.test.ts.snap +14 -5
- package/internal/generateFlatbufferSchema.d.ts +2 -2
- package/internal/generateFlatbufferSchema.d.ts.map +1 -1
- package/internal/generateFlatbufferSchema.js +4 -4
- package/internal/generateFlatbufferSchema.js.map +1 -1
- package/internal/generateFlatbufferSchema.test.js +25 -25
- package/internal/generateFlatbufferSchema.test.ts +25 -25
- package/internal/generateFlatbufferSchema.ts +4 -4
- package/internal/generateMarkdown.js +1 -1
- package/internal/generateMarkdown.ts +1 -1
- package/internal/generateRos.js +2 -2
- package/internal/generateRos.js.map +1 -1
- package/internal/generateRos.ts +2 -2
- package/internal/generateTypeScript.d.ts +1 -1
- package/internal/generateTypeScript.ts +1 -1
- package/internal/schemas.d.ts.map +1 -1
- package/internal/schemas.js +5 -5
- package/internal/schemas.js.map +1 -1
- package/internal/schemas.ts +8 -5
- package/package.json +1 -1
- package/python/Makefile +1 -0
- package/python/foxglove-schemas-flatbuffer/README.md +2 -2
- package/python/foxglove-schemas-flatbuffer/setup.cfg +1 -1
- package/python/foxglove-schemas-protobuf/README.md +2 -2
- package/python/foxglove-schemas-protobuf/setup.cfg +1 -1
- package/schemas/README.md +9 -6
- package/schemas/flatbuffer/ArrowPrimitive.fbs +6 -6
- package/schemas/flatbuffer/ByteVector.fbs +1 -1
- package/schemas/flatbuffer/CameraCalibration.fbs +10 -10
- package/schemas/flatbuffer/CircleAnnotation.fbs +8 -7
- package/schemas/flatbuffer/Color.fbs +4 -4
- package/schemas/flatbuffer/CompressedImage.fbs +4 -4
- package/schemas/flatbuffer/CompressedVideo.fbs +5 -5
- package/schemas/flatbuffer/CubePrimitive.fbs +3 -3
- package/schemas/flatbuffer/CylinderPrimitive.fbs +5 -5
- package/schemas/flatbuffer/Duration.fbs +1 -1
- package/schemas/flatbuffer/FrameTransform.fbs +5 -5
- package/schemas/flatbuffer/FrameTransforms.fbs +1 -1
- package/schemas/flatbuffer/GeoJSON.fbs +1 -1
- package/schemas/flatbuffer/Grid.fbs +9 -9
- package/schemas/flatbuffer/ImageAnnotations.fbs +3 -3
- package/schemas/flatbuffer/KeyValuePair.fbs +2 -2
- package/schemas/flatbuffer/LaserScan.fbs +7 -7
- package/schemas/flatbuffer/LinePrimitive.fbs +8 -8
- package/schemas/flatbuffer/LocationFix.fbs +7 -7
- package/schemas/flatbuffer/Log.fbs +6 -6
- package/schemas/flatbuffer/ModelPrimitive.fbs +7 -7
- package/schemas/flatbuffer/PackedElementField.fbs +3 -3
- package/schemas/flatbuffer/Point2.fbs +2 -2
- package/schemas/flatbuffer/Point3.fbs +3 -3
- package/schemas/flatbuffer/PointCloud.fbs +6 -6
- package/schemas/flatbuffer/PointsAnnotation.fbs +9 -8
- package/schemas/flatbuffer/Pose.fbs +2 -2
- package/schemas/flatbuffer/PoseInFrame.fbs +3 -3
- package/schemas/flatbuffer/PosesInFrame.fbs +3 -3
- package/schemas/flatbuffer/Quaternion.fbs +4 -4
- package/schemas/flatbuffer/RawImage.fbs +7 -7
- package/schemas/flatbuffer/SceneEntity.fbs +14 -14
- package/schemas/flatbuffer/SceneEntityDeletion.fbs +3 -3
- package/schemas/flatbuffer/SceneUpdate.fbs +2 -2
- package/schemas/flatbuffer/SpherePrimitive.fbs +3 -3
- package/schemas/flatbuffer/TextAnnotation.fbs +8 -7
- package/schemas/flatbuffer/TextPrimitive.fbs +6 -6
- package/schemas/flatbuffer/TriangleListPrimitive.fbs +5 -5
- package/schemas/flatbuffer/Vector2.fbs +2 -2
- package/schemas/flatbuffer/Vector3.fbs +3 -3
- package/schemas/jsonschema/CameraCalibration.json +1 -1
- package/schemas/jsonschema/CircleAnnotation.json +1 -1
- package/schemas/jsonschema/CompressedVideo.json +1 -1
- package/schemas/jsonschema/ImageAnnotations.json +3 -3
- package/schemas/jsonschema/PointsAnnotation.json +1 -1
- package/schemas/jsonschema/TextAnnotation.json +1 -1
- package/schemas/jsonschema/index.js +8 -8
- package/schemas/jsonschema/index.js.map +1 -1
- package/schemas/jsonschema/index.ts +8 -8
- package/schemas/omgidl/foxglove/CameraCalibration.idl +1 -1
- package/schemas/omgidl/foxglove/CircleAnnotation.idl +2 -1
- package/schemas/omgidl/foxglove/CompressedVideo.idl +1 -1
- package/schemas/omgidl/foxglove/PointsAnnotation.idl +2 -1
- package/schemas/omgidl/foxglove/TextAnnotation.idl +2 -1
- package/schemas/proto/foxglove/CameraCalibration.proto +1 -1
- package/schemas/proto/foxglove/CircleAnnotation.proto +2 -1
- package/schemas/proto/foxglove/CompressedVideo.proto +1 -1
- package/schemas/proto/foxglove/PointsAnnotation.proto +2 -1
- package/schemas/proto/foxglove/TextAnnotation.proto +2 -1
- package/schemas/ros1/CameraCalibration.msg +1 -1
- package/schemas/ros1/CircleAnnotation.msg +2 -1
- package/schemas/ros1/CompressedVideo.msg +1 -1
- package/schemas/ros1/PointsAnnotation.msg +2 -1
- package/schemas/ros1/TextAnnotation.msg +2 -1
- package/schemas/ros2/CameraCalibration.msg +1 -1
- package/schemas/ros2/CircleAnnotation.msg +2 -1
- package/schemas/ros2/CompressedVideo.msg +1 -1
- package/schemas/ros2/PointsAnnotation.msg +2 -1
- package/schemas/ros2/TextAnnotation.msg +2 -1
- package/schemas/typescript/CameraCalibration.d.ts +1 -1
- package/schemas/typescript/CameraCalibration.ts +1 -1
- package/schemas/typescript/CircleAnnotation.d.ts +4 -1
- package/schemas/typescript/CircleAnnotation.d.ts.map +1 -1
- package/schemas/typescript/CircleAnnotation.ts +4 -1
- package/schemas/typescript/CompressedVideo.d.ts +1 -1
- package/schemas/typescript/CompressedVideo.ts +1 -1
- package/schemas/typescript/PointsAnnotation.d.ts +4 -1
- package/schemas/typescript/PointsAnnotation.d.ts.map +1 -1
- package/schemas/typescript/PointsAnnotation.ts +4 -1
- package/schemas/typescript/TextAnnotation.d.ts +4 -1
- package/schemas/typescript/TextAnnotation.d.ts.map +1 -1
- package/schemas/typescript/TextAnnotation.ts +4 -1
|
@@ -9,22 +9,23 @@ namespace foxglove;
|
|
|
9
9
|
/// A text label on a 2D image
|
|
10
10
|
table TextAnnotation {
|
|
11
11
|
/// Timestamp of annotation
|
|
12
|
-
timestamp:Time;
|
|
12
|
+
timestamp:Time (id: 0);
|
|
13
13
|
|
|
14
|
-
/// Bottom-left origin of the text label in 2D image coordinates (pixels)
|
|
15
|
-
|
|
14
|
+
/// Bottom-left origin of the text label in 2D image coordinates (pixels).
|
|
15
|
+
/// The coordinate uses the top-left corner of the top-left pixel of the image as the origin.
|
|
16
|
+
position:foxglove.Point2 (id: 1);
|
|
16
17
|
|
|
17
18
|
/// Text to display
|
|
18
|
-
text:string;
|
|
19
|
+
text:string (id: 2);
|
|
19
20
|
|
|
20
21
|
/// Font size in pixels
|
|
21
|
-
font_size:double = 12.0;
|
|
22
|
+
font_size:double = 12.0 (id: 3);
|
|
22
23
|
|
|
23
24
|
/// Text color
|
|
24
|
-
text_color:foxglove.Color;
|
|
25
|
+
text_color:foxglove.Color (id: 4);
|
|
25
26
|
|
|
26
27
|
/// Background fill color
|
|
27
|
-
background_color:foxglove.Color;
|
|
28
|
+
background_color:foxglove.Color (id: 5);
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
root_type TextAnnotation;
|
|
@@ -8,22 +8,22 @@ namespace foxglove;
|
|
|
8
8
|
/// A primitive representing a text label
|
|
9
9
|
table TextPrimitive {
|
|
10
10
|
/// Position of the center of the text box and orientation of the text. Identity orientation means the text is oriented in the xy-plane and flows from -x to +x.
|
|
11
|
-
pose:foxglove.Pose;
|
|
11
|
+
pose:foxglove.Pose (id: 0);
|
|
12
12
|
|
|
13
13
|
/// Whether the text should respect `pose.orientation` (false) or always face the camera (true)
|
|
14
|
-
billboard:bool;
|
|
14
|
+
billboard:bool (id: 1);
|
|
15
15
|
|
|
16
16
|
/// Font size (height of one line of text)
|
|
17
|
-
font_size:double;
|
|
17
|
+
font_size:double (id: 2);
|
|
18
18
|
|
|
19
19
|
/// Indicates whether `font_size` is a fixed size in screen pixels (true), or specified in world coordinates and scales with distance from the camera (false)
|
|
20
|
-
scale_invariant:bool;
|
|
20
|
+
scale_invariant:bool (id: 3);
|
|
21
21
|
|
|
22
22
|
/// Color of the text
|
|
23
|
-
color:foxglove.Color;
|
|
23
|
+
color:foxglove.Color (id: 4);
|
|
24
24
|
|
|
25
25
|
/// Text
|
|
26
|
-
text:string;
|
|
26
|
+
text:string (id: 5);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
root_type TextPrimitive;
|
|
@@ -9,21 +9,21 @@ namespace foxglove;
|
|
|
9
9
|
/// A primitive representing a set of triangles or a surface tiled by triangles
|
|
10
10
|
table TriangleListPrimitive {
|
|
11
11
|
/// Origin of triangles relative to reference frame
|
|
12
|
-
pose:foxglove.Pose;
|
|
12
|
+
pose:foxglove.Pose (id: 0);
|
|
13
13
|
|
|
14
14
|
/// Vertices to use for triangles, interpreted as a list of triples (0-1-2, 3-4-5, ...)
|
|
15
|
-
points:[foxglove.Point3];
|
|
15
|
+
points:[foxglove.Point3] (id: 1);
|
|
16
16
|
|
|
17
17
|
/// Solid color to use for the whole shape. One of `color` or `colors` must be provided.
|
|
18
|
-
color:foxglove.Color;
|
|
18
|
+
color:foxglove.Color (id: 2);
|
|
19
19
|
|
|
20
20
|
/// Per-vertex colors (if specified, must have the same length as `points`). One of `color` or `colors` must be provided.
|
|
21
|
-
colors:[foxglove.Color];
|
|
21
|
+
colors:[foxglove.Color] (id: 3);
|
|
22
22
|
|
|
23
23
|
/// Indices into the `points` and `colors` attribute arrays, which can be used to avoid duplicating attribute data.
|
|
24
24
|
///
|
|
25
25
|
/// If omitted or empty, indexing will not be used. This default behavior is equivalent to specifying [0, 1, ..., N-1] for the indices (where N is the number of `points` provided).
|
|
26
|
-
indices:[uint32];
|
|
26
|
+
indices:[uint32] (id: 4);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
root_type TriangleListPrimitive;
|
|
@@ -5,10 +5,10 @@ namespace foxglove;
|
|
|
5
5
|
/// A vector in 2D space that represents a direction only
|
|
6
6
|
table Vector2 {
|
|
7
7
|
/// x coordinate length
|
|
8
|
-
x:double = 1.0;
|
|
8
|
+
x:double = 1.0 (id: 0);
|
|
9
9
|
|
|
10
10
|
/// y coordinate length
|
|
11
|
-
y:double = 1.0;
|
|
11
|
+
y:double = 1.0 (id: 1);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
root_type Vector2;
|
|
@@ -5,13 +5,13 @@ namespace foxglove;
|
|
|
5
5
|
/// A vector in 3D space that represents a direction only
|
|
6
6
|
table Vector3 {
|
|
7
7
|
/// x coordinate length
|
|
8
|
-
x:double = 1.0;
|
|
8
|
+
x:double = 1.0 (id: 0);
|
|
9
9
|
|
|
10
10
|
/// y coordinate length
|
|
11
|
-
y:double = 1.0;
|
|
11
|
+
y:double = 1.0 (id: 1);
|
|
12
12
|
|
|
13
13
|
/// z coordinate length
|
|
14
|
-
z:double = 1.0;
|
|
14
|
+
z:double = 1.0 (id: 2);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
root_type Vector3;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"distortion_model": {
|
|
38
38
|
"type": "string",
|
|
39
|
-
"description": "Name of distortion model\n\nSupported
|
|
39
|
+
"description": "Name of distortion model\n\nSupported parameters: `plumb_bob` (k1, k2, p1, p2, k3) and `rational_polynomial` (k1, k2, p1, p2, k3, k4, k5, k6). Distortion models are based on [OpenCV's](https://docs.opencv.org/2.4/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html) [pinhole camera model](https://en.wikipedia.org/wiki/Distortion_%28optics%29#Software_correction). This is the same [implementation used by ROS](http://docs.ros.org/en/diamondback/api/image_geometry/html/c++/pinhole__camera__model_8cpp_source.html)"
|
|
40
40
|
},
|
|
41
41
|
"D": {
|
|
42
42
|
"type": "array",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"position": {
|
|
24
24
|
"title": "foxglove.Point2",
|
|
25
|
-
"description": "Center of the circle in 2D image coordinates (pixels)",
|
|
25
|
+
"description": "Center of the circle in 2D image coordinates (pixels).\nThe coordinate uses the top-left corner of the top-left pixel of the image as the origin.",
|
|
26
26
|
"type": "object",
|
|
27
27
|
"properties": {
|
|
28
28
|
"x": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"data": {
|
|
28
28
|
"type": "string",
|
|
29
29
|
"contentEncoding": "base64",
|
|
30
|
-
"description": "Compressed video frame data.\n\nFor packet-based video codecs this data must begin and end on packet boundaries (no partial packets), and must contain enough video packets to decode exactly one image (either a keyframe or delta frame). Note: Foxglove
|
|
30
|
+
"description": "Compressed video frame data.\n\nFor packet-based video codecs this data must begin and end on packet boundaries (no partial packets), and must contain enough video packets to decode exactly one image (either a keyframe or delta frame). Note: Foxglove does not support video streams that include B frames because they require lookahead."
|
|
31
31
|
},
|
|
32
32
|
"format": {
|
|
33
33
|
"type": "string",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"position": {
|
|
31
31
|
"title": "foxglove.Point2",
|
|
32
|
-
"description": "Center of the circle in 2D image coordinates (pixels)",
|
|
32
|
+
"description": "Center of the circle in 2D image coordinates (pixels).\nThe coordinate uses the top-left corner of the top-left pixel of the image as the origin.",
|
|
33
33
|
"type": "object",
|
|
34
34
|
"properties": {
|
|
35
35
|
"x": {
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
|
-
"description": "Points in 2D image coordinates (pixels)"
|
|
173
|
+
"description": "Points in 2D image coordinates (pixels).\nThese coordinates use the top-left corner of the top-left pixel of the image as the origin."
|
|
174
174
|
},
|
|
175
175
|
"outline_color": {
|
|
176
176
|
"title": "foxglove.Color",
|
|
@@ -278,7 +278,7 @@
|
|
|
278
278
|
},
|
|
279
279
|
"position": {
|
|
280
280
|
"title": "foxglove.Point2",
|
|
281
|
-
"description": "Bottom-left origin of the text label in 2D image coordinates (pixels)",
|
|
281
|
+
"description": "Bottom-left origin of the text label in 2D image coordinates (pixels).\nThe coordinate uses the top-left corner of the top-left pixel of the image as the origin.",
|
|
282
282
|
"type": "object",
|
|
283
283
|
"properties": {
|
|
284
284
|
"x": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
"description": "Points in 2D image coordinates (pixels)"
|
|
70
|
+
"description": "Points in 2D image coordinates (pixels).\nThese coordinates use the top-left corner of the top-left pixel of the image as the origin."
|
|
71
71
|
},
|
|
72
72
|
"outline_color": {
|
|
73
73
|
"title": "foxglove.Color",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"position": {
|
|
24
24
|
"title": "foxglove.Point2",
|
|
25
|
-
"description": "Bottom-left origin of the text label in 2D image coordinates (pixels)",
|
|
25
|
+
"description": "Bottom-left origin of the text label in 2D image coordinates (pixels).\nThe coordinate uses the top-left corner of the top-left pixel of the image as the origin.",
|
|
26
26
|
"type": "object",
|
|
27
27
|
"properties": {
|
|
28
28
|
"x": {
|
|
@@ -136,7 +136,7 @@ exports.CameraCalibration = {
|
|
|
136
136
|
},
|
|
137
137
|
"distortion_model": {
|
|
138
138
|
"type": "string",
|
|
139
|
-
"description": "Name of distortion model\n\nSupported
|
|
139
|
+
"description": "Name of distortion model\n\nSupported parameters: `plumb_bob` (k1, k2, p1, p2, k3) and `rational_polynomial` (k1, k2, p1, p2, k3, k4, k5, k6). Distortion models are based on [OpenCV's](https://docs.opencv.org/2.4/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html) [pinhole camera model](https://en.wikipedia.org/wiki/Distortion_%28optics%29#Software_correction). This is the same [implementation used by ROS](http://docs.ros.org/en/diamondback/api/image_geometry/html/c++/pinhole__camera__model_8cpp_source.html)"
|
|
140
140
|
},
|
|
141
141
|
"D": {
|
|
142
142
|
"type": "array",
|
|
@@ -198,7 +198,7 @@ exports.CircleAnnotation = {
|
|
|
198
198
|
},
|
|
199
199
|
"position": {
|
|
200
200
|
"title": "foxglove.Point2",
|
|
201
|
-
"description": "Center of the circle in 2D image coordinates (pixels)",
|
|
201
|
+
"description": "Center of the circle in 2D image coordinates (pixels).\nThe coordinate uses the top-left corner of the top-left pixel of the image as the origin.",
|
|
202
202
|
"type": "object",
|
|
203
203
|
"properties": {
|
|
204
204
|
"x": {
|
|
@@ -357,7 +357,7 @@ exports.CompressedVideo = {
|
|
|
357
357
|
"data": {
|
|
358
358
|
"type": "string",
|
|
359
359
|
"contentEncoding": "base64",
|
|
360
|
-
"description": "Compressed video frame data.\n\nFor packet-based video codecs this data must begin and end on packet boundaries (no partial packets), and must contain enough video packets to decode exactly one image (either a keyframe or delta frame). Note: Foxglove
|
|
360
|
+
"description": "Compressed video frame data.\n\nFor packet-based video codecs this data must begin and end on packet boundaries (no partial packets), and must contain enough video packets to decode exactly one image (either a keyframe or delta frame). Note: Foxglove does not support video streams that include B frames because they require lookahead."
|
|
361
361
|
},
|
|
362
362
|
"format": {
|
|
363
363
|
"type": "string",
|
|
@@ -947,7 +947,7 @@ exports.ImageAnnotations = {
|
|
|
947
947
|
},
|
|
948
948
|
"position": {
|
|
949
949
|
"title": "foxglove.Point2",
|
|
950
|
-
"description": "Center of the circle in 2D image coordinates (pixels)",
|
|
950
|
+
"description": "Center of the circle in 2D image coordinates (pixels).\nThe coordinate uses the top-left corner of the top-left pixel of the image as the origin.",
|
|
951
951
|
"type": "object",
|
|
952
952
|
"properties": {
|
|
953
953
|
"x": {
|
|
@@ -1088,7 +1088,7 @@ exports.ImageAnnotations = {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
},
|
|
1091
|
-
"description": "Points in 2D image coordinates (pixels)"
|
|
1091
|
+
"description": "Points in 2D image coordinates (pixels).\nThese coordinates use the top-left corner of the top-left pixel of the image as the origin."
|
|
1092
1092
|
},
|
|
1093
1093
|
"outline_color": {
|
|
1094
1094
|
"title": "foxglove.Color",
|
|
@@ -1196,7 +1196,7 @@ exports.ImageAnnotations = {
|
|
|
1196
1196
|
},
|
|
1197
1197
|
"position": {
|
|
1198
1198
|
"title": "foxglove.Point2",
|
|
1199
|
-
"description": "Bottom-left origin of the text label in 2D image coordinates (pixels)",
|
|
1199
|
+
"description": "Bottom-left origin of the text label in 2D image coordinates (pixels).\nThe coordinate uses the top-left corner of the top-left pixel of the image as the origin.",
|
|
1200
1200
|
"type": "object",
|
|
1201
1201
|
"properties": {
|
|
1202
1202
|
"x": {
|
|
@@ -4248,7 +4248,7 @@ exports.PointsAnnotation = {
|
|
|
4248
4248
|
}
|
|
4249
4249
|
}
|
|
4250
4250
|
},
|
|
4251
|
-
"description": "Points in 2D image coordinates (pixels)"
|
|
4251
|
+
"description": "Points in 2D image coordinates (pixels).\nThese coordinates use the top-left corner of the top-left pixel of the image as the origin."
|
|
4252
4252
|
},
|
|
4253
4253
|
"outline_color": {
|
|
4254
4254
|
"title": "foxglove.Color",
|
|
@@ -4736,7 +4736,7 @@ exports.TextAnnotation = {
|
|
|
4736
4736
|
},
|
|
4737
4737
|
"position": {
|
|
4738
4738
|
"title": "foxglove.Point2",
|
|
4739
|
-
"description": "Bottom-left origin of the text label in 2D image coordinates (pixels)",
|
|
4739
|
+
"description": "Bottom-left origin of the text label in 2D image coordinates (pixels).\nThe coordinate uses the top-left corner of the top-left pixel of the image as the origin.",
|
|
4740
4740
|
"type": "object",
|
|
4741
4741
|
"properties": {
|
|
4742
4742
|
"x": {
|