@foxglove/schemas 0.4.0 → 0.5.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/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/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/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/schemas.d.ts +15 -1
- package/dist/cjs/src/schemas.d.ts.map +1 -1
- package/dist/cjs/src/schemas.js +541 -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/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/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/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/schemas.d.ts +15 -1
- package/dist/esm/src/schemas.d.ts.map +1 -1
- package/dist/esm/src/schemas.js +541 -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/package.json +1 -1
- package/schemas/README.md +1034 -17
- package/schemas/jsonschema/ArrowPrimitive.json +96 -0
- package/schemas/jsonschema/CubePrimitive.json +99 -0
- package/schemas/jsonschema/CylinderPrimitive.json +107 -0
- package/schemas/jsonschema/KeyValuePair.json +16 -0
- package/schemas/jsonschema/LinePrimitive.json +167 -0
- package/schemas/jsonschema/ModelPrimitive.json +116 -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/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/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/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/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/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/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/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/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/schemas.test.ts +19 -0
- package/src/schemas.ts +587 -79
package/dist/esm/src/schemas.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Color = {
|
|
2
2
|
type: "message",
|
|
3
3
|
name: "Color",
|
|
4
4
|
description: "A color in RGBA format",
|
|
@@ -25,7 +25,7 @@ const foxglove_Color = {
|
|
|
25
25
|
},
|
|
26
26
|
],
|
|
27
27
|
};
|
|
28
|
-
const
|
|
28
|
+
const Vector2 = {
|
|
29
29
|
type: "message",
|
|
30
30
|
name: "Vector2",
|
|
31
31
|
description: "A vector in 2D space that represents a direction only",
|
|
@@ -42,7 +42,7 @@ const foxglove_Vector2 = {
|
|
|
42
42
|
},
|
|
43
43
|
],
|
|
44
44
|
};
|
|
45
|
-
const
|
|
45
|
+
const Vector3 = {
|
|
46
46
|
type: "message",
|
|
47
47
|
name: "Vector3",
|
|
48
48
|
description: "A vector in 3D space that represents a direction only",
|
|
@@ -65,7 +65,7 @@ const foxglove_Vector3 = {
|
|
|
65
65
|
},
|
|
66
66
|
],
|
|
67
67
|
};
|
|
68
|
-
const
|
|
68
|
+
const Point2 = {
|
|
69
69
|
type: "message",
|
|
70
70
|
name: "Point2",
|
|
71
71
|
description: "A point representing a position in 2D space",
|
|
@@ -82,7 +82,7 @@ const foxglove_Point2 = {
|
|
|
82
82
|
},
|
|
83
83
|
],
|
|
84
84
|
};
|
|
85
|
-
const
|
|
85
|
+
const Point3 = {
|
|
86
86
|
type: "message",
|
|
87
87
|
name: "Point3",
|
|
88
88
|
description: "A point representing a position in 3D space",
|
|
@@ -105,7 +105,7 @@ const foxglove_Point3 = {
|
|
|
105
105
|
},
|
|
106
106
|
],
|
|
107
107
|
};
|
|
108
|
-
const
|
|
108
|
+
const Quaternion = {
|
|
109
109
|
type: "message",
|
|
110
110
|
name: "Quaternion",
|
|
111
111
|
description: "A [quaternion](https://eater.net/quaternions) representing a rotation in 3D space",
|
|
@@ -133,7 +133,7 @@ const foxglove_Quaternion = {
|
|
|
133
133
|
},
|
|
134
134
|
],
|
|
135
135
|
};
|
|
136
|
-
const
|
|
136
|
+
const Pose = {
|
|
137
137
|
type: "message",
|
|
138
138
|
name: "Pose",
|
|
139
139
|
description: "A position and orientation for an object or reference frame in 3D space",
|
|
@@ -141,17 +141,465 @@ const foxglove_Pose = {
|
|
|
141
141
|
fields: [
|
|
142
142
|
{
|
|
143
143
|
name: "position",
|
|
144
|
-
type: { type: "nested", schema:
|
|
144
|
+
type: { type: "nested", schema: Vector3 },
|
|
145
145
|
description: "Point denoting position in 3D space",
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
name: "orientation",
|
|
149
|
-
type: { type: "nested", schema:
|
|
149
|
+
type: { type: "nested", schema: Quaternion },
|
|
150
150
|
description: "Quaternion denoting orientation in 3D space",
|
|
151
151
|
},
|
|
152
152
|
],
|
|
153
153
|
};
|
|
154
|
-
const
|
|
154
|
+
const KeyValuePair = {
|
|
155
|
+
type: "message",
|
|
156
|
+
name: "KeyValuePair",
|
|
157
|
+
description: "(Experimental, subject to change) A key with its associated value",
|
|
158
|
+
fields: [
|
|
159
|
+
{
|
|
160
|
+
name: "key",
|
|
161
|
+
type: { type: "primitive", name: "string" },
|
|
162
|
+
description: "Key",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "value",
|
|
166
|
+
type: { type: "primitive", name: "string" },
|
|
167
|
+
description: "Value",
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
};
|
|
171
|
+
const SceneEntityDeletionType = {
|
|
172
|
+
type: "enum",
|
|
173
|
+
name: "SceneEntityDeletionType",
|
|
174
|
+
protobufParentMessageName: "SceneEntityDeletion",
|
|
175
|
+
protobufEnumName: "Type",
|
|
176
|
+
description: "(Experimental, subject to change) An enumeration indicating which entities should match a SceneEntityDeletion command",
|
|
177
|
+
values: [
|
|
178
|
+
{
|
|
179
|
+
value: 0,
|
|
180
|
+
name: "MATCHING_ID",
|
|
181
|
+
description: "Delete the existing entity on the same topic that has the provided `id`",
|
|
182
|
+
},
|
|
183
|
+
{ value: 1, name: "ALL", description: "Delete all existing entities on the same topic" },
|
|
184
|
+
],
|
|
185
|
+
};
|
|
186
|
+
const SceneEntityDeletion = {
|
|
187
|
+
type: "message",
|
|
188
|
+
name: "SceneEntityDeletion",
|
|
189
|
+
description: "(Experimental, subject to change) Command to remove previously published entities",
|
|
190
|
+
fields: [
|
|
191
|
+
{
|
|
192
|
+
name: "timestamp",
|
|
193
|
+
type: { type: "primitive", name: "time" },
|
|
194
|
+
description: "Timestamp of the deletion. Only matching entities earlier than this timestamp will be deleted.",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "type",
|
|
198
|
+
type: { type: "enum", enum: SceneEntityDeletionType },
|
|
199
|
+
description: "Type of deletion action to perform",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: "id",
|
|
203
|
+
type: { type: "primitive", name: "string" },
|
|
204
|
+
description: "Identifier which must match if `type` is `MATCHING_ID`.",
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
};
|
|
208
|
+
const ArrowPrimitive = {
|
|
209
|
+
type: "message",
|
|
210
|
+
name: "ArrowPrimitive",
|
|
211
|
+
description: "(Experimental, subject to change) A primitive representing an arrow",
|
|
212
|
+
fields: [
|
|
213
|
+
{
|
|
214
|
+
name: "pose",
|
|
215
|
+
type: { type: "nested", schema: Pose },
|
|
216
|
+
description: "Position of the arrow's tail and orientation of the arrow. Identity orientation means the arrow points in the +x direction.",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
name: "shaft_length",
|
|
220
|
+
type: { type: "primitive", name: "float64" },
|
|
221
|
+
description: "Length of the arrow shaft",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: "shaft_diameter",
|
|
225
|
+
type: { type: "primitive", name: "float64" },
|
|
226
|
+
description: "Diameter of the arrow shaft",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: "head_length",
|
|
230
|
+
type: { type: "primitive", name: "float64" },
|
|
231
|
+
description: "Length of the arrow head",
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: "head_diameter",
|
|
235
|
+
type: { type: "primitive", name: "float64" },
|
|
236
|
+
description: "Diameter of the arrow head",
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: "color",
|
|
240
|
+
type: { type: "nested", schema: Color },
|
|
241
|
+
description: "Color of the arrow",
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
};
|
|
245
|
+
const CubePrimitive = {
|
|
246
|
+
type: "message",
|
|
247
|
+
name: "CubePrimitive",
|
|
248
|
+
description: "(Experimental, subject to change) A primitive representing a cube or rectangular prism",
|
|
249
|
+
fields: [
|
|
250
|
+
{
|
|
251
|
+
name: "pose",
|
|
252
|
+
type: { type: "nested", schema: Pose },
|
|
253
|
+
description: "Position of the center of the cube and orientation of the cube",
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: "size",
|
|
257
|
+
type: { type: "nested", schema: Vector3 },
|
|
258
|
+
description: "Size of the cube along each axis",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: "color",
|
|
262
|
+
type: { type: "nested", schema: Color },
|
|
263
|
+
description: "Color of the arrow",
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
};
|
|
267
|
+
const SpherePrimitive = {
|
|
268
|
+
type: "message",
|
|
269
|
+
name: "SpherePrimitive",
|
|
270
|
+
description: "(Experimental, subject to change) A primitive representing a sphere or ellipsoid",
|
|
271
|
+
fields: [
|
|
272
|
+
{
|
|
273
|
+
name: "pose",
|
|
274
|
+
type: { type: "nested", schema: Pose },
|
|
275
|
+
description: "Position of the center of the sphere and orientation of the sphere",
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: "size",
|
|
279
|
+
type: { type: "nested", schema: Vector3 },
|
|
280
|
+
description: "Size (diameter) of the sphere along each axis",
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
name: "color",
|
|
284
|
+
type: { type: "nested", schema: Color },
|
|
285
|
+
description: "Color of the sphere",
|
|
286
|
+
},
|
|
287
|
+
],
|
|
288
|
+
};
|
|
289
|
+
const CylinderPrimitive = {
|
|
290
|
+
type: "message",
|
|
291
|
+
name: "CylinderPrimitive",
|
|
292
|
+
description: "(Experimental, subject to change) A primitive representing a cylinder, elliptic cylinder, or truncated cone",
|
|
293
|
+
fields: [
|
|
294
|
+
{
|
|
295
|
+
name: "pose",
|
|
296
|
+
type: { type: "nested", schema: Pose },
|
|
297
|
+
description: "Position of the center of the cylinder and orientation of the cylinder. The flat face(s) are perpendicular to the z-axis.",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: "size",
|
|
301
|
+
type: { type: "nested", schema: Vector3 },
|
|
302
|
+
description: "Size of the cylinder's bounding box",
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
name: "bottom_scale",
|
|
306
|
+
type: { type: "primitive", name: "float64" },
|
|
307
|
+
description: "0-1, ratio of the diameter of the cylinder's bottom face (min z) to the bottom of the bounding box",
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
name: "top_scale",
|
|
311
|
+
type: { type: "primitive", name: "float64" },
|
|
312
|
+
description: "0-1, ratio of the diameter of the cylinder's top face (max z) to the top of the bounding box",
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
name: "color",
|
|
316
|
+
type: { type: "nested", schema: Color },
|
|
317
|
+
description: "Color of the cylinder",
|
|
318
|
+
},
|
|
319
|
+
],
|
|
320
|
+
};
|
|
321
|
+
const LineType = {
|
|
322
|
+
type: "enum",
|
|
323
|
+
name: "LineType",
|
|
324
|
+
protobufParentMessageName: "LinePrimitive",
|
|
325
|
+
protobufEnumName: "Type",
|
|
326
|
+
description: "(Experimental, subject to change) An enumeration indicating how input points should be interpreted to create lines",
|
|
327
|
+
values: [
|
|
328
|
+
{ value: 0, name: "LINE_STRIP", description: "0-1, 1-2, ..., (n-1)-n" },
|
|
329
|
+
{ value: 1, name: "LINE_LOOP", description: "0-1, 1-2, ..., (n-1)-n, n-0" },
|
|
330
|
+
{ value: 2, name: "LINE_LIST", description: "0-1, 2-3, 4-5, ..." },
|
|
331
|
+
],
|
|
332
|
+
};
|
|
333
|
+
const LinePrimitive = {
|
|
334
|
+
type: "message",
|
|
335
|
+
name: "LinePrimitive",
|
|
336
|
+
description: "(Experimental, subject to change) A primitive representing a series of points connected by lines",
|
|
337
|
+
fields: [
|
|
338
|
+
{
|
|
339
|
+
name: "type",
|
|
340
|
+
type: { type: "enum", enum: LineType },
|
|
341
|
+
description: "Drawing primitive to use for lines",
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
name: "pose",
|
|
345
|
+
type: { type: "nested", schema: Pose },
|
|
346
|
+
description: "Origin of lines relative to reference frame",
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
name: "thickness",
|
|
350
|
+
type: { type: "primitive", name: "float64" },
|
|
351
|
+
description: "Line thickness",
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
name: "scale_invariant",
|
|
355
|
+
type: { type: "primitive", name: "boolean" },
|
|
356
|
+
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)",
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
name: "points",
|
|
360
|
+
type: { type: "nested", schema: Point3 },
|
|
361
|
+
array: true,
|
|
362
|
+
description: "Points along the line",
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
name: "color",
|
|
366
|
+
type: { type: "nested", schema: Color },
|
|
367
|
+
description: "Solid color to use for the whole line. One of `color` or `colors` must be provided.",
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
name: "colors",
|
|
371
|
+
type: { type: "nested", schema: Color },
|
|
372
|
+
array: true,
|
|
373
|
+
description: "Per-point colors (if specified, must have the same length as `points`). One of `color` or `colors` must be provided.",
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
name: "indices",
|
|
377
|
+
type: { type: "primitive", name: "uint32" },
|
|
378
|
+
array: true,
|
|
379
|
+
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).",
|
|
380
|
+
},
|
|
381
|
+
],
|
|
382
|
+
};
|
|
383
|
+
const TextPrimitive = {
|
|
384
|
+
type: "message",
|
|
385
|
+
name: "TextPrimitive",
|
|
386
|
+
description: "(Experimental, subject to change) A primitive representing a text label",
|
|
387
|
+
fields: [
|
|
388
|
+
{
|
|
389
|
+
name: "pose",
|
|
390
|
+
type: { type: "nested", schema: Pose },
|
|
391
|
+
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.",
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
name: "billboard",
|
|
395
|
+
type: { type: "primitive", name: "boolean" },
|
|
396
|
+
description: "Whether the text should respect `pose.orientation` (false) or always face the camera (true)",
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
name: "font_size",
|
|
400
|
+
type: { type: "primitive", name: "float64" },
|
|
401
|
+
description: "Font size (height of one line of text)",
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
name: "scale_invariant",
|
|
405
|
+
type: { type: "primitive", name: "boolean" },
|
|
406
|
+
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)",
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
name: "color",
|
|
410
|
+
type: { type: "nested", schema: Color },
|
|
411
|
+
description: "Color of the text",
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
name: "text",
|
|
415
|
+
type: { type: "primitive", name: "string" },
|
|
416
|
+
description: "Text",
|
|
417
|
+
},
|
|
418
|
+
],
|
|
419
|
+
};
|
|
420
|
+
const TriangleListPrimitive = {
|
|
421
|
+
type: "message",
|
|
422
|
+
name: "TriangleListPrimitive",
|
|
423
|
+
description: "(Experimental, subject to change) A primitive representing a set of triangles or a surface tiled by triangles",
|
|
424
|
+
fields: [
|
|
425
|
+
{
|
|
426
|
+
name: "pose",
|
|
427
|
+
type: { type: "nested", schema: Pose },
|
|
428
|
+
description: "Origin of triangles relative to reference frame",
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
name: "points",
|
|
432
|
+
type: { type: "nested", schema: Point3 },
|
|
433
|
+
array: true,
|
|
434
|
+
description: "Vertices to use for triangles, interpreted as a list of triples (0-1-2, 3-4-5, ...)",
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
name: "color",
|
|
438
|
+
type: { type: "nested", schema: Color },
|
|
439
|
+
description: "Solid color to use for the whole shape. One of `color` or `colors` must be provided.",
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
name: "colors",
|
|
443
|
+
type: { type: "nested", schema: Color },
|
|
444
|
+
array: true,
|
|
445
|
+
description: "Per-vertex colors (if specified, must have the same length as `points`). One of `color` or `colors` must be provided.",
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
name: "indices",
|
|
449
|
+
type: { type: "primitive", name: "uint32" },
|
|
450
|
+
array: true,
|
|
451
|
+
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).",
|
|
452
|
+
},
|
|
453
|
+
],
|
|
454
|
+
};
|
|
455
|
+
const ModelPrimitive = {
|
|
456
|
+
type: "message",
|
|
457
|
+
name: "ModelPrimitive",
|
|
458
|
+
description: "(Experimental, subject to change) A primitive representing a 3D model file loaded from an external URL or embedded data",
|
|
459
|
+
fields: [
|
|
460
|
+
{
|
|
461
|
+
name: "pose",
|
|
462
|
+
type: { type: "nested", schema: Pose },
|
|
463
|
+
description: "Origin of model relative to reference frame",
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
name: "scale",
|
|
467
|
+
type: { type: "nested", schema: Vector3 },
|
|
468
|
+
description: "Scale factor to apply to the model along each axis",
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
name: "color",
|
|
472
|
+
type: { type: "nested", schema: Color },
|
|
473
|
+
description: "Solid color to use for the whole model if `override_color` is true.",
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
name: "override_color",
|
|
477
|
+
type: { type: "primitive", name: "boolean" },
|
|
478
|
+
description: "Whether to use the color specified in `color` instead of any materials embedded in the original model.",
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
name: "url",
|
|
482
|
+
type: { type: "primitive", name: "string" },
|
|
483
|
+
description: "URL pointing to model file. One of `url` or `data` should be provided.",
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
name: "media_type",
|
|
487
|
+
type: { type: "primitive", name: "string" },
|
|
488
|
+
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.",
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
name: "data",
|
|
492
|
+
type: { type: "primitive", name: "bytes" },
|
|
493
|
+
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.",
|
|
494
|
+
},
|
|
495
|
+
],
|
|
496
|
+
};
|
|
497
|
+
const SceneEntity = {
|
|
498
|
+
type: "message",
|
|
499
|
+
name: "SceneEntity",
|
|
500
|
+
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.",
|
|
501
|
+
fields: [
|
|
502
|
+
{
|
|
503
|
+
name: "timestamp",
|
|
504
|
+
type: { type: "primitive", name: "time" },
|
|
505
|
+
description: "Timestamp of the entity",
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
name: "frame_id",
|
|
509
|
+
type: { type: "primitive", name: "string" },
|
|
510
|
+
description: "Frame of reference",
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
name: "id",
|
|
514
|
+
type: { type: "primitive", name: "string" },
|
|
515
|
+
description: "Identifier for the entity. A entity will replace any prior entity on the same topic with the same `id`.",
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
name: "lifetime",
|
|
519
|
+
type: { type: "primitive", name: "duration" },
|
|
520
|
+
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.",
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
name: "frame_locked",
|
|
524
|
+
type: { type: "primitive", name: "boolean" },
|
|
525
|
+
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)",
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
name: "metadata",
|
|
529
|
+
type: { type: "nested", schema: KeyValuePair },
|
|
530
|
+
array: true,
|
|
531
|
+
description: "Additional user-provided metadata associated with the entity. Keys must be unique.",
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
name: "arrows",
|
|
535
|
+
type: { type: "nested", schema: ArrowPrimitive },
|
|
536
|
+
array: true,
|
|
537
|
+
description: "Arrow primitives",
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
name: "cubes",
|
|
541
|
+
type: { type: "nested", schema: CubePrimitive },
|
|
542
|
+
array: true,
|
|
543
|
+
description: "Cube primitives",
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
name: "spheres",
|
|
547
|
+
type: { type: "nested", schema: SpherePrimitive },
|
|
548
|
+
array: true,
|
|
549
|
+
description: "Sphere primitives",
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
name: "cylinders",
|
|
553
|
+
type: { type: "nested", schema: CylinderPrimitive },
|
|
554
|
+
array: true,
|
|
555
|
+
description: "Cylinder primitives",
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
name: "lines",
|
|
559
|
+
type: { type: "nested", schema: LinePrimitive },
|
|
560
|
+
array: true,
|
|
561
|
+
description: "Line primitives",
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
name: "triangles",
|
|
565
|
+
type: { type: "nested", schema: TriangleListPrimitive },
|
|
566
|
+
array: true,
|
|
567
|
+
description: "Triangle list primitives",
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
name: "texts",
|
|
571
|
+
type: { type: "nested", schema: TextPrimitive },
|
|
572
|
+
array: true,
|
|
573
|
+
description: "Text primitives",
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
name: "models",
|
|
577
|
+
type: { type: "nested", schema: ModelPrimitive },
|
|
578
|
+
array: true,
|
|
579
|
+
description: "Model primitives",
|
|
580
|
+
},
|
|
581
|
+
],
|
|
582
|
+
};
|
|
583
|
+
const SceneUpdate = {
|
|
584
|
+
type: "message",
|
|
585
|
+
name: "SceneUpdate",
|
|
586
|
+
description: "(Experimental, subject to change) An update to the entities displayed in a 3D scene",
|
|
587
|
+
fields: [
|
|
588
|
+
{
|
|
589
|
+
name: "deletions",
|
|
590
|
+
type: { type: "nested", schema: SceneEntityDeletion },
|
|
591
|
+
array: true,
|
|
592
|
+
description: "Scene entities to delete",
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
name: "entities",
|
|
596
|
+
type: { type: "nested", schema: SceneEntity },
|
|
597
|
+
array: true,
|
|
598
|
+
description: "Scene entities to add or replace",
|
|
599
|
+
},
|
|
600
|
+
],
|
|
601
|
+
};
|
|
602
|
+
const CameraCalibration = {
|
|
155
603
|
type: "message",
|
|
156
604
|
name: "CameraCalibration",
|
|
157
605
|
description: "Camera calibration parameters",
|
|
@@ -240,7 +688,7 @@ This holds for both images of a stereo pair.
|
|
|
240
688
|
},
|
|
241
689
|
],
|
|
242
690
|
};
|
|
243
|
-
const
|
|
691
|
+
const CompressedImage = {
|
|
244
692
|
type: "message",
|
|
245
693
|
name: "CompressedImage",
|
|
246
694
|
description: "A compressed image",
|
|
@@ -262,7 +710,7 @@ const foxglove_CompressedImage = {
|
|
|
262
710
|
},
|
|
263
711
|
],
|
|
264
712
|
};
|
|
265
|
-
const
|
|
713
|
+
const RawImage = {
|
|
266
714
|
type: "message",
|
|
267
715
|
name: "RawImage",
|
|
268
716
|
description: "A raw image",
|
|
@@ -299,7 +747,7 @@ const foxglove_RawImage = {
|
|
|
299
747
|
},
|
|
300
748
|
],
|
|
301
749
|
};
|
|
302
|
-
const
|
|
750
|
+
const FrameTransform = {
|
|
303
751
|
type: "message",
|
|
304
752
|
name: "FrameTransform",
|
|
305
753
|
description: "A transform between two reference frames in 3D space",
|
|
@@ -321,17 +769,17 @@ const foxglove_FrameTransform = {
|
|
|
321
769
|
},
|
|
322
770
|
{
|
|
323
771
|
name: "translation",
|
|
324
|
-
type: { type: "nested", schema:
|
|
772
|
+
type: { type: "nested", schema: Vector3 },
|
|
325
773
|
description: "Translation component of the transform",
|
|
326
774
|
},
|
|
327
775
|
{
|
|
328
776
|
name: "rotation",
|
|
329
|
-
type: { type: "nested", schema:
|
|
777
|
+
type: { type: "nested", schema: Quaternion },
|
|
330
778
|
description: "Rotation component of the transform",
|
|
331
779
|
},
|
|
332
780
|
],
|
|
333
781
|
};
|
|
334
|
-
const
|
|
782
|
+
const PoseInFrame = {
|
|
335
783
|
type: "message",
|
|
336
784
|
name: "PoseInFrame",
|
|
337
785
|
description: "A timestamped pose for an object or reference frame in 3D space",
|
|
@@ -348,12 +796,12 @@ const foxglove_PoseInFrame = {
|
|
|
348
796
|
},
|
|
349
797
|
{
|
|
350
798
|
name: "pose",
|
|
351
|
-
type: { type: "nested", schema:
|
|
799
|
+
type: { type: "nested", schema: Pose },
|
|
352
800
|
description: "Pose in 3D space",
|
|
353
801
|
},
|
|
354
802
|
],
|
|
355
803
|
};
|
|
356
|
-
const
|
|
804
|
+
const PosesInFrame = {
|
|
357
805
|
type: "message",
|
|
358
806
|
name: "PosesInFrame",
|
|
359
807
|
description: "An array of timestamped poses for an object or reference frame in 3D space",
|
|
@@ -370,13 +818,13 @@ const foxglove_PosesInFrame = {
|
|
|
370
818
|
},
|
|
371
819
|
{
|
|
372
820
|
name: "poses",
|
|
373
|
-
type: { type: "nested", schema:
|
|
821
|
+
type: { type: "nested", schema: Pose },
|
|
374
822
|
description: "Poses in 3D space",
|
|
375
823
|
array: true,
|
|
376
824
|
},
|
|
377
825
|
],
|
|
378
826
|
};
|
|
379
|
-
const
|
|
827
|
+
const GeoJSON = {
|
|
380
828
|
type: "message",
|
|
381
829
|
name: "GeoJSON",
|
|
382
830
|
description: "GeoJSON data for annotating maps",
|
|
@@ -388,7 +836,7 @@ const foxglove_GeoJSON = {
|
|
|
388
836
|
},
|
|
389
837
|
],
|
|
390
838
|
};
|
|
391
|
-
const
|
|
839
|
+
const NumericType = {
|
|
392
840
|
type: "enum",
|
|
393
841
|
name: "NumericType",
|
|
394
842
|
description: "Numeric type",
|
|
@@ -406,7 +854,7 @@ const foxglove_NumericType = {
|
|
|
406
854
|
{ name: "FLOAT64", value: 8 },
|
|
407
855
|
],
|
|
408
856
|
};
|
|
409
|
-
const
|
|
857
|
+
const PackedElementField = {
|
|
410
858
|
type: "message",
|
|
411
859
|
name: "PackedElementField",
|
|
412
860
|
description: "A field present within each element in a byte array of packed elements.",
|
|
@@ -423,12 +871,12 @@ const foxglove_PackedElementField = {
|
|
|
423
871
|
},
|
|
424
872
|
{
|
|
425
873
|
name: "type",
|
|
426
|
-
type: { type: "enum", enum:
|
|
874
|
+
type: { type: "enum", enum: NumericType },
|
|
427
875
|
description: "Type of data in the field. Integers are stored using little-endian byte order.",
|
|
428
876
|
},
|
|
429
877
|
],
|
|
430
878
|
};
|
|
431
|
-
const
|
|
879
|
+
const Grid = {
|
|
432
880
|
type: "message",
|
|
433
881
|
name: "Grid",
|
|
434
882
|
description: "A 2D grid of data",
|
|
@@ -445,7 +893,7 @@ const foxglove_Grid = {
|
|
|
445
893
|
},
|
|
446
894
|
{
|
|
447
895
|
name: "pose",
|
|
448
|
-
type: { type: "nested", schema:
|
|
896
|
+
type: { type: "nested", schema: Pose },
|
|
449
897
|
description: "Origin of grid's corner relative to frame of reference; grid is positioned in the x-y plane relative to this origin",
|
|
450
898
|
},
|
|
451
899
|
{
|
|
@@ -455,7 +903,7 @@ const foxglove_Grid = {
|
|
|
455
903
|
},
|
|
456
904
|
{
|
|
457
905
|
name: "cell_size",
|
|
458
|
-
type: { type: "nested", schema:
|
|
906
|
+
type: { type: "nested", schema: Vector2 },
|
|
459
907
|
description: "Size of single grid cell along x and y axes, relative to `pose`",
|
|
460
908
|
},
|
|
461
909
|
{
|
|
@@ -470,7 +918,7 @@ const foxglove_Grid = {
|
|
|
470
918
|
},
|
|
471
919
|
{
|
|
472
920
|
name: "fields",
|
|
473
|
-
type: { type: "nested", schema:
|
|
921
|
+
type: { type: "nested", schema: PackedElementField },
|
|
474
922
|
array: true,
|
|
475
923
|
description: "Fields in `data`",
|
|
476
924
|
},
|
|
@@ -481,7 +929,7 @@ const foxglove_Grid = {
|
|
|
481
929
|
},
|
|
482
930
|
],
|
|
483
931
|
};
|
|
484
|
-
const
|
|
932
|
+
const CircleAnnotation = {
|
|
485
933
|
type: "message",
|
|
486
934
|
name: "CircleAnnotation",
|
|
487
935
|
description: "A circle annotation on a 2D image",
|
|
@@ -493,7 +941,7 @@ const foxglove_CircleAnnotation = {
|
|
|
493
941
|
},
|
|
494
942
|
{
|
|
495
943
|
name: "position",
|
|
496
|
-
type: { type: "nested", schema:
|
|
944
|
+
type: { type: "nested", schema: Point2 },
|
|
497
945
|
description: "Center of the circle in 2D image coordinates",
|
|
498
946
|
},
|
|
499
947
|
{
|
|
@@ -508,17 +956,17 @@ const foxglove_CircleAnnotation = {
|
|
|
508
956
|
},
|
|
509
957
|
{
|
|
510
958
|
name: "fill_color",
|
|
511
|
-
type: { type: "nested", schema:
|
|
959
|
+
type: { type: "nested", schema: Color },
|
|
512
960
|
description: "Fill color",
|
|
513
961
|
},
|
|
514
962
|
{
|
|
515
963
|
name: "outline_color",
|
|
516
|
-
type: { type: "nested", schema:
|
|
964
|
+
type: { type: "nested", schema: Color },
|
|
517
965
|
description: "Outline color",
|
|
518
966
|
},
|
|
519
967
|
],
|
|
520
968
|
};
|
|
521
|
-
const
|
|
969
|
+
const PointsAnnotationType = {
|
|
522
970
|
type: "enum",
|
|
523
971
|
name: "PointsAnnotationType",
|
|
524
972
|
description: "Type of points annotation",
|
|
@@ -532,7 +980,7 @@ const foxglove_PointsAnnotationType = {
|
|
|
532
980
|
{ name: "LINE_LIST", value: 4 },
|
|
533
981
|
],
|
|
534
982
|
};
|
|
535
|
-
const
|
|
983
|
+
const PointsAnnotation = {
|
|
536
984
|
type: "message",
|
|
537
985
|
name: "PointsAnnotation",
|
|
538
986
|
description: "An array of points on a 2D image",
|
|
@@ -544,29 +992,29 @@ const foxglove_PointsAnnotation = {
|
|
|
544
992
|
},
|
|
545
993
|
{
|
|
546
994
|
name: "type",
|
|
547
|
-
type: { type: "enum", enum:
|
|
995
|
+
type: { type: "enum", enum: PointsAnnotationType },
|
|
548
996
|
description: "Type of points annotation to draw",
|
|
549
997
|
},
|
|
550
998
|
{
|
|
551
999
|
name: "points",
|
|
552
|
-
type: { type: "nested", schema:
|
|
1000
|
+
type: { type: "nested", schema: Point2 },
|
|
553
1001
|
description: "Points in 2D image coordinates",
|
|
554
1002
|
array: true,
|
|
555
1003
|
},
|
|
556
1004
|
{
|
|
557
1005
|
name: "outline_color",
|
|
558
|
-
type: { type: "nested", schema:
|
|
1006
|
+
type: { type: "nested", schema: Color },
|
|
559
1007
|
description: "Outline color",
|
|
560
1008
|
},
|
|
561
1009
|
{
|
|
562
1010
|
name: "outline_colors",
|
|
563
|
-
type: { type: "nested", schema:
|
|
1011
|
+
type: { type: "nested", schema: Color },
|
|
564
1012
|
description: "Per-point colors, if `type` is `POINTS`, or per-segment stroke colors, if `type` is `LINE_LIST`.",
|
|
565
1013
|
array: true,
|
|
566
1014
|
},
|
|
567
1015
|
{
|
|
568
1016
|
name: "fill_color",
|
|
569
|
-
type: { type: "nested", schema:
|
|
1017
|
+
type: { type: "nested", schema: Color },
|
|
570
1018
|
description: "Fill color",
|
|
571
1019
|
},
|
|
572
1020
|
{
|
|
@@ -576,26 +1024,26 @@ const foxglove_PointsAnnotation = {
|
|
|
576
1024
|
},
|
|
577
1025
|
],
|
|
578
1026
|
};
|
|
579
|
-
const
|
|
1027
|
+
const ImageAnnotations = {
|
|
580
1028
|
type: "message",
|
|
581
1029
|
name: "ImageAnnotations",
|
|
582
1030
|
description: "Array of annotations for a 2D image",
|
|
583
1031
|
fields: [
|
|
584
1032
|
{
|
|
585
1033
|
name: "circles",
|
|
586
|
-
type: { type: "nested", schema:
|
|
1034
|
+
type: { type: "nested", schema: CircleAnnotation },
|
|
587
1035
|
description: "Circle annotations",
|
|
588
1036
|
array: true,
|
|
589
1037
|
},
|
|
590
1038
|
{
|
|
591
1039
|
name: "points",
|
|
592
|
-
type: { type: "nested", schema:
|
|
1040
|
+
type: { type: "nested", schema: PointsAnnotation },
|
|
593
1041
|
description: "Points annotations",
|
|
594
1042
|
array: true,
|
|
595
1043
|
},
|
|
596
1044
|
],
|
|
597
1045
|
};
|
|
598
|
-
const
|
|
1046
|
+
const PositionCovarianceType = {
|
|
599
1047
|
type: "enum",
|
|
600
1048
|
name: "PositionCovarianceType",
|
|
601
1049
|
description: "Type of position covariance",
|
|
@@ -608,7 +1056,7 @@ const foxglove_PositionCovarianceType = {
|
|
|
608
1056
|
{ name: "KNOWN", value: 3 },
|
|
609
1057
|
],
|
|
610
1058
|
};
|
|
611
|
-
const
|
|
1059
|
+
const LocationFix = {
|
|
612
1060
|
type: "message",
|
|
613
1061
|
name: "LocationFix",
|
|
614
1062
|
description: "A navigation satellite fix for any Global Navigation Satellite System",
|
|
@@ -636,12 +1084,12 @@ const foxglove_LocationFix = {
|
|
|
636
1084
|
},
|
|
637
1085
|
{
|
|
638
1086
|
name: "position_covariance_type",
|
|
639
|
-
type: { type: "enum", enum:
|
|
1087
|
+
type: { type: "enum", enum: PositionCovarianceType },
|
|
640
1088
|
description: "If `position_covariance` is available, `position_covariance_type` must be set to indicate the type of covariance.",
|
|
641
1089
|
},
|
|
642
1090
|
],
|
|
643
1091
|
};
|
|
644
|
-
const
|
|
1092
|
+
const LogLevel = {
|
|
645
1093
|
type: "enum",
|
|
646
1094
|
name: "LogLevel",
|
|
647
1095
|
description: "Log level",
|
|
@@ -656,7 +1104,7 @@ const foxglove_LogLevel = {
|
|
|
656
1104
|
{ name: "FATAL", value: 5 },
|
|
657
1105
|
],
|
|
658
1106
|
};
|
|
659
|
-
const
|
|
1107
|
+
const Log = {
|
|
660
1108
|
type: "message",
|
|
661
1109
|
name: "Log",
|
|
662
1110
|
description: "A log message",
|
|
@@ -668,7 +1116,7 @@ const foxglove_Log = {
|
|
|
668
1116
|
},
|
|
669
1117
|
{
|
|
670
1118
|
name: "level",
|
|
671
|
-
type: { type: "enum", enum:
|
|
1119
|
+
type: { type: "enum", enum: LogLevel },
|
|
672
1120
|
description: "Log level",
|
|
673
1121
|
},
|
|
674
1122
|
{
|
|
@@ -693,7 +1141,7 @@ const foxglove_Log = {
|
|
|
693
1141
|
},
|
|
694
1142
|
],
|
|
695
1143
|
};
|
|
696
|
-
const
|
|
1144
|
+
const PointCloud = {
|
|
697
1145
|
type: "message",
|
|
698
1146
|
name: "PointCloud",
|
|
699
1147
|
description: "A collection of N-dimensional points, which may contain additional fields with information like normals, intensity, etc.",
|
|
@@ -710,7 +1158,7 @@ const foxglove_PointCloud = {
|
|
|
710
1158
|
},
|
|
711
1159
|
{
|
|
712
1160
|
name: "pose",
|
|
713
|
-
type: { type: "nested", schema:
|
|
1161
|
+
type: { type: "nested", schema: Pose },
|
|
714
1162
|
description: "The origin of the point cloud relative to the frame of reference",
|
|
715
1163
|
},
|
|
716
1164
|
{
|
|
@@ -720,7 +1168,7 @@ const foxglove_PointCloud = {
|
|
|
720
1168
|
},
|
|
721
1169
|
{
|
|
722
1170
|
name: "fields",
|
|
723
|
-
type: { type: "nested", schema:
|
|
1171
|
+
type: { type: "nested", schema: PackedElementField },
|
|
724
1172
|
array: true,
|
|
725
1173
|
description: "Fields in the `data`",
|
|
726
1174
|
},
|
|
@@ -731,7 +1179,7 @@ const foxglove_PointCloud = {
|
|
|
731
1179
|
},
|
|
732
1180
|
],
|
|
733
1181
|
};
|
|
734
|
-
const
|
|
1182
|
+
const LaserScan = {
|
|
735
1183
|
type: "message",
|
|
736
1184
|
name: "LaserScan",
|
|
737
1185
|
description: "A single scan from a planar laser range-finder",
|
|
@@ -748,7 +1196,7 @@ const foxglove_LaserScan = {
|
|
|
748
1196
|
},
|
|
749
1197
|
{
|
|
750
1198
|
name: "pose",
|
|
751
|
-
type: { type: "nested", schema:
|
|
1199
|
+
type: { type: "nested", schema: Pose },
|
|
752
1200
|
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",
|
|
753
1201
|
},
|
|
754
1202
|
{
|
|
@@ -776,34 +1224,48 @@ const foxglove_LaserScan = {
|
|
|
776
1224
|
],
|
|
777
1225
|
};
|
|
778
1226
|
export const foxgloveMessageSchemas = {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
1227
|
+
ArrowPrimitive,
|
|
1228
|
+
CameraCalibration,
|
|
1229
|
+
CircleAnnotation,
|
|
1230
|
+
Color,
|
|
1231
|
+
CompressedImage,
|
|
1232
|
+
CylinderPrimitive,
|
|
1233
|
+
CubePrimitive,
|
|
1234
|
+
FrameTransform,
|
|
1235
|
+
GeoJSON,
|
|
1236
|
+
Grid,
|
|
1237
|
+
ImageAnnotations,
|
|
1238
|
+
KeyValuePair,
|
|
1239
|
+
LaserScan,
|
|
1240
|
+
LinePrimitive,
|
|
1241
|
+
LocationFix,
|
|
1242
|
+
Log,
|
|
1243
|
+
SceneEntityDeletion,
|
|
1244
|
+
SceneEntity,
|
|
1245
|
+
SceneUpdate,
|
|
1246
|
+
ModelPrimitive,
|
|
1247
|
+
PackedElementField,
|
|
1248
|
+
Point2,
|
|
1249
|
+
Point3,
|
|
1250
|
+
PointCloud,
|
|
1251
|
+
PointsAnnotation,
|
|
1252
|
+
Pose,
|
|
1253
|
+
PoseInFrame,
|
|
1254
|
+
PosesInFrame,
|
|
1255
|
+
Quaternion,
|
|
1256
|
+
RawImage,
|
|
1257
|
+
SpherePrimitive,
|
|
1258
|
+
TextPrimitive,
|
|
1259
|
+
TriangleListPrimitive,
|
|
1260
|
+
Vector2,
|
|
1261
|
+
Vector3,
|
|
802
1262
|
};
|
|
803
1263
|
export const foxgloveEnumSchemas = {
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
1264
|
+
LineType,
|
|
1265
|
+
LogLevel,
|
|
1266
|
+
SceneEntityDeletionType,
|
|
1267
|
+
NumericType,
|
|
1268
|
+
PointsAnnotationType,
|
|
1269
|
+
PositionCovarianceType,
|
|
808
1270
|
};
|
|
809
1271
|
//# sourceMappingURL=schemas.js.map
|