@viamrobotics/motion-tools 0.19.2 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -26
- package/dist/FrameConfigUpdater.svelte.d.ts +11 -17
- package/dist/FrameConfigUpdater.svelte.js +109 -109
- package/dist/WorldObject.svelte.js +2 -15
- package/dist/common/v1/common_pb.d.ts +950 -0
- package/dist/common/v1/common_pb.js +1399 -0
- package/dist/components/App.svelte +37 -21
- package/dist/components/App.svelte.d.ts +1 -0
- package/dist/components/BatchedArrows.svelte +102 -0
- package/dist/components/BatchedArrows.svelte.d.ts +3 -0
- package/dist/components/CameraControls.svelte +2 -3
- package/dist/components/Details.svelte +364 -365
- package/dist/components/Entities.svelte +73 -0
- package/dist/components/{WorldObjects.svelte.d.ts → Entities.svelte.d.ts} +3 -3
- package/dist/components/FileDrop.svelte +9 -23
- package/dist/components/Focus.svelte +2 -3
- package/dist/components/Frame.svelte +41 -22
- package/dist/components/Frame.svelte.d.ts +4 -6
- package/dist/components/GLTF.svelte +36 -0
- package/dist/components/GLTF.svelte.d.ts +11 -0
- package/dist/components/Geometry2.svelte +201 -0
- package/dist/components/Geometry2.svelte.d.ts +18 -0
- package/dist/components/KeyboardControls.svelte +3 -3
- package/dist/components/Line.svelte +10 -13
- package/dist/components/Line.svelte.d.ts +2 -2
- package/dist/components/LiveUpdatesBanner.svelte +51 -15
- package/dist/components/MeasureTool.svelte +4 -5
- package/dist/components/Pointcloud.svelte +27 -14
- package/dist/components/Pointcloud.svelte.d.ts +2 -2
- package/dist/components/PointerMissBox.svelte +3 -3
- package/dist/components/Pose.svelte +31 -6
- package/dist/components/Pose.svelte.d.ts +2 -2
- package/dist/components/Scene.svelte +7 -6
- package/dist/components/SceneProviders.svelte +0 -6
- package/dist/components/Selected.svelte +22 -16
- package/dist/components/StaticGeometries.svelte +51 -27
- package/dist/components/Tree/Tree.svelte +28 -22
- package/dist/components/Tree/Tree.svelte.d.ts +2 -3
- package/dist/components/Tree/TreeContainer.svelte +72 -40
- package/dist/components/Tree/Widgets.svelte +2 -5
- package/dist/components/Tree/buildTree.d.ts +3 -6
- package/dist/components/Tree/buildTree.js +19 -39
- package/dist/components/__tests__/__fixtures__/entity.d.ts +2 -0
- package/dist/components/__tests__/__fixtures__/entity.js +20 -0
- package/dist/components/__tests__/__fixtures__/resource.d.ts +17 -0
- package/dist/components/__tests__/__fixtures__/resource.js +13 -0
- package/dist/components/dashboard/Dashboard.svelte +5 -3
- package/dist/components/dashboard/Dashboard.svelte.d.ts +7 -2
- package/dist/components/widgets/ArmPositions.svelte +19 -7
- package/dist/draw/v1/drawing_pb.d.ts +341 -0
- package/dist/draw/v1/drawing_pb.js +417 -0
- package/dist/draw/v1/metadata_pb.d.ts +23 -0
- package/dist/draw/v1/metadata_pb.js +39 -0
- package/dist/draw/v1/scene_pb.d.ts +230 -0
- package/dist/draw/v1/scene_pb.js +298 -0
- package/dist/draw/v1/snapshot_pb.d.ts +42 -0
- package/dist/draw/v1/snapshot_pb.js +61 -0
- package/dist/draw/v1/transforms_pb.d.ts +23 -0
- package/dist/draw/v1/transforms_pb.js +39 -0
- package/dist/ecs/index.d.ts +4 -0
- package/dist/ecs/index.js +4 -0
- package/dist/ecs/traits.d.ts +128 -0
- package/dist/ecs/traits.js +81 -0
- package/dist/ecs/useQuery.svelte.d.ts +4 -0
- package/dist/ecs/useQuery.svelte.js +49 -0
- package/dist/ecs/useTrait.svelte.d.ts +19 -0
- package/dist/ecs/useTrait.svelte.js +40 -0
- package/dist/ecs/useWorld.d.ts +4 -0
- package/dist/ecs/useWorld.js +10 -0
- package/dist/geometry.js +6 -6
- package/dist/hooks/__tests__/fixtures/ResizableTestWrapper.svelte +41 -0
- package/dist/hooks/__tests__/fixtures/ResizableTestWrapper.svelte.d.ts +6 -0
- package/dist/hooks/use3DModels.svelte.js +6 -4
- package/dist/hooks/useDrawAPI.svelte.d.ts +0 -10
- package/dist/hooks/useDrawAPI.svelte.js +143 -267
- package/dist/hooks/useFramelessComponents.svelte.js +1 -1
- package/dist/hooks/useFrames.svelte.d.ts +6 -2
- package/dist/hooks/useFrames.svelte.js +123 -19
- package/dist/hooks/useGeometries.svelte.d.ts +0 -2
- package/dist/hooks/useGeometries.svelte.js +49 -25
- package/dist/hooks/useObjectEvents.svelte.d.ts +3 -2
- package/dist/hooks/useObjectEvents.svelte.js +11 -7
- package/dist/hooks/usePartConfig.svelte.d.ts +1 -1
- package/dist/hooks/usePartConfig.svelte.js +2 -1
- package/dist/hooks/usePointclouds.svelte.d.ts +0 -2
- package/dist/hooks/usePointclouds.svelte.js +52 -21
- package/dist/hooks/usePose.svelte.js +15 -7
- package/dist/hooks/useResizable.svelte.d.ts +12 -0
- package/dist/hooks/useResizable.svelte.js +45 -0
- package/dist/hooks/useResourceByName.svelte.js +8 -5
- package/dist/hooks/useSelection.svelte.d.ts +13 -23
- package/dist/hooks/useSelection.svelte.js +45 -65
- package/dist/hooks/useVisibility.svelte.d.ts +2 -1
- package/dist/hooks/useWeblabs.svelte.d.ts +0 -1
- package/dist/hooks/useWeblabs.svelte.js +0 -1
- package/dist/hooks/useWorldState.svelte.d.ts +9 -0
- package/dist/hooks/useWorldState.svelte.js +158 -107
- package/dist/lib.d.ts +1 -0
- package/dist/lib.js +2 -0
- package/dist/three/BatchedArrow.d.ts +2 -3
- package/dist/three/BatchedArrow.js +3 -11
- package/dist/three/CapsuleGeometry.d.ts +1 -1
- package/dist/three/CapsuleGeometry.js +3 -1
- package/dist/transform.js +0 -15
- package/package.json +12 -7
- package/dist/components/WorldObject.svelte +0 -28
- package/dist/components/WorldObject.svelte.d.ts +0 -11
- package/dist/components/WorldObjects.svelte +0 -159
- package/dist/components/WorldState.svelte +0 -92
- package/dist/components/WorldState.svelte.d.ts +0 -7
- package/dist/components/__tests__/__fixtures__/worldObject.svelte.d.ts +0 -2
- package/dist/components/__tests__/__fixtures__/worldObject.svelte.js +0 -35
- package/dist/components/portal/Portal.svelte +0 -25
- package/dist/components/portal/Portal.svelte.d.ts +0 -8
- package/dist/components/portal/PortalTarget.svelte +0 -18
- package/dist/components/portal/PortalTarget.svelte.d.ts +0 -6
- package/dist/components/portal/index.d.ts +0 -2
- package/dist/components/portal/index.js +0 -2
- package/dist/components/portal/usePortalContext.svelte.d.ts +0 -5
- package/dist/components/portal/usePortalContext.svelte.js +0 -5
- package/dist/hooks/useArrows.svelte.d.ts +0 -3
- package/dist/hooks/useArrows.svelte.js +0 -9
- package/dist/hooks/useDraggable.svelte.d.ts +0 -10
- package/dist/hooks/useDraggable.svelte.js +0 -36
- package/dist/hooks/useObjects.svelte.d.ts +0 -7
- package/dist/hooks/useObjects.svelte.js +0 -35
- package/dist/hooks/usePersistentUUIDs.svelte.d.ts +0 -5
- package/dist/hooks/usePersistentUUIDs.svelte.js +0 -13
- package/dist/hooks/useResourceByName.svelte.d.ts +0 -7
- package/dist/hooks/useStaticGeometries.svelte.d.ts +0 -9
- package/dist/hooks/useStaticGeometries.svelte.js +0 -47
- package/dist/workers/worldStateWorker.d.ts +0 -1
- package/dist/workers/worldStateWorker.js +0 -114
- package/dist/world-state-messages.d.ts +0 -23
- package/dist/world-state-messages.js +0 -1
|
@@ -0,0 +1,1399 @@
|
|
|
1
|
+
// The following is a list of messages that are used across multiple resource subtypes
|
|
2
|
+
import { Message, MethodOptions, proto3, Struct, Timestamp, Value } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from enum viam.common.v1.KinematicsFileFormat
|
|
5
|
+
*/
|
|
6
|
+
export var KinematicsFileFormat;
|
|
7
|
+
(function (KinematicsFileFormat) {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from enum value: KINEMATICS_FILE_FORMAT_UNSPECIFIED = 0;
|
|
10
|
+
*/
|
|
11
|
+
KinematicsFileFormat[KinematicsFileFormat["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: KINEMATICS_FILE_FORMAT_SVA = 1;
|
|
14
|
+
*/
|
|
15
|
+
KinematicsFileFormat[KinematicsFileFormat["SVA"] = 1] = "SVA";
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: KINEMATICS_FILE_FORMAT_URDF = 2;
|
|
18
|
+
*/
|
|
19
|
+
KinematicsFileFormat[KinematicsFileFormat["URDF"] = 2] = "URDF";
|
|
20
|
+
})(KinematicsFileFormat || (KinematicsFileFormat = {}));
|
|
21
|
+
// Retrieve enum metadata with: proto3.getEnumType(KinematicsFileFormat)
|
|
22
|
+
proto3.util.setEnumType(KinematicsFileFormat, "viam.common.v1.KinematicsFileFormat", [
|
|
23
|
+
{ no: 0, name: "KINEMATICS_FILE_FORMAT_UNSPECIFIED" },
|
|
24
|
+
{ no: 1, name: "KINEMATICS_FILE_FORMAT_SVA" },
|
|
25
|
+
{ no: 2, name: "KINEMATICS_FILE_FORMAT_URDF" },
|
|
26
|
+
]);
|
|
27
|
+
/**
|
|
28
|
+
* @generated from message viam.common.v1.ResourceName
|
|
29
|
+
*/
|
|
30
|
+
export class ResourceName extends Message {
|
|
31
|
+
/**
|
|
32
|
+
* @generated from field: string namespace = 1;
|
|
33
|
+
*/
|
|
34
|
+
namespace = "";
|
|
35
|
+
/**
|
|
36
|
+
* @generated from field: string type = 2;
|
|
37
|
+
*/
|
|
38
|
+
type = "";
|
|
39
|
+
/**
|
|
40
|
+
* @generated from field: string subtype = 3;
|
|
41
|
+
*/
|
|
42
|
+
subtype = "";
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: string name = 4;
|
|
45
|
+
*/
|
|
46
|
+
name = "";
|
|
47
|
+
constructor(data) {
|
|
48
|
+
super();
|
|
49
|
+
proto3.util.initPartial(data, this);
|
|
50
|
+
}
|
|
51
|
+
static runtime = proto3;
|
|
52
|
+
static typeName = "viam.common.v1.ResourceName";
|
|
53
|
+
static fields = proto3.util.newFieldList(() => [
|
|
54
|
+
{ no: 1, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
55
|
+
{ no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
56
|
+
{ no: 3, name: "subtype", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
57
|
+
{ no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
58
|
+
]);
|
|
59
|
+
static fromBinary(bytes, options) {
|
|
60
|
+
return new ResourceName().fromBinary(bytes, options);
|
|
61
|
+
}
|
|
62
|
+
static fromJson(jsonValue, options) {
|
|
63
|
+
return new ResourceName().fromJson(jsonValue, options);
|
|
64
|
+
}
|
|
65
|
+
static fromJsonString(jsonString, options) {
|
|
66
|
+
return new ResourceName().fromJsonString(jsonString, options);
|
|
67
|
+
}
|
|
68
|
+
static equals(a, b) {
|
|
69
|
+
return proto3.util.equals(ResourceName, a, b);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Pose is a combination of location and orientation.
|
|
74
|
+
* Location is expressed as distance which is represented by x , y, z coordinates. Orientation is expressed as an orientation vector which
|
|
75
|
+
* is represented by o_x, o_y, o_z and theta. The o_x, o_y, o_z coordinates represent the point on the cartesian unit sphere that the end of
|
|
76
|
+
* the arm is pointing to (with the origin as reference). That unit vector forms an axis around which theta rotates. This means that
|
|
77
|
+
* incrementing / decrementing theta will perform an inline rotation of the end effector.
|
|
78
|
+
* Theta is defined as rotation between two planes: the first being defined by the origin, the point (0,0,1), and the rx, ry, rz point, and the
|
|
79
|
+
* second being defined by the origin, the rx, ry, rz point and the local Z axis. Therefore, if theta is kept at zero as the north/south pole
|
|
80
|
+
* is circled, the Roll will correct itself to remain in-line.
|
|
81
|
+
*
|
|
82
|
+
* @generated from message viam.common.v1.Pose
|
|
83
|
+
*/
|
|
84
|
+
export class Pose extends Message {
|
|
85
|
+
/**
|
|
86
|
+
* millimeters from the origin
|
|
87
|
+
*
|
|
88
|
+
* @generated from field: double x = 1;
|
|
89
|
+
*/
|
|
90
|
+
x = 0;
|
|
91
|
+
/**
|
|
92
|
+
* millimeters from the origin
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: double y = 2;
|
|
95
|
+
*/
|
|
96
|
+
y = 0;
|
|
97
|
+
/**
|
|
98
|
+
* millimeters from the origin
|
|
99
|
+
*
|
|
100
|
+
* @generated from field: double z = 3;
|
|
101
|
+
*/
|
|
102
|
+
z = 0;
|
|
103
|
+
/**
|
|
104
|
+
* z component of a vector defining axis of rotation
|
|
105
|
+
*
|
|
106
|
+
* @generated from field: double o_x = 4;
|
|
107
|
+
*/
|
|
108
|
+
oX = 0;
|
|
109
|
+
/**
|
|
110
|
+
* x component of a vector defining axis of rotation
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: double o_y = 5;
|
|
113
|
+
*/
|
|
114
|
+
oY = 0;
|
|
115
|
+
/**
|
|
116
|
+
* y component of a vector defining axis of rotation
|
|
117
|
+
*
|
|
118
|
+
* @generated from field: double o_z = 6;
|
|
119
|
+
*/
|
|
120
|
+
oZ = 0;
|
|
121
|
+
/**
|
|
122
|
+
* degrees
|
|
123
|
+
*
|
|
124
|
+
* @generated from field: double theta = 7;
|
|
125
|
+
*/
|
|
126
|
+
theta = 0;
|
|
127
|
+
constructor(data) {
|
|
128
|
+
super();
|
|
129
|
+
proto3.util.initPartial(data, this);
|
|
130
|
+
}
|
|
131
|
+
static runtime = proto3;
|
|
132
|
+
static typeName = "viam.common.v1.Pose";
|
|
133
|
+
static fields = proto3.util.newFieldList(() => [
|
|
134
|
+
{ no: 1, name: "x", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
135
|
+
{ no: 2, name: "y", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
136
|
+
{ no: 3, name: "z", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
137
|
+
{ no: 4, name: "o_x", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
138
|
+
{ no: 5, name: "o_y", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
139
|
+
{ no: 6, name: "o_z", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
140
|
+
{ no: 7, name: "theta", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
141
|
+
]);
|
|
142
|
+
static fromBinary(bytes, options) {
|
|
143
|
+
return new Pose().fromBinary(bytes, options);
|
|
144
|
+
}
|
|
145
|
+
static fromJson(jsonValue, options) {
|
|
146
|
+
return new Pose().fromJson(jsonValue, options);
|
|
147
|
+
}
|
|
148
|
+
static fromJsonString(jsonString, options) {
|
|
149
|
+
return new Pose().fromJsonString(jsonString, options);
|
|
150
|
+
}
|
|
151
|
+
static equals(a, b) {
|
|
152
|
+
return proto3.util.equals(Pose, a, b);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* @generated from message viam.common.v1.Orientation
|
|
157
|
+
*/
|
|
158
|
+
export class Orientation extends Message {
|
|
159
|
+
/**
|
|
160
|
+
* x component of a vector defining axis of rotation
|
|
161
|
+
*
|
|
162
|
+
* @generated from field: double o_x = 1;
|
|
163
|
+
*/
|
|
164
|
+
oX = 0;
|
|
165
|
+
/**
|
|
166
|
+
* y component of a vector defining axis of rotation
|
|
167
|
+
*
|
|
168
|
+
* @generated from field: double o_y = 2;
|
|
169
|
+
*/
|
|
170
|
+
oY = 0;
|
|
171
|
+
/**
|
|
172
|
+
* z component of a vector defining axis of rotation
|
|
173
|
+
*
|
|
174
|
+
* @generated from field: double o_z = 3;
|
|
175
|
+
*/
|
|
176
|
+
oZ = 0;
|
|
177
|
+
/**
|
|
178
|
+
* degrees
|
|
179
|
+
*
|
|
180
|
+
* @generated from field: double theta = 4;
|
|
181
|
+
*/
|
|
182
|
+
theta = 0;
|
|
183
|
+
constructor(data) {
|
|
184
|
+
super();
|
|
185
|
+
proto3.util.initPartial(data, this);
|
|
186
|
+
}
|
|
187
|
+
static runtime = proto3;
|
|
188
|
+
static typeName = "viam.common.v1.Orientation";
|
|
189
|
+
static fields = proto3.util.newFieldList(() => [
|
|
190
|
+
{ no: 1, name: "o_x", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
191
|
+
{ no: 2, name: "o_y", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
192
|
+
{ no: 3, name: "o_z", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
193
|
+
{ no: 4, name: "theta", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
194
|
+
]);
|
|
195
|
+
static fromBinary(bytes, options) {
|
|
196
|
+
return new Orientation().fromBinary(bytes, options);
|
|
197
|
+
}
|
|
198
|
+
static fromJson(jsonValue, options) {
|
|
199
|
+
return new Orientation().fromJson(jsonValue, options);
|
|
200
|
+
}
|
|
201
|
+
static fromJsonString(jsonString, options) {
|
|
202
|
+
return new Orientation().fromJsonString(jsonString, options);
|
|
203
|
+
}
|
|
204
|
+
static equals(a, b) {
|
|
205
|
+
return proto3.util.equals(Orientation, a, b);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* PoseInFrame contains a pose and the reference frame in which it was observed
|
|
210
|
+
*
|
|
211
|
+
* @generated from message viam.common.v1.PoseInFrame
|
|
212
|
+
*/
|
|
213
|
+
export class PoseInFrame extends Message {
|
|
214
|
+
/**
|
|
215
|
+
* @generated from field: string reference_frame = 1;
|
|
216
|
+
*/
|
|
217
|
+
referenceFrame = "";
|
|
218
|
+
/**
|
|
219
|
+
* @generated from field: viam.common.v1.Pose pose = 2;
|
|
220
|
+
*/
|
|
221
|
+
pose;
|
|
222
|
+
constructor(data) {
|
|
223
|
+
super();
|
|
224
|
+
proto3.util.initPartial(data, this);
|
|
225
|
+
}
|
|
226
|
+
static runtime = proto3;
|
|
227
|
+
static typeName = "viam.common.v1.PoseInFrame";
|
|
228
|
+
static fields = proto3.util.newFieldList(() => [
|
|
229
|
+
{ no: 1, name: "reference_frame", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
230
|
+
{ no: 2, name: "pose", kind: "message", T: Pose },
|
|
231
|
+
]);
|
|
232
|
+
static fromBinary(bytes, options) {
|
|
233
|
+
return new PoseInFrame().fromBinary(bytes, options);
|
|
234
|
+
}
|
|
235
|
+
static fromJson(jsonValue, options) {
|
|
236
|
+
return new PoseInFrame().fromJson(jsonValue, options);
|
|
237
|
+
}
|
|
238
|
+
static fromJsonString(jsonString, options) {
|
|
239
|
+
return new PoseInFrame().fromJsonString(jsonString, options);
|
|
240
|
+
}
|
|
241
|
+
static equals(a, b) {
|
|
242
|
+
return proto3.util.equals(PoseInFrame, a, b);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* @generated from message viam.common.v1.Vector3
|
|
247
|
+
*/
|
|
248
|
+
export class Vector3 extends Message {
|
|
249
|
+
/**
|
|
250
|
+
* @generated from field: double x = 1;
|
|
251
|
+
*/
|
|
252
|
+
x = 0;
|
|
253
|
+
/**
|
|
254
|
+
* @generated from field: double y = 2;
|
|
255
|
+
*/
|
|
256
|
+
y = 0;
|
|
257
|
+
/**
|
|
258
|
+
* @generated from field: double z = 3;
|
|
259
|
+
*/
|
|
260
|
+
z = 0;
|
|
261
|
+
constructor(data) {
|
|
262
|
+
super();
|
|
263
|
+
proto3.util.initPartial(data, this);
|
|
264
|
+
}
|
|
265
|
+
static runtime = proto3;
|
|
266
|
+
static typeName = "viam.common.v1.Vector3";
|
|
267
|
+
static fields = proto3.util.newFieldList(() => [
|
|
268
|
+
{ no: 1, name: "x", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
269
|
+
{ no: 2, name: "y", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
270
|
+
{ no: 3, name: "z", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
271
|
+
]);
|
|
272
|
+
static fromBinary(bytes, options) {
|
|
273
|
+
return new Vector3().fromBinary(bytes, options);
|
|
274
|
+
}
|
|
275
|
+
static fromJson(jsonValue, options) {
|
|
276
|
+
return new Vector3().fromJson(jsonValue, options);
|
|
277
|
+
}
|
|
278
|
+
static fromJsonString(jsonString, options) {
|
|
279
|
+
return new Vector3().fromJsonString(jsonString, options);
|
|
280
|
+
}
|
|
281
|
+
static equals(a, b) {
|
|
282
|
+
return proto3.util.equals(Vector3, a, b);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* @generated from message viam.common.v1.Sphere
|
|
287
|
+
*/
|
|
288
|
+
export class Sphere extends Message {
|
|
289
|
+
/**
|
|
290
|
+
* @generated from field: double radius_mm = 1;
|
|
291
|
+
*/
|
|
292
|
+
radiusMm = 0;
|
|
293
|
+
constructor(data) {
|
|
294
|
+
super();
|
|
295
|
+
proto3.util.initPartial(data, this);
|
|
296
|
+
}
|
|
297
|
+
static runtime = proto3;
|
|
298
|
+
static typeName = "viam.common.v1.Sphere";
|
|
299
|
+
static fields = proto3.util.newFieldList(() => [
|
|
300
|
+
{ no: 1, name: "radius_mm", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
301
|
+
]);
|
|
302
|
+
static fromBinary(bytes, options) {
|
|
303
|
+
return new Sphere().fromBinary(bytes, options);
|
|
304
|
+
}
|
|
305
|
+
static fromJson(jsonValue, options) {
|
|
306
|
+
return new Sphere().fromJson(jsonValue, options);
|
|
307
|
+
}
|
|
308
|
+
static fromJsonString(jsonString, options) {
|
|
309
|
+
return new Sphere().fromJsonString(jsonString, options);
|
|
310
|
+
}
|
|
311
|
+
static equals(a, b) {
|
|
312
|
+
return proto3.util.equals(Sphere, a, b);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* @generated from message viam.common.v1.Capsule
|
|
317
|
+
*/
|
|
318
|
+
export class Capsule extends Message {
|
|
319
|
+
/**
|
|
320
|
+
* @generated from field: double radius_mm = 1;
|
|
321
|
+
*/
|
|
322
|
+
radiusMm = 0;
|
|
323
|
+
/**
|
|
324
|
+
* @generated from field: double length_mm = 2;
|
|
325
|
+
*/
|
|
326
|
+
lengthMm = 0;
|
|
327
|
+
constructor(data) {
|
|
328
|
+
super();
|
|
329
|
+
proto3.util.initPartial(data, this);
|
|
330
|
+
}
|
|
331
|
+
static runtime = proto3;
|
|
332
|
+
static typeName = "viam.common.v1.Capsule";
|
|
333
|
+
static fields = proto3.util.newFieldList(() => [
|
|
334
|
+
{ no: 1, name: "radius_mm", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
335
|
+
{ no: 2, name: "length_mm", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
336
|
+
]);
|
|
337
|
+
static fromBinary(bytes, options) {
|
|
338
|
+
return new Capsule().fromBinary(bytes, options);
|
|
339
|
+
}
|
|
340
|
+
static fromJson(jsonValue, options) {
|
|
341
|
+
return new Capsule().fromJson(jsonValue, options);
|
|
342
|
+
}
|
|
343
|
+
static fromJsonString(jsonString, options) {
|
|
344
|
+
return new Capsule().fromJsonString(jsonString, options);
|
|
345
|
+
}
|
|
346
|
+
static equals(a, b) {
|
|
347
|
+
return proto3.util.equals(Capsule, a, b);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* RectangularPrism contains a Vector3 field corresponding to the X, Y, Z dimensions of the prism in mms
|
|
352
|
+
* These dimensions are with respect to the referenceframe in which the RectangularPrism is defined
|
|
353
|
+
*
|
|
354
|
+
* @generated from message viam.common.v1.RectangularPrism
|
|
355
|
+
*/
|
|
356
|
+
export class RectangularPrism extends Message {
|
|
357
|
+
/**
|
|
358
|
+
* @generated from field: viam.common.v1.Vector3 dims_mm = 1;
|
|
359
|
+
*/
|
|
360
|
+
dimsMm;
|
|
361
|
+
constructor(data) {
|
|
362
|
+
super();
|
|
363
|
+
proto3.util.initPartial(data, this);
|
|
364
|
+
}
|
|
365
|
+
static runtime = proto3;
|
|
366
|
+
static typeName = "viam.common.v1.RectangularPrism";
|
|
367
|
+
static fields = proto3.util.newFieldList(() => [
|
|
368
|
+
{ no: 1, name: "dims_mm", kind: "message", T: Vector3 },
|
|
369
|
+
]);
|
|
370
|
+
static fromBinary(bytes, options) {
|
|
371
|
+
return new RectangularPrism().fromBinary(bytes, options);
|
|
372
|
+
}
|
|
373
|
+
static fromJson(jsonValue, options) {
|
|
374
|
+
return new RectangularPrism().fromJson(jsonValue, options);
|
|
375
|
+
}
|
|
376
|
+
static fromJsonString(jsonString, options) {
|
|
377
|
+
return new RectangularPrism().fromJsonString(jsonString, options);
|
|
378
|
+
}
|
|
379
|
+
static equals(a, b) {
|
|
380
|
+
return proto3.util.equals(RectangularPrism, a, b);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* @generated from message viam.common.v1.Mesh
|
|
385
|
+
*/
|
|
386
|
+
export class Mesh extends Message {
|
|
387
|
+
/**
|
|
388
|
+
* Content type of mesh (e.g. ply)
|
|
389
|
+
*
|
|
390
|
+
* @generated from field: string content_type = 1;
|
|
391
|
+
*/
|
|
392
|
+
contentType = "";
|
|
393
|
+
/**
|
|
394
|
+
* Contents of mesh data in binary form defined by content_type
|
|
395
|
+
*
|
|
396
|
+
* @generated from field: bytes mesh = 2;
|
|
397
|
+
*/
|
|
398
|
+
mesh = new Uint8Array(0);
|
|
399
|
+
constructor(data) {
|
|
400
|
+
super();
|
|
401
|
+
proto3.util.initPartial(data, this);
|
|
402
|
+
}
|
|
403
|
+
static runtime = proto3;
|
|
404
|
+
static typeName = "viam.common.v1.Mesh";
|
|
405
|
+
static fields = proto3.util.newFieldList(() => [
|
|
406
|
+
{ no: 1, name: "content_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
407
|
+
{ no: 2, name: "mesh", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
408
|
+
]);
|
|
409
|
+
static fromBinary(bytes, options) {
|
|
410
|
+
return new Mesh().fromBinary(bytes, options);
|
|
411
|
+
}
|
|
412
|
+
static fromJson(jsonValue, options) {
|
|
413
|
+
return new Mesh().fromJson(jsonValue, options);
|
|
414
|
+
}
|
|
415
|
+
static fromJsonString(jsonString, options) {
|
|
416
|
+
return new Mesh().fromJsonString(jsonString, options);
|
|
417
|
+
}
|
|
418
|
+
static equals(a, b) {
|
|
419
|
+
return proto3.util.equals(Mesh, a, b);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* @generated from message viam.common.v1.PointCloud
|
|
424
|
+
*/
|
|
425
|
+
export class PointCloud extends Message {
|
|
426
|
+
/**
|
|
427
|
+
* @generated from field: bytes point_cloud = 1;
|
|
428
|
+
*/
|
|
429
|
+
pointCloud = new Uint8Array(0);
|
|
430
|
+
constructor(data) {
|
|
431
|
+
super();
|
|
432
|
+
proto3.util.initPartial(data, this);
|
|
433
|
+
}
|
|
434
|
+
static runtime = proto3;
|
|
435
|
+
static typeName = "viam.common.v1.PointCloud";
|
|
436
|
+
static fields = proto3.util.newFieldList(() => [
|
|
437
|
+
{ no: 1, name: "point_cloud", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
438
|
+
]);
|
|
439
|
+
static fromBinary(bytes, options) {
|
|
440
|
+
return new PointCloud().fromBinary(bytes, options);
|
|
441
|
+
}
|
|
442
|
+
static fromJson(jsonValue, options) {
|
|
443
|
+
return new PointCloud().fromJson(jsonValue, options);
|
|
444
|
+
}
|
|
445
|
+
static fromJsonString(jsonString, options) {
|
|
446
|
+
return new PointCloud().fromJsonString(jsonString, options);
|
|
447
|
+
}
|
|
448
|
+
static equals(a, b) {
|
|
449
|
+
return proto3.util.equals(PointCloud, a, b);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Geometry contains the dimensions of a given geometry and the pose of its center. The geometry is one of either a sphere or a box.
|
|
454
|
+
*
|
|
455
|
+
* @generated from message viam.common.v1.Geometry
|
|
456
|
+
*/
|
|
457
|
+
export class Geometry extends Message {
|
|
458
|
+
/**
|
|
459
|
+
* Pose of a geometries center point
|
|
460
|
+
*
|
|
461
|
+
* @generated from field: viam.common.v1.Pose center = 1;
|
|
462
|
+
*/
|
|
463
|
+
center;
|
|
464
|
+
/**
|
|
465
|
+
* Dimensions of a given geometry. This can be one of several types
|
|
466
|
+
*
|
|
467
|
+
* @generated from oneof viam.common.v1.Geometry.geometry_type
|
|
468
|
+
*/
|
|
469
|
+
geometryType = { case: undefined };
|
|
470
|
+
/**
|
|
471
|
+
* Label of the geometry. If none supplied, will be an empty string.
|
|
472
|
+
*
|
|
473
|
+
* @generated from field: string label = 4;
|
|
474
|
+
*/
|
|
475
|
+
label = "";
|
|
476
|
+
constructor(data) {
|
|
477
|
+
super();
|
|
478
|
+
proto3.util.initPartial(data, this);
|
|
479
|
+
}
|
|
480
|
+
static runtime = proto3;
|
|
481
|
+
static typeName = "viam.common.v1.Geometry";
|
|
482
|
+
static fields = proto3.util.newFieldList(() => [
|
|
483
|
+
{ no: 1, name: "center", kind: "message", T: Pose },
|
|
484
|
+
{ no: 2, name: "sphere", kind: "message", T: Sphere, oneof: "geometry_type" },
|
|
485
|
+
{ no: 3, name: "box", kind: "message", T: RectangularPrism, oneof: "geometry_type" },
|
|
486
|
+
{ no: 5, name: "capsule", kind: "message", T: Capsule, oneof: "geometry_type" },
|
|
487
|
+
{ no: 6, name: "mesh", kind: "message", T: Mesh, oneof: "geometry_type" },
|
|
488
|
+
{ no: 7, name: "pointcloud", kind: "message", T: PointCloud, oneof: "geometry_type" },
|
|
489
|
+
{ no: 4, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
490
|
+
]);
|
|
491
|
+
static fromBinary(bytes, options) {
|
|
492
|
+
return new Geometry().fromBinary(bytes, options);
|
|
493
|
+
}
|
|
494
|
+
static fromJson(jsonValue, options) {
|
|
495
|
+
return new Geometry().fromJson(jsonValue, options);
|
|
496
|
+
}
|
|
497
|
+
static fromJsonString(jsonString, options) {
|
|
498
|
+
return new Geometry().fromJsonString(jsonString, options);
|
|
499
|
+
}
|
|
500
|
+
static equals(a, b) {
|
|
501
|
+
return proto3.util.equals(Geometry, a, b);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* GeometriesinFrame contains the dimensions of a given geometry, pose of its center point, and the reference frame by which it was
|
|
506
|
+
* observed.
|
|
507
|
+
*
|
|
508
|
+
* @generated from message viam.common.v1.GeometriesInFrame
|
|
509
|
+
*/
|
|
510
|
+
export class GeometriesInFrame extends Message {
|
|
511
|
+
/**
|
|
512
|
+
* Reference frame of the observer of the geometry
|
|
513
|
+
*
|
|
514
|
+
* @generated from field: string reference_frame = 1;
|
|
515
|
+
*/
|
|
516
|
+
referenceFrame = "";
|
|
517
|
+
/**
|
|
518
|
+
* Dimensional type
|
|
519
|
+
*
|
|
520
|
+
* @generated from field: repeated viam.common.v1.Geometry geometries = 2;
|
|
521
|
+
*/
|
|
522
|
+
geometries = [];
|
|
523
|
+
constructor(data) {
|
|
524
|
+
super();
|
|
525
|
+
proto3.util.initPartial(data, this);
|
|
526
|
+
}
|
|
527
|
+
static runtime = proto3;
|
|
528
|
+
static typeName = "viam.common.v1.GeometriesInFrame";
|
|
529
|
+
static fields = proto3.util.newFieldList(() => [
|
|
530
|
+
{ no: 1, name: "reference_frame", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
531
|
+
{ no: 2, name: "geometries", kind: "message", T: Geometry, repeated: true },
|
|
532
|
+
]);
|
|
533
|
+
static fromBinary(bytes, options) {
|
|
534
|
+
return new GeometriesInFrame().fromBinary(bytes, options);
|
|
535
|
+
}
|
|
536
|
+
static fromJson(jsonValue, options) {
|
|
537
|
+
return new GeometriesInFrame().fromJson(jsonValue, options);
|
|
538
|
+
}
|
|
539
|
+
static fromJsonString(jsonString, options) {
|
|
540
|
+
return new GeometriesInFrame().fromJsonString(jsonString, options);
|
|
541
|
+
}
|
|
542
|
+
static equals(a, b) {
|
|
543
|
+
return proto3.util.equals(GeometriesInFrame, a, b);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* PointCloudObject contains an image in bytes with point cloud data of all of the objects captured by a given observer as well as a
|
|
548
|
+
* repeated list of geometries which respresents the center point and geometry of each of the objects within the point cloud
|
|
549
|
+
*
|
|
550
|
+
* @generated from message viam.common.v1.PointCloudObject
|
|
551
|
+
*/
|
|
552
|
+
export class PointCloudObject extends Message {
|
|
553
|
+
/**
|
|
554
|
+
* image frame expressed in bytes
|
|
555
|
+
*
|
|
556
|
+
* @generated from field: bytes point_cloud = 1;
|
|
557
|
+
*/
|
|
558
|
+
pointCloud = new Uint8Array(0);
|
|
559
|
+
/**
|
|
560
|
+
* volume of a given geometry
|
|
561
|
+
*
|
|
562
|
+
* @generated from field: viam.common.v1.GeometriesInFrame geometries = 2;
|
|
563
|
+
*/
|
|
564
|
+
geometries;
|
|
565
|
+
constructor(data) {
|
|
566
|
+
super();
|
|
567
|
+
proto3.util.initPartial(data, this);
|
|
568
|
+
}
|
|
569
|
+
static runtime = proto3;
|
|
570
|
+
static typeName = "viam.common.v1.PointCloudObject";
|
|
571
|
+
static fields = proto3.util.newFieldList(() => [
|
|
572
|
+
{ no: 1, name: "point_cloud", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
573
|
+
{ no: 2, name: "geometries", kind: "message", T: GeometriesInFrame },
|
|
574
|
+
]);
|
|
575
|
+
static fromBinary(bytes, options) {
|
|
576
|
+
return new PointCloudObject().fromBinary(bytes, options);
|
|
577
|
+
}
|
|
578
|
+
static fromJson(jsonValue, options) {
|
|
579
|
+
return new PointCloudObject().fromJson(jsonValue, options);
|
|
580
|
+
}
|
|
581
|
+
static fromJsonString(jsonString, options) {
|
|
582
|
+
return new PointCloudObject().fromJsonString(jsonString, options);
|
|
583
|
+
}
|
|
584
|
+
static equals(a, b) {
|
|
585
|
+
return proto3.util.equals(PointCloudObject, a, b);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* @generated from message viam.common.v1.GeoPoint
|
|
590
|
+
*/
|
|
591
|
+
export class GeoPoint extends Message {
|
|
592
|
+
/**
|
|
593
|
+
* @generated from field: double latitude = 1;
|
|
594
|
+
*/
|
|
595
|
+
latitude = 0;
|
|
596
|
+
/**
|
|
597
|
+
* @generated from field: double longitude = 2;
|
|
598
|
+
*/
|
|
599
|
+
longitude = 0;
|
|
600
|
+
constructor(data) {
|
|
601
|
+
super();
|
|
602
|
+
proto3.util.initPartial(data, this);
|
|
603
|
+
}
|
|
604
|
+
static runtime = proto3;
|
|
605
|
+
static typeName = "viam.common.v1.GeoPoint";
|
|
606
|
+
static fields = proto3.util.newFieldList(() => [
|
|
607
|
+
{ no: 1, name: "latitude", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
608
|
+
{ no: 2, name: "longitude", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
609
|
+
]);
|
|
610
|
+
static fromBinary(bytes, options) {
|
|
611
|
+
return new GeoPoint().fromBinary(bytes, options);
|
|
612
|
+
}
|
|
613
|
+
static fromJson(jsonValue, options) {
|
|
614
|
+
return new GeoPoint().fromJson(jsonValue, options);
|
|
615
|
+
}
|
|
616
|
+
static fromJsonString(jsonString, options) {
|
|
617
|
+
return new GeoPoint().fromJsonString(jsonString, options);
|
|
618
|
+
}
|
|
619
|
+
static equals(a, b) {
|
|
620
|
+
return proto3.util.equals(GeoPoint, a, b);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* GeoGeometry contains information describing Geometry(s) that is located at a GeoPoint
|
|
625
|
+
*
|
|
626
|
+
* @generated from message viam.common.v1.GeoGeometry
|
|
627
|
+
*/
|
|
628
|
+
export class GeoGeometry extends Message {
|
|
629
|
+
/**
|
|
630
|
+
* Location of the geometry
|
|
631
|
+
*
|
|
632
|
+
* @generated from field: viam.common.v1.GeoPoint location = 1;
|
|
633
|
+
*/
|
|
634
|
+
location;
|
|
635
|
+
/**
|
|
636
|
+
* Geometries associated with the location, where embedded Pose data is with respect to the specified location
|
|
637
|
+
*
|
|
638
|
+
* @generated from field: repeated viam.common.v1.Geometry geometries = 2;
|
|
639
|
+
*/
|
|
640
|
+
geometries = [];
|
|
641
|
+
constructor(data) {
|
|
642
|
+
super();
|
|
643
|
+
proto3.util.initPartial(data, this);
|
|
644
|
+
}
|
|
645
|
+
static runtime = proto3;
|
|
646
|
+
static typeName = "viam.common.v1.GeoGeometry";
|
|
647
|
+
static fields = proto3.util.newFieldList(() => [
|
|
648
|
+
{ no: 1, name: "location", kind: "message", T: GeoPoint },
|
|
649
|
+
{ no: 2, name: "geometries", kind: "message", T: Geometry, repeated: true },
|
|
650
|
+
]);
|
|
651
|
+
static fromBinary(bytes, options) {
|
|
652
|
+
return new GeoGeometry().fromBinary(bytes, options);
|
|
653
|
+
}
|
|
654
|
+
static fromJson(jsonValue, options) {
|
|
655
|
+
return new GeoGeometry().fromJson(jsonValue, options);
|
|
656
|
+
}
|
|
657
|
+
static fromJsonString(jsonString, options) {
|
|
658
|
+
return new GeoGeometry().fromJsonString(jsonString, options);
|
|
659
|
+
}
|
|
660
|
+
static equals(a, b) {
|
|
661
|
+
return proto3.util.equals(GeoGeometry, a, b);
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* Transform contains a pose and two reference frames. The first reference frame is the starting reference frame, and the second reference
|
|
666
|
+
* frame is the observer reference frame. The second reference frame has a pose which represents the pose of an object in the first
|
|
667
|
+
* reference frame as observed within the second reference frame.
|
|
668
|
+
*
|
|
669
|
+
* @generated from message viam.common.v1.Transform
|
|
670
|
+
*/
|
|
671
|
+
export class Transform extends Message {
|
|
672
|
+
/**
|
|
673
|
+
* the name of a given reference frame
|
|
674
|
+
*
|
|
675
|
+
* @generated from field: string reference_frame = 1;
|
|
676
|
+
*/
|
|
677
|
+
referenceFrame = "";
|
|
678
|
+
/**
|
|
679
|
+
* the pose of the above reference frame with respect to a different observer reference frame
|
|
680
|
+
*
|
|
681
|
+
* @generated from field: viam.common.v1.PoseInFrame pose_in_observer_frame = 2;
|
|
682
|
+
*/
|
|
683
|
+
poseInObserverFrame;
|
|
684
|
+
/**
|
|
685
|
+
* @generated from field: optional viam.common.v1.Geometry physical_object = 3;
|
|
686
|
+
*/
|
|
687
|
+
physicalObject;
|
|
688
|
+
/**
|
|
689
|
+
* The UUID of the transform
|
|
690
|
+
*
|
|
691
|
+
* @generated from field: bytes uuid = 4;
|
|
692
|
+
*/
|
|
693
|
+
uuid = new Uint8Array(0);
|
|
694
|
+
/**
|
|
695
|
+
* Can hold information like color, opacity, points colors, collision_allowed, etc...
|
|
696
|
+
*
|
|
697
|
+
* @generated from field: optional google.protobuf.Struct metadata = 5;
|
|
698
|
+
*/
|
|
699
|
+
metadata;
|
|
700
|
+
constructor(data) {
|
|
701
|
+
super();
|
|
702
|
+
proto3.util.initPartial(data, this);
|
|
703
|
+
}
|
|
704
|
+
static runtime = proto3;
|
|
705
|
+
static typeName = "viam.common.v1.Transform";
|
|
706
|
+
static fields = proto3.util.newFieldList(() => [
|
|
707
|
+
{ no: 1, name: "reference_frame", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
708
|
+
{ no: 2, name: "pose_in_observer_frame", kind: "message", T: PoseInFrame },
|
|
709
|
+
{ no: 3, name: "physical_object", kind: "message", T: Geometry, opt: true },
|
|
710
|
+
{ no: 4, name: "uuid", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
711
|
+
{ no: 5, name: "metadata", kind: "message", T: Struct, opt: true },
|
|
712
|
+
]);
|
|
713
|
+
static fromBinary(bytes, options) {
|
|
714
|
+
return new Transform().fromBinary(bytes, options);
|
|
715
|
+
}
|
|
716
|
+
static fromJson(jsonValue, options) {
|
|
717
|
+
return new Transform().fromJson(jsonValue, options);
|
|
718
|
+
}
|
|
719
|
+
static fromJsonString(jsonString, options) {
|
|
720
|
+
return new Transform().fromJsonString(jsonString, options);
|
|
721
|
+
}
|
|
722
|
+
static equals(a, b) {
|
|
723
|
+
return proto3.util.equals(Transform, a, b);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* WorldState contains information about the physical environment around a given robot. All of the fields within this message are optional,
|
|
728
|
+
* they can include information about the physical dimensions of an obstacle, the freespace of a robot, and any desired transforms between a
|
|
729
|
+
* given reference frame and a new target reference frame.
|
|
730
|
+
*
|
|
731
|
+
* @generated from message viam.common.v1.WorldState
|
|
732
|
+
*/
|
|
733
|
+
export class WorldState extends Message {
|
|
734
|
+
/**
|
|
735
|
+
* a list of obstacles expressed as a geometry and the reference frame in which it was observed; this field is optional
|
|
736
|
+
*
|
|
737
|
+
* @generated from field: repeated viam.common.v1.GeometriesInFrame obstacles = 1;
|
|
738
|
+
*/
|
|
739
|
+
obstacles = [];
|
|
740
|
+
/**
|
|
741
|
+
* a list of Transforms, optionally with geometries. Used as supplemental transforms to transform a pose from one reference frame to
|
|
742
|
+
* another, or to attach moving geometries to the frame system. This field is optional
|
|
743
|
+
*
|
|
744
|
+
* @generated from field: repeated viam.common.v1.Transform transforms = 3;
|
|
745
|
+
*/
|
|
746
|
+
transforms = [];
|
|
747
|
+
constructor(data) {
|
|
748
|
+
super();
|
|
749
|
+
proto3.util.initPartial(data, this);
|
|
750
|
+
}
|
|
751
|
+
static runtime = proto3;
|
|
752
|
+
static typeName = "viam.common.v1.WorldState";
|
|
753
|
+
static fields = proto3.util.newFieldList(() => [
|
|
754
|
+
{ no: 1, name: "obstacles", kind: "message", T: GeometriesInFrame, repeated: true },
|
|
755
|
+
{ no: 3, name: "transforms", kind: "message", T: Transform, repeated: true },
|
|
756
|
+
]);
|
|
757
|
+
static fromBinary(bytes, options) {
|
|
758
|
+
return new WorldState().fromBinary(bytes, options);
|
|
759
|
+
}
|
|
760
|
+
static fromJson(jsonValue, options) {
|
|
761
|
+
return new WorldState().fromJson(jsonValue, options);
|
|
762
|
+
}
|
|
763
|
+
static fromJsonString(jsonString, options) {
|
|
764
|
+
return new WorldState().fromJsonString(jsonString, options);
|
|
765
|
+
}
|
|
766
|
+
static equals(a, b) {
|
|
767
|
+
return proto3.util.equals(WorldState, a, b);
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* ActuatorStatus is a generic status for resources that only need to return actuator status.
|
|
772
|
+
*
|
|
773
|
+
* @generated from message viam.common.v1.ActuatorStatus
|
|
774
|
+
*/
|
|
775
|
+
export class ActuatorStatus extends Message {
|
|
776
|
+
/**
|
|
777
|
+
* @generated from field: bool is_moving = 1;
|
|
778
|
+
*/
|
|
779
|
+
isMoving = false;
|
|
780
|
+
constructor(data) {
|
|
781
|
+
super();
|
|
782
|
+
proto3.util.initPartial(data, this);
|
|
783
|
+
}
|
|
784
|
+
static runtime = proto3;
|
|
785
|
+
static typeName = "viam.common.v1.ActuatorStatus";
|
|
786
|
+
static fields = proto3.util.newFieldList(() => [
|
|
787
|
+
{ no: 1, name: "is_moving", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
788
|
+
]);
|
|
789
|
+
static fromBinary(bytes, options) {
|
|
790
|
+
return new ActuatorStatus().fromBinary(bytes, options);
|
|
791
|
+
}
|
|
792
|
+
static fromJson(jsonValue, options) {
|
|
793
|
+
return new ActuatorStatus().fromJson(jsonValue, options);
|
|
794
|
+
}
|
|
795
|
+
static fromJsonString(jsonString, options) {
|
|
796
|
+
return new ActuatorStatus().fromJsonString(jsonString, options);
|
|
797
|
+
}
|
|
798
|
+
static equals(a, b) {
|
|
799
|
+
return proto3.util.equals(ActuatorStatus, a, b);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* @generated from message viam.common.v1.ResponseMetadata
|
|
804
|
+
*/
|
|
805
|
+
export class ResponseMetadata extends Message {
|
|
806
|
+
/**
|
|
807
|
+
* captured_at is the time at which the resource as close as physically possible, captured
|
|
808
|
+
* the data in the response.
|
|
809
|
+
* Note: If correlating between other resources, be sure that the means
|
|
810
|
+
* of measuring the capture are similar enough such that comparison can be made between them.
|
|
811
|
+
*
|
|
812
|
+
* @generated from field: optional google.protobuf.Timestamp captured_at = 1;
|
|
813
|
+
*/
|
|
814
|
+
capturedAt;
|
|
815
|
+
constructor(data) {
|
|
816
|
+
super();
|
|
817
|
+
proto3.util.initPartial(data, this);
|
|
818
|
+
}
|
|
819
|
+
static runtime = proto3;
|
|
820
|
+
static typeName = "viam.common.v1.ResponseMetadata";
|
|
821
|
+
static fields = proto3.util.newFieldList(() => [
|
|
822
|
+
{ no: 1, name: "captured_at", kind: "message", T: Timestamp, opt: true },
|
|
823
|
+
]);
|
|
824
|
+
static fromBinary(bytes, options) {
|
|
825
|
+
return new ResponseMetadata().fromBinary(bytes, options);
|
|
826
|
+
}
|
|
827
|
+
static fromJson(jsonValue, options) {
|
|
828
|
+
return new ResponseMetadata().fromJson(jsonValue, options);
|
|
829
|
+
}
|
|
830
|
+
static fromJsonString(jsonString, options) {
|
|
831
|
+
return new ResponseMetadata().fromJsonString(jsonString, options);
|
|
832
|
+
}
|
|
833
|
+
static equals(a, b) {
|
|
834
|
+
return proto3.util.equals(ResponseMetadata, a, b);
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
/**
|
|
838
|
+
* DoCommandRequest represents a generic DoCommand input
|
|
839
|
+
*
|
|
840
|
+
* @generated from message viam.common.v1.DoCommandRequest
|
|
841
|
+
*/
|
|
842
|
+
export class DoCommandRequest extends Message {
|
|
843
|
+
/**
|
|
844
|
+
* @generated from field: string name = 1;
|
|
845
|
+
*/
|
|
846
|
+
name = "";
|
|
847
|
+
/**
|
|
848
|
+
* @generated from field: google.protobuf.Struct command = 2;
|
|
849
|
+
*/
|
|
850
|
+
command;
|
|
851
|
+
constructor(data) {
|
|
852
|
+
super();
|
|
853
|
+
proto3.util.initPartial(data, this);
|
|
854
|
+
}
|
|
855
|
+
static runtime = proto3;
|
|
856
|
+
static typeName = "viam.common.v1.DoCommandRequest";
|
|
857
|
+
static fields = proto3.util.newFieldList(() => [
|
|
858
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
859
|
+
{ no: 2, name: "command", kind: "message", T: Struct },
|
|
860
|
+
]);
|
|
861
|
+
static fromBinary(bytes, options) {
|
|
862
|
+
return new DoCommandRequest().fromBinary(bytes, options);
|
|
863
|
+
}
|
|
864
|
+
static fromJson(jsonValue, options) {
|
|
865
|
+
return new DoCommandRequest().fromJson(jsonValue, options);
|
|
866
|
+
}
|
|
867
|
+
static fromJsonString(jsonString, options) {
|
|
868
|
+
return new DoCommandRequest().fromJsonString(jsonString, options);
|
|
869
|
+
}
|
|
870
|
+
static equals(a, b) {
|
|
871
|
+
return proto3.util.equals(DoCommandRequest, a, b);
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
/**
|
|
875
|
+
* DoCommandResponse represents a generic DoCommand output
|
|
876
|
+
*
|
|
877
|
+
* @generated from message viam.common.v1.DoCommandResponse
|
|
878
|
+
*/
|
|
879
|
+
export class DoCommandResponse extends Message {
|
|
880
|
+
/**
|
|
881
|
+
* @generated from field: google.protobuf.Struct result = 1;
|
|
882
|
+
*/
|
|
883
|
+
result;
|
|
884
|
+
constructor(data) {
|
|
885
|
+
super();
|
|
886
|
+
proto3.util.initPartial(data, this);
|
|
887
|
+
}
|
|
888
|
+
static runtime = proto3;
|
|
889
|
+
static typeName = "viam.common.v1.DoCommandResponse";
|
|
890
|
+
static fields = proto3.util.newFieldList(() => [
|
|
891
|
+
{ no: 1, name: "result", kind: "message", T: Struct },
|
|
892
|
+
]);
|
|
893
|
+
static fromBinary(bytes, options) {
|
|
894
|
+
return new DoCommandResponse().fromBinary(bytes, options);
|
|
895
|
+
}
|
|
896
|
+
static fromJson(jsonValue, options) {
|
|
897
|
+
return new DoCommandResponse().fromJson(jsonValue, options);
|
|
898
|
+
}
|
|
899
|
+
static fromJsonString(jsonString, options) {
|
|
900
|
+
return new DoCommandResponse().fromJsonString(jsonString, options);
|
|
901
|
+
}
|
|
902
|
+
static equals(a, b) {
|
|
903
|
+
return proto3.util.equals(DoCommandResponse, a, b);
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* @generated from message viam.common.v1.GetKinematicsRequest
|
|
908
|
+
*/
|
|
909
|
+
export class GetKinematicsRequest extends Message {
|
|
910
|
+
/**
|
|
911
|
+
* The component name
|
|
912
|
+
*
|
|
913
|
+
* @generated from field: string name = 1;
|
|
914
|
+
*/
|
|
915
|
+
name = "";
|
|
916
|
+
/**
|
|
917
|
+
* Additional arguments to the method
|
|
918
|
+
*
|
|
919
|
+
* @generated from field: google.protobuf.Struct extra = 99;
|
|
920
|
+
*/
|
|
921
|
+
extra;
|
|
922
|
+
constructor(data) {
|
|
923
|
+
super();
|
|
924
|
+
proto3.util.initPartial(data, this);
|
|
925
|
+
}
|
|
926
|
+
static runtime = proto3;
|
|
927
|
+
static typeName = "viam.common.v1.GetKinematicsRequest";
|
|
928
|
+
static fields = proto3.util.newFieldList(() => [
|
|
929
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
930
|
+
{ no: 99, name: "extra", kind: "message", T: Struct },
|
|
931
|
+
]);
|
|
932
|
+
static fromBinary(bytes, options) {
|
|
933
|
+
return new GetKinematicsRequest().fromBinary(bytes, options);
|
|
934
|
+
}
|
|
935
|
+
static fromJson(jsonValue, options) {
|
|
936
|
+
return new GetKinematicsRequest().fromJson(jsonValue, options);
|
|
937
|
+
}
|
|
938
|
+
static fromJsonString(jsonString, options) {
|
|
939
|
+
return new GetKinematicsRequest().fromJsonString(jsonString, options);
|
|
940
|
+
}
|
|
941
|
+
static equals(a, b) {
|
|
942
|
+
return proto3.util.equals(GetKinematicsRequest, a, b);
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
/**
|
|
946
|
+
* @generated from message viam.common.v1.GetKinematicsResponse
|
|
947
|
+
*/
|
|
948
|
+
export class GetKinematicsResponse extends Message {
|
|
949
|
+
/**
|
|
950
|
+
* The kinematics of the component, in either URDF format or in Viam’s kinematic parameter format (spatial vector algebra)
|
|
951
|
+
* https://docs.viam.com/internals/kinematic-chain-config/#kinematic-parameters
|
|
952
|
+
*
|
|
953
|
+
* @generated from field: viam.common.v1.KinematicsFileFormat format = 1;
|
|
954
|
+
*/
|
|
955
|
+
format = KinematicsFileFormat.UNSPECIFIED;
|
|
956
|
+
/**
|
|
957
|
+
* The byte contents of the file
|
|
958
|
+
*
|
|
959
|
+
* @generated from field: bytes kinematics_data = 2;
|
|
960
|
+
*/
|
|
961
|
+
kinematicsData = new Uint8Array(0);
|
|
962
|
+
constructor(data) {
|
|
963
|
+
super();
|
|
964
|
+
proto3.util.initPartial(data, this);
|
|
965
|
+
}
|
|
966
|
+
static runtime = proto3;
|
|
967
|
+
static typeName = "viam.common.v1.GetKinematicsResponse";
|
|
968
|
+
static fields = proto3.util.newFieldList(() => [
|
|
969
|
+
{ no: 1, name: "format", kind: "enum", T: proto3.getEnumType(KinematicsFileFormat) },
|
|
970
|
+
{ no: 2, name: "kinematics_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
971
|
+
]);
|
|
972
|
+
static fromBinary(bytes, options) {
|
|
973
|
+
return new GetKinematicsResponse().fromBinary(bytes, options);
|
|
974
|
+
}
|
|
975
|
+
static fromJson(jsonValue, options) {
|
|
976
|
+
return new GetKinematicsResponse().fromJson(jsonValue, options);
|
|
977
|
+
}
|
|
978
|
+
static fromJsonString(jsonString, options) {
|
|
979
|
+
return new GetKinematicsResponse().fromJsonString(jsonString, options);
|
|
980
|
+
}
|
|
981
|
+
static equals(a, b) {
|
|
982
|
+
return proto3.util.equals(GetKinematicsResponse, a, b);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* @generated from message viam.common.v1.GetGeometriesRequest
|
|
987
|
+
*/
|
|
988
|
+
export class GetGeometriesRequest extends Message {
|
|
989
|
+
/**
|
|
990
|
+
* The component name
|
|
991
|
+
*
|
|
992
|
+
* @generated from field: string name = 1;
|
|
993
|
+
*/
|
|
994
|
+
name = "";
|
|
995
|
+
/**
|
|
996
|
+
* Additional arguments to the method
|
|
997
|
+
*
|
|
998
|
+
* @generated from field: google.protobuf.Struct extra = 99;
|
|
999
|
+
*/
|
|
1000
|
+
extra;
|
|
1001
|
+
constructor(data) {
|
|
1002
|
+
super();
|
|
1003
|
+
proto3.util.initPartial(data, this);
|
|
1004
|
+
}
|
|
1005
|
+
static runtime = proto3;
|
|
1006
|
+
static typeName = "viam.common.v1.GetGeometriesRequest";
|
|
1007
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1008
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1009
|
+
{ no: 99, name: "extra", kind: "message", T: Struct },
|
|
1010
|
+
]);
|
|
1011
|
+
static fromBinary(bytes, options) {
|
|
1012
|
+
return new GetGeometriesRequest().fromBinary(bytes, options);
|
|
1013
|
+
}
|
|
1014
|
+
static fromJson(jsonValue, options) {
|
|
1015
|
+
return new GetGeometriesRequest().fromJson(jsonValue, options);
|
|
1016
|
+
}
|
|
1017
|
+
static fromJsonString(jsonString, options) {
|
|
1018
|
+
return new GetGeometriesRequest().fromJsonString(jsonString, options);
|
|
1019
|
+
}
|
|
1020
|
+
static equals(a, b) {
|
|
1021
|
+
return proto3.util.equals(GetGeometriesRequest, a, b);
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
/**
|
|
1025
|
+
* @generated from message viam.common.v1.GetGeometriesResponse
|
|
1026
|
+
*/
|
|
1027
|
+
export class GetGeometriesResponse extends Message {
|
|
1028
|
+
/**
|
|
1029
|
+
* All geometries associated with the component, in their current configuration, in the frame of that component.
|
|
1030
|
+
*
|
|
1031
|
+
* @generated from field: repeated viam.common.v1.Geometry geometries = 1;
|
|
1032
|
+
*/
|
|
1033
|
+
geometries = [];
|
|
1034
|
+
constructor(data) {
|
|
1035
|
+
super();
|
|
1036
|
+
proto3.util.initPartial(data, this);
|
|
1037
|
+
}
|
|
1038
|
+
static runtime = proto3;
|
|
1039
|
+
static typeName = "viam.common.v1.GetGeometriesResponse";
|
|
1040
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1041
|
+
{ no: 1, name: "geometries", kind: "message", T: Geometry, repeated: true },
|
|
1042
|
+
]);
|
|
1043
|
+
static fromBinary(bytes, options) {
|
|
1044
|
+
return new GetGeometriesResponse().fromBinary(bytes, options);
|
|
1045
|
+
}
|
|
1046
|
+
static fromJson(jsonValue, options) {
|
|
1047
|
+
return new GetGeometriesResponse().fromJson(jsonValue, options);
|
|
1048
|
+
}
|
|
1049
|
+
static fromJsonString(jsonString, options) {
|
|
1050
|
+
return new GetGeometriesResponse().fromJsonString(jsonString, options);
|
|
1051
|
+
}
|
|
1052
|
+
static equals(a, b) {
|
|
1053
|
+
return proto3.util.equals(GetGeometriesResponse, a, b);
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
/**
|
|
1057
|
+
* @generated from message viam.common.v1.Get3DModelsRequest
|
|
1058
|
+
*/
|
|
1059
|
+
export class Get3DModelsRequest extends Message {
|
|
1060
|
+
/**
|
|
1061
|
+
* The component name
|
|
1062
|
+
*
|
|
1063
|
+
* @generated from field: string name = 1;
|
|
1064
|
+
*/
|
|
1065
|
+
name = "";
|
|
1066
|
+
/**
|
|
1067
|
+
* Additional arguments to the method
|
|
1068
|
+
*
|
|
1069
|
+
* @generated from field: google.protobuf.Struct extra = 99;
|
|
1070
|
+
*/
|
|
1071
|
+
extra;
|
|
1072
|
+
constructor(data) {
|
|
1073
|
+
super();
|
|
1074
|
+
proto3.util.initPartial(data, this);
|
|
1075
|
+
}
|
|
1076
|
+
static runtime = proto3;
|
|
1077
|
+
static typeName = "viam.common.v1.Get3DModelsRequest";
|
|
1078
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1079
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1080
|
+
{ no: 99, name: "extra", kind: "message", T: Struct },
|
|
1081
|
+
]);
|
|
1082
|
+
static fromBinary(bytes, options) {
|
|
1083
|
+
return new Get3DModelsRequest().fromBinary(bytes, options);
|
|
1084
|
+
}
|
|
1085
|
+
static fromJson(jsonValue, options) {
|
|
1086
|
+
return new Get3DModelsRequest().fromJson(jsonValue, options);
|
|
1087
|
+
}
|
|
1088
|
+
static fromJsonString(jsonString, options) {
|
|
1089
|
+
return new Get3DModelsRequest().fromJsonString(jsonString, options);
|
|
1090
|
+
}
|
|
1091
|
+
static equals(a, b) {
|
|
1092
|
+
return proto3.util.equals(Get3DModelsRequest, a, b);
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
/**
|
|
1096
|
+
* @generated from message viam.common.v1.Get3DModelsResponse
|
|
1097
|
+
*/
|
|
1098
|
+
export class Get3DModelsResponse extends Message {
|
|
1099
|
+
/**
|
|
1100
|
+
* the 3D models associated with the component
|
|
1101
|
+
*
|
|
1102
|
+
* @generated from field: map<string, viam.common.v1.Mesh> models = 1;
|
|
1103
|
+
*/
|
|
1104
|
+
models = {};
|
|
1105
|
+
constructor(data) {
|
|
1106
|
+
super();
|
|
1107
|
+
proto3.util.initPartial(data, this);
|
|
1108
|
+
}
|
|
1109
|
+
static runtime = proto3;
|
|
1110
|
+
static typeName = "viam.common.v1.Get3DModelsResponse";
|
|
1111
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1112
|
+
{ no: 1, name: "models", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: Mesh } },
|
|
1113
|
+
]);
|
|
1114
|
+
static fromBinary(bytes, options) {
|
|
1115
|
+
return new Get3DModelsResponse().fromBinary(bytes, options);
|
|
1116
|
+
}
|
|
1117
|
+
static fromJson(jsonValue, options) {
|
|
1118
|
+
return new Get3DModelsResponse().fromJson(jsonValue, options);
|
|
1119
|
+
}
|
|
1120
|
+
static fromJsonString(jsonString, options) {
|
|
1121
|
+
return new Get3DModelsResponse().fromJsonString(jsonString, options);
|
|
1122
|
+
}
|
|
1123
|
+
static equals(a, b) {
|
|
1124
|
+
return proto3.util.equals(Get3DModelsResponse, a, b);
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* @generated from message viam.common.v1.GetReadingsRequest
|
|
1129
|
+
*/
|
|
1130
|
+
export class GetReadingsRequest extends Message {
|
|
1131
|
+
/**
|
|
1132
|
+
* Name of a sensor
|
|
1133
|
+
*
|
|
1134
|
+
* @generated from field: string name = 1;
|
|
1135
|
+
*/
|
|
1136
|
+
name = "";
|
|
1137
|
+
/**
|
|
1138
|
+
* Additional arguments to the method
|
|
1139
|
+
*
|
|
1140
|
+
* @generated from field: google.protobuf.Struct extra = 99;
|
|
1141
|
+
*/
|
|
1142
|
+
extra;
|
|
1143
|
+
constructor(data) {
|
|
1144
|
+
super();
|
|
1145
|
+
proto3.util.initPartial(data, this);
|
|
1146
|
+
}
|
|
1147
|
+
static runtime = proto3;
|
|
1148
|
+
static typeName = "viam.common.v1.GetReadingsRequest";
|
|
1149
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1150
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1151
|
+
{ no: 99, name: "extra", kind: "message", T: Struct },
|
|
1152
|
+
]);
|
|
1153
|
+
static fromBinary(bytes, options) {
|
|
1154
|
+
return new GetReadingsRequest().fromBinary(bytes, options);
|
|
1155
|
+
}
|
|
1156
|
+
static fromJson(jsonValue, options) {
|
|
1157
|
+
return new GetReadingsRequest().fromJson(jsonValue, options);
|
|
1158
|
+
}
|
|
1159
|
+
static fromJsonString(jsonString, options) {
|
|
1160
|
+
return new GetReadingsRequest().fromJsonString(jsonString, options);
|
|
1161
|
+
}
|
|
1162
|
+
static equals(a, b) {
|
|
1163
|
+
return proto3.util.equals(GetReadingsRequest, a, b);
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* @generated from message viam.common.v1.GetReadingsResponse
|
|
1168
|
+
*/
|
|
1169
|
+
export class GetReadingsResponse extends Message {
|
|
1170
|
+
/**
|
|
1171
|
+
* @generated from field: map<string, google.protobuf.Value> readings = 1;
|
|
1172
|
+
*/
|
|
1173
|
+
readings = {};
|
|
1174
|
+
constructor(data) {
|
|
1175
|
+
super();
|
|
1176
|
+
proto3.util.initPartial(data, this);
|
|
1177
|
+
}
|
|
1178
|
+
static runtime = proto3;
|
|
1179
|
+
static typeName = "viam.common.v1.GetReadingsResponse";
|
|
1180
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1181
|
+
{ no: 1, name: "readings", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: Value } },
|
|
1182
|
+
]);
|
|
1183
|
+
static fromBinary(bytes, options) {
|
|
1184
|
+
return new GetReadingsResponse().fromBinary(bytes, options);
|
|
1185
|
+
}
|
|
1186
|
+
static fromJson(jsonValue, options) {
|
|
1187
|
+
return new GetReadingsResponse().fromJson(jsonValue, options);
|
|
1188
|
+
}
|
|
1189
|
+
static fromJsonString(jsonString, options) {
|
|
1190
|
+
return new GetReadingsResponse().fromJsonString(jsonString, options);
|
|
1191
|
+
}
|
|
1192
|
+
static equals(a, b) {
|
|
1193
|
+
return proto3.util.equals(GetReadingsResponse, a, b);
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
/**
|
|
1197
|
+
* @generated from message viam.common.v1.LogEntry
|
|
1198
|
+
*/
|
|
1199
|
+
export class LogEntry extends Message {
|
|
1200
|
+
/**
|
|
1201
|
+
* @generated from field: string host = 1;
|
|
1202
|
+
*/
|
|
1203
|
+
host = "";
|
|
1204
|
+
/**
|
|
1205
|
+
* @generated from field: string level = 2;
|
|
1206
|
+
*/
|
|
1207
|
+
level = "";
|
|
1208
|
+
/**
|
|
1209
|
+
* @generated from field: google.protobuf.Timestamp time = 3;
|
|
1210
|
+
*/
|
|
1211
|
+
time;
|
|
1212
|
+
/**
|
|
1213
|
+
* @generated from field: string logger_name = 4;
|
|
1214
|
+
*/
|
|
1215
|
+
loggerName = "";
|
|
1216
|
+
/**
|
|
1217
|
+
* @generated from field: string message = 5;
|
|
1218
|
+
*/
|
|
1219
|
+
message = "";
|
|
1220
|
+
/**
|
|
1221
|
+
* @generated from field: google.protobuf.Struct caller = 6;
|
|
1222
|
+
*/
|
|
1223
|
+
caller;
|
|
1224
|
+
/**
|
|
1225
|
+
* @generated from field: string stack = 7;
|
|
1226
|
+
*/
|
|
1227
|
+
stack = "";
|
|
1228
|
+
/**
|
|
1229
|
+
* @generated from field: repeated google.protobuf.Struct fields = 8;
|
|
1230
|
+
*/
|
|
1231
|
+
fields = [];
|
|
1232
|
+
constructor(data) {
|
|
1233
|
+
super();
|
|
1234
|
+
proto3.util.initPartial(data, this);
|
|
1235
|
+
}
|
|
1236
|
+
static runtime = proto3;
|
|
1237
|
+
static typeName = "viam.common.v1.LogEntry";
|
|
1238
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1239
|
+
{ no: 1, name: "host", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1240
|
+
{ no: 2, name: "level", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1241
|
+
{ no: 3, name: "time", kind: "message", T: Timestamp },
|
|
1242
|
+
{ no: 4, name: "logger_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1243
|
+
{ no: 5, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1244
|
+
{ no: 6, name: "caller", kind: "message", T: Struct },
|
|
1245
|
+
{ no: 7, name: "stack", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1246
|
+
{ no: 8, name: "fields", kind: "message", T: Struct, repeated: true },
|
|
1247
|
+
]);
|
|
1248
|
+
static fromBinary(bytes, options) {
|
|
1249
|
+
return new LogEntry().fromBinary(bytes, options);
|
|
1250
|
+
}
|
|
1251
|
+
static fromJson(jsonValue, options) {
|
|
1252
|
+
return new LogEntry().fromJson(jsonValue, options);
|
|
1253
|
+
}
|
|
1254
|
+
static fromJsonString(jsonString, options) {
|
|
1255
|
+
return new LogEntry().fromJsonString(jsonString, options);
|
|
1256
|
+
}
|
|
1257
|
+
static equals(a, b) {
|
|
1258
|
+
return proto3.util.equals(LogEntry, a, b);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
/**
|
|
1262
|
+
* Information about an audio stream or device.
|
|
1263
|
+
*
|
|
1264
|
+
* @generated from message viam.common.v1.AudioInfo
|
|
1265
|
+
*/
|
|
1266
|
+
export class AudioInfo extends Message {
|
|
1267
|
+
/**
|
|
1268
|
+
* Audio codec used for the stream or device (e.g., "pcm16", "pcm32float", "mp3")
|
|
1269
|
+
*
|
|
1270
|
+
* @generated from field: string codec = 1;
|
|
1271
|
+
*/
|
|
1272
|
+
codec = "";
|
|
1273
|
+
/**
|
|
1274
|
+
* Sample rate of the audio in Hz
|
|
1275
|
+
*
|
|
1276
|
+
* @generated from field: int32 sample_rate_hz = 2;
|
|
1277
|
+
*/
|
|
1278
|
+
sampleRateHz = 0;
|
|
1279
|
+
/**
|
|
1280
|
+
* Number of audio channels in the recording or playback
|
|
1281
|
+
*
|
|
1282
|
+
* @generated from field: int32 num_channels = 3;
|
|
1283
|
+
*/
|
|
1284
|
+
numChannels = 0;
|
|
1285
|
+
constructor(data) {
|
|
1286
|
+
super();
|
|
1287
|
+
proto3.util.initPartial(data, this);
|
|
1288
|
+
}
|
|
1289
|
+
static runtime = proto3;
|
|
1290
|
+
static typeName = "viam.common.v1.AudioInfo";
|
|
1291
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1292
|
+
{ no: 1, name: "codec", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1293
|
+
{ no: 2, name: "sample_rate_hz", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1294
|
+
{ no: 3, name: "num_channels", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1295
|
+
]);
|
|
1296
|
+
static fromBinary(bytes, options) {
|
|
1297
|
+
return new AudioInfo().fromBinary(bytes, options);
|
|
1298
|
+
}
|
|
1299
|
+
static fromJson(jsonValue, options) {
|
|
1300
|
+
return new AudioInfo().fromJson(jsonValue, options);
|
|
1301
|
+
}
|
|
1302
|
+
static fromJsonString(jsonString, options) {
|
|
1303
|
+
return new AudioInfo().fromJsonString(jsonString, options);
|
|
1304
|
+
}
|
|
1305
|
+
static equals(a, b) {
|
|
1306
|
+
return proto3.util.equals(AudioInfo, a, b);
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
/**
|
|
1310
|
+
* Shared properties for AudioIn and AudioOut components.
|
|
1311
|
+
*
|
|
1312
|
+
* @generated from message viam.common.v1.GetPropertiesRequest
|
|
1313
|
+
*/
|
|
1314
|
+
export class GetPropertiesRequest extends Message {
|
|
1315
|
+
/**
|
|
1316
|
+
* @generated from field: string name = 1;
|
|
1317
|
+
*/
|
|
1318
|
+
name = "";
|
|
1319
|
+
/**
|
|
1320
|
+
* @generated from field: google.protobuf.Struct extra = 99;
|
|
1321
|
+
*/
|
|
1322
|
+
extra;
|
|
1323
|
+
constructor(data) {
|
|
1324
|
+
super();
|
|
1325
|
+
proto3.util.initPartial(data, this);
|
|
1326
|
+
}
|
|
1327
|
+
static runtime = proto3;
|
|
1328
|
+
static typeName = "viam.common.v1.GetPropertiesRequest";
|
|
1329
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1330
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1331
|
+
{ no: 99, name: "extra", kind: "message", T: Struct },
|
|
1332
|
+
]);
|
|
1333
|
+
static fromBinary(bytes, options) {
|
|
1334
|
+
return new GetPropertiesRequest().fromBinary(bytes, options);
|
|
1335
|
+
}
|
|
1336
|
+
static fromJson(jsonValue, options) {
|
|
1337
|
+
return new GetPropertiesRequest().fromJson(jsonValue, options);
|
|
1338
|
+
}
|
|
1339
|
+
static fromJsonString(jsonString, options) {
|
|
1340
|
+
return new GetPropertiesRequest().fromJsonString(jsonString, options);
|
|
1341
|
+
}
|
|
1342
|
+
static equals(a, b) {
|
|
1343
|
+
return proto3.util.equals(GetPropertiesRequest, a, b);
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
/**
|
|
1347
|
+
* @generated from message viam.common.v1.GetPropertiesResponse
|
|
1348
|
+
*/
|
|
1349
|
+
export class GetPropertiesResponse extends Message {
|
|
1350
|
+
/**
|
|
1351
|
+
* List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")
|
|
1352
|
+
*
|
|
1353
|
+
* @generated from field: repeated string supported_codecs = 1;
|
|
1354
|
+
*/
|
|
1355
|
+
supportedCodecs = [];
|
|
1356
|
+
/**
|
|
1357
|
+
* current sample rate in Hz
|
|
1358
|
+
*
|
|
1359
|
+
* @generated from field: int32 sample_rate_hz = 2;
|
|
1360
|
+
*/
|
|
1361
|
+
sampleRateHz = 0;
|
|
1362
|
+
/**
|
|
1363
|
+
* Maximum number of audio channels supported (e.g., 1 for mono, 2 for stereo)
|
|
1364
|
+
*
|
|
1365
|
+
* @generated from field: int32 num_channels = 3;
|
|
1366
|
+
*/
|
|
1367
|
+
numChannels = 0;
|
|
1368
|
+
constructor(data) {
|
|
1369
|
+
super();
|
|
1370
|
+
proto3.util.initPartial(data, this);
|
|
1371
|
+
}
|
|
1372
|
+
static runtime = proto3;
|
|
1373
|
+
static typeName = "viam.common.v1.GetPropertiesResponse";
|
|
1374
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1375
|
+
{ no: 1, name: "supported_codecs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1376
|
+
{ no: 2, name: "sample_rate_hz", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1377
|
+
{ no: 3, name: "num_channels", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1378
|
+
]);
|
|
1379
|
+
static fromBinary(bytes, options) {
|
|
1380
|
+
return new GetPropertiesResponse().fromBinary(bytes, options);
|
|
1381
|
+
}
|
|
1382
|
+
static fromJson(jsonValue, options) {
|
|
1383
|
+
return new GetPropertiesResponse().fromJson(jsonValue, options);
|
|
1384
|
+
}
|
|
1385
|
+
static fromJsonString(jsonString, options) {
|
|
1386
|
+
return new GetPropertiesResponse().fromJsonString(jsonString, options);
|
|
1387
|
+
}
|
|
1388
|
+
static equals(a, b) {
|
|
1389
|
+
return proto3.util.equals(GetPropertiesResponse, a, b);
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* safety_heartbeat_monitored is used on methods to signify that if a session is in use
|
|
1394
|
+
* and the session was the last to call this method, the resource associated with the
|
|
1395
|
+
* method will be stopped.
|
|
1396
|
+
*
|
|
1397
|
+
* @generated from extension: optional bool safety_heartbeat_monitored = 84260;
|
|
1398
|
+
*/
|
|
1399
|
+
export const safety_heartbeat_monitored = proto3.makeExtension("viam.common.v1.safety_heartbeat_monitored", MethodOptions, { no: 84260, kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true });
|