@foxglove/schemas 0.7.1 → 0.7.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 +51 -1
- package/.vscode/settings.json +10 -1
- package/Linux.flatc.binary.clang++-12.zip +0 -0
- package/README.md +5 -25
- package/flatc +0 -0
- package/internal/generateFlatbufferSchema.d.ts +6 -0
- package/internal/generateFlatbufferSchema.d.ts.map +1 -0
- package/internal/generateFlatbufferSchema.js +172 -0
- package/internal/generateFlatbufferSchema.js.map +1 -0
- package/internal/generateFlatbufferSchema.test.d.ts +2 -0
- package/internal/generateFlatbufferSchema.test.d.ts.map +1 -0
- package/internal/generateFlatbufferSchema.test.js +120 -0
- package/internal/generateFlatbufferSchema.test.js.map +1 -0
- package/internal/generateFlatbufferSchema.test.ts +118 -0
- package/internal/generateFlatbufferSchema.ts +189 -0
- package/internal/generateProto.test.js +1 -1
- package/internal/generateProto.test.js.map +1 -1
- package/internal/generateProto.test.ts +1 -1
- package/internal/schemas.d.ts.map +1 -1
- package/internal/schemas.js +21 -11
- package/internal/schemas.js.map +1 -1
- package/internal/schemas.test.js +1 -1
- package/internal/schemas.test.js.map +1 -1
- package/internal/schemas.test.ts +1 -1
- package/internal/schemas.ts +23 -11
- package/internal/testFixtures.d.ts.map +1 -1
- package/internal/testFixtures.js +11 -1
- package/internal/testFixtures.js.map +1 -1
- package/internal/testFixtures.ts +12 -1
- package/internal/types.d.ts +2 -1
- package/internal/types.d.ts.map +1 -1
- package/internal/types.ts +2 -1
- package/package.json +1 -1
- package/python/Makefile +39 -0
- package/python/Pipfile +17 -0
- package/python/Pipfile.lock +329 -0
- package/python/foxglove-schemas-protobuf/README.md +23 -0
- package/python/foxglove-schemas-protobuf/foxglove_schemas_protobuf/__init__.py +0 -0
- package/python/foxglove-schemas-protobuf/foxglove_schemas_protobuf/py.typed +0 -0
- package/python/foxglove-schemas-protobuf/pyproject.toml +11 -0
- package/python/foxglove-schemas-protobuf/setup.cfg +21 -0
- package/python/foxglove-schemas-protobuf/tests/test_schemas.py +5 -0
- package/schemas/README.md +8 -2
- package/schemas/flatbuffer/ArrowPrimitive.fbs +29 -0
- package/schemas/flatbuffer/ByteVector.fbs +8 -0
- package/schemas/flatbuffer/CameraCalibration.fbs +78 -0
- package/schemas/flatbuffer/CircleAnnotation.fbs +30 -0
- package/schemas/flatbuffer/Color.fbs +20 -0
- package/schemas/flatbuffer/CompressedImage.fbs +24 -0
- package/schemas/flatbuffer/CubePrimitive.fbs +21 -0
- package/schemas/flatbuffer/CylinderPrimitive.fbs +27 -0
- package/schemas/flatbuffer/Duration.fbs +10 -0
- package/schemas/flatbuffer/FrameTransform.fbs +27 -0
- package/schemas/flatbuffer/GeoJSON.fbs +11 -0
- package/schemas/flatbuffer/Grid.fbs +40 -0
- package/schemas/flatbuffer/ImageAnnotations.fbs +17 -0
- package/schemas/flatbuffer/KeyValuePair.fbs +14 -0
- package/schemas/flatbuffer/LaserScan.fbs +32 -0
- package/schemas/flatbuffer/LinePrimitive.fbs +49 -0
- package/schemas/flatbuffer/LocationFix.fbs +34 -0
- package/schemas/flatbuffer/Log.fbs +42 -0
- package/schemas/flatbuffer/ModelPrimitive.fbs +33 -0
- package/schemas/flatbuffer/PackedElementField.fbs +37 -0
- package/schemas/flatbuffer/Point2.fbs +14 -0
- package/schemas/flatbuffer/Point3.fbs +17 -0
- package/schemas/flatbuffer/PointCloud.fbs +30 -0
- package/schemas/flatbuffer/PointsAnnotation.fbs +45 -0
- package/schemas/flatbuffer/Pose.fbs +17 -0
- package/schemas/flatbuffer/PoseInFrame.fbs +20 -0
- package/schemas/flatbuffer/PosesInFrame.fbs +20 -0
- package/schemas/flatbuffer/Quaternion.fbs +20 -0
- package/schemas/flatbuffer/RawImage.fbs +33 -0
- package/schemas/flatbuffer/SceneEntity.fbs +62 -0
- package/schemas/flatbuffer/SceneEntityDeletion.fbs +27 -0
- package/schemas/flatbuffer/SceneUpdate.fbs +17 -0
- package/schemas/flatbuffer/SpherePrimitive.fbs +21 -0
- package/schemas/flatbuffer/TextPrimitive.fbs +29 -0
- package/schemas/flatbuffer/Time.fbs +9 -0
- package/schemas/flatbuffer/TriangleListPrimitive.fbs +29 -0
- package/schemas/flatbuffer/Vector2.fbs +14 -0
- package/schemas/flatbuffer/Vector3.fbs +17 -0
- package/schemas/jsonschema/CameraCalibration.json +2 -2
- package/schemas/jsonschema/CompressedImage.json +1 -1
- package/schemas/jsonschema/CubePrimitive.json +1 -1
- package/schemas/jsonschema/RawImage.json +1 -1
- package/schemas/jsonschema/SceneEntity.json +1 -1
- package/schemas/jsonschema/SceneUpdate.json +1 -1
- package/schemas/jsonschema/index.d.ts +4510 -35
- package/schemas/jsonschema/index.d.ts.map +1 -1
- package/schemas/jsonschema/index.js +7 -7
- package/schemas/jsonschema/index.js.map +1 -1
- package/schemas/jsonschema/index.ts +42 -42
- package/schemas/proto/foxglove/CameraCalibration.proto +3 -1
- package/schemas/proto/foxglove/CompressedImage.proto +2 -0
- package/schemas/proto/foxglove/CubePrimitive.proto +1 -1
- package/schemas/proto/foxglove/RawImage.proto +2 -0
- package/schemas/ros1/CameraCalibration.msg +3 -1
- package/schemas/ros1/CompressedImage.msg +2 -0
- package/schemas/ros1/CubePrimitive.msg +1 -1
- package/schemas/ros1/RawImage.msg +2 -0
- package/schemas/ros2/CameraCalibration.msg +3 -1
- package/schemas/ros2/CompressedImage.msg +2 -0
- package/schemas/ros2/CubePrimitive.msg +1 -1
- package/schemas/ros2/RawImage.msg +2 -0
- package/schemas/typescript/CameraCalibration.d.ts +6 -2
- package/schemas/typescript/CameraCalibration.d.ts.map +1 -1
- package/schemas/typescript/CameraCalibration.ts +6 -2
- package/schemas/typescript/CompressedImage.d.ts +5 -1
- package/schemas/typescript/CompressedImage.d.ts.map +1 -1
- package/schemas/typescript/CompressedImage.ts +5 -1
- package/schemas/typescript/CubePrimitive.d.ts +1 -1
- package/schemas/typescript/CubePrimitive.d.ts.map +1 -1
- package/schemas/typescript/CubePrimitive.ts +1 -1
- package/schemas/typescript/RawImage.d.ts +5 -1
- package/schemas/typescript/RawImage.d.ts.map +1 -1
- package/schemas/typescript/RawImage.ts +5 -1
- package/scripts/updateGeneratedFiles.js +14 -2
- package/scripts/updateGeneratedFiles.js.map +1 -1
- package/scripts/updateGeneratedFiles.ts +26 -2
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Generated by https://github.com/foxglove/schemas
|
|
2
|
+
|
|
3
|
+
include "Time.fbs";
|
|
4
|
+
|
|
5
|
+
namespace foxglove;
|
|
6
|
+
|
|
7
|
+
/// An enumeration indicating which entities should match a SceneEntityDeletion command
|
|
8
|
+
enum SceneEntityDeletionType : ubyte {
|
|
9
|
+
/// Delete the existing entity on the same topic that has the provided `id`
|
|
10
|
+
MATCHING_ID = 0,
|
|
11
|
+
|
|
12
|
+
/// Delete all existing entities on the same topic
|
|
13
|
+
ALL = 1,
|
|
14
|
+
}
|
|
15
|
+
/// Command to remove previously published entities
|
|
16
|
+
table SceneEntityDeletion {
|
|
17
|
+
/// Timestamp of the deletion. Only matching entities earlier than this timestamp will be deleted.
|
|
18
|
+
timestamp:Time;
|
|
19
|
+
|
|
20
|
+
/// Type of deletion action to perform
|
|
21
|
+
type:SceneEntityDeletionType;
|
|
22
|
+
|
|
23
|
+
/// Identifier which must match if `type` is `MATCHING_ID`.
|
|
24
|
+
id:string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
root_type SceneEntityDeletion;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Generated by https://github.com/foxglove/schemas
|
|
2
|
+
|
|
3
|
+
include "SceneEntity.fbs";
|
|
4
|
+
include "SceneEntityDeletion.fbs";
|
|
5
|
+
|
|
6
|
+
namespace foxglove;
|
|
7
|
+
|
|
8
|
+
/// An update to the entities displayed in a 3D scene
|
|
9
|
+
table SceneUpdate {
|
|
10
|
+
/// Scene entities to delete
|
|
11
|
+
deletions:[foxglove.SceneEntityDeletion];
|
|
12
|
+
|
|
13
|
+
/// Scene entities to add or replace
|
|
14
|
+
entities:[foxglove.SceneEntity];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
root_type SceneUpdate;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Generated by https://github.com/foxglove/schemas
|
|
2
|
+
|
|
3
|
+
include "Color.fbs";
|
|
4
|
+
include "Pose.fbs";
|
|
5
|
+
include "Vector3.fbs";
|
|
6
|
+
|
|
7
|
+
namespace foxglove;
|
|
8
|
+
|
|
9
|
+
/// A primitive representing a sphere or ellipsoid
|
|
10
|
+
table SpherePrimitive {
|
|
11
|
+
/// Position of the center of the sphere and orientation of the sphere
|
|
12
|
+
pose:foxglove.Pose;
|
|
13
|
+
|
|
14
|
+
/// Size (diameter) of the sphere along each axis
|
|
15
|
+
size:foxglove.Vector3;
|
|
16
|
+
|
|
17
|
+
/// Color of the sphere
|
|
18
|
+
color:foxglove.Color;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
root_type SpherePrimitive;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Generated by https://github.com/foxglove/schemas
|
|
2
|
+
|
|
3
|
+
include "Color.fbs";
|
|
4
|
+
include "Pose.fbs";
|
|
5
|
+
|
|
6
|
+
namespace foxglove;
|
|
7
|
+
|
|
8
|
+
/// A primitive representing a text label
|
|
9
|
+
table TextPrimitive {
|
|
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;
|
|
12
|
+
|
|
13
|
+
/// Whether the text should respect `pose.orientation` (false) or always face the camera (true)
|
|
14
|
+
billboard:bool;
|
|
15
|
+
|
|
16
|
+
/// Font size (height of one line of text)
|
|
17
|
+
font_size:double;
|
|
18
|
+
|
|
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;
|
|
21
|
+
|
|
22
|
+
/// Color of the text
|
|
23
|
+
color:foxglove.Color;
|
|
24
|
+
|
|
25
|
+
/// Text
|
|
26
|
+
text:string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
root_type TextPrimitive;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Generated by https://github.com/foxglove/schemas
|
|
2
|
+
|
|
3
|
+
include "Color.fbs";
|
|
4
|
+
include "Point3.fbs";
|
|
5
|
+
include "Pose.fbs";
|
|
6
|
+
|
|
7
|
+
namespace foxglove;
|
|
8
|
+
|
|
9
|
+
/// A primitive representing a set of triangles or a surface tiled by triangles
|
|
10
|
+
table TriangleListPrimitive {
|
|
11
|
+
/// Origin of triangles relative to reference frame
|
|
12
|
+
pose:foxglove.Pose;
|
|
13
|
+
|
|
14
|
+
/// Vertices to use for triangles, interpreted as a list of triples (0-1-2, 3-4-5, ...)
|
|
15
|
+
points:[foxglove.Point3];
|
|
16
|
+
|
|
17
|
+
/// Solid color to use for the whole shape. One of `color` or `colors` must be provided.
|
|
18
|
+
color:foxglove.Color;
|
|
19
|
+
|
|
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];
|
|
22
|
+
|
|
23
|
+
/// Indices into the `points` and `colors` attribute arrays, which can be used to avoid duplicating attribute data.
|
|
24
|
+
///
|
|
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];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
root_type TriangleListPrimitive;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Generated by https://github.com/foxglove/schemas
|
|
2
|
+
|
|
3
|
+
namespace foxglove;
|
|
4
|
+
|
|
5
|
+
/// A vector in 2D space that represents a direction only
|
|
6
|
+
table Vector2 {
|
|
7
|
+
/// x coordinate length
|
|
8
|
+
x:double = 1.0;
|
|
9
|
+
|
|
10
|
+
/// y coordinate length
|
|
11
|
+
y:double = 1.0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
root_type Vector2;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Generated by https://github.com/foxglove/schemas
|
|
2
|
+
|
|
3
|
+
namespace foxglove;
|
|
4
|
+
|
|
5
|
+
/// A vector in 3D space that represents a direction only
|
|
6
|
+
table Vector3 {
|
|
7
|
+
/// x coordinate length
|
|
8
|
+
x:double = 1.0;
|
|
9
|
+
|
|
10
|
+
/// y coordinate length
|
|
11
|
+
y:double = 1.0;
|
|
12
|
+
|
|
13
|
+
/// z coordinate length
|
|
14
|
+
z:double = 1.0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
root_type Vector3;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"distortion_model": {
|
|
38
38
|
"type": "string",
|
|
39
|
-
"description": "Name of distortion model"
|
|
39
|
+
"description": "Name of distortion model\n\nSupported values: `plumb_bob` and `rational_polynomial`"
|
|
40
40
|
},
|
|
41
41
|
"D": {
|
|
42
42
|
"type": "array",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"minItems": 9,
|
|
63
63
|
"maxItems": 9,
|
|
64
|
-
"description": "Rectification matrix (3x3 row-major matrix)\n\nA rotation matrix aligning the camera coordinate system to the ideal stereo image plane so that epipolar lines in both stereo images are parallel."
|
|
64
|
+
"description": "Rectification matrix (stereo cameras only, 3x3 row-major matrix)\n\nA rotation matrix aligning the camera coordinate system to the ideal stereo image plane so that epipolar lines in both stereo images are parallel."
|
|
65
65
|
},
|
|
66
66
|
"P": {
|
|
67
67
|
"type": "array",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"encoding": {
|
|
38
38
|
"type": "string",
|
|
39
|
-
"description": "Encoding of the raw image data"
|
|
39
|
+
"description": "Encoding of the raw image data\n\nSupported values: `8UC1`, `8UC3`, `16UC1`, `32FC1`, `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `yuv422`"
|
|
40
40
|
},
|
|
41
41
|
"step": {
|
|
42
42
|
"type": "integer",
|