@viamrobotics/sdk 0.0.42 → 0.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/dist/components/base/Base.d.ts +2 -0
- package/dist/components/base/Client.d.ts +1 -0
- package/dist/components/encoder/Client.d.ts +19 -0
- package/dist/components/encoder/Encoder.d.ts +18 -0
- package/dist/components/encoder.d.ts +2 -0
- package/dist/components/motor/Client.d.ts +1 -0
- package/dist/components/motor/Motor.d.ts +2 -0
- package/dist/gen/component/camera/v1/camera_pb.d.ts +8 -0
- package/dist/main.d.ts +13 -1
- package/dist/main.es.js +1284 -494
- package/dist/main.umd.js +5 -5
- package/dist/robot/Client.d.ts +3 -0
- package/dist/robot/dial.d.ts +17 -2
- package/dist/robot.d.ts +1 -1
- package/dist/services/{datamanager → data-manager}/client.d.ts +2 -2
- package/dist/services/{datamanager/datamanager.d.ts → data-manager/data-manager.d.ts} +1 -1
- package/dist/services/data-manager.d.ts +2 -0
- package/dist/types.d.ts +5 -0
- package/package.json +2 -2
package/dist/main.es.js
CHANGED
|
@@ -12626,9 +12626,9 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12626
12626
|
return f.slice(b, h);
|
|
12627
12627
|
var R = f.length;
|
|
12628
12628
|
h !== void 0 && (R = h);
|
|
12629
|
-
for (var
|
|
12630
|
-
|
|
12631
|
-
return
|
|
12629
|
+
for (var _ = new Uint8Array(R - b), P = 0, D = b; D < R; D++)
|
|
12630
|
+
_[P++] = f[D];
|
|
12631
|
+
return _;
|
|
12632
12632
|
}
|
|
12633
12633
|
g.decodeASCII = l, g.encodeASCII = function(f) {
|
|
12634
12634
|
for (var b = new Uint8Array(f.length), h = 0; h !== f.length; ++h) {
|
|
@@ -12648,27 +12648,27 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12648
12648
|
return f.prototype.parse = function(b, h) {
|
|
12649
12649
|
if (b.length === 0 && h)
|
|
12650
12650
|
return [];
|
|
12651
|
-
var R,
|
|
12651
|
+
var R, _ = [];
|
|
12652
12652
|
if (this.buffer == null)
|
|
12653
12653
|
this.buffer = b, this.position = 0;
|
|
12654
12654
|
else if (this.position === this.buffer.byteLength)
|
|
12655
12655
|
this.buffer = b, this.position = 0;
|
|
12656
12656
|
else {
|
|
12657
|
-
var P = this.buffer.byteLength - this.position, D = new Uint8Array(P + b.byteLength),
|
|
12658
|
-
D.set(
|
|
12657
|
+
var P = this.buffer.byteLength - this.position, D = new Uint8Array(P + b.byteLength), I = v(this.buffer, this.position);
|
|
12658
|
+
D.set(I, 0);
|
|
12659
12659
|
var z = new Uint8Array(b);
|
|
12660
12660
|
D.set(z, P), this.buffer = D, this.position = 0;
|
|
12661
12661
|
}
|
|
12662
12662
|
for (; ; ) {
|
|
12663
12663
|
if (!m(this.buffer, this.position, 5))
|
|
12664
|
-
return
|
|
12665
|
-
var x = v(this.buffer, this.position, this.position + 5),
|
|
12664
|
+
return _;
|
|
12665
|
+
var x = v(this.buffer, this.position, this.position + 5), q = new DataView(x.buffer, x.byteOffset, x.byteLength), k = d(q);
|
|
12666
12666
|
if (!m(this.buffer, this.position, 5 + k))
|
|
12667
|
-
return
|
|
12667
|
+
return _;
|
|
12668
12668
|
var W = v(this.buffer, this.position + 5, this.position + 5 + k);
|
|
12669
|
-
if (this.position += 5 + k, c(
|
|
12670
|
-
return
|
|
12671
|
-
|
|
12669
|
+
if (this.position += 5 + k, c(q))
|
|
12670
|
+
return _.push({ chunkType: o.TRAILERS, trailers: (R = W, new r.Metadata(l(R))) }), _;
|
|
12671
|
+
_.push({ chunkType: o.MESSAGE, data: W });
|
|
12672
12672
|
}
|
|
12673
12673
|
}, f;
|
|
12674
12674
|
}();
|
|
@@ -12733,9 +12733,9 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12733
12733
|
this.props.debug && l.debug("onHeaders.gRPCStatus", h);
|
|
12734
12734
|
var R = h && h >= 0 ? h : i.httpStatusToCode(b);
|
|
12735
12735
|
this.props.debug && l.debug("onHeaders.code", R);
|
|
12736
|
-
var
|
|
12737
|
-
if (this.props.debug && l.debug("onHeaders.gRPCMessage",
|
|
12738
|
-
var P = this.decodeGRPCStatus(
|
|
12736
|
+
var _ = f.get("grpc-message") || [];
|
|
12737
|
+
if (this.props.debug && l.debug("onHeaders.gRPCMessage", _), this.rawOnHeaders(f), R !== i.Code.OK) {
|
|
12738
|
+
var P = this.decodeGRPCStatus(_[0]);
|
|
12739
12739
|
this.rawOnError(R, P, f);
|
|
12740
12740
|
}
|
|
12741
12741
|
}
|
|
@@ -12752,8 +12752,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12752
12752
|
}
|
|
12753
12753
|
h.forEach(function(R) {
|
|
12754
12754
|
if (R.chunkType === r.ChunkType.MESSAGE) {
|
|
12755
|
-
var
|
|
12756
|
-
b.rawOnMessage(
|
|
12755
|
+
var _ = b.methodDefinition.responseType.deserializeBinary(R.data);
|
|
12756
|
+
b.rawOnMessage(_);
|
|
12757
12757
|
} else
|
|
12758
12758
|
R.chunkType === r.ChunkType.TRAILERS && (b.responseHeaders ? (b.responseTrailers = new o.Metadata(R.trailers), b.props.debug && l.debug("onChunk.trailers", b.responseTrailers)) : (b.responseHeaders = new o.Metadata(R.trailers), b.rawOnHeaders(b.responseHeaders)));
|
|
12759
12759
|
});
|
|
@@ -12771,10 +12771,10 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12771
12771
|
} else {
|
|
12772
12772
|
if (this.responseHeaders === void 0)
|
|
12773
12773
|
return void this.rawOnError(i.Code.Unknown, "Response closed without headers");
|
|
12774
|
-
var R = v(this.responseHeaders),
|
|
12775
|
-
if (this.props.debug && l.debug("grpc.headers only response ", R,
|
|
12774
|
+
var R = v(this.responseHeaders), _ = this.responseHeaders.get("grpc-message");
|
|
12775
|
+
if (this.props.debug && l.debug("grpc.headers only response ", R, _), R === null)
|
|
12776
12776
|
return void this.rawOnEnd(i.Code.Unknown, "Response closed without grpc-status (Headers only)", this.responseHeaders);
|
|
12777
|
-
var P = this.decodeGRPCStatus(
|
|
12777
|
+
var P = this.decodeGRPCStatus(_[0]);
|
|
12778
12778
|
this.rawOnEnd(R, P, this.responseHeaders);
|
|
12779
12779
|
}
|
|
12780
12780
|
}, y.prototype.decodeGRPCStatus = function(f) {
|
|
@@ -12787,10 +12787,10 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12787
12787
|
}
|
|
12788
12788
|
}, y.prototype.rawOnEnd = function(f, b, h) {
|
|
12789
12789
|
var R = this;
|
|
12790
|
-
this.props.debug && l.debug("rawOnEnd", f, b, h), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(
|
|
12790
|
+
this.props.debug && l.debug("rawOnEnd", f, b, h), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(_) {
|
|
12791
12791
|
if (!R.closed)
|
|
12792
12792
|
try {
|
|
12793
|
-
|
|
12793
|
+
_(f, b, h);
|
|
12794
12794
|
} catch (P) {
|
|
12795
12795
|
setTimeout(function() {
|
|
12796
12796
|
throw P;
|
|
@@ -12809,10 +12809,10 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12809
12809
|
});
|
|
12810
12810
|
}, y.prototype.rawOnError = function(f, b, h) {
|
|
12811
12811
|
var R = this;
|
|
12812
|
-
h === void 0 && (h = new o.Metadata()), this.props.debug && l.debug("rawOnError", f, b), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(
|
|
12812
|
+
h === void 0 && (h = new o.Metadata()), this.props.debug && l.debug("rawOnError", f, b), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(_) {
|
|
12813
12813
|
if (!R.closed)
|
|
12814
12814
|
try {
|
|
12815
|
-
|
|
12815
|
+
_(f, b, h);
|
|
12816
12816
|
} catch (P) {
|
|
12817
12817
|
setTimeout(function() {
|
|
12818
12818
|
throw P;
|
|
@@ -12995,8 +12995,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12995
12995
|
return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(h, R) {
|
|
12996
12996
|
h.__proto__ = R;
|
|
12997
12997
|
} || function(h, R) {
|
|
12998
|
-
for (var
|
|
12999
|
-
Object.prototype.hasOwnProperty.call(R,
|
|
12998
|
+
for (var _ in R)
|
|
12999
|
+
Object.prototype.hasOwnProperty.call(R, _) && (h[_] = R[_]);
|
|
13000
13000
|
})(f, b);
|
|
13001
13001
|
}, function(f, b) {
|
|
13002
13002
|
function h() {
|
|
@@ -13036,10 +13036,10 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13036
13036
|
var h = this;
|
|
13037
13037
|
this.metadata = b;
|
|
13038
13038
|
var R = new XMLHttpRequest();
|
|
13039
|
-
this.xhr = R, R.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(
|
|
13040
|
-
R.setRequestHeader(
|
|
13041
|
-
}), R.withCredentials = !!this.init.withCredentials, R.addEventListener("readystatechange", this.onStateChange.bind(this)), R.addEventListener("progress", this.onProgressEvent.bind(this)), R.addEventListener("loadend", this.onLoadEvent.bind(this)), R.addEventListener("error", function(
|
|
13042
|
-
h.options.debug && l.debug("XHR.error",
|
|
13039
|
+
this.xhr = R, R.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(_, P) {
|
|
13040
|
+
R.setRequestHeader(_, P.join(", "));
|
|
13041
|
+
}), R.withCredentials = !!this.init.withCredentials, R.addEventListener("readystatechange", this.onStateChange.bind(this)), R.addEventListener("progress", this.onProgressEvent.bind(this)), R.addEventListener("loadend", this.onLoadEvent.bind(this)), R.addEventListener("error", function(_) {
|
|
13042
|
+
h.options.debug && l.debug("XHR.error", _), h.options.onEnd(_.error);
|
|
13043
13043
|
});
|
|
13044
13044
|
}, f.prototype.configureXhr = function() {
|
|
13045
13045
|
this.xhr.responseType = "text", this.xhr.overrideMimeType("text/plain; charset=x-user-defined");
|
|
@@ -13069,8 +13069,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13069
13069
|
}
|
|
13070
13070
|
function y(f) {
|
|
13071
13071
|
for (var b = new Uint8Array(f.length), h = 0, R = 0; R < f.length; R++) {
|
|
13072
|
-
var
|
|
13073
|
-
b[h++] = 255 &
|
|
13072
|
+
var _ = String.prototype.codePointAt ? f.codePointAt(R) : v(f, R);
|
|
13073
|
+
b[h++] = 255 & _;
|
|
13074
13074
|
}
|
|
13075
13075
|
return b;
|
|
13076
13076
|
}
|
|
@@ -13137,8 +13137,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13137
13137
|
}, start: function(b) {
|
|
13138
13138
|
(m = new WebSocket(v, ["grpc-websockets"])).binaryType = "arraybuffer", m.onopen = function() {
|
|
13139
13139
|
var h;
|
|
13140
|
-
d.debug && r.debug("websocketRequest.onopen"), m.send((h = "", b.forEach(function(R,
|
|
13141
|
-
h += R + ": " +
|
|
13140
|
+
d.debug && r.debug("websocketRequest.onopen"), m.send((h = "", b.forEach(function(R, _) {
|
|
13141
|
+
h += R + ": " + _.join(", ") + `\r
|
|
13142
13142
|
`;
|
|
13143
13143
|
}), i.encodeASCII(h))), y.forEach(function(R) {
|
|
13144
13144
|
f(R);
|
|
@@ -13826,19 +13826,19 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13826
13826
|
else if (this.position === this.buffer.byteLength)
|
|
13827
13827
|
this.buffer = v, this.position = 0;
|
|
13828
13828
|
else {
|
|
13829
|
-
var h = this.buffer.byteLength - this.position, R = new Uint8Array(h + v.byteLength),
|
|
13830
|
-
R.set(
|
|
13829
|
+
var h = this.buffer.byteLength - this.position, R = new Uint8Array(h + v.byteLength), _ = c(this.buffer, this.position);
|
|
13830
|
+
R.set(_, 0);
|
|
13831
13831
|
var P = new Uint8Array(v);
|
|
13832
13832
|
R.set(P, h), this.buffer = R, this.position = 0;
|
|
13833
13833
|
}
|
|
13834
13834
|
for (; ; ) {
|
|
13835
13835
|
if (!l(this.buffer, this.position, 5))
|
|
13836
13836
|
return b;
|
|
13837
|
-
var D = c(this.buffer, this.position, this.position + 5),
|
|
13837
|
+
var D = c(this.buffer, this.position, this.position + 5), I = new DataView(D.buffer, D.byteOffset, D.byteLength), z = i(I);
|
|
13838
13838
|
if (!l(this.buffer, this.position, 5 + z))
|
|
13839
13839
|
return b;
|
|
13840
13840
|
var x = c(this.buffer, this.position + 5, this.position + 5 + z);
|
|
13841
|
-
if (this.position += 5 + z, r(
|
|
13841
|
+
if (this.position += 5 + z, r(I))
|
|
13842
13842
|
return b.push({ chunkType: u.TRAILERS, trailers: (f = x, new g.Metadata(o(f))) }), b;
|
|
13843
13843
|
b.push({ chunkType: u.MESSAGE, data: x });
|
|
13844
13844
|
}
|
|
@@ -20367,12 +20367,12 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20367
20367
|
h ? (y = h.getCode(), f = h.getMessage(), b.set("grpc-status", "".concat(h.getCode())), f !== void 0 && b.set("grpc-message", h.getMessage())) : (y = 0, b.set("grpc-status", "0"), f = "");
|
|
20368
20368
|
var R = function(P) {
|
|
20369
20369
|
var D = "";
|
|
20370
|
-
return P.forEach(function(
|
|
20371
|
-
D += "".concat(
|
|
20370
|
+
return P.forEach(function(I, z) {
|
|
20371
|
+
D += "".concat(I, ": ").concat(z.join(", "), `\r
|
|
20372
20372
|
`);
|
|
20373
20373
|
}), i(D);
|
|
20374
|
-
}(b),
|
|
20375
|
-
new DataView(
|
|
20374
|
+
}(b), _ = new ArrayBuffer(R.length + 5);
|
|
20375
|
+
new DataView(_, 0, 1).setUint8(0, 128), new DataView(_, 1, 4).setUint32(0, R.length, !1), new Uint8Array(_, 5).set(R), this.opts.onChunk(new Uint8Array(_)), y !== 0 ? this.closeWithRecvError(new p.GRPCError(y, f)) : this.closeWithRecvError();
|
|
20376
20376
|
} }), m;
|
|
20377
20377
|
}(g.BaseStream);
|
|
20378
20378
|
function i(d) {
|
|
@@ -20405,49 +20405,49 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20405
20405
|
var n = s(655), u = s(37), g = s(138), p = s(758), o = s(743), r = s(34), i = s(165), l = s(400), c = s(982), d = s(958), m = s(93);
|
|
20406
20406
|
function v(h, R) {
|
|
20407
20407
|
return n.__awaiter(this, void 0, void 0, function() {
|
|
20408
|
-
var
|
|
20408
|
+
var _, P;
|
|
20409
20409
|
return n.__generator(this, function(D) {
|
|
20410
|
-
return b(R),
|
|
20411
|
-
return u.grpc.CrossBrowserHttpTransport({ withCredentials: !1 })(
|
|
20412
|
-
}, !R?.accessToken || R?.externalAuthAddress && R?.externalAuthToEntity ? R && (R?.credentials || R?.accessToken) ? [2, y(h,
|
|
20413
|
-
return new f(
|
|
20410
|
+
return b(R), _ = function(I) {
|
|
20411
|
+
return u.grpc.CrossBrowserHttpTransport({ withCredentials: !1 })(I);
|
|
20412
|
+
}, !R?.accessToken || R?.externalAuthAddress && R?.externalAuthToEntity ? R && (R?.credentials || R?.accessToken) ? [2, y(h, _, R)] : [2, _] : ((P = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(R.accessToken)), [2, function(I) {
|
|
20413
|
+
return new f(I, _, P);
|
|
20414
20414
|
}]);
|
|
20415
20415
|
});
|
|
20416
20416
|
});
|
|
20417
20417
|
}
|
|
20418
|
-
function y(h, R,
|
|
20418
|
+
function y(h, R, _) {
|
|
20419
20419
|
return n.__awaiter(this, void 0, void 0, function() {
|
|
20420
|
-
var P, D,
|
|
20420
|
+
var P, D, I, z = this;
|
|
20421
20421
|
return n.__generator(this, function(x) {
|
|
20422
20422
|
switch (x.label) {
|
|
20423
20423
|
case 0:
|
|
20424
20424
|
return P = "", D = function() {
|
|
20425
20425
|
return n.__awaiter(z, void 0, void 0, function() {
|
|
20426
|
-
var
|
|
20426
|
+
var q, k, W, X, S, M, O, E, F, T;
|
|
20427
20427
|
return n.__generator(this, function(w) {
|
|
20428
20428
|
switch (w.label) {
|
|
20429
20429
|
case 0:
|
|
20430
|
-
return P != "" ? [3, 5] : (
|
|
20430
|
+
return P != "" ? [3, 5] : (q = "", _.accessToken && _.accessToken !== "" ? [3, 2] : ((O = new i.AuthenticateRequest()).setEntity(_.authEntity ? _.authEntity : h.replace(/^(.*:\/\/)/, "")), (X = new i.Credentials()).setType((F = _.credentials) === null || F === void 0 ? void 0 : F.type), X.setPayload((T = _.credentials) === null || T === void 0 ? void 0 : T.payload), O.setCredentials(X), M = new Promise(function(C, j) {
|
|
20431
20431
|
k = C, W = j;
|
|
20432
|
-
}), u.grpc.invoke(l.AuthService.Authenticate, { request:
|
|
20433
|
-
|
|
20434
|
-
}, onEnd: function(C, j,
|
|
20432
|
+
}), u.grpc.invoke(l.AuthService.Authenticate, { request: O, host: _.externalAuthAddress ? _.externalAuthAddress : h, transport: R, onMessage: function(C) {
|
|
20433
|
+
q = C.getAccessToken();
|
|
20434
|
+
}, onEnd: function(C, j, G) {
|
|
20435
20435
|
C == u.grpc.Code.OK ? k(E) : W(j);
|
|
20436
20436
|
} }), [4, M]));
|
|
20437
20437
|
case 1:
|
|
20438
20438
|
return w.sent(), [3, 3];
|
|
20439
20439
|
case 2:
|
|
20440
|
-
|
|
20440
|
+
q = _.accessToken, w.label = 3;
|
|
20441
20441
|
case 3:
|
|
20442
|
-
return P =
|
|
20442
|
+
return P = q, _.externalAuthAddress && _.externalAuthToEntity ? ((S = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(P)), M = new Promise(function(C, j) {
|
|
20443
20443
|
k = C, W = j;
|
|
20444
|
-
}),
|
|
20445
|
-
|
|
20446
|
-
}, onEnd: function(C, j,
|
|
20444
|
+
}), q = "", (O = new i.AuthenticateToRequest()).setEntity(_.externalAuthToEntity), u.grpc.invoke(l.ExternalAuthService.AuthenticateTo, { request: O, host: _.externalAuthAddress, transport: R, metadata: S, onMessage: function(C) {
|
|
20445
|
+
q = C.getAccessToken();
|
|
20446
|
+
}, onEnd: function(C, j, G) {
|
|
20447
20447
|
C == u.grpc.Code.OK ? k(S) : W(j);
|
|
20448
20448
|
} }), [4, M]) : [3, 5];
|
|
20449
20449
|
case 4:
|
|
20450
|
-
w.sent(), P =
|
|
20450
|
+
w.sent(), P = q, w.label = 5;
|
|
20451
20451
|
case 5:
|
|
20452
20452
|
return (E = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(P)), [2, E];
|
|
20453
20453
|
}
|
|
@@ -20455,8 +20455,8 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20455
20455
|
});
|
|
20456
20456
|
}, [4, D()];
|
|
20457
20457
|
case 1:
|
|
20458
|
-
return
|
|
20459
|
-
return new f(
|
|
20458
|
+
return I = x.sent(), [2, function(q) {
|
|
20459
|
+
return new f(q, R, I);
|
|
20460
20460
|
}];
|
|
20461
20461
|
}
|
|
20462
20462
|
});
|
|
@@ -20464,12 +20464,12 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20464
20464
|
}
|
|
20465
20465
|
e.dialDirect = v;
|
|
20466
20466
|
var f = function() {
|
|
20467
|
-
function h(R,
|
|
20468
|
-
Object.defineProperty(this, "opts", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "transport", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "extraMetadata", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.opts = R, this.extraMetadata = P, this.transport =
|
|
20467
|
+
function h(R, _, P) {
|
|
20468
|
+
Object.defineProperty(this, "opts", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "transport", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "extraMetadata", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.opts = R, this.extraMetadata = P, this.transport = _(R);
|
|
20469
20469
|
}
|
|
20470
20470
|
return Object.defineProperty(h.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function(R) {
|
|
20471
|
-
this.extraMetadata.forEach(function(
|
|
20472
|
-
R.set(
|
|
20471
|
+
this.extraMetadata.forEach(function(_, P) {
|
|
20472
|
+
R.set(_, P);
|
|
20473
20473
|
}), this.transport.start(R);
|
|
20474
20474
|
} }), Object.defineProperty(h.prototype, "sendMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(R) {
|
|
20475
20475
|
this.transport.sendMessage(R);
|
|
@@ -20504,44 +20504,44 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20504
20504
|
}
|
|
20505
20505
|
}
|
|
20506
20506
|
}
|
|
20507
|
-
e.dialWebRTC = function(h, R,
|
|
20508
|
-
var P, D,
|
|
20507
|
+
e.dialWebRTC = function(h, R, _) {
|
|
20508
|
+
var P, D, I, z, x, q, k;
|
|
20509
20509
|
return n.__awaiter(this, void 0, void 0, function() {
|
|
20510
|
-
var W, X, S, M,
|
|
20510
|
+
var W, X, S, M, O, E, F, T, w, C, j, G, B, N, H, Z, ee, re, se, ie, pe, ne, ue, ae, ge = this;
|
|
20511
20511
|
return n.__generator(this, function(J) {
|
|
20512
20512
|
switch (J.label) {
|
|
20513
20513
|
case 0:
|
|
20514
|
-
return b(
|
|
20514
|
+
return b(_), W = _?.webrtcOptions, [4, (0, m.newPeerConnectionForClient)(W !== void 0 && W.disableTrickleICE, W?.rtcConfig)];
|
|
20515
20515
|
case 1:
|
|
20516
|
-
X = J.sent(), S = X.pc, M = X.dc,
|
|
20516
|
+
X = J.sent(), S = X.pc, M = X.dc, O = !1, J.label = 2;
|
|
20517
20517
|
case 2:
|
|
20518
|
-
return J.trys.push([2, , 9, 10]), E =
|
|
20518
|
+
return J.trys.push([2, , 9, 10]), E = _, _ && (E = n.__assign({}, _), _.accessToken || (E.authEntity = (P = _?.webrtcOptions) === null || P === void 0 ? void 0 : P.signalingAuthEntity, E.authEntity || (E.externalAuthAddress ? E.authEntity = (D = _.externalAuthAddress) === null || D === void 0 ? void 0 : D.replace(/^(.*:\/\/)/, "") : E.authEntity = h.replace(/^(.*:\/\/)/, "")), E.credentials = (I = _?.webrtcOptions) === null || I === void 0 ? void 0 : I.signalingCredentials, E.accessToken = (z = _?.webrtcOptions) === null || z === void 0 ? void 0 : z.signalingAccessToken), E.externalAuthAddress = (x = _?.webrtcOptions) === null || x === void 0 ? void 0 : x.signalingExternalAuthAddress, E.externalAuthToEntity = (q = _?.webrtcOptions) === null || q === void 0 ? void 0 : q.signalingExternalAuthToEntity), [4, v(h, E)];
|
|
20519
20519
|
case 3:
|
|
20520
|
-
return F = J.sent(), T = u.grpc.client(d.SignalingService.Call, { host: h, transport: F }), w = "", C = !1, j = function(
|
|
20520
|
+
return F = J.sent(), T = u.grpc.client(d.SignalingService.Call, { host: h, transport: F }), w = "", C = !1, j = function(L) {
|
|
20521
20521
|
if (!C) {
|
|
20522
20522
|
C = !0;
|
|
20523
20523
|
var A = new c.CallUpdateRequest();
|
|
20524
20524
|
A.setUuid(w);
|
|
20525
20525
|
var V = new r.Status();
|
|
20526
|
-
V.setCode(o.Code.UNKNOWN), V.setMessage(
|
|
20526
|
+
V.setCode(o.Code.UNKNOWN), V.setMessage(L), A.setError(V), u.grpc.unary(d.SignalingService.CallUpdate, { request: A, metadata: { "rpc-host": R }, host: h, transport: F, onEnd: function($) {
|
|
20527
20527
|
var U = $.status, Y = $.statusMessage, Q = $.message;
|
|
20528
20528
|
U === u.grpc.Code.OK && Q || console.error(Y);
|
|
20529
20529
|
} });
|
|
20530
20530
|
}
|
|
20531
|
-
},
|
|
20531
|
+
}, G = function() {
|
|
20532
20532
|
if (!C) {
|
|
20533
20533
|
C = !0;
|
|
20534
|
-
var
|
|
20535
|
-
|
|
20534
|
+
var L = new c.CallUpdateRequest();
|
|
20535
|
+
L.setUuid(w), L.setDone(!0), u.grpc.unary(d.SignalingService.CallUpdate, { request: L, metadata: { "rpc-host": R }, host: h, transport: F, onEnd: function(A) {
|
|
20536
20536
|
var V = A.status, $ = A.statusMessage, U = A.message;
|
|
20537
20537
|
V === u.grpc.Code.OK && U || console.error($);
|
|
20538
20538
|
} });
|
|
20539
20539
|
}
|
|
20540
|
-
}, N = new Promise(function(
|
|
20541
|
-
B =
|
|
20540
|
+
}, N = new Promise(function(L) {
|
|
20541
|
+
B = L;
|
|
20542
20542
|
}), H = !1, W?.disableTrickleICE ? [3, 6] : [4, S.createOffer()];
|
|
20543
20543
|
case 4:
|
|
20544
|
-
return Z = J.sent(), ee = !1, S.onicecandidate = function(
|
|
20544
|
+
return Z = J.sent(), ee = !1, S.onicecandidate = function(L) {
|
|
20545
20545
|
return n.__awaiter(ge, void 0, void 0, function() {
|
|
20546
20546
|
var A, V;
|
|
20547
20547
|
return n.__generator(this, function($) {
|
|
@@ -20549,7 +20549,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20549
20549
|
case 0:
|
|
20550
20550
|
return [4, N];
|
|
20551
20551
|
case 1:
|
|
20552
|
-
return $.sent(), H ? [2] :
|
|
20552
|
+
return $.sent(), H ? [2] : L.candidate === null ? (ee = !0, G(), [2]) : (U = L.candidate, (Y = new c.ICECandidate()).setCandidate(U.candidate), U.sdpMid && Y.setSdpMid(U.sdpMid), U.sdpMLineIndex && Y.setSdpmLineIndex(U.sdpMLineIndex), U.usernameFragment && Y.setUsernameFragment(U.usernameFragment), A = Y, (V = new c.CallUpdateRequest()).setUuid(w), V.setCandidate(A), u.grpc.unary(d.SignalingService.CallUpdate, { request: V, metadata: { "rpc-host": R }, host: h, transport: F, onEnd: function(Q) {
|
|
20553
20553
|
var te = Q.status, K = Q.statusMessage, oe = Q.message;
|
|
20554
20554
|
te === u.grpc.Code.OK && oe || H || ee || console.error("error sending candidate", K);
|
|
20555
20555
|
} }), [2]);
|
|
@@ -20561,13 +20561,13 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20561
20561
|
case 5:
|
|
20562
20562
|
J.sent(), J.label = 6;
|
|
20563
20563
|
case 6:
|
|
20564
|
-
return re = !1, T.onMessage(function(
|
|
20564
|
+
return re = !1, T.onMessage(function(L) {
|
|
20565
20565
|
return n.__awaiter(ge, void 0, void 0, function() {
|
|
20566
20566
|
var A, V, $, U, Y, Q;
|
|
20567
20567
|
return n.__generator(this, function(te) {
|
|
20568
20568
|
switch (te.label) {
|
|
20569
20569
|
case 0:
|
|
20570
|
-
return (A =
|
|
20570
|
+
return (A = L).hasInit() ? re ? (j("got init stage more than once"), [2]) : (V = A.getInit(), re = !0, w = A.getUuid(), $ = new RTCSessionDescription(JSON.parse(atob(V.getSdp()))), S.setRemoteDescription($), B(!0), W?.disableTrickleICE ? (H = !0, G(), [2]) : [3, 7]) : [3, 1];
|
|
20571
20571
|
case 1:
|
|
20572
20572
|
if (!A.hasUpdate())
|
|
20573
20573
|
return [3, 6];
|
|
@@ -20592,21 +20592,21 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20592
20592
|
var K, oe;
|
|
20593
20593
|
});
|
|
20594
20594
|
});
|
|
20595
|
-
}), pe = new Promise(function(
|
|
20596
|
-
se =
|
|
20597
|
-
}), T.onEnd(function(
|
|
20598
|
-
|
|
20595
|
+
}), pe = new Promise(function(L, A) {
|
|
20596
|
+
se = L, ie = A;
|
|
20597
|
+
}), T.onEnd(function(L, A, V) {
|
|
20598
|
+
L !== u.grpc.Code.OK ? A !== "Response closed without headers" ? (console.error(A), ie(A)) : ie(new p.ConnectionClosedError("failed to dial")) : se();
|
|
20599
20599
|
}), T.start({ "rpc-host": R }), ne = new c.CallRequest(), ue = btoa(JSON.stringify(S.localDescription)), ne.setSdp(ue), W && W.disableTrickleICE && ne.setDisableTrickle(W.disableTrickleICE), T.send(ne), (ae = new g.ClientChannel(S, M)).ready.then(function() {
|
|
20600
20600
|
return se();
|
|
20601
|
-
}).catch(function(
|
|
20602
|
-
return ie(
|
|
20601
|
+
}).catch(function(L) {
|
|
20602
|
+
return ie(L);
|
|
20603
20603
|
}), [4, pe];
|
|
20604
20604
|
case 7:
|
|
20605
20605
|
return J.sent(), [4, ae.ready];
|
|
20606
20606
|
case 8:
|
|
20607
|
-
return J.sent(), H = !0,
|
|
20607
|
+
return J.sent(), H = !0, G(), _?.externalAuthAddress || (k = _?.credentials) === null || k === void 0 || k.type, O = !0, [2, { transportFactory: ae.transportFactory(), peerConnection: S }];
|
|
20608
20608
|
case 9:
|
|
20609
|
-
return
|
|
20609
|
+
return O || S.close(), [7];
|
|
20610
20610
|
case 10:
|
|
20611
20611
|
return [2];
|
|
20612
20612
|
}
|
|
@@ -20708,79 +20708,79 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20708
20708
|
});
|
|
20709
20709
|
};
|
|
20710
20710
|
}, 655: (t, e, s) => {
|
|
20711
|
-
s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => P, __asyncGenerator: () =>
|
|
20711
|
+
s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => P, __asyncGenerator: () => _, __asyncValues: () => D, __await: () => R, __awaiter: () => l, __classPrivateFieldGet: () => k, __classPrivateFieldIn: () => X, __classPrivateFieldSet: () => W, __createBinding: () => d, __decorate: () => o, __exportStar: () => m, __extends: () => u, __generator: () => c, __importDefault: () => q, __importStar: () => x, __makeTemplateObject: () => I, __metadata: () => i, __param: () => r, __read: () => y, __rest: () => p, __spread: () => f, __spreadArray: () => h, __spreadArrays: () => b, __values: () => v });
|
|
20712
20712
|
var n = function(S, M) {
|
|
20713
|
-
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
20714
|
-
|
|
20715
|
-
} || function(
|
|
20713
|
+
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(O, E) {
|
|
20714
|
+
O.__proto__ = E;
|
|
20715
|
+
} || function(O, E) {
|
|
20716
20716
|
for (var F in E)
|
|
20717
|
-
Object.prototype.hasOwnProperty.call(E, F) && (
|
|
20717
|
+
Object.prototype.hasOwnProperty.call(E, F) && (O[F] = E[F]);
|
|
20718
20718
|
}, n(S, M);
|
|
20719
20719
|
};
|
|
20720
20720
|
function u(S, M) {
|
|
20721
20721
|
if (typeof M != "function" && M !== null)
|
|
20722
20722
|
throw new TypeError("Class extends value " + String(M) + " is not a constructor or null");
|
|
20723
|
-
function
|
|
20723
|
+
function O() {
|
|
20724
20724
|
this.constructor = S;
|
|
20725
20725
|
}
|
|
20726
|
-
n(S, M), S.prototype = M === null ? Object.create(M) : (
|
|
20726
|
+
n(S, M), S.prototype = M === null ? Object.create(M) : (O.prototype = M.prototype, new O());
|
|
20727
20727
|
}
|
|
20728
20728
|
var g = function() {
|
|
20729
20729
|
return g = Object.assign || function(S) {
|
|
20730
|
-
for (var M,
|
|
20731
|
-
for (var F in M = arguments[
|
|
20730
|
+
for (var M, O = 1, E = arguments.length; O < E; O++)
|
|
20731
|
+
for (var F in M = arguments[O])
|
|
20732
20732
|
Object.prototype.hasOwnProperty.call(M, F) && (S[F] = M[F]);
|
|
20733
20733
|
return S;
|
|
20734
20734
|
}, g.apply(this, arguments);
|
|
20735
20735
|
};
|
|
20736
20736
|
function p(S, M) {
|
|
20737
|
-
var
|
|
20737
|
+
var O = {};
|
|
20738
20738
|
for (var E in S)
|
|
20739
|
-
Object.prototype.hasOwnProperty.call(S, E) && M.indexOf(E) < 0 && (
|
|
20739
|
+
Object.prototype.hasOwnProperty.call(S, E) && M.indexOf(E) < 0 && (O[E] = S[E]);
|
|
20740
20740
|
if (S != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
20741
20741
|
var F = 0;
|
|
20742
20742
|
for (E = Object.getOwnPropertySymbols(S); F < E.length; F++)
|
|
20743
|
-
M.indexOf(E[F]) < 0 && Object.prototype.propertyIsEnumerable.call(S, E[F]) && (
|
|
20743
|
+
M.indexOf(E[F]) < 0 && Object.prototype.propertyIsEnumerable.call(S, E[F]) && (O[E[F]] = S[E[F]]);
|
|
20744
20744
|
}
|
|
20745
|
-
return
|
|
20745
|
+
return O;
|
|
20746
20746
|
}
|
|
20747
|
-
function o(S, M,
|
|
20748
|
-
var F, T = arguments.length, w = T < 3 ? M : E === null ? E = Object.getOwnPropertyDescriptor(M,
|
|
20747
|
+
function o(S, M, O, E) {
|
|
20748
|
+
var F, T = arguments.length, w = T < 3 ? M : E === null ? E = Object.getOwnPropertyDescriptor(M, O) : E;
|
|
20749
20749
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
20750
|
-
w = Reflect.decorate(S, M,
|
|
20750
|
+
w = Reflect.decorate(S, M, O, E);
|
|
20751
20751
|
else
|
|
20752
20752
|
for (var C = S.length - 1; C >= 0; C--)
|
|
20753
|
-
(F = S[C]) && (w = (T < 3 ? F(w) : T > 3 ? F(M,
|
|
20754
|
-
return T > 3 && w && Object.defineProperty(M,
|
|
20753
|
+
(F = S[C]) && (w = (T < 3 ? F(w) : T > 3 ? F(M, O, w) : F(M, O)) || w);
|
|
20754
|
+
return T > 3 && w && Object.defineProperty(M, O, w), w;
|
|
20755
20755
|
}
|
|
20756
20756
|
function r(S, M) {
|
|
20757
|
-
return function(
|
|
20758
|
-
M(
|
|
20757
|
+
return function(O, E) {
|
|
20758
|
+
M(O, E, S);
|
|
20759
20759
|
};
|
|
20760
20760
|
}
|
|
20761
20761
|
function i(S, M) {
|
|
20762
20762
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
20763
20763
|
return Reflect.metadata(S, M);
|
|
20764
20764
|
}
|
|
20765
|
-
function l(S, M,
|
|
20766
|
-
return new (
|
|
20767
|
-
function w(
|
|
20765
|
+
function l(S, M, O, E) {
|
|
20766
|
+
return new (O || (O = Promise))(function(F, T) {
|
|
20767
|
+
function w(G) {
|
|
20768
20768
|
try {
|
|
20769
|
-
j(E.next(
|
|
20769
|
+
j(E.next(G));
|
|
20770
20770
|
} catch (B) {
|
|
20771
20771
|
T(B);
|
|
20772
20772
|
}
|
|
20773
20773
|
}
|
|
20774
|
-
function C(
|
|
20774
|
+
function C(G) {
|
|
20775
20775
|
try {
|
|
20776
|
-
j(E.throw(
|
|
20776
|
+
j(E.throw(G));
|
|
20777
20777
|
} catch (B) {
|
|
20778
20778
|
T(B);
|
|
20779
20779
|
}
|
|
20780
20780
|
}
|
|
20781
|
-
function j(
|
|
20781
|
+
function j(G) {
|
|
20782
20782
|
var B;
|
|
20783
|
-
|
|
20783
|
+
G.done ? F(G.value) : (B = G.value, B instanceof O ? B : new O(function(N) {
|
|
20784
20784
|
N(B);
|
|
20785
20785
|
})).then(w, C);
|
|
20786
20786
|
}
|
|
@@ -20788,7 +20788,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20788
20788
|
});
|
|
20789
20789
|
}
|
|
20790
20790
|
function c(S, M) {
|
|
20791
|
-
var
|
|
20791
|
+
var O, E, F, T, w = { label: 0, sent: function() {
|
|
20792
20792
|
if (1 & F[0])
|
|
20793
20793
|
throw F[1];
|
|
20794
20794
|
return F[1];
|
|
@@ -20797,13 +20797,13 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20797
20797
|
return this;
|
|
20798
20798
|
}), T;
|
|
20799
20799
|
function C(j) {
|
|
20800
|
-
return function(
|
|
20800
|
+
return function(G) {
|
|
20801
20801
|
return function(B) {
|
|
20802
|
-
if (
|
|
20802
|
+
if (O)
|
|
20803
20803
|
throw new TypeError("Generator is already executing.");
|
|
20804
20804
|
for (; T && (T = 0, B[0] && (w = 0)), w; )
|
|
20805
20805
|
try {
|
|
20806
|
-
if (
|
|
20806
|
+
if (O = 1, E && (F = 2 & B[0] ? E.return : B[0] ? E.throw || ((F = E.return) && F.call(E), 0) : E.next) && !(F = F.call(E, B[1])).done)
|
|
20807
20807
|
return F;
|
|
20808
20808
|
switch (E = 0, F && (B = [2 & B[0], F.value]), B[0]) {
|
|
20809
20809
|
case 0:
|
|
@@ -20842,32 +20842,32 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20842
20842
|
} catch (N) {
|
|
20843
20843
|
B = [6, N], E = 0;
|
|
20844
20844
|
} finally {
|
|
20845
|
-
|
|
20845
|
+
O = F = 0;
|
|
20846
20846
|
}
|
|
20847
20847
|
if (5 & B[0])
|
|
20848
20848
|
throw B[1];
|
|
20849
20849
|
return { value: B[0] ? B[1] : void 0, done: !0 };
|
|
20850
|
-
}([j,
|
|
20850
|
+
}([j, G]);
|
|
20851
20851
|
};
|
|
20852
20852
|
}
|
|
20853
20853
|
}
|
|
20854
|
-
var d = Object.create ? function(S, M,
|
|
20855
|
-
E === void 0 && (E =
|
|
20856
|
-
var F = Object.getOwnPropertyDescriptor(M,
|
|
20854
|
+
var d = Object.create ? function(S, M, O, E) {
|
|
20855
|
+
E === void 0 && (E = O);
|
|
20856
|
+
var F = Object.getOwnPropertyDescriptor(M, O);
|
|
20857
20857
|
F && !("get" in F ? !M.__esModule : F.writable || F.configurable) || (F = { enumerable: !0, get: function() {
|
|
20858
|
-
return M[
|
|
20858
|
+
return M[O];
|
|
20859
20859
|
} }), Object.defineProperty(S, E, F);
|
|
20860
|
-
} : function(S, M,
|
|
20861
|
-
E === void 0 && (E =
|
|
20860
|
+
} : function(S, M, O, E) {
|
|
20861
|
+
E === void 0 && (E = O), S[E] = M[O];
|
|
20862
20862
|
};
|
|
20863
20863
|
function m(S, M) {
|
|
20864
|
-
for (var
|
|
20865
|
-
|
|
20864
|
+
for (var O in S)
|
|
20865
|
+
O === "default" || Object.prototype.hasOwnProperty.call(M, O) || d(M, S, O);
|
|
20866
20866
|
}
|
|
20867
20867
|
function v(S) {
|
|
20868
|
-
var M = typeof Symbol == "function" && Symbol.iterator,
|
|
20869
|
-
if (
|
|
20870
|
-
return
|
|
20868
|
+
var M = typeof Symbol == "function" && Symbol.iterator, O = M && S[M], E = 0;
|
|
20869
|
+
if (O)
|
|
20870
|
+
return O.call(S);
|
|
20871
20871
|
if (S && typeof S.length == "number")
|
|
20872
20872
|
return { next: function() {
|
|
20873
20873
|
return S && E >= S.length && (S = void 0), { value: S && S[E++], done: !S };
|
|
@@ -20875,10 +20875,10 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20875
20875
|
throw new TypeError(M ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
20876
20876
|
}
|
|
20877
20877
|
function y(S, M) {
|
|
20878
|
-
var
|
|
20879
|
-
if (!
|
|
20878
|
+
var O = typeof Symbol == "function" && S[Symbol.iterator];
|
|
20879
|
+
if (!O)
|
|
20880
20880
|
return S;
|
|
20881
|
-
var E, F, T =
|
|
20881
|
+
var E, F, T = O.call(S), w = [];
|
|
20882
20882
|
try {
|
|
20883
20883
|
for (; (M === void 0 || M-- > 0) && !(E = T.next()).done; )
|
|
20884
20884
|
w.push(E.value);
|
|
@@ -20886,7 +20886,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20886
20886
|
F = { error: C };
|
|
20887
20887
|
} finally {
|
|
20888
20888
|
try {
|
|
20889
|
-
E && !E.done && (
|
|
20889
|
+
E && !E.done && (O = T.return) && O.call(T);
|
|
20890
20890
|
} finally {
|
|
20891
20891
|
if (F)
|
|
20892
20892
|
throw F.error;
|
|
@@ -20900,16 +20900,16 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20900
20900
|
return S;
|
|
20901
20901
|
}
|
|
20902
20902
|
function b() {
|
|
20903
|
-
for (var S = 0, M = 0,
|
|
20903
|
+
for (var S = 0, M = 0, O = arguments.length; M < O; M++)
|
|
20904
20904
|
S += arguments[M].length;
|
|
20905
20905
|
var E = Array(S), F = 0;
|
|
20906
|
-
for (M = 0; M <
|
|
20906
|
+
for (M = 0; M < O; M++)
|
|
20907
20907
|
for (var T = arguments[M], w = 0, C = T.length; w < C; w++, F++)
|
|
20908
20908
|
E[F] = T[w];
|
|
20909
20909
|
return E;
|
|
20910
20910
|
}
|
|
20911
|
-
function h(S, M,
|
|
20912
|
-
if (
|
|
20911
|
+
function h(S, M, O) {
|
|
20912
|
+
if (O || arguments.length === 2)
|
|
20913
20913
|
for (var E, F = 0, T = M.length; F < T; F++)
|
|
20914
20914
|
!E && F in M || (E || (E = Array.prototype.slice.call(M, 0, F)), E[F] = M[F]);
|
|
20915
20915
|
return S.concat(E || Array.prototype.slice.call(M));
|
|
@@ -20917,10 +20917,10 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20917
20917
|
function R(S) {
|
|
20918
20918
|
return this instanceof R ? (this.v = S, this) : new R(S);
|
|
20919
20919
|
}
|
|
20920
|
-
function
|
|
20920
|
+
function _(S, M, O) {
|
|
20921
20921
|
if (!Symbol.asyncIterator)
|
|
20922
20922
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
20923
|
-
var E, F =
|
|
20923
|
+
var E, F = O.apply(S, M || []), T = [];
|
|
20924
20924
|
return E = {}, w("next"), w("throw"), w("return"), E[Symbol.asyncIterator] = function() {
|
|
20925
20925
|
return this;
|
|
20926
20926
|
}, E;
|
|
@@ -20933,7 +20933,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20933
20933
|
}
|
|
20934
20934
|
function C(N, H) {
|
|
20935
20935
|
try {
|
|
20936
|
-
(Z = F[N](H)).value instanceof R ? Promise.resolve(Z.value.v).then(j,
|
|
20936
|
+
(Z = F[N](H)).value instanceof R ? Promise.resolve(Z.value.v).then(j, G) : B(T[0][2], Z);
|
|
20937
20937
|
} catch (ee) {
|
|
20938
20938
|
B(T[0][3], ee);
|
|
20939
20939
|
}
|
|
@@ -20942,7 +20942,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20942
20942
|
function j(N) {
|
|
20943
20943
|
C("next", N);
|
|
20944
20944
|
}
|
|
20945
|
-
function
|
|
20945
|
+
function G(N) {
|
|
20946
20946
|
C("throw", N);
|
|
20947
20947
|
}
|
|
20948
20948
|
function B(N, H) {
|
|
@@ -20950,7 +20950,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20950
20950
|
}
|
|
20951
20951
|
}
|
|
20952
20952
|
function P(S) {
|
|
20953
|
-
var M,
|
|
20953
|
+
var M, O;
|
|
20954
20954
|
return M = {}, E("next"), E("throw", function(F) {
|
|
20955
20955
|
throw F;
|
|
20956
20956
|
}), E("return"), M[Symbol.iterator] = function() {
|
|
@@ -20958,30 +20958,30 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20958
20958
|
}, M;
|
|
20959
20959
|
function E(F, T) {
|
|
20960
20960
|
M[F] = S[F] ? function(w) {
|
|
20961
|
-
return (
|
|
20961
|
+
return (O = !O) ? { value: R(S[F](w)), done: F === "return" } : T ? T(w) : w;
|
|
20962
20962
|
} : T;
|
|
20963
20963
|
}
|
|
20964
20964
|
}
|
|
20965
20965
|
function D(S) {
|
|
20966
20966
|
if (!Symbol.asyncIterator)
|
|
20967
20967
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
20968
|
-
var M,
|
|
20969
|
-
return
|
|
20968
|
+
var M, O = S[Symbol.asyncIterator];
|
|
20969
|
+
return O ? O.call(S) : (S = v(S), M = {}, E("next"), E("throw"), E("return"), M[Symbol.asyncIterator] = function() {
|
|
20970
20970
|
return this;
|
|
20971
20971
|
}, M);
|
|
20972
20972
|
function E(F) {
|
|
20973
20973
|
M[F] = S[F] && function(T) {
|
|
20974
20974
|
return new Promise(function(w, C) {
|
|
20975
|
-
(function(j,
|
|
20975
|
+
(function(j, G, B, N) {
|
|
20976
20976
|
Promise.resolve(N).then(function(H) {
|
|
20977
20977
|
j({ value: H, done: B });
|
|
20978
|
-
},
|
|
20978
|
+
}, G);
|
|
20979
20979
|
})(w, C, (T = S[F](T)).done, T.value);
|
|
20980
20980
|
});
|
|
20981
20981
|
};
|
|
20982
20982
|
}
|
|
20983
20983
|
}
|
|
20984
|
-
function
|
|
20984
|
+
function I(S, M) {
|
|
20985
20985
|
return Object.defineProperty ? Object.defineProperty(S, "raw", { value: M }) : S.raw = M, S;
|
|
20986
20986
|
}
|
|
20987
20987
|
var z = Object.create ? function(S, M) {
|
|
@@ -20994,28 +20994,28 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20994
20994
|
return S;
|
|
20995
20995
|
var M = {};
|
|
20996
20996
|
if (S != null)
|
|
20997
|
-
for (var
|
|
20998
|
-
|
|
20997
|
+
for (var O in S)
|
|
20998
|
+
O !== "default" && Object.prototype.hasOwnProperty.call(S, O) && d(M, S, O);
|
|
20999
20999
|
return z(M, S), M;
|
|
21000
21000
|
}
|
|
21001
|
-
function
|
|
21001
|
+
function q(S) {
|
|
21002
21002
|
return S && S.__esModule ? S : { default: S };
|
|
21003
21003
|
}
|
|
21004
|
-
function k(S, M,
|
|
21005
|
-
if (
|
|
21004
|
+
function k(S, M, O, E) {
|
|
21005
|
+
if (O === "a" && !E)
|
|
21006
21006
|
throw new TypeError("Private accessor was defined without a getter");
|
|
21007
21007
|
if (typeof M == "function" ? S !== M || !E : !M.has(S))
|
|
21008
21008
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
21009
|
-
return
|
|
21009
|
+
return O === "m" ? E : O === "a" ? E.call(S) : E ? E.value : M.get(S);
|
|
21010
21010
|
}
|
|
21011
|
-
function W(S, M,
|
|
21011
|
+
function W(S, M, O, E, F) {
|
|
21012
21012
|
if (E === "m")
|
|
21013
21013
|
throw new TypeError("Private method is not writable");
|
|
21014
21014
|
if (E === "a" && !F)
|
|
21015
21015
|
throw new TypeError("Private accessor was defined without a setter");
|
|
21016
21016
|
if (typeof M == "function" ? S !== M || !F : !M.has(S))
|
|
21017
21017
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
21018
|
-
return E === "a" ? F.call(S,
|
|
21018
|
+
return E === "a" ? F.call(S, O) : F ? F.value = O : M.set(S, O), O;
|
|
21019
21019
|
}
|
|
21020
21020
|
function X(S, M) {
|
|
21021
21021
|
if (M === null || typeof M != "object" && typeof M != "function")
|
|
@@ -23734,7 +23734,7 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
|
|
|
23734
23734
|
return e.Message.setProto3BooleanField(this, 1, o);
|
|
23735
23735
|
}, s.object.extend(t, proto.viam.component.arm.v1);
|
|
23736
23736
|
})(arm_pb);
|
|
23737
|
-
var component_arm_v1_arm_pb = arm_pb, common_v1_common_pb$
|
|
23737
|
+
var component_arm_v1_arm_pb = arm_pb, common_v1_common_pb$j = common_pb, grpc$k = grpcWebClient_umdExports.grpc, ArmService = function() {
|
|
23738
23738
|
function t() {
|
|
23739
23739
|
}
|
|
23740
23740
|
return t.serviceName = "viam.component.arm.v1.ArmService", t;
|
|
@@ -23792,15 +23792,15 @@ ArmService.DoCommand = {
|
|
|
23792
23792
|
service: ArmService,
|
|
23793
23793
|
requestStream: !1,
|
|
23794
23794
|
responseStream: !1,
|
|
23795
|
-
requestType: common_v1_common_pb$
|
|
23796
|
-
responseType: common_v1_common_pb$
|
|
23795
|
+
requestType: common_v1_common_pb$j.DoCommandRequest,
|
|
23796
|
+
responseType: common_v1_common_pb$j.DoCommandResponse
|
|
23797
23797
|
};
|
|
23798
23798
|
function ArmServiceClient(t, e) {
|
|
23799
23799
|
this.serviceHost = t, this.options = e || {};
|
|
23800
23800
|
}
|
|
23801
23801
|
ArmServiceClient.prototype.getEndPosition = function t(e, s, n) {
|
|
23802
23802
|
arguments.length === 2 && (n = arguments[1]);
|
|
23803
|
-
var u = grpc$
|
|
23803
|
+
var u = grpc$k.unary(ArmService.GetEndPosition, {
|
|
23804
23804
|
request: e,
|
|
23805
23805
|
host: this.serviceHost,
|
|
23806
23806
|
metadata: s,
|
|
@@ -23808,7 +23808,7 @@ ArmServiceClient.prototype.getEndPosition = function t(e, s, n) {
|
|
|
23808
23808
|
debug: this.options.debug,
|
|
23809
23809
|
onEnd: function(g) {
|
|
23810
23810
|
if (n)
|
|
23811
|
-
if (g.status !== grpc$
|
|
23811
|
+
if (g.status !== grpc$k.Code.OK) {
|
|
23812
23812
|
var p = new Error(g.statusMessage);
|
|
23813
23813
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
23814
23814
|
} else
|
|
@@ -23823,7 +23823,7 @@ ArmServiceClient.prototype.getEndPosition = function t(e, s, n) {
|
|
|
23823
23823
|
};
|
|
23824
23824
|
ArmServiceClient.prototype.moveToPosition = function t(e, s, n) {
|
|
23825
23825
|
arguments.length === 2 && (n = arguments[1]);
|
|
23826
|
-
var u = grpc$
|
|
23826
|
+
var u = grpc$k.unary(ArmService.MoveToPosition, {
|
|
23827
23827
|
request: e,
|
|
23828
23828
|
host: this.serviceHost,
|
|
23829
23829
|
metadata: s,
|
|
@@ -23831,7 +23831,7 @@ ArmServiceClient.prototype.moveToPosition = function t(e, s, n) {
|
|
|
23831
23831
|
debug: this.options.debug,
|
|
23832
23832
|
onEnd: function(g) {
|
|
23833
23833
|
if (n)
|
|
23834
|
-
if (g.status !== grpc$
|
|
23834
|
+
if (g.status !== grpc$k.Code.OK) {
|
|
23835
23835
|
var p = new Error(g.statusMessage);
|
|
23836
23836
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
23837
23837
|
} else
|
|
@@ -23846,7 +23846,7 @@ ArmServiceClient.prototype.moveToPosition = function t(e, s, n) {
|
|
|
23846
23846
|
};
|
|
23847
23847
|
ArmServiceClient.prototype.getJointPositions = function t(e, s, n) {
|
|
23848
23848
|
arguments.length === 2 && (n = arguments[1]);
|
|
23849
|
-
var u = grpc$
|
|
23849
|
+
var u = grpc$k.unary(ArmService.GetJointPositions, {
|
|
23850
23850
|
request: e,
|
|
23851
23851
|
host: this.serviceHost,
|
|
23852
23852
|
metadata: s,
|
|
@@ -23854,7 +23854,7 @@ ArmServiceClient.prototype.getJointPositions = function t(e, s, n) {
|
|
|
23854
23854
|
debug: this.options.debug,
|
|
23855
23855
|
onEnd: function(g) {
|
|
23856
23856
|
if (n)
|
|
23857
|
-
if (g.status !== grpc$
|
|
23857
|
+
if (g.status !== grpc$k.Code.OK) {
|
|
23858
23858
|
var p = new Error(g.statusMessage);
|
|
23859
23859
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
23860
23860
|
} else
|
|
@@ -23869,7 +23869,7 @@ ArmServiceClient.prototype.getJointPositions = function t(e, s, n) {
|
|
|
23869
23869
|
};
|
|
23870
23870
|
ArmServiceClient.prototype.moveToJointPositions = function t(e, s, n) {
|
|
23871
23871
|
arguments.length === 2 && (n = arguments[1]);
|
|
23872
|
-
var u = grpc$
|
|
23872
|
+
var u = grpc$k.unary(ArmService.MoveToJointPositions, {
|
|
23873
23873
|
request: e,
|
|
23874
23874
|
host: this.serviceHost,
|
|
23875
23875
|
metadata: s,
|
|
@@ -23877,7 +23877,7 @@ ArmServiceClient.prototype.moveToJointPositions = function t(e, s, n) {
|
|
|
23877
23877
|
debug: this.options.debug,
|
|
23878
23878
|
onEnd: function(g) {
|
|
23879
23879
|
if (n)
|
|
23880
|
-
if (g.status !== grpc$
|
|
23880
|
+
if (g.status !== grpc$k.Code.OK) {
|
|
23881
23881
|
var p = new Error(g.statusMessage);
|
|
23882
23882
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
23883
23883
|
} else
|
|
@@ -23892,7 +23892,7 @@ ArmServiceClient.prototype.moveToJointPositions = function t(e, s, n) {
|
|
|
23892
23892
|
};
|
|
23893
23893
|
ArmServiceClient.prototype.stop = function t(e, s, n) {
|
|
23894
23894
|
arguments.length === 2 && (n = arguments[1]);
|
|
23895
|
-
var u = grpc$
|
|
23895
|
+
var u = grpc$k.unary(ArmService.Stop, {
|
|
23896
23896
|
request: e,
|
|
23897
23897
|
host: this.serviceHost,
|
|
23898
23898
|
metadata: s,
|
|
@@ -23900,7 +23900,7 @@ ArmServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
23900
23900
|
debug: this.options.debug,
|
|
23901
23901
|
onEnd: function(g) {
|
|
23902
23902
|
if (n)
|
|
23903
|
-
if (g.status !== grpc$
|
|
23903
|
+
if (g.status !== grpc$k.Code.OK) {
|
|
23904
23904
|
var p = new Error(g.statusMessage);
|
|
23905
23905
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
23906
23906
|
} else
|
|
@@ -23915,7 +23915,7 @@ ArmServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
23915
23915
|
};
|
|
23916
23916
|
ArmServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
23917
23917
|
arguments.length === 2 && (n = arguments[1]);
|
|
23918
|
-
var u = grpc$
|
|
23918
|
+
var u = grpc$k.unary(ArmService.IsMoving, {
|
|
23919
23919
|
request: e,
|
|
23920
23920
|
host: this.serviceHost,
|
|
23921
23921
|
metadata: s,
|
|
@@ -23923,7 +23923,7 @@ ArmServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
23923
23923
|
debug: this.options.debug,
|
|
23924
23924
|
onEnd: function(g) {
|
|
23925
23925
|
if (n)
|
|
23926
|
-
if (g.status !== grpc$
|
|
23926
|
+
if (g.status !== grpc$k.Code.OK) {
|
|
23927
23927
|
var p = new Error(g.statusMessage);
|
|
23928
23928
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
23929
23929
|
} else
|
|
@@ -23938,7 +23938,7 @@ ArmServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
23938
23938
|
};
|
|
23939
23939
|
ArmServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
23940
23940
|
arguments.length === 2 && (n = arguments[1]);
|
|
23941
|
-
var u = grpc$
|
|
23941
|
+
var u = grpc$k.unary(ArmService.DoCommand, {
|
|
23942
23942
|
request: e,
|
|
23943
23943
|
host: this.serviceHost,
|
|
23944
23944
|
metadata: s,
|
|
@@ -23946,7 +23946,7 @@ ArmServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
23946
23946
|
debug: this.options.debug,
|
|
23947
23947
|
onEnd: function(g) {
|
|
23948
23948
|
if (n)
|
|
23949
|
-
if (g.status !== grpc$
|
|
23949
|
+
if (g.status !== grpc$k.Code.OK) {
|
|
23950
23950
|
var p = new Error(g.statusMessage);
|
|
23951
23951
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
23952
23952
|
} else
|
|
@@ -24657,7 +24657,7 @@ var ArmServiceClient_1 = ArmServiceClient, base_pb = {};
|
|
|
24657
24657
|
return e.Message.setProto3BooleanField(this, 1, o);
|
|
24658
24658
|
}, s.object.extend(t, proto.viam.component.base.v1);
|
|
24659
24659
|
})(base_pb);
|
|
24660
|
-
var component_base_v1_base_pb = base_pb, common_v1_common_pb$
|
|
24660
|
+
var component_base_v1_base_pb = base_pb, common_v1_common_pb$i = common_pb, grpc$j = grpcWebClient_umdExports.grpc, BaseService = function() {
|
|
24661
24661
|
function t() {
|
|
24662
24662
|
}
|
|
24663
24663
|
return t.serviceName = "viam.component.base.v1.BaseService", t;
|
|
@@ -24715,15 +24715,15 @@ BaseService.DoCommand = {
|
|
|
24715
24715
|
service: BaseService,
|
|
24716
24716
|
requestStream: !1,
|
|
24717
24717
|
responseStream: !1,
|
|
24718
|
-
requestType: common_v1_common_pb$
|
|
24719
|
-
responseType: common_v1_common_pb$
|
|
24718
|
+
requestType: common_v1_common_pb$i.DoCommandRequest,
|
|
24719
|
+
responseType: common_v1_common_pb$i.DoCommandResponse
|
|
24720
24720
|
};
|
|
24721
24721
|
function BaseServiceClient(t, e) {
|
|
24722
24722
|
this.serviceHost = t, this.options = e || {};
|
|
24723
24723
|
}
|
|
24724
24724
|
BaseServiceClient.prototype.moveStraight = function t(e, s, n) {
|
|
24725
24725
|
arguments.length === 2 && (n = arguments[1]);
|
|
24726
|
-
var u = grpc$
|
|
24726
|
+
var u = grpc$j.unary(BaseService.MoveStraight, {
|
|
24727
24727
|
request: e,
|
|
24728
24728
|
host: this.serviceHost,
|
|
24729
24729
|
metadata: s,
|
|
@@ -24731,7 +24731,7 @@ BaseServiceClient.prototype.moveStraight = function t(e, s, n) {
|
|
|
24731
24731
|
debug: this.options.debug,
|
|
24732
24732
|
onEnd: function(g) {
|
|
24733
24733
|
if (n)
|
|
24734
|
-
if (g.status !== grpc$
|
|
24734
|
+
if (g.status !== grpc$j.Code.OK) {
|
|
24735
24735
|
var p = new Error(g.statusMessage);
|
|
24736
24736
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
24737
24737
|
} else
|
|
@@ -24746,7 +24746,7 @@ BaseServiceClient.prototype.moveStraight = function t(e, s, n) {
|
|
|
24746
24746
|
};
|
|
24747
24747
|
BaseServiceClient.prototype.spin = function t(e, s, n) {
|
|
24748
24748
|
arguments.length === 2 && (n = arguments[1]);
|
|
24749
|
-
var u = grpc$
|
|
24749
|
+
var u = grpc$j.unary(BaseService.Spin, {
|
|
24750
24750
|
request: e,
|
|
24751
24751
|
host: this.serviceHost,
|
|
24752
24752
|
metadata: s,
|
|
@@ -24754,7 +24754,7 @@ BaseServiceClient.prototype.spin = function t(e, s, n) {
|
|
|
24754
24754
|
debug: this.options.debug,
|
|
24755
24755
|
onEnd: function(g) {
|
|
24756
24756
|
if (n)
|
|
24757
|
-
if (g.status !== grpc$
|
|
24757
|
+
if (g.status !== grpc$j.Code.OK) {
|
|
24758
24758
|
var p = new Error(g.statusMessage);
|
|
24759
24759
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
24760
24760
|
} else
|
|
@@ -24769,7 +24769,7 @@ BaseServiceClient.prototype.spin = function t(e, s, n) {
|
|
|
24769
24769
|
};
|
|
24770
24770
|
BaseServiceClient.prototype.setPower = function t(e, s, n) {
|
|
24771
24771
|
arguments.length === 2 && (n = arguments[1]);
|
|
24772
|
-
var u = grpc$
|
|
24772
|
+
var u = grpc$j.unary(BaseService.SetPower, {
|
|
24773
24773
|
request: e,
|
|
24774
24774
|
host: this.serviceHost,
|
|
24775
24775
|
metadata: s,
|
|
@@ -24777,7 +24777,7 @@ BaseServiceClient.prototype.setPower = function t(e, s, n) {
|
|
|
24777
24777
|
debug: this.options.debug,
|
|
24778
24778
|
onEnd: function(g) {
|
|
24779
24779
|
if (n)
|
|
24780
|
-
if (g.status !== grpc$
|
|
24780
|
+
if (g.status !== grpc$j.Code.OK) {
|
|
24781
24781
|
var p = new Error(g.statusMessage);
|
|
24782
24782
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
24783
24783
|
} else
|
|
@@ -24792,7 +24792,7 @@ BaseServiceClient.prototype.setPower = function t(e, s, n) {
|
|
|
24792
24792
|
};
|
|
24793
24793
|
BaseServiceClient.prototype.setVelocity = function t(e, s, n) {
|
|
24794
24794
|
arguments.length === 2 && (n = arguments[1]);
|
|
24795
|
-
var u = grpc$
|
|
24795
|
+
var u = grpc$j.unary(BaseService.SetVelocity, {
|
|
24796
24796
|
request: e,
|
|
24797
24797
|
host: this.serviceHost,
|
|
24798
24798
|
metadata: s,
|
|
@@ -24800,7 +24800,7 @@ BaseServiceClient.prototype.setVelocity = function t(e, s, n) {
|
|
|
24800
24800
|
debug: this.options.debug,
|
|
24801
24801
|
onEnd: function(g) {
|
|
24802
24802
|
if (n)
|
|
24803
|
-
if (g.status !== grpc$
|
|
24803
|
+
if (g.status !== grpc$j.Code.OK) {
|
|
24804
24804
|
var p = new Error(g.statusMessage);
|
|
24805
24805
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
24806
24806
|
} else
|
|
@@ -24815,7 +24815,7 @@ BaseServiceClient.prototype.setVelocity = function t(e, s, n) {
|
|
|
24815
24815
|
};
|
|
24816
24816
|
BaseServiceClient.prototype.stop = function t(e, s, n) {
|
|
24817
24817
|
arguments.length === 2 && (n = arguments[1]);
|
|
24818
|
-
var u = grpc$
|
|
24818
|
+
var u = grpc$j.unary(BaseService.Stop, {
|
|
24819
24819
|
request: e,
|
|
24820
24820
|
host: this.serviceHost,
|
|
24821
24821
|
metadata: s,
|
|
@@ -24823,7 +24823,7 @@ BaseServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
24823
24823
|
debug: this.options.debug,
|
|
24824
24824
|
onEnd: function(g) {
|
|
24825
24825
|
if (n)
|
|
24826
|
-
if (g.status !== grpc$
|
|
24826
|
+
if (g.status !== grpc$j.Code.OK) {
|
|
24827
24827
|
var p = new Error(g.statusMessage);
|
|
24828
24828
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
24829
24829
|
} else
|
|
@@ -24838,7 +24838,7 @@ BaseServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
24838
24838
|
};
|
|
24839
24839
|
BaseServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
24840
24840
|
arguments.length === 2 && (n = arguments[1]);
|
|
24841
|
-
var u = grpc$
|
|
24841
|
+
var u = grpc$j.unary(BaseService.IsMoving, {
|
|
24842
24842
|
request: e,
|
|
24843
24843
|
host: this.serviceHost,
|
|
24844
24844
|
metadata: s,
|
|
@@ -24846,7 +24846,7 @@ BaseServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
24846
24846
|
debug: this.options.debug,
|
|
24847
24847
|
onEnd: function(g) {
|
|
24848
24848
|
if (n)
|
|
24849
|
-
if (g.status !== grpc$
|
|
24849
|
+
if (g.status !== grpc$j.Code.OK) {
|
|
24850
24850
|
var p = new Error(g.statusMessage);
|
|
24851
24851
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
24852
24852
|
} else
|
|
@@ -24861,7 +24861,7 @@ BaseServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
24861
24861
|
};
|
|
24862
24862
|
BaseServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
24863
24863
|
arguments.length === 2 && (n = arguments[1]);
|
|
24864
|
-
var u = grpc$
|
|
24864
|
+
var u = grpc$j.unary(BaseService.DoCommand, {
|
|
24865
24865
|
request: e,
|
|
24866
24866
|
host: this.serviceHost,
|
|
24867
24867
|
metadata: s,
|
|
@@ -24869,7 +24869,7 @@ BaseServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
24869
24869
|
debug: this.options.debug,
|
|
24870
24870
|
onEnd: function(g) {
|
|
24871
24871
|
if (n)
|
|
24872
|
-
if (g.status !== grpc$
|
|
24872
|
+
if (g.status !== grpc$j.Code.OK) {
|
|
24873
24873
|
var p = new Error(g.statusMessage);
|
|
24874
24874
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
24875
24875
|
} else
|
|
@@ -26153,7 +26153,7 @@ var BaseServiceClient_1 = BaseServiceClient, board_pb = {};
|
|
|
26153
26153
|
POWER_MODE_OFFLINE_DEEP: 2
|
|
26154
26154
|
}, s.object.extend(t, proto.viam.component.board.v1);
|
|
26155
26155
|
})(board_pb);
|
|
26156
|
-
var component_board_v1_board_pb = board_pb, common_v1_common_pb$
|
|
26156
|
+
var component_board_v1_board_pb = board_pb, common_v1_common_pb$h = common_pb, grpc$i = grpcWebClient_umdExports.grpc, BoardService = function() {
|
|
26157
26157
|
function t() {
|
|
26158
26158
|
}
|
|
26159
26159
|
return t.serviceName = "viam.component.board.v1.BoardService", t;
|
|
@@ -26219,8 +26219,8 @@ BoardService.DoCommand = {
|
|
|
26219
26219
|
service: BoardService,
|
|
26220
26220
|
requestStream: !1,
|
|
26221
26221
|
responseStream: !1,
|
|
26222
|
-
requestType: common_v1_common_pb$
|
|
26223
|
-
responseType: common_v1_common_pb$
|
|
26222
|
+
requestType: common_v1_common_pb$h.DoCommandRequest,
|
|
26223
|
+
responseType: common_v1_common_pb$h.DoCommandResponse
|
|
26224
26224
|
};
|
|
26225
26225
|
BoardService.ReadAnalogReader = {
|
|
26226
26226
|
methodName: "ReadAnalogReader",
|
|
@@ -26251,7 +26251,7 @@ function BoardServiceClient(t, e) {
|
|
|
26251
26251
|
}
|
|
26252
26252
|
BoardServiceClient.prototype.status = function t(e, s, n) {
|
|
26253
26253
|
arguments.length === 2 && (n = arguments[1]);
|
|
26254
|
-
var u = grpc$
|
|
26254
|
+
var u = grpc$i.unary(BoardService.Status, {
|
|
26255
26255
|
request: e,
|
|
26256
26256
|
host: this.serviceHost,
|
|
26257
26257
|
metadata: s,
|
|
@@ -26259,7 +26259,7 @@ BoardServiceClient.prototype.status = function t(e, s, n) {
|
|
|
26259
26259
|
debug: this.options.debug,
|
|
26260
26260
|
onEnd: function(g) {
|
|
26261
26261
|
if (n)
|
|
26262
|
-
if (g.status !== grpc$
|
|
26262
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26263
26263
|
var p = new Error(g.statusMessage);
|
|
26264
26264
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26265
26265
|
} else
|
|
@@ -26274,7 +26274,7 @@ BoardServiceClient.prototype.status = function t(e, s, n) {
|
|
|
26274
26274
|
};
|
|
26275
26275
|
BoardServiceClient.prototype.setGPIO = function t(e, s, n) {
|
|
26276
26276
|
arguments.length === 2 && (n = arguments[1]);
|
|
26277
|
-
var u = grpc$
|
|
26277
|
+
var u = grpc$i.unary(BoardService.SetGPIO, {
|
|
26278
26278
|
request: e,
|
|
26279
26279
|
host: this.serviceHost,
|
|
26280
26280
|
metadata: s,
|
|
@@ -26282,7 +26282,7 @@ BoardServiceClient.prototype.setGPIO = function t(e, s, n) {
|
|
|
26282
26282
|
debug: this.options.debug,
|
|
26283
26283
|
onEnd: function(g) {
|
|
26284
26284
|
if (n)
|
|
26285
|
-
if (g.status !== grpc$
|
|
26285
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26286
26286
|
var p = new Error(g.statusMessage);
|
|
26287
26287
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26288
26288
|
} else
|
|
@@ -26297,7 +26297,7 @@ BoardServiceClient.prototype.setGPIO = function t(e, s, n) {
|
|
|
26297
26297
|
};
|
|
26298
26298
|
BoardServiceClient.prototype.getGPIO = function t(e, s, n) {
|
|
26299
26299
|
arguments.length === 2 && (n = arguments[1]);
|
|
26300
|
-
var u = grpc$
|
|
26300
|
+
var u = grpc$i.unary(BoardService.GetGPIO, {
|
|
26301
26301
|
request: e,
|
|
26302
26302
|
host: this.serviceHost,
|
|
26303
26303
|
metadata: s,
|
|
@@ -26305,7 +26305,7 @@ BoardServiceClient.prototype.getGPIO = function t(e, s, n) {
|
|
|
26305
26305
|
debug: this.options.debug,
|
|
26306
26306
|
onEnd: function(g) {
|
|
26307
26307
|
if (n)
|
|
26308
|
-
if (g.status !== grpc$
|
|
26308
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26309
26309
|
var p = new Error(g.statusMessage);
|
|
26310
26310
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26311
26311
|
} else
|
|
@@ -26320,7 +26320,7 @@ BoardServiceClient.prototype.getGPIO = function t(e, s, n) {
|
|
|
26320
26320
|
};
|
|
26321
26321
|
BoardServiceClient.prototype.pWM = function t(e, s, n) {
|
|
26322
26322
|
arguments.length === 2 && (n = arguments[1]);
|
|
26323
|
-
var u = grpc$
|
|
26323
|
+
var u = grpc$i.unary(BoardService.PWM, {
|
|
26324
26324
|
request: e,
|
|
26325
26325
|
host: this.serviceHost,
|
|
26326
26326
|
metadata: s,
|
|
@@ -26328,7 +26328,7 @@ BoardServiceClient.prototype.pWM = function t(e, s, n) {
|
|
|
26328
26328
|
debug: this.options.debug,
|
|
26329
26329
|
onEnd: function(g) {
|
|
26330
26330
|
if (n)
|
|
26331
|
-
if (g.status !== grpc$
|
|
26331
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26332
26332
|
var p = new Error(g.statusMessage);
|
|
26333
26333
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26334
26334
|
} else
|
|
@@ -26343,7 +26343,7 @@ BoardServiceClient.prototype.pWM = function t(e, s, n) {
|
|
|
26343
26343
|
};
|
|
26344
26344
|
BoardServiceClient.prototype.setPWM = function t(e, s, n) {
|
|
26345
26345
|
arguments.length === 2 && (n = arguments[1]);
|
|
26346
|
-
var u = grpc$
|
|
26346
|
+
var u = grpc$i.unary(BoardService.SetPWM, {
|
|
26347
26347
|
request: e,
|
|
26348
26348
|
host: this.serviceHost,
|
|
26349
26349
|
metadata: s,
|
|
@@ -26351,7 +26351,7 @@ BoardServiceClient.prototype.setPWM = function t(e, s, n) {
|
|
|
26351
26351
|
debug: this.options.debug,
|
|
26352
26352
|
onEnd: function(g) {
|
|
26353
26353
|
if (n)
|
|
26354
|
-
if (g.status !== grpc$
|
|
26354
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26355
26355
|
var p = new Error(g.statusMessage);
|
|
26356
26356
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26357
26357
|
} else
|
|
@@ -26366,7 +26366,7 @@ BoardServiceClient.prototype.setPWM = function t(e, s, n) {
|
|
|
26366
26366
|
};
|
|
26367
26367
|
BoardServiceClient.prototype.pWMFrequency = function t(e, s, n) {
|
|
26368
26368
|
arguments.length === 2 && (n = arguments[1]);
|
|
26369
|
-
var u = grpc$
|
|
26369
|
+
var u = grpc$i.unary(BoardService.PWMFrequency, {
|
|
26370
26370
|
request: e,
|
|
26371
26371
|
host: this.serviceHost,
|
|
26372
26372
|
metadata: s,
|
|
@@ -26374,7 +26374,7 @@ BoardServiceClient.prototype.pWMFrequency = function t(e, s, n) {
|
|
|
26374
26374
|
debug: this.options.debug,
|
|
26375
26375
|
onEnd: function(g) {
|
|
26376
26376
|
if (n)
|
|
26377
|
-
if (g.status !== grpc$
|
|
26377
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26378
26378
|
var p = new Error(g.statusMessage);
|
|
26379
26379
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26380
26380
|
} else
|
|
@@ -26385,34 +26385,549 @@ BoardServiceClient.prototype.pWMFrequency = function t(e, s, n) {
|
|
|
26385
26385
|
cancel: function() {
|
|
26386
26386
|
n = null, u.close();
|
|
26387
26387
|
}
|
|
26388
|
-
};
|
|
26388
|
+
};
|
|
26389
|
+
};
|
|
26390
|
+
BoardServiceClient.prototype.setPWMFrequency = function t(e, s, n) {
|
|
26391
|
+
arguments.length === 2 && (n = arguments[1]);
|
|
26392
|
+
var u = grpc$i.unary(BoardService.SetPWMFrequency, {
|
|
26393
|
+
request: e,
|
|
26394
|
+
host: this.serviceHost,
|
|
26395
|
+
metadata: s,
|
|
26396
|
+
transport: this.options.transport,
|
|
26397
|
+
debug: this.options.debug,
|
|
26398
|
+
onEnd: function(g) {
|
|
26399
|
+
if (n)
|
|
26400
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26401
|
+
var p = new Error(g.statusMessage);
|
|
26402
|
+
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26403
|
+
} else
|
|
26404
|
+
n(null, g.message);
|
|
26405
|
+
}
|
|
26406
|
+
});
|
|
26407
|
+
return {
|
|
26408
|
+
cancel: function() {
|
|
26409
|
+
n = null, u.close();
|
|
26410
|
+
}
|
|
26411
|
+
};
|
|
26412
|
+
};
|
|
26413
|
+
BoardServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
26414
|
+
arguments.length === 2 && (n = arguments[1]);
|
|
26415
|
+
var u = grpc$i.unary(BoardService.DoCommand, {
|
|
26416
|
+
request: e,
|
|
26417
|
+
host: this.serviceHost,
|
|
26418
|
+
metadata: s,
|
|
26419
|
+
transport: this.options.transport,
|
|
26420
|
+
debug: this.options.debug,
|
|
26421
|
+
onEnd: function(g) {
|
|
26422
|
+
if (n)
|
|
26423
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26424
|
+
var p = new Error(g.statusMessage);
|
|
26425
|
+
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26426
|
+
} else
|
|
26427
|
+
n(null, g.message);
|
|
26428
|
+
}
|
|
26429
|
+
});
|
|
26430
|
+
return {
|
|
26431
|
+
cancel: function() {
|
|
26432
|
+
n = null, u.close();
|
|
26433
|
+
}
|
|
26434
|
+
};
|
|
26435
|
+
};
|
|
26436
|
+
BoardServiceClient.prototype.readAnalogReader = function t(e, s, n) {
|
|
26437
|
+
arguments.length === 2 && (n = arguments[1]);
|
|
26438
|
+
var u = grpc$i.unary(BoardService.ReadAnalogReader, {
|
|
26439
|
+
request: e,
|
|
26440
|
+
host: this.serviceHost,
|
|
26441
|
+
metadata: s,
|
|
26442
|
+
transport: this.options.transport,
|
|
26443
|
+
debug: this.options.debug,
|
|
26444
|
+
onEnd: function(g) {
|
|
26445
|
+
if (n)
|
|
26446
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26447
|
+
var p = new Error(g.statusMessage);
|
|
26448
|
+
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26449
|
+
} else
|
|
26450
|
+
n(null, g.message);
|
|
26451
|
+
}
|
|
26452
|
+
});
|
|
26453
|
+
return {
|
|
26454
|
+
cancel: function() {
|
|
26455
|
+
n = null, u.close();
|
|
26456
|
+
}
|
|
26457
|
+
};
|
|
26458
|
+
};
|
|
26459
|
+
BoardServiceClient.prototype.getDigitalInterruptValue = function t(e, s, n) {
|
|
26460
|
+
arguments.length === 2 && (n = arguments[1]);
|
|
26461
|
+
var u = grpc$i.unary(BoardService.GetDigitalInterruptValue, {
|
|
26462
|
+
request: e,
|
|
26463
|
+
host: this.serviceHost,
|
|
26464
|
+
metadata: s,
|
|
26465
|
+
transport: this.options.transport,
|
|
26466
|
+
debug: this.options.debug,
|
|
26467
|
+
onEnd: function(g) {
|
|
26468
|
+
if (n)
|
|
26469
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26470
|
+
var p = new Error(g.statusMessage);
|
|
26471
|
+
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26472
|
+
} else
|
|
26473
|
+
n(null, g.message);
|
|
26474
|
+
}
|
|
26475
|
+
});
|
|
26476
|
+
return {
|
|
26477
|
+
cancel: function() {
|
|
26478
|
+
n = null, u.close();
|
|
26479
|
+
}
|
|
26480
|
+
};
|
|
26481
|
+
};
|
|
26482
|
+
BoardServiceClient.prototype.setPowerMode = function t(e, s, n) {
|
|
26483
|
+
arguments.length === 2 && (n = arguments[1]);
|
|
26484
|
+
var u = grpc$i.unary(BoardService.SetPowerMode, {
|
|
26485
|
+
request: e,
|
|
26486
|
+
host: this.serviceHost,
|
|
26487
|
+
metadata: s,
|
|
26488
|
+
transport: this.options.transport,
|
|
26489
|
+
debug: this.options.debug,
|
|
26490
|
+
onEnd: function(g) {
|
|
26491
|
+
if (n)
|
|
26492
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26493
|
+
var p = new Error(g.statusMessage);
|
|
26494
|
+
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26495
|
+
} else
|
|
26496
|
+
n(null, g.message);
|
|
26497
|
+
}
|
|
26498
|
+
});
|
|
26499
|
+
return {
|
|
26500
|
+
cancel: function() {
|
|
26501
|
+
n = null, u.close();
|
|
26502
|
+
}
|
|
26503
|
+
};
|
|
26504
|
+
};
|
|
26505
|
+
var BoardServiceClient_1 = BoardServiceClient, encoder_pb = {};
|
|
26506
|
+
(function(t) {
|
|
26507
|
+
var e = googleProtobuf, s = e, n = function() {
|
|
26508
|
+
return this || window || n || self || Function("return this")();
|
|
26509
|
+
}.call(null), u = common_pb;
|
|
26510
|
+
s.object.extend(proto, u);
|
|
26511
|
+
var g = annotations_pb;
|
|
26512
|
+
s.object.extend(proto, g);
|
|
26513
|
+
var p = struct_pb;
|
|
26514
|
+
s.object.extend(proto, p), s.exportSymbol("proto.viam.component.encoder.v1.GetPositionRequest", null, n), s.exportSymbol("proto.viam.component.encoder.v1.GetPositionResponse", null, n), s.exportSymbol("proto.viam.component.encoder.v1.GetPropertiesRequest", null, n), s.exportSymbol("proto.viam.component.encoder.v1.GetPropertiesResponse", null, n), s.exportSymbol("proto.viam.component.encoder.v1.PositionType", null, n), s.exportSymbol("proto.viam.component.encoder.v1.ResetPositionRequest", null, n), s.exportSymbol("proto.viam.component.encoder.v1.ResetPositionResponse", null, n), proto.viam.component.encoder.v1.GetPositionRequest = function(o) {
|
|
26515
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
26516
|
+
}, s.inherits(proto.viam.component.encoder.v1.GetPositionRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.encoder.v1.GetPositionRequest.displayName = "proto.viam.component.encoder.v1.GetPositionRequest"), proto.viam.component.encoder.v1.GetPositionResponse = function(o) {
|
|
26517
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
26518
|
+
}, s.inherits(proto.viam.component.encoder.v1.GetPositionResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.encoder.v1.GetPositionResponse.displayName = "proto.viam.component.encoder.v1.GetPositionResponse"), proto.viam.component.encoder.v1.ResetPositionRequest = function(o) {
|
|
26519
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
26520
|
+
}, s.inherits(proto.viam.component.encoder.v1.ResetPositionRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.encoder.v1.ResetPositionRequest.displayName = "proto.viam.component.encoder.v1.ResetPositionRequest"), proto.viam.component.encoder.v1.ResetPositionResponse = function(o) {
|
|
26521
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
26522
|
+
}, s.inherits(proto.viam.component.encoder.v1.ResetPositionResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.encoder.v1.ResetPositionResponse.displayName = "proto.viam.component.encoder.v1.ResetPositionResponse"), proto.viam.component.encoder.v1.GetPropertiesRequest = function(o) {
|
|
26523
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
26524
|
+
}, s.inherits(proto.viam.component.encoder.v1.GetPropertiesRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.encoder.v1.GetPropertiesRequest.displayName = "proto.viam.component.encoder.v1.GetPropertiesRequest"), proto.viam.component.encoder.v1.GetPropertiesResponse = function(o) {
|
|
26525
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
26526
|
+
}, s.inherits(proto.viam.component.encoder.v1.GetPropertiesResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.encoder.v1.GetPropertiesResponse.displayName = "proto.viam.component.encoder.v1.GetPropertiesResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.component.encoder.v1.GetPositionRequest.prototype.toObject = function(o) {
|
|
26527
|
+
return proto.viam.component.encoder.v1.GetPositionRequest.toObject(o, this);
|
|
26528
|
+
}, proto.viam.component.encoder.v1.GetPositionRequest.toObject = function(o, r) {
|
|
26529
|
+
var i, l = {
|
|
26530
|
+
name: e.Message.getFieldWithDefault(r, 1, ""),
|
|
26531
|
+
positionType: e.Message.getFieldWithDefault(r, 2, 0),
|
|
26532
|
+
extra: (i = r.getExtra()) && p.Struct.toObject(o, i)
|
|
26533
|
+
};
|
|
26534
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
26535
|
+
}), proto.viam.component.encoder.v1.GetPositionRequest.deserializeBinary = function(o) {
|
|
26536
|
+
var r = new e.BinaryReader(o), i = new proto.viam.component.encoder.v1.GetPositionRequest();
|
|
26537
|
+
return proto.viam.component.encoder.v1.GetPositionRequest.deserializeBinaryFromReader(i, r);
|
|
26538
|
+
}, proto.viam.component.encoder.v1.GetPositionRequest.deserializeBinaryFromReader = function(o, r) {
|
|
26539
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
26540
|
+
var i = r.getFieldNumber();
|
|
26541
|
+
switch (i) {
|
|
26542
|
+
case 1:
|
|
26543
|
+
var l = (
|
|
26544
|
+
/** @type {string} */
|
|
26545
|
+
r.readString()
|
|
26546
|
+
);
|
|
26547
|
+
o.setName(l);
|
|
26548
|
+
break;
|
|
26549
|
+
case 2:
|
|
26550
|
+
var l = (
|
|
26551
|
+
/** @type {!proto.viam.component.encoder.v1.PositionType} */
|
|
26552
|
+
r.readEnum()
|
|
26553
|
+
);
|
|
26554
|
+
o.setPositionType(l);
|
|
26555
|
+
break;
|
|
26556
|
+
case 99:
|
|
26557
|
+
var l = new p.Struct();
|
|
26558
|
+
r.readMessage(l, p.Struct.deserializeBinaryFromReader), o.setExtra(l);
|
|
26559
|
+
break;
|
|
26560
|
+
default:
|
|
26561
|
+
r.skipField();
|
|
26562
|
+
break;
|
|
26563
|
+
}
|
|
26564
|
+
}
|
|
26565
|
+
return o;
|
|
26566
|
+
}, proto.viam.component.encoder.v1.GetPositionRequest.prototype.serializeBinary = function() {
|
|
26567
|
+
var o = new e.BinaryWriter();
|
|
26568
|
+
return proto.viam.component.encoder.v1.GetPositionRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
26569
|
+
}, proto.viam.component.encoder.v1.GetPositionRequest.serializeBinaryToWriter = function(o, r) {
|
|
26570
|
+
var i = void 0;
|
|
26571
|
+
i = o.getName(), i.length > 0 && r.writeString(
|
|
26572
|
+
1,
|
|
26573
|
+
i
|
|
26574
|
+
), i = /** @type {!proto.viam.component.encoder.v1.PositionType} */
|
|
26575
|
+
e.Message.getField(o, 2), i != null && r.writeEnum(
|
|
26576
|
+
2,
|
|
26577
|
+
i
|
|
26578
|
+
), i = o.getExtra(), i != null && r.writeMessage(
|
|
26579
|
+
99,
|
|
26580
|
+
i,
|
|
26581
|
+
p.Struct.serializeBinaryToWriter
|
|
26582
|
+
);
|
|
26583
|
+
}, proto.viam.component.encoder.v1.GetPositionRequest.prototype.getName = function() {
|
|
26584
|
+
return (
|
|
26585
|
+
/** @type {string} */
|
|
26586
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
26587
|
+
);
|
|
26588
|
+
}, proto.viam.component.encoder.v1.GetPositionRequest.prototype.setName = function(o) {
|
|
26589
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
26590
|
+
}, proto.viam.component.encoder.v1.GetPositionRequest.prototype.getPositionType = function() {
|
|
26591
|
+
return (
|
|
26592
|
+
/** @type {!proto.viam.component.encoder.v1.PositionType} */
|
|
26593
|
+
e.Message.getFieldWithDefault(this, 2, 0)
|
|
26594
|
+
);
|
|
26595
|
+
}, proto.viam.component.encoder.v1.GetPositionRequest.prototype.setPositionType = function(o) {
|
|
26596
|
+
return e.Message.setField(this, 2, o);
|
|
26597
|
+
}, proto.viam.component.encoder.v1.GetPositionRequest.prototype.clearPositionType = function() {
|
|
26598
|
+
return e.Message.setField(this, 2, void 0);
|
|
26599
|
+
}, proto.viam.component.encoder.v1.GetPositionRequest.prototype.hasPositionType = function() {
|
|
26600
|
+
return e.Message.getField(this, 2) != null;
|
|
26601
|
+
}, proto.viam.component.encoder.v1.GetPositionRequest.prototype.getExtra = function() {
|
|
26602
|
+
return (
|
|
26603
|
+
/** @type{?proto.google.protobuf.Struct} */
|
|
26604
|
+
e.Message.getWrapperField(this, p.Struct, 99)
|
|
26605
|
+
);
|
|
26606
|
+
}, proto.viam.component.encoder.v1.GetPositionRequest.prototype.setExtra = function(o) {
|
|
26607
|
+
return e.Message.setWrapperField(this, 99, o);
|
|
26608
|
+
}, proto.viam.component.encoder.v1.GetPositionRequest.prototype.clearExtra = function() {
|
|
26609
|
+
return this.setExtra(void 0);
|
|
26610
|
+
}, proto.viam.component.encoder.v1.GetPositionRequest.prototype.hasExtra = function() {
|
|
26611
|
+
return e.Message.getField(this, 99) != null;
|
|
26612
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.encoder.v1.GetPositionResponse.prototype.toObject = function(o) {
|
|
26613
|
+
return proto.viam.component.encoder.v1.GetPositionResponse.toObject(o, this);
|
|
26614
|
+
}, proto.viam.component.encoder.v1.GetPositionResponse.toObject = function(o, r) {
|
|
26615
|
+
var i = {
|
|
26616
|
+
value: e.Message.getFloatingPointFieldWithDefault(r, 1, 0),
|
|
26617
|
+
positionType: e.Message.getFieldWithDefault(r, 2, 0)
|
|
26618
|
+
};
|
|
26619
|
+
return o && (i.$jspbMessageInstance = r), i;
|
|
26620
|
+
}), proto.viam.component.encoder.v1.GetPositionResponse.deserializeBinary = function(o) {
|
|
26621
|
+
var r = new e.BinaryReader(o), i = new proto.viam.component.encoder.v1.GetPositionResponse();
|
|
26622
|
+
return proto.viam.component.encoder.v1.GetPositionResponse.deserializeBinaryFromReader(i, r);
|
|
26623
|
+
}, proto.viam.component.encoder.v1.GetPositionResponse.deserializeBinaryFromReader = function(o, r) {
|
|
26624
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
26625
|
+
var i = r.getFieldNumber();
|
|
26626
|
+
switch (i) {
|
|
26627
|
+
case 1:
|
|
26628
|
+
var l = (
|
|
26629
|
+
/** @type {number} */
|
|
26630
|
+
r.readFloat()
|
|
26631
|
+
);
|
|
26632
|
+
o.setValue(l);
|
|
26633
|
+
break;
|
|
26634
|
+
case 2:
|
|
26635
|
+
var l = (
|
|
26636
|
+
/** @type {!proto.viam.component.encoder.v1.PositionType} */
|
|
26637
|
+
r.readEnum()
|
|
26638
|
+
);
|
|
26639
|
+
o.setPositionType(l);
|
|
26640
|
+
break;
|
|
26641
|
+
default:
|
|
26642
|
+
r.skipField();
|
|
26643
|
+
break;
|
|
26644
|
+
}
|
|
26645
|
+
}
|
|
26646
|
+
return o;
|
|
26647
|
+
}, proto.viam.component.encoder.v1.GetPositionResponse.prototype.serializeBinary = function() {
|
|
26648
|
+
var o = new e.BinaryWriter();
|
|
26649
|
+
return proto.viam.component.encoder.v1.GetPositionResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
26650
|
+
}, proto.viam.component.encoder.v1.GetPositionResponse.serializeBinaryToWriter = function(o, r) {
|
|
26651
|
+
var i = void 0;
|
|
26652
|
+
i = o.getValue(), i !== 0 && r.writeFloat(
|
|
26653
|
+
1,
|
|
26654
|
+
i
|
|
26655
|
+
), i = o.getPositionType(), i !== 0 && r.writeEnum(
|
|
26656
|
+
2,
|
|
26657
|
+
i
|
|
26658
|
+
);
|
|
26659
|
+
}, proto.viam.component.encoder.v1.GetPositionResponse.prototype.getValue = function() {
|
|
26660
|
+
return (
|
|
26661
|
+
/** @type {number} */
|
|
26662
|
+
e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
|
|
26663
|
+
);
|
|
26664
|
+
}, proto.viam.component.encoder.v1.GetPositionResponse.prototype.setValue = function(o) {
|
|
26665
|
+
return e.Message.setProto3FloatField(this, 1, o);
|
|
26666
|
+
}, proto.viam.component.encoder.v1.GetPositionResponse.prototype.getPositionType = function() {
|
|
26667
|
+
return (
|
|
26668
|
+
/** @type {!proto.viam.component.encoder.v1.PositionType} */
|
|
26669
|
+
e.Message.getFieldWithDefault(this, 2, 0)
|
|
26670
|
+
);
|
|
26671
|
+
}, proto.viam.component.encoder.v1.GetPositionResponse.prototype.setPositionType = function(o) {
|
|
26672
|
+
return e.Message.setProto3EnumField(this, 2, o);
|
|
26673
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.encoder.v1.ResetPositionRequest.prototype.toObject = function(o) {
|
|
26674
|
+
return proto.viam.component.encoder.v1.ResetPositionRequest.toObject(o, this);
|
|
26675
|
+
}, proto.viam.component.encoder.v1.ResetPositionRequest.toObject = function(o, r) {
|
|
26676
|
+
var i, l = {
|
|
26677
|
+
name: e.Message.getFieldWithDefault(r, 1, ""),
|
|
26678
|
+
extra: (i = r.getExtra()) && p.Struct.toObject(o, i)
|
|
26679
|
+
};
|
|
26680
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
26681
|
+
}), proto.viam.component.encoder.v1.ResetPositionRequest.deserializeBinary = function(o) {
|
|
26682
|
+
var r = new e.BinaryReader(o), i = new proto.viam.component.encoder.v1.ResetPositionRequest();
|
|
26683
|
+
return proto.viam.component.encoder.v1.ResetPositionRequest.deserializeBinaryFromReader(i, r);
|
|
26684
|
+
}, proto.viam.component.encoder.v1.ResetPositionRequest.deserializeBinaryFromReader = function(o, r) {
|
|
26685
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
26686
|
+
var i = r.getFieldNumber();
|
|
26687
|
+
switch (i) {
|
|
26688
|
+
case 1:
|
|
26689
|
+
var l = (
|
|
26690
|
+
/** @type {string} */
|
|
26691
|
+
r.readString()
|
|
26692
|
+
);
|
|
26693
|
+
o.setName(l);
|
|
26694
|
+
break;
|
|
26695
|
+
case 99:
|
|
26696
|
+
var l = new p.Struct();
|
|
26697
|
+
r.readMessage(l, p.Struct.deserializeBinaryFromReader), o.setExtra(l);
|
|
26698
|
+
break;
|
|
26699
|
+
default:
|
|
26700
|
+
r.skipField();
|
|
26701
|
+
break;
|
|
26702
|
+
}
|
|
26703
|
+
}
|
|
26704
|
+
return o;
|
|
26705
|
+
}, proto.viam.component.encoder.v1.ResetPositionRequest.prototype.serializeBinary = function() {
|
|
26706
|
+
var o = new e.BinaryWriter();
|
|
26707
|
+
return proto.viam.component.encoder.v1.ResetPositionRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
26708
|
+
}, proto.viam.component.encoder.v1.ResetPositionRequest.serializeBinaryToWriter = function(o, r) {
|
|
26709
|
+
var i = void 0;
|
|
26710
|
+
i = o.getName(), i.length > 0 && r.writeString(
|
|
26711
|
+
1,
|
|
26712
|
+
i
|
|
26713
|
+
), i = o.getExtra(), i != null && r.writeMessage(
|
|
26714
|
+
99,
|
|
26715
|
+
i,
|
|
26716
|
+
p.Struct.serializeBinaryToWriter
|
|
26717
|
+
);
|
|
26718
|
+
}, proto.viam.component.encoder.v1.ResetPositionRequest.prototype.getName = function() {
|
|
26719
|
+
return (
|
|
26720
|
+
/** @type {string} */
|
|
26721
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
26722
|
+
);
|
|
26723
|
+
}, proto.viam.component.encoder.v1.ResetPositionRequest.prototype.setName = function(o) {
|
|
26724
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
26725
|
+
}, proto.viam.component.encoder.v1.ResetPositionRequest.prototype.getExtra = function() {
|
|
26726
|
+
return (
|
|
26727
|
+
/** @type{?proto.google.protobuf.Struct} */
|
|
26728
|
+
e.Message.getWrapperField(this, p.Struct, 99)
|
|
26729
|
+
);
|
|
26730
|
+
}, proto.viam.component.encoder.v1.ResetPositionRequest.prototype.setExtra = function(o) {
|
|
26731
|
+
return e.Message.setWrapperField(this, 99, o);
|
|
26732
|
+
}, proto.viam.component.encoder.v1.ResetPositionRequest.prototype.clearExtra = function() {
|
|
26733
|
+
return this.setExtra(void 0);
|
|
26734
|
+
}, proto.viam.component.encoder.v1.ResetPositionRequest.prototype.hasExtra = function() {
|
|
26735
|
+
return e.Message.getField(this, 99) != null;
|
|
26736
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.encoder.v1.ResetPositionResponse.prototype.toObject = function(o) {
|
|
26737
|
+
return proto.viam.component.encoder.v1.ResetPositionResponse.toObject(o, this);
|
|
26738
|
+
}, proto.viam.component.encoder.v1.ResetPositionResponse.toObject = function(o, r) {
|
|
26739
|
+
var i = {};
|
|
26740
|
+
return o && (i.$jspbMessageInstance = r), i;
|
|
26741
|
+
}), proto.viam.component.encoder.v1.ResetPositionResponse.deserializeBinary = function(o) {
|
|
26742
|
+
var r = new e.BinaryReader(o), i = new proto.viam.component.encoder.v1.ResetPositionResponse();
|
|
26743
|
+
return proto.viam.component.encoder.v1.ResetPositionResponse.deserializeBinaryFromReader(i, r);
|
|
26744
|
+
}, proto.viam.component.encoder.v1.ResetPositionResponse.deserializeBinaryFromReader = function(o, r) {
|
|
26745
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
26746
|
+
var i = r.getFieldNumber();
|
|
26747
|
+
switch (i) {
|
|
26748
|
+
default:
|
|
26749
|
+
r.skipField();
|
|
26750
|
+
break;
|
|
26751
|
+
}
|
|
26752
|
+
}
|
|
26753
|
+
return o;
|
|
26754
|
+
}, proto.viam.component.encoder.v1.ResetPositionResponse.prototype.serializeBinary = function() {
|
|
26755
|
+
var o = new e.BinaryWriter();
|
|
26756
|
+
return proto.viam.component.encoder.v1.ResetPositionResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
26757
|
+
}, proto.viam.component.encoder.v1.ResetPositionResponse.serializeBinaryToWriter = function(o, r) {
|
|
26758
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.encoder.v1.GetPropertiesRequest.prototype.toObject = function(o) {
|
|
26759
|
+
return proto.viam.component.encoder.v1.GetPropertiesRequest.toObject(o, this);
|
|
26760
|
+
}, proto.viam.component.encoder.v1.GetPropertiesRequest.toObject = function(o, r) {
|
|
26761
|
+
var i, l = {
|
|
26762
|
+
name: e.Message.getFieldWithDefault(r, 1, ""),
|
|
26763
|
+
extra: (i = r.getExtra()) && p.Struct.toObject(o, i)
|
|
26764
|
+
};
|
|
26765
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
26766
|
+
}), proto.viam.component.encoder.v1.GetPropertiesRequest.deserializeBinary = function(o) {
|
|
26767
|
+
var r = new e.BinaryReader(o), i = new proto.viam.component.encoder.v1.GetPropertiesRequest();
|
|
26768
|
+
return proto.viam.component.encoder.v1.GetPropertiesRequest.deserializeBinaryFromReader(i, r);
|
|
26769
|
+
}, proto.viam.component.encoder.v1.GetPropertiesRequest.deserializeBinaryFromReader = function(o, r) {
|
|
26770
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
26771
|
+
var i = r.getFieldNumber();
|
|
26772
|
+
switch (i) {
|
|
26773
|
+
case 1:
|
|
26774
|
+
var l = (
|
|
26775
|
+
/** @type {string} */
|
|
26776
|
+
r.readString()
|
|
26777
|
+
);
|
|
26778
|
+
o.setName(l);
|
|
26779
|
+
break;
|
|
26780
|
+
case 99:
|
|
26781
|
+
var l = new p.Struct();
|
|
26782
|
+
r.readMessage(l, p.Struct.deserializeBinaryFromReader), o.setExtra(l);
|
|
26783
|
+
break;
|
|
26784
|
+
default:
|
|
26785
|
+
r.skipField();
|
|
26786
|
+
break;
|
|
26787
|
+
}
|
|
26788
|
+
}
|
|
26789
|
+
return o;
|
|
26790
|
+
}, proto.viam.component.encoder.v1.GetPropertiesRequest.prototype.serializeBinary = function() {
|
|
26791
|
+
var o = new e.BinaryWriter();
|
|
26792
|
+
return proto.viam.component.encoder.v1.GetPropertiesRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
26793
|
+
}, proto.viam.component.encoder.v1.GetPropertiesRequest.serializeBinaryToWriter = function(o, r) {
|
|
26794
|
+
var i = void 0;
|
|
26795
|
+
i = o.getName(), i.length > 0 && r.writeString(
|
|
26796
|
+
1,
|
|
26797
|
+
i
|
|
26798
|
+
), i = o.getExtra(), i != null && r.writeMessage(
|
|
26799
|
+
99,
|
|
26800
|
+
i,
|
|
26801
|
+
p.Struct.serializeBinaryToWriter
|
|
26802
|
+
);
|
|
26803
|
+
}, proto.viam.component.encoder.v1.GetPropertiesRequest.prototype.getName = function() {
|
|
26804
|
+
return (
|
|
26805
|
+
/** @type {string} */
|
|
26806
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
26807
|
+
);
|
|
26808
|
+
}, proto.viam.component.encoder.v1.GetPropertiesRequest.prototype.setName = function(o) {
|
|
26809
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
26810
|
+
}, proto.viam.component.encoder.v1.GetPropertiesRequest.prototype.getExtra = function() {
|
|
26811
|
+
return (
|
|
26812
|
+
/** @type{?proto.google.protobuf.Struct} */
|
|
26813
|
+
e.Message.getWrapperField(this, p.Struct, 99)
|
|
26814
|
+
);
|
|
26815
|
+
}, proto.viam.component.encoder.v1.GetPropertiesRequest.prototype.setExtra = function(o) {
|
|
26816
|
+
return e.Message.setWrapperField(this, 99, o);
|
|
26817
|
+
}, proto.viam.component.encoder.v1.GetPropertiesRequest.prototype.clearExtra = function() {
|
|
26818
|
+
return this.setExtra(void 0);
|
|
26819
|
+
}, proto.viam.component.encoder.v1.GetPropertiesRequest.prototype.hasExtra = function() {
|
|
26820
|
+
return e.Message.getField(this, 99) != null;
|
|
26821
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.encoder.v1.GetPropertiesResponse.prototype.toObject = function(o) {
|
|
26822
|
+
return proto.viam.component.encoder.v1.GetPropertiesResponse.toObject(o, this);
|
|
26823
|
+
}, proto.viam.component.encoder.v1.GetPropertiesResponse.toObject = function(o, r) {
|
|
26824
|
+
var i = {
|
|
26825
|
+
ticksCountSupported: e.Message.getBooleanFieldWithDefault(r, 1, !1),
|
|
26826
|
+
angleDegreesSupported: e.Message.getBooleanFieldWithDefault(r, 2, !1)
|
|
26827
|
+
};
|
|
26828
|
+
return o && (i.$jspbMessageInstance = r), i;
|
|
26829
|
+
}), proto.viam.component.encoder.v1.GetPropertiesResponse.deserializeBinary = function(o) {
|
|
26830
|
+
var r = new e.BinaryReader(o), i = new proto.viam.component.encoder.v1.GetPropertiesResponse();
|
|
26831
|
+
return proto.viam.component.encoder.v1.GetPropertiesResponse.deserializeBinaryFromReader(i, r);
|
|
26832
|
+
}, proto.viam.component.encoder.v1.GetPropertiesResponse.deserializeBinaryFromReader = function(o, r) {
|
|
26833
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
26834
|
+
var i = r.getFieldNumber();
|
|
26835
|
+
switch (i) {
|
|
26836
|
+
case 1:
|
|
26837
|
+
var l = (
|
|
26838
|
+
/** @type {boolean} */
|
|
26839
|
+
r.readBool()
|
|
26840
|
+
);
|
|
26841
|
+
o.setTicksCountSupported(l);
|
|
26842
|
+
break;
|
|
26843
|
+
case 2:
|
|
26844
|
+
var l = (
|
|
26845
|
+
/** @type {boolean} */
|
|
26846
|
+
r.readBool()
|
|
26847
|
+
);
|
|
26848
|
+
o.setAngleDegreesSupported(l);
|
|
26849
|
+
break;
|
|
26850
|
+
default:
|
|
26851
|
+
r.skipField();
|
|
26852
|
+
break;
|
|
26853
|
+
}
|
|
26854
|
+
}
|
|
26855
|
+
return o;
|
|
26856
|
+
}, proto.viam.component.encoder.v1.GetPropertiesResponse.prototype.serializeBinary = function() {
|
|
26857
|
+
var o = new e.BinaryWriter();
|
|
26858
|
+
return proto.viam.component.encoder.v1.GetPropertiesResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
26859
|
+
}, proto.viam.component.encoder.v1.GetPropertiesResponse.serializeBinaryToWriter = function(o, r) {
|
|
26860
|
+
var i = void 0;
|
|
26861
|
+
i = o.getTicksCountSupported(), i && r.writeBool(
|
|
26862
|
+
1,
|
|
26863
|
+
i
|
|
26864
|
+
), i = o.getAngleDegreesSupported(), i && r.writeBool(
|
|
26865
|
+
2,
|
|
26866
|
+
i
|
|
26867
|
+
);
|
|
26868
|
+
}, proto.viam.component.encoder.v1.GetPropertiesResponse.prototype.getTicksCountSupported = function() {
|
|
26869
|
+
return (
|
|
26870
|
+
/** @type {boolean} */
|
|
26871
|
+
e.Message.getBooleanFieldWithDefault(this, 1, !1)
|
|
26872
|
+
);
|
|
26873
|
+
}, proto.viam.component.encoder.v1.GetPropertiesResponse.prototype.setTicksCountSupported = function(o) {
|
|
26874
|
+
return e.Message.setProto3BooleanField(this, 1, o);
|
|
26875
|
+
}, proto.viam.component.encoder.v1.GetPropertiesResponse.prototype.getAngleDegreesSupported = function() {
|
|
26876
|
+
return (
|
|
26877
|
+
/** @type {boolean} */
|
|
26878
|
+
e.Message.getBooleanFieldWithDefault(this, 2, !1)
|
|
26879
|
+
);
|
|
26880
|
+
}, proto.viam.component.encoder.v1.GetPropertiesResponse.prototype.setAngleDegreesSupported = function(o) {
|
|
26881
|
+
return e.Message.setProto3BooleanField(this, 2, o);
|
|
26882
|
+
}, proto.viam.component.encoder.v1.PositionType = {
|
|
26883
|
+
POSITION_TYPE_UNSPECIFIED: 0,
|
|
26884
|
+
POSITION_TYPE_TICKS_COUNT: 1,
|
|
26885
|
+
POSITION_TYPE_ANGLE_DEGREES: 2
|
|
26886
|
+
}, s.object.extend(t, proto.viam.component.encoder.v1);
|
|
26887
|
+
})(encoder_pb);
|
|
26888
|
+
var component_encoder_v1_encoder_pb = encoder_pb, common_v1_common_pb$g = common_pb, grpc$h = grpcWebClient_umdExports.grpc, EncoderService = function() {
|
|
26889
|
+
function t() {
|
|
26890
|
+
}
|
|
26891
|
+
return t.serviceName = "viam.component.encoder.v1.EncoderService", t;
|
|
26892
|
+
}();
|
|
26893
|
+
EncoderService.GetPosition = {
|
|
26894
|
+
methodName: "GetPosition",
|
|
26895
|
+
service: EncoderService,
|
|
26896
|
+
requestStream: !1,
|
|
26897
|
+
responseStream: !1,
|
|
26898
|
+
requestType: component_encoder_v1_encoder_pb.GetPositionRequest,
|
|
26899
|
+
responseType: component_encoder_v1_encoder_pb.GetPositionResponse
|
|
26389
26900
|
};
|
|
26390
|
-
|
|
26391
|
-
|
|
26392
|
-
|
|
26393
|
-
|
|
26394
|
-
|
|
26395
|
-
|
|
26396
|
-
|
|
26397
|
-
debug: this.options.debug,
|
|
26398
|
-
onEnd: function(g) {
|
|
26399
|
-
if (n)
|
|
26400
|
-
if (g.status !== grpc$g.Code.OK) {
|
|
26401
|
-
var p = new Error(g.statusMessage);
|
|
26402
|
-
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26403
|
-
} else
|
|
26404
|
-
n(null, g.message);
|
|
26405
|
-
}
|
|
26406
|
-
});
|
|
26407
|
-
return {
|
|
26408
|
-
cancel: function() {
|
|
26409
|
-
n = null, u.close();
|
|
26410
|
-
}
|
|
26411
|
-
};
|
|
26901
|
+
EncoderService.ResetPosition = {
|
|
26902
|
+
methodName: "ResetPosition",
|
|
26903
|
+
service: EncoderService,
|
|
26904
|
+
requestStream: !1,
|
|
26905
|
+
responseStream: !1,
|
|
26906
|
+
requestType: component_encoder_v1_encoder_pb.ResetPositionRequest,
|
|
26907
|
+
responseType: component_encoder_v1_encoder_pb.ResetPositionResponse
|
|
26412
26908
|
};
|
|
26413
|
-
|
|
26909
|
+
EncoderService.GetProperties = {
|
|
26910
|
+
methodName: "GetProperties",
|
|
26911
|
+
service: EncoderService,
|
|
26912
|
+
requestStream: !1,
|
|
26913
|
+
responseStream: !1,
|
|
26914
|
+
requestType: component_encoder_v1_encoder_pb.GetPropertiesRequest,
|
|
26915
|
+
responseType: component_encoder_v1_encoder_pb.GetPropertiesResponse
|
|
26916
|
+
};
|
|
26917
|
+
EncoderService.DoCommand = {
|
|
26918
|
+
methodName: "DoCommand",
|
|
26919
|
+
service: EncoderService,
|
|
26920
|
+
requestStream: !1,
|
|
26921
|
+
responseStream: !1,
|
|
26922
|
+
requestType: common_v1_common_pb$g.DoCommandRequest,
|
|
26923
|
+
responseType: common_v1_common_pb$g.DoCommandResponse
|
|
26924
|
+
};
|
|
26925
|
+
function EncoderServiceClient(t, e) {
|
|
26926
|
+
this.serviceHost = t, this.options = e || {};
|
|
26927
|
+
}
|
|
26928
|
+
EncoderServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
26414
26929
|
arguments.length === 2 && (n = arguments[1]);
|
|
26415
|
-
var u = grpc$
|
|
26930
|
+
var u = grpc$h.unary(EncoderService.GetPosition, {
|
|
26416
26931
|
request: e,
|
|
26417
26932
|
host: this.serviceHost,
|
|
26418
26933
|
metadata: s,
|
|
@@ -26420,7 +26935,7 @@ BoardServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
26420
26935
|
debug: this.options.debug,
|
|
26421
26936
|
onEnd: function(g) {
|
|
26422
26937
|
if (n)
|
|
26423
|
-
if (g.status !== grpc$
|
|
26938
|
+
if (g.status !== grpc$h.Code.OK) {
|
|
26424
26939
|
var p = new Error(g.statusMessage);
|
|
26425
26940
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26426
26941
|
} else
|
|
@@ -26433,9 +26948,9 @@ BoardServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
26433
26948
|
}
|
|
26434
26949
|
};
|
|
26435
26950
|
};
|
|
26436
|
-
|
|
26951
|
+
EncoderServiceClient.prototype.resetPosition = function t(e, s, n) {
|
|
26437
26952
|
arguments.length === 2 && (n = arguments[1]);
|
|
26438
|
-
var u = grpc$
|
|
26953
|
+
var u = grpc$h.unary(EncoderService.ResetPosition, {
|
|
26439
26954
|
request: e,
|
|
26440
26955
|
host: this.serviceHost,
|
|
26441
26956
|
metadata: s,
|
|
@@ -26443,7 +26958,7 @@ BoardServiceClient.prototype.readAnalogReader = function t(e, s, n) {
|
|
|
26443
26958
|
debug: this.options.debug,
|
|
26444
26959
|
onEnd: function(g) {
|
|
26445
26960
|
if (n)
|
|
26446
|
-
if (g.status !== grpc$
|
|
26961
|
+
if (g.status !== grpc$h.Code.OK) {
|
|
26447
26962
|
var p = new Error(g.statusMessage);
|
|
26448
26963
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26449
26964
|
} else
|
|
@@ -26456,9 +26971,9 @@ BoardServiceClient.prototype.readAnalogReader = function t(e, s, n) {
|
|
|
26456
26971
|
}
|
|
26457
26972
|
};
|
|
26458
26973
|
};
|
|
26459
|
-
|
|
26974
|
+
EncoderServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
26460
26975
|
arguments.length === 2 && (n = arguments[1]);
|
|
26461
|
-
var u = grpc$
|
|
26976
|
+
var u = grpc$h.unary(EncoderService.GetProperties, {
|
|
26462
26977
|
request: e,
|
|
26463
26978
|
host: this.serviceHost,
|
|
26464
26979
|
metadata: s,
|
|
@@ -26466,7 +26981,7 @@ BoardServiceClient.prototype.getDigitalInterruptValue = function t(e, s, n) {
|
|
|
26466
26981
|
debug: this.options.debug,
|
|
26467
26982
|
onEnd: function(g) {
|
|
26468
26983
|
if (n)
|
|
26469
|
-
if (g.status !== grpc$
|
|
26984
|
+
if (g.status !== grpc$h.Code.OK) {
|
|
26470
26985
|
var p = new Error(g.statusMessage);
|
|
26471
26986
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26472
26987
|
} else
|
|
@@ -26479,9 +26994,9 @@ BoardServiceClient.prototype.getDigitalInterruptValue = function t(e, s, n) {
|
|
|
26479
26994
|
}
|
|
26480
26995
|
};
|
|
26481
26996
|
};
|
|
26482
|
-
|
|
26997
|
+
EncoderServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
26483
26998
|
arguments.length === 2 && (n = arguments[1]);
|
|
26484
|
-
var u = grpc$
|
|
26999
|
+
var u = grpc$h.unary(EncoderService.DoCommand, {
|
|
26485
27000
|
request: e,
|
|
26486
27001
|
host: this.serviceHost,
|
|
26487
27002
|
metadata: s,
|
|
@@ -26489,7 +27004,7 @@ BoardServiceClient.prototype.setPowerMode = function t(e, s, n) {
|
|
|
26489
27004
|
debug: this.options.debug,
|
|
26490
27005
|
onEnd: function(g) {
|
|
26491
27006
|
if (n)
|
|
26492
|
-
if (g.status !== grpc$
|
|
27007
|
+
if (g.status !== grpc$h.Code.OK) {
|
|
26493
27008
|
var p = new Error(g.statusMessage);
|
|
26494
27009
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26495
27010
|
} else
|
|
@@ -26502,7 +27017,7 @@ BoardServiceClient.prototype.setPowerMode = function t(e, s, n) {
|
|
|
26502
27017
|
}
|
|
26503
27018
|
};
|
|
26504
27019
|
};
|
|
26505
|
-
var
|
|
27020
|
+
var EncoderServiceClient_1 = EncoderServiceClient, gantry_pb = {};
|
|
26506
27021
|
(function(t) {
|
|
26507
27022
|
var e = googleProtobuf, s = e, n = function() {
|
|
26508
27023
|
return this || window || n || self || Function("return this")();
|
|
@@ -27120,7 +27635,7 @@ var BoardServiceClient_1 = BoardServiceClient, gantry_pb = {};
|
|
|
27120
27635
|
return e.Message.setProto3BooleanField(this, 1, o);
|
|
27121
27636
|
}, s.object.extend(t, proto.viam.component.gantry.v1);
|
|
27122
27637
|
})(gantry_pb);
|
|
27123
|
-
var component_gantry_v1_gantry_pb = gantry_pb, common_v1_common_pb$
|
|
27638
|
+
var component_gantry_v1_gantry_pb = gantry_pb, common_v1_common_pb$f = common_pb, grpc$g = grpcWebClient_umdExports.grpc, GantryService = function() {
|
|
27124
27639
|
function t() {
|
|
27125
27640
|
}
|
|
27126
27641
|
return t.serviceName = "viam.component.gantry.v1.GantryService", t;
|
|
@@ -27170,15 +27685,15 @@ GantryService.DoCommand = {
|
|
|
27170
27685
|
service: GantryService,
|
|
27171
27686
|
requestStream: !1,
|
|
27172
27687
|
responseStream: !1,
|
|
27173
|
-
requestType: common_v1_common_pb$
|
|
27174
|
-
responseType: common_v1_common_pb$
|
|
27688
|
+
requestType: common_v1_common_pb$f.DoCommandRequest,
|
|
27689
|
+
responseType: common_v1_common_pb$f.DoCommandResponse
|
|
27175
27690
|
};
|
|
27176
27691
|
function GantryServiceClient(t, e) {
|
|
27177
27692
|
this.serviceHost = t, this.options = e || {};
|
|
27178
27693
|
}
|
|
27179
27694
|
GantryServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
27180
27695
|
arguments.length === 2 && (n = arguments[1]);
|
|
27181
|
-
var u = grpc$
|
|
27696
|
+
var u = grpc$g.unary(GantryService.GetPosition, {
|
|
27182
27697
|
request: e,
|
|
27183
27698
|
host: this.serviceHost,
|
|
27184
27699
|
metadata: s,
|
|
@@ -27186,7 +27701,7 @@ GantryServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
27186
27701
|
debug: this.options.debug,
|
|
27187
27702
|
onEnd: function(g) {
|
|
27188
27703
|
if (n)
|
|
27189
|
-
if (g.status !== grpc$
|
|
27704
|
+
if (g.status !== grpc$g.Code.OK) {
|
|
27190
27705
|
var p = new Error(g.statusMessage);
|
|
27191
27706
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27192
27707
|
} else
|
|
@@ -27201,7 +27716,7 @@ GantryServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
27201
27716
|
};
|
|
27202
27717
|
GantryServiceClient.prototype.moveToPosition = function t(e, s, n) {
|
|
27203
27718
|
arguments.length === 2 && (n = arguments[1]);
|
|
27204
|
-
var u = grpc$
|
|
27719
|
+
var u = grpc$g.unary(GantryService.MoveToPosition, {
|
|
27205
27720
|
request: e,
|
|
27206
27721
|
host: this.serviceHost,
|
|
27207
27722
|
metadata: s,
|
|
@@ -27209,7 +27724,7 @@ GantryServiceClient.prototype.moveToPosition = function t(e, s, n) {
|
|
|
27209
27724
|
debug: this.options.debug,
|
|
27210
27725
|
onEnd: function(g) {
|
|
27211
27726
|
if (n)
|
|
27212
|
-
if (g.status !== grpc$
|
|
27727
|
+
if (g.status !== grpc$g.Code.OK) {
|
|
27213
27728
|
var p = new Error(g.statusMessage);
|
|
27214
27729
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27215
27730
|
} else
|
|
@@ -27224,7 +27739,7 @@ GantryServiceClient.prototype.moveToPosition = function t(e, s, n) {
|
|
|
27224
27739
|
};
|
|
27225
27740
|
GantryServiceClient.prototype.getLengths = function t(e, s, n) {
|
|
27226
27741
|
arguments.length === 2 && (n = arguments[1]);
|
|
27227
|
-
var u = grpc$
|
|
27742
|
+
var u = grpc$g.unary(GantryService.GetLengths, {
|
|
27228
27743
|
request: e,
|
|
27229
27744
|
host: this.serviceHost,
|
|
27230
27745
|
metadata: s,
|
|
@@ -27232,7 +27747,7 @@ GantryServiceClient.prototype.getLengths = function t(e, s, n) {
|
|
|
27232
27747
|
debug: this.options.debug,
|
|
27233
27748
|
onEnd: function(g) {
|
|
27234
27749
|
if (n)
|
|
27235
|
-
if (g.status !== grpc$
|
|
27750
|
+
if (g.status !== grpc$g.Code.OK) {
|
|
27236
27751
|
var p = new Error(g.statusMessage);
|
|
27237
27752
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27238
27753
|
} else
|
|
@@ -27247,7 +27762,7 @@ GantryServiceClient.prototype.getLengths = function t(e, s, n) {
|
|
|
27247
27762
|
};
|
|
27248
27763
|
GantryServiceClient.prototype.stop = function t(e, s, n) {
|
|
27249
27764
|
arguments.length === 2 && (n = arguments[1]);
|
|
27250
|
-
var u = grpc$
|
|
27765
|
+
var u = grpc$g.unary(GantryService.Stop, {
|
|
27251
27766
|
request: e,
|
|
27252
27767
|
host: this.serviceHost,
|
|
27253
27768
|
metadata: s,
|
|
@@ -27255,7 +27770,7 @@ GantryServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
27255
27770
|
debug: this.options.debug,
|
|
27256
27771
|
onEnd: function(g) {
|
|
27257
27772
|
if (n)
|
|
27258
|
-
if (g.status !== grpc$
|
|
27773
|
+
if (g.status !== grpc$g.Code.OK) {
|
|
27259
27774
|
var p = new Error(g.statusMessage);
|
|
27260
27775
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27261
27776
|
} else
|
|
@@ -27270,7 +27785,7 @@ GantryServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
27270
27785
|
};
|
|
27271
27786
|
GantryServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
27272
27787
|
arguments.length === 2 && (n = arguments[1]);
|
|
27273
|
-
var u = grpc$
|
|
27788
|
+
var u = grpc$g.unary(GantryService.IsMoving, {
|
|
27274
27789
|
request: e,
|
|
27275
27790
|
host: this.serviceHost,
|
|
27276
27791
|
metadata: s,
|
|
@@ -27278,7 +27793,7 @@ GantryServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
27278
27793
|
debug: this.options.debug,
|
|
27279
27794
|
onEnd: function(g) {
|
|
27280
27795
|
if (n)
|
|
27281
|
-
if (g.status !== grpc$
|
|
27796
|
+
if (g.status !== grpc$g.Code.OK) {
|
|
27282
27797
|
var p = new Error(g.statusMessage);
|
|
27283
27798
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27284
27799
|
} else
|
|
@@ -27293,7 +27808,7 @@ GantryServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
27293
27808
|
};
|
|
27294
27809
|
GantryServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
27295
27810
|
arguments.length === 2 && (n = arguments[1]);
|
|
27296
|
-
var u = grpc$
|
|
27811
|
+
var u = grpc$g.unary(GantryService.DoCommand, {
|
|
27297
27812
|
request: e,
|
|
27298
27813
|
host: this.serviceHost,
|
|
27299
27814
|
metadata: s,
|
|
@@ -27301,7 +27816,7 @@ GantryServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
27301
27816
|
debug: this.options.debug,
|
|
27302
27817
|
onEnd: function(g) {
|
|
27303
27818
|
if (n)
|
|
27304
|
-
if (g.status !== grpc$
|
|
27819
|
+
if (g.status !== grpc$g.Code.OK) {
|
|
27305
27820
|
var p = new Error(g.statusMessage);
|
|
27306
27821
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27307
27822
|
} else
|
|
@@ -27316,11 +27831,11 @@ GantryServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
27316
27831
|
};
|
|
27317
27832
|
var GantryServiceClient_1 = GantryServiceClient, generic_pb = {}, jspb = googleProtobuf, goog = jspb, global$1 = function() {
|
|
27318
27833
|
return this || window || global$1 || self || Function("return this")();
|
|
27319
|
-
}.call(null), common_v1_common_pb$
|
|
27320
|
-
goog.object.extend(proto, common_v1_common_pb$
|
|
27834
|
+
}.call(null), common_v1_common_pb$e = common_pb;
|
|
27835
|
+
goog.object.extend(proto, common_v1_common_pb$e);
|
|
27321
27836
|
var google_api_annotations_pb = annotations_pb;
|
|
27322
27837
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
27323
|
-
var common_v1_common_pb$
|
|
27838
|
+
var common_v1_common_pb$d = common_pb, grpc$f = grpcWebClient_umdExports.grpc, GenericService = function() {
|
|
27324
27839
|
function t() {
|
|
27325
27840
|
}
|
|
27326
27841
|
return t.serviceName = "viam.component.generic.v1.GenericService", t;
|
|
@@ -27330,15 +27845,15 @@ GenericService.DoCommand = {
|
|
|
27330
27845
|
service: GenericService,
|
|
27331
27846
|
requestStream: !1,
|
|
27332
27847
|
responseStream: !1,
|
|
27333
|
-
requestType: common_v1_common_pb$
|
|
27334
|
-
responseType: common_v1_common_pb$
|
|
27848
|
+
requestType: common_v1_common_pb$d.DoCommandRequest,
|
|
27849
|
+
responseType: common_v1_common_pb$d.DoCommandResponse
|
|
27335
27850
|
};
|
|
27336
27851
|
function GenericServiceClient(t, e) {
|
|
27337
27852
|
this.serviceHost = t, this.options = e || {};
|
|
27338
27853
|
}
|
|
27339
27854
|
GenericServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
27340
27855
|
arguments.length === 2 && (n = arguments[1]);
|
|
27341
|
-
var u = grpc$
|
|
27856
|
+
var u = grpc$f.unary(GenericService.DoCommand, {
|
|
27342
27857
|
request: e,
|
|
27343
27858
|
host: this.serviceHost,
|
|
27344
27859
|
metadata: s,
|
|
@@ -27346,7 +27861,7 @@ GenericServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
27346
27861
|
debug: this.options.debug,
|
|
27347
27862
|
onEnd: function(g) {
|
|
27348
27863
|
if (n)
|
|
27349
|
-
if (g.status !== grpc$
|
|
27864
|
+
if (g.status !== grpc$f.Code.OK) {
|
|
27350
27865
|
var p = new Error(g.statusMessage);
|
|
27351
27866
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27352
27867
|
} else
|
|
@@ -27768,7 +28283,7 @@ var GenericServiceClient_1 = GenericServiceClient, gripper_pb = {};
|
|
|
27768
28283
|
return e.Message.setProto3BooleanField(this, 1, o);
|
|
27769
28284
|
}, s.object.extend(t, proto.viam.component.gripper.v1);
|
|
27770
28285
|
})(gripper_pb);
|
|
27771
|
-
var component_gripper_v1_gripper_pb = gripper_pb, common_v1_common_pb$
|
|
28286
|
+
var component_gripper_v1_gripper_pb = gripper_pb, common_v1_common_pb$c = common_pb, grpc$e = grpcWebClient_umdExports.grpc, GripperService = function() {
|
|
27772
28287
|
function t() {
|
|
27773
28288
|
}
|
|
27774
28289
|
return t.serviceName = "viam.component.gripper.v1.GripperService", t;
|
|
@@ -27810,15 +28325,15 @@ GripperService.DoCommand = {
|
|
|
27810
28325
|
service: GripperService,
|
|
27811
28326
|
requestStream: !1,
|
|
27812
28327
|
responseStream: !1,
|
|
27813
|
-
requestType: common_v1_common_pb$
|
|
27814
|
-
responseType: common_v1_common_pb$
|
|
28328
|
+
requestType: common_v1_common_pb$c.DoCommandRequest,
|
|
28329
|
+
responseType: common_v1_common_pb$c.DoCommandResponse
|
|
27815
28330
|
};
|
|
27816
28331
|
function GripperServiceClient(t, e) {
|
|
27817
28332
|
this.serviceHost = t, this.options = e || {};
|
|
27818
28333
|
}
|
|
27819
28334
|
GripperServiceClient.prototype.open = function t(e, s, n) {
|
|
27820
28335
|
arguments.length === 2 && (n = arguments[1]);
|
|
27821
|
-
var u = grpc$
|
|
28336
|
+
var u = grpc$e.unary(GripperService.Open, {
|
|
27822
28337
|
request: e,
|
|
27823
28338
|
host: this.serviceHost,
|
|
27824
28339
|
metadata: s,
|
|
@@ -27826,7 +28341,7 @@ GripperServiceClient.prototype.open = function t(e, s, n) {
|
|
|
27826
28341
|
debug: this.options.debug,
|
|
27827
28342
|
onEnd: function(g) {
|
|
27828
28343
|
if (n)
|
|
27829
|
-
if (g.status !== grpc$
|
|
28344
|
+
if (g.status !== grpc$e.Code.OK) {
|
|
27830
28345
|
var p = new Error(g.statusMessage);
|
|
27831
28346
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27832
28347
|
} else
|
|
@@ -27841,7 +28356,7 @@ GripperServiceClient.prototype.open = function t(e, s, n) {
|
|
|
27841
28356
|
};
|
|
27842
28357
|
GripperServiceClient.prototype.grab = function t(e, s, n) {
|
|
27843
28358
|
arguments.length === 2 && (n = arguments[1]);
|
|
27844
|
-
var u = grpc$
|
|
28359
|
+
var u = grpc$e.unary(GripperService.Grab, {
|
|
27845
28360
|
request: e,
|
|
27846
28361
|
host: this.serviceHost,
|
|
27847
28362
|
metadata: s,
|
|
@@ -27849,7 +28364,7 @@ GripperServiceClient.prototype.grab = function t(e, s, n) {
|
|
|
27849
28364
|
debug: this.options.debug,
|
|
27850
28365
|
onEnd: function(g) {
|
|
27851
28366
|
if (n)
|
|
27852
|
-
if (g.status !== grpc$
|
|
28367
|
+
if (g.status !== grpc$e.Code.OK) {
|
|
27853
28368
|
var p = new Error(g.statusMessage);
|
|
27854
28369
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27855
28370
|
} else
|
|
@@ -27864,7 +28379,7 @@ GripperServiceClient.prototype.grab = function t(e, s, n) {
|
|
|
27864
28379
|
};
|
|
27865
28380
|
GripperServiceClient.prototype.stop = function t(e, s, n) {
|
|
27866
28381
|
arguments.length === 2 && (n = arguments[1]);
|
|
27867
|
-
var u = grpc$
|
|
28382
|
+
var u = grpc$e.unary(GripperService.Stop, {
|
|
27868
28383
|
request: e,
|
|
27869
28384
|
host: this.serviceHost,
|
|
27870
28385
|
metadata: s,
|
|
@@ -27872,7 +28387,7 @@ GripperServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
27872
28387
|
debug: this.options.debug,
|
|
27873
28388
|
onEnd: function(g) {
|
|
27874
28389
|
if (n)
|
|
27875
|
-
if (g.status !== grpc$
|
|
28390
|
+
if (g.status !== grpc$e.Code.OK) {
|
|
27876
28391
|
var p = new Error(g.statusMessage);
|
|
27877
28392
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27878
28393
|
} else
|
|
@@ -27887,7 +28402,7 @@ GripperServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
27887
28402
|
};
|
|
27888
28403
|
GripperServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
27889
28404
|
arguments.length === 2 && (n = arguments[1]);
|
|
27890
|
-
var u = grpc$
|
|
28405
|
+
var u = grpc$e.unary(GripperService.IsMoving, {
|
|
27891
28406
|
request: e,
|
|
27892
28407
|
host: this.serviceHost,
|
|
27893
28408
|
metadata: s,
|
|
@@ -27895,7 +28410,7 @@ GripperServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
27895
28410
|
debug: this.options.debug,
|
|
27896
28411
|
onEnd: function(g) {
|
|
27897
28412
|
if (n)
|
|
27898
|
-
if (g.status !== grpc$
|
|
28413
|
+
if (g.status !== grpc$e.Code.OK) {
|
|
27899
28414
|
var p = new Error(g.statusMessage);
|
|
27900
28415
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27901
28416
|
} else
|
|
@@ -27910,7 +28425,7 @@ GripperServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
27910
28425
|
};
|
|
27911
28426
|
GripperServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
27912
28427
|
arguments.length === 2 && (n = arguments[1]);
|
|
27913
|
-
var u = grpc$
|
|
28428
|
+
var u = grpc$e.unary(GripperService.DoCommand, {
|
|
27914
28429
|
request: e,
|
|
27915
28430
|
host: this.serviceHost,
|
|
27916
28431
|
metadata: s,
|
|
@@ -27918,7 +28433,7 @@ GripperServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
27918
28433
|
debug: this.options.debug,
|
|
27919
28434
|
onEnd: function(g) {
|
|
27920
28435
|
if (n)
|
|
27921
|
-
if (g.status !== grpc$
|
|
28436
|
+
if (g.status !== grpc$e.Code.OK) {
|
|
27922
28437
|
var p = new Error(g.statusMessage);
|
|
27923
28438
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27924
28439
|
} else
|
|
@@ -28660,7 +29175,7 @@ var GripperServiceClient_1 = GripperServiceClient, input_controller_pb = {};
|
|
|
28660
29175
|
return this.setEventsList([]);
|
|
28661
29176
|
}, s.object.extend(t, proto.viam.component.inputcontroller.v1);
|
|
28662
29177
|
})(input_controller_pb);
|
|
28663
|
-
var component_inputcontroller_v1_input_controller_pb = input_controller_pb, common_v1_common_pb$
|
|
29178
|
+
var component_inputcontroller_v1_input_controller_pb = input_controller_pb, common_v1_common_pb$b = common_pb, grpc$d = grpcWebClient_umdExports.grpc, InputControllerService = function() {
|
|
28664
29179
|
function t() {
|
|
28665
29180
|
}
|
|
28666
29181
|
return t.serviceName = "viam.component.inputcontroller.v1.InputControllerService", t;
|
|
@@ -28702,15 +29217,15 @@ InputControllerService.DoCommand = {
|
|
|
28702
29217
|
service: InputControllerService,
|
|
28703
29218
|
requestStream: !1,
|
|
28704
29219
|
responseStream: !1,
|
|
28705
|
-
requestType: common_v1_common_pb$
|
|
28706
|
-
responseType: common_v1_common_pb$
|
|
29220
|
+
requestType: common_v1_common_pb$b.DoCommandRequest,
|
|
29221
|
+
responseType: common_v1_common_pb$b.DoCommandResponse
|
|
28707
29222
|
};
|
|
28708
29223
|
function InputControllerServiceClient(t, e) {
|
|
28709
29224
|
this.serviceHost = t, this.options = e || {};
|
|
28710
29225
|
}
|
|
28711
29226
|
InputControllerServiceClient.prototype.getControls = function t(e, s, n) {
|
|
28712
29227
|
arguments.length === 2 && (n = arguments[1]);
|
|
28713
|
-
var u = grpc$
|
|
29228
|
+
var u = grpc$d.unary(InputControllerService.GetControls, {
|
|
28714
29229
|
request: e,
|
|
28715
29230
|
host: this.serviceHost,
|
|
28716
29231
|
metadata: s,
|
|
@@ -28718,7 +29233,7 @@ InputControllerServiceClient.prototype.getControls = function t(e, s, n) {
|
|
|
28718
29233
|
debug: this.options.debug,
|
|
28719
29234
|
onEnd: function(g) {
|
|
28720
29235
|
if (n)
|
|
28721
|
-
if (g.status !== grpc$
|
|
29236
|
+
if (g.status !== grpc$d.Code.OK) {
|
|
28722
29237
|
var p = new Error(g.statusMessage);
|
|
28723
29238
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
28724
29239
|
} else
|
|
@@ -28733,7 +29248,7 @@ InputControllerServiceClient.prototype.getControls = function t(e, s, n) {
|
|
|
28733
29248
|
};
|
|
28734
29249
|
InputControllerServiceClient.prototype.getEvents = function t(e, s, n) {
|
|
28735
29250
|
arguments.length === 2 && (n = arguments[1]);
|
|
28736
|
-
var u = grpc$
|
|
29251
|
+
var u = grpc$d.unary(InputControllerService.GetEvents, {
|
|
28737
29252
|
request: e,
|
|
28738
29253
|
host: this.serviceHost,
|
|
28739
29254
|
metadata: s,
|
|
@@ -28741,7 +29256,7 @@ InputControllerServiceClient.prototype.getEvents = function t(e, s, n) {
|
|
|
28741
29256
|
debug: this.options.debug,
|
|
28742
29257
|
onEnd: function(g) {
|
|
28743
29258
|
if (n)
|
|
28744
|
-
if (g.status !== grpc$
|
|
29259
|
+
if (g.status !== grpc$d.Code.OK) {
|
|
28745
29260
|
var p = new Error(g.statusMessage);
|
|
28746
29261
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
28747
29262
|
} else
|
|
@@ -28759,7 +29274,7 @@ InputControllerServiceClient.prototype.streamEvents = function t(e, s) {
|
|
|
28759
29274
|
data: [],
|
|
28760
29275
|
end: [],
|
|
28761
29276
|
status: []
|
|
28762
|
-
}, u = grpc$
|
|
29277
|
+
}, u = grpc$d.invoke(InputControllerService.StreamEvents, {
|
|
28763
29278
|
request: e,
|
|
28764
29279
|
host: this.serviceHost,
|
|
28765
29280
|
metadata: s,
|
|
@@ -28789,7 +29304,7 @@ InputControllerServiceClient.prototype.streamEvents = function t(e, s) {
|
|
|
28789
29304
|
};
|
|
28790
29305
|
InputControllerServiceClient.prototype.triggerEvent = function t(e, s, n) {
|
|
28791
29306
|
arguments.length === 2 && (n = arguments[1]);
|
|
28792
|
-
var u = grpc$
|
|
29307
|
+
var u = grpc$d.unary(InputControllerService.TriggerEvent, {
|
|
28793
29308
|
request: e,
|
|
28794
29309
|
host: this.serviceHost,
|
|
28795
29310
|
metadata: s,
|
|
@@ -28797,7 +29312,7 @@ InputControllerServiceClient.prototype.triggerEvent = function t(e, s, n) {
|
|
|
28797
29312
|
debug: this.options.debug,
|
|
28798
29313
|
onEnd: function(g) {
|
|
28799
29314
|
if (n)
|
|
28800
|
-
if (g.status !== grpc$
|
|
29315
|
+
if (g.status !== grpc$d.Code.OK) {
|
|
28801
29316
|
var p = new Error(g.statusMessage);
|
|
28802
29317
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
28803
29318
|
} else
|
|
@@ -28812,7 +29327,7 @@ InputControllerServiceClient.prototype.triggerEvent = function t(e, s, n) {
|
|
|
28812
29327
|
};
|
|
28813
29328
|
InputControllerServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
28814
29329
|
arguments.length === 2 && (n = arguments[1]);
|
|
28815
|
-
var u = grpc$
|
|
29330
|
+
var u = grpc$d.unary(InputControllerService.DoCommand, {
|
|
28816
29331
|
request: e,
|
|
28817
29332
|
host: this.serviceHost,
|
|
28818
29333
|
metadata: s,
|
|
@@ -28820,7 +29335,7 @@ InputControllerServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
28820
29335
|
debug: this.options.debug,
|
|
28821
29336
|
onEnd: function(g) {
|
|
28822
29337
|
if (n)
|
|
28823
|
-
if (g.status !== grpc$
|
|
29338
|
+
if (g.status !== grpc$d.Code.OK) {
|
|
28824
29339
|
var p = new Error(g.statusMessage);
|
|
28825
29340
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
28826
29341
|
} else
|
|
@@ -29884,7 +30399,7 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
29884
30399
|
return this.setAllowsList([]);
|
|
29885
30400
|
}, s.object.extend(t, proto.viam.service.motion.v1);
|
|
29886
30401
|
})(motion_pb);
|
|
29887
|
-
var service_motion_v1_motion_pb = motion_pb, common_v1_common_pb$
|
|
30402
|
+
var service_motion_v1_motion_pb = motion_pb, common_v1_common_pb$a = common_pb, grpc$c = grpcWebClient_umdExports.grpc, MotionService = function() {
|
|
29888
30403
|
function t() {
|
|
29889
30404
|
}
|
|
29890
30405
|
return t.serviceName = "viam.service.motion.v1.MotionService", t;
|
|
@@ -29926,15 +30441,15 @@ MotionService.DoCommand = {
|
|
|
29926
30441
|
service: MotionService,
|
|
29927
30442
|
requestStream: !1,
|
|
29928
30443
|
responseStream: !1,
|
|
29929
|
-
requestType: common_v1_common_pb$
|
|
29930
|
-
responseType: common_v1_common_pb$
|
|
30444
|
+
requestType: common_v1_common_pb$a.DoCommandRequest,
|
|
30445
|
+
responseType: common_v1_common_pb$a.DoCommandResponse
|
|
29931
30446
|
};
|
|
29932
30447
|
function MotionServiceClient(t, e) {
|
|
29933
30448
|
this.serviceHost = t, this.options = e || {};
|
|
29934
30449
|
}
|
|
29935
30450
|
MotionServiceClient.prototype.move = function t(e, s, n) {
|
|
29936
30451
|
arguments.length === 2 && (n = arguments[1]);
|
|
29937
|
-
var u = grpc$
|
|
30452
|
+
var u = grpc$c.unary(MotionService.Move, {
|
|
29938
30453
|
request: e,
|
|
29939
30454
|
host: this.serviceHost,
|
|
29940
30455
|
metadata: s,
|
|
@@ -29942,7 +30457,7 @@ MotionServiceClient.prototype.move = function t(e, s, n) {
|
|
|
29942
30457
|
debug: this.options.debug,
|
|
29943
30458
|
onEnd: function(g) {
|
|
29944
30459
|
if (n)
|
|
29945
|
-
if (g.status !== grpc$
|
|
30460
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
29946
30461
|
var p = new Error(g.statusMessage);
|
|
29947
30462
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
29948
30463
|
} else
|
|
@@ -29957,7 +30472,7 @@ MotionServiceClient.prototype.move = function t(e, s, n) {
|
|
|
29957
30472
|
};
|
|
29958
30473
|
MotionServiceClient.prototype.moveOnMap = function t(e, s, n) {
|
|
29959
30474
|
arguments.length === 2 && (n = arguments[1]);
|
|
29960
|
-
var u = grpc$
|
|
30475
|
+
var u = grpc$c.unary(MotionService.MoveOnMap, {
|
|
29961
30476
|
request: e,
|
|
29962
30477
|
host: this.serviceHost,
|
|
29963
30478
|
metadata: s,
|
|
@@ -29965,7 +30480,7 @@ MotionServiceClient.prototype.moveOnMap = function t(e, s, n) {
|
|
|
29965
30480
|
debug: this.options.debug,
|
|
29966
30481
|
onEnd: function(g) {
|
|
29967
30482
|
if (n)
|
|
29968
|
-
if (g.status !== grpc$
|
|
30483
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
29969
30484
|
var p = new Error(g.statusMessage);
|
|
29970
30485
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
29971
30486
|
} else
|
|
@@ -29980,7 +30495,7 @@ MotionServiceClient.prototype.moveOnMap = function t(e, s, n) {
|
|
|
29980
30495
|
};
|
|
29981
30496
|
MotionServiceClient.prototype.moveSingleComponent = function t(e, s, n) {
|
|
29982
30497
|
arguments.length === 2 && (n = arguments[1]);
|
|
29983
|
-
var u = grpc$
|
|
30498
|
+
var u = grpc$c.unary(MotionService.MoveSingleComponent, {
|
|
29984
30499
|
request: e,
|
|
29985
30500
|
host: this.serviceHost,
|
|
29986
30501
|
metadata: s,
|
|
@@ -29988,7 +30503,7 @@ MotionServiceClient.prototype.moveSingleComponent = function t(e, s, n) {
|
|
|
29988
30503
|
debug: this.options.debug,
|
|
29989
30504
|
onEnd: function(g) {
|
|
29990
30505
|
if (n)
|
|
29991
|
-
if (g.status !== grpc$
|
|
30506
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
29992
30507
|
var p = new Error(g.statusMessage);
|
|
29993
30508
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
29994
30509
|
} else
|
|
@@ -30003,7 +30518,7 @@ MotionServiceClient.prototype.moveSingleComponent = function t(e, s, n) {
|
|
|
30003
30518
|
};
|
|
30004
30519
|
MotionServiceClient.prototype.getPose = function t(e, s, n) {
|
|
30005
30520
|
arguments.length === 2 && (n = arguments[1]);
|
|
30006
|
-
var u = grpc$
|
|
30521
|
+
var u = grpc$c.unary(MotionService.GetPose, {
|
|
30007
30522
|
request: e,
|
|
30008
30523
|
host: this.serviceHost,
|
|
30009
30524
|
metadata: s,
|
|
@@ -30011,7 +30526,7 @@ MotionServiceClient.prototype.getPose = function t(e, s, n) {
|
|
|
30011
30526
|
debug: this.options.debug,
|
|
30012
30527
|
onEnd: function(g) {
|
|
30013
30528
|
if (n)
|
|
30014
|
-
if (g.status !== grpc$
|
|
30529
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
30015
30530
|
var p = new Error(g.statusMessage);
|
|
30016
30531
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
30017
30532
|
} else
|
|
@@ -30026,7 +30541,7 @@ MotionServiceClient.prototype.getPose = function t(e, s, n) {
|
|
|
30026
30541
|
};
|
|
30027
30542
|
MotionServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
30028
30543
|
arguments.length === 2 && (n = arguments[1]);
|
|
30029
|
-
var u = grpc$
|
|
30544
|
+
var u = grpc$c.unary(MotionService.DoCommand, {
|
|
30030
30545
|
request: e,
|
|
30031
30546
|
host: this.serviceHost,
|
|
30032
30547
|
metadata: s,
|
|
@@ -30034,7 +30549,7 @@ MotionServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
30034
30549
|
debug: this.options.debug,
|
|
30035
30550
|
onEnd: function(g) {
|
|
30036
30551
|
if (n)
|
|
30037
|
-
if (g.status !== grpc$
|
|
30552
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
30038
30553
|
var p = new Error(g.statusMessage);
|
|
30039
30554
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
30040
30555
|
} else
|
|
@@ -31130,7 +31645,7 @@ var MotionServiceClient_1 = MotionServiceClient, motor_pb = {};
|
|
|
31130
31645
|
return e.Message.setProto3BooleanField(this, 1, o);
|
|
31131
31646
|
}, s.object.extend(t, proto.viam.component.motor.v1);
|
|
31132
31647
|
})(motor_pb);
|
|
31133
|
-
var component_motor_v1_motor_pb = motor_pb, common_v1_common_pb$
|
|
31648
|
+
var component_motor_v1_motor_pb = motor_pb, common_v1_common_pb$9 = common_pb, grpc$b = grpcWebClient_umdExports.grpc, MotorService = function() {
|
|
31134
31649
|
function t() {
|
|
31135
31650
|
}
|
|
31136
31651
|
return t.serviceName = "viam.component.motor.v1.MotorService", t;
|
|
@@ -31212,15 +31727,15 @@ MotorService.DoCommand = {
|
|
|
31212
31727
|
service: MotorService,
|
|
31213
31728
|
requestStream: !1,
|
|
31214
31729
|
responseStream: !1,
|
|
31215
|
-
requestType: common_v1_common_pb$
|
|
31216
|
-
responseType: common_v1_common_pb$
|
|
31730
|
+
requestType: common_v1_common_pb$9.DoCommandRequest,
|
|
31731
|
+
responseType: common_v1_common_pb$9.DoCommandResponse
|
|
31217
31732
|
};
|
|
31218
31733
|
function MotorServiceClient(t, e) {
|
|
31219
31734
|
this.serviceHost = t, this.options = e || {};
|
|
31220
31735
|
}
|
|
31221
31736
|
MotorServiceClient.prototype.setPower = function t(e, s, n) {
|
|
31222
31737
|
arguments.length === 2 && (n = arguments[1]);
|
|
31223
|
-
var u = grpc$
|
|
31738
|
+
var u = grpc$b.unary(MotorService.SetPower, {
|
|
31224
31739
|
request: e,
|
|
31225
31740
|
host: this.serviceHost,
|
|
31226
31741
|
metadata: s,
|
|
@@ -31228,7 +31743,7 @@ MotorServiceClient.prototype.setPower = function t(e, s, n) {
|
|
|
31228
31743
|
debug: this.options.debug,
|
|
31229
31744
|
onEnd: function(g) {
|
|
31230
31745
|
if (n)
|
|
31231
|
-
if (g.status !== grpc$
|
|
31746
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31232
31747
|
var p = new Error(g.statusMessage);
|
|
31233
31748
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31234
31749
|
} else
|
|
@@ -31243,7 +31758,7 @@ MotorServiceClient.prototype.setPower = function t(e, s, n) {
|
|
|
31243
31758
|
};
|
|
31244
31759
|
MotorServiceClient.prototype.goFor = function t(e, s, n) {
|
|
31245
31760
|
arguments.length === 2 && (n = arguments[1]);
|
|
31246
|
-
var u = grpc$
|
|
31761
|
+
var u = grpc$b.unary(MotorService.GoFor, {
|
|
31247
31762
|
request: e,
|
|
31248
31763
|
host: this.serviceHost,
|
|
31249
31764
|
metadata: s,
|
|
@@ -31251,7 +31766,7 @@ MotorServiceClient.prototype.goFor = function t(e, s, n) {
|
|
|
31251
31766
|
debug: this.options.debug,
|
|
31252
31767
|
onEnd: function(g) {
|
|
31253
31768
|
if (n)
|
|
31254
|
-
if (g.status !== grpc$
|
|
31769
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31255
31770
|
var p = new Error(g.statusMessage);
|
|
31256
31771
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31257
31772
|
} else
|
|
@@ -31266,7 +31781,7 @@ MotorServiceClient.prototype.goFor = function t(e, s, n) {
|
|
|
31266
31781
|
};
|
|
31267
31782
|
MotorServiceClient.prototype.goTo = function t(e, s, n) {
|
|
31268
31783
|
arguments.length === 2 && (n = arguments[1]);
|
|
31269
|
-
var u = grpc$
|
|
31784
|
+
var u = grpc$b.unary(MotorService.GoTo, {
|
|
31270
31785
|
request: e,
|
|
31271
31786
|
host: this.serviceHost,
|
|
31272
31787
|
metadata: s,
|
|
@@ -31274,7 +31789,7 @@ MotorServiceClient.prototype.goTo = function t(e, s, n) {
|
|
|
31274
31789
|
debug: this.options.debug,
|
|
31275
31790
|
onEnd: function(g) {
|
|
31276
31791
|
if (n)
|
|
31277
|
-
if (g.status !== grpc$
|
|
31792
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31278
31793
|
var p = new Error(g.statusMessage);
|
|
31279
31794
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31280
31795
|
} else
|
|
@@ -31289,7 +31804,7 @@ MotorServiceClient.prototype.goTo = function t(e, s, n) {
|
|
|
31289
31804
|
};
|
|
31290
31805
|
MotorServiceClient.prototype.resetZeroPosition = function t(e, s, n) {
|
|
31291
31806
|
arguments.length === 2 && (n = arguments[1]);
|
|
31292
|
-
var u = grpc$
|
|
31807
|
+
var u = grpc$b.unary(MotorService.ResetZeroPosition, {
|
|
31293
31808
|
request: e,
|
|
31294
31809
|
host: this.serviceHost,
|
|
31295
31810
|
metadata: s,
|
|
@@ -31297,7 +31812,7 @@ MotorServiceClient.prototype.resetZeroPosition = function t(e, s, n) {
|
|
|
31297
31812
|
debug: this.options.debug,
|
|
31298
31813
|
onEnd: function(g) {
|
|
31299
31814
|
if (n)
|
|
31300
|
-
if (g.status !== grpc$
|
|
31815
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31301
31816
|
var p = new Error(g.statusMessage);
|
|
31302
31817
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31303
31818
|
} else
|
|
@@ -31312,7 +31827,7 @@ MotorServiceClient.prototype.resetZeroPosition = function t(e, s, n) {
|
|
|
31312
31827
|
};
|
|
31313
31828
|
MotorServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
31314
31829
|
arguments.length === 2 && (n = arguments[1]);
|
|
31315
|
-
var u = grpc$
|
|
31830
|
+
var u = grpc$b.unary(MotorService.GetPosition, {
|
|
31316
31831
|
request: e,
|
|
31317
31832
|
host: this.serviceHost,
|
|
31318
31833
|
metadata: s,
|
|
@@ -31320,7 +31835,7 @@ MotorServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
31320
31835
|
debug: this.options.debug,
|
|
31321
31836
|
onEnd: function(g) {
|
|
31322
31837
|
if (n)
|
|
31323
|
-
if (g.status !== grpc$
|
|
31838
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31324
31839
|
var p = new Error(g.statusMessage);
|
|
31325
31840
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31326
31841
|
} else
|
|
@@ -31335,7 +31850,7 @@ MotorServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
31335
31850
|
};
|
|
31336
31851
|
MotorServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
31337
31852
|
arguments.length === 2 && (n = arguments[1]);
|
|
31338
|
-
var u = grpc$
|
|
31853
|
+
var u = grpc$b.unary(MotorService.GetProperties, {
|
|
31339
31854
|
request: e,
|
|
31340
31855
|
host: this.serviceHost,
|
|
31341
31856
|
metadata: s,
|
|
@@ -31343,7 +31858,7 @@ MotorServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
|
31343
31858
|
debug: this.options.debug,
|
|
31344
31859
|
onEnd: function(g) {
|
|
31345
31860
|
if (n)
|
|
31346
|
-
if (g.status !== grpc$
|
|
31861
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31347
31862
|
var p = new Error(g.statusMessage);
|
|
31348
31863
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31349
31864
|
} else
|
|
@@ -31358,7 +31873,7 @@ MotorServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
|
31358
31873
|
};
|
|
31359
31874
|
MotorServiceClient.prototype.stop = function t(e, s, n) {
|
|
31360
31875
|
arguments.length === 2 && (n = arguments[1]);
|
|
31361
|
-
var u = grpc$
|
|
31876
|
+
var u = grpc$b.unary(MotorService.Stop, {
|
|
31362
31877
|
request: e,
|
|
31363
31878
|
host: this.serviceHost,
|
|
31364
31879
|
metadata: s,
|
|
@@ -31366,7 +31881,7 @@ MotorServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
31366
31881
|
debug: this.options.debug,
|
|
31367
31882
|
onEnd: function(g) {
|
|
31368
31883
|
if (n)
|
|
31369
|
-
if (g.status !== grpc$
|
|
31884
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31370
31885
|
var p = new Error(g.statusMessage);
|
|
31371
31886
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31372
31887
|
} else
|
|
@@ -31381,7 +31896,7 @@ MotorServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
31381
31896
|
};
|
|
31382
31897
|
MotorServiceClient.prototype.isPowered = function t(e, s, n) {
|
|
31383
31898
|
arguments.length === 2 && (n = arguments[1]);
|
|
31384
|
-
var u = grpc$
|
|
31899
|
+
var u = grpc$b.unary(MotorService.IsPowered, {
|
|
31385
31900
|
request: e,
|
|
31386
31901
|
host: this.serviceHost,
|
|
31387
31902
|
metadata: s,
|
|
@@ -31389,7 +31904,7 @@ MotorServiceClient.prototype.isPowered = function t(e, s, n) {
|
|
|
31389
31904
|
debug: this.options.debug,
|
|
31390
31905
|
onEnd: function(g) {
|
|
31391
31906
|
if (n)
|
|
31392
|
-
if (g.status !== grpc$
|
|
31907
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31393
31908
|
var p = new Error(g.statusMessage);
|
|
31394
31909
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31395
31910
|
} else
|
|
@@ -31404,7 +31919,7 @@ MotorServiceClient.prototype.isPowered = function t(e, s, n) {
|
|
|
31404
31919
|
};
|
|
31405
31920
|
MotorServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
31406
31921
|
arguments.length === 2 && (n = arguments[1]);
|
|
31407
|
-
var u = grpc$
|
|
31922
|
+
var u = grpc$b.unary(MotorService.IsMoving, {
|
|
31408
31923
|
request: e,
|
|
31409
31924
|
host: this.serviceHost,
|
|
31410
31925
|
metadata: s,
|
|
@@ -31412,7 +31927,7 @@ MotorServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
31412
31927
|
debug: this.options.debug,
|
|
31413
31928
|
onEnd: function(g) {
|
|
31414
31929
|
if (n)
|
|
31415
|
-
if (g.status !== grpc$
|
|
31930
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31416
31931
|
var p = new Error(g.statusMessage);
|
|
31417
31932
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31418
31933
|
} else
|
|
@@ -31427,7 +31942,7 @@ MotorServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
31427
31942
|
};
|
|
31428
31943
|
MotorServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
31429
31944
|
arguments.length === 2 && (n = arguments[1]);
|
|
31430
|
-
var u = grpc$
|
|
31945
|
+
var u = grpc$b.unary(MotorService.DoCommand, {
|
|
31431
31946
|
request: e,
|
|
31432
31947
|
host: this.serviceHost,
|
|
31433
31948
|
metadata: s,
|
|
@@ -31435,7 +31950,7 @@ MotorServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
31435
31950
|
debug: this.options.debug,
|
|
31436
31951
|
onEnd: function(g) {
|
|
31437
31952
|
if (n)
|
|
31438
|
-
if (g.status !== grpc$
|
|
31953
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31439
31954
|
var p = new Error(g.statusMessage);
|
|
31440
31955
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31441
31956
|
} else
|
|
@@ -32458,7 +32973,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
|
|
|
32458
32973
|
return e.Message.getField(this, 1) != null;
|
|
32459
32974
|
}, s.object.extend(t, proto.viam.component.movementsensor.v1);
|
|
32460
32975
|
})(movementsensor_pb);
|
|
32461
|
-
var component_movementsensor_v1_movementsensor_pb = movementsensor_pb, common_v1_common_pb$
|
|
32976
|
+
var component_movementsensor_v1_movementsensor_pb = movementsensor_pb, common_v1_common_pb$8 = common_pb, grpc$a = grpcWebClient_umdExports.grpc, MovementSensorService = function() {
|
|
32462
32977
|
function t() {
|
|
32463
32978
|
}
|
|
32464
32979
|
return t.serviceName = "viam.component.movementsensor.v1.MovementSensorService", t;
|
|
@@ -32532,15 +33047,15 @@ MovementSensorService.DoCommand = {
|
|
|
32532
33047
|
service: MovementSensorService,
|
|
32533
33048
|
requestStream: !1,
|
|
32534
33049
|
responseStream: !1,
|
|
32535
|
-
requestType: common_v1_common_pb$
|
|
32536
|
-
responseType: common_v1_common_pb$
|
|
33050
|
+
requestType: common_v1_common_pb$8.DoCommandRequest,
|
|
33051
|
+
responseType: common_v1_common_pb$8.DoCommandResponse
|
|
32537
33052
|
};
|
|
32538
33053
|
function MovementSensorServiceClient(t, e) {
|
|
32539
33054
|
this.serviceHost = t, this.options = e || {};
|
|
32540
33055
|
}
|
|
32541
33056
|
MovementSensorServiceClient.prototype.getLinearVelocity = function t(e, s, n) {
|
|
32542
33057
|
arguments.length === 2 && (n = arguments[1]);
|
|
32543
|
-
var u = grpc$
|
|
33058
|
+
var u = grpc$a.unary(MovementSensorService.GetLinearVelocity, {
|
|
32544
33059
|
request: e,
|
|
32545
33060
|
host: this.serviceHost,
|
|
32546
33061
|
metadata: s,
|
|
@@ -32548,7 +33063,7 @@ MovementSensorServiceClient.prototype.getLinearVelocity = function t(e, s, n) {
|
|
|
32548
33063
|
debug: this.options.debug,
|
|
32549
33064
|
onEnd: function(g) {
|
|
32550
33065
|
if (n)
|
|
32551
|
-
if (g.status !== grpc$
|
|
33066
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
32552
33067
|
var p = new Error(g.statusMessage);
|
|
32553
33068
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
32554
33069
|
} else
|
|
@@ -32563,7 +33078,7 @@ MovementSensorServiceClient.prototype.getLinearVelocity = function t(e, s, n) {
|
|
|
32563
33078
|
};
|
|
32564
33079
|
MovementSensorServiceClient.prototype.getAngularVelocity = function t(e, s, n) {
|
|
32565
33080
|
arguments.length === 2 && (n = arguments[1]);
|
|
32566
|
-
var u = grpc$
|
|
33081
|
+
var u = grpc$a.unary(MovementSensorService.GetAngularVelocity, {
|
|
32567
33082
|
request: e,
|
|
32568
33083
|
host: this.serviceHost,
|
|
32569
33084
|
metadata: s,
|
|
@@ -32571,7 +33086,7 @@ MovementSensorServiceClient.prototype.getAngularVelocity = function t(e, s, n) {
|
|
|
32571
33086
|
debug: this.options.debug,
|
|
32572
33087
|
onEnd: function(g) {
|
|
32573
33088
|
if (n)
|
|
32574
|
-
if (g.status !== grpc$
|
|
33089
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
32575
33090
|
var p = new Error(g.statusMessage);
|
|
32576
33091
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
32577
33092
|
} else
|
|
@@ -32586,7 +33101,7 @@ MovementSensorServiceClient.prototype.getAngularVelocity = function t(e, s, n) {
|
|
|
32586
33101
|
};
|
|
32587
33102
|
MovementSensorServiceClient.prototype.getCompassHeading = function t(e, s, n) {
|
|
32588
33103
|
arguments.length === 2 && (n = arguments[1]);
|
|
32589
|
-
var u = grpc$
|
|
33104
|
+
var u = grpc$a.unary(MovementSensorService.GetCompassHeading, {
|
|
32590
33105
|
request: e,
|
|
32591
33106
|
host: this.serviceHost,
|
|
32592
33107
|
metadata: s,
|
|
@@ -32594,7 +33109,7 @@ MovementSensorServiceClient.prototype.getCompassHeading = function t(e, s, n) {
|
|
|
32594
33109
|
debug: this.options.debug,
|
|
32595
33110
|
onEnd: function(g) {
|
|
32596
33111
|
if (n)
|
|
32597
|
-
if (g.status !== grpc$
|
|
33112
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
32598
33113
|
var p = new Error(g.statusMessage);
|
|
32599
33114
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
32600
33115
|
} else
|
|
@@ -32609,7 +33124,7 @@ MovementSensorServiceClient.prototype.getCompassHeading = function t(e, s, n) {
|
|
|
32609
33124
|
};
|
|
32610
33125
|
MovementSensorServiceClient.prototype.getOrientation = function t(e, s, n) {
|
|
32611
33126
|
arguments.length === 2 && (n = arguments[1]);
|
|
32612
|
-
var u = grpc$
|
|
33127
|
+
var u = grpc$a.unary(MovementSensorService.GetOrientation, {
|
|
32613
33128
|
request: e,
|
|
32614
33129
|
host: this.serviceHost,
|
|
32615
33130
|
metadata: s,
|
|
@@ -32617,7 +33132,7 @@ MovementSensorServiceClient.prototype.getOrientation = function t(e, s, n) {
|
|
|
32617
33132
|
debug: this.options.debug,
|
|
32618
33133
|
onEnd: function(g) {
|
|
32619
33134
|
if (n)
|
|
32620
|
-
if (g.status !== grpc$
|
|
33135
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
32621
33136
|
var p = new Error(g.statusMessage);
|
|
32622
33137
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
32623
33138
|
} else
|
|
@@ -32632,7 +33147,7 @@ MovementSensorServiceClient.prototype.getOrientation = function t(e, s, n) {
|
|
|
32632
33147
|
};
|
|
32633
33148
|
MovementSensorServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
32634
33149
|
arguments.length === 2 && (n = arguments[1]);
|
|
32635
|
-
var u = grpc$
|
|
33150
|
+
var u = grpc$a.unary(MovementSensorService.GetPosition, {
|
|
32636
33151
|
request: e,
|
|
32637
33152
|
host: this.serviceHost,
|
|
32638
33153
|
metadata: s,
|
|
@@ -32640,7 +33155,7 @@ MovementSensorServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
32640
33155
|
debug: this.options.debug,
|
|
32641
33156
|
onEnd: function(g) {
|
|
32642
33157
|
if (n)
|
|
32643
|
-
if (g.status !== grpc$
|
|
33158
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
32644
33159
|
var p = new Error(g.statusMessage);
|
|
32645
33160
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
32646
33161
|
} else
|
|
@@ -32655,7 +33170,7 @@ MovementSensorServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
32655
33170
|
};
|
|
32656
33171
|
MovementSensorServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
32657
33172
|
arguments.length === 2 && (n = arguments[1]);
|
|
32658
|
-
var u = grpc$
|
|
33173
|
+
var u = grpc$a.unary(MovementSensorService.GetProperties, {
|
|
32659
33174
|
request: e,
|
|
32660
33175
|
host: this.serviceHost,
|
|
32661
33176
|
metadata: s,
|
|
@@ -32663,7 +33178,7 @@ MovementSensorServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
|
32663
33178
|
debug: this.options.debug,
|
|
32664
33179
|
onEnd: function(g) {
|
|
32665
33180
|
if (n)
|
|
32666
|
-
if (g.status !== grpc$
|
|
33181
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
32667
33182
|
var p = new Error(g.statusMessage);
|
|
32668
33183
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
32669
33184
|
} else
|
|
@@ -32678,7 +33193,7 @@ MovementSensorServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
|
32678
33193
|
};
|
|
32679
33194
|
MovementSensorServiceClient.prototype.getAccuracy = function t(e, s, n) {
|
|
32680
33195
|
arguments.length === 2 && (n = arguments[1]);
|
|
32681
|
-
var u = grpc$
|
|
33196
|
+
var u = grpc$a.unary(MovementSensorService.GetAccuracy, {
|
|
32682
33197
|
request: e,
|
|
32683
33198
|
host: this.serviceHost,
|
|
32684
33199
|
metadata: s,
|
|
@@ -32686,7 +33201,7 @@ MovementSensorServiceClient.prototype.getAccuracy = function t(e, s, n) {
|
|
|
32686
33201
|
debug: this.options.debug,
|
|
32687
33202
|
onEnd: function(g) {
|
|
32688
33203
|
if (n)
|
|
32689
|
-
if (g.status !== grpc$
|
|
33204
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
32690
33205
|
var p = new Error(g.statusMessage);
|
|
32691
33206
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
32692
33207
|
} else
|
|
@@ -32701,7 +33216,7 @@ MovementSensorServiceClient.prototype.getAccuracy = function t(e, s, n) {
|
|
|
32701
33216
|
};
|
|
32702
33217
|
MovementSensorServiceClient.prototype.getLinearAcceleration = function t(e, s, n) {
|
|
32703
33218
|
arguments.length === 2 && (n = arguments[1]);
|
|
32704
|
-
var u = grpc$
|
|
33219
|
+
var u = grpc$a.unary(MovementSensorService.GetLinearAcceleration, {
|
|
32705
33220
|
request: e,
|
|
32706
33221
|
host: this.serviceHost,
|
|
32707
33222
|
metadata: s,
|
|
@@ -32709,7 +33224,7 @@ MovementSensorServiceClient.prototype.getLinearAcceleration = function t(e, s, n
|
|
|
32709
33224
|
debug: this.options.debug,
|
|
32710
33225
|
onEnd: function(g) {
|
|
32711
33226
|
if (n)
|
|
32712
|
-
if (g.status !== grpc$
|
|
33227
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
32713
33228
|
var p = new Error(g.statusMessage);
|
|
32714
33229
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
32715
33230
|
} else
|
|
@@ -32724,7 +33239,7 @@ MovementSensorServiceClient.prototype.getLinearAcceleration = function t(e, s, n
|
|
|
32724
33239
|
};
|
|
32725
33240
|
MovementSensorServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
32726
33241
|
arguments.length === 2 && (n = arguments[1]);
|
|
32727
|
-
var u = grpc$
|
|
33242
|
+
var u = grpc$a.unary(MovementSensorService.DoCommand, {
|
|
32728
33243
|
request: e,
|
|
32729
33244
|
host: this.serviceHost,
|
|
32730
33245
|
metadata: s,
|
|
@@ -32732,7 +33247,7 @@ MovementSensorServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
32732
33247
|
debug: this.options.debug,
|
|
32733
33248
|
onEnd: function(g) {
|
|
32734
33249
|
if (n)
|
|
32735
|
-
if (g.status !== grpc$
|
|
33250
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
32736
33251
|
var p = new Error(g.statusMessage);
|
|
32737
33252
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
32738
33253
|
} else
|
|
@@ -33486,7 +34001,7 @@ var MovementSensorServiceClient_1 = MovementSensorServiceClient, navigation_pb =
|
|
|
33486
34001
|
MODE_WAYPOINT: 2
|
|
33487
34002
|
}, s.object.extend(t, proto.viam.service.navigation.v1);
|
|
33488
34003
|
})(navigation_pb);
|
|
33489
|
-
var service_navigation_v1_navigation_pb = navigation_pb, common_v1_common_pb$
|
|
34004
|
+
var service_navigation_v1_navigation_pb = navigation_pb, common_v1_common_pb$7 = common_pb, grpc$9 = grpcWebClient_umdExports.grpc, NavigationService = function() {
|
|
33490
34005
|
function t() {
|
|
33491
34006
|
}
|
|
33492
34007
|
return t.serviceName = "viam.service.navigation.v1.NavigationService", t;
|
|
@@ -33544,15 +34059,15 @@ NavigationService.DoCommand = {
|
|
|
33544
34059
|
service: NavigationService,
|
|
33545
34060
|
requestStream: !1,
|
|
33546
34061
|
responseStream: !1,
|
|
33547
|
-
requestType: common_v1_common_pb$
|
|
33548
|
-
responseType: common_v1_common_pb$
|
|
34062
|
+
requestType: common_v1_common_pb$7.DoCommandRequest,
|
|
34063
|
+
responseType: common_v1_common_pb$7.DoCommandResponse
|
|
33549
34064
|
};
|
|
33550
34065
|
function NavigationServiceClient(t, e) {
|
|
33551
34066
|
this.serviceHost = t, this.options = e || {};
|
|
33552
34067
|
}
|
|
33553
34068
|
NavigationServiceClient.prototype.getMode = function t(e, s, n) {
|
|
33554
34069
|
arguments.length === 2 && (n = arguments[1]);
|
|
33555
|
-
var u = grpc$
|
|
34070
|
+
var u = grpc$9.unary(NavigationService.GetMode, {
|
|
33556
34071
|
request: e,
|
|
33557
34072
|
host: this.serviceHost,
|
|
33558
34073
|
metadata: s,
|
|
@@ -33560,7 +34075,7 @@ NavigationServiceClient.prototype.getMode = function t(e, s, n) {
|
|
|
33560
34075
|
debug: this.options.debug,
|
|
33561
34076
|
onEnd: function(g) {
|
|
33562
34077
|
if (n)
|
|
33563
|
-
if (g.status !== grpc$
|
|
34078
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
33564
34079
|
var p = new Error(g.statusMessage);
|
|
33565
34080
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33566
34081
|
} else
|
|
@@ -33575,7 +34090,7 @@ NavigationServiceClient.prototype.getMode = function t(e, s, n) {
|
|
|
33575
34090
|
};
|
|
33576
34091
|
NavigationServiceClient.prototype.setMode = function t(e, s, n) {
|
|
33577
34092
|
arguments.length === 2 && (n = arguments[1]);
|
|
33578
|
-
var u = grpc$
|
|
34093
|
+
var u = grpc$9.unary(NavigationService.SetMode, {
|
|
33579
34094
|
request: e,
|
|
33580
34095
|
host: this.serviceHost,
|
|
33581
34096
|
metadata: s,
|
|
@@ -33583,7 +34098,7 @@ NavigationServiceClient.prototype.setMode = function t(e, s, n) {
|
|
|
33583
34098
|
debug: this.options.debug,
|
|
33584
34099
|
onEnd: function(g) {
|
|
33585
34100
|
if (n)
|
|
33586
|
-
if (g.status !== grpc$
|
|
34101
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
33587
34102
|
var p = new Error(g.statusMessage);
|
|
33588
34103
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33589
34104
|
} else
|
|
@@ -33598,7 +34113,7 @@ NavigationServiceClient.prototype.setMode = function t(e, s, n) {
|
|
|
33598
34113
|
};
|
|
33599
34114
|
NavigationServiceClient.prototype.getLocation = function t(e, s, n) {
|
|
33600
34115
|
arguments.length === 2 && (n = arguments[1]);
|
|
33601
|
-
var u = grpc$
|
|
34116
|
+
var u = grpc$9.unary(NavigationService.GetLocation, {
|
|
33602
34117
|
request: e,
|
|
33603
34118
|
host: this.serviceHost,
|
|
33604
34119
|
metadata: s,
|
|
@@ -33606,7 +34121,7 @@ NavigationServiceClient.prototype.getLocation = function t(e, s, n) {
|
|
|
33606
34121
|
debug: this.options.debug,
|
|
33607
34122
|
onEnd: function(g) {
|
|
33608
34123
|
if (n)
|
|
33609
|
-
if (g.status !== grpc$
|
|
34124
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
33610
34125
|
var p = new Error(g.statusMessage);
|
|
33611
34126
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33612
34127
|
} else
|
|
@@ -33621,7 +34136,7 @@ NavigationServiceClient.prototype.getLocation = function t(e, s, n) {
|
|
|
33621
34136
|
};
|
|
33622
34137
|
NavigationServiceClient.prototype.getWaypoints = function t(e, s, n) {
|
|
33623
34138
|
arguments.length === 2 && (n = arguments[1]);
|
|
33624
|
-
var u = grpc$
|
|
34139
|
+
var u = grpc$9.unary(NavigationService.GetWaypoints, {
|
|
33625
34140
|
request: e,
|
|
33626
34141
|
host: this.serviceHost,
|
|
33627
34142
|
metadata: s,
|
|
@@ -33629,7 +34144,7 @@ NavigationServiceClient.prototype.getWaypoints = function t(e, s, n) {
|
|
|
33629
34144
|
debug: this.options.debug,
|
|
33630
34145
|
onEnd: function(g) {
|
|
33631
34146
|
if (n)
|
|
33632
|
-
if (g.status !== grpc$
|
|
34147
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
33633
34148
|
var p = new Error(g.statusMessage);
|
|
33634
34149
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33635
34150
|
} else
|
|
@@ -33644,7 +34159,7 @@ NavigationServiceClient.prototype.getWaypoints = function t(e, s, n) {
|
|
|
33644
34159
|
};
|
|
33645
34160
|
NavigationServiceClient.prototype.addWaypoint = function t(e, s, n) {
|
|
33646
34161
|
arguments.length === 2 && (n = arguments[1]);
|
|
33647
|
-
var u = grpc$
|
|
34162
|
+
var u = grpc$9.unary(NavigationService.AddWaypoint, {
|
|
33648
34163
|
request: e,
|
|
33649
34164
|
host: this.serviceHost,
|
|
33650
34165
|
metadata: s,
|
|
@@ -33652,7 +34167,7 @@ NavigationServiceClient.prototype.addWaypoint = function t(e, s, n) {
|
|
|
33652
34167
|
debug: this.options.debug,
|
|
33653
34168
|
onEnd: function(g) {
|
|
33654
34169
|
if (n)
|
|
33655
|
-
if (g.status !== grpc$
|
|
34170
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
33656
34171
|
var p = new Error(g.statusMessage);
|
|
33657
34172
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33658
34173
|
} else
|
|
@@ -33667,7 +34182,7 @@ NavigationServiceClient.prototype.addWaypoint = function t(e, s, n) {
|
|
|
33667
34182
|
};
|
|
33668
34183
|
NavigationServiceClient.prototype.removeWaypoint = function t(e, s, n) {
|
|
33669
34184
|
arguments.length === 2 && (n = arguments[1]);
|
|
33670
|
-
var u = grpc$
|
|
34185
|
+
var u = grpc$9.unary(NavigationService.RemoveWaypoint, {
|
|
33671
34186
|
request: e,
|
|
33672
34187
|
host: this.serviceHost,
|
|
33673
34188
|
metadata: s,
|
|
@@ -33675,7 +34190,7 @@ NavigationServiceClient.prototype.removeWaypoint = function t(e, s, n) {
|
|
|
33675
34190
|
debug: this.options.debug,
|
|
33676
34191
|
onEnd: function(g) {
|
|
33677
34192
|
if (n)
|
|
33678
|
-
if (g.status !== grpc$
|
|
34193
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
33679
34194
|
var p = new Error(g.statusMessage);
|
|
33680
34195
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33681
34196
|
} else
|
|
@@ -33690,7 +34205,7 @@ NavigationServiceClient.prototype.removeWaypoint = function t(e, s, n) {
|
|
|
33690
34205
|
};
|
|
33691
34206
|
NavigationServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
33692
34207
|
arguments.length === 2 && (n = arguments[1]);
|
|
33693
|
-
var u = grpc$
|
|
34208
|
+
var u = grpc$9.unary(NavigationService.DoCommand, {
|
|
33694
34209
|
request: e,
|
|
33695
34210
|
host: this.serviceHost,
|
|
33696
34211
|
metadata: s,
|
|
@@ -33698,7 +34213,7 @@ NavigationServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
33698
34213
|
debug: this.options.debug,
|
|
33699
34214
|
onEnd: function(g) {
|
|
33700
34215
|
if (n)
|
|
33701
|
-
if (g.status !== grpc$
|
|
34216
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
33702
34217
|
var p = new Error(g.statusMessage);
|
|
33703
34218
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33704
34219
|
} else
|
|
@@ -33711,7 +34226,7 @@ NavigationServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
33711
34226
|
}
|
|
33712
34227
|
};
|
|
33713
34228
|
};
|
|
33714
|
-
var NavigationServiceClient_1 = NavigationServiceClient, robot_v1_robot_pb = robot_pb, grpc$
|
|
34229
|
+
var NavigationServiceClient_1 = NavigationServiceClient, robot_v1_robot_pb = robot_pb, grpc$8 = grpcWebClient_umdExports.grpc, RobotService = function() {
|
|
33715
34230
|
function t() {
|
|
33716
34231
|
}
|
|
33717
34232
|
return t.serviceName = "viam.robot.v1.RobotService", t;
|
|
@@ -33841,7 +34356,7 @@ function RobotServiceClient(t, e) {
|
|
|
33841
34356
|
}
|
|
33842
34357
|
RobotServiceClient.prototype.getOperations = function t(e, s, n) {
|
|
33843
34358
|
arguments.length === 2 && (n = arguments[1]);
|
|
33844
|
-
var u = grpc$
|
|
34359
|
+
var u = grpc$8.unary(RobotService.GetOperations, {
|
|
33845
34360
|
request: e,
|
|
33846
34361
|
host: this.serviceHost,
|
|
33847
34362
|
metadata: s,
|
|
@@ -33849,7 +34364,7 @@ RobotServiceClient.prototype.getOperations = function t(e, s, n) {
|
|
|
33849
34364
|
debug: this.options.debug,
|
|
33850
34365
|
onEnd: function(g) {
|
|
33851
34366
|
if (n)
|
|
33852
|
-
if (g.status !== grpc$
|
|
34367
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
33853
34368
|
var p = new Error(g.statusMessage);
|
|
33854
34369
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33855
34370
|
} else
|
|
@@ -33864,7 +34379,7 @@ RobotServiceClient.prototype.getOperations = function t(e, s, n) {
|
|
|
33864
34379
|
};
|
|
33865
34380
|
RobotServiceClient.prototype.getSessions = function t(e, s, n) {
|
|
33866
34381
|
arguments.length === 2 && (n = arguments[1]);
|
|
33867
|
-
var u = grpc$
|
|
34382
|
+
var u = grpc$8.unary(RobotService.GetSessions, {
|
|
33868
34383
|
request: e,
|
|
33869
34384
|
host: this.serviceHost,
|
|
33870
34385
|
metadata: s,
|
|
@@ -33872,7 +34387,7 @@ RobotServiceClient.prototype.getSessions = function t(e, s, n) {
|
|
|
33872
34387
|
debug: this.options.debug,
|
|
33873
34388
|
onEnd: function(g) {
|
|
33874
34389
|
if (n)
|
|
33875
|
-
if (g.status !== grpc$
|
|
34390
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
33876
34391
|
var p = new Error(g.statusMessage);
|
|
33877
34392
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33878
34393
|
} else
|
|
@@ -33887,7 +34402,7 @@ RobotServiceClient.prototype.getSessions = function t(e, s, n) {
|
|
|
33887
34402
|
};
|
|
33888
34403
|
RobotServiceClient.prototype.resourceNames = function t(e, s, n) {
|
|
33889
34404
|
arguments.length === 2 && (n = arguments[1]);
|
|
33890
|
-
var u = grpc$
|
|
34405
|
+
var u = grpc$8.unary(RobotService.ResourceNames, {
|
|
33891
34406
|
request: e,
|
|
33892
34407
|
host: this.serviceHost,
|
|
33893
34408
|
metadata: s,
|
|
@@ -33895,7 +34410,7 @@ RobotServiceClient.prototype.resourceNames = function t(e, s, n) {
|
|
|
33895
34410
|
debug: this.options.debug,
|
|
33896
34411
|
onEnd: function(g) {
|
|
33897
34412
|
if (n)
|
|
33898
|
-
if (g.status !== grpc$
|
|
34413
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
33899
34414
|
var p = new Error(g.statusMessage);
|
|
33900
34415
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33901
34416
|
} else
|
|
@@ -33910,7 +34425,7 @@ RobotServiceClient.prototype.resourceNames = function t(e, s, n) {
|
|
|
33910
34425
|
};
|
|
33911
34426
|
RobotServiceClient.prototype.resourceRPCSubtypes = function t(e, s, n) {
|
|
33912
34427
|
arguments.length === 2 && (n = arguments[1]);
|
|
33913
|
-
var u = grpc$
|
|
34428
|
+
var u = grpc$8.unary(RobotService.ResourceRPCSubtypes, {
|
|
33914
34429
|
request: e,
|
|
33915
34430
|
host: this.serviceHost,
|
|
33916
34431
|
metadata: s,
|
|
@@ -33918,7 +34433,7 @@ RobotServiceClient.prototype.resourceRPCSubtypes = function t(e, s, n) {
|
|
|
33918
34433
|
debug: this.options.debug,
|
|
33919
34434
|
onEnd: function(g) {
|
|
33920
34435
|
if (n)
|
|
33921
|
-
if (g.status !== grpc$
|
|
34436
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
33922
34437
|
var p = new Error(g.statusMessage);
|
|
33923
34438
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33924
34439
|
} else
|
|
@@ -33933,7 +34448,7 @@ RobotServiceClient.prototype.resourceRPCSubtypes = function t(e, s, n) {
|
|
|
33933
34448
|
};
|
|
33934
34449
|
RobotServiceClient.prototype.cancelOperation = function t(e, s, n) {
|
|
33935
34450
|
arguments.length === 2 && (n = arguments[1]);
|
|
33936
|
-
var u = grpc$
|
|
34451
|
+
var u = grpc$8.unary(RobotService.CancelOperation, {
|
|
33937
34452
|
request: e,
|
|
33938
34453
|
host: this.serviceHost,
|
|
33939
34454
|
metadata: s,
|
|
@@ -33941,7 +34456,7 @@ RobotServiceClient.prototype.cancelOperation = function t(e, s, n) {
|
|
|
33941
34456
|
debug: this.options.debug,
|
|
33942
34457
|
onEnd: function(g) {
|
|
33943
34458
|
if (n)
|
|
33944
|
-
if (g.status !== grpc$
|
|
34459
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
33945
34460
|
var p = new Error(g.statusMessage);
|
|
33946
34461
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33947
34462
|
} else
|
|
@@ -33956,7 +34471,7 @@ RobotServiceClient.prototype.cancelOperation = function t(e, s, n) {
|
|
|
33956
34471
|
};
|
|
33957
34472
|
RobotServiceClient.prototype.blockForOperation = function t(e, s, n) {
|
|
33958
34473
|
arguments.length === 2 && (n = arguments[1]);
|
|
33959
|
-
var u = grpc$
|
|
34474
|
+
var u = grpc$8.unary(RobotService.BlockForOperation, {
|
|
33960
34475
|
request: e,
|
|
33961
34476
|
host: this.serviceHost,
|
|
33962
34477
|
metadata: s,
|
|
@@ -33964,7 +34479,7 @@ RobotServiceClient.prototype.blockForOperation = function t(e, s, n) {
|
|
|
33964
34479
|
debug: this.options.debug,
|
|
33965
34480
|
onEnd: function(g) {
|
|
33966
34481
|
if (n)
|
|
33967
|
-
if (g.status !== grpc$
|
|
34482
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
33968
34483
|
var p = new Error(g.statusMessage);
|
|
33969
34484
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33970
34485
|
} else
|
|
@@ -33979,7 +34494,7 @@ RobotServiceClient.prototype.blockForOperation = function t(e, s, n) {
|
|
|
33979
34494
|
};
|
|
33980
34495
|
RobotServiceClient.prototype.discoverComponents = function t(e, s, n) {
|
|
33981
34496
|
arguments.length === 2 && (n = arguments[1]);
|
|
33982
|
-
var u = grpc$
|
|
34497
|
+
var u = grpc$8.unary(RobotService.DiscoverComponents, {
|
|
33983
34498
|
request: e,
|
|
33984
34499
|
host: this.serviceHost,
|
|
33985
34500
|
metadata: s,
|
|
@@ -33987,7 +34502,7 @@ RobotServiceClient.prototype.discoverComponents = function t(e, s, n) {
|
|
|
33987
34502
|
debug: this.options.debug,
|
|
33988
34503
|
onEnd: function(g) {
|
|
33989
34504
|
if (n)
|
|
33990
|
-
if (g.status !== grpc$
|
|
34505
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
33991
34506
|
var p = new Error(g.statusMessage);
|
|
33992
34507
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33993
34508
|
} else
|
|
@@ -34002,7 +34517,7 @@ RobotServiceClient.prototype.discoverComponents = function t(e, s, n) {
|
|
|
34002
34517
|
};
|
|
34003
34518
|
RobotServiceClient.prototype.frameSystemConfig = function t(e, s, n) {
|
|
34004
34519
|
arguments.length === 2 && (n = arguments[1]);
|
|
34005
|
-
var u = grpc$
|
|
34520
|
+
var u = grpc$8.unary(RobotService.FrameSystemConfig, {
|
|
34006
34521
|
request: e,
|
|
34007
34522
|
host: this.serviceHost,
|
|
34008
34523
|
metadata: s,
|
|
@@ -34010,7 +34525,7 @@ RobotServiceClient.prototype.frameSystemConfig = function t(e, s, n) {
|
|
|
34010
34525
|
debug: this.options.debug,
|
|
34011
34526
|
onEnd: function(g) {
|
|
34012
34527
|
if (n)
|
|
34013
|
-
if (g.status !== grpc$
|
|
34528
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34014
34529
|
var p = new Error(g.statusMessage);
|
|
34015
34530
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34016
34531
|
} else
|
|
@@ -34025,7 +34540,7 @@ RobotServiceClient.prototype.frameSystemConfig = function t(e, s, n) {
|
|
|
34025
34540
|
};
|
|
34026
34541
|
RobotServiceClient.prototype.transformPose = function t(e, s, n) {
|
|
34027
34542
|
arguments.length === 2 && (n = arguments[1]);
|
|
34028
|
-
var u = grpc$
|
|
34543
|
+
var u = grpc$8.unary(RobotService.TransformPose, {
|
|
34029
34544
|
request: e,
|
|
34030
34545
|
host: this.serviceHost,
|
|
34031
34546
|
metadata: s,
|
|
@@ -34033,7 +34548,7 @@ RobotServiceClient.prototype.transformPose = function t(e, s, n) {
|
|
|
34033
34548
|
debug: this.options.debug,
|
|
34034
34549
|
onEnd: function(g) {
|
|
34035
34550
|
if (n)
|
|
34036
|
-
if (g.status !== grpc$
|
|
34551
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34037
34552
|
var p = new Error(g.statusMessage);
|
|
34038
34553
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34039
34554
|
} else
|
|
@@ -34048,7 +34563,7 @@ RobotServiceClient.prototype.transformPose = function t(e, s, n) {
|
|
|
34048
34563
|
};
|
|
34049
34564
|
RobotServiceClient.prototype.transformPCD = function t(e, s, n) {
|
|
34050
34565
|
arguments.length === 2 && (n = arguments[1]);
|
|
34051
|
-
var u = grpc$
|
|
34566
|
+
var u = grpc$8.unary(RobotService.TransformPCD, {
|
|
34052
34567
|
request: e,
|
|
34053
34568
|
host: this.serviceHost,
|
|
34054
34569
|
metadata: s,
|
|
@@ -34056,7 +34571,7 @@ RobotServiceClient.prototype.transformPCD = function t(e, s, n) {
|
|
|
34056
34571
|
debug: this.options.debug,
|
|
34057
34572
|
onEnd: function(g) {
|
|
34058
34573
|
if (n)
|
|
34059
|
-
if (g.status !== grpc$
|
|
34574
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34060
34575
|
var p = new Error(g.statusMessage);
|
|
34061
34576
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34062
34577
|
} else
|
|
@@ -34071,7 +34586,7 @@ RobotServiceClient.prototype.transformPCD = function t(e, s, n) {
|
|
|
34071
34586
|
};
|
|
34072
34587
|
RobotServiceClient.prototype.getStatus = function t(e, s, n) {
|
|
34073
34588
|
arguments.length === 2 && (n = arguments[1]);
|
|
34074
|
-
var u = grpc$
|
|
34589
|
+
var u = grpc$8.unary(RobotService.GetStatus, {
|
|
34075
34590
|
request: e,
|
|
34076
34591
|
host: this.serviceHost,
|
|
34077
34592
|
metadata: s,
|
|
@@ -34079,7 +34594,7 @@ RobotServiceClient.prototype.getStatus = function t(e, s, n) {
|
|
|
34079
34594
|
debug: this.options.debug,
|
|
34080
34595
|
onEnd: function(g) {
|
|
34081
34596
|
if (n)
|
|
34082
|
-
if (g.status !== grpc$
|
|
34597
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34083
34598
|
var p = new Error(g.statusMessage);
|
|
34084
34599
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34085
34600
|
} else
|
|
@@ -34097,7 +34612,7 @@ RobotServiceClient.prototype.streamStatus = function t(e, s) {
|
|
|
34097
34612
|
data: [],
|
|
34098
34613
|
end: [],
|
|
34099
34614
|
status: []
|
|
34100
|
-
}, u = grpc$
|
|
34615
|
+
}, u = grpc$8.invoke(RobotService.StreamStatus, {
|
|
34101
34616
|
request: e,
|
|
34102
34617
|
host: this.serviceHost,
|
|
34103
34618
|
metadata: s,
|
|
@@ -34127,7 +34642,7 @@ RobotServiceClient.prototype.streamStatus = function t(e, s) {
|
|
|
34127
34642
|
};
|
|
34128
34643
|
RobotServiceClient.prototype.stopAll = function t(e, s, n) {
|
|
34129
34644
|
arguments.length === 2 && (n = arguments[1]);
|
|
34130
|
-
var u = grpc$
|
|
34645
|
+
var u = grpc$8.unary(RobotService.StopAll, {
|
|
34131
34646
|
request: e,
|
|
34132
34647
|
host: this.serviceHost,
|
|
34133
34648
|
metadata: s,
|
|
@@ -34135,7 +34650,7 @@ RobotServiceClient.prototype.stopAll = function t(e, s, n) {
|
|
|
34135
34650
|
debug: this.options.debug,
|
|
34136
34651
|
onEnd: function(g) {
|
|
34137
34652
|
if (n)
|
|
34138
|
-
if (g.status !== grpc$
|
|
34653
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34139
34654
|
var p = new Error(g.statusMessage);
|
|
34140
34655
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34141
34656
|
} else
|
|
@@ -34150,7 +34665,7 @@ RobotServiceClient.prototype.stopAll = function t(e, s, n) {
|
|
|
34150
34665
|
};
|
|
34151
34666
|
RobotServiceClient.prototype.startSession = function t(e, s, n) {
|
|
34152
34667
|
arguments.length === 2 && (n = arguments[1]);
|
|
34153
|
-
var u = grpc$
|
|
34668
|
+
var u = grpc$8.unary(RobotService.StartSession, {
|
|
34154
34669
|
request: e,
|
|
34155
34670
|
host: this.serviceHost,
|
|
34156
34671
|
metadata: s,
|
|
@@ -34158,7 +34673,7 @@ RobotServiceClient.prototype.startSession = function t(e, s, n) {
|
|
|
34158
34673
|
debug: this.options.debug,
|
|
34159
34674
|
onEnd: function(g) {
|
|
34160
34675
|
if (n)
|
|
34161
|
-
if (g.status !== grpc$
|
|
34676
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34162
34677
|
var p = new Error(g.statusMessage);
|
|
34163
34678
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34164
34679
|
} else
|
|
@@ -34173,7 +34688,7 @@ RobotServiceClient.prototype.startSession = function t(e, s, n) {
|
|
|
34173
34688
|
};
|
|
34174
34689
|
RobotServiceClient.prototype.sendSessionHeartbeat = function t(e, s, n) {
|
|
34175
34690
|
arguments.length === 2 && (n = arguments[1]);
|
|
34176
|
-
var u = grpc$
|
|
34691
|
+
var u = grpc$8.unary(RobotService.SendSessionHeartbeat, {
|
|
34177
34692
|
request: e,
|
|
34178
34693
|
host: this.serviceHost,
|
|
34179
34694
|
metadata: s,
|
|
@@ -34181,7 +34696,7 @@ RobotServiceClient.prototype.sendSessionHeartbeat = function t(e, s, n) {
|
|
|
34181
34696
|
debug: this.options.debug,
|
|
34182
34697
|
onEnd: function(g) {
|
|
34183
34698
|
if (n)
|
|
34184
|
-
if (g.status !== grpc$
|
|
34699
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34185
34700
|
var p = new Error(g.statusMessage);
|
|
34186
34701
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34187
34702
|
} else
|
|
@@ -34543,7 +35058,7 @@ var RobotServiceClient_1 = RobotServiceClient, slam_pb = {};
|
|
|
34543
35058
|
return e.Message.setProto3BytesField(this, 1, o);
|
|
34544
35059
|
}, s.object.extend(t, proto.viam.service.slam.v1);
|
|
34545
35060
|
})(slam_pb);
|
|
34546
|
-
var service_slam_v1_slam_pb = slam_pb, common_v1_common_pb$
|
|
35061
|
+
var service_slam_v1_slam_pb = slam_pb, common_v1_common_pb$6 = common_pb, grpc$7 = grpcWebClient_umdExports.grpc, SLAMService = function() {
|
|
34547
35062
|
function t() {
|
|
34548
35063
|
}
|
|
34549
35064
|
return t.serviceName = "viam.service.slam.v1.SLAMService", t;
|
|
@@ -34577,15 +35092,15 @@ SLAMService.DoCommand = {
|
|
|
34577
35092
|
service: SLAMService,
|
|
34578
35093
|
requestStream: !1,
|
|
34579
35094
|
responseStream: !1,
|
|
34580
|
-
requestType: common_v1_common_pb$
|
|
34581
|
-
responseType: common_v1_common_pb$
|
|
35095
|
+
requestType: common_v1_common_pb$6.DoCommandRequest,
|
|
35096
|
+
responseType: common_v1_common_pb$6.DoCommandResponse
|
|
34582
35097
|
};
|
|
34583
35098
|
function SLAMServiceClient(t, e) {
|
|
34584
35099
|
this.serviceHost = t, this.options = e || {};
|
|
34585
35100
|
}
|
|
34586
35101
|
SLAMServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
34587
35102
|
arguments.length === 2 && (n = arguments[1]);
|
|
34588
|
-
var u = grpc$
|
|
35103
|
+
var u = grpc$7.unary(SLAMService.GetPosition, {
|
|
34589
35104
|
request: e,
|
|
34590
35105
|
host: this.serviceHost,
|
|
34591
35106
|
metadata: s,
|
|
@@ -34593,7 +35108,7 @@ SLAMServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
34593
35108
|
debug: this.options.debug,
|
|
34594
35109
|
onEnd: function(g) {
|
|
34595
35110
|
if (n)
|
|
34596
|
-
if (g.status !== grpc$
|
|
35111
|
+
if (g.status !== grpc$7.Code.OK) {
|
|
34597
35112
|
var p = new Error(g.statusMessage);
|
|
34598
35113
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34599
35114
|
} else
|
|
@@ -34611,7 +35126,7 @@ SLAMServiceClient.prototype.getPointCloudMap = function t(e, s) {
|
|
|
34611
35126
|
data: [],
|
|
34612
35127
|
end: [],
|
|
34613
35128
|
status: []
|
|
34614
|
-
}, u = grpc$
|
|
35129
|
+
}, u = grpc$7.invoke(SLAMService.GetPointCloudMap, {
|
|
34615
35130
|
request: e,
|
|
34616
35131
|
host: this.serviceHost,
|
|
34617
35132
|
metadata: s,
|
|
@@ -34644,7 +35159,7 @@ SLAMServiceClient.prototype.getInternalState = function t(e, s) {
|
|
|
34644
35159
|
data: [],
|
|
34645
35160
|
end: [],
|
|
34646
35161
|
status: []
|
|
34647
|
-
}, u = grpc$
|
|
35162
|
+
}, u = grpc$7.invoke(SLAMService.GetInternalState, {
|
|
34648
35163
|
request: e,
|
|
34649
35164
|
host: this.serviceHost,
|
|
34650
35165
|
metadata: s,
|
|
@@ -34674,7 +35189,7 @@ SLAMServiceClient.prototype.getInternalState = function t(e, s) {
|
|
|
34674
35189
|
};
|
|
34675
35190
|
SLAMServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
34676
35191
|
arguments.length === 2 && (n = arguments[1]);
|
|
34677
|
-
var u = grpc$
|
|
35192
|
+
var u = grpc$7.unary(SLAMService.DoCommand, {
|
|
34678
35193
|
request: e,
|
|
34679
35194
|
host: this.serviceHost,
|
|
34680
35195
|
metadata: s,
|
|
@@ -34682,7 +35197,7 @@ SLAMServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
34682
35197
|
debug: this.options.debug,
|
|
34683
35198
|
onEnd: function(g) {
|
|
34684
35199
|
if (n)
|
|
34685
|
-
if (g.status !== grpc$
|
|
35200
|
+
if (g.status !== grpc$7.Code.OK) {
|
|
34686
35201
|
var p = new Error(g.statusMessage);
|
|
34687
35202
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34688
35203
|
} else
|
|
@@ -35028,7 +35543,7 @@ var SLAMServiceClient_1 = SLAMServiceClient, sensors_pb = {};
|
|
|
35028
35543
|
return this.setReadingsList([]);
|
|
35029
35544
|
}, s.object.extend(t, proto.viam.service.sensors.v1);
|
|
35030
35545
|
})(sensors_pb);
|
|
35031
|
-
var service_sensors_v1_sensors_pb = sensors_pb, common_v1_common_pb$
|
|
35546
|
+
var service_sensors_v1_sensors_pb = sensors_pb, common_v1_common_pb$5 = common_pb, grpc$6 = grpcWebClient_umdExports.grpc, SensorsService = function() {
|
|
35032
35547
|
function t() {
|
|
35033
35548
|
}
|
|
35034
35549
|
return t.serviceName = "viam.service.sensors.v1.SensorsService", t;
|
|
@@ -35054,15 +35569,15 @@ SensorsService.DoCommand = {
|
|
|
35054
35569
|
service: SensorsService,
|
|
35055
35570
|
requestStream: !1,
|
|
35056
35571
|
responseStream: !1,
|
|
35057
|
-
requestType: common_v1_common_pb$
|
|
35058
|
-
responseType: common_v1_common_pb$
|
|
35572
|
+
requestType: common_v1_common_pb$5.DoCommandRequest,
|
|
35573
|
+
responseType: common_v1_common_pb$5.DoCommandResponse
|
|
35059
35574
|
};
|
|
35060
35575
|
function SensorsServiceClient(t, e) {
|
|
35061
35576
|
this.serviceHost = t, this.options = e || {};
|
|
35062
35577
|
}
|
|
35063
35578
|
SensorsServiceClient.prototype.getSensors = function t(e, s, n) {
|
|
35064
35579
|
arguments.length === 2 && (n = arguments[1]);
|
|
35065
|
-
var u = grpc$
|
|
35580
|
+
var u = grpc$6.unary(SensorsService.GetSensors, {
|
|
35066
35581
|
request: e,
|
|
35067
35582
|
host: this.serviceHost,
|
|
35068
35583
|
metadata: s,
|
|
@@ -35070,7 +35585,7 @@ SensorsServiceClient.prototype.getSensors = function t(e, s, n) {
|
|
|
35070
35585
|
debug: this.options.debug,
|
|
35071
35586
|
onEnd: function(g) {
|
|
35072
35587
|
if (n)
|
|
35073
|
-
if (g.status !== grpc$
|
|
35588
|
+
if (g.status !== grpc$6.Code.OK) {
|
|
35074
35589
|
var p = new Error(g.statusMessage);
|
|
35075
35590
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
35076
35591
|
} else
|
|
@@ -35085,7 +35600,7 @@ SensorsServiceClient.prototype.getSensors = function t(e, s, n) {
|
|
|
35085
35600
|
};
|
|
35086
35601
|
SensorsServiceClient.prototype.getReadings = function t(e, s, n) {
|
|
35087
35602
|
arguments.length === 2 && (n = arguments[1]);
|
|
35088
|
-
var u = grpc$
|
|
35603
|
+
var u = grpc$6.unary(SensorsService.GetReadings, {
|
|
35089
35604
|
request: e,
|
|
35090
35605
|
host: this.serviceHost,
|
|
35091
35606
|
metadata: s,
|
|
@@ -35093,7 +35608,7 @@ SensorsServiceClient.prototype.getReadings = function t(e, s, n) {
|
|
|
35093
35608
|
debug: this.options.debug,
|
|
35094
35609
|
onEnd: function(g) {
|
|
35095
35610
|
if (n)
|
|
35096
|
-
if (g.status !== grpc$
|
|
35611
|
+
if (g.status !== grpc$6.Code.OK) {
|
|
35097
35612
|
var p = new Error(g.statusMessage);
|
|
35098
35613
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
35099
35614
|
} else
|
|
@@ -35108,7 +35623,7 @@ SensorsServiceClient.prototype.getReadings = function t(e, s, n) {
|
|
|
35108
35623
|
};
|
|
35109
35624
|
SensorsServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
35110
35625
|
arguments.length === 2 && (n = arguments[1]);
|
|
35111
|
-
var u = grpc$
|
|
35626
|
+
var u = grpc$6.unary(SensorsService.DoCommand, {
|
|
35112
35627
|
request: e,
|
|
35113
35628
|
host: this.serviceHost,
|
|
35114
35629
|
metadata: s,
|
|
@@ -35116,7 +35631,7 @@ SensorsServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
35116
35631
|
debug: this.options.debug,
|
|
35117
35632
|
onEnd: function(g) {
|
|
35118
35633
|
if (n)
|
|
35119
|
-
if (g.status !== grpc$
|
|
35634
|
+
if (g.status !== grpc$6.Code.OK) {
|
|
35120
35635
|
var p = new Error(g.statusMessage);
|
|
35121
35636
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
35122
35637
|
} else
|
|
@@ -35599,7 +36114,7 @@ var SensorsServiceClient_1 = SensorsServiceClient, servo_pb = {};
|
|
|
35599
36114
|
return e.Message.setProto3BooleanField(this, 1, o);
|
|
35600
36115
|
}, s.object.extend(t, proto.viam.component.servo.v1);
|
|
35601
36116
|
})(servo_pb);
|
|
35602
|
-
var component_servo_v1_servo_pb = servo_pb, common_v1_common_pb$
|
|
36117
|
+
var component_servo_v1_servo_pb = servo_pb, common_v1_common_pb$4 = common_pb, grpc$5 = grpcWebClient_umdExports.grpc, ServoService = function() {
|
|
35603
36118
|
function t() {
|
|
35604
36119
|
}
|
|
35605
36120
|
return t.serviceName = "viam.component.servo.v1.ServoService", t;
|
|
@@ -35641,15 +36156,15 @@ ServoService.DoCommand = {
|
|
|
35641
36156
|
service: ServoService,
|
|
35642
36157
|
requestStream: !1,
|
|
35643
36158
|
responseStream: !1,
|
|
35644
|
-
requestType: common_v1_common_pb$
|
|
35645
|
-
responseType: common_v1_common_pb$
|
|
36159
|
+
requestType: common_v1_common_pb$4.DoCommandRequest,
|
|
36160
|
+
responseType: common_v1_common_pb$4.DoCommandResponse
|
|
35646
36161
|
};
|
|
35647
36162
|
function ServoServiceClient(t, e) {
|
|
35648
36163
|
this.serviceHost = t, this.options = e || {};
|
|
35649
36164
|
}
|
|
35650
36165
|
ServoServiceClient.prototype.move = function t(e, s, n) {
|
|
35651
36166
|
arguments.length === 2 && (n = arguments[1]);
|
|
35652
|
-
var u = grpc$
|
|
36167
|
+
var u = grpc$5.unary(ServoService.Move, {
|
|
35653
36168
|
request: e,
|
|
35654
36169
|
host: this.serviceHost,
|
|
35655
36170
|
metadata: s,
|
|
@@ -35657,7 +36172,7 @@ ServoServiceClient.prototype.move = function t(e, s, n) {
|
|
|
35657
36172
|
debug: this.options.debug,
|
|
35658
36173
|
onEnd: function(g) {
|
|
35659
36174
|
if (n)
|
|
35660
|
-
if (g.status !== grpc$
|
|
36175
|
+
if (g.status !== grpc$5.Code.OK) {
|
|
35661
36176
|
var p = new Error(g.statusMessage);
|
|
35662
36177
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
35663
36178
|
} else
|
|
@@ -35672,7 +36187,7 @@ ServoServiceClient.prototype.move = function t(e, s, n) {
|
|
|
35672
36187
|
};
|
|
35673
36188
|
ServoServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
35674
36189
|
arguments.length === 2 && (n = arguments[1]);
|
|
35675
|
-
var u = grpc$
|
|
36190
|
+
var u = grpc$5.unary(ServoService.GetPosition, {
|
|
35676
36191
|
request: e,
|
|
35677
36192
|
host: this.serviceHost,
|
|
35678
36193
|
metadata: s,
|
|
@@ -35680,7 +36195,7 @@ ServoServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
35680
36195
|
debug: this.options.debug,
|
|
35681
36196
|
onEnd: function(g) {
|
|
35682
36197
|
if (n)
|
|
35683
|
-
if (g.status !== grpc$
|
|
36198
|
+
if (g.status !== grpc$5.Code.OK) {
|
|
35684
36199
|
var p = new Error(g.statusMessage);
|
|
35685
36200
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
35686
36201
|
} else
|
|
@@ -35695,7 +36210,7 @@ ServoServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
35695
36210
|
};
|
|
35696
36211
|
ServoServiceClient.prototype.stop = function t(e, s, n) {
|
|
35697
36212
|
arguments.length === 2 && (n = arguments[1]);
|
|
35698
|
-
var u = grpc$
|
|
36213
|
+
var u = grpc$5.unary(ServoService.Stop, {
|
|
35699
36214
|
request: e,
|
|
35700
36215
|
host: this.serviceHost,
|
|
35701
36216
|
metadata: s,
|
|
@@ -35703,7 +36218,7 @@ ServoServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
35703
36218
|
debug: this.options.debug,
|
|
35704
36219
|
onEnd: function(g) {
|
|
35705
36220
|
if (n)
|
|
35706
|
-
if (g.status !== grpc$
|
|
36221
|
+
if (g.status !== grpc$5.Code.OK) {
|
|
35707
36222
|
var p = new Error(g.statusMessage);
|
|
35708
36223
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
35709
36224
|
} else
|
|
@@ -35718,7 +36233,7 @@ ServoServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
35718
36233
|
};
|
|
35719
36234
|
ServoServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
35720
36235
|
arguments.length === 2 && (n = arguments[1]);
|
|
35721
|
-
var u = grpc$
|
|
36236
|
+
var u = grpc$5.unary(ServoService.IsMoving, {
|
|
35722
36237
|
request: e,
|
|
35723
36238
|
host: this.serviceHost,
|
|
35724
36239
|
metadata: s,
|
|
@@ -35726,7 +36241,7 @@ ServoServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
35726
36241
|
debug: this.options.debug,
|
|
35727
36242
|
onEnd: function(g) {
|
|
35728
36243
|
if (n)
|
|
35729
|
-
if (g.status !== grpc$
|
|
36244
|
+
if (g.status !== grpc$5.Code.OK) {
|
|
35730
36245
|
var p = new Error(g.statusMessage);
|
|
35731
36246
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
35732
36247
|
} else
|
|
@@ -35741,7 +36256,7 @@ ServoServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
35741
36256
|
};
|
|
35742
36257
|
ServoServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
35743
36258
|
arguments.length === 2 && (n = arguments[1]);
|
|
35744
|
-
var u = grpc$
|
|
36259
|
+
var u = grpc$5.unary(ServoService.DoCommand, {
|
|
35745
36260
|
request: e,
|
|
35746
36261
|
host: this.serviceHost,
|
|
35747
36262
|
metadata: s,
|
|
@@ -35749,7 +36264,7 @@ ServoServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
35749
36264
|
debug: this.options.debug,
|
|
35750
36265
|
onEnd: function(g) {
|
|
35751
36266
|
if (n)
|
|
35752
|
-
if (g.status !== grpc$
|
|
36267
|
+
if (g.status !== grpc$5.Code.OK) {
|
|
35753
36268
|
var p = new Error(g.statusMessage);
|
|
35754
36269
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
35755
36270
|
} else
|
|
@@ -38354,7 +38869,7 @@ var vision_pb = {};
|
|
|
38354
38869
|
return this.setObjectsList([]);
|
|
38355
38870
|
}, s.object.extend(t, proto.viam.service.vision.v1);
|
|
38356
38871
|
})(vision_pb);
|
|
38357
|
-
var service_vision_v1_vision_pb = vision_pb, common_v1_common_pb$
|
|
38872
|
+
var service_vision_v1_vision_pb = vision_pb, common_v1_common_pb$3 = common_pb, grpc$4 = grpcWebClient_umdExports.grpc, VisionService = function() {
|
|
38358
38873
|
function t() {
|
|
38359
38874
|
}
|
|
38360
38875
|
return t.serviceName = "viam.service.vision.v1.VisionService", t;
|
|
@@ -38484,15 +38999,15 @@ VisionService.DoCommand = {
|
|
|
38484
38999
|
service: VisionService,
|
|
38485
39000
|
requestStream: !1,
|
|
38486
39001
|
responseStream: !1,
|
|
38487
|
-
requestType: common_v1_common_pb$
|
|
38488
|
-
responseType: common_v1_common_pb$
|
|
39002
|
+
requestType: common_v1_common_pb$3.DoCommandRequest,
|
|
39003
|
+
responseType: common_v1_common_pb$3.DoCommandResponse
|
|
38489
39004
|
};
|
|
38490
39005
|
function VisionServiceClient(t, e) {
|
|
38491
39006
|
this.serviceHost = t, this.options = e || {};
|
|
38492
39007
|
}
|
|
38493
39008
|
VisionServiceClient.prototype.getModelParameterSchema = function t(e, s, n) {
|
|
38494
39009
|
arguments.length === 2 && (n = arguments[1]);
|
|
38495
|
-
var u = grpc$
|
|
39010
|
+
var u = grpc$4.unary(VisionService.GetModelParameterSchema, {
|
|
38496
39011
|
request: e,
|
|
38497
39012
|
host: this.serviceHost,
|
|
38498
39013
|
metadata: s,
|
|
@@ -38500,7 +39015,7 @@ VisionServiceClient.prototype.getModelParameterSchema = function t(e, s, n) {
|
|
|
38500
39015
|
debug: this.options.debug,
|
|
38501
39016
|
onEnd: function(g) {
|
|
38502
39017
|
if (n)
|
|
38503
|
-
if (g.status !== grpc$
|
|
39018
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38504
39019
|
var p = new Error(g.statusMessage);
|
|
38505
39020
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38506
39021
|
} else
|
|
@@ -38515,7 +39030,7 @@ VisionServiceClient.prototype.getModelParameterSchema = function t(e, s, n) {
|
|
|
38515
39030
|
};
|
|
38516
39031
|
VisionServiceClient.prototype.getDetectorNames = function t(e, s, n) {
|
|
38517
39032
|
arguments.length === 2 && (n = arguments[1]);
|
|
38518
|
-
var u = grpc$
|
|
39033
|
+
var u = grpc$4.unary(VisionService.GetDetectorNames, {
|
|
38519
39034
|
request: e,
|
|
38520
39035
|
host: this.serviceHost,
|
|
38521
39036
|
metadata: s,
|
|
@@ -38523,7 +39038,7 @@ VisionServiceClient.prototype.getDetectorNames = function t(e, s, n) {
|
|
|
38523
39038
|
debug: this.options.debug,
|
|
38524
39039
|
onEnd: function(g) {
|
|
38525
39040
|
if (n)
|
|
38526
|
-
if (g.status !== grpc$
|
|
39041
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38527
39042
|
var p = new Error(g.statusMessage);
|
|
38528
39043
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38529
39044
|
} else
|
|
@@ -38538,7 +39053,7 @@ VisionServiceClient.prototype.getDetectorNames = function t(e, s, n) {
|
|
|
38538
39053
|
};
|
|
38539
39054
|
VisionServiceClient.prototype.addDetector = function t(e, s, n) {
|
|
38540
39055
|
arguments.length === 2 && (n = arguments[1]);
|
|
38541
|
-
var u = grpc$
|
|
39056
|
+
var u = grpc$4.unary(VisionService.AddDetector, {
|
|
38542
39057
|
request: e,
|
|
38543
39058
|
host: this.serviceHost,
|
|
38544
39059
|
metadata: s,
|
|
@@ -38546,7 +39061,7 @@ VisionServiceClient.prototype.addDetector = function t(e, s, n) {
|
|
|
38546
39061
|
debug: this.options.debug,
|
|
38547
39062
|
onEnd: function(g) {
|
|
38548
39063
|
if (n)
|
|
38549
|
-
if (g.status !== grpc$
|
|
39064
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38550
39065
|
var p = new Error(g.statusMessage);
|
|
38551
39066
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38552
39067
|
} else
|
|
@@ -38561,7 +39076,7 @@ VisionServiceClient.prototype.addDetector = function t(e, s, n) {
|
|
|
38561
39076
|
};
|
|
38562
39077
|
VisionServiceClient.prototype.removeDetector = function t(e, s, n) {
|
|
38563
39078
|
arguments.length === 2 && (n = arguments[1]);
|
|
38564
|
-
var u = grpc$
|
|
39079
|
+
var u = grpc$4.unary(VisionService.RemoveDetector, {
|
|
38565
39080
|
request: e,
|
|
38566
39081
|
host: this.serviceHost,
|
|
38567
39082
|
metadata: s,
|
|
@@ -38569,7 +39084,7 @@ VisionServiceClient.prototype.removeDetector = function t(e, s, n) {
|
|
|
38569
39084
|
debug: this.options.debug,
|
|
38570
39085
|
onEnd: function(g) {
|
|
38571
39086
|
if (n)
|
|
38572
|
-
if (g.status !== grpc$
|
|
39087
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38573
39088
|
var p = new Error(g.statusMessage);
|
|
38574
39089
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38575
39090
|
} else
|
|
@@ -38584,7 +39099,7 @@ VisionServiceClient.prototype.removeDetector = function t(e, s, n) {
|
|
|
38584
39099
|
};
|
|
38585
39100
|
VisionServiceClient.prototype.getDetectionsFromCamera = function t(e, s, n) {
|
|
38586
39101
|
arguments.length === 2 && (n = arguments[1]);
|
|
38587
|
-
var u = grpc$
|
|
39102
|
+
var u = grpc$4.unary(VisionService.GetDetectionsFromCamera, {
|
|
38588
39103
|
request: e,
|
|
38589
39104
|
host: this.serviceHost,
|
|
38590
39105
|
metadata: s,
|
|
@@ -38592,7 +39107,7 @@ VisionServiceClient.prototype.getDetectionsFromCamera = function t(e, s, n) {
|
|
|
38592
39107
|
debug: this.options.debug,
|
|
38593
39108
|
onEnd: function(g) {
|
|
38594
39109
|
if (n)
|
|
38595
|
-
if (g.status !== grpc$
|
|
39110
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38596
39111
|
var p = new Error(g.statusMessage);
|
|
38597
39112
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38598
39113
|
} else
|
|
@@ -38607,7 +39122,7 @@ VisionServiceClient.prototype.getDetectionsFromCamera = function t(e, s, n) {
|
|
|
38607
39122
|
};
|
|
38608
39123
|
VisionServiceClient.prototype.getDetections = function t(e, s, n) {
|
|
38609
39124
|
arguments.length === 2 && (n = arguments[1]);
|
|
38610
|
-
var u = grpc$
|
|
39125
|
+
var u = grpc$4.unary(VisionService.GetDetections, {
|
|
38611
39126
|
request: e,
|
|
38612
39127
|
host: this.serviceHost,
|
|
38613
39128
|
metadata: s,
|
|
@@ -38615,7 +39130,7 @@ VisionServiceClient.prototype.getDetections = function t(e, s, n) {
|
|
|
38615
39130
|
debug: this.options.debug,
|
|
38616
39131
|
onEnd: function(g) {
|
|
38617
39132
|
if (n)
|
|
38618
|
-
if (g.status !== grpc$
|
|
39133
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38619
39134
|
var p = new Error(g.statusMessage);
|
|
38620
39135
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38621
39136
|
} else
|
|
@@ -38630,7 +39145,7 @@ VisionServiceClient.prototype.getDetections = function t(e, s, n) {
|
|
|
38630
39145
|
};
|
|
38631
39146
|
VisionServiceClient.prototype.getClassifierNames = function t(e, s, n) {
|
|
38632
39147
|
arguments.length === 2 && (n = arguments[1]);
|
|
38633
|
-
var u = grpc$
|
|
39148
|
+
var u = grpc$4.unary(VisionService.GetClassifierNames, {
|
|
38634
39149
|
request: e,
|
|
38635
39150
|
host: this.serviceHost,
|
|
38636
39151
|
metadata: s,
|
|
@@ -38638,7 +39153,7 @@ VisionServiceClient.prototype.getClassifierNames = function t(e, s, n) {
|
|
|
38638
39153
|
debug: this.options.debug,
|
|
38639
39154
|
onEnd: function(g) {
|
|
38640
39155
|
if (n)
|
|
38641
|
-
if (g.status !== grpc$
|
|
39156
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38642
39157
|
var p = new Error(g.statusMessage);
|
|
38643
39158
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38644
39159
|
} else
|
|
@@ -38653,7 +39168,7 @@ VisionServiceClient.prototype.getClassifierNames = function t(e, s, n) {
|
|
|
38653
39168
|
};
|
|
38654
39169
|
VisionServiceClient.prototype.addClassifier = function t(e, s, n) {
|
|
38655
39170
|
arguments.length === 2 && (n = arguments[1]);
|
|
38656
|
-
var u = grpc$
|
|
39171
|
+
var u = grpc$4.unary(VisionService.AddClassifier, {
|
|
38657
39172
|
request: e,
|
|
38658
39173
|
host: this.serviceHost,
|
|
38659
39174
|
metadata: s,
|
|
@@ -38661,7 +39176,7 @@ VisionServiceClient.prototype.addClassifier = function t(e, s, n) {
|
|
|
38661
39176
|
debug: this.options.debug,
|
|
38662
39177
|
onEnd: function(g) {
|
|
38663
39178
|
if (n)
|
|
38664
|
-
if (g.status !== grpc$
|
|
39179
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38665
39180
|
var p = new Error(g.statusMessage);
|
|
38666
39181
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38667
39182
|
} else
|
|
@@ -38676,7 +39191,7 @@ VisionServiceClient.prototype.addClassifier = function t(e, s, n) {
|
|
|
38676
39191
|
};
|
|
38677
39192
|
VisionServiceClient.prototype.removeClassifier = function t(e, s, n) {
|
|
38678
39193
|
arguments.length === 2 && (n = arguments[1]);
|
|
38679
|
-
var u = grpc$
|
|
39194
|
+
var u = grpc$4.unary(VisionService.RemoveClassifier, {
|
|
38680
39195
|
request: e,
|
|
38681
39196
|
host: this.serviceHost,
|
|
38682
39197
|
metadata: s,
|
|
@@ -38684,7 +39199,7 @@ VisionServiceClient.prototype.removeClassifier = function t(e, s, n) {
|
|
|
38684
39199
|
debug: this.options.debug,
|
|
38685
39200
|
onEnd: function(g) {
|
|
38686
39201
|
if (n)
|
|
38687
|
-
if (g.status !== grpc$
|
|
39202
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38688
39203
|
var p = new Error(g.statusMessage);
|
|
38689
39204
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38690
39205
|
} else
|
|
@@ -38699,7 +39214,7 @@ VisionServiceClient.prototype.removeClassifier = function t(e, s, n) {
|
|
|
38699
39214
|
};
|
|
38700
39215
|
VisionServiceClient.prototype.getClassificationsFromCamera = function t(e, s, n) {
|
|
38701
39216
|
arguments.length === 2 && (n = arguments[1]);
|
|
38702
|
-
var u = grpc$
|
|
39217
|
+
var u = grpc$4.unary(VisionService.GetClassificationsFromCamera, {
|
|
38703
39218
|
request: e,
|
|
38704
39219
|
host: this.serviceHost,
|
|
38705
39220
|
metadata: s,
|
|
@@ -38707,7 +39222,7 @@ VisionServiceClient.prototype.getClassificationsFromCamera = function t(e, s, n)
|
|
|
38707
39222
|
debug: this.options.debug,
|
|
38708
39223
|
onEnd: function(g) {
|
|
38709
39224
|
if (n)
|
|
38710
|
-
if (g.status !== grpc$
|
|
39225
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38711
39226
|
var p = new Error(g.statusMessage);
|
|
38712
39227
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38713
39228
|
} else
|
|
@@ -38722,7 +39237,7 @@ VisionServiceClient.prototype.getClassificationsFromCamera = function t(e, s, n)
|
|
|
38722
39237
|
};
|
|
38723
39238
|
VisionServiceClient.prototype.getClassifications = function t(e, s, n) {
|
|
38724
39239
|
arguments.length === 2 && (n = arguments[1]);
|
|
38725
|
-
var u = grpc$
|
|
39240
|
+
var u = grpc$4.unary(VisionService.GetClassifications, {
|
|
38726
39241
|
request: e,
|
|
38727
39242
|
host: this.serviceHost,
|
|
38728
39243
|
metadata: s,
|
|
@@ -38730,7 +39245,7 @@ VisionServiceClient.prototype.getClassifications = function t(e, s, n) {
|
|
|
38730
39245
|
debug: this.options.debug,
|
|
38731
39246
|
onEnd: function(g) {
|
|
38732
39247
|
if (n)
|
|
38733
|
-
if (g.status !== grpc$
|
|
39248
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38734
39249
|
var p = new Error(g.statusMessage);
|
|
38735
39250
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38736
39251
|
} else
|
|
@@ -38745,7 +39260,7 @@ VisionServiceClient.prototype.getClassifications = function t(e, s, n) {
|
|
|
38745
39260
|
};
|
|
38746
39261
|
VisionServiceClient.prototype.getSegmenterNames = function t(e, s, n) {
|
|
38747
39262
|
arguments.length === 2 && (n = arguments[1]);
|
|
38748
|
-
var u = grpc$
|
|
39263
|
+
var u = grpc$4.unary(VisionService.GetSegmenterNames, {
|
|
38749
39264
|
request: e,
|
|
38750
39265
|
host: this.serviceHost,
|
|
38751
39266
|
metadata: s,
|
|
@@ -38753,7 +39268,7 @@ VisionServiceClient.prototype.getSegmenterNames = function t(e, s, n) {
|
|
|
38753
39268
|
debug: this.options.debug,
|
|
38754
39269
|
onEnd: function(g) {
|
|
38755
39270
|
if (n)
|
|
38756
|
-
if (g.status !== grpc$
|
|
39271
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38757
39272
|
var p = new Error(g.statusMessage);
|
|
38758
39273
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38759
39274
|
} else
|
|
@@ -38768,7 +39283,7 @@ VisionServiceClient.prototype.getSegmenterNames = function t(e, s, n) {
|
|
|
38768
39283
|
};
|
|
38769
39284
|
VisionServiceClient.prototype.addSegmenter = function t(e, s, n) {
|
|
38770
39285
|
arguments.length === 2 && (n = arguments[1]);
|
|
38771
|
-
var u = grpc$
|
|
39286
|
+
var u = grpc$4.unary(VisionService.AddSegmenter, {
|
|
38772
39287
|
request: e,
|
|
38773
39288
|
host: this.serviceHost,
|
|
38774
39289
|
metadata: s,
|
|
@@ -38776,7 +39291,7 @@ VisionServiceClient.prototype.addSegmenter = function t(e, s, n) {
|
|
|
38776
39291
|
debug: this.options.debug,
|
|
38777
39292
|
onEnd: function(g) {
|
|
38778
39293
|
if (n)
|
|
38779
|
-
if (g.status !== grpc$
|
|
39294
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38780
39295
|
var p = new Error(g.statusMessage);
|
|
38781
39296
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38782
39297
|
} else
|
|
@@ -38791,7 +39306,7 @@ VisionServiceClient.prototype.addSegmenter = function t(e, s, n) {
|
|
|
38791
39306
|
};
|
|
38792
39307
|
VisionServiceClient.prototype.removeSegmenter = function t(e, s, n) {
|
|
38793
39308
|
arguments.length === 2 && (n = arguments[1]);
|
|
38794
|
-
var u = grpc$
|
|
39309
|
+
var u = grpc$4.unary(VisionService.RemoveSegmenter, {
|
|
38795
39310
|
request: e,
|
|
38796
39311
|
host: this.serviceHost,
|
|
38797
39312
|
metadata: s,
|
|
@@ -38799,7 +39314,7 @@ VisionServiceClient.prototype.removeSegmenter = function t(e, s, n) {
|
|
|
38799
39314
|
debug: this.options.debug,
|
|
38800
39315
|
onEnd: function(g) {
|
|
38801
39316
|
if (n)
|
|
38802
|
-
if (g.status !== grpc$
|
|
39317
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38803
39318
|
var p = new Error(g.statusMessage);
|
|
38804
39319
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38805
39320
|
} else
|
|
@@ -38814,7 +39329,7 @@ VisionServiceClient.prototype.removeSegmenter = function t(e, s, n) {
|
|
|
38814
39329
|
};
|
|
38815
39330
|
VisionServiceClient.prototype.getObjectPointClouds = function t(e, s, n) {
|
|
38816
39331
|
arguments.length === 2 && (n = arguments[1]);
|
|
38817
|
-
var u = grpc$
|
|
39332
|
+
var u = grpc$4.unary(VisionService.GetObjectPointClouds, {
|
|
38818
39333
|
request: e,
|
|
38819
39334
|
host: this.serviceHost,
|
|
38820
39335
|
metadata: s,
|
|
@@ -38822,7 +39337,7 @@ VisionServiceClient.prototype.getObjectPointClouds = function t(e, s, n) {
|
|
|
38822
39337
|
debug: this.options.debug,
|
|
38823
39338
|
onEnd: function(g) {
|
|
38824
39339
|
if (n)
|
|
38825
|
-
if (g.status !== grpc$
|
|
39340
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38826
39341
|
var p = new Error(g.statusMessage);
|
|
38827
39342
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38828
39343
|
} else
|
|
@@ -38837,7 +39352,7 @@ VisionServiceClient.prototype.getObjectPointClouds = function t(e, s, n) {
|
|
|
38837
39352
|
};
|
|
38838
39353
|
VisionServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
38839
39354
|
arguments.length === 2 && (n = arguments[1]);
|
|
38840
|
-
var u = grpc$
|
|
39355
|
+
var u = grpc$4.unary(VisionService.DoCommand, {
|
|
38841
39356
|
request: e,
|
|
38842
39357
|
host: this.serviceHost,
|
|
38843
39358
|
metadata: s,
|
|
@@ -38845,7 +39360,7 @@ VisionServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
38845
39360
|
debug: this.options.debug,
|
|
38846
39361
|
onEnd: function(g) {
|
|
38847
39362
|
if (n)
|
|
38848
|
-
if (g.status !== grpc$
|
|
39363
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
38849
39364
|
var p = new Error(g.statusMessage);
|
|
38850
39365
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
38851
39366
|
} else
|
|
@@ -38898,6 +39413,7 @@ class RobotClient {
|
|
|
38898
39413
|
armServiceClient;
|
|
38899
39414
|
baseServiceClient;
|
|
38900
39415
|
boardServiceClient;
|
|
39416
|
+
encoderServiceClient;
|
|
38901
39417
|
gantryServiceClient;
|
|
38902
39418
|
genericServiceClient;
|
|
38903
39419
|
gripperServiceClient;
|
|
@@ -38944,6 +39460,11 @@ class RobotClient {
|
|
|
38944
39460
|
throw new Error(RobotClient.notConnectedYetStr);
|
|
38945
39461
|
return this.boardServiceClient;
|
|
38946
39462
|
}
|
|
39463
|
+
get encoderService() {
|
|
39464
|
+
if (!this.encoderServiceClient)
|
|
39465
|
+
throw new Error(RobotClient.notConnectedYetStr);
|
|
39466
|
+
return this.encoderServiceClient;
|
|
39467
|
+
}
|
|
38947
39468
|
get gantryService() {
|
|
38948
39469
|
if (!this.gantryServiceClient)
|
|
38949
39470
|
throw new Error(RobotClient.notConnectedYetStr);
|
|
@@ -39065,6 +39586,9 @@ class RobotClient {
|
|
|
39065
39586
|
), this.boardServiceClient = new BoardServiceClient_1(
|
|
39066
39587
|
this.serviceHost,
|
|
39067
39588
|
g
|
|
39589
|
+
), this.encoderServiceClient = new EncoderServiceClient_1(
|
|
39590
|
+
this.serviceHost,
|
|
39591
|
+
g
|
|
39068
39592
|
), this.gantryServiceClient = new GantryServiceClient_1(
|
|
39069
39593
|
this.serviceHost,
|
|
39070
39594
|
g
|
|
@@ -39305,6 +39829,13 @@ class BaseClient {
|
|
|
39305
39829
|
n
|
|
39306
39830
|
);
|
|
39307
39831
|
}
|
|
39832
|
+
async isMoving() {
|
|
39833
|
+
const e = this.baseService, s = new base_pb.IsMovingRequest();
|
|
39834
|
+
return s.setName(this.name), this.options.requestLogger?.(s), (await promisify(
|
|
39835
|
+
e.isMoving.bind(e),
|
|
39836
|
+
s
|
|
39837
|
+
)).getIsMoving();
|
|
39838
|
+
}
|
|
39308
39839
|
}
|
|
39309
39840
|
class BoardClient {
|
|
39310
39841
|
client;
|
|
@@ -40138,7 +40669,9 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40138
40669
|
r.getPropertiesList(),
|
|
40139
40670
|
proto.viam.component.camera.v1.Property.toObject,
|
|
40140
40671
|
o
|
|
40141
|
-
)
|
|
40672
|
+
),
|
|
40673
|
+
name: e.Message.getFieldWithDefault(r, 4, ""),
|
|
40674
|
+
id: e.Message.getFieldWithDefault(r, 5, "")
|
|
40142
40675
|
};
|
|
40143
40676
|
return o && (i.$jspbMessageInstance = r), i;
|
|
40144
40677
|
}), proto.viam.component.camera.v1.Webcam.deserializeBinary = function(o) {
|
|
@@ -40166,6 +40699,20 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40166
40699
|
var l = new proto.viam.component.camera.v1.Property();
|
|
40167
40700
|
r.readMessage(l, proto.viam.component.camera.v1.Property.deserializeBinaryFromReader), o.addProperties(l);
|
|
40168
40701
|
break;
|
|
40702
|
+
case 4:
|
|
40703
|
+
var l = (
|
|
40704
|
+
/** @type {string} */
|
|
40705
|
+
r.readString()
|
|
40706
|
+
);
|
|
40707
|
+
o.setName(l);
|
|
40708
|
+
break;
|
|
40709
|
+
case 5:
|
|
40710
|
+
var l = (
|
|
40711
|
+
/** @type {string} */
|
|
40712
|
+
r.readString()
|
|
40713
|
+
);
|
|
40714
|
+
o.setId(l);
|
|
40715
|
+
break;
|
|
40169
40716
|
default:
|
|
40170
40717
|
r.skipField();
|
|
40171
40718
|
break;
|
|
@@ -40187,6 +40734,12 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40187
40734
|
3,
|
|
40188
40735
|
i,
|
|
40189
40736
|
proto.viam.component.camera.v1.Property.serializeBinaryToWriter
|
|
40737
|
+
), i = o.getName(), i.length > 0 && r.writeString(
|
|
40738
|
+
4,
|
|
40739
|
+
i
|
|
40740
|
+
), i = o.getId(), i.length > 0 && r.writeString(
|
|
40741
|
+
5,
|
|
40742
|
+
i
|
|
40190
40743
|
);
|
|
40191
40744
|
}, proto.viam.component.camera.v1.Webcam.prototype.getLabel = function() {
|
|
40192
40745
|
return (
|
|
@@ -40213,6 +40766,20 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40213
40766
|
return e.Message.addToRepeatedWrapperField(this, 3, o, proto.viam.component.camera.v1.Property, r);
|
|
40214
40767
|
}, proto.viam.component.camera.v1.Webcam.prototype.clearPropertiesList = function() {
|
|
40215
40768
|
return this.setPropertiesList([]);
|
|
40769
|
+
}, proto.viam.component.camera.v1.Webcam.prototype.getName = function() {
|
|
40770
|
+
return (
|
|
40771
|
+
/** @type {string} */
|
|
40772
|
+
e.Message.getFieldWithDefault(this, 4, "")
|
|
40773
|
+
);
|
|
40774
|
+
}, proto.viam.component.camera.v1.Webcam.prototype.setName = function(o) {
|
|
40775
|
+
return e.Message.setProto3StringField(this, 4, o);
|
|
40776
|
+
}, proto.viam.component.camera.v1.Webcam.prototype.getId = function() {
|
|
40777
|
+
return (
|
|
40778
|
+
/** @type {string} */
|
|
40779
|
+
e.Message.getFieldWithDefault(this, 5, "")
|
|
40780
|
+
);
|
|
40781
|
+
}, proto.viam.component.camera.v1.Webcam.prototype.setId = function(o) {
|
|
40782
|
+
return e.Message.setProto3StringField(this, 5, o);
|
|
40216
40783
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.camera.v1.Property.prototype.toObject = function(o) {
|
|
40217
40784
|
return proto.viam.component.camera.v1.Property.toObject(o, this);
|
|
40218
40785
|
}, proto.viam.component.camera.v1.Property.toObject = function(o, r) {
|
|
@@ -40492,7 +41059,7 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40492
41059
|
return this.setParametersList([]);
|
|
40493
41060
|
}, s.object.extend(t, proto.viam.component.camera.v1);
|
|
40494
41061
|
})(camera_pb);
|
|
40495
|
-
var component_camera_v1_camera_pb = camera_pb, common_v1_common_pb$
|
|
41062
|
+
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() {
|
|
40496
41063
|
function t() {
|
|
40497
41064
|
}
|
|
40498
41065
|
return t.serviceName = "viam.component.camera.v1.CameraService", t;
|
|
@@ -40534,15 +41101,15 @@ CameraService.DoCommand = {
|
|
|
40534
41101
|
service: CameraService,
|
|
40535
41102
|
requestStream: !1,
|
|
40536
41103
|
responseStream: !1,
|
|
40537
|
-
requestType: common_v1_common_pb$
|
|
40538
|
-
responseType: common_v1_common_pb$
|
|
41104
|
+
requestType: common_v1_common_pb$2.DoCommandRequest,
|
|
41105
|
+
responseType: common_v1_common_pb$2.DoCommandResponse
|
|
40539
41106
|
};
|
|
40540
41107
|
function CameraServiceClient(t, e) {
|
|
40541
41108
|
this.serviceHost = t, this.options = e || {};
|
|
40542
41109
|
}
|
|
40543
41110
|
CameraServiceClient.prototype.getImage = function t(e, s, n) {
|
|
40544
41111
|
arguments.length === 2 && (n = arguments[1]);
|
|
40545
|
-
var u = grpc$
|
|
41112
|
+
var u = grpc$3.unary(CameraService.GetImage, {
|
|
40546
41113
|
request: e,
|
|
40547
41114
|
host: this.serviceHost,
|
|
40548
41115
|
metadata: s,
|
|
@@ -40550,7 +41117,7 @@ CameraServiceClient.prototype.getImage = function t(e, s, n) {
|
|
|
40550
41117
|
debug: this.options.debug,
|
|
40551
41118
|
onEnd: function(g) {
|
|
40552
41119
|
if (n)
|
|
40553
|
-
if (g.status !== grpc$
|
|
41120
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
40554
41121
|
var p = new Error(g.statusMessage);
|
|
40555
41122
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
40556
41123
|
} else
|
|
@@ -40565,7 +41132,7 @@ CameraServiceClient.prototype.getImage = function t(e, s, n) {
|
|
|
40565
41132
|
};
|
|
40566
41133
|
CameraServiceClient.prototype.renderFrame = function t(e, s, n) {
|
|
40567
41134
|
arguments.length === 2 && (n = arguments[1]);
|
|
40568
|
-
var u = grpc$
|
|
41135
|
+
var u = grpc$3.unary(CameraService.RenderFrame, {
|
|
40569
41136
|
request: e,
|
|
40570
41137
|
host: this.serviceHost,
|
|
40571
41138
|
metadata: s,
|
|
@@ -40573,7 +41140,7 @@ CameraServiceClient.prototype.renderFrame = function t(e, s, n) {
|
|
|
40573
41140
|
debug: this.options.debug,
|
|
40574
41141
|
onEnd: function(g) {
|
|
40575
41142
|
if (n)
|
|
40576
|
-
if (g.status !== grpc$
|
|
41143
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
40577
41144
|
var p = new Error(g.statusMessage);
|
|
40578
41145
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
40579
41146
|
} else
|
|
@@ -40588,7 +41155,7 @@ CameraServiceClient.prototype.renderFrame = function t(e, s, n) {
|
|
|
40588
41155
|
};
|
|
40589
41156
|
CameraServiceClient.prototype.getPointCloud = function t(e, s, n) {
|
|
40590
41157
|
arguments.length === 2 && (n = arguments[1]);
|
|
40591
|
-
var u = grpc$
|
|
41158
|
+
var u = grpc$3.unary(CameraService.GetPointCloud, {
|
|
40592
41159
|
request: e,
|
|
40593
41160
|
host: this.serviceHost,
|
|
40594
41161
|
metadata: s,
|
|
@@ -40596,7 +41163,7 @@ CameraServiceClient.prototype.getPointCloud = function t(e, s, n) {
|
|
|
40596
41163
|
debug: this.options.debug,
|
|
40597
41164
|
onEnd: function(g) {
|
|
40598
41165
|
if (n)
|
|
40599
|
-
if (g.status !== grpc$
|
|
41166
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
40600
41167
|
var p = new Error(g.statusMessage);
|
|
40601
41168
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
40602
41169
|
} else
|
|
@@ -40611,7 +41178,7 @@ CameraServiceClient.prototype.getPointCloud = function t(e, s, n) {
|
|
|
40611
41178
|
};
|
|
40612
41179
|
CameraServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
40613
41180
|
arguments.length === 2 && (n = arguments[1]);
|
|
40614
|
-
var u = grpc$
|
|
41181
|
+
var u = grpc$3.unary(CameraService.GetProperties, {
|
|
40615
41182
|
request: e,
|
|
40616
41183
|
host: this.serviceHost,
|
|
40617
41184
|
metadata: s,
|
|
@@ -40619,7 +41186,7 @@ CameraServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
|
40619
41186
|
debug: this.options.debug,
|
|
40620
41187
|
onEnd: function(g) {
|
|
40621
41188
|
if (n)
|
|
40622
|
-
if (g.status !== grpc$
|
|
41189
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
40623
41190
|
var p = new Error(g.statusMessage);
|
|
40624
41191
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
40625
41192
|
} else
|
|
@@ -40634,7 +41201,7 @@ CameraServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
|
40634
41201
|
};
|
|
40635
41202
|
CameraServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
40636
41203
|
arguments.length === 2 && (n = arguments[1]);
|
|
40637
|
-
var u = grpc$
|
|
41204
|
+
var u = grpc$3.unary(CameraService.DoCommand, {
|
|
40638
41205
|
request: e,
|
|
40639
41206
|
host: this.serviceHost,
|
|
40640
41207
|
metadata: s,
|
|
@@ -40642,7 +41209,7 @@ CameraServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
40642
41209
|
debug: this.options.debug,
|
|
40643
41210
|
onEnd: function(g) {
|
|
40644
41211
|
if (n)
|
|
40645
|
-
if (g.status !== grpc$
|
|
41212
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
40646
41213
|
var p = new Error(g.statusMessage);
|
|
40647
41214
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
40648
41215
|
} else
|
|
@@ -40692,6 +41259,32 @@ class CameraClient {
|
|
|
40692
41259
|
return s.setName(this.name), this.options.requestLogger?.(s), (await promisify(e.getProperties.bind(e), s)).toObject();
|
|
40693
41260
|
}
|
|
40694
41261
|
}
|
|
41262
|
+
var PositionType = /* @__PURE__ */ ((t) => (t[t.POSITION_TYPE_UNSPECIFIED = 0] = "POSITION_TYPE_UNSPECIFIED", t[t.POSITION_TYPE_TICKS_COUNT = 1] = "POSITION_TYPE_TICKS_COUNT", t[t.POSITION_TYPE_ANGLE_DEGREES = 2] = "POSITION_TYPE_ANGLE_DEGREES", t))(PositionType || {});
|
|
41263
|
+
class EncoderClient {
|
|
41264
|
+
client;
|
|
41265
|
+
name;
|
|
41266
|
+
options;
|
|
41267
|
+
constructor(e, s, n = {}) {
|
|
41268
|
+
this.client = e.createServiceClient(EncoderServiceClient_1), this.name = s, this.options = n;
|
|
41269
|
+
}
|
|
41270
|
+
get encoderService() {
|
|
41271
|
+
return this.client;
|
|
41272
|
+
}
|
|
41273
|
+
async resetPosition(e = {}) {
|
|
41274
|
+
const s = this.encoderService, n = new encoder_pb.ResetPositionRequest();
|
|
41275
|
+
n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n), await promisify(s.resetPosition.bind(s), n);
|
|
41276
|
+
}
|
|
41277
|
+
async getProperties(e = {}) {
|
|
41278
|
+
const s = this.encoderService, n = new encoder_pb.GetPropertiesRequest();
|
|
41279
|
+
return n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n), (await promisify(s.getProperties.bind(s), n)).toObject();
|
|
41280
|
+
}
|
|
41281
|
+
async getPosition(e = PositionType.POSITION_TYPE_UNSPECIFIED, s = {}) {
|
|
41282
|
+
const n = this.encoderService, u = new encoder_pb.GetPositionRequest();
|
|
41283
|
+
u.setName(this.name), u.setPositionType(e), u.setExtra(struct_pb.Struct.fromJavaScript(s)), this.options.requestLogger?.(u);
|
|
41284
|
+
const g = await promisify(n.getPosition.bind(n), u);
|
|
41285
|
+
return [g.getValue(), g.getPositionType()];
|
|
41286
|
+
}
|
|
41287
|
+
}
|
|
40695
41288
|
class MotorClient {
|
|
40696
41289
|
client;
|
|
40697
41290
|
name;
|
|
@@ -40748,6 +41341,10 @@ class MotorClient {
|
|
|
40748
41341
|
const u = await promisify(s.isPowered.bind(s), n);
|
|
40749
41342
|
return [u.getIsOn(), u.getPowerPct()];
|
|
40750
41343
|
}
|
|
41344
|
+
async isMoving() {
|
|
41345
|
+
const e = this.motorService, s = new motor_pb.IsMovingRequest();
|
|
41346
|
+
return s.setName(this.name), this.options.requestLogger?.(s), (await promisify(e.isMoving.bind(e), s)).getIsMoving();
|
|
41347
|
+
}
|
|
40751
41348
|
}
|
|
40752
41349
|
var sensor_pb = {};
|
|
40753
41350
|
(function(t) {
|
|
@@ -40871,7 +41468,7 @@ var sensor_pb = {};
|
|
|
40871
41468
|
return this.getReadingsMap().clear(), this;
|
|
40872
41469
|
}, s.object.extend(t, proto.viam.component.sensor.v1);
|
|
40873
41470
|
})(sensor_pb);
|
|
40874
|
-
var component_sensor_v1_sensor_pb = sensor_pb, common_v1_common_pb = common_pb, grpc$
|
|
41471
|
+
var component_sensor_v1_sensor_pb = sensor_pb, common_v1_common_pb$1 = common_pb, grpc$2 = grpcWebClient_umdExports.grpc, SensorService = function() {
|
|
40875
41472
|
function t() {
|
|
40876
41473
|
}
|
|
40877
41474
|
return t.serviceName = "viam.component.sensor.v1.SensorService", t;
|
|
@@ -40889,15 +41486,15 @@ SensorService.DoCommand = {
|
|
|
40889
41486
|
service: SensorService,
|
|
40890
41487
|
requestStream: !1,
|
|
40891
41488
|
responseStream: !1,
|
|
40892
|
-
requestType: common_v1_common_pb.DoCommandRequest,
|
|
40893
|
-
responseType: common_v1_common_pb.DoCommandResponse
|
|
41489
|
+
requestType: common_v1_common_pb$1.DoCommandRequest,
|
|
41490
|
+
responseType: common_v1_common_pb$1.DoCommandResponse
|
|
40894
41491
|
};
|
|
40895
41492
|
function SensorServiceClient(t, e) {
|
|
40896
41493
|
this.serviceHost = t, this.options = e || {};
|
|
40897
41494
|
}
|
|
40898
41495
|
SensorServiceClient.prototype.getReadings = function t(e, s, n) {
|
|
40899
41496
|
arguments.length === 2 && (n = arguments[1]);
|
|
40900
|
-
var u = grpc$
|
|
41497
|
+
var u = grpc$2.unary(SensorService.GetReadings, {
|
|
40901
41498
|
request: e,
|
|
40902
41499
|
host: this.serviceHost,
|
|
40903
41500
|
metadata: s,
|
|
@@ -40905,7 +41502,7 @@ SensorServiceClient.prototype.getReadings = function t(e, s, n) {
|
|
|
40905
41502
|
debug: this.options.debug,
|
|
40906
41503
|
onEnd: function(g) {
|
|
40907
41504
|
if (n)
|
|
40908
|
-
if (g.status !== grpc$
|
|
41505
|
+
if (g.status !== grpc$2.Code.OK) {
|
|
40909
41506
|
var p = new Error(g.statusMessage);
|
|
40910
41507
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
40911
41508
|
} else
|
|
@@ -40920,7 +41517,7 @@ SensorServiceClient.prototype.getReadings = function t(e, s, n) {
|
|
|
40920
41517
|
};
|
|
40921
41518
|
SensorServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
40922
41519
|
arguments.length === 2 && (n = arguments[1]);
|
|
40923
|
-
var u = grpc$
|
|
41520
|
+
var u = grpc$2.unary(SensorService.DoCommand, {
|
|
40924
41521
|
request: e,
|
|
40925
41522
|
host: this.serviceHost,
|
|
40926
41523
|
metadata: s,
|
|
@@ -40928,7 +41525,7 @@ SensorServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
40928
41525
|
debug: this.options.debug,
|
|
40929
41526
|
onEnd: function(g) {
|
|
40930
41527
|
if (n)
|
|
40931
|
-
if (g.status !== grpc$
|
|
41528
|
+
if (g.status !== grpc$2.Code.OK) {
|
|
40932
41529
|
var p = new Error(g.statusMessage);
|
|
40933
41530
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
40934
41531
|
} else
|
|
@@ -41283,7 +41880,7 @@ var stream_pb = {};
|
|
|
41283
41880
|
}, proto.proto.stream.v1.RemoveStreamResponse.serializeBinaryToWriter = function(u, g) {
|
|
41284
41881
|
}, s.object.extend(t, proto.proto.stream.v1);
|
|
41285
41882
|
})(stream_pb);
|
|
41286
|
-
var proto_stream_v1_stream_pb = stream_pb, grpc = grpcWebClient_umdExports.grpc, StreamService = function() {
|
|
41883
|
+
var proto_stream_v1_stream_pb = stream_pb, grpc$1 = grpcWebClient_umdExports.grpc, StreamService = function() {
|
|
41287
41884
|
function t() {
|
|
41288
41885
|
}
|
|
41289
41886
|
return t.serviceName = "proto.stream.v1.StreamService", t;
|
|
@@ -41317,7 +41914,7 @@ function StreamServiceClient(t, e) {
|
|
|
41317
41914
|
}
|
|
41318
41915
|
StreamServiceClient.prototype.listStreams = function t(e, s, n) {
|
|
41319
41916
|
arguments.length === 2 && (n = arguments[1]);
|
|
41320
|
-
var u = grpc.unary(StreamService.ListStreams, {
|
|
41917
|
+
var u = grpc$1.unary(StreamService.ListStreams, {
|
|
41321
41918
|
request: e,
|
|
41322
41919
|
host: this.serviceHost,
|
|
41323
41920
|
metadata: s,
|
|
@@ -41325,7 +41922,7 @@ StreamServiceClient.prototype.listStreams = function t(e, s, n) {
|
|
|
41325
41922
|
debug: this.options.debug,
|
|
41326
41923
|
onEnd: function(g) {
|
|
41327
41924
|
if (n)
|
|
41328
|
-
if (g.status !== grpc.Code.OK) {
|
|
41925
|
+
if (g.status !== grpc$1.Code.OK) {
|
|
41329
41926
|
var p = new Error(g.statusMessage);
|
|
41330
41927
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
41331
41928
|
} else
|
|
@@ -41340,7 +41937,7 @@ StreamServiceClient.prototype.listStreams = function t(e, s, n) {
|
|
|
41340
41937
|
};
|
|
41341
41938
|
StreamServiceClient.prototype.addStream = function t(e, s, n) {
|
|
41342
41939
|
arguments.length === 2 && (n = arguments[1]);
|
|
41343
|
-
var u = grpc.unary(StreamService.AddStream, {
|
|
41940
|
+
var u = grpc$1.unary(StreamService.AddStream, {
|
|
41344
41941
|
request: e,
|
|
41345
41942
|
host: this.serviceHost,
|
|
41346
41943
|
metadata: s,
|
|
@@ -41348,7 +41945,7 @@ StreamServiceClient.prototype.addStream = function t(e, s, n) {
|
|
|
41348
41945
|
debug: this.options.debug,
|
|
41349
41946
|
onEnd: function(g) {
|
|
41350
41947
|
if (n)
|
|
41351
|
-
if (g.status !== grpc.Code.OK) {
|
|
41948
|
+
if (g.status !== grpc$1.Code.OK) {
|
|
41352
41949
|
var p = new Error(g.statusMessage);
|
|
41353
41950
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
41354
41951
|
} else
|
|
@@ -41363,7 +41960,7 @@ StreamServiceClient.prototype.addStream = function t(e, s, n) {
|
|
|
41363
41960
|
};
|
|
41364
41961
|
StreamServiceClient.prototype.removeStream = function t(e, s, n) {
|
|
41365
41962
|
arguments.length === 2 && (n = arguments[1]);
|
|
41366
|
-
var u = grpc.unary(StreamService.RemoveStream, {
|
|
41963
|
+
var u = grpc$1.unary(StreamService.RemoveStream, {
|
|
41367
41964
|
request: e,
|
|
41368
41965
|
host: this.serviceHost,
|
|
41369
41966
|
metadata: s,
|
|
@@ -41371,7 +41968,7 @@ StreamServiceClient.prototype.removeStream = function t(e, s, n) {
|
|
|
41371
41968
|
debug: this.options.debug,
|
|
41372
41969
|
onEnd: function(g) {
|
|
41373
41970
|
if (n)
|
|
41374
|
-
if (g.status !== grpc.Code.OK) {
|
|
41971
|
+
if (g.status !== grpc$1.Code.OK) {
|
|
41375
41972
|
var p = new Error(g.statusMessage);
|
|
41376
41973
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
41377
41974
|
} else
|
|
@@ -41494,16 +42091,208 @@ class MotionClient {
|
|
|
41494
42091
|
return r.toObject();
|
|
41495
42092
|
}
|
|
41496
42093
|
}
|
|
41497
|
-
|
|
42094
|
+
var data_manager_pb = {};
|
|
42095
|
+
(function(t) {
|
|
42096
|
+
var e = googleProtobuf, s = e, n = function() {
|
|
42097
|
+
return this || window || n || self || Function("return this")();
|
|
42098
|
+
}.call(null), u = common_pb;
|
|
42099
|
+
s.object.extend(proto, u);
|
|
42100
|
+
var g = annotations_pb;
|
|
42101
|
+
s.object.extend(proto, g);
|
|
42102
|
+
var p = struct_pb;
|
|
42103
|
+
s.object.extend(proto, p), s.exportSymbol("proto.viam.service.datamanager.v1.SyncRequest", null, n), s.exportSymbol("proto.viam.service.datamanager.v1.SyncResponse", null, n), proto.viam.service.datamanager.v1.SyncRequest = function(o) {
|
|
42104
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
42105
|
+
}, s.inherits(proto.viam.service.datamanager.v1.SyncRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.datamanager.v1.SyncRequest.displayName = "proto.viam.service.datamanager.v1.SyncRequest"), proto.viam.service.datamanager.v1.SyncResponse = function(o) {
|
|
42106
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
42107
|
+
}, s.inherits(proto.viam.service.datamanager.v1.SyncResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.datamanager.v1.SyncResponse.displayName = "proto.viam.service.datamanager.v1.SyncResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.service.datamanager.v1.SyncRequest.prototype.toObject = function(o) {
|
|
42108
|
+
return proto.viam.service.datamanager.v1.SyncRequest.toObject(o, this);
|
|
42109
|
+
}, proto.viam.service.datamanager.v1.SyncRequest.toObject = function(o, r) {
|
|
42110
|
+
var i, l = {
|
|
42111
|
+
name: e.Message.getFieldWithDefault(r, 1, ""),
|
|
42112
|
+
extra: (i = r.getExtra()) && p.Struct.toObject(o, i)
|
|
42113
|
+
};
|
|
42114
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
42115
|
+
}), proto.viam.service.datamanager.v1.SyncRequest.deserializeBinary = function(o) {
|
|
42116
|
+
var r = new e.BinaryReader(o), i = new proto.viam.service.datamanager.v1.SyncRequest();
|
|
42117
|
+
return proto.viam.service.datamanager.v1.SyncRequest.deserializeBinaryFromReader(i, r);
|
|
42118
|
+
}, proto.viam.service.datamanager.v1.SyncRequest.deserializeBinaryFromReader = function(o, r) {
|
|
42119
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
42120
|
+
var i = r.getFieldNumber();
|
|
42121
|
+
switch (i) {
|
|
42122
|
+
case 1:
|
|
42123
|
+
var l = (
|
|
42124
|
+
/** @type {string} */
|
|
42125
|
+
r.readString()
|
|
42126
|
+
);
|
|
42127
|
+
o.setName(l);
|
|
42128
|
+
break;
|
|
42129
|
+
case 99:
|
|
42130
|
+
var l = new p.Struct();
|
|
42131
|
+
r.readMessage(l, p.Struct.deserializeBinaryFromReader), o.setExtra(l);
|
|
42132
|
+
break;
|
|
42133
|
+
default:
|
|
42134
|
+
r.skipField();
|
|
42135
|
+
break;
|
|
42136
|
+
}
|
|
42137
|
+
}
|
|
42138
|
+
return o;
|
|
42139
|
+
}, proto.viam.service.datamanager.v1.SyncRequest.prototype.serializeBinary = function() {
|
|
42140
|
+
var o = new e.BinaryWriter();
|
|
42141
|
+
return proto.viam.service.datamanager.v1.SyncRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
42142
|
+
}, proto.viam.service.datamanager.v1.SyncRequest.serializeBinaryToWriter = function(o, r) {
|
|
42143
|
+
var i = void 0;
|
|
42144
|
+
i = o.getName(), i.length > 0 && r.writeString(
|
|
42145
|
+
1,
|
|
42146
|
+
i
|
|
42147
|
+
), i = o.getExtra(), i != null && r.writeMessage(
|
|
42148
|
+
99,
|
|
42149
|
+
i,
|
|
42150
|
+
p.Struct.serializeBinaryToWriter
|
|
42151
|
+
);
|
|
42152
|
+
}, proto.viam.service.datamanager.v1.SyncRequest.prototype.getName = function() {
|
|
42153
|
+
return (
|
|
42154
|
+
/** @type {string} */
|
|
42155
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
42156
|
+
);
|
|
42157
|
+
}, proto.viam.service.datamanager.v1.SyncRequest.prototype.setName = function(o) {
|
|
42158
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
42159
|
+
}, proto.viam.service.datamanager.v1.SyncRequest.prototype.getExtra = function() {
|
|
42160
|
+
return (
|
|
42161
|
+
/** @type{?proto.google.protobuf.Struct} */
|
|
42162
|
+
e.Message.getWrapperField(this, p.Struct, 99)
|
|
42163
|
+
);
|
|
42164
|
+
}, proto.viam.service.datamanager.v1.SyncRequest.prototype.setExtra = function(o) {
|
|
42165
|
+
return e.Message.setWrapperField(this, 99, o);
|
|
42166
|
+
}, proto.viam.service.datamanager.v1.SyncRequest.prototype.clearExtra = function() {
|
|
42167
|
+
return this.setExtra(void 0);
|
|
42168
|
+
}, proto.viam.service.datamanager.v1.SyncRequest.prototype.hasExtra = function() {
|
|
42169
|
+
return e.Message.getField(this, 99) != null;
|
|
42170
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.datamanager.v1.SyncResponse.prototype.toObject = function(o) {
|
|
42171
|
+
return proto.viam.service.datamanager.v1.SyncResponse.toObject(o, this);
|
|
42172
|
+
}, proto.viam.service.datamanager.v1.SyncResponse.toObject = function(o, r) {
|
|
42173
|
+
var i = {};
|
|
42174
|
+
return o && (i.$jspbMessageInstance = r), i;
|
|
42175
|
+
}), proto.viam.service.datamanager.v1.SyncResponse.deserializeBinary = function(o) {
|
|
42176
|
+
var r = new e.BinaryReader(o), i = new proto.viam.service.datamanager.v1.SyncResponse();
|
|
42177
|
+
return proto.viam.service.datamanager.v1.SyncResponse.deserializeBinaryFromReader(i, r);
|
|
42178
|
+
}, proto.viam.service.datamanager.v1.SyncResponse.deserializeBinaryFromReader = function(o, r) {
|
|
42179
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
42180
|
+
var i = r.getFieldNumber();
|
|
42181
|
+
switch (i) {
|
|
42182
|
+
default:
|
|
42183
|
+
r.skipField();
|
|
42184
|
+
break;
|
|
42185
|
+
}
|
|
42186
|
+
}
|
|
42187
|
+
return o;
|
|
42188
|
+
}, proto.viam.service.datamanager.v1.SyncResponse.prototype.serializeBinary = function() {
|
|
42189
|
+
var o = new e.BinaryWriter();
|
|
42190
|
+
return proto.viam.service.datamanager.v1.SyncResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
42191
|
+
}, proto.viam.service.datamanager.v1.SyncResponse.serializeBinaryToWriter = function(o, r) {
|
|
42192
|
+
}, s.object.extend(t, proto.viam.service.datamanager.v1);
|
|
42193
|
+
})(data_manager_pb);
|
|
42194
|
+
var service_datamanager_v1_data_manager_pb = data_manager_pb, common_v1_common_pb = common_pb, grpc = grpcWebClient_umdExports.grpc, DataManagerService = function() {
|
|
42195
|
+
function t() {
|
|
42196
|
+
}
|
|
42197
|
+
return t.serviceName = "viam.service.datamanager.v1.DataManagerService", t;
|
|
42198
|
+
}();
|
|
42199
|
+
DataManagerService.Sync = {
|
|
42200
|
+
methodName: "Sync",
|
|
42201
|
+
service: DataManagerService,
|
|
42202
|
+
requestStream: !1,
|
|
42203
|
+
responseStream: !1,
|
|
42204
|
+
requestType: service_datamanager_v1_data_manager_pb.SyncRequest,
|
|
42205
|
+
responseType: service_datamanager_v1_data_manager_pb.SyncResponse
|
|
42206
|
+
};
|
|
42207
|
+
DataManagerService.DoCommand = {
|
|
42208
|
+
methodName: "DoCommand",
|
|
42209
|
+
service: DataManagerService,
|
|
42210
|
+
requestStream: !1,
|
|
42211
|
+
responseStream: !1,
|
|
42212
|
+
requestType: common_v1_common_pb.DoCommandRequest,
|
|
42213
|
+
responseType: common_v1_common_pb.DoCommandResponse
|
|
42214
|
+
};
|
|
42215
|
+
function DataManagerServiceClient(t, e) {
|
|
42216
|
+
this.serviceHost = t, this.options = e || {};
|
|
42217
|
+
}
|
|
42218
|
+
DataManagerServiceClient.prototype.sync = function t(e, s, n) {
|
|
42219
|
+
arguments.length === 2 && (n = arguments[1]);
|
|
42220
|
+
var u = grpc.unary(DataManagerService.Sync, {
|
|
42221
|
+
request: e,
|
|
42222
|
+
host: this.serviceHost,
|
|
42223
|
+
metadata: s,
|
|
42224
|
+
transport: this.options.transport,
|
|
42225
|
+
debug: this.options.debug,
|
|
42226
|
+
onEnd: function(g) {
|
|
42227
|
+
if (n)
|
|
42228
|
+
if (g.status !== grpc.Code.OK) {
|
|
42229
|
+
var p = new Error(g.statusMessage);
|
|
42230
|
+
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
42231
|
+
} else
|
|
42232
|
+
n(null, g.message);
|
|
42233
|
+
}
|
|
42234
|
+
});
|
|
42235
|
+
return {
|
|
42236
|
+
cancel: function() {
|
|
42237
|
+
n = null, u.close();
|
|
42238
|
+
}
|
|
42239
|
+
};
|
|
42240
|
+
};
|
|
42241
|
+
DataManagerServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
42242
|
+
arguments.length === 2 && (n = arguments[1]);
|
|
42243
|
+
var u = grpc.unary(DataManagerService.DoCommand, {
|
|
42244
|
+
request: e,
|
|
42245
|
+
host: this.serviceHost,
|
|
42246
|
+
metadata: s,
|
|
42247
|
+
transport: this.options.transport,
|
|
42248
|
+
debug: this.options.debug,
|
|
42249
|
+
onEnd: function(g) {
|
|
42250
|
+
if (n)
|
|
42251
|
+
if (g.status !== grpc.Code.OK) {
|
|
42252
|
+
var p = new Error(g.statusMessage);
|
|
42253
|
+
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
42254
|
+
} else
|
|
42255
|
+
n(null, g.message);
|
|
42256
|
+
}
|
|
42257
|
+
});
|
|
42258
|
+
return {
|
|
42259
|
+
cancel: function() {
|
|
42260
|
+
n = null, u.close();
|
|
42261
|
+
}
|
|
42262
|
+
};
|
|
42263
|
+
};
|
|
42264
|
+
var DataManagerServiceClient_1 = DataManagerServiceClient;
|
|
42265
|
+
class DataManagerClient {
|
|
42266
|
+
client;
|
|
42267
|
+
name;
|
|
42268
|
+
options;
|
|
42269
|
+
constructor(e, s, n = {}) {
|
|
42270
|
+
this.client = e.createServiceClient(DataManagerServiceClient_1), this.name = s, this.options = n;
|
|
42271
|
+
}
|
|
42272
|
+
get datamanagerService() {
|
|
42273
|
+
return this.client;
|
|
42274
|
+
}
|
|
42275
|
+
async sync(e = {}) {
|
|
42276
|
+
const s = this.datamanagerService, n = new data_manager_pb.SyncRequest();
|
|
42277
|
+
n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n), await promisify(
|
|
42278
|
+
s.sync.bind(s),
|
|
42279
|
+
n
|
|
42280
|
+
);
|
|
42281
|
+
}
|
|
42282
|
+
}
|
|
42283
|
+
const version = "0.0.44";
|
|
41498
42284
|
export {
|
|
41499
42285
|
ArmClient,
|
|
41500
42286
|
BaseClient,
|
|
41501
42287
|
BoardClient,
|
|
41502
42288
|
CameraClient,
|
|
41503
42289
|
RobotClient as Client,
|
|
42290
|
+
DataManagerClient,
|
|
42291
|
+
EncoderClient,
|
|
41504
42292
|
MotionClient,
|
|
41505
42293
|
MotorClient,
|
|
41506
42294
|
MovementSensorClient,
|
|
42295
|
+
PositionType,
|
|
41507
42296
|
RobotClient,
|
|
41508
42297
|
SensorClient,
|
|
41509
42298
|
StreamClient,
|
|
@@ -41513,6 +42302,7 @@ export {
|
|
|
41513
42302
|
camera_pb as cameraApi,
|
|
41514
42303
|
common_pb as commonApi,
|
|
41515
42304
|
createRobotClient,
|
|
42305
|
+
encoder_pb as encoderApi,
|
|
41516
42306
|
gantry_pb as gantryApi,
|
|
41517
42307
|
generic_pb as genericApi,
|
|
41518
42308
|
gripper_pb as gripperApi,
|