@viamrobotics/sdk 0.2.3 → 0.2.4
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/gen/common/v1/common_pb.d.ts +35 -0
- package/dist/gen/component/camera/v1/camera_pb.d.ts +88 -0
- package/dist/gen/component/camera/v1/camera_pb_service.d.ts +19 -0
- package/dist/gen/service/navigation/v1/navigation_pb.d.ts +48 -0
- package/dist/gen/service/navigation/v1/navigation_pb_service.d.ts +19 -0
- package/dist/main.es.js +1540 -1056
- package/dist/main.umd.js +3 -3
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -8270,599 +8270,681 @@ var struct_pb = {};
|
|
|
8270
8270
|
return g;
|
|
8271
8271
|
};
|
|
8272
8272
|
})(struct_pb);
|
|
8273
|
+
var timestamp_pb = {};
|
|
8274
|
+
(function(t) {
|
|
8275
|
+
var e = googleProtobuf, s = e, i = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof i < "u" && i || typeof self < "u" && self || function() {
|
|
8276
|
+
return this;
|
|
8277
|
+
}.call(null) || Function("return this")();
|
|
8278
|
+
s.exportSymbol("proto.google.protobuf.Timestamp", null, i), proto.google.protobuf.Timestamp = function(u) {
|
|
8279
|
+
e.Message.initialize(this, u, 0, -1, null, null);
|
|
8280
|
+
}, s.inherits(proto.google.protobuf.Timestamp, e.Message), s.DEBUG && !COMPILED && (proto.google.protobuf.Timestamp.displayName = "proto.google.protobuf.Timestamp"), e.Message.GENERATE_TO_OBJECT && (proto.google.protobuf.Timestamp.prototype.toObject = function(u) {
|
|
8281
|
+
return proto.google.protobuf.Timestamp.toObject(u, this);
|
|
8282
|
+
}, proto.google.protobuf.Timestamp.toObject = function(u, g) {
|
|
8283
|
+
var p = {
|
|
8284
|
+
seconds: e.Message.getFieldWithDefault(g, 1, 0),
|
|
8285
|
+
nanos: e.Message.getFieldWithDefault(g, 2, 0)
|
|
8286
|
+
};
|
|
8287
|
+
return u && (p.$jspbMessageInstance = g), p;
|
|
8288
|
+
}), proto.google.protobuf.Timestamp.deserializeBinary = function(u) {
|
|
8289
|
+
var g = new e.BinaryReader(u), p = new proto.google.protobuf.Timestamp();
|
|
8290
|
+
return proto.google.protobuf.Timestamp.deserializeBinaryFromReader(p, g);
|
|
8291
|
+
}, proto.google.protobuf.Timestamp.deserializeBinaryFromReader = function(u, g) {
|
|
8292
|
+
for (; g.nextField() && !g.isEndGroup(); ) {
|
|
8293
|
+
var p = g.getFieldNumber();
|
|
8294
|
+
switch (p) {
|
|
8295
|
+
case 1:
|
|
8296
|
+
var o = (
|
|
8297
|
+
/** @type {number} */
|
|
8298
|
+
g.readInt64()
|
|
8299
|
+
);
|
|
8300
|
+
u.setSeconds(o);
|
|
8301
|
+
break;
|
|
8302
|
+
case 2:
|
|
8303
|
+
var o = (
|
|
8304
|
+
/** @type {number} */
|
|
8305
|
+
g.readInt32()
|
|
8306
|
+
);
|
|
8307
|
+
u.setNanos(o);
|
|
8308
|
+
break;
|
|
8309
|
+
default:
|
|
8310
|
+
g.skipField();
|
|
8311
|
+
break;
|
|
8312
|
+
}
|
|
8313
|
+
}
|
|
8314
|
+
return u;
|
|
8315
|
+
}, proto.google.protobuf.Timestamp.prototype.serializeBinary = function() {
|
|
8316
|
+
var u = new e.BinaryWriter();
|
|
8317
|
+
return proto.google.protobuf.Timestamp.serializeBinaryToWriter(this, u), u.getResultBuffer();
|
|
8318
|
+
}, proto.google.protobuf.Timestamp.serializeBinaryToWriter = function(u, g) {
|
|
8319
|
+
var p = void 0;
|
|
8320
|
+
p = u.getSeconds(), p !== 0 && g.writeInt64(
|
|
8321
|
+
1,
|
|
8322
|
+
p
|
|
8323
|
+
), p = u.getNanos(), p !== 0 && g.writeInt32(
|
|
8324
|
+
2,
|
|
8325
|
+
p
|
|
8326
|
+
);
|
|
8327
|
+
}, proto.google.protobuf.Timestamp.prototype.getSeconds = function() {
|
|
8328
|
+
return (
|
|
8329
|
+
/** @type {number} */
|
|
8330
|
+
e.Message.getFieldWithDefault(this, 1, 0)
|
|
8331
|
+
);
|
|
8332
|
+
}, proto.google.protobuf.Timestamp.prototype.setSeconds = function(u) {
|
|
8333
|
+
return e.Message.setProto3IntField(this, 1, u);
|
|
8334
|
+
}, proto.google.protobuf.Timestamp.prototype.getNanos = function() {
|
|
8335
|
+
return (
|
|
8336
|
+
/** @type {number} */
|
|
8337
|
+
e.Message.getFieldWithDefault(this, 2, 0)
|
|
8338
|
+
);
|
|
8339
|
+
}, proto.google.protobuf.Timestamp.prototype.setNanos = function(u) {
|
|
8340
|
+
return e.Message.setProto3IntField(this, 2, u);
|
|
8341
|
+
}, s.object.extend(t, proto.google.protobuf), proto.google.protobuf.Timestamp.prototype.toDate = function() {
|
|
8342
|
+
var u = this.getSeconds(), g = this.getNanos();
|
|
8343
|
+
return new Date(u * 1e3 + g / 1e6);
|
|
8344
|
+
}, proto.google.protobuf.Timestamp.prototype.fromDate = function(u) {
|
|
8345
|
+
this.setSeconds(Math.floor(u.getTime() / 1e3)), this.setNanos(u.getMilliseconds() * 1e6);
|
|
8346
|
+
}, proto.google.protobuf.Timestamp.fromDate = function(u) {
|
|
8347
|
+
var g = new proto.google.protobuf.Timestamp();
|
|
8348
|
+
return g.fromDate(u), g;
|
|
8349
|
+
};
|
|
8350
|
+
})(timestamp_pb);
|
|
8273
8351
|
(function(t) {
|
|
8274
8352
|
var e = googleProtobuf, s = e, i = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof i < "u" && i || typeof self < "u" && self || function() {
|
|
8275
8353
|
return this;
|
|
8276
8354
|
}.call(null) || Function("return this")(), u = descriptor_pb;
|
|
8277
8355
|
s.object.extend(proto, u);
|
|
8278
8356
|
var g = struct_pb;
|
|
8279
|
-
s.object.extend(proto, g)
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
e.Message.initialize(this,
|
|
8283
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8284
|
-
e.Message.initialize(this,
|
|
8285
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8286
|
-
e.Message.initialize(this,
|
|
8287
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8288
|
-
e.Message.initialize(this,
|
|
8289
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8290
|
-
e.Message.initialize(this,
|
|
8291
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8292
|
-
e.Message.initialize(this,
|
|
8293
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8294
|
-
e.Message.initialize(this,
|
|
8295
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8296
|
-
e.Message.initialize(this,
|
|
8297
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8298
|
-
e.Message.initialize(this,
|
|
8299
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8300
|
-
e.Message.initialize(this,
|
|
8301
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8302
|
-
e.Message.initialize(this,
|
|
8303
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8304
|
-
e.Message.initialize(this,
|
|
8305
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8306
|
-
e.Message.initialize(this,
|
|
8307
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8308
|
-
e.Message.initialize(this,
|
|
8309
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8310
|
-
e.Message.initialize(this,
|
|
8311
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8312
|
-
e.Message.initialize(this,
|
|
8313
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8314
|
-
e.Message.initialize(this,
|
|
8315
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8316
|
-
e.Message.initialize(this,
|
|
8317
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8318
|
-
e.Message.initialize(this,
|
|
8319
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8320
|
-
e.Message.initialize(this,
|
|
8321
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8322
|
-
e.Message.initialize(this,
|
|
8323
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8324
|
-
e.Message.initialize(this,
|
|
8325
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8326
|
-
e.Message.initialize(this,
|
|
8327
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8328
|
-
e.Message.initialize(this,
|
|
8329
|
-
}, s.inherits(proto.viam.common.v1.
|
|
8330
|
-
|
|
8331
|
-
}, proto.viam.common.v1.
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8357
|
+
s.object.extend(proto, g);
|
|
8358
|
+
var p = timestamp_pb;
|
|
8359
|
+
s.object.extend(proto, p), s.exportSymbol("proto.viam.common.v1.ActuatorStatus", null, i), s.exportSymbol("proto.viam.common.v1.AnalogStatus", null, i), s.exportSymbol("proto.viam.common.v1.BoardStatus", null, i), s.exportSymbol("proto.viam.common.v1.Capsule", null, i), s.exportSymbol("proto.viam.common.v1.DigitalInterruptStatus", null, i), s.exportSymbol("proto.viam.common.v1.DoCommandRequest", null, i), s.exportSymbol("proto.viam.common.v1.DoCommandResponse", null, i), s.exportSymbol("proto.viam.common.v1.GeoObstacle", null, i), s.exportSymbol("proto.viam.common.v1.GeoPoint", null, i), s.exportSymbol("proto.viam.common.v1.GeometriesInFrame", null, i), s.exportSymbol("proto.viam.common.v1.Geometry", null, i), s.exportSymbol("proto.viam.common.v1.Geometry.GeometryTypeCase", null, i), s.exportSymbol("proto.viam.common.v1.GetGeometriesRequest", null, i), s.exportSymbol("proto.viam.common.v1.GetGeometriesResponse", null, i), s.exportSymbol("proto.viam.common.v1.GetKinematicsRequest", null, i), s.exportSymbol("proto.viam.common.v1.GetKinematicsResponse", null, i), s.exportSymbol("proto.viam.common.v1.KinematicsFileFormat", null, i), s.exportSymbol("proto.viam.common.v1.Orientation", null, i), s.exportSymbol("proto.viam.common.v1.PointCloudObject", null, i), s.exportSymbol("proto.viam.common.v1.Pose", null, i), s.exportSymbol("proto.viam.common.v1.PoseInFrame", null, i), s.exportSymbol("proto.viam.common.v1.RectangularPrism", null, i), s.exportSymbol("proto.viam.common.v1.ResourceName", null, i), s.exportSymbol("proto.viam.common.v1.ResponseMetadata", null, i), s.exportSymbol("proto.viam.common.v1.Sphere", null, i), s.exportSymbol("proto.viam.common.v1.Transform", null, i), s.exportSymbol("proto.viam.common.v1.Vector3", null, i), s.exportSymbol("proto.viam.common.v1.WorldState", null, i), s.exportSymbol("proto.viam.common.v1.safetyHeartbeatMonitored", null, i), proto.viam.common.v1.ResourceName = function(o) {
|
|
8360
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8361
|
+
}, 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.BoardStatus = function(o) {
|
|
8362
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8363
|
+
}, s.inherits(proto.viam.common.v1.BoardStatus, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.BoardStatus.displayName = "proto.viam.common.v1.BoardStatus"), proto.viam.common.v1.AnalogStatus = function(o) {
|
|
8364
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8365
|
+
}, s.inherits(proto.viam.common.v1.AnalogStatus, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.AnalogStatus.displayName = "proto.viam.common.v1.AnalogStatus"), proto.viam.common.v1.DigitalInterruptStatus = function(o) {
|
|
8366
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8367
|
+
}, s.inherits(proto.viam.common.v1.DigitalInterruptStatus, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.DigitalInterruptStatus.displayName = "proto.viam.common.v1.DigitalInterruptStatus"), proto.viam.common.v1.Pose = function(o) {
|
|
8368
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8369
|
+
}, s.inherits(proto.viam.common.v1.Pose, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.Pose.displayName = "proto.viam.common.v1.Pose"), proto.viam.common.v1.Orientation = function(o) {
|
|
8370
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8371
|
+
}, s.inherits(proto.viam.common.v1.Orientation, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.Orientation.displayName = "proto.viam.common.v1.Orientation"), proto.viam.common.v1.PoseInFrame = function(o) {
|
|
8372
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8373
|
+
}, s.inherits(proto.viam.common.v1.PoseInFrame, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.PoseInFrame.displayName = "proto.viam.common.v1.PoseInFrame"), proto.viam.common.v1.Vector3 = function(o) {
|
|
8374
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8375
|
+
}, s.inherits(proto.viam.common.v1.Vector3, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.Vector3.displayName = "proto.viam.common.v1.Vector3"), proto.viam.common.v1.Sphere = function(o) {
|
|
8376
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8377
|
+
}, s.inherits(proto.viam.common.v1.Sphere, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.Sphere.displayName = "proto.viam.common.v1.Sphere"), proto.viam.common.v1.Capsule = function(o) {
|
|
8378
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8379
|
+
}, s.inherits(proto.viam.common.v1.Capsule, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.Capsule.displayName = "proto.viam.common.v1.Capsule"), proto.viam.common.v1.RectangularPrism = function(o) {
|
|
8380
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8381
|
+
}, s.inherits(proto.viam.common.v1.RectangularPrism, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.RectangularPrism.displayName = "proto.viam.common.v1.RectangularPrism"), proto.viam.common.v1.Geometry = function(o) {
|
|
8382
|
+
e.Message.initialize(this, o, 0, -1, null, proto.viam.common.v1.Geometry.oneofGroups_);
|
|
8383
|
+
}, s.inherits(proto.viam.common.v1.Geometry, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.Geometry.displayName = "proto.viam.common.v1.Geometry"), proto.viam.common.v1.GeometriesInFrame = function(o) {
|
|
8384
|
+
e.Message.initialize(this, o, 0, -1, proto.viam.common.v1.GeometriesInFrame.repeatedFields_, null);
|
|
8385
|
+
}, s.inherits(proto.viam.common.v1.GeometriesInFrame, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GeometriesInFrame.displayName = "proto.viam.common.v1.GeometriesInFrame"), proto.viam.common.v1.PointCloudObject = function(o) {
|
|
8386
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8387
|
+
}, 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(o) {
|
|
8388
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8389
|
+
}, 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.GeoObstacle = function(o) {
|
|
8390
|
+
e.Message.initialize(this, o, 0, -1, proto.viam.common.v1.GeoObstacle.repeatedFields_, null);
|
|
8391
|
+
}, s.inherits(proto.viam.common.v1.GeoObstacle, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GeoObstacle.displayName = "proto.viam.common.v1.GeoObstacle"), proto.viam.common.v1.Transform = function(o) {
|
|
8392
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8393
|
+
}, 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(o) {
|
|
8394
|
+
e.Message.initialize(this, o, 0, -1, proto.viam.common.v1.WorldState.repeatedFields_, null);
|
|
8395
|
+
}, s.inherits(proto.viam.common.v1.WorldState, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.WorldState.displayName = "proto.viam.common.v1.WorldState"), proto.viam.common.v1.ActuatorStatus = function(o) {
|
|
8396
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8397
|
+
}, s.inherits(proto.viam.common.v1.ActuatorStatus, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.ActuatorStatus.displayName = "proto.viam.common.v1.ActuatorStatus"), proto.viam.common.v1.ResponseMetadata = function(o) {
|
|
8398
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8399
|
+
}, s.inherits(proto.viam.common.v1.ResponseMetadata, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.ResponseMetadata.displayName = "proto.viam.common.v1.ResponseMetadata"), proto.viam.common.v1.DoCommandRequest = function(o) {
|
|
8400
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8401
|
+
}, s.inherits(proto.viam.common.v1.DoCommandRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.DoCommandRequest.displayName = "proto.viam.common.v1.DoCommandRequest"), proto.viam.common.v1.DoCommandResponse = function(o) {
|
|
8402
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8403
|
+
}, s.inherits(proto.viam.common.v1.DoCommandResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.DoCommandResponse.displayName = "proto.viam.common.v1.DoCommandResponse"), proto.viam.common.v1.GetKinematicsRequest = function(o) {
|
|
8404
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8405
|
+
}, s.inherits(proto.viam.common.v1.GetKinematicsRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GetKinematicsRequest.displayName = "proto.viam.common.v1.GetKinematicsRequest"), proto.viam.common.v1.GetKinematicsResponse = function(o) {
|
|
8406
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8407
|
+
}, s.inherits(proto.viam.common.v1.GetKinematicsResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GetKinematicsResponse.displayName = "proto.viam.common.v1.GetKinematicsResponse"), proto.viam.common.v1.GetGeometriesRequest = function(o) {
|
|
8408
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
8409
|
+
}, s.inherits(proto.viam.common.v1.GetGeometriesRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GetGeometriesRequest.displayName = "proto.viam.common.v1.GetGeometriesRequest"), proto.viam.common.v1.GetGeometriesResponse = function(o) {
|
|
8410
|
+
e.Message.initialize(this, o, 0, -1, proto.viam.common.v1.GetGeometriesResponse.repeatedFields_, null);
|
|
8411
|
+
}, s.inherits(proto.viam.common.v1.GetGeometriesResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GetGeometriesResponse.displayName = "proto.viam.common.v1.GetGeometriesResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.ResourceName.prototype.toObject = function(o) {
|
|
8412
|
+
return proto.viam.common.v1.ResourceName.toObject(o, this);
|
|
8413
|
+
}, proto.viam.common.v1.ResourceName.toObject = function(o, r) {
|
|
8414
|
+
var n = {
|
|
8415
|
+
namespace: e.Message.getFieldWithDefault(r, 1, ""),
|
|
8416
|
+
type: e.Message.getFieldWithDefault(r, 2, ""),
|
|
8417
|
+
subtype: e.Message.getFieldWithDefault(r, 3, ""),
|
|
8418
|
+
name: e.Message.getFieldWithDefault(r, 4, "")
|
|
8337
8419
|
};
|
|
8338
|
-
return
|
|
8339
|
-
}), proto.viam.common.v1.ResourceName.deserializeBinary = function(
|
|
8340
|
-
var
|
|
8341
|
-
return proto.viam.common.v1.ResourceName.deserializeBinaryFromReader(
|
|
8342
|
-
}, proto.viam.common.v1.ResourceName.deserializeBinaryFromReader = function(
|
|
8343
|
-
for (;
|
|
8344
|
-
var
|
|
8345
|
-
switch (
|
|
8420
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
8421
|
+
}), proto.viam.common.v1.ResourceName.deserializeBinary = function(o) {
|
|
8422
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.ResourceName();
|
|
8423
|
+
return proto.viam.common.v1.ResourceName.deserializeBinaryFromReader(n, r);
|
|
8424
|
+
}, proto.viam.common.v1.ResourceName.deserializeBinaryFromReader = function(o, r) {
|
|
8425
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
8426
|
+
var n = r.getFieldNumber();
|
|
8427
|
+
switch (n) {
|
|
8346
8428
|
case 1:
|
|
8347
|
-
var
|
|
8429
|
+
var l = (
|
|
8348
8430
|
/** @type {string} */
|
|
8349
|
-
|
|
8431
|
+
r.readString()
|
|
8350
8432
|
);
|
|
8351
|
-
|
|
8433
|
+
o.setNamespace(l);
|
|
8352
8434
|
break;
|
|
8353
8435
|
case 2:
|
|
8354
|
-
var
|
|
8436
|
+
var l = (
|
|
8355
8437
|
/** @type {string} */
|
|
8356
|
-
|
|
8438
|
+
r.readString()
|
|
8357
8439
|
);
|
|
8358
|
-
|
|
8440
|
+
o.setType(l);
|
|
8359
8441
|
break;
|
|
8360
8442
|
case 3:
|
|
8361
|
-
var
|
|
8443
|
+
var l = (
|
|
8362
8444
|
/** @type {string} */
|
|
8363
|
-
|
|
8445
|
+
r.readString()
|
|
8364
8446
|
);
|
|
8365
|
-
|
|
8447
|
+
o.setSubtype(l);
|
|
8366
8448
|
break;
|
|
8367
8449
|
case 4:
|
|
8368
|
-
var
|
|
8450
|
+
var l = (
|
|
8369
8451
|
/** @type {string} */
|
|
8370
|
-
|
|
8452
|
+
r.readString()
|
|
8371
8453
|
);
|
|
8372
|
-
|
|
8454
|
+
o.setName(l);
|
|
8373
8455
|
break;
|
|
8374
8456
|
default:
|
|
8375
|
-
|
|
8457
|
+
r.skipField();
|
|
8376
8458
|
break;
|
|
8377
8459
|
}
|
|
8378
8460
|
}
|
|
8379
|
-
return
|
|
8461
|
+
return o;
|
|
8380
8462
|
}, proto.viam.common.v1.ResourceName.prototype.serializeBinary = function() {
|
|
8381
|
-
var
|
|
8382
|
-
return proto.viam.common.v1.ResourceName.serializeBinaryToWriter(this,
|
|
8383
|
-
}, proto.viam.common.v1.ResourceName.serializeBinaryToWriter = function(
|
|
8384
|
-
var
|
|
8385
|
-
|
|
8463
|
+
var o = new e.BinaryWriter();
|
|
8464
|
+
return proto.viam.common.v1.ResourceName.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
8465
|
+
}, proto.viam.common.v1.ResourceName.serializeBinaryToWriter = function(o, r) {
|
|
8466
|
+
var n = void 0;
|
|
8467
|
+
n = o.getNamespace(), n.length > 0 && r.writeString(
|
|
8386
8468
|
1,
|
|
8387
|
-
|
|
8388
|
-
),
|
|
8469
|
+
n
|
|
8470
|
+
), n = o.getType(), n.length > 0 && r.writeString(
|
|
8389
8471
|
2,
|
|
8390
|
-
|
|
8391
|
-
),
|
|
8472
|
+
n
|
|
8473
|
+
), n = o.getSubtype(), n.length > 0 && r.writeString(
|
|
8392
8474
|
3,
|
|
8393
|
-
|
|
8394
|
-
),
|
|
8475
|
+
n
|
|
8476
|
+
), n = o.getName(), n.length > 0 && r.writeString(
|
|
8395
8477
|
4,
|
|
8396
|
-
|
|
8478
|
+
n
|
|
8397
8479
|
);
|
|
8398
8480
|
}, proto.viam.common.v1.ResourceName.prototype.getNamespace = function() {
|
|
8399
8481
|
return (
|
|
8400
8482
|
/** @type {string} */
|
|
8401
8483
|
e.Message.getFieldWithDefault(this, 1, "")
|
|
8402
8484
|
);
|
|
8403
|
-
}, proto.viam.common.v1.ResourceName.prototype.setNamespace = function(
|
|
8404
|
-
return e.Message.setProto3StringField(this, 1,
|
|
8485
|
+
}, proto.viam.common.v1.ResourceName.prototype.setNamespace = function(o) {
|
|
8486
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
8405
8487
|
}, proto.viam.common.v1.ResourceName.prototype.getType = function() {
|
|
8406
8488
|
return (
|
|
8407
8489
|
/** @type {string} */
|
|
8408
8490
|
e.Message.getFieldWithDefault(this, 2, "")
|
|
8409
8491
|
);
|
|
8410
|
-
}, proto.viam.common.v1.ResourceName.prototype.setType = function(
|
|
8411
|
-
return e.Message.setProto3StringField(this, 2,
|
|
8492
|
+
}, proto.viam.common.v1.ResourceName.prototype.setType = function(o) {
|
|
8493
|
+
return e.Message.setProto3StringField(this, 2, o);
|
|
8412
8494
|
}, proto.viam.common.v1.ResourceName.prototype.getSubtype = function() {
|
|
8413
8495
|
return (
|
|
8414
8496
|
/** @type {string} */
|
|
8415
8497
|
e.Message.getFieldWithDefault(this, 3, "")
|
|
8416
8498
|
);
|
|
8417
|
-
}, proto.viam.common.v1.ResourceName.prototype.setSubtype = function(
|
|
8418
|
-
return e.Message.setProto3StringField(this, 3,
|
|
8499
|
+
}, proto.viam.common.v1.ResourceName.prototype.setSubtype = function(o) {
|
|
8500
|
+
return e.Message.setProto3StringField(this, 3, o);
|
|
8419
8501
|
}, proto.viam.common.v1.ResourceName.prototype.getName = function() {
|
|
8420
8502
|
return (
|
|
8421
8503
|
/** @type {string} */
|
|
8422
8504
|
e.Message.getFieldWithDefault(this, 4, "")
|
|
8423
8505
|
);
|
|
8424
|
-
}, proto.viam.common.v1.ResourceName.prototype.setName = function(
|
|
8425
|
-
return e.Message.setProto3StringField(this, 4,
|
|
8426
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.BoardStatus.prototype.toObject = function(
|
|
8427
|
-
return proto.viam.common.v1.BoardStatus.toObject(
|
|
8428
|
-
}, proto.viam.common.v1.BoardStatus.toObject = function(
|
|
8429
|
-
var
|
|
8430
|
-
analogsMap: (
|
|
8431
|
-
digitalInterruptsMap: (
|
|
8506
|
+
}, proto.viam.common.v1.ResourceName.prototype.setName = function(o) {
|
|
8507
|
+
return e.Message.setProto3StringField(this, 4, o);
|
|
8508
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.BoardStatus.prototype.toObject = function(o) {
|
|
8509
|
+
return proto.viam.common.v1.BoardStatus.toObject(o, this);
|
|
8510
|
+
}, proto.viam.common.v1.BoardStatus.toObject = function(o, r) {
|
|
8511
|
+
var n, l = {
|
|
8512
|
+
analogsMap: (n = r.getAnalogsMap()) ? n.toObject(o, proto.viam.common.v1.AnalogStatus.toObject) : [],
|
|
8513
|
+
digitalInterruptsMap: (n = r.getDigitalInterruptsMap()) ? n.toObject(o, proto.viam.common.v1.DigitalInterruptStatus.toObject) : []
|
|
8432
8514
|
};
|
|
8433
|
-
return
|
|
8434
|
-
}), proto.viam.common.v1.BoardStatus.deserializeBinary = function(
|
|
8435
|
-
var
|
|
8436
|
-
return proto.viam.common.v1.BoardStatus.deserializeBinaryFromReader(
|
|
8437
|
-
}, proto.viam.common.v1.BoardStatus.deserializeBinaryFromReader = function(
|
|
8438
|
-
for (;
|
|
8439
|
-
var
|
|
8440
|
-
switch (
|
|
8441
|
-
case 1:
|
|
8442
|
-
var
|
|
8443
|
-
|
|
8444
|
-
e.Map.deserializeBinary(
|
|
8515
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
8516
|
+
}), proto.viam.common.v1.BoardStatus.deserializeBinary = function(o) {
|
|
8517
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.BoardStatus();
|
|
8518
|
+
return proto.viam.common.v1.BoardStatus.deserializeBinaryFromReader(n, r);
|
|
8519
|
+
}, proto.viam.common.v1.BoardStatus.deserializeBinaryFromReader = function(o, r) {
|
|
8520
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
8521
|
+
var n = r.getFieldNumber();
|
|
8522
|
+
switch (n) {
|
|
8523
|
+
case 1:
|
|
8524
|
+
var l = o.getAnalogsMap();
|
|
8525
|
+
r.readMessage(l, function(c, m) {
|
|
8526
|
+
e.Map.deserializeBinary(c, m, e.BinaryReader.prototype.readString, e.BinaryReader.prototype.readMessage, proto.viam.common.v1.AnalogStatus.deserializeBinaryFromReader, "", new proto.viam.common.v1.AnalogStatus());
|
|
8445
8527
|
});
|
|
8446
8528
|
break;
|
|
8447
8529
|
case 2:
|
|
8448
|
-
var
|
|
8449
|
-
|
|
8450
|
-
e.Map.deserializeBinary(
|
|
8530
|
+
var l = o.getDigitalInterruptsMap();
|
|
8531
|
+
r.readMessage(l, function(c, m) {
|
|
8532
|
+
e.Map.deserializeBinary(c, m, e.BinaryReader.prototype.readString, e.BinaryReader.prototype.readMessage, proto.viam.common.v1.DigitalInterruptStatus.deserializeBinaryFromReader, "", new proto.viam.common.v1.DigitalInterruptStatus());
|
|
8451
8533
|
});
|
|
8452
8534
|
break;
|
|
8453
8535
|
default:
|
|
8454
|
-
|
|
8536
|
+
r.skipField();
|
|
8455
8537
|
break;
|
|
8456
8538
|
}
|
|
8457
8539
|
}
|
|
8458
|
-
return
|
|
8540
|
+
return o;
|
|
8459
8541
|
}, proto.viam.common.v1.BoardStatus.prototype.serializeBinary = function() {
|
|
8460
|
-
var
|
|
8461
|
-
return proto.viam.common.v1.BoardStatus.serializeBinaryToWriter(this,
|
|
8462
|
-
}, proto.viam.common.v1.BoardStatus.serializeBinaryToWriter = function(
|
|
8463
|
-
var
|
|
8464
|
-
|
|
8465
|
-
}, proto.viam.common.v1.BoardStatus.prototype.getAnalogsMap = function(
|
|
8542
|
+
var o = new e.BinaryWriter();
|
|
8543
|
+
return proto.viam.common.v1.BoardStatus.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
8544
|
+
}, proto.viam.common.v1.BoardStatus.serializeBinaryToWriter = function(o, r) {
|
|
8545
|
+
var n = void 0;
|
|
8546
|
+
n = o.getAnalogsMap(!0), n && n.getLength() > 0 && n.serializeBinary(1, r, e.BinaryWriter.prototype.writeString, e.BinaryWriter.prototype.writeMessage, proto.viam.common.v1.AnalogStatus.serializeBinaryToWriter), n = o.getDigitalInterruptsMap(!0), n && n.getLength() > 0 && n.serializeBinary(2, r, e.BinaryWriter.prototype.writeString, e.BinaryWriter.prototype.writeMessage, proto.viam.common.v1.DigitalInterruptStatus.serializeBinaryToWriter);
|
|
8547
|
+
}, proto.viam.common.v1.BoardStatus.prototype.getAnalogsMap = function(o) {
|
|
8466
8548
|
return (
|
|
8467
8549
|
/** @type {!jspb.Map<string,!proto.viam.common.v1.AnalogStatus>} */
|
|
8468
8550
|
e.Message.getMapField(
|
|
8469
8551
|
this,
|
|
8470
8552
|
1,
|
|
8471
|
-
|
|
8553
|
+
o,
|
|
8472
8554
|
proto.viam.common.v1.AnalogStatus
|
|
8473
8555
|
)
|
|
8474
8556
|
);
|
|
8475
8557
|
}, proto.viam.common.v1.BoardStatus.prototype.clearAnalogsMap = function() {
|
|
8476
8558
|
return this.getAnalogsMap().clear(), this;
|
|
8477
|
-
}, proto.viam.common.v1.BoardStatus.prototype.getDigitalInterruptsMap = function(
|
|
8559
|
+
}, proto.viam.common.v1.BoardStatus.prototype.getDigitalInterruptsMap = function(o) {
|
|
8478
8560
|
return (
|
|
8479
8561
|
/** @type {!jspb.Map<string,!proto.viam.common.v1.DigitalInterruptStatus>} */
|
|
8480
8562
|
e.Message.getMapField(
|
|
8481
8563
|
this,
|
|
8482
8564
|
2,
|
|
8483
|
-
|
|
8565
|
+
o,
|
|
8484
8566
|
proto.viam.common.v1.DigitalInterruptStatus
|
|
8485
8567
|
)
|
|
8486
8568
|
);
|
|
8487
8569
|
}, proto.viam.common.v1.BoardStatus.prototype.clearDigitalInterruptsMap = function() {
|
|
8488
8570
|
return this.getDigitalInterruptsMap().clear(), this;
|
|
8489
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.AnalogStatus.prototype.toObject = function(
|
|
8490
|
-
return proto.viam.common.v1.AnalogStatus.toObject(
|
|
8491
|
-
}, proto.viam.common.v1.AnalogStatus.toObject = function(
|
|
8492
|
-
var
|
|
8493
|
-
value: e.Message.getFieldWithDefault(
|
|
8571
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.AnalogStatus.prototype.toObject = function(o) {
|
|
8572
|
+
return proto.viam.common.v1.AnalogStatus.toObject(o, this);
|
|
8573
|
+
}, proto.viam.common.v1.AnalogStatus.toObject = function(o, r) {
|
|
8574
|
+
var n = {
|
|
8575
|
+
value: e.Message.getFieldWithDefault(r, 1, 0)
|
|
8494
8576
|
};
|
|
8495
|
-
return
|
|
8496
|
-
}), proto.viam.common.v1.AnalogStatus.deserializeBinary = function(
|
|
8497
|
-
var
|
|
8498
|
-
return proto.viam.common.v1.AnalogStatus.deserializeBinaryFromReader(
|
|
8499
|
-
}, proto.viam.common.v1.AnalogStatus.deserializeBinaryFromReader = function(
|
|
8500
|
-
for (;
|
|
8501
|
-
var
|
|
8502
|
-
switch (
|
|
8577
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
8578
|
+
}), proto.viam.common.v1.AnalogStatus.deserializeBinary = function(o) {
|
|
8579
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.AnalogStatus();
|
|
8580
|
+
return proto.viam.common.v1.AnalogStatus.deserializeBinaryFromReader(n, r);
|
|
8581
|
+
}, proto.viam.common.v1.AnalogStatus.deserializeBinaryFromReader = function(o, r) {
|
|
8582
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
8583
|
+
var n = r.getFieldNumber();
|
|
8584
|
+
switch (n) {
|
|
8503
8585
|
case 1:
|
|
8504
|
-
var
|
|
8586
|
+
var l = (
|
|
8505
8587
|
/** @type {number} */
|
|
8506
|
-
|
|
8588
|
+
r.readInt32()
|
|
8507
8589
|
);
|
|
8508
|
-
|
|
8590
|
+
o.setValue(l);
|
|
8509
8591
|
break;
|
|
8510
8592
|
default:
|
|
8511
|
-
|
|
8593
|
+
r.skipField();
|
|
8512
8594
|
break;
|
|
8513
8595
|
}
|
|
8514
8596
|
}
|
|
8515
|
-
return
|
|
8597
|
+
return o;
|
|
8516
8598
|
}, proto.viam.common.v1.AnalogStatus.prototype.serializeBinary = function() {
|
|
8517
|
-
var
|
|
8518
|
-
return proto.viam.common.v1.AnalogStatus.serializeBinaryToWriter(this,
|
|
8519
|
-
}, proto.viam.common.v1.AnalogStatus.serializeBinaryToWriter = function(
|
|
8520
|
-
var
|
|
8521
|
-
|
|
8599
|
+
var o = new e.BinaryWriter();
|
|
8600
|
+
return proto.viam.common.v1.AnalogStatus.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
8601
|
+
}, proto.viam.common.v1.AnalogStatus.serializeBinaryToWriter = function(o, r) {
|
|
8602
|
+
var n = void 0;
|
|
8603
|
+
n = o.getValue(), n !== 0 && r.writeInt32(
|
|
8522
8604
|
1,
|
|
8523
|
-
|
|
8605
|
+
n
|
|
8524
8606
|
);
|
|
8525
8607
|
}, proto.viam.common.v1.AnalogStatus.prototype.getValue = function() {
|
|
8526
8608
|
return (
|
|
8527
8609
|
/** @type {number} */
|
|
8528
8610
|
e.Message.getFieldWithDefault(this, 1, 0)
|
|
8529
8611
|
);
|
|
8530
|
-
}, proto.viam.common.v1.AnalogStatus.prototype.setValue = function(
|
|
8531
|
-
return e.Message.setProto3IntField(this, 1,
|
|
8532
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.DigitalInterruptStatus.prototype.toObject = function(
|
|
8533
|
-
return proto.viam.common.v1.DigitalInterruptStatus.toObject(
|
|
8534
|
-
}, proto.viam.common.v1.DigitalInterruptStatus.toObject = function(
|
|
8535
|
-
var
|
|
8536
|
-
value: e.Message.getFieldWithDefault(
|
|
8612
|
+
}, proto.viam.common.v1.AnalogStatus.prototype.setValue = function(o) {
|
|
8613
|
+
return e.Message.setProto3IntField(this, 1, o);
|
|
8614
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.DigitalInterruptStatus.prototype.toObject = function(o) {
|
|
8615
|
+
return proto.viam.common.v1.DigitalInterruptStatus.toObject(o, this);
|
|
8616
|
+
}, proto.viam.common.v1.DigitalInterruptStatus.toObject = function(o, r) {
|
|
8617
|
+
var n = {
|
|
8618
|
+
value: e.Message.getFieldWithDefault(r, 1, 0)
|
|
8537
8619
|
};
|
|
8538
|
-
return
|
|
8539
|
-
}), proto.viam.common.v1.DigitalInterruptStatus.deserializeBinary = function(
|
|
8540
|
-
var
|
|
8541
|
-
return proto.viam.common.v1.DigitalInterruptStatus.deserializeBinaryFromReader(
|
|
8542
|
-
}, proto.viam.common.v1.DigitalInterruptStatus.deserializeBinaryFromReader = function(
|
|
8543
|
-
for (;
|
|
8544
|
-
var
|
|
8545
|
-
switch (
|
|
8620
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
8621
|
+
}), proto.viam.common.v1.DigitalInterruptStatus.deserializeBinary = function(o) {
|
|
8622
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.DigitalInterruptStatus();
|
|
8623
|
+
return proto.viam.common.v1.DigitalInterruptStatus.deserializeBinaryFromReader(n, r);
|
|
8624
|
+
}, proto.viam.common.v1.DigitalInterruptStatus.deserializeBinaryFromReader = function(o, r) {
|
|
8625
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
8626
|
+
var n = r.getFieldNumber();
|
|
8627
|
+
switch (n) {
|
|
8546
8628
|
case 1:
|
|
8547
|
-
var
|
|
8629
|
+
var l = (
|
|
8548
8630
|
/** @type {number} */
|
|
8549
|
-
|
|
8631
|
+
r.readInt64()
|
|
8550
8632
|
);
|
|
8551
|
-
|
|
8633
|
+
o.setValue(l);
|
|
8552
8634
|
break;
|
|
8553
8635
|
default:
|
|
8554
|
-
|
|
8636
|
+
r.skipField();
|
|
8555
8637
|
break;
|
|
8556
8638
|
}
|
|
8557
8639
|
}
|
|
8558
|
-
return
|
|
8640
|
+
return o;
|
|
8559
8641
|
}, proto.viam.common.v1.DigitalInterruptStatus.prototype.serializeBinary = function() {
|
|
8560
|
-
var
|
|
8561
|
-
return proto.viam.common.v1.DigitalInterruptStatus.serializeBinaryToWriter(this,
|
|
8562
|
-
}, proto.viam.common.v1.DigitalInterruptStatus.serializeBinaryToWriter = function(
|
|
8563
|
-
var
|
|
8564
|
-
|
|
8642
|
+
var o = new e.BinaryWriter();
|
|
8643
|
+
return proto.viam.common.v1.DigitalInterruptStatus.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
8644
|
+
}, proto.viam.common.v1.DigitalInterruptStatus.serializeBinaryToWriter = function(o, r) {
|
|
8645
|
+
var n = void 0;
|
|
8646
|
+
n = o.getValue(), n !== 0 && r.writeInt64(
|
|
8565
8647
|
1,
|
|
8566
|
-
|
|
8648
|
+
n
|
|
8567
8649
|
);
|
|
8568
8650
|
}, proto.viam.common.v1.DigitalInterruptStatus.prototype.getValue = function() {
|
|
8569
8651
|
return (
|
|
8570
8652
|
/** @type {number} */
|
|
8571
8653
|
e.Message.getFieldWithDefault(this, 1, 0)
|
|
8572
8654
|
);
|
|
8573
|
-
}, proto.viam.common.v1.DigitalInterruptStatus.prototype.setValue = function(
|
|
8574
|
-
return e.Message.setProto3IntField(this, 1,
|
|
8575
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Pose.prototype.toObject = function(
|
|
8576
|
-
return proto.viam.common.v1.Pose.toObject(
|
|
8577
|
-
}, proto.viam.common.v1.Pose.toObject = function(
|
|
8578
|
-
var
|
|
8579
|
-
x: e.Message.getFloatingPointFieldWithDefault(
|
|
8580
|
-
y: e.Message.getFloatingPointFieldWithDefault(
|
|
8581
|
-
z: e.Message.getFloatingPointFieldWithDefault(
|
|
8582
|
-
oX: e.Message.getFloatingPointFieldWithDefault(
|
|
8583
|
-
oY: e.Message.getFloatingPointFieldWithDefault(
|
|
8584
|
-
oZ: e.Message.getFloatingPointFieldWithDefault(
|
|
8585
|
-
theta: e.Message.getFloatingPointFieldWithDefault(
|
|
8655
|
+
}, proto.viam.common.v1.DigitalInterruptStatus.prototype.setValue = function(o) {
|
|
8656
|
+
return e.Message.setProto3IntField(this, 1, o);
|
|
8657
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Pose.prototype.toObject = function(o) {
|
|
8658
|
+
return proto.viam.common.v1.Pose.toObject(o, this);
|
|
8659
|
+
}, proto.viam.common.v1.Pose.toObject = function(o, r) {
|
|
8660
|
+
var n = {
|
|
8661
|
+
x: e.Message.getFloatingPointFieldWithDefault(r, 1, 0),
|
|
8662
|
+
y: e.Message.getFloatingPointFieldWithDefault(r, 2, 0),
|
|
8663
|
+
z: e.Message.getFloatingPointFieldWithDefault(r, 3, 0),
|
|
8664
|
+
oX: e.Message.getFloatingPointFieldWithDefault(r, 4, 0),
|
|
8665
|
+
oY: e.Message.getFloatingPointFieldWithDefault(r, 5, 0),
|
|
8666
|
+
oZ: e.Message.getFloatingPointFieldWithDefault(r, 6, 0),
|
|
8667
|
+
theta: e.Message.getFloatingPointFieldWithDefault(r, 7, 0)
|
|
8586
8668
|
};
|
|
8587
|
-
return
|
|
8588
|
-
}), proto.viam.common.v1.Pose.deserializeBinary = function(
|
|
8589
|
-
var
|
|
8590
|
-
return proto.viam.common.v1.Pose.deserializeBinaryFromReader(
|
|
8591
|
-
}, proto.viam.common.v1.Pose.deserializeBinaryFromReader = function(
|
|
8592
|
-
for (;
|
|
8593
|
-
var
|
|
8594
|
-
switch (
|
|
8669
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
8670
|
+
}), proto.viam.common.v1.Pose.deserializeBinary = function(o) {
|
|
8671
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.Pose();
|
|
8672
|
+
return proto.viam.common.v1.Pose.deserializeBinaryFromReader(n, r);
|
|
8673
|
+
}, proto.viam.common.v1.Pose.deserializeBinaryFromReader = function(o, r) {
|
|
8674
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
8675
|
+
var n = r.getFieldNumber();
|
|
8676
|
+
switch (n) {
|
|
8595
8677
|
case 1:
|
|
8596
|
-
var
|
|
8678
|
+
var l = (
|
|
8597
8679
|
/** @type {number} */
|
|
8598
|
-
|
|
8680
|
+
r.readDouble()
|
|
8599
8681
|
);
|
|
8600
|
-
|
|
8682
|
+
o.setX(l);
|
|
8601
8683
|
break;
|
|
8602
8684
|
case 2:
|
|
8603
|
-
var
|
|
8685
|
+
var l = (
|
|
8604
8686
|
/** @type {number} */
|
|
8605
|
-
|
|
8687
|
+
r.readDouble()
|
|
8606
8688
|
);
|
|
8607
|
-
|
|
8689
|
+
o.setY(l);
|
|
8608
8690
|
break;
|
|
8609
8691
|
case 3:
|
|
8610
|
-
var
|
|
8692
|
+
var l = (
|
|
8611
8693
|
/** @type {number} */
|
|
8612
|
-
|
|
8694
|
+
r.readDouble()
|
|
8613
8695
|
);
|
|
8614
|
-
|
|
8696
|
+
o.setZ(l);
|
|
8615
8697
|
break;
|
|
8616
8698
|
case 4:
|
|
8617
|
-
var
|
|
8699
|
+
var l = (
|
|
8618
8700
|
/** @type {number} */
|
|
8619
|
-
|
|
8701
|
+
r.readDouble()
|
|
8620
8702
|
);
|
|
8621
|
-
|
|
8703
|
+
o.setOX(l);
|
|
8622
8704
|
break;
|
|
8623
8705
|
case 5:
|
|
8624
|
-
var
|
|
8706
|
+
var l = (
|
|
8625
8707
|
/** @type {number} */
|
|
8626
|
-
|
|
8708
|
+
r.readDouble()
|
|
8627
8709
|
);
|
|
8628
|
-
|
|
8710
|
+
o.setOY(l);
|
|
8629
8711
|
break;
|
|
8630
8712
|
case 6:
|
|
8631
|
-
var
|
|
8713
|
+
var l = (
|
|
8632
8714
|
/** @type {number} */
|
|
8633
|
-
|
|
8715
|
+
r.readDouble()
|
|
8634
8716
|
);
|
|
8635
|
-
|
|
8717
|
+
o.setOZ(l);
|
|
8636
8718
|
break;
|
|
8637
8719
|
case 7:
|
|
8638
|
-
var
|
|
8720
|
+
var l = (
|
|
8639
8721
|
/** @type {number} */
|
|
8640
|
-
|
|
8722
|
+
r.readDouble()
|
|
8641
8723
|
);
|
|
8642
|
-
|
|
8724
|
+
o.setTheta(l);
|
|
8643
8725
|
break;
|
|
8644
8726
|
default:
|
|
8645
|
-
|
|
8727
|
+
r.skipField();
|
|
8646
8728
|
break;
|
|
8647
8729
|
}
|
|
8648
8730
|
}
|
|
8649
|
-
return
|
|
8731
|
+
return o;
|
|
8650
8732
|
}, proto.viam.common.v1.Pose.prototype.serializeBinary = function() {
|
|
8651
|
-
var
|
|
8652
|
-
return proto.viam.common.v1.Pose.serializeBinaryToWriter(this,
|
|
8653
|
-
}, proto.viam.common.v1.Pose.serializeBinaryToWriter = function(
|
|
8654
|
-
var
|
|
8655
|
-
|
|
8733
|
+
var o = new e.BinaryWriter();
|
|
8734
|
+
return proto.viam.common.v1.Pose.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
8735
|
+
}, proto.viam.common.v1.Pose.serializeBinaryToWriter = function(o, r) {
|
|
8736
|
+
var n = void 0;
|
|
8737
|
+
n = o.getX(), n !== 0 && r.writeDouble(
|
|
8656
8738
|
1,
|
|
8657
|
-
|
|
8658
|
-
),
|
|
8739
|
+
n
|
|
8740
|
+
), n = o.getY(), n !== 0 && r.writeDouble(
|
|
8659
8741
|
2,
|
|
8660
|
-
|
|
8661
|
-
),
|
|
8742
|
+
n
|
|
8743
|
+
), n = o.getZ(), n !== 0 && r.writeDouble(
|
|
8662
8744
|
3,
|
|
8663
|
-
|
|
8664
|
-
),
|
|
8745
|
+
n
|
|
8746
|
+
), n = o.getOX(), n !== 0 && r.writeDouble(
|
|
8665
8747
|
4,
|
|
8666
|
-
|
|
8667
|
-
),
|
|
8748
|
+
n
|
|
8749
|
+
), n = o.getOY(), n !== 0 && r.writeDouble(
|
|
8668
8750
|
5,
|
|
8669
|
-
|
|
8670
|
-
),
|
|
8751
|
+
n
|
|
8752
|
+
), n = o.getOZ(), n !== 0 && r.writeDouble(
|
|
8671
8753
|
6,
|
|
8672
|
-
|
|
8673
|
-
),
|
|
8754
|
+
n
|
|
8755
|
+
), n = o.getTheta(), n !== 0 && r.writeDouble(
|
|
8674
8756
|
7,
|
|
8675
|
-
|
|
8757
|
+
n
|
|
8676
8758
|
);
|
|
8677
8759
|
}, proto.viam.common.v1.Pose.prototype.getX = function() {
|
|
8678
8760
|
return (
|
|
8679
8761
|
/** @type {number} */
|
|
8680
8762
|
e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
|
|
8681
8763
|
);
|
|
8682
|
-
}, proto.viam.common.v1.Pose.prototype.setX = function(
|
|
8683
|
-
return e.Message.setProto3FloatField(this, 1,
|
|
8764
|
+
}, proto.viam.common.v1.Pose.prototype.setX = function(o) {
|
|
8765
|
+
return e.Message.setProto3FloatField(this, 1, o);
|
|
8684
8766
|
}, proto.viam.common.v1.Pose.prototype.getY = function() {
|
|
8685
8767
|
return (
|
|
8686
8768
|
/** @type {number} */
|
|
8687
8769
|
e.Message.getFloatingPointFieldWithDefault(this, 2, 0)
|
|
8688
8770
|
);
|
|
8689
|
-
}, proto.viam.common.v1.Pose.prototype.setY = function(
|
|
8690
|
-
return e.Message.setProto3FloatField(this, 2,
|
|
8771
|
+
}, proto.viam.common.v1.Pose.prototype.setY = function(o) {
|
|
8772
|
+
return e.Message.setProto3FloatField(this, 2, o);
|
|
8691
8773
|
}, proto.viam.common.v1.Pose.prototype.getZ = function() {
|
|
8692
8774
|
return (
|
|
8693
8775
|
/** @type {number} */
|
|
8694
8776
|
e.Message.getFloatingPointFieldWithDefault(this, 3, 0)
|
|
8695
8777
|
);
|
|
8696
|
-
}, proto.viam.common.v1.Pose.prototype.setZ = function(
|
|
8697
|
-
return e.Message.setProto3FloatField(this, 3,
|
|
8778
|
+
}, proto.viam.common.v1.Pose.prototype.setZ = function(o) {
|
|
8779
|
+
return e.Message.setProto3FloatField(this, 3, o);
|
|
8698
8780
|
}, proto.viam.common.v1.Pose.prototype.getOX = function() {
|
|
8699
8781
|
return (
|
|
8700
8782
|
/** @type {number} */
|
|
8701
8783
|
e.Message.getFloatingPointFieldWithDefault(this, 4, 0)
|
|
8702
8784
|
);
|
|
8703
|
-
}, proto.viam.common.v1.Pose.prototype.setOX = function(
|
|
8704
|
-
return e.Message.setProto3FloatField(this, 4,
|
|
8785
|
+
}, proto.viam.common.v1.Pose.prototype.setOX = function(o) {
|
|
8786
|
+
return e.Message.setProto3FloatField(this, 4, o);
|
|
8705
8787
|
}, proto.viam.common.v1.Pose.prototype.getOY = function() {
|
|
8706
8788
|
return (
|
|
8707
8789
|
/** @type {number} */
|
|
8708
8790
|
e.Message.getFloatingPointFieldWithDefault(this, 5, 0)
|
|
8709
8791
|
);
|
|
8710
|
-
}, proto.viam.common.v1.Pose.prototype.setOY = function(
|
|
8711
|
-
return e.Message.setProto3FloatField(this, 5,
|
|
8792
|
+
}, proto.viam.common.v1.Pose.prototype.setOY = function(o) {
|
|
8793
|
+
return e.Message.setProto3FloatField(this, 5, o);
|
|
8712
8794
|
}, proto.viam.common.v1.Pose.prototype.getOZ = function() {
|
|
8713
8795
|
return (
|
|
8714
8796
|
/** @type {number} */
|
|
8715
8797
|
e.Message.getFloatingPointFieldWithDefault(this, 6, 0)
|
|
8716
8798
|
);
|
|
8717
|
-
}, proto.viam.common.v1.Pose.prototype.setOZ = function(
|
|
8718
|
-
return e.Message.setProto3FloatField(this, 6,
|
|
8799
|
+
}, proto.viam.common.v1.Pose.prototype.setOZ = function(o) {
|
|
8800
|
+
return e.Message.setProto3FloatField(this, 6, o);
|
|
8719
8801
|
}, proto.viam.common.v1.Pose.prototype.getTheta = function() {
|
|
8720
8802
|
return (
|
|
8721
8803
|
/** @type {number} */
|
|
8722
8804
|
e.Message.getFloatingPointFieldWithDefault(this, 7, 0)
|
|
8723
8805
|
);
|
|
8724
|
-
}, proto.viam.common.v1.Pose.prototype.setTheta = function(
|
|
8725
|
-
return e.Message.setProto3FloatField(this, 7,
|
|
8726
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Orientation.prototype.toObject = function(
|
|
8727
|
-
return proto.viam.common.v1.Orientation.toObject(
|
|
8728
|
-
}, proto.viam.common.v1.Orientation.toObject = function(
|
|
8729
|
-
var
|
|
8730
|
-
oX: e.Message.getFloatingPointFieldWithDefault(
|
|
8731
|
-
oY: e.Message.getFloatingPointFieldWithDefault(
|
|
8732
|
-
oZ: e.Message.getFloatingPointFieldWithDefault(
|
|
8733
|
-
theta: e.Message.getFloatingPointFieldWithDefault(
|
|
8806
|
+
}, proto.viam.common.v1.Pose.prototype.setTheta = function(o) {
|
|
8807
|
+
return e.Message.setProto3FloatField(this, 7, o);
|
|
8808
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Orientation.prototype.toObject = function(o) {
|
|
8809
|
+
return proto.viam.common.v1.Orientation.toObject(o, this);
|
|
8810
|
+
}, proto.viam.common.v1.Orientation.toObject = function(o, r) {
|
|
8811
|
+
var n = {
|
|
8812
|
+
oX: e.Message.getFloatingPointFieldWithDefault(r, 1, 0),
|
|
8813
|
+
oY: e.Message.getFloatingPointFieldWithDefault(r, 2, 0),
|
|
8814
|
+
oZ: e.Message.getFloatingPointFieldWithDefault(r, 3, 0),
|
|
8815
|
+
theta: e.Message.getFloatingPointFieldWithDefault(r, 4, 0)
|
|
8734
8816
|
};
|
|
8735
|
-
return
|
|
8736
|
-
}), proto.viam.common.v1.Orientation.deserializeBinary = function(
|
|
8737
|
-
var
|
|
8738
|
-
return proto.viam.common.v1.Orientation.deserializeBinaryFromReader(
|
|
8739
|
-
}, proto.viam.common.v1.Orientation.deserializeBinaryFromReader = function(
|
|
8740
|
-
for (;
|
|
8741
|
-
var
|
|
8742
|
-
switch (
|
|
8817
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
8818
|
+
}), proto.viam.common.v1.Orientation.deserializeBinary = function(o) {
|
|
8819
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.Orientation();
|
|
8820
|
+
return proto.viam.common.v1.Orientation.deserializeBinaryFromReader(n, r);
|
|
8821
|
+
}, proto.viam.common.v1.Orientation.deserializeBinaryFromReader = function(o, r) {
|
|
8822
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
8823
|
+
var n = r.getFieldNumber();
|
|
8824
|
+
switch (n) {
|
|
8743
8825
|
case 1:
|
|
8744
|
-
var
|
|
8826
|
+
var l = (
|
|
8745
8827
|
/** @type {number} */
|
|
8746
|
-
|
|
8828
|
+
r.readDouble()
|
|
8747
8829
|
);
|
|
8748
|
-
|
|
8830
|
+
o.setOX(l);
|
|
8749
8831
|
break;
|
|
8750
8832
|
case 2:
|
|
8751
|
-
var
|
|
8833
|
+
var l = (
|
|
8752
8834
|
/** @type {number} */
|
|
8753
|
-
|
|
8835
|
+
r.readDouble()
|
|
8754
8836
|
);
|
|
8755
|
-
|
|
8837
|
+
o.setOY(l);
|
|
8756
8838
|
break;
|
|
8757
8839
|
case 3:
|
|
8758
|
-
var
|
|
8840
|
+
var l = (
|
|
8759
8841
|
/** @type {number} */
|
|
8760
|
-
|
|
8842
|
+
r.readDouble()
|
|
8761
8843
|
);
|
|
8762
|
-
|
|
8844
|
+
o.setOZ(l);
|
|
8763
8845
|
break;
|
|
8764
8846
|
case 4:
|
|
8765
|
-
var
|
|
8847
|
+
var l = (
|
|
8766
8848
|
/** @type {number} */
|
|
8767
|
-
|
|
8849
|
+
r.readDouble()
|
|
8768
8850
|
);
|
|
8769
|
-
|
|
8851
|
+
o.setTheta(l);
|
|
8770
8852
|
break;
|
|
8771
8853
|
default:
|
|
8772
|
-
|
|
8854
|
+
r.skipField();
|
|
8773
8855
|
break;
|
|
8774
8856
|
}
|
|
8775
8857
|
}
|
|
8776
|
-
return
|
|
8858
|
+
return o;
|
|
8777
8859
|
}, proto.viam.common.v1.Orientation.prototype.serializeBinary = function() {
|
|
8778
|
-
var
|
|
8779
|
-
return proto.viam.common.v1.Orientation.serializeBinaryToWriter(this,
|
|
8780
|
-
}, proto.viam.common.v1.Orientation.serializeBinaryToWriter = function(
|
|
8781
|
-
var
|
|
8782
|
-
|
|
8860
|
+
var o = new e.BinaryWriter();
|
|
8861
|
+
return proto.viam.common.v1.Orientation.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
8862
|
+
}, proto.viam.common.v1.Orientation.serializeBinaryToWriter = function(o, r) {
|
|
8863
|
+
var n = void 0;
|
|
8864
|
+
n = o.getOX(), n !== 0 && r.writeDouble(
|
|
8783
8865
|
1,
|
|
8784
|
-
|
|
8785
|
-
),
|
|
8866
|
+
n
|
|
8867
|
+
), n = o.getOY(), n !== 0 && r.writeDouble(
|
|
8786
8868
|
2,
|
|
8787
|
-
|
|
8788
|
-
),
|
|
8869
|
+
n
|
|
8870
|
+
), n = o.getOZ(), n !== 0 && r.writeDouble(
|
|
8789
8871
|
3,
|
|
8790
|
-
|
|
8791
|
-
),
|
|
8872
|
+
n
|
|
8873
|
+
), n = o.getTheta(), n !== 0 && r.writeDouble(
|
|
8792
8874
|
4,
|
|
8793
|
-
|
|
8875
|
+
n
|
|
8794
8876
|
);
|
|
8795
8877
|
}, proto.viam.common.v1.Orientation.prototype.getOX = function() {
|
|
8796
8878
|
return (
|
|
8797
8879
|
/** @type {number} */
|
|
8798
8880
|
e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
|
|
8799
8881
|
);
|
|
8800
|
-
}, proto.viam.common.v1.Orientation.prototype.setOX = function(
|
|
8801
|
-
return e.Message.setProto3FloatField(this, 1,
|
|
8882
|
+
}, proto.viam.common.v1.Orientation.prototype.setOX = function(o) {
|
|
8883
|
+
return e.Message.setProto3FloatField(this, 1, o);
|
|
8802
8884
|
}, proto.viam.common.v1.Orientation.prototype.getOY = function() {
|
|
8803
8885
|
return (
|
|
8804
8886
|
/** @type {number} */
|
|
8805
8887
|
e.Message.getFloatingPointFieldWithDefault(this, 2, 0)
|
|
8806
8888
|
);
|
|
8807
|
-
}, proto.viam.common.v1.Orientation.prototype.setOY = function(
|
|
8808
|
-
return e.Message.setProto3FloatField(this, 2,
|
|
8889
|
+
}, proto.viam.common.v1.Orientation.prototype.setOY = function(o) {
|
|
8890
|
+
return e.Message.setProto3FloatField(this, 2, o);
|
|
8809
8891
|
}, proto.viam.common.v1.Orientation.prototype.getOZ = function() {
|
|
8810
8892
|
return (
|
|
8811
8893
|
/** @type {number} */
|
|
8812
8894
|
e.Message.getFloatingPointFieldWithDefault(this, 3, 0)
|
|
8813
8895
|
);
|
|
8814
|
-
}, proto.viam.common.v1.Orientation.prototype.setOZ = function(
|
|
8815
|
-
return e.Message.setProto3FloatField(this, 3,
|
|
8896
|
+
}, proto.viam.common.v1.Orientation.prototype.setOZ = function(o) {
|
|
8897
|
+
return e.Message.setProto3FloatField(this, 3, o);
|
|
8816
8898
|
}, proto.viam.common.v1.Orientation.prototype.getTheta = function() {
|
|
8817
8899
|
return (
|
|
8818
8900
|
/** @type {number} */
|
|
8819
8901
|
e.Message.getFloatingPointFieldWithDefault(this, 4, 0)
|
|
8820
8902
|
);
|
|
8821
|
-
}, proto.viam.common.v1.Orientation.prototype.setTheta = function(
|
|
8822
|
-
return e.Message.setProto3FloatField(this, 4,
|
|
8823
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.PoseInFrame.prototype.toObject = function(
|
|
8824
|
-
return proto.viam.common.v1.PoseInFrame.toObject(
|
|
8825
|
-
}, proto.viam.common.v1.PoseInFrame.toObject = function(
|
|
8826
|
-
var
|
|
8827
|
-
referenceFrame: e.Message.getFieldWithDefault(
|
|
8828
|
-
pose: (
|
|
8903
|
+
}, proto.viam.common.v1.Orientation.prototype.setTheta = function(o) {
|
|
8904
|
+
return e.Message.setProto3FloatField(this, 4, o);
|
|
8905
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.PoseInFrame.prototype.toObject = function(o) {
|
|
8906
|
+
return proto.viam.common.v1.PoseInFrame.toObject(o, this);
|
|
8907
|
+
}, proto.viam.common.v1.PoseInFrame.toObject = function(o, r) {
|
|
8908
|
+
var n, l = {
|
|
8909
|
+
referenceFrame: e.Message.getFieldWithDefault(r, 1, ""),
|
|
8910
|
+
pose: (n = r.getPose()) && proto.viam.common.v1.Pose.toObject(o, n)
|
|
8829
8911
|
};
|
|
8830
|
-
return
|
|
8831
|
-
}), proto.viam.common.v1.PoseInFrame.deserializeBinary = function(
|
|
8832
|
-
var
|
|
8833
|
-
return proto.viam.common.v1.PoseInFrame.deserializeBinaryFromReader(
|
|
8834
|
-
}, proto.viam.common.v1.PoseInFrame.deserializeBinaryFromReader = function(
|
|
8835
|
-
for (;
|
|
8836
|
-
var
|
|
8837
|
-
switch (
|
|
8912
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
8913
|
+
}), proto.viam.common.v1.PoseInFrame.deserializeBinary = function(o) {
|
|
8914
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.PoseInFrame();
|
|
8915
|
+
return proto.viam.common.v1.PoseInFrame.deserializeBinaryFromReader(n, r);
|
|
8916
|
+
}, proto.viam.common.v1.PoseInFrame.deserializeBinaryFromReader = function(o, r) {
|
|
8917
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
8918
|
+
var n = r.getFieldNumber();
|
|
8919
|
+
switch (n) {
|
|
8838
8920
|
case 1:
|
|
8839
|
-
var
|
|
8921
|
+
var l = (
|
|
8840
8922
|
/** @type {string} */
|
|
8841
|
-
|
|
8923
|
+
r.readString()
|
|
8842
8924
|
);
|
|
8843
|
-
|
|
8925
|
+
o.setReferenceFrame(l);
|
|
8844
8926
|
break;
|
|
8845
8927
|
case 2:
|
|
8846
|
-
var
|
|
8847
|
-
|
|
8928
|
+
var l = new proto.viam.common.v1.Pose();
|
|
8929
|
+
r.readMessage(l, proto.viam.common.v1.Pose.deserializeBinaryFromReader), o.setPose(l);
|
|
8848
8930
|
break;
|
|
8849
8931
|
default:
|
|
8850
|
-
|
|
8932
|
+
r.skipField();
|
|
8851
8933
|
break;
|
|
8852
8934
|
}
|
|
8853
8935
|
}
|
|
8854
|
-
return
|
|
8936
|
+
return o;
|
|
8855
8937
|
}, proto.viam.common.v1.PoseInFrame.prototype.serializeBinary = function() {
|
|
8856
|
-
var
|
|
8857
|
-
return proto.viam.common.v1.PoseInFrame.serializeBinaryToWriter(this,
|
|
8858
|
-
}, proto.viam.common.v1.PoseInFrame.serializeBinaryToWriter = function(
|
|
8859
|
-
var
|
|
8860
|
-
|
|
8938
|
+
var o = new e.BinaryWriter();
|
|
8939
|
+
return proto.viam.common.v1.PoseInFrame.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
8940
|
+
}, proto.viam.common.v1.PoseInFrame.serializeBinaryToWriter = function(o, r) {
|
|
8941
|
+
var n = void 0;
|
|
8942
|
+
n = o.getReferenceFrame(), n.length > 0 && r.writeString(
|
|
8861
8943
|
1,
|
|
8862
|
-
|
|
8863
|
-
),
|
|
8944
|
+
n
|
|
8945
|
+
), n = o.getPose(), n != null && r.writeMessage(
|
|
8864
8946
|
2,
|
|
8865
|
-
|
|
8947
|
+
n,
|
|
8866
8948
|
proto.viam.common.v1.Pose.serializeBinaryToWriter
|
|
8867
8949
|
);
|
|
8868
8950
|
}, proto.viam.common.v1.PoseInFrame.prototype.getReferenceFrame = function() {
|
|
@@ -8870,234 +8952,234 @@ var struct_pb = {};
|
|
|
8870
8952
|
/** @type {string} */
|
|
8871
8953
|
e.Message.getFieldWithDefault(this, 1, "")
|
|
8872
8954
|
);
|
|
8873
|
-
}, proto.viam.common.v1.PoseInFrame.prototype.setReferenceFrame = function(
|
|
8874
|
-
return e.Message.setProto3StringField(this, 1,
|
|
8955
|
+
}, proto.viam.common.v1.PoseInFrame.prototype.setReferenceFrame = function(o) {
|
|
8956
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
8875
8957
|
}, proto.viam.common.v1.PoseInFrame.prototype.getPose = function() {
|
|
8876
8958
|
return (
|
|
8877
8959
|
/** @type{?proto.viam.common.v1.Pose} */
|
|
8878
8960
|
e.Message.getWrapperField(this, proto.viam.common.v1.Pose, 2)
|
|
8879
8961
|
);
|
|
8880
|
-
}, proto.viam.common.v1.PoseInFrame.prototype.setPose = function(
|
|
8881
|
-
return e.Message.setWrapperField(this, 2,
|
|
8962
|
+
}, proto.viam.common.v1.PoseInFrame.prototype.setPose = function(o) {
|
|
8963
|
+
return e.Message.setWrapperField(this, 2, o);
|
|
8882
8964
|
}, proto.viam.common.v1.PoseInFrame.prototype.clearPose = function() {
|
|
8883
8965
|
return this.setPose(void 0);
|
|
8884
8966
|
}, proto.viam.common.v1.PoseInFrame.prototype.hasPose = function() {
|
|
8885
8967
|
return e.Message.getField(this, 2) != null;
|
|
8886
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Vector3.prototype.toObject = function(
|
|
8887
|
-
return proto.viam.common.v1.Vector3.toObject(
|
|
8888
|
-
}, proto.viam.common.v1.Vector3.toObject = function(
|
|
8889
|
-
var
|
|
8890
|
-
x: e.Message.getFloatingPointFieldWithDefault(
|
|
8891
|
-
y: e.Message.getFloatingPointFieldWithDefault(
|
|
8892
|
-
z: e.Message.getFloatingPointFieldWithDefault(
|
|
8968
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Vector3.prototype.toObject = function(o) {
|
|
8969
|
+
return proto.viam.common.v1.Vector3.toObject(o, this);
|
|
8970
|
+
}, proto.viam.common.v1.Vector3.toObject = function(o, r) {
|
|
8971
|
+
var n = {
|
|
8972
|
+
x: e.Message.getFloatingPointFieldWithDefault(r, 1, 0),
|
|
8973
|
+
y: e.Message.getFloatingPointFieldWithDefault(r, 2, 0),
|
|
8974
|
+
z: e.Message.getFloatingPointFieldWithDefault(r, 3, 0)
|
|
8893
8975
|
};
|
|
8894
|
-
return
|
|
8895
|
-
}), proto.viam.common.v1.Vector3.deserializeBinary = function(
|
|
8896
|
-
var
|
|
8897
|
-
return proto.viam.common.v1.Vector3.deserializeBinaryFromReader(
|
|
8898
|
-
}, proto.viam.common.v1.Vector3.deserializeBinaryFromReader = function(
|
|
8899
|
-
for (;
|
|
8900
|
-
var
|
|
8901
|
-
switch (
|
|
8976
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
8977
|
+
}), proto.viam.common.v1.Vector3.deserializeBinary = function(o) {
|
|
8978
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.Vector3();
|
|
8979
|
+
return proto.viam.common.v1.Vector3.deserializeBinaryFromReader(n, r);
|
|
8980
|
+
}, proto.viam.common.v1.Vector3.deserializeBinaryFromReader = function(o, r) {
|
|
8981
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
8982
|
+
var n = r.getFieldNumber();
|
|
8983
|
+
switch (n) {
|
|
8902
8984
|
case 1:
|
|
8903
|
-
var
|
|
8985
|
+
var l = (
|
|
8904
8986
|
/** @type {number} */
|
|
8905
|
-
|
|
8987
|
+
r.readDouble()
|
|
8906
8988
|
);
|
|
8907
|
-
|
|
8989
|
+
o.setX(l);
|
|
8908
8990
|
break;
|
|
8909
8991
|
case 2:
|
|
8910
|
-
var
|
|
8992
|
+
var l = (
|
|
8911
8993
|
/** @type {number} */
|
|
8912
|
-
|
|
8994
|
+
r.readDouble()
|
|
8913
8995
|
);
|
|
8914
|
-
|
|
8996
|
+
o.setY(l);
|
|
8915
8997
|
break;
|
|
8916
8998
|
case 3:
|
|
8917
|
-
var
|
|
8999
|
+
var l = (
|
|
8918
9000
|
/** @type {number} */
|
|
8919
|
-
|
|
9001
|
+
r.readDouble()
|
|
8920
9002
|
);
|
|
8921
|
-
|
|
9003
|
+
o.setZ(l);
|
|
8922
9004
|
break;
|
|
8923
9005
|
default:
|
|
8924
|
-
|
|
9006
|
+
r.skipField();
|
|
8925
9007
|
break;
|
|
8926
9008
|
}
|
|
8927
9009
|
}
|
|
8928
|
-
return
|
|
9010
|
+
return o;
|
|
8929
9011
|
}, proto.viam.common.v1.Vector3.prototype.serializeBinary = function() {
|
|
8930
|
-
var
|
|
8931
|
-
return proto.viam.common.v1.Vector3.serializeBinaryToWriter(this,
|
|
8932
|
-
}, proto.viam.common.v1.Vector3.serializeBinaryToWriter = function(
|
|
8933
|
-
var
|
|
8934
|
-
|
|
9012
|
+
var o = new e.BinaryWriter();
|
|
9013
|
+
return proto.viam.common.v1.Vector3.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9014
|
+
}, proto.viam.common.v1.Vector3.serializeBinaryToWriter = function(o, r) {
|
|
9015
|
+
var n = void 0;
|
|
9016
|
+
n = o.getX(), n !== 0 && r.writeDouble(
|
|
8935
9017
|
1,
|
|
8936
|
-
|
|
8937
|
-
),
|
|
9018
|
+
n
|
|
9019
|
+
), n = o.getY(), n !== 0 && r.writeDouble(
|
|
8938
9020
|
2,
|
|
8939
|
-
|
|
8940
|
-
),
|
|
9021
|
+
n
|
|
9022
|
+
), n = o.getZ(), n !== 0 && r.writeDouble(
|
|
8941
9023
|
3,
|
|
8942
|
-
|
|
9024
|
+
n
|
|
8943
9025
|
);
|
|
8944
9026
|
}, proto.viam.common.v1.Vector3.prototype.getX = function() {
|
|
8945
9027
|
return (
|
|
8946
9028
|
/** @type {number} */
|
|
8947
9029
|
e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
|
|
8948
9030
|
);
|
|
8949
|
-
}, proto.viam.common.v1.Vector3.prototype.setX = function(
|
|
8950
|
-
return e.Message.setProto3FloatField(this, 1,
|
|
9031
|
+
}, proto.viam.common.v1.Vector3.prototype.setX = function(o) {
|
|
9032
|
+
return e.Message.setProto3FloatField(this, 1, o);
|
|
8951
9033
|
}, proto.viam.common.v1.Vector3.prototype.getY = function() {
|
|
8952
9034
|
return (
|
|
8953
9035
|
/** @type {number} */
|
|
8954
9036
|
e.Message.getFloatingPointFieldWithDefault(this, 2, 0)
|
|
8955
9037
|
);
|
|
8956
|
-
}, proto.viam.common.v1.Vector3.prototype.setY = function(
|
|
8957
|
-
return e.Message.setProto3FloatField(this, 2,
|
|
9038
|
+
}, proto.viam.common.v1.Vector3.prototype.setY = function(o) {
|
|
9039
|
+
return e.Message.setProto3FloatField(this, 2, o);
|
|
8958
9040
|
}, proto.viam.common.v1.Vector3.prototype.getZ = function() {
|
|
8959
9041
|
return (
|
|
8960
9042
|
/** @type {number} */
|
|
8961
9043
|
e.Message.getFloatingPointFieldWithDefault(this, 3, 0)
|
|
8962
9044
|
);
|
|
8963
|
-
}, proto.viam.common.v1.Vector3.prototype.setZ = function(
|
|
8964
|
-
return e.Message.setProto3FloatField(this, 3,
|
|
8965
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Sphere.prototype.toObject = function(
|
|
8966
|
-
return proto.viam.common.v1.Sphere.toObject(
|
|
8967
|
-
}, proto.viam.common.v1.Sphere.toObject = function(
|
|
8968
|
-
var
|
|
8969
|
-
radiusMm: e.Message.getFloatingPointFieldWithDefault(
|
|
9045
|
+
}, proto.viam.common.v1.Vector3.prototype.setZ = function(o) {
|
|
9046
|
+
return e.Message.setProto3FloatField(this, 3, o);
|
|
9047
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Sphere.prototype.toObject = function(o) {
|
|
9048
|
+
return proto.viam.common.v1.Sphere.toObject(o, this);
|
|
9049
|
+
}, proto.viam.common.v1.Sphere.toObject = function(o, r) {
|
|
9050
|
+
var n = {
|
|
9051
|
+
radiusMm: e.Message.getFloatingPointFieldWithDefault(r, 1, 0)
|
|
8970
9052
|
};
|
|
8971
|
-
return
|
|
8972
|
-
}), proto.viam.common.v1.Sphere.deserializeBinary = function(
|
|
8973
|
-
var
|
|
8974
|
-
return proto.viam.common.v1.Sphere.deserializeBinaryFromReader(
|
|
8975
|
-
}, proto.viam.common.v1.Sphere.deserializeBinaryFromReader = function(
|
|
8976
|
-
for (;
|
|
8977
|
-
var
|
|
8978
|
-
switch (
|
|
9053
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
9054
|
+
}), proto.viam.common.v1.Sphere.deserializeBinary = function(o) {
|
|
9055
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.Sphere();
|
|
9056
|
+
return proto.viam.common.v1.Sphere.deserializeBinaryFromReader(n, r);
|
|
9057
|
+
}, proto.viam.common.v1.Sphere.deserializeBinaryFromReader = function(o, r) {
|
|
9058
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9059
|
+
var n = r.getFieldNumber();
|
|
9060
|
+
switch (n) {
|
|
8979
9061
|
case 1:
|
|
8980
|
-
var
|
|
9062
|
+
var l = (
|
|
8981
9063
|
/** @type {number} */
|
|
8982
|
-
|
|
9064
|
+
r.readDouble()
|
|
8983
9065
|
);
|
|
8984
|
-
|
|
9066
|
+
o.setRadiusMm(l);
|
|
8985
9067
|
break;
|
|
8986
9068
|
default:
|
|
8987
|
-
|
|
9069
|
+
r.skipField();
|
|
8988
9070
|
break;
|
|
8989
9071
|
}
|
|
8990
9072
|
}
|
|
8991
|
-
return
|
|
9073
|
+
return o;
|
|
8992
9074
|
}, proto.viam.common.v1.Sphere.prototype.serializeBinary = function() {
|
|
8993
|
-
var
|
|
8994
|
-
return proto.viam.common.v1.Sphere.serializeBinaryToWriter(this,
|
|
8995
|
-
}, proto.viam.common.v1.Sphere.serializeBinaryToWriter = function(
|
|
8996
|
-
var
|
|
8997
|
-
|
|
9075
|
+
var o = new e.BinaryWriter();
|
|
9076
|
+
return proto.viam.common.v1.Sphere.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9077
|
+
}, proto.viam.common.v1.Sphere.serializeBinaryToWriter = function(o, r) {
|
|
9078
|
+
var n = void 0;
|
|
9079
|
+
n = o.getRadiusMm(), n !== 0 && r.writeDouble(
|
|
8998
9080
|
1,
|
|
8999
|
-
|
|
9081
|
+
n
|
|
9000
9082
|
);
|
|
9001
9083
|
}, proto.viam.common.v1.Sphere.prototype.getRadiusMm = function() {
|
|
9002
9084
|
return (
|
|
9003
9085
|
/** @type {number} */
|
|
9004
9086
|
e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
|
|
9005
9087
|
);
|
|
9006
|
-
}, proto.viam.common.v1.Sphere.prototype.setRadiusMm = function(
|
|
9007
|
-
return e.Message.setProto3FloatField(this, 1,
|
|
9008
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Capsule.prototype.toObject = function(
|
|
9009
|
-
return proto.viam.common.v1.Capsule.toObject(
|
|
9010
|
-
}, proto.viam.common.v1.Capsule.toObject = function(
|
|
9011
|
-
var
|
|
9012
|
-
radiusMm: e.Message.getFloatingPointFieldWithDefault(
|
|
9013
|
-
lengthMm: e.Message.getFloatingPointFieldWithDefault(
|
|
9088
|
+
}, proto.viam.common.v1.Sphere.prototype.setRadiusMm = function(o) {
|
|
9089
|
+
return e.Message.setProto3FloatField(this, 1, o);
|
|
9090
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Capsule.prototype.toObject = function(o) {
|
|
9091
|
+
return proto.viam.common.v1.Capsule.toObject(o, this);
|
|
9092
|
+
}, proto.viam.common.v1.Capsule.toObject = function(o, r) {
|
|
9093
|
+
var n = {
|
|
9094
|
+
radiusMm: e.Message.getFloatingPointFieldWithDefault(r, 1, 0),
|
|
9095
|
+
lengthMm: e.Message.getFloatingPointFieldWithDefault(r, 2, 0)
|
|
9014
9096
|
};
|
|
9015
|
-
return
|
|
9016
|
-
}), proto.viam.common.v1.Capsule.deserializeBinary = function(
|
|
9017
|
-
var
|
|
9018
|
-
return proto.viam.common.v1.Capsule.deserializeBinaryFromReader(
|
|
9019
|
-
}, proto.viam.common.v1.Capsule.deserializeBinaryFromReader = function(
|
|
9020
|
-
for (;
|
|
9021
|
-
var
|
|
9022
|
-
switch (
|
|
9097
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
9098
|
+
}), proto.viam.common.v1.Capsule.deserializeBinary = function(o) {
|
|
9099
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.Capsule();
|
|
9100
|
+
return proto.viam.common.v1.Capsule.deserializeBinaryFromReader(n, r);
|
|
9101
|
+
}, proto.viam.common.v1.Capsule.deserializeBinaryFromReader = function(o, r) {
|
|
9102
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9103
|
+
var n = r.getFieldNumber();
|
|
9104
|
+
switch (n) {
|
|
9023
9105
|
case 1:
|
|
9024
|
-
var
|
|
9106
|
+
var l = (
|
|
9025
9107
|
/** @type {number} */
|
|
9026
|
-
|
|
9108
|
+
r.readDouble()
|
|
9027
9109
|
);
|
|
9028
|
-
|
|
9110
|
+
o.setRadiusMm(l);
|
|
9029
9111
|
break;
|
|
9030
9112
|
case 2:
|
|
9031
|
-
var
|
|
9113
|
+
var l = (
|
|
9032
9114
|
/** @type {number} */
|
|
9033
|
-
|
|
9115
|
+
r.readDouble()
|
|
9034
9116
|
);
|
|
9035
|
-
|
|
9117
|
+
o.setLengthMm(l);
|
|
9036
9118
|
break;
|
|
9037
9119
|
default:
|
|
9038
|
-
|
|
9120
|
+
r.skipField();
|
|
9039
9121
|
break;
|
|
9040
9122
|
}
|
|
9041
9123
|
}
|
|
9042
|
-
return
|
|
9124
|
+
return o;
|
|
9043
9125
|
}, proto.viam.common.v1.Capsule.prototype.serializeBinary = function() {
|
|
9044
|
-
var
|
|
9045
|
-
return proto.viam.common.v1.Capsule.serializeBinaryToWriter(this,
|
|
9046
|
-
}, proto.viam.common.v1.Capsule.serializeBinaryToWriter = function(
|
|
9047
|
-
var
|
|
9048
|
-
|
|
9126
|
+
var o = new e.BinaryWriter();
|
|
9127
|
+
return proto.viam.common.v1.Capsule.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9128
|
+
}, proto.viam.common.v1.Capsule.serializeBinaryToWriter = function(o, r) {
|
|
9129
|
+
var n = void 0;
|
|
9130
|
+
n = o.getRadiusMm(), n !== 0 && r.writeDouble(
|
|
9049
9131
|
1,
|
|
9050
|
-
|
|
9051
|
-
),
|
|
9132
|
+
n
|
|
9133
|
+
), n = o.getLengthMm(), n !== 0 && r.writeDouble(
|
|
9052
9134
|
2,
|
|
9053
|
-
|
|
9135
|
+
n
|
|
9054
9136
|
);
|
|
9055
9137
|
}, proto.viam.common.v1.Capsule.prototype.getRadiusMm = function() {
|
|
9056
9138
|
return (
|
|
9057
9139
|
/** @type {number} */
|
|
9058
9140
|
e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
|
|
9059
9141
|
);
|
|
9060
|
-
}, proto.viam.common.v1.Capsule.prototype.setRadiusMm = function(
|
|
9061
|
-
return e.Message.setProto3FloatField(this, 1,
|
|
9142
|
+
}, proto.viam.common.v1.Capsule.prototype.setRadiusMm = function(o) {
|
|
9143
|
+
return e.Message.setProto3FloatField(this, 1, o);
|
|
9062
9144
|
}, proto.viam.common.v1.Capsule.prototype.getLengthMm = function() {
|
|
9063
9145
|
return (
|
|
9064
9146
|
/** @type {number} */
|
|
9065
9147
|
e.Message.getFloatingPointFieldWithDefault(this, 2, 0)
|
|
9066
9148
|
);
|
|
9067
|
-
}, proto.viam.common.v1.Capsule.prototype.setLengthMm = function(
|
|
9068
|
-
return e.Message.setProto3FloatField(this, 2,
|
|
9069
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.RectangularPrism.prototype.toObject = function(
|
|
9070
|
-
return proto.viam.common.v1.RectangularPrism.toObject(
|
|
9071
|
-
}, proto.viam.common.v1.RectangularPrism.toObject = function(
|
|
9072
|
-
var
|
|
9073
|
-
dimsMm: (
|
|
9149
|
+
}, proto.viam.common.v1.Capsule.prototype.setLengthMm = function(o) {
|
|
9150
|
+
return e.Message.setProto3FloatField(this, 2, o);
|
|
9151
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.RectangularPrism.prototype.toObject = function(o) {
|
|
9152
|
+
return proto.viam.common.v1.RectangularPrism.toObject(o, this);
|
|
9153
|
+
}, proto.viam.common.v1.RectangularPrism.toObject = function(o, r) {
|
|
9154
|
+
var n, l = {
|
|
9155
|
+
dimsMm: (n = r.getDimsMm()) && proto.viam.common.v1.Vector3.toObject(o, n)
|
|
9074
9156
|
};
|
|
9075
|
-
return
|
|
9076
|
-
}), proto.viam.common.v1.RectangularPrism.deserializeBinary = function(
|
|
9077
|
-
var
|
|
9078
|
-
return proto.viam.common.v1.RectangularPrism.deserializeBinaryFromReader(
|
|
9079
|
-
}, proto.viam.common.v1.RectangularPrism.deserializeBinaryFromReader = function(
|
|
9080
|
-
for (;
|
|
9081
|
-
var
|
|
9082
|
-
switch (
|
|
9157
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
9158
|
+
}), proto.viam.common.v1.RectangularPrism.deserializeBinary = function(o) {
|
|
9159
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.RectangularPrism();
|
|
9160
|
+
return proto.viam.common.v1.RectangularPrism.deserializeBinaryFromReader(n, r);
|
|
9161
|
+
}, proto.viam.common.v1.RectangularPrism.deserializeBinaryFromReader = function(o, r) {
|
|
9162
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9163
|
+
var n = r.getFieldNumber();
|
|
9164
|
+
switch (n) {
|
|
9083
9165
|
case 1:
|
|
9084
|
-
var
|
|
9085
|
-
|
|
9166
|
+
var l = new proto.viam.common.v1.Vector3();
|
|
9167
|
+
r.readMessage(l, proto.viam.common.v1.Vector3.deserializeBinaryFromReader), o.setDimsMm(l);
|
|
9086
9168
|
break;
|
|
9087
9169
|
default:
|
|
9088
|
-
|
|
9170
|
+
r.skipField();
|
|
9089
9171
|
break;
|
|
9090
9172
|
}
|
|
9091
9173
|
}
|
|
9092
|
-
return
|
|
9174
|
+
return o;
|
|
9093
9175
|
}, proto.viam.common.v1.RectangularPrism.prototype.serializeBinary = function() {
|
|
9094
|
-
var
|
|
9095
|
-
return proto.viam.common.v1.RectangularPrism.serializeBinaryToWriter(this,
|
|
9096
|
-
}, proto.viam.common.v1.RectangularPrism.serializeBinaryToWriter = function(
|
|
9097
|
-
var
|
|
9098
|
-
|
|
9176
|
+
var o = new e.BinaryWriter();
|
|
9177
|
+
return proto.viam.common.v1.RectangularPrism.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9178
|
+
}, proto.viam.common.v1.RectangularPrism.serializeBinaryToWriter = function(o, r) {
|
|
9179
|
+
var n = void 0;
|
|
9180
|
+
n = o.getDimsMm(), n != null && r.writeMessage(
|
|
9099
9181
|
1,
|
|
9100
|
-
|
|
9182
|
+
n,
|
|
9101
9183
|
proto.viam.common.v1.Vector3.serializeBinaryToWriter
|
|
9102
9184
|
);
|
|
9103
9185
|
}, proto.viam.common.v1.RectangularPrism.prototype.getDimsMm = function() {
|
|
@@ -9105,8 +9187,8 @@ var struct_pb = {};
|
|
|
9105
9187
|
/** @type{?proto.viam.common.v1.Vector3} */
|
|
9106
9188
|
e.Message.getWrapperField(this, proto.viam.common.v1.Vector3, 1)
|
|
9107
9189
|
);
|
|
9108
|
-
}, proto.viam.common.v1.RectangularPrism.prototype.setDimsMm = function(
|
|
9109
|
-
return e.Message.setWrapperField(this, 1,
|
|
9190
|
+
}, proto.viam.common.v1.RectangularPrism.prototype.setDimsMm = function(o) {
|
|
9191
|
+
return e.Message.setWrapperField(this, 1, o);
|
|
9110
9192
|
}, proto.viam.common.v1.RectangularPrism.prototype.clearDimsMm = function() {
|
|
9111
9193
|
return this.setDimsMm(void 0);
|
|
9112
9194
|
}, proto.viam.common.v1.RectangularPrism.prototype.hasDimsMm = function() {
|
|
@@ -9121,85 +9203,85 @@ var struct_pb = {};
|
|
|
9121
9203
|
/** @type {proto.viam.common.v1.Geometry.GeometryTypeCase} */
|
|
9122
9204
|
e.Message.computeOneofCase(this, proto.viam.common.v1.Geometry.oneofGroups_[0])
|
|
9123
9205
|
);
|
|
9124
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Geometry.prototype.toObject = function(
|
|
9125
|
-
return proto.viam.common.v1.Geometry.toObject(
|
|
9126
|
-
}, proto.viam.common.v1.Geometry.toObject = function(
|
|
9127
|
-
var
|
|
9128
|
-
center: (
|
|
9129
|
-
sphere: (
|
|
9130
|
-
box: (
|
|
9131
|
-
capsule: (
|
|
9132
|
-
label: e.Message.getFieldWithDefault(
|
|
9206
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Geometry.prototype.toObject = function(o) {
|
|
9207
|
+
return proto.viam.common.v1.Geometry.toObject(o, this);
|
|
9208
|
+
}, proto.viam.common.v1.Geometry.toObject = function(o, r) {
|
|
9209
|
+
var n, l = {
|
|
9210
|
+
center: (n = r.getCenter()) && proto.viam.common.v1.Pose.toObject(o, n),
|
|
9211
|
+
sphere: (n = r.getSphere()) && proto.viam.common.v1.Sphere.toObject(o, n),
|
|
9212
|
+
box: (n = r.getBox()) && proto.viam.common.v1.RectangularPrism.toObject(o, n),
|
|
9213
|
+
capsule: (n = r.getCapsule()) && proto.viam.common.v1.Capsule.toObject(o, n),
|
|
9214
|
+
label: e.Message.getFieldWithDefault(r, 4, "")
|
|
9133
9215
|
};
|
|
9134
|
-
return
|
|
9135
|
-
}), proto.viam.common.v1.Geometry.deserializeBinary = function(
|
|
9136
|
-
var
|
|
9137
|
-
return proto.viam.common.v1.Geometry.deserializeBinaryFromReader(
|
|
9138
|
-
}, proto.viam.common.v1.Geometry.deserializeBinaryFromReader = function(
|
|
9139
|
-
for (;
|
|
9140
|
-
var
|
|
9141
|
-
switch (
|
|
9216
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
9217
|
+
}), proto.viam.common.v1.Geometry.deserializeBinary = function(o) {
|
|
9218
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.Geometry();
|
|
9219
|
+
return proto.viam.common.v1.Geometry.deserializeBinaryFromReader(n, r);
|
|
9220
|
+
}, proto.viam.common.v1.Geometry.deserializeBinaryFromReader = function(o, r) {
|
|
9221
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9222
|
+
var n = r.getFieldNumber();
|
|
9223
|
+
switch (n) {
|
|
9142
9224
|
case 1:
|
|
9143
|
-
var
|
|
9144
|
-
|
|
9225
|
+
var l = new proto.viam.common.v1.Pose();
|
|
9226
|
+
r.readMessage(l, proto.viam.common.v1.Pose.deserializeBinaryFromReader), o.setCenter(l);
|
|
9145
9227
|
break;
|
|
9146
9228
|
case 2:
|
|
9147
|
-
var
|
|
9148
|
-
|
|
9229
|
+
var l = new proto.viam.common.v1.Sphere();
|
|
9230
|
+
r.readMessage(l, proto.viam.common.v1.Sphere.deserializeBinaryFromReader), o.setSphere(l);
|
|
9149
9231
|
break;
|
|
9150
9232
|
case 3:
|
|
9151
|
-
var
|
|
9152
|
-
|
|
9233
|
+
var l = new proto.viam.common.v1.RectangularPrism();
|
|
9234
|
+
r.readMessage(l, proto.viam.common.v1.RectangularPrism.deserializeBinaryFromReader), o.setBox(l);
|
|
9153
9235
|
break;
|
|
9154
9236
|
case 5:
|
|
9155
|
-
var
|
|
9156
|
-
|
|
9237
|
+
var l = new proto.viam.common.v1.Capsule();
|
|
9238
|
+
r.readMessage(l, proto.viam.common.v1.Capsule.deserializeBinaryFromReader), o.setCapsule(l);
|
|
9157
9239
|
break;
|
|
9158
9240
|
case 4:
|
|
9159
|
-
var
|
|
9241
|
+
var l = (
|
|
9160
9242
|
/** @type {string} */
|
|
9161
|
-
|
|
9243
|
+
r.readString()
|
|
9162
9244
|
);
|
|
9163
|
-
|
|
9245
|
+
o.setLabel(l);
|
|
9164
9246
|
break;
|
|
9165
9247
|
default:
|
|
9166
|
-
|
|
9248
|
+
r.skipField();
|
|
9167
9249
|
break;
|
|
9168
9250
|
}
|
|
9169
9251
|
}
|
|
9170
|
-
return
|
|
9252
|
+
return o;
|
|
9171
9253
|
}, proto.viam.common.v1.Geometry.prototype.serializeBinary = function() {
|
|
9172
|
-
var
|
|
9173
|
-
return proto.viam.common.v1.Geometry.serializeBinaryToWriter(this,
|
|
9174
|
-
}, proto.viam.common.v1.Geometry.serializeBinaryToWriter = function(
|
|
9175
|
-
var
|
|
9176
|
-
|
|
9254
|
+
var o = new e.BinaryWriter();
|
|
9255
|
+
return proto.viam.common.v1.Geometry.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9256
|
+
}, proto.viam.common.v1.Geometry.serializeBinaryToWriter = function(o, r) {
|
|
9257
|
+
var n = void 0;
|
|
9258
|
+
n = o.getCenter(), n != null && r.writeMessage(
|
|
9177
9259
|
1,
|
|
9178
|
-
|
|
9260
|
+
n,
|
|
9179
9261
|
proto.viam.common.v1.Pose.serializeBinaryToWriter
|
|
9180
|
-
),
|
|
9262
|
+
), n = o.getSphere(), n != null && r.writeMessage(
|
|
9181
9263
|
2,
|
|
9182
|
-
|
|
9264
|
+
n,
|
|
9183
9265
|
proto.viam.common.v1.Sphere.serializeBinaryToWriter
|
|
9184
|
-
),
|
|
9266
|
+
), n = o.getBox(), n != null && r.writeMessage(
|
|
9185
9267
|
3,
|
|
9186
|
-
|
|
9268
|
+
n,
|
|
9187
9269
|
proto.viam.common.v1.RectangularPrism.serializeBinaryToWriter
|
|
9188
|
-
),
|
|
9270
|
+
), n = o.getCapsule(), n != null && r.writeMessage(
|
|
9189
9271
|
5,
|
|
9190
|
-
|
|
9272
|
+
n,
|
|
9191
9273
|
proto.viam.common.v1.Capsule.serializeBinaryToWriter
|
|
9192
|
-
),
|
|
9274
|
+
), n = o.getLabel(), n.length > 0 && r.writeString(
|
|
9193
9275
|
4,
|
|
9194
|
-
|
|
9276
|
+
n
|
|
9195
9277
|
);
|
|
9196
9278
|
}, proto.viam.common.v1.Geometry.prototype.getCenter = function() {
|
|
9197
9279
|
return (
|
|
9198
9280
|
/** @type{?proto.viam.common.v1.Pose} */
|
|
9199
9281
|
e.Message.getWrapperField(this, proto.viam.common.v1.Pose, 1)
|
|
9200
9282
|
);
|
|
9201
|
-
}, proto.viam.common.v1.Geometry.prototype.setCenter = function(
|
|
9202
|
-
return e.Message.setWrapperField(this, 1,
|
|
9283
|
+
}, proto.viam.common.v1.Geometry.prototype.setCenter = function(o) {
|
|
9284
|
+
return e.Message.setWrapperField(this, 1, o);
|
|
9203
9285
|
}, proto.viam.common.v1.Geometry.prototype.clearCenter = function() {
|
|
9204
9286
|
return this.setCenter(void 0);
|
|
9205
9287
|
}, proto.viam.common.v1.Geometry.prototype.hasCenter = function() {
|
|
@@ -9209,8 +9291,8 @@ var struct_pb = {};
|
|
|
9209
9291
|
/** @type{?proto.viam.common.v1.Sphere} */
|
|
9210
9292
|
e.Message.getWrapperField(this, proto.viam.common.v1.Sphere, 2)
|
|
9211
9293
|
);
|
|
9212
|
-
}, proto.viam.common.v1.Geometry.prototype.setSphere = function(
|
|
9213
|
-
return e.Message.setOneofWrapperField(this, 2, proto.viam.common.v1.Geometry.oneofGroups_[0],
|
|
9294
|
+
}, proto.viam.common.v1.Geometry.prototype.setSphere = function(o) {
|
|
9295
|
+
return e.Message.setOneofWrapperField(this, 2, proto.viam.common.v1.Geometry.oneofGroups_[0], o);
|
|
9214
9296
|
}, proto.viam.common.v1.Geometry.prototype.clearSphere = function() {
|
|
9215
9297
|
return this.setSphere(void 0);
|
|
9216
9298
|
}, proto.viam.common.v1.Geometry.prototype.hasSphere = function() {
|
|
@@ -9220,8 +9302,8 @@ var struct_pb = {};
|
|
|
9220
9302
|
/** @type{?proto.viam.common.v1.RectangularPrism} */
|
|
9221
9303
|
e.Message.getWrapperField(this, proto.viam.common.v1.RectangularPrism, 3)
|
|
9222
9304
|
);
|
|
9223
|
-
}, proto.viam.common.v1.Geometry.prototype.setBox = function(
|
|
9224
|
-
return e.Message.setOneofWrapperField(this, 3, proto.viam.common.v1.Geometry.oneofGroups_[0],
|
|
9305
|
+
}, proto.viam.common.v1.Geometry.prototype.setBox = function(o) {
|
|
9306
|
+
return e.Message.setOneofWrapperField(this, 3, proto.viam.common.v1.Geometry.oneofGroups_[0], o);
|
|
9225
9307
|
}, proto.viam.common.v1.Geometry.prototype.clearBox = function() {
|
|
9226
9308
|
return this.setBox(void 0);
|
|
9227
9309
|
}, proto.viam.common.v1.Geometry.prototype.hasBox = function() {
|
|
@@ -9231,8 +9313,8 @@ var struct_pb = {};
|
|
|
9231
9313
|
/** @type{?proto.viam.common.v1.Capsule} */
|
|
9232
9314
|
e.Message.getWrapperField(this, proto.viam.common.v1.Capsule, 5)
|
|
9233
9315
|
);
|
|
9234
|
-
}, proto.viam.common.v1.Geometry.prototype.setCapsule = function(
|
|
9235
|
-
return e.Message.setOneofWrapperField(this, 5, proto.viam.common.v1.Geometry.oneofGroups_[0],
|
|
9316
|
+
}, proto.viam.common.v1.Geometry.prototype.setCapsule = function(o) {
|
|
9317
|
+
return e.Message.setOneofWrapperField(this, 5, proto.viam.common.v1.Geometry.oneofGroups_[0], o);
|
|
9236
9318
|
}, proto.viam.common.v1.Geometry.prototype.clearCapsule = function() {
|
|
9237
9319
|
return this.setCapsule(void 0);
|
|
9238
9320
|
}, proto.viam.common.v1.Geometry.prototype.hasCapsule = function() {
|
|
@@ -9242,55 +9324,55 @@ var struct_pb = {};
|
|
|
9242
9324
|
/** @type {string} */
|
|
9243
9325
|
e.Message.getFieldWithDefault(this, 4, "")
|
|
9244
9326
|
);
|
|
9245
|
-
}, proto.viam.common.v1.Geometry.prototype.setLabel = function(
|
|
9246
|
-
return e.Message.setProto3StringField(this, 4,
|
|
9247
|
-
}, proto.viam.common.v1.GeometriesInFrame.repeatedFields_ = [2], e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GeometriesInFrame.prototype.toObject = function(
|
|
9248
|
-
return proto.viam.common.v1.GeometriesInFrame.toObject(
|
|
9249
|
-
}, proto.viam.common.v1.GeometriesInFrame.toObject = function(
|
|
9250
|
-
var
|
|
9251
|
-
referenceFrame: e.Message.getFieldWithDefault(
|
|
9327
|
+
}, proto.viam.common.v1.Geometry.prototype.setLabel = function(o) {
|
|
9328
|
+
return e.Message.setProto3StringField(this, 4, o);
|
|
9329
|
+
}, proto.viam.common.v1.GeometriesInFrame.repeatedFields_ = [2], e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GeometriesInFrame.prototype.toObject = function(o) {
|
|
9330
|
+
return proto.viam.common.v1.GeometriesInFrame.toObject(o, this);
|
|
9331
|
+
}, proto.viam.common.v1.GeometriesInFrame.toObject = function(o, r) {
|
|
9332
|
+
var n = {
|
|
9333
|
+
referenceFrame: e.Message.getFieldWithDefault(r, 1, ""),
|
|
9252
9334
|
geometriesList: e.Message.toObjectList(
|
|
9253
|
-
|
|
9335
|
+
r.getGeometriesList(),
|
|
9254
9336
|
proto.viam.common.v1.Geometry.toObject,
|
|
9255
|
-
|
|
9337
|
+
o
|
|
9256
9338
|
)
|
|
9257
9339
|
};
|
|
9258
|
-
return
|
|
9259
|
-
}), proto.viam.common.v1.GeometriesInFrame.deserializeBinary = function(
|
|
9260
|
-
var
|
|
9261
|
-
return proto.viam.common.v1.GeometriesInFrame.deserializeBinaryFromReader(
|
|
9262
|
-
}, proto.viam.common.v1.GeometriesInFrame.deserializeBinaryFromReader = function(
|
|
9263
|
-
for (;
|
|
9264
|
-
var
|
|
9265
|
-
switch (
|
|
9340
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
9341
|
+
}), proto.viam.common.v1.GeometriesInFrame.deserializeBinary = function(o) {
|
|
9342
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.GeometriesInFrame();
|
|
9343
|
+
return proto.viam.common.v1.GeometriesInFrame.deserializeBinaryFromReader(n, r);
|
|
9344
|
+
}, proto.viam.common.v1.GeometriesInFrame.deserializeBinaryFromReader = function(o, r) {
|
|
9345
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9346
|
+
var n = r.getFieldNumber();
|
|
9347
|
+
switch (n) {
|
|
9266
9348
|
case 1:
|
|
9267
|
-
var
|
|
9349
|
+
var l = (
|
|
9268
9350
|
/** @type {string} */
|
|
9269
|
-
|
|
9351
|
+
r.readString()
|
|
9270
9352
|
);
|
|
9271
|
-
|
|
9353
|
+
o.setReferenceFrame(l);
|
|
9272
9354
|
break;
|
|
9273
9355
|
case 2:
|
|
9274
|
-
var
|
|
9275
|
-
|
|
9356
|
+
var l = new proto.viam.common.v1.Geometry();
|
|
9357
|
+
r.readMessage(l, proto.viam.common.v1.Geometry.deserializeBinaryFromReader), o.addGeometries(l);
|
|
9276
9358
|
break;
|
|
9277
9359
|
default:
|
|
9278
|
-
|
|
9360
|
+
r.skipField();
|
|
9279
9361
|
break;
|
|
9280
9362
|
}
|
|
9281
9363
|
}
|
|
9282
|
-
return
|
|
9364
|
+
return o;
|
|
9283
9365
|
}, proto.viam.common.v1.GeometriesInFrame.prototype.serializeBinary = function() {
|
|
9284
|
-
var
|
|
9285
|
-
return proto.viam.common.v1.GeometriesInFrame.serializeBinaryToWriter(this,
|
|
9286
|
-
}, proto.viam.common.v1.GeometriesInFrame.serializeBinaryToWriter = function(
|
|
9287
|
-
var
|
|
9288
|
-
|
|
9366
|
+
var o = new e.BinaryWriter();
|
|
9367
|
+
return proto.viam.common.v1.GeometriesInFrame.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9368
|
+
}, proto.viam.common.v1.GeometriesInFrame.serializeBinaryToWriter = function(o, r) {
|
|
9369
|
+
var n = void 0;
|
|
9370
|
+
n = o.getReferenceFrame(), n.length > 0 && r.writeString(
|
|
9289
9371
|
1,
|
|
9290
|
-
|
|
9291
|
-
),
|
|
9372
|
+
n
|
|
9373
|
+
), n = o.getGeometriesList(), n.length > 0 && r.writeRepeatedMessage(
|
|
9292
9374
|
2,
|
|
9293
|
-
|
|
9375
|
+
n,
|
|
9294
9376
|
proto.viam.common.v1.Geometry.serializeBinaryToWriter
|
|
9295
9377
|
);
|
|
9296
9378
|
}, proto.viam.common.v1.GeometriesInFrame.prototype.getReferenceFrame = function() {
|
|
@@ -9298,62 +9380,62 @@ var struct_pb = {};
|
|
|
9298
9380
|
/** @type {string} */
|
|
9299
9381
|
e.Message.getFieldWithDefault(this, 1, "")
|
|
9300
9382
|
);
|
|
9301
|
-
}, proto.viam.common.v1.GeometriesInFrame.prototype.setReferenceFrame = function(
|
|
9302
|
-
return e.Message.setProto3StringField(this, 1,
|
|
9383
|
+
}, proto.viam.common.v1.GeometriesInFrame.prototype.setReferenceFrame = function(o) {
|
|
9384
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
9303
9385
|
}, proto.viam.common.v1.GeometriesInFrame.prototype.getGeometriesList = function() {
|
|
9304
9386
|
return (
|
|
9305
9387
|
/** @type{!Array<!proto.viam.common.v1.Geometry>} */
|
|
9306
9388
|
e.Message.getRepeatedWrapperField(this, proto.viam.common.v1.Geometry, 2)
|
|
9307
9389
|
);
|
|
9308
|
-
}, proto.viam.common.v1.GeometriesInFrame.prototype.setGeometriesList = function(
|
|
9309
|
-
return e.Message.setRepeatedWrapperField(this, 2,
|
|
9310
|
-
}, proto.viam.common.v1.GeometriesInFrame.prototype.addGeometries = function(
|
|
9311
|
-
return e.Message.addToRepeatedWrapperField(this, 2,
|
|
9390
|
+
}, proto.viam.common.v1.GeometriesInFrame.prototype.setGeometriesList = function(o) {
|
|
9391
|
+
return e.Message.setRepeatedWrapperField(this, 2, o);
|
|
9392
|
+
}, proto.viam.common.v1.GeometriesInFrame.prototype.addGeometries = function(o, r) {
|
|
9393
|
+
return e.Message.addToRepeatedWrapperField(this, 2, o, proto.viam.common.v1.Geometry, r);
|
|
9312
9394
|
}, proto.viam.common.v1.GeometriesInFrame.prototype.clearGeometriesList = function() {
|
|
9313
9395
|
return this.setGeometriesList([]);
|
|
9314
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.PointCloudObject.prototype.toObject = function(
|
|
9315
|
-
return proto.viam.common.v1.PointCloudObject.toObject(
|
|
9316
|
-
}, proto.viam.common.v1.PointCloudObject.toObject = function(
|
|
9317
|
-
var
|
|
9318
|
-
pointCloud:
|
|
9319
|
-
geometries: (
|
|
9396
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.PointCloudObject.prototype.toObject = function(o) {
|
|
9397
|
+
return proto.viam.common.v1.PointCloudObject.toObject(o, this);
|
|
9398
|
+
}, proto.viam.common.v1.PointCloudObject.toObject = function(o, r) {
|
|
9399
|
+
var n, l = {
|
|
9400
|
+
pointCloud: r.getPointCloud_asB64(),
|
|
9401
|
+
geometries: (n = r.getGeometries()) && proto.viam.common.v1.GeometriesInFrame.toObject(o, n)
|
|
9320
9402
|
};
|
|
9321
|
-
return
|
|
9322
|
-
}), proto.viam.common.v1.PointCloudObject.deserializeBinary = function(
|
|
9323
|
-
var
|
|
9324
|
-
return proto.viam.common.v1.PointCloudObject.deserializeBinaryFromReader(
|
|
9325
|
-
}, proto.viam.common.v1.PointCloudObject.deserializeBinaryFromReader = function(
|
|
9326
|
-
for (;
|
|
9327
|
-
var
|
|
9328
|
-
switch (
|
|
9403
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
9404
|
+
}), proto.viam.common.v1.PointCloudObject.deserializeBinary = function(o) {
|
|
9405
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.PointCloudObject();
|
|
9406
|
+
return proto.viam.common.v1.PointCloudObject.deserializeBinaryFromReader(n, r);
|
|
9407
|
+
}, proto.viam.common.v1.PointCloudObject.deserializeBinaryFromReader = function(o, r) {
|
|
9408
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9409
|
+
var n = r.getFieldNumber();
|
|
9410
|
+
switch (n) {
|
|
9329
9411
|
case 1:
|
|
9330
|
-
var
|
|
9412
|
+
var l = (
|
|
9331
9413
|
/** @type {!Uint8Array} */
|
|
9332
|
-
|
|
9414
|
+
r.readBytes()
|
|
9333
9415
|
);
|
|
9334
|
-
|
|
9416
|
+
o.setPointCloud(l);
|
|
9335
9417
|
break;
|
|
9336
9418
|
case 2:
|
|
9337
|
-
var
|
|
9338
|
-
|
|
9419
|
+
var l = new proto.viam.common.v1.GeometriesInFrame();
|
|
9420
|
+
r.readMessage(l, proto.viam.common.v1.GeometriesInFrame.deserializeBinaryFromReader), o.setGeometries(l);
|
|
9339
9421
|
break;
|
|
9340
9422
|
default:
|
|
9341
|
-
|
|
9423
|
+
r.skipField();
|
|
9342
9424
|
break;
|
|
9343
9425
|
}
|
|
9344
9426
|
}
|
|
9345
|
-
return
|
|
9427
|
+
return o;
|
|
9346
9428
|
}, proto.viam.common.v1.PointCloudObject.prototype.serializeBinary = function() {
|
|
9347
|
-
var
|
|
9348
|
-
return proto.viam.common.v1.PointCloudObject.serializeBinaryToWriter(this,
|
|
9349
|
-
}, proto.viam.common.v1.PointCloudObject.serializeBinaryToWriter = function(
|
|
9350
|
-
var
|
|
9351
|
-
|
|
9429
|
+
var o = new e.BinaryWriter();
|
|
9430
|
+
return proto.viam.common.v1.PointCloudObject.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9431
|
+
}, proto.viam.common.v1.PointCloudObject.serializeBinaryToWriter = function(o, r) {
|
|
9432
|
+
var n = void 0;
|
|
9433
|
+
n = o.getPointCloud_asU8(), n.length > 0 && r.writeBytes(
|
|
9352
9434
|
1,
|
|
9353
|
-
|
|
9354
|
-
),
|
|
9435
|
+
n
|
|
9436
|
+
), n = o.getGeometries(), n != null && r.writeMessage(
|
|
9355
9437
|
2,
|
|
9356
|
-
|
|
9438
|
+
n,
|
|
9357
9439
|
proto.viam.common.v1.GeometriesInFrame.serializeBinaryToWriter
|
|
9358
9440
|
);
|
|
9359
9441
|
}, proto.viam.common.v1.PointCloudObject.prototype.getPointCloud = function() {
|
|
@@ -9375,125 +9457,125 @@ var struct_pb = {};
|
|
|
9375
9457
|
this.getPointCloud()
|
|
9376
9458
|
)
|
|
9377
9459
|
);
|
|
9378
|
-
}, proto.viam.common.v1.PointCloudObject.prototype.setPointCloud = function(
|
|
9379
|
-
return e.Message.setProto3BytesField(this, 1,
|
|
9460
|
+
}, proto.viam.common.v1.PointCloudObject.prototype.setPointCloud = function(o) {
|
|
9461
|
+
return e.Message.setProto3BytesField(this, 1, o);
|
|
9380
9462
|
}, proto.viam.common.v1.PointCloudObject.prototype.getGeometries = function() {
|
|
9381
9463
|
return (
|
|
9382
9464
|
/** @type{?proto.viam.common.v1.GeometriesInFrame} */
|
|
9383
9465
|
e.Message.getWrapperField(this, proto.viam.common.v1.GeometriesInFrame, 2)
|
|
9384
9466
|
);
|
|
9385
|
-
}, proto.viam.common.v1.PointCloudObject.prototype.setGeometries = function(
|
|
9386
|
-
return e.Message.setWrapperField(this, 2,
|
|
9467
|
+
}, proto.viam.common.v1.PointCloudObject.prototype.setGeometries = function(o) {
|
|
9468
|
+
return e.Message.setWrapperField(this, 2, o);
|
|
9387
9469
|
}, proto.viam.common.v1.PointCloudObject.prototype.clearGeometries = function() {
|
|
9388
9470
|
return this.setGeometries(void 0);
|
|
9389
9471
|
}, proto.viam.common.v1.PointCloudObject.prototype.hasGeometries = function() {
|
|
9390
9472
|
return e.Message.getField(this, 2) != null;
|
|
9391
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GeoPoint.prototype.toObject = function(
|
|
9392
|
-
return proto.viam.common.v1.GeoPoint.toObject(
|
|
9393
|
-
}, proto.viam.common.v1.GeoPoint.toObject = function(
|
|
9394
|
-
var
|
|
9395
|
-
latitude: e.Message.getFloatingPointFieldWithDefault(
|
|
9396
|
-
longitude: e.Message.getFloatingPointFieldWithDefault(
|
|
9473
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GeoPoint.prototype.toObject = function(o) {
|
|
9474
|
+
return proto.viam.common.v1.GeoPoint.toObject(o, this);
|
|
9475
|
+
}, proto.viam.common.v1.GeoPoint.toObject = function(o, r) {
|
|
9476
|
+
var n = {
|
|
9477
|
+
latitude: e.Message.getFloatingPointFieldWithDefault(r, 1, 0),
|
|
9478
|
+
longitude: e.Message.getFloatingPointFieldWithDefault(r, 2, 0)
|
|
9397
9479
|
};
|
|
9398
|
-
return
|
|
9399
|
-
}), proto.viam.common.v1.GeoPoint.deserializeBinary = function(
|
|
9400
|
-
var
|
|
9401
|
-
return proto.viam.common.v1.GeoPoint.deserializeBinaryFromReader(
|
|
9402
|
-
}, proto.viam.common.v1.GeoPoint.deserializeBinaryFromReader = function(
|
|
9403
|
-
for (;
|
|
9404
|
-
var
|
|
9405
|
-
switch (
|
|
9480
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
9481
|
+
}), proto.viam.common.v1.GeoPoint.deserializeBinary = function(o) {
|
|
9482
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.GeoPoint();
|
|
9483
|
+
return proto.viam.common.v1.GeoPoint.deserializeBinaryFromReader(n, r);
|
|
9484
|
+
}, proto.viam.common.v1.GeoPoint.deserializeBinaryFromReader = function(o, r) {
|
|
9485
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9486
|
+
var n = r.getFieldNumber();
|
|
9487
|
+
switch (n) {
|
|
9406
9488
|
case 1:
|
|
9407
|
-
var
|
|
9489
|
+
var l = (
|
|
9408
9490
|
/** @type {number} */
|
|
9409
|
-
|
|
9491
|
+
r.readDouble()
|
|
9410
9492
|
);
|
|
9411
|
-
|
|
9493
|
+
o.setLatitude(l);
|
|
9412
9494
|
break;
|
|
9413
9495
|
case 2:
|
|
9414
|
-
var
|
|
9496
|
+
var l = (
|
|
9415
9497
|
/** @type {number} */
|
|
9416
|
-
|
|
9498
|
+
r.readDouble()
|
|
9417
9499
|
);
|
|
9418
|
-
|
|
9500
|
+
o.setLongitude(l);
|
|
9419
9501
|
break;
|
|
9420
9502
|
default:
|
|
9421
|
-
|
|
9503
|
+
r.skipField();
|
|
9422
9504
|
break;
|
|
9423
9505
|
}
|
|
9424
9506
|
}
|
|
9425
|
-
return
|
|
9507
|
+
return o;
|
|
9426
9508
|
}, proto.viam.common.v1.GeoPoint.prototype.serializeBinary = function() {
|
|
9427
|
-
var
|
|
9428
|
-
return proto.viam.common.v1.GeoPoint.serializeBinaryToWriter(this,
|
|
9429
|
-
}, proto.viam.common.v1.GeoPoint.serializeBinaryToWriter = function(
|
|
9430
|
-
var
|
|
9431
|
-
|
|
9509
|
+
var o = new e.BinaryWriter();
|
|
9510
|
+
return proto.viam.common.v1.GeoPoint.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9511
|
+
}, proto.viam.common.v1.GeoPoint.serializeBinaryToWriter = function(o, r) {
|
|
9512
|
+
var n = void 0;
|
|
9513
|
+
n = o.getLatitude(), n !== 0 && r.writeDouble(
|
|
9432
9514
|
1,
|
|
9433
|
-
|
|
9434
|
-
),
|
|
9515
|
+
n
|
|
9516
|
+
), n = o.getLongitude(), n !== 0 && r.writeDouble(
|
|
9435
9517
|
2,
|
|
9436
|
-
|
|
9518
|
+
n
|
|
9437
9519
|
);
|
|
9438
9520
|
}, proto.viam.common.v1.GeoPoint.prototype.getLatitude = function() {
|
|
9439
9521
|
return (
|
|
9440
9522
|
/** @type {number} */
|
|
9441
9523
|
e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
|
|
9442
9524
|
);
|
|
9443
|
-
}, proto.viam.common.v1.GeoPoint.prototype.setLatitude = function(
|
|
9444
|
-
return e.Message.setProto3FloatField(this, 1,
|
|
9525
|
+
}, proto.viam.common.v1.GeoPoint.prototype.setLatitude = function(o) {
|
|
9526
|
+
return e.Message.setProto3FloatField(this, 1, o);
|
|
9445
9527
|
}, proto.viam.common.v1.GeoPoint.prototype.getLongitude = function() {
|
|
9446
9528
|
return (
|
|
9447
9529
|
/** @type {number} */
|
|
9448
9530
|
e.Message.getFloatingPointFieldWithDefault(this, 2, 0)
|
|
9449
9531
|
);
|
|
9450
|
-
}, proto.viam.common.v1.GeoPoint.prototype.setLongitude = function(
|
|
9451
|
-
return e.Message.setProto3FloatField(this, 2,
|
|
9452
|
-
}, proto.viam.common.v1.GeoObstacle.repeatedFields_ = [2], e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GeoObstacle.prototype.toObject = function(
|
|
9453
|
-
return proto.viam.common.v1.GeoObstacle.toObject(
|
|
9454
|
-
}, proto.viam.common.v1.GeoObstacle.toObject = function(
|
|
9455
|
-
var
|
|
9456
|
-
location: (
|
|
9532
|
+
}, proto.viam.common.v1.GeoPoint.prototype.setLongitude = function(o) {
|
|
9533
|
+
return e.Message.setProto3FloatField(this, 2, o);
|
|
9534
|
+
}, proto.viam.common.v1.GeoObstacle.repeatedFields_ = [2], e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GeoObstacle.prototype.toObject = function(o) {
|
|
9535
|
+
return proto.viam.common.v1.GeoObstacle.toObject(o, this);
|
|
9536
|
+
}, proto.viam.common.v1.GeoObstacle.toObject = function(o, r) {
|
|
9537
|
+
var n, l = {
|
|
9538
|
+
location: (n = r.getLocation()) && proto.viam.common.v1.GeoPoint.toObject(o, n),
|
|
9457
9539
|
geometriesList: e.Message.toObjectList(
|
|
9458
|
-
|
|
9540
|
+
r.getGeometriesList(),
|
|
9459
9541
|
proto.viam.common.v1.Geometry.toObject,
|
|
9460
|
-
|
|
9542
|
+
o
|
|
9461
9543
|
)
|
|
9462
9544
|
};
|
|
9463
|
-
return
|
|
9464
|
-
}), proto.viam.common.v1.GeoObstacle.deserializeBinary = function(
|
|
9465
|
-
var
|
|
9466
|
-
return proto.viam.common.v1.GeoObstacle.deserializeBinaryFromReader(
|
|
9467
|
-
}, proto.viam.common.v1.GeoObstacle.deserializeBinaryFromReader = function(
|
|
9468
|
-
for (;
|
|
9469
|
-
var
|
|
9470
|
-
switch (
|
|
9545
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
9546
|
+
}), proto.viam.common.v1.GeoObstacle.deserializeBinary = function(o) {
|
|
9547
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.GeoObstacle();
|
|
9548
|
+
return proto.viam.common.v1.GeoObstacle.deserializeBinaryFromReader(n, r);
|
|
9549
|
+
}, proto.viam.common.v1.GeoObstacle.deserializeBinaryFromReader = function(o, r) {
|
|
9550
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9551
|
+
var n = r.getFieldNumber();
|
|
9552
|
+
switch (n) {
|
|
9471
9553
|
case 1:
|
|
9472
|
-
var
|
|
9473
|
-
|
|
9554
|
+
var l = new proto.viam.common.v1.GeoPoint();
|
|
9555
|
+
r.readMessage(l, proto.viam.common.v1.GeoPoint.deserializeBinaryFromReader), o.setLocation(l);
|
|
9474
9556
|
break;
|
|
9475
9557
|
case 2:
|
|
9476
|
-
var
|
|
9477
|
-
|
|
9558
|
+
var l = new proto.viam.common.v1.Geometry();
|
|
9559
|
+
r.readMessage(l, proto.viam.common.v1.Geometry.deserializeBinaryFromReader), o.addGeometries(l);
|
|
9478
9560
|
break;
|
|
9479
9561
|
default:
|
|
9480
|
-
|
|
9562
|
+
r.skipField();
|
|
9481
9563
|
break;
|
|
9482
9564
|
}
|
|
9483
9565
|
}
|
|
9484
|
-
return
|
|
9566
|
+
return o;
|
|
9485
9567
|
}, proto.viam.common.v1.GeoObstacle.prototype.serializeBinary = function() {
|
|
9486
|
-
var
|
|
9487
|
-
return proto.viam.common.v1.GeoObstacle.serializeBinaryToWriter(this,
|
|
9488
|
-
}, proto.viam.common.v1.GeoObstacle.serializeBinaryToWriter = function(
|
|
9489
|
-
var
|
|
9490
|
-
|
|
9568
|
+
var o = new e.BinaryWriter();
|
|
9569
|
+
return proto.viam.common.v1.GeoObstacle.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9570
|
+
}, proto.viam.common.v1.GeoObstacle.serializeBinaryToWriter = function(o, r) {
|
|
9571
|
+
var n = void 0;
|
|
9572
|
+
n = o.getLocation(), n != null && r.writeMessage(
|
|
9491
9573
|
1,
|
|
9492
|
-
|
|
9574
|
+
n,
|
|
9493
9575
|
proto.viam.common.v1.GeoPoint.serializeBinaryToWriter
|
|
9494
|
-
),
|
|
9576
|
+
), n = o.getGeometriesList(), n.length > 0 && r.writeRepeatedMessage(
|
|
9495
9577
|
2,
|
|
9496
|
-
|
|
9578
|
+
n,
|
|
9497
9579
|
proto.viam.common.v1.Geometry.serializeBinaryToWriter
|
|
9498
9580
|
);
|
|
9499
9581
|
}, proto.viam.common.v1.GeoObstacle.prototype.getLocation = function() {
|
|
@@ -9501,8 +9583,8 @@ var struct_pb = {};
|
|
|
9501
9583
|
/** @type{?proto.viam.common.v1.GeoPoint} */
|
|
9502
9584
|
e.Message.getWrapperField(this, proto.viam.common.v1.GeoPoint, 1)
|
|
9503
9585
|
);
|
|
9504
|
-
}, proto.viam.common.v1.GeoObstacle.prototype.setLocation = function(
|
|
9505
|
-
return e.Message.setWrapperField(this, 1,
|
|
9586
|
+
}, proto.viam.common.v1.GeoObstacle.prototype.setLocation = function(o) {
|
|
9587
|
+
return e.Message.setWrapperField(this, 1, o);
|
|
9506
9588
|
}, proto.viam.common.v1.GeoObstacle.prototype.clearLocation = function() {
|
|
9507
9589
|
return this.setLocation(void 0);
|
|
9508
9590
|
}, proto.viam.common.v1.GeoObstacle.prototype.hasLocation = function() {
|
|
@@ -9512,64 +9594,64 @@ var struct_pb = {};
|
|
|
9512
9594
|
/** @type{!Array<!proto.viam.common.v1.Geometry>} */
|
|
9513
9595
|
e.Message.getRepeatedWrapperField(this, proto.viam.common.v1.Geometry, 2)
|
|
9514
9596
|
);
|
|
9515
|
-
}, proto.viam.common.v1.GeoObstacle.prototype.setGeometriesList = function(
|
|
9516
|
-
return e.Message.setRepeatedWrapperField(this, 2,
|
|
9517
|
-
}, proto.viam.common.v1.GeoObstacle.prototype.addGeometries = function(
|
|
9518
|
-
return e.Message.addToRepeatedWrapperField(this, 2,
|
|
9597
|
+
}, proto.viam.common.v1.GeoObstacle.prototype.setGeometriesList = function(o) {
|
|
9598
|
+
return e.Message.setRepeatedWrapperField(this, 2, o);
|
|
9599
|
+
}, proto.viam.common.v1.GeoObstacle.prototype.addGeometries = function(o, r) {
|
|
9600
|
+
return e.Message.addToRepeatedWrapperField(this, 2, o, proto.viam.common.v1.Geometry, r);
|
|
9519
9601
|
}, proto.viam.common.v1.GeoObstacle.prototype.clearGeometriesList = function() {
|
|
9520
9602
|
return this.setGeometriesList([]);
|
|
9521
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Transform.prototype.toObject = function(
|
|
9522
|
-
return proto.viam.common.v1.Transform.toObject(
|
|
9523
|
-
}, proto.viam.common.v1.Transform.toObject = function(
|
|
9524
|
-
var
|
|
9525
|
-
referenceFrame: e.Message.getFieldWithDefault(
|
|
9526
|
-
poseInObserverFrame: (
|
|
9527
|
-
physicalObject: (
|
|
9603
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Transform.prototype.toObject = function(o) {
|
|
9604
|
+
return proto.viam.common.v1.Transform.toObject(o, this);
|
|
9605
|
+
}, proto.viam.common.v1.Transform.toObject = function(o, r) {
|
|
9606
|
+
var n, l = {
|
|
9607
|
+
referenceFrame: e.Message.getFieldWithDefault(r, 1, ""),
|
|
9608
|
+
poseInObserverFrame: (n = r.getPoseInObserverFrame()) && proto.viam.common.v1.PoseInFrame.toObject(o, n),
|
|
9609
|
+
physicalObject: (n = r.getPhysicalObject()) && proto.viam.common.v1.Geometry.toObject(o, n)
|
|
9528
9610
|
};
|
|
9529
|
-
return
|
|
9530
|
-
}), proto.viam.common.v1.Transform.deserializeBinary = function(
|
|
9531
|
-
var
|
|
9532
|
-
return proto.viam.common.v1.Transform.deserializeBinaryFromReader(
|
|
9533
|
-
}, proto.viam.common.v1.Transform.deserializeBinaryFromReader = function(
|
|
9534
|
-
for (;
|
|
9535
|
-
var
|
|
9536
|
-
switch (
|
|
9611
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
9612
|
+
}), proto.viam.common.v1.Transform.deserializeBinary = function(o) {
|
|
9613
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.Transform();
|
|
9614
|
+
return proto.viam.common.v1.Transform.deserializeBinaryFromReader(n, r);
|
|
9615
|
+
}, proto.viam.common.v1.Transform.deserializeBinaryFromReader = function(o, r) {
|
|
9616
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9617
|
+
var n = r.getFieldNumber();
|
|
9618
|
+
switch (n) {
|
|
9537
9619
|
case 1:
|
|
9538
|
-
var
|
|
9620
|
+
var l = (
|
|
9539
9621
|
/** @type {string} */
|
|
9540
|
-
|
|
9622
|
+
r.readString()
|
|
9541
9623
|
);
|
|
9542
|
-
|
|
9624
|
+
o.setReferenceFrame(l);
|
|
9543
9625
|
break;
|
|
9544
9626
|
case 2:
|
|
9545
|
-
var
|
|
9546
|
-
|
|
9627
|
+
var l = new proto.viam.common.v1.PoseInFrame();
|
|
9628
|
+
r.readMessage(l, proto.viam.common.v1.PoseInFrame.deserializeBinaryFromReader), o.setPoseInObserverFrame(l);
|
|
9547
9629
|
break;
|
|
9548
9630
|
case 3:
|
|
9549
|
-
var
|
|
9550
|
-
|
|
9631
|
+
var l = new proto.viam.common.v1.Geometry();
|
|
9632
|
+
r.readMessage(l, proto.viam.common.v1.Geometry.deserializeBinaryFromReader), o.setPhysicalObject(l);
|
|
9551
9633
|
break;
|
|
9552
9634
|
default:
|
|
9553
|
-
|
|
9635
|
+
r.skipField();
|
|
9554
9636
|
break;
|
|
9555
9637
|
}
|
|
9556
9638
|
}
|
|
9557
|
-
return
|
|
9639
|
+
return o;
|
|
9558
9640
|
}, proto.viam.common.v1.Transform.prototype.serializeBinary = function() {
|
|
9559
|
-
var
|
|
9560
|
-
return proto.viam.common.v1.Transform.serializeBinaryToWriter(this,
|
|
9561
|
-
}, proto.viam.common.v1.Transform.serializeBinaryToWriter = function(
|
|
9562
|
-
var
|
|
9563
|
-
|
|
9641
|
+
var o = new e.BinaryWriter();
|
|
9642
|
+
return proto.viam.common.v1.Transform.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9643
|
+
}, proto.viam.common.v1.Transform.serializeBinaryToWriter = function(o, r) {
|
|
9644
|
+
var n = void 0;
|
|
9645
|
+
n = o.getReferenceFrame(), n.length > 0 && r.writeString(
|
|
9564
9646
|
1,
|
|
9565
|
-
|
|
9566
|
-
),
|
|
9647
|
+
n
|
|
9648
|
+
), n = o.getPoseInObserverFrame(), n != null && r.writeMessage(
|
|
9567
9649
|
2,
|
|
9568
|
-
|
|
9650
|
+
n,
|
|
9569
9651
|
proto.viam.common.v1.PoseInFrame.serializeBinaryToWriter
|
|
9570
|
-
),
|
|
9652
|
+
), n = o.getPhysicalObject(), n != null && r.writeMessage(
|
|
9571
9653
|
3,
|
|
9572
|
-
|
|
9654
|
+
n,
|
|
9573
9655
|
proto.viam.common.v1.Geometry.serializeBinaryToWriter
|
|
9574
9656
|
);
|
|
9575
9657
|
}, proto.viam.common.v1.Transform.prototype.getReferenceFrame = function() {
|
|
@@ -9577,15 +9659,15 @@ var struct_pb = {};
|
|
|
9577
9659
|
/** @type {string} */
|
|
9578
9660
|
e.Message.getFieldWithDefault(this, 1, "")
|
|
9579
9661
|
);
|
|
9580
|
-
}, proto.viam.common.v1.Transform.prototype.setReferenceFrame = function(
|
|
9581
|
-
return e.Message.setProto3StringField(this, 1,
|
|
9662
|
+
}, proto.viam.common.v1.Transform.prototype.setReferenceFrame = function(o) {
|
|
9663
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
9582
9664
|
}, proto.viam.common.v1.Transform.prototype.getPoseInObserverFrame = function() {
|
|
9583
9665
|
return (
|
|
9584
9666
|
/** @type{?proto.viam.common.v1.PoseInFrame} */
|
|
9585
9667
|
e.Message.getWrapperField(this, proto.viam.common.v1.PoseInFrame, 2)
|
|
9586
9668
|
);
|
|
9587
|
-
}, proto.viam.common.v1.Transform.prototype.setPoseInObserverFrame = function(
|
|
9588
|
-
return e.Message.setWrapperField(this, 2,
|
|
9669
|
+
}, proto.viam.common.v1.Transform.prototype.setPoseInObserverFrame = function(o) {
|
|
9670
|
+
return e.Message.setWrapperField(this, 2, o);
|
|
9589
9671
|
}, proto.viam.common.v1.Transform.prototype.clearPoseInObserverFrame = function() {
|
|
9590
9672
|
return this.setPoseInObserverFrame(void 0);
|
|
9591
9673
|
}, proto.viam.common.v1.Transform.prototype.hasPoseInObserverFrame = function() {
|
|
@@ -9595,61 +9677,61 @@ var struct_pb = {};
|
|
|
9595
9677
|
/** @type{?proto.viam.common.v1.Geometry} */
|
|
9596
9678
|
e.Message.getWrapperField(this, proto.viam.common.v1.Geometry, 3)
|
|
9597
9679
|
);
|
|
9598
|
-
}, proto.viam.common.v1.Transform.prototype.setPhysicalObject = function(
|
|
9599
|
-
return e.Message.setWrapperField(this, 3,
|
|
9680
|
+
}, proto.viam.common.v1.Transform.prototype.setPhysicalObject = function(o) {
|
|
9681
|
+
return e.Message.setWrapperField(this, 3, o);
|
|
9600
9682
|
}, proto.viam.common.v1.Transform.prototype.clearPhysicalObject = function() {
|
|
9601
9683
|
return this.setPhysicalObject(void 0);
|
|
9602
9684
|
}, proto.viam.common.v1.Transform.prototype.hasPhysicalObject = function() {
|
|
9603
9685
|
return e.Message.getField(this, 3) != null;
|
|
9604
|
-
}, proto.viam.common.v1.WorldState.repeatedFields_ = [1, 3], e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.WorldState.prototype.toObject = function(
|
|
9605
|
-
return proto.viam.common.v1.WorldState.toObject(
|
|
9606
|
-
}, proto.viam.common.v1.WorldState.toObject = function(
|
|
9607
|
-
var
|
|
9686
|
+
}, proto.viam.common.v1.WorldState.repeatedFields_ = [1, 3], e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.WorldState.prototype.toObject = function(o) {
|
|
9687
|
+
return proto.viam.common.v1.WorldState.toObject(o, this);
|
|
9688
|
+
}, proto.viam.common.v1.WorldState.toObject = function(o, r) {
|
|
9689
|
+
var n = {
|
|
9608
9690
|
obstaclesList: e.Message.toObjectList(
|
|
9609
|
-
|
|
9691
|
+
r.getObstaclesList(),
|
|
9610
9692
|
proto.viam.common.v1.GeometriesInFrame.toObject,
|
|
9611
|
-
|
|
9693
|
+
o
|
|
9612
9694
|
),
|
|
9613
9695
|
transformsList: e.Message.toObjectList(
|
|
9614
|
-
|
|
9696
|
+
r.getTransformsList(),
|
|
9615
9697
|
proto.viam.common.v1.Transform.toObject,
|
|
9616
|
-
|
|
9698
|
+
o
|
|
9617
9699
|
)
|
|
9618
9700
|
};
|
|
9619
|
-
return
|
|
9620
|
-
}), proto.viam.common.v1.WorldState.deserializeBinary = function(
|
|
9621
|
-
var
|
|
9622
|
-
return proto.viam.common.v1.WorldState.deserializeBinaryFromReader(
|
|
9623
|
-
}, proto.viam.common.v1.WorldState.deserializeBinaryFromReader = function(
|
|
9624
|
-
for (;
|
|
9625
|
-
var
|
|
9626
|
-
switch (
|
|
9701
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
9702
|
+
}), proto.viam.common.v1.WorldState.deserializeBinary = function(o) {
|
|
9703
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.WorldState();
|
|
9704
|
+
return proto.viam.common.v1.WorldState.deserializeBinaryFromReader(n, r);
|
|
9705
|
+
}, proto.viam.common.v1.WorldState.deserializeBinaryFromReader = function(o, r) {
|
|
9706
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9707
|
+
var n = r.getFieldNumber();
|
|
9708
|
+
switch (n) {
|
|
9627
9709
|
case 1:
|
|
9628
|
-
var
|
|
9629
|
-
|
|
9710
|
+
var l = new proto.viam.common.v1.GeometriesInFrame();
|
|
9711
|
+
r.readMessage(l, proto.viam.common.v1.GeometriesInFrame.deserializeBinaryFromReader), o.addObstacles(l);
|
|
9630
9712
|
break;
|
|
9631
9713
|
case 3:
|
|
9632
|
-
var
|
|
9633
|
-
|
|
9714
|
+
var l = new proto.viam.common.v1.Transform();
|
|
9715
|
+
r.readMessage(l, proto.viam.common.v1.Transform.deserializeBinaryFromReader), o.addTransforms(l);
|
|
9634
9716
|
break;
|
|
9635
9717
|
default:
|
|
9636
|
-
|
|
9718
|
+
r.skipField();
|
|
9637
9719
|
break;
|
|
9638
9720
|
}
|
|
9639
9721
|
}
|
|
9640
|
-
return
|
|
9722
|
+
return o;
|
|
9641
9723
|
}, proto.viam.common.v1.WorldState.prototype.serializeBinary = function() {
|
|
9642
|
-
var
|
|
9643
|
-
return proto.viam.common.v1.WorldState.serializeBinaryToWriter(this,
|
|
9644
|
-
}, proto.viam.common.v1.WorldState.serializeBinaryToWriter = function(
|
|
9645
|
-
var
|
|
9646
|
-
|
|
9724
|
+
var o = new e.BinaryWriter();
|
|
9725
|
+
return proto.viam.common.v1.WorldState.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9726
|
+
}, proto.viam.common.v1.WorldState.serializeBinaryToWriter = function(o, r) {
|
|
9727
|
+
var n = void 0;
|
|
9728
|
+
n = o.getObstaclesList(), n.length > 0 && r.writeRepeatedMessage(
|
|
9647
9729
|
1,
|
|
9648
|
-
|
|
9730
|
+
n,
|
|
9649
9731
|
proto.viam.common.v1.GeometriesInFrame.serializeBinaryToWriter
|
|
9650
|
-
),
|
|
9732
|
+
), n = o.getTransformsList(), n.length > 0 && r.writeRepeatedMessage(
|
|
9651
9733
|
3,
|
|
9652
|
-
|
|
9734
|
+
n,
|
|
9653
9735
|
proto.viam.common.v1.Transform.serializeBinaryToWriter
|
|
9654
9736
|
);
|
|
9655
9737
|
}, proto.viam.common.v1.WorldState.prototype.getObstaclesList = function() {
|
|
@@ -9657,10 +9739,10 @@ var struct_pb = {};
|
|
|
9657
9739
|
/** @type{!Array<!proto.viam.common.v1.GeometriesInFrame>} */
|
|
9658
9740
|
e.Message.getRepeatedWrapperField(this, proto.viam.common.v1.GeometriesInFrame, 1)
|
|
9659
9741
|
);
|
|
9660
|
-
}, proto.viam.common.v1.WorldState.prototype.setObstaclesList = function(
|
|
9661
|
-
return e.Message.setRepeatedWrapperField(this, 1,
|
|
9662
|
-
}, proto.viam.common.v1.WorldState.prototype.addObstacles = function(
|
|
9663
|
-
return e.Message.addToRepeatedWrapperField(this, 1,
|
|
9742
|
+
}, proto.viam.common.v1.WorldState.prototype.setObstaclesList = function(o) {
|
|
9743
|
+
return e.Message.setRepeatedWrapperField(this, 1, o);
|
|
9744
|
+
}, proto.viam.common.v1.WorldState.prototype.addObstacles = function(o, r) {
|
|
9745
|
+
return e.Message.addToRepeatedWrapperField(this, 1, o, proto.viam.common.v1.GeometriesInFrame, r);
|
|
9664
9746
|
}, proto.viam.common.v1.WorldState.prototype.clearObstaclesList = function() {
|
|
9665
9747
|
return this.setObstaclesList([]);
|
|
9666
9748
|
}, proto.viam.common.v1.WorldState.prototype.getTransformsList = function() {
|
|
@@ -9668,98 +9750,143 @@ var struct_pb = {};
|
|
|
9668
9750
|
/** @type{!Array<!proto.viam.common.v1.Transform>} */
|
|
9669
9751
|
e.Message.getRepeatedWrapperField(this, proto.viam.common.v1.Transform, 3)
|
|
9670
9752
|
);
|
|
9671
|
-
}, proto.viam.common.v1.WorldState.prototype.setTransformsList = function(
|
|
9672
|
-
return e.Message.setRepeatedWrapperField(this, 3,
|
|
9673
|
-
}, proto.viam.common.v1.WorldState.prototype.addTransforms = function(
|
|
9674
|
-
return e.Message.addToRepeatedWrapperField(this, 3,
|
|
9753
|
+
}, proto.viam.common.v1.WorldState.prototype.setTransformsList = function(o) {
|
|
9754
|
+
return e.Message.setRepeatedWrapperField(this, 3, o);
|
|
9755
|
+
}, proto.viam.common.v1.WorldState.prototype.addTransforms = function(o, r) {
|
|
9756
|
+
return e.Message.addToRepeatedWrapperField(this, 3, o, proto.viam.common.v1.Transform, r);
|
|
9675
9757
|
}, proto.viam.common.v1.WorldState.prototype.clearTransformsList = function() {
|
|
9676
9758
|
return this.setTransformsList([]);
|
|
9677
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.ActuatorStatus.prototype.toObject = function(
|
|
9678
|
-
return proto.viam.common.v1.ActuatorStatus.toObject(
|
|
9679
|
-
}, proto.viam.common.v1.ActuatorStatus.toObject = function(
|
|
9680
|
-
var
|
|
9681
|
-
isMoving: e.Message.getBooleanFieldWithDefault(
|
|
9759
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.ActuatorStatus.prototype.toObject = function(o) {
|
|
9760
|
+
return proto.viam.common.v1.ActuatorStatus.toObject(o, this);
|
|
9761
|
+
}, proto.viam.common.v1.ActuatorStatus.toObject = function(o, r) {
|
|
9762
|
+
var n = {
|
|
9763
|
+
isMoving: e.Message.getBooleanFieldWithDefault(r, 1, !1)
|
|
9682
9764
|
};
|
|
9683
|
-
return
|
|
9684
|
-
}), proto.viam.common.v1.ActuatorStatus.deserializeBinary = function(
|
|
9685
|
-
var
|
|
9686
|
-
return proto.viam.common.v1.ActuatorStatus.deserializeBinaryFromReader(
|
|
9687
|
-
}, proto.viam.common.v1.ActuatorStatus.deserializeBinaryFromReader = function(
|
|
9688
|
-
for (;
|
|
9689
|
-
var
|
|
9690
|
-
switch (
|
|
9765
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
9766
|
+
}), proto.viam.common.v1.ActuatorStatus.deserializeBinary = function(o) {
|
|
9767
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.ActuatorStatus();
|
|
9768
|
+
return proto.viam.common.v1.ActuatorStatus.deserializeBinaryFromReader(n, r);
|
|
9769
|
+
}, proto.viam.common.v1.ActuatorStatus.deserializeBinaryFromReader = function(o, r) {
|
|
9770
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9771
|
+
var n = r.getFieldNumber();
|
|
9772
|
+
switch (n) {
|
|
9691
9773
|
case 1:
|
|
9692
|
-
var
|
|
9774
|
+
var l = (
|
|
9693
9775
|
/** @type {boolean} */
|
|
9694
|
-
|
|
9776
|
+
r.readBool()
|
|
9695
9777
|
);
|
|
9696
|
-
|
|
9778
|
+
o.setIsMoving(l);
|
|
9697
9779
|
break;
|
|
9698
9780
|
default:
|
|
9699
|
-
|
|
9781
|
+
r.skipField();
|
|
9700
9782
|
break;
|
|
9701
9783
|
}
|
|
9702
9784
|
}
|
|
9703
|
-
return
|
|
9785
|
+
return o;
|
|
9704
9786
|
}, proto.viam.common.v1.ActuatorStatus.prototype.serializeBinary = function() {
|
|
9705
|
-
var
|
|
9706
|
-
return proto.viam.common.v1.ActuatorStatus.serializeBinaryToWriter(this,
|
|
9707
|
-
}, proto.viam.common.v1.ActuatorStatus.serializeBinaryToWriter = function(
|
|
9708
|
-
var
|
|
9709
|
-
|
|
9787
|
+
var o = new e.BinaryWriter();
|
|
9788
|
+
return proto.viam.common.v1.ActuatorStatus.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9789
|
+
}, proto.viam.common.v1.ActuatorStatus.serializeBinaryToWriter = function(o, r) {
|
|
9790
|
+
var n = void 0;
|
|
9791
|
+
n = o.getIsMoving(), n && r.writeBool(
|
|
9710
9792
|
1,
|
|
9711
|
-
|
|
9793
|
+
n
|
|
9712
9794
|
);
|
|
9713
9795
|
}, proto.viam.common.v1.ActuatorStatus.prototype.getIsMoving = function() {
|
|
9714
9796
|
return (
|
|
9715
9797
|
/** @type {boolean} */
|
|
9716
9798
|
e.Message.getBooleanFieldWithDefault(this, 1, !1)
|
|
9717
9799
|
);
|
|
9718
|
-
}, proto.viam.common.v1.ActuatorStatus.prototype.setIsMoving = function(
|
|
9719
|
-
return e.Message.setProto3BooleanField(this, 1,
|
|
9720
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.
|
|
9721
|
-
return proto.viam.common.v1.
|
|
9722
|
-
}, proto.viam.common.v1.
|
|
9723
|
-
var
|
|
9724
|
-
|
|
9725
|
-
command: (r = o.getCommand()) && g.Struct.toObject(p, r)
|
|
9800
|
+
}, proto.viam.common.v1.ActuatorStatus.prototype.setIsMoving = function(o) {
|
|
9801
|
+
return e.Message.setProto3BooleanField(this, 1, o);
|
|
9802
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.ResponseMetadata.prototype.toObject = function(o) {
|
|
9803
|
+
return proto.viam.common.v1.ResponseMetadata.toObject(o, this);
|
|
9804
|
+
}, proto.viam.common.v1.ResponseMetadata.toObject = function(o, r) {
|
|
9805
|
+
var n, l = {
|
|
9806
|
+
capturedAt: (n = r.getCapturedAt()) && p.Timestamp.toObject(o, n)
|
|
9726
9807
|
};
|
|
9727
|
-
return
|
|
9728
|
-
}), proto.viam.common.v1.
|
|
9729
|
-
var
|
|
9730
|
-
return proto.viam.common.v1.
|
|
9731
|
-
}, proto.viam.common.v1.
|
|
9732
|
-
for (;
|
|
9733
|
-
var
|
|
9734
|
-
switch (
|
|
9808
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
9809
|
+
}), proto.viam.common.v1.ResponseMetadata.deserializeBinary = function(o) {
|
|
9810
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.ResponseMetadata();
|
|
9811
|
+
return proto.viam.common.v1.ResponseMetadata.deserializeBinaryFromReader(n, r);
|
|
9812
|
+
}, proto.viam.common.v1.ResponseMetadata.deserializeBinaryFromReader = function(o, r) {
|
|
9813
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9814
|
+
var n = r.getFieldNumber();
|
|
9815
|
+
switch (n) {
|
|
9735
9816
|
case 1:
|
|
9736
|
-
var
|
|
9817
|
+
var l = new p.Timestamp();
|
|
9818
|
+
r.readMessage(l, p.Timestamp.deserializeBinaryFromReader), o.setCapturedAt(l);
|
|
9819
|
+
break;
|
|
9820
|
+
default:
|
|
9821
|
+
r.skipField();
|
|
9822
|
+
break;
|
|
9823
|
+
}
|
|
9824
|
+
}
|
|
9825
|
+
return o;
|
|
9826
|
+
}, proto.viam.common.v1.ResponseMetadata.prototype.serializeBinary = function() {
|
|
9827
|
+
var o = new e.BinaryWriter();
|
|
9828
|
+
return proto.viam.common.v1.ResponseMetadata.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9829
|
+
}, proto.viam.common.v1.ResponseMetadata.serializeBinaryToWriter = function(o, r) {
|
|
9830
|
+
var n = void 0;
|
|
9831
|
+
n = o.getCapturedAt(), n != null && r.writeMessage(
|
|
9832
|
+
1,
|
|
9833
|
+
n,
|
|
9834
|
+
p.Timestamp.serializeBinaryToWriter
|
|
9835
|
+
);
|
|
9836
|
+
}, proto.viam.common.v1.ResponseMetadata.prototype.getCapturedAt = function() {
|
|
9837
|
+
return (
|
|
9838
|
+
/** @type{?proto.google.protobuf.Timestamp} */
|
|
9839
|
+
e.Message.getWrapperField(this, p.Timestamp, 1)
|
|
9840
|
+
);
|
|
9841
|
+
}, proto.viam.common.v1.ResponseMetadata.prototype.setCapturedAt = function(o) {
|
|
9842
|
+
return e.Message.setWrapperField(this, 1, o);
|
|
9843
|
+
}, proto.viam.common.v1.ResponseMetadata.prototype.clearCapturedAt = function() {
|
|
9844
|
+
return this.setCapturedAt(void 0);
|
|
9845
|
+
}, proto.viam.common.v1.ResponseMetadata.prototype.hasCapturedAt = function() {
|
|
9846
|
+
return e.Message.getField(this, 1) != null;
|
|
9847
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.DoCommandRequest.prototype.toObject = function(o) {
|
|
9848
|
+
return proto.viam.common.v1.DoCommandRequest.toObject(o, this);
|
|
9849
|
+
}, proto.viam.common.v1.DoCommandRequest.toObject = function(o, r) {
|
|
9850
|
+
var n, l = {
|
|
9851
|
+
name: e.Message.getFieldWithDefault(r, 1, ""),
|
|
9852
|
+
command: (n = r.getCommand()) && g.Struct.toObject(o, n)
|
|
9853
|
+
};
|
|
9854
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
9855
|
+
}), proto.viam.common.v1.DoCommandRequest.deserializeBinary = function(o) {
|
|
9856
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.DoCommandRequest();
|
|
9857
|
+
return proto.viam.common.v1.DoCommandRequest.deserializeBinaryFromReader(n, r);
|
|
9858
|
+
}, proto.viam.common.v1.DoCommandRequest.deserializeBinaryFromReader = function(o, r) {
|
|
9859
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9860
|
+
var n = r.getFieldNumber();
|
|
9861
|
+
switch (n) {
|
|
9862
|
+
case 1:
|
|
9863
|
+
var l = (
|
|
9737
9864
|
/** @type {string} */
|
|
9738
|
-
|
|
9865
|
+
r.readString()
|
|
9739
9866
|
);
|
|
9740
|
-
|
|
9867
|
+
o.setName(l);
|
|
9741
9868
|
break;
|
|
9742
9869
|
case 2:
|
|
9743
|
-
var
|
|
9744
|
-
|
|
9870
|
+
var l = new g.Struct();
|
|
9871
|
+
r.readMessage(l, g.Struct.deserializeBinaryFromReader), o.setCommand(l);
|
|
9745
9872
|
break;
|
|
9746
9873
|
default:
|
|
9747
|
-
|
|
9874
|
+
r.skipField();
|
|
9748
9875
|
break;
|
|
9749
9876
|
}
|
|
9750
9877
|
}
|
|
9751
|
-
return
|
|
9878
|
+
return o;
|
|
9752
9879
|
}, proto.viam.common.v1.DoCommandRequest.prototype.serializeBinary = function() {
|
|
9753
|
-
var
|
|
9754
|
-
return proto.viam.common.v1.DoCommandRequest.serializeBinaryToWriter(this,
|
|
9755
|
-
}, proto.viam.common.v1.DoCommandRequest.serializeBinaryToWriter = function(
|
|
9756
|
-
var
|
|
9757
|
-
|
|
9880
|
+
var o = new e.BinaryWriter();
|
|
9881
|
+
return proto.viam.common.v1.DoCommandRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9882
|
+
}, proto.viam.common.v1.DoCommandRequest.serializeBinaryToWriter = function(o, r) {
|
|
9883
|
+
var n = void 0;
|
|
9884
|
+
n = o.getName(), n.length > 0 && r.writeString(
|
|
9758
9885
|
1,
|
|
9759
|
-
|
|
9760
|
-
),
|
|
9886
|
+
n
|
|
9887
|
+
), n = o.getCommand(), n != null && r.writeMessage(
|
|
9761
9888
|
2,
|
|
9762
|
-
|
|
9889
|
+
n,
|
|
9763
9890
|
g.Struct.serializeBinaryToWriter
|
|
9764
9891
|
);
|
|
9765
9892
|
}, proto.viam.common.v1.DoCommandRequest.prototype.getName = function() {
|
|
@@ -9767,51 +9894,51 @@ var struct_pb = {};
|
|
|
9767
9894
|
/** @type {string} */
|
|
9768
9895
|
e.Message.getFieldWithDefault(this, 1, "")
|
|
9769
9896
|
);
|
|
9770
|
-
}, proto.viam.common.v1.DoCommandRequest.prototype.setName = function(
|
|
9771
|
-
return e.Message.setProto3StringField(this, 1,
|
|
9897
|
+
}, proto.viam.common.v1.DoCommandRequest.prototype.setName = function(o) {
|
|
9898
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
9772
9899
|
}, proto.viam.common.v1.DoCommandRequest.prototype.getCommand = function() {
|
|
9773
9900
|
return (
|
|
9774
9901
|
/** @type{?proto.google.protobuf.Struct} */
|
|
9775
9902
|
e.Message.getWrapperField(this, g.Struct, 2)
|
|
9776
9903
|
);
|
|
9777
|
-
}, proto.viam.common.v1.DoCommandRequest.prototype.setCommand = function(
|
|
9778
|
-
return e.Message.setWrapperField(this, 2,
|
|
9904
|
+
}, proto.viam.common.v1.DoCommandRequest.prototype.setCommand = function(o) {
|
|
9905
|
+
return e.Message.setWrapperField(this, 2, o);
|
|
9779
9906
|
}, proto.viam.common.v1.DoCommandRequest.prototype.clearCommand = function() {
|
|
9780
9907
|
return this.setCommand(void 0);
|
|
9781
9908
|
}, proto.viam.common.v1.DoCommandRequest.prototype.hasCommand = function() {
|
|
9782
9909
|
return e.Message.getField(this, 2) != null;
|
|
9783
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.DoCommandResponse.prototype.toObject = function(
|
|
9784
|
-
return proto.viam.common.v1.DoCommandResponse.toObject(
|
|
9785
|
-
}, proto.viam.common.v1.DoCommandResponse.toObject = function(
|
|
9786
|
-
var
|
|
9787
|
-
result: (
|
|
9910
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.DoCommandResponse.prototype.toObject = function(o) {
|
|
9911
|
+
return proto.viam.common.v1.DoCommandResponse.toObject(o, this);
|
|
9912
|
+
}, proto.viam.common.v1.DoCommandResponse.toObject = function(o, r) {
|
|
9913
|
+
var n, l = {
|
|
9914
|
+
result: (n = r.getResult()) && g.Struct.toObject(o, n)
|
|
9788
9915
|
};
|
|
9789
|
-
return
|
|
9790
|
-
}), proto.viam.common.v1.DoCommandResponse.deserializeBinary = function(
|
|
9791
|
-
var
|
|
9792
|
-
return proto.viam.common.v1.DoCommandResponse.deserializeBinaryFromReader(
|
|
9793
|
-
}, proto.viam.common.v1.DoCommandResponse.deserializeBinaryFromReader = function(
|
|
9794
|
-
for (;
|
|
9795
|
-
var
|
|
9796
|
-
switch (
|
|
9916
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
9917
|
+
}), proto.viam.common.v1.DoCommandResponse.deserializeBinary = function(o) {
|
|
9918
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.DoCommandResponse();
|
|
9919
|
+
return proto.viam.common.v1.DoCommandResponse.deserializeBinaryFromReader(n, r);
|
|
9920
|
+
}, proto.viam.common.v1.DoCommandResponse.deserializeBinaryFromReader = function(o, r) {
|
|
9921
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9922
|
+
var n = r.getFieldNumber();
|
|
9923
|
+
switch (n) {
|
|
9797
9924
|
case 1:
|
|
9798
|
-
var
|
|
9799
|
-
|
|
9925
|
+
var l = new g.Struct();
|
|
9926
|
+
r.readMessage(l, g.Struct.deserializeBinaryFromReader), o.setResult(l);
|
|
9800
9927
|
break;
|
|
9801
9928
|
default:
|
|
9802
|
-
|
|
9929
|
+
r.skipField();
|
|
9803
9930
|
break;
|
|
9804
9931
|
}
|
|
9805
9932
|
}
|
|
9806
|
-
return
|
|
9933
|
+
return o;
|
|
9807
9934
|
}, proto.viam.common.v1.DoCommandResponse.prototype.serializeBinary = function() {
|
|
9808
|
-
var
|
|
9809
|
-
return proto.viam.common.v1.DoCommandResponse.serializeBinaryToWriter(this,
|
|
9810
|
-
}, proto.viam.common.v1.DoCommandResponse.serializeBinaryToWriter = function(
|
|
9811
|
-
var
|
|
9812
|
-
|
|
9935
|
+
var o = new e.BinaryWriter();
|
|
9936
|
+
return proto.viam.common.v1.DoCommandResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9937
|
+
}, proto.viam.common.v1.DoCommandResponse.serializeBinaryToWriter = function(o, r) {
|
|
9938
|
+
var n = void 0;
|
|
9939
|
+
n = o.getResult(), n != null && r.writeMessage(
|
|
9813
9940
|
1,
|
|
9814
|
-
|
|
9941
|
+
n,
|
|
9815
9942
|
g.Struct.serializeBinaryToWriter
|
|
9816
9943
|
);
|
|
9817
9944
|
}, proto.viam.common.v1.DoCommandResponse.prototype.getResult = function() {
|
|
@@ -9819,109 +9946,129 @@ var struct_pb = {};
|
|
|
9819
9946
|
/** @type{?proto.google.protobuf.Struct} */
|
|
9820
9947
|
e.Message.getWrapperField(this, g.Struct, 1)
|
|
9821
9948
|
);
|
|
9822
|
-
}, proto.viam.common.v1.DoCommandResponse.prototype.setResult = function(
|
|
9823
|
-
return e.Message.setWrapperField(this, 1,
|
|
9949
|
+
}, proto.viam.common.v1.DoCommandResponse.prototype.setResult = function(o) {
|
|
9950
|
+
return e.Message.setWrapperField(this, 1, o);
|
|
9824
9951
|
}, proto.viam.common.v1.DoCommandResponse.prototype.clearResult = function() {
|
|
9825
9952
|
return this.setResult(void 0);
|
|
9826
9953
|
}, proto.viam.common.v1.DoCommandResponse.prototype.hasResult = function() {
|
|
9827
9954
|
return e.Message.getField(this, 1) != null;
|
|
9828
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GetKinematicsRequest.prototype.toObject = function(
|
|
9829
|
-
return proto.viam.common.v1.GetKinematicsRequest.toObject(
|
|
9830
|
-
}, proto.viam.common.v1.GetKinematicsRequest.toObject = function(
|
|
9831
|
-
var
|
|
9832
|
-
name: e.Message.getFieldWithDefault(
|
|
9955
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GetKinematicsRequest.prototype.toObject = function(o) {
|
|
9956
|
+
return proto.viam.common.v1.GetKinematicsRequest.toObject(o, this);
|
|
9957
|
+
}, proto.viam.common.v1.GetKinematicsRequest.toObject = function(o, r) {
|
|
9958
|
+
var n, l = {
|
|
9959
|
+
name: e.Message.getFieldWithDefault(r, 1, ""),
|
|
9960
|
+
extra: (n = r.getExtra()) && g.Struct.toObject(o, n)
|
|
9833
9961
|
};
|
|
9834
|
-
return
|
|
9835
|
-
}), proto.viam.common.v1.GetKinematicsRequest.deserializeBinary = function(
|
|
9836
|
-
var
|
|
9837
|
-
return proto.viam.common.v1.GetKinematicsRequest.deserializeBinaryFromReader(
|
|
9838
|
-
}, proto.viam.common.v1.GetKinematicsRequest.deserializeBinaryFromReader = function(
|
|
9839
|
-
for (;
|
|
9840
|
-
var
|
|
9841
|
-
switch (
|
|
9962
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
9963
|
+
}), proto.viam.common.v1.GetKinematicsRequest.deserializeBinary = function(o) {
|
|
9964
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.GetKinematicsRequest();
|
|
9965
|
+
return proto.viam.common.v1.GetKinematicsRequest.deserializeBinaryFromReader(n, r);
|
|
9966
|
+
}, proto.viam.common.v1.GetKinematicsRequest.deserializeBinaryFromReader = function(o, r) {
|
|
9967
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
9968
|
+
var n = r.getFieldNumber();
|
|
9969
|
+
switch (n) {
|
|
9842
9970
|
case 1:
|
|
9843
|
-
var
|
|
9971
|
+
var l = (
|
|
9844
9972
|
/** @type {string} */
|
|
9845
|
-
|
|
9973
|
+
r.readString()
|
|
9846
9974
|
);
|
|
9847
|
-
|
|
9975
|
+
o.setName(l);
|
|
9976
|
+
break;
|
|
9977
|
+
case 99:
|
|
9978
|
+
var l = new g.Struct();
|
|
9979
|
+
r.readMessage(l, g.Struct.deserializeBinaryFromReader), o.setExtra(l);
|
|
9848
9980
|
break;
|
|
9849
9981
|
default:
|
|
9850
|
-
|
|
9982
|
+
r.skipField();
|
|
9851
9983
|
break;
|
|
9852
9984
|
}
|
|
9853
9985
|
}
|
|
9854
|
-
return
|
|
9986
|
+
return o;
|
|
9855
9987
|
}, proto.viam.common.v1.GetKinematicsRequest.prototype.serializeBinary = function() {
|
|
9856
|
-
var
|
|
9857
|
-
return proto.viam.common.v1.GetKinematicsRequest.serializeBinaryToWriter(this,
|
|
9858
|
-
}, proto.viam.common.v1.GetKinematicsRequest.serializeBinaryToWriter = function(
|
|
9859
|
-
var
|
|
9860
|
-
|
|
9988
|
+
var o = new e.BinaryWriter();
|
|
9989
|
+
return proto.viam.common.v1.GetKinematicsRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
9990
|
+
}, proto.viam.common.v1.GetKinematicsRequest.serializeBinaryToWriter = function(o, r) {
|
|
9991
|
+
var n = void 0;
|
|
9992
|
+
n = o.getName(), n.length > 0 && r.writeString(
|
|
9861
9993
|
1,
|
|
9862
|
-
|
|
9994
|
+
n
|
|
9995
|
+
), n = o.getExtra(), n != null && r.writeMessage(
|
|
9996
|
+
99,
|
|
9997
|
+
n,
|
|
9998
|
+
g.Struct.serializeBinaryToWriter
|
|
9863
9999
|
);
|
|
9864
10000
|
}, proto.viam.common.v1.GetKinematicsRequest.prototype.getName = function() {
|
|
9865
10001
|
return (
|
|
9866
10002
|
/** @type {string} */
|
|
9867
10003
|
e.Message.getFieldWithDefault(this, 1, "")
|
|
9868
10004
|
);
|
|
9869
|
-
}, proto.viam.common.v1.GetKinematicsRequest.prototype.setName = function(
|
|
9870
|
-
return e.Message.setProto3StringField(this, 1,
|
|
9871
|
-
},
|
|
9872
|
-
return
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
10005
|
+
}, proto.viam.common.v1.GetKinematicsRequest.prototype.setName = function(o) {
|
|
10006
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
10007
|
+
}, proto.viam.common.v1.GetKinematicsRequest.prototype.getExtra = function() {
|
|
10008
|
+
return (
|
|
10009
|
+
/** @type{?proto.google.protobuf.Struct} */
|
|
10010
|
+
e.Message.getWrapperField(this, g.Struct, 99)
|
|
10011
|
+
);
|
|
10012
|
+
}, proto.viam.common.v1.GetKinematicsRequest.prototype.setExtra = function(o) {
|
|
10013
|
+
return e.Message.setWrapperField(this, 99, o);
|
|
10014
|
+
}, proto.viam.common.v1.GetKinematicsRequest.prototype.clearExtra = function() {
|
|
10015
|
+
return this.setExtra(void 0);
|
|
10016
|
+
}, proto.viam.common.v1.GetKinematicsRequest.prototype.hasExtra = function() {
|
|
10017
|
+
return e.Message.getField(this, 99) != null;
|
|
10018
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GetKinematicsResponse.prototype.toObject = function(o) {
|
|
10019
|
+
return proto.viam.common.v1.GetKinematicsResponse.toObject(o, this);
|
|
10020
|
+
}, proto.viam.common.v1.GetKinematicsResponse.toObject = function(o, r) {
|
|
10021
|
+
var n = {
|
|
10022
|
+
format: e.Message.getFieldWithDefault(r, 1, 0),
|
|
10023
|
+
kinematicsData: r.getKinematicsData_asB64()
|
|
9877
10024
|
};
|
|
9878
|
-
return
|
|
9879
|
-
}), proto.viam.common.v1.GetKinematicsResponse.deserializeBinary = function(
|
|
9880
|
-
var
|
|
9881
|
-
return proto.viam.common.v1.GetKinematicsResponse.deserializeBinaryFromReader(
|
|
9882
|
-
}, proto.viam.common.v1.GetKinematicsResponse.deserializeBinaryFromReader = function(
|
|
9883
|
-
for (;
|
|
9884
|
-
var
|
|
9885
|
-
switch (
|
|
10025
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
10026
|
+
}), proto.viam.common.v1.GetKinematicsResponse.deserializeBinary = function(o) {
|
|
10027
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.GetKinematicsResponse();
|
|
10028
|
+
return proto.viam.common.v1.GetKinematicsResponse.deserializeBinaryFromReader(n, r);
|
|
10029
|
+
}, proto.viam.common.v1.GetKinematicsResponse.deserializeBinaryFromReader = function(o, r) {
|
|
10030
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
10031
|
+
var n = r.getFieldNumber();
|
|
10032
|
+
switch (n) {
|
|
9886
10033
|
case 1:
|
|
9887
|
-
var
|
|
10034
|
+
var l = (
|
|
9888
10035
|
/** @type {!proto.viam.common.v1.KinematicsFileFormat} */
|
|
9889
|
-
|
|
10036
|
+
r.readEnum()
|
|
9890
10037
|
);
|
|
9891
|
-
|
|
10038
|
+
o.setFormat(l);
|
|
9892
10039
|
break;
|
|
9893
10040
|
case 2:
|
|
9894
|
-
var
|
|
10041
|
+
var l = (
|
|
9895
10042
|
/** @type {!Uint8Array} */
|
|
9896
|
-
|
|
10043
|
+
r.readBytes()
|
|
9897
10044
|
);
|
|
9898
|
-
|
|
10045
|
+
o.setKinematicsData(l);
|
|
9899
10046
|
break;
|
|
9900
10047
|
default:
|
|
9901
|
-
|
|
10048
|
+
r.skipField();
|
|
9902
10049
|
break;
|
|
9903
10050
|
}
|
|
9904
10051
|
}
|
|
9905
|
-
return
|
|
10052
|
+
return o;
|
|
9906
10053
|
}, proto.viam.common.v1.GetKinematicsResponse.prototype.serializeBinary = function() {
|
|
9907
|
-
var
|
|
9908
|
-
return proto.viam.common.v1.GetKinematicsResponse.serializeBinaryToWriter(this,
|
|
9909
|
-
}, proto.viam.common.v1.GetKinematicsResponse.serializeBinaryToWriter = function(
|
|
9910
|
-
var
|
|
9911
|
-
|
|
10054
|
+
var o = new e.BinaryWriter();
|
|
10055
|
+
return proto.viam.common.v1.GetKinematicsResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
10056
|
+
}, proto.viam.common.v1.GetKinematicsResponse.serializeBinaryToWriter = function(o, r) {
|
|
10057
|
+
var n = void 0;
|
|
10058
|
+
n = o.getFormat(), n !== 0 && r.writeEnum(
|
|
9912
10059
|
1,
|
|
9913
|
-
|
|
9914
|
-
),
|
|
10060
|
+
n
|
|
10061
|
+
), n = o.getKinematicsData_asU8(), n.length > 0 && r.writeBytes(
|
|
9915
10062
|
2,
|
|
9916
|
-
|
|
10063
|
+
n
|
|
9917
10064
|
);
|
|
9918
10065
|
}, proto.viam.common.v1.GetKinematicsResponse.prototype.getFormat = function() {
|
|
9919
10066
|
return (
|
|
9920
10067
|
/** @type {!proto.viam.common.v1.KinematicsFileFormat} */
|
|
9921
10068
|
e.Message.getFieldWithDefault(this, 1, 0)
|
|
9922
10069
|
);
|
|
9923
|
-
}, proto.viam.common.v1.GetKinematicsResponse.prototype.setFormat = function(
|
|
9924
|
-
return e.Message.setProto3EnumField(this, 1,
|
|
10070
|
+
}, proto.viam.common.v1.GetKinematicsResponse.prototype.setFormat = function(o) {
|
|
10071
|
+
return e.Message.setProto3EnumField(this, 1, o);
|
|
9925
10072
|
}, proto.viam.common.v1.GetKinematicsResponse.prototype.getKinematicsData = function() {
|
|
9926
10073
|
return (
|
|
9927
10074
|
/** @type {string} */
|
|
@@ -9941,87 +10088,107 @@ var struct_pb = {};
|
|
|
9941
10088
|
this.getKinematicsData()
|
|
9942
10089
|
)
|
|
9943
10090
|
);
|
|
9944
|
-
}, proto.viam.common.v1.GetKinematicsResponse.prototype.setKinematicsData = function(
|
|
9945
|
-
return e.Message.setProto3BytesField(this, 2,
|
|
9946
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GetGeometriesRequest.prototype.toObject = function(
|
|
9947
|
-
return proto.viam.common.v1.GetGeometriesRequest.toObject(
|
|
9948
|
-
}, proto.viam.common.v1.GetGeometriesRequest.toObject = function(
|
|
9949
|
-
var
|
|
9950
|
-
name: e.Message.getFieldWithDefault(
|
|
10091
|
+
}, proto.viam.common.v1.GetKinematicsResponse.prototype.setKinematicsData = function(o) {
|
|
10092
|
+
return e.Message.setProto3BytesField(this, 2, o);
|
|
10093
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GetGeometriesRequest.prototype.toObject = function(o) {
|
|
10094
|
+
return proto.viam.common.v1.GetGeometriesRequest.toObject(o, this);
|
|
10095
|
+
}, proto.viam.common.v1.GetGeometriesRequest.toObject = function(o, r) {
|
|
10096
|
+
var n, l = {
|
|
10097
|
+
name: e.Message.getFieldWithDefault(r, 1, ""),
|
|
10098
|
+
extra: (n = r.getExtra()) && g.Struct.toObject(o, n)
|
|
9951
10099
|
};
|
|
9952
|
-
return
|
|
9953
|
-
}), proto.viam.common.v1.GetGeometriesRequest.deserializeBinary = function(
|
|
9954
|
-
var
|
|
9955
|
-
return proto.viam.common.v1.GetGeometriesRequest.deserializeBinaryFromReader(
|
|
9956
|
-
}, proto.viam.common.v1.GetGeometriesRequest.deserializeBinaryFromReader = function(
|
|
9957
|
-
for (;
|
|
9958
|
-
var
|
|
9959
|
-
switch (
|
|
10100
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
10101
|
+
}), proto.viam.common.v1.GetGeometriesRequest.deserializeBinary = function(o) {
|
|
10102
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.GetGeometriesRequest();
|
|
10103
|
+
return proto.viam.common.v1.GetGeometriesRequest.deserializeBinaryFromReader(n, r);
|
|
10104
|
+
}, proto.viam.common.v1.GetGeometriesRequest.deserializeBinaryFromReader = function(o, r) {
|
|
10105
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
10106
|
+
var n = r.getFieldNumber();
|
|
10107
|
+
switch (n) {
|
|
9960
10108
|
case 1:
|
|
9961
|
-
var
|
|
10109
|
+
var l = (
|
|
9962
10110
|
/** @type {string} */
|
|
9963
|
-
|
|
10111
|
+
r.readString()
|
|
9964
10112
|
);
|
|
9965
|
-
|
|
10113
|
+
o.setName(l);
|
|
10114
|
+
break;
|
|
10115
|
+
case 99:
|
|
10116
|
+
var l = new g.Struct();
|
|
10117
|
+
r.readMessage(l, g.Struct.deserializeBinaryFromReader), o.setExtra(l);
|
|
9966
10118
|
break;
|
|
9967
10119
|
default:
|
|
9968
|
-
|
|
10120
|
+
r.skipField();
|
|
9969
10121
|
break;
|
|
9970
10122
|
}
|
|
9971
10123
|
}
|
|
9972
|
-
return
|
|
10124
|
+
return o;
|
|
9973
10125
|
}, proto.viam.common.v1.GetGeometriesRequest.prototype.serializeBinary = function() {
|
|
9974
|
-
var
|
|
9975
|
-
return proto.viam.common.v1.GetGeometriesRequest.serializeBinaryToWriter(this,
|
|
9976
|
-
}, proto.viam.common.v1.GetGeometriesRequest.serializeBinaryToWriter = function(
|
|
9977
|
-
var
|
|
9978
|
-
|
|
10126
|
+
var o = new e.BinaryWriter();
|
|
10127
|
+
return proto.viam.common.v1.GetGeometriesRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
10128
|
+
}, proto.viam.common.v1.GetGeometriesRequest.serializeBinaryToWriter = function(o, r) {
|
|
10129
|
+
var n = void 0;
|
|
10130
|
+
n = o.getName(), n.length > 0 && r.writeString(
|
|
9979
10131
|
1,
|
|
9980
|
-
|
|
10132
|
+
n
|
|
10133
|
+
), n = o.getExtra(), n != null && r.writeMessage(
|
|
10134
|
+
99,
|
|
10135
|
+
n,
|
|
10136
|
+
g.Struct.serializeBinaryToWriter
|
|
9981
10137
|
);
|
|
9982
10138
|
}, proto.viam.common.v1.GetGeometriesRequest.prototype.getName = function() {
|
|
9983
10139
|
return (
|
|
9984
10140
|
/** @type {string} */
|
|
9985
10141
|
e.Message.getFieldWithDefault(this, 1, "")
|
|
9986
10142
|
);
|
|
9987
|
-
}, proto.viam.common.v1.GetGeometriesRequest.prototype.setName = function(
|
|
9988
|
-
return e.Message.setProto3StringField(this, 1,
|
|
9989
|
-
}, proto.viam.common.v1.
|
|
9990
|
-
return
|
|
9991
|
-
|
|
9992
|
-
|
|
10143
|
+
}, proto.viam.common.v1.GetGeometriesRequest.prototype.setName = function(o) {
|
|
10144
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
10145
|
+
}, proto.viam.common.v1.GetGeometriesRequest.prototype.getExtra = function() {
|
|
10146
|
+
return (
|
|
10147
|
+
/** @type{?proto.google.protobuf.Struct} */
|
|
10148
|
+
e.Message.getWrapperField(this, g.Struct, 99)
|
|
10149
|
+
);
|
|
10150
|
+
}, proto.viam.common.v1.GetGeometriesRequest.prototype.setExtra = function(o) {
|
|
10151
|
+
return e.Message.setWrapperField(this, 99, o);
|
|
10152
|
+
}, proto.viam.common.v1.GetGeometriesRequest.prototype.clearExtra = function() {
|
|
10153
|
+
return this.setExtra(void 0);
|
|
10154
|
+
}, proto.viam.common.v1.GetGeometriesRequest.prototype.hasExtra = function() {
|
|
10155
|
+
return e.Message.getField(this, 99) != null;
|
|
10156
|
+
}, proto.viam.common.v1.GetGeometriesResponse.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GetGeometriesResponse.prototype.toObject = function(o) {
|
|
10157
|
+
return proto.viam.common.v1.GetGeometriesResponse.toObject(o, this);
|
|
10158
|
+
}, proto.viam.common.v1.GetGeometriesResponse.toObject = function(o, r) {
|
|
10159
|
+
var n = {
|
|
9993
10160
|
geometriesList: e.Message.toObjectList(
|
|
9994
|
-
|
|
10161
|
+
r.getGeometriesList(),
|
|
9995
10162
|
proto.viam.common.v1.Geometry.toObject,
|
|
9996
|
-
|
|
10163
|
+
o
|
|
9997
10164
|
)
|
|
9998
10165
|
};
|
|
9999
|
-
return
|
|
10000
|
-
}), proto.viam.common.v1.GetGeometriesResponse.deserializeBinary = function(
|
|
10001
|
-
var
|
|
10002
|
-
return proto.viam.common.v1.GetGeometriesResponse.deserializeBinaryFromReader(
|
|
10003
|
-
}, proto.viam.common.v1.GetGeometriesResponse.deserializeBinaryFromReader = function(
|
|
10004
|
-
for (;
|
|
10005
|
-
var
|
|
10006
|
-
switch (
|
|
10166
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
10167
|
+
}), proto.viam.common.v1.GetGeometriesResponse.deserializeBinary = function(o) {
|
|
10168
|
+
var r = new e.BinaryReader(o), n = new proto.viam.common.v1.GetGeometriesResponse();
|
|
10169
|
+
return proto.viam.common.v1.GetGeometriesResponse.deserializeBinaryFromReader(n, r);
|
|
10170
|
+
}, proto.viam.common.v1.GetGeometriesResponse.deserializeBinaryFromReader = function(o, r) {
|
|
10171
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
10172
|
+
var n = r.getFieldNumber();
|
|
10173
|
+
switch (n) {
|
|
10007
10174
|
case 1:
|
|
10008
|
-
var
|
|
10009
|
-
|
|
10175
|
+
var l = new proto.viam.common.v1.Geometry();
|
|
10176
|
+
r.readMessage(l, proto.viam.common.v1.Geometry.deserializeBinaryFromReader), o.addGeometries(l);
|
|
10010
10177
|
break;
|
|
10011
10178
|
default:
|
|
10012
|
-
|
|
10179
|
+
r.skipField();
|
|
10013
10180
|
break;
|
|
10014
10181
|
}
|
|
10015
10182
|
}
|
|
10016
|
-
return
|
|
10183
|
+
return o;
|
|
10017
10184
|
}, proto.viam.common.v1.GetGeometriesResponse.prototype.serializeBinary = function() {
|
|
10018
|
-
var
|
|
10019
|
-
return proto.viam.common.v1.GetGeometriesResponse.serializeBinaryToWriter(this,
|
|
10020
|
-
}, proto.viam.common.v1.GetGeometriesResponse.serializeBinaryToWriter = function(
|
|
10021
|
-
var
|
|
10022
|
-
|
|
10185
|
+
var o = new e.BinaryWriter();
|
|
10186
|
+
return proto.viam.common.v1.GetGeometriesResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
10187
|
+
}, proto.viam.common.v1.GetGeometriesResponse.serializeBinaryToWriter = function(o, r) {
|
|
10188
|
+
var n = void 0;
|
|
10189
|
+
n = o.getGeometriesList(), n.length > 0 && r.writeRepeatedMessage(
|
|
10023
10190
|
1,
|
|
10024
|
-
|
|
10191
|
+
n,
|
|
10025
10192
|
proto.viam.common.v1.Geometry.serializeBinaryToWriter
|
|
10026
10193
|
);
|
|
10027
10194
|
}, proto.viam.common.v1.GetGeometriesResponse.prototype.getGeometriesList = function() {
|
|
@@ -10029,10 +10196,10 @@ var struct_pb = {};
|
|
|
10029
10196
|
/** @type{!Array<!proto.viam.common.v1.Geometry>} */
|
|
10030
10197
|
e.Message.getRepeatedWrapperField(this, proto.viam.common.v1.Geometry, 1)
|
|
10031
10198
|
);
|
|
10032
|
-
}, proto.viam.common.v1.GetGeometriesResponse.prototype.setGeometriesList = function(
|
|
10033
|
-
return e.Message.setRepeatedWrapperField(this, 1,
|
|
10034
|
-
}, proto.viam.common.v1.GetGeometriesResponse.prototype.addGeometries = function(
|
|
10035
|
-
return e.Message.addToRepeatedWrapperField(this, 1,
|
|
10199
|
+
}, proto.viam.common.v1.GetGeometriesResponse.prototype.setGeometriesList = function(o) {
|
|
10200
|
+
return e.Message.setRepeatedWrapperField(this, 1, o);
|
|
10201
|
+
}, proto.viam.common.v1.GetGeometriesResponse.prototype.addGeometries = function(o, r) {
|
|
10202
|
+
return e.Message.addToRepeatedWrapperField(this, 1, o, proto.viam.common.v1.Geometry, r);
|
|
10036
10203
|
}, proto.viam.common.v1.GetGeometriesResponse.prototype.clearGeometriesList = function() {
|
|
10037
10204
|
return this.setGeometriesList([]);
|
|
10038
10205
|
}, proto.viam.common.v1.KinematicsFileFormat = {
|
|
@@ -10511,80 +10678,10 @@ var duration_pb = {};
|
|
|
10511
10678
|
}
|
|
10512
10679
|
}
|
|
10513
10680
|
return u;
|
|
10514
|
-
}, proto.google.protobuf.Duration.prototype.serializeBinary = function() {
|
|
10515
|
-
var u = new e.BinaryWriter();
|
|
10516
|
-
return proto.google.protobuf.Duration.serializeBinaryToWriter(this, u), u.getResultBuffer();
|
|
10517
|
-
}, proto.google.protobuf.Duration.serializeBinaryToWriter = function(u, g) {
|
|
10518
|
-
var p = void 0;
|
|
10519
|
-
p = u.getSeconds(), p !== 0 && g.writeInt64(
|
|
10520
|
-
1,
|
|
10521
|
-
p
|
|
10522
|
-
), p = u.getNanos(), p !== 0 && g.writeInt32(
|
|
10523
|
-
2,
|
|
10524
|
-
p
|
|
10525
|
-
);
|
|
10526
|
-
}, proto.google.protobuf.Duration.prototype.getSeconds = function() {
|
|
10527
|
-
return (
|
|
10528
|
-
/** @type {number} */
|
|
10529
|
-
e.Message.getFieldWithDefault(this, 1, 0)
|
|
10530
|
-
);
|
|
10531
|
-
}, proto.google.protobuf.Duration.prototype.setSeconds = function(u) {
|
|
10532
|
-
return e.Message.setProto3IntField(this, 1, u);
|
|
10533
|
-
}, proto.google.protobuf.Duration.prototype.getNanos = function() {
|
|
10534
|
-
return (
|
|
10535
|
-
/** @type {number} */
|
|
10536
|
-
e.Message.getFieldWithDefault(this, 2, 0)
|
|
10537
|
-
);
|
|
10538
|
-
}, proto.google.protobuf.Duration.prototype.setNanos = function(u) {
|
|
10539
|
-
return e.Message.setProto3IntField(this, 2, u);
|
|
10540
|
-
}, s.object.extend(t, proto.google.protobuf);
|
|
10541
|
-
})(duration_pb);
|
|
10542
|
-
var timestamp_pb = {};
|
|
10543
|
-
(function(t) {
|
|
10544
|
-
var e = googleProtobuf, s = e, i = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof i < "u" && i || typeof self < "u" && self || function() {
|
|
10545
|
-
return this;
|
|
10546
|
-
}.call(null) || Function("return this")();
|
|
10547
|
-
s.exportSymbol("proto.google.protobuf.Timestamp", null, i), proto.google.protobuf.Timestamp = function(u) {
|
|
10548
|
-
e.Message.initialize(this, u, 0, -1, null, null);
|
|
10549
|
-
}, s.inherits(proto.google.protobuf.Timestamp, e.Message), s.DEBUG && !COMPILED && (proto.google.protobuf.Timestamp.displayName = "proto.google.protobuf.Timestamp"), e.Message.GENERATE_TO_OBJECT && (proto.google.protobuf.Timestamp.prototype.toObject = function(u) {
|
|
10550
|
-
return proto.google.protobuf.Timestamp.toObject(u, this);
|
|
10551
|
-
}, proto.google.protobuf.Timestamp.toObject = function(u, g) {
|
|
10552
|
-
var p = {
|
|
10553
|
-
seconds: e.Message.getFieldWithDefault(g, 1, 0),
|
|
10554
|
-
nanos: e.Message.getFieldWithDefault(g, 2, 0)
|
|
10555
|
-
};
|
|
10556
|
-
return u && (p.$jspbMessageInstance = g), p;
|
|
10557
|
-
}), proto.google.protobuf.Timestamp.deserializeBinary = function(u) {
|
|
10558
|
-
var g = new e.BinaryReader(u), p = new proto.google.protobuf.Timestamp();
|
|
10559
|
-
return proto.google.protobuf.Timestamp.deserializeBinaryFromReader(p, g);
|
|
10560
|
-
}, proto.google.protobuf.Timestamp.deserializeBinaryFromReader = function(u, g) {
|
|
10561
|
-
for (; g.nextField() && !g.isEndGroup(); ) {
|
|
10562
|
-
var p = g.getFieldNumber();
|
|
10563
|
-
switch (p) {
|
|
10564
|
-
case 1:
|
|
10565
|
-
var o = (
|
|
10566
|
-
/** @type {number} */
|
|
10567
|
-
g.readInt64()
|
|
10568
|
-
);
|
|
10569
|
-
u.setSeconds(o);
|
|
10570
|
-
break;
|
|
10571
|
-
case 2:
|
|
10572
|
-
var o = (
|
|
10573
|
-
/** @type {number} */
|
|
10574
|
-
g.readInt32()
|
|
10575
|
-
);
|
|
10576
|
-
u.setNanos(o);
|
|
10577
|
-
break;
|
|
10578
|
-
default:
|
|
10579
|
-
g.skipField();
|
|
10580
|
-
break;
|
|
10581
|
-
}
|
|
10582
|
-
}
|
|
10583
|
-
return u;
|
|
10584
|
-
}, proto.google.protobuf.Timestamp.prototype.serializeBinary = function() {
|
|
10681
|
+
}, proto.google.protobuf.Duration.prototype.serializeBinary = function() {
|
|
10585
10682
|
var u = new e.BinaryWriter();
|
|
10586
|
-
return proto.google.protobuf.
|
|
10587
|
-
}, proto.google.protobuf.
|
|
10683
|
+
return proto.google.protobuf.Duration.serializeBinaryToWriter(this, u), u.getResultBuffer();
|
|
10684
|
+
}, proto.google.protobuf.Duration.serializeBinaryToWriter = function(u, g) {
|
|
10588
10685
|
var p = void 0;
|
|
10589
10686
|
p = u.getSeconds(), p !== 0 && g.writeInt64(
|
|
10590
10687
|
1,
|
|
@@ -10593,30 +10690,22 @@ var timestamp_pb = {};
|
|
|
10593
10690
|
2,
|
|
10594
10691
|
p
|
|
10595
10692
|
);
|
|
10596
|
-
}, proto.google.protobuf.
|
|
10693
|
+
}, proto.google.protobuf.Duration.prototype.getSeconds = function() {
|
|
10597
10694
|
return (
|
|
10598
10695
|
/** @type {number} */
|
|
10599
10696
|
e.Message.getFieldWithDefault(this, 1, 0)
|
|
10600
10697
|
);
|
|
10601
|
-
}, proto.google.protobuf.
|
|
10698
|
+
}, proto.google.protobuf.Duration.prototype.setSeconds = function(u) {
|
|
10602
10699
|
return e.Message.setProto3IntField(this, 1, u);
|
|
10603
|
-
}, proto.google.protobuf.
|
|
10700
|
+
}, proto.google.protobuf.Duration.prototype.getNanos = function() {
|
|
10604
10701
|
return (
|
|
10605
10702
|
/** @type {number} */
|
|
10606
10703
|
e.Message.getFieldWithDefault(this, 2, 0)
|
|
10607
10704
|
);
|
|
10608
|
-
}, proto.google.protobuf.
|
|
10705
|
+
}, proto.google.protobuf.Duration.prototype.setNanos = function(u) {
|
|
10609
10706
|
return e.Message.setProto3IntField(this, 2, u);
|
|
10610
|
-
}, s.object.extend(t, proto.google.protobuf)
|
|
10611
|
-
|
|
10612
|
-
return new Date(u * 1e3 + g / 1e6);
|
|
10613
|
-
}, proto.google.protobuf.Timestamp.prototype.fromDate = function(u) {
|
|
10614
|
-
this.setSeconds(Math.floor(u.getTime() / 1e3)), this.setNanos(u.getMilliseconds() * 1e6);
|
|
10615
|
-
}, proto.google.protobuf.Timestamp.fromDate = function(u) {
|
|
10616
|
-
var g = new proto.google.protobuf.Timestamp();
|
|
10617
|
-
return g.fromDate(u), g;
|
|
10618
|
-
};
|
|
10619
|
-
})(timestamp_pb);
|
|
10707
|
+
}, s.object.extend(t, proto.google.protobuf);
|
|
10708
|
+
})(duration_pb);
|
|
10620
10709
|
(function(t) {
|
|
10621
10710
|
var e = googleProtobuf, s = e, i = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof i < "u" && i || typeof self < "u" && self || function() {
|
|
10622
10711
|
return this;
|
|
@@ -13749,10 +13838,10 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13749
13838
|
var C = c(this.buffer, this.position, this.position + 5), q = new DataView(C.buffer, C.byteOffset, C.byteLength), W = n(q);
|
|
13750
13839
|
if (!l(this.buffer, this.position, 5 + W))
|
|
13751
13840
|
return b;
|
|
13752
|
-
var
|
|
13841
|
+
var z = c(this.buffer, this.position + 5, this.position + 5 + W);
|
|
13753
13842
|
if (this.position += 5 + W, r(q))
|
|
13754
|
-
return b.push({ chunkType: u.TRAILERS, trailers: (f =
|
|
13755
|
-
b.push({ chunkType: u.MESSAGE, data:
|
|
13843
|
+
return b.push({ chunkType: u.TRAILERS, trailers: (f = z, new g.Metadata(o(f))) }), b;
|
|
13844
|
+
b.push({ chunkType: u.MESSAGE, data: z });
|
|
13756
13845
|
}
|
|
13757
13846
|
}, d;
|
|
13758
13847
|
}();
|
|
@@ -20329,22 +20418,22 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20329
20418
|
}
|
|
20330
20419
|
function y(h, O, w) {
|
|
20331
20420
|
return i.__awaiter(this, void 0, void 0, function() {
|
|
20332
|
-
var C, q, W,
|
|
20421
|
+
var C, q, W, z = this;
|
|
20333
20422
|
return i.__generator(this, function(U) {
|
|
20334
20423
|
switch (U.label) {
|
|
20335
20424
|
case 0:
|
|
20336
20425
|
return C = "", q = function() {
|
|
20337
|
-
return i.__awaiter(
|
|
20338
|
-
var I,
|
|
20426
|
+
return i.__awaiter(z, void 0, void 0, function() {
|
|
20427
|
+
var I, x, k, S, R, _, E, F, P, T;
|
|
20339
20428
|
return i.__generator(this, function(j) {
|
|
20340
20429
|
switch (j.label) {
|
|
20341
20430
|
case 0:
|
|
20342
20431
|
return C != "" ? [3, 5] : (I = "", w.accessToken && w.accessToken !== "" ? [3, 2] : ((E = new n.AuthenticateRequest()).setEntity(w.authEntity ? w.authEntity : h.replace(/^(.*:\/\/)/, "")), (S = new n.Credentials()).setType((P = w.credentials) === null || P === void 0 ? void 0 : P.type), S.setPayload((T = w.credentials) === null || T === void 0 ? void 0 : T.payload), E.setCredentials(S), _ = new Promise(function(A, D) {
|
|
20343
|
-
|
|
20432
|
+
x = A, k = D;
|
|
20344
20433
|
}), u.grpc.invoke(l.AuthService.Authenticate, { request: E, host: w.externalAuthAddress ? w.externalAuthAddress : h, transport: O, onMessage: function(A) {
|
|
20345
20434
|
I = A.getAccessToken();
|
|
20346
20435
|
}, onEnd: function(A, D, B) {
|
|
20347
|
-
A == u.grpc.Code.OK ?
|
|
20436
|
+
A == u.grpc.Code.OK ? x(F) : k(D);
|
|
20348
20437
|
} }), [4, _]));
|
|
20349
20438
|
case 1:
|
|
20350
20439
|
return j.sent(), [3, 3];
|
|
@@ -20352,11 +20441,11 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20352
20441
|
I = w.accessToken, j.label = 3;
|
|
20353
20442
|
case 3:
|
|
20354
20443
|
return C = I, w.externalAuthAddress && w.externalAuthToEntity ? ((R = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(C)), _ = new Promise(function(A, D) {
|
|
20355
|
-
|
|
20444
|
+
x = A, k = D;
|
|
20356
20445
|
}), I = "", (E = new n.AuthenticateToRequest()).setEntity(w.externalAuthToEntity), u.grpc.invoke(l.ExternalAuthService.AuthenticateTo, { request: E, host: w.externalAuthAddress, transport: O, metadata: R, onMessage: function(A) {
|
|
20357
20446
|
I = A.getAccessToken();
|
|
20358
20447
|
}, onEnd: function(A, D, B) {
|
|
20359
|
-
A == u.grpc.Code.OK ?
|
|
20448
|
+
A == u.grpc.Code.OK ? x(R) : k(D);
|
|
20360
20449
|
} }), [4, _]) : [3, 5];
|
|
20361
20450
|
case 4:
|
|
20362
20451
|
j.sent(), C = I, j.label = 5;
|
|
@@ -20393,14 +20482,14 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20393
20482
|
}();
|
|
20394
20483
|
function b(h, O, w) {
|
|
20395
20484
|
return i.__awaiter(this, void 0, void 0, function() {
|
|
20396
|
-
var C, q, W,
|
|
20397
|
-
return i.__generator(this, function(
|
|
20398
|
-
switch (
|
|
20485
|
+
var C, q, W, z, U, I;
|
|
20486
|
+
return i.__generator(this, function(x) {
|
|
20487
|
+
switch (x.label) {
|
|
20399
20488
|
case 0:
|
|
20400
20489
|
return C = i.__assign({}, w), [4, v(h, C)];
|
|
20401
20490
|
case 1:
|
|
20402
|
-
return q =
|
|
20403
|
-
W = k,
|
|
20491
|
+
return q = x.sent(), I = new Promise(function(k, S) {
|
|
20492
|
+
W = k, z = S;
|
|
20404
20493
|
}), u.grpc.unary(m.SignalingService.OptionalWebRTCConfig, { request: new c.OptionalWebRTCConfigRequest(), metadata: { "rpc-host": O }, host: h, transport: q, onEnd: function(k) {
|
|
20405
20494
|
var S = k.status, R = k.statusMessage, _ = k.message;
|
|
20406
20495
|
if (S === u.grpc.Code.OK && _) {
|
|
@@ -20408,10 +20497,10 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20408
20497
|
return void W(new c.WebRTCConfig());
|
|
20409
20498
|
W(U);
|
|
20410
20499
|
} else
|
|
20411
|
-
|
|
20500
|
+
z(R);
|
|
20412
20501
|
} }), [4, I];
|
|
20413
20502
|
case 2:
|
|
20414
|
-
if (
|
|
20503
|
+
if (x.sent(), !U)
|
|
20415
20504
|
throw new Error("no config");
|
|
20416
20505
|
return [2, U];
|
|
20417
20506
|
}
|
|
@@ -20444,7 +20533,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20444
20533
|
}
|
|
20445
20534
|
}
|
|
20446
20535
|
e.dialWebRTC = function(h, O, w) {
|
|
20447
|
-
var C, q, W,
|
|
20536
|
+
var C, q, W, z, U, I, x;
|
|
20448
20537
|
return i.__awaiter(this, void 0, void 0, function() {
|
|
20449
20538
|
var k, S, R, _, E, F, P, T, j, A, D, B, G, V, Z, oe, re, ge, ae, ne, pe, ie, le, se, ce, ue, me = this;
|
|
20450
20539
|
return i.__generator(this, function(J) {
|
|
@@ -20458,7 +20547,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20458
20547
|
case 2:
|
|
20459
20548
|
_ = J.sent(), E = _.pc, F = _.dc, P = !1, J.label = 3;
|
|
20460
20549
|
case 3:
|
|
20461
|
-
return J.trys.push([3, , 10, 11]), T = w, w && (T = i.__assign({}, w), w.accessToken || (T.authEntity = (C = w?.webrtcOptions) === null || C === void 0 ? void 0 : C.signalingAuthEntity, T.authEntity || (T.externalAuthAddress ? T.authEntity = (q = w.externalAuthAddress) === null || q === void 0 ? void 0 : q.replace(/^(.*:\/\/)/, "") : T.authEntity = h.replace(/^(.*:\/\/)/, "")), T.credentials = (W = w?.webrtcOptions) === null || W === void 0 ? void 0 : W.signalingCredentials, T.accessToken = (
|
|
20550
|
+
return J.trys.push([3, , 10, 11]), T = w, w && (T = i.__assign({}, w), w.accessToken || (T.authEntity = (C = w?.webrtcOptions) === null || C === void 0 ? void 0 : C.signalingAuthEntity, T.authEntity || (T.externalAuthAddress ? T.authEntity = (q = w.externalAuthAddress) === null || q === void 0 ? void 0 : q.replace(/^(.*:\/\/)/, "") : T.authEntity = h.replace(/^(.*:\/\/)/, "")), T.credentials = (W = w?.webrtcOptions) === null || W === void 0 ? void 0 : W.signalingCredentials, T.accessToken = (z = w?.webrtcOptions) === null || z === void 0 ? void 0 : z.signalingAccessToken), T.externalAuthAddress = (U = w?.webrtcOptions) === null || U === void 0 ? void 0 : U.signalingExternalAuthAddress, T.externalAuthToEntity = (I = w?.webrtcOptions) === null || I === void 0 ? void 0 : I.signalingExternalAuthToEntity), [4, v(h, T)];
|
|
20462
20551
|
case 4:
|
|
20463
20552
|
return j = J.sent(), A = u.grpc.client(m.SignalingService.Call, { host: h, transport: j }), D = "", B = !1, G = function(L) {
|
|
20464
20553
|
if (!B) {
|
|
@@ -20549,7 +20638,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20549
20638
|
case 8:
|
|
20550
20639
|
return J.sent(), [4, ue.ready];
|
|
20551
20640
|
case 9:
|
|
20552
|
-
return J.sent(), re = !0, V(), w?.externalAuthAddress || (
|
|
20641
|
+
return J.sent(), re = !0, V(), w?.externalAuthAddress || (x = w?.credentials) === null || x === void 0 || x.type, P = !0, [2, { transportFactory: ue.transportFactory(), peerConnection: E }];
|
|
20553
20642
|
case 10:
|
|
20554
20643
|
return P || E.close(), [7];
|
|
20555
20644
|
case 11:
|
|
@@ -20653,7 +20742,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20653
20742
|
});
|
|
20654
20743
|
};
|
|
20655
20744
|
}, 655: (t, e, s) => {
|
|
20656
|
-
s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => w, __asyncGenerator: () => O, __asyncValues: () => C, __await: () => h, __awaiter: () => l, __classPrivateFieldGet: () => I, __classPrivateFieldIn: () => k, __classPrivateFieldSet: () =>
|
|
20745
|
+
s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => w, __asyncGenerator: () => O, __asyncValues: () => C, __await: () => h, __awaiter: () => l, __classPrivateFieldGet: () => I, __classPrivateFieldIn: () => k, __classPrivateFieldSet: () => x, __createBinding: () => m, __decorate: () => o, __exportStar: () => d, __extends: () => u, __generator: () => c, __importDefault: () => U, __importStar: () => z, __makeTemplateObject: () => q, __metadata: () => n, __param: () => r, __read: () => y, __rest: () => p, __spread: () => f, __spreadArray: () => M, __spreadArrays: () => b, __values: () => v });
|
|
20657
20746
|
var i = function(S, R) {
|
|
20658
20747
|
return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, E) {
|
|
20659
20748
|
_.__proto__ = E;
|
|
@@ -20934,7 +21023,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20934
21023
|
} : function(S, R) {
|
|
20935
21024
|
S.default = R;
|
|
20936
21025
|
};
|
|
20937
|
-
function
|
|
21026
|
+
function z(S) {
|
|
20938
21027
|
if (S && S.__esModule)
|
|
20939
21028
|
return S;
|
|
20940
21029
|
var R = {};
|
|
@@ -20953,7 +21042,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20953
21042
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
20954
21043
|
return _ === "m" ? E : _ === "a" ? E.call(S) : E ? E.value : R.get(S);
|
|
20955
21044
|
}
|
|
20956
|
-
function
|
|
21045
|
+
function x(S, R, _, E, F) {
|
|
20957
21046
|
if (E === "m")
|
|
20958
21047
|
throw new TypeError("Private method is not writable");
|
|
20959
21048
|
if (E === "a" && !F)
|
|
@@ -23171,13 +23260,13 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23171
23260
|
for (; ; ) {
|
|
23172
23261
|
if (!d(this.buffer, this.position, 5))
|
|
23173
23262
|
return O;
|
|
23174
|
-
var
|
|
23263
|
+
var z = v(this.buffer, this.position, this.position + 5), U = new DataView(z.buffer, z.byteOffset, z.byteLength), I = m(U);
|
|
23175
23264
|
if (!d(this.buffer, this.position, 5 + I))
|
|
23176
23265
|
return O;
|
|
23177
|
-
var
|
|
23266
|
+
var x = v(this.buffer, this.position + 5, this.position + 5 + I);
|
|
23178
23267
|
if (this.position += 5 + I, c(U))
|
|
23179
|
-
return O.push({ chunkType: o.TRAILERS, trailers: (h =
|
|
23180
|
-
O.push({ chunkType: o.MESSAGE, data:
|
|
23268
|
+
return O.push({ chunkType: o.TRAILERS, trailers: (h = x, new r.Metadata(l(h))) }), O;
|
|
23269
|
+
O.push({ chunkType: o.MESSAGE, data: x });
|
|
23181
23270
|
}
|
|
23182
23271
|
}, f;
|
|
23183
23272
|
}();
|
|
@@ -35004,7 +35093,7 @@ var MovementSensorServiceClient_1 = MovementSensorServiceClient, navigation_pb =
|
|
|
35004
35093
|
var g = annotations_pb;
|
|
35005
35094
|
s.object.extend(proto, g);
|
|
35006
35095
|
var p = struct_pb;
|
|
35007
|
-
s.object.extend(proto, p), s.exportSymbol("proto.viam.service.navigation.v1.AddWaypointRequest", null, i), s.exportSymbol("proto.viam.service.navigation.v1.AddWaypointResponse", null, i), s.exportSymbol("proto.viam.service.navigation.v1.GetLocationRequest", null, i), s.exportSymbol("proto.viam.service.navigation.v1.GetLocationResponse", null, i), s.exportSymbol("proto.viam.service.navigation.v1.GetModeRequest", null, i), s.exportSymbol("proto.viam.service.navigation.v1.GetModeResponse", null, i), s.exportSymbol("proto.viam.service.navigation.v1.GetWaypointsRequest", null, i), s.exportSymbol("proto.viam.service.navigation.v1.GetWaypointsResponse", null, i), s.exportSymbol("proto.viam.service.navigation.v1.Mode", null, i), s.exportSymbol("proto.viam.service.navigation.v1.RemoveWaypointRequest", null, i), s.exportSymbol("proto.viam.service.navigation.v1.RemoveWaypointResponse", null, i), s.exportSymbol("proto.viam.service.navigation.v1.SetModeRequest", null, i), s.exportSymbol("proto.viam.service.navigation.v1.SetModeResponse", null, i), s.exportSymbol("proto.viam.service.navigation.v1.Waypoint", null, i), proto.viam.service.navigation.v1.GetModeRequest = function(o) {
|
|
35096
|
+
s.object.extend(proto, p), s.exportSymbol("proto.viam.service.navigation.v1.AddWaypointRequest", null, i), s.exportSymbol("proto.viam.service.navigation.v1.AddWaypointResponse", null, i), s.exportSymbol("proto.viam.service.navigation.v1.GetLocationRequest", null, i), s.exportSymbol("proto.viam.service.navigation.v1.GetLocationResponse", null, i), s.exportSymbol("proto.viam.service.navigation.v1.GetModeRequest", null, i), s.exportSymbol("proto.viam.service.navigation.v1.GetModeResponse", null, i), s.exportSymbol("proto.viam.service.navigation.v1.GetObstaclesRequest", null, i), s.exportSymbol("proto.viam.service.navigation.v1.GetObstaclesResponse", null, i), s.exportSymbol("proto.viam.service.navigation.v1.GetWaypointsRequest", null, i), s.exportSymbol("proto.viam.service.navigation.v1.GetWaypointsResponse", null, i), s.exportSymbol("proto.viam.service.navigation.v1.Mode", null, i), s.exportSymbol("proto.viam.service.navigation.v1.RemoveWaypointRequest", null, i), s.exportSymbol("proto.viam.service.navigation.v1.RemoveWaypointResponse", null, i), s.exportSymbol("proto.viam.service.navigation.v1.SetModeRequest", null, i), s.exportSymbol("proto.viam.service.navigation.v1.SetModeResponse", null, i), s.exportSymbol("proto.viam.service.navigation.v1.Waypoint", null, i), proto.viam.service.navigation.v1.GetModeRequest = function(o) {
|
|
35008
35097
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
35009
35098
|
}, s.inherits(proto.viam.service.navigation.v1.GetModeRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.navigation.v1.GetModeRequest.displayName = "proto.viam.service.navigation.v1.GetModeRequest"), proto.viam.service.navigation.v1.GetModeResponse = function(o) {
|
|
35010
35099
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
@@ -35030,7 +35119,11 @@ var MovementSensorServiceClient_1 = MovementSensorServiceClient, navigation_pb =
|
|
|
35030
35119
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
35031
35120
|
}, s.inherits(proto.viam.service.navigation.v1.RemoveWaypointRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.navigation.v1.RemoveWaypointRequest.displayName = "proto.viam.service.navigation.v1.RemoveWaypointRequest"), proto.viam.service.navigation.v1.RemoveWaypointResponse = function(o) {
|
|
35032
35121
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
35033
|
-
}, s.inherits(proto.viam.service.navigation.v1.RemoveWaypointResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.navigation.v1.RemoveWaypointResponse.displayName = "proto.viam.service.navigation.v1.RemoveWaypointResponse"),
|
|
35122
|
+
}, s.inherits(proto.viam.service.navigation.v1.RemoveWaypointResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.navigation.v1.RemoveWaypointResponse.displayName = "proto.viam.service.navigation.v1.RemoveWaypointResponse"), proto.viam.service.navigation.v1.GetObstaclesRequest = function(o) {
|
|
35123
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
35124
|
+
}, s.inherits(proto.viam.service.navigation.v1.GetObstaclesRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.navigation.v1.GetObstaclesRequest.displayName = "proto.viam.service.navigation.v1.GetObstaclesRequest"), proto.viam.service.navigation.v1.GetObstaclesResponse = function(o) {
|
|
35125
|
+
e.Message.initialize(this, o, 0, -1, proto.viam.service.navigation.v1.GetObstaclesResponse.repeatedFields_, null);
|
|
35126
|
+
}, s.inherits(proto.viam.service.navigation.v1.GetObstaclesResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.navigation.v1.GetObstaclesResponse.displayName = "proto.viam.service.navigation.v1.GetObstaclesResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.service.navigation.v1.GetModeRequest.prototype.toObject = function(o) {
|
|
35034
35127
|
return proto.viam.service.navigation.v1.GetModeRequest.toObject(o, this);
|
|
35035
35128
|
}, proto.viam.service.navigation.v1.GetModeRequest.toObject = function(o, r) {
|
|
35036
35129
|
var n, l = {
|
|
@@ -35730,6 +35823,118 @@ var MovementSensorServiceClient_1 = MovementSensorServiceClient, navigation_pb =
|
|
|
35730
35823
|
var o = new e.BinaryWriter();
|
|
35731
35824
|
return proto.viam.service.navigation.v1.RemoveWaypointResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
35732
35825
|
}, proto.viam.service.navigation.v1.RemoveWaypointResponse.serializeBinaryToWriter = function(o, r) {
|
|
35826
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.navigation.v1.GetObstaclesRequest.prototype.toObject = function(o) {
|
|
35827
|
+
return proto.viam.service.navigation.v1.GetObstaclesRequest.toObject(o, this);
|
|
35828
|
+
}, proto.viam.service.navigation.v1.GetObstaclesRequest.toObject = function(o, r) {
|
|
35829
|
+
var n, l = {
|
|
35830
|
+
name: e.Message.getFieldWithDefault(r, 1, ""),
|
|
35831
|
+
extra: (n = r.getExtra()) && p.Struct.toObject(o, n)
|
|
35832
|
+
};
|
|
35833
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
35834
|
+
}), proto.viam.service.navigation.v1.GetObstaclesRequest.deserializeBinary = function(o) {
|
|
35835
|
+
var r = new e.BinaryReader(o), n = new proto.viam.service.navigation.v1.GetObstaclesRequest();
|
|
35836
|
+
return proto.viam.service.navigation.v1.GetObstaclesRequest.deserializeBinaryFromReader(n, r);
|
|
35837
|
+
}, proto.viam.service.navigation.v1.GetObstaclesRequest.deserializeBinaryFromReader = function(o, r) {
|
|
35838
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
35839
|
+
var n = r.getFieldNumber();
|
|
35840
|
+
switch (n) {
|
|
35841
|
+
case 1:
|
|
35842
|
+
var l = (
|
|
35843
|
+
/** @type {string} */
|
|
35844
|
+
r.readString()
|
|
35845
|
+
);
|
|
35846
|
+
o.setName(l);
|
|
35847
|
+
break;
|
|
35848
|
+
case 99:
|
|
35849
|
+
var l = new p.Struct();
|
|
35850
|
+
r.readMessage(l, p.Struct.deserializeBinaryFromReader), o.setExtra(l);
|
|
35851
|
+
break;
|
|
35852
|
+
default:
|
|
35853
|
+
r.skipField();
|
|
35854
|
+
break;
|
|
35855
|
+
}
|
|
35856
|
+
}
|
|
35857
|
+
return o;
|
|
35858
|
+
}, proto.viam.service.navigation.v1.GetObstaclesRequest.prototype.serializeBinary = function() {
|
|
35859
|
+
var o = new e.BinaryWriter();
|
|
35860
|
+
return proto.viam.service.navigation.v1.GetObstaclesRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
35861
|
+
}, proto.viam.service.navigation.v1.GetObstaclesRequest.serializeBinaryToWriter = function(o, r) {
|
|
35862
|
+
var n = void 0;
|
|
35863
|
+
n = o.getName(), n.length > 0 && r.writeString(
|
|
35864
|
+
1,
|
|
35865
|
+
n
|
|
35866
|
+
), n = o.getExtra(), n != null && r.writeMessage(
|
|
35867
|
+
99,
|
|
35868
|
+
n,
|
|
35869
|
+
p.Struct.serializeBinaryToWriter
|
|
35870
|
+
);
|
|
35871
|
+
}, proto.viam.service.navigation.v1.GetObstaclesRequest.prototype.getName = function() {
|
|
35872
|
+
return (
|
|
35873
|
+
/** @type {string} */
|
|
35874
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
35875
|
+
);
|
|
35876
|
+
}, proto.viam.service.navigation.v1.GetObstaclesRequest.prototype.setName = function(o) {
|
|
35877
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
35878
|
+
}, proto.viam.service.navigation.v1.GetObstaclesRequest.prototype.getExtra = function() {
|
|
35879
|
+
return (
|
|
35880
|
+
/** @type{?proto.google.protobuf.Struct} */
|
|
35881
|
+
e.Message.getWrapperField(this, p.Struct, 99)
|
|
35882
|
+
);
|
|
35883
|
+
}, proto.viam.service.navigation.v1.GetObstaclesRequest.prototype.setExtra = function(o) {
|
|
35884
|
+
return e.Message.setWrapperField(this, 99, o);
|
|
35885
|
+
}, proto.viam.service.navigation.v1.GetObstaclesRequest.prototype.clearExtra = function() {
|
|
35886
|
+
return this.setExtra(void 0);
|
|
35887
|
+
}, proto.viam.service.navigation.v1.GetObstaclesRequest.prototype.hasExtra = function() {
|
|
35888
|
+
return e.Message.getField(this, 99) != null;
|
|
35889
|
+
}, proto.viam.service.navigation.v1.GetObstaclesResponse.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.toObject = function(o) {
|
|
35890
|
+
return proto.viam.service.navigation.v1.GetObstaclesResponse.toObject(o, this);
|
|
35891
|
+
}, proto.viam.service.navigation.v1.GetObstaclesResponse.toObject = function(o, r) {
|
|
35892
|
+
var n = {
|
|
35893
|
+
obstaclesList: e.Message.toObjectList(
|
|
35894
|
+
r.getObstaclesList(),
|
|
35895
|
+
u.GeoObstacle.toObject,
|
|
35896
|
+
o
|
|
35897
|
+
)
|
|
35898
|
+
};
|
|
35899
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
35900
|
+
}), proto.viam.service.navigation.v1.GetObstaclesResponse.deserializeBinary = function(o) {
|
|
35901
|
+
var r = new e.BinaryReader(o), n = new proto.viam.service.navigation.v1.GetObstaclesResponse();
|
|
35902
|
+
return proto.viam.service.navigation.v1.GetObstaclesResponse.deserializeBinaryFromReader(n, r);
|
|
35903
|
+
}, proto.viam.service.navigation.v1.GetObstaclesResponse.deserializeBinaryFromReader = function(o, r) {
|
|
35904
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
35905
|
+
var n = r.getFieldNumber();
|
|
35906
|
+
switch (n) {
|
|
35907
|
+
case 1:
|
|
35908
|
+
var l = new u.GeoObstacle();
|
|
35909
|
+
r.readMessage(l, u.GeoObstacle.deserializeBinaryFromReader), o.addObstacles(l);
|
|
35910
|
+
break;
|
|
35911
|
+
default:
|
|
35912
|
+
r.skipField();
|
|
35913
|
+
break;
|
|
35914
|
+
}
|
|
35915
|
+
}
|
|
35916
|
+
return o;
|
|
35917
|
+
}, proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.serializeBinary = function() {
|
|
35918
|
+
var o = new e.BinaryWriter();
|
|
35919
|
+
return proto.viam.service.navigation.v1.GetObstaclesResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
35920
|
+
}, proto.viam.service.navigation.v1.GetObstaclesResponse.serializeBinaryToWriter = function(o, r) {
|
|
35921
|
+
var n = void 0;
|
|
35922
|
+
n = o.getObstaclesList(), n.length > 0 && r.writeRepeatedMessage(
|
|
35923
|
+
1,
|
|
35924
|
+
n,
|
|
35925
|
+
u.GeoObstacle.serializeBinaryToWriter
|
|
35926
|
+
);
|
|
35927
|
+
}, proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.getObstaclesList = function() {
|
|
35928
|
+
return (
|
|
35929
|
+
/** @type{!Array<!proto.viam.common.v1.GeoObstacle>} */
|
|
35930
|
+
e.Message.getRepeatedWrapperField(this, u.GeoObstacle, 1)
|
|
35931
|
+
);
|
|
35932
|
+
}, proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.setObstaclesList = function(o) {
|
|
35933
|
+
return e.Message.setRepeatedWrapperField(this, 1, o);
|
|
35934
|
+
}, proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.addObstacles = function(o, r) {
|
|
35935
|
+
return e.Message.addToRepeatedWrapperField(this, 1, o, proto.viam.common.v1.GeoObstacle, r);
|
|
35936
|
+
}, proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.clearObstaclesList = function() {
|
|
35937
|
+
return this.setObstaclesList([]);
|
|
35733
35938
|
}, proto.viam.service.navigation.v1.Mode = {
|
|
35734
35939
|
MODE_UNSPECIFIED: 0,
|
|
35735
35940
|
MODE_MANUAL: 1,
|
|
@@ -35789,6 +35994,14 @@ NavigationService.RemoveWaypoint = {
|
|
|
35789
35994
|
requestType: service_navigation_v1_navigation_pb.RemoveWaypointRequest,
|
|
35790
35995
|
responseType: service_navigation_v1_navigation_pb.RemoveWaypointResponse
|
|
35791
35996
|
};
|
|
35997
|
+
NavigationService.GetObstacles = {
|
|
35998
|
+
methodName: "GetObstacles",
|
|
35999
|
+
service: NavigationService,
|
|
36000
|
+
requestStream: !1,
|
|
36001
|
+
responseStream: !1,
|
|
36002
|
+
requestType: service_navigation_v1_navigation_pb.GetObstaclesRequest,
|
|
36003
|
+
responseType: service_navigation_v1_navigation_pb.GetObstaclesResponse
|
|
36004
|
+
};
|
|
35792
36005
|
NavigationService.DoCommand = {
|
|
35793
36006
|
methodName: "DoCommand",
|
|
35794
36007
|
service: NavigationService,
|
|
@@ -35938,6 +36151,29 @@ NavigationServiceClient.prototype.removeWaypoint = function t(e, s, i) {
|
|
|
35938
36151
|
}
|
|
35939
36152
|
};
|
|
35940
36153
|
};
|
|
36154
|
+
NavigationServiceClient.prototype.getObstacles = function t(e, s, i) {
|
|
36155
|
+
arguments.length === 2 && (i = arguments[1]);
|
|
36156
|
+
var u = grpc$9.unary(NavigationService.GetObstacles, {
|
|
36157
|
+
request: e,
|
|
36158
|
+
host: this.serviceHost,
|
|
36159
|
+
metadata: s,
|
|
36160
|
+
transport: this.options.transport,
|
|
36161
|
+
debug: this.options.debug,
|
|
36162
|
+
onEnd: function(g) {
|
|
36163
|
+
if (i)
|
|
36164
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
36165
|
+
var p = new Error(g.statusMessage);
|
|
36166
|
+
p.code = g.status, p.metadata = g.trailers, i(p, null);
|
|
36167
|
+
} else
|
|
36168
|
+
i(null, g.message);
|
|
36169
|
+
}
|
|
36170
|
+
});
|
|
36171
|
+
return {
|
|
36172
|
+
cancel: function() {
|
|
36173
|
+
i = null, u.close();
|
|
36174
|
+
}
|
|
36175
|
+
};
|
|
36176
|
+
};
|
|
35941
36177
|
NavigationServiceClient.prototype.doCommand = function t(e, s, i) {
|
|
35942
36178
|
arguments.length === 2 && (i = arguments[1]);
|
|
35943
36179
|
var u = grpc$9.unary(NavigationService.DoCommand, {
|
|
@@ -39975,7 +40211,7 @@ class RobotClient extends EventDispatcher {
|
|
|
39975
40211
|
}), o;
|
|
39976
40212
|
}
|
|
39977
40213
|
}
|
|
39978
|
-
const isPosInt = (t) => !!(t > 0 && Number.isInteger(t)), isLocalConnection = (t) => t.includes("
|
|
40214
|
+
const isPosInt = (t) => !!(t > 0 && Number.isInteger(t)), isLocalConnection = (t) => t.includes("local"), dialDirect = async (t) => {
|
|
39979
40215
|
if (console.debug("dialing via gRPC..."), !isLocalConnection(t.host))
|
|
39980
40216
|
throw new Error(
|
|
39981
40217
|
`cannot dial "${t.host}" directly, please use a local url instead.`
|
|
@@ -40440,11 +40676,17 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40440
40676
|
var g = annotations_pb;
|
|
40441
40677
|
s.object.extend(proto, g);
|
|
40442
40678
|
var p = httpbody_pb;
|
|
40443
|
-
s.object.extend(proto, p), s.exportSymbol("proto.viam.component.camera.v1.DistortionParameters", null, i), s.exportSymbol("proto.viam.component.camera.v1.GetImageRequest", null, i), s.exportSymbol("proto.viam.component.camera.v1.GetImageResponse", null, i), s.exportSymbol("proto.viam.component.camera.v1.GetPointCloudRequest", null, i), s.exportSymbol("proto.viam.component.camera.v1.GetPointCloudResponse", null, i), s.exportSymbol("proto.viam.component.camera.v1.GetPropertiesRequest", null, i), s.exportSymbol("proto.viam.component.camera.v1.GetPropertiesResponse", null, i), s.exportSymbol("proto.viam.component.camera.v1.IntrinsicParameters", null, i), s.exportSymbol("proto.viam.component.camera.v1.Property", null, i), s.exportSymbol("proto.viam.component.camera.v1.RenderFrameRequest", null, i), s.exportSymbol("proto.viam.component.camera.v1.Webcam", null, i), s.exportSymbol("proto.viam.component.camera.v1.Webcams", null, i), proto.viam.component.camera.v1.GetImageRequest = function(o) {
|
|
40679
|
+
s.object.extend(proto, p), s.exportSymbol("proto.viam.component.camera.v1.DistortionParameters", null, i), s.exportSymbol("proto.viam.component.camera.v1.Format", null, i), s.exportSymbol("proto.viam.component.camera.v1.GetImageRequest", null, i), s.exportSymbol("proto.viam.component.camera.v1.GetImageResponse", null, i), s.exportSymbol("proto.viam.component.camera.v1.GetImagesRequest", null, i), s.exportSymbol("proto.viam.component.camera.v1.GetImagesResponse", null, i), s.exportSymbol("proto.viam.component.camera.v1.GetPointCloudRequest", null, i), s.exportSymbol("proto.viam.component.camera.v1.GetPointCloudResponse", null, i), s.exportSymbol("proto.viam.component.camera.v1.GetPropertiesRequest", null, i), s.exportSymbol("proto.viam.component.camera.v1.GetPropertiesResponse", null, i), s.exportSymbol("proto.viam.component.camera.v1.Image", null, i), s.exportSymbol("proto.viam.component.camera.v1.IntrinsicParameters", null, i), s.exportSymbol("proto.viam.component.camera.v1.Property", null, i), s.exportSymbol("proto.viam.component.camera.v1.RenderFrameRequest", null, i), s.exportSymbol("proto.viam.component.camera.v1.Webcam", null, i), s.exportSymbol("proto.viam.component.camera.v1.Webcams", null, i), proto.viam.component.camera.v1.GetImageRequest = function(o) {
|
|
40444
40680
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
40445
40681
|
}, s.inherits(proto.viam.component.camera.v1.GetImageRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.camera.v1.GetImageRequest.displayName = "proto.viam.component.camera.v1.GetImageRequest"), proto.viam.component.camera.v1.GetImageResponse = function(o) {
|
|
40446
40682
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
40447
|
-
}, s.inherits(proto.viam.component.camera.v1.GetImageResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.camera.v1.GetImageResponse.displayName = "proto.viam.component.camera.v1.GetImageResponse"), proto.viam.component.camera.v1.
|
|
40683
|
+
}, s.inherits(proto.viam.component.camera.v1.GetImageResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.camera.v1.GetImageResponse.displayName = "proto.viam.component.camera.v1.GetImageResponse"), proto.viam.component.camera.v1.GetImagesRequest = function(o) {
|
|
40684
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
40685
|
+
}, s.inherits(proto.viam.component.camera.v1.GetImagesRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.camera.v1.GetImagesRequest.displayName = "proto.viam.component.camera.v1.GetImagesRequest"), proto.viam.component.camera.v1.GetImagesResponse = function(o) {
|
|
40686
|
+
e.Message.initialize(this, o, 0, 500, proto.viam.component.camera.v1.GetImagesResponse.repeatedFields_, null);
|
|
40687
|
+
}, s.inherits(proto.viam.component.camera.v1.GetImagesResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.camera.v1.GetImagesResponse.displayName = "proto.viam.component.camera.v1.GetImagesResponse"), proto.viam.component.camera.v1.Image = function(o) {
|
|
40688
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
40689
|
+
}, s.inherits(proto.viam.component.camera.v1.Image, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.camera.v1.Image.displayName = "proto.viam.component.camera.v1.Image"), proto.viam.component.camera.v1.RenderFrameRequest = function(o) {
|
|
40448
40690
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
40449
40691
|
}, s.inherits(proto.viam.component.camera.v1.RenderFrameRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.camera.v1.RenderFrameRequest.displayName = "proto.viam.component.camera.v1.RenderFrameRequest"), proto.viam.component.camera.v1.GetPointCloudRequest = function(o) {
|
|
40450
40692
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
@@ -40600,6 +40842,211 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40600
40842
|
);
|
|
40601
40843
|
}, proto.viam.component.camera.v1.GetImageResponse.prototype.setImage = function(o) {
|
|
40602
40844
|
return e.Message.setProto3BytesField(this, 2, o);
|
|
40845
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.camera.v1.GetImagesRequest.prototype.toObject = function(o) {
|
|
40846
|
+
return proto.viam.component.camera.v1.GetImagesRequest.toObject(o, this);
|
|
40847
|
+
}, proto.viam.component.camera.v1.GetImagesRequest.toObject = function(o, r) {
|
|
40848
|
+
var n = {
|
|
40849
|
+
name: e.Message.getFieldWithDefault(r, 1, "")
|
|
40850
|
+
};
|
|
40851
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
40852
|
+
}), proto.viam.component.camera.v1.GetImagesRequest.deserializeBinary = function(o) {
|
|
40853
|
+
var r = new e.BinaryReader(o), n = new proto.viam.component.camera.v1.GetImagesRequest();
|
|
40854
|
+
return proto.viam.component.camera.v1.GetImagesRequest.deserializeBinaryFromReader(n, r);
|
|
40855
|
+
}, proto.viam.component.camera.v1.GetImagesRequest.deserializeBinaryFromReader = function(o, r) {
|
|
40856
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
40857
|
+
var n = r.getFieldNumber();
|
|
40858
|
+
switch (n) {
|
|
40859
|
+
case 1:
|
|
40860
|
+
var l = (
|
|
40861
|
+
/** @type {string} */
|
|
40862
|
+
r.readString()
|
|
40863
|
+
);
|
|
40864
|
+
o.setName(l);
|
|
40865
|
+
break;
|
|
40866
|
+
default:
|
|
40867
|
+
r.skipField();
|
|
40868
|
+
break;
|
|
40869
|
+
}
|
|
40870
|
+
}
|
|
40871
|
+
return o;
|
|
40872
|
+
}, proto.viam.component.camera.v1.GetImagesRequest.prototype.serializeBinary = function() {
|
|
40873
|
+
var o = new e.BinaryWriter();
|
|
40874
|
+
return proto.viam.component.camera.v1.GetImagesRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
40875
|
+
}, proto.viam.component.camera.v1.GetImagesRequest.serializeBinaryToWriter = function(o, r) {
|
|
40876
|
+
var n = void 0;
|
|
40877
|
+
n = o.getName(), n.length > 0 && r.writeString(
|
|
40878
|
+
1,
|
|
40879
|
+
n
|
|
40880
|
+
);
|
|
40881
|
+
}, proto.viam.component.camera.v1.GetImagesRequest.prototype.getName = function() {
|
|
40882
|
+
return (
|
|
40883
|
+
/** @type {string} */
|
|
40884
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
40885
|
+
);
|
|
40886
|
+
}, proto.viam.component.camera.v1.GetImagesRequest.prototype.setName = function(o) {
|
|
40887
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
40888
|
+
}, proto.viam.component.camera.v1.GetImagesResponse.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.component.camera.v1.GetImagesResponse.prototype.toObject = function(o) {
|
|
40889
|
+
return proto.viam.component.camera.v1.GetImagesResponse.toObject(o, this);
|
|
40890
|
+
}, proto.viam.component.camera.v1.GetImagesResponse.toObject = function(o, r) {
|
|
40891
|
+
var n, l = {
|
|
40892
|
+
imagesList: e.Message.toObjectList(
|
|
40893
|
+
r.getImagesList(),
|
|
40894
|
+
proto.viam.component.camera.v1.Image.toObject,
|
|
40895
|
+
o
|
|
40896
|
+
),
|
|
40897
|
+
responseMetadata: (n = r.getResponseMetadata()) && u.ResponseMetadata.toObject(o, n)
|
|
40898
|
+
};
|
|
40899
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
40900
|
+
}), proto.viam.component.camera.v1.GetImagesResponse.deserializeBinary = function(o) {
|
|
40901
|
+
var r = new e.BinaryReader(o), n = new proto.viam.component.camera.v1.GetImagesResponse();
|
|
40902
|
+
return proto.viam.component.camera.v1.GetImagesResponse.deserializeBinaryFromReader(n, r);
|
|
40903
|
+
}, proto.viam.component.camera.v1.GetImagesResponse.deserializeBinaryFromReader = function(o, r) {
|
|
40904
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
40905
|
+
var n = r.getFieldNumber();
|
|
40906
|
+
switch (n) {
|
|
40907
|
+
case 1:
|
|
40908
|
+
var l = new proto.viam.component.camera.v1.Image();
|
|
40909
|
+
r.readMessage(l, proto.viam.component.camera.v1.Image.deserializeBinaryFromReader), o.addImages(l);
|
|
40910
|
+
break;
|
|
40911
|
+
case 84260:
|
|
40912
|
+
var l = new u.ResponseMetadata();
|
|
40913
|
+
r.readMessage(l, u.ResponseMetadata.deserializeBinaryFromReader), o.setResponseMetadata(l);
|
|
40914
|
+
break;
|
|
40915
|
+
default:
|
|
40916
|
+
r.skipField();
|
|
40917
|
+
break;
|
|
40918
|
+
}
|
|
40919
|
+
}
|
|
40920
|
+
return o;
|
|
40921
|
+
}, proto.viam.component.camera.v1.GetImagesResponse.prototype.serializeBinary = function() {
|
|
40922
|
+
var o = new e.BinaryWriter();
|
|
40923
|
+
return proto.viam.component.camera.v1.GetImagesResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
40924
|
+
}, proto.viam.component.camera.v1.GetImagesResponse.serializeBinaryToWriter = function(o, r) {
|
|
40925
|
+
var n = void 0;
|
|
40926
|
+
n = o.getImagesList(), n.length > 0 && r.writeRepeatedMessage(
|
|
40927
|
+
1,
|
|
40928
|
+
n,
|
|
40929
|
+
proto.viam.component.camera.v1.Image.serializeBinaryToWriter
|
|
40930
|
+
), n = o.getResponseMetadata(), n != null && r.writeMessage(
|
|
40931
|
+
84260,
|
|
40932
|
+
n,
|
|
40933
|
+
u.ResponseMetadata.serializeBinaryToWriter
|
|
40934
|
+
);
|
|
40935
|
+
}, proto.viam.component.camera.v1.GetImagesResponse.prototype.getImagesList = function() {
|
|
40936
|
+
return (
|
|
40937
|
+
/** @type{!Array<!proto.viam.component.camera.v1.Image>} */
|
|
40938
|
+
e.Message.getRepeatedWrapperField(this, proto.viam.component.camera.v1.Image, 1)
|
|
40939
|
+
);
|
|
40940
|
+
}, proto.viam.component.camera.v1.GetImagesResponse.prototype.setImagesList = function(o) {
|
|
40941
|
+
return e.Message.setRepeatedWrapperField(this, 1, o);
|
|
40942
|
+
}, proto.viam.component.camera.v1.GetImagesResponse.prototype.addImages = function(o, r) {
|
|
40943
|
+
return e.Message.addToRepeatedWrapperField(this, 1, o, proto.viam.component.camera.v1.Image, r);
|
|
40944
|
+
}, proto.viam.component.camera.v1.GetImagesResponse.prototype.clearImagesList = function() {
|
|
40945
|
+
return this.setImagesList([]);
|
|
40946
|
+
}, proto.viam.component.camera.v1.GetImagesResponse.prototype.getResponseMetadata = function() {
|
|
40947
|
+
return (
|
|
40948
|
+
/** @type{?proto.viam.common.v1.ResponseMetadata} */
|
|
40949
|
+
e.Message.getWrapperField(this, u.ResponseMetadata, 84260)
|
|
40950
|
+
);
|
|
40951
|
+
}, proto.viam.component.camera.v1.GetImagesResponse.prototype.setResponseMetadata = function(o) {
|
|
40952
|
+
return e.Message.setWrapperField(this, 84260, o);
|
|
40953
|
+
}, proto.viam.component.camera.v1.GetImagesResponse.prototype.clearResponseMetadata = function() {
|
|
40954
|
+
return this.setResponseMetadata(void 0);
|
|
40955
|
+
}, proto.viam.component.camera.v1.GetImagesResponse.prototype.hasResponseMetadata = function() {
|
|
40956
|
+
return e.Message.getField(this, 84260) != null;
|
|
40957
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.camera.v1.Image.prototype.toObject = function(o) {
|
|
40958
|
+
return proto.viam.component.camera.v1.Image.toObject(o, this);
|
|
40959
|
+
}, proto.viam.component.camera.v1.Image.toObject = function(o, r) {
|
|
40960
|
+
var n = {
|
|
40961
|
+
sourceName: e.Message.getFieldWithDefault(r, 1, ""),
|
|
40962
|
+
format: e.Message.getFieldWithDefault(r, 2, 0),
|
|
40963
|
+
image: r.getImage_asB64()
|
|
40964
|
+
};
|
|
40965
|
+
return o && (n.$jspbMessageInstance = r), n;
|
|
40966
|
+
}), proto.viam.component.camera.v1.Image.deserializeBinary = function(o) {
|
|
40967
|
+
var r = new e.BinaryReader(o), n = new proto.viam.component.camera.v1.Image();
|
|
40968
|
+
return proto.viam.component.camera.v1.Image.deserializeBinaryFromReader(n, r);
|
|
40969
|
+
}, proto.viam.component.camera.v1.Image.deserializeBinaryFromReader = function(o, r) {
|
|
40970
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
40971
|
+
var n = r.getFieldNumber();
|
|
40972
|
+
switch (n) {
|
|
40973
|
+
case 1:
|
|
40974
|
+
var l = (
|
|
40975
|
+
/** @type {string} */
|
|
40976
|
+
r.readString()
|
|
40977
|
+
);
|
|
40978
|
+
o.setSourceName(l);
|
|
40979
|
+
break;
|
|
40980
|
+
case 2:
|
|
40981
|
+
var l = (
|
|
40982
|
+
/** @type {!proto.viam.component.camera.v1.Format} */
|
|
40983
|
+
r.readEnum()
|
|
40984
|
+
);
|
|
40985
|
+
o.setFormat(l);
|
|
40986
|
+
break;
|
|
40987
|
+
case 3:
|
|
40988
|
+
var l = (
|
|
40989
|
+
/** @type {!Uint8Array} */
|
|
40990
|
+
r.readBytes()
|
|
40991
|
+
);
|
|
40992
|
+
o.setImage(l);
|
|
40993
|
+
break;
|
|
40994
|
+
default:
|
|
40995
|
+
r.skipField();
|
|
40996
|
+
break;
|
|
40997
|
+
}
|
|
40998
|
+
}
|
|
40999
|
+
return o;
|
|
41000
|
+
}, proto.viam.component.camera.v1.Image.prototype.serializeBinary = function() {
|
|
41001
|
+
var o = new e.BinaryWriter();
|
|
41002
|
+
return proto.viam.component.camera.v1.Image.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
41003
|
+
}, proto.viam.component.camera.v1.Image.serializeBinaryToWriter = function(o, r) {
|
|
41004
|
+
var n = void 0;
|
|
41005
|
+
n = o.getSourceName(), n.length > 0 && r.writeString(
|
|
41006
|
+
1,
|
|
41007
|
+
n
|
|
41008
|
+
), n = o.getFormat(), n !== 0 && r.writeEnum(
|
|
41009
|
+
2,
|
|
41010
|
+
n
|
|
41011
|
+
), n = o.getImage_asU8(), n.length > 0 && r.writeBytes(
|
|
41012
|
+
3,
|
|
41013
|
+
n
|
|
41014
|
+
);
|
|
41015
|
+
}, proto.viam.component.camera.v1.Image.prototype.getSourceName = function() {
|
|
41016
|
+
return (
|
|
41017
|
+
/** @type {string} */
|
|
41018
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
41019
|
+
);
|
|
41020
|
+
}, proto.viam.component.camera.v1.Image.prototype.setSourceName = function(o) {
|
|
41021
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
41022
|
+
}, proto.viam.component.camera.v1.Image.prototype.getFormat = function() {
|
|
41023
|
+
return (
|
|
41024
|
+
/** @type {!proto.viam.component.camera.v1.Format} */
|
|
41025
|
+
e.Message.getFieldWithDefault(this, 2, 0)
|
|
41026
|
+
);
|
|
41027
|
+
}, proto.viam.component.camera.v1.Image.prototype.setFormat = function(o) {
|
|
41028
|
+
return e.Message.setProto3EnumField(this, 2, o);
|
|
41029
|
+
}, proto.viam.component.camera.v1.Image.prototype.getImage = function() {
|
|
41030
|
+
return (
|
|
41031
|
+
/** @type {string} */
|
|
41032
|
+
e.Message.getFieldWithDefault(this, 3, "")
|
|
41033
|
+
);
|
|
41034
|
+
}, proto.viam.component.camera.v1.Image.prototype.getImage_asB64 = function() {
|
|
41035
|
+
return (
|
|
41036
|
+
/** @type {string} */
|
|
41037
|
+
e.Message.bytesAsB64(
|
|
41038
|
+
this.getImage()
|
|
41039
|
+
)
|
|
41040
|
+
);
|
|
41041
|
+
}, proto.viam.component.camera.v1.Image.prototype.getImage_asU8 = function() {
|
|
41042
|
+
return (
|
|
41043
|
+
/** @type {!Uint8Array} */
|
|
41044
|
+
e.Message.bytesAsU8(
|
|
41045
|
+
this.getImage()
|
|
41046
|
+
)
|
|
41047
|
+
);
|
|
41048
|
+
}, proto.viam.component.camera.v1.Image.prototype.setImage = function(o) {
|
|
41049
|
+
return e.Message.setProto3BytesField(this, 3, o);
|
|
40603
41050
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.camera.v1.RenderFrameRequest.prototype.toObject = function(o) {
|
|
40604
41051
|
return proto.viam.component.camera.v1.RenderFrameRequest.toObject(o, this);
|
|
40605
41052
|
}, proto.viam.component.camera.v1.RenderFrameRequest.toObject = function(o, r) {
|
|
@@ -41388,6 +41835,12 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
41388
41835
|
return e.Message.addToRepeatedField(this, 2, o, r);
|
|
41389
41836
|
}, proto.viam.component.camera.v1.DistortionParameters.prototype.clearParametersList = function() {
|
|
41390
41837
|
return this.setParametersList([]);
|
|
41838
|
+
}, proto.viam.component.camera.v1.Format = {
|
|
41839
|
+
FORMAT_UNSPECIFIED: 0,
|
|
41840
|
+
FORMAT_RAW_RGBA: 1,
|
|
41841
|
+
FORMAT_RAW_DEPTH: 2,
|
|
41842
|
+
FORMAT_JPEG: 3,
|
|
41843
|
+
FORMAT_PNG: 4
|
|
41391
41844
|
}, s.object.extend(t, proto.viam.component.camera.v1);
|
|
41392
41845
|
})(camera_pb);
|
|
41393
41846
|
var component_camera_v1_camera_pb = camera_pb, common_v1_common_pb$2 = common_pb, google_api_httpbody_pb = httpbody_pb, grpc$3 = grpcWebClient_umdExports.grpc, CameraService = function() {
|
|
@@ -41403,6 +41856,14 @@ CameraService.GetImage = {
|
|
|
41403
41856
|
requestType: component_camera_v1_camera_pb.GetImageRequest,
|
|
41404
41857
|
responseType: component_camera_v1_camera_pb.GetImageResponse
|
|
41405
41858
|
};
|
|
41859
|
+
CameraService.GetImages = {
|
|
41860
|
+
methodName: "GetImages",
|
|
41861
|
+
service: CameraService,
|
|
41862
|
+
requestStream: !1,
|
|
41863
|
+
responseStream: !1,
|
|
41864
|
+
requestType: component_camera_v1_camera_pb.GetImagesRequest,
|
|
41865
|
+
responseType: component_camera_v1_camera_pb.GetImagesResponse
|
|
41866
|
+
};
|
|
41406
41867
|
CameraService.RenderFrame = {
|
|
41407
41868
|
methodName: "RenderFrame",
|
|
41408
41869
|
service: CameraService,
|
|
@@ -41469,6 +41930,29 @@ CameraServiceClient.prototype.getImage = function t(e, s, i) {
|
|
|
41469
41930
|
}
|
|
41470
41931
|
};
|
|
41471
41932
|
};
|
|
41933
|
+
CameraServiceClient.prototype.getImages = function t(e, s, i) {
|
|
41934
|
+
arguments.length === 2 && (i = arguments[1]);
|
|
41935
|
+
var u = grpc$3.unary(CameraService.GetImages, {
|
|
41936
|
+
request: e,
|
|
41937
|
+
host: this.serviceHost,
|
|
41938
|
+
metadata: s,
|
|
41939
|
+
transport: this.options.transport,
|
|
41940
|
+
debug: this.options.debug,
|
|
41941
|
+
onEnd: function(g) {
|
|
41942
|
+
if (i)
|
|
41943
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
41944
|
+
var p = new Error(g.statusMessage);
|
|
41945
|
+
p.code = g.status, p.metadata = g.trailers, i(p, null);
|
|
41946
|
+
} else
|
|
41947
|
+
i(null, g.message);
|
|
41948
|
+
}
|
|
41949
|
+
});
|
|
41950
|
+
return {
|
|
41951
|
+
cancel: function() {
|
|
41952
|
+
i = null, u.close();
|
|
41953
|
+
}
|
|
41954
|
+
};
|
|
41955
|
+
};
|
|
41472
41956
|
CameraServiceClient.prototype.renderFrame = function t(e, s, i) {
|
|
41473
41957
|
arguments.length === 2 && (i = arguments[1]);
|
|
41474
41958
|
var u = grpc$3.unary(CameraService.RenderFrame, {
|
|
@@ -42849,7 +43333,7 @@ class ServoClient {
|
|
|
42849
43333
|
return doCommandFromClient(s, this.name, e, this.options);
|
|
42850
43334
|
}
|
|
42851
43335
|
}
|
|
42852
|
-
const version = "0.2.
|
|
43336
|
+
const version = "0.2.4";
|
|
42853
43337
|
export {
|
|
42854
43338
|
ArmClient,
|
|
42855
43339
|
BaseClient,
|