@foxglove/schemas 1.6.0 → 1.6.2

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 (37) hide show
  1. package/internal/__snapshots__/exportTypeScriptSchemas.test.ts.snap +15 -7
  2. package/internal/schemas.d.ts.map +1 -1
  3. package/internal/schemas.js +6 -6
  4. package/internal/schemas.js.map +1 -1
  5. package/internal/schemas.ts +7 -6
  6. package/package.json +1 -1
  7. package/schemas/README.md +11 -7
  8. package/schemas/flatbuffer/CompressedImage.fbs +1 -1
  9. package/schemas/flatbuffer/CompressedVideo.fbs +9 -5
  10. package/schemas/flatbuffer/PointsAnnotation.fbs +1 -1
  11. package/schemas/jsonschema/CompressedImage.json +1 -1
  12. package/schemas/jsonschema/CompressedVideo.json +4 -4
  13. package/schemas/jsonschema/ImageAnnotations.json +1 -1
  14. package/schemas/jsonschema/PointsAnnotation.json +1 -1
  15. package/schemas/jsonschema/index.js +7 -7
  16. package/schemas/jsonschema/index.js.map +1 -1
  17. package/schemas/jsonschema/index.ts +7 -7
  18. package/schemas/omgidl/foxglove/CompressedImage.idl +1 -1
  19. package/schemas/omgidl/foxglove/CompressedVideo.idl +9 -5
  20. package/schemas/omgidl/foxglove/PointsAnnotation.idl +1 -1
  21. package/schemas/proto/foxglove/CompressedImage.proto +1 -1
  22. package/schemas/proto/foxglove/CompressedVideo.proto +9 -5
  23. package/schemas/proto/foxglove/PointsAnnotation.proto +1 -1
  24. package/schemas/ros1/CompressedImage.msg +1 -1
  25. package/schemas/ros1/CompressedVideo.msg +9 -5
  26. package/schemas/ros1/PointsAnnotation.msg +1 -1
  27. package/schemas/ros2/CompressedImage.msg +1 -1
  28. package/schemas/ros2/CompressedVideo.msg +9 -5
  29. package/schemas/ros2/PointsAnnotation.msg +1 -1
  30. package/schemas/typescript/CompressedImage.d.ts +1 -1
  31. package/schemas/typescript/CompressedImage.ts +1 -1
  32. package/schemas/typescript/CompressedVideo.d.ts +13 -5
  33. package/schemas/typescript/CompressedVideo.d.ts.map +1 -1
  34. package/schemas/typescript/CompressedVideo.ts +13 -5
  35. package/schemas/typescript/PointsAnnotation.d.ts +1 -1
  36. package/schemas/typescript/PointsAnnotation.d.ts.map +1 -1
  37. package/schemas/typescript/PointsAnnotation.ts +1 -1
@@ -3,16 +3,20 @@
3
3
 
4
4
  # Generated by https://github.com/foxglove/schemas
5
5
 
6
- # Timestamp of image
6
+ # Timestamp of video frame
7
7
  builtin_interfaces/Time timestamp
8
8
 
9
- # Frame of reference for the image. The origin of the frame is the optical center of the camera. +x points to the right in the image, +y points down, and +z points into the plane of the image.
9
+ # Frame of reference for the video.
10
+ #
11
+ # The origin of the frame is the optical center of the camera. +x points to the right in the video, +y points down, and +z points into the plane of the video.
10
12
  string frame_id
11
13
 
12
- # Compressed video frame data. For 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).
14
+ # Compressed video frame data.
15
+ #
16
+ # For 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 Studio does not support video streams that include B frames because they require lookahead.
13
17
  uint8[] data
14
18
 
15
- # Video format
19
+ # Video format.
16
20
  #
17
- # Supported values: `h264`
21
+ # Supported values: `h264` (Annex B formatted data only)
18
22
  string format
@@ -29,7 +29,7 @@ foxglove_msgs/Point2[] points
29
29
  # Outline color
30
30
  foxglove_msgs/Color outline_color
31
31
 
32
- # Per-point colors, if `type` is `POINTS`, or per-segment stroke colors, if `type` is `LINE_LIST`.
32
+ # Per-point colors, if `type` is `POINTS`, or per-segment stroke colors, if `type` is `LINE_LIST`, `LINE_STRIP` or `LINE_LOOP`.
33
33
  foxglove_msgs/Color[] outline_colors
34
34
 
35
35
  # Fill color
@@ -10,7 +10,7 @@ export type CompressedImage = {
10
10
  /**
11
11
  * Image format
12
12
  *
13
- * Supported values: `webp`, `jpeg`, `png`
13
+ * Supported values: image media types supported by Chrome, such as `webp`, `jpeg`, `png`
14
14
  */
15
15
  format: string;
16
16
  };
@@ -17,7 +17,7 @@ export type CompressedImage = {
17
17
  /**
18
18
  * Image format
19
19
  *
20
- * Supported values: `webp`, `jpeg`, `png`
20
+ * Supported values: image media types supported by Chrome, such as `webp`, `jpeg`, `png`
21
21
  */
22
22
  format: string;
23
23
  };
@@ -1,16 +1,24 @@
1
1
  import { Time } from "./Time";
2
2
  /** A single frame of a compressed video bitstream */
3
3
  export type CompressedVideo = {
4
- /** Timestamp of image */
4
+ /** Timestamp of video frame */
5
5
  timestamp: Time;
6
- /** Frame of reference for the image. The origin of the frame is the optical center of the camera. +x points to the right in the image, +y points down, and +z points into the plane of the image. */
6
+ /**
7
+ * Frame of reference for the video.
8
+ *
9
+ * The origin of the frame is the optical center of the camera. +x points to the right in the video, +y points down, and +z points into the plane of the video.
10
+ */
7
11
  frame_id: string;
8
- /** Compressed video frame data. For 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). */
12
+ /**
13
+ * Compressed video frame data.
14
+ *
15
+ * For 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 Studio does not support video streams that include B frames because they require lookahead.
16
+ */
9
17
  data: Uint8Array;
10
18
  /**
11
- * Video format
19
+ * Video format.
12
20
  *
13
- * Supported values: `h264`
21
+ * Supported values: `h264` (Annex B formatted data only)
14
22
  */
15
23
  format: string;
16
24
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CompressedVideo.d.ts","sourceRoot":"","sources":["CompressedVideo.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,qDAAqD;AACrD,MAAM,MAAM,eAAe,GAAG;IAC5B,yBAAyB;IACzB,SAAS,EAAE,IAAI,CAAC;IAEhB,qMAAqM;IACrM,QAAQ,EAAE,MAAM,CAAC;IAEjB,+OAA+O;IAC/O,IAAI,EAAE,UAAU,CAAC;IAEjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"CompressedVideo.d.ts","sourceRoot":"","sources":["CompressedVideo.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,qDAAqD;AACrD,MAAM,MAAM,eAAe,GAAG;IAC5B,+BAA+B;IAC/B,SAAS,EAAE,IAAI,CAAC;IAEhB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -5,19 +5,27 @@ import { Time } from "./Time";
5
5
 
6
6
  /** A single frame of a compressed video bitstream */
7
7
  export type CompressedVideo = {
8
- /** Timestamp of image */
8
+ /** Timestamp of video frame */
9
9
  timestamp: Time;
10
10
 
11
- /** Frame of reference for the image. The origin of the frame is the optical center of the camera. +x points to the right in the image, +y points down, and +z points into the plane of the image. */
11
+ /**
12
+ * Frame of reference for the video.
13
+ *
14
+ * The origin of the frame is the optical center of the camera. +x points to the right in the video, +y points down, and +z points into the plane of the video.
15
+ */
12
16
  frame_id: string;
13
17
 
14
- /** Compressed video frame data. For 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). */
18
+ /**
19
+ * Compressed video frame data.
20
+ *
21
+ * For 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 Studio does not support video streams that include B frames because they require lookahead.
22
+ */
15
23
  data: Uint8Array;
16
24
 
17
25
  /**
18
- * Video format
26
+ * Video format.
19
27
  *
20
- * Supported values: `h264`
28
+ * Supported values: `h264` (Annex B formatted data only)
21
29
  */
22
30
  format: string;
23
31
  };
@@ -12,7 +12,7 @@ export type PointsAnnotation = {
12
12
  points: Point2[];
13
13
  /** Outline color */
14
14
  outline_color: Color;
15
- /** Per-point colors, if `type` is `POINTS`, or per-segment stroke colors, if `type` is `LINE_LIST`. */
15
+ /** Per-point colors, if `type` is `POINTS`, or per-segment stroke colors, if `type` is `LINE_LIST`, `LINE_STRIP` or `LINE_LOOP`. */
16
16
  outline_colors: Color[];
17
17
  /** Fill color */
18
18
  fill_color: Color;
@@ -1 +1 @@
1
- {"version":3,"file":"PointsAnnotation.d.ts","sourceRoot":"","sources":["PointsAnnotation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,uCAAuC;AACvC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,8BAA8B;IAC9B,SAAS,EAAE,IAAI,CAAC;IAEhB,wCAAwC;IACxC,IAAI,EAAE,oBAAoB,CAAC;IAE3B,8CAA8C;IAC9C,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB,oBAAoB;IACpB,aAAa,EAAE,KAAK,CAAC;IAErB,uGAAuG;IACvG,cAAc,EAAE,KAAK,EAAE,CAAC;IAExB,iBAAiB;IACjB,UAAU,EAAE,KAAK,CAAC;IAElB,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"PointsAnnotation.d.ts","sourceRoot":"","sources":["PointsAnnotation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,uCAAuC;AACvC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,8BAA8B;IAC9B,SAAS,EAAE,IAAI,CAAC;IAEhB,wCAAwC;IACxC,IAAI,EAAE,oBAAoB,CAAC;IAE3B,8CAA8C;IAC9C,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB,oBAAoB;IACpB,aAAa,EAAE,KAAK,CAAC;IAErB,oIAAoI;IACpI,cAAc,EAAE,KAAK,EAAE,CAAC;IAExB,iBAAiB;IACjB,UAAU,EAAE,KAAK,CAAC;IAElB,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -20,7 +20,7 @@ export type PointsAnnotation = {
20
20
  /** Outline color */
21
21
  outline_color: Color;
22
22
 
23
- /** Per-point colors, if `type` is `POINTS`, or per-segment stroke colors, if `type` is `LINE_LIST`. */
23
+ /** Per-point colors, if `type` is `POINTS`, or per-segment stroke colors, if `type` is `LINE_LIST`, `LINE_STRIP` or `LINE_LOOP`. */
24
24
  outline_colors: Color[];
25
25
 
26
26
  /** Fill color */