@viamrobotics/sdk 0.0.30 → 0.0.32

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/main.es.js CHANGED
@@ -30150,16 +30150,16 @@ var __webpack_modules__ = { 37: function(o) {
30150
30150
  case 0:
30151
30151
  return _ = "", D = function() {
30152
30152
  return p.__awaiter(j, void 0, void 0, function() {
30153
- var T, P, x, X, M, O, B, R, F, C;
30153
+ var T, P, x, X, M, O, B, F, R, C;
30154
30154
  return p.__generator(this, function(w) {
30155
30155
  switch (w.label) {
30156
30156
  case 0:
30157
- return _ != "" ? [3, 5] : (T = "", E.accessToken && E.accessToken !== "" ? [3, 2] : ((B = new l.AuthenticateRequest()).setEntity(E.authEntity ? E.authEntity : v.replace(/^(.*:\/\/)/, "")), (X = new l.Credentials()).setType((F = E.credentials) === null || F === void 0 ? void 0 : F.type), X.setPayload((C = E.credentials) === null || C === void 0 ? void 0 : C.payload), B.setCredentials(X), O = new Promise(function(L, U) {
30157
+ return _ != "" ? [3, 5] : (T = "", E.accessToken && E.accessToken !== "" ? [3, 2] : ((B = new l.AuthenticateRequest()).setEntity(E.authEntity ? E.authEntity : v.replace(/^(.*:\/\/)/, "")), (X = new l.Credentials()).setType((R = E.credentials) === null || R === void 0 ? void 0 : R.type), X.setPayload((C = E.credentials) === null || C === void 0 ? void 0 : C.payload), B.setCredentials(X), O = new Promise(function(L, U) {
30158
30158
  P = L, x = U;
30159
30159
  }), t.grpc.invoke(u.AuthService.Authenticate, { request: B, host: E.externalAuthAddress ? E.externalAuthAddress : v, transport: S, onMessage: function(L) {
30160
30160
  T = L.getAccessToken();
30161
30161
  }, onEnd: function(L, U, k) {
30162
- L == t.grpc.Code.OK ? P(R) : x(U);
30162
+ L == t.grpc.Code.OK ? P(F) : x(U);
30163
30163
  } }), [4, O]));
30164
30164
  case 1:
30165
30165
  return w.sent(), [3, 3];
@@ -30176,7 +30176,7 @@ var __webpack_modules__ = { 37: function(o) {
30176
30176
  case 4:
30177
30177
  w.sent(), _ = T, w.label = 5;
30178
30178
  case 5:
30179
- return (R = new t.grpc.Metadata()).set("authorization", "Bearer ".concat(_)), [2, R];
30179
+ return (F = new t.grpc.Metadata()).set("authorization", "Bearer ".concat(_)), [2, F];
30180
30180
  }
30181
30181
  });
30182
30182
  });
@@ -30234,7 +30234,7 @@ var __webpack_modules__ = { 37: function(o) {
30234
30234
  e.dialWebRTC = function(v, S, E) {
30235
30235
  var _, D, I, j, A, T, P;
30236
30236
  return p.__awaiter(this, void 0, void 0, function() {
30237
- var x, X, M, O, B, R, F, C, w, L, U, k, N, G, H, Z, ee, re, se, ie, pe, ne, ge, ae, le = this;
30237
+ var x, X, M, O, B, F, R, C, w, L, U, k, N, G, H, Z, ee, re, se, ie, pe, ne, ge, ae, le = this;
30238
30238
  return p.__generator(this, function($) {
30239
30239
  switch ($.label) {
30240
30240
  case 0:
@@ -30242,16 +30242,16 @@ var __webpack_modules__ = { 37: function(o) {
30242
30242
  case 1:
30243
30243
  X = $.sent(), M = X.pc, O = X.dc, B = !1, $.label = 2;
30244
30244
  case 2:
30245
- return $.trys.push([2, , 9, 10]), R = E, E && (R = p.__assign({}, E), E.accessToken || (R.authEntity = (_ = E?.webrtcOptions) === null || _ === void 0 ? void 0 : _.signalingAuthEntity, R.authEntity || (R.externalAuthAddress ? R.authEntity = (D = E.externalAuthAddress) === null || D === void 0 ? void 0 : D.replace(/^(.*:\/\/)/, "") : R.authEntity = v.replace(/^(.*:\/\/)/, "")), R.credentials = (I = E?.webrtcOptions) === null || I === void 0 ? void 0 : I.signalingCredentials, R.accessToken = (j = E?.webrtcOptions) === null || j === void 0 ? void 0 : j.signalingAccessToken), R.externalAuthAddress = (A = E?.webrtcOptions) === null || A === void 0 ? void 0 : A.signalingExternalAuthAddress, R.externalAuthToEntity = (T = E?.webrtcOptions) === null || T === void 0 ? void 0 : T.signalingExternalAuthToEntity), [4, y(v, R)];
30245
+ return $.trys.push([2, , 9, 10]), F = E, E && (F = p.__assign({}, E), E.accessToken || (F.authEntity = (_ = E?.webrtcOptions) === null || _ === void 0 ? void 0 : _.signalingAuthEntity, F.authEntity || (F.externalAuthAddress ? F.authEntity = (D = E.externalAuthAddress) === null || D === void 0 ? void 0 : D.replace(/^(.*:\/\/)/, "") : F.authEntity = v.replace(/^(.*:\/\/)/, "")), F.credentials = (I = E?.webrtcOptions) === null || I === void 0 ? void 0 : I.signalingCredentials, F.accessToken = (j = E?.webrtcOptions) === null || j === void 0 ? void 0 : j.signalingAccessToken), F.externalAuthAddress = (A = E?.webrtcOptions) === null || A === void 0 ? void 0 : A.signalingExternalAuthAddress, F.externalAuthToEntity = (T = E?.webrtcOptions) === null || T === void 0 ? void 0 : T.signalingExternalAuthToEntity), [4, y(v, F)];
30246
30246
  case 3:
30247
- return F = $.sent(), C = t.grpc.client(m.SignalingService.Call, { host: v, transport: F }), w = "", L = !1, U = function(V) {
30247
+ return R = $.sent(), C = t.grpc.client(m.SignalingService.Call, { host: v, transport: R }), w = "", L = !1, U = function(V) {
30248
30248
  if (!L) {
30249
30249
  L = !0;
30250
30250
  var W = new c.CallUpdateRequest();
30251
30251
  W.setUuid(w);
30252
- var q = new g.Status();
30253
- q.setCode(s.Code.UNKNOWN), q.setMessage(V), W.setError(q), t.grpc.unary(m.SignalingService.CallUpdate, { request: W, metadata: { "rpc-host": S }, host: v, transport: F, onEnd: function(Y) {
30254
- var z = Y.status, K = Y.statusMessage, Q = Y.message;
30252
+ var Y = new g.Status();
30253
+ Y.setCode(s.Code.UNKNOWN), Y.setMessage(V), W.setError(Y), t.grpc.unary(m.SignalingService.CallUpdate, { request: W, metadata: { "rpc-host": S }, host: v, transport: R, onEnd: function(q) {
30254
+ var z = q.status, K = q.statusMessage, Q = q.message;
30255
30255
  z === t.grpc.Code.OK && Q || console.error(K);
30256
30256
  } });
30257
30257
  }
@@ -30259,9 +30259,9 @@ var __webpack_modules__ = { 37: function(o) {
30259
30259
  if (!L) {
30260
30260
  L = !0;
30261
30261
  var V = new c.CallUpdateRequest();
30262
- V.setUuid(w), V.setDone(!0), t.grpc.unary(m.SignalingService.CallUpdate, { request: V, metadata: { "rpc-host": S }, host: v, transport: F, onEnd: function(W) {
30263
- var q = W.status, Y = W.statusMessage, z = W.message;
30264
- q === t.grpc.Code.OK && z || console.error(Y);
30262
+ V.setUuid(w), V.setDone(!0), t.grpc.unary(m.SignalingService.CallUpdate, { request: V, metadata: { "rpc-host": S }, host: v, transport: R, onEnd: function(W) {
30263
+ var Y = W.status, q = W.statusMessage, z = W.message;
30264
+ Y === t.grpc.Code.OK && z || console.error(q);
30265
30265
  } });
30266
30266
  }
30267
30267
  }, G = new Promise(function(V) {
@@ -30270,13 +30270,13 @@ var __webpack_modules__ = { 37: function(o) {
30270
30270
  case 4:
30271
30271
  return Z = $.sent(), ee = !1, M.onicecandidate = function(V) {
30272
30272
  return p.__awaiter(le, void 0, void 0, function() {
30273
- var W, q;
30274
- return p.__generator(this, function(Y) {
30275
- switch (Y.label) {
30273
+ var W, Y;
30274
+ return p.__generator(this, function(q) {
30275
+ switch (q.label) {
30276
30276
  case 0:
30277
30277
  return [4, G];
30278
30278
  case 1:
30279
- return Y.sent(), H ? [2] : V.candidate === null ? (ee = !0, k(), [2]) : (z = V.candidate, (K = new c.ICECandidate()).setCandidate(z.candidate), z.sdpMid && K.setSdpMid(z.sdpMid), z.sdpMLineIndex && K.setSdpmLineIndex(z.sdpMLineIndex), z.usernameFragment && K.setUsernameFragment(z.usernameFragment), W = K, (q = new c.CallUpdateRequest()).setUuid(w), q.setCandidate(W), t.grpc.unary(m.SignalingService.CallUpdate, { request: q, metadata: { "rpc-host": S }, host: v, transport: F, onEnd: function(Q) {
30279
+ return q.sent(), H ? [2] : V.candidate === null ? (ee = !0, k(), [2]) : (z = V.candidate, (K = new c.ICECandidate()).setCandidate(z.candidate), z.sdpMid && K.setSdpMid(z.sdpMid), z.sdpMLineIndex && K.setSdpmLineIndex(z.sdpMLineIndex), z.usernameFragment && K.setUsernameFragment(z.usernameFragment), W = K, (Y = new c.CallUpdateRequest()).setUuid(w), Y.setCandidate(W), t.grpc.unary(m.SignalingService.CallUpdate, { request: Y, metadata: { "rpc-host": S }, host: v, transport: R, onEnd: function(Q) {
30280
30280
  var oe = Q.status, J = Q.statusMessage, te = Q.message;
30281
30281
  oe === t.grpc.Code.OK && te || H || ee || console.error("error sending candidate", J);
30282
30282
  } }), [2]);
@@ -30290,11 +30290,11 @@ var __webpack_modules__ = { 37: function(o) {
30290
30290
  case 6:
30291
30291
  return re = !1, C.onMessage(function(V) {
30292
30292
  return p.__awaiter(le, void 0, void 0, function() {
30293
- var W, q, Y, z, K, Q;
30293
+ var W, Y, q, z, K, Q;
30294
30294
  return p.__generator(this, function(oe) {
30295
30295
  switch (oe.label) {
30296
30296
  case 0:
30297
- return (W = V).hasInit() ? re ? (U("got init stage more than once"), [2]) : (q = W.getInit(), re = !0, w = W.getUuid(), Y = new RTCSessionDescription(JSON.parse(atob(q.getSdp()))), M.setRemoteDescription(Y), N(!0), x?.disableTrickleICE ? (H = !0, k(), [2]) : [3, 7]) : [3, 1];
30297
+ return (W = V).hasInit() ? re ? (U("got init stage more than once"), [2]) : (Y = W.getInit(), re = !0, w = W.getUuid(), q = new RTCSessionDescription(JSON.parse(atob(Y.getSdp()))), M.setRemoteDescription(q), N(!0), x?.disableTrickleICE ? (H = !0, k(), [2]) : [3, 7]) : [3, 1];
30298
30298
  case 1:
30299
30299
  if (!W.hasUpdate())
30300
30300
  return [3, 6];
@@ -30321,7 +30321,7 @@ var __webpack_modules__ = { 37: function(o) {
30321
30321
  });
30322
30322
  }), pe = new Promise(function(V, W) {
30323
30323
  se = V, ie = W;
30324
- }), C.onEnd(function(V, W, q) {
30324
+ }), C.onEnd(function(V, W, Y) {
30325
30325
  V !== t.grpc.Code.OK ? W !== "Response closed without headers" ? (console.error(W), ie(W)) : ie(new i.ConnectionClosedError("failed to dial")) : se();
30326
30326
  }), C.start({ "rpc-host": S }), ne = new c.CallRequest(), ge = btoa(JSON.stringify(M.localDescription)), ne.setSdp(ge), x && x.disableTrickleICE && ne.setDisableTrickle(x.disableTrickleICE), C.send(ne), (ae = new n.ClientChannel(M, O)).ready.then(function() {
30327
30327
  return se();
@@ -30437,11 +30437,11 @@ var __webpack_modules__ = { 37: function(o) {
30437
30437
  }, 655: (o, e, r) => {
30438
30438
  r.r(e), r.d(e, { __assign: () => n, __asyncDelegator: () => _, __asyncGenerator: () => E, __asyncValues: () => D, __await: () => S, __awaiter: () => u, __classPrivateFieldGet: () => P, __classPrivateFieldIn: () => X, __classPrivateFieldSet: () => x, __createBinding: () => m, __decorate: () => s, __exportStar: () => h, __extends: () => t, __generator: () => c, __importDefault: () => T, __importStar: () => A, __makeTemplateObject: () => I, __metadata: () => l, __param: () => g, __read: () => f, __rest: () => i, __spread: () => d, __spreadArray: () => v, __spreadArrays: () => b, __values: () => y });
30439
30439
  var p = function(M, O) {
30440
- return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(B, R) {
30441
- B.__proto__ = R;
30442
- } || function(B, R) {
30443
- for (var F in R)
30444
- Object.prototype.hasOwnProperty.call(R, F) && (B[F] = R[F]);
30440
+ return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(B, F) {
30441
+ B.__proto__ = F;
30442
+ } || function(B, F) {
30443
+ for (var R in F)
30444
+ Object.prototype.hasOwnProperty.call(F, R) && (B[R] = F[R]);
30445
30445
  }, p(M, O);
30446
30446
  };
30447
30447
  function t(M, O) {
@@ -30454,71 +30454,71 @@ var __webpack_modules__ = { 37: function(o) {
30454
30454
  }
30455
30455
  var n = function() {
30456
30456
  return n = Object.assign || function(M) {
30457
- for (var O, B = 1, R = arguments.length; B < R; B++)
30458
- for (var F in O = arguments[B])
30459
- Object.prototype.hasOwnProperty.call(O, F) && (M[F] = O[F]);
30457
+ for (var O, B = 1, F = arguments.length; B < F; B++)
30458
+ for (var R in O = arguments[B])
30459
+ Object.prototype.hasOwnProperty.call(O, R) && (M[R] = O[R]);
30460
30460
  return M;
30461
30461
  }, n.apply(this, arguments);
30462
30462
  };
30463
30463
  function i(M, O) {
30464
30464
  var B = {};
30465
- for (var R in M)
30466
- Object.prototype.hasOwnProperty.call(M, R) && O.indexOf(R) < 0 && (B[R] = M[R]);
30465
+ for (var F in M)
30466
+ Object.prototype.hasOwnProperty.call(M, F) && O.indexOf(F) < 0 && (B[F] = M[F]);
30467
30467
  if (M != null && typeof Object.getOwnPropertySymbols == "function") {
30468
- var F = 0;
30469
- for (R = Object.getOwnPropertySymbols(M); F < R.length; F++)
30470
- O.indexOf(R[F]) < 0 && Object.prototype.propertyIsEnumerable.call(M, R[F]) && (B[R[F]] = M[R[F]]);
30468
+ var R = 0;
30469
+ for (F = Object.getOwnPropertySymbols(M); R < F.length; R++)
30470
+ O.indexOf(F[R]) < 0 && Object.prototype.propertyIsEnumerable.call(M, F[R]) && (B[F[R]] = M[F[R]]);
30471
30471
  }
30472
30472
  return B;
30473
30473
  }
30474
- function s(M, O, B, R) {
30475
- var F, C = arguments.length, w = C < 3 ? O : R === null ? R = Object.getOwnPropertyDescriptor(O, B) : R;
30474
+ function s(M, O, B, F) {
30475
+ var R, C = arguments.length, w = C < 3 ? O : F === null ? F = Object.getOwnPropertyDescriptor(O, B) : F;
30476
30476
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
30477
- w = Reflect.decorate(M, O, B, R);
30477
+ w = Reflect.decorate(M, O, B, F);
30478
30478
  else
30479
30479
  for (var L = M.length - 1; L >= 0; L--)
30480
- (F = M[L]) && (w = (C < 3 ? F(w) : C > 3 ? F(O, B, w) : F(O, B)) || w);
30480
+ (R = M[L]) && (w = (C < 3 ? R(w) : C > 3 ? R(O, B, w) : R(O, B)) || w);
30481
30481
  return C > 3 && w && Object.defineProperty(O, B, w), w;
30482
30482
  }
30483
30483
  function g(M, O) {
30484
- return function(B, R) {
30485
- O(B, R, M);
30484
+ return function(B, F) {
30485
+ O(B, F, M);
30486
30486
  };
30487
30487
  }
30488
30488
  function l(M, O) {
30489
30489
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
30490
30490
  return Reflect.metadata(M, O);
30491
30491
  }
30492
- function u(M, O, B, R) {
30493
- return new (B || (B = Promise))(function(F, C) {
30492
+ function u(M, O, B, F) {
30493
+ return new (B || (B = Promise))(function(R, C) {
30494
30494
  function w(k) {
30495
30495
  try {
30496
- U(R.next(k));
30496
+ U(F.next(k));
30497
30497
  } catch (N) {
30498
30498
  C(N);
30499
30499
  }
30500
30500
  }
30501
30501
  function L(k) {
30502
30502
  try {
30503
- U(R.throw(k));
30503
+ U(F.throw(k));
30504
30504
  } catch (N) {
30505
30505
  C(N);
30506
30506
  }
30507
30507
  }
30508
30508
  function U(k) {
30509
30509
  var N;
30510
- k.done ? F(k.value) : (N = k.value, N instanceof B ? N : new B(function(G) {
30510
+ k.done ? R(k.value) : (N = k.value, N instanceof B ? N : new B(function(G) {
30511
30511
  G(N);
30512
30512
  })).then(w, L);
30513
30513
  }
30514
- U((R = R.apply(M, O || [])).next());
30514
+ U((F = F.apply(M, O || [])).next());
30515
30515
  });
30516
30516
  }
30517
30517
  function c(M, O) {
30518
- var B, R, F, C, w = { label: 0, sent: function() {
30519
- if (1 & F[0])
30520
- throw F[1];
30521
- return F[1];
30518
+ var B, F, R, C, w = { label: 0, sent: function() {
30519
+ if (1 & R[0])
30520
+ throw R[1];
30521
+ return R[1];
30522
30522
  }, trys: [], ops: [] };
30523
30523
  return C = { next: L(0), throw: L(1), return: L(2) }, typeof Symbol == "function" && (C[Symbol.iterator] = function() {
30524
30524
  return this;
@@ -30530,46 +30530,46 @@ var __webpack_modules__ = { 37: function(o) {
30530
30530
  throw new TypeError("Generator is already executing.");
30531
30531
  for (; C && (C = 0, N[0] && (w = 0)), w; )
30532
30532
  try {
30533
- if (B = 1, R && (F = 2 & N[0] ? R.return : N[0] ? R.throw || ((F = R.return) && F.call(R), 0) : R.next) && !(F = F.call(R, N[1])).done)
30534
- return F;
30535
- switch (R = 0, F && (N = [2 & N[0], F.value]), N[0]) {
30533
+ if (B = 1, F && (R = 2 & N[0] ? F.return : N[0] ? F.throw || ((R = F.return) && R.call(F), 0) : F.next) && !(R = R.call(F, N[1])).done)
30534
+ return R;
30535
+ switch (F = 0, R && (N = [2 & N[0], R.value]), N[0]) {
30536
30536
  case 0:
30537
30537
  case 1:
30538
- F = N;
30538
+ R = N;
30539
30539
  break;
30540
30540
  case 4:
30541
30541
  return w.label++, { value: N[1], done: !1 };
30542
30542
  case 5:
30543
- w.label++, R = N[1], N = [0];
30543
+ w.label++, F = N[1], N = [0];
30544
30544
  continue;
30545
30545
  case 7:
30546
30546
  N = w.ops.pop(), w.trys.pop();
30547
30547
  continue;
30548
30548
  default:
30549
- if (!((F = (F = w.trys).length > 0 && F[F.length - 1]) || N[0] !== 6 && N[0] !== 2)) {
30549
+ if (!((R = (R = w.trys).length > 0 && R[R.length - 1]) || N[0] !== 6 && N[0] !== 2)) {
30550
30550
  w = 0;
30551
30551
  continue;
30552
30552
  }
30553
- if (N[0] === 3 && (!F || N[1] > F[0] && N[1] < F[3])) {
30553
+ if (N[0] === 3 && (!R || N[1] > R[0] && N[1] < R[3])) {
30554
30554
  w.label = N[1];
30555
30555
  break;
30556
30556
  }
30557
- if (N[0] === 6 && w.label < F[1]) {
30558
- w.label = F[1], F = N;
30557
+ if (N[0] === 6 && w.label < R[1]) {
30558
+ w.label = R[1], R = N;
30559
30559
  break;
30560
30560
  }
30561
- if (F && w.label < F[2]) {
30562
- w.label = F[2], w.ops.push(N);
30561
+ if (R && w.label < R[2]) {
30562
+ w.label = R[2], w.ops.push(N);
30563
30563
  break;
30564
30564
  }
30565
- F[2] && w.ops.pop(), w.trys.pop();
30565
+ R[2] && w.ops.pop(), w.trys.pop();
30566
30566
  continue;
30567
30567
  }
30568
30568
  N = O.call(M, w);
30569
30569
  } catch (G) {
30570
- N = [6, G], R = 0;
30570
+ N = [6, G], F = 0;
30571
30571
  } finally {
30572
- B = F = 0;
30572
+ B = R = 0;
30573
30573
  }
30574
30574
  if (5 & N[0])
30575
30575
  throw N[1];
@@ -30578,26 +30578,26 @@ var __webpack_modules__ = { 37: function(o) {
30578
30578
  };
30579
30579
  }
30580
30580
  }
30581
- var m = Object.create ? function(M, O, B, R) {
30582
- R === void 0 && (R = B);
30583
- var F = Object.getOwnPropertyDescriptor(O, B);
30584
- F && !("get" in F ? !O.__esModule : F.writable || F.configurable) || (F = { enumerable: !0, get: function() {
30581
+ var m = Object.create ? function(M, O, B, F) {
30582
+ F === void 0 && (F = B);
30583
+ var R = Object.getOwnPropertyDescriptor(O, B);
30584
+ R && !("get" in R ? !O.__esModule : R.writable || R.configurable) || (R = { enumerable: !0, get: function() {
30585
30585
  return O[B];
30586
- } }), Object.defineProperty(M, R, F);
30587
- } : function(M, O, B, R) {
30588
- R === void 0 && (R = B), M[R] = O[B];
30586
+ } }), Object.defineProperty(M, F, R);
30587
+ } : function(M, O, B, F) {
30588
+ F === void 0 && (F = B), M[F] = O[B];
30589
30589
  };
30590
30590
  function h(M, O) {
30591
30591
  for (var B in M)
30592
30592
  B === "default" || Object.prototype.hasOwnProperty.call(O, B) || m(O, M, B);
30593
30593
  }
30594
30594
  function y(M) {
30595
- var O = typeof Symbol == "function" && Symbol.iterator, B = O && M[O], R = 0;
30595
+ var O = typeof Symbol == "function" && Symbol.iterator, B = O && M[O], F = 0;
30596
30596
  if (B)
30597
30597
  return B.call(M);
30598
30598
  if (M && typeof M.length == "number")
30599
30599
  return { next: function() {
30600
- return M && R >= M.length && (M = void 0), { value: M && M[R++], done: !M };
30600
+ return M && F >= M.length && (M = void 0), { value: M && M[F++], done: !M };
30601
30601
  } };
30602
30602
  throw new TypeError(O ? "Object is not iterable." : "Symbol.iterator is not defined.");
30603
30603
  }
@@ -30605,18 +30605,18 @@ var __webpack_modules__ = { 37: function(o) {
30605
30605
  var B = typeof Symbol == "function" && M[Symbol.iterator];
30606
30606
  if (!B)
30607
30607
  return M;
30608
- var R, F, C = B.call(M), w = [];
30608
+ var F, R, C = B.call(M), w = [];
30609
30609
  try {
30610
- for (; (O === void 0 || O-- > 0) && !(R = C.next()).done; )
30611
- w.push(R.value);
30610
+ for (; (O === void 0 || O-- > 0) && !(F = C.next()).done; )
30611
+ w.push(F.value);
30612
30612
  } catch (L) {
30613
- F = { error: L };
30613
+ R = { error: L };
30614
30614
  } finally {
30615
30615
  try {
30616
- R && !R.done && (B = C.return) && B.call(C);
30616
+ F && !F.done && (B = C.return) && B.call(C);
30617
30617
  } finally {
30618
- if (F)
30619
- throw F.error;
30618
+ if (R)
30619
+ throw R.error;
30620
30620
  }
30621
30621
  }
30622
30622
  return w;
@@ -30629,17 +30629,17 @@ var __webpack_modules__ = { 37: function(o) {
30629
30629
  function b() {
30630
30630
  for (var M = 0, O = 0, B = arguments.length; O < B; O++)
30631
30631
  M += arguments[O].length;
30632
- var R = Array(M), F = 0;
30632
+ var F = Array(M), R = 0;
30633
30633
  for (O = 0; O < B; O++)
30634
- for (var C = arguments[O], w = 0, L = C.length; w < L; w++, F++)
30635
- R[F] = C[w];
30636
- return R;
30634
+ for (var C = arguments[O], w = 0, L = C.length; w < L; w++, R++)
30635
+ F[R] = C[w];
30636
+ return F;
30637
30637
  }
30638
30638
  function v(M, O, B) {
30639
30639
  if (B || arguments.length === 2)
30640
- for (var R, F = 0, C = O.length; F < C; F++)
30641
- !R && F in O || (R || (R = Array.prototype.slice.call(O, 0, F)), R[F] = O[F]);
30642
- return M.concat(R || Array.prototype.slice.call(O));
30640
+ for (var F, R = 0, C = O.length; R < C; R++)
30641
+ !F && R in O || (F || (F = Array.prototype.slice.call(O, 0, R)), F[R] = O[R]);
30642
+ return M.concat(F || Array.prototype.slice.call(O));
30643
30643
  }
30644
30644
  function S(M) {
30645
30645
  return this instanceof S ? (this.v = M, this) : new S(M);
@@ -30647,12 +30647,12 @@ var __webpack_modules__ = { 37: function(o) {
30647
30647
  function E(M, O, B) {
30648
30648
  if (!Symbol.asyncIterator)
30649
30649
  throw new TypeError("Symbol.asyncIterator is not defined.");
30650
- var R, F = B.apply(M, O || []), C = [];
30651
- return R = {}, w("next"), w("throw"), w("return"), R[Symbol.asyncIterator] = function() {
30650
+ var F, R = B.apply(M, O || []), C = [];
30651
+ return F = {}, w("next"), w("throw"), w("return"), F[Symbol.asyncIterator] = function() {
30652
30652
  return this;
30653
- }, R;
30653
+ }, F;
30654
30654
  function w(G) {
30655
- F[G] && (R[G] = function(H) {
30655
+ R[G] && (F[G] = function(H) {
30656
30656
  return new Promise(function(Z, ee) {
30657
30657
  C.push([G, H, Z, ee]) > 1 || L(G, H);
30658
30658
  });
@@ -30660,7 +30660,7 @@ var __webpack_modules__ = { 37: function(o) {
30660
30660
  }
30661
30661
  function L(G, H) {
30662
30662
  try {
30663
- (Z = F[G](H)).value instanceof S ? Promise.resolve(Z.value.v).then(U, k) : N(C[0][2], Z);
30663
+ (Z = R[G](H)).value instanceof S ? Promise.resolve(Z.value.v).then(U, k) : N(C[0][2], Z);
30664
30664
  } catch (ee) {
30665
30665
  N(C[0][3], ee);
30666
30666
  }
@@ -30678,14 +30678,14 @@ var __webpack_modules__ = { 37: function(o) {
30678
30678
  }
30679
30679
  function _(M) {
30680
30680
  var O, B;
30681
- return O = {}, R("next"), R("throw", function(F) {
30682
- throw F;
30683
- }), R("return"), O[Symbol.iterator] = function() {
30681
+ return O = {}, F("next"), F("throw", function(R) {
30682
+ throw R;
30683
+ }), F("return"), O[Symbol.iterator] = function() {
30684
30684
  return this;
30685
30685
  }, O;
30686
- function R(F, C) {
30687
- O[F] = M[F] ? function(w) {
30688
- return (B = !B) ? { value: S(M[F](w)), done: F === "return" } : C ? C(w) : w;
30686
+ function F(R, C) {
30687
+ O[R] = M[R] ? function(w) {
30688
+ return (B = !B) ? { value: S(M[R](w)), done: R === "return" } : C ? C(w) : w;
30689
30689
  } : C;
30690
30690
  }
30691
30691
  }
@@ -30693,17 +30693,17 @@ var __webpack_modules__ = { 37: function(o) {
30693
30693
  if (!Symbol.asyncIterator)
30694
30694
  throw new TypeError("Symbol.asyncIterator is not defined.");
30695
30695
  var O, B = M[Symbol.asyncIterator];
30696
- return B ? B.call(M) : (M = y(M), O = {}, R("next"), R("throw"), R("return"), O[Symbol.asyncIterator] = function() {
30696
+ return B ? B.call(M) : (M = y(M), O = {}, F("next"), F("throw"), F("return"), O[Symbol.asyncIterator] = function() {
30697
30697
  return this;
30698
30698
  }, O);
30699
- function R(F) {
30700
- O[F] = M[F] && function(C) {
30699
+ function F(R) {
30700
+ O[R] = M[R] && function(C) {
30701
30701
  return new Promise(function(w, L) {
30702
30702
  (function(U, k, N, G) {
30703
30703
  Promise.resolve(G).then(function(H) {
30704
30704
  U({ value: H, done: N });
30705
30705
  }, k);
30706
- })(w, L, (C = M[F](C)).done, C.value);
30706
+ })(w, L, (C = M[R](C)).done, C.value);
30707
30707
  });
30708
30708
  };
30709
30709
  }
@@ -30728,21 +30728,21 @@ var __webpack_modules__ = { 37: function(o) {
30728
30728
  function T(M) {
30729
30729
  return M && M.__esModule ? M : { default: M };
30730
30730
  }
30731
- function P(M, O, B, R) {
30732
- if (B === "a" && !R)
30731
+ function P(M, O, B, F) {
30732
+ if (B === "a" && !F)
30733
30733
  throw new TypeError("Private accessor was defined without a getter");
30734
- if (typeof O == "function" ? M !== O || !R : !O.has(M))
30734
+ if (typeof O == "function" ? M !== O || !F : !O.has(M))
30735
30735
  throw new TypeError("Cannot read private member from an object whose class did not declare it");
30736
- return B === "m" ? R : B === "a" ? R.call(M) : R ? R.value : O.get(M);
30736
+ return B === "m" ? F : B === "a" ? F.call(M) : F ? F.value : O.get(M);
30737
30737
  }
30738
- function x(M, O, B, R, F) {
30739
- if (R === "m")
30738
+ function x(M, O, B, F, R) {
30739
+ if (F === "m")
30740
30740
  throw new TypeError("Private method is not writable");
30741
- if (R === "a" && !F)
30741
+ if (F === "a" && !R)
30742
30742
  throw new TypeError("Private accessor was defined without a setter");
30743
- if (typeof O == "function" ? M !== O || !F : !O.has(M))
30743
+ if (typeof O == "function" ? M !== O || !R : !O.has(M))
30744
30744
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
30745
- return R === "a" ? F.call(M, B) : F ? F.value = B : O.set(M, B), B;
30745
+ return F === "a" ? R.call(M, B) : R ? R.value = B : O.set(M, B), B;
30746
30746
  }
30747
30747
  function X(M, O) {
30748
30748
  if (O === null || typeof O != "object" && typeof O != "function")
@@ -187542,19 +187542,11 @@ var annotations_pb$m = {}, http_pb$m = {};
187542
187542
  var n = annotations_pb$m;
187543
187543
  r.object.extend(proto, n);
187544
187544
  var i = struct_pb$n;
187545
- r.object.extend(proto, i), r.exportSymbol("proto.viam.service.slam.v1.GetInternalStateRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetInternalStateResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetInternalStateStreamRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetInternalStateStreamResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetMapRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetMapResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetMapResponse.MapCase", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPointCloudMapRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPointCloudMapResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPointCloudMapStreamRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPointCloudMapStreamResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPositionNewRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPositionNewResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPositionRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPositionResponse", null, p), proto.viam.service.slam.v1.GetPositionRequest = function(s) {
187545
+ r.object.extend(proto, i), r.exportSymbol("proto.viam.service.slam.v1.GetInternalStateRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetInternalStateResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPointCloudMapRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPointCloudMapResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPositionRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPositionResponse", null, p), proto.viam.service.slam.v1.GetPositionRequest = function(s) {
187546
187546
  e.Message.initialize(this, s, 0, -1, null, null);
187547
187547
  }, r.inherits(proto.viam.service.slam.v1.GetPositionRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPositionRequest.displayName = "proto.viam.service.slam.v1.GetPositionRequest"), proto.viam.service.slam.v1.GetPositionResponse = function(s) {
187548
187548
  e.Message.initialize(this, s, 0, -1, null, null);
187549
- }, r.inherits(proto.viam.service.slam.v1.GetPositionResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPositionResponse.displayName = "proto.viam.service.slam.v1.GetPositionResponse"), proto.viam.service.slam.v1.GetMapRequest = function(s) {
187550
- e.Message.initialize(this, s, 0, -1, null, null);
187551
- }, r.inherits(proto.viam.service.slam.v1.GetMapRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetMapRequest.displayName = "proto.viam.service.slam.v1.GetMapRequest"), proto.viam.service.slam.v1.GetMapResponse = function(s) {
187552
- e.Message.initialize(this, s, 0, -1, null, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_);
187553
- }, r.inherits(proto.viam.service.slam.v1.GetMapResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetMapResponse.displayName = "proto.viam.service.slam.v1.GetMapResponse"), proto.viam.service.slam.v1.GetPositionNewRequest = function(s) {
187554
- e.Message.initialize(this, s, 0, -1, null, null);
187555
- }, r.inherits(proto.viam.service.slam.v1.GetPositionNewRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPositionNewRequest.displayName = "proto.viam.service.slam.v1.GetPositionNewRequest"), proto.viam.service.slam.v1.GetPositionNewResponse = function(s) {
187556
- e.Message.initialize(this, s, 0, -1, null, null);
187557
- }, r.inherits(proto.viam.service.slam.v1.GetPositionNewResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPositionNewResponse.displayName = "proto.viam.service.slam.v1.GetPositionNewResponse"), proto.viam.service.slam.v1.GetPointCloudMapRequest = function(s) {
187549
+ }, r.inherits(proto.viam.service.slam.v1.GetPositionResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPositionResponse.displayName = "proto.viam.service.slam.v1.GetPositionResponse"), proto.viam.service.slam.v1.GetPointCloudMapRequest = function(s) {
187558
187550
  e.Message.initialize(this, s, 0, -1, null, null);
187559
187551
  }, r.inherits(proto.viam.service.slam.v1.GetPointCloudMapRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPointCloudMapRequest.displayName = "proto.viam.service.slam.v1.GetPointCloudMapRequest"), proto.viam.service.slam.v1.GetPointCloudMapResponse = function(s) {
187560
187552
  e.Message.initialize(this, s, 0, -1, null, null);
@@ -187562,22 +187554,13 @@ var annotations_pb$m = {}, http_pb$m = {};
187562
187554
  e.Message.initialize(this, s, 0, -1, null, null);
187563
187555
  }, r.inherits(proto.viam.service.slam.v1.GetInternalStateRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetInternalStateRequest.displayName = "proto.viam.service.slam.v1.GetInternalStateRequest"), proto.viam.service.slam.v1.GetInternalStateResponse = function(s) {
187564
187556
  e.Message.initialize(this, s, 0, -1, null, null);
187565
- }, r.inherits(proto.viam.service.slam.v1.GetInternalStateResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetInternalStateResponse.displayName = "proto.viam.service.slam.v1.GetInternalStateResponse"), proto.viam.service.slam.v1.GetPointCloudMapStreamRequest = function(s) {
187566
- e.Message.initialize(this, s, 0, -1, null, null);
187567
- }, r.inherits(proto.viam.service.slam.v1.GetPointCloudMapStreamRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.displayName = "proto.viam.service.slam.v1.GetPointCloudMapStreamRequest"), proto.viam.service.slam.v1.GetPointCloudMapStreamResponse = function(s) {
187568
- e.Message.initialize(this, s, 0, -1, null, null);
187569
- }, r.inherits(proto.viam.service.slam.v1.GetPointCloudMapStreamResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.displayName = "proto.viam.service.slam.v1.GetPointCloudMapStreamResponse"), proto.viam.service.slam.v1.GetInternalStateStreamRequest = function(s) {
187570
- e.Message.initialize(this, s, 0, -1, null, null);
187571
- }, r.inherits(proto.viam.service.slam.v1.GetInternalStateStreamRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetInternalStateStreamRequest.displayName = "proto.viam.service.slam.v1.GetInternalStateStreamRequest"), proto.viam.service.slam.v1.GetInternalStateStreamResponse = function(s) {
187572
- e.Message.initialize(this, s, 0, -1, null, null);
187573
- }, r.inherits(proto.viam.service.slam.v1.GetInternalStateStreamResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetInternalStateStreamResponse.displayName = "proto.viam.service.slam.v1.GetInternalStateStreamResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionRequest.prototype.toObject = function(s) {
187557
+ }, r.inherits(proto.viam.service.slam.v1.GetInternalStateResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetInternalStateResponse.displayName = "proto.viam.service.slam.v1.GetInternalStateResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionRequest.prototype.toObject = function(s) {
187574
187558
  return proto.viam.service.slam.v1.GetPositionRequest.toObject(s, this);
187575
187559
  }, proto.viam.service.slam.v1.GetPositionRequest.toObject = function(s, g) {
187576
- var l, u = {
187577
- name: e.Message.getFieldWithDefault(g, 1, ""),
187578
- extra: (l = g.getExtra()) && i.Struct.toObject(s, l)
187560
+ var l = {
187561
+ name: e.Message.getFieldWithDefault(g, 1, "")
187579
187562
  };
187580
- return s && (u.$jspbMessageInstance = g), u;
187563
+ return s && (l.$jspbMessageInstance = g), l;
187581
187564
  }), proto.viam.service.slam.v1.GetPositionRequest.deserializeBinary = function(s) {
187582
187565
  var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPositionRequest();
187583
187566
  return proto.viam.service.slam.v1.GetPositionRequest.deserializeBinaryFromReader(l, g);
@@ -187592,10 +187575,6 @@ var annotations_pb$m = {}, http_pb$m = {};
187592
187575
  );
187593
187576
  s.setName(u);
187594
187577
  break;
187595
- case 99:
187596
- var u = new i.Struct();
187597
- g.readMessage(u, i.Struct.deserializeBinaryFromReader), s.setExtra(u);
187598
- break;
187599
187578
  default:
187600
187579
  g.skipField();
187601
187580
  break;
@@ -187610,10 +187589,6 @@ var annotations_pb$m = {}, http_pb$m = {};
187610
187589
  l = s.getName(), l.length > 0 && g.writeString(
187611
187590
  1,
187612
187591
  l
187613
- ), l = s.getExtra(), l != null && g.writeMessage(
187614
- 99,
187615
- l,
187616
- i.Struct.serializeBinaryToWriter
187617
187592
  );
187618
187593
  }, proto.viam.service.slam.v1.GetPositionRequest.prototype.getName = function() {
187619
187594
  return (
@@ -187622,22 +187597,12 @@ var annotations_pb$m = {}, http_pb$m = {};
187622
187597
  );
187623
187598
  }, proto.viam.service.slam.v1.GetPositionRequest.prototype.setName = function(s) {
187624
187599
  return e.Message.setProto3StringField(this, 1, s);
187625
- }, proto.viam.service.slam.v1.GetPositionRequest.prototype.getExtra = function() {
187626
- return (
187627
- /** @type{?proto.google.protobuf.Struct} */
187628
- e.Message.getWrapperField(this, i.Struct, 99)
187629
- );
187630
- }, proto.viam.service.slam.v1.GetPositionRequest.prototype.setExtra = function(s) {
187631
- return e.Message.setWrapperField(this, 99, s);
187632
- }, proto.viam.service.slam.v1.GetPositionRequest.prototype.clearExtra = function() {
187633
- return this.setExtra(void 0);
187634
- }, proto.viam.service.slam.v1.GetPositionRequest.prototype.hasExtra = function() {
187635
- return e.Message.getField(this, 99) != null;
187636
187600
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionResponse.prototype.toObject = function(s) {
187637
187601
  return proto.viam.service.slam.v1.GetPositionResponse.toObject(s, this);
187638
187602
  }, proto.viam.service.slam.v1.GetPositionResponse.toObject = function(s, g) {
187639
187603
  var l, u = {
187640
- pose: (l = g.getPose()) && t.PoseInFrame.toObject(s, l),
187604
+ pose: (l = g.getPose()) && t.Pose.toObject(s, l),
187605
+ componentReference: e.Message.getFieldWithDefault(g, 2, ""),
187641
187606
  extra: (l = g.getExtra()) && i.Struct.toObject(s, l)
187642
187607
  };
187643
187608
  return s && (u.$jspbMessageInstance = g), u;
@@ -187645,343 +187610,6 @@ var annotations_pb$m = {}, http_pb$m = {};
187645
187610
  var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPositionResponse();
187646
187611
  return proto.viam.service.slam.v1.GetPositionResponse.deserializeBinaryFromReader(l, g);
187647
187612
  }, proto.viam.service.slam.v1.GetPositionResponse.deserializeBinaryFromReader = function(s, g) {
187648
- for (; g.nextField() && !g.isEndGroup(); ) {
187649
- var l = g.getFieldNumber();
187650
- switch (l) {
187651
- case 1:
187652
- var u = new t.PoseInFrame();
187653
- g.readMessage(u, t.PoseInFrame.deserializeBinaryFromReader), s.setPose(u);
187654
- break;
187655
- case 99:
187656
- var u = new i.Struct();
187657
- g.readMessage(u, i.Struct.deserializeBinaryFromReader), s.setExtra(u);
187658
- break;
187659
- default:
187660
- g.skipField();
187661
- break;
187662
- }
187663
- }
187664
- return s;
187665
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.serializeBinary = function() {
187666
- var s = new e.BinaryWriter();
187667
- return proto.viam.service.slam.v1.GetPositionResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
187668
- }, proto.viam.service.slam.v1.GetPositionResponse.serializeBinaryToWriter = function(s, g) {
187669
- var l = void 0;
187670
- l = s.getPose(), l != null && g.writeMessage(
187671
- 1,
187672
- l,
187673
- t.PoseInFrame.serializeBinaryToWriter
187674
- ), l = s.getExtra(), l != null && g.writeMessage(
187675
- 99,
187676
- l,
187677
- i.Struct.serializeBinaryToWriter
187678
- );
187679
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getPose = function() {
187680
- return (
187681
- /** @type{?proto.viam.common.v1.PoseInFrame} */
187682
- e.Message.getWrapperField(this, t.PoseInFrame, 1)
187683
- );
187684
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.setPose = function(s) {
187685
- return e.Message.setWrapperField(this, 1, s);
187686
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.clearPose = function() {
187687
- return this.setPose(void 0);
187688
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.hasPose = function() {
187689
- return e.Message.getField(this, 1) != null;
187690
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getExtra = function() {
187691
- return (
187692
- /** @type{?proto.google.protobuf.Struct} */
187693
- e.Message.getWrapperField(this, i.Struct, 99)
187694
- );
187695
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.setExtra = function(s) {
187696
- return e.Message.setWrapperField(this, 99, s);
187697
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.clearExtra = function() {
187698
- return this.setExtra(void 0);
187699
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.hasExtra = function() {
187700
- return e.Message.getField(this, 99) != null;
187701
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetMapRequest.prototype.toObject = function(s) {
187702
- return proto.viam.service.slam.v1.GetMapRequest.toObject(s, this);
187703
- }, proto.viam.service.slam.v1.GetMapRequest.toObject = function(s, g) {
187704
- var l, u = {
187705
- name: e.Message.getFieldWithDefault(g, 1, ""),
187706
- mimeType: e.Message.getFieldWithDefault(g, 2, ""),
187707
- cameraPosition: (l = g.getCameraPosition()) && t.Pose.toObject(s, l),
187708
- includeRobotMarker: e.Message.getBooleanFieldWithDefault(g, 4, !1),
187709
- extra: (l = g.getExtra()) && i.Struct.toObject(s, l)
187710
- };
187711
- return s && (u.$jspbMessageInstance = g), u;
187712
- }), proto.viam.service.slam.v1.GetMapRequest.deserializeBinary = function(s) {
187713
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetMapRequest();
187714
- return proto.viam.service.slam.v1.GetMapRequest.deserializeBinaryFromReader(l, g);
187715
- }, proto.viam.service.slam.v1.GetMapRequest.deserializeBinaryFromReader = function(s, g) {
187716
- for (; g.nextField() && !g.isEndGroup(); ) {
187717
- var l = g.getFieldNumber();
187718
- switch (l) {
187719
- case 1:
187720
- var u = (
187721
- /** @type {string} */
187722
- g.readString()
187723
- );
187724
- s.setName(u);
187725
- break;
187726
- case 2:
187727
- var u = (
187728
- /** @type {string} */
187729
- g.readString()
187730
- );
187731
- s.setMimeType(u);
187732
- break;
187733
- case 3:
187734
- var u = new t.Pose();
187735
- g.readMessage(u, t.Pose.deserializeBinaryFromReader), s.setCameraPosition(u);
187736
- break;
187737
- case 4:
187738
- var u = (
187739
- /** @type {boolean} */
187740
- g.readBool()
187741
- );
187742
- s.setIncludeRobotMarker(u);
187743
- break;
187744
- case 99:
187745
- var u = new i.Struct();
187746
- g.readMessage(u, i.Struct.deserializeBinaryFromReader), s.setExtra(u);
187747
- break;
187748
- default:
187749
- g.skipField();
187750
- break;
187751
- }
187752
- }
187753
- return s;
187754
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.serializeBinary = function() {
187755
- var s = new e.BinaryWriter();
187756
- return proto.viam.service.slam.v1.GetMapRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
187757
- }, proto.viam.service.slam.v1.GetMapRequest.serializeBinaryToWriter = function(s, g) {
187758
- var l = void 0;
187759
- l = s.getName(), l.length > 0 && g.writeString(
187760
- 1,
187761
- l
187762
- ), l = s.getMimeType(), l.length > 0 && g.writeString(
187763
- 2,
187764
- l
187765
- ), l = s.getCameraPosition(), l != null && g.writeMessage(
187766
- 3,
187767
- l,
187768
- t.Pose.serializeBinaryToWriter
187769
- ), l = s.getIncludeRobotMarker(), l && g.writeBool(
187770
- 4,
187771
- l
187772
- ), l = s.getExtra(), l != null && g.writeMessage(
187773
- 99,
187774
- l,
187775
- i.Struct.serializeBinaryToWriter
187776
- );
187777
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getName = function() {
187778
- return (
187779
- /** @type {string} */
187780
- e.Message.getFieldWithDefault(this, 1, "")
187781
- );
187782
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setName = function(s) {
187783
- return e.Message.setProto3StringField(this, 1, s);
187784
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getMimeType = function() {
187785
- return (
187786
- /** @type {string} */
187787
- e.Message.getFieldWithDefault(this, 2, "")
187788
- );
187789
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setMimeType = function(s) {
187790
- return e.Message.setProto3StringField(this, 2, s);
187791
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getCameraPosition = function() {
187792
- return (
187793
- /** @type{?proto.viam.common.v1.Pose} */
187794
- e.Message.getWrapperField(this, t.Pose, 3)
187795
- );
187796
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setCameraPosition = function(s) {
187797
- return e.Message.setWrapperField(this, 3, s);
187798
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.clearCameraPosition = function() {
187799
- return this.setCameraPosition(void 0);
187800
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.hasCameraPosition = function() {
187801
- return e.Message.getField(this, 3) != null;
187802
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getIncludeRobotMarker = function() {
187803
- return (
187804
- /** @type {boolean} */
187805
- e.Message.getBooleanFieldWithDefault(this, 4, !1)
187806
- );
187807
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setIncludeRobotMarker = function(s) {
187808
- return e.Message.setProto3BooleanField(this, 4, s);
187809
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getExtra = function() {
187810
- return (
187811
- /** @type{?proto.google.protobuf.Struct} */
187812
- e.Message.getWrapperField(this, i.Struct, 99)
187813
- );
187814
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setExtra = function(s) {
187815
- return e.Message.setWrapperField(this, 99, s);
187816
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.clearExtra = function() {
187817
- return this.setExtra(void 0);
187818
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.hasExtra = function() {
187819
- return e.Message.getField(this, 99) != null;
187820
- }, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_ = [[1, 2]], proto.viam.service.slam.v1.GetMapResponse.MapCase = {
187821
- MAP_NOT_SET: 0,
187822
- POINT_CLOUD: 1,
187823
- IMAGE: 2
187824
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getMapCase = function() {
187825
- return (
187826
- /** @type {proto.viam.service.slam.v1.GetMapResponse.MapCase} */
187827
- e.Message.computeOneofCase(this, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_[0])
187828
- );
187829
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetMapResponse.prototype.toObject = function(s) {
187830
- return proto.viam.service.slam.v1.GetMapResponse.toObject(s, this);
187831
- }, proto.viam.service.slam.v1.GetMapResponse.toObject = function(s, g) {
187832
- var l, u = {
187833
- pointCloud: (l = g.getPointCloud()) && t.PointCloudObject.toObject(s, l),
187834
- image: g.getImage_asB64(),
187835
- mimeType: e.Message.getFieldWithDefault(g, 3, "")
187836
- };
187837
- return s && (u.$jspbMessageInstance = g), u;
187838
- }), proto.viam.service.slam.v1.GetMapResponse.deserializeBinary = function(s) {
187839
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetMapResponse();
187840
- return proto.viam.service.slam.v1.GetMapResponse.deserializeBinaryFromReader(l, g);
187841
- }, proto.viam.service.slam.v1.GetMapResponse.deserializeBinaryFromReader = function(s, g) {
187842
- for (; g.nextField() && !g.isEndGroup(); ) {
187843
- var l = g.getFieldNumber();
187844
- switch (l) {
187845
- case 1:
187846
- var u = new t.PointCloudObject();
187847
- g.readMessage(u, t.PointCloudObject.deserializeBinaryFromReader), s.setPointCloud(u);
187848
- break;
187849
- case 2:
187850
- var u = (
187851
- /** @type {!Uint8Array} */
187852
- g.readBytes()
187853
- );
187854
- s.setImage(u);
187855
- break;
187856
- case 3:
187857
- var u = (
187858
- /** @type {string} */
187859
- g.readString()
187860
- );
187861
- s.setMimeType(u);
187862
- break;
187863
- default:
187864
- g.skipField();
187865
- break;
187866
- }
187867
- }
187868
- return s;
187869
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.serializeBinary = function() {
187870
- var s = new e.BinaryWriter();
187871
- return proto.viam.service.slam.v1.GetMapResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
187872
- }, proto.viam.service.slam.v1.GetMapResponse.serializeBinaryToWriter = function(s, g) {
187873
- var l = void 0;
187874
- l = s.getPointCloud(), l != null && g.writeMessage(
187875
- 1,
187876
- l,
187877
- t.PointCloudObject.serializeBinaryToWriter
187878
- ), l = /** @type {!(string|Uint8Array)} */
187879
- e.Message.getField(s, 2), l != null && g.writeBytes(
187880
- 2,
187881
- l
187882
- ), l = s.getMimeType(), l.length > 0 && g.writeString(
187883
- 3,
187884
- l
187885
- );
187886
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getPointCloud = function() {
187887
- return (
187888
- /** @type{?proto.viam.common.v1.PointCloudObject} */
187889
- e.Message.getWrapperField(this, t.PointCloudObject, 1)
187890
- );
187891
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.setPointCloud = function(s) {
187892
- return e.Message.setOneofWrapperField(this, 1, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_[0], s);
187893
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.clearPointCloud = function() {
187894
- return this.setPointCloud(void 0);
187895
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.hasPointCloud = function() {
187896
- return e.Message.getField(this, 1) != null;
187897
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getImage = function() {
187898
- return (
187899
- /** @type {string} */
187900
- e.Message.getFieldWithDefault(this, 2, "")
187901
- );
187902
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getImage_asB64 = function() {
187903
- return (
187904
- /** @type {string} */
187905
- e.Message.bytesAsB64(
187906
- this.getImage()
187907
- )
187908
- );
187909
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getImage_asU8 = function() {
187910
- return (
187911
- /** @type {!Uint8Array} */
187912
- e.Message.bytesAsU8(
187913
- this.getImage()
187914
- )
187915
- );
187916
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.setImage = function(s) {
187917
- return e.Message.setOneofField(this, 2, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_[0], s);
187918
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.clearImage = function() {
187919
- return e.Message.setOneofField(this, 2, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_[0], void 0);
187920
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.hasImage = function() {
187921
- return e.Message.getField(this, 2) != null;
187922
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getMimeType = function() {
187923
- return (
187924
- /** @type {string} */
187925
- e.Message.getFieldWithDefault(this, 3, "")
187926
- );
187927
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.setMimeType = function(s) {
187928
- return e.Message.setProto3StringField(this, 3, s);
187929
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionNewRequest.prototype.toObject = function(s) {
187930
- return proto.viam.service.slam.v1.GetPositionNewRequest.toObject(s, this);
187931
- }, proto.viam.service.slam.v1.GetPositionNewRequest.toObject = function(s, g) {
187932
- var l = {
187933
- name: e.Message.getFieldWithDefault(g, 1, "")
187934
- };
187935
- return s && (l.$jspbMessageInstance = g), l;
187936
- }), proto.viam.service.slam.v1.GetPositionNewRequest.deserializeBinary = function(s) {
187937
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPositionNewRequest();
187938
- return proto.viam.service.slam.v1.GetPositionNewRequest.deserializeBinaryFromReader(l, g);
187939
- }, proto.viam.service.slam.v1.GetPositionNewRequest.deserializeBinaryFromReader = function(s, g) {
187940
- for (; g.nextField() && !g.isEndGroup(); ) {
187941
- var l = g.getFieldNumber();
187942
- switch (l) {
187943
- case 1:
187944
- var u = (
187945
- /** @type {string} */
187946
- g.readString()
187947
- );
187948
- s.setName(u);
187949
- break;
187950
- default:
187951
- g.skipField();
187952
- break;
187953
- }
187954
- }
187955
- return s;
187956
- }, proto.viam.service.slam.v1.GetPositionNewRequest.prototype.serializeBinary = function() {
187957
- var s = new e.BinaryWriter();
187958
- return proto.viam.service.slam.v1.GetPositionNewRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
187959
- }, proto.viam.service.slam.v1.GetPositionNewRequest.serializeBinaryToWriter = function(s, g) {
187960
- var l = void 0;
187961
- l = s.getName(), l.length > 0 && g.writeString(
187962
- 1,
187963
- l
187964
- );
187965
- }, proto.viam.service.slam.v1.GetPositionNewRequest.prototype.getName = function() {
187966
- return (
187967
- /** @type {string} */
187968
- e.Message.getFieldWithDefault(this, 1, "")
187969
- );
187970
- }, proto.viam.service.slam.v1.GetPositionNewRequest.prototype.setName = function(s) {
187971
- return e.Message.setProto3StringField(this, 1, s);
187972
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionNewResponse.prototype.toObject = function(s) {
187973
- return proto.viam.service.slam.v1.GetPositionNewResponse.toObject(s, this);
187974
- }, proto.viam.service.slam.v1.GetPositionNewResponse.toObject = function(s, g) {
187975
- var l, u = {
187976
- pose: (l = g.getPose()) && t.Pose.toObject(s, l),
187977
- componentReference: e.Message.getFieldWithDefault(g, 2, ""),
187978
- extra: (l = g.getExtra()) && i.Struct.toObject(s, l)
187979
- };
187980
- return s && (u.$jspbMessageInstance = g), u;
187981
- }), proto.viam.service.slam.v1.GetPositionNewResponse.deserializeBinary = function(s) {
187982
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPositionNewResponse();
187983
- return proto.viam.service.slam.v1.GetPositionNewResponse.deserializeBinaryFromReader(l, g);
187984
- }, proto.viam.service.slam.v1.GetPositionNewResponse.deserializeBinaryFromReader = function(s, g) {
187985
187613
  for (; g.nextField() && !g.isEndGroup(); ) {
187986
187614
  var l = g.getFieldNumber();
187987
187615
  switch (l) {
@@ -188006,10 +187634,10 @@ var annotations_pb$m = {}, http_pb$m = {};
188006
187634
  }
188007
187635
  }
188008
187636
  return s;
188009
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.serializeBinary = function() {
187637
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.serializeBinary = function() {
188010
187638
  var s = new e.BinaryWriter();
188011
- return proto.viam.service.slam.v1.GetPositionNewResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
188012
- }, proto.viam.service.slam.v1.GetPositionNewResponse.serializeBinaryToWriter = function(s, g) {
187639
+ return proto.viam.service.slam.v1.GetPositionResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
187640
+ }, proto.viam.service.slam.v1.GetPositionResponse.serializeBinaryToWriter = function(s, g) {
188013
187641
  var l = void 0;
188014
187642
  l = s.getPose(), l != null && g.writeMessage(
188015
187643
  1,
@@ -188023,34 +187651,34 @@ var annotations_pb$m = {}, http_pb$m = {};
188023
187651
  l,
188024
187652
  i.Struct.serializeBinaryToWriter
188025
187653
  );
188026
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.getPose = function() {
187654
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getPose = function() {
188027
187655
  return (
188028
187656
  /** @type{?proto.viam.common.v1.Pose} */
188029
187657
  e.Message.getWrapperField(this, t.Pose, 1)
188030
187658
  );
188031
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.setPose = function(s) {
187659
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.setPose = function(s) {
188032
187660
  return e.Message.setWrapperField(this, 1, s);
188033
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.clearPose = function() {
187661
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.clearPose = function() {
188034
187662
  return this.setPose(void 0);
188035
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.hasPose = function() {
187663
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.hasPose = function() {
188036
187664
  return e.Message.getField(this, 1) != null;
188037
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.getComponentReference = function() {
187665
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getComponentReference = function() {
188038
187666
  return (
188039
187667
  /** @type {string} */
188040
187668
  e.Message.getFieldWithDefault(this, 2, "")
188041
187669
  );
188042
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.setComponentReference = function(s) {
187670
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.setComponentReference = function(s) {
188043
187671
  return e.Message.setProto3StringField(this, 2, s);
188044
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.getExtra = function() {
187672
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getExtra = function() {
188045
187673
  return (
188046
187674
  /** @type{?proto.google.protobuf.Struct} */
188047
187675
  e.Message.getWrapperField(this, i.Struct, 99)
188048
187676
  );
188049
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.setExtra = function(s) {
187677
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.setExtra = function(s) {
188050
187678
  return e.Message.setWrapperField(this, 99, s);
188051
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.clearExtra = function() {
187679
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.clearExtra = function() {
188052
187680
  return this.setExtra(void 0);
188053
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.hasExtra = function() {
187681
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.hasExtra = function() {
188054
187682
  return e.Message.getField(this, 99) != null;
188055
187683
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.toObject = function(s) {
188056
187684
  return proto.viam.service.slam.v1.GetPointCloudMapRequest.toObject(s, this);
@@ -188099,7 +187727,7 @@ var annotations_pb$m = {}, http_pb$m = {};
188099
187727
  return proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject(s, this);
188100
187728
  }, proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject = function(s, g) {
188101
187729
  var l = {
188102
- pointCloudPcd: g.getPointCloudPcd_asB64()
187730
+ pointCloudPcdChunk: g.getPointCloudPcdChunk_asB64()
188103
187731
  };
188104
187732
  return s && (l.$jspbMessageInstance = g), l;
188105
187733
  }), proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinary = function(s) {
@@ -188114,7 +187742,7 @@ var annotations_pb$m = {}, http_pb$m = {};
188114
187742
  /** @type {!Uint8Array} */
188115
187743
  g.readBytes()
188116
187744
  );
188117
- s.setPointCloudPcd(u);
187745
+ s.setPointCloudPcdChunk(u);
188118
187746
  break;
188119
187747
  default:
188120
187748
  g.skipField();
@@ -188127,30 +187755,30 @@ var annotations_pb$m = {}, http_pb$m = {};
188127
187755
  return proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
188128
187756
  }, proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter = function(s, g) {
188129
187757
  var l = void 0;
188130
- l = s.getPointCloudPcd_asU8(), l.length > 0 && g.writeBytes(
187758
+ l = s.getPointCloudPcdChunk_asU8(), l.length > 0 && g.writeBytes(
188131
187759
  1,
188132
187760
  l
188133
187761
  );
188134
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcd = function() {
187762
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcdChunk = function() {
188135
187763
  return (
188136
187764
  /** @type {string} */
188137
187765
  e.Message.getFieldWithDefault(this, 1, "")
188138
187766
  );
188139
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcd_asB64 = function() {
187767
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcdChunk_asB64 = function() {
188140
187768
  return (
188141
187769
  /** @type {string} */
188142
187770
  e.Message.bytesAsB64(
188143
- this.getPointCloudPcd()
187771
+ this.getPointCloudPcdChunk()
188144
187772
  )
188145
187773
  );
188146
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcd_asU8 = function() {
187774
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcdChunk_asU8 = function() {
188147
187775
  return (
188148
187776
  /** @type {!Uint8Array} */
188149
187777
  e.Message.bytesAsU8(
188150
- this.getPointCloudPcd()
187778
+ this.getPointCloudPcdChunk()
188151
187779
  )
188152
187780
  );
188153
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.setPointCloudPcd = function(s) {
187781
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.setPointCloudPcdChunk = function(s) {
188154
187782
  return e.Message.setProto3BytesField(this, 1, s);
188155
187783
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateRequest.prototype.toObject = function(s) {
188156
187784
  return proto.viam.service.slam.v1.GetInternalStateRequest.toObject(s, this);
@@ -188199,7 +187827,7 @@ var annotations_pb$m = {}, http_pb$m = {};
188199
187827
  return proto.viam.service.slam.v1.GetInternalStateResponse.toObject(s, this);
188200
187828
  }, proto.viam.service.slam.v1.GetInternalStateResponse.toObject = function(s, g) {
188201
187829
  var l = {
188202
- internalState: g.getInternalState_asB64()
187830
+ internalStateChunk: g.getInternalStateChunk_asB64()
188203
187831
  };
188204
187832
  return s && (l.$jspbMessageInstance = g), l;
188205
187833
  }), proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinary = function(s) {
@@ -188214,7 +187842,7 @@ var annotations_pb$m = {}, http_pb$m = {};
188214
187842
  /** @type {!Uint8Array} */
188215
187843
  g.readBytes()
188216
187844
  );
188217
- s.setInternalState(u);
187845
+ s.setInternalStateChunk(u);
188218
187846
  break;
188219
187847
  default:
188220
187848
  g.skipField();
@@ -188226,231 +187854,31 @@ var annotations_pb$m = {}, http_pb$m = {};
188226
187854
  var s = new e.BinaryWriter();
188227
187855
  return proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
188228
187856
  }, proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter = function(s, g) {
188229
- var l = void 0;
188230
- l = s.getInternalState_asU8(), l.length > 0 && g.writeBytes(
188231
- 1,
188232
- l
188233
- );
188234
- }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalState = function() {
188235
- return (
188236
- /** @type {string} */
188237
- e.Message.getFieldWithDefault(this, 1, "")
188238
- );
188239
- }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalState_asB64 = function() {
188240
- return (
188241
- /** @type {string} */
188242
- e.Message.bytesAsB64(
188243
- this.getInternalState()
188244
- )
188245
- );
188246
- }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalState_asU8 = function() {
188247
- return (
188248
- /** @type {!Uint8Array} */
188249
- e.Message.bytesAsU8(
188250
- this.getInternalState()
188251
- )
188252
- );
188253
- }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.setInternalState = function(s) {
188254
- return e.Message.setProto3BytesField(this, 1, s);
188255
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.prototype.toObject = function(s) {
188256
- return proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.toObject(s, this);
188257
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.toObject = function(s, g) {
188258
- var l = {
188259
- name: e.Message.getFieldWithDefault(g, 1, "")
188260
- };
188261
- return s && (l.$jspbMessageInstance = g), l;
188262
- }), proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.deserializeBinary = function(s) {
188263
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPointCloudMapStreamRequest();
188264
- return proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.deserializeBinaryFromReader(l, g);
188265
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.deserializeBinaryFromReader = function(s, g) {
188266
- for (; g.nextField() && !g.isEndGroup(); ) {
188267
- var l = g.getFieldNumber();
188268
- switch (l) {
188269
- case 1:
188270
- var u = (
188271
- /** @type {string} */
188272
- g.readString()
188273
- );
188274
- s.setName(u);
188275
- break;
188276
- default:
188277
- g.skipField();
188278
- break;
188279
- }
188280
- }
188281
- return s;
188282
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.prototype.serializeBinary = function() {
188283
- var s = new e.BinaryWriter();
188284
- return proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
188285
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.serializeBinaryToWriter = function(s, g) {
188286
- var l = void 0;
188287
- l = s.getName(), l.length > 0 && g.writeString(
188288
- 1,
188289
- l
188290
- );
188291
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.prototype.getName = function() {
188292
- return (
188293
- /** @type {string} */
188294
- e.Message.getFieldWithDefault(this, 1, "")
188295
- );
188296
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.prototype.setName = function(s) {
188297
- return e.Message.setProto3StringField(this, 1, s);
188298
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.prototype.toObject = function(s) {
188299
- return proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.toObject(s, this);
188300
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.toObject = function(s, g) {
188301
- var l = {
188302
- pointCloudPcdChunk: g.getPointCloudPcdChunk_asB64()
188303
- };
188304
- return s && (l.$jspbMessageInstance = g), l;
188305
- }), proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.deserializeBinary = function(s) {
188306
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPointCloudMapStreamResponse();
188307
- return proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.deserializeBinaryFromReader(l, g);
188308
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.deserializeBinaryFromReader = function(s, g) {
188309
- for (; g.nextField() && !g.isEndGroup(); ) {
188310
- var l = g.getFieldNumber();
188311
- switch (l) {
188312
- case 1:
188313
- var u = (
188314
- /** @type {!Uint8Array} */
188315
- g.readBytes()
188316
- );
188317
- s.setPointCloudPcdChunk(u);
188318
- break;
188319
- default:
188320
- g.skipField();
188321
- break;
188322
- }
188323
- }
188324
- return s;
188325
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.prototype.serializeBinary = function() {
188326
- var s = new e.BinaryWriter();
188327
- return proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
188328
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.serializeBinaryToWriter = function(s, g) {
188329
- var l = void 0;
188330
- l = s.getPointCloudPcdChunk_asU8(), l.length > 0 && g.writeBytes(
188331
- 1,
188332
- l
188333
- );
188334
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.prototype.getPointCloudPcdChunk = function() {
188335
- return (
188336
- /** @type {string} */
188337
- e.Message.getFieldWithDefault(this, 1, "")
188338
- );
188339
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.prototype.getPointCloudPcdChunk_asB64 = function() {
188340
- return (
188341
- /** @type {string} */
188342
- e.Message.bytesAsB64(
188343
- this.getPointCloudPcdChunk()
188344
- )
188345
- );
188346
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.prototype.getPointCloudPcdChunk_asU8 = function() {
188347
- return (
188348
- /** @type {!Uint8Array} */
188349
- e.Message.bytesAsU8(
188350
- this.getPointCloudPcdChunk()
188351
- )
188352
- );
188353
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.prototype.setPointCloudPcdChunk = function(s) {
188354
- return e.Message.setProto3BytesField(this, 1, s);
188355
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateStreamRequest.prototype.toObject = function(s) {
188356
- return proto.viam.service.slam.v1.GetInternalStateStreamRequest.toObject(s, this);
188357
- }, proto.viam.service.slam.v1.GetInternalStateStreamRequest.toObject = function(s, g) {
188358
- var l = {
188359
- name: e.Message.getFieldWithDefault(g, 1, "")
188360
- };
188361
- return s && (l.$jspbMessageInstance = g), l;
188362
- }), proto.viam.service.slam.v1.GetInternalStateStreamRequest.deserializeBinary = function(s) {
188363
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetInternalStateStreamRequest();
188364
- return proto.viam.service.slam.v1.GetInternalStateStreamRequest.deserializeBinaryFromReader(l, g);
188365
- }, proto.viam.service.slam.v1.GetInternalStateStreamRequest.deserializeBinaryFromReader = function(s, g) {
188366
- for (; g.nextField() && !g.isEndGroup(); ) {
188367
- var l = g.getFieldNumber();
188368
- switch (l) {
188369
- case 1:
188370
- var u = (
188371
- /** @type {string} */
188372
- g.readString()
188373
- );
188374
- s.setName(u);
188375
- break;
188376
- default:
188377
- g.skipField();
188378
- break;
188379
- }
188380
- }
188381
- return s;
188382
- }, proto.viam.service.slam.v1.GetInternalStateStreamRequest.prototype.serializeBinary = function() {
188383
- var s = new e.BinaryWriter();
188384
- return proto.viam.service.slam.v1.GetInternalStateStreamRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
188385
- }, proto.viam.service.slam.v1.GetInternalStateStreamRequest.serializeBinaryToWriter = function(s, g) {
188386
- var l = void 0;
188387
- l = s.getName(), l.length > 0 && g.writeString(
188388
- 1,
188389
- l
188390
- );
188391
- }, proto.viam.service.slam.v1.GetInternalStateStreamRequest.prototype.getName = function() {
188392
- return (
188393
- /** @type {string} */
188394
- e.Message.getFieldWithDefault(this, 1, "")
188395
- );
188396
- }, proto.viam.service.slam.v1.GetInternalStateStreamRequest.prototype.setName = function(s) {
188397
- return e.Message.setProto3StringField(this, 1, s);
188398
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateStreamResponse.prototype.toObject = function(s) {
188399
- return proto.viam.service.slam.v1.GetInternalStateStreamResponse.toObject(s, this);
188400
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.toObject = function(s, g) {
188401
- var l = {
188402
- internalStateChunk: g.getInternalStateChunk_asB64()
188403
- };
188404
- return s && (l.$jspbMessageInstance = g), l;
188405
- }), proto.viam.service.slam.v1.GetInternalStateStreamResponse.deserializeBinary = function(s) {
188406
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetInternalStateStreamResponse();
188407
- return proto.viam.service.slam.v1.GetInternalStateStreamResponse.deserializeBinaryFromReader(l, g);
188408
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.deserializeBinaryFromReader = function(s, g) {
188409
- for (; g.nextField() && !g.isEndGroup(); ) {
188410
- var l = g.getFieldNumber();
188411
- switch (l) {
188412
- case 1:
188413
- var u = (
188414
- /** @type {!Uint8Array} */
188415
- g.readBytes()
188416
- );
188417
- s.setInternalStateChunk(u);
188418
- break;
188419
- default:
188420
- g.skipField();
188421
- break;
188422
- }
188423
- }
188424
- return s;
188425
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.prototype.serializeBinary = function() {
188426
- var s = new e.BinaryWriter();
188427
- return proto.viam.service.slam.v1.GetInternalStateStreamResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
188428
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.serializeBinaryToWriter = function(s, g) {
188429
187857
  var l = void 0;
188430
187858
  l = s.getInternalStateChunk_asU8(), l.length > 0 && g.writeBytes(
188431
187859
  1,
188432
187860
  l
188433
187861
  );
188434
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.prototype.getInternalStateChunk = function() {
187862
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalStateChunk = function() {
188435
187863
  return (
188436
187864
  /** @type {string} */
188437
187865
  e.Message.getFieldWithDefault(this, 1, "")
188438
187866
  );
188439
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.prototype.getInternalStateChunk_asB64 = function() {
187867
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalStateChunk_asB64 = function() {
188440
187868
  return (
188441
187869
  /** @type {string} */
188442
187870
  e.Message.bytesAsB64(
188443
187871
  this.getInternalStateChunk()
188444
187872
  )
188445
187873
  );
188446
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.prototype.getInternalStateChunk_asU8 = function() {
187874
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalStateChunk_asU8 = function() {
188447
187875
  return (
188448
187876
  /** @type {!Uint8Array} */
188449
187877
  e.Message.bytesAsU8(
188450
187878
  this.getInternalStateChunk()
188451
187879
  )
188452
187880
  );
188453
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.prototype.setInternalStateChunk = function(s) {
187881
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.setInternalStateChunk = function(s) {
188454
187882
  return e.Message.setProto3BytesField(this, 1, s);
188455
187883
  }, r.object.extend(o, proto.viam.service.slam.v1);
188456
187884
  })(slam_pb$1);
@@ -189221,27 +188649,11 @@ SLAMService.GetPosition = {
189221
188649
  requestType: service_slam_v1_slam_pb.GetPositionRequest,
189222
188650
  responseType: service_slam_v1_slam_pb.GetPositionResponse
189223
188651
  };
189224
- SLAMService.GetMap = {
189225
- methodName: "GetMap",
189226
- service: SLAMService,
189227
- requestStream: !1,
189228
- responseStream: !1,
189229
- requestType: service_slam_v1_slam_pb.GetMapRequest,
189230
- responseType: service_slam_v1_slam_pb.GetMapResponse
189231
- };
189232
- SLAMService.GetPositionNew = {
189233
- methodName: "GetPositionNew",
189234
- service: SLAMService,
189235
- requestStream: !1,
189236
- responseStream: !1,
189237
- requestType: service_slam_v1_slam_pb.GetPositionNewRequest,
189238
- responseType: service_slam_v1_slam_pb.GetPositionNewResponse
189239
- };
189240
188652
  SLAMService.GetPointCloudMap = {
189241
188653
  methodName: "GetPointCloudMap",
189242
188654
  service: SLAMService,
189243
188655
  requestStream: !1,
189244
- responseStream: !1,
188656
+ responseStream: !0,
189245
188657
  requestType: service_slam_v1_slam_pb.GetPointCloudMapRequest,
189246
188658
  responseType: service_slam_v1_slam_pb.GetPointCloudMapResponse
189247
188659
  };
@@ -189249,26 +188661,10 @@ SLAMService.GetInternalState = {
189249
188661
  methodName: "GetInternalState",
189250
188662
  service: SLAMService,
189251
188663
  requestStream: !1,
189252
- responseStream: !1,
188664
+ responseStream: !0,
189253
188665
  requestType: service_slam_v1_slam_pb.GetInternalStateRequest,
189254
188666
  responseType: service_slam_v1_slam_pb.GetInternalStateResponse
189255
188667
  };
189256
- SLAMService.GetPointCloudMapStream = {
189257
- methodName: "GetPointCloudMapStream",
189258
- service: SLAMService,
189259
- requestStream: !1,
189260
- responseStream: !0,
189261
- requestType: service_slam_v1_slam_pb.GetPointCloudMapStreamRequest,
189262
- responseType: service_slam_v1_slam_pb.GetPointCloudMapStreamResponse
189263
- };
189264
- SLAMService.GetInternalStateStream = {
189265
- methodName: "GetInternalStateStream",
189266
- service: SLAMService,
189267
- requestStream: !1,
189268
- responseStream: !0,
189269
- requestType: service_slam_v1_slam_pb.GetInternalStateStreamRequest,
189270
- responseType: service_slam_v1_slam_pb.GetInternalStateStreamResponse
189271
- };
189272
188668
  SLAMService.DoCommand = {
189273
188669
  methodName: "DoCommand",
189274
188670
  service: SLAMService,
@@ -189303,104 +188699,12 @@ SLAMServiceClient.prototype.getPosition = function o(e, r, p) {
189303
188699
  }
189304
188700
  };
189305
188701
  };
189306
- SLAMServiceClient.prototype.getMap = function o(e, r, p) {
189307
- arguments.length === 2 && (p = arguments[1]);
189308
- var t = grpc$6.unary(SLAMService.GetMap, {
189309
- request: e,
189310
- host: this.serviceHost,
189311
- metadata: r,
189312
- transport: this.options.transport,
189313
- debug: this.options.debug,
189314
- onEnd: function(n) {
189315
- if (p)
189316
- if (n.status !== grpc$6.Code.OK) {
189317
- var i = new Error(n.statusMessage);
189318
- i.code = n.status, i.metadata = n.trailers, p(i, null);
189319
- } else
189320
- p(null, n.message);
189321
- }
189322
- });
189323
- return {
189324
- cancel: function() {
189325
- p = null, t.close();
189326
- }
189327
- };
189328
- };
189329
- SLAMServiceClient.prototype.getPositionNew = function o(e, r, p) {
189330
- arguments.length === 2 && (p = arguments[1]);
189331
- var t = grpc$6.unary(SLAMService.GetPositionNew, {
189332
- request: e,
189333
- host: this.serviceHost,
189334
- metadata: r,
189335
- transport: this.options.transport,
189336
- debug: this.options.debug,
189337
- onEnd: function(n) {
189338
- if (p)
189339
- if (n.status !== grpc$6.Code.OK) {
189340
- var i = new Error(n.statusMessage);
189341
- i.code = n.status, i.metadata = n.trailers, p(i, null);
189342
- } else
189343
- p(null, n.message);
189344
- }
189345
- });
189346
- return {
189347
- cancel: function() {
189348
- p = null, t.close();
189349
- }
189350
- };
189351
- };
189352
- SLAMServiceClient.prototype.getPointCloudMap = function o(e, r, p) {
189353
- arguments.length === 2 && (p = arguments[1]);
189354
- var t = grpc$6.unary(SLAMService.GetPointCloudMap, {
189355
- request: e,
189356
- host: this.serviceHost,
189357
- metadata: r,
189358
- transport: this.options.transport,
189359
- debug: this.options.debug,
189360
- onEnd: function(n) {
189361
- if (p)
189362
- if (n.status !== grpc$6.Code.OK) {
189363
- var i = new Error(n.statusMessage);
189364
- i.code = n.status, i.metadata = n.trailers, p(i, null);
189365
- } else
189366
- p(null, n.message);
189367
- }
189368
- });
189369
- return {
189370
- cancel: function() {
189371
- p = null, t.close();
189372
- }
189373
- };
189374
- };
189375
- SLAMServiceClient.prototype.getInternalState = function o(e, r, p) {
189376
- arguments.length === 2 && (p = arguments[1]);
189377
- var t = grpc$6.unary(SLAMService.GetInternalState, {
189378
- request: e,
189379
- host: this.serviceHost,
189380
- metadata: r,
189381
- transport: this.options.transport,
189382
- debug: this.options.debug,
189383
- onEnd: function(n) {
189384
- if (p)
189385
- if (n.status !== grpc$6.Code.OK) {
189386
- var i = new Error(n.statusMessage);
189387
- i.code = n.status, i.metadata = n.trailers, p(i, null);
189388
- } else
189389
- p(null, n.message);
189390
- }
189391
- });
189392
- return {
189393
- cancel: function() {
189394
- p = null, t.close();
189395
- }
189396
- };
189397
- };
189398
- SLAMServiceClient.prototype.getPointCloudMapStream = function o(e, r) {
188702
+ SLAMServiceClient.prototype.getPointCloudMap = function o(e, r) {
189399
188703
  var p = {
189400
188704
  data: [],
189401
188705
  end: [],
189402
188706
  status: []
189403
- }, t = grpc$6.invoke(SLAMService.GetPointCloudMapStream, {
188707
+ }, t = grpc$6.invoke(SLAMService.GetPointCloudMap, {
189404
188708
  request: e,
189405
188709
  host: this.serviceHost,
189406
188710
  metadata: r,
@@ -189428,12 +188732,12 @@ SLAMServiceClient.prototype.getPointCloudMapStream = function o(e, r) {
189428
188732
  }
189429
188733
  };
189430
188734
  };
189431
- SLAMServiceClient.prototype.getInternalStateStream = function o(e, r) {
188735
+ SLAMServiceClient.prototype.getInternalState = function o(e, r) {
189432
188736
  var p = {
189433
188737
  data: [],
189434
188738
  end: [],
189435
188739
  status: []
189436
- }, t = grpc$6.invoke(SLAMService.GetInternalStateStream, {
188740
+ }, t = grpc$6.invoke(SLAMService.GetInternalState, {
189437
188741
  request: e,
189438
188742
  host: this.serviceHost,
189439
188743
  metadata: r,
@@ -400091,19 +399395,11 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400091
399395
  var n = annotations_pb$3;
400092
399396
  r.object.extend(proto, n);
400093
399397
  var i = struct_pb$4;
400094
- r.object.extend(proto, i), r.exportSymbol("proto.viam.service.slam.v1.GetInternalStateRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetInternalStateResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetInternalStateStreamRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetInternalStateStreamResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetMapRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetMapResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetMapResponse.MapCase", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPointCloudMapRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPointCloudMapResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPointCloudMapStreamRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPointCloudMapStreamResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPositionNewRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPositionNewResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPositionRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPositionResponse", null, p), proto.viam.service.slam.v1.GetPositionRequest = function(s) {
399398
+ r.object.extend(proto, i), r.exportSymbol("proto.viam.service.slam.v1.GetInternalStateRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetInternalStateResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPointCloudMapRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPointCloudMapResponse", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPositionRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetPositionResponse", null, p), proto.viam.service.slam.v1.GetPositionRequest = function(s) {
400095
399399
  e.Message.initialize(this, s, 0, -1, null, null);
400096
399400
  }, r.inherits(proto.viam.service.slam.v1.GetPositionRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPositionRequest.displayName = "proto.viam.service.slam.v1.GetPositionRequest"), proto.viam.service.slam.v1.GetPositionResponse = function(s) {
400097
399401
  e.Message.initialize(this, s, 0, -1, null, null);
400098
- }, r.inherits(proto.viam.service.slam.v1.GetPositionResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPositionResponse.displayName = "proto.viam.service.slam.v1.GetPositionResponse"), proto.viam.service.slam.v1.GetMapRequest = function(s) {
400099
- e.Message.initialize(this, s, 0, -1, null, null);
400100
- }, r.inherits(proto.viam.service.slam.v1.GetMapRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetMapRequest.displayName = "proto.viam.service.slam.v1.GetMapRequest"), proto.viam.service.slam.v1.GetMapResponse = function(s) {
400101
- e.Message.initialize(this, s, 0, -1, null, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_);
400102
- }, r.inherits(proto.viam.service.slam.v1.GetMapResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetMapResponse.displayName = "proto.viam.service.slam.v1.GetMapResponse"), proto.viam.service.slam.v1.GetPositionNewRequest = function(s) {
400103
- e.Message.initialize(this, s, 0, -1, null, null);
400104
- }, r.inherits(proto.viam.service.slam.v1.GetPositionNewRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPositionNewRequest.displayName = "proto.viam.service.slam.v1.GetPositionNewRequest"), proto.viam.service.slam.v1.GetPositionNewResponse = function(s) {
400105
- e.Message.initialize(this, s, 0, -1, null, null);
400106
- }, r.inherits(proto.viam.service.slam.v1.GetPositionNewResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPositionNewResponse.displayName = "proto.viam.service.slam.v1.GetPositionNewResponse"), proto.viam.service.slam.v1.GetPointCloudMapRequest = function(s) {
399402
+ }, r.inherits(proto.viam.service.slam.v1.GetPositionResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPositionResponse.displayName = "proto.viam.service.slam.v1.GetPositionResponse"), proto.viam.service.slam.v1.GetPointCloudMapRequest = function(s) {
400107
399403
  e.Message.initialize(this, s, 0, -1, null, null);
400108
399404
  }, r.inherits(proto.viam.service.slam.v1.GetPointCloudMapRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPointCloudMapRequest.displayName = "proto.viam.service.slam.v1.GetPointCloudMapRequest"), proto.viam.service.slam.v1.GetPointCloudMapResponse = function(s) {
400109
399405
  e.Message.initialize(this, s, 0, -1, null, null);
@@ -400111,22 +399407,13 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400111
399407
  e.Message.initialize(this, s, 0, -1, null, null);
400112
399408
  }, r.inherits(proto.viam.service.slam.v1.GetInternalStateRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetInternalStateRequest.displayName = "proto.viam.service.slam.v1.GetInternalStateRequest"), proto.viam.service.slam.v1.GetInternalStateResponse = function(s) {
400113
399409
  e.Message.initialize(this, s, 0, -1, null, null);
400114
- }, r.inherits(proto.viam.service.slam.v1.GetInternalStateResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetInternalStateResponse.displayName = "proto.viam.service.slam.v1.GetInternalStateResponse"), proto.viam.service.slam.v1.GetPointCloudMapStreamRequest = function(s) {
400115
- e.Message.initialize(this, s, 0, -1, null, null);
400116
- }, r.inherits(proto.viam.service.slam.v1.GetPointCloudMapStreamRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.displayName = "proto.viam.service.slam.v1.GetPointCloudMapStreamRequest"), proto.viam.service.slam.v1.GetPointCloudMapStreamResponse = function(s) {
400117
- e.Message.initialize(this, s, 0, -1, null, null);
400118
- }, r.inherits(proto.viam.service.slam.v1.GetPointCloudMapStreamResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.displayName = "proto.viam.service.slam.v1.GetPointCloudMapStreamResponse"), proto.viam.service.slam.v1.GetInternalStateStreamRequest = function(s) {
400119
- e.Message.initialize(this, s, 0, -1, null, null);
400120
- }, r.inherits(proto.viam.service.slam.v1.GetInternalStateStreamRequest, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetInternalStateStreamRequest.displayName = "proto.viam.service.slam.v1.GetInternalStateStreamRequest"), proto.viam.service.slam.v1.GetInternalStateStreamResponse = function(s) {
400121
- e.Message.initialize(this, s, 0, -1, null, null);
400122
- }, r.inherits(proto.viam.service.slam.v1.GetInternalStateStreamResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetInternalStateStreamResponse.displayName = "proto.viam.service.slam.v1.GetInternalStateStreamResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionRequest.prototype.toObject = function(s) {
399410
+ }, r.inherits(proto.viam.service.slam.v1.GetInternalStateResponse, e.Message), r.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetInternalStateResponse.displayName = "proto.viam.service.slam.v1.GetInternalStateResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionRequest.prototype.toObject = function(s) {
400123
399411
  return proto.viam.service.slam.v1.GetPositionRequest.toObject(s, this);
400124
399412
  }, proto.viam.service.slam.v1.GetPositionRequest.toObject = function(s, g) {
400125
- var l, u = {
400126
- name: e.Message.getFieldWithDefault(g, 1, ""),
400127
- extra: (l = g.getExtra()) && i.Struct.toObject(s, l)
399413
+ var l = {
399414
+ name: e.Message.getFieldWithDefault(g, 1, "")
400128
399415
  };
400129
- return s && (u.$jspbMessageInstance = g), u;
399416
+ return s && (l.$jspbMessageInstance = g), l;
400130
399417
  }), proto.viam.service.slam.v1.GetPositionRequest.deserializeBinary = function(s) {
400131
399418
  var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPositionRequest();
400132
399419
  return proto.viam.service.slam.v1.GetPositionRequest.deserializeBinaryFromReader(l, g);
@@ -400141,10 +399428,6 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400141
399428
  );
400142
399429
  s.setName(u);
400143
399430
  break;
400144
- case 99:
400145
- var u = new i.Struct();
400146
- g.readMessage(u, i.Struct.deserializeBinaryFromReader), s.setExtra(u);
400147
- break;
400148
399431
  default:
400149
399432
  g.skipField();
400150
399433
  break;
@@ -400159,10 +399442,6 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400159
399442
  l = s.getName(), l.length > 0 && g.writeString(
400160
399443
  1,
400161
399444
  l
400162
- ), l = s.getExtra(), l != null && g.writeMessage(
400163
- 99,
400164
- l,
400165
- i.Struct.serializeBinaryToWriter
400166
399445
  );
400167
399446
  }, proto.viam.service.slam.v1.GetPositionRequest.prototype.getName = function() {
400168
399447
  return (
@@ -400171,22 +399450,12 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400171
399450
  );
400172
399451
  }, proto.viam.service.slam.v1.GetPositionRequest.prototype.setName = function(s) {
400173
399452
  return e.Message.setProto3StringField(this, 1, s);
400174
- }, proto.viam.service.slam.v1.GetPositionRequest.prototype.getExtra = function() {
400175
- return (
400176
- /** @type{?proto.google.protobuf.Struct} */
400177
- e.Message.getWrapperField(this, i.Struct, 99)
400178
- );
400179
- }, proto.viam.service.slam.v1.GetPositionRequest.prototype.setExtra = function(s) {
400180
- return e.Message.setWrapperField(this, 99, s);
400181
- }, proto.viam.service.slam.v1.GetPositionRequest.prototype.clearExtra = function() {
400182
- return this.setExtra(void 0);
400183
- }, proto.viam.service.slam.v1.GetPositionRequest.prototype.hasExtra = function() {
400184
- return e.Message.getField(this, 99) != null;
400185
399453
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionResponse.prototype.toObject = function(s) {
400186
399454
  return proto.viam.service.slam.v1.GetPositionResponse.toObject(s, this);
400187
399455
  }, proto.viam.service.slam.v1.GetPositionResponse.toObject = function(s, g) {
400188
399456
  var l, u = {
400189
- pose: (l = g.getPose()) && t.PoseInFrame.toObject(s, l),
399457
+ pose: (l = g.getPose()) && t.Pose.toObject(s, l),
399458
+ componentReference: e.Message.getFieldWithDefault(g, 2, ""),
400190
399459
  extra: (l = g.getExtra()) && i.Struct.toObject(s, l)
400191
399460
  };
400192
399461
  return s && (u.$jspbMessageInstance = g), u;
@@ -400194,343 +399463,6 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400194
399463
  var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPositionResponse();
400195
399464
  return proto.viam.service.slam.v1.GetPositionResponse.deserializeBinaryFromReader(l, g);
400196
399465
  }, proto.viam.service.slam.v1.GetPositionResponse.deserializeBinaryFromReader = function(s, g) {
400197
- for (; g.nextField() && !g.isEndGroup(); ) {
400198
- var l = g.getFieldNumber();
400199
- switch (l) {
400200
- case 1:
400201
- var u = new t.PoseInFrame();
400202
- g.readMessage(u, t.PoseInFrame.deserializeBinaryFromReader), s.setPose(u);
400203
- break;
400204
- case 99:
400205
- var u = new i.Struct();
400206
- g.readMessage(u, i.Struct.deserializeBinaryFromReader), s.setExtra(u);
400207
- break;
400208
- default:
400209
- g.skipField();
400210
- break;
400211
- }
400212
- }
400213
- return s;
400214
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.serializeBinary = function() {
400215
- var s = new e.BinaryWriter();
400216
- return proto.viam.service.slam.v1.GetPositionResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
400217
- }, proto.viam.service.slam.v1.GetPositionResponse.serializeBinaryToWriter = function(s, g) {
400218
- var l = void 0;
400219
- l = s.getPose(), l != null && g.writeMessage(
400220
- 1,
400221
- l,
400222
- t.PoseInFrame.serializeBinaryToWriter
400223
- ), l = s.getExtra(), l != null && g.writeMessage(
400224
- 99,
400225
- l,
400226
- i.Struct.serializeBinaryToWriter
400227
- );
400228
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getPose = function() {
400229
- return (
400230
- /** @type{?proto.viam.common.v1.PoseInFrame} */
400231
- e.Message.getWrapperField(this, t.PoseInFrame, 1)
400232
- );
400233
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.setPose = function(s) {
400234
- return e.Message.setWrapperField(this, 1, s);
400235
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.clearPose = function() {
400236
- return this.setPose(void 0);
400237
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.hasPose = function() {
400238
- return e.Message.getField(this, 1) != null;
400239
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getExtra = function() {
400240
- return (
400241
- /** @type{?proto.google.protobuf.Struct} */
400242
- e.Message.getWrapperField(this, i.Struct, 99)
400243
- );
400244
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.setExtra = function(s) {
400245
- return e.Message.setWrapperField(this, 99, s);
400246
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.clearExtra = function() {
400247
- return this.setExtra(void 0);
400248
- }, proto.viam.service.slam.v1.GetPositionResponse.prototype.hasExtra = function() {
400249
- return e.Message.getField(this, 99) != null;
400250
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetMapRequest.prototype.toObject = function(s) {
400251
- return proto.viam.service.slam.v1.GetMapRequest.toObject(s, this);
400252
- }, proto.viam.service.slam.v1.GetMapRequest.toObject = function(s, g) {
400253
- var l, u = {
400254
- name: e.Message.getFieldWithDefault(g, 1, ""),
400255
- mimeType: e.Message.getFieldWithDefault(g, 2, ""),
400256
- cameraPosition: (l = g.getCameraPosition()) && t.Pose.toObject(s, l),
400257
- includeRobotMarker: e.Message.getBooleanFieldWithDefault(g, 4, !1),
400258
- extra: (l = g.getExtra()) && i.Struct.toObject(s, l)
400259
- };
400260
- return s && (u.$jspbMessageInstance = g), u;
400261
- }), proto.viam.service.slam.v1.GetMapRequest.deserializeBinary = function(s) {
400262
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetMapRequest();
400263
- return proto.viam.service.slam.v1.GetMapRequest.deserializeBinaryFromReader(l, g);
400264
- }, proto.viam.service.slam.v1.GetMapRequest.deserializeBinaryFromReader = function(s, g) {
400265
- for (; g.nextField() && !g.isEndGroup(); ) {
400266
- var l = g.getFieldNumber();
400267
- switch (l) {
400268
- case 1:
400269
- var u = (
400270
- /** @type {string} */
400271
- g.readString()
400272
- );
400273
- s.setName(u);
400274
- break;
400275
- case 2:
400276
- var u = (
400277
- /** @type {string} */
400278
- g.readString()
400279
- );
400280
- s.setMimeType(u);
400281
- break;
400282
- case 3:
400283
- var u = new t.Pose();
400284
- g.readMessage(u, t.Pose.deserializeBinaryFromReader), s.setCameraPosition(u);
400285
- break;
400286
- case 4:
400287
- var u = (
400288
- /** @type {boolean} */
400289
- g.readBool()
400290
- );
400291
- s.setIncludeRobotMarker(u);
400292
- break;
400293
- case 99:
400294
- var u = new i.Struct();
400295
- g.readMessage(u, i.Struct.deserializeBinaryFromReader), s.setExtra(u);
400296
- break;
400297
- default:
400298
- g.skipField();
400299
- break;
400300
- }
400301
- }
400302
- return s;
400303
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.serializeBinary = function() {
400304
- var s = new e.BinaryWriter();
400305
- return proto.viam.service.slam.v1.GetMapRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
400306
- }, proto.viam.service.slam.v1.GetMapRequest.serializeBinaryToWriter = function(s, g) {
400307
- var l = void 0;
400308
- l = s.getName(), l.length > 0 && g.writeString(
400309
- 1,
400310
- l
400311
- ), l = s.getMimeType(), l.length > 0 && g.writeString(
400312
- 2,
400313
- l
400314
- ), l = s.getCameraPosition(), l != null && g.writeMessage(
400315
- 3,
400316
- l,
400317
- t.Pose.serializeBinaryToWriter
400318
- ), l = s.getIncludeRobotMarker(), l && g.writeBool(
400319
- 4,
400320
- l
400321
- ), l = s.getExtra(), l != null && g.writeMessage(
400322
- 99,
400323
- l,
400324
- i.Struct.serializeBinaryToWriter
400325
- );
400326
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getName = function() {
400327
- return (
400328
- /** @type {string} */
400329
- e.Message.getFieldWithDefault(this, 1, "")
400330
- );
400331
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setName = function(s) {
400332
- return e.Message.setProto3StringField(this, 1, s);
400333
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getMimeType = function() {
400334
- return (
400335
- /** @type {string} */
400336
- e.Message.getFieldWithDefault(this, 2, "")
400337
- );
400338
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setMimeType = function(s) {
400339
- return e.Message.setProto3StringField(this, 2, s);
400340
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getCameraPosition = function() {
400341
- return (
400342
- /** @type{?proto.viam.common.v1.Pose} */
400343
- e.Message.getWrapperField(this, t.Pose, 3)
400344
- );
400345
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setCameraPosition = function(s) {
400346
- return e.Message.setWrapperField(this, 3, s);
400347
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.clearCameraPosition = function() {
400348
- return this.setCameraPosition(void 0);
400349
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.hasCameraPosition = function() {
400350
- return e.Message.getField(this, 3) != null;
400351
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getIncludeRobotMarker = function() {
400352
- return (
400353
- /** @type {boolean} */
400354
- e.Message.getBooleanFieldWithDefault(this, 4, !1)
400355
- );
400356
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setIncludeRobotMarker = function(s) {
400357
- return e.Message.setProto3BooleanField(this, 4, s);
400358
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getExtra = function() {
400359
- return (
400360
- /** @type{?proto.google.protobuf.Struct} */
400361
- e.Message.getWrapperField(this, i.Struct, 99)
400362
- );
400363
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setExtra = function(s) {
400364
- return e.Message.setWrapperField(this, 99, s);
400365
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.clearExtra = function() {
400366
- return this.setExtra(void 0);
400367
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.hasExtra = function() {
400368
- return e.Message.getField(this, 99) != null;
400369
- }, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_ = [[1, 2]], proto.viam.service.slam.v1.GetMapResponse.MapCase = {
400370
- MAP_NOT_SET: 0,
400371
- POINT_CLOUD: 1,
400372
- IMAGE: 2
400373
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getMapCase = function() {
400374
- return (
400375
- /** @type {proto.viam.service.slam.v1.GetMapResponse.MapCase} */
400376
- e.Message.computeOneofCase(this, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_[0])
400377
- );
400378
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetMapResponse.prototype.toObject = function(s) {
400379
- return proto.viam.service.slam.v1.GetMapResponse.toObject(s, this);
400380
- }, proto.viam.service.slam.v1.GetMapResponse.toObject = function(s, g) {
400381
- var l, u = {
400382
- pointCloud: (l = g.getPointCloud()) && t.PointCloudObject.toObject(s, l),
400383
- image: g.getImage_asB64(),
400384
- mimeType: e.Message.getFieldWithDefault(g, 3, "")
400385
- };
400386
- return s && (u.$jspbMessageInstance = g), u;
400387
- }), proto.viam.service.slam.v1.GetMapResponse.deserializeBinary = function(s) {
400388
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetMapResponse();
400389
- return proto.viam.service.slam.v1.GetMapResponse.deserializeBinaryFromReader(l, g);
400390
- }, proto.viam.service.slam.v1.GetMapResponse.deserializeBinaryFromReader = function(s, g) {
400391
- for (; g.nextField() && !g.isEndGroup(); ) {
400392
- var l = g.getFieldNumber();
400393
- switch (l) {
400394
- case 1:
400395
- var u = new t.PointCloudObject();
400396
- g.readMessage(u, t.PointCloudObject.deserializeBinaryFromReader), s.setPointCloud(u);
400397
- break;
400398
- case 2:
400399
- var u = (
400400
- /** @type {!Uint8Array} */
400401
- g.readBytes()
400402
- );
400403
- s.setImage(u);
400404
- break;
400405
- case 3:
400406
- var u = (
400407
- /** @type {string} */
400408
- g.readString()
400409
- );
400410
- s.setMimeType(u);
400411
- break;
400412
- default:
400413
- g.skipField();
400414
- break;
400415
- }
400416
- }
400417
- return s;
400418
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.serializeBinary = function() {
400419
- var s = new e.BinaryWriter();
400420
- return proto.viam.service.slam.v1.GetMapResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
400421
- }, proto.viam.service.slam.v1.GetMapResponse.serializeBinaryToWriter = function(s, g) {
400422
- var l = void 0;
400423
- l = s.getPointCloud(), l != null && g.writeMessage(
400424
- 1,
400425
- l,
400426
- t.PointCloudObject.serializeBinaryToWriter
400427
- ), l = /** @type {!(string|Uint8Array)} */
400428
- e.Message.getField(s, 2), l != null && g.writeBytes(
400429
- 2,
400430
- l
400431
- ), l = s.getMimeType(), l.length > 0 && g.writeString(
400432
- 3,
400433
- l
400434
- );
400435
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getPointCloud = function() {
400436
- return (
400437
- /** @type{?proto.viam.common.v1.PointCloudObject} */
400438
- e.Message.getWrapperField(this, t.PointCloudObject, 1)
400439
- );
400440
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.setPointCloud = function(s) {
400441
- return e.Message.setOneofWrapperField(this, 1, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_[0], s);
400442
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.clearPointCloud = function() {
400443
- return this.setPointCloud(void 0);
400444
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.hasPointCloud = function() {
400445
- return e.Message.getField(this, 1) != null;
400446
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getImage = function() {
400447
- return (
400448
- /** @type {string} */
400449
- e.Message.getFieldWithDefault(this, 2, "")
400450
- );
400451
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getImage_asB64 = function() {
400452
- return (
400453
- /** @type {string} */
400454
- e.Message.bytesAsB64(
400455
- this.getImage()
400456
- )
400457
- );
400458
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getImage_asU8 = function() {
400459
- return (
400460
- /** @type {!Uint8Array} */
400461
- e.Message.bytesAsU8(
400462
- this.getImage()
400463
- )
400464
- );
400465
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.setImage = function(s) {
400466
- return e.Message.setOneofField(this, 2, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_[0], s);
400467
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.clearImage = function() {
400468
- return e.Message.setOneofField(this, 2, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_[0], void 0);
400469
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.hasImage = function() {
400470
- return e.Message.getField(this, 2) != null;
400471
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getMimeType = function() {
400472
- return (
400473
- /** @type {string} */
400474
- e.Message.getFieldWithDefault(this, 3, "")
400475
- );
400476
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.setMimeType = function(s) {
400477
- return e.Message.setProto3StringField(this, 3, s);
400478
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionNewRequest.prototype.toObject = function(s) {
400479
- return proto.viam.service.slam.v1.GetPositionNewRequest.toObject(s, this);
400480
- }, proto.viam.service.slam.v1.GetPositionNewRequest.toObject = function(s, g) {
400481
- var l = {
400482
- name: e.Message.getFieldWithDefault(g, 1, "")
400483
- };
400484
- return s && (l.$jspbMessageInstance = g), l;
400485
- }), proto.viam.service.slam.v1.GetPositionNewRequest.deserializeBinary = function(s) {
400486
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPositionNewRequest();
400487
- return proto.viam.service.slam.v1.GetPositionNewRequest.deserializeBinaryFromReader(l, g);
400488
- }, proto.viam.service.slam.v1.GetPositionNewRequest.deserializeBinaryFromReader = function(s, g) {
400489
- for (; g.nextField() && !g.isEndGroup(); ) {
400490
- var l = g.getFieldNumber();
400491
- switch (l) {
400492
- case 1:
400493
- var u = (
400494
- /** @type {string} */
400495
- g.readString()
400496
- );
400497
- s.setName(u);
400498
- break;
400499
- default:
400500
- g.skipField();
400501
- break;
400502
- }
400503
- }
400504
- return s;
400505
- }, proto.viam.service.slam.v1.GetPositionNewRequest.prototype.serializeBinary = function() {
400506
- var s = new e.BinaryWriter();
400507
- return proto.viam.service.slam.v1.GetPositionNewRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
400508
- }, proto.viam.service.slam.v1.GetPositionNewRequest.serializeBinaryToWriter = function(s, g) {
400509
- var l = void 0;
400510
- l = s.getName(), l.length > 0 && g.writeString(
400511
- 1,
400512
- l
400513
- );
400514
- }, proto.viam.service.slam.v1.GetPositionNewRequest.prototype.getName = function() {
400515
- return (
400516
- /** @type {string} */
400517
- e.Message.getFieldWithDefault(this, 1, "")
400518
- );
400519
- }, proto.viam.service.slam.v1.GetPositionNewRequest.prototype.setName = function(s) {
400520
- return e.Message.setProto3StringField(this, 1, s);
400521
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionNewResponse.prototype.toObject = function(s) {
400522
- return proto.viam.service.slam.v1.GetPositionNewResponse.toObject(s, this);
400523
- }, proto.viam.service.slam.v1.GetPositionNewResponse.toObject = function(s, g) {
400524
- var l, u = {
400525
- pose: (l = g.getPose()) && t.Pose.toObject(s, l),
400526
- componentReference: e.Message.getFieldWithDefault(g, 2, ""),
400527
- extra: (l = g.getExtra()) && i.Struct.toObject(s, l)
400528
- };
400529
- return s && (u.$jspbMessageInstance = g), u;
400530
- }), proto.viam.service.slam.v1.GetPositionNewResponse.deserializeBinary = function(s) {
400531
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPositionNewResponse();
400532
- return proto.viam.service.slam.v1.GetPositionNewResponse.deserializeBinaryFromReader(l, g);
400533
- }, proto.viam.service.slam.v1.GetPositionNewResponse.deserializeBinaryFromReader = function(s, g) {
400534
399466
  for (; g.nextField() && !g.isEndGroup(); ) {
400535
399467
  var l = g.getFieldNumber();
400536
399468
  switch (l) {
@@ -400555,10 +399487,10 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400555
399487
  }
400556
399488
  }
400557
399489
  return s;
400558
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.serializeBinary = function() {
399490
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.serializeBinary = function() {
400559
399491
  var s = new e.BinaryWriter();
400560
- return proto.viam.service.slam.v1.GetPositionNewResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
400561
- }, proto.viam.service.slam.v1.GetPositionNewResponse.serializeBinaryToWriter = function(s, g) {
399492
+ return proto.viam.service.slam.v1.GetPositionResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
399493
+ }, proto.viam.service.slam.v1.GetPositionResponse.serializeBinaryToWriter = function(s, g) {
400562
399494
  var l = void 0;
400563
399495
  l = s.getPose(), l != null && g.writeMessage(
400564
399496
  1,
@@ -400572,34 +399504,34 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400572
399504
  l,
400573
399505
  i.Struct.serializeBinaryToWriter
400574
399506
  );
400575
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.getPose = function() {
399507
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getPose = function() {
400576
399508
  return (
400577
399509
  /** @type{?proto.viam.common.v1.Pose} */
400578
399510
  e.Message.getWrapperField(this, t.Pose, 1)
400579
399511
  );
400580
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.setPose = function(s) {
399512
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.setPose = function(s) {
400581
399513
  return e.Message.setWrapperField(this, 1, s);
400582
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.clearPose = function() {
399514
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.clearPose = function() {
400583
399515
  return this.setPose(void 0);
400584
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.hasPose = function() {
399516
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.hasPose = function() {
400585
399517
  return e.Message.getField(this, 1) != null;
400586
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.getComponentReference = function() {
399518
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getComponentReference = function() {
400587
399519
  return (
400588
399520
  /** @type {string} */
400589
399521
  e.Message.getFieldWithDefault(this, 2, "")
400590
399522
  );
400591
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.setComponentReference = function(s) {
399523
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.setComponentReference = function(s) {
400592
399524
  return e.Message.setProto3StringField(this, 2, s);
400593
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.getExtra = function() {
399525
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getExtra = function() {
400594
399526
  return (
400595
399527
  /** @type{?proto.google.protobuf.Struct} */
400596
399528
  e.Message.getWrapperField(this, i.Struct, 99)
400597
399529
  );
400598
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.setExtra = function(s) {
399530
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.setExtra = function(s) {
400599
399531
  return e.Message.setWrapperField(this, 99, s);
400600
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.clearExtra = function() {
399532
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.clearExtra = function() {
400601
399533
  return this.setExtra(void 0);
400602
- }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.hasExtra = function() {
399534
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.hasExtra = function() {
400603
399535
  return e.Message.getField(this, 99) != null;
400604
399536
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.toObject = function(s) {
400605
399537
  return proto.viam.service.slam.v1.GetPointCloudMapRequest.toObject(s, this);
@@ -400648,7 +399580,7 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400648
399580
  return proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject(s, this);
400649
399581
  }, proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject = function(s, g) {
400650
399582
  var l = {
400651
- pointCloudPcd: g.getPointCloudPcd_asB64()
399583
+ pointCloudPcdChunk: g.getPointCloudPcdChunk_asB64()
400652
399584
  };
400653
399585
  return s && (l.$jspbMessageInstance = g), l;
400654
399586
  }), proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinary = function(s) {
@@ -400663,7 +399595,7 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400663
399595
  /** @type {!Uint8Array} */
400664
399596
  g.readBytes()
400665
399597
  );
400666
- s.setPointCloudPcd(u);
399598
+ s.setPointCloudPcdChunk(u);
400667
399599
  break;
400668
399600
  default:
400669
399601
  g.skipField();
@@ -400676,30 +399608,30 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400676
399608
  return proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
400677
399609
  }, proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter = function(s, g) {
400678
399610
  var l = void 0;
400679
- l = s.getPointCloudPcd_asU8(), l.length > 0 && g.writeBytes(
399611
+ l = s.getPointCloudPcdChunk_asU8(), l.length > 0 && g.writeBytes(
400680
399612
  1,
400681
399613
  l
400682
399614
  );
400683
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcd = function() {
399615
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcdChunk = function() {
400684
399616
  return (
400685
399617
  /** @type {string} */
400686
399618
  e.Message.getFieldWithDefault(this, 1, "")
400687
399619
  );
400688
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcd_asB64 = function() {
399620
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcdChunk_asB64 = function() {
400689
399621
  return (
400690
399622
  /** @type {string} */
400691
399623
  e.Message.bytesAsB64(
400692
- this.getPointCloudPcd()
399624
+ this.getPointCloudPcdChunk()
400693
399625
  )
400694
399626
  );
400695
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcd_asU8 = function() {
399627
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcdChunk_asU8 = function() {
400696
399628
  return (
400697
399629
  /** @type {!Uint8Array} */
400698
399630
  e.Message.bytesAsU8(
400699
- this.getPointCloudPcd()
399631
+ this.getPointCloudPcdChunk()
400700
399632
  )
400701
399633
  );
400702
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.setPointCloudPcd = function(s) {
399634
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.setPointCloudPcdChunk = function(s) {
400703
399635
  return e.Message.setProto3BytesField(this, 1, s);
400704
399636
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateRequest.prototype.toObject = function(s) {
400705
399637
  return proto.viam.service.slam.v1.GetInternalStateRequest.toObject(s, this);
@@ -400748,7 +399680,7 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400748
399680
  return proto.viam.service.slam.v1.GetInternalStateResponse.toObject(s, this);
400749
399681
  }, proto.viam.service.slam.v1.GetInternalStateResponse.toObject = function(s, g) {
400750
399682
  var l = {
400751
- internalState: g.getInternalState_asB64()
399683
+ internalStateChunk: g.getInternalStateChunk_asB64()
400752
399684
  };
400753
399685
  return s && (l.$jspbMessageInstance = g), l;
400754
399686
  }), proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinary = function(s) {
@@ -400763,7 +399695,7 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400763
399695
  /** @type {!Uint8Array} */
400764
399696
  g.readBytes()
400765
399697
  );
400766
- s.setInternalState(u);
399698
+ s.setInternalStateChunk(u);
400767
399699
  break;
400768
399700
  default:
400769
399701
  g.skipField();
@@ -400775,231 +399707,31 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400775
399707
  var s = new e.BinaryWriter();
400776
399708
  return proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
400777
399709
  }, proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter = function(s, g) {
400778
- var l = void 0;
400779
- l = s.getInternalState_asU8(), l.length > 0 && g.writeBytes(
400780
- 1,
400781
- l
400782
- );
400783
- }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalState = function() {
400784
- return (
400785
- /** @type {string} */
400786
- e.Message.getFieldWithDefault(this, 1, "")
400787
- );
400788
- }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalState_asB64 = function() {
400789
- return (
400790
- /** @type {string} */
400791
- e.Message.bytesAsB64(
400792
- this.getInternalState()
400793
- )
400794
- );
400795
- }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalState_asU8 = function() {
400796
- return (
400797
- /** @type {!Uint8Array} */
400798
- e.Message.bytesAsU8(
400799
- this.getInternalState()
400800
- )
400801
- );
400802
- }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.setInternalState = function(s) {
400803
- return e.Message.setProto3BytesField(this, 1, s);
400804
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.prototype.toObject = function(s) {
400805
- return proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.toObject(s, this);
400806
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.toObject = function(s, g) {
400807
- var l = {
400808
- name: e.Message.getFieldWithDefault(g, 1, "")
400809
- };
400810
- return s && (l.$jspbMessageInstance = g), l;
400811
- }), proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.deserializeBinary = function(s) {
400812
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPointCloudMapStreamRequest();
400813
- return proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.deserializeBinaryFromReader(l, g);
400814
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.deserializeBinaryFromReader = function(s, g) {
400815
- for (; g.nextField() && !g.isEndGroup(); ) {
400816
- var l = g.getFieldNumber();
400817
- switch (l) {
400818
- case 1:
400819
- var u = (
400820
- /** @type {string} */
400821
- g.readString()
400822
- );
400823
- s.setName(u);
400824
- break;
400825
- default:
400826
- g.skipField();
400827
- break;
400828
- }
400829
- }
400830
- return s;
400831
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.prototype.serializeBinary = function() {
400832
- var s = new e.BinaryWriter();
400833
- return proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
400834
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.serializeBinaryToWriter = function(s, g) {
400835
- var l = void 0;
400836
- l = s.getName(), l.length > 0 && g.writeString(
400837
- 1,
400838
- l
400839
- );
400840
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.prototype.getName = function() {
400841
- return (
400842
- /** @type {string} */
400843
- e.Message.getFieldWithDefault(this, 1, "")
400844
- );
400845
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.prototype.setName = function(s) {
400846
- return e.Message.setProto3StringField(this, 1, s);
400847
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.prototype.toObject = function(s) {
400848
- return proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.toObject(s, this);
400849
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.toObject = function(s, g) {
400850
- var l = {
400851
- pointCloudPcdChunk: g.getPointCloudPcdChunk_asB64()
400852
- };
400853
- return s && (l.$jspbMessageInstance = g), l;
400854
- }), proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.deserializeBinary = function(s) {
400855
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPointCloudMapStreamResponse();
400856
- return proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.deserializeBinaryFromReader(l, g);
400857
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.deserializeBinaryFromReader = function(s, g) {
400858
- for (; g.nextField() && !g.isEndGroup(); ) {
400859
- var l = g.getFieldNumber();
400860
- switch (l) {
400861
- case 1:
400862
- var u = (
400863
- /** @type {!Uint8Array} */
400864
- g.readBytes()
400865
- );
400866
- s.setPointCloudPcdChunk(u);
400867
- break;
400868
- default:
400869
- g.skipField();
400870
- break;
400871
- }
400872
- }
400873
- return s;
400874
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.prototype.serializeBinary = function() {
400875
- var s = new e.BinaryWriter();
400876
- return proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
400877
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.serializeBinaryToWriter = function(s, g) {
400878
- var l = void 0;
400879
- l = s.getPointCloudPcdChunk_asU8(), l.length > 0 && g.writeBytes(
400880
- 1,
400881
- l
400882
- );
400883
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.prototype.getPointCloudPcdChunk = function() {
400884
- return (
400885
- /** @type {string} */
400886
- e.Message.getFieldWithDefault(this, 1, "")
400887
- );
400888
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.prototype.getPointCloudPcdChunk_asB64 = function() {
400889
- return (
400890
- /** @type {string} */
400891
- e.Message.bytesAsB64(
400892
- this.getPointCloudPcdChunk()
400893
- )
400894
- );
400895
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.prototype.getPointCloudPcdChunk_asU8 = function() {
400896
- return (
400897
- /** @type {!Uint8Array} */
400898
- e.Message.bytesAsU8(
400899
- this.getPointCloudPcdChunk()
400900
- )
400901
- );
400902
- }, proto.viam.service.slam.v1.GetPointCloudMapStreamResponse.prototype.setPointCloudPcdChunk = function(s) {
400903
- return e.Message.setProto3BytesField(this, 1, s);
400904
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateStreamRequest.prototype.toObject = function(s) {
400905
- return proto.viam.service.slam.v1.GetInternalStateStreamRequest.toObject(s, this);
400906
- }, proto.viam.service.slam.v1.GetInternalStateStreamRequest.toObject = function(s, g) {
400907
- var l = {
400908
- name: e.Message.getFieldWithDefault(g, 1, "")
400909
- };
400910
- return s && (l.$jspbMessageInstance = g), l;
400911
- }), proto.viam.service.slam.v1.GetInternalStateStreamRequest.deserializeBinary = function(s) {
400912
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetInternalStateStreamRequest();
400913
- return proto.viam.service.slam.v1.GetInternalStateStreamRequest.deserializeBinaryFromReader(l, g);
400914
- }, proto.viam.service.slam.v1.GetInternalStateStreamRequest.deserializeBinaryFromReader = function(s, g) {
400915
- for (; g.nextField() && !g.isEndGroup(); ) {
400916
- var l = g.getFieldNumber();
400917
- switch (l) {
400918
- case 1:
400919
- var u = (
400920
- /** @type {string} */
400921
- g.readString()
400922
- );
400923
- s.setName(u);
400924
- break;
400925
- default:
400926
- g.skipField();
400927
- break;
400928
- }
400929
- }
400930
- return s;
400931
- }, proto.viam.service.slam.v1.GetInternalStateStreamRequest.prototype.serializeBinary = function() {
400932
- var s = new e.BinaryWriter();
400933
- return proto.viam.service.slam.v1.GetInternalStateStreamRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
400934
- }, proto.viam.service.slam.v1.GetInternalStateStreamRequest.serializeBinaryToWriter = function(s, g) {
400935
- var l = void 0;
400936
- l = s.getName(), l.length > 0 && g.writeString(
400937
- 1,
400938
- l
400939
- );
400940
- }, proto.viam.service.slam.v1.GetInternalStateStreamRequest.prototype.getName = function() {
400941
- return (
400942
- /** @type {string} */
400943
- e.Message.getFieldWithDefault(this, 1, "")
400944
- );
400945
- }, proto.viam.service.slam.v1.GetInternalStateStreamRequest.prototype.setName = function(s) {
400946
- return e.Message.setProto3StringField(this, 1, s);
400947
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateStreamResponse.prototype.toObject = function(s) {
400948
- return proto.viam.service.slam.v1.GetInternalStateStreamResponse.toObject(s, this);
400949
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.toObject = function(s, g) {
400950
- var l = {
400951
- internalStateChunk: g.getInternalStateChunk_asB64()
400952
- };
400953
- return s && (l.$jspbMessageInstance = g), l;
400954
- }), proto.viam.service.slam.v1.GetInternalStateStreamResponse.deserializeBinary = function(s) {
400955
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetInternalStateStreamResponse();
400956
- return proto.viam.service.slam.v1.GetInternalStateStreamResponse.deserializeBinaryFromReader(l, g);
400957
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.deserializeBinaryFromReader = function(s, g) {
400958
- for (; g.nextField() && !g.isEndGroup(); ) {
400959
- var l = g.getFieldNumber();
400960
- switch (l) {
400961
- case 1:
400962
- var u = (
400963
- /** @type {!Uint8Array} */
400964
- g.readBytes()
400965
- );
400966
- s.setInternalStateChunk(u);
400967
- break;
400968
- default:
400969
- g.skipField();
400970
- break;
400971
- }
400972
- }
400973
- return s;
400974
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.prototype.serializeBinary = function() {
400975
- var s = new e.BinaryWriter();
400976
- return proto.viam.service.slam.v1.GetInternalStateStreamResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
400977
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.serializeBinaryToWriter = function(s, g) {
400978
399710
  var l = void 0;
400979
399711
  l = s.getInternalStateChunk_asU8(), l.length > 0 && g.writeBytes(
400980
399712
  1,
400981
399713
  l
400982
399714
  );
400983
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.prototype.getInternalStateChunk = function() {
399715
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalStateChunk = function() {
400984
399716
  return (
400985
399717
  /** @type {string} */
400986
399718
  e.Message.getFieldWithDefault(this, 1, "")
400987
399719
  );
400988
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.prototype.getInternalStateChunk_asB64 = function() {
399720
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalStateChunk_asB64 = function() {
400989
399721
  return (
400990
399722
  /** @type {string} */
400991
399723
  e.Message.bytesAsB64(
400992
399724
  this.getInternalStateChunk()
400993
399725
  )
400994
399726
  );
400995
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.prototype.getInternalStateChunk_asU8 = function() {
399727
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalStateChunk_asU8 = function() {
400996
399728
  return (
400997
399729
  /** @type {!Uint8Array} */
400998
399730
  e.Message.bytesAsU8(
400999
399731
  this.getInternalStateChunk()
401000
399732
  )
401001
399733
  );
401002
- }, proto.viam.service.slam.v1.GetInternalStateStreamResponse.prototype.setInternalStateChunk = function(s) {
399734
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.setInternalStateChunk = function(s) {
401003
399735
  return e.Message.setProto3BytesField(this, 1, s);
401004
399736
  }, r.object.extend(o, proto.viam.service.slam.v1);
401005
399737
  })(slam_pb);