@viamrobotics/sdk 0.16.0-rc.0 → 0.17.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/components/board/board.d.ts +2 -1
- package/dist/components/board/client.d.ts +2 -1
- package/dist/components/board.d.ts +1 -1
- package/dist/events.d.ts +3 -4
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +8 -0
- package/dist/gen/app/packages/v1/packages_pb.d.ts +6 -0
- package/dist/gen/app/v1/app_pb.d.ts +6 -0
- package/dist/gen/app/v1/robot_pb.d.ts +6 -0
- package/dist/gen/common/v1/common_pb.d.ts +7 -7
- package/dist/gen/service/motion/v1/motion_pb.d.ts +10 -4
- package/dist/gen/service/navigation/v1/navigation_pb.d.ts +4 -4
- package/dist/gen/{proto/stream → stream}/v1/stream_pb.d.ts +1 -1
- package/dist/gen/{proto/stream → stream}/v1/stream_pb_service.d.ts +20 -20
- package/dist/main.d.ts +2 -2
- package/dist/main.es.js +229 -112
- package/dist/main.umd.js +4 -4
- package/dist/robot/client.d.ts +1 -0
- package/dist/robot/dial.d.ts +6 -2
- package/dist/robot/grpc-connection-manager.d.ts +2 -1
- package/dist/robot/robot.d.ts +9 -6
- package/dist/services/motion/client.d.ts +2 -2
- package/dist/services/motion/motion.d.ts +4 -2
- package/dist/services/navigation/client.d.ts +1 -1
- package/dist/services/navigation/navigation.d.ts +2 -2
- package/dist/types.d.ts +1 -1
- package/dist/utils.d.ts +2 -2
- package/package.json +2 -2
package/dist/main.es.js
CHANGED
|
@@ -8360,7 +8360,7 @@ var timestamp_pb$1 = {};
|
|
|
8360
8360
|
var p = struct_pb;
|
|
8361
8361
|
s.object.extend(proto, p);
|
|
8362
8362
|
var g = timestamp_pb$1;
|
|
8363
|
-
s.object.extend(proto, g), s.exportSymbol("proto.viam.common.v1.ActuatorStatus", null, l), s.exportSymbol("proto.viam.common.v1.Capsule", null, l), s.exportSymbol("proto.viam.common.v1.DoCommandRequest", null, l), s.exportSymbol("proto.viam.common.v1.DoCommandResponse", null, l), s.exportSymbol("proto.viam.common.v1.
|
|
8363
|
+
s.object.extend(proto, g), s.exportSymbol("proto.viam.common.v1.ActuatorStatus", null, l), s.exportSymbol("proto.viam.common.v1.Capsule", null, l), s.exportSymbol("proto.viam.common.v1.DoCommandRequest", null, l), s.exportSymbol("proto.viam.common.v1.DoCommandResponse", null, l), s.exportSymbol("proto.viam.common.v1.GeoGeometry", null, l), s.exportSymbol("proto.viam.common.v1.GeoPoint", null, l), s.exportSymbol("proto.viam.common.v1.GeometriesInFrame", null, l), s.exportSymbol("proto.viam.common.v1.Geometry", null, l), s.exportSymbol("proto.viam.common.v1.Geometry.GeometryTypeCase", null, l), s.exportSymbol("proto.viam.common.v1.GetGeometriesRequest", null, l), s.exportSymbol("proto.viam.common.v1.GetGeometriesResponse", null, l), s.exportSymbol("proto.viam.common.v1.GetKinematicsRequest", null, l), s.exportSymbol("proto.viam.common.v1.GetKinematicsResponse", null, l), s.exportSymbol("proto.viam.common.v1.GetReadingsRequest", null, l), s.exportSymbol("proto.viam.common.v1.GetReadingsResponse", null, l), s.exportSymbol("proto.viam.common.v1.KinematicsFileFormat", null, l), s.exportSymbol("proto.viam.common.v1.LogEntry", null, l), s.exportSymbol("proto.viam.common.v1.Orientation", null, l), s.exportSymbol("proto.viam.common.v1.PointCloudObject", null, l), s.exportSymbol("proto.viam.common.v1.Pose", null, l), s.exportSymbol("proto.viam.common.v1.PoseInFrame", null, l), s.exportSymbol("proto.viam.common.v1.RectangularPrism", null, l), s.exportSymbol("proto.viam.common.v1.ResourceName", null, l), s.exportSymbol("proto.viam.common.v1.ResponseMetadata", null, l), s.exportSymbol("proto.viam.common.v1.Sphere", null, l), s.exportSymbol("proto.viam.common.v1.Transform", null, l), s.exportSymbol("proto.viam.common.v1.Vector3", null, l), s.exportSymbol("proto.viam.common.v1.WorldState", null, l), s.exportSymbol("proto.viam.common.v1.safetyHeartbeatMonitored", null, l), proto.viam.common.v1.ResourceName = function(t) {
|
|
8364
8364
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
8365
8365
|
}, s.inherits(proto.viam.common.v1.ResourceName, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.ResourceName.displayName = "proto.viam.common.v1.ResourceName"), proto.viam.common.v1.Pose = function(t) {
|
|
8366
8366
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
@@ -8384,9 +8384,9 @@ var timestamp_pb$1 = {};
|
|
|
8384
8384
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
8385
8385
|
}, s.inherits(proto.viam.common.v1.PointCloudObject, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.PointCloudObject.displayName = "proto.viam.common.v1.PointCloudObject"), proto.viam.common.v1.GeoPoint = function(t) {
|
|
8386
8386
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
8387
|
-
}, s.inherits(proto.viam.common.v1.GeoPoint, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GeoPoint.displayName = "proto.viam.common.v1.GeoPoint"), proto.viam.common.v1.
|
|
8388
|
-
e.Message.initialize(this, t, 0, -1, proto.viam.common.v1.
|
|
8389
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8387
|
+
}, s.inherits(proto.viam.common.v1.GeoPoint, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GeoPoint.displayName = "proto.viam.common.v1.GeoPoint"), proto.viam.common.v1.GeoGeometry = function(t) {
|
|
8388
|
+
e.Message.initialize(this, t, 0, -1, proto.viam.common.v1.GeoGeometry.repeatedFields_, null);
|
|
8389
|
+
}, s.inherits(proto.viam.common.v1.GeoGeometry, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GeoGeometry.displayName = "proto.viam.common.v1.GeoGeometry"), proto.viam.common.v1.Transform = function(t) {
|
|
8390
8390
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
8391
8391
|
}, s.inherits(proto.viam.common.v1.Transform, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.Transform.displayName = "proto.viam.common.v1.Transform"), proto.viam.common.v1.WorldState = function(t) {
|
|
8392
8392
|
e.Message.initialize(this, t, 0, -1, proto.viam.common.v1.WorldState.repeatedFields_, null);
|
|
@@ -9386,9 +9386,9 @@ var timestamp_pb$1 = {};
|
|
|
9386
9386
|
);
|
|
9387
9387
|
}, proto.viam.common.v1.GeoPoint.prototype.setLongitude = function(t) {
|
|
9388
9388
|
return e.Message.setProto3FloatField(this, 2, t);
|
|
9389
|
-
}, proto.viam.common.v1.
|
|
9390
|
-
return proto.viam.common.v1.
|
|
9391
|
-
}, proto.viam.common.v1.
|
|
9389
|
+
}, proto.viam.common.v1.GeoGeometry.repeatedFields_ = [2], e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GeoGeometry.prototype.toObject = function(t) {
|
|
9390
|
+
return proto.viam.common.v1.GeoGeometry.toObject(t, this);
|
|
9391
|
+
}, proto.viam.common.v1.GeoGeometry.toObject = function(t, r) {
|
|
9392
9392
|
var i, o = {
|
|
9393
9393
|
location: (i = r.getLocation()) && proto.viam.common.v1.GeoPoint.toObject(t, i),
|
|
9394
9394
|
geometriesList: e.Message.toObjectList(
|
|
@@ -9398,10 +9398,10 @@ var timestamp_pb$1 = {};
|
|
|
9398
9398
|
)
|
|
9399
9399
|
};
|
|
9400
9400
|
return t && (o.$jspbMessageInstance = r), o;
|
|
9401
|
-
}), proto.viam.common.v1.
|
|
9402
|
-
var r = new e.BinaryReader(t), i = new proto.viam.common.v1.
|
|
9403
|
-
return proto.viam.common.v1.
|
|
9404
|
-
}, proto.viam.common.v1.
|
|
9401
|
+
}), proto.viam.common.v1.GeoGeometry.deserializeBinary = function(t) {
|
|
9402
|
+
var r = new e.BinaryReader(t), i = new proto.viam.common.v1.GeoGeometry();
|
|
9403
|
+
return proto.viam.common.v1.GeoGeometry.deserializeBinaryFromReader(i, r);
|
|
9404
|
+
}, proto.viam.common.v1.GeoGeometry.deserializeBinaryFromReader = function(t, r) {
|
|
9405
9405
|
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9406
9406
|
var i = r.getFieldNumber();
|
|
9407
9407
|
switch (i) {
|
|
@@ -9419,10 +9419,10 @@ var timestamp_pb$1 = {};
|
|
|
9419
9419
|
}
|
|
9420
9420
|
}
|
|
9421
9421
|
return t;
|
|
9422
|
-
}, proto.viam.common.v1.
|
|
9422
|
+
}, proto.viam.common.v1.GeoGeometry.prototype.serializeBinary = function() {
|
|
9423
9423
|
var t = new e.BinaryWriter();
|
|
9424
|
-
return proto.viam.common.v1.
|
|
9425
|
-
}, proto.viam.common.v1.
|
|
9424
|
+
return proto.viam.common.v1.GeoGeometry.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
9425
|
+
}, proto.viam.common.v1.GeoGeometry.serializeBinaryToWriter = function(t, r) {
|
|
9426
9426
|
var i = void 0;
|
|
9427
9427
|
i = t.getLocation(), i != null && r.writeMessage(
|
|
9428
9428
|
1,
|
|
@@ -9433,27 +9433,27 @@ var timestamp_pb$1 = {};
|
|
|
9433
9433
|
i,
|
|
9434
9434
|
proto.viam.common.v1.Geometry.serializeBinaryToWriter
|
|
9435
9435
|
);
|
|
9436
|
-
}, proto.viam.common.v1.
|
|
9436
|
+
}, proto.viam.common.v1.GeoGeometry.prototype.getLocation = function() {
|
|
9437
9437
|
return (
|
|
9438
9438
|
/** @type{?proto.viam.common.v1.GeoPoint} */
|
|
9439
9439
|
e.Message.getWrapperField(this, proto.viam.common.v1.GeoPoint, 1)
|
|
9440
9440
|
);
|
|
9441
|
-
}, proto.viam.common.v1.
|
|
9441
|
+
}, proto.viam.common.v1.GeoGeometry.prototype.setLocation = function(t) {
|
|
9442
9442
|
return e.Message.setWrapperField(this, 1, t);
|
|
9443
|
-
}, proto.viam.common.v1.
|
|
9443
|
+
}, proto.viam.common.v1.GeoGeometry.prototype.clearLocation = function() {
|
|
9444
9444
|
return this.setLocation(void 0);
|
|
9445
|
-
}, proto.viam.common.v1.
|
|
9445
|
+
}, proto.viam.common.v1.GeoGeometry.prototype.hasLocation = function() {
|
|
9446
9446
|
return e.Message.getField(this, 1) != null;
|
|
9447
|
-
}, proto.viam.common.v1.
|
|
9447
|
+
}, proto.viam.common.v1.GeoGeometry.prototype.getGeometriesList = function() {
|
|
9448
9448
|
return (
|
|
9449
9449
|
/** @type{!Array<!proto.viam.common.v1.Geometry>} */
|
|
9450
9450
|
e.Message.getRepeatedWrapperField(this, proto.viam.common.v1.Geometry, 2)
|
|
9451
9451
|
);
|
|
9452
|
-
}, proto.viam.common.v1.
|
|
9452
|
+
}, proto.viam.common.v1.GeoGeometry.prototype.setGeometriesList = function(t) {
|
|
9453
9453
|
return e.Message.setRepeatedWrapperField(this, 2, t);
|
|
9454
|
-
}, proto.viam.common.v1.
|
|
9454
|
+
}, proto.viam.common.v1.GeoGeometry.prototype.addGeometries = function(t, r) {
|
|
9455
9455
|
return e.Message.addToRepeatedWrapperField(this, 2, t, proto.viam.common.v1.Geometry, r);
|
|
9456
|
-
}, proto.viam.common.v1.
|
|
9456
|
+
}, proto.viam.common.v1.GeoGeometry.prototype.clearGeometriesList = function() {
|
|
9457
9457
|
return this.setGeometriesList([]);
|
|
9458
9458
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Transform.prototype.toObject = function(t) {
|
|
9459
9459
|
return proto.viam.common.v1.Transform.toObject(t, this);
|
|
@@ -28132,7 +28132,11 @@ async function dialWebRTC$1(n, e, s) {
|
|
|
28132
28132
|
), U = btoa(JSON.stringify(x));
|
|
28133
28133
|
return j.setSdp(U), d && d.disableTrickleICE && j.setDisableTrickle(d.disableTrickleICE), R.send(j), T = new ClientChannel(y, m), s.dialTimeout && setTimeout(() => {
|
|
28134
28134
|
f || T.close();
|
|
28135
|
-
}, s.dialTimeout), T.ready.then(() => A()).catch((B) => G(B)), await $, await T.ready, D = !0, z(), s != null && s.externalAuthAddress || (o = s?.credentials) != null && o.type, f = !0, {
|
|
28135
|
+
}, s.dialTimeout), T.ready.then(() => A()).catch((B) => G(B)), await $, await T.ready, D = !0, z(), s != null && s.externalAuthAddress || (o = s?.credentials) != null && o.type, f = !0, {
|
|
28136
|
+
transportFactory: T.transportFactory(),
|
|
28137
|
+
peerConnection: y,
|
|
28138
|
+
dataChannel: m
|
|
28139
|
+
};
|
|
28136
28140
|
} finally {
|
|
28137
28141
|
f || y.close();
|
|
28138
28142
|
}
|
|
@@ -28613,7 +28617,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
28613
28617
|
}()
|
|
28614
28618
|
);
|
|
28615
28619
|
const DIAL_TIMEOUT = 5e3;
|
|
28616
|
-
var MachineConnectionEvent = /* @__PURE__ */ ((n) => (n.
|
|
28620
|
+
var MachineConnectionEvent = /* @__PURE__ */ ((n) => (n.CONNECTING = "connecting", n.CONNECTED = "connected", n.DISCONNECTING = "disconnecting", n.DISCONNECTED = "disconnected", n))(MachineConnectionEvent || {});
|
|
28617
28621
|
class EventDispatcher {
|
|
28618
28622
|
listeners = {};
|
|
28619
28623
|
on(e, s) {
|
|
@@ -28637,7 +28641,6 @@ class EventDispatcher {
|
|
|
28637
28641
|
l(s);
|
|
28638
28642
|
}
|
|
28639
28643
|
}
|
|
28640
|
-
const events = new EventDispatcher();
|
|
28641
28644
|
var arm_pb = {};
|
|
28642
28645
|
(function(n) {
|
|
28643
28646
|
var e = googleProtobuf$1, s = e, l = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof l < "u" && l || typeof self < "u" && self || function() {
|
|
@@ -41342,7 +41345,7 @@ var RobotServiceClient_1 = RobotServiceClient, motion_pb = {};
|
|
|
41342
41345
|
return e.Message.setField(this, 6, void 0);
|
|
41343
41346
|
}, proto.viam.service.motion.v1.MotionConfiguration.prototype.hasAngularDegsPerSec = function() {
|
|
41344
41347
|
return e.Message.getField(this, 6) != null;
|
|
41345
|
-
}, proto.viam.service.motion.v1.MoveOnGlobeRequest.repeatedFields_ = [6], e.Message.GENERATE_TO_OBJECT && (proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.toObject = function(r) {
|
|
41348
|
+
}, proto.viam.service.motion.v1.MoveOnGlobeRequest.repeatedFields_ = [6, 8], e.Message.GENERATE_TO_OBJECT && (proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.toObject = function(r) {
|
|
41346
41349
|
return proto.viam.service.motion.v1.MoveOnGlobeRequest.toObject(r, this);
|
|
41347
41350
|
}, proto.viam.service.motion.v1.MoveOnGlobeRequest.toObject = function(r, i) {
|
|
41348
41351
|
var o, c = {
|
|
@@ -41353,10 +41356,15 @@ var RobotServiceClient_1 = RobotServiceClient, motion_pb = {};
|
|
|
41353
41356
|
movementSensorName: (o = i.getMovementSensorName()) && u.ResourceName.toObject(r, o),
|
|
41354
41357
|
obstaclesList: e.Message.toObjectList(
|
|
41355
41358
|
i.getObstaclesList(),
|
|
41356
|
-
u.
|
|
41359
|
+
u.GeoGeometry.toObject,
|
|
41357
41360
|
r
|
|
41358
41361
|
),
|
|
41359
41362
|
motionConfiguration: (o = i.getMotionConfiguration()) && proto.viam.service.motion.v1.MotionConfiguration.toObject(r, o),
|
|
41363
|
+
boundingRegionsList: e.Message.toObjectList(
|
|
41364
|
+
i.getBoundingRegionsList(),
|
|
41365
|
+
u.GeoGeometry.toObject,
|
|
41366
|
+
r
|
|
41367
|
+
),
|
|
41360
41368
|
extra: (o = i.getExtra()) && g.Struct.toObject(r, o)
|
|
41361
41369
|
};
|
|
41362
41370
|
return r && (c.$jspbMessageInstance = i), c;
|
|
@@ -41394,13 +41402,17 @@ var RobotServiceClient_1 = RobotServiceClient, motion_pb = {};
|
|
|
41394
41402
|
i.readMessage(c, u.ResourceName.deserializeBinaryFromReader), r.setMovementSensorName(c);
|
|
41395
41403
|
break;
|
|
41396
41404
|
case 6:
|
|
41397
|
-
var c = new u.
|
|
41398
|
-
i.readMessage(c, u.
|
|
41405
|
+
var c = new u.GeoGeometry();
|
|
41406
|
+
i.readMessage(c, u.GeoGeometry.deserializeBinaryFromReader), r.addObstacles(c);
|
|
41399
41407
|
break;
|
|
41400
41408
|
case 7:
|
|
41401
41409
|
var c = new proto.viam.service.motion.v1.MotionConfiguration();
|
|
41402
41410
|
i.readMessage(c, proto.viam.service.motion.v1.MotionConfiguration.deserializeBinaryFromReader), r.setMotionConfiguration(c);
|
|
41403
41411
|
break;
|
|
41412
|
+
case 8:
|
|
41413
|
+
var c = new u.GeoGeometry();
|
|
41414
|
+
i.readMessage(c, u.GeoGeometry.deserializeBinaryFromReader), r.addBoundingRegions(c);
|
|
41415
|
+
break;
|
|
41404
41416
|
case 99:
|
|
41405
41417
|
var c = new g.Struct();
|
|
41406
41418
|
i.readMessage(c, g.Struct.deserializeBinaryFromReader), r.setExtra(c);
|
|
@@ -41438,11 +41450,15 @@ var RobotServiceClient_1 = RobotServiceClient, motion_pb = {};
|
|
|
41438
41450
|
), o = r.getObstaclesList(), o.length > 0 && i.writeRepeatedMessage(
|
|
41439
41451
|
6,
|
|
41440
41452
|
o,
|
|
41441
|
-
u.
|
|
41453
|
+
u.GeoGeometry.serializeBinaryToWriter
|
|
41442
41454
|
), o = r.getMotionConfiguration(), o != null && i.writeMessage(
|
|
41443
41455
|
7,
|
|
41444
41456
|
o,
|
|
41445
41457
|
proto.viam.service.motion.v1.MotionConfiguration.serializeBinaryToWriter
|
|
41458
|
+
), o = r.getBoundingRegionsList(), o.length > 0 && i.writeRepeatedMessage(
|
|
41459
|
+
8,
|
|
41460
|
+
o,
|
|
41461
|
+
u.GeoGeometry.serializeBinaryToWriter
|
|
41446
41462
|
), o = r.getExtra(), o != null && i.writeMessage(
|
|
41447
41463
|
99,
|
|
41448
41464
|
o,
|
|
@@ -41501,13 +41517,13 @@ var RobotServiceClient_1 = RobotServiceClient, motion_pb = {};
|
|
|
41501
41517
|
return e.Message.getField(this, 5) != null;
|
|
41502
41518
|
}, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getObstaclesList = function() {
|
|
41503
41519
|
return (
|
|
41504
|
-
/** @type{!Array<!proto.viam.common.v1.
|
|
41505
|
-
e.Message.getRepeatedWrapperField(this, u.
|
|
41520
|
+
/** @type{!Array<!proto.viam.common.v1.GeoGeometry>} */
|
|
41521
|
+
e.Message.getRepeatedWrapperField(this, u.GeoGeometry, 6)
|
|
41506
41522
|
);
|
|
41507
41523
|
}, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.setObstaclesList = function(r) {
|
|
41508
41524
|
return e.Message.setRepeatedWrapperField(this, 6, r);
|
|
41509
41525
|
}, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.addObstacles = function(r, i) {
|
|
41510
|
-
return e.Message.addToRepeatedWrapperField(this, 6, r, proto.viam.common.v1.
|
|
41526
|
+
return e.Message.addToRepeatedWrapperField(this, 6, r, proto.viam.common.v1.GeoGeometry, i);
|
|
41511
41527
|
}, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.clearObstaclesList = function() {
|
|
41512
41528
|
return this.setObstaclesList([]);
|
|
41513
41529
|
}, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getMotionConfiguration = function() {
|
|
@@ -41521,6 +41537,17 @@ var RobotServiceClient_1 = RobotServiceClient, motion_pb = {};
|
|
|
41521
41537
|
return this.setMotionConfiguration(void 0);
|
|
41522
41538
|
}, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.hasMotionConfiguration = function() {
|
|
41523
41539
|
return e.Message.getField(this, 7) != null;
|
|
41540
|
+
}, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getBoundingRegionsList = function() {
|
|
41541
|
+
return (
|
|
41542
|
+
/** @type{!Array<!proto.viam.common.v1.GeoGeometry>} */
|
|
41543
|
+
e.Message.getRepeatedWrapperField(this, u.GeoGeometry, 8)
|
|
41544
|
+
);
|
|
41545
|
+
}, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.setBoundingRegionsList = function(r) {
|
|
41546
|
+
return e.Message.setRepeatedWrapperField(this, 8, r);
|
|
41547
|
+
}, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.addBoundingRegions = function(r, i) {
|
|
41548
|
+
return e.Message.addToRepeatedWrapperField(this, 8, r, proto.viam.common.v1.GeoGeometry, i);
|
|
41549
|
+
}, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.clearBoundingRegionsList = function() {
|
|
41550
|
+
return this.setBoundingRegionsList([]);
|
|
41524
41551
|
}, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getExtra = function() {
|
|
41525
41552
|
return (
|
|
41526
41553
|
/** @type{?proto.google.protobuf.Struct} */
|
|
@@ -44070,7 +44097,7 @@ var MotionServiceClient_1 = MotionServiceClient, navigation_pb = {};
|
|
|
44070
44097
|
var i = {
|
|
44071
44098
|
obstaclesList: e.Message.toObjectList(
|
|
44072
44099
|
r.getObstaclesList(),
|
|
44073
|
-
u.
|
|
44100
|
+
u.GeoGeometry.toObject,
|
|
44074
44101
|
t
|
|
44075
44102
|
)
|
|
44076
44103
|
};
|
|
@@ -44083,8 +44110,8 @@ var MotionServiceClient_1 = MotionServiceClient, navigation_pb = {};
|
|
|
44083
44110
|
var i = r.getFieldNumber();
|
|
44084
44111
|
switch (i) {
|
|
44085
44112
|
case 1:
|
|
44086
|
-
var o = new u.
|
|
44087
|
-
r.readMessage(o, u.
|
|
44113
|
+
var o = new u.GeoGeometry();
|
|
44114
|
+
r.readMessage(o, u.GeoGeometry.deserializeBinaryFromReader), t.addObstacles(o);
|
|
44088
44115
|
break;
|
|
44089
44116
|
default:
|
|
44090
44117
|
r.skipField();
|
|
@@ -44100,17 +44127,17 @@ var MotionServiceClient_1 = MotionServiceClient, navigation_pb = {};
|
|
|
44100
44127
|
i = t.getObstaclesList(), i.length > 0 && r.writeRepeatedMessage(
|
|
44101
44128
|
1,
|
|
44102
44129
|
i,
|
|
44103
|
-
u.
|
|
44130
|
+
u.GeoGeometry.serializeBinaryToWriter
|
|
44104
44131
|
);
|
|
44105
44132
|
}, proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.getObstaclesList = function() {
|
|
44106
44133
|
return (
|
|
44107
|
-
/** @type{!Array<!proto.viam.common.v1.
|
|
44108
|
-
e.Message.getRepeatedWrapperField(this, u.
|
|
44134
|
+
/** @type{!Array<!proto.viam.common.v1.GeoGeometry>} */
|
|
44135
|
+
e.Message.getRepeatedWrapperField(this, u.GeoGeometry, 1)
|
|
44109
44136
|
);
|
|
44110
44137
|
}, proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.setObstaclesList = function(t) {
|
|
44111
44138
|
return e.Message.setRepeatedWrapperField(this, 1, t);
|
|
44112
44139
|
}, proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.addObstacles = function(t, r) {
|
|
44113
|
-
return e.Message.addToRepeatedWrapperField(this, 1, t, proto.viam.common.v1.
|
|
44140
|
+
return e.Message.addToRepeatedWrapperField(this, 1, t, proto.viam.common.v1.GeoGeometry, r);
|
|
44114
44141
|
}, proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.clearObstaclesList = function() {
|
|
44115
44142
|
return this.setObstaclesList([]);
|
|
44116
44143
|
}, proto.viam.service.navigation.v1.Path.repeatedFields_ = [2], e.Message.GENERATE_TO_OBJECT && (proto.viam.service.navigation.v1.Path.prototype.toObject = function(t) {
|
|
@@ -49261,8 +49288,8 @@ const promisify = async (n, e) => new Promise((s, l) => {
|
|
|
49261
49288
|
}, encodeGeoPoint = (n) => {
|
|
49262
49289
|
const e = new common.GeoPoint();
|
|
49263
49290
|
return e.setLatitude(n.latitude), e.setLongitude(n.longitude), e;
|
|
49264
|
-
},
|
|
49265
|
-
const e = new common.
|
|
49291
|
+
}, encodeGeoGeometry = (n) => {
|
|
49292
|
+
const e = new common.GeoGeometry();
|
|
49266
49293
|
return n.location && e.setLocation(encodeGeoPoint(n.location)), e.setGeometriesList(n.geometriesList.map((s) => encodeGeometry(s))), e;
|
|
49267
49294
|
}, timeoutBlob$1 = new Blob(
|
|
49268
49295
|
[
|
|
@@ -49279,10 +49306,11 @@ class GRPCConnectionManager {
|
|
|
49279
49306
|
connecting;
|
|
49280
49307
|
connectResolve;
|
|
49281
49308
|
connectReject;
|
|
49282
|
-
|
|
49309
|
+
onDisconnect;
|
|
49310
|
+
constructor(e, s, l, u = 1e4) {
|
|
49283
49311
|
this.innerTransportFactory = s, this.client = new RobotServiceClient_1(e, {
|
|
49284
49312
|
transport: this.innerTransportFactory
|
|
49285
|
-
}), this.heartbeatIntervalMs =
|
|
49313
|
+
}), this.onDisconnect = l, this.heartbeatIntervalMs = u;
|
|
49286
49314
|
}
|
|
49287
49315
|
heartbeat() {
|
|
49288
49316
|
let e;
|
|
@@ -49293,7 +49321,7 @@ class GRPCConnectionManager {
|
|
|
49293
49321
|
new grpcWebClient_umdExports$1.grpc.Metadata(),
|
|
49294
49322
|
(u) => {
|
|
49295
49323
|
if (u) {
|
|
49296
|
-
|
|
49324
|
+
this.onDisconnect();
|
|
49297
49325
|
return;
|
|
49298
49326
|
}
|
|
49299
49327
|
e ? e.postMessage(this.heartbeatIntervalMs) : setTimeout(() => s(), this.heartbeatIntervalMs);
|
|
@@ -49524,6 +49552,9 @@ class RobotClient extends EventDispatcher {
|
|
|
49524
49552
|
if (!this.transportFactory)
|
|
49525
49553
|
throw new Error(RobotClient.notConnectedYetStr);
|
|
49526
49554
|
return this.transportFactory(p);
|
|
49555
|
+
},
|
|
49556
|
+
() => {
|
|
49557
|
+
this.onDisconnect();
|
|
49527
49558
|
}
|
|
49528
49559
|
), this.sessionManager = new SessionManager(
|
|
49529
49560
|
e,
|
|
@@ -49532,30 +49563,24 @@ class RobotClient extends EventDispatcher {
|
|
|
49532
49563
|
throw new Error(RobotClient.notConnectedYetStr);
|
|
49533
49564
|
return this.transportFactory(p);
|
|
49534
49565
|
}
|
|
49535
|
-
)
|
|
49536
|
-
|
|
49537
|
-
|
|
49538
|
-
|
|
49539
|
-
|
|
49540
|
-
|
|
49541
|
-
|
|
49542
|
-
|
|
49543
|
-
|
|
49544
|
-
|
|
49545
|
-
|
|
49546
|
-
|
|
49547
|
-
|
|
49548
|
-
|
|
49549
|
-
|
|
49550
|
-
|
|
49551
|
-
|
|
49552
|
-
|
|
49553
|
-
// default values taken from `exponential-backoff` library
|
|
49554
|
-
maxDelay: this.reconnectMaxWait ?? Number.POSITIVE_INFINITY,
|
|
49555
|
-
numOfAttempts: this.reconnectMaxAttempts ?? 10
|
|
49556
|
-
}
|
|
49557
|
-
);
|
|
49558
|
-
});
|
|
49566
|
+
);
|
|
49567
|
+
for (const p of Object.values(MachineConnectionEvent))
|
|
49568
|
+
this.on(p, () => {
|
|
49569
|
+
this.emit("connectionstatechange", { eventType: p });
|
|
49570
|
+
});
|
|
49571
|
+
}
|
|
49572
|
+
onDisconnect(e) {
|
|
49573
|
+
this.emit(MachineConnectionEvent.DISCONNECTED, e ?? {}), !this.noReconnect && (console.debug("Connection closed, will try to reconnect"), backOff_1(async () => this.connect(), {
|
|
49574
|
+
maxDelay: this.reconnectMaxWait,
|
|
49575
|
+
numOfAttempts: this.reconnectMaxAttempts,
|
|
49576
|
+
retry: (s, l) => (console.debug(
|
|
49577
|
+
`Failed to connect, attempt ${l} with backoff`
|
|
49578
|
+
), !0)
|
|
49579
|
+
}).then(() => {
|
|
49580
|
+
console.debug("Reconnected successfully!");
|
|
49581
|
+
}).catch(() => {
|
|
49582
|
+
console.debug(`Reached max attempts: ${this.reconnectMaxAttempts}`);
|
|
49583
|
+
}));
|
|
49559
49584
|
}
|
|
49560
49585
|
get noReconnect() {
|
|
49561
49586
|
return this.webrtcOptions?.noReconnect ?? this.directOptions?.noReconnect;
|
|
@@ -49671,20 +49696,22 @@ class RobotClient extends EventDispatcher {
|
|
|
49671
49696
|
return this.peerConn;
|
|
49672
49697
|
}
|
|
49673
49698
|
async disconnect() {
|
|
49674
|
-
for (; this.connecting; )
|
|
49699
|
+
for (this.emit(MachineConnectionEvent.DISCONNECTING, {}); this.connecting; )
|
|
49675
49700
|
await this.connecting;
|
|
49676
|
-
this.peerConn && (this.peerConn.close(), this.peerConn = void 0), this.sessionManager.reset();
|
|
49701
|
+
this.peerConn && (this.peerConn.close(), this.peerConn = void 0), this.sessionManager.reset(), this.emit(MachineConnectionEvent.DISCONNECTED, {});
|
|
49677
49702
|
}
|
|
49678
49703
|
isConnected() {
|
|
49679
49704
|
return this.peerConn?.iceConnectionState === "connected";
|
|
49680
49705
|
}
|
|
49706
|
+
// TODO(RSDK-7672): refactor due to cognitive complexity
|
|
49707
|
+
// eslint-disable-next-line sonarjs/cognitive-complexity
|
|
49681
49708
|
async connect({
|
|
49682
49709
|
authEntity: e = this.savedAuthEntity,
|
|
49683
49710
|
creds: s = this.savedCreds,
|
|
49684
49711
|
priority: l,
|
|
49685
49712
|
dialTimeout: u
|
|
49686
49713
|
} = {}) {
|
|
49687
|
-
if (this.connecting) {
|
|
49714
|
+
if (this.emit(MachineConnectionEvent.CONNECTING, {}), this.connecting) {
|
|
49688
49715
|
for (; this.connecting; )
|
|
49689
49716
|
await this.connecting;
|
|
49690
49717
|
return;
|
|
@@ -49710,15 +49737,17 @@ class RobotClient extends EventDispatcher {
|
|
|
49710
49737
|
p
|
|
49711
49738
|
);
|
|
49712
49739
|
this.peerConn = r.peerConnection, this.peerConn.addEventListener("iceconnectionstatechange", () => {
|
|
49713
|
-
this.peerConn?.iceConnectionState === "connected" ?
|
|
49740
|
+
this.peerConn?.iceConnectionState === "connected" ? this.emit(MachineConnectionEvent.CONNECTED, {}) : this.peerConn?.iceConnectionState === "closed" && this.onDisconnect();
|
|
49741
|
+
}), r.dataChannel.addEventListener("close", (i) => {
|
|
49742
|
+
this.onDisconnect(i);
|
|
49714
49743
|
}), this.transportFactory = r.transportFactory, r.peerConnection.addEventListener("track", (i) => {
|
|
49715
49744
|
const [o] = i.streams;
|
|
49716
49745
|
if (!o)
|
|
49717
|
-
throw
|
|
49746
|
+
throw this.emit("track", i), new Error("expected event stream to exist");
|
|
49718
49747
|
const c = o.id.replaceAll("+", ":");
|
|
49719
49748
|
Object.defineProperty(o, "id", {
|
|
49720
49749
|
value: c
|
|
49721
|
-
}),
|
|
49750
|
+
}), this.emit("track", i);
|
|
49722
49751
|
});
|
|
49723
49752
|
} else
|
|
49724
49753
|
this.transportFactory = await dialDirect$1(this.serviceHost, p), await this.gRPCConnectionManager.start();
|
|
@@ -49777,7 +49806,9 @@ class RobotClient extends EventDispatcher {
|
|
|
49777
49806
|
), this.slamServiceClient = new SLAMServiceClient_1(
|
|
49778
49807
|
this.serviceHost,
|
|
49779
49808
|
t
|
|
49780
|
-
);
|
|
49809
|
+
), this.emit(MachineConnectionEvent.CONNECTED, {});
|
|
49810
|
+
} catch (p) {
|
|
49811
|
+
throw this.emit(MachineConnectionEvent.DISCONNECTED, {}), p;
|
|
49781
49812
|
} finally {
|
|
49782
49813
|
this.connectResolve?.(), this.connectResolve = void 0, this.connecting = void 0;
|
|
49783
49814
|
}
|
|
@@ -49904,13 +49935,31 @@ const isPosInt = (n) => !!(n > 0 && Number.isInteger(n)), isLocalConnection = (n
|
|
|
49904
49935
|
const e = n;
|
|
49905
49936
|
return typeof e.signalingAddress != "string" ? !1 : !e.iceServers || Array.isArray(e.iceServers);
|
|
49906
49937
|
}, createRobotClient = async (n) => {
|
|
49907
|
-
|
|
49938
|
+
validateDialConf(n);
|
|
49939
|
+
const e = {
|
|
49940
|
+
maxDelay: n.reconnectMaxWait,
|
|
49941
|
+
numOfAttempts: n.reconnectMaxAttempts,
|
|
49942
|
+
retry: (s, l) => (console.debug(`Failed to connect, attempt ${l} with backoff`), !0)
|
|
49943
|
+
};
|
|
49944
|
+
if (isDialWebRTCConf(n))
|
|
49945
|
+
try {
|
|
49946
|
+
return n.noReconnect ? await dialWebRTC(n) : await backOff_1(async () => dialWebRTC(n), e);
|
|
49947
|
+
} catch {
|
|
49948
|
+
console.debug("Failed to connect via WebRTC");
|
|
49949
|
+
}
|
|
49950
|
+
try {
|
|
49951
|
+
return n.noReconnect ? await dialDirect(n) : await backOff_1(async () => dialDirect(n), e);
|
|
49952
|
+
} catch {
|
|
49953
|
+
console.debug("Failed to connect via gRPC");
|
|
49954
|
+
}
|
|
49955
|
+
throw new Error("Failed to connect to robot");
|
|
49956
|
+
}, validateDialConf = (n) => {
|
|
49908
49957
|
if (n.authEntity)
|
|
49909
49958
|
try {
|
|
49910
49959
|
n.authEntity = new URL(n.authEntity).host;
|
|
49911
|
-
} catch (
|
|
49912
|
-
if (!(
|
|
49913
|
-
throw
|
|
49960
|
+
} catch (e) {
|
|
49961
|
+
if (!(e instanceof TypeError))
|
|
49962
|
+
throw e;
|
|
49914
49963
|
}
|
|
49915
49964
|
if (n.reconnectMaxAttempts && !isPosInt(n.reconnectMaxAttempts))
|
|
49916
49965
|
throw new Error(
|
|
@@ -49920,21 +49969,6 @@ const isPosInt = (n) => !!(n > 0 && Number.isInteger(n)), isLocalConnection = (n
|
|
|
49920
49969
|
throw new Error(
|
|
49921
49970
|
`Value of max reconnect wait (${n.reconnectMaxWait}) should be a positive integer`
|
|
49922
49971
|
);
|
|
49923
|
-
if (isDialWebRTCConf(n))
|
|
49924
|
-
try {
|
|
49925
|
-
e = await dialWebRTC(n);
|
|
49926
|
-
} catch {
|
|
49927
|
-
console.debug("failed to connect via WebRTC...");
|
|
49928
|
-
}
|
|
49929
|
-
if (!e)
|
|
49930
|
-
try {
|
|
49931
|
-
e = await dialDirect(n);
|
|
49932
|
-
} catch {
|
|
49933
|
-
console.debug("failed to connect via gRPC...");
|
|
49934
|
-
}
|
|
49935
|
-
if (!e)
|
|
49936
|
-
throw new Error("failed to connect to robot");
|
|
49937
|
-
return e;
|
|
49938
49972
|
};
|
|
49939
49973
|
var auth_pb = {};
|
|
49940
49974
|
(function(n) {
|
|
@@ -57602,6 +57636,7 @@ var tagger_pb = {};
|
|
|
57602
57636
|
var i = {
|
|
57603
57637
|
datasetId: e.Message.getFieldWithDefault(r, 1, ""),
|
|
57604
57638
|
registryItemId: e.Message.getFieldWithDefault(r, 2, ""),
|
|
57639
|
+
registryItemVersion: e.Message.getFieldWithDefault(r, 6, ""),
|
|
57605
57640
|
organizationId: e.Message.getFieldWithDefault(r, 3, ""),
|
|
57606
57641
|
modelName: e.Message.getFieldWithDefault(r, 4, ""),
|
|
57607
57642
|
modelVersion: e.Message.getFieldWithDefault(r, 5, "")
|
|
@@ -57628,6 +57663,13 @@ var tagger_pb = {};
|
|
|
57628
57663
|
);
|
|
57629
57664
|
t.setRegistryItemId(o);
|
|
57630
57665
|
break;
|
|
57666
|
+
case 6:
|
|
57667
|
+
var o = (
|
|
57668
|
+
/** @type {string} */
|
|
57669
|
+
r.readString()
|
|
57670
|
+
);
|
|
57671
|
+
t.setRegistryItemVersion(o);
|
|
57672
|
+
break;
|
|
57631
57673
|
case 3:
|
|
57632
57674
|
var o = (
|
|
57633
57675
|
/** @type {string} */
|
|
@@ -57666,6 +57708,9 @@ var tagger_pb = {};
|
|
|
57666
57708
|
), i = t.getRegistryItemId(), i.length > 0 && r.writeString(
|
|
57667
57709
|
2,
|
|
57668
57710
|
i
|
|
57711
|
+
), i = t.getRegistryItemVersion(), i.length > 0 && r.writeString(
|
|
57712
|
+
6,
|
|
57713
|
+
i
|
|
57669
57714
|
), i = t.getOrganizationId(), i.length > 0 && r.writeString(
|
|
57670
57715
|
3,
|
|
57671
57716
|
i
|
|
@@ -57690,6 +57735,13 @@ var tagger_pb = {};
|
|
|
57690
57735
|
);
|
|
57691
57736
|
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.setRegistryItemId = function(t) {
|
|
57692
57737
|
return e.Message.setProto3StringField(this, 2, t);
|
|
57738
|
+
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.getRegistryItemVersion = function() {
|
|
57739
|
+
return (
|
|
57740
|
+
/** @type {string} */
|
|
57741
|
+
e.Message.getFieldWithDefault(this, 6, "")
|
|
57742
|
+
);
|
|
57743
|
+
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.setRegistryItemVersion = function(t) {
|
|
57744
|
+
return e.Message.setProto3StringField(this, 6, t);
|
|
57693
57745
|
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.getOrganizationId = function() {
|
|
57694
57746
|
return (
|
|
57695
57747
|
/** @type {string} */
|
|
@@ -57966,6 +58018,7 @@ var tagger_pb = {};
|
|
|
57966
58018
|
modelFramework: e.Message.getFieldWithDefault(r, 17, 0),
|
|
57967
58019
|
isCustomJob: e.Message.getBooleanFieldWithDefault(r, 18, !1),
|
|
57968
58020
|
registryItemId: e.Message.getFieldWithDefault(r, 19, ""),
|
|
58021
|
+
registryItemVersion: e.Message.getFieldWithDefault(r, 20, ""),
|
|
57969
58022
|
status: e.Message.getFieldWithDefault(r, 2, 0),
|
|
57970
58023
|
errorStatus: (i = r.getErrorStatus()) && p.Status.toObject(t, i),
|
|
57971
58024
|
createdOn: (i = r.getCreatedOn()) && u.Timestamp.toObject(t, i),
|
|
@@ -58050,6 +58103,13 @@ var tagger_pb = {};
|
|
|
58050
58103
|
);
|
|
58051
58104
|
t.setRegistryItemId(o);
|
|
58052
58105
|
break;
|
|
58106
|
+
case 20:
|
|
58107
|
+
var o = (
|
|
58108
|
+
/** @type {string} */
|
|
58109
|
+
r.readString()
|
|
58110
|
+
);
|
|
58111
|
+
t.setRegistryItemVersion(o);
|
|
58112
|
+
break;
|
|
58053
58113
|
case 2:
|
|
58054
58114
|
var o = (
|
|
58055
58115
|
/** @type {!proto.viam.app.mltraining.v1.TrainingStatus} */
|
|
@@ -58133,6 +58193,9 @@ var tagger_pb = {};
|
|
|
58133
58193
|
), i = t.getRegistryItemId(), i.length > 0 && r.writeString(
|
|
58134
58194
|
19,
|
|
58135
58195
|
i
|
|
58196
|
+
), i = t.getRegistryItemVersion(), i.length > 0 && r.writeString(
|
|
58197
|
+
20,
|
|
58198
|
+
i
|
|
58136
58199
|
), i = t.getStatus(), i !== 0 && r.writeEnum(
|
|
58137
58200
|
2,
|
|
58138
58201
|
i
|
|
@@ -58237,6 +58300,13 @@ var tagger_pb = {};
|
|
|
58237
58300
|
);
|
|
58238
58301
|
}, proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.setRegistryItemId = function(t) {
|
|
58239
58302
|
return e.Message.setProto3StringField(this, 19, t);
|
|
58303
|
+
}, proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.getRegistryItemVersion = function() {
|
|
58304
|
+
return (
|
|
58305
|
+
/** @type {string} */
|
|
58306
|
+
e.Message.getFieldWithDefault(this, 20, "")
|
|
58307
|
+
);
|
|
58308
|
+
}, proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.setRegistryItemVersion = function(t) {
|
|
58309
|
+
return e.Message.setProto3StringField(this, 20, t);
|
|
58240
58310
|
}, proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.getStatus = function() {
|
|
58241
58311
|
return (
|
|
58242
58312
|
/** @type {!proto.viam.app.mltraining.v1.TrainingStatus} */
|
|
@@ -58505,7 +58575,8 @@ var packages_pb = {};
|
|
|
58505
58575
|
}, proto.viam.app.packages.v1.FileInfo.toObject = function(t, r) {
|
|
58506
58576
|
var i = {
|
|
58507
58577
|
name: e.Message.getFieldWithDefault(r, 1, ""),
|
|
58508
|
-
size: e.Message.getFieldWithDefault(r, 2, 0)
|
|
58578
|
+
size: e.Message.getFieldWithDefault(r, 2, 0),
|
|
58579
|
+
isDirectory: e.Message.getBooleanFieldWithDefault(r, 3, !1)
|
|
58509
58580
|
};
|
|
58510
58581
|
return t && (i.$jspbMessageInstance = r), i;
|
|
58511
58582
|
}), proto.viam.app.packages.v1.FileInfo.deserializeBinary = function(t) {
|
|
@@ -58529,6 +58600,13 @@ var packages_pb = {};
|
|
|
58529
58600
|
);
|
|
58530
58601
|
t.setSize(o);
|
|
58531
58602
|
break;
|
|
58603
|
+
case 3:
|
|
58604
|
+
var o = (
|
|
58605
|
+
/** @type {boolean} */
|
|
58606
|
+
r.readBool()
|
|
58607
|
+
);
|
|
58608
|
+
t.setIsDirectory(o);
|
|
58609
|
+
break;
|
|
58532
58610
|
default:
|
|
58533
58611
|
r.skipField();
|
|
58534
58612
|
break;
|
|
@@ -58546,6 +58624,10 @@ var packages_pb = {};
|
|
|
58546
58624
|
), i = t.getSize(), i !== 0 && r.writeUint64(
|
|
58547
58625
|
2,
|
|
58548
58626
|
i
|
|
58627
|
+
), i = /** @type {boolean} */
|
|
58628
|
+
e.Message.getField(t, 3), i != null && r.writeBool(
|
|
58629
|
+
3,
|
|
58630
|
+
i
|
|
58549
58631
|
);
|
|
58550
58632
|
}, proto.viam.app.packages.v1.FileInfo.prototype.getName = function() {
|
|
58551
58633
|
return (
|
|
@@ -58561,6 +58643,17 @@ var packages_pb = {};
|
|
|
58561
58643
|
);
|
|
58562
58644
|
}, proto.viam.app.packages.v1.FileInfo.prototype.setSize = function(t) {
|
|
58563
58645
|
return e.Message.setProto3IntField(this, 2, t);
|
|
58646
|
+
}, proto.viam.app.packages.v1.FileInfo.prototype.getIsDirectory = function() {
|
|
58647
|
+
return (
|
|
58648
|
+
/** @type {boolean} */
|
|
58649
|
+
e.Message.getBooleanFieldWithDefault(this, 3, !1)
|
|
58650
|
+
);
|
|
58651
|
+
}, proto.viam.app.packages.v1.FileInfo.prototype.setIsDirectory = function(t) {
|
|
58652
|
+
return e.Message.setField(this, 3, t);
|
|
58653
|
+
}, proto.viam.app.packages.v1.FileInfo.prototype.clearIsDirectory = function() {
|
|
58654
|
+
return e.Message.setField(this, 3, void 0);
|
|
58655
|
+
}, proto.viam.app.packages.v1.FileInfo.prototype.hasIsDirectory = function() {
|
|
58656
|
+
return e.Message.getField(this, 3) != null;
|
|
58564
58657
|
}, proto.viam.app.packages.v1.PackageInfo.repeatedFields_ = [5], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.packages.v1.PackageInfo.prototype.toObject = function(t) {
|
|
58565
58658
|
return proto.viam.app.packages.v1.PackageInfo.toObject(t, this);
|
|
58566
58659
|
}, proto.viam.app.packages.v1.PackageInfo.toObject = function(t, r) {
|
|
@@ -68038,7 +68131,7 @@ var packages_pb = {};
|
|
|
68038
68131
|
var o = new e.BinaryWriter();
|
|
68039
68132
|
return proto.viam.app.v1.UpdateRegistryItemResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
68040
68133
|
}, proto.viam.app.v1.UpdateRegistryItemResponse.serializeBinaryToWriter = function(o, c) {
|
|
68041
|
-
}, proto.viam.app.v1.ListRegistryItemsRequest.repeatedFields_ = [2, 3, 4, 5], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.v1.ListRegistryItemsRequest.prototype.toObject = function(o) {
|
|
68134
|
+
}, proto.viam.app.v1.ListRegistryItemsRequest.repeatedFields_ = [2, 3, 4, 5, 8], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.v1.ListRegistryItemsRequest.prototype.toObject = function(o) {
|
|
68042
68135
|
return proto.viam.app.v1.ListRegistryItemsRequest.toObject(o, this);
|
|
68043
68136
|
}, proto.viam.app.v1.ListRegistryItemsRequest.toObject = function(o, c) {
|
|
68044
68137
|
var v, d = {
|
|
@@ -68048,7 +68141,8 @@ var packages_pb = {};
|
|
|
68048
68141
|
platformsList: (v = e.Message.getRepeatedField(c, 4)) == null ? void 0 : v,
|
|
68049
68142
|
statusesList: (v = e.Message.getRepeatedField(c, 5)) == null ? void 0 : v,
|
|
68050
68143
|
searchTerm: e.Message.getFieldWithDefault(c, 6, ""),
|
|
68051
|
-
pageToken: e.Message.getFieldWithDefault(c, 7, "")
|
|
68144
|
+
pageToken: e.Message.getFieldWithDefault(c, 7, ""),
|
|
68145
|
+
publicNamespacesList: (v = e.Message.getRepeatedField(c, 8)) == null ? void 0 : v
|
|
68052
68146
|
};
|
|
68053
68147
|
return o && (d.$jspbMessageInstance = c), d;
|
|
68054
68148
|
}), proto.viam.app.v1.ListRegistryItemsRequest.deserializeBinary = function(o) {
|
|
@@ -68107,6 +68201,13 @@ var packages_pb = {};
|
|
|
68107
68201
|
);
|
|
68108
68202
|
o.setPageToken(m);
|
|
68109
68203
|
break;
|
|
68204
|
+
case 8:
|
|
68205
|
+
var m = (
|
|
68206
|
+
/** @type {string} */
|
|
68207
|
+
c.readString()
|
|
68208
|
+
);
|
|
68209
|
+
o.addPublicNamespaces(m);
|
|
68210
|
+
break;
|
|
68110
68211
|
default:
|
|
68111
68212
|
c.skipField();
|
|
68112
68213
|
break;
|
|
@@ -68142,6 +68243,9 @@ var packages_pb = {};
|
|
|
68142
68243
|
e.Message.getField(o, 7), v != null && c.writeString(
|
|
68143
68244
|
7,
|
|
68144
68245
|
v
|
|
68246
|
+
), v = o.getPublicNamespacesList(), v.length > 0 && c.writeRepeatedString(
|
|
68247
|
+
8,
|
|
68248
|
+
v
|
|
68145
68249
|
);
|
|
68146
68250
|
}, proto.viam.app.v1.ListRegistryItemsRequest.prototype.getOrganizationId = function() {
|
|
68147
68251
|
return (
|
|
@@ -68220,6 +68324,17 @@ var packages_pb = {};
|
|
|
68220
68324
|
return e.Message.setField(this, 7, void 0);
|
|
68221
68325
|
}, proto.viam.app.v1.ListRegistryItemsRequest.prototype.hasPageToken = function() {
|
|
68222
68326
|
return e.Message.getField(this, 7) != null;
|
|
68327
|
+
}, proto.viam.app.v1.ListRegistryItemsRequest.prototype.getPublicNamespacesList = function() {
|
|
68328
|
+
return (
|
|
68329
|
+
/** @type {!Array<string>} */
|
|
68330
|
+
e.Message.getRepeatedField(this, 8)
|
|
68331
|
+
);
|
|
68332
|
+
}, proto.viam.app.v1.ListRegistryItemsRequest.prototype.setPublicNamespacesList = function(o) {
|
|
68333
|
+
return e.Message.setField(this, 8, o || []);
|
|
68334
|
+
}, proto.viam.app.v1.ListRegistryItemsRequest.prototype.addPublicNamespaces = function(o, c) {
|
|
68335
|
+
return e.Message.addToRepeatedField(this, 8, o, c);
|
|
68336
|
+
}, proto.viam.app.v1.ListRegistryItemsRequest.prototype.clearPublicNamespacesList = function() {
|
|
68337
|
+
return this.setPublicNamespacesList([]);
|
|
68223
68338
|
}, proto.viam.app.v1.ListRegistryItemsResponse.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.v1.ListRegistryItemsResponse.prototype.toObject = function(o) {
|
|
68224
68339
|
return proto.viam.app.v1.ListRegistryItemsResponse.toObject(o, this);
|
|
68225
68340
|
}, proto.viam.app.v1.ListRegistryItemsResponse.toObject = function(o, c) {
|
|
@@ -76217,7 +76332,7 @@ class BoardClient {
|
|
|
76217
76332
|
}
|
|
76218
76333
|
async readAnalogReader(e, s = {}) {
|
|
76219
76334
|
const { boardService: l } = this, u = new pb$f.ReadAnalogReaderRequest();
|
|
76220
|
-
return u.setBoardName(this.name), u.setAnalogReaderName(e), u.setExtra(struct_pb.Struct.fromJavaScript(s)), this.options.requestLogger?.(u), (await promisify(l.readAnalogReader.bind(l), u)).
|
|
76335
|
+
return u.setBoardName(this.name), u.setAnalogReaderName(e), u.setExtra(struct_pb.Struct.fromJavaScript(s)), this.options.requestLogger?.(u), (await promisify(l.readAnalogReader.bind(l), u)).toObject();
|
|
76221
76336
|
}
|
|
76222
76337
|
async writeAnalog(e, s, l = {}) {
|
|
76223
76338
|
const { boardService: u } = this, p = new pb$f.WriteAnalogRequest();
|
|
@@ -77196,7 +77311,7 @@ var stream_pb = {};
|
|
|
77196
77311
|
}, s.object.extend(n, proto.proto.stream.v1);
|
|
77197
77312
|
})(stream_pb);
|
|
77198
77313
|
const pb$1 = /* @__PURE__ */ getDefaultExportFromCjs(stream_pb);
|
|
77199
|
-
var
|
|
77314
|
+
var stream_v1_stream_pb = stream_pb, grpc$2 = grpcWebClient_umdExports$1.grpc, StreamService = function() {
|
|
77200
77315
|
function n() {
|
|
77201
77316
|
}
|
|
77202
77317
|
return n.serviceName = "proto.stream.v1.StreamService", n;
|
|
@@ -77206,24 +77321,24 @@ StreamService.ListStreams = {
|
|
|
77206
77321
|
service: StreamService,
|
|
77207
77322
|
requestStream: !1,
|
|
77208
77323
|
responseStream: !1,
|
|
77209
|
-
requestType:
|
|
77210
|
-
responseType:
|
|
77324
|
+
requestType: stream_v1_stream_pb.ListStreamsRequest,
|
|
77325
|
+
responseType: stream_v1_stream_pb.ListStreamsResponse
|
|
77211
77326
|
};
|
|
77212
77327
|
StreamService.AddStream = {
|
|
77213
77328
|
methodName: "AddStream",
|
|
77214
77329
|
service: StreamService,
|
|
77215
77330
|
requestStream: !1,
|
|
77216
77331
|
responseStream: !1,
|
|
77217
|
-
requestType:
|
|
77218
|
-
responseType:
|
|
77332
|
+
requestType: stream_v1_stream_pb.AddStreamRequest,
|
|
77333
|
+
responseType: stream_v1_stream_pb.AddStreamResponse
|
|
77219
77334
|
};
|
|
77220
77335
|
StreamService.RemoveStream = {
|
|
77221
77336
|
methodName: "RemoveStream",
|
|
77222
77337
|
service: StreamService,
|
|
77223
77338
|
requestStream: !1,
|
|
77224
77339
|
responseStream: !1,
|
|
77225
|
-
requestType:
|
|
77226
|
-
responseType:
|
|
77340
|
+
requestType: stream_v1_stream_pb.RemoveStreamRequest,
|
|
77341
|
+
responseType: stream_v1_stream_pb.RemoveStreamResponse
|
|
77227
77342
|
};
|
|
77228
77343
|
function StreamServiceClient(n, e) {
|
|
77229
77344
|
this.serviceHost = n, this.options = e || {};
|
|
@@ -77304,9 +77419,9 @@ class StreamClient extends EventDispatcher {
|
|
|
77304
77419
|
options;
|
|
77305
77420
|
streams;
|
|
77306
77421
|
constructor(e, s = {}) {
|
|
77307
|
-
super(), this.client = e.createServiceClient(StreamServiceClient_1), this.options = s, this.streams = /* @__PURE__ */ new Set(),
|
|
77422
|
+
super(), this.client = e.createServiceClient(StreamServiceClient_1), this.options = s, this.streams = /* @__PURE__ */ new Set(), e.on("track", (l) => {
|
|
77308
77423
|
this.emit("track", l);
|
|
77309
|
-
}),
|
|
77424
|
+
}), e.on(MachineConnectionEvent.CONNECTED, () => {
|
|
77310
77425
|
for (const l of this.streams.values())
|
|
77311
77426
|
this.add(l);
|
|
77312
77427
|
});
|
|
@@ -77485,9 +77600,11 @@ class MotionClient {
|
|
|
77485
77600
|
r
|
|
77486
77601
|
)).toObject().executionId;
|
|
77487
77602
|
}
|
|
77488
|
-
async moveOnGlobe(e, s, l, u, p, g, t = {}) {
|
|
77489
|
-
const { service:
|
|
77490
|
-
return
|
|
77603
|
+
async moveOnGlobe(e, s, l, u, p, g, t, r = {}) {
|
|
77604
|
+
const { service: i } = this, o = new pb$9.MoveOnGlobeRequest();
|
|
77605
|
+
return o.setName(this.name), o.setDestination(encodeGeoPoint(e)), o.setComponentName(encodeResourceName(s)), o.setMovementSensorName(encodeResourceName(l)), u && o.setHeading(u), p && o.setObstaclesList(p.map((v) => encodeGeoGeometry(v))), t && o.setBoundingRegionsList(
|
|
77606
|
+
t.map((v) => encodeGeoGeometry(v))
|
|
77607
|
+
), g && o.setMotionConfiguration(encodeMotionConfiguration(g)), o.setExtra(struct_pb.Struct.fromJavaScript(r)), this.options.requestLogger?.(o), (await promisify(i.moveOnGlobe.bind(i), o)).toObject().executionId;
|
|
77491
77608
|
}
|
|
77492
77609
|
async stopPlan(e, s = {}) {
|
|
77493
77610
|
const { service: l } = this, u = new pb$9.StopPlanRequest();
|
|
@@ -78032,7 +78149,7 @@ class GenericClient {
|
|
|
78032
78149
|
return doCommandFromClient(s, this.name, e, this.options);
|
|
78033
78150
|
}
|
|
78034
78151
|
}
|
|
78035
|
-
const version = "0.
|
|
78152
|
+
const version = "0.17.0-rc.0";
|
|
78036
78153
|
export {
|
|
78037
78154
|
ArmClient,
|
|
78038
78155
|
BaseClient,
|