@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.
Files changed (119) hide show
  1. package/.github/workflows/ci.yml +51 -1
  2. package/.vscode/settings.json +10 -1
  3. package/Linux.flatc.binary.clang++-12.zip +0 -0
  4. package/README.md +5 -25
  5. package/flatc +0 -0
  6. package/internal/generateFlatbufferSchema.d.ts +6 -0
  7. package/internal/generateFlatbufferSchema.d.ts.map +1 -0
  8. package/internal/generateFlatbufferSchema.js +172 -0
  9. package/internal/generateFlatbufferSchema.js.map +1 -0
  10. package/internal/generateFlatbufferSchema.test.d.ts +2 -0
  11. package/internal/generateFlatbufferSchema.test.d.ts.map +1 -0
  12. package/internal/generateFlatbufferSchema.test.js +120 -0
  13. package/internal/generateFlatbufferSchema.test.js.map +1 -0
  14. package/internal/generateFlatbufferSchema.test.ts +118 -0
  15. package/internal/generateFlatbufferSchema.ts +189 -0
  16. package/internal/generateProto.test.js +1 -1
  17. package/internal/generateProto.test.js.map +1 -1
  18. package/internal/generateProto.test.ts +1 -1
  19. package/internal/schemas.d.ts.map +1 -1
  20. package/internal/schemas.js +21 -11
  21. package/internal/schemas.js.map +1 -1
  22. package/internal/schemas.test.js +1 -1
  23. package/internal/schemas.test.js.map +1 -1
  24. package/internal/schemas.test.ts +1 -1
  25. package/internal/schemas.ts +23 -11
  26. package/internal/testFixtures.d.ts.map +1 -1
  27. package/internal/testFixtures.js +11 -1
  28. package/internal/testFixtures.js.map +1 -1
  29. package/internal/testFixtures.ts +12 -1
  30. package/internal/types.d.ts +2 -1
  31. package/internal/types.d.ts.map +1 -1
  32. package/internal/types.ts +2 -1
  33. package/package.json +1 -1
  34. package/python/Makefile +39 -0
  35. package/python/Pipfile +17 -0
  36. package/python/Pipfile.lock +329 -0
  37. package/python/foxglove-schemas-protobuf/README.md +23 -0
  38. package/python/foxglove-schemas-protobuf/foxglove_schemas_protobuf/__init__.py +0 -0
  39. package/python/foxglove-schemas-protobuf/foxglove_schemas_protobuf/py.typed +0 -0
  40. package/python/foxglove-schemas-protobuf/pyproject.toml +11 -0
  41. package/python/foxglove-schemas-protobuf/setup.cfg +21 -0
  42. package/python/foxglove-schemas-protobuf/tests/test_schemas.py +5 -0
  43. package/schemas/README.md +8 -2
  44. package/schemas/flatbuffer/ArrowPrimitive.fbs +29 -0
  45. package/schemas/flatbuffer/ByteVector.fbs +8 -0
  46. package/schemas/flatbuffer/CameraCalibration.fbs +78 -0
  47. package/schemas/flatbuffer/CircleAnnotation.fbs +30 -0
  48. package/schemas/flatbuffer/Color.fbs +20 -0
  49. package/schemas/flatbuffer/CompressedImage.fbs +24 -0
  50. package/schemas/flatbuffer/CubePrimitive.fbs +21 -0
  51. package/schemas/flatbuffer/CylinderPrimitive.fbs +27 -0
  52. package/schemas/flatbuffer/Duration.fbs +10 -0
  53. package/schemas/flatbuffer/FrameTransform.fbs +27 -0
  54. package/schemas/flatbuffer/GeoJSON.fbs +11 -0
  55. package/schemas/flatbuffer/Grid.fbs +40 -0
  56. package/schemas/flatbuffer/ImageAnnotations.fbs +17 -0
  57. package/schemas/flatbuffer/KeyValuePair.fbs +14 -0
  58. package/schemas/flatbuffer/LaserScan.fbs +32 -0
  59. package/schemas/flatbuffer/LinePrimitive.fbs +49 -0
  60. package/schemas/flatbuffer/LocationFix.fbs +34 -0
  61. package/schemas/flatbuffer/Log.fbs +42 -0
  62. package/schemas/flatbuffer/ModelPrimitive.fbs +33 -0
  63. package/schemas/flatbuffer/PackedElementField.fbs +37 -0
  64. package/schemas/flatbuffer/Point2.fbs +14 -0
  65. package/schemas/flatbuffer/Point3.fbs +17 -0
  66. package/schemas/flatbuffer/PointCloud.fbs +30 -0
  67. package/schemas/flatbuffer/PointsAnnotation.fbs +45 -0
  68. package/schemas/flatbuffer/Pose.fbs +17 -0
  69. package/schemas/flatbuffer/PoseInFrame.fbs +20 -0
  70. package/schemas/flatbuffer/PosesInFrame.fbs +20 -0
  71. package/schemas/flatbuffer/Quaternion.fbs +20 -0
  72. package/schemas/flatbuffer/RawImage.fbs +33 -0
  73. package/schemas/flatbuffer/SceneEntity.fbs +62 -0
  74. package/schemas/flatbuffer/SceneEntityDeletion.fbs +27 -0
  75. package/schemas/flatbuffer/SceneUpdate.fbs +17 -0
  76. package/schemas/flatbuffer/SpherePrimitive.fbs +21 -0
  77. package/schemas/flatbuffer/TextPrimitive.fbs +29 -0
  78. package/schemas/flatbuffer/Time.fbs +9 -0
  79. package/schemas/flatbuffer/TriangleListPrimitive.fbs +29 -0
  80. package/schemas/flatbuffer/Vector2.fbs +14 -0
  81. package/schemas/flatbuffer/Vector3.fbs +17 -0
  82. package/schemas/jsonschema/CameraCalibration.json +2 -2
  83. package/schemas/jsonschema/CompressedImage.json +1 -1
  84. package/schemas/jsonschema/CubePrimitive.json +1 -1
  85. package/schemas/jsonschema/RawImage.json +1 -1
  86. package/schemas/jsonschema/SceneEntity.json +1 -1
  87. package/schemas/jsonschema/SceneUpdate.json +1 -1
  88. package/schemas/jsonschema/index.d.ts +4510 -35
  89. package/schemas/jsonschema/index.d.ts.map +1 -1
  90. package/schemas/jsonschema/index.js +7 -7
  91. package/schemas/jsonschema/index.js.map +1 -1
  92. package/schemas/jsonschema/index.ts +42 -42
  93. package/schemas/proto/foxglove/CameraCalibration.proto +3 -1
  94. package/schemas/proto/foxglove/CompressedImage.proto +2 -0
  95. package/schemas/proto/foxglove/CubePrimitive.proto +1 -1
  96. package/schemas/proto/foxglove/RawImage.proto +2 -0
  97. package/schemas/ros1/CameraCalibration.msg +3 -1
  98. package/schemas/ros1/CompressedImage.msg +2 -0
  99. package/schemas/ros1/CubePrimitive.msg +1 -1
  100. package/schemas/ros1/RawImage.msg +2 -0
  101. package/schemas/ros2/CameraCalibration.msg +3 -1
  102. package/schemas/ros2/CompressedImage.msg +2 -0
  103. package/schemas/ros2/CubePrimitive.msg +1 -1
  104. package/schemas/ros2/RawImage.msg +2 -0
  105. package/schemas/typescript/CameraCalibration.d.ts +6 -2
  106. package/schemas/typescript/CameraCalibration.d.ts.map +1 -1
  107. package/schemas/typescript/CameraCalibration.ts +6 -2
  108. package/schemas/typescript/CompressedImage.d.ts +5 -1
  109. package/schemas/typescript/CompressedImage.d.ts.map +1 -1
  110. package/schemas/typescript/CompressedImage.ts +5 -1
  111. package/schemas/typescript/CubePrimitive.d.ts +1 -1
  112. package/schemas/typescript/CubePrimitive.d.ts.map +1 -1
  113. package/schemas/typescript/CubePrimitive.ts +1 -1
  114. package/schemas/typescript/RawImage.d.ts +5 -1
  115. package/schemas/typescript/RawImage.d.ts.map +1 -1
  116. package/schemas/typescript/RawImage.ts +5 -1
  117. package/scripts/updateGeneratedFiles.js +14 -2
  118. package/scripts/updateGeneratedFiles.js.map +1 -1
  119. 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,9 @@
1
+
2
+ namespace foxglove;
3
+
4
+ struct Time {
5
+ /// Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z
6
+ sec:uint32;
7
+ /// Nano-second fractions from 0 to 999,999,999 inclusive
8
+ nsec:uint32;
9
+ }
@@ -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",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "format": {
33
33
  "type": "string",
34
- "description": "Image format"
34
+ "description": "Image format\n\nSupported values: `webp`, `jpeg`, `png`"
35
35
  }
36
36
  }
37
37
  }
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "color": {
76
76
  "title": "foxglove.Color",
77
- "description": "Color of the arrow",
77
+ "description": "Color of the cube",
78
78
  "type": "object",
79
79
  "properties": {
80
80
  "r": {
@@ -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",
@@ -242,7 +242,7 @@
242
242
  },
243
243
  "color": {
244
244
  "title": "foxglove.Color",
245
- "description": "Color of the arrow",
245
+ "description": "Color of the cube",
246
246
  "type": "object",
247
247
  "properties": {
248
248
  "r": {
@@ -296,7 +296,7 @@
296
296
  },
297
297
  "color": {
298
298
  "title": "foxglove.Color",
299
- "description": "Color of the arrow",
299
+ "description": "Color of the cube",
300
300
  "type": "object",
301
301
  "properties": {
302
302
  "r": {