@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/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",
|
|
@@ -243,7 +691,7 @@ This holds for both images of a stereo pair.
|
|
|
243
691
|
},
|
|
244
692
|
],
|
|
245
693
|
};
|
|
246
|
-
const
|
|
694
|
+
const CompressedImage = {
|
|
247
695
|
type: "message",
|
|
248
696
|
name: "CompressedImage",
|
|
249
697
|
description: "A compressed image",
|
|
@@ -265,7 +713,7 @@ const foxglove_CompressedImage = {
|
|
|
265
713
|
},
|
|
266
714
|
],
|
|
267
715
|
};
|
|
268
|
-
const
|
|
716
|
+
const RawImage = {
|
|
269
717
|
type: "message",
|
|
270
718
|
name: "RawImage",
|
|
271
719
|
description: "A raw image",
|
|
@@ -302,7 +750,7 @@ const foxglove_RawImage = {
|
|
|
302
750
|
},
|
|
303
751
|
],
|
|
304
752
|
};
|
|
305
|
-
const
|
|
753
|
+
const FrameTransform = {
|
|
306
754
|
type: "message",
|
|
307
755
|
name: "FrameTransform",
|
|
308
756
|
description: "A transform between two reference frames in 3D space",
|
|
@@ -324,17 +772,17 @@ const foxglove_FrameTransform = {
|
|
|
324
772
|
},
|
|
325
773
|
{
|
|
326
774
|
name: "translation",
|
|
327
|
-
type: { type: "nested", schema:
|
|
775
|
+
type: { type: "nested", schema: Vector3 },
|
|
328
776
|
description: "Translation component of the transform",
|
|
329
777
|
},
|
|
330
778
|
{
|
|
331
779
|
name: "rotation",
|
|
332
|
-
type: { type: "nested", schema:
|
|
780
|
+
type: { type: "nested", schema: Quaternion },
|
|
333
781
|
description: "Rotation component of the transform",
|
|
334
782
|
},
|
|
335
783
|
],
|
|
336
784
|
};
|
|
337
|
-
const
|
|
785
|
+
const PoseInFrame = {
|
|
338
786
|
type: "message",
|
|
339
787
|
name: "PoseInFrame",
|
|
340
788
|
description: "A timestamped pose for an object or reference frame in 3D space",
|
|
@@ -351,12 +799,12 @@ const foxglove_PoseInFrame = {
|
|
|
351
799
|
},
|
|
352
800
|
{
|
|
353
801
|
name: "pose",
|
|
354
|
-
type: { type: "nested", schema:
|
|
802
|
+
type: { type: "nested", schema: Pose },
|
|
355
803
|
description: "Pose in 3D space",
|
|
356
804
|
},
|
|
357
805
|
],
|
|
358
806
|
};
|
|
359
|
-
const
|
|
807
|
+
const PosesInFrame = {
|
|
360
808
|
type: "message",
|
|
361
809
|
name: "PosesInFrame",
|
|
362
810
|
description: "An array of timestamped poses for an object or reference frame in 3D space",
|
|
@@ -373,13 +821,13 @@ const foxglove_PosesInFrame = {
|
|
|
373
821
|
},
|
|
374
822
|
{
|
|
375
823
|
name: "poses",
|
|
376
|
-
type: { type: "nested", schema:
|
|
824
|
+
type: { type: "nested", schema: Pose },
|
|
377
825
|
description: "Poses in 3D space",
|
|
378
826
|
array: true,
|
|
379
827
|
},
|
|
380
828
|
],
|
|
381
829
|
};
|
|
382
|
-
const
|
|
830
|
+
const GeoJSON = {
|
|
383
831
|
type: "message",
|
|
384
832
|
name: "GeoJSON",
|
|
385
833
|
description: "GeoJSON data for annotating maps",
|
|
@@ -391,7 +839,7 @@ const foxglove_GeoJSON = {
|
|
|
391
839
|
},
|
|
392
840
|
],
|
|
393
841
|
};
|
|
394
|
-
const
|
|
842
|
+
const NumericType = {
|
|
395
843
|
type: "enum",
|
|
396
844
|
name: "NumericType",
|
|
397
845
|
description: "Numeric type",
|
|
@@ -409,7 +857,7 @@ const foxglove_NumericType = {
|
|
|
409
857
|
{ name: "FLOAT64", value: 8 },
|
|
410
858
|
],
|
|
411
859
|
};
|
|
412
|
-
const
|
|
860
|
+
const PackedElementField = {
|
|
413
861
|
type: "message",
|
|
414
862
|
name: "PackedElementField",
|
|
415
863
|
description: "A field present within each element in a byte array of packed elements.",
|
|
@@ -426,12 +874,12 @@ const foxglove_PackedElementField = {
|
|
|
426
874
|
},
|
|
427
875
|
{
|
|
428
876
|
name: "type",
|
|
429
|
-
type: { type: "enum", enum:
|
|
877
|
+
type: { type: "enum", enum: NumericType },
|
|
430
878
|
description: "Type of data in the field. Integers are stored using little-endian byte order.",
|
|
431
879
|
},
|
|
432
880
|
],
|
|
433
881
|
};
|
|
434
|
-
const
|
|
882
|
+
const Grid = {
|
|
435
883
|
type: "message",
|
|
436
884
|
name: "Grid",
|
|
437
885
|
description: "A 2D grid of data",
|
|
@@ -448,7 +896,7 @@ const foxglove_Grid = {
|
|
|
448
896
|
},
|
|
449
897
|
{
|
|
450
898
|
name: "pose",
|
|
451
|
-
type: { type: "nested", schema:
|
|
899
|
+
type: { type: "nested", schema: Pose },
|
|
452
900
|
description: "Origin of grid's corner relative to frame of reference; grid is positioned in the x-y plane relative to this origin",
|
|
453
901
|
},
|
|
454
902
|
{
|
|
@@ -458,7 +906,7 @@ const foxglove_Grid = {
|
|
|
458
906
|
},
|
|
459
907
|
{
|
|
460
908
|
name: "cell_size",
|
|
461
|
-
type: { type: "nested", schema:
|
|
909
|
+
type: { type: "nested", schema: Vector2 },
|
|
462
910
|
description: "Size of single grid cell along x and y axes, relative to `pose`",
|
|
463
911
|
},
|
|
464
912
|
{
|
|
@@ -473,7 +921,7 @@ const foxglove_Grid = {
|
|
|
473
921
|
},
|
|
474
922
|
{
|
|
475
923
|
name: "fields",
|
|
476
|
-
type: { type: "nested", schema:
|
|
924
|
+
type: { type: "nested", schema: PackedElementField },
|
|
477
925
|
array: true,
|
|
478
926
|
description: "Fields in `data`",
|
|
479
927
|
},
|
|
@@ -484,7 +932,7 @@ const foxglove_Grid = {
|
|
|
484
932
|
},
|
|
485
933
|
],
|
|
486
934
|
};
|
|
487
|
-
const
|
|
935
|
+
const CircleAnnotation = {
|
|
488
936
|
type: "message",
|
|
489
937
|
name: "CircleAnnotation",
|
|
490
938
|
description: "A circle annotation on a 2D image",
|
|
@@ -496,7 +944,7 @@ const foxglove_CircleAnnotation = {
|
|
|
496
944
|
},
|
|
497
945
|
{
|
|
498
946
|
name: "position",
|
|
499
|
-
type: { type: "nested", schema:
|
|
947
|
+
type: { type: "nested", schema: Point2 },
|
|
500
948
|
description: "Center of the circle in 2D image coordinates",
|
|
501
949
|
},
|
|
502
950
|
{
|
|
@@ -511,17 +959,17 @@ const foxglove_CircleAnnotation = {
|
|
|
511
959
|
},
|
|
512
960
|
{
|
|
513
961
|
name: "fill_color",
|
|
514
|
-
type: { type: "nested", schema:
|
|
962
|
+
type: { type: "nested", schema: Color },
|
|
515
963
|
description: "Fill color",
|
|
516
964
|
},
|
|
517
965
|
{
|
|
518
966
|
name: "outline_color",
|
|
519
|
-
type: { type: "nested", schema:
|
|
967
|
+
type: { type: "nested", schema: Color },
|
|
520
968
|
description: "Outline color",
|
|
521
969
|
},
|
|
522
970
|
],
|
|
523
971
|
};
|
|
524
|
-
const
|
|
972
|
+
const PointsAnnotationType = {
|
|
525
973
|
type: "enum",
|
|
526
974
|
name: "PointsAnnotationType",
|
|
527
975
|
description: "Type of points annotation",
|
|
@@ -535,7 +983,7 @@ const foxglove_PointsAnnotationType = {
|
|
|
535
983
|
{ name: "LINE_LIST", value: 4 },
|
|
536
984
|
],
|
|
537
985
|
};
|
|
538
|
-
const
|
|
986
|
+
const PointsAnnotation = {
|
|
539
987
|
type: "message",
|
|
540
988
|
name: "PointsAnnotation",
|
|
541
989
|
description: "An array of points on a 2D image",
|
|
@@ -547,29 +995,29 @@ const foxglove_PointsAnnotation = {
|
|
|
547
995
|
},
|
|
548
996
|
{
|
|
549
997
|
name: "type",
|
|
550
|
-
type: { type: "enum", enum:
|
|
998
|
+
type: { type: "enum", enum: PointsAnnotationType },
|
|
551
999
|
description: "Type of points annotation to draw",
|
|
552
1000
|
},
|
|
553
1001
|
{
|
|
554
1002
|
name: "points",
|
|
555
|
-
type: { type: "nested", schema:
|
|
1003
|
+
type: { type: "nested", schema: Point2 },
|
|
556
1004
|
description: "Points in 2D image coordinates",
|
|
557
1005
|
array: true,
|
|
558
1006
|
},
|
|
559
1007
|
{
|
|
560
1008
|
name: "outline_color",
|
|
561
|
-
type: { type: "nested", schema:
|
|
1009
|
+
type: { type: "nested", schema: Color },
|
|
562
1010
|
description: "Outline color",
|
|
563
1011
|
},
|
|
564
1012
|
{
|
|
565
1013
|
name: "outline_colors",
|
|
566
|
-
type: { type: "nested", schema:
|
|
1014
|
+
type: { type: "nested", schema: Color },
|
|
567
1015
|
description: "Per-point colors, if `type` is `POINTS`, or per-segment stroke colors, if `type` is `LINE_LIST`.",
|
|
568
1016
|
array: true,
|
|
569
1017
|
},
|
|
570
1018
|
{
|
|
571
1019
|
name: "fill_color",
|
|
572
|
-
type: { type: "nested", schema:
|
|
1020
|
+
type: { type: "nested", schema: Color },
|
|
573
1021
|
description: "Fill color",
|
|
574
1022
|
},
|
|
575
1023
|
{
|
|
@@ -579,26 +1027,26 @@ const foxglove_PointsAnnotation = {
|
|
|
579
1027
|
},
|
|
580
1028
|
],
|
|
581
1029
|
};
|
|
582
|
-
const
|
|
1030
|
+
const ImageAnnotations = {
|
|
583
1031
|
type: "message",
|
|
584
1032
|
name: "ImageAnnotations",
|
|
585
1033
|
description: "Array of annotations for a 2D image",
|
|
586
1034
|
fields: [
|
|
587
1035
|
{
|
|
588
1036
|
name: "circles",
|
|
589
|
-
type: { type: "nested", schema:
|
|
1037
|
+
type: { type: "nested", schema: CircleAnnotation },
|
|
590
1038
|
description: "Circle annotations",
|
|
591
1039
|
array: true,
|
|
592
1040
|
},
|
|
593
1041
|
{
|
|
594
1042
|
name: "points",
|
|
595
|
-
type: { type: "nested", schema:
|
|
1043
|
+
type: { type: "nested", schema: PointsAnnotation },
|
|
596
1044
|
description: "Points annotations",
|
|
597
1045
|
array: true,
|
|
598
1046
|
},
|
|
599
1047
|
],
|
|
600
1048
|
};
|
|
601
|
-
const
|
|
1049
|
+
const PositionCovarianceType = {
|
|
602
1050
|
type: "enum",
|
|
603
1051
|
name: "PositionCovarianceType",
|
|
604
1052
|
description: "Type of position covariance",
|
|
@@ -611,7 +1059,7 @@ const foxglove_PositionCovarianceType = {
|
|
|
611
1059
|
{ name: "KNOWN", value: 3 },
|
|
612
1060
|
],
|
|
613
1061
|
};
|
|
614
|
-
const
|
|
1062
|
+
const LocationFix = {
|
|
615
1063
|
type: "message",
|
|
616
1064
|
name: "LocationFix",
|
|
617
1065
|
description: "A navigation satellite fix for any Global Navigation Satellite System",
|
|
@@ -639,12 +1087,12 @@ const foxglove_LocationFix = {
|
|
|
639
1087
|
},
|
|
640
1088
|
{
|
|
641
1089
|
name: "position_covariance_type",
|
|
642
|
-
type: { type: "enum", enum:
|
|
1090
|
+
type: { type: "enum", enum: PositionCovarianceType },
|
|
643
1091
|
description: "If `position_covariance` is available, `position_covariance_type` must be set to indicate the type of covariance.",
|
|
644
1092
|
},
|
|
645
1093
|
],
|
|
646
1094
|
};
|
|
647
|
-
const
|
|
1095
|
+
const LogLevel = {
|
|
648
1096
|
type: "enum",
|
|
649
1097
|
name: "LogLevel",
|
|
650
1098
|
description: "Log level",
|
|
@@ -659,7 +1107,7 @@ const foxglove_LogLevel = {
|
|
|
659
1107
|
{ name: "FATAL", value: 5 },
|
|
660
1108
|
],
|
|
661
1109
|
};
|
|
662
|
-
const
|
|
1110
|
+
const Log = {
|
|
663
1111
|
type: "message",
|
|
664
1112
|
name: "Log",
|
|
665
1113
|
description: "A log message",
|
|
@@ -671,7 +1119,7 @@ const foxglove_Log = {
|
|
|
671
1119
|
},
|
|
672
1120
|
{
|
|
673
1121
|
name: "level",
|
|
674
|
-
type: { type: "enum", enum:
|
|
1122
|
+
type: { type: "enum", enum: LogLevel },
|
|
675
1123
|
description: "Log level",
|
|
676
1124
|
},
|
|
677
1125
|
{
|
|
@@ -696,7 +1144,7 @@ const foxglove_Log = {
|
|
|
696
1144
|
},
|
|
697
1145
|
],
|
|
698
1146
|
};
|
|
699
|
-
const
|
|
1147
|
+
const PointCloud = {
|
|
700
1148
|
type: "message",
|
|
701
1149
|
name: "PointCloud",
|
|
702
1150
|
description: "A collection of N-dimensional points, which may contain additional fields with information like normals, intensity, etc.",
|
|
@@ -713,7 +1161,7 @@ const foxglove_PointCloud = {
|
|
|
713
1161
|
},
|
|
714
1162
|
{
|
|
715
1163
|
name: "pose",
|
|
716
|
-
type: { type: "nested", schema:
|
|
1164
|
+
type: { type: "nested", schema: Pose },
|
|
717
1165
|
description: "The origin of the point cloud relative to the frame of reference",
|
|
718
1166
|
},
|
|
719
1167
|
{
|
|
@@ -723,7 +1171,7 @@ const foxglove_PointCloud = {
|
|
|
723
1171
|
},
|
|
724
1172
|
{
|
|
725
1173
|
name: "fields",
|
|
726
|
-
type: { type: "nested", schema:
|
|
1174
|
+
type: { type: "nested", schema: PackedElementField },
|
|
727
1175
|
array: true,
|
|
728
1176
|
description: "Fields in the `data`",
|
|
729
1177
|
},
|
|
@@ -734,7 +1182,7 @@ const foxglove_PointCloud = {
|
|
|
734
1182
|
},
|
|
735
1183
|
],
|
|
736
1184
|
};
|
|
737
|
-
const
|
|
1185
|
+
const LaserScan = {
|
|
738
1186
|
type: "message",
|
|
739
1187
|
name: "LaserScan",
|
|
740
1188
|
description: "A single scan from a planar laser range-finder",
|
|
@@ -751,7 +1199,7 @@ const foxglove_LaserScan = {
|
|
|
751
1199
|
},
|
|
752
1200
|
{
|
|
753
1201
|
name: "pose",
|
|
754
|
-
type: { type: "nested", schema:
|
|
1202
|
+
type: { type: "nested", schema: Pose },
|
|
755
1203
|
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",
|
|
756
1204
|
},
|
|
757
1205
|
{
|
|
@@ -779,34 +1227,48 @@ const foxglove_LaserScan = {
|
|
|
779
1227
|
],
|
|
780
1228
|
};
|
|
781
1229
|
exports.foxgloveMessageSchemas = {
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
1230
|
+
ArrowPrimitive,
|
|
1231
|
+
CameraCalibration,
|
|
1232
|
+
CircleAnnotation,
|
|
1233
|
+
Color,
|
|
1234
|
+
CompressedImage,
|
|
1235
|
+
CylinderPrimitive,
|
|
1236
|
+
CubePrimitive,
|
|
1237
|
+
FrameTransform,
|
|
1238
|
+
GeoJSON,
|
|
1239
|
+
Grid,
|
|
1240
|
+
ImageAnnotations,
|
|
1241
|
+
KeyValuePair,
|
|
1242
|
+
LaserScan,
|
|
1243
|
+
LinePrimitive,
|
|
1244
|
+
LocationFix,
|
|
1245
|
+
Log,
|
|
1246
|
+
SceneEntityDeletion,
|
|
1247
|
+
SceneEntity,
|
|
1248
|
+
SceneUpdate,
|
|
1249
|
+
ModelPrimitive,
|
|
1250
|
+
PackedElementField,
|
|
1251
|
+
Point2,
|
|
1252
|
+
Point3,
|
|
1253
|
+
PointCloud,
|
|
1254
|
+
PointsAnnotation,
|
|
1255
|
+
Pose,
|
|
1256
|
+
PoseInFrame,
|
|
1257
|
+
PosesInFrame,
|
|
1258
|
+
Quaternion,
|
|
1259
|
+
RawImage,
|
|
1260
|
+
SpherePrimitive,
|
|
1261
|
+
TextPrimitive,
|
|
1262
|
+
TriangleListPrimitive,
|
|
1263
|
+
Vector2,
|
|
1264
|
+
Vector3,
|
|
805
1265
|
};
|
|
806
1266
|
exports.foxgloveEnumSchemas = {
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
1267
|
+
LineType,
|
|
1268
|
+
LogLevel,
|
|
1269
|
+
SceneEntityDeletionType,
|
|
1270
|
+
NumericType,
|
|
1271
|
+
PointsAnnotationType,
|
|
1272
|
+
PositionCovarianceType,
|
|
811
1273
|
};
|
|
812
1274
|
//# sourceMappingURL=schemas.js.map
|