@viamrobotics/sdk 0.6.0-rc.0 → 0.7.0-rc.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/dist/app/data-client.d.ts +12 -2
- package/dist/components/movement-sensor/client.d.ts +2 -2
- package/dist/components/movement-sensor/movement-sensor.d.ts +4 -11
- package/dist/components/movementsensor.d.ts +1 -1
- package/dist/components/power-sensor/client.d.ts +3 -3
- package/dist/components/power-sensor/power-sensor.d.ts +2 -6
- package/dist/components/powersensor.d.ts +1 -1
- package/dist/gen/app/cloudslam/v1/cloud_slam_pb.d.ts +15 -6
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +40 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb_service.d.ts +19 -0
- package/dist/gen/app/v1/end_user_pb.d.ts +0 -8
- package/dist/gen/app/v1/robot_pb.d.ts +46 -0
- package/dist/gen/common/v1/common_pb.d.ts +45 -0
- package/dist/gen/component/movementsensor/v1/movementsensor_pb_service.d.ts +19 -0
- package/dist/gen/component/powersensor/v1/powersensor_pb_service.d.ts +19 -0
- package/dist/gen/component/sensor/v1/sensor_pb.d.ts +0 -46
- package/dist/gen/component/sensor/v1/sensor_pb_service.d.ts +6 -6
- package/dist/gen/robot/v1/robot_pb.d.ts +6 -0
- package/dist/gen/service/motion/v1/motion_pb.d.ts +33 -5
- package/dist/gen/service/navigation/v1/navigation_pb.d.ts +75 -0
- package/dist/gen/service/navigation/v1/navigation_pb_service.d.ts +19 -0
- package/dist/main.d.ts +3 -3
- package/dist/main.es.js +688 -329
- package/dist/main.umd.js +5 -5
- package/dist/services/motion/types.d.ts +1 -0
- package/dist/services/motion.d.ts +1 -1
- package/dist/services/navigation/client.d.ts +1 -1
- package/package.json +2 -2
package/dist/main.es.js
CHANGED
|
@@ -8356,7 +8356,7 @@ var timestamp_pb = {};
|
|
|
8356
8356
|
var g = struct_pb;
|
|
8357
8357
|
n.object.extend(proto, g);
|
|
8358
8358
|
var p = timestamp_pb;
|
|
8359
|
-
n.object.extend(proto, p), n.exportSymbol("proto.viam.common.v1.ActuatorStatus", null, s), n.exportSymbol("proto.viam.common.v1.AnalogStatus", null, s), n.exportSymbol("proto.viam.common.v1.BoardStatus", null, s), n.exportSymbol("proto.viam.common.v1.Capsule", null, s), n.exportSymbol("proto.viam.common.v1.DigitalInterruptStatus", null, s), n.exportSymbol("proto.viam.common.v1.DoCommandRequest", null, s), n.exportSymbol("proto.viam.common.v1.DoCommandResponse", null, s), n.exportSymbol("proto.viam.common.v1.GeoObstacle", null, s), n.exportSymbol("proto.viam.common.v1.GeoPoint", null, s), n.exportSymbol("proto.viam.common.v1.GeometriesInFrame", null, s), n.exportSymbol("proto.viam.common.v1.Geometry", null, s), n.exportSymbol("proto.viam.common.v1.Geometry.GeometryTypeCase", null, s), n.exportSymbol("proto.viam.common.v1.GetGeometriesRequest", null, s), n.exportSymbol("proto.viam.common.v1.GetGeometriesResponse", null, s), n.exportSymbol("proto.viam.common.v1.GetKinematicsRequest", null, s), n.exportSymbol("proto.viam.common.v1.GetKinematicsResponse", null, s), n.exportSymbol("proto.viam.common.v1.KinematicsFileFormat", null, s), n.exportSymbol("proto.viam.common.v1.Orientation", null, s), n.exportSymbol("proto.viam.common.v1.PointCloudObject", null, s), n.exportSymbol("proto.viam.common.v1.Pose", null, s), n.exportSymbol("proto.viam.common.v1.PoseInFrame", null, s), n.exportSymbol("proto.viam.common.v1.RectangularPrism", null, s), n.exportSymbol("proto.viam.common.v1.ResourceName", null, s), n.exportSymbol("proto.viam.common.v1.ResponseMetadata", null, s), n.exportSymbol("proto.viam.common.v1.Sphere", null, s), n.exportSymbol("proto.viam.common.v1.Transform", null, s), n.exportSymbol("proto.viam.common.v1.Vector3", null, s), n.exportSymbol("proto.viam.common.v1.WorldState", null, s), n.exportSymbol("proto.viam.common.v1.safetyHeartbeatMonitored", null, s), proto.viam.common.v1.ResourceName = function(t) {
|
|
8359
|
+
n.object.extend(proto, p), n.exportSymbol("proto.viam.common.v1.ActuatorStatus", null, s), n.exportSymbol("proto.viam.common.v1.AnalogStatus", null, s), n.exportSymbol("proto.viam.common.v1.BoardStatus", null, s), n.exportSymbol("proto.viam.common.v1.Capsule", null, s), n.exportSymbol("proto.viam.common.v1.DigitalInterruptStatus", null, s), n.exportSymbol("proto.viam.common.v1.DoCommandRequest", null, s), n.exportSymbol("proto.viam.common.v1.DoCommandResponse", null, s), n.exportSymbol("proto.viam.common.v1.GeoObstacle", null, s), n.exportSymbol("proto.viam.common.v1.GeoPoint", null, s), n.exportSymbol("proto.viam.common.v1.GeometriesInFrame", null, s), n.exportSymbol("proto.viam.common.v1.Geometry", null, s), n.exportSymbol("proto.viam.common.v1.Geometry.GeometryTypeCase", null, s), n.exportSymbol("proto.viam.common.v1.GetGeometriesRequest", null, s), n.exportSymbol("proto.viam.common.v1.GetGeometriesResponse", null, s), n.exportSymbol("proto.viam.common.v1.GetKinematicsRequest", null, s), n.exportSymbol("proto.viam.common.v1.GetKinematicsResponse", null, s), n.exportSymbol("proto.viam.common.v1.GetReadingsRequest", null, s), n.exportSymbol("proto.viam.common.v1.GetReadingsResponse", null, s), n.exportSymbol("proto.viam.common.v1.KinematicsFileFormat", null, s), n.exportSymbol("proto.viam.common.v1.Orientation", null, s), n.exportSymbol("proto.viam.common.v1.PointCloudObject", null, s), n.exportSymbol("proto.viam.common.v1.Pose", null, s), n.exportSymbol("proto.viam.common.v1.PoseInFrame", null, s), n.exportSymbol("proto.viam.common.v1.RectangularPrism", null, s), n.exportSymbol("proto.viam.common.v1.ResourceName", null, s), n.exportSymbol("proto.viam.common.v1.ResponseMetadata", null, s), n.exportSymbol("proto.viam.common.v1.Sphere", null, s), n.exportSymbol("proto.viam.common.v1.Transform", null, s), n.exportSymbol("proto.viam.common.v1.Vector3", null, s), n.exportSymbol("proto.viam.common.v1.WorldState", null, s), n.exportSymbol("proto.viam.common.v1.safetyHeartbeatMonitored", null, s), proto.viam.common.v1.ResourceName = function(t) {
|
|
8360
8360
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
8361
8361
|
}, n.inherits(proto.viam.common.v1.ResourceName, e.Message), n.DEBUG && !COMPILED && (proto.viam.common.v1.ResourceName.displayName = "proto.viam.common.v1.ResourceName"), proto.viam.common.v1.BoardStatus = function(t) {
|
|
8362
8362
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
@@ -8408,7 +8408,11 @@ var timestamp_pb = {};
|
|
|
8408
8408
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
8409
8409
|
}, n.inherits(proto.viam.common.v1.GetGeometriesRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.common.v1.GetGeometriesRequest.displayName = "proto.viam.common.v1.GetGeometriesRequest"), proto.viam.common.v1.GetGeometriesResponse = function(t) {
|
|
8410
8410
|
e.Message.initialize(this, t, 0, -1, proto.viam.common.v1.GetGeometriesResponse.repeatedFields_, null);
|
|
8411
|
-
}, n.inherits(proto.viam.common.v1.GetGeometriesResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.common.v1.GetGeometriesResponse.displayName = "proto.viam.common.v1.GetGeometriesResponse"),
|
|
8411
|
+
}, n.inherits(proto.viam.common.v1.GetGeometriesResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.common.v1.GetGeometriesResponse.displayName = "proto.viam.common.v1.GetGeometriesResponse"), proto.viam.common.v1.GetReadingsRequest = function(t) {
|
|
8412
|
+
e.Message.initialize(this, t, 0, -1, null, null);
|
|
8413
|
+
}, n.inherits(proto.viam.common.v1.GetReadingsRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.common.v1.GetReadingsRequest.displayName = "proto.viam.common.v1.GetReadingsRequest"), proto.viam.common.v1.GetReadingsResponse = function(t) {
|
|
8414
|
+
e.Message.initialize(this, t, 0, -1, null, null);
|
|
8415
|
+
}, n.inherits(proto.viam.common.v1.GetReadingsResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.common.v1.GetReadingsResponse.displayName = "proto.viam.common.v1.GetReadingsResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.ResourceName.prototype.toObject = function(t) {
|
|
8412
8416
|
return proto.viam.common.v1.ResourceName.toObject(t, this);
|
|
8413
8417
|
}, proto.viam.common.v1.ResourceName.toObject = function(t, o) {
|
|
8414
8418
|
var r = {
|
|
@@ -10202,6 +10206,113 @@ var timestamp_pb = {};
|
|
|
10202
10206
|
return e.Message.addToRepeatedWrapperField(this, 1, t, proto.viam.common.v1.Geometry, o);
|
|
10203
10207
|
}, proto.viam.common.v1.GetGeometriesResponse.prototype.clearGeometriesList = function() {
|
|
10204
10208
|
return this.setGeometriesList([]);
|
|
10209
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GetReadingsRequest.prototype.toObject = function(t) {
|
|
10210
|
+
return proto.viam.common.v1.GetReadingsRequest.toObject(t, this);
|
|
10211
|
+
}, proto.viam.common.v1.GetReadingsRequest.toObject = function(t, o) {
|
|
10212
|
+
var r, u = {
|
|
10213
|
+
name: e.Message.getFieldWithDefault(o, 1, ""),
|
|
10214
|
+
extra: (r = o.getExtra()) && g.Struct.toObject(t, r)
|
|
10215
|
+
};
|
|
10216
|
+
return t && (u.$jspbMessageInstance = o), u;
|
|
10217
|
+
}), proto.viam.common.v1.GetReadingsRequest.deserializeBinary = function(t) {
|
|
10218
|
+
var o = new e.BinaryReader(t), r = new proto.viam.common.v1.GetReadingsRequest();
|
|
10219
|
+
return proto.viam.common.v1.GetReadingsRequest.deserializeBinaryFromReader(r, o);
|
|
10220
|
+
}, proto.viam.common.v1.GetReadingsRequest.deserializeBinaryFromReader = function(t, o) {
|
|
10221
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
10222
|
+
var r = o.getFieldNumber();
|
|
10223
|
+
switch (r) {
|
|
10224
|
+
case 1:
|
|
10225
|
+
var u = (
|
|
10226
|
+
/** @type {string} */
|
|
10227
|
+
o.readString()
|
|
10228
|
+
);
|
|
10229
|
+
t.setName(u);
|
|
10230
|
+
break;
|
|
10231
|
+
case 99:
|
|
10232
|
+
var u = new g.Struct();
|
|
10233
|
+
o.readMessage(u, g.Struct.deserializeBinaryFromReader), t.setExtra(u);
|
|
10234
|
+
break;
|
|
10235
|
+
default:
|
|
10236
|
+
o.skipField();
|
|
10237
|
+
break;
|
|
10238
|
+
}
|
|
10239
|
+
}
|
|
10240
|
+
return t;
|
|
10241
|
+
}, proto.viam.common.v1.GetReadingsRequest.prototype.serializeBinary = function() {
|
|
10242
|
+
var t = new e.BinaryWriter();
|
|
10243
|
+
return proto.viam.common.v1.GetReadingsRequest.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
10244
|
+
}, proto.viam.common.v1.GetReadingsRequest.serializeBinaryToWriter = function(t, o) {
|
|
10245
|
+
var r = void 0;
|
|
10246
|
+
r = t.getName(), r.length > 0 && o.writeString(
|
|
10247
|
+
1,
|
|
10248
|
+
r
|
|
10249
|
+
), r = t.getExtra(), r != null && o.writeMessage(
|
|
10250
|
+
99,
|
|
10251
|
+
r,
|
|
10252
|
+
g.Struct.serializeBinaryToWriter
|
|
10253
|
+
);
|
|
10254
|
+
}, proto.viam.common.v1.GetReadingsRequest.prototype.getName = function() {
|
|
10255
|
+
return (
|
|
10256
|
+
/** @type {string} */
|
|
10257
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
10258
|
+
);
|
|
10259
|
+
}, proto.viam.common.v1.GetReadingsRequest.prototype.setName = function(t) {
|
|
10260
|
+
return e.Message.setProto3StringField(this, 1, t);
|
|
10261
|
+
}, proto.viam.common.v1.GetReadingsRequest.prototype.getExtra = function() {
|
|
10262
|
+
return (
|
|
10263
|
+
/** @type{?proto.google.protobuf.Struct} */
|
|
10264
|
+
e.Message.getWrapperField(this, g.Struct, 99)
|
|
10265
|
+
);
|
|
10266
|
+
}, proto.viam.common.v1.GetReadingsRequest.prototype.setExtra = function(t) {
|
|
10267
|
+
return e.Message.setWrapperField(this, 99, t);
|
|
10268
|
+
}, proto.viam.common.v1.GetReadingsRequest.prototype.clearExtra = function() {
|
|
10269
|
+
return this.setExtra(void 0);
|
|
10270
|
+
}, proto.viam.common.v1.GetReadingsRequest.prototype.hasExtra = function() {
|
|
10271
|
+
return e.Message.getField(this, 99) != null;
|
|
10272
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GetReadingsResponse.prototype.toObject = function(t) {
|
|
10273
|
+
return proto.viam.common.v1.GetReadingsResponse.toObject(t, this);
|
|
10274
|
+
}, proto.viam.common.v1.GetReadingsResponse.toObject = function(t, o) {
|
|
10275
|
+
var r, u = {
|
|
10276
|
+
readingsMap: (r = o.getReadingsMap()) ? r.toObject(t, proto.google.protobuf.Value.toObject) : []
|
|
10277
|
+
};
|
|
10278
|
+
return t && (u.$jspbMessageInstance = o), u;
|
|
10279
|
+
}), proto.viam.common.v1.GetReadingsResponse.deserializeBinary = function(t) {
|
|
10280
|
+
var o = new e.BinaryReader(t), r = new proto.viam.common.v1.GetReadingsResponse();
|
|
10281
|
+
return proto.viam.common.v1.GetReadingsResponse.deserializeBinaryFromReader(r, o);
|
|
10282
|
+
}, proto.viam.common.v1.GetReadingsResponse.deserializeBinaryFromReader = function(t, o) {
|
|
10283
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
10284
|
+
var r = o.getFieldNumber();
|
|
10285
|
+
switch (r) {
|
|
10286
|
+
case 1:
|
|
10287
|
+
var u = t.getReadingsMap();
|
|
10288
|
+
o.readMessage(u, function(c, d) {
|
|
10289
|
+
e.Map.deserializeBinary(c, d, e.BinaryReader.prototype.readString, e.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
10290
|
+
});
|
|
10291
|
+
break;
|
|
10292
|
+
default:
|
|
10293
|
+
o.skipField();
|
|
10294
|
+
break;
|
|
10295
|
+
}
|
|
10296
|
+
}
|
|
10297
|
+
return t;
|
|
10298
|
+
}, proto.viam.common.v1.GetReadingsResponse.prototype.serializeBinary = function() {
|
|
10299
|
+
var t = new e.BinaryWriter();
|
|
10300
|
+
return proto.viam.common.v1.GetReadingsResponse.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
10301
|
+
}, proto.viam.common.v1.GetReadingsResponse.serializeBinaryToWriter = function(t, o) {
|
|
10302
|
+
var r = void 0;
|
|
10303
|
+
r = t.getReadingsMap(!0), r && r.getLength() > 0 && r.serializeBinary(1, o, e.BinaryWriter.prototype.writeString, e.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
10304
|
+
}, proto.viam.common.v1.GetReadingsResponse.prototype.getReadingsMap = function(t) {
|
|
10305
|
+
return (
|
|
10306
|
+
/** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
|
|
10307
|
+
e.Message.getMapField(
|
|
10308
|
+
this,
|
|
10309
|
+
1,
|
|
10310
|
+
t,
|
|
10311
|
+
proto.google.protobuf.Value
|
|
10312
|
+
)
|
|
10313
|
+
);
|
|
10314
|
+
}, proto.viam.common.v1.GetReadingsResponse.prototype.clearReadingsMap = function() {
|
|
10315
|
+
return this.getReadingsMap().clear(), this;
|
|
10205
10316
|
}, proto.viam.common.v1.KinematicsFileFormat = {
|
|
10206
10317
|
KINEMATICS_FILE_FORMAT_UNSPECIFIED: 0,
|
|
10207
10318
|
KINEMATICS_FILE_FORMAT_SVA: 1,
|
|
@@ -12223,7 +12334,8 @@ var duration_pb = {};
|
|
|
12223
12334
|
}, proto.viam.robot.v1.Status.toObject = function(r, u) {
|
|
12224
12335
|
var c, d = {
|
|
12225
12336
|
name: (c = u.getName()) && l.ResourceName.toObject(r, c),
|
|
12226
|
-
status: (c = u.getStatus()) && t.Struct.toObject(r, c)
|
|
12337
|
+
status: (c = u.getStatus()) && t.Struct.toObject(r, c),
|
|
12338
|
+
lastReconfigured: (c = u.getLastReconfigured()) && o.Timestamp.toObject(r, c)
|
|
12227
12339
|
};
|
|
12228
12340
|
return r && (d.$jspbMessageInstance = u), d;
|
|
12229
12341
|
}), proto.viam.robot.v1.Status.deserializeBinary = function(r) {
|
|
@@ -12241,6 +12353,10 @@ var duration_pb = {};
|
|
|
12241
12353
|
var d = new t.Struct();
|
|
12242
12354
|
u.readMessage(d, t.Struct.deserializeBinaryFromReader), r.setStatus(d);
|
|
12243
12355
|
break;
|
|
12356
|
+
case 3:
|
|
12357
|
+
var d = new o.Timestamp();
|
|
12358
|
+
u.readMessage(d, o.Timestamp.deserializeBinaryFromReader), r.setLastReconfigured(d);
|
|
12359
|
+
break;
|
|
12244
12360
|
default:
|
|
12245
12361
|
u.skipField();
|
|
12246
12362
|
break;
|
|
@@ -12260,6 +12376,10 @@ var duration_pb = {};
|
|
|
12260
12376
|
2,
|
|
12261
12377
|
c,
|
|
12262
12378
|
t.Struct.serializeBinaryToWriter
|
|
12379
|
+
), c = r.getLastReconfigured(), c != null && u.writeMessage(
|
|
12380
|
+
3,
|
|
12381
|
+
c,
|
|
12382
|
+
o.Timestamp.serializeBinaryToWriter
|
|
12263
12383
|
);
|
|
12264
12384
|
}, proto.viam.robot.v1.Status.prototype.getName = function() {
|
|
12265
12385
|
return (
|
|
@@ -12283,6 +12403,17 @@ var duration_pb = {};
|
|
|
12283
12403
|
return this.setStatus(void 0);
|
|
12284
12404
|
}, proto.viam.robot.v1.Status.prototype.hasStatus = function() {
|
|
12285
12405
|
return e.Message.getField(this, 2) != null;
|
|
12406
|
+
}, proto.viam.robot.v1.Status.prototype.getLastReconfigured = function() {
|
|
12407
|
+
return (
|
|
12408
|
+
/** @type{?proto.google.protobuf.Timestamp} */
|
|
12409
|
+
e.Message.getWrapperField(this, o.Timestamp, 3)
|
|
12410
|
+
);
|
|
12411
|
+
}, proto.viam.robot.v1.Status.prototype.setLastReconfigured = function(r) {
|
|
12412
|
+
return e.Message.setWrapperField(this, 3, r);
|
|
12413
|
+
}, proto.viam.robot.v1.Status.prototype.clearLastReconfigured = function() {
|
|
12414
|
+
return this.setLastReconfigured(void 0);
|
|
12415
|
+
}, proto.viam.robot.v1.Status.prototype.hasLastReconfigured = function() {
|
|
12416
|
+
return e.Message.getField(this, 3) != null;
|
|
12286
12417
|
}, proto.viam.robot.v1.GetStatusRequest.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.robot.v1.GetStatusRequest.prototype.toObject = function(r) {
|
|
12287
12418
|
return proto.viam.robot.v1.GetStatusRequest.toObject(r, this);
|
|
12288
12419
|
}, proto.viam.robot.v1.GetStatusRequest.toObject = function(r, u) {
|
|
@@ -20424,11 +20555,11 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20424
20555
|
case 0:
|
|
20425
20556
|
return D = "", z = function() {
|
|
20426
20557
|
return s.__awaiter(L, void 0, void 0, function() {
|
|
20427
|
-
var I, U, k, S, M, E, B, F,
|
|
20428
|
-
return s.__generator(this, function(
|
|
20429
|
-
switch (
|
|
20558
|
+
var I, U, k, S, M, E, B, F, P, O;
|
|
20559
|
+
return s.__generator(this, function(C) {
|
|
20560
|
+
switch (C.label) {
|
|
20430
20561
|
case 0:
|
|
20431
|
-
return D != "" ? [3, 5] : (I = "", T.accessToken && T.accessToken !== "" ? [3, 2] : ((B = new r.AuthenticateRequest()).setEntity(T.authEntity ? T.authEntity : R.replace(/^(.*:\/\/)/, "")), (S = new r.Credentials()).setType((
|
|
20562
|
+
return D != "" ? [3, 5] : (I = "", T.accessToken && T.accessToken !== "" ? [3, 2] : ((B = new r.AuthenticateRequest()).setEntity(T.authEntity ? T.authEntity : R.replace(/^(.*:\/\/)/, "")), (S = new r.Credentials()).setType((P = T.credentials) === null || P === void 0 ? void 0 : P.type), S.setPayload((O = T.credentials) === null || O === void 0 ? void 0 : O.payload), B.setCredentials(S), E = new Promise(function(A, W) {
|
|
20432
20563
|
U = A, k = W;
|
|
20433
20564
|
}), l.grpc.invoke(u.AuthService.Authenticate, { request: B, host: T.externalAuthAddress ? T.externalAuthAddress : R, transport: w, onMessage: function(A) {
|
|
20434
20565
|
I = A.getAccessToken();
|
|
@@ -20436,9 +20567,9 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20436
20567
|
A == l.grpc.Code.OK ? U(F) : k(W);
|
|
20437
20568
|
} }), [4, E]));
|
|
20438
20569
|
case 1:
|
|
20439
|
-
return
|
|
20570
|
+
return C.sent(), [3, 3];
|
|
20440
20571
|
case 2:
|
|
20441
|
-
I = T.accessToken,
|
|
20572
|
+
I = T.accessToken, C.label = 3;
|
|
20442
20573
|
case 3:
|
|
20443
20574
|
return D = I, T.externalAuthAddress && T.externalAuthToEntity ? ((M = new l.grpc.Metadata()).set("authorization", "Bearer ".concat(D)), E = new Promise(function(A, W) {
|
|
20444
20575
|
U = A, k = W;
|
|
@@ -20448,7 +20579,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20448
20579
|
A == l.grpc.Code.OK ? U(M) : k(W);
|
|
20449
20580
|
} }), [4, E]) : [3, 5];
|
|
20450
20581
|
case 4:
|
|
20451
|
-
|
|
20582
|
+
C.sent(), D = I, C.label = 5;
|
|
20452
20583
|
case 5:
|
|
20453
20584
|
return (F = new l.grpc.Metadata()).set("authorization", "Bearer ".concat(D)), [2, F];
|
|
20454
20585
|
}
|
|
@@ -20535,7 +20666,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20535
20666
|
e.dialWebRTC = function(R, w, T) {
|
|
20536
20667
|
var D, z, j, L, x, I, U, k;
|
|
20537
20668
|
return s.__awaiter(this, void 0, void 0, function() {
|
|
20538
|
-
var S, M, E, B, F,
|
|
20669
|
+
var S, M, E, B, F, P, O, C, A, W, _, G, H, Y, oe, le, re, ge, ae, ie, pe, ne, ce, se, de, ve, ue, me = this;
|
|
20539
20670
|
return s.__generator(this, function(J) {
|
|
20540
20671
|
switch (J.label) {
|
|
20541
20672
|
case 0:
|
|
@@ -20545,9 +20676,9 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20545
20676
|
return { urls: q.urlsList, credential: q.credential, username: q.username };
|
|
20546
20677
|
}), T || (T = {}), T.webrtcOptions ? (E = T.webrtcOptions).rtcConfig ? E.rtcConfig.iceServers = s.__spreadArray(s.__spreadArray([], E.rtcConfig.iceServers || [], !0), M, !0) : E.rtcConfig = { iceServers: M } : E = { disableTrickleICE: S.getDisableTrickle(), rtcConfig: { iceServers: M } }, [4, (0, m.newPeerConnectionForClient)(E !== void 0 && E.disableTrickleICE, E?.rtcConfig, E?.additionalSdpFields)];
|
|
20547
20678
|
case 2:
|
|
20548
|
-
B = J.sent(), F = B.pc,
|
|
20679
|
+
B = J.sent(), F = B.pc, P = B.dc, O = !1, J.label = 3;
|
|
20549
20680
|
case 3:
|
|
20550
|
-
return J.trys.push([3, , 10, 11]),
|
|
20681
|
+
return J.trys.push([3, , 10, 11]), C = T, T && (C = s.__assign({}, T), T.accessToken || (C.authEntity = (D = T?.webrtcOptions) === null || D === void 0 ? void 0 : D.signalingAuthEntity, C.authEntity || (C.externalAuthAddress ? C.authEntity = (z = T.externalAuthAddress) === null || z === void 0 ? void 0 : z.replace(/^(.*:\/\/)/, "") : C.authEntity = R.replace(/^(.*:\/\/)/, "")), C.credentials = (j = T?.webrtcOptions) === null || j === void 0 ? void 0 : j.signalingCredentials, C.accessToken = (L = T?.webrtcOptions) === null || L === void 0 ? void 0 : L.signalingAccessToken), C.externalAuthAddress = (x = T?.webrtcOptions) === null || x === void 0 ? void 0 : x.signalingExternalAuthAddress, C.externalAuthToEntity = (I = T?.webrtcOptions) === null || I === void 0 ? void 0 : I.signalingExternalAuthToEntity), [4, v(R, C)];
|
|
20551
20682
|
case 4:
|
|
20552
20683
|
return A = J.sent(), W = l.grpc.client(d.SignalingService.Call, { host: R, transport: A }), _ = "", G = !1, H = function(q) {
|
|
20553
20684
|
if (!G) {
|
|
@@ -20630,7 +20761,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20630
20761
|
pe = q, ne = N;
|
|
20631
20762
|
}), W.onEnd(function(q, N, $) {
|
|
20632
20763
|
q !== l.grpc.Code.OK ? N !== "Response closed without headers" ? (console.error(N), ne(N)) : ne(new p.ConnectionClosedError("failed to dial")) : pe();
|
|
20633
|
-
}), W.start({ "rpc-host": w }), se = new c.CallRequest(), de = (0, m.addSdpFields)(F.localDescription, (U = T.webrtcOptions) === null || U === void 0 ? void 0 : U.additionalSdpFields), ve = btoa(JSON.stringify(de)), se.setSdp(ve), E && E.disableTrickleICE && se.setDisableTrickle(E.disableTrickleICE), W.send(se), (ue = new g.ClientChannel(F,
|
|
20764
|
+
}), W.start({ "rpc-host": w }), se = new c.CallRequest(), de = (0, m.addSdpFields)(F.localDescription, (U = T.webrtcOptions) === null || U === void 0 ? void 0 : U.additionalSdpFields), ve = btoa(JSON.stringify(de)), se.setSdp(ve), E && E.disableTrickleICE && se.setDisableTrickle(E.disableTrickleICE), W.send(se), (ue = new g.ClientChannel(F, P)).ready.then(function() {
|
|
20634
20765
|
return pe();
|
|
20635
20766
|
}).catch(function(q) {
|
|
20636
20767
|
return ne(q);
|
|
@@ -20786,13 +20917,13 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20786
20917
|
return E;
|
|
20787
20918
|
}
|
|
20788
20919
|
function t(S, M, E, B) {
|
|
20789
|
-
var F,
|
|
20920
|
+
var F, P = arguments.length, O = P < 3 ? M : B === null ? B = Object.getOwnPropertyDescriptor(M, E) : B;
|
|
20790
20921
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
20791
20922
|
O = Reflect.decorate(S, M, E, B);
|
|
20792
20923
|
else
|
|
20793
|
-
for (var
|
|
20794
|
-
(F = S[
|
|
20795
|
-
return
|
|
20924
|
+
for (var C = S.length - 1; C >= 0; C--)
|
|
20925
|
+
(F = S[C]) && (O = (P < 3 ? F(O) : P > 3 ? F(M, E, O) : F(M, E)) || O);
|
|
20926
|
+
return P > 3 && O && Object.defineProperty(M, E, O), O;
|
|
20796
20927
|
}
|
|
20797
20928
|
function o(S, M) {
|
|
20798
20929
|
return function(E, B) {
|
|
@@ -20804,45 +20935,45 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20804
20935
|
return Reflect.metadata(S, M);
|
|
20805
20936
|
}
|
|
20806
20937
|
function u(S, M, E, B) {
|
|
20807
|
-
return new (E || (E = Promise))(function(F,
|
|
20938
|
+
return new (E || (E = Promise))(function(F, P) {
|
|
20808
20939
|
function O(W) {
|
|
20809
20940
|
try {
|
|
20810
20941
|
A(B.next(W));
|
|
20811
20942
|
} catch (_) {
|
|
20812
|
-
|
|
20943
|
+
P(_);
|
|
20813
20944
|
}
|
|
20814
20945
|
}
|
|
20815
|
-
function
|
|
20946
|
+
function C(W) {
|
|
20816
20947
|
try {
|
|
20817
20948
|
A(B.throw(W));
|
|
20818
20949
|
} catch (_) {
|
|
20819
|
-
|
|
20950
|
+
P(_);
|
|
20820
20951
|
}
|
|
20821
20952
|
}
|
|
20822
20953
|
function A(W) {
|
|
20823
20954
|
var _;
|
|
20824
20955
|
W.done ? F(W.value) : (_ = W.value, _ instanceof E ? _ : new E(function(G) {
|
|
20825
20956
|
G(_);
|
|
20826
|
-
})).then(O,
|
|
20957
|
+
})).then(O, C);
|
|
20827
20958
|
}
|
|
20828
20959
|
A((B = B.apply(S, M || [])).next());
|
|
20829
20960
|
});
|
|
20830
20961
|
}
|
|
20831
20962
|
function c(S, M) {
|
|
20832
|
-
var E, B, F,
|
|
20963
|
+
var E, B, F, P, O = { label: 0, sent: function() {
|
|
20833
20964
|
if (1 & F[0])
|
|
20834
20965
|
throw F[1];
|
|
20835
20966
|
return F[1];
|
|
20836
20967
|
}, trys: [], ops: [] };
|
|
20837
|
-
return
|
|
20968
|
+
return P = { next: C(0), throw: C(1), return: C(2) }, typeof Symbol == "function" && (P[Symbol.iterator] = function() {
|
|
20838
20969
|
return this;
|
|
20839
|
-
}),
|
|
20840
|
-
function
|
|
20970
|
+
}), P;
|
|
20971
|
+
function C(A) {
|
|
20841
20972
|
return function(W) {
|
|
20842
20973
|
return function(_) {
|
|
20843
20974
|
if (E)
|
|
20844
20975
|
throw new TypeError("Generator is already executing.");
|
|
20845
|
-
for (;
|
|
20976
|
+
for (; P && (P = 0, _[0] && (O = 0)), O; )
|
|
20846
20977
|
try {
|
|
20847
20978
|
if (E = 1, B && (F = 2 & _[0] ? B.return : _[0] ? B.throw || ((F = B.return) && F.call(B), 0) : B.next) && !(F = F.call(B, _[1])).done)
|
|
20848
20979
|
return F;
|
|
@@ -20919,15 +21050,15 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20919
21050
|
var E = typeof Symbol == "function" && S[Symbol.iterator];
|
|
20920
21051
|
if (!E)
|
|
20921
21052
|
return S;
|
|
20922
|
-
var B, F,
|
|
21053
|
+
var B, F, P = E.call(S), O = [];
|
|
20923
21054
|
try {
|
|
20924
|
-
for (; (M === void 0 || M-- > 0) && !(B =
|
|
21055
|
+
for (; (M === void 0 || M-- > 0) && !(B = P.next()).done; )
|
|
20925
21056
|
O.push(B.value);
|
|
20926
|
-
} catch (
|
|
20927
|
-
F = { error:
|
|
21057
|
+
} catch (C) {
|
|
21058
|
+
F = { error: C };
|
|
20928
21059
|
} finally {
|
|
20929
21060
|
try {
|
|
20930
|
-
B && !B.done && (E =
|
|
21061
|
+
B && !B.done && (E = P.return) && E.call(P);
|
|
20931
21062
|
} finally {
|
|
20932
21063
|
if (F)
|
|
20933
21064
|
throw F.error;
|
|
@@ -20945,13 +21076,13 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20945
21076
|
S += arguments[M].length;
|
|
20946
21077
|
var B = Array(S), F = 0;
|
|
20947
21078
|
for (M = 0; M < E; M++)
|
|
20948
|
-
for (var
|
|
20949
|
-
B[F] =
|
|
21079
|
+
for (var P = arguments[M], O = 0, C = P.length; O < C; O++, F++)
|
|
21080
|
+
B[F] = P[O];
|
|
20950
21081
|
return B;
|
|
20951
21082
|
}
|
|
20952
21083
|
function h(S, M, E) {
|
|
20953
21084
|
if (E || arguments.length === 2)
|
|
20954
|
-
for (var B, F = 0,
|
|
21085
|
+
for (var B, F = 0, P = M.length; F < P; F++)
|
|
20955
21086
|
!B && F in M || (B || (B = Array.prototype.slice.call(M, 0, F)), B[F] = M[F]);
|
|
20956
21087
|
return S.concat(B || Array.prototype.slice.call(M));
|
|
20957
21088
|
}
|
|
@@ -20961,33 +21092,33 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20961
21092
|
function w(S, M, E) {
|
|
20962
21093
|
if (!Symbol.asyncIterator)
|
|
20963
21094
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
20964
|
-
var B, F = E.apply(S, M || []),
|
|
21095
|
+
var B, F = E.apply(S, M || []), P = [];
|
|
20965
21096
|
return B = {}, O("next"), O("throw"), O("return"), B[Symbol.asyncIterator] = function() {
|
|
20966
21097
|
return this;
|
|
20967
21098
|
}, B;
|
|
20968
21099
|
function O(G) {
|
|
20969
21100
|
F[G] && (B[G] = function(H) {
|
|
20970
21101
|
return new Promise(function(Y, oe) {
|
|
20971
|
-
|
|
21102
|
+
P.push([G, H, Y, oe]) > 1 || C(G, H);
|
|
20972
21103
|
});
|
|
20973
21104
|
});
|
|
20974
21105
|
}
|
|
20975
|
-
function
|
|
21106
|
+
function C(G, H) {
|
|
20976
21107
|
try {
|
|
20977
|
-
(Y = F[G](H)).value instanceof R ? Promise.resolve(Y.value.v).then(A, W) : _(
|
|
21108
|
+
(Y = F[G](H)).value instanceof R ? Promise.resolve(Y.value.v).then(A, W) : _(P[0][2], Y);
|
|
20978
21109
|
} catch (oe) {
|
|
20979
|
-
_(
|
|
21110
|
+
_(P[0][3], oe);
|
|
20980
21111
|
}
|
|
20981
21112
|
var Y;
|
|
20982
21113
|
}
|
|
20983
21114
|
function A(G) {
|
|
20984
|
-
|
|
21115
|
+
C("next", G);
|
|
20985
21116
|
}
|
|
20986
21117
|
function W(G) {
|
|
20987
|
-
|
|
21118
|
+
C("throw", G);
|
|
20988
21119
|
}
|
|
20989
21120
|
function _(G, H) {
|
|
20990
|
-
G(H),
|
|
21121
|
+
G(H), P.shift(), P.length && C(P[0][0], P[0][1]);
|
|
20991
21122
|
}
|
|
20992
21123
|
}
|
|
20993
21124
|
function T(S) {
|
|
@@ -20997,10 +21128,10 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20997
21128
|
}), B("return"), M[Symbol.iterator] = function() {
|
|
20998
21129
|
return this;
|
|
20999
21130
|
}, M;
|
|
21000
|
-
function B(F,
|
|
21131
|
+
function B(F, P) {
|
|
21001
21132
|
M[F] = S[F] ? function(O) {
|
|
21002
|
-
return (E = !E) ? { value: R(S[F](O)), done: F === "return" } :
|
|
21003
|
-
} :
|
|
21133
|
+
return (E = !E) ? { value: R(S[F](O)), done: F === "return" } : P ? P(O) : O;
|
|
21134
|
+
} : P;
|
|
21004
21135
|
}
|
|
21005
21136
|
}
|
|
21006
21137
|
function D(S) {
|
|
@@ -21011,13 +21142,13 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
21011
21142
|
return this;
|
|
21012
21143
|
}, M);
|
|
21013
21144
|
function B(F) {
|
|
21014
|
-
M[F] = S[F] && function(
|
|
21015
|
-
return new Promise(function(O,
|
|
21145
|
+
M[F] = S[F] && function(P) {
|
|
21146
|
+
return new Promise(function(O, C) {
|
|
21016
21147
|
(function(A, W, _, G) {
|
|
21017
21148
|
Promise.resolve(G).then(function(H) {
|
|
21018
21149
|
A({ value: H, done: _ });
|
|
21019
21150
|
}, W);
|
|
21020
|
-
})(O,
|
|
21151
|
+
})(O, C, (P = S[F](P)).done, P.value);
|
|
21021
21152
|
});
|
|
21022
21153
|
};
|
|
21023
21154
|
}
|
|
@@ -24614,7 +24745,7 @@ var arm_pb = {};
|
|
|
24614
24745
|
return e.Message.setProto3BooleanField(this, 1, t);
|
|
24615
24746
|
}, n.object.extend(i, proto.viam.component.arm.v1);
|
|
24616
24747
|
})(arm_pb);
|
|
24617
|
-
var component_arm_v1_arm_pb = arm_pb, common_v1_common_pb$
|
|
24748
|
+
var component_arm_v1_arm_pb = arm_pb, common_v1_common_pb$l = common_pb, grpc$p = grpcWebClient_umdExports$1.grpc, ArmService = function() {
|
|
24618
24749
|
function i() {
|
|
24619
24750
|
}
|
|
24620
24751
|
return i.serviceName = "viam.component.arm.v1.ArmService", i;
|
|
@@ -24672,24 +24803,24 @@ ArmService.DoCommand = {
|
|
|
24672
24803
|
service: ArmService,
|
|
24673
24804
|
requestStream: !1,
|
|
24674
24805
|
responseStream: !1,
|
|
24675
|
-
requestType: common_v1_common_pb$
|
|
24676
|
-
responseType: common_v1_common_pb$
|
|
24806
|
+
requestType: common_v1_common_pb$l.DoCommandRequest,
|
|
24807
|
+
responseType: common_v1_common_pb$l.DoCommandResponse
|
|
24677
24808
|
};
|
|
24678
24809
|
ArmService.GetKinematics = {
|
|
24679
24810
|
methodName: "GetKinematics",
|
|
24680
24811
|
service: ArmService,
|
|
24681
24812
|
requestStream: !1,
|
|
24682
24813
|
responseStream: !1,
|
|
24683
|
-
requestType: common_v1_common_pb$
|
|
24684
|
-
responseType: common_v1_common_pb$
|
|
24814
|
+
requestType: common_v1_common_pb$l.GetKinematicsRequest,
|
|
24815
|
+
responseType: common_v1_common_pb$l.GetKinematicsResponse
|
|
24685
24816
|
};
|
|
24686
24817
|
ArmService.GetGeometries = {
|
|
24687
24818
|
methodName: "GetGeometries",
|
|
24688
24819
|
service: ArmService,
|
|
24689
24820
|
requestStream: !1,
|
|
24690
24821
|
responseStream: !1,
|
|
24691
|
-
requestType: common_v1_common_pb$
|
|
24692
|
-
responseType: common_v1_common_pb$
|
|
24822
|
+
requestType: common_v1_common_pb$l.GetGeometriesRequest,
|
|
24823
|
+
responseType: common_v1_common_pb$l.GetGeometriesResponse
|
|
24693
24824
|
};
|
|
24694
24825
|
function ArmServiceClient(i, e) {
|
|
24695
24826
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -25745,7 +25876,7 @@ var ArmServiceClient_1 = ArmServiceClient, base_pb = {};
|
|
|
25745
25876
|
return e.Message.setProto3FloatField(this, 3, t);
|
|
25746
25877
|
}, n.object.extend(i, proto.viam.component.base.v1);
|
|
25747
25878
|
})(base_pb);
|
|
25748
|
-
var component_base_v1_base_pb = base_pb, common_v1_common_pb$
|
|
25879
|
+
var component_base_v1_base_pb = base_pb, common_v1_common_pb$k = common_pb, grpc$o = grpcWebClient_umdExports$1.grpc, BaseService = function() {
|
|
25749
25880
|
function i() {
|
|
25750
25881
|
}
|
|
25751
25882
|
return i.serviceName = "viam.component.base.v1.BaseService", i;
|
|
@@ -25803,16 +25934,16 @@ BaseService.DoCommand = {
|
|
|
25803
25934
|
service: BaseService,
|
|
25804
25935
|
requestStream: !1,
|
|
25805
25936
|
responseStream: !1,
|
|
25806
|
-
requestType: common_v1_common_pb$
|
|
25807
|
-
responseType: common_v1_common_pb$
|
|
25937
|
+
requestType: common_v1_common_pb$k.DoCommandRequest,
|
|
25938
|
+
responseType: common_v1_common_pb$k.DoCommandResponse
|
|
25808
25939
|
};
|
|
25809
25940
|
BaseService.GetGeometries = {
|
|
25810
25941
|
methodName: "GetGeometries",
|
|
25811
25942
|
service: BaseService,
|
|
25812
25943
|
requestStream: !1,
|
|
25813
25944
|
responseStream: !1,
|
|
25814
|
-
requestType: common_v1_common_pb$
|
|
25815
|
-
responseType: common_v1_common_pb$
|
|
25945
|
+
requestType: common_v1_common_pb$k.GetGeometriesRequest,
|
|
25946
|
+
responseType: common_v1_common_pb$k.GetGeometriesResponse
|
|
25816
25947
|
};
|
|
25817
25948
|
BaseService.GetProperties = {
|
|
25818
25949
|
methodName: "GetProperties",
|
|
@@ -27428,7 +27559,7 @@ var BaseServiceClient_1 = BaseServiceClient, board_pb = {};
|
|
|
27428
27559
|
POWER_MODE_OFFLINE_DEEP: 2
|
|
27429
27560
|
}, n.object.extend(i, proto.viam.component.board.v1);
|
|
27430
27561
|
})(board_pb);
|
|
27431
|
-
var component_board_v1_board_pb = board_pb, common_v1_common_pb$
|
|
27562
|
+
var component_board_v1_board_pb = board_pb, common_v1_common_pb$j = common_pb, grpc$n = grpcWebClient_umdExports$1.grpc, BoardService = function() {
|
|
27432
27563
|
function i() {
|
|
27433
27564
|
}
|
|
27434
27565
|
return i.serviceName = "viam.component.board.v1.BoardService", i;
|
|
@@ -27494,8 +27625,8 @@ BoardService.DoCommand = {
|
|
|
27494
27625
|
service: BoardService,
|
|
27495
27626
|
requestStream: !1,
|
|
27496
27627
|
responseStream: !1,
|
|
27497
|
-
requestType: common_v1_common_pb$
|
|
27498
|
-
responseType: common_v1_common_pb$
|
|
27628
|
+
requestType: common_v1_common_pb$j.DoCommandRequest,
|
|
27629
|
+
responseType: common_v1_common_pb$j.DoCommandResponse
|
|
27499
27630
|
};
|
|
27500
27631
|
BoardService.ReadAnalogReader = {
|
|
27501
27632
|
methodName: "ReadAnalogReader",
|
|
@@ -27534,8 +27665,8 @@ BoardService.GetGeometries = {
|
|
|
27534
27665
|
service: BoardService,
|
|
27535
27666
|
requestStream: !1,
|
|
27536
27667
|
responseStream: !1,
|
|
27537
|
-
requestType: common_v1_common_pb$
|
|
27538
|
-
responseType: common_v1_common_pb$
|
|
27668
|
+
requestType: common_v1_common_pb$j.GetGeometriesRequest,
|
|
27669
|
+
responseType: common_v1_common_pb$j.GetGeometriesResponse
|
|
27539
27670
|
};
|
|
27540
27671
|
function BoardServiceClient(i, e) {
|
|
27541
27672
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -28222,7 +28353,7 @@ var BoardServiceClient_1 = BoardServiceClient, encoder_pb = {};
|
|
|
28222
28353
|
POSITION_TYPE_ANGLE_DEGREES: 2
|
|
28223
28354
|
}, n.object.extend(i, proto.viam.component.encoder.v1);
|
|
28224
28355
|
})(encoder_pb);
|
|
28225
|
-
var component_encoder_v1_encoder_pb = encoder_pb, common_v1_common_pb$
|
|
28356
|
+
var component_encoder_v1_encoder_pb = encoder_pb, common_v1_common_pb$i = common_pb, grpc$m = grpcWebClient_umdExports$1.grpc, EncoderService = function() {
|
|
28226
28357
|
function i() {
|
|
28227
28358
|
}
|
|
28228
28359
|
return i.serviceName = "viam.component.encoder.v1.EncoderService", i;
|
|
@@ -28256,16 +28387,16 @@ EncoderService.DoCommand = {
|
|
|
28256
28387
|
service: EncoderService,
|
|
28257
28388
|
requestStream: !1,
|
|
28258
28389
|
responseStream: !1,
|
|
28259
|
-
requestType: common_v1_common_pb$
|
|
28260
|
-
responseType: common_v1_common_pb$
|
|
28390
|
+
requestType: common_v1_common_pb$i.DoCommandRequest,
|
|
28391
|
+
responseType: common_v1_common_pb$i.DoCommandResponse
|
|
28261
28392
|
};
|
|
28262
28393
|
EncoderService.GetGeometries = {
|
|
28263
28394
|
methodName: "GetGeometries",
|
|
28264
28395
|
service: EncoderService,
|
|
28265
28396
|
requestStream: !1,
|
|
28266
28397
|
responseStream: !1,
|
|
28267
|
-
requestType: common_v1_common_pb$
|
|
28268
|
-
responseType: common_v1_common_pb$
|
|
28398
|
+
requestType: common_v1_common_pb$i.GetGeometriesRequest,
|
|
28399
|
+
responseType: common_v1_common_pb$i.GetGeometriesResponse
|
|
28269
28400
|
};
|
|
28270
28401
|
function EncoderServiceClient(i, e) {
|
|
28271
28402
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -29135,7 +29266,7 @@ var EncoderServiceClient_1 = EncoderServiceClient, gantry_pb = {};
|
|
|
29135
29266
|
return e.Message.setProto3BooleanField(this, 1, t);
|
|
29136
29267
|
}, n.object.extend(i, proto.viam.component.gantry.v1);
|
|
29137
29268
|
})(gantry_pb);
|
|
29138
|
-
var component_gantry_v1_gantry_pb = gantry_pb, common_v1_common_pb$
|
|
29269
|
+
var component_gantry_v1_gantry_pb = gantry_pb, common_v1_common_pb$h = common_pb, grpc$l = grpcWebClient_umdExports$1.grpc, GantryService = function() {
|
|
29139
29270
|
function i() {
|
|
29140
29271
|
}
|
|
29141
29272
|
return i.serviceName = "viam.component.gantry.v1.GantryService", i;
|
|
@@ -29193,16 +29324,16 @@ GantryService.DoCommand = {
|
|
|
29193
29324
|
service: GantryService,
|
|
29194
29325
|
requestStream: !1,
|
|
29195
29326
|
responseStream: !1,
|
|
29196
|
-
requestType: common_v1_common_pb$
|
|
29197
|
-
responseType: common_v1_common_pb$
|
|
29327
|
+
requestType: common_v1_common_pb$h.DoCommandRequest,
|
|
29328
|
+
responseType: common_v1_common_pb$h.DoCommandResponse
|
|
29198
29329
|
};
|
|
29199
29330
|
GantryService.GetGeometries = {
|
|
29200
29331
|
methodName: "GetGeometries",
|
|
29201
29332
|
service: GantryService,
|
|
29202
29333
|
requestStream: !1,
|
|
29203
29334
|
responseStream: !1,
|
|
29204
|
-
requestType: common_v1_common_pb$
|
|
29205
|
-
responseType: common_v1_common_pb$
|
|
29335
|
+
requestType: common_v1_common_pb$h.GetGeometriesRequest,
|
|
29336
|
+
responseType: common_v1_common_pb$h.GetGeometriesResponse
|
|
29206
29337
|
};
|
|
29207
29338
|
function GantryServiceClient(i, e) {
|
|
29208
29339
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -29391,13 +29522,13 @@ GantryServiceClient.prototype.getGeometries = function i(e, n, s) {
|
|
|
29391
29522
|
}
|
|
29392
29523
|
};
|
|
29393
29524
|
};
|
|
29394
|
-
var GantryServiceClient_1 = GantryServiceClient, generic_pb = {}, jspb = googleProtobuf, goog = jspb, global$
|
|
29525
|
+
var GantryServiceClient_1 = GantryServiceClient, generic_pb = {}, jspb$1 = googleProtobuf, goog$1 = jspb$1, global$2 = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof global$2 < "u" && global$2 || typeof self < "u" && self || function() {
|
|
29395
29526
|
return this;
|
|
29396
|
-
}.call(null) || Function("return this")(), common_v1_common_pb$
|
|
29397
|
-
goog.object.extend(proto, common_v1_common_pb$
|
|
29398
|
-
var google_api_annotations_pb = annotations_pb$1;
|
|
29399
|
-
goog.object.extend(proto, google_api_annotations_pb);
|
|
29400
|
-
var common_v1_common_pb$
|
|
29527
|
+
}.call(null) || Function("return this")(), common_v1_common_pb$g = common_pb;
|
|
29528
|
+
goog$1.object.extend(proto, common_v1_common_pb$g);
|
|
29529
|
+
var google_api_annotations_pb$1 = annotations_pb$1;
|
|
29530
|
+
goog$1.object.extend(proto, google_api_annotations_pb$1);
|
|
29531
|
+
var common_v1_common_pb$f = common_pb, grpc$k = grpcWebClient_umdExports$1.grpc, GenericService = function() {
|
|
29401
29532
|
function i() {
|
|
29402
29533
|
}
|
|
29403
29534
|
return i.serviceName = "viam.component.generic.v1.GenericService", i;
|
|
@@ -29407,16 +29538,16 @@ GenericService.DoCommand = {
|
|
|
29407
29538
|
service: GenericService,
|
|
29408
29539
|
requestStream: !1,
|
|
29409
29540
|
responseStream: !1,
|
|
29410
|
-
requestType: common_v1_common_pb$
|
|
29411
|
-
responseType: common_v1_common_pb$
|
|
29541
|
+
requestType: common_v1_common_pb$f.DoCommandRequest,
|
|
29542
|
+
responseType: common_v1_common_pb$f.DoCommandResponse
|
|
29412
29543
|
};
|
|
29413
29544
|
GenericService.GetGeometries = {
|
|
29414
29545
|
methodName: "GetGeometries",
|
|
29415
29546
|
service: GenericService,
|
|
29416
29547
|
requestStream: !1,
|
|
29417
29548
|
responseStream: !1,
|
|
29418
|
-
requestType: common_v1_common_pb$
|
|
29419
|
-
responseType: common_v1_common_pb$
|
|
29549
|
+
requestType: common_v1_common_pb$f.GetGeometriesRequest,
|
|
29550
|
+
responseType: common_v1_common_pb$f.GetGeometriesResponse
|
|
29420
29551
|
};
|
|
29421
29552
|
function GenericServiceClient(i, e) {
|
|
29422
29553
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -29876,7 +30007,7 @@ var GenericServiceClient_1 = GenericServiceClient, gripper_pb = {};
|
|
|
29876
30007
|
return e.Message.setProto3BooleanField(this, 1, t);
|
|
29877
30008
|
}, n.object.extend(i, proto.viam.component.gripper.v1);
|
|
29878
30009
|
})(gripper_pb);
|
|
29879
|
-
var component_gripper_v1_gripper_pb = gripper_pb, common_v1_common_pb$
|
|
30010
|
+
var component_gripper_v1_gripper_pb = gripper_pb, common_v1_common_pb$e = common_pb, grpc$j = grpcWebClient_umdExports$1.grpc, GripperService = function() {
|
|
29880
30011
|
function i() {
|
|
29881
30012
|
}
|
|
29882
30013
|
return i.serviceName = "viam.component.gripper.v1.GripperService", i;
|
|
@@ -29918,16 +30049,16 @@ GripperService.DoCommand = {
|
|
|
29918
30049
|
service: GripperService,
|
|
29919
30050
|
requestStream: !1,
|
|
29920
30051
|
responseStream: !1,
|
|
29921
|
-
requestType: common_v1_common_pb$
|
|
29922
|
-
responseType: common_v1_common_pb$
|
|
30052
|
+
requestType: common_v1_common_pb$e.DoCommandRequest,
|
|
30053
|
+
responseType: common_v1_common_pb$e.DoCommandResponse
|
|
29923
30054
|
};
|
|
29924
30055
|
GripperService.GetGeometries = {
|
|
29925
30056
|
methodName: "GetGeometries",
|
|
29926
30057
|
service: GripperService,
|
|
29927
30058
|
requestStream: !1,
|
|
29928
30059
|
responseStream: !1,
|
|
29929
|
-
requestType: common_v1_common_pb$
|
|
29930
|
-
responseType: common_v1_common_pb$
|
|
30060
|
+
requestType: common_v1_common_pb$e.GetGeometriesRequest,
|
|
30061
|
+
responseType: common_v1_common_pb$e.GetGeometriesResponse
|
|
29931
30062
|
};
|
|
29932
30063
|
function GripperServiceClient(i, e) {
|
|
29933
30064
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -30799,7 +30930,7 @@ var GripperServiceClient_1 = GripperServiceClient, input_controller_pb = {};
|
|
|
30799
30930
|
return this.setEventsList([]);
|
|
30800
30931
|
}, n.object.extend(i, proto.viam.component.inputcontroller.v1);
|
|
30801
30932
|
})(input_controller_pb);
|
|
30802
|
-
var component_inputcontroller_v1_input_controller_pb = input_controller_pb, common_v1_common_pb$
|
|
30933
|
+
var component_inputcontroller_v1_input_controller_pb = input_controller_pb, common_v1_common_pb$d = common_pb, grpc$i = grpcWebClient_umdExports$1.grpc, InputControllerService = function() {
|
|
30803
30934
|
function i() {
|
|
30804
30935
|
}
|
|
30805
30936
|
return i.serviceName = "viam.component.inputcontroller.v1.InputControllerService", i;
|
|
@@ -30841,16 +30972,16 @@ InputControllerService.DoCommand = {
|
|
|
30841
30972
|
service: InputControllerService,
|
|
30842
30973
|
requestStream: !1,
|
|
30843
30974
|
responseStream: !1,
|
|
30844
|
-
requestType: common_v1_common_pb$
|
|
30845
|
-
responseType: common_v1_common_pb$
|
|
30975
|
+
requestType: common_v1_common_pb$d.DoCommandRequest,
|
|
30976
|
+
responseType: common_v1_common_pb$d.DoCommandResponse
|
|
30846
30977
|
};
|
|
30847
30978
|
InputControllerService.GetGeometries = {
|
|
30848
30979
|
methodName: "GetGeometries",
|
|
30849
30980
|
service: InputControllerService,
|
|
30850
30981
|
requestStream: !1,
|
|
30851
30982
|
responseStream: !1,
|
|
30852
|
-
requestType: common_v1_common_pb$
|
|
30853
|
-
responseType: common_v1_common_pb$
|
|
30983
|
+
requestType: common_v1_common_pb$d.GetGeometriesRequest,
|
|
30984
|
+
responseType: common_v1_common_pb$d.GetGeometriesResponse
|
|
30854
30985
|
};
|
|
30855
30986
|
function InputControllerServiceClient(i, e) {
|
|
30856
30987
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -31014,7 +31145,7 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
31014
31145
|
var p = struct_pb;
|
|
31015
31146
|
n.object.extend(proto, p);
|
|
31016
31147
|
var t = timestamp_pb;
|
|
31017
|
-
n.object.extend(proto, t), n.exportSymbol("proto.viam.service.motion.v1.CollisionSpecification", null, s), n.exportSymbol("proto.viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions", null, s), n.exportSymbol("proto.viam.service.motion.v1.ComponentState", null, s), n.exportSymbol("proto.viam.service.motion.v1.Constraints", null, s), n.exportSymbol("proto.viam.service.motion.v1.GetPlanRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.GetPlanResponse", null, s), n.exportSymbol("proto.viam.service.motion.v1.GetPoseRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.GetPoseResponse", null, s), n.exportSymbol("proto.viam.service.motion.v1.LinearConstraint", null, s), n.exportSymbol("proto.viam.service.motion.v1.ListPlanStatusesRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.ListPlanStatusesResponse", null, s), n.exportSymbol("proto.viam.service.motion.v1.MotionConfiguration", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveOnGlobeNewRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveOnGlobeNewResponse", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveOnGlobeRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveOnGlobeResponse", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveOnMapRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveOnMapResponse", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveResponse", null, s), n.exportSymbol("proto.viam.service.motion.v1.OrientationConstraint", null, s), n.exportSymbol("proto.viam.service.motion.v1.Plan", null, s), n.exportSymbol("proto.viam.service.motion.v1.PlanState", null, s), n.exportSymbol("proto.viam.service.motion.v1.PlanStatus", null, s), n.exportSymbol("proto.viam.service.motion.v1.PlanStatusWithID", null, s), n.exportSymbol("proto.viam.service.motion.v1.PlanStep", null, s), n.exportSymbol("proto.viam.service.motion.v1.PlanWithStatus", null, s), n.exportSymbol("proto.viam.service.motion.v1.StopPlanRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.StopPlanResponse", null, s), proto.viam.service.motion.v1.MoveRequest = function(o) {
|
|
31148
|
+
n.object.extend(proto, t), n.exportSymbol("proto.viam.service.motion.v1.CollisionSpecification", null, s), n.exportSymbol("proto.viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions", null, s), n.exportSymbol("proto.viam.service.motion.v1.ComponentState", null, s), n.exportSymbol("proto.viam.service.motion.v1.Constraints", null, s), n.exportSymbol("proto.viam.service.motion.v1.GetPlanRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.GetPlanResponse", null, s), n.exportSymbol("proto.viam.service.motion.v1.GetPoseRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.GetPoseResponse", null, s), n.exportSymbol("proto.viam.service.motion.v1.LinearConstraint", null, s), n.exportSymbol("proto.viam.service.motion.v1.ListPlanStatusesRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.ListPlanStatusesResponse", null, s), n.exportSymbol("proto.viam.service.motion.v1.MotionConfiguration", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveOnGlobeNewRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveOnGlobeNewResponse", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveOnGlobeRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveOnGlobeResponse", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveOnMapRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveOnMapResponse", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.MoveResponse", null, s), n.exportSymbol("proto.viam.service.motion.v1.ObstacleDetector", null, s), n.exportSymbol("proto.viam.service.motion.v1.OrientationConstraint", null, s), n.exportSymbol("proto.viam.service.motion.v1.Plan", null, s), n.exportSymbol("proto.viam.service.motion.v1.PlanState", null, s), n.exportSymbol("proto.viam.service.motion.v1.PlanStatus", null, s), n.exportSymbol("proto.viam.service.motion.v1.PlanStatusWithID", null, s), n.exportSymbol("proto.viam.service.motion.v1.PlanStep", null, s), n.exportSymbol("proto.viam.service.motion.v1.PlanWithStatus", null, s), n.exportSymbol("proto.viam.service.motion.v1.StopPlanRequest", null, s), n.exportSymbol("proto.viam.service.motion.v1.StopPlanResponse", null, s), proto.viam.service.motion.v1.MoveRequest = function(o) {
|
|
31018
31149
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
31019
31150
|
}, n.inherits(proto.viam.service.motion.v1.MoveRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveRequest.displayName = "proto.viam.service.motion.v1.MoveRequest"), proto.viam.service.motion.v1.MoveResponse = function(o) {
|
|
31020
31151
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
@@ -31022,7 +31153,9 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
31022
31153
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
31023
31154
|
}, n.inherits(proto.viam.service.motion.v1.MoveOnMapRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveOnMapRequest.displayName = "proto.viam.service.motion.v1.MoveOnMapRequest"), proto.viam.service.motion.v1.MoveOnMapResponse = function(o) {
|
|
31024
31155
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
31025
|
-
}, n.inherits(proto.viam.service.motion.v1.MoveOnMapResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveOnMapResponse.displayName = "proto.viam.service.motion.v1.MoveOnMapResponse"), proto.viam.service.motion.v1.
|
|
31156
|
+
}, n.inherits(proto.viam.service.motion.v1.MoveOnMapResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveOnMapResponse.displayName = "proto.viam.service.motion.v1.MoveOnMapResponse"), proto.viam.service.motion.v1.ObstacleDetector = function(o) {
|
|
31157
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
31158
|
+
}, n.inherits(proto.viam.service.motion.v1.ObstacleDetector, e.Message), n.DEBUG && !COMPILED && (proto.viam.service.motion.v1.ObstacleDetector.displayName = "proto.viam.service.motion.v1.ObstacleDetector"), proto.viam.service.motion.v1.MotionConfiguration = function(o) {
|
|
31026
31159
|
e.Message.initialize(this, o, 0, -1, proto.viam.service.motion.v1.MotionConfiguration.repeatedFields_, null);
|
|
31027
31160
|
}, n.inherits(proto.viam.service.motion.v1.MotionConfiguration, e.Message), n.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MotionConfiguration.displayName = "proto.viam.service.motion.v1.MotionConfiguration"), proto.viam.service.motion.v1.MoveOnGlobeRequest = function(o) {
|
|
31028
31161
|
e.Message.initialize(this, o, 0, -1, proto.viam.service.motion.v1.MoveOnGlobeRequest.repeatedFields_, null);
|
|
@@ -31422,13 +31555,78 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
31422
31555
|
);
|
|
31423
31556
|
}, proto.viam.service.motion.v1.MoveOnMapResponse.prototype.setSuccess = function(o) {
|
|
31424
31557
|
return e.Message.setProto3BooleanField(this, 1, o);
|
|
31558
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.motion.v1.ObstacleDetector.prototype.toObject = function(o) {
|
|
31559
|
+
return proto.viam.service.motion.v1.ObstacleDetector.toObject(o, this);
|
|
31560
|
+
}, proto.viam.service.motion.v1.ObstacleDetector.toObject = function(o, r) {
|
|
31561
|
+
var u, c = {
|
|
31562
|
+
visionService: (u = r.getVisionService()) && l.ResourceName.toObject(o, u),
|
|
31563
|
+
camera: (u = r.getCamera()) && l.ResourceName.toObject(o, u)
|
|
31564
|
+
};
|
|
31565
|
+
return o && (c.$jspbMessageInstance = r), c;
|
|
31566
|
+
}), proto.viam.service.motion.v1.ObstacleDetector.deserializeBinary = function(o) {
|
|
31567
|
+
var r = new e.BinaryReader(o), u = new proto.viam.service.motion.v1.ObstacleDetector();
|
|
31568
|
+
return proto.viam.service.motion.v1.ObstacleDetector.deserializeBinaryFromReader(u, r);
|
|
31569
|
+
}, proto.viam.service.motion.v1.ObstacleDetector.deserializeBinaryFromReader = function(o, r) {
|
|
31570
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
31571
|
+
var u = r.getFieldNumber();
|
|
31572
|
+
switch (u) {
|
|
31573
|
+
case 1:
|
|
31574
|
+
var c = new l.ResourceName();
|
|
31575
|
+
r.readMessage(c, l.ResourceName.deserializeBinaryFromReader), o.setVisionService(c);
|
|
31576
|
+
break;
|
|
31577
|
+
case 2:
|
|
31578
|
+
var c = new l.ResourceName();
|
|
31579
|
+
r.readMessage(c, l.ResourceName.deserializeBinaryFromReader), o.setCamera(c);
|
|
31580
|
+
break;
|
|
31581
|
+
default:
|
|
31582
|
+
r.skipField();
|
|
31583
|
+
break;
|
|
31584
|
+
}
|
|
31585
|
+
}
|
|
31586
|
+
return o;
|
|
31587
|
+
}, proto.viam.service.motion.v1.ObstacleDetector.prototype.serializeBinary = function() {
|
|
31588
|
+
var o = new e.BinaryWriter();
|
|
31589
|
+
return proto.viam.service.motion.v1.ObstacleDetector.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
31590
|
+
}, proto.viam.service.motion.v1.ObstacleDetector.serializeBinaryToWriter = function(o, r) {
|
|
31591
|
+
var u = void 0;
|
|
31592
|
+
u = o.getVisionService(), u != null && r.writeMessage(
|
|
31593
|
+
1,
|
|
31594
|
+
u,
|
|
31595
|
+
l.ResourceName.serializeBinaryToWriter
|
|
31596
|
+
), u = o.getCamera(), u != null && r.writeMessage(
|
|
31597
|
+
2,
|
|
31598
|
+
u,
|
|
31599
|
+
l.ResourceName.serializeBinaryToWriter
|
|
31600
|
+
);
|
|
31601
|
+
}, proto.viam.service.motion.v1.ObstacleDetector.prototype.getVisionService = function() {
|
|
31602
|
+
return (
|
|
31603
|
+
/** @type{?proto.viam.common.v1.ResourceName} */
|
|
31604
|
+
e.Message.getWrapperField(this, l.ResourceName, 1)
|
|
31605
|
+
);
|
|
31606
|
+
}, proto.viam.service.motion.v1.ObstacleDetector.prototype.setVisionService = function(o) {
|
|
31607
|
+
return e.Message.setWrapperField(this, 1, o);
|
|
31608
|
+
}, proto.viam.service.motion.v1.ObstacleDetector.prototype.clearVisionService = function() {
|
|
31609
|
+
return this.setVisionService(void 0);
|
|
31610
|
+
}, proto.viam.service.motion.v1.ObstacleDetector.prototype.hasVisionService = function() {
|
|
31611
|
+
return e.Message.getField(this, 1) != null;
|
|
31612
|
+
}, proto.viam.service.motion.v1.ObstacleDetector.prototype.getCamera = function() {
|
|
31613
|
+
return (
|
|
31614
|
+
/** @type{?proto.viam.common.v1.ResourceName} */
|
|
31615
|
+
e.Message.getWrapperField(this, l.ResourceName, 2)
|
|
31616
|
+
);
|
|
31617
|
+
}, proto.viam.service.motion.v1.ObstacleDetector.prototype.setCamera = function(o) {
|
|
31618
|
+
return e.Message.setWrapperField(this, 2, o);
|
|
31619
|
+
}, proto.viam.service.motion.v1.ObstacleDetector.prototype.clearCamera = function() {
|
|
31620
|
+
return this.setCamera(void 0);
|
|
31621
|
+
}, proto.viam.service.motion.v1.ObstacleDetector.prototype.hasCamera = function() {
|
|
31622
|
+
return e.Message.getField(this, 2) != null;
|
|
31425
31623
|
}, proto.viam.service.motion.v1.MotionConfiguration.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.service.motion.v1.MotionConfiguration.prototype.toObject = function(o) {
|
|
31426
31624
|
return proto.viam.service.motion.v1.MotionConfiguration.toObject(o, this);
|
|
31427
31625
|
}, proto.viam.service.motion.v1.MotionConfiguration.toObject = function(o, r) {
|
|
31428
31626
|
var u = {
|
|
31429
|
-
|
|
31430
|
-
r.
|
|
31431
|
-
|
|
31627
|
+
obstacleDetectorsList: e.Message.toObjectList(
|
|
31628
|
+
r.getObstacleDetectorsList(),
|
|
31629
|
+
proto.viam.service.motion.v1.ObstacleDetector.toObject,
|
|
31432
31630
|
o
|
|
31433
31631
|
),
|
|
31434
31632
|
positionPollingFrequencyHz: e.Message.getFloatingPointFieldWithDefault(r, 2, 0),
|
|
@@ -31446,8 +31644,8 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
31446
31644
|
var u = r.getFieldNumber();
|
|
31447
31645
|
switch (u) {
|
|
31448
31646
|
case 1:
|
|
31449
|
-
var c = new
|
|
31450
|
-
r.readMessage(c,
|
|
31647
|
+
var c = new proto.viam.service.motion.v1.ObstacleDetector();
|
|
31648
|
+
r.readMessage(c, proto.viam.service.motion.v1.ObstacleDetector.deserializeBinaryFromReader), o.addObstacleDetectors(c);
|
|
31451
31649
|
break;
|
|
31452
31650
|
case 2:
|
|
31453
31651
|
var c = (
|
|
@@ -31495,10 +31693,10 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
31495
31693
|
return proto.viam.service.motion.v1.MotionConfiguration.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
31496
31694
|
}, proto.viam.service.motion.v1.MotionConfiguration.serializeBinaryToWriter = function(o, r) {
|
|
31497
31695
|
var u = void 0;
|
|
31498
|
-
u = o.
|
|
31696
|
+
u = o.getObstacleDetectorsList(), u.length > 0 && r.writeRepeatedMessage(
|
|
31499
31697
|
1,
|
|
31500
31698
|
u,
|
|
31501
|
-
|
|
31699
|
+
proto.viam.service.motion.v1.ObstacleDetector.serializeBinaryToWriter
|
|
31502
31700
|
), u = /** @type {number} */
|
|
31503
31701
|
e.Message.getField(o, 2), u != null && r.writeDouble(
|
|
31504
31702
|
2,
|
|
@@ -31520,17 +31718,17 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
31520
31718
|
6,
|
|
31521
31719
|
u
|
|
31522
31720
|
);
|
|
31523
|
-
}, proto.viam.service.motion.v1.MotionConfiguration.prototype.
|
|
31721
|
+
}, proto.viam.service.motion.v1.MotionConfiguration.prototype.getObstacleDetectorsList = function() {
|
|
31524
31722
|
return (
|
|
31525
|
-
/** @type{!Array<!proto.viam.
|
|
31526
|
-
e.Message.getRepeatedWrapperField(this,
|
|
31723
|
+
/** @type{!Array<!proto.viam.service.motion.v1.ObstacleDetector>} */
|
|
31724
|
+
e.Message.getRepeatedWrapperField(this, proto.viam.service.motion.v1.ObstacleDetector, 1)
|
|
31527
31725
|
);
|
|
31528
|
-
}, proto.viam.service.motion.v1.MotionConfiguration.prototype.
|
|
31726
|
+
}, proto.viam.service.motion.v1.MotionConfiguration.prototype.setObstacleDetectorsList = function(o) {
|
|
31529
31727
|
return e.Message.setRepeatedWrapperField(this, 1, o);
|
|
31530
|
-
}, proto.viam.service.motion.v1.MotionConfiguration.prototype.
|
|
31531
|
-
return e.Message.addToRepeatedWrapperField(this, 1, o, proto.viam.
|
|
31532
|
-
}, proto.viam.service.motion.v1.MotionConfiguration.prototype.
|
|
31533
|
-
return this.
|
|
31728
|
+
}, proto.viam.service.motion.v1.MotionConfiguration.prototype.addObstacleDetectors = function(o, r) {
|
|
31729
|
+
return e.Message.addToRepeatedWrapperField(this, 1, o, proto.viam.service.motion.v1.ObstacleDetector, r);
|
|
31730
|
+
}, proto.viam.service.motion.v1.MotionConfiguration.prototype.clearObstacleDetectorsList = function() {
|
|
31731
|
+
return this.setObstacleDetectorsList([]);
|
|
31534
31732
|
}, proto.viam.service.motion.v1.MotionConfiguration.prototype.getPositionPollingFrequencyHz = function() {
|
|
31535
31733
|
return (
|
|
31536
31734
|
/** @type {number} */
|
|
@@ -33454,7 +33652,7 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
33454
33652
|
PLAN_STATE_FAILED: 4
|
|
33455
33653
|
}, n.object.extend(i, proto.viam.service.motion.v1);
|
|
33456
33654
|
})(motion_pb);
|
|
33457
|
-
var service_motion_v1_motion_pb = motion_pb, common_v1_common_pb$
|
|
33655
|
+
var service_motion_v1_motion_pb = motion_pb, common_v1_common_pb$c = common_pb, grpc$h = grpcWebClient_umdExports$1.grpc, MotionService = function() {
|
|
33458
33656
|
function i() {
|
|
33459
33657
|
}
|
|
33460
33658
|
return i.serviceName = "viam.service.motion.v1.MotionService", i;
|
|
@@ -33528,8 +33726,8 @@ MotionService.DoCommand = {
|
|
|
33528
33726
|
service: MotionService,
|
|
33529
33727
|
requestStream: !1,
|
|
33530
33728
|
responseStream: !1,
|
|
33531
|
-
requestType: common_v1_common_pb$
|
|
33532
|
-
responseType: common_v1_common_pb$
|
|
33729
|
+
requestType: common_v1_common_pb$c.DoCommandRequest,
|
|
33730
|
+
responseType: common_v1_common_pb$c.DoCommandResponse
|
|
33533
33731
|
};
|
|
33534
33732
|
function MotionServiceClient(i, e) {
|
|
33535
33733
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -34824,7 +35022,7 @@ var MotionServiceClient_1 = MotionServiceClient, motor_pb = {};
|
|
|
34824
35022
|
return e.Message.setProto3BooleanField(this, 1, t);
|
|
34825
35023
|
}, n.object.extend(i, proto.viam.component.motor.v1);
|
|
34826
35024
|
})(motor_pb);
|
|
34827
|
-
var component_motor_v1_motor_pb = motor_pb, common_v1_common_pb$
|
|
35025
|
+
var component_motor_v1_motor_pb = motor_pb, common_v1_common_pb$b = common_pb, grpc$g = grpcWebClient_umdExports$1.grpc, MotorService = function() {
|
|
34828
35026
|
function i() {
|
|
34829
35027
|
}
|
|
34830
35028
|
return i.serviceName = "viam.component.motor.v1.MotorService", i;
|
|
@@ -34906,16 +35104,16 @@ MotorService.DoCommand = {
|
|
|
34906
35104
|
service: MotorService,
|
|
34907
35105
|
requestStream: !1,
|
|
34908
35106
|
responseStream: !1,
|
|
34909
|
-
requestType: common_v1_common_pb$
|
|
34910
|
-
responseType: common_v1_common_pb$
|
|
35107
|
+
requestType: common_v1_common_pb$b.DoCommandRequest,
|
|
35108
|
+
responseType: common_v1_common_pb$b.DoCommandResponse
|
|
34911
35109
|
};
|
|
34912
35110
|
MotorService.GetGeometries = {
|
|
34913
35111
|
methodName: "GetGeometries",
|
|
34914
35112
|
service: MotorService,
|
|
34915
35113
|
requestStream: !1,
|
|
34916
35114
|
responseStream: !1,
|
|
34917
|
-
requestType: common_v1_common_pb$
|
|
34918
|
-
responseType: common_v1_common_pb$
|
|
35115
|
+
requestType: common_v1_common_pb$b.GetGeometriesRequest,
|
|
35116
|
+
responseType: common_v1_common_pb$b.GetGeometriesResponse
|
|
34919
35117
|
};
|
|
34920
35118
|
function MotorServiceClient(i, e) {
|
|
34921
35119
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -36183,7 +36381,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
|
|
|
36183
36381
|
return e.Message.getField(this, 1) != null;
|
|
36184
36382
|
}, n.object.extend(i, proto.viam.component.movementsensor.v1);
|
|
36185
36383
|
})(movementsensor_pb);
|
|
36186
|
-
var component_movementsensor_v1_movementsensor_pb = movementsensor_pb, common_v1_common_pb$
|
|
36384
|
+
var component_movementsensor_v1_movementsensor_pb = movementsensor_pb, common_v1_common_pb$a = common_pb, grpc$f = grpcWebClient_umdExports$1.grpc, MovementSensorService = function() {
|
|
36187
36385
|
function i() {
|
|
36188
36386
|
}
|
|
36189
36387
|
return i.serviceName = "viam.component.movementsensor.v1.MovementSensorService", i;
|
|
@@ -36257,16 +36455,24 @@ MovementSensorService.DoCommand = {
|
|
|
36257
36455
|
service: MovementSensorService,
|
|
36258
36456
|
requestStream: !1,
|
|
36259
36457
|
responseStream: !1,
|
|
36260
|
-
requestType: common_v1_common_pb$
|
|
36261
|
-
responseType: common_v1_common_pb$
|
|
36458
|
+
requestType: common_v1_common_pb$a.DoCommandRequest,
|
|
36459
|
+
responseType: common_v1_common_pb$a.DoCommandResponse
|
|
36262
36460
|
};
|
|
36263
36461
|
MovementSensorService.GetGeometries = {
|
|
36264
36462
|
methodName: "GetGeometries",
|
|
36265
36463
|
service: MovementSensorService,
|
|
36266
36464
|
requestStream: !1,
|
|
36267
36465
|
responseStream: !1,
|
|
36268
|
-
requestType: common_v1_common_pb$
|
|
36269
|
-
responseType: common_v1_common_pb$
|
|
36466
|
+
requestType: common_v1_common_pb$a.GetGeometriesRequest,
|
|
36467
|
+
responseType: common_v1_common_pb$a.GetGeometriesResponse
|
|
36468
|
+
};
|
|
36469
|
+
MovementSensorService.GetReadings = {
|
|
36470
|
+
methodName: "GetReadings",
|
|
36471
|
+
service: MovementSensorService,
|
|
36472
|
+
requestStream: !1,
|
|
36473
|
+
responseStream: !1,
|
|
36474
|
+
requestType: common_v1_common_pb$a.GetReadingsRequest,
|
|
36475
|
+
responseType: common_v1_common_pb$a.GetReadingsResponse
|
|
36270
36476
|
};
|
|
36271
36477
|
function MovementSensorServiceClient(i, e) {
|
|
36272
36478
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -36501,6 +36707,29 @@ MovementSensorServiceClient.prototype.getGeometries = function i(e, n, s) {
|
|
|
36501
36707
|
}
|
|
36502
36708
|
};
|
|
36503
36709
|
};
|
|
36710
|
+
MovementSensorServiceClient.prototype.getReadings = function i(e, n, s) {
|
|
36711
|
+
arguments.length === 2 && (s = arguments[1]);
|
|
36712
|
+
var l = grpc$f.unary(MovementSensorService.GetReadings, {
|
|
36713
|
+
request: e,
|
|
36714
|
+
host: this.serviceHost,
|
|
36715
|
+
metadata: n,
|
|
36716
|
+
transport: this.options.transport,
|
|
36717
|
+
debug: this.options.debug,
|
|
36718
|
+
onEnd: function(g) {
|
|
36719
|
+
if (s)
|
|
36720
|
+
if (g.status !== grpc$f.Code.OK) {
|
|
36721
|
+
var p = new Error(g.statusMessage);
|
|
36722
|
+
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
36723
|
+
} else
|
|
36724
|
+
s(null, g.message);
|
|
36725
|
+
}
|
|
36726
|
+
});
|
|
36727
|
+
return {
|
|
36728
|
+
cancel: function() {
|
|
36729
|
+
s = null, l.close();
|
|
36730
|
+
}
|
|
36731
|
+
};
|
|
36732
|
+
};
|
|
36504
36733
|
var MovementSensorServiceClient_1 = MovementSensorServiceClient, navigation_pb = {};
|
|
36505
36734
|
(function(i) {
|
|
36506
36735
|
var e = googleProtobuf, n = e, s = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof s < "u" && s || typeof self < "u" && self || function() {
|
|
@@ -36510,7 +36739,7 @@ var MovementSensorServiceClient_1 = MovementSensorServiceClient, navigation_pb =
|
|
|
36510
36739
|
var g = annotations_pb$1;
|
|
36511
36740
|
n.object.extend(proto, g);
|
|
36512
36741
|
var p = struct_pb;
|
|
36513
|
-
n.object.extend(proto, p), n.exportSymbol("proto.viam.service.navigation.v1.AddWaypointRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.AddWaypointResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetLocationRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetLocationResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetModeRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetModeResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetObstaclesRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetObstaclesResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetWaypointsRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetWaypointsResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.Mode", null, s), n.exportSymbol("proto.viam.service.navigation.v1.RemoveWaypointRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.RemoveWaypointResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.SetModeRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.SetModeResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.Waypoint", null, s), proto.viam.service.navigation.v1.GetModeRequest = function(t) {
|
|
36742
|
+
n.object.extend(proto, p), n.exportSymbol("proto.viam.service.navigation.v1.AddWaypointRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.AddWaypointResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetLocationRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetLocationResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetModeRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetModeResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetObstaclesRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetObstaclesResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetPathsRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetPathsResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetWaypointsRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.GetWaypointsResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.Mode", null, s), n.exportSymbol("proto.viam.service.navigation.v1.Path", null, s), n.exportSymbol("proto.viam.service.navigation.v1.RemoveWaypointRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.RemoveWaypointResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.SetModeRequest", null, s), n.exportSymbol("proto.viam.service.navigation.v1.SetModeResponse", null, s), n.exportSymbol("proto.viam.service.navigation.v1.Waypoint", null, s), proto.viam.service.navigation.v1.GetModeRequest = function(t) {
|
|
36514
36743
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
36515
36744
|
}, n.inherits(proto.viam.service.navigation.v1.GetModeRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.service.navigation.v1.GetModeRequest.displayName = "proto.viam.service.navigation.v1.GetModeRequest"), proto.viam.service.navigation.v1.GetModeResponse = function(t) {
|
|
36516
36745
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
@@ -36540,7 +36769,13 @@ var MovementSensorServiceClient_1 = MovementSensorServiceClient, navigation_pb =
|
|
|
36540
36769
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
36541
36770
|
}, n.inherits(proto.viam.service.navigation.v1.GetObstaclesRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.service.navigation.v1.GetObstaclesRequest.displayName = "proto.viam.service.navigation.v1.GetObstaclesRequest"), proto.viam.service.navigation.v1.GetObstaclesResponse = function(t) {
|
|
36542
36771
|
e.Message.initialize(this, t, 0, -1, proto.viam.service.navigation.v1.GetObstaclesResponse.repeatedFields_, null);
|
|
36543
|
-
}, n.inherits(proto.viam.service.navigation.v1.GetObstaclesResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.service.navigation.v1.GetObstaclesResponse.displayName = "proto.viam.service.navigation.v1.GetObstaclesResponse"),
|
|
36772
|
+
}, n.inherits(proto.viam.service.navigation.v1.GetObstaclesResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.service.navigation.v1.GetObstaclesResponse.displayName = "proto.viam.service.navigation.v1.GetObstaclesResponse"), proto.viam.service.navigation.v1.Path = function(t) {
|
|
36773
|
+
e.Message.initialize(this, t, 0, -1, proto.viam.service.navigation.v1.Path.repeatedFields_, null);
|
|
36774
|
+
}, n.inherits(proto.viam.service.navigation.v1.Path, e.Message), n.DEBUG && !COMPILED && (proto.viam.service.navigation.v1.Path.displayName = "proto.viam.service.navigation.v1.Path"), proto.viam.service.navigation.v1.GetPathsRequest = function(t) {
|
|
36775
|
+
e.Message.initialize(this, t, 0, -1, null, null);
|
|
36776
|
+
}, n.inherits(proto.viam.service.navigation.v1.GetPathsRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.service.navigation.v1.GetPathsRequest.displayName = "proto.viam.service.navigation.v1.GetPathsRequest"), proto.viam.service.navigation.v1.GetPathsResponse = function(t) {
|
|
36777
|
+
e.Message.initialize(this, t, 0, -1, proto.viam.service.navigation.v1.GetPathsResponse.repeatedFields_, null);
|
|
36778
|
+
}, n.inherits(proto.viam.service.navigation.v1.GetPathsResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.service.navigation.v1.GetPathsResponse.displayName = "proto.viam.service.navigation.v1.GetPathsResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.service.navigation.v1.GetModeRequest.prototype.toObject = function(t) {
|
|
36544
36779
|
return proto.viam.service.navigation.v1.GetModeRequest.toObject(t, this);
|
|
36545
36780
|
}, proto.viam.service.navigation.v1.GetModeRequest.toObject = function(t, o) {
|
|
36546
36781
|
var r, u = {
|
|
@@ -37370,13 +37605,193 @@ var MovementSensorServiceClient_1 = MovementSensorServiceClient, navigation_pb =
|
|
|
37370
37605
|
return e.Message.addToRepeatedWrapperField(this, 1, t, proto.viam.common.v1.GeoObstacle, o);
|
|
37371
37606
|
}, proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.clearObstaclesList = function() {
|
|
37372
37607
|
return this.setObstaclesList([]);
|
|
37608
|
+
}, proto.viam.service.navigation.v1.Path.repeatedFields_ = [2], e.Message.GENERATE_TO_OBJECT && (proto.viam.service.navigation.v1.Path.prototype.toObject = function(t) {
|
|
37609
|
+
return proto.viam.service.navigation.v1.Path.toObject(t, this);
|
|
37610
|
+
}, proto.viam.service.navigation.v1.Path.toObject = function(t, o) {
|
|
37611
|
+
var r = {
|
|
37612
|
+
destinationWaypointId: e.Message.getFieldWithDefault(o, 1, ""),
|
|
37613
|
+
geopointsList: e.Message.toObjectList(
|
|
37614
|
+
o.getGeopointsList(),
|
|
37615
|
+
l.GeoPoint.toObject,
|
|
37616
|
+
t
|
|
37617
|
+
)
|
|
37618
|
+
};
|
|
37619
|
+
return t && (r.$jspbMessageInstance = o), r;
|
|
37620
|
+
}), proto.viam.service.navigation.v1.Path.deserializeBinary = function(t) {
|
|
37621
|
+
var o = new e.BinaryReader(t), r = new proto.viam.service.navigation.v1.Path();
|
|
37622
|
+
return proto.viam.service.navigation.v1.Path.deserializeBinaryFromReader(r, o);
|
|
37623
|
+
}, proto.viam.service.navigation.v1.Path.deserializeBinaryFromReader = function(t, o) {
|
|
37624
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
37625
|
+
var r = o.getFieldNumber();
|
|
37626
|
+
switch (r) {
|
|
37627
|
+
case 1:
|
|
37628
|
+
var u = (
|
|
37629
|
+
/** @type {string} */
|
|
37630
|
+
o.readString()
|
|
37631
|
+
);
|
|
37632
|
+
t.setDestinationWaypointId(u);
|
|
37633
|
+
break;
|
|
37634
|
+
case 2:
|
|
37635
|
+
var u = new l.GeoPoint();
|
|
37636
|
+
o.readMessage(u, l.GeoPoint.deserializeBinaryFromReader), t.addGeopoints(u);
|
|
37637
|
+
break;
|
|
37638
|
+
default:
|
|
37639
|
+
o.skipField();
|
|
37640
|
+
break;
|
|
37641
|
+
}
|
|
37642
|
+
}
|
|
37643
|
+
return t;
|
|
37644
|
+
}, proto.viam.service.navigation.v1.Path.prototype.serializeBinary = function() {
|
|
37645
|
+
var t = new e.BinaryWriter();
|
|
37646
|
+
return proto.viam.service.navigation.v1.Path.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
37647
|
+
}, proto.viam.service.navigation.v1.Path.serializeBinaryToWriter = function(t, o) {
|
|
37648
|
+
var r = void 0;
|
|
37649
|
+
r = t.getDestinationWaypointId(), r.length > 0 && o.writeString(
|
|
37650
|
+
1,
|
|
37651
|
+
r
|
|
37652
|
+
), r = t.getGeopointsList(), r.length > 0 && o.writeRepeatedMessage(
|
|
37653
|
+
2,
|
|
37654
|
+
r,
|
|
37655
|
+
l.GeoPoint.serializeBinaryToWriter
|
|
37656
|
+
);
|
|
37657
|
+
}, proto.viam.service.navigation.v1.Path.prototype.getDestinationWaypointId = function() {
|
|
37658
|
+
return (
|
|
37659
|
+
/** @type {string} */
|
|
37660
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
37661
|
+
);
|
|
37662
|
+
}, proto.viam.service.navigation.v1.Path.prototype.setDestinationWaypointId = function(t) {
|
|
37663
|
+
return e.Message.setProto3StringField(this, 1, t);
|
|
37664
|
+
}, proto.viam.service.navigation.v1.Path.prototype.getGeopointsList = function() {
|
|
37665
|
+
return (
|
|
37666
|
+
/** @type{!Array<!proto.viam.common.v1.GeoPoint>} */
|
|
37667
|
+
e.Message.getRepeatedWrapperField(this, l.GeoPoint, 2)
|
|
37668
|
+
);
|
|
37669
|
+
}, proto.viam.service.navigation.v1.Path.prototype.setGeopointsList = function(t) {
|
|
37670
|
+
return e.Message.setRepeatedWrapperField(this, 2, t);
|
|
37671
|
+
}, proto.viam.service.navigation.v1.Path.prototype.addGeopoints = function(t, o) {
|
|
37672
|
+
return e.Message.addToRepeatedWrapperField(this, 2, t, proto.viam.common.v1.GeoPoint, o);
|
|
37673
|
+
}, proto.viam.service.navigation.v1.Path.prototype.clearGeopointsList = function() {
|
|
37674
|
+
return this.setGeopointsList([]);
|
|
37675
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.navigation.v1.GetPathsRequest.prototype.toObject = function(t) {
|
|
37676
|
+
return proto.viam.service.navigation.v1.GetPathsRequest.toObject(t, this);
|
|
37677
|
+
}, proto.viam.service.navigation.v1.GetPathsRequest.toObject = function(t, o) {
|
|
37678
|
+
var r, u = {
|
|
37679
|
+
name: e.Message.getFieldWithDefault(o, 1, ""),
|
|
37680
|
+
extra: (r = o.getExtra()) && p.Struct.toObject(t, r)
|
|
37681
|
+
};
|
|
37682
|
+
return t && (u.$jspbMessageInstance = o), u;
|
|
37683
|
+
}), proto.viam.service.navigation.v1.GetPathsRequest.deserializeBinary = function(t) {
|
|
37684
|
+
var o = new e.BinaryReader(t), r = new proto.viam.service.navigation.v1.GetPathsRequest();
|
|
37685
|
+
return proto.viam.service.navigation.v1.GetPathsRequest.deserializeBinaryFromReader(r, o);
|
|
37686
|
+
}, proto.viam.service.navigation.v1.GetPathsRequest.deserializeBinaryFromReader = function(t, o) {
|
|
37687
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
37688
|
+
var r = o.getFieldNumber();
|
|
37689
|
+
switch (r) {
|
|
37690
|
+
case 1:
|
|
37691
|
+
var u = (
|
|
37692
|
+
/** @type {string} */
|
|
37693
|
+
o.readString()
|
|
37694
|
+
);
|
|
37695
|
+
t.setName(u);
|
|
37696
|
+
break;
|
|
37697
|
+
case 99:
|
|
37698
|
+
var u = new p.Struct();
|
|
37699
|
+
o.readMessage(u, p.Struct.deserializeBinaryFromReader), t.setExtra(u);
|
|
37700
|
+
break;
|
|
37701
|
+
default:
|
|
37702
|
+
o.skipField();
|
|
37703
|
+
break;
|
|
37704
|
+
}
|
|
37705
|
+
}
|
|
37706
|
+
return t;
|
|
37707
|
+
}, proto.viam.service.navigation.v1.GetPathsRequest.prototype.serializeBinary = function() {
|
|
37708
|
+
var t = new e.BinaryWriter();
|
|
37709
|
+
return proto.viam.service.navigation.v1.GetPathsRequest.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
37710
|
+
}, proto.viam.service.navigation.v1.GetPathsRequest.serializeBinaryToWriter = function(t, o) {
|
|
37711
|
+
var r = void 0;
|
|
37712
|
+
r = t.getName(), r.length > 0 && o.writeString(
|
|
37713
|
+
1,
|
|
37714
|
+
r
|
|
37715
|
+
), r = t.getExtra(), r != null && o.writeMessage(
|
|
37716
|
+
99,
|
|
37717
|
+
r,
|
|
37718
|
+
p.Struct.serializeBinaryToWriter
|
|
37719
|
+
);
|
|
37720
|
+
}, proto.viam.service.navigation.v1.GetPathsRequest.prototype.getName = function() {
|
|
37721
|
+
return (
|
|
37722
|
+
/** @type {string} */
|
|
37723
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
37724
|
+
);
|
|
37725
|
+
}, proto.viam.service.navigation.v1.GetPathsRequest.prototype.setName = function(t) {
|
|
37726
|
+
return e.Message.setProto3StringField(this, 1, t);
|
|
37727
|
+
}, proto.viam.service.navigation.v1.GetPathsRequest.prototype.getExtra = function() {
|
|
37728
|
+
return (
|
|
37729
|
+
/** @type{?proto.google.protobuf.Struct} */
|
|
37730
|
+
e.Message.getWrapperField(this, p.Struct, 99)
|
|
37731
|
+
);
|
|
37732
|
+
}, proto.viam.service.navigation.v1.GetPathsRequest.prototype.setExtra = function(t) {
|
|
37733
|
+
return e.Message.setWrapperField(this, 99, t);
|
|
37734
|
+
}, proto.viam.service.navigation.v1.GetPathsRequest.prototype.clearExtra = function() {
|
|
37735
|
+
return this.setExtra(void 0);
|
|
37736
|
+
}, proto.viam.service.navigation.v1.GetPathsRequest.prototype.hasExtra = function() {
|
|
37737
|
+
return e.Message.getField(this, 99) != null;
|
|
37738
|
+
}, proto.viam.service.navigation.v1.GetPathsResponse.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.service.navigation.v1.GetPathsResponse.prototype.toObject = function(t) {
|
|
37739
|
+
return proto.viam.service.navigation.v1.GetPathsResponse.toObject(t, this);
|
|
37740
|
+
}, proto.viam.service.navigation.v1.GetPathsResponse.toObject = function(t, o) {
|
|
37741
|
+
var r = {
|
|
37742
|
+
pathsList: e.Message.toObjectList(
|
|
37743
|
+
o.getPathsList(),
|
|
37744
|
+
proto.viam.service.navigation.v1.Path.toObject,
|
|
37745
|
+
t
|
|
37746
|
+
)
|
|
37747
|
+
};
|
|
37748
|
+
return t && (r.$jspbMessageInstance = o), r;
|
|
37749
|
+
}), proto.viam.service.navigation.v1.GetPathsResponse.deserializeBinary = function(t) {
|
|
37750
|
+
var o = new e.BinaryReader(t), r = new proto.viam.service.navigation.v1.GetPathsResponse();
|
|
37751
|
+
return proto.viam.service.navigation.v1.GetPathsResponse.deserializeBinaryFromReader(r, o);
|
|
37752
|
+
}, proto.viam.service.navigation.v1.GetPathsResponse.deserializeBinaryFromReader = function(t, o) {
|
|
37753
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
37754
|
+
var r = o.getFieldNumber();
|
|
37755
|
+
switch (r) {
|
|
37756
|
+
case 1:
|
|
37757
|
+
var u = new proto.viam.service.navigation.v1.Path();
|
|
37758
|
+
o.readMessage(u, proto.viam.service.navigation.v1.Path.deserializeBinaryFromReader), t.addPaths(u);
|
|
37759
|
+
break;
|
|
37760
|
+
default:
|
|
37761
|
+
o.skipField();
|
|
37762
|
+
break;
|
|
37763
|
+
}
|
|
37764
|
+
}
|
|
37765
|
+
return t;
|
|
37766
|
+
}, proto.viam.service.navigation.v1.GetPathsResponse.prototype.serializeBinary = function() {
|
|
37767
|
+
var t = new e.BinaryWriter();
|
|
37768
|
+
return proto.viam.service.navigation.v1.GetPathsResponse.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
37769
|
+
}, proto.viam.service.navigation.v1.GetPathsResponse.serializeBinaryToWriter = function(t, o) {
|
|
37770
|
+
var r = void 0;
|
|
37771
|
+
r = t.getPathsList(), r.length > 0 && o.writeRepeatedMessage(
|
|
37772
|
+
1,
|
|
37773
|
+
r,
|
|
37774
|
+
proto.viam.service.navigation.v1.Path.serializeBinaryToWriter
|
|
37775
|
+
);
|
|
37776
|
+
}, proto.viam.service.navigation.v1.GetPathsResponse.prototype.getPathsList = function() {
|
|
37777
|
+
return (
|
|
37778
|
+
/** @type{!Array<!proto.viam.service.navigation.v1.Path>} */
|
|
37779
|
+
e.Message.getRepeatedWrapperField(this, proto.viam.service.navigation.v1.Path, 1)
|
|
37780
|
+
);
|
|
37781
|
+
}, proto.viam.service.navigation.v1.GetPathsResponse.prototype.setPathsList = function(t) {
|
|
37782
|
+
return e.Message.setRepeatedWrapperField(this, 1, t);
|
|
37783
|
+
}, proto.viam.service.navigation.v1.GetPathsResponse.prototype.addPaths = function(t, o) {
|
|
37784
|
+
return e.Message.addToRepeatedWrapperField(this, 1, t, proto.viam.service.navigation.v1.Path, o);
|
|
37785
|
+
}, proto.viam.service.navigation.v1.GetPathsResponse.prototype.clearPathsList = function() {
|
|
37786
|
+
return this.setPathsList([]);
|
|
37373
37787
|
}, proto.viam.service.navigation.v1.Mode = {
|
|
37374
37788
|
MODE_UNSPECIFIED: 0,
|
|
37375
37789
|
MODE_MANUAL: 1,
|
|
37376
|
-
MODE_WAYPOINT: 2
|
|
37790
|
+
MODE_WAYPOINT: 2,
|
|
37791
|
+
MODE_EXPLORE: 3
|
|
37377
37792
|
}, n.object.extend(i, proto.viam.service.navigation.v1);
|
|
37378
37793
|
})(navigation_pb);
|
|
37379
|
-
var service_navigation_v1_navigation_pb = navigation_pb, common_v1_common_pb$
|
|
37794
|
+
var service_navigation_v1_navigation_pb = navigation_pb, common_v1_common_pb$9 = common_pb, grpc$e = grpcWebClient_umdExports$1.grpc, NavigationService = function() {
|
|
37380
37795
|
function i() {
|
|
37381
37796
|
}
|
|
37382
37797
|
return i.serviceName = "viam.service.navigation.v1.NavigationService", i;
|
|
@@ -37437,13 +37852,21 @@ NavigationService.GetObstacles = {
|
|
|
37437
37852
|
requestType: service_navigation_v1_navigation_pb.GetObstaclesRequest,
|
|
37438
37853
|
responseType: service_navigation_v1_navigation_pb.GetObstaclesResponse
|
|
37439
37854
|
};
|
|
37855
|
+
NavigationService.GetPaths = {
|
|
37856
|
+
methodName: "GetPaths",
|
|
37857
|
+
service: NavigationService,
|
|
37858
|
+
requestStream: !1,
|
|
37859
|
+
responseStream: !1,
|
|
37860
|
+
requestType: service_navigation_v1_navigation_pb.GetPathsRequest,
|
|
37861
|
+
responseType: service_navigation_v1_navigation_pb.GetPathsResponse
|
|
37862
|
+
};
|
|
37440
37863
|
NavigationService.DoCommand = {
|
|
37441
37864
|
methodName: "DoCommand",
|
|
37442
37865
|
service: NavigationService,
|
|
37443
37866
|
requestStream: !1,
|
|
37444
37867
|
responseStream: !1,
|
|
37445
|
-
requestType: common_v1_common_pb$
|
|
37446
|
-
responseType: common_v1_common_pb$
|
|
37868
|
+
requestType: common_v1_common_pb$9.DoCommandRequest,
|
|
37869
|
+
responseType: common_v1_common_pb$9.DoCommandResponse
|
|
37447
37870
|
};
|
|
37448
37871
|
function NavigationServiceClient(i, e) {
|
|
37449
37872
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -37609,6 +38032,29 @@ NavigationServiceClient.prototype.getObstacles = function i(e, n, s) {
|
|
|
37609
38032
|
}
|
|
37610
38033
|
};
|
|
37611
38034
|
};
|
|
38035
|
+
NavigationServiceClient.prototype.getPaths = function i(e, n, s) {
|
|
38036
|
+
arguments.length === 2 && (s = arguments[1]);
|
|
38037
|
+
var l = grpc$e.unary(NavigationService.GetPaths, {
|
|
38038
|
+
request: e,
|
|
38039
|
+
host: this.serviceHost,
|
|
38040
|
+
metadata: n,
|
|
38041
|
+
transport: this.options.transport,
|
|
38042
|
+
debug: this.options.debug,
|
|
38043
|
+
onEnd: function(g) {
|
|
38044
|
+
if (s)
|
|
38045
|
+
if (g.status !== grpc$e.Code.OK) {
|
|
38046
|
+
var p = new Error(g.statusMessage);
|
|
38047
|
+
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
38048
|
+
} else
|
|
38049
|
+
s(null, g.message);
|
|
38050
|
+
}
|
|
38051
|
+
});
|
|
38052
|
+
return {
|
|
38053
|
+
cancel: function() {
|
|
38054
|
+
s = null, l.close();
|
|
38055
|
+
}
|
|
38056
|
+
};
|
|
38057
|
+
};
|
|
37612
38058
|
NavigationServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
37613
38059
|
arguments.length === 2 && (s = arguments[1]);
|
|
37614
38060
|
var l = grpc$e.unary(NavigationService.DoCommand, {
|
|
@@ -38558,7 +39004,7 @@ var RobotServiceClient_1 = RobotServiceClient, slam_pb = {};
|
|
|
38558
39004
|
return e.Message.getField(this, 1) != null;
|
|
38559
39005
|
}, n.object.extend(i, proto.viam.service.slam.v1);
|
|
38560
39006
|
})(slam_pb);
|
|
38561
|
-
var service_slam_v1_slam_pb = slam_pb, common_v1_common_pb$
|
|
39007
|
+
var service_slam_v1_slam_pb = slam_pb, common_v1_common_pb$8 = common_pb, grpc$c = grpcWebClient_umdExports$1.grpc, SLAMService = function() {
|
|
38562
39008
|
function i() {
|
|
38563
39009
|
}
|
|
38564
39010
|
return i.serviceName = "viam.service.slam.v1.SLAMService", i;
|
|
@@ -38600,8 +39046,8 @@ SLAMService.DoCommand = {
|
|
|
38600
39046
|
service: SLAMService,
|
|
38601
39047
|
requestStream: !1,
|
|
38602
39048
|
responseStream: !1,
|
|
38603
|
-
requestType: common_v1_common_pb$
|
|
38604
|
-
responseType: common_v1_common_pb$
|
|
39049
|
+
requestType: common_v1_common_pb$8.DoCommandRequest,
|
|
39050
|
+
responseType: common_v1_common_pb$8.DoCommandResponse
|
|
38605
39051
|
};
|
|
38606
39052
|
function SLAMServiceClient(i, e) {
|
|
38607
39053
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -39074,7 +39520,7 @@ var SLAMServiceClient_1 = SLAMServiceClient, sensors_pb = {};
|
|
|
39074
39520
|
return this.setReadingsList([]);
|
|
39075
39521
|
}, n.object.extend(i, proto.viam.service.sensors.v1);
|
|
39076
39522
|
})(sensors_pb);
|
|
39077
|
-
var service_sensors_v1_sensors_pb = sensors_pb, common_v1_common_pb$
|
|
39523
|
+
var service_sensors_v1_sensors_pb = sensors_pb, common_v1_common_pb$7 = common_pb, grpc$b = grpcWebClient_umdExports$1.grpc, SensorsService = function() {
|
|
39078
39524
|
function i() {
|
|
39079
39525
|
}
|
|
39080
39526
|
return i.serviceName = "viam.service.sensors.v1.SensorsService", i;
|
|
@@ -39100,8 +39546,8 @@ SensorsService.DoCommand = {
|
|
|
39100
39546
|
service: SensorsService,
|
|
39101
39547
|
requestStream: !1,
|
|
39102
39548
|
responseStream: !1,
|
|
39103
|
-
requestType: common_v1_common_pb$
|
|
39104
|
-
responseType: common_v1_common_pb$
|
|
39549
|
+
requestType: common_v1_common_pb$7.DoCommandRequest,
|
|
39550
|
+
responseType: common_v1_common_pb$7.DoCommandResponse
|
|
39105
39551
|
};
|
|
39106
39552
|
function SensorsServiceClient(i, e) {
|
|
39107
39553
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -39645,7 +40091,7 @@ var SensorsServiceClient_1 = SensorsServiceClient, servo_pb = {};
|
|
|
39645
40091
|
return e.Message.setProto3BooleanField(this, 1, t);
|
|
39646
40092
|
}, n.object.extend(i, proto.viam.component.servo.v1);
|
|
39647
40093
|
})(servo_pb);
|
|
39648
|
-
var component_servo_v1_servo_pb = servo_pb, common_v1_common_pb$
|
|
40094
|
+
var component_servo_v1_servo_pb = servo_pb, common_v1_common_pb$6 = common_pb, grpc$a = grpcWebClient_umdExports$1.grpc, ServoService = function() {
|
|
39649
40095
|
function i() {
|
|
39650
40096
|
}
|
|
39651
40097
|
return i.serviceName = "viam.component.servo.v1.ServoService", i;
|
|
@@ -39687,16 +40133,16 @@ ServoService.DoCommand = {
|
|
|
39687
40133
|
service: ServoService,
|
|
39688
40134
|
requestStream: !1,
|
|
39689
40135
|
responseStream: !1,
|
|
39690
|
-
requestType: common_v1_common_pb$
|
|
39691
|
-
responseType: common_v1_common_pb$
|
|
40136
|
+
requestType: common_v1_common_pb$6.DoCommandRequest,
|
|
40137
|
+
responseType: common_v1_common_pb$6.DoCommandResponse
|
|
39692
40138
|
};
|
|
39693
40139
|
ServoService.GetGeometries = {
|
|
39694
40140
|
methodName: "GetGeometries",
|
|
39695
40141
|
service: ServoService,
|
|
39696
40142
|
requestStream: !1,
|
|
39697
40143
|
responseStream: !1,
|
|
39698
|
-
requestType: common_v1_common_pb$
|
|
39699
|
-
responseType: common_v1_common_pb$
|
|
40144
|
+
requestType: common_v1_common_pb$6.GetGeometriesRequest,
|
|
40145
|
+
responseType: common_v1_common_pb$6.GetGeometriesResponse
|
|
39700
40146
|
};
|
|
39701
40147
|
function ServoServiceClient(i, e) {
|
|
39702
40148
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -40946,7 +41392,7 @@ var ServoServiceClient_1 = ServoServiceClient, vision_pb = {};
|
|
|
40946
41392
|
return this.setObjectsList([]);
|
|
40947
41393
|
}, n.object.extend(i, proto.viam.service.vision.v1);
|
|
40948
41394
|
})(vision_pb);
|
|
40949
|
-
var service_vision_v1_vision_pb = vision_pb, common_v1_common_pb$
|
|
41395
|
+
var service_vision_v1_vision_pb = vision_pb, common_v1_common_pb$5 = common_pb, grpc$9 = grpcWebClient_umdExports$1.grpc, VisionService = function() {
|
|
40950
41396
|
function i() {
|
|
40951
41397
|
}
|
|
40952
41398
|
return i.serviceName = "viam.service.vision.v1.VisionService", i;
|
|
@@ -40996,8 +41442,8 @@ VisionService.DoCommand = {
|
|
|
40996
41442
|
service: VisionService,
|
|
40997
41443
|
requestStream: !1,
|
|
40998
41444
|
responseStream: !1,
|
|
40999
|
-
requestType: common_v1_common_pb$
|
|
41000
|
-
responseType: common_v1_common_pb$
|
|
41445
|
+
requestType: common_v1_common_pb$5.DoCommandRequest,
|
|
41446
|
+
responseType: common_v1_common_pb$5.DoCommandResponse
|
|
41001
41447
|
};
|
|
41002
41448
|
function VisionServiceClient(i, e) {
|
|
41003
41449
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -50544,6 +50990,14 @@ class DataClient {
|
|
|
50544
50990
|
constructor(e, n) {
|
|
50545
50991
|
this.service = new DataServiceClient_1(e, n);
|
|
50546
50992
|
}
|
|
50993
|
+
/**
|
|
50994
|
+
* Filter and download tabular data. The returned metadata might be empty if
|
|
50995
|
+
* the metadata index of the data is out of the bounds of the returned
|
|
50996
|
+
* metadata list.
|
|
50997
|
+
*
|
|
50998
|
+
* @param filter - Optional `pb.Filter` specifying tabular data to retrieve.
|
|
50999
|
+
* No `filter` implies all tabular data.
|
|
51000
|
+
*/
|
|
50547
51001
|
async tabularDataByFilter(e) {
|
|
50548
51002
|
const { service: n } = this;
|
|
50549
51003
|
let s = "";
|
|
@@ -50555,12 +51009,17 @@ class DataClient {
|
|
|
50555
51009
|
const t = await promisify(n.tabularDataByFilter.bind(n), p), o = t.getDataList();
|
|
50556
51010
|
if (!o || o.length === 0)
|
|
50557
51011
|
break;
|
|
51012
|
+
const r = t.getMetadataList().length;
|
|
50558
51013
|
l.push(
|
|
50559
|
-
...o.map((
|
|
50560
|
-
|
|
50561
|
-
|
|
50562
|
-
|
|
50563
|
-
|
|
51014
|
+
...o.map((u) => {
|
|
51015
|
+
const c = u.getMetadataIndex(), d = r !== 0 && c >= r ? new data_pb.CaptureMetadata().toObject() : t.getMetadataList()[c]?.toObject();
|
|
51016
|
+
return {
|
|
51017
|
+
data: u.getData()?.toJavaScript(),
|
|
51018
|
+
metadata: d,
|
|
51019
|
+
timeRequested: u.getTimeRequested()?.toDate(),
|
|
51020
|
+
timeReceived: u.getTimeReceived()?.toDate()
|
|
51021
|
+
};
|
|
51022
|
+
})
|
|
50564
51023
|
), s = t.getLast();
|
|
50565
51024
|
}
|
|
50566
51025
|
return l;
|
|
@@ -52187,7 +52646,7 @@ var camera_pb = {}, httpbody_pb = {};
|
|
|
52187
52646
|
FORMAT_PNG: 4
|
|
52188
52647
|
}, n.object.extend(i, proto.viam.component.camera.v1);
|
|
52189
52648
|
})(camera_pb);
|
|
52190
|
-
var component_camera_v1_camera_pb = camera_pb, common_v1_common_pb$
|
|
52649
|
+
var component_camera_v1_camera_pb = camera_pb, common_v1_common_pb$4 = common_pb, google_api_httpbody_pb = httpbody_pb, grpc$4 = grpcWebClient_umdExports$1.grpc, CameraService = function() {
|
|
52191
52650
|
function i() {
|
|
52192
52651
|
}
|
|
52193
52652
|
return i.serviceName = "viam.component.camera.v1.CameraService", i;
|
|
@@ -52237,16 +52696,16 @@ CameraService.DoCommand = {
|
|
|
52237
52696
|
service: CameraService,
|
|
52238
52697
|
requestStream: !1,
|
|
52239
52698
|
responseStream: !1,
|
|
52240
|
-
requestType: common_v1_common_pb$
|
|
52241
|
-
responseType: common_v1_common_pb$
|
|
52699
|
+
requestType: common_v1_common_pb$4.DoCommandRequest,
|
|
52700
|
+
responseType: common_v1_common_pb$4.DoCommandResponse
|
|
52242
52701
|
};
|
|
52243
52702
|
CameraService.GetGeometries = {
|
|
52244
52703
|
methodName: "GetGeometries",
|
|
52245
52704
|
service: CameraService,
|
|
52246
52705
|
requestStream: !1,
|
|
52247
52706
|
responseStream: !1,
|
|
52248
|
-
requestType: common_v1_common_pb$
|
|
52249
|
-
responseType: common_v1_common_pb$
|
|
52707
|
+
requestType: common_v1_common_pb$4.GetGeometriesRequest,
|
|
52708
|
+
responseType: common_v1_common_pb$4.GetGeometriesResponse
|
|
52250
52709
|
};
|
|
52251
52710
|
function CameraServiceClient(i, e) {
|
|
52252
52711
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -52682,25 +53141,15 @@ class MovementSensorClient {
|
|
|
52682
53141
|
return g.toObject();
|
|
52683
53142
|
}
|
|
52684
53143
|
async getReadings(e = {}) {
|
|
52685
|
-
const n =
|
|
52686
|
-
|
|
52687
|
-
|
|
52688
|
-
|
|
52689
|
-
|
|
52690
|
-
|
|
52691
|
-
|
|
52692
|
-
|
|
52693
|
-
|
|
52694
|
-
try {
|
|
52695
|
-
return [[g, await p(e)]];
|
|
52696
|
-
} catch (t) {
|
|
52697
|
-
if (!t.message.includes("Unimplemented"))
|
|
52698
|
-
throw t;
|
|
52699
|
-
return [];
|
|
52700
|
-
}
|
|
52701
|
-
})()
|
|
52702
|
-
), l = await Promise.all(s);
|
|
52703
|
-
return Object.fromEntries(l.flat());
|
|
53144
|
+
const { movementsensorService: n } = this, s = new common_pb.GetReadingsRequest();
|
|
53145
|
+
s.setName(this.name), s.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(s);
|
|
53146
|
+
const l = await promisify(
|
|
53147
|
+
n.getReadings.bind(n),
|
|
53148
|
+
s
|
|
53149
|
+
), g = {};
|
|
53150
|
+
for (const [p, t] of l.getReadingsMap().entries())
|
|
53151
|
+
g[p] = t.toJavaScript();
|
|
53152
|
+
return g;
|
|
52704
53153
|
}
|
|
52705
53154
|
async doCommand(e) {
|
|
52706
53155
|
const { movementsensorService: n } = this;
|
|
@@ -53089,7 +53538,7 @@ var powersensor_pb = {};
|
|
|
53089
53538
|
return e.Message.setProto3FloatField(this, 1, t);
|
|
53090
53539
|
}, n.object.extend(i, proto.viam.component.powersensor.v1);
|
|
53091
53540
|
})(powersensor_pb);
|
|
53092
|
-
var component_powersensor_v1_powersensor_pb = powersensor_pb, common_v1_common_pb$
|
|
53541
|
+
var component_powersensor_v1_powersensor_pb = powersensor_pb, common_v1_common_pb$3 = common_pb, grpc$3 = grpcWebClient_umdExports$1.grpc, PowerSensorService = function() {
|
|
53093
53542
|
function i() {
|
|
53094
53543
|
}
|
|
53095
53544
|
return i.serviceName = "viam.component.powersensor.v1.PowerSensorService", i;
|
|
@@ -53118,13 +53567,21 @@ PowerSensorService.GetPower = {
|
|
|
53118
53567
|
requestType: component_powersensor_v1_powersensor_pb.GetPowerRequest,
|
|
53119
53568
|
responseType: component_powersensor_v1_powersensor_pb.GetPowerResponse
|
|
53120
53569
|
};
|
|
53570
|
+
PowerSensorService.GetReadings = {
|
|
53571
|
+
methodName: "GetReadings",
|
|
53572
|
+
service: PowerSensorService,
|
|
53573
|
+
requestStream: !1,
|
|
53574
|
+
responseStream: !1,
|
|
53575
|
+
requestType: common_v1_common_pb$3.GetReadingsRequest,
|
|
53576
|
+
responseType: common_v1_common_pb$3.GetReadingsResponse
|
|
53577
|
+
};
|
|
53121
53578
|
PowerSensorService.DoCommand = {
|
|
53122
53579
|
methodName: "DoCommand",
|
|
53123
53580
|
service: PowerSensorService,
|
|
53124
53581
|
requestStream: !1,
|
|
53125
53582
|
responseStream: !1,
|
|
53126
|
-
requestType: common_v1_common_pb$
|
|
53127
|
-
responseType: common_v1_common_pb$
|
|
53583
|
+
requestType: common_v1_common_pb$3.DoCommandRequest,
|
|
53584
|
+
responseType: common_v1_common_pb$3.DoCommandResponse
|
|
53128
53585
|
};
|
|
53129
53586
|
function PowerSensorServiceClient(i, e) {
|
|
53130
53587
|
this.serviceHost = i, this.options = e || {};
|
|
@@ -53198,6 +53655,29 @@ PowerSensorServiceClient.prototype.getPower = function i(e, n, s) {
|
|
|
53198
53655
|
}
|
|
53199
53656
|
};
|
|
53200
53657
|
};
|
|
53658
|
+
PowerSensorServiceClient.prototype.getReadings = function i(e, n, s) {
|
|
53659
|
+
arguments.length === 2 && (s = arguments[1]);
|
|
53660
|
+
var l = grpc$3.unary(PowerSensorService.GetReadings, {
|
|
53661
|
+
request: e,
|
|
53662
|
+
host: this.serviceHost,
|
|
53663
|
+
metadata: n,
|
|
53664
|
+
transport: this.options.transport,
|
|
53665
|
+
debug: this.options.debug,
|
|
53666
|
+
onEnd: function(g) {
|
|
53667
|
+
if (s)
|
|
53668
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
53669
|
+
var p = new Error(g.statusMessage);
|
|
53670
|
+
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
53671
|
+
} else
|
|
53672
|
+
s(null, g.message);
|
|
53673
|
+
}
|
|
53674
|
+
});
|
|
53675
|
+
return {
|
|
53676
|
+
cancel: function() {
|
|
53677
|
+
s = null, l.close();
|
|
53678
|
+
}
|
|
53679
|
+
};
|
|
53680
|
+
};
|
|
53201
53681
|
PowerSensorServiceClient.prototype.doCommand = function i(e, n, s) {
|
|
53202
53682
|
arguments.length === 2 && (s = arguments[1]);
|
|
53203
53683
|
var l = grpc$3.unary(PowerSensorService.DoCommand, {
|
|
@@ -53252,26 +53732,15 @@ class PowerSensorClient {
|
|
|
53252
53732
|
)).getWatts();
|
|
53253
53733
|
}
|
|
53254
53734
|
async getReadings(e = {}) {
|
|
53255
|
-
const n =
|
|
53256
|
-
|
|
53257
|
-
|
|
53258
|
-
|
|
53259
|
-
|
|
53260
|
-
|
|
53261
|
-
|
|
53262
|
-
|
|
53263
|
-
|
|
53264
|
-
} catch (s) {
|
|
53265
|
-
if (!s.message.includes("Unimplemented"))
|
|
53266
|
-
throw s;
|
|
53267
|
-
}
|
|
53268
|
-
try {
|
|
53269
|
-
n.power = await this.getPower(e);
|
|
53270
|
-
} catch (s) {
|
|
53271
|
-
if (!s.message.includes("Unimplemented"))
|
|
53272
|
-
throw s;
|
|
53273
|
-
}
|
|
53274
|
-
return n;
|
|
53735
|
+
const { powersensorService: n } = this, s = new common_pb.GetReadingsRequest();
|
|
53736
|
+
s.setName(this.name), s.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(s);
|
|
53737
|
+
const l = await promisify(
|
|
53738
|
+
n.getReadings.bind(n),
|
|
53739
|
+
s
|
|
53740
|
+
), g = {};
|
|
53741
|
+
for (const [p, t] of l.getReadingsMap().entries())
|
|
53742
|
+
g[p] = t.toJavaScript();
|
|
53743
|
+
return g;
|
|
53275
53744
|
}
|
|
53276
53745
|
async doCommand(e) {
|
|
53277
53746
|
const { powersensorService: n } = this;
|
|
@@ -53283,129 +53752,13 @@ class PowerSensorClient {
|
|
|
53283
53752
|
);
|
|
53284
53753
|
}
|
|
53285
53754
|
}
|
|
53286
|
-
var sensor_pb = {}
|
|
53287
|
-
|
|
53288
|
-
|
|
53289
|
-
|
|
53290
|
-
|
|
53291
|
-
|
|
53292
|
-
|
|
53293
|
-
n.object.extend(proto, g);
|
|
53294
|
-
var p = struct_pb;
|
|
53295
|
-
n.object.extend(proto, p), n.exportSymbol("proto.viam.component.sensor.v1.GetReadingsRequest", null, s), n.exportSymbol("proto.viam.component.sensor.v1.GetReadingsResponse", null, s), proto.viam.component.sensor.v1.GetReadingsRequest = function(t) {
|
|
53296
|
-
e.Message.initialize(this, t, 0, -1, null, null);
|
|
53297
|
-
}, n.inherits(proto.viam.component.sensor.v1.GetReadingsRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.sensor.v1.GetReadingsRequest.displayName = "proto.viam.component.sensor.v1.GetReadingsRequest"), proto.viam.component.sensor.v1.GetReadingsResponse = function(t) {
|
|
53298
|
-
e.Message.initialize(this, t, 0, -1, null, null);
|
|
53299
|
-
}, n.inherits(proto.viam.component.sensor.v1.GetReadingsResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.component.sensor.v1.GetReadingsResponse.displayName = "proto.viam.component.sensor.v1.GetReadingsResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.component.sensor.v1.GetReadingsRequest.prototype.toObject = function(t) {
|
|
53300
|
-
return proto.viam.component.sensor.v1.GetReadingsRequest.toObject(t, this);
|
|
53301
|
-
}, proto.viam.component.sensor.v1.GetReadingsRequest.toObject = function(t, o) {
|
|
53302
|
-
var r, u = {
|
|
53303
|
-
name: e.Message.getFieldWithDefault(o, 1, ""),
|
|
53304
|
-
extra: (r = o.getExtra()) && p.Struct.toObject(t, r)
|
|
53305
|
-
};
|
|
53306
|
-
return t && (u.$jspbMessageInstance = o), u;
|
|
53307
|
-
}), proto.viam.component.sensor.v1.GetReadingsRequest.deserializeBinary = function(t) {
|
|
53308
|
-
var o = new e.BinaryReader(t), r = new proto.viam.component.sensor.v1.GetReadingsRequest();
|
|
53309
|
-
return proto.viam.component.sensor.v1.GetReadingsRequest.deserializeBinaryFromReader(r, o);
|
|
53310
|
-
}, proto.viam.component.sensor.v1.GetReadingsRequest.deserializeBinaryFromReader = function(t, o) {
|
|
53311
|
-
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
53312
|
-
var r = o.getFieldNumber();
|
|
53313
|
-
switch (r) {
|
|
53314
|
-
case 1:
|
|
53315
|
-
var u = (
|
|
53316
|
-
/** @type {string} */
|
|
53317
|
-
o.readString()
|
|
53318
|
-
);
|
|
53319
|
-
t.setName(u);
|
|
53320
|
-
break;
|
|
53321
|
-
case 99:
|
|
53322
|
-
var u = new p.Struct();
|
|
53323
|
-
o.readMessage(u, p.Struct.deserializeBinaryFromReader), t.setExtra(u);
|
|
53324
|
-
break;
|
|
53325
|
-
default:
|
|
53326
|
-
o.skipField();
|
|
53327
|
-
break;
|
|
53328
|
-
}
|
|
53329
|
-
}
|
|
53330
|
-
return t;
|
|
53331
|
-
}, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.serializeBinary = function() {
|
|
53332
|
-
var t = new e.BinaryWriter();
|
|
53333
|
-
return proto.viam.component.sensor.v1.GetReadingsRequest.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
53334
|
-
}, proto.viam.component.sensor.v1.GetReadingsRequest.serializeBinaryToWriter = function(t, o) {
|
|
53335
|
-
var r = void 0;
|
|
53336
|
-
r = t.getName(), r.length > 0 && o.writeString(
|
|
53337
|
-
1,
|
|
53338
|
-
r
|
|
53339
|
-
), r = t.getExtra(), r != null && o.writeMessage(
|
|
53340
|
-
99,
|
|
53341
|
-
r,
|
|
53342
|
-
p.Struct.serializeBinaryToWriter
|
|
53343
|
-
);
|
|
53344
|
-
}, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.getName = function() {
|
|
53345
|
-
return (
|
|
53346
|
-
/** @type {string} */
|
|
53347
|
-
e.Message.getFieldWithDefault(this, 1, "")
|
|
53348
|
-
);
|
|
53349
|
-
}, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.setName = function(t) {
|
|
53350
|
-
return e.Message.setProto3StringField(this, 1, t);
|
|
53351
|
-
}, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.getExtra = function() {
|
|
53352
|
-
return (
|
|
53353
|
-
/** @type{?proto.google.protobuf.Struct} */
|
|
53354
|
-
e.Message.getWrapperField(this, p.Struct, 99)
|
|
53355
|
-
);
|
|
53356
|
-
}, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.setExtra = function(t) {
|
|
53357
|
-
return e.Message.setWrapperField(this, 99, t);
|
|
53358
|
-
}, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.clearExtra = function() {
|
|
53359
|
-
return this.setExtra(void 0);
|
|
53360
|
-
}, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.hasExtra = function() {
|
|
53361
|
-
return e.Message.getField(this, 99) != null;
|
|
53362
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.sensor.v1.GetReadingsResponse.prototype.toObject = function(t) {
|
|
53363
|
-
return proto.viam.component.sensor.v1.GetReadingsResponse.toObject(t, this);
|
|
53364
|
-
}, proto.viam.component.sensor.v1.GetReadingsResponse.toObject = function(t, o) {
|
|
53365
|
-
var r, u = {
|
|
53366
|
-
readingsMap: (r = o.getReadingsMap()) ? r.toObject(t, proto.google.protobuf.Value.toObject) : []
|
|
53367
|
-
};
|
|
53368
|
-
return t && (u.$jspbMessageInstance = o), u;
|
|
53369
|
-
}), proto.viam.component.sensor.v1.GetReadingsResponse.deserializeBinary = function(t) {
|
|
53370
|
-
var o = new e.BinaryReader(t), r = new proto.viam.component.sensor.v1.GetReadingsResponse();
|
|
53371
|
-
return proto.viam.component.sensor.v1.GetReadingsResponse.deserializeBinaryFromReader(r, o);
|
|
53372
|
-
}, proto.viam.component.sensor.v1.GetReadingsResponse.deserializeBinaryFromReader = function(t, o) {
|
|
53373
|
-
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
53374
|
-
var r = o.getFieldNumber();
|
|
53375
|
-
switch (r) {
|
|
53376
|
-
case 1:
|
|
53377
|
-
var u = t.getReadingsMap();
|
|
53378
|
-
o.readMessage(u, function(c, d) {
|
|
53379
|
-
e.Map.deserializeBinary(c, d, e.BinaryReader.prototype.readString, e.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
53380
|
-
});
|
|
53381
|
-
break;
|
|
53382
|
-
default:
|
|
53383
|
-
o.skipField();
|
|
53384
|
-
break;
|
|
53385
|
-
}
|
|
53386
|
-
}
|
|
53387
|
-
return t;
|
|
53388
|
-
}, proto.viam.component.sensor.v1.GetReadingsResponse.prototype.serializeBinary = function() {
|
|
53389
|
-
var t = new e.BinaryWriter();
|
|
53390
|
-
return proto.viam.component.sensor.v1.GetReadingsResponse.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
53391
|
-
}, proto.viam.component.sensor.v1.GetReadingsResponse.serializeBinaryToWriter = function(t, o) {
|
|
53392
|
-
var r = void 0;
|
|
53393
|
-
r = t.getReadingsMap(!0), r && r.getLength() > 0 && r.serializeBinary(1, o, e.BinaryWriter.prototype.writeString, e.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
53394
|
-
}, proto.viam.component.sensor.v1.GetReadingsResponse.prototype.getReadingsMap = function(t) {
|
|
53395
|
-
return (
|
|
53396
|
-
/** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
|
|
53397
|
-
e.Message.getMapField(
|
|
53398
|
-
this,
|
|
53399
|
-
1,
|
|
53400
|
-
t,
|
|
53401
|
-
proto.google.protobuf.Value
|
|
53402
|
-
)
|
|
53403
|
-
);
|
|
53404
|
-
}, proto.viam.component.sensor.v1.GetReadingsResponse.prototype.clearReadingsMap = function() {
|
|
53405
|
-
return this.getReadingsMap().clear(), this;
|
|
53406
|
-
}, n.object.extend(i, proto.viam.component.sensor.v1);
|
|
53407
|
-
})(sensor_pb);
|
|
53408
|
-
var component_sensor_v1_sensor_pb = sensor_pb, common_v1_common_pb$1 = common_pb, grpc$2 = grpcWebClient_umdExports$1.grpc, SensorService = function() {
|
|
53755
|
+
var sensor_pb = {}, jspb = googleProtobuf, goog = jspb, global$1 = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof global$1 < "u" && global$1 || typeof self < "u" && self || function() {
|
|
53756
|
+
return this;
|
|
53757
|
+
}.call(null) || Function("return this")(), common_v1_common_pb$2 = common_pb;
|
|
53758
|
+
goog.object.extend(proto, common_v1_common_pb$2);
|
|
53759
|
+
var google_api_annotations_pb = annotations_pb$1;
|
|
53760
|
+
goog.object.extend(proto, google_api_annotations_pb);
|
|
53761
|
+
var common_v1_common_pb$1 = common_pb, grpc$2 = grpcWebClient_umdExports$1.grpc, SensorService = function() {
|
|
53409
53762
|
function i() {
|
|
53410
53763
|
}
|
|
53411
53764
|
return i.serviceName = "viam.component.sensor.v1.SensorService", i;
|
|
@@ -53415,8 +53768,8 @@ SensorService.GetReadings = {
|
|
|
53415
53768
|
service: SensorService,
|
|
53416
53769
|
requestStream: !1,
|
|
53417
53770
|
responseStream: !1,
|
|
53418
|
-
requestType:
|
|
53419
|
-
responseType:
|
|
53771
|
+
requestType: common_v1_common_pb$1.GetReadingsRequest,
|
|
53772
|
+
responseType: common_v1_common_pb$1.GetReadingsResponse
|
|
53420
53773
|
};
|
|
53421
53774
|
SensorService.DoCommand = {
|
|
53422
53775
|
methodName: "DoCommand",
|
|
@@ -53518,9 +53871,12 @@ class SensorClient {
|
|
|
53518
53871
|
return this.client;
|
|
53519
53872
|
}
|
|
53520
53873
|
async getReadings(e = {}) {
|
|
53521
|
-
const { sensorService: n } = this, s = new
|
|
53874
|
+
const { sensorService: n } = this, s = new common_pb.GetReadingsRequest();
|
|
53522
53875
|
s.setName(this.name), s.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(s);
|
|
53523
|
-
const l = await promisify(
|
|
53876
|
+
const l = await promisify(
|
|
53877
|
+
n.getReadings.bind(n),
|
|
53878
|
+
s
|
|
53879
|
+
), g = {};
|
|
53524
53880
|
for (const [p, t] of l.getReadingsMap().entries())
|
|
53525
53881
|
g[p] = t.toJavaScript();
|
|
53526
53882
|
return g;
|
|
@@ -53986,8 +54342,11 @@ const encodeLinearConstraint = (i) => {
|
|
|
53986
54342
|
), e;
|
|
53987
54343
|
}, encodeMotionConfiguration = (i) => {
|
|
53988
54344
|
const e = new motion_pb.MotionConfiguration();
|
|
53989
|
-
return e.
|
|
53990
|
-
i.
|
|
54345
|
+
return e.setObstacleDetectorsList(
|
|
54346
|
+
i.obstacleDetectorsList.map((n) => {
|
|
54347
|
+
const s = new motion_pb.ObstacleDetector();
|
|
54348
|
+
return n.visionService && s.setVisionService(encodeResourceName(n.visionService)), n.camera && s.setCamera(encodeResourceName(n.camera)), s;
|
|
54349
|
+
})
|
|
53991
54350
|
), e.setPositionPollingFrequencyHz(i.positionPollingFrequencyHz), e.setObstaclePollingFrequencyHz(i.obstaclePollingFrequencyHz), e.setPlanDeviationM(i.planDeviationM), e.setLinearMPerSec(i.linearMPerSec), e.setAngularDegsPerSec(i.angularDegsPerSec), e;
|
|
53992
54351
|
};
|
|
53993
54352
|
class MotionClient {
|
|
@@ -54438,7 +54797,7 @@ const concatArrayU8 = (i) => {
|
|
|
54438
54797
|
for (const l of i)
|
|
54439
54798
|
n.set(l, s), s += l.length;
|
|
54440
54799
|
return n;
|
|
54441
|
-
}, version = "0.
|
|
54800
|
+
}, version = "0.7.0-rc.0";
|
|
54442
54801
|
export {
|
|
54443
54802
|
ArmClient,
|
|
54444
54803
|
BaseClient,
|