@viamrobotics/sdk 0.0.43 → 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/dist/components/base/Base.d.ts +2 -0
- package/dist/components/base/Client.d.ts +1 -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 +1 -0
- package/dist/main.es.js +618 -381
- package/dist/main.umd.js +2 -2
- 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/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -20423,11 +20423,11 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20423
20423
|
case 0:
|
|
20424
20424
|
return P = "", D = function() {
|
|
20425
20425
|
return n.__awaiter(z, void 0, void 0, function() {
|
|
20426
|
-
var q, k, W, X, S, M, O, E, F,
|
|
20427
|
-
return n.__generator(this, function(
|
|
20428
|
-
switch (
|
|
20426
|
+
var q, k, W, X, S, M, O, E, F, T;
|
|
20427
|
+
return n.__generator(this, function(w) {
|
|
20428
|
+
switch (w.label) {
|
|
20429
20429
|
case 0:
|
|
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((
|
|
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
20432
|
}), u.grpc.invoke(l.AuthService.Authenticate, { request: O, host: _.externalAuthAddress ? _.externalAuthAddress : h, transport: R, onMessage: function(C) {
|
|
20433
20433
|
q = C.getAccessToken();
|
|
@@ -20435,9 +20435,9 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20435
20435
|
C == u.grpc.Code.OK ? k(E) : W(j);
|
|
20436
20436
|
} }), [4, M]));
|
|
20437
20437
|
case 1:
|
|
20438
|
-
return
|
|
20438
|
+
return w.sent(), [3, 3];
|
|
20439
20439
|
case 2:
|
|
20440
|
-
q = _.accessToken,
|
|
20440
|
+
q = _.accessToken, w.label = 3;
|
|
20441
20441
|
case 3:
|
|
20442
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;
|
|
@@ -20447,7 +20447,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20447
20447
|
C == u.grpc.Code.OK ? k(S) : W(j);
|
|
20448
20448
|
} }), [4, M]) : [3, 5];
|
|
20449
20449
|
case 4:
|
|
20450
|
-
|
|
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
|
}
|
|
@@ -20507,7 +20507,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20507
20507
|
e.dialWebRTC = function(h, R, _) {
|
|
20508
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, O, E, F,
|
|
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:
|
|
@@ -20517,11 +20517,11 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20517
20517
|
case 2:
|
|
20518
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(),
|
|
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
|
-
A.setUuid(
|
|
20524
|
+
A.setUuid(w);
|
|
20525
20525
|
var V = new r.Status();
|
|
20526
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;
|
|
@@ -20532,7 +20532,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20532
20532
|
if (!C) {
|
|
20533
20533
|
C = !0;
|
|
20534
20534
|
var L = new c.CallUpdateRequest();
|
|
20535
|
-
L.setUuid(
|
|
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
|
} });
|
|
@@ -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] : 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(
|
|
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,20 +20561,20 @@ 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,
|
|
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 = L).hasInit() ? re ? (j("got init stage more than once"), [2]) : (V = A.getInit(), re = !0,
|
|
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];
|
|
20574
20574
|
if (!re)
|
|
20575
20575
|
return j("got update stage before init stage"), [2];
|
|
20576
|
-
if (A.getUuid() !==
|
|
20577
|
-
return j("uuid mismatch; have=".concat(A.getUuid(), " want=").concat(
|
|
20576
|
+
if (A.getUuid() !== w)
|
|
20577
|
+
return j("uuid mismatch; have=".concat(A.getUuid(), " want=").concat(w)), [2];
|
|
20578
20578
|
U = A.getUpdate(), K = U.getCandidate(), oe = { candidate: K.getCandidate() }, K.hasSdpMid() && (oe.sdpMid = K.getSdpMid()), K.hasSdpmLineIndex() && (oe.sdpMLineIndex = K.getSdpmLineIndex()), K.hasUsernameFragment() && (oe.usernameFragment = K.getUsernameFragment()), Y = oe, te.label = 2;
|
|
20579
20579
|
case 2:
|
|
20580
20580
|
return te.trys.push([2, 4, , 5]), [4, S.addIceCandidate(Y)];
|
|
@@ -20594,9 +20594,9 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20594
20594
|
});
|
|
20595
20595
|
}), pe = new Promise(function(L, A) {
|
|
20596
20596
|
se = L, ie = A;
|
|
20597
|
-
}),
|
|
20597
|
+
}), T.onEnd(function(L, A, V) {
|
|
20598
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
20601
|
}).catch(function(L) {
|
|
20602
20602
|
return ie(L);
|
|
@@ -20745,13 +20745,13 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20745
20745
|
return O;
|
|
20746
20746
|
}
|
|
20747
20747
|
function o(S, M, O, E) {
|
|
20748
|
-
var F,
|
|
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
|
-
|
|
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]) && (
|
|
20754
|
-
return
|
|
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
20757
|
return function(O, E) {
|
|
@@ -20763,45 +20763,45 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20763
20763
|
return Reflect.metadata(S, M);
|
|
20764
20764
|
}
|
|
20765
20765
|
function l(S, M, O, E) {
|
|
20766
|
-
return new (O || (O = Promise))(function(F,
|
|
20767
|
-
function
|
|
20766
|
+
return new (O || (O = Promise))(function(F, T) {
|
|
20767
|
+
function w(G) {
|
|
20768
20768
|
try {
|
|
20769
20769
|
j(E.next(G));
|
|
20770
20770
|
} catch (B) {
|
|
20771
|
-
|
|
20771
|
+
T(B);
|
|
20772
20772
|
}
|
|
20773
20773
|
}
|
|
20774
20774
|
function C(G) {
|
|
20775
20775
|
try {
|
|
20776
20776
|
j(E.throw(G));
|
|
20777
20777
|
} catch (B) {
|
|
20778
|
-
|
|
20778
|
+
T(B);
|
|
20779
20779
|
}
|
|
20780
20780
|
}
|
|
20781
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
|
-
})).then(
|
|
20785
|
+
})).then(w, C);
|
|
20786
20786
|
}
|
|
20787
20787
|
j((E = E.apply(S, M || [])).next());
|
|
20788
20788
|
});
|
|
20789
20789
|
}
|
|
20790
20790
|
function c(S, M) {
|
|
20791
|
-
var O, E, F,
|
|
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];
|
|
20795
20795
|
}, trys: [], ops: [] };
|
|
20796
|
-
return
|
|
20796
|
+
return T = { next: C(0), throw: C(1), return: C(2) }, typeof Symbol == "function" && (T[Symbol.iterator] = function() {
|
|
20797
20797
|
return this;
|
|
20798
|
-
}),
|
|
20798
|
+
}), T;
|
|
20799
20799
|
function C(j) {
|
|
20800
20800
|
return function(G) {
|
|
20801
20801
|
return function(B) {
|
|
20802
20802
|
if (O)
|
|
20803
20803
|
throw new TypeError("Generator is already executing.");
|
|
20804
|
-
for (;
|
|
20804
|
+
for (; T && (T = 0, B[0] && (w = 0)), w; )
|
|
20805
20805
|
try {
|
|
20806
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;
|
|
@@ -20811,34 +20811,34 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20811
20811
|
F = B;
|
|
20812
20812
|
break;
|
|
20813
20813
|
case 4:
|
|
20814
|
-
return
|
|
20814
|
+
return w.label++, { value: B[1], done: !1 };
|
|
20815
20815
|
case 5:
|
|
20816
|
-
|
|
20816
|
+
w.label++, E = B[1], B = [0];
|
|
20817
20817
|
continue;
|
|
20818
20818
|
case 7:
|
|
20819
|
-
B =
|
|
20819
|
+
B = w.ops.pop(), w.trys.pop();
|
|
20820
20820
|
continue;
|
|
20821
20821
|
default:
|
|
20822
|
-
if (!((F = (F =
|
|
20823
|
-
|
|
20822
|
+
if (!((F = (F = w.trys).length > 0 && F[F.length - 1]) || B[0] !== 6 && B[0] !== 2)) {
|
|
20823
|
+
w = 0;
|
|
20824
20824
|
continue;
|
|
20825
20825
|
}
|
|
20826
20826
|
if (B[0] === 3 && (!F || B[1] > F[0] && B[1] < F[3])) {
|
|
20827
|
-
|
|
20827
|
+
w.label = B[1];
|
|
20828
20828
|
break;
|
|
20829
20829
|
}
|
|
20830
|
-
if (B[0] === 6 &&
|
|
20831
|
-
|
|
20830
|
+
if (B[0] === 6 && w.label < F[1]) {
|
|
20831
|
+
w.label = F[1], F = B;
|
|
20832
20832
|
break;
|
|
20833
20833
|
}
|
|
20834
|
-
if (F &&
|
|
20835
|
-
|
|
20834
|
+
if (F && w.label < F[2]) {
|
|
20835
|
+
w.label = F[2], w.ops.push(B);
|
|
20836
20836
|
break;
|
|
20837
20837
|
}
|
|
20838
|
-
F[2] &&
|
|
20838
|
+
F[2] && w.ops.pop(), w.trys.pop();
|
|
20839
20839
|
continue;
|
|
20840
20840
|
}
|
|
20841
|
-
B = M.call(S,
|
|
20841
|
+
B = M.call(S, w);
|
|
20842
20842
|
} catch (N) {
|
|
20843
20843
|
B = [6, N], E = 0;
|
|
20844
20844
|
} finally {
|
|
@@ -20878,21 +20878,21 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20878
20878
|
var O = typeof Symbol == "function" && S[Symbol.iterator];
|
|
20879
20879
|
if (!O)
|
|
20880
20880
|
return S;
|
|
20881
|
-
var E, F,
|
|
20881
|
+
var E, F, T = O.call(S), w = [];
|
|
20882
20882
|
try {
|
|
20883
|
-
for (; (M === void 0 || M-- > 0) && !(E =
|
|
20884
|
-
|
|
20883
|
+
for (; (M === void 0 || M-- > 0) && !(E = T.next()).done; )
|
|
20884
|
+
w.push(E.value);
|
|
20885
20885
|
} catch (C) {
|
|
20886
20886
|
F = { error: C };
|
|
20887
20887
|
} finally {
|
|
20888
20888
|
try {
|
|
20889
|
-
E && !E.done && (O =
|
|
20889
|
+
E && !E.done && (O = T.return) && O.call(T);
|
|
20890
20890
|
} finally {
|
|
20891
20891
|
if (F)
|
|
20892
20892
|
throw F.error;
|
|
20893
20893
|
}
|
|
20894
20894
|
}
|
|
20895
|
-
return
|
|
20895
|
+
return w;
|
|
20896
20896
|
}
|
|
20897
20897
|
function f() {
|
|
20898
20898
|
for (var S = [], M = 0; M < arguments.length; M++)
|
|
@@ -20904,13 +20904,13 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20904
20904
|
S += arguments[M].length;
|
|
20905
20905
|
var E = Array(S), F = 0;
|
|
20906
20906
|
for (M = 0; M < O; M++)
|
|
20907
|
-
for (var
|
|
20908
|
-
E[F] = w
|
|
20907
|
+
for (var T = arguments[M], w = 0, C = T.length; w < C; w++, F++)
|
|
20908
|
+
E[F] = T[w];
|
|
20909
20909
|
return E;
|
|
20910
20910
|
}
|
|
20911
20911
|
function h(S, M, O) {
|
|
20912
20912
|
if (O || arguments.length === 2)
|
|
20913
|
-
for (var E, F = 0,
|
|
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));
|
|
20916
20916
|
}
|
|
@@ -20920,22 +20920,22 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20920
20920
|
function _(S, M, O) {
|
|
20921
20921
|
if (!Symbol.asyncIterator)
|
|
20922
20922
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
20923
|
-
var E, F = O.apply(S, M || []),
|
|
20924
|
-
return E = {},
|
|
20923
|
+
var E, F = O.apply(S, M || []), T = [];
|
|
20924
|
+
return E = {}, w("next"), w("throw"), w("return"), E[Symbol.asyncIterator] = function() {
|
|
20925
20925
|
return this;
|
|
20926
20926
|
}, E;
|
|
20927
|
-
function
|
|
20927
|
+
function w(N) {
|
|
20928
20928
|
F[N] && (E[N] = function(H) {
|
|
20929
20929
|
return new Promise(function(Z, ee) {
|
|
20930
|
-
|
|
20930
|
+
T.push([N, H, Z, ee]) > 1 || C(N, H);
|
|
20931
20931
|
});
|
|
20932
20932
|
});
|
|
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, G) : B(
|
|
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
|
-
B(
|
|
20938
|
+
B(T[0][3], ee);
|
|
20939
20939
|
}
|
|
20940
20940
|
var Z;
|
|
20941
20941
|
}
|
|
@@ -20946,7 +20946,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20946
20946
|
C("throw", N);
|
|
20947
20947
|
}
|
|
20948
20948
|
function B(N, H) {
|
|
20949
|
-
N(H),
|
|
20949
|
+
N(H), T.shift(), T.length && C(T[0][0], T[0][1]);
|
|
20950
20950
|
}
|
|
20951
20951
|
}
|
|
20952
20952
|
function P(S) {
|
|
@@ -20956,10 +20956,10 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20956
20956
|
}), E("return"), M[Symbol.iterator] = function() {
|
|
20957
20957
|
return this;
|
|
20958
20958
|
}, M;
|
|
20959
|
-
function E(F,
|
|
20960
|
-
M[F] = S[F] ? function(
|
|
20961
|
-
return (O = !O) ? { value: R(S[F](
|
|
20962
|
-
} :
|
|
20959
|
+
function E(F, T) {
|
|
20960
|
+
M[F] = S[F] ? function(w) {
|
|
20961
|
+
return (O = !O) ? { value: R(S[F](w)), done: F === "return" } : T ? T(w) : w;
|
|
20962
|
+
} : T;
|
|
20963
20963
|
}
|
|
20964
20964
|
}
|
|
20965
20965
|
function D(S) {
|
|
@@ -20970,13 +20970,13 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20970
20970
|
return this;
|
|
20971
20971
|
}, M);
|
|
20972
20972
|
function E(F) {
|
|
20973
|
-
M[F] = S[F] && function(
|
|
20974
|
-
return new Promise(function(
|
|
20973
|
+
M[F] = S[F] && function(T) {
|
|
20974
|
+
return new Promise(function(w, C) {
|
|
20975
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
|
}
|
|
@@ -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
|
|
@@ -26389,7 +26389,7 @@ BoardServiceClient.prototype.pWMFrequency = function t(e, s, n) {
|
|
|
26389
26389
|
};
|
|
26390
26390
|
BoardServiceClient.prototype.setPWMFrequency = function t(e, s, n) {
|
|
26391
26391
|
arguments.length === 2 && (n = arguments[1]);
|
|
26392
|
-
var u = grpc$
|
|
26392
|
+
var u = grpc$i.unary(BoardService.SetPWMFrequency, {
|
|
26393
26393
|
request: e,
|
|
26394
26394
|
host: this.serviceHost,
|
|
26395
26395
|
metadata: s,
|
|
@@ -26397,7 +26397,7 @@ BoardServiceClient.prototype.setPWMFrequency = function t(e, s, n) {
|
|
|
26397
26397
|
debug: this.options.debug,
|
|
26398
26398
|
onEnd: function(g) {
|
|
26399
26399
|
if (n)
|
|
26400
|
-
if (g.status !== grpc$
|
|
26400
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26401
26401
|
var p = new Error(g.statusMessage);
|
|
26402
26402
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26403
26403
|
} else
|
|
@@ -26412,7 +26412,7 @@ BoardServiceClient.prototype.setPWMFrequency = function t(e, s, n) {
|
|
|
26412
26412
|
};
|
|
26413
26413
|
BoardServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
26414
26414
|
arguments.length === 2 && (n = arguments[1]);
|
|
26415
|
-
var u = grpc$
|
|
26415
|
+
var u = grpc$i.unary(BoardService.DoCommand, {
|
|
26416
26416
|
request: e,
|
|
26417
26417
|
host: this.serviceHost,
|
|
26418
26418
|
metadata: s,
|
|
@@ -26420,7 +26420,7 @@ BoardServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
26420
26420
|
debug: this.options.debug,
|
|
26421
26421
|
onEnd: function(g) {
|
|
26422
26422
|
if (n)
|
|
26423
|
-
if (g.status !== grpc$
|
|
26423
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26424
26424
|
var p = new Error(g.statusMessage);
|
|
26425
26425
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26426
26426
|
} else
|
|
@@ -26435,7 +26435,7 @@ BoardServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
26435
26435
|
};
|
|
26436
26436
|
BoardServiceClient.prototype.readAnalogReader = function t(e, s, n) {
|
|
26437
26437
|
arguments.length === 2 && (n = arguments[1]);
|
|
26438
|
-
var u = grpc$
|
|
26438
|
+
var u = grpc$i.unary(BoardService.ReadAnalogReader, {
|
|
26439
26439
|
request: e,
|
|
26440
26440
|
host: this.serviceHost,
|
|
26441
26441
|
metadata: s,
|
|
@@ -26443,7 +26443,7 @@ BoardServiceClient.prototype.readAnalogReader = function t(e, s, n) {
|
|
|
26443
26443
|
debug: this.options.debug,
|
|
26444
26444
|
onEnd: function(g) {
|
|
26445
26445
|
if (n)
|
|
26446
|
-
if (g.status !== grpc$
|
|
26446
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26447
26447
|
var p = new Error(g.statusMessage);
|
|
26448
26448
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26449
26449
|
} else
|
|
@@ -26458,7 +26458,7 @@ BoardServiceClient.prototype.readAnalogReader = function t(e, s, n) {
|
|
|
26458
26458
|
};
|
|
26459
26459
|
BoardServiceClient.prototype.getDigitalInterruptValue = function t(e, s, n) {
|
|
26460
26460
|
arguments.length === 2 && (n = arguments[1]);
|
|
26461
|
-
var u = grpc$
|
|
26461
|
+
var u = grpc$i.unary(BoardService.GetDigitalInterruptValue, {
|
|
26462
26462
|
request: e,
|
|
26463
26463
|
host: this.serviceHost,
|
|
26464
26464
|
metadata: s,
|
|
@@ -26466,7 +26466,7 @@ BoardServiceClient.prototype.getDigitalInterruptValue = function t(e, s, n) {
|
|
|
26466
26466
|
debug: this.options.debug,
|
|
26467
26467
|
onEnd: function(g) {
|
|
26468
26468
|
if (n)
|
|
26469
|
-
if (g.status !== grpc$
|
|
26469
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26470
26470
|
var p = new Error(g.statusMessage);
|
|
26471
26471
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26472
26472
|
} else
|
|
@@ -26481,7 +26481,7 @@ BoardServiceClient.prototype.getDigitalInterruptValue = function t(e, s, n) {
|
|
|
26481
26481
|
};
|
|
26482
26482
|
BoardServiceClient.prototype.setPowerMode = function t(e, s, n) {
|
|
26483
26483
|
arguments.length === 2 && (n = arguments[1]);
|
|
26484
|
-
var u = grpc$
|
|
26484
|
+
var u = grpc$i.unary(BoardService.SetPowerMode, {
|
|
26485
26485
|
request: e,
|
|
26486
26486
|
host: this.serviceHost,
|
|
26487
26487
|
metadata: s,
|
|
@@ -26489,7 +26489,7 @@ BoardServiceClient.prototype.setPowerMode = function t(e, s, n) {
|
|
|
26489
26489
|
debug: this.options.debug,
|
|
26490
26490
|
onEnd: function(g) {
|
|
26491
26491
|
if (n)
|
|
26492
|
-
if (g.status !== grpc$
|
|
26492
|
+
if (g.status !== grpc$i.Code.OK) {
|
|
26493
26493
|
var p = new Error(g.statusMessage);
|
|
26494
26494
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26495
26495
|
} else
|
|
@@ -26885,7 +26885,7 @@ var BoardServiceClient_1 = BoardServiceClient, encoder_pb = {};
|
|
|
26885
26885
|
POSITION_TYPE_ANGLE_DEGREES: 2
|
|
26886
26886
|
}, s.object.extend(t, proto.viam.component.encoder.v1);
|
|
26887
26887
|
})(encoder_pb);
|
|
26888
|
-
var component_encoder_v1_encoder_pb = encoder_pb, common_v1_common_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
26889
|
function t() {
|
|
26890
26890
|
}
|
|
26891
26891
|
return t.serviceName = "viam.component.encoder.v1.EncoderService", t;
|
|
@@ -26919,15 +26919,15 @@ EncoderService.DoCommand = {
|
|
|
26919
26919
|
service: EncoderService,
|
|
26920
26920
|
requestStream: !1,
|
|
26921
26921
|
responseStream: !1,
|
|
26922
|
-
requestType: common_v1_common_pb$
|
|
26923
|
-
responseType: common_v1_common_pb$
|
|
26922
|
+
requestType: common_v1_common_pb$g.DoCommandRequest,
|
|
26923
|
+
responseType: common_v1_common_pb$g.DoCommandResponse
|
|
26924
26924
|
};
|
|
26925
26925
|
function EncoderServiceClient(t, e) {
|
|
26926
26926
|
this.serviceHost = t, this.options = e || {};
|
|
26927
26927
|
}
|
|
26928
26928
|
EncoderServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
26929
26929
|
arguments.length === 2 && (n = arguments[1]);
|
|
26930
|
-
var u = grpc$
|
|
26930
|
+
var u = grpc$h.unary(EncoderService.GetPosition, {
|
|
26931
26931
|
request: e,
|
|
26932
26932
|
host: this.serviceHost,
|
|
26933
26933
|
metadata: s,
|
|
@@ -26935,7 +26935,7 @@ EncoderServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
26935
26935
|
debug: this.options.debug,
|
|
26936
26936
|
onEnd: function(g) {
|
|
26937
26937
|
if (n)
|
|
26938
|
-
if (g.status !== grpc$
|
|
26938
|
+
if (g.status !== grpc$h.Code.OK) {
|
|
26939
26939
|
var p = new Error(g.statusMessage);
|
|
26940
26940
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26941
26941
|
} else
|
|
@@ -26950,7 +26950,7 @@ EncoderServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
26950
26950
|
};
|
|
26951
26951
|
EncoderServiceClient.prototype.resetPosition = function t(e, s, n) {
|
|
26952
26952
|
arguments.length === 2 && (n = arguments[1]);
|
|
26953
|
-
var u = grpc$
|
|
26953
|
+
var u = grpc$h.unary(EncoderService.ResetPosition, {
|
|
26954
26954
|
request: e,
|
|
26955
26955
|
host: this.serviceHost,
|
|
26956
26956
|
metadata: s,
|
|
@@ -26958,7 +26958,7 @@ EncoderServiceClient.prototype.resetPosition = function t(e, s, n) {
|
|
|
26958
26958
|
debug: this.options.debug,
|
|
26959
26959
|
onEnd: function(g) {
|
|
26960
26960
|
if (n)
|
|
26961
|
-
if (g.status !== grpc$
|
|
26961
|
+
if (g.status !== grpc$h.Code.OK) {
|
|
26962
26962
|
var p = new Error(g.statusMessage);
|
|
26963
26963
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26964
26964
|
} else
|
|
@@ -26973,7 +26973,7 @@ EncoderServiceClient.prototype.resetPosition = function t(e, s, n) {
|
|
|
26973
26973
|
};
|
|
26974
26974
|
EncoderServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
26975
26975
|
arguments.length === 2 && (n = arguments[1]);
|
|
26976
|
-
var u = grpc$
|
|
26976
|
+
var u = grpc$h.unary(EncoderService.GetProperties, {
|
|
26977
26977
|
request: e,
|
|
26978
26978
|
host: this.serviceHost,
|
|
26979
26979
|
metadata: s,
|
|
@@ -26981,7 +26981,7 @@ EncoderServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
|
26981
26981
|
debug: this.options.debug,
|
|
26982
26982
|
onEnd: function(g) {
|
|
26983
26983
|
if (n)
|
|
26984
|
-
if (g.status !== grpc$
|
|
26984
|
+
if (g.status !== grpc$h.Code.OK) {
|
|
26985
26985
|
var p = new Error(g.statusMessage);
|
|
26986
26986
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
26987
26987
|
} else
|
|
@@ -26996,7 +26996,7 @@ EncoderServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
|
26996
26996
|
};
|
|
26997
26997
|
EncoderServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
26998
26998
|
arguments.length === 2 && (n = arguments[1]);
|
|
26999
|
-
var u = grpc$
|
|
26999
|
+
var u = grpc$h.unary(EncoderService.DoCommand, {
|
|
27000
27000
|
request: e,
|
|
27001
27001
|
host: this.serviceHost,
|
|
27002
27002
|
metadata: s,
|
|
@@ -27004,7 +27004,7 @@ EncoderServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
27004
27004
|
debug: this.options.debug,
|
|
27005
27005
|
onEnd: function(g) {
|
|
27006
27006
|
if (n)
|
|
27007
|
-
if (g.status !== grpc$
|
|
27007
|
+
if (g.status !== grpc$h.Code.OK) {
|
|
27008
27008
|
var p = new Error(g.statusMessage);
|
|
27009
27009
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27010
27010
|
} else
|
|
@@ -27635,7 +27635,7 @@ var EncoderServiceClient_1 = EncoderServiceClient, gantry_pb = {};
|
|
|
27635
27635
|
return e.Message.setProto3BooleanField(this, 1, o);
|
|
27636
27636
|
}, s.object.extend(t, proto.viam.component.gantry.v1);
|
|
27637
27637
|
})(gantry_pb);
|
|
27638
|
-
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() {
|
|
27639
27639
|
function t() {
|
|
27640
27640
|
}
|
|
27641
27641
|
return t.serviceName = "viam.component.gantry.v1.GantryService", t;
|
|
@@ -27685,15 +27685,15 @@ GantryService.DoCommand = {
|
|
|
27685
27685
|
service: GantryService,
|
|
27686
27686
|
requestStream: !1,
|
|
27687
27687
|
responseStream: !1,
|
|
27688
|
-
requestType: common_v1_common_pb$
|
|
27689
|
-
responseType: common_v1_common_pb$
|
|
27688
|
+
requestType: common_v1_common_pb$f.DoCommandRequest,
|
|
27689
|
+
responseType: common_v1_common_pb$f.DoCommandResponse
|
|
27690
27690
|
};
|
|
27691
27691
|
function GantryServiceClient(t, e) {
|
|
27692
27692
|
this.serviceHost = t, this.options = e || {};
|
|
27693
27693
|
}
|
|
27694
27694
|
GantryServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
27695
27695
|
arguments.length === 2 && (n = arguments[1]);
|
|
27696
|
-
var u = grpc$
|
|
27696
|
+
var u = grpc$g.unary(GantryService.GetPosition, {
|
|
27697
27697
|
request: e,
|
|
27698
27698
|
host: this.serviceHost,
|
|
27699
27699
|
metadata: s,
|
|
@@ -27701,7 +27701,7 @@ GantryServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
27701
27701
|
debug: this.options.debug,
|
|
27702
27702
|
onEnd: function(g) {
|
|
27703
27703
|
if (n)
|
|
27704
|
-
if (g.status !== grpc$
|
|
27704
|
+
if (g.status !== grpc$g.Code.OK) {
|
|
27705
27705
|
var p = new Error(g.statusMessage);
|
|
27706
27706
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27707
27707
|
} else
|
|
@@ -27716,7 +27716,7 @@ GantryServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
27716
27716
|
};
|
|
27717
27717
|
GantryServiceClient.prototype.moveToPosition = function t(e, s, n) {
|
|
27718
27718
|
arguments.length === 2 && (n = arguments[1]);
|
|
27719
|
-
var u = grpc$
|
|
27719
|
+
var u = grpc$g.unary(GantryService.MoveToPosition, {
|
|
27720
27720
|
request: e,
|
|
27721
27721
|
host: this.serviceHost,
|
|
27722
27722
|
metadata: s,
|
|
@@ -27724,7 +27724,7 @@ GantryServiceClient.prototype.moveToPosition = function t(e, s, n) {
|
|
|
27724
27724
|
debug: this.options.debug,
|
|
27725
27725
|
onEnd: function(g) {
|
|
27726
27726
|
if (n)
|
|
27727
|
-
if (g.status !== grpc$
|
|
27727
|
+
if (g.status !== grpc$g.Code.OK) {
|
|
27728
27728
|
var p = new Error(g.statusMessage);
|
|
27729
27729
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27730
27730
|
} else
|
|
@@ -27739,7 +27739,7 @@ GantryServiceClient.prototype.moveToPosition = function t(e, s, n) {
|
|
|
27739
27739
|
};
|
|
27740
27740
|
GantryServiceClient.prototype.getLengths = function t(e, s, n) {
|
|
27741
27741
|
arguments.length === 2 && (n = arguments[1]);
|
|
27742
|
-
var u = grpc$
|
|
27742
|
+
var u = grpc$g.unary(GantryService.GetLengths, {
|
|
27743
27743
|
request: e,
|
|
27744
27744
|
host: this.serviceHost,
|
|
27745
27745
|
metadata: s,
|
|
@@ -27747,7 +27747,7 @@ GantryServiceClient.prototype.getLengths = function t(e, s, n) {
|
|
|
27747
27747
|
debug: this.options.debug,
|
|
27748
27748
|
onEnd: function(g) {
|
|
27749
27749
|
if (n)
|
|
27750
|
-
if (g.status !== grpc$
|
|
27750
|
+
if (g.status !== grpc$g.Code.OK) {
|
|
27751
27751
|
var p = new Error(g.statusMessage);
|
|
27752
27752
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27753
27753
|
} else
|
|
@@ -27762,7 +27762,7 @@ GantryServiceClient.prototype.getLengths = function t(e, s, n) {
|
|
|
27762
27762
|
};
|
|
27763
27763
|
GantryServiceClient.prototype.stop = function t(e, s, n) {
|
|
27764
27764
|
arguments.length === 2 && (n = arguments[1]);
|
|
27765
|
-
var u = grpc$
|
|
27765
|
+
var u = grpc$g.unary(GantryService.Stop, {
|
|
27766
27766
|
request: e,
|
|
27767
27767
|
host: this.serviceHost,
|
|
27768
27768
|
metadata: s,
|
|
@@ -27770,7 +27770,7 @@ GantryServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
27770
27770
|
debug: this.options.debug,
|
|
27771
27771
|
onEnd: function(g) {
|
|
27772
27772
|
if (n)
|
|
27773
|
-
if (g.status !== grpc$
|
|
27773
|
+
if (g.status !== grpc$g.Code.OK) {
|
|
27774
27774
|
var p = new Error(g.statusMessage);
|
|
27775
27775
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27776
27776
|
} else
|
|
@@ -27785,7 +27785,7 @@ GantryServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
27785
27785
|
};
|
|
27786
27786
|
GantryServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
27787
27787
|
arguments.length === 2 && (n = arguments[1]);
|
|
27788
|
-
var u = grpc$
|
|
27788
|
+
var u = grpc$g.unary(GantryService.IsMoving, {
|
|
27789
27789
|
request: e,
|
|
27790
27790
|
host: this.serviceHost,
|
|
27791
27791
|
metadata: s,
|
|
@@ -27793,7 +27793,7 @@ GantryServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
27793
27793
|
debug: this.options.debug,
|
|
27794
27794
|
onEnd: function(g) {
|
|
27795
27795
|
if (n)
|
|
27796
|
-
if (g.status !== grpc$
|
|
27796
|
+
if (g.status !== grpc$g.Code.OK) {
|
|
27797
27797
|
var p = new Error(g.statusMessage);
|
|
27798
27798
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27799
27799
|
} else
|
|
@@ -27808,7 +27808,7 @@ GantryServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
27808
27808
|
};
|
|
27809
27809
|
GantryServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
27810
27810
|
arguments.length === 2 && (n = arguments[1]);
|
|
27811
|
-
var u = grpc$
|
|
27811
|
+
var u = grpc$g.unary(GantryService.DoCommand, {
|
|
27812
27812
|
request: e,
|
|
27813
27813
|
host: this.serviceHost,
|
|
27814
27814
|
metadata: s,
|
|
@@ -27816,7 +27816,7 @@ GantryServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
27816
27816
|
debug: this.options.debug,
|
|
27817
27817
|
onEnd: function(g) {
|
|
27818
27818
|
if (n)
|
|
27819
|
-
if (g.status !== grpc$
|
|
27819
|
+
if (g.status !== grpc$g.Code.OK) {
|
|
27820
27820
|
var p = new Error(g.statusMessage);
|
|
27821
27821
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27822
27822
|
} else
|
|
@@ -27831,11 +27831,11 @@ GantryServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
27831
27831
|
};
|
|
27832
27832
|
var GantryServiceClient_1 = GantryServiceClient, generic_pb = {}, jspb = googleProtobuf, goog = jspb, global$1 = function() {
|
|
27833
27833
|
return this || window || global$1 || self || Function("return this")();
|
|
27834
|
-
}.call(null), common_v1_common_pb$
|
|
27835
|
-
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);
|
|
27836
27836
|
var google_api_annotations_pb = annotations_pb;
|
|
27837
27837
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
27838
|
-
var common_v1_common_pb$
|
|
27838
|
+
var common_v1_common_pb$d = common_pb, grpc$f = grpcWebClient_umdExports.grpc, GenericService = function() {
|
|
27839
27839
|
function t() {
|
|
27840
27840
|
}
|
|
27841
27841
|
return t.serviceName = "viam.component.generic.v1.GenericService", t;
|
|
@@ -27845,15 +27845,15 @@ GenericService.DoCommand = {
|
|
|
27845
27845
|
service: GenericService,
|
|
27846
27846
|
requestStream: !1,
|
|
27847
27847
|
responseStream: !1,
|
|
27848
|
-
requestType: common_v1_common_pb$
|
|
27849
|
-
responseType: common_v1_common_pb$
|
|
27848
|
+
requestType: common_v1_common_pb$d.DoCommandRequest,
|
|
27849
|
+
responseType: common_v1_common_pb$d.DoCommandResponse
|
|
27850
27850
|
};
|
|
27851
27851
|
function GenericServiceClient(t, e) {
|
|
27852
27852
|
this.serviceHost = t, this.options = e || {};
|
|
27853
27853
|
}
|
|
27854
27854
|
GenericServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
27855
27855
|
arguments.length === 2 && (n = arguments[1]);
|
|
27856
|
-
var u = grpc$
|
|
27856
|
+
var u = grpc$f.unary(GenericService.DoCommand, {
|
|
27857
27857
|
request: e,
|
|
27858
27858
|
host: this.serviceHost,
|
|
27859
27859
|
metadata: s,
|
|
@@ -27861,7 +27861,7 @@ GenericServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
27861
27861
|
debug: this.options.debug,
|
|
27862
27862
|
onEnd: function(g) {
|
|
27863
27863
|
if (n)
|
|
27864
|
-
if (g.status !== grpc$
|
|
27864
|
+
if (g.status !== grpc$f.Code.OK) {
|
|
27865
27865
|
var p = new Error(g.statusMessage);
|
|
27866
27866
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
27867
27867
|
} else
|
|
@@ -28283,7 +28283,7 @@ var GenericServiceClient_1 = GenericServiceClient, gripper_pb = {};
|
|
|
28283
28283
|
return e.Message.setProto3BooleanField(this, 1, o);
|
|
28284
28284
|
}, s.object.extend(t, proto.viam.component.gripper.v1);
|
|
28285
28285
|
})(gripper_pb);
|
|
28286
|
-
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() {
|
|
28287
28287
|
function t() {
|
|
28288
28288
|
}
|
|
28289
28289
|
return t.serviceName = "viam.component.gripper.v1.GripperService", t;
|
|
@@ -28325,15 +28325,15 @@ GripperService.DoCommand = {
|
|
|
28325
28325
|
service: GripperService,
|
|
28326
28326
|
requestStream: !1,
|
|
28327
28327
|
responseStream: !1,
|
|
28328
|
-
requestType: common_v1_common_pb$
|
|
28329
|
-
responseType: common_v1_common_pb$
|
|
28328
|
+
requestType: common_v1_common_pb$c.DoCommandRequest,
|
|
28329
|
+
responseType: common_v1_common_pb$c.DoCommandResponse
|
|
28330
28330
|
};
|
|
28331
28331
|
function GripperServiceClient(t, e) {
|
|
28332
28332
|
this.serviceHost = t, this.options = e || {};
|
|
28333
28333
|
}
|
|
28334
28334
|
GripperServiceClient.prototype.open = function t(e, s, n) {
|
|
28335
28335
|
arguments.length === 2 && (n = arguments[1]);
|
|
28336
|
-
var u = grpc$
|
|
28336
|
+
var u = grpc$e.unary(GripperService.Open, {
|
|
28337
28337
|
request: e,
|
|
28338
28338
|
host: this.serviceHost,
|
|
28339
28339
|
metadata: s,
|
|
@@ -28341,7 +28341,7 @@ GripperServiceClient.prototype.open = function t(e, s, n) {
|
|
|
28341
28341
|
debug: this.options.debug,
|
|
28342
28342
|
onEnd: function(g) {
|
|
28343
28343
|
if (n)
|
|
28344
|
-
if (g.status !== grpc$
|
|
28344
|
+
if (g.status !== grpc$e.Code.OK) {
|
|
28345
28345
|
var p = new Error(g.statusMessage);
|
|
28346
28346
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
28347
28347
|
} else
|
|
@@ -28356,7 +28356,7 @@ GripperServiceClient.prototype.open = function t(e, s, n) {
|
|
|
28356
28356
|
};
|
|
28357
28357
|
GripperServiceClient.prototype.grab = function t(e, s, n) {
|
|
28358
28358
|
arguments.length === 2 && (n = arguments[1]);
|
|
28359
|
-
var u = grpc$
|
|
28359
|
+
var u = grpc$e.unary(GripperService.Grab, {
|
|
28360
28360
|
request: e,
|
|
28361
28361
|
host: this.serviceHost,
|
|
28362
28362
|
metadata: s,
|
|
@@ -28364,7 +28364,7 @@ GripperServiceClient.prototype.grab = function t(e, s, n) {
|
|
|
28364
28364
|
debug: this.options.debug,
|
|
28365
28365
|
onEnd: function(g) {
|
|
28366
28366
|
if (n)
|
|
28367
|
-
if (g.status !== grpc$
|
|
28367
|
+
if (g.status !== grpc$e.Code.OK) {
|
|
28368
28368
|
var p = new Error(g.statusMessage);
|
|
28369
28369
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
28370
28370
|
} else
|
|
@@ -28379,7 +28379,7 @@ GripperServiceClient.prototype.grab = function t(e, s, n) {
|
|
|
28379
28379
|
};
|
|
28380
28380
|
GripperServiceClient.prototype.stop = function t(e, s, n) {
|
|
28381
28381
|
arguments.length === 2 && (n = arguments[1]);
|
|
28382
|
-
var u = grpc$
|
|
28382
|
+
var u = grpc$e.unary(GripperService.Stop, {
|
|
28383
28383
|
request: e,
|
|
28384
28384
|
host: this.serviceHost,
|
|
28385
28385
|
metadata: s,
|
|
@@ -28387,7 +28387,7 @@ GripperServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
28387
28387
|
debug: this.options.debug,
|
|
28388
28388
|
onEnd: function(g) {
|
|
28389
28389
|
if (n)
|
|
28390
|
-
if (g.status !== grpc$
|
|
28390
|
+
if (g.status !== grpc$e.Code.OK) {
|
|
28391
28391
|
var p = new Error(g.statusMessage);
|
|
28392
28392
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
28393
28393
|
} else
|
|
@@ -28402,7 +28402,7 @@ GripperServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
28402
28402
|
};
|
|
28403
28403
|
GripperServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
28404
28404
|
arguments.length === 2 && (n = arguments[1]);
|
|
28405
|
-
var u = grpc$
|
|
28405
|
+
var u = grpc$e.unary(GripperService.IsMoving, {
|
|
28406
28406
|
request: e,
|
|
28407
28407
|
host: this.serviceHost,
|
|
28408
28408
|
metadata: s,
|
|
@@ -28410,7 +28410,7 @@ GripperServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
28410
28410
|
debug: this.options.debug,
|
|
28411
28411
|
onEnd: function(g) {
|
|
28412
28412
|
if (n)
|
|
28413
|
-
if (g.status !== grpc$
|
|
28413
|
+
if (g.status !== grpc$e.Code.OK) {
|
|
28414
28414
|
var p = new Error(g.statusMessage);
|
|
28415
28415
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
28416
28416
|
} else
|
|
@@ -28425,7 +28425,7 @@ GripperServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
28425
28425
|
};
|
|
28426
28426
|
GripperServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
28427
28427
|
arguments.length === 2 && (n = arguments[1]);
|
|
28428
|
-
var u = grpc$
|
|
28428
|
+
var u = grpc$e.unary(GripperService.DoCommand, {
|
|
28429
28429
|
request: e,
|
|
28430
28430
|
host: this.serviceHost,
|
|
28431
28431
|
metadata: s,
|
|
@@ -28433,7 +28433,7 @@ GripperServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
28433
28433
|
debug: this.options.debug,
|
|
28434
28434
|
onEnd: function(g) {
|
|
28435
28435
|
if (n)
|
|
28436
|
-
if (g.status !== grpc$
|
|
28436
|
+
if (g.status !== grpc$e.Code.OK) {
|
|
28437
28437
|
var p = new Error(g.statusMessage);
|
|
28438
28438
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
28439
28439
|
} else
|
|
@@ -29175,7 +29175,7 @@ var GripperServiceClient_1 = GripperServiceClient, input_controller_pb = {};
|
|
|
29175
29175
|
return this.setEventsList([]);
|
|
29176
29176
|
}, s.object.extend(t, proto.viam.component.inputcontroller.v1);
|
|
29177
29177
|
})(input_controller_pb);
|
|
29178
|
-
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() {
|
|
29179
29179
|
function t() {
|
|
29180
29180
|
}
|
|
29181
29181
|
return t.serviceName = "viam.component.inputcontroller.v1.InputControllerService", t;
|
|
@@ -29217,15 +29217,15 @@ InputControllerService.DoCommand = {
|
|
|
29217
29217
|
service: InputControllerService,
|
|
29218
29218
|
requestStream: !1,
|
|
29219
29219
|
responseStream: !1,
|
|
29220
|
-
requestType: common_v1_common_pb$
|
|
29221
|
-
responseType: common_v1_common_pb$
|
|
29220
|
+
requestType: common_v1_common_pb$b.DoCommandRequest,
|
|
29221
|
+
responseType: common_v1_common_pb$b.DoCommandResponse
|
|
29222
29222
|
};
|
|
29223
29223
|
function InputControllerServiceClient(t, e) {
|
|
29224
29224
|
this.serviceHost = t, this.options = e || {};
|
|
29225
29225
|
}
|
|
29226
29226
|
InputControllerServiceClient.prototype.getControls = function t(e, s, n) {
|
|
29227
29227
|
arguments.length === 2 && (n = arguments[1]);
|
|
29228
|
-
var u = grpc$
|
|
29228
|
+
var u = grpc$d.unary(InputControllerService.GetControls, {
|
|
29229
29229
|
request: e,
|
|
29230
29230
|
host: this.serviceHost,
|
|
29231
29231
|
metadata: s,
|
|
@@ -29233,7 +29233,7 @@ InputControllerServiceClient.prototype.getControls = function t(e, s, n) {
|
|
|
29233
29233
|
debug: this.options.debug,
|
|
29234
29234
|
onEnd: function(g) {
|
|
29235
29235
|
if (n)
|
|
29236
|
-
if (g.status !== grpc$
|
|
29236
|
+
if (g.status !== grpc$d.Code.OK) {
|
|
29237
29237
|
var p = new Error(g.statusMessage);
|
|
29238
29238
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
29239
29239
|
} else
|
|
@@ -29248,7 +29248,7 @@ InputControllerServiceClient.prototype.getControls = function t(e, s, n) {
|
|
|
29248
29248
|
};
|
|
29249
29249
|
InputControllerServiceClient.prototype.getEvents = function t(e, s, n) {
|
|
29250
29250
|
arguments.length === 2 && (n = arguments[1]);
|
|
29251
|
-
var u = grpc$
|
|
29251
|
+
var u = grpc$d.unary(InputControllerService.GetEvents, {
|
|
29252
29252
|
request: e,
|
|
29253
29253
|
host: this.serviceHost,
|
|
29254
29254
|
metadata: s,
|
|
@@ -29256,7 +29256,7 @@ InputControllerServiceClient.prototype.getEvents = function t(e, s, n) {
|
|
|
29256
29256
|
debug: this.options.debug,
|
|
29257
29257
|
onEnd: function(g) {
|
|
29258
29258
|
if (n)
|
|
29259
|
-
if (g.status !== grpc$
|
|
29259
|
+
if (g.status !== grpc$d.Code.OK) {
|
|
29260
29260
|
var p = new Error(g.statusMessage);
|
|
29261
29261
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
29262
29262
|
} else
|
|
@@ -29274,7 +29274,7 @@ InputControllerServiceClient.prototype.streamEvents = function t(e, s) {
|
|
|
29274
29274
|
data: [],
|
|
29275
29275
|
end: [],
|
|
29276
29276
|
status: []
|
|
29277
|
-
}, u = grpc$
|
|
29277
|
+
}, u = grpc$d.invoke(InputControllerService.StreamEvents, {
|
|
29278
29278
|
request: e,
|
|
29279
29279
|
host: this.serviceHost,
|
|
29280
29280
|
metadata: s,
|
|
@@ -29304,7 +29304,7 @@ InputControllerServiceClient.prototype.streamEvents = function t(e, s) {
|
|
|
29304
29304
|
};
|
|
29305
29305
|
InputControllerServiceClient.prototype.triggerEvent = function t(e, s, n) {
|
|
29306
29306
|
arguments.length === 2 && (n = arguments[1]);
|
|
29307
|
-
var u = grpc$
|
|
29307
|
+
var u = grpc$d.unary(InputControllerService.TriggerEvent, {
|
|
29308
29308
|
request: e,
|
|
29309
29309
|
host: this.serviceHost,
|
|
29310
29310
|
metadata: s,
|
|
@@ -29312,7 +29312,7 @@ InputControllerServiceClient.prototype.triggerEvent = function t(e, s, n) {
|
|
|
29312
29312
|
debug: this.options.debug,
|
|
29313
29313
|
onEnd: function(g) {
|
|
29314
29314
|
if (n)
|
|
29315
|
-
if (g.status !== grpc$
|
|
29315
|
+
if (g.status !== grpc$d.Code.OK) {
|
|
29316
29316
|
var p = new Error(g.statusMessage);
|
|
29317
29317
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
29318
29318
|
} else
|
|
@@ -29327,7 +29327,7 @@ InputControllerServiceClient.prototype.triggerEvent = function t(e, s, n) {
|
|
|
29327
29327
|
};
|
|
29328
29328
|
InputControllerServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
29329
29329
|
arguments.length === 2 && (n = arguments[1]);
|
|
29330
|
-
var u = grpc$
|
|
29330
|
+
var u = grpc$d.unary(InputControllerService.DoCommand, {
|
|
29331
29331
|
request: e,
|
|
29332
29332
|
host: this.serviceHost,
|
|
29333
29333
|
metadata: s,
|
|
@@ -29335,7 +29335,7 @@ InputControllerServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
29335
29335
|
debug: this.options.debug,
|
|
29336
29336
|
onEnd: function(g) {
|
|
29337
29337
|
if (n)
|
|
29338
|
-
if (g.status !== grpc$
|
|
29338
|
+
if (g.status !== grpc$d.Code.OK) {
|
|
29339
29339
|
var p = new Error(g.statusMessage);
|
|
29340
29340
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
29341
29341
|
} else
|
|
@@ -30399,7 +30399,7 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
30399
30399
|
return this.setAllowsList([]);
|
|
30400
30400
|
}, s.object.extend(t, proto.viam.service.motion.v1);
|
|
30401
30401
|
})(motion_pb);
|
|
30402
|
-
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() {
|
|
30403
30403
|
function t() {
|
|
30404
30404
|
}
|
|
30405
30405
|
return t.serviceName = "viam.service.motion.v1.MotionService", t;
|
|
@@ -30441,15 +30441,15 @@ MotionService.DoCommand = {
|
|
|
30441
30441
|
service: MotionService,
|
|
30442
30442
|
requestStream: !1,
|
|
30443
30443
|
responseStream: !1,
|
|
30444
|
-
requestType: common_v1_common_pb$
|
|
30445
|
-
responseType: common_v1_common_pb$
|
|
30444
|
+
requestType: common_v1_common_pb$a.DoCommandRequest,
|
|
30445
|
+
responseType: common_v1_common_pb$a.DoCommandResponse
|
|
30446
30446
|
};
|
|
30447
30447
|
function MotionServiceClient(t, e) {
|
|
30448
30448
|
this.serviceHost = t, this.options = e || {};
|
|
30449
30449
|
}
|
|
30450
30450
|
MotionServiceClient.prototype.move = function t(e, s, n) {
|
|
30451
30451
|
arguments.length === 2 && (n = arguments[1]);
|
|
30452
|
-
var u = grpc$
|
|
30452
|
+
var u = grpc$c.unary(MotionService.Move, {
|
|
30453
30453
|
request: e,
|
|
30454
30454
|
host: this.serviceHost,
|
|
30455
30455
|
metadata: s,
|
|
@@ -30457,7 +30457,7 @@ MotionServiceClient.prototype.move = function t(e, s, n) {
|
|
|
30457
30457
|
debug: this.options.debug,
|
|
30458
30458
|
onEnd: function(g) {
|
|
30459
30459
|
if (n)
|
|
30460
|
-
if (g.status !== grpc$
|
|
30460
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
30461
30461
|
var p = new Error(g.statusMessage);
|
|
30462
30462
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
30463
30463
|
} else
|
|
@@ -30472,7 +30472,7 @@ MotionServiceClient.prototype.move = function t(e, s, n) {
|
|
|
30472
30472
|
};
|
|
30473
30473
|
MotionServiceClient.prototype.moveOnMap = function t(e, s, n) {
|
|
30474
30474
|
arguments.length === 2 && (n = arguments[1]);
|
|
30475
|
-
var u = grpc$
|
|
30475
|
+
var u = grpc$c.unary(MotionService.MoveOnMap, {
|
|
30476
30476
|
request: e,
|
|
30477
30477
|
host: this.serviceHost,
|
|
30478
30478
|
metadata: s,
|
|
@@ -30480,7 +30480,7 @@ MotionServiceClient.prototype.moveOnMap = function t(e, s, n) {
|
|
|
30480
30480
|
debug: this.options.debug,
|
|
30481
30481
|
onEnd: function(g) {
|
|
30482
30482
|
if (n)
|
|
30483
|
-
if (g.status !== grpc$
|
|
30483
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
30484
30484
|
var p = new Error(g.statusMessage);
|
|
30485
30485
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
30486
30486
|
} else
|
|
@@ -30495,7 +30495,7 @@ MotionServiceClient.prototype.moveOnMap = function t(e, s, n) {
|
|
|
30495
30495
|
};
|
|
30496
30496
|
MotionServiceClient.prototype.moveSingleComponent = function t(e, s, n) {
|
|
30497
30497
|
arguments.length === 2 && (n = arguments[1]);
|
|
30498
|
-
var u = grpc$
|
|
30498
|
+
var u = grpc$c.unary(MotionService.MoveSingleComponent, {
|
|
30499
30499
|
request: e,
|
|
30500
30500
|
host: this.serviceHost,
|
|
30501
30501
|
metadata: s,
|
|
@@ -30503,7 +30503,7 @@ MotionServiceClient.prototype.moveSingleComponent = function t(e, s, n) {
|
|
|
30503
30503
|
debug: this.options.debug,
|
|
30504
30504
|
onEnd: function(g) {
|
|
30505
30505
|
if (n)
|
|
30506
|
-
if (g.status !== grpc$
|
|
30506
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
30507
30507
|
var p = new Error(g.statusMessage);
|
|
30508
30508
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
30509
30509
|
} else
|
|
@@ -30518,7 +30518,7 @@ MotionServiceClient.prototype.moveSingleComponent = function t(e, s, n) {
|
|
|
30518
30518
|
};
|
|
30519
30519
|
MotionServiceClient.prototype.getPose = function t(e, s, n) {
|
|
30520
30520
|
arguments.length === 2 && (n = arguments[1]);
|
|
30521
|
-
var u = grpc$
|
|
30521
|
+
var u = grpc$c.unary(MotionService.GetPose, {
|
|
30522
30522
|
request: e,
|
|
30523
30523
|
host: this.serviceHost,
|
|
30524
30524
|
metadata: s,
|
|
@@ -30526,7 +30526,7 @@ MotionServiceClient.prototype.getPose = function t(e, s, n) {
|
|
|
30526
30526
|
debug: this.options.debug,
|
|
30527
30527
|
onEnd: function(g) {
|
|
30528
30528
|
if (n)
|
|
30529
|
-
if (g.status !== grpc$
|
|
30529
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
30530
30530
|
var p = new Error(g.statusMessage);
|
|
30531
30531
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
30532
30532
|
} else
|
|
@@ -30541,7 +30541,7 @@ MotionServiceClient.prototype.getPose = function t(e, s, n) {
|
|
|
30541
30541
|
};
|
|
30542
30542
|
MotionServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
30543
30543
|
arguments.length === 2 && (n = arguments[1]);
|
|
30544
|
-
var u = grpc$
|
|
30544
|
+
var u = grpc$c.unary(MotionService.DoCommand, {
|
|
30545
30545
|
request: e,
|
|
30546
30546
|
host: this.serviceHost,
|
|
30547
30547
|
metadata: s,
|
|
@@ -30549,7 +30549,7 @@ MotionServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
30549
30549
|
debug: this.options.debug,
|
|
30550
30550
|
onEnd: function(g) {
|
|
30551
30551
|
if (n)
|
|
30552
|
-
if (g.status !== grpc$
|
|
30552
|
+
if (g.status !== grpc$c.Code.OK) {
|
|
30553
30553
|
var p = new Error(g.statusMessage);
|
|
30554
30554
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
30555
30555
|
} else
|
|
@@ -31645,7 +31645,7 @@ var MotionServiceClient_1 = MotionServiceClient, motor_pb = {};
|
|
|
31645
31645
|
return e.Message.setProto3BooleanField(this, 1, o);
|
|
31646
31646
|
}, s.object.extend(t, proto.viam.component.motor.v1);
|
|
31647
31647
|
})(motor_pb);
|
|
31648
|
-
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() {
|
|
31649
31649
|
function t() {
|
|
31650
31650
|
}
|
|
31651
31651
|
return t.serviceName = "viam.component.motor.v1.MotorService", t;
|
|
@@ -31727,15 +31727,15 @@ MotorService.DoCommand = {
|
|
|
31727
31727
|
service: MotorService,
|
|
31728
31728
|
requestStream: !1,
|
|
31729
31729
|
responseStream: !1,
|
|
31730
|
-
requestType: common_v1_common_pb$
|
|
31731
|
-
responseType: common_v1_common_pb$
|
|
31730
|
+
requestType: common_v1_common_pb$9.DoCommandRequest,
|
|
31731
|
+
responseType: common_v1_common_pb$9.DoCommandResponse
|
|
31732
31732
|
};
|
|
31733
31733
|
function MotorServiceClient(t, e) {
|
|
31734
31734
|
this.serviceHost = t, this.options = e || {};
|
|
31735
31735
|
}
|
|
31736
31736
|
MotorServiceClient.prototype.setPower = function t(e, s, n) {
|
|
31737
31737
|
arguments.length === 2 && (n = arguments[1]);
|
|
31738
|
-
var u = grpc$
|
|
31738
|
+
var u = grpc$b.unary(MotorService.SetPower, {
|
|
31739
31739
|
request: e,
|
|
31740
31740
|
host: this.serviceHost,
|
|
31741
31741
|
metadata: s,
|
|
@@ -31743,7 +31743,7 @@ MotorServiceClient.prototype.setPower = function t(e, s, n) {
|
|
|
31743
31743
|
debug: this.options.debug,
|
|
31744
31744
|
onEnd: function(g) {
|
|
31745
31745
|
if (n)
|
|
31746
|
-
if (g.status !== grpc$
|
|
31746
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31747
31747
|
var p = new Error(g.statusMessage);
|
|
31748
31748
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31749
31749
|
} else
|
|
@@ -31758,7 +31758,7 @@ MotorServiceClient.prototype.setPower = function t(e, s, n) {
|
|
|
31758
31758
|
};
|
|
31759
31759
|
MotorServiceClient.prototype.goFor = function t(e, s, n) {
|
|
31760
31760
|
arguments.length === 2 && (n = arguments[1]);
|
|
31761
|
-
var u = grpc$
|
|
31761
|
+
var u = grpc$b.unary(MotorService.GoFor, {
|
|
31762
31762
|
request: e,
|
|
31763
31763
|
host: this.serviceHost,
|
|
31764
31764
|
metadata: s,
|
|
@@ -31766,7 +31766,7 @@ MotorServiceClient.prototype.goFor = function t(e, s, n) {
|
|
|
31766
31766
|
debug: this.options.debug,
|
|
31767
31767
|
onEnd: function(g) {
|
|
31768
31768
|
if (n)
|
|
31769
|
-
if (g.status !== grpc$
|
|
31769
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31770
31770
|
var p = new Error(g.statusMessage);
|
|
31771
31771
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31772
31772
|
} else
|
|
@@ -31781,7 +31781,7 @@ MotorServiceClient.prototype.goFor = function t(e, s, n) {
|
|
|
31781
31781
|
};
|
|
31782
31782
|
MotorServiceClient.prototype.goTo = function t(e, s, n) {
|
|
31783
31783
|
arguments.length === 2 && (n = arguments[1]);
|
|
31784
|
-
var u = grpc$
|
|
31784
|
+
var u = grpc$b.unary(MotorService.GoTo, {
|
|
31785
31785
|
request: e,
|
|
31786
31786
|
host: this.serviceHost,
|
|
31787
31787
|
metadata: s,
|
|
@@ -31789,7 +31789,7 @@ MotorServiceClient.prototype.goTo = function t(e, s, n) {
|
|
|
31789
31789
|
debug: this.options.debug,
|
|
31790
31790
|
onEnd: function(g) {
|
|
31791
31791
|
if (n)
|
|
31792
|
-
if (g.status !== grpc$
|
|
31792
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31793
31793
|
var p = new Error(g.statusMessage);
|
|
31794
31794
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31795
31795
|
} else
|
|
@@ -31804,7 +31804,7 @@ MotorServiceClient.prototype.goTo = function t(e, s, n) {
|
|
|
31804
31804
|
};
|
|
31805
31805
|
MotorServiceClient.prototype.resetZeroPosition = function t(e, s, n) {
|
|
31806
31806
|
arguments.length === 2 && (n = arguments[1]);
|
|
31807
|
-
var u = grpc$
|
|
31807
|
+
var u = grpc$b.unary(MotorService.ResetZeroPosition, {
|
|
31808
31808
|
request: e,
|
|
31809
31809
|
host: this.serviceHost,
|
|
31810
31810
|
metadata: s,
|
|
@@ -31812,7 +31812,7 @@ MotorServiceClient.prototype.resetZeroPosition = function t(e, s, n) {
|
|
|
31812
31812
|
debug: this.options.debug,
|
|
31813
31813
|
onEnd: function(g) {
|
|
31814
31814
|
if (n)
|
|
31815
|
-
if (g.status !== grpc$
|
|
31815
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31816
31816
|
var p = new Error(g.statusMessage);
|
|
31817
31817
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31818
31818
|
} else
|
|
@@ -31827,7 +31827,7 @@ MotorServiceClient.prototype.resetZeroPosition = function t(e, s, n) {
|
|
|
31827
31827
|
};
|
|
31828
31828
|
MotorServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
31829
31829
|
arguments.length === 2 && (n = arguments[1]);
|
|
31830
|
-
var u = grpc$
|
|
31830
|
+
var u = grpc$b.unary(MotorService.GetPosition, {
|
|
31831
31831
|
request: e,
|
|
31832
31832
|
host: this.serviceHost,
|
|
31833
31833
|
metadata: s,
|
|
@@ -31835,7 +31835,7 @@ MotorServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
31835
31835
|
debug: this.options.debug,
|
|
31836
31836
|
onEnd: function(g) {
|
|
31837
31837
|
if (n)
|
|
31838
|
-
if (g.status !== grpc$
|
|
31838
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31839
31839
|
var p = new Error(g.statusMessage);
|
|
31840
31840
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31841
31841
|
} else
|
|
@@ -31850,7 +31850,7 @@ MotorServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
31850
31850
|
};
|
|
31851
31851
|
MotorServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
31852
31852
|
arguments.length === 2 && (n = arguments[1]);
|
|
31853
|
-
var u = grpc$
|
|
31853
|
+
var u = grpc$b.unary(MotorService.GetProperties, {
|
|
31854
31854
|
request: e,
|
|
31855
31855
|
host: this.serviceHost,
|
|
31856
31856
|
metadata: s,
|
|
@@ -31858,7 +31858,7 @@ MotorServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
|
31858
31858
|
debug: this.options.debug,
|
|
31859
31859
|
onEnd: function(g) {
|
|
31860
31860
|
if (n)
|
|
31861
|
-
if (g.status !== grpc$
|
|
31861
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31862
31862
|
var p = new Error(g.statusMessage);
|
|
31863
31863
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31864
31864
|
} else
|
|
@@ -31873,7 +31873,7 @@ MotorServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
|
31873
31873
|
};
|
|
31874
31874
|
MotorServiceClient.prototype.stop = function t(e, s, n) {
|
|
31875
31875
|
arguments.length === 2 && (n = arguments[1]);
|
|
31876
|
-
var u = grpc$
|
|
31876
|
+
var u = grpc$b.unary(MotorService.Stop, {
|
|
31877
31877
|
request: e,
|
|
31878
31878
|
host: this.serviceHost,
|
|
31879
31879
|
metadata: s,
|
|
@@ -31881,7 +31881,7 @@ MotorServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
31881
31881
|
debug: this.options.debug,
|
|
31882
31882
|
onEnd: function(g) {
|
|
31883
31883
|
if (n)
|
|
31884
|
-
if (g.status !== grpc$
|
|
31884
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31885
31885
|
var p = new Error(g.statusMessage);
|
|
31886
31886
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31887
31887
|
} else
|
|
@@ -31896,7 +31896,7 @@ MotorServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
31896
31896
|
};
|
|
31897
31897
|
MotorServiceClient.prototype.isPowered = function t(e, s, n) {
|
|
31898
31898
|
arguments.length === 2 && (n = arguments[1]);
|
|
31899
|
-
var u = grpc$
|
|
31899
|
+
var u = grpc$b.unary(MotorService.IsPowered, {
|
|
31900
31900
|
request: e,
|
|
31901
31901
|
host: this.serviceHost,
|
|
31902
31902
|
metadata: s,
|
|
@@ -31904,7 +31904,7 @@ MotorServiceClient.prototype.isPowered = function t(e, s, n) {
|
|
|
31904
31904
|
debug: this.options.debug,
|
|
31905
31905
|
onEnd: function(g) {
|
|
31906
31906
|
if (n)
|
|
31907
|
-
if (g.status !== grpc$
|
|
31907
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31908
31908
|
var p = new Error(g.statusMessage);
|
|
31909
31909
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31910
31910
|
} else
|
|
@@ -31919,7 +31919,7 @@ MotorServiceClient.prototype.isPowered = function t(e, s, n) {
|
|
|
31919
31919
|
};
|
|
31920
31920
|
MotorServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
31921
31921
|
arguments.length === 2 && (n = arguments[1]);
|
|
31922
|
-
var u = grpc$
|
|
31922
|
+
var u = grpc$b.unary(MotorService.IsMoving, {
|
|
31923
31923
|
request: e,
|
|
31924
31924
|
host: this.serviceHost,
|
|
31925
31925
|
metadata: s,
|
|
@@ -31927,7 +31927,7 @@ MotorServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
31927
31927
|
debug: this.options.debug,
|
|
31928
31928
|
onEnd: function(g) {
|
|
31929
31929
|
if (n)
|
|
31930
|
-
if (g.status !== grpc$
|
|
31930
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31931
31931
|
var p = new Error(g.statusMessage);
|
|
31932
31932
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31933
31933
|
} else
|
|
@@ -31942,7 +31942,7 @@ MotorServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
31942
31942
|
};
|
|
31943
31943
|
MotorServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
31944
31944
|
arguments.length === 2 && (n = arguments[1]);
|
|
31945
|
-
var u = grpc$
|
|
31945
|
+
var u = grpc$b.unary(MotorService.DoCommand, {
|
|
31946
31946
|
request: e,
|
|
31947
31947
|
host: this.serviceHost,
|
|
31948
31948
|
metadata: s,
|
|
@@ -31950,7 +31950,7 @@ MotorServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
31950
31950
|
debug: this.options.debug,
|
|
31951
31951
|
onEnd: function(g) {
|
|
31952
31952
|
if (n)
|
|
31953
|
-
if (g.status !== grpc$
|
|
31953
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
31954
31954
|
var p = new Error(g.statusMessage);
|
|
31955
31955
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
31956
31956
|
} else
|
|
@@ -32973,7 +32973,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
|
|
|
32973
32973
|
return e.Message.getField(this, 1) != null;
|
|
32974
32974
|
}, s.object.extend(t, proto.viam.component.movementsensor.v1);
|
|
32975
32975
|
})(movementsensor_pb);
|
|
32976
|
-
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() {
|
|
32977
32977
|
function t() {
|
|
32978
32978
|
}
|
|
32979
32979
|
return t.serviceName = "viam.component.movementsensor.v1.MovementSensorService", t;
|
|
@@ -33047,15 +33047,15 @@ MovementSensorService.DoCommand = {
|
|
|
33047
33047
|
service: MovementSensorService,
|
|
33048
33048
|
requestStream: !1,
|
|
33049
33049
|
responseStream: !1,
|
|
33050
|
-
requestType: common_v1_common_pb$
|
|
33051
|
-
responseType: common_v1_common_pb$
|
|
33050
|
+
requestType: common_v1_common_pb$8.DoCommandRequest,
|
|
33051
|
+
responseType: common_v1_common_pb$8.DoCommandResponse
|
|
33052
33052
|
};
|
|
33053
33053
|
function MovementSensorServiceClient(t, e) {
|
|
33054
33054
|
this.serviceHost = t, this.options = e || {};
|
|
33055
33055
|
}
|
|
33056
33056
|
MovementSensorServiceClient.prototype.getLinearVelocity = function t(e, s, n) {
|
|
33057
33057
|
arguments.length === 2 && (n = arguments[1]);
|
|
33058
|
-
var u = grpc$
|
|
33058
|
+
var u = grpc$a.unary(MovementSensorService.GetLinearVelocity, {
|
|
33059
33059
|
request: e,
|
|
33060
33060
|
host: this.serviceHost,
|
|
33061
33061
|
metadata: s,
|
|
@@ -33063,7 +33063,7 @@ MovementSensorServiceClient.prototype.getLinearVelocity = function t(e, s, n) {
|
|
|
33063
33063
|
debug: this.options.debug,
|
|
33064
33064
|
onEnd: function(g) {
|
|
33065
33065
|
if (n)
|
|
33066
|
-
if (g.status !== grpc$
|
|
33066
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
33067
33067
|
var p = new Error(g.statusMessage);
|
|
33068
33068
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33069
33069
|
} else
|
|
@@ -33078,7 +33078,7 @@ MovementSensorServiceClient.prototype.getLinearVelocity = function t(e, s, n) {
|
|
|
33078
33078
|
};
|
|
33079
33079
|
MovementSensorServiceClient.prototype.getAngularVelocity = function t(e, s, n) {
|
|
33080
33080
|
arguments.length === 2 && (n = arguments[1]);
|
|
33081
|
-
var u = grpc$
|
|
33081
|
+
var u = grpc$a.unary(MovementSensorService.GetAngularVelocity, {
|
|
33082
33082
|
request: e,
|
|
33083
33083
|
host: this.serviceHost,
|
|
33084
33084
|
metadata: s,
|
|
@@ -33086,7 +33086,7 @@ MovementSensorServiceClient.prototype.getAngularVelocity = function t(e, s, n) {
|
|
|
33086
33086
|
debug: this.options.debug,
|
|
33087
33087
|
onEnd: function(g) {
|
|
33088
33088
|
if (n)
|
|
33089
|
-
if (g.status !== grpc$
|
|
33089
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
33090
33090
|
var p = new Error(g.statusMessage);
|
|
33091
33091
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33092
33092
|
} else
|
|
@@ -33101,7 +33101,7 @@ MovementSensorServiceClient.prototype.getAngularVelocity = function t(e, s, n) {
|
|
|
33101
33101
|
};
|
|
33102
33102
|
MovementSensorServiceClient.prototype.getCompassHeading = function t(e, s, n) {
|
|
33103
33103
|
arguments.length === 2 && (n = arguments[1]);
|
|
33104
|
-
var u = grpc$
|
|
33104
|
+
var u = grpc$a.unary(MovementSensorService.GetCompassHeading, {
|
|
33105
33105
|
request: e,
|
|
33106
33106
|
host: this.serviceHost,
|
|
33107
33107
|
metadata: s,
|
|
@@ -33109,7 +33109,7 @@ MovementSensorServiceClient.prototype.getCompassHeading = function t(e, s, n) {
|
|
|
33109
33109
|
debug: this.options.debug,
|
|
33110
33110
|
onEnd: function(g) {
|
|
33111
33111
|
if (n)
|
|
33112
|
-
if (g.status !== grpc$
|
|
33112
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
33113
33113
|
var p = new Error(g.statusMessage);
|
|
33114
33114
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33115
33115
|
} else
|
|
@@ -33124,7 +33124,7 @@ MovementSensorServiceClient.prototype.getCompassHeading = function t(e, s, n) {
|
|
|
33124
33124
|
};
|
|
33125
33125
|
MovementSensorServiceClient.prototype.getOrientation = function t(e, s, n) {
|
|
33126
33126
|
arguments.length === 2 && (n = arguments[1]);
|
|
33127
|
-
var u = grpc$
|
|
33127
|
+
var u = grpc$a.unary(MovementSensorService.GetOrientation, {
|
|
33128
33128
|
request: e,
|
|
33129
33129
|
host: this.serviceHost,
|
|
33130
33130
|
metadata: s,
|
|
@@ -33132,7 +33132,7 @@ MovementSensorServiceClient.prototype.getOrientation = function t(e, s, n) {
|
|
|
33132
33132
|
debug: this.options.debug,
|
|
33133
33133
|
onEnd: function(g) {
|
|
33134
33134
|
if (n)
|
|
33135
|
-
if (g.status !== grpc$
|
|
33135
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
33136
33136
|
var p = new Error(g.statusMessage);
|
|
33137
33137
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33138
33138
|
} else
|
|
@@ -33147,7 +33147,7 @@ MovementSensorServiceClient.prototype.getOrientation = function t(e, s, n) {
|
|
|
33147
33147
|
};
|
|
33148
33148
|
MovementSensorServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
33149
33149
|
arguments.length === 2 && (n = arguments[1]);
|
|
33150
|
-
var u = grpc$
|
|
33150
|
+
var u = grpc$a.unary(MovementSensorService.GetPosition, {
|
|
33151
33151
|
request: e,
|
|
33152
33152
|
host: this.serviceHost,
|
|
33153
33153
|
metadata: s,
|
|
@@ -33155,7 +33155,7 @@ MovementSensorServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
33155
33155
|
debug: this.options.debug,
|
|
33156
33156
|
onEnd: function(g) {
|
|
33157
33157
|
if (n)
|
|
33158
|
-
if (g.status !== grpc$
|
|
33158
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
33159
33159
|
var p = new Error(g.statusMessage);
|
|
33160
33160
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33161
33161
|
} else
|
|
@@ -33170,7 +33170,7 @@ MovementSensorServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
33170
33170
|
};
|
|
33171
33171
|
MovementSensorServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
33172
33172
|
arguments.length === 2 && (n = arguments[1]);
|
|
33173
|
-
var u = grpc$
|
|
33173
|
+
var u = grpc$a.unary(MovementSensorService.GetProperties, {
|
|
33174
33174
|
request: e,
|
|
33175
33175
|
host: this.serviceHost,
|
|
33176
33176
|
metadata: s,
|
|
@@ -33178,7 +33178,7 @@ MovementSensorServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
|
33178
33178
|
debug: this.options.debug,
|
|
33179
33179
|
onEnd: function(g) {
|
|
33180
33180
|
if (n)
|
|
33181
|
-
if (g.status !== grpc$
|
|
33181
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
33182
33182
|
var p = new Error(g.statusMessage);
|
|
33183
33183
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33184
33184
|
} else
|
|
@@ -33193,7 +33193,7 @@ MovementSensorServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
|
33193
33193
|
};
|
|
33194
33194
|
MovementSensorServiceClient.prototype.getAccuracy = function t(e, s, n) {
|
|
33195
33195
|
arguments.length === 2 && (n = arguments[1]);
|
|
33196
|
-
var u = grpc$
|
|
33196
|
+
var u = grpc$a.unary(MovementSensorService.GetAccuracy, {
|
|
33197
33197
|
request: e,
|
|
33198
33198
|
host: this.serviceHost,
|
|
33199
33199
|
metadata: s,
|
|
@@ -33201,7 +33201,7 @@ MovementSensorServiceClient.prototype.getAccuracy = function t(e, s, n) {
|
|
|
33201
33201
|
debug: this.options.debug,
|
|
33202
33202
|
onEnd: function(g) {
|
|
33203
33203
|
if (n)
|
|
33204
|
-
if (g.status !== grpc$
|
|
33204
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
33205
33205
|
var p = new Error(g.statusMessage);
|
|
33206
33206
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33207
33207
|
} else
|
|
@@ -33216,7 +33216,7 @@ MovementSensorServiceClient.prototype.getAccuracy = function t(e, s, n) {
|
|
|
33216
33216
|
};
|
|
33217
33217
|
MovementSensorServiceClient.prototype.getLinearAcceleration = function t(e, s, n) {
|
|
33218
33218
|
arguments.length === 2 && (n = arguments[1]);
|
|
33219
|
-
var u = grpc$
|
|
33219
|
+
var u = grpc$a.unary(MovementSensorService.GetLinearAcceleration, {
|
|
33220
33220
|
request: e,
|
|
33221
33221
|
host: this.serviceHost,
|
|
33222
33222
|
metadata: s,
|
|
@@ -33224,7 +33224,7 @@ MovementSensorServiceClient.prototype.getLinearAcceleration = function t(e, s, n
|
|
|
33224
33224
|
debug: this.options.debug,
|
|
33225
33225
|
onEnd: function(g) {
|
|
33226
33226
|
if (n)
|
|
33227
|
-
if (g.status !== grpc$
|
|
33227
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
33228
33228
|
var p = new Error(g.statusMessage);
|
|
33229
33229
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33230
33230
|
} else
|
|
@@ -33239,7 +33239,7 @@ MovementSensorServiceClient.prototype.getLinearAcceleration = function t(e, s, n
|
|
|
33239
33239
|
};
|
|
33240
33240
|
MovementSensorServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
33241
33241
|
arguments.length === 2 && (n = arguments[1]);
|
|
33242
|
-
var u = grpc$
|
|
33242
|
+
var u = grpc$a.unary(MovementSensorService.DoCommand, {
|
|
33243
33243
|
request: e,
|
|
33244
33244
|
host: this.serviceHost,
|
|
33245
33245
|
metadata: s,
|
|
@@ -33247,7 +33247,7 @@ MovementSensorServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
33247
33247
|
debug: this.options.debug,
|
|
33248
33248
|
onEnd: function(g) {
|
|
33249
33249
|
if (n)
|
|
33250
|
-
if (g.status !== grpc$
|
|
33250
|
+
if (g.status !== grpc$a.Code.OK) {
|
|
33251
33251
|
var p = new Error(g.statusMessage);
|
|
33252
33252
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
33253
33253
|
} else
|
|
@@ -34001,7 +34001,7 @@ var MovementSensorServiceClient_1 = MovementSensorServiceClient, navigation_pb =
|
|
|
34001
34001
|
MODE_WAYPOINT: 2
|
|
34002
34002
|
}, s.object.extend(t, proto.viam.service.navigation.v1);
|
|
34003
34003
|
})(navigation_pb);
|
|
34004
|
-
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() {
|
|
34005
34005
|
function t() {
|
|
34006
34006
|
}
|
|
34007
34007
|
return t.serviceName = "viam.service.navigation.v1.NavigationService", t;
|
|
@@ -34059,15 +34059,15 @@ NavigationService.DoCommand = {
|
|
|
34059
34059
|
service: NavigationService,
|
|
34060
34060
|
requestStream: !1,
|
|
34061
34061
|
responseStream: !1,
|
|
34062
|
-
requestType: common_v1_common_pb$
|
|
34063
|
-
responseType: common_v1_common_pb$
|
|
34062
|
+
requestType: common_v1_common_pb$7.DoCommandRequest,
|
|
34063
|
+
responseType: common_v1_common_pb$7.DoCommandResponse
|
|
34064
34064
|
};
|
|
34065
34065
|
function NavigationServiceClient(t, e) {
|
|
34066
34066
|
this.serviceHost = t, this.options = e || {};
|
|
34067
34067
|
}
|
|
34068
34068
|
NavigationServiceClient.prototype.getMode = function t(e, s, n) {
|
|
34069
34069
|
arguments.length === 2 && (n = arguments[1]);
|
|
34070
|
-
var u = grpc$
|
|
34070
|
+
var u = grpc$9.unary(NavigationService.GetMode, {
|
|
34071
34071
|
request: e,
|
|
34072
34072
|
host: this.serviceHost,
|
|
34073
34073
|
metadata: s,
|
|
@@ -34075,7 +34075,7 @@ NavigationServiceClient.prototype.getMode = function t(e, s, n) {
|
|
|
34075
34075
|
debug: this.options.debug,
|
|
34076
34076
|
onEnd: function(g) {
|
|
34077
34077
|
if (n)
|
|
34078
|
-
if (g.status !== grpc$
|
|
34078
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
34079
34079
|
var p = new Error(g.statusMessage);
|
|
34080
34080
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34081
34081
|
} else
|
|
@@ -34090,7 +34090,7 @@ NavigationServiceClient.prototype.getMode = function t(e, s, n) {
|
|
|
34090
34090
|
};
|
|
34091
34091
|
NavigationServiceClient.prototype.setMode = function t(e, s, n) {
|
|
34092
34092
|
arguments.length === 2 && (n = arguments[1]);
|
|
34093
|
-
var u = grpc$
|
|
34093
|
+
var u = grpc$9.unary(NavigationService.SetMode, {
|
|
34094
34094
|
request: e,
|
|
34095
34095
|
host: this.serviceHost,
|
|
34096
34096
|
metadata: s,
|
|
@@ -34098,7 +34098,7 @@ NavigationServiceClient.prototype.setMode = function t(e, s, n) {
|
|
|
34098
34098
|
debug: this.options.debug,
|
|
34099
34099
|
onEnd: function(g) {
|
|
34100
34100
|
if (n)
|
|
34101
|
-
if (g.status !== grpc$
|
|
34101
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
34102
34102
|
var p = new Error(g.statusMessage);
|
|
34103
34103
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34104
34104
|
} else
|
|
@@ -34113,7 +34113,7 @@ NavigationServiceClient.prototype.setMode = function t(e, s, n) {
|
|
|
34113
34113
|
};
|
|
34114
34114
|
NavigationServiceClient.prototype.getLocation = function t(e, s, n) {
|
|
34115
34115
|
arguments.length === 2 && (n = arguments[1]);
|
|
34116
|
-
var u = grpc$
|
|
34116
|
+
var u = grpc$9.unary(NavigationService.GetLocation, {
|
|
34117
34117
|
request: e,
|
|
34118
34118
|
host: this.serviceHost,
|
|
34119
34119
|
metadata: s,
|
|
@@ -34121,7 +34121,7 @@ NavigationServiceClient.prototype.getLocation = function t(e, s, n) {
|
|
|
34121
34121
|
debug: this.options.debug,
|
|
34122
34122
|
onEnd: function(g) {
|
|
34123
34123
|
if (n)
|
|
34124
|
-
if (g.status !== grpc$
|
|
34124
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
34125
34125
|
var p = new Error(g.statusMessage);
|
|
34126
34126
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34127
34127
|
} else
|
|
@@ -34136,7 +34136,7 @@ NavigationServiceClient.prototype.getLocation = function t(e, s, n) {
|
|
|
34136
34136
|
};
|
|
34137
34137
|
NavigationServiceClient.prototype.getWaypoints = function t(e, s, n) {
|
|
34138
34138
|
arguments.length === 2 && (n = arguments[1]);
|
|
34139
|
-
var u = grpc$
|
|
34139
|
+
var u = grpc$9.unary(NavigationService.GetWaypoints, {
|
|
34140
34140
|
request: e,
|
|
34141
34141
|
host: this.serviceHost,
|
|
34142
34142
|
metadata: s,
|
|
@@ -34144,7 +34144,7 @@ NavigationServiceClient.prototype.getWaypoints = function t(e, s, n) {
|
|
|
34144
34144
|
debug: this.options.debug,
|
|
34145
34145
|
onEnd: function(g) {
|
|
34146
34146
|
if (n)
|
|
34147
|
-
if (g.status !== grpc$
|
|
34147
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
34148
34148
|
var p = new Error(g.statusMessage);
|
|
34149
34149
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34150
34150
|
} else
|
|
@@ -34159,7 +34159,7 @@ NavigationServiceClient.prototype.getWaypoints = function t(e, s, n) {
|
|
|
34159
34159
|
};
|
|
34160
34160
|
NavigationServiceClient.prototype.addWaypoint = function t(e, s, n) {
|
|
34161
34161
|
arguments.length === 2 && (n = arguments[1]);
|
|
34162
|
-
var u = grpc$
|
|
34162
|
+
var u = grpc$9.unary(NavigationService.AddWaypoint, {
|
|
34163
34163
|
request: e,
|
|
34164
34164
|
host: this.serviceHost,
|
|
34165
34165
|
metadata: s,
|
|
@@ -34167,7 +34167,7 @@ NavigationServiceClient.prototype.addWaypoint = function t(e, s, n) {
|
|
|
34167
34167
|
debug: this.options.debug,
|
|
34168
34168
|
onEnd: function(g) {
|
|
34169
34169
|
if (n)
|
|
34170
|
-
if (g.status !== grpc$
|
|
34170
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
34171
34171
|
var p = new Error(g.statusMessage);
|
|
34172
34172
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34173
34173
|
} else
|
|
@@ -34182,7 +34182,7 @@ NavigationServiceClient.prototype.addWaypoint = function t(e, s, n) {
|
|
|
34182
34182
|
};
|
|
34183
34183
|
NavigationServiceClient.prototype.removeWaypoint = function t(e, s, n) {
|
|
34184
34184
|
arguments.length === 2 && (n = arguments[1]);
|
|
34185
|
-
var u = grpc$
|
|
34185
|
+
var u = grpc$9.unary(NavigationService.RemoveWaypoint, {
|
|
34186
34186
|
request: e,
|
|
34187
34187
|
host: this.serviceHost,
|
|
34188
34188
|
metadata: s,
|
|
@@ -34190,7 +34190,7 @@ NavigationServiceClient.prototype.removeWaypoint = function t(e, s, n) {
|
|
|
34190
34190
|
debug: this.options.debug,
|
|
34191
34191
|
onEnd: function(g) {
|
|
34192
34192
|
if (n)
|
|
34193
|
-
if (g.status !== grpc$
|
|
34193
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
34194
34194
|
var p = new Error(g.statusMessage);
|
|
34195
34195
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34196
34196
|
} else
|
|
@@ -34205,7 +34205,7 @@ NavigationServiceClient.prototype.removeWaypoint = function t(e, s, n) {
|
|
|
34205
34205
|
};
|
|
34206
34206
|
NavigationServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
34207
34207
|
arguments.length === 2 && (n = arguments[1]);
|
|
34208
|
-
var u = grpc$
|
|
34208
|
+
var u = grpc$9.unary(NavigationService.DoCommand, {
|
|
34209
34209
|
request: e,
|
|
34210
34210
|
host: this.serviceHost,
|
|
34211
34211
|
metadata: s,
|
|
@@ -34213,7 +34213,7 @@ NavigationServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
34213
34213
|
debug: this.options.debug,
|
|
34214
34214
|
onEnd: function(g) {
|
|
34215
34215
|
if (n)
|
|
34216
|
-
if (g.status !== grpc$
|
|
34216
|
+
if (g.status !== grpc$9.Code.OK) {
|
|
34217
34217
|
var p = new Error(g.statusMessage);
|
|
34218
34218
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34219
34219
|
} else
|
|
@@ -34226,7 +34226,7 @@ NavigationServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
34226
34226
|
}
|
|
34227
34227
|
};
|
|
34228
34228
|
};
|
|
34229
|
-
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() {
|
|
34230
34230
|
function t() {
|
|
34231
34231
|
}
|
|
34232
34232
|
return t.serviceName = "viam.robot.v1.RobotService", t;
|
|
@@ -34356,7 +34356,7 @@ function RobotServiceClient(t, e) {
|
|
|
34356
34356
|
}
|
|
34357
34357
|
RobotServiceClient.prototype.getOperations = function t(e, s, n) {
|
|
34358
34358
|
arguments.length === 2 && (n = arguments[1]);
|
|
34359
|
-
var u = grpc$
|
|
34359
|
+
var u = grpc$8.unary(RobotService.GetOperations, {
|
|
34360
34360
|
request: e,
|
|
34361
34361
|
host: this.serviceHost,
|
|
34362
34362
|
metadata: s,
|
|
@@ -34364,7 +34364,7 @@ RobotServiceClient.prototype.getOperations = function t(e, s, n) {
|
|
|
34364
34364
|
debug: this.options.debug,
|
|
34365
34365
|
onEnd: function(g) {
|
|
34366
34366
|
if (n)
|
|
34367
|
-
if (g.status !== grpc$
|
|
34367
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34368
34368
|
var p = new Error(g.statusMessage);
|
|
34369
34369
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34370
34370
|
} else
|
|
@@ -34379,7 +34379,7 @@ RobotServiceClient.prototype.getOperations = function t(e, s, n) {
|
|
|
34379
34379
|
};
|
|
34380
34380
|
RobotServiceClient.prototype.getSessions = function t(e, s, n) {
|
|
34381
34381
|
arguments.length === 2 && (n = arguments[1]);
|
|
34382
|
-
var u = grpc$
|
|
34382
|
+
var u = grpc$8.unary(RobotService.GetSessions, {
|
|
34383
34383
|
request: e,
|
|
34384
34384
|
host: this.serviceHost,
|
|
34385
34385
|
metadata: s,
|
|
@@ -34387,7 +34387,7 @@ RobotServiceClient.prototype.getSessions = function t(e, s, n) {
|
|
|
34387
34387
|
debug: this.options.debug,
|
|
34388
34388
|
onEnd: function(g) {
|
|
34389
34389
|
if (n)
|
|
34390
|
-
if (g.status !== grpc$
|
|
34390
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34391
34391
|
var p = new Error(g.statusMessage);
|
|
34392
34392
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34393
34393
|
} else
|
|
@@ -34402,7 +34402,7 @@ RobotServiceClient.prototype.getSessions = function t(e, s, n) {
|
|
|
34402
34402
|
};
|
|
34403
34403
|
RobotServiceClient.prototype.resourceNames = function t(e, s, n) {
|
|
34404
34404
|
arguments.length === 2 && (n = arguments[1]);
|
|
34405
|
-
var u = grpc$
|
|
34405
|
+
var u = grpc$8.unary(RobotService.ResourceNames, {
|
|
34406
34406
|
request: e,
|
|
34407
34407
|
host: this.serviceHost,
|
|
34408
34408
|
metadata: s,
|
|
@@ -34410,7 +34410,7 @@ RobotServiceClient.prototype.resourceNames = function t(e, s, n) {
|
|
|
34410
34410
|
debug: this.options.debug,
|
|
34411
34411
|
onEnd: function(g) {
|
|
34412
34412
|
if (n)
|
|
34413
|
-
if (g.status !== grpc$
|
|
34413
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34414
34414
|
var p = new Error(g.statusMessage);
|
|
34415
34415
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34416
34416
|
} else
|
|
@@ -34425,7 +34425,7 @@ RobotServiceClient.prototype.resourceNames = function t(e, s, n) {
|
|
|
34425
34425
|
};
|
|
34426
34426
|
RobotServiceClient.prototype.resourceRPCSubtypes = function t(e, s, n) {
|
|
34427
34427
|
arguments.length === 2 && (n = arguments[1]);
|
|
34428
|
-
var u = grpc$
|
|
34428
|
+
var u = grpc$8.unary(RobotService.ResourceRPCSubtypes, {
|
|
34429
34429
|
request: e,
|
|
34430
34430
|
host: this.serviceHost,
|
|
34431
34431
|
metadata: s,
|
|
@@ -34433,7 +34433,7 @@ RobotServiceClient.prototype.resourceRPCSubtypes = function t(e, s, n) {
|
|
|
34433
34433
|
debug: this.options.debug,
|
|
34434
34434
|
onEnd: function(g) {
|
|
34435
34435
|
if (n)
|
|
34436
|
-
if (g.status !== grpc$
|
|
34436
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34437
34437
|
var p = new Error(g.statusMessage);
|
|
34438
34438
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34439
34439
|
} else
|
|
@@ -34448,7 +34448,7 @@ RobotServiceClient.prototype.resourceRPCSubtypes = function t(e, s, n) {
|
|
|
34448
34448
|
};
|
|
34449
34449
|
RobotServiceClient.prototype.cancelOperation = function t(e, s, n) {
|
|
34450
34450
|
arguments.length === 2 && (n = arguments[1]);
|
|
34451
|
-
var u = grpc$
|
|
34451
|
+
var u = grpc$8.unary(RobotService.CancelOperation, {
|
|
34452
34452
|
request: e,
|
|
34453
34453
|
host: this.serviceHost,
|
|
34454
34454
|
metadata: s,
|
|
@@ -34456,7 +34456,7 @@ RobotServiceClient.prototype.cancelOperation = function t(e, s, n) {
|
|
|
34456
34456
|
debug: this.options.debug,
|
|
34457
34457
|
onEnd: function(g) {
|
|
34458
34458
|
if (n)
|
|
34459
|
-
if (g.status !== grpc$
|
|
34459
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34460
34460
|
var p = new Error(g.statusMessage);
|
|
34461
34461
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34462
34462
|
} else
|
|
@@ -34471,7 +34471,7 @@ RobotServiceClient.prototype.cancelOperation = function t(e, s, n) {
|
|
|
34471
34471
|
};
|
|
34472
34472
|
RobotServiceClient.prototype.blockForOperation = function t(e, s, n) {
|
|
34473
34473
|
arguments.length === 2 && (n = arguments[1]);
|
|
34474
|
-
var u = grpc$
|
|
34474
|
+
var u = grpc$8.unary(RobotService.BlockForOperation, {
|
|
34475
34475
|
request: e,
|
|
34476
34476
|
host: this.serviceHost,
|
|
34477
34477
|
metadata: s,
|
|
@@ -34479,7 +34479,7 @@ RobotServiceClient.prototype.blockForOperation = function t(e, s, n) {
|
|
|
34479
34479
|
debug: this.options.debug,
|
|
34480
34480
|
onEnd: function(g) {
|
|
34481
34481
|
if (n)
|
|
34482
|
-
if (g.status !== grpc$
|
|
34482
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34483
34483
|
var p = new Error(g.statusMessage);
|
|
34484
34484
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34485
34485
|
} else
|
|
@@ -34494,7 +34494,7 @@ RobotServiceClient.prototype.blockForOperation = function t(e, s, n) {
|
|
|
34494
34494
|
};
|
|
34495
34495
|
RobotServiceClient.prototype.discoverComponents = function t(e, s, n) {
|
|
34496
34496
|
arguments.length === 2 && (n = arguments[1]);
|
|
34497
|
-
var u = grpc$
|
|
34497
|
+
var u = grpc$8.unary(RobotService.DiscoverComponents, {
|
|
34498
34498
|
request: e,
|
|
34499
34499
|
host: this.serviceHost,
|
|
34500
34500
|
metadata: s,
|
|
@@ -34502,7 +34502,7 @@ RobotServiceClient.prototype.discoverComponents = function t(e, s, n) {
|
|
|
34502
34502
|
debug: this.options.debug,
|
|
34503
34503
|
onEnd: function(g) {
|
|
34504
34504
|
if (n)
|
|
34505
|
-
if (g.status !== grpc$
|
|
34505
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34506
34506
|
var p = new Error(g.statusMessage);
|
|
34507
34507
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34508
34508
|
} else
|
|
@@ -34517,7 +34517,7 @@ RobotServiceClient.prototype.discoverComponents = function t(e, s, n) {
|
|
|
34517
34517
|
};
|
|
34518
34518
|
RobotServiceClient.prototype.frameSystemConfig = function t(e, s, n) {
|
|
34519
34519
|
arguments.length === 2 && (n = arguments[1]);
|
|
34520
|
-
var u = grpc$
|
|
34520
|
+
var u = grpc$8.unary(RobotService.FrameSystemConfig, {
|
|
34521
34521
|
request: e,
|
|
34522
34522
|
host: this.serviceHost,
|
|
34523
34523
|
metadata: s,
|
|
@@ -34525,7 +34525,7 @@ RobotServiceClient.prototype.frameSystemConfig = function t(e, s, n) {
|
|
|
34525
34525
|
debug: this.options.debug,
|
|
34526
34526
|
onEnd: function(g) {
|
|
34527
34527
|
if (n)
|
|
34528
|
-
if (g.status !== grpc$
|
|
34528
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34529
34529
|
var p = new Error(g.statusMessage);
|
|
34530
34530
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34531
34531
|
} else
|
|
@@ -34540,7 +34540,7 @@ RobotServiceClient.prototype.frameSystemConfig = function t(e, s, n) {
|
|
|
34540
34540
|
};
|
|
34541
34541
|
RobotServiceClient.prototype.transformPose = function t(e, s, n) {
|
|
34542
34542
|
arguments.length === 2 && (n = arguments[1]);
|
|
34543
|
-
var u = grpc$
|
|
34543
|
+
var u = grpc$8.unary(RobotService.TransformPose, {
|
|
34544
34544
|
request: e,
|
|
34545
34545
|
host: this.serviceHost,
|
|
34546
34546
|
metadata: s,
|
|
@@ -34548,7 +34548,7 @@ RobotServiceClient.prototype.transformPose = function t(e, s, n) {
|
|
|
34548
34548
|
debug: this.options.debug,
|
|
34549
34549
|
onEnd: function(g) {
|
|
34550
34550
|
if (n)
|
|
34551
|
-
if (g.status !== grpc$
|
|
34551
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34552
34552
|
var p = new Error(g.statusMessage);
|
|
34553
34553
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34554
34554
|
} else
|
|
@@ -34563,7 +34563,7 @@ RobotServiceClient.prototype.transformPose = function t(e, s, n) {
|
|
|
34563
34563
|
};
|
|
34564
34564
|
RobotServiceClient.prototype.transformPCD = function t(e, s, n) {
|
|
34565
34565
|
arguments.length === 2 && (n = arguments[1]);
|
|
34566
|
-
var u = grpc$
|
|
34566
|
+
var u = grpc$8.unary(RobotService.TransformPCD, {
|
|
34567
34567
|
request: e,
|
|
34568
34568
|
host: this.serviceHost,
|
|
34569
34569
|
metadata: s,
|
|
@@ -34571,7 +34571,7 @@ RobotServiceClient.prototype.transformPCD = function t(e, s, n) {
|
|
|
34571
34571
|
debug: this.options.debug,
|
|
34572
34572
|
onEnd: function(g) {
|
|
34573
34573
|
if (n)
|
|
34574
|
-
if (g.status !== grpc$
|
|
34574
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34575
34575
|
var p = new Error(g.statusMessage);
|
|
34576
34576
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34577
34577
|
} else
|
|
@@ -34586,7 +34586,7 @@ RobotServiceClient.prototype.transformPCD = function t(e, s, n) {
|
|
|
34586
34586
|
};
|
|
34587
34587
|
RobotServiceClient.prototype.getStatus = function t(e, s, n) {
|
|
34588
34588
|
arguments.length === 2 && (n = arguments[1]);
|
|
34589
|
-
var u = grpc$
|
|
34589
|
+
var u = grpc$8.unary(RobotService.GetStatus, {
|
|
34590
34590
|
request: e,
|
|
34591
34591
|
host: this.serviceHost,
|
|
34592
34592
|
metadata: s,
|
|
@@ -34594,7 +34594,7 @@ RobotServiceClient.prototype.getStatus = function t(e, s, n) {
|
|
|
34594
34594
|
debug: this.options.debug,
|
|
34595
34595
|
onEnd: function(g) {
|
|
34596
34596
|
if (n)
|
|
34597
|
-
if (g.status !== grpc$
|
|
34597
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34598
34598
|
var p = new Error(g.statusMessage);
|
|
34599
34599
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34600
34600
|
} else
|
|
@@ -34612,7 +34612,7 @@ RobotServiceClient.prototype.streamStatus = function t(e, s) {
|
|
|
34612
34612
|
data: [],
|
|
34613
34613
|
end: [],
|
|
34614
34614
|
status: []
|
|
34615
|
-
}, u = grpc$
|
|
34615
|
+
}, u = grpc$8.invoke(RobotService.StreamStatus, {
|
|
34616
34616
|
request: e,
|
|
34617
34617
|
host: this.serviceHost,
|
|
34618
34618
|
metadata: s,
|
|
@@ -34642,7 +34642,7 @@ RobotServiceClient.prototype.streamStatus = function t(e, s) {
|
|
|
34642
34642
|
};
|
|
34643
34643
|
RobotServiceClient.prototype.stopAll = function t(e, s, n) {
|
|
34644
34644
|
arguments.length === 2 && (n = arguments[1]);
|
|
34645
|
-
var u = grpc$
|
|
34645
|
+
var u = grpc$8.unary(RobotService.StopAll, {
|
|
34646
34646
|
request: e,
|
|
34647
34647
|
host: this.serviceHost,
|
|
34648
34648
|
metadata: s,
|
|
@@ -34650,7 +34650,7 @@ RobotServiceClient.prototype.stopAll = function t(e, s, n) {
|
|
|
34650
34650
|
debug: this.options.debug,
|
|
34651
34651
|
onEnd: function(g) {
|
|
34652
34652
|
if (n)
|
|
34653
|
-
if (g.status !== grpc$
|
|
34653
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34654
34654
|
var p = new Error(g.statusMessage);
|
|
34655
34655
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34656
34656
|
} else
|
|
@@ -34665,7 +34665,7 @@ RobotServiceClient.prototype.stopAll = function t(e, s, n) {
|
|
|
34665
34665
|
};
|
|
34666
34666
|
RobotServiceClient.prototype.startSession = function t(e, s, n) {
|
|
34667
34667
|
arguments.length === 2 && (n = arguments[1]);
|
|
34668
|
-
var u = grpc$
|
|
34668
|
+
var u = grpc$8.unary(RobotService.StartSession, {
|
|
34669
34669
|
request: e,
|
|
34670
34670
|
host: this.serviceHost,
|
|
34671
34671
|
metadata: s,
|
|
@@ -34673,7 +34673,7 @@ RobotServiceClient.prototype.startSession = function t(e, s, n) {
|
|
|
34673
34673
|
debug: this.options.debug,
|
|
34674
34674
|
onEnd: function(g) {
|
|
34675
34675
|
if (n)
|
|
34676
|
-
if (g.status !== grpc$
|
|
34676
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34677
34677
|
var p = new Error(g.statusMessage);
|
|
34678
34678
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34679
34679
|
} else
|
|
@@ -34688,7 +34688,7 @@ RobotServiceClient.prototype.startSession = function t(e, s, n) {
|
|
|
34688
34688
|
};
|
|
34689
34689
|
RobotServiceClient.prototype.sendSessionHeartbeat = function t(e, s, n) {
|
|
34690
34690
|
arguments.length === 2 && (n = arguments[1]);
|
|
34691
|
-
var u = grpc$
|
|
34691
|
+
var u = grpc$8.unary(RobotService.SendSessionHeartbeat, {
|
|
34692
34692
|
request: e,
|
|
34693
34693
|
host: this.serviceHost,
|
|
34694
34694
|
metadata: s,
|
|
@@ -34696,7 +34696,7 @@ RobotServiceClient.prototype.sendSessionHeartbeat = function t(e, s, n) {
|
|
|
34696
34696
|
debug: this.options.debug,
|
|
34697
34697
|
onEnd: function(g) {
|
|
34698
34698
|
if (n)
|
|
34699
|
-
if (g.status !== grpc$
|
|
34699
|
+
if (g.status !== grpc$8.Code.OK) {
|
|
34700
34700
|
var p = new Error(g.statusMessage);
|
|
34701
34701
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
34702
34702
|
} else
|
|
@@ -35058,7 +35058,7 @@ var RobotServiceClient_1 = RobotServiceClient, slam_pb = {};
|
|
|
35058
35058
|
return e.Message.setProto3BytesField(this, 1, o);
|
|
35059
35059
|
}, s.object.extend(t, proto.viam.service.slam.v1);
|
|
35060
35060
|
})(slam_pb);
|
|
35061
|
-
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() {
|
|
35062
35062
|
function t() {
|
|
35063
35063
|
}
|
|
35064
35064
|
return t.serviceName = "viam.service.slam.v1.SLAMService", t;
|
|
@@ -35092,15 +35092,15 @@ SLAMService.DoCommand = {
|
|
|
35092
35092
|
service: SLAMService,
|
|
35093
35093
|
requestStream: !1,
|
|
35094
35094
|
responseStream: !1,
|
|
35095
|
-
requestType: common_v1_common_pb$
|
|
35096
|
-
responseType: common_v1_common_pb$
|
|
35095
|
+
requestType: common_v1_common_pb$6.DoCommandRequest,
|
|
35096
|
+
responseType: common_v1_common_pb$6.DoCommandResponse
|
|
35097
35097
|
};
|
|
35098
35098
|
function SLAMServiceClient(t, e) {
|
|
35099
35099
|
this.serviceHost = t, this.options = e || {};
|
|
35100
35100
|
}
|
|
35101
35101
|
SLAMServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
35102
35102
|
arguments.length === 2 && (n = arguments[1]);
|
|
35103
|
-
var u = grpc$
|
|
35103
|
+
var u = grpc$7.unary(SLAMService.GetPosition, {
|
|
35104
35104
|
request: e,
|
|
35105
35105
|
host: this.serviceHost,
|
|
35106
35106
|
metadata: s,
|
|
@@ -35108,7 +35108,7 @@ SLAMServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
35108
35108
|
debug: this.options.debug,
|
|
35109
35109
|
onEnd: function(g) {
|
|
35110
35110
|
if (n)
|
|
35111
|
-
if (g.status !== grpc$
|
|
35111
|
+
if (g.status !== grpc$7.Code.OK) {
|
|
35112
35112
|
var p = new Error(g.statusMessage);
|
|
35113
35113
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
35114
35114
|
} else
|
|
@@ -35126,7 +35126,7 @@ SLAMServiceClient.prototype.getPointCloudMap = function t(e, s) {
|
|
|
35126
35126
|
data: [],
|
|
35127
35127
|
end: [],
|
|
35128
35128
|
status: []
|
|
35129
|
-
}, u = grpc$
|
|
35129
|
+
}, u = grpc$7.invoke(SLAMService.GetPointCloudMap, {
|
|
35130
35130
|
request: e,
|
|
35131
35131
|
host: this.serviceHost,
|
|
35132
35132
|
metadata: s,
|
|
@@ -35159,7 +35159,7 @@ SLAMServiceClient.prototype.getInternalState = function t(e, s) {
|
|
|
35159
35159
|
data: [],
|
|
35160
35160
|
end: [],
|
|
35161
35161
|
status: []
|
|
35162
|
-
}, u = grpc$
|
|
35162
|
+
}, u = grpc$7.invoke(SLAMService.GetInternalState, {
|
|
35163
35163
|
request: e,
|
|
35164
35164
|
host: this.serviceHost,
|
|
35165
35165
|
metadata: s,
|
|
@@ -35189,7 +35189,7 @@ SLAMServiceClient.prototype.getInternalState = function t(e, s) {
|
|
|
35189
35189
|
};
|
|
35190
35190
|
SLAMServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
35191
35191
|
arguments.length === 2 && (n = arguments[1]);
|
|
35192
|
-
var u = grpc$
|
|
35192
|
+
var u = grpc$7.unary(SLAMService.DoCommand, {
|
|
35193
35193
|
request: e,
|
|
35194
35194
|
host: this.serviceHost,
|
|
35195
35195
|
metadata: s,
|
|
@@ -35197,7 +35197,7 @@ SLAMServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
35197
35197
|
debug: this.options.debug,
|
|
35198
35198
|
onEnd: function(g) {
|
|
35199
35199
|
if (n)
|
|
35200
|
-
if (g.status !== grpc$
|
|
35200
|
+
if (g.status !== grpc$7.Code.OK) {
|
|
35201
35201
|
var p = new Error(g.statusMessage);
|
|
35202
35202
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
35203
35203
|
} else
|
|
@@ -35543,7 +35543,7 @@ var SLAMServiceClient_1 = SLAMServiceClient, sensors_pb = {};
|
|
|
35543
35543
|
return this.setReadingsList([]);
|
|
35544
35544
|
}, s.object.extend(t, proto.viam.service.sensors.v1);
|
|
35545
35545
|
})(sensors_pb);
|
|
35546
|
-
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() {
|
|
35547
35547
|
function t() {
|
|
35548
35548
|
}
|
|
35549
35549
|
return t.serviceName = "viam.service.sensors.v1.SensorsService", t;
|
|
@@ -35569,15 +35569,15 @@ SensorsService.DoCommand = {
|
|
|
35569
35569
|
service: SensorsService,
|
|
35570
35570
|
requestStream: !1,
|
|
35571
35571
|
responseStream: !1,
|
|
35572
|
-
requestType: common_v1_common_pb$
|
|
35573
|
-
responseType: common_v1_common_pb$
|
|
35572
|
+
requestType: common_v1_common_pb$5.DoCommandRequest,
|
|
35573
|
+
responseType: common_v1_common_pb$5.DoCommandResponse
|
|
35574
35574
|
};
|
|
35575
35575
|
function SensorsServiceClient(t, e) {
|
|
35576
35576
|
this.serviceHost = t, this.options = e || {};
|
|
35577
35577
|
}
|
|
35578
35578
|
SensorsServiceClient.prototype.getSensors = function t(e, s, n) {
|
|
35579
35579
|
arguments.length === 2 && (n = arguments[1]);
|
|
35580
|
-
var u = grpc$
|
|
35580
|
+
var u = grpc$6.unary(SensorsService.GetSensors, {
|
|
35581
35581
|
request: e,
|
|
35582
35582
|
host: this.serviceHost,
|
|
35583
35583
|
metadata: s,
|
|
@@ -35585,7 +35585,7 @@ SensorsServiceClient.prototype.getSensors = function t(e, s, n) {
|
|
|
35585
35585
|
debug: this.options.debug,
|
|
35586
35586
|
onEnd: function(g) {
|
|
35587
35587
|
if (n)
|
|
35588
|
-
if (g.status !== grpc$
|
|
35588
|
+
if (g.status !== grpc$6.Code.OK) {
|
|
35589
35589
|
var p = new Error(g.statusMessage);
|
|
35590
35590
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
35591
35591
|
} else
|
|
@@ -35600,7 +35600,7 @@ SensorsServiceClient.prototype.getSensors = function t(e, s, n) {
|
|
|
35600
35600
|
};
|
|
35601
35601
|
SensorsServiceClient.prototype.getReadings = function t(e, s, n) {
|
|
35602
35602
|
arguments.length === 2 && (n = arguments[1]);
|
|
35603
|
-
var u = grpc$
|
|
35603
|
+
var u = grpc$6.unary(SensorsService.GetReadings, {
|
|
35604
35604
|
request: e,
|
|
35605
35605
|
host: this.serviceHost,
|
|
35606
35606
|
metadata: s,
|
|
@@ -35608,7 +35608,7 @@ SensorsServiceClient.prototype.getReadings = function t(e, s, n) {
|
|
|
35608
35608
|
debug: this.options.debug,
|
|
35609
35609
|
onEnd: function(g) {
|
|
35610
35610
|
if (n)
|
|
35611
|
-
if (g.status !== grpc$
|
|
35611
|
+
if (g.status !== grpc$6.Code.OK) {
|
|
35612
35612
|
var p = new Error(g.statusMessage);
|
|
35613
35613
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
35614
35614
|
} else
|
|
@@ -35623,7 +35623,7 @@ SensorsServiceClient.prototype.getReadings = function t(e, s, n) {
|
|
|
35623
35623
|
};
|
|
35624
35624
|
SensorsServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
35625
35625
|
arguments.length === 2 && (n = arguments[1]);
|
|
35626
|
-
var u = grpc$
|
|
35626
|
+
var u = grpc$6.unary(SensorsService.DoCommand, {
|
|
35627
35627
|
request: e,
|
|
35628
35628
|
host: this.serviceHost,
|
|
35629
35629
|
metadata: s,
|
|
@@ -35631,7 +35631,7 @@ SensorsServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
35631
35631
|
debug: this.options.debug,
|
|
35632
35632
|
onEnd: function(g) {
|
|
35633
35633
|
if (n)
|
|
35634
|
-
if (g.status !== grpc$
|
|
35634
|
+
if (g.status !== grpc$6.Code.OK) {
|
|
35635
35635
|
var p = new Error(g.statusMessage);
|
|
35636
35636
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
35637
35637
|
} else
|
|
@@ -36114,7 +36114,7 @@ var SensorsServiceClient_1 = SensorsServiceClient, servo_pb = {};
|
|
|
36114
36114
|
return e.Message.setProto3BooleanField(this, 1, o);
|
|
36115
36115
|
}, s.object.extend(t, proto.viam.component.servo.v1);
|
|
36116
36116
|
})(servo_pb);
|
|
36117
|
-
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() {
|
|
36118
36118
|
function t() {
|
|
36119
36119
|
}
|
|
36120
36120
|
return t.serviceName = "viam.component.servo.v1.ServoService", t;
|
|
@@ -36156,15 +36156,15 @@ ServoService.DoCommand = {
|
|
|
36156
36156
|
service: ServoService,
|
|
36157
36157
|
requestStream: !1,
|
|
36158
36158
|
responseStream: !1,
|
|
36159
|
-
requestType: common_v1_common_pb$
|
|
36160
|
-
responseType: common_v1_common_pb$
|
|
36159
|
+
requestType: common_v1_common_pb$4.DoCommandRequest,
|
|
36160
|
+
responseType: common_v1_common_pb$4.DoCommandResponse
|
|
36161
36161
|
};
|
|
36162
36162
|
function ServoServiceClient(t, e) {
|
|
36163
36163
|
this.serviceHost = t, this.options = e || {};
|
|
36164
36164
|
}
|
|
36165
36165
|
ServoServiceClient.prototype.move = function t(e, s, n) {
|
|
36166
36166
|
arguments.length === 2 && (n = arguments[1]);
|
|
36167
|
-
var u = grpc$
|
|
36167
|
+
var u = grpc$5.unary(ServoService.Move, {
|
|
36168
36168
|
request: e,
|
|
36169
36169
|
host: this.serviceHost,
|
|
36170
36170
|
metadata: s,
|
|
@@ -36172,7 +36172,7 @@ ServoServiceClient.prototype.move = function t(e, s, n) {
|
|
|
36172
36172
|
debug: this.options.debug,
|
|
36173
36173
|
onEnd: function(g) {
|
|
36174
36174
|
if (n)
|
|
36175
|
-
if (g.status !== grpc$
|
|
36175
|
+
if (g.status !== grpc$5.Code.OK) {
|
|
36176
36176
|
var p = new Error(g.statusMessage);
|
|
36177
36177
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
36178
36178
|
} else
|
|
@@ -36187,7 +36187,7 @@ ServoServiceClient.prototype.move = function t(e, s, n) {
|
|
|
36187
36187
|
};
|
|
36188
36188
|
ServoServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
36189
36189
|
arguments.length === 2 && (n = arguments[1]);
|
|
36190
|
-
var u = grpc$
|
|
36190
|
+
var u = grpc$5.unary(ServoService.GetPosition, {
|
|
36191
36191
|
request: e,
|
|
36192
36192
|
host: this.serviceHost,
|
|
36193
36193
|
metadata: s,
|
|
@@ -36195,7 +36195,7 @@ ServoServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
36195
36195
|
debug: this.options.debug,
|
|
36196
36196
|
onEnd: function(g) {
|
|
36197
36197
|
if (n)
|
|
36198
|
-
if (g.status !== grpc$
|
|
36198
|
+
if (g.status !== grpc$5.Code.OK) {
|
|
36199
36199
|
var p = new Error(g.statusMessage);
|
|
36200
36200
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
36201
36201
|
} else
|
|
@@ -36210,7 +36210,7 @@ ServoServiceClient.prototype.getPosition = function t(e, s, n) {
|
|
|
36210
36210
|
};
|
|
36211
36211
|
ServoServiceClient.prototype.stop = function t(e, s, n) {
|
|
36212
36212
|
arguments.length === 2 && (n = arguments[1]);
|
|
36213
|
-
var u = grpc$
|
|
36213
|
+
var u = grpc$5.unary(ServoService.Stop, {
|
|
36214
36214
|
request: e,
|
|
36215
36215
|
host: this.serviceHost,
|
|
36216
36216
|
metadata: s,
|
|
@@ -36218,7 +36218,7 @@ ServoServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
36218
36218
|
debug: this.options.debug,
|
|
36219
36219
|
onEnd: function(g) {
|
|
36220
36220
|
if (n)
|
|
36221
|
-
if (g.status !== grpc$
|
|
36221
|
+
if (g.status !== grpc$5.Code.OK) {
|
|
36222
36222
|
var p = new Error(g.statusMessage);
|
|
36223
36223
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
36224
36224
|
} else
|
|
@@ -36233,7 +36233,7 @@ ServoServiceClient.prototype.stop = function t(e, s, n) {
|
|
|
36233
36233
|
};
|
|
36234
36234
|
ServoServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
36235
36235
|
arguments.length === 2 && (n = arguments[1]);
|
|
36236
|
-
var u = grpc$
|
|
36236
|
+
var u = grpc$5.unary(ServoService.IsMoving, {
|
|
36237
36237
|
request: e,
|
|
36238
36238
|
host: this.serviceHost,
|
|
36239
36239
|
metadata: s,
|
|
@@ -36241,7 +36241,7 @@ ServoServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
36241
36241
|
debug: this.options.debug,
|
|
36242
36242
|
onEnd: function(g) {
|
|
36243
36243
|
if (n)
|
|
36244
|
-
if (g.status !== grpc$
|
|
36244
|
+
if (g.status !== grpc$5.Code.OK) {
|
|
36245
36245
|
var p = new Error(g.statusMessage);
|
|
36246
36246
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
36247
36247
|
} else
|
|
@@ -36256,7 +36256,7 @@ ServoServiceClient.prototype.isMoving = function t(e, s, n) {
|
|
|
36256
36256
|
};
|
|
36257
36257
|
ServoServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
36258
36258
|
arguments.length === 2 && (n = arguments[1]);
|
|
36259
|
-
var u = grpc$
|
|
36259
|
+
var u = grpc$5.unary(ServoService.DoCommand, {
|
|
36260
36260
|
request: e,
|
|
36261
36261
|
host: this.serviceHost,
|
|
36262
36262
|
metadata: s,
|
|
@@ -36264,7 +36264,7 @@ ServoServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
36264
36264
|
debug: this.options.debug,
|
|
36265
36265
|
onEnd: function(g) {
|
|
36266
36266
|
if (n)
|
|
36267
|
-
if (g.status !== grpc$
|
|
36267
|
+
if (g.status !== grpc$5.Code.OK) {
|
|
36268
36268
|
var p = new Error(g.statusMessage);
|
|
36269
36269
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
36270
36270
|
} else
|
|
@@ -38869,7 +38869,7 @@ var vision_pb = {};
|
|
|
38869
38869
|
return this.setObjectsList([]);
|
|
38870
38870
|
}, s.object.extend(t, proto.viam.service.vision.v1);
|
|
38871
38871
|
})(vision_pb);
|
|
38872
|
-
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() {
|
|
38873
38873
|
function t() {
|
|
38874
38874
|
}
|
|
38875
38875
|
return t.serviceName = "viam.service.vision.v1.VisionService", t;
|
|
@@ -38999,15 +38999,15 @@ VisionService.DoCommand = {
|
|
|
38999
38999
|
service: VisionService,
|
|
39000
39000
|
requestStream: !1,
|
|
39001
39001
|
responseStream: !1,
|
|
39002
|
-
requestType: common_v1_common_pb$
|
|
39003
|
-
responseType: common_v1_common_pb$
|
|
39002
|
+
requestType: common_v1_common_pb$3.DoCommandRequest,
|
|
39003
|
+
responseType: common_v1_common_pb$3.DoCommandResponse
|
|
39004
39004
|
};
|
|
39005
39005
|
function VisionServiceClient(t, e) {
|
|
39006
39006
|
this.serviceHost = t, this.options = e || {};
|
|
39007
39007
|
}
|
|
39008
39008
|
VisionServiceClient.prototype.getModelParameterSchema = function t(e, s, n) {
|
|
39009
39009
|
arguments.length === 2 && (n = arguments[1]);
|
|
39010
|
-
var u = grpc$
|
|
39010
|
+
var u = grpc$4.unary(VisionService.GetModelParameterSchema, {
|
|
39011
39011
|
request: e,
|
|
39012
39012
|
host: this.serviceHost,
|
|
39013
39013
|
metadata: s,
|
|
@@ -39015,7 +39015,7 @@ VisionServiceClient.prototype.getModelParameterSchema = function t(e, s, n) {
|
|
|
39015
39015
|
debug: this.options.debug,
|
|
39016
39016
|
onEnd: function(g) {
|
|
39017
39017
|
if (n)
|
|
39018
|
-
if (g.status !== grpc$
|
|
39018
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39019
39019
|
var p = new Error(g.statusMessage);
|
|
39020
39020
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39021
39021
|
} else
|
|
@@ -39030,7 +39030,7 @@ VisionServiceClient.prototype.getModelParameterSchema = function t(e, s, n) {
|
|
|
39030
39030
|
};
|
|
39031
39031
|
VisionServiceClient.prototype.getDetectorNames = function t(e, s, n) {
|
|
39032
39032
|
arguments.length === 2 && (n = arguments[1]);
|
|
39033
|
-
var u = grpc$
|
|
39033
|
+
var u = grpc$4.unary(VisionService.GetDetectorNames, {
|
|
39034
39034
|
request: e,
|
|
39035
39035
|
host: this.serviceHost,
|
|
39036
39036
|
metadata: s,
|
|
@@ -39038,7 +39038,7 @@ VisionServiceClient.prototype.getDetectorNames = function t(e, s, n) {
|
|
|
39038
39038
|
debug: this.options.debug,
|
|
39039
39039
|
onEnd: function(g) {
|
|
39040
39040
|
if (n)
|
|
39041
|
-
if (g.status !== grpc$
|
|
39041
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39042
39042
|
var p = new Error(g.statusMessage);
|
|
39043
39043
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39044
39044
|
} else
|
|
@@ -39053,7 +39053,7 @@ VisionServiceClient.prototype.getDetectorNames = function t(e, s, n) {
|
|
|
39053
39053
|
};
|
|
39054
39054
|
VisionServiceClient.prototype.addDetector = function t(e, s, n) {
|
|
39055
39055
|
arguments.length === 2 && (n = arguments[1]);
|
|
39056
|
-
var u = grpc$
|
|
39056
|
+
var u = grpc$4.unary(VisionService.AddDetector, {
|
|
39057
39057
|
request: e,
|
|
39058
39058
|
host: this.serviceHost,
|
|
39059
39059
|
metadata: s,
|
|
@@ -39061,7 +39061,7 @@ VisionServiceClient.prototype.addDetector = function t(e, s, n) {
|
|
|
39061
39061
|
debug: this.options.debug,
|
|
39062
39062
|
onEnd: function(g) {
|
|
39063
39063
|
if (n)
|
|
39064
|
-
if (g.status !== grpc$
|
|
39064
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39065
39065
|
var p = new Error(g.statusMessage);
|
|
39066
39066
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39067
39067
|
} else
|
|
@@ -39076,7 +39076,7 @@ VisionServiceClient.prototype.addDetector = function t(e, s, n) {
|
|
|
39076
39076
|
};
|
|
39077
39077
|
VisionServiceClient.prototype.removeDetector = function t(e, s, n) {
|
|
39078
39078
|
arguments.length === 2 && (n = arguments[1]);
|
|
39079
|
-
var u = grpc$
|
|
39079
|
+
var u = grpc$4.unary(VisionService.RemoveDetector, {
|
|
39080
39080
|
request: e,
|
|
39081
39081
|
host: this.serviceHost,
|
|
39082
39082
|
metadata: s,
|
|
@@ -39084,7 +39084,7 @@ VisionServiceClient.prototype.removeDetector = function t(e, s, n) {
|
|
|
39084
39084
|
debug: this.options.debug,
|
|
39085
39085
|
onEnd: function(g) {
|
|
39086
39086
|
if (n)
|
|
39087
|
-
if (g.status !== grpc$
|
|
39087
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39088
39088
|
var p = new Error(g.statusMessage);
|
|
39089
39089
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39090
39090
|
} else
|
|
@@ -39099,7 +39099,7 @@ VisionServiceClient.prototype.removeDetector = function t(e, s, n) {
|
|
|
39099
39099
|
};
|
|
39100
39100
|
VisionServiceClient.prototype.getDetectionsFromCamera = function t(e, s, n) {
|
|
39101
39101
|
arguments.length === 2 && (n = arguments[1]);
|
|
39102
|
-
var u = grpc$
|
|
39102
|
+
var u = grpc$4.unary(VisionService.GetDetectionsFromCamera, {
|
|
39103
39103
|
request: e,
|
|
39104
39104
|
host: this.serviceHost,
|
|
39105
39105
|
metadata: s,
|
|
@@ -39107,7 +39107,7 @@ VisionServiceClient.prototype.getDetectionsFromCamera = function t(e, s, n) {
|
|
|
39107
39107
|
debug: this.options.debug,
|
|
39108
39108
|
onEnd: function(g) {
|
|
39109
39109
|
if (n)
|
|
39110
|
-
if (g.status !== grpc$
|
|
39110
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39111
39111
|
var p = new Error(g.statusMessage);
|
|
39112
39112
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39113
39113
|
} else
|
|
@@ -39122,7 +39122,7 @@ VisionServiceClient.prototype.getDetectionsFromCamera = function t(e, s, n) {
|
|
|
39122
39122
|
};
|
|
39123
39123
|
VisionServiceClient.prototype.getDetections = function t(e, s, n) {
|
|
39124
39124
|
arguments.length === 2 && (n = arguments[1]);
|
|
39125
|
-
var u = grpc$
|
|
39125
|
+
var u = grpc$4.unary(VisionService.GetDetections, {
|
|
39126
39126
|
request: e,
|
|
39127
39127
|
host: this.serviceHost,
|
|
39128
39128
|
metadata: s,
|
|
@@ -39130,7 +39130,7 @@ VisionServiceClient.prototype.getDetections = function t(e, s, n) {
|
|
|
39130
39130
|
debug: this.options.debug,
|
|
39131
39131
|
onEnd: function(g) {
|
|
39132
39132
|
if (n)
|
|
39133
|
-
if (g.status !== grpc$
|
|
39133
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39134
39134
|
var p = new Error(g.statusMessage);
|
|
39135
39135
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39136
39136
|
} else
|
|
@@ -39145,7 +39145,7 @@ VisionServiceClient.prototype.getDetections = function t(e, s, n) {
|
|
|
39145
39145
|
};
|
|
39146
39146
|
VisionServiceClient.prototype.getClassifierNames = function t(e, s, n) {
|
|
39147
39147
|
arguments.length === 2 && (n = arguments[1]);
|
|
39148
|
-
var u = grpc$
|
|
39148
|
+
var u = grpc$4.unary(VisionService.GetClassifierNames, {
|
|
39149
39149
|
request: e,
|
|
39150
39150
|
host: this.serviceHost,
|
|
39151
39151
|
metadata: s,
|
|
@@ -39153,7 +39153,7 @@ VisionServiceClient.prototype.getClassifierNames = function t(e, s, n) {
|
|
|
39153
39153
|
debug: this.options.debug,
|
|
39154
39154
|
onEnd: function(g) {
|
|
39155
39155
|
if (n)
|
|
39156
|
-
if (g.status !== grpc$
|
|
39156
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39157
39157
|
var p = new Error(g.statusMessage);
|
|
39158
39158
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39159
39159
|
} else
|
|
@@ -39168,7 +39168,7 @@ VisionServiceClient.prototype.getClassifierNames = function t(e, s, n) {
|
|
|
39168
39168
|
};
|
|
39169
39169
|
VisionServiceClient.prototype.addClassifier = function t(e, s, n) {
|
|
39170
39170
|
arguments.length === 2 && (n = arguments[1]);
|
|
39171
|
-
var u = grpc$
|
|
39171
|
+
var u = grpc$4.unary(VisionService.AddClassifier, {
|
|
39172
39172
|
request: e,
|
|
39173
39173
|
host: this.serviceHost,
|
|
39174
39174
|
metadata: s,
|
|
@@ -39176,7 +39176,7 @@ VisionServiceClient.prototype.addClassifier = function t(e, s, n) {
|
|
|
39176
39176
|
debug: this.options.debug,
|
|
39177
39177
|
onEnd: function(g) {
|
|
39178
39178
|
if (n)
|
|
39179
|
-
if (g.status !== grpc$
|
|
39179
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39180
39180
|
var p = new Error(g.statusMessage);
|
|
39181
39181
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39182
39182
|
} else
|
|
@@ -39191,7 +39191,7 @@ VisionServiceClient.prototype.addClassifier = function t(e, s, n) {
|
|
|
39191
39191
|
};
|
|
39192
39192
|
VisionServiceClient.prototype.removeClassifier = function t(e, s, n) {
|
|
39193
39193
|
arguments.length === 2 && (n = arguments[1]);
|
|
39194
|
-
var u = grpc$
|
|
39194
|
+
var u = grpc$4.unary(VisionService.RemoveClassifier, {
|
|
39195
39195
|
request: e,
|
|
39196
39196
|
host: this.serviceHost,
|
|
39197
39197
|
metadata: s,
|
|
@@ -39199,7 +39199,7 @@ VisionServiceClient.prototype.removeClassifier = function t(e, s, n) {
|
|
|
39199
39199
|
debug: this.options.debug,
|
|
39200
39200
|
onEnd: function(g) {
|
|
39201
39201
|
if (n)
|
|
39202
|
-
if (g.status !== grpc$
|
|
39202
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39203
39203
|
var p = new Error(g.statusMessage);
|
|
39204
39204
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39205
39205
|
} else
|
|
@@ -39214,7 +39214,7 @@ VisionServiceClient.prototype.removeClassifier = function t(e, s, n) {
|
|
|
39214
39214
|
};
|
|
39215
39215
|
VisionServiceClient.prototype.getClassificationsFromCamera = function t(e, s, n) {
|
|
39216
39216
|
arguments.length === 2 && (n = arguments[1]);
|
|
39217
|
-
var u = grpc$
|
|
39217
|
+
var u = grpc$4.unary(VisionService.GetClassificationsFromCamera, {
|
|
39218
39218
|
request: e,
|
|
39219
39219
|
host: this.serviceHost,
|
|
39220
39220
|
metadata: s,
|
|
@@ -39222,7 +39222,7 @@ VisionServiceClient.prototype.getClassificationsFromCamera = function t(e, s, n)
|
|
|
39222
39222
|
debug: this.options.debug,
|
|
39223
39223
|
onEnd: function(g) {
|
|
39224
39224
|
if (n)
|
|
39225
|
-
if (g.status !== grpc$
|
|
39225
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39226
39226
|
var p = new Error(g.statusMessage);
|
|
39227
39227
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39228
39228
|
} else
|
|
@@ -39237,7 +39237,7 @@ VisionServiceClient.prototype.getClassificationsFromCamera = function t(e, s, n)
|
|
|
39237
39237
|
};
|
|
39238
39238
|
VisionServiceClient.prototype.getClassifications = function t(e, s, n) {
|
|
39239
39239
|
arguments.length === 2 && (n = arguments[1]);
|
|
39240
|
-
var u = grpc$
|
|
39240
|
+
var u = grpc$4.unary(VisionService.GetClassifications, {
|
|
39241
39241
|
request: e,
|
|
39242
39242
|
host: this.serviceHost,
|
|
39243
39243
|
metadata: s,
|
|
@@ -39245,7 +39245,7 @@ VisionServiceClient.prototype.getClassifications = function t(e, s, n) {
|
|
|
39245
39245
|
debug: this.options.debug,
|
|
39246
39246
|
onEnd: function(g) {
|
|
39247
39247
|
if (n)
|
|
39248
|
-
if (g.status !== grpc$
|
|
39248
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39249
39249
|
var p = new Error(g.statusMessage);
|
|
39250
39250
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39251
39251
|
} else
|
|
@@ -39260,7 +39260,7 @@ VisionServiceClient.prototype.getClassifications = function t(e, s, n) {
|
|
|
39260
39260
|
};
|
|
39261
39261
|
VisionServiceClient.prototype.getSegmenterNames = function t(e, s, n) {
|
|
39262
39262
|
arguments.length === 2 && (n = arguments[1]);
|
|
39263
|
-
var u = grpc$
|
|
39263
|
+
var u = grpc$4.unary(VisionService.GetSegmenterNames, {
|
|
39264
39264
|
request: e,
|
|
39265
39265
|
host: this.serviceHost,
|
|
39266
39266
|
metadata: s,
|
|
@@ -39268,7 +39268,7 @@ VisionServiceClient.prototype.getSegmenterNames = function t(e, s, n) {
|
|
|
39268
39268
|
debug: this.options.debug,
|
|
39269
39269
|
onEnd: function(g) {
|
|
39270
39270
|
if (n)
|
|
39271
|
-
if (g.status !== grpc$
|
|
39271
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39272
39272
|
var p = new Error(g.statusMessage);
|
|
39273
39273
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39274
39274
|
} else
|
|
@@ -39283,7 +39283,7 @@ VisionServiceClient.prototype.getSegmenterNames = function t(e, s, n) {
|
|
|
39283
39283
|
};
|
|
39284
39284
|
VisionServiceClient.prototype.addSegmenter = function t(e, s, n) {
|
|
39285
39285
|
arguments.length === 2 && (n = arguments[1]);
|
|
39286
|
-
var u = grpc$
|
|
39286
|
+
var u = grpc$4.unary(VisionService.AddSegmenter, {
|
|
39287
39287
|
request: e,
|
|
39288
39288
|
host: this.serviceHost,
|
|
39289
39289
|
metadata: s,
|
|
@@ -39291,7 +39291,7 @@ VisionServiceClient.prototype.addSegmenter = function t(e, s, n) {
|
|
|
39291
39291
|
debug: this.options.debug,
|
|
39292
39292
|
onEnd: function(g) {
|
|
39293
39293
|
if (n)
|
|
39294
|
-
if (g.status !== grpc$
|
|
39294
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39295
39295
|
var p = new Error(g.statusMessage);
|
|
39296
39296
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39297
39297
|
} else
|
|
@@ -39306,7 +39306,7 @@ VisionServiceClient.prototype.addSegmenter = function t(e, s, n) {
|
|
|
39306
39306
|
};
|
|
39307
39307
|
VisionServiceClient.prototype.removeSegmenter = function t(e, s, n) {
|
|
39308
39308
|
arguments.length === 2 && (n = arguments[1]);
|
|
39309
|
-
var u = grpc$
|
|
39309
|
+
var u = grpc$4.unary(VisionService.RemoveSegmenter, {
|
|
39310
39310
|
request: e,
|
|
39311
39311
|
host: this.serviceHost,
|
|
39312
39312
|
metadata: s,
|
|
@@ -39314,7 +39314,7 @@ VisionServiceClient.prototype.removeSegmenter = function t(e, s, n) {
|
|
|
39314
39314
|
debug: this.options.debug,
|
|
39315
39315
|
onEnd: function(g) {
|
|
39316
39316
|
if (n)
|
|
39317
|
-
if (g.status !== grpc$
|
|
39317
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39318
39318
|
var p = new Error(g.statusMessage);
|
|
39319
39319
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39320
39320
|
} else
|
|
@@ -39329,7 +39329,7 @@ VisionServiceClient.prototype.removeSegmenter = function t(e, s, n) {
|
|
|
39329
39329
|
};
|
|
39330
39330
|
VisionServiceClient.prototype.getObjectPointClouds = function t(e, s, n) {
|
|
39331
39331
|
arguments.length === 2 && (n = arguments[1]);
|
|
39332
|
-
var u = grpc$
|
|
39332
|
+
var u = grpc$4.unary(VisionService.GetObjectPointClouds, {
|
|
39333
39333
|
request: e,
|
|
39334
39334
|
host: this.serviceHost,
|
|
39335
39335
|
metadata: s,
|
|
@@ -39337,7 +39337,7 @@ VisionServiceClient.prototype.getObjectPointClouds = function t(e, s, n) {
|
|
|
39337
39337
|
debug: this.options.debug,
|
|
39338
39338
|
onEnd: function(g) {
|
|
39339
39339
|
if (n)
|
|
39340
|
-
if (g.status !== grpc$
|
|
39340
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39341
39341
|
var p = new Error(g.statusMessage);
|
|
39342
39342
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39343
39343
|
} else
|
|
@@ -39352,7 +39352,7 @@ VisionServiceClient.prototype.getObjectPointClouds = function t(e, s, n) {
|
|
|
39352
39352
|
};
|
|
39353
39353
|
VisionServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
39354
39354
|
arguments.length === 2 && (n = arguments[1]);
|
|
39355
|
-
var u = grpc$
|
|
39355
|
+
var u = grpc$4.unary(VisionService.DoCommand, {
|
|
39356
39356
|
request: e,
|
|
39357
39357
|
host: this.serviceHost,
|
|
39358
39358
|
metadata: s,
|
|
@@ -39360,7 +39360,7 @@ VisionServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
39360
39360
|
debug: this.options.debug,
|
|
39361
39361
|
onEnd: function(g) {
|
|
39362
39362
|
if (n)
|
|
39363
|
-
if (g.status !== grpc$
|
|
39363
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
39364
39364
|
var p = new Error(g.statusMessage);
|
|
39365
39365
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
39366
39366
|
} else
|
|
@@ -39829,6 +39829,13 @@ class BaseClient {
|
|
|
39829
39829
|
n
|
|
39830
39830
|
);
|
|
39831
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
|
+
}
|
|
39832
39839
|
}
|
|
39833
39840
|
class BoardClient {
|
|
39834
39841
|
client;
|
|
@@ -40662,7 +40669,9 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40662
40669
|
r.getPropertiesList(),
|
|
40663
40670
|
proto.viam.component.camera.v1.Property.toObject,
|
|
40664
40671
|
o
|
|
40665
|
-
)
|
|
40672
|
+
),
|
|
40673
|
+
name: e.Message.getFieldWithDefault(r, 4, ""),
|
|
40674
|
+
id: e.Message.getFieldWithDefault(r, 5, "")
|
|
40666
40675
|
};
|
|
40667
40676
|
return o && (i.$jspbMessageInstance = r), i;
|
|
40668
40677
|
}), proto.viam.component.camera.v1.Webcam.deserializeBinary = function(o) {
|
|
@@ -40690,6 +40699,20 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40690
40699
|
var l = new proto.viam.component.camera.v1.Property();
|
|
40691
40700
|
r.readMessage(l, proto.viam.component.camera.v1.Property.deserializeBinaryFromReader), o.addProperties(l);
|
|
40692
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;
|
|
40693
40716
|
default:
|
|
40694
40717
|
r.skipField();
|
|
40695
40718
|
break;
|
|
@@ -40711,6 +40734,12 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40711
40734
|
3,
|
|
40712
40735
|
i,
|
|
40713
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
|
|
40714
40743
|
);
|
|
40715
40744
|
}, proto.viam.component.camera.v1.Webcam.prototype.getLabel = function() {
|
|
40716
40745
|
return (
|
|
@@ -40737,6 +40766,20 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40737
40766
|
return e.Message.addToRepeatedWrapperField(this, 3, o, proto.viam.component.camera.v1.Property, r);
|
|
40738
40767
|
}, proto.viam.component.camera.v1.Webcam.prototype.clearPropertiesList = function() {
|
|
40739
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);
|
|
40740
40783
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.camera.v1.Property.prototype.toObject = function(o) {
|
|
40741
40784
|
return proto.viam.component.camera.v1.Property.toObject(o, this);
|
|
40742
40785
|
}, proto.viam.component.camera.v1.Property.toObject = function(o, r) {
|
|
@@ -41016,7 +41059,7 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
41016
41059
|
return this.setParametersList([]);
|
|
41017
41060
|
}, s.object.extend(t, proto.viam.component.camera.v1);
|
|
41018
41061
|
})(camera_pb);
|
|
41019
|
-
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() {
|
|
41020
41063
|
function t() {
|
|
41021
41064
|
}
|
|
41022
41065
|
return t.serviceName = "viam.component.camera.v1.CameraService", t;
|
|
@@ -41058,15 +41101,15 @@ CameraService.DoCommand = {
|
|
|
41058
41101
|
service: CameraService,
|
|
41059
41102
|
requestStream: !1,
|
|
41060
41103
|
responseStream: !1,
|
|
41061
|
-
requestType: common_v1_common_pb$
|
|
41062
|
-
responseType: common_v1_common_pb$
|
|
41104
|
+
requestType: common_v1_common_pb$2.DoCommandRequest,
|
|
41105
|
+
responseType: common_v1_common_pb$2.DoCommandResponse
|
|
41063
41106
|
};
|
|
41064
41107
|
function CameraServiceClient(t, e) {
|
|
41065
41108
|
this.serviceHost = t, this.options = e || {};
|
|
41066
41109
|
}
|
|
41067
41110
|
CameraServiceClient.prototype.getImage = function t(e, s, n) {
|
|
41068
41111
|
arguments.length === 2 && (n = arguments[1]);
|
|
41069
|
-
var u = grpc$
|
|
41112
|
+
var u = grpc$3.unary(CameraService.GetImage, {
|
|
41070
41113
|
request: e,
|
|
41071
41114
|
host: this.serviceHost,
|
|
41072
41115
|
metadata: s,
|
|
@@ -41074,7 +41117,7 @@ CameraServiceClient.prototype.getImage = function t(e, s, n) {
|
|
|
41074
41117
|
debug: this.options.debug,
|
|
41075
41118
|
onEnd: function(g) {
|
|
41076
41119
|
if (n)
|
|
41077
|
-
if (g.status !== grpc$
|
|
41120
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
41078
41121
|
var p = new Error(g.statusMessage);
|
|
41079
41122
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
41080
41123
|
} else
|
|
@@ -41089,7 +41132,7 @@ CameraServiceClient.prototype.getImage = function t(e, s, n) {
|
|
|
41089
41132
|
};
|
|
41090
41133
|
CameraServiceClient.prototype.renderFrame = function t(e, s, n) {
|
|
41091
41134
|
arguments.length === 2 && (n = arguments[1]);
|
|
41092
|
-
var u = grpc$
|
|
41135
|
+
var u = grpc$3.unary(CameraService.RenderFrame, {
|
|
41093
41136
|
request: e,
|
|
41094
41137
|
host: this.serviceHost,
|
|
41095
41138
|
metadata: s,
|
|
@@ -41097,7 +41140,7 @@ CameraServiceClient.prototype.renderFrame = function t(e, s, n) {
|
|
|
41097
41140
|
debug: this.options.debug,
|
|
41098
41141
|
onEnd: function(g) {
|
|
41099
41142
|
if (n)
|
|
41100
|
-
if (g.status !== grpc$
|
|
41143
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
41101
41144
|
var p = new Error(g.statusMessage);
|
|
41102
41145
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
41103
41146
|
} else
|
|
@@ -41112,7 +41155,7 @@ CameraServiceClient.prototype.renderFrame = function t(e, s, n) {
|
|
|
41112
41155
|
};
|
|
41113
41156
|
CameraServiceClient.prototype.getPointCloud = function t(e, s, n) {
|
|
41114
41157
|
arguments.length === 2 && (n = arguments[1]);
|
|
41115
|
-
var u = grpc$
|
|
41158
|
+
var u = grpc$3.unary(CameraService.GetPointCloud, {
|
|
41116
41159
|
request: e,
|
|
41117
41160
|
host: this.serviceHost,
|
|
41118
41161
|
metadata: s,
|
|
@@ -41120,7 +41163,7 @@ CameraServiceClient.prototype.getPointCloud = function t(e, s, n) {
|
|
|
41120
41163
|
debug: this.options.debug,
|
|
41121
41164
|
onEnd: function(g) {
|
|
41122
41165
|
if (n)
|
|
41123
|
-
if (g.status !== grpc$
|
|
41166
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
41124
41167
|
var p = new Error(g.statusMessage);
|
|
41125
41168
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
41126
41169
|
} else
|
|
@@ -41135,7 +41178,7 @@ CameraServiceClient.prototype.getPointCloud = function t(e, s, n) {
|
|
|
41135
41178
|
};
|
|
41136
41179
|
CameraServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
41137
41180
|
arguments.length === 2 && (n = arguments[1]);
|
|
41138
|
-
var u = grpc$
|
|
41181
|
+
var u = grpc$3.unary(CameraService.GetProperties, {
|
|
41139
41182
|
request: e,
|
|
41140
41183
|
host: this.serviceHost,
|
|
41141
41184
|
metadata: s,
|
|
@@ -41143,7 +41186,7 @@ CameraServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
|
41143
41186
|
debug: this.options.debug,
|
|
41144
41187
|
onEnd: function(g) {
|
|
41145
41188
|
if (n)
|
|
41146
|
-
if (g.status !== grpc$
|
|
41189
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
41147
41190
|
var p = new Error(g.statusMessage);
|
|
41148
41191
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
41149
41192
|
} else
|
|
@@ -41158,7 +41201,7 @@ CameraServiceClient.prototype.getProperties = function t(e, s, n) {
|
|
|
41158
41201
|
};
|
|
41159
41202
|
CameraServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
41160
41203
|
arguments.length === 2 && (n = arguments[1]);
|
|
41161
|
-
var u = grpc$
|
|
41204
|
+
var u = grpc$3.unary(CameraService.DoCommand, {
|
|
41162
41205
|
request: e,
|
|
41163
41206
|
host: this.serviceHost,
|
|
41164
41207
|
metadata: s,
|
|
@@ -41166,7 +41209,7 @@ CameraServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
41166
41209
|
debug: this.options.debug,
|
|
41167
41210
|
onEnd: function(g) {
|
|
41168
41211
|
if (n)
|
|
41169
|
-
if (g.status !== grpc$
|
|
41212
|
+
if (g.status !== grpc$3.Code.OK) {
|
|
41170
41213
|
var p = new Error(g.statusMessage);
|
|
41171
41214
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
41172
41215
|
} else
|
|
@@ -41298,6 +41341,10 @@ class MotorClient {
|
|
|
41298
41341
|
const u = await promisify(s.isPowered.bind(s), n);
|
|
41299
41342
|
return [u.getIsOn(), u.getPowerPct()];
|
|
41300
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
|
+
}
|
|
41301
41348
|
}
|
|
41302
41349
|
var sensor_pb = {};
|
|
41303
41350
|
(function(t) {
|
|
@@ -41421,7 +41468,7 @@ var sensor_pb = {};
|
|
|
41421
41468
|
return this.getReadingsMap().clear(), this;
|
|
41422
41469
|
}, s.object.extend(t, proto.viam.component.sensor.v1);
|
|
41423
41470
|
})(sensor_pb);
|
|
41424
|
-
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() {
|
|
41425
41472
|
function t() {
|
|
41426
41473
|
}
|
|
41427
41474
|
return t.serviceName = "viam.component.sensor.v1.SensorService", t;
|
|
@@ -41439,15 +41486,15 @@ SensorService.DoCommand = {
|
|
|
41439
41486
|
service: SensorService,
|
|
41440
41487
|
requestStream: !1,
|
|
41441
41488
|
responseStream: !1,
|
|
41442
|
-
requestType: common_v1_common_pb.DoCommandRequest,
|
|
41443
|
-
responseType: common_v1_common_pb.DoCommandResponse
|
|
41489
|
+
requestType: common_v1_common_pb$1.DoCommandRequest,
|
|
41490
|
+
responseType: common_v1_common_pb$1.DoCommandResponse
|
|
41444
41491
|
};
|
|
41445
41492
|
function SensorServiceClient(t, e) {
|
|
41446
41493
|
this.serviceHost = t, this.options = e || {};
|
|
41447
41494
|
}
|
|
41448
41495
|
SensorServiceClient.prototype.getReadings = function t(e, s, n) {
|
|
41449
41496
|
arguments.length === 2 && (n = arguments[1]);
|
|
41450
|
-
var u = grpc$
|
|
41497
|
+
var u = grpc$2.unary(SensorService.GetReadings, {
|
|
41451
41498
|
request: e,
|
|
41452
41499
|
host: this.serviceHost,
|
|
41453
41500
|
metadata: s,
|
|
@@ -41455,7 +41502,7 @@ SensorServiceClient.prototype.getReadings = function t(e, s, n) {
|
|
|
41455
41502
|
debug: this.options.debug,
|
|
41456
41503
|
onEnd: function(g) {
|
|
41457
41504
|
if (n)
|
|
41458
|
-
if (g.status !== grpc$
|
|
41505
|
+
if (g.status !== grpc$2.Code.OK) {
|
|
41459
41506
|
var p = new Error(g.statusMessage);
|
|
41460
41507
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
41461
41508
|
} else
|
|
@@ -41470,7 +41517,7 @@ SensorServiceClient.prototype.getReadings = function t(e, s, n) {
|
|
|
41470
41517
|
};
|
|
41471
41518
|
SensorServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
41472
41519
|
arguments.length === 2 && (n = arguments[1]);
|
|
41473
|
-
var u = grpc$
|
|
41520
|
+
var u = grpc$2.unary(SensorService.DoCommand, {
|
|
41474
41521
|
request: e,
|
|
41475
41522
|
host: this.serviceHost,
|
|
41476
41523
|
metadata: s,
|
|
@@ -41478,7 +41525,7 @@ SensorServiceClient.prototype.doCommand = function t(e, s, n) {
|
|
|
41478
41525
|
debug: this.options.debug,
|
|
41479
41526
|
onEnd: function(g) {
|
|
41480
41527
|
if (n)
|
|
41481
|
-
if (g.status !== grpc$
|
|
41528
|
+
if (g.status !== grpc$2.Code.OK) {
|
|
41482
41529
|
var p = new Error(g.statusMessage);
|
|
41483
41530
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
41484
41531
|
} else
|
|
@@ -41833,7 +41880,7 @@ var stream_pb = {};
|
|
|
41833
41880
|
}, proto.proto.stream.v1.RemoveStreamResponse.serializeBinaryToWriter = function(u, g) {
|
|
41834
41881
|
}, s.object.extend(t, proto.proto.stream.v1);
|
|
41835
41882
|
})(stream_pb);
|
|
41836
|
-
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() {
|
|
41837
41884
|
function t() {
|
|
41838
41885
|
}
|
|
41839
41886
|
return t.serviceName = "proto.stream.v1.StreamService", t;
|
|
@@ -41867,7 +41914,7 @@ function StreamServiceClient(t, e) {
|
|
|
41867
41914
|
}
|
|
41868
41915
|
StreamServiceClient.prototype.listStreams = function t(e, s, n) {
|
|
41869
41916
|
arguments.length === 2 && (n = arguments[1]);
|
|
41870
|
-
var u = grpc.unary(StreamService.ListStreams, {
|
|
41917
|
+
var u = grpc$1.unary(StreamService.ListStreams, {
|
|
41871
41918
|
request: e,
|
|
41872
41919
|
host: this.serviceHost,
|
|
41873
41920
|
metadata: s,
|
|
@@ -41875,7 +41922,7 @@ StreamServiceClient.prototype.listStreams = function t(e, s, n) {
|
|
|
41875
41922
|
debug: this.options.debug,
|
|
41876
41923
|
onEnd: function(g) {
|
|
41877
41924
|
if (n)
|
|
41878
|
-
if (g.status !== grpc.Code.OK) {
|
|
41925
|
+
if (g.status !== grpc$1.Code.OK) {
|
|
41879
41926
|
var p = new Error(g.statusMessage);
|
|
41880
41927
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
41881
41928
|
} else
|
|
@@ -41890,7 +41937,7 @@ StreamServiceClient.prototype.listStreams = function t(e, s, n) {
|
|
|
41890
41937
|
};
|
|
41891
41938
|
StreamServiceClient.prototype.addStream = function t(e, s, n) {
|
|
41892
41939
|
arguments.length === 2 && (n = arguments[1]);
|
|
41893
|
-
var u = grpc.unary(StreamService.AddStream, {
|
|
41940
|
+
var u = grpc$1.unary(StreamService.AddStream, {
|
|
41894
41941
|
request: e,
|
|
41895
41942
|
host: this.serviceHost,
|
|
41896
41943
|
metadata: s,
|
|
@@ -41898,7 +41945,7 @@ StreamServiceClient.prototype.addStream = function t(e, s, n) {
|
|
|
41898
41945
|
debug: this.options.debug,
|
|
41899
41946
|
onEnd: function(g) {
|
|
41900
41947
|
if (n)
|
|
41901
|
-
if (g.status !== grpc.Code.OK) {
|
|
41948
|
+
if (g.status !== grpc$1.Code.OK) {
|
|
41902
41949
|
var p = new Error(g.statusMessage);
|
|
41903
41950
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
41904
41951
|
} else
|
|
@@ -41913,7 +41960,7 @@ StreamServiceClient.prototype.addStream = function t(e, s, n) {
|
|
|
41913
41960
|
};
|
|
41914
41961
|
StreamServiceClient.prototype.removeStream = function t(e, s, n) {
|
|
41915
41962
|
arguments.length === 2 && (n = arguments[1]);
|
|
41916
|
-
var u = grpc.unary(StreamService.RemoveStream, {
|
|
41963
|
+
var u = grpc$1.unary(StreamService.RemoveStream, {
|
|
41917
41964
|
request: e,
|
|
41918
41965
|
host: this.serviceHost,
|
|
41919
41966
|
metadata: s,
|
|
@@ -41921,7 +41968,7 @@ StreamServiceClient.prototype.removeStream = function t(e, s, n) {
|
|
|
41921
41968
|
debug: this.options.debug,
|
|
41922
41969
|
onEnd: function(g) {
|
|
41923
41970
|
if (n)
|
|
41924
|
-
if (g.status !== grpc.Code.OK) {
|
|
41971
|
+
if (g.status !== grpc$1.Code.OK) {
|
|
41925
41972
|
var p = new Error(g.statusMessage);
|
|
41926
41973
|
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
41927
41974
|
} else
|
|
@@ -42044,13 +42091,203 @@ class MotionClient {
|
|
|
42044
42091
|
return r.toObject();
|
|
42045
42092
|
}
|
|
42046
42093
|
}
|
|
42047
|
-
|
|
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";
|
|
42048
42284
|
export {
|
|
42049
42285
|
ArmClient,
|
|
42050
42286
|
BaseClient,
|
|
42051
42287
|
BoardClient,
|
|
42052
42288
|
CameraClient,
|
|
42053
42289
|
RobotClient as Client,
|
|
42290
|
+
DataManagerClient,
|
|
42054
42291
|
EncoderClient,
|
|
42055
42292
|
MotionClient,
|
|
42056
42293
|
MotorClient,
|