@foxglove/schemas 0.3.0 → 0.6.0
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/.vscode/settings.json +1 -1
- package/README.md +5 -7
- package/dist/cjs/schemas/typescript/ArrowPrimitive.d.ts +18 -0
- package/dist/cjs/schemas/typescript/ArrowPrimitive.d.ts.map +1 -0
- package/dist/cjs/schemas/typescript/ArrowPrimitive.js +4 -0
- package/dist/cjs/schemas/typescript/ArrowPrimitive.js.map +1 -0
- package/dist/cjs/schemas/typescript/CameraCalibration.d.ts +2 -0
- package/dist/cjs/schemas/typescript/CameraCalibration.d.ts.map +1 -1
- package/dist/cjs/schemas/typescript/CompressedImage.d.ts +2 -0
- package/dist/cjs/schemas/typescript/CompressedImage.d.ts.map +1 -1
- package/dist/cjs/schemas/typescript/CubePrimitive.d.ts +13 -0
- package/dist/cjs/schemas/typescript/CubePrimitive.d.ts.map +1 -0
- package/dist/cjs/schemas/typescript/CubePrimitive.js +4 -0
- package/dist/cjs/schemas/typescript/CubePrimitive.js.map +1 -0
- package/dist/cjs/schemas/typescript/CylinderPrimitive.d.ts +17 -0
- package/dist/cjs/schemas/typescript/CylinderPrimitive.d.ts.map +1 -0
- package/dist/cjs/schemas/typescript/CylinderPrimitive.js +4 -0
- package/dist/cjs/schemas/typescript/CylinderPrimitive.js.map +1 -0
- package/dist/cjs/schemas/typescript/KeyValuePair.d.ts +8 -0
- package/dist/cjs/schemas/typescript/KeyValuePair.d.ts.map +1 -0
- package/dist/cjs/schemas/typescript/KeyValuePair.js +4 -0
- package/dist/cjs/schemas/typescript/KeyValuePair.js.map +1 -0
- package/dist/cjs/schemas/typescript/LinePrimitive.d.ts +28 -0
- package/dist/cjs/schemas/typescript/LinePrimitive.d.ts.map +1 -0
- package/dist/cjs/schemas/typescript/LinePrimitive.js +4 -0
- package/dist/cjs/schemas/typescript/LinePrimitive.js.map +1 -0
- package/dist/cjs/schemas/typescript/LineType.d.ts +10 -0
- package/dist/cjs/schemas/typescript/LineType.d.ts.map +1 -0
- package/dist/cjs/schemas/typescript/LineType.js +15 -0
- package/dist/cjs/schemas/typescript/LineType.js.map +1 -0
- package/dist/cjs/schemas/typescript/ModelPrimitive.d.ts +21 -0
- package/dist/cjs/schemas/typescript/ModelPrimitive.d.ts.map +1 -0
- package/dist/cjs/schemas/typescript/ModelPrimitive.js +4 -0
- package/dist/cjs/schemas/typescript/ModelPrimitive.js.map +1 -0
- package/dist/cjs/schemas/typescript/PointsAnnotation.d.ts +5 -1
- package/dist/cjs/schemas/typescript/PointsAnnotation.d.ts.map +1 -1
- package/dist/cjs/schemas/typescript/RawImage.d.ts +2 -0
- package/dist/cjs/schemas/typescript/RawImage.d.ts.map +1 -1
- package/dist/cjs/schemas/typescript/SceneEntity.d.ts +43 -0
- package/dist/cjs/schemas/typescript/SceneEntity.d.ts.map +1 -0
- package/dist/cjs/schemas/typescript/SceneEntity.js +4 -0
- package/dist/cjs/schemas/typescript/SceneEntity.js.map +1 -0
- package/dist/cjs/schemas/typescript/SceneEntityDeletion.d.ts +12 -0
- package/dist/cjs/schemas/typescript/SceneEntityDeletion.d.ts.map +1 -0
- package/dist/cjs/schemas/typescript/SceneEntityDeletion.js +4 -0
- package/dist/cjs/schemas/typescript/SceneEntityDeletion.js.map +1 -0
- package/dist/cjs/schemas/typescript/SceneEntityDeletionType.d.ts +8 -0
- package/dist/cjs/schemas/typescript/SceneEntityDeletionType.d.ts.map +1 -0
- package/dist/cjs/schemas/typescript/SceneEntityDeletionType.js +13 -0
- package/dist/cjs/schemas/typescript/SceneEntityDeletionType.js.map +1 -0
- package/dist/cjs/schemas/typescript/SceneUpdate.d.ts +10 -0
- package/dist/cjs/schemas/typescript/SceneUpdate.d.ts.map +1 -0
- package/dist/cjs/schemas/typescript/SceneUpdate.js +4 -0
- package/dist/cjs/schemas/typescript/SceneUpdate.js.map +1 -0
- package/dist/cjs/schemas/typescript/SpherePrimitive.d.ts +13 -0
- package/dist/cjs/schemas/typescript/SpherePrimitive.d.ts.map +1 -0
- package/dist/cjs/schemas/typescript/SpherePrimitive.js +4 -0
- package/dist/cjs/schemas/typescript/SpherePrimitive.js.map +1 -0
- package/dist/cjs/schemas/typescript/TextPrimitive.d.ts +18 -0
- package/dist/cjs/schemas/typescript/TextPrimitive.d.ts.map +1 -0
- package/dist/cjs/schemas/typescript/TextPrimitive.js +4 -0
- package/dist/cjs/schemas/typescript/TextPrimitive.js.map +1 -0
- package/dist/cjs/schemas/typescript/TriangleListPrimitive.d.ts +21 -0
- package/dist/cjs/schemas/typescript/TriangleListPrimitive.d.ts.map +1 -0
- package/dist/cjs/schemas/typescript/TriangleListPrimitive.js +4 -0
- package/dist/cjs/schemas/typescript/TriangleListPrimitive.js.map +1 -0
- package/dist/cjs/schemas/typescript/index.d.ts +14 -0
- package/dist/cjs/schemas/typescript/index.d.ts.map +1 -1
- package/dist/cjs/schemas/typescript/index.js +14 -0
- package/dist/cjs/schemas/typescript/index.js.map +1 -1
- package/dist/cjs/src/generateMarkdown.d.ts.map +1 -1
- package/dist/cjs/src/generateMarkdown.js +3 -1
- package/dist/cjs/src/generateMarkdown.js.map +1 -1
- package/dist/cjs/src/generateProto.d.ts.map +1 -1
- package/dist/cjs/src/generateProto.js +21 -3
- package/dist/cjs/src/generateProto.js.map +1 -1
- package/dist/cjs/src/generateProto.test.js +22 -22
- package/dist/cjs/src/schemas.d.ts +15 -1
- package/dist/cjs/src/schemas.d.ts.map +1 -1
- package/dist/cjs/src/schemas.js +569 -79
- package/dist/cjs/src/schemas.js.map +1 -1
- package/dist/cjs/src/schemas.test.js +17 -0
- package/dist/cjs/src/schemas.test.js.map +1 -1
- package/dist/cjs/src/testFixtures.d.ts.map +1 -1
- package/dist/cjs/src/testFixtures.js +1 -0
- package/dist/cjs/src/testFixtures.js.map +1 -1
- package/dist/cjs/src/types.d.ts +18 -16
- package/dist/cjs/src/types.d.ts.map +1 -1
- package/dist/esm/schemas/typescript/ArrowPrimitive.d.ts +18 -0
- package/dist/esm/schemas/typescript/ArrowPrimitive.d.ts.map +1 -0
- package/dist/esm/schemas/typescript/ArrowPrimitive.js +3 -0
- package/dist/esm/schemas/typescript/ArrowPrimitive.js.map +1 -0
- package/dist/esm/schemas/typescript/CameraCalibration.d.ts +2 -0
- package/dist/esm/schemas/typescript/CameraCalibration.d.ts.map +1 -1
- package/dist/esm/schemas/typescript/CompressedImage.d.ts +2 -0
- package/dist/esm/schemas/typescript/CompressedImage.d.ts.map +1 -1
- package/dist/esm/schemas/typescript/CubePrimitive.d.ts +13 -0
- package/dist/esm/schemas/typescript/CubePrimitive.d.ts.map +1 -0
- package/dist/esm/schemas/typescript/CubePrimitive.js +3 -0
- package/dist/esm/schemas/typescript/CubePrimitive.js.map +1 -0
- package/dist/esm/schemas/typescript/CylinderPrimitive.d.ts +17 -0
- package/dist/esm/schemas/typescript/CylinderPrimitive.d.ts.map +1 -0
- package/dist/esm/schemas/typescript/CylinderPrimitive.js +3 -0
- package/dist/esm/schemas/typescript/CylinderPrimitive.js.map +1 -0
- package/dist/esm/schemas/typescript/KeyValuePair.d.ts +8 -0
- package/dist/esm/schemas/typescript/KeyValuePair.d.ts.map +1 -0
- package/dist/esm/schemas/typescript/KeyValuePair.js +3 -0
- package/dist/esm/schemas/typescript/KeyValuePair.js.map +1 -0
- package/dist/esm/schemas/typescript/LinePrimitive.d.ts +28 -0
- package/dist/esm/schemas/typescript/LinePrimitive.d.ts.map +1 -0
- package/dist/esm/schemas/typescript/LinePrimitive.js +3 -0
- package/dist/esm/schemas/typescript/LinePrimitive.js.map +1 -0
- package/dist/esm/schemas/typescript/LineType.d.ts +10 -0
- package/dist/esm/schemas/typescript/LineType.d.ts.map +1 -0
- package/dist/esm/schemas/typescript/LineType.js +12 -0
- package/dist/esm/schemas/typescript/LineType.js.map +1 -0
- package/dist/esm/schemas/typescript/ModelPrimitive.d.ts +21 -0
- package/dist/esm/schemas/typescript/ModelPrimitive.d.ts.map +1 -0
- package/dist/esm/schemas/typescript/ModelPrimitive.js +3 -0
- package/dist/esm/schemas/typescript/ModelPrimitive.js.map +1 -0
- package/dist/esm/schemas/typescript/PointsAnnotation.d.ts +5 -1
- package/dist/esm/schemas/typescript/PointsAnnotation.d.ts.map +1 -1
- package/dist/esm/schemas/typescript/RawImage.d.ts +2 -0
- package/dist/esm/schemas/typescript/RawImage.d.ts.map +1 -1
- package/dist/esm/schemas/typescript/SceneEntity.d.ts +43 -0
- package/dist/esm/schemas/typescript/SceneEntity.d.ts.map +1 -0
- package/dist/esm/schemas/typescript/SceneEntity.js +3 -0
- package/dist/esm/schemas/typescript/SceneEntity.js.map +1 -0
- package/dist/esm/schemas/typescript/SceneEntityDeletion.d.ts +12 -0
- package/dist/esm/schemas/typescript/SceneEntityDeletion.d.ts.map +1 -0
- package/dist/esm/schemas/typescript/SceneEntityDeletion.js +3 -0
- package/dist/esm/schemas/typescript/SceneEntityDeletion.js.map +1 -0
- package/dist/esm/schemas/typescript/SceneEntityDeletionType.d.ts +8 -0
- package/dist/esm/schemas/typescript/SceneEntityDeletionType.d.ts.map +1 -0
- package/dist/esm/schemas/typescript/SceneEntityDeletionType.js +10 -0
- package/dist/esm/schemas/typescript/SceneEntityDeletionType.js.map +1 -0
- package/dist/esm/schemas/typescript/SceneUpdate.d.ts +10 -0
- package/dist/esm/schemas/typescript/SceneUpdate.d.ts.map +1 -0
- package/dist/esm/schemas/typescript/SceneUpdate.js +3 -0
- package/dist/esm/schemas/typescript/SceneUpdate.js.map +1 -0
- package/dist/esm/schemas/typescript/SpherePrimitive.d.ts +13 -0
- package/dist/esm/schemas/typescript/SpherePrimitive.d.ts.map +1 -0
- package/dist/esm/schemas/typescript/SpherePrimitive.js +3 -0
- package/dist/esm/schemas/typescript/SpherePrimitive.js.map +1 -0
- package/dist/esm/schemas/typescript/TextPrimitive.d.ts +18 -0
- package/dist/esm/schemas/typescript/TextPrimitive.d.ts.map +1 -0
- package/dist/esm/schemas/typescript/TextPrimitive.js +3 -0
- package/dist/esm/schemas/typescript/TextPrimitive.js.map +1 -0
- package/dist/esm/schemas/typescript/TriangleListPrimitive.d.ts +21 -0
- package/dist/esm/schemas/typescript/TriangleListPrimitive.d.ts.map +1 -0
- package/dist/esm/schemas/typescript/TriangleListPrimitive.js +3 -0
- package/dist/esm/schemas/typescript/TriangleListPrimitive.js.map +1 -0
- package/dist/esm/schemas/typescript/index.d.ts +14 -0
- package/dist/esm/schemas/typescript/index.d.ts.map +1 -1
- package/dist/esm/schemas/typescript/index.js +14 -0
- package/dist/esm/schemas/typescript/index.js.map +1 -1
- package/dist/esm/src/generateMarkdown.d.ts.map +1 -1
- package/dist/esm/src/generateMarkdown.js +3 -1
- package/dist/esm/src/generateMarkdown.js.map +1 -1
- package/dist/esm/src/generateProto.d.ts.map +1 -1
- package/dist/esm/src/generateProto.js +21 -3
- package/dist/esm/src/generateProto.js.map +1 -1
- package/dist/esm/src/generateProto.test.js +22 -22
- package/dist/esm/src/schemas.d.ts +15 -1
- package/dist/esm/src/schemas.d.ts.map +1 -1
- package/dist/esm/src/schemas.js +569 -79
- package/dist/esm/src/schemas.js.map +1 -1
- package/dist/esm/src/schemas.test.js +17 -0
- package/dist/esm/src/schemas.test.js.map +1 -1
- package/dist/esm/src/testFixtures.d.ts.map +1 -1
- package/dist/esm/src/testFixtures.js +1 -0
- package/dist/esm/src/testFixtures.js.map +1 -1
- package/dist/esm/src/types.d.ts +18 -16
- package/dist/esm/src/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/schemas/README.md +1098 -14
- package/schemas/jsonschema/ArrowPrimitive.json +96 -0
- package/schemas/jsonschema/CameraCalibration.json +4 -0
- package/schemas/jsonschema/CompressedImage.json +4 -0
- package/schemas/jsonschema/CubePrimitive.json +99 -0
- package/schemas/jsonschema/CylinderPrimitive.json +107 -0
- package/schemas/jsonschema/ImageAnnotations.json +28 -1
- package/schemas/jsonschema/KeyValuePair.json +16 -0
- package/schemas/jsonschema/LinePrimitive.json +167 -0
- package/schemas/jsonschema/ModelPrimitive.json +116 -0
- package/schemas/jsonschema/PointsAnnotation.json +28 -1
- package/schemas/jsonschema/RawImage.json +4 -0
- package/schemas/jsonschema/SceneEntity.json +1012 -0
- package/schemas/jsonschema/SceneEntityDeletion.json +44 -0
- package/schemas/jsonschema/SceneUpdate.json +1070 -0
- package/schemas/jsonschema/SpherePrimitive.json +99 -0
- package/schemas/jsonschema/TextPrimitive.json +96 -0
- package/schemas/jsonschema/TriangleListPrimitive.json +138 -0
- package/schemas/proto/foxglove/ArrowPrimitive.proto +29 -0
- package/schemas/proto/foxglove/CameraCalibration.proto +3 -0
- package/schemas/proto/foxglove/CompressedImage.proto +3 -0
- package/schemas/proto/foxglove/CubePrimitive.proto +21 -0
- package/schemas/proto/foxglove/CylinderPrimitive.proto +27 -0
- package/schemas/proto/foxglove/KeyValuePair.proto +14 -0
- package/schemas/proto/foxglove/LinePrimitive.proto +49 -0
- package/schemas/proto/foxglove/ModelPrimitive.proto +33 -0
- package/schemas/proto/foxglove/PointsAnnotation.proto +9 -3
- package/schemas/proto/foxglove/RawImage.proto +3 -0
- package/schemas/proto/foxglove/SceneEntity.proto +62 -0
- package/schemas/proto/foxglove/SceneEntityDeletion.proto +27 -0
- package/schemas/proto/foxglove/SceneUpdate.proto +17 -0
- package/schemas/proto/foxglove/SpherePrimitive.proto +21 -0
- package/schemas/proto/foxglove/TextPrimitive.proto +29 -0
- package/schemas/proto/foxglove/TriangleListPrimitive.proto +29 -0
- package/schemas/ros1/ArrowPrimitive.msg +22 -0
- package/schemas/ros1/CameraCalibration.msg +3 -0
- package/schemas/ros1/CompressedImage.msg +3 -0
- package/schemas/ros1/CubePrimitive.msg +13 -0
- package/schemas/ros1/CylinderPrimitive.msg +19 -0
- package/schemas/ros1/KeyValuePair.msg +10 -0
- package/schemas/ros1/LinePrimitive.msg +39 -0
- package/schemas/ros1/ModelPrimitive.msg +25 -0
- package/schemas/ros1/PointsAnnotation.msg +7 -1
- package/schemas/ros1/RawImage.msg +3 -0
- package/schemas/ros1/SceneEntity.msg +46 -0
- package/schemas/ros1/SceneEntityDeletion.msg +19 -0
- package/schemas/ros1/SceneUpdate.msg +10 -0
- package/schemas/ros1/SpherePrimitive.msg +13 -0
- package/schemas/ros1/TextPrimitive.msg +22 -0
- package/schemas/ros1/TriangleListPrimitive.msg +21 -0
- package/schemas/ros2/ArrowPrimitive.msg +22 -0
- package/schemas/ros2/CameraCalibration.msg +3 -0
- package/schemas/ros2/CompressedImage.msg +3 -0
- package/schemas/ros2/CubePrimitive.msg +13 -0
- package/schemas/ros2/CylinderPrimitive.msg +19 -0
- package/schemas/ros2/KeyValuePair.msg +10 -0
- package/schemas/ros2/LinePrimitive.msg +39 -0
- package/schemas/ros2/ModelPrimitive.msg +25 -0
- package/schemas/ros2/PointsAnnotation.msg +7 -1
- package/schemas/ros2/RawImage.msg +3 -0
- package/schemas/ros2/SceneEntity.msg +46 -0
- package/schemas/ros2/SceneEntityDeletion.msg +19 -0
- package/schemas/ros2/SceneUpdate.msg +10 -0
- package/schemas/ros2/SpherePrimitive.msg +13 -0
- package/schemas/ros2/TextPrimitive.msg +22 -0
- package/schemas/ros2/TriangleListPrimitive.msg +21 -0
- package/schemas/typescript/ArrowPrimitive.ts +25 -0
- package/schemas/typescript/CameraCalibration.ts +3 -0
- package/schemas/typescript/CompressedImage.ts +3 -0
- package/schemas/typescript/CubePrimitive.ts +17 -0
- package/schemas/typescript/CylinderPrimitive.ts +23 -0
- package/schemas/typescript/KeyValuePair.ts +10 -0
- package/schemas/typescript/LinePrimitive.ts +37 -0
- package/schemas/typescript/LineType.ts +13 -0
- package/schemas/typescript/ModelPrimitive.ts +29 -0
- package/schemas/typescript/PointsAnnotation.ts +7 -1
- package/schemas/typescript/RawImage.ts +3 -0
- package/schemas/typescript/SceneEntity.ts +58 -0
- package/schemas/typescript/SceneEntityDeletion.ts +16 -0
- package/schemas/typescript/SceneEntityDeletionType.ts +10 -0
- package/schemas/typescript/SceneUpdate.ts +13 -0
- package/schemas/typescript/SpherePrimitive.ts +17 -0
- package/schemas/typescript/TextPrimitive.ts +25 -0
- package/schemas/typescript/TriangleListPrimitive.ts +27 -0
- package/schemas/typescript/index.ts +14 -0
- package/src/generateMarkdown.ts +3 -1
- package/src/generateProto.test.ts +22 -22
- package/src/generateProto.ts +33 -4
- package/src/schemas.test.ts +19 -0
- package/src/schemas.ts +619 -79
- package/src/testFixtures.ts +1 -0
- package/src/types.ts +13 -10
package/dist/cjs/src/schemas.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.foxgloveEnumSchemas = exports.foxgloveMessageSchemas = void 0;
|
|
4
|
-
const
|
|
4
|
+
const Color = {
|
|
5
5
|
type: "message",
|
|
6
6
|
name: "Color",
|
|
7
7
|
description: "A color in RGBA format",
|
|
@@ -28,7 +28,7 @@ const foxglove_Color = {
|
|
|
28
28
|
},
|
|
29
29
|
],
|
|
30
30
|
};
|
|
31
|
-
const
|
|
31
|
+
const Vector2 = {
|
|
32
32
|
type: "message",
|
|
33
33
|
name: "Vector2",
|
|
34
34
|
description: "A vector in 2D space that represents a direction only",
|
|
@@ -45,7 +45,7 @@ const foxglove_Vector2 = {
|
|
|
45
45
|
},
|
|
46
46
|
],
|
|
47
47
|
};
|
|
48
|
-
const
|
|
48
|
+
const Vector3 = {
|
|
49
49
|
type: "message",
|
|
50
50
|
name: "Vector3",
|
|
51
51
|
description: "A vector in 3D space that represents a direction only",
|
|
@@ -68,7 +68,7 @@ const foxglove_Vector3 = {
|
|
|
68
68
|
},
|
|
69
69
|
],
|
|
70
70
|
};
|
|
71
|
-
const
|
|
71
|
+
const Point2 = {
|
|
72
72
|
type: "message",
|
|
73
73
|
name: "Point2",
|
|
74
74
|
description: "A point representing a position in 2D space",
|
|
@@ -85,7 +85,7 @@ const foxglove_Point2 = {
|
|
|
85
85
|
},
|
|
86
86
|
],
|
|
87
87
|
};
|
|
88
|
-
const
|
|
88
|
+
const Point3 = {
|
|
89
89
|
type: "message",
|
|
90
90
|
name: "Point3",
|
|
91
91
|
description: "A point representing a position in 3D space",
|
|
@@ -108,7 +108,7 @@ const foxglove_Point3 = {
|
|
|
108
108
|
},
|
|
109
109
|
],
|
|
110
110
|
};
|
|
111
|
-
const
|
|
111
|
+
const Quaternion = {
|
|
112
112
|
type: "message",
|
|
113
113
|
name: "Quaternion",
|
|
114
114
|
description: "A [quaternion](https://eater.net/quaternions) representing a rotation in 3D space",
|
|
@@ -136,7 +136,7 @@ const foxglove_Quaternion = {
|
|
|
136
136
|
},
|
|
137
137
|
],
|
|
138
138
|
};
|
|
139
|
-
const
|
|
139
|
+
const Pose = {
|
|
140
140
|
type: "message",
|
|
141
141
|
name: "Pose",
|
|
142
142
|
description: "A position and orientation for an object or reference frame in 3D space",
|
|
@@ -144,17 +144,465 @@ const foxglove_Pose = {
|
|
|
144
144
|
fields: [
|
|
145
145
|
{
|
|
146
146
|
name: "position",
|
|
147
|
-
type: { type: "nested", schema:
|
|
147
|
+
type: { type: "nested", schema: Vector3 },
|
|
148
148
|
description: "Point denoting position in 3D space",
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
name: "orientation",
|
|
152
|
-
type: { type: "nested", schema:
|
|
152
|
+
type: { type: "nested", schema: Quaternion },
|
|
153
153
|
description: "Quaternion denoting orientation in 3D space",
|
|
154
154
|
},
|
|
155
155
|
],
|
|
156
156
|
};
|
|
157
|
-
const
|
|
157
|
+
const KeyValuePair = {
|
|
158
|
+
type: "message",
|
|
159
|
+
name: "KeyValuePair",
|
|
160
|
+
description: "(Experimental, subject to change) A key with its associated value",
|
|
161
|
+
fields: [
|
|
162
|
+
{
|
|
163
|
+
name: "key",
|
|
164
|
+
type: { type: "primitive", name: "string" },
|
|
165
|
+
description: "Key",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: "value",
|
|
169
|
+
type: { type: "primitive", name: "string" },
|
|
170
|
+
description: "Value",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
};
|
|
174
|
+
const SceneEntityDeletionType = {
|
|
175
|
+
type: "enum",
|
|
176
|
+
name: "SceneEntityDeletionType",
|
|
177
|
+
protobufParentMessageName: "SceneEntityDeletion",
|
|
178
|
+
protobufEnumName: "Type",
|
|
179
|
+
description: "(Experimental, subject to change) An enumeration indicating which entities should match a SceneEntityDeletion command",
|
|
180
|
+
values: [
|
|
181
|
+
{
|
|
182
|
+
value: 0,
|
|
183
|
+
name: "MATCHING_ID",
|
|
184
|
+
description: "Delete the existing entity on the same topic that has the provided `id`",
|
|
185
|
+
},
|
|
186
|
+
{ value: 1, name: "ALL", description: "Delete all existing entities on the same topic" },
|
|
187
|
+
],
|
|
188
|
+
};
|
|
189
|
+
const SceneEntityDeletion = {
|
|
190
|
+
type: "message",
|
|
191
|
+
name: "SceneEntityDeletion",
|
|
192
|
+
description: "(Experimental, subject to change) Command to remove previously published entities",
|
|
193
|
+
fields: [
|
|
194
|
+
{
|
|
195
|
+
name: "timestamp",
|
|
196
|
+
type: { type: "primitive", name: "time" },
|
|
197
|
+
description: "Timestamp of the deletion. Only matching entities earlier than this timestamp will be deleted.",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: "type",
|
|
201
|
+
type: { type: "enum", enum: SceneEntityDeletionType },
|
|
202
|
+
description: "Type of deletion action to perform",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "id",
|
|
206
|
+
type: { type: "primitive", name: "string" },
|
|
207
|
+
description: "Identifier which must match if `type` is `MATCHING_ID`.",
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
};
|
|
211
|
+
const ArrowPrimitive = {
|
|
212
|
+
type: "message",
|
|
213
|
+
name: "ArrowPrimitive",
|
|
214
|
+
description: "(Experimental, subject to change) A primitive representing an arrow",
|
|
215
|
+
fields: [
|
|
216
|
+
{
|
|
217
|
+
name: "pose",
|
|
218
|
+
type: { type: "nested", schema: Pose },
|
|
219
|
+
description: "Position of the arrow's tail and orientation of the arrow. Identity orientation means the arrow points in the +x direction.",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: "shaft_length",
|
|
223
|
+
type: { type: "primitive", name: "float64" },
|
|
224
|
+
description: "Length of the arrow shaft",
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
name: "shaft_diameter",
|
|
228
|
+
type: { type: "primitive", name: "float64" },
|
|
229
|
+
description: "Diameter of the arrow shaft",
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: "head_length",
|
|
233
|
+
type: { type: "primitive", name: "float64" },
|
|
234
|
+
description: "Length of the arrow head",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: "head_diameter",
|
|
238
|
+
type: { type: "primitive", name: "float64" },
|
|
239
|
+
description: "Diameter of the arrow head",
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
name: "color",
|
|
243
|
+
type: { type: "nested", schema: Color },
|
|
244
|
+
description: "Color of the arrow",
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
};
|
|
248
|
+
const CubePrimitive = {
|
|
249
|
+
type: "message",
|
|
250
|
+
name: "CubePrimitive",
|
|
251
|
+
description: "(Experimental, subject to change) A primitive representing a cube or rectangular prism",
|
|
252
|
+
fields: [
|
|
253
|
+
{
|
|
254
|
+
name: "pose",
|
|
255
|
+
type: { type: "nested", schema: Pose },
|
|
256
|
+
description: "Position of the center of the cube and orientation of the cube",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
name: "size",
|
|
260
|
+
type: { type: "nested", schema: Vector3 },
|
|
261
|
+
description: "Size of the cube along each axis",
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: "color",
|
|
265
|
+
type: { type: "nested", schema: Color },
|
|
266
|
+
description: "Color of the arrow",
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
};
|
|
270
|
+
const SpherePrimitive = {
|
|
271
|
+
type: "message",
|
|
272
|
+
name: "SpherePrimitive",
|
|
273
|
+
description: "(Experimental, subject to change) A primitive representing a sphere or ellipsoid",
|
|
274
|
+
fields: [
|
|
275
|
+
{
|
|
276
|
+
name: "pose",
|
|
277
|
+
type: { type: "nested", schema: Pose },
|
|
278
|
+
description: "Position of the center of the sphere and orientation of the sphere",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: "size",
|
|
282
|
+
type: { type: "nested", schema: Vector3 },
|
|
283
|
+
description: "Size (diameter) of the sphere along each axis",
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
name: "color",
|
|
287
|
+
type: { type: "nested", schema: Color },
|
|
288
|
+
description: "Color of the sphere",
|
|
289
|
+
},
|
|
290
|
+
],
|
|
291
|
+
};
|
|
292
|
+
const CylinderPrimitive = {
|
|
293
|
+
type: "message",
|
|
294
|
+
name: "CylinderPrimitive",
|
|
295
|
+
description: "(Experimental, subject to change) A primitive representing a cylinder, elliptic cylinder, or truncated cone",
|
|
296
|
+
fields: [
|
|
297
|
+
{
|
|
298
|
+
name: "pose",
|
|
299
|
+
type: { type: "nested", schema: Pose },
|
|
300
|
+
description: "Position of the center of the cylinder and orientation of the cylinder. The flat face(s) are perpendicular to the z-axis.",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
name: "size",
|
|
304
|
+
type: { type: "nested", schema: Vector3 },
|
|
305
|
+
description: "Size of the cylinder's bounding box",
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: "bottom_scale",
|
|
309
|
+
type: { type: "primitive", name: "float64" },
|
|
310
|
+
description: "0-1, ratio of the diameter of the cylinder's bottom face (min z) to the bottom of the bounding box",
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: "top_scale",
|
|
314
|
+
type: { type: "primitive", name: "float64" },
|
|
315
|
+
description: "0-1, ratio of the diameter of the cylinder's top face (max z) to the top of the bounding box",
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
name: "color",
|
|
319
|
+
type: { type: "nested", schema: Color },
|
|
320
|
+
description: "Color of the cylinder",
|
|
321
|
+
},
|
|
322
|
+
],
|
|
323
|
+
};
|
|
324
|
+
const LineType = {
|
|
325
|
+
type: "enum",
|
|
326
|
+
name: "LineType",
|
|
327
|
+
protobufParentMessageName: "LinePrimitive",
|
|
328
|
+
protobufEnumName: "Type",
|
|
329
|
+
description: "(Experimental, subject to change) An enumeration indicating how input points should be interpreted to create lines",
|
|
330
|
+
values: [
|
|
331
|
+
{ value: 0, name: "LINE_STRIP", description: "0-1, 1-2, ..., (n-1)-n" },
|
|
332
|
+
{ value: 1, name: "LINE_LOOP", description: "0-1, 1-2, ..., (n-1)-n, n-0" },
|
|
333
|
+
{ value: 2, name: "LINE_LIST", description: "0-1, 2-3, 4-5, ..." },
|
|
334
|
+
],
|
|
335
|
+
};
|
|
336
|
+
const LinePrimitive = {
|
|
337
|
+
type: "message",
|
|
338
|
+
name: "LinePrimitive",
|
|
339
|
+
description: "(Experimental, subject to change) A primitive representing a series of points connected by lines",
|
|
340
|
+
fields: [
|
|
341
|
+
{
|
|
342
|
+
name: "type",
|
|
343
|
+
type: { type: "enum", enum: LineType },
|
|
344
|
+
description: "Drawing primitive to use for lines",
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
name: "pose",
|
|
348
|
+
type: { type: "nested", schema: Pose },
|
|
349
|
+
description: "Origin of lines relative to reference frame",
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
name: "thickness",
|
|
353
|
+
type: { type: "primitive", name: "float64" },
|
|
354
|
+
description: "Line thickness",
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
name: "scale_invariant",
|
|
358
|
+
type: { type: "primitive", name: "boolean" },
|
|
359
|
+
description: "Indicates whether `thickness` is a fixed size in screen pixels (true), or specified in world coordinates and scales with distance from the camera (false)",
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
name: "points",
|
|
363
|
+
type: { type: "nested", schema: Point3 },
|
|
364
|
+
array: true,
|
|
365
|
+
description: "Points along the line",
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
name: "color",
|
|
369
|
+
type: { type: "nested", schema: Color },
|
|
370
|
+
description: "Solid color to use for the whole line. One of `color` or `colors` must be provided.",
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
name: "colors",
|
|
374
|
+
type: { type: "nested", schema: Color },
|
|
375
|
+
array: true,
|
|
376
|
+
description: "Per-point colors (if specified, must have the same length as `points`). One of `color` or `colors` must be provided.",
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
name: "indices",
|
|
380
|
+
type: { type: "primitive", name: "uint32" },
|
|
381
|
+
array: true,
|
|
382
|
+
description: "Indices into the `points` and `colors` attribute arrays, which can be used to avoid duplicating attribute data.\n\nIf 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).",
|
|
383
|
+
},
|
|
384
|
+
],
|
|
385
|
+
};
|
|
386
|
+
const TextPrimitive = {
|
|
387
|
+
type: "message",
|
|
388
|
+
name: "TextPrimitive",
|
|
389
|
+
description: "(Experimental, subject to change) A primitive representing a text label",
|
|
390
|
+
fields: [
|
|
391
|
+
{
|
|
392
|
+
name: "pose",
|
|
393
|
+
type: { type: "nested", schema: Pose },
|
|
394
|
+
description: "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.",
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
name: "billboard",
|
|
398
|
+
type: { type: "primitive", name: "boolean" },
|
|
399
|
+
description: "Whether the text should respect `pose.orientation` (false) or always face the camera (true)",
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
name: "font_size",
|
|
403
|
+
type: { type: "primitive", name: "float64" },
|
|
404
|
+
description: "Font size (height of one line of text)",
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
name: "scale_invariant",
|
|
408
|
+
type: { type: "primitive", name: "boolean" },
|
|
409
|
+
description: "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)",
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
name: "color",
|
|
413
|
+
type: { type: "nested", schema: Color },
|
|
414
|
+
description: "Color of the text",
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
name: "text",
|
|
418
|
+
type: { type: "primitive", name: "string" },
|
|
419
|
+
description: "Text",
|
|
420
|
+
},
|
|
421
|
+
],
|
|
422
|
+
};
|
|
423
|
+
const TriangleListPrimitive = {
|
|
424
|
+
type: "message",
|
|
425
|
+
name: "TriangleListPrimitive",
|
|
426
|
+
description: "(Experimental, subject to change) A primitive representing a set of triangles or a surface tiled by triangles",
|
|
427
|
+
fields: [
|
|
428
|
+
{
|
|
429
|
+
name: "pose",
|
|
430
|
+
type: { type: "nested", schema: Pose },
|
|
431
|
+
description: "Origin of triangles relative to reference frame",
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
name: "points",
|
|
435
|
+
type: { type: "nested", schema: Point3 },
|
|
436
|
+
array: true,
|
|
437
|
+
description: "Vertices to use for triangles, interpreted as a list of triples (0-1-2, 3-4-5, ...)",
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
name: "color",
|
|
441
|
+
type: { type: "nested", schema: Color },
|
|
442
|
+
description: "Solid color to use for the whole shape. One of `color` or `colors` must be provided.",
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
name: "colors",
|
|
446
|
+
type: { type: "nested", schema: Color },
|
|
447
|
+
array: true,
|
|
448
|
+
description: "Per-vertex colors (if specified, must have the same length as `points`). One of `color` or `colors` must be provided.",
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
name: "indices",
|
|
452
|
+
type: { type: "primitive", name: "uint32" },
|
|
453
|
+
array: true,
|
|
454
|
+
description: "Indices into the `points` and `colors` attribute arrays, which can be used to avoid duplicating attribute data.\n\nIf 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).",
|
|
455
|
+
},
|
|
456
|
+
],
|
|
457
|
+
};
|
|
458
|
+
const ModelPrimitive = {
|
|
459
|
+
type: "message",
|
|
460
|
+
name: "ModelPrimitive",
|
|
461
|
+
description: "(Experimental, subject to change) A primitive representing a 3D model file loaded from an external URL or embedded data",
|
|
462
|
+
fields: [
|
|
463
|
+
{
|
|
464
|
+
name: "pose",
|
|
465
|
+
type: { type: "nested", schema: Pose },
|
|
466
|
+
description: "Origin of model relative to reference frame",
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
name: "scale",
|
|
470
|
+
type: { type: "nested", schema: Vector3 },
|
|
471
|
+
description: "Scale factor to apply to the model along each axis",
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
name: "color",
|
|
475
|
+
type: { type: "nested", schema: Color },
|
|
476
|
+
description: "Solid color to use for the whole model if `override_color` is true.",
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
name: "override_color",
|
|
480
|
+
type: { type: "primitive", name: "boolean" },
|
|
481
|
+
description: "Whether to use the color specified in `color` instead of any materials embedded in the original model.",
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
name: "url",
|
|
485
|
+
type: { type: "primitive", name: "string" },
|
|
486
|
+
description: "URL pointing to model file. One of `url` or `data` should be provided.",
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
name: "media_type",
|
|
490
|
+
type: { type: "primitive", name: "string" },
|
|
491
|
+
description: "[Media type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of embedded model (e.g. `model/gltf-binary`). Required if `data` is provided instead of `url`. Overrides the inferred media type if `url` is provided.",
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
name: "data",
|
|
495
|
+
type: { type: "primitive", name: "bytes" },
|
|
496
|
+
description: "Embedded model. One of `url` or `data` should be provided. If `data` is provided, `media_type` must be set to indicate the type of the data.",
|
|
497
|
+
},
|
|
498
|
+
],
|
|
499
|
+
};
|
|
500
|
+
const SceneEntity = {
|
|
501
|
+
type: "message",
|
|
502
|
+
name: "SceneEntity",
|
|
503
|
+
description: "(Experimental, subject to change) A visual element in a 3D scene. An entity may be composed of multiple primitives which all share the same frame of reference.",
|
|
504
|
+
fields: [
|
|
505
|
+
{
|
|
506
|
+
name: "timestamp",
|
|
507
|
+
type: { type: "primitive", name: "time" },
|
|
508
|
+
description: "Timestamp of the entity",
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
name: "frame_id",
|
|
512
|
+
type: { type: "primitive", name: "string" },
|
|
513
|
+
description: "Frame of reference",
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
name: "id",
|
|
517
|
+
type: { type: "primitive", name: "string" },
|
|
518
|
+
description: "Identifier for the entity. A entity will replace any prior entity on the same topic with the same `id`.",
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
name: "lifetime",
|
|
522
|
+
type: { type: "primitive", name: "duration" },
|
|
523
|
+
description: "Length of time (relative to `timestamp`) after which the entity should be automatically removed. Zero value indicates the entity should remain visible until it is replaced or deleted.",
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
name: "frame_locked",
|
|
527
|
+
type: { type: "primitive", name: "boolean" },
|
|
528
|
+
description: "Whether the entity should keep its location in the fixed frame (false) or follow the frame specified in `frame_id` as it moves relative to the fixed frame (true)",
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
name: "metadata",
|
|
532
|
+
type: { type: "nested", schema: KeyValuePair },
|
|
533
|
+
array: true,
|
|
534
|
+
description: "Additional user-provided metadata associated with the entity. Keys must be unique.",
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
name: "arrows",
|
|
538
|
+
type: { type: "nested", schema: ArrowPrimitive },
|
|
539
|
+
array: true,
|
|
540
|
+
description: "Arrow primitives",
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
name: "cubes",
|
|
544
|
+
type: { type: "nested", schema: CubePrimitive },
|
|
545
|
+
array: true,
|
|
546
|
+
description: "Cube primitives",
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
name: "spheres",
|
|
550
|
+
type: { type: "nested", schema: SpherePrimitive },
|
|
551
|
+
array: true,
|
|
552
|
+
description: "Sphere primitives",
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
name: "cylinders",
|
|
556
|
+
type: { type: "nested", schema: CylinderPrimitive },
|
|
557
|
+
array: true,
|
|
558
|
+
description: "Cylinder primitives",
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
name: "lines",
|
|
562
|
+
type: { type: "nested", schema: LinePrimitive },
|
|
563
|
+
array: true,
|
|
564
|
+
description: "Line primitives",
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
name: "triangles",
|
|
568
|
+
type: { type: "nested", schema: TriangleListPrimitive },
|
|
569
|
+
array: true,
|
|
570
|
+
description: "Triangle list primitives",
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
name: "texts",
|
|
574
|
+
type: { type: "nested", schema: TextPrimitive },
|
|
575
|
+
array: true,
|
|
576
|
+
description: "Text primitives",
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
name: "models",
|
|
580
|
+
type: { type: "nested", schema: ModelPrimitive },
|
|
581
|
+
array: true,
|
|
582
|
+
description: "Model primitives",
|
|
583
|
+
},
|
|
584
|
+
],
|
|
585
|
+
};
|
|
586
|
+
const SceneUpdate = {
|
|
587
|
+
type: "message",
|
|
588
|
+
name: "SceneUpdate",
|
|
589
|
+
description: "(Experimental, subject to change) An update to the entities displayed in a 3D scene",
|
|
590
|
+
fields: [
|
|
591
|
+
{
|
|
592
|
+
name: "deletions",
|
|
593
|
+
type: { type: "nested", schema: SceneEntityDeletion },
|
|
594
|
+
array: true,
|
|
595
|
+
description: "Scene entities to delete",
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
name: "entities",
|
|
599
|
+
type: { type: "nested", schema: SceneEntity },
|
|
600
|
+
array: true,
|
|
601
|
+
description: "Scene entities to add or replace",
|
|
602
|
+
},
|
|
603
|
+
],
|
|
604
|
+
};
|
|
605
|
+
const CameraCalibration = {
|
|
158
606
|
type: "message",
|
|
159
607
|
name: "CameraCalibration",
|
|
160
608
|
description: "Camera calibration parameters",
|
|
@@ -164,6 +612,12 @@ const foxglove_CameraCalibration = {
|
|
|
164
612
|
type: { type: "primitive", name: "time" },
|
|
165
613
|
description: "Timestamp of calibration data",
|
|
166
614
|
},
|
|
615
|
+
{
|
|
616
|
+
name: "frame_id",
|
|
617
|
+
type: { type: "primitive", name: "string" },
|
|
618
|
+
description: "Frame of reference for the camera. 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.",
|
|
619
|
+
protobufFieldNumber: 9,
|
|
620
|
+
},
|
|
167
621
|
{
|
|
168
622
|
name: "width",
|
|
169
623
|
type: { type: "primitive", name: "uint32" },
|
|
@@ -243,7 +697,7 @@ This holds for both images of a stereo pair.
|
|
|
243
697
|
},
|
|
244
698
|
],
|
|
245
699
|
};
|
|
246
|
-
const
|
|
700
|
+
const CompressedImage = {
|
|
247
701
|
type: "message",
|
|
248
702
|
name: "CompressedImage",
|
|
249
703
|
description: "A compressed image",
|
|
@@ -253,6 +707,12 @@ const foxglove_CompressedImage = {
|
|
|
253
707
|
type: { type: "primitive", name: "time" },
|
|
254
708
|
description: "Timestamp of image",
|
|
255
709
|
},
|
|
710
|
+
{
|
|
711
|
+
name: "frame_id",
|
|
712
|
+
type: { type: "primitive", name: "string" },
|
|
713
|
+
description: "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.",
|
|
714
|
+
protobufFieldNumber: 4,
|
|
715
|
+
},
|
|
256
716
|
{
|
|
257
717
|
name: "data",
|
|
258
718
|
type: { type: "primitive", name: "bytes" },
|
|
@@ -265,7 +725,7 @@ const foxglove_CompressedImage = {
|
|
|
265
725
|
},
|
|
266
726
|
],
|
|
267
727
|
};
|
|
268
|
-
const
|
|
728
|
+
const RawImage = {
|
|
269
729
|
type: "message",
|
|
270
730
|
name: "RawImage",
|
|
271
731
|
description: "A raw image",
|
|
@@ -275,6 +735,12 @@ const foxglove_RawImage = {
|
|
|
275
735
|
type: { type: "primitive", name: "time" },
|
|
276
736
|
description: "Timestamp of image",
|
|
277
737
|
},
|
|
738
|
+
{
|
|
739
|
+
name: "frame_id",
|
|
740
|
+
type: { type: "primitive", name: "string" },
|
|
741
|
+
description: "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.",
|
|
742
|
+
protobufFieldNumber: 7,
|
|
743
|
+
},
|
|
278
744
|
{
|
|
279
745
|
name: "width",
|
|
280
746
|
type: { type: "primitive", name: "uint32" },
|
|
@@ -302,7 +768,7 @@ const foxglove_RawImage = {
|
|
|
302
768
|
},
|
|
303
769
|
],
|
|
304
770
|
};
|
|
305
|
-
const
|
|
771
|
+
const FrameTransform = {
|
|
306
772
|
type: "message",
|
|
307
773
|
name: "FrameTransform",
|
|
308
774
|
description: "A transform between two reference frames in 3D space",
|
|
@@ -324,17 +790,17 @@ const foxglove_FrameTransform = {
|
|
|
324
790
|
},
|
|
325
791
|
{
|
|
326
792
|
name: "translation",
|
|
327
|
-
type: { type: "nested", schema:
|
|
793
|
+
type: { type: "nested", schema: Vector3 },
|
|
328
794
|
description: "Translation component of the transform",
|
|
329
795
|
},
|
|
330
796
|
{
|
|
331
797
|
name: "rotation",
|
|
332
|
-
type: { type: "nested", schema:
|
|
798
|
+
type: { type: "nested", schema: Quaternion },
|
|
333
799
|
description: "Rotation component of the transform",
|
|
334
800
|
},
|
|
335
801
|
],
|
|
336
802
|
};
|
|
337
|
-
const
|
|
803
|
+
const PoseInFrame = {
|
|
338
804
|
type: "message",
|
|
339
805
|
name: "PoseInFrame",
|
|
340
806
|
description: "A timestamped pose for an object or reference frame in 3D space",
|
|
@@ -351,12 +817,12 @@ const foxglove_PoseInFrame = {
|
|
|
351
817
|
},
|
|
352
818
|
{
|
|
353
819
|
name: "pose",
|
|
354
|
-
type: { type: "nested", schema:
|
|
820
|
+
type: { type: "nested", schema: Pose },
|
|
355
821
|
description: "Pose in 3D space",
|
|
356
822
|
},
|
|
357
823
|
],
|
|
358
824
|
};
|
|
359
|
-
const
|
|
825
|
+
const PosesInFrame = {
|
|
360
826
|
type: "message",
|
|
361
827
|
name: "PosesInFrame",
|
|
362
828
|
description: "An array of timestamped poses for an object or reference frame in 3D space",
|
|
@@ -373,13 +839,13 @@ const foxglove_PosesInFrame = {
|
|
|
373
839
|
},
|
|
374
840
|
{
|
|
375
841
|
name: "poses",
|
|
376
|
-
type: { type: "nested", schema:
|
|
842
|
+
type: { type: "nested", schema: Pose },
|
|
377
843
|
description: "Poses in 3D space",
|
|
378
844
|
array: true,
|
|
379
845
|
},
|
|
380
846
|
],
|
|
381
847
|
};
|
|
382
|
-
const
|
|
848
|
+
const GeoJSON = {
|
|
383
849
|
type: "message",
|
|
384
850
|
name: "GeoJSON",
|
|
385
851
|
description: "GeoJSON data for annotating maps",
|
|
@@ -391,7 +857,7 @@ const foxglove_GeoJSON = {
|
|
|
391
857
|
},
|
|
392
858
|
],
|
|
393
859
|
};
|
|
394
|
-
const
|
|
860
|
+
const NumericType = {
|
|
395
861
|
type: "enum",
|
|
396
862
|
name: "NumericType",
|
|
397
863
|
description: "Numeric type",
|
|
@@ -409,7 +875,7 @@ const foxglove_NumericType = {
|
|
|
409
875
|
{ name: "FLOAT64", value: 8 },
|
|
410
876
|
],
|
|
411
877
|
};
|
|
412
|
-
const
|
|
878
|
+
const PackedElementField = {
|
|
413
879
|
type: "message",
|
|
414
880
|
name: "PackedElementField",
|
|
415
881
|
description: "A field present within each element in a byte array of packed elements.",
|
|
@@ -426,12 +892,12 @@ const foxglove_PackedElementField = {
|
|
|
426
892
|
},
|
|
427
893
|
{
|
|
428
894
|
name: "type",
|
|
429
|
-
type: { type: "enum", enum:
|
|
895
|
+
type: { type: "enum", enum: NumericType },
|
|
430
896
|
description: "Type of data in the field. Integers are stored using little-endian byte order.",
|
|
431
897
|
},
|
|
432
898
|
],
|
|
433
899
|
};
|
|
434
|
-
const
|
|
900
|
+
const Grid = {
|
|
435
901
|
type: "message",
|
|
436
902
|
name: "Grid",
|
|
437
903
|
description: "A 2D grid of data",
|
|
@@ -448,7 +914,7 @@ const foxglove_Grid = {
|
|
|
448
914
|
},
|
|
449
915
|
{
|
|
450
916
|
name: "pose",
|
|
451
|
-
type: { type: "nested", schema:
|
|
917
|
+
type: { type: "nested", schema: Pose },
|
|
452
918
|
description: "Origin of grid's corner relative to frame of reference; grid is positioned in the x-y plane relative to this origin",
|
|
453
919
|
},
|
|
454
920
|
{
|
|
@@ -458,7 +924,7 @@ const foxglove_Grid = {
|
|
|
458
924
|
},
|
|
459
925
|
{
|
|
460
926
|
name: "cell_size",
|
|
461
|
-
type: { type: "nested", schema:
|
|
927
|
+
type: { type: "nested", schema: Vector2 },
|
|
462
928
|
description: "Size of single grid cell along x and y axes, relative to `pose`",
|
|
463
929
|
},
|
|
464
930
|
{
|
|
@@ -473,7 +939,7 @@ const foxglove_Grid = {
|
|
|
473
939
|
},
|
|
474
940
|
{
|
|
475
941
|
name: "fields",
|
|
476
|
-
type: { type: "nested", schema:
|
|
942
|
+
type: { type: "nested", schema: PackedElementField },
|
|
477
943
|
array: true,
|
|
478
944
|
description: "Fields in `data`",
|
|
479
945
|
},
|
|
@@ -484,7 +950,7 @@ const foxglove_Grid = {
|
|
|
484
950
|
},
|
|
485
951
|
],
|
|
486
952
|
};
|
|
487
|
-
const
|
|
953
|
+
const CircleAnnotation = {
|
|
488
954
|
type: "message",
|
|
489
955
|
name: "CircleAnnotation",
|
|
490
956
|
description: "A circle annotation on a 2D image",
|
|
@@ -496,7 +962,7 @@ const foxglove_CircleAnnotation = {
|
|
|
496
962
|
},
|
|
497
963
|
{
|
|
498
964
|
name: "position",
|
|
499
|
-
type: { type: "nested", schema:
|
|
965
|
+
type: { type: "nested", schema: Point2 },
|
|
500
966
|
description: "Center of the circle in 2D image coordinates",
|
|
501
967
|
},
|
|
502
968
|
{
|
|
@@ -511,17 +977,17 @@ const foxglove_CircleAnnotation = {
|
|
|
511
977
|
},
|
|
512
978
|
{
|
|
513
979
|
name: "fill_color",
|
|
514
|
-
type: { type: "nested", schema:
|
|
980
|
+
type: { type: "nested", schema: Color },
|
|
515
981
|
description: "Fill color",
|
|
516
982
|
},
|
|
517
983
|
{
|
|
518
984
|
name: "outline_color",
|
|
519
|
-
type: { type: "nested", schema:
|
|
985
|
+
type: { type: "nested", schema: Color },
|
|
520
986
|
description: "Outline color",
|
|
521
987
|
},
|
|
522
988
|
],
|
|
523
989
|
};
|
|
524
|
-
const
|
|
990
|
+
const PointsAnnotationType = {
|
|
525
991
|
type: "enum",
|
|
526
992
|
name: "PointsAnnotationType",
|
|
527
993
|
description: "Type of points annotation",
|
|
@@ -535,7 +1001,7 @@ const foxglove_PointsAnnotationType = {
|
|
|
535
1001
|
{ name: "LINE_LIST", value: 4 },
|
|
536
1002
|
],
|
|
537
1003
|
};
|
|
538
|
-
const
|
|
1004
|
+
const PointsAnnotation = {
|
|
539
1005
|
type: "message",
|
|
540
1006
|
name: "PointsAnnotation",
|
|
541
1007
|
description: "An array of points on a 2D image",
|
|
@@ -547,48 +1013,58 @@ const foxglove_PointsAnnotation = {
|
|
|
547
1013
|
},
|
|
548
1014
|
{
|
|
549
1015
|
name: "type",
|
|
550
|
-
type: { type: "enum", enum:
|
|
1016
|
+
type: { type: "enum", enum: PointsAnnotationType },
|
|
551
1017
|
description: "Type of points annotation to draw",
|
|
552
1018
|
},
|
|
553
1019
|
{
|
|
554
1020
|
name: "points",
|
|
555
|
-
type: { type: "nested", schema:
|
|
1021
|
+
type: { type: "nested", schema: Point2 },
|
|
556
1022
|
description: "Points in 2D image coordinates",
|
|
557
1023
|
array: true,
|
|
558
1024
|
},
|
|
1025
|
+
{
|
|
1026
|
+
name: "outline_color",
|
|
1027
|
+
type: { type: "nested", schema: Color },
|
|
1028
|
+
description: "Outline color",
|
|
1029
|
+
},
|
|
559
1030
|
{
|
|
560
1031
|
name: "outline_colors",
|
|
561
|
-
type: { type: "nested", schema:
|
|
562
|
-
description: "
|
|
1032
|
+
type: { type: "nested", schema: Color },
|
|
1033
|
+
description: "Per-point colors, if `type` is `POINTS`, or per-segment stroke colors, if `type` is `LINE_LIST`.",
|
|
563
1034
|
array: true,
|
|
564
1035
|
},
|
|
565
1036
|
{
|
|
566
1037
|
name: "fill_color",
|
|
567
|
-
type: { type: "nested", schema:
|
|
1038
|
+
type: { type: "nested", schema: Color },
|
|
568
1039
|
description: "Fill color",
|
|
569
1040
|
},
|
|
1041
|
+
{
|
|
1042
|
+
name: "thickness",
|
|
1043
|
+
type: { type: "primitive", name: "float64" },
|
|
1044
|
+
description: "Stroke thickness",
|
|
1045
|
+
},
|
|
570
1046
|
],
|
|
571
1047
|
};
|
|
572
|
-
const
|
|
1048
|
+
const ImageAnnotations = {
|
|
573
1049
|
type: "message",
|
|
574
1050
|
name: "ImageAnnotations",
|
|
575
1051
|
description: "Array of annotations for a 2D image",
|
|
576
1052
|
fields: [
|
|
577
1053
|
{
|
|
578
1054
|
name: "circles",
|
|
579
|
-
type: { type: "nested", schema:
|
|
1055
|
+
type: { type: "nested", schema: CircleAnnotation },
|
|
580
1056
|
description: "Circle annotations",
|
|
581
1057
|
array: true,
|
|
582
1058
|
},
|
|
583
1059
|
{
|
|
584
1060
|
name: "points",
|
|
585
|
-
type: { type: "nested", schema:
|
|
1061
|
+
type: { type: "nested", schema: PointsAnnotation },
|
|
586
1062
|
description: "Points annotations",
|
|
587
1063
|
array: true,
|
|
588
1064
|
},
|
|
589
1065
|
],
|
|
590
1066
|
};
|
|
591
|
-
const
|
|
1067
|
+
const PositionCovarianceType = {
|
|
592
1068
|
type: "enum",
|
|
593
1069
|
name: "PositionCovarianceType",
|
|
594
1070
|
description: "Type of position covariance",
|
|
@@ -601,7 +1077,7 @@ const foxglove_PositionCovarianceType = {
|
|
|
601
1077
|
{ name: "KNOWN", value: 3 },
|
|
602
1078
|
],
|
|
603
1079
|
};
|
|
604
|
-
const
|
|
1080
|
+
const LocationFix = {
|
|
605
1081
|
type: "message",
|
|
606
1082
|
name: "LocationFix",
|
|
607
1083
|
description: "A navigation satellite fix for any Global Navigation Satellite System",
|
|
@@ -629,12 +1105,12 @@ const foxglove_LocationFix = {
|
|
|
629
1105
|
},
|
|
630
1106
|
{
|
|
631
1107
|
name: "position_covariance_type",
|
|
632
|
-
type: { type: "enum", enum:
|
|
1108
|
+
type: { type: "enum", enum: PositionCovarianceType },
|
|
633
1109
|
description: "If `position_covariance` is available, `position_covariance_type` must be set to indicate the type of covariance.",
|
|
634
1110
|
},
|
|
635
1111
|
],
|
|
636
1112
|
};
|
|
637
|
-
const
|
|
1113
|
+
const LogLevel = {
|
|
638
1114
|
type: "enum",
|
|
639
1115
|
name: "LogLevel",
|
|
640
1116
|
description: "Log level",
|
|
@@ -649,7 +1125,7 @@ const foxglove_LogLevel = {
|
|
|
649
1125
|
{ name: "FATAL", value: 5 },
|
|
650
1126
|
],
|
|
651
1127
|
};
|
|
652
|
-
const
|
|
1128
|
+
const Log = {
|
|
653
1129
|
type: "message",
|
|
654
1130
|
name: "Log",
|
|
655
1131
|
description: "A log message",
|
|
@@ -661,7 +1137,7 @@ const foxglove_Log = {
|
|
|
661
1137
|
},
|
|
662
1138
|
{
|
|
663
1139
|
name: "level",
|
|
664
|
-
type: { type: "enum", enum:
|
|
1140
|
+
type: { type: "enum", enum: LogLevel },
|
|
665
1141
|
description: "Log level",
|
|
666
1142
|
},
|
|
667
1143
|
{
|
|
@@ -686,7 +1162,7 @@ const foxglove_Log = {
|
|
|
686
1162
|
},
|
|
687
1163
|
],
|
|
688
1164
|
};
|
|
689
|
-
const
|
|
1165
|
+
const PointCloud = {
|
|
690
1166
|
type: "message",
|
|
691
1167
|
name: "PointCloud",
|
|
692
1168
|
description: "A collection of N-dimensional points, which may contain additional fields with information like normals, intensity, etc.",
|
|
@@ -703,7 +1179,7 @@ const foxglove_PointCloud = {
|
|
|
703
1179
|
},
|
|
704
1180
|
{
|
|
705
1181
|
name: "pose",
|
|
706
|
-
type: { type: "nested", schema:
|
|
1182
|
+
type: { type: "nested", schema: Pose },
|
|
707
1183
|
description: "The origin of the point cloud relative to the frame of reference",
|
|
708
1184
|
},
|
|
709
1185
|
{
|
|
@@ -713,7 +1189,7 @@ const foxglove_PointCloud = {
|
|
|
713
1189
|
},
|
|
714
1190
|
{
|
|
715
1191
|
name: "fields",
|
|
716
|
-
type: { type: "nested", schema:
|
|
1192
|
+
type: { type: "nested", schema: PackedElementField },
|
|
717
1193
|
array: true,
|
|
718
1194
|
description: "Fields in the `data`",
|
|
719
1195
|
},
|
|
@@ -724,7 +1200,7 @@ const foxglove_PointCloud = {
|
|
|
724
1200
|
},
|
|
725
1201
|
],
|
|
726
1202
|
};
|
|
727
|
-
const
|
|
1203
|
+
const LaserScan = {
|
|
728
1204
|
type: "message",
|
|
729
1205
|
name: "LaserScan",
|
|
730
1206
|
description: "A single scan from a planar laser range-finder",
|
|
@@ -741,7 +1217,7 @@ const foxglove_LaserScan = {
|
|
|
741
1217
|
},
|
|
742
1218
|
{
|
|
743
1219
|
name: "pose",
|
|
744
|
-
type: { type: "nested", schema:
|
|
1220
|
+
type: { type: "nested", schema: Pose },
|
|
745
1221
|
description: "Origin of scan relative to frame of reference; points are positioned in the x-y plane relative to this origin; angles are interpreted as counterclockwise rotations around the z axis with 0 rad being in the +x direction",
|
|
746
1222
|
},
|
|
747
1223
|
{
|
|
@@ -769,34 +1245,48 @@ const foxglove_LaserScan = {
|
|
|
769
1245
|
],
|
|
770
1246
|
};
|
|
771
1247
|
exports.foxgloveMessageSchemas = {
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
1248
|
+
ArrowPrimitive,
|
|
1249
|
+
CameraCalibration,
|
|
1250
|
+
CircleAnnotation,
|
|
1251
|
+
Color,
|
|
1252
|
+
CompressedImage,
|
|
1253
|
+
CylinderPrimitive,
|
|
1254
|
+
CubePrimitive,
|
|
1255
|
+
FrameTransform,
|
|
1256
|
+
GeoJSON,
|
|
1257
|
+
Grid,
|
|
1258
|
+
ImageAnnotations,
|
|
1259
|
+
KeyValuePair,
|
|
1260
|
+
LaserScan,
|
|
1261
|
+
LinePrimitive,
|
|
1262
|
+
LocationFix,
|
|
1263
|
+
Log,
|
|
1264
|
+
SceneEntityDeletion,
|
|
1265
|
+
SceneEntity,
|
|
1266
|
+
SceneUpdate,
|
|
1267
|
+
ModelPrimitive,
|
|
1268
|
+
PackedElementField,
|
|
1269
|
+
Point2,
|
|
1270
|
+
Point3,
|
|
1271
|
+
PointCloud,
|
|
1272
|
+
PointsAnnotation,
|
|
1273
|
+
Pose,
|
|
1274
|
+
PoseInFrame,
|
|
1275
|
+
PosesInFrame,
|
|
1276
|
+
Quaternion,
|
|
1277
|
+
RawImage,
|
|
1278
|
+
SpherePrimitive,
|
|
1279
|
+
TextPrimitive,
|
|
1280
|
+
TriangleListPrimitive,
|
|
1281
|
+
Vector2,
|
|
1282
|
+
Vector3,
|
|
795
1283
|
};
|
|
796
1284
|
exports.foxgloveEnumSchemas = {
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
1285
|
+
LineType,
|
|
1286
|
+
LogLevel,
|
|
1287
|
+
SceneEntityDeletionType,
|
|
1288
|
+
NumericType,
|
|
1289
|
+
PointsAnnotationType,
|
|
1290
|
+
PositionCovarianceType,
|
|
801
1291
|
};
|
|
802
1292
|
//# sourceMappingURL=schemas.js.map
|