@viamrobotics/sdk 0.0.29 → 0.0.31

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
@@ -30249,9 +30249,9 @@ var __webpack_modules__ = { 37: function(o) {
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: F, 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
  }
@@ -30260,8 +30260,8 @@ var __webpack_modules__ = { 37: function(o) {
30260
30260
  L = !0;
30261
30261
  var V = new c.CallUpdateRequest();
30262
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);
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: F, 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();
@@ -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.GetInternalStateStreamRequest", null, p), r.exportSymbol("proto.viam.service.slam.v1.GetInternalStateStreamResponse", 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) {
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,7 +187554,11 @@ 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) {
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"), proto.viam.service.slam.v1.GetPositionNewRequest = function(s) {
187558
+ e.Message.initialize(this, s, 0, -1, null, null);
187559
+ }, 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) {
187560
+ e.Message.initialize(this, s, 0, -1, null, null);
187561
+ }, 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.GetPointCloudMapStreamRequest = function(s) {
187566
187562
  e.Message.initialize(this, s, 0, -1, null, null);
187567
187563
  }, 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
187564
  e.Message.initialize(this, s, 0, -1, null, null);
@@ -187573,11 +187569,10 @@ var annotations_pb$m = {}, http_pb$m = {};
187573
187569
  }, 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) {
187574
187570
  return proto.viam.service.slam.v1.GetPositionRequest.toObject(s, this);
187575
187571
  }, 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)
187572
+ var l = {
187573
+ name: e.Message.getFieldWithDefault(g, 1, "")
187579
187574
  };
187580
- return s && (u.$jspbMessageInstance = g), u;
187575
+ return s && (l.$jspbMessageInstance = g), l;
187581
187576
  }), proto.viam.service.slam.v1.GetPositionRequest.deserializeBinary = function(s) {
187582
187577
  var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPositionRequest();
187583
187578
  return proto.viam.service.slam.v1.GetPositionRequest.deserializeBinaryFromReader(l, g);
@@ -187592,10 +187587,6 @@ var annotations_pb$m = {}, http_pb$m = {};
187592
187587
  );
187593
187588
  s.setName(u);
187594
187589
  break;
187595
- case 99:
187596
- var u = new i.Struct();
187597
- g.readMessage(u, i.Struct.deserializeBinaryFromReader), s.setExtra(u);
187598
- break;
187599
187590
  default:
187600
187591
  g.skipField();
187601
187592
  break;
@@ -187610,10 +187601,6 @@ var annotations_pb$m = {}, http_pb$m = {};
187610
187601
  l = s.getName(), l.length > 0 && g.writeString(
187611
187602
  1,
187612
187603
  l
187613
- ), l = s.getExtra(), l != null && g.writeMessage(
187614
- 99,
187615
- l,
187616
- i.Struct.serializeBinaryToWriter
187617
187604
  );
187618
187605
  }, proto.viam.service.slam.v1.GetPositionRequest.prototype.getName = function() {
187619
187606
  return (
@@ -187622,22 +187609,12 @@ var annotations_pb$m = {}, http_pb$m = {};
187622
187609
  );
187623
187610
  }, proto.viam.service.slam.v1.GetPositionRequest.prototype.setName = function(s) {
187624
187611
  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
187612
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionResponse.prototype.toObject = function(s) {
187637
187613
  return proto.viam.service.slam.v1.GetPositionResponse.toObject(s, this);
187638
187614
  }, proto.viam.service.slam.v1.GetPositionResponse.toObject = function(s, g) {
187639
187615
  var l, u = {
187640
- pose: (l = g.getPose()) && t.PoseInFrame.toObject(s, l),
187616
+ pose: (l = g.getPose()) && t.Pose.toObject(s, l),
187617
+ componentReference: e.Message.getFieldWithDefault(g, 2, ""),
187641
187618
  extra: (l = g.getExtra()) && i.Struct.toObject(s, l)
187642
187619
  };
187643
187620
  return s && (u.$jspbMessageInstance = g), u;
@@ -187649,8 +187626,15 @@ var annotations_pb$m = {}, http_pb$m = {};
187649
187626
  var l = g.getFieldNumber();
187650
187627
  switch (l) {
187651
187628
  case 1:
187652
- var u = new t.PoseInFrame();
187653
- g.readMessage(u, t.PoseInFrame.deserializeBinaryFromReader), s.setPose(u);
187629
+ var u = new t.Pose();
187630
+ g.readMessage(u, t.Pose.deserializeBinaryFromReader), s.setPose(u);
187631
+ break;
187632
+ case 2:
187633
+ var u = (
187634
+ /** @type {string} */
187635
+ g.readString()
187636
+ );
187637
+ s.setComponentReference(u);
187654
187638
  break;
187655
187639
  case 99:
187656
187640
  var u = new i.Struct();
@@ -187670,7 +187654,10 @@ var annotations_pb$m = {}, http_pb$m = {};
187670
187654
  l = s.getPose(), l != null && g.writeMessage(
187671
187655
  1,
187672
187656
  l,
187673
- t.PoseInFrame.serializeBinaryToWriter
187657
+ t.Pose.serializeBinaryToWriter
187658
+ ), l = s.getComponentReference(), l.length > 0 && g.writeString(
187659
+ 2,
187660
+ l
187674
187661
  ), l = s.getExtra(), l != null && g.writeMessage(
187675
187662
  99,
187676
187663
  l,
@@ -187678,8 +187665,8 @@ var annotations_pb$m = {}, http_pb$m = {};
187678
187665
  );
187679
187666
  }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getPose = function() {
187680
187667
  return (
187681
- /** @type{?proto.viam.common.v1.PoseInFrame} */
187682
- e.Message.getWrapperField(this, t.PoseInFrame, 1)
187668
+ /** @type{?proto.viam.common.v1.Pose} */
187669
+ e.Message.getWrapperField(this, t.Pose, 1)
187683
187670
  );
187684
187671
  }, proto.viam.service.slam.v1.GetPositionResponse.prototype.setPose = function(s) {
187685
187672
  return e.Message.setWrapperField(this, 1, s);
@@ -187687,6 +187674,13 @@ var annotations_pb$m = {}, http_pb$m = {};
187687
187674
  return this.setPose(void 0);
187688
187675
  }, proto.viam.service.slam.v1.GetPositionResponse.prototype.hasPose = function() {
187689
187676
  return e.Message.getField(this, 1) != null;
187677
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getComponentReference = function() {
187678
+ return (
187679
+ /** @type {string} */
187680
+ e.Message.getFieldWithDefault(this, 2, "")
187681
+ );
187682
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.setComponentReference = function(s) {
187683
+ return e.Message.setProto3StringField(this, 2, s);
187690
187684
  }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getExtra = function() {
187691
187685
  return (
187692
187686
  /** @type{?proto.google.protobuf.Struct} */
@@ -187698,21 +187692,17 @@ var annotations_pb$m = {}, http_pb$m = {};
187698
187692
  return this.setExtra(void 0);
187699
187693
  }, proto.viam.service.slam.v1.GetPositionResponse.prototype.hasExtra = function() {
187700
187694
  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)
187695
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.toObject = function(s) {
187696
+ return proto.viam.service.slam.v1.GetPointCloudMapRequest.toObject(s, this);
187697
+ }, proto.viam.service.slam.v1.GetPointCloudMapRequest.toObject = function(s, g) {
187698
+ var l = {
187699
+ name: e.Message.getFieldWithDefault(g, 1, "")
187710
187700
  };
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) {
187701
+ return s && (l.$jspbMessageInstance = g), l;
187702
+ }), proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinary = function(s) {
187703
+ var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPointCloudMapRequest();
187704
+ return proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinaryFromReader(l, g);
187705
+ }, proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinaryFromReader = function(s, g) {
187716
187706
  for (; g.nextField() && !g.isEndGroup(); ) {
187717
187707
  var l = g.getFieldNumber();
187718
187708
  switch (l) {
@@ -187723,27 +187713,48 @@ var annotations_pb$m = {}, http_pb$m = {};
187723
187713
  );
187724
187714
  s.setName(u);
187725
187715
  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);
187716
+ default:
187717
+ g.skipField();
187736
187718
  break;
187737
- case 4:
187719
+ }
187720
+ }
187721
+ return s;
187722
+ }, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.serializeBinary = function() {
187723
+ var s = new e.BinaryWriter();
187724
+ return proto.viam.service.slam.v1.GetPointCloudMapRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
187725
+ }, proto.viam.service.slam.v1.GetPointCloudMapRequest.serializeBinaryToWriter = function(s, g) {
187726
+ var l = void 0;
187727
+ l = s.getName(), l.length > 0 && g.writeString(
187728
+ 1,
187729
+ l
187730
+ );
187731
+ }, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.getName = function() {
187732
+ return (
187733
+ /** @type {string} */
187734
+ e.Message.getFieldWithDefault(this, 1, "")
187735
+ );
187736
+ }, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.setName = function(s) {
187737
+ return e.Message.setProto3StringField(this, 1, s);
187738
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.toObject = function(s) {
187739
+ return proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject(s, this);
187740
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject = function(s, g) {
187741
+ var l = {
187742
+ pointCloudPcdChunk: g.getPointCloudPcdChunk_asB64()
187743
+ };
187744
+ return s && (l.$jspbMessageInstance = g), l;
187745
+ }), proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinary = function(s) {
187746
+ var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPointCloudMapResponse();
187747
+ return proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinaryFromReader(l, g);
187748
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinaryFromReader = function(s, g) {
187749
+ for (; g.nextField() && !g.isEndGroup(); ) {
187750
+ var l = g.getFieldNumber();
187751
+ switch (l) {
187752
+ case 1:
187738
187753
  var u = (
187739
- /** @type {boolean} */
187740
- g.readBool()
187754
+ /** @type {!Uint8Array} */
187755
+ g.readBytes()
187741
187756
  );
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);
187757
+ s.setPointCloudPcdChunk(u);
187747
187758
  break;
187748
187759
  default:
187749
187760
  g.skipField();
@@ -187751,114 +187762,99 @@ var annotations_pb$m = {}, http_pb$m = {};
187751
187762
  }
187752
187763
  }
187753
187764
  return s;
187754
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.serializeBinary = function() {
187765
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.serializeBinary = function() {
187755
187766
  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) {
187767
+ return proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
187768
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter = function(s, g) {
187758
187769
  var l = void 0;
187759
- l = s.getName(), l.length > 0 && g.writeString(
187770
+ l = s.getPointCloudPcdChunk_asU8(), l.length > 0 && g.writeBytes(
187760
187771
  1,
187761
187772
  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
187773
  );
187777
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getName = function() {
187774
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcdChunk = function() {
187778
187775
  return (
187779
187776
  /** @type {string} */
187780
187777
  e.Message.getFieldWithDefault(this, 1, "")
187781
187778
  );
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() {
187779
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcdChunk_asB64 = function() {
187785
187780
  return (
187786
187781
  /** @type {string} */
187787
- e.Message.getFieldWithDefault(this, 2, "")
187782
+ e.Message.bytesAsB64(
187783
+ this.getPointCloudPcdChunk()
187784
+ )
187788
187785
  );
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() {
187786
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcdChunk_asU8 = function() {
187792
187787
  return (
187793
- /** @type{?proto.viam.common.v1.Pose} */
187794
- e.Message.getWrapperField(this, t.Pose, 3)
187788
+ /** @type {!Uint8Array} */
187789
+ e.Message.bytesAsU8(
187790
+ this.getPointCloudPcdChunk()
187791
+ )
187795
187792
  );
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)
187793
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.setPointCloudPcdChunk = function(s) {
187794
+ return e.Message.setProto3BytesField(this, 1, s);
187795
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateRequest.prototype.toObject = function(s) {
187796
+ return proto.viam.service.slam.v1.GetInternalStateRequest.toObject(s, this);
187797
+ }, proto.viam.service.slam.v1.GetInternalStateRequest.toObject = function(s, g) {
187798
+ var l = {
187799
+ name: e.Message.getFieldWithDefault(g, 1, "")
187800
+ };
187801
+ return s && (l.$jspbMessageInstance = g), l;
187802
+ }), proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinary = function(s) {
187803
+ var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetInternalStateRequest();
187804
+ return proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinaryFromReader(l, g);
187805
+ }, proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinaryFromReader = function(s, g) {
187806
+ for (; g.nextField() && !g.isEndGroup(); ) {
187807
+ var l = g.getFieldNumber();
187808
+ switch (l) {
187809
+ case 1:
187810
+ var u = (
187811
+ /** @type {string} */
187812
+ g.readString()
187813
+ );
187814
+ s.setName(u);
187815
+ break;
187816
+ default:
187817
+ g.skipField();
187818
+ break;
187819
+ }
187820
+ }
187821
+ return s;
187822
+ }, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.serializeBinary = function() {
187823
+ var s = new e.BinaryWriter();
187824
+ return proto.viam.service.slam.v1.GetInternalStateRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
187825
+ }, proto.viam.service.slam.v1.GetInternalStateRequest.serializeBinaryToWriter = function(s, g) {
187826
+ var l = void 0;
187827
+ l = s.getName(), l.length > 0 && g.writeString(
187828
+ 1,
187829
+ l
187806
187830
  );
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() {
187831
+ }, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.getName = function() {
187810
187832
  return (
187811
- /** @type{?proto.google.protobuf.Struct} */
187812
- e.Message.getWrapperField(this, i.Struct, 99)
187833
+ /** @type {string} */
187834
+ e.Message.getFieldWithDefault(this, 1, "")
187813
187835
  );
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
+ }, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.setName = function(s) {
187837
+ return e.Message.setProto3StringField(this, 1, s);
187838
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateResponse.prototype.toObject = function(s) {
187839
+ return proto.viam.service.slam.v1.GetInternalStateResponse.toObject(s, this);
187840
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.toObject = function(s, g) {
187841
+ var l = {
187842
+ internalStateChunk: g.getInternalStateChunk_asB64()
187836
187843
  };
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) {
187844
+ return s && (l.$jspbMessageInstance = g), l;
187845
+ }), proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinary = function(s) {
187846
+ var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetInternalStateResponse();
187847
+ return proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinaryFromReader(l, g);
187848
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinaryFromReader = function(s, g) {
187842
187849
  for (; g.nextField() && !g.isEndGroup(); ) {
187843
187850
  var l = g.getFieldNumber();
187844
187851
  switch (l) {
187845
187852
  case 1:
187846
- var u = new t.PointCloudObject();
187847
- g.readMessage(u, t.PointCloudObject.deserializeBinaryFromReader), s.setPointCloud(u);
187848
- break;
187849
- case 2:
187850
187853
  var u = (
187851
187854
  /** @type {!Uint8Array} */
187852
187855
  g.readBytes()
187853
187856
  );
187854
- s.setImage(u);
187855
- break;
187856
- case 3:
187857
- var u = (
187858
- /** @type {string} */
187859
- g.readString()
187860
- );
187861
- s.setMimeType(u);
187857
+ s.setInternalStateChunk(u);
187862
187858
  break;
187863
187859
  default:
187864
187860
  g.skipField();
@@ -187866,66 +187862,36 @@ var annotations_pb$m = {}, http_pb$m = {};
187866
187862
  }
187867
187863
  }
187868
187864
  return s;
187869
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.serializeBinary = function() {
187865
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.serializeBinary = function() {
187870
187866
  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) {
187867
+ return proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
187868
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter = function(s, g) {
187873
187869
  var l = void 0;
187874
- l = s.getPointCloud(), l != null && g.writeMessage(
187870
+ l = s.getInternalStateChunk_asU8(), l.length > 0 && g.writeBytes(
187875
187871
  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
187872
  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
187873
  );
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() {
187874
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalStateChunk = function() {
187898
187875
  return (
187899
187876
  /** @type {string} */
187900
- e.Message.getFieldWithDefault(this, 2, "")
187877
+ e.Message.getFieldWithDefault(this, 1, "")
187901
187878
  );
187902
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getImage_asB64 = function() {
187879
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalStateChunk_asB64 = function() {
187903
187880
  return (
187904
187881
  /** @type {string} */
187905
187882
  e.Message.bytesAsB64(
187906
- this.getImage()
187883
+ this.getInternalStateChunk()
187907
187884
  )
187908
187885
  );
187909
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getImage_asU8 = function() {
187886
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalStateChunk_asU8 = function() {
187910
187887
  return (
187911
187888
  /** @type {!Uint8Array} */
187912
187889
  e.Message.bytesAsU8(
187913
- this.getImage()
187890
+ this.getInternalStateChunk()
187914
187891
  )
187915
187892
  );
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);
187893
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.setInternalStateChunk = function(s) {
187894
+ return e.Message.setProto3BytesField(this, 1, s);
187929
187895
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionNewRequest.prototype.toObject = function(s) {
187930
187896
  return proto.viam.service.slam.v1.GetPositionNewRequest.toObject(s, this);
187931
187897
  }, proto.viam.service.slam.v1.GetPositionNewRequest.toObject = function(s, g) {
@@ -188052,206 +188018,6 @@ var annotations_pb$m = {}, http_pb$m = {};
188052
188018
  return this.setExtra(void 0);
188053
188019
  }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.hasExtra = function() {
188054
188020
  return e.Message.getField(this, 99) != null;
188055
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.toObject = function(s) {
188056
- return proto.viam.service.slam.v1.GetPointCloudMapRequest.toObject(s, this);
188057
- }, proto.viam.service.slam.v1.GetPointCloudMapRequest.toObject = function(s, g) {
188058
- var l = {
188059
- name: e.Message.getFieldWithDefault(g, 1, "")
188060
- };
188061
- return s && (l.$jspbMessageInstance = g), l;
188062
- }), proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinary = function(s) {
188063
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPointCloudMapRequest();
188064
- return proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinaryFromReader(l, g);
188065
- }, proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinaryFromReader = function(s, g) {
188066
- for (; g.nextField() && !g.isEndGroup(); ) {
188067
- var l = g.getFieldNumber();
188068
- switch (l) {
188069
- case 1:
188070
- var u = (
188071
- /** @type {string} */
188072
- g.readString()
188073
- );
188074
- s.setName(u);
188075
- break;
188076
- default:
188077
- g.skipField();
188078
- break;
188079
- }
188080
- }
188081
- return s;
188082
- }, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.serializeBinary = function() {
188083
- var s = new e.BinaryWriter();
188084
- return proto.viam.service.slam.v1.GetPointCloudMapRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
188085
- }, proto.viam.service.slam.v1.GetPointCloudMapRequest.serializeBinaryToWriter = function(s, g) {
188086
- var l = void 0;
188087
- l = s.getName(), l.length > 0 && g.writeString(
188088
- 1,
188089
- l
188090
- );
188091
- }, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.getName = function() {
188092
- return (
188093
- /** @type {string} */
188094
- e.Message.getFieldWithDefault(this, 1, "")
188095
- );
188096
- }, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.setName = function(s) {
188097
- return e.Message.setProto3StringField(this, 1, s);
188098
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.toObject = function(s) {
188099
- return proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject(s, this);
188100
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject = function(s, g) {
188101
- var l = {
188102
- pointCloudPcd: g.getPointCloudPcd_asB64()
188103
- };
188104
- return s && (l.$jspbMessageInstance = g), l;
188105
- }), proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinary = function(s) {
188106
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPointCloudMapResponse();
188107
- return proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinaryFromReader(l, g);
188108
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinaryFromReader = function(s, g) {
188109
- for (; g.nextField() && !g.isEndGroup(); ) {
188110
- var l = g.getFieldNumber();
188111
- switch (l) {
188112
- case 1:
188113
- var u = (
188114
- /** @type {!Uint8Array} */
188115
- g.readBytes()
188116
- );
188117
- s.setPointCloudPcd(u);
188118
- break;
188119
- default:
188120
- g.skipField();
188121
- break;
188122
- }
188123
- }
188124
- return s;
188125
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.serializeBinary = function() {
188126
- var s = new e.BinaryWriter();
188127
- return proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
188128
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter = function(s, g) {
188129
- var l = void 0;
188130
- l = s.getPointCloudPcd_asU8(), l.length > 0 && g.writeBytes(
188131
- 1,
188132
- l
188133
- );
188134
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcd = function() {
188135
- return (
188136
- /** @type {string} */
188137
- e.Message.getFieldWithDefault(this, 1, "")
188138
- );
188139
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcd_asB64 = function() {
188140
- return (
188141
- /** @type {string} */
188142
- e.Message.bytesAsB64(
188143
- this.getPointCloudPcd()
188144
- )
188145
- );
188146
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcd_asU8 = function() {
188147
- return (
188148
- /** @type {!Uint8Array} */
188149
- e.Message.bytesAsU8(
188150
- this.getPointCloudPcd()
188151
- )
188152
- );
188153
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.setPointCloudPcd = function(s) {
188154
- return e.Message.setProto3BytesField(this, 1, s);
188155
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateRequest.prototype.toObject = function(s) {
188156
- return proto.viam.service.slam.v1.GetInternalStateRequest.toObject(s, this);
188157
- }, proto.viam.service.slam.v1.GetInternalStateRequest.toObject = function(s, g) {
188158
- var l = {
188159
- name: e.Message.getFieldWithDefault(g, 1, "")
188160
- };
188161
- return s && (l.$jspbMessageInstance = g), l;
188162
- }), proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinary = function(s) {
188163
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetInternalStateRequest();
188164
- return proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinaryFromReader(l, g);
188165
- }, proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinaryFromReader = function(s, g) {
188166
- for (; g.nextField() && !g.isEndGroup(); ) {
188167
- var l = g.getFieldNumber();
188168
- switch (l) {
188169
- case 1:
188170
- var u = (
188171
- /** @type {string} */
188172
- g.readString()
188173
- );
188174
- s.setName(u);
188175
- break;
188176
- default:
188177
- g.skipField();
188178
- break;
188179
- }
188180
- }
188181
- return s;
188182
- }, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.serializeBinary = function() {
188183
- var s = new e.BinaryWriter();
188184
- return proto.viam.service.slam.v1.GetInternalStateRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
188185
- }, proto.viam.service.slam.v1.GetInternalStateRequest.serializeBinaryToWriter = function(s, g) {
188186
- var l = void 0;
188187
- l = s.getName(), l.length > 0 && g.writeString(
188188
- 1,
188189
- l
188190
- );
188191
- }, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.getName = function() {
188192
- return (
188193
- /** @type {string} */
188194
- e.Message.getFieldWithDefault(this, 1, "")
188195
- );
188196
- }, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.setName = function(s) {
188197
- return e.Message.setProto3StringField(this, 1, s);
188198
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateResponse.prototype.toObject = function(s) {
188199
- return proto.viam.service.slam.v1.GetInternalStateResponse.toObject(s, this);
188200
- }, proto.viam.service.slam.v1.GetInternalStateResponse.toObject = function(s, g) {
188201
- var l = {
188202
- internalState: g.getInternalState_asB64()
188203
- };
188204
- return s && (l.$jspbMessageInstance = g), l;
188205
- }), proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinary = function(s) {
188206
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetInternalStateResponse();
188207
- return proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinaryFromReader(l, g);
188208
- }, proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinaryFromReader = function(s, g) {
188209
- for (; g.nextField() && !g.isEndGroup(); ) {
188210
- var l = g.getFieldNumber();
188211
- switch (l) {
188212
- case 1:
188213
- var u = (
188214
- /** @type {!Uint8Array} */
188215
- g.readBytes()
188216
- );
188217
- s.setInternalState(u);
188218
- break;
188219
- default:
188220
- g.skipField();
188221
- break;
188222
- }
188223
- }
188224
- return s;
188225
- }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.serializeBinary = function() {
188226
- var s = new e.BinaryWriter();
188227
- return proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
188228
- }, 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
188021
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.prototype.toObject = function(s) {
188256
188022
  return proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.toObject(s, this);
188257
188023
  }, proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.toObject = function(s, g) {
@@ -189221,27 +188987,11 @@ SLAMService.GetPosition = {
189221
188987
  requestType: service_slam_v1_slam_pb.GetPositionRequest,
189222
188988
  responseType: service_slam_v1_slam_pb.GetPositionResponse
189223
188989
  };
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
188990
  SLAMService.GetPointCloudMap = {
189241
188991
  methodName: "GetPointCloudMap",
189242
188992
  service: SLAMService,
189243
188993
  requestStream: !1,
189244
- responseStream: !1,
188994
+ responseStream: !0,
189245
188995
  requestType: service_slam_v1_slam_pb.GetPointCloudMapRequest,
189246
188996
  responseType: service_slam_v1_slam_pb.GetPointCloudMapResponse
189247
188997
  };
@@ -189249,10 +188999,18 @@ SLAMService.GetInternalState = {
189249
188999
  methodName: "GetInternalState",
189250
189000
  service: SLAMService,
189251
189001
  requestStream: !1,
189252
- responseStream: !1,
189002
+ responseStream: !0,
189253
189003
  requestType: service_slam_v1_slam_pb.GetInternalStateRequest,
189254
189004
  responseType: service_slam_v1_slam_pb.GetInternalStateResponse
189255
189005
  };
189006
+ SLAMService.GetPositionNew = {
189007
+ methodName: "GetPositionNew",
189008
+ service: SLAMService,
189009
+ requestStream: !1,
189010
+ responseStream: !1,
189011
+ requestType: service_slam_v1_slam_pb.GetPositionNewRequest,
189012
+ responseType: service_slam_v1_slam_pb.GetPositionNewResponse
189013
+ };
189256
189014
  SLAMService.GetPointCloudMapStream = {
189257
189015
  methodName: "GetPointCloudMapStream",
189258
189016
  service: SLAMService,
@@ -189303,78 +189061,75 @@ SLAMServiceClient.prototype.getPosition = function o(e, r, p) {
189303
189061
  }
189304
189062
  };
189305
189063
  };
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, {
189064
+ SLAMServiceClient.prototype.getPointCloudMap = function o(e, r) {
189065
+ var p = {
189066
+ data: [],
189067
+ end: [],
189068
+ status: []
189069
+ }, t = grpc$6.invoke(SLAMService.GetPointCloudMap, {
189332
189070
  request: e,
189333
189071
  host: this.serviceHost,
189334
189072
  metadata: r,
189335
189073
  transport: this.options.transport,
189336
189074
  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);
189075
+ onMessage: function(n) {
189076
+ p.data.forEach(function(i) {
189077
+ i(n);
189078
+ });
189079
+ },
189080
+ onEnd: function(n, i, s) {
189081
+ p.status.forEach(function(g) {
189082
+ g({ code: n, details: i, metadata: s });
189083
+ }), p.end.forEach(function(g) {
189084
+ g({ code: n, details: i, metadata: s });
189085
+ }), p = null;
189344
189086
  }
189345
189087
  });
189346
189088
  return {
189089
+ on: function(n, i) {
189090
+ return p[n].push(i), this;
189091
+ },
189347
189092
  cancel: function() {
189348
189093
  p = null, t.close();
189349
189094
  }
189350
189095
  };
189351
189096
  };
189352
- SLAMServiceClient.prototype.getPointCloudMap = function o(e, r, p) {
189353
- arguments.length === 2 && (p = arguments[1]);
189354
- var t = grpc$6.unary(SLAMService.GetPointCloudMap, {
189097
+ SLAMServiceClient.prototype.getInternalState = function o(e, r) {
189098
+ var p = {
189099
+ data: [],
189100
+ end: [],
189101
+ status: []
189102
+ }, t = grpc$6.invoke(SLAMService.GetInternalState, {
189355
189103
  request: e,
189356
189104
  host: this.serviceHost,
189357
189105
  metadata: r,
189358
189106
  transport: this.options.transport,
189359
189107
  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);
189108
+ onMessage: function(n) {
189109
+ p.data.forEach(function(i) {
189110
+ i(n);
189111
+ });
189112
+ },
189113
+ onEnd: function(n, i, s) {
189114
+ p.status.forEach(function(g) {
189115
+ g({ code: n, details: i, metadata: s });
189116
+ }), p.end.forEach(function(g) {
189117
+ g({ code: n, details: i, metadata: s });
189118
+ }), p = null;
189367
189119
  }
189368
189120
  });
189369
189121
  return {
189122
+ on: function(n, i) {
189123
+ return p[n].push(i), this;
189124
+ },
189370
189125
  cancel: function() {
189371
189126
  p = null, t.close();
189372
189127
  }
189373
189128
  };
189374
189129
  };
189375
- SLAMServiceClient.prototype.getInternalState = function o(e, r, p) {
189130
+ SLAMServiceClient.prototype.getPositionNew = function o(e, r, p) {
189376
189131
  arguments.length === 2 && (p = arguments[1]);
189377
- var t = grpc$6.unary(SLAMService.GetInternalState, {
189132
+ var t = grpc$6.unary(SLAMService.GetPositionNew, {
189378
189133
  request: e,
189379
189134
  host: this.serviceHost,
189380
189135
  metadata: r,
@@ -226624,23 +226379,26 @@ class RobotClient {
226624
226379
  p
226625
226380
  );
226626
226381
  this.peerConn = i.peerConnection, this.transportFactory = i.transportFactory, i.peerConnection.ontrack = (s) => {
226627
- events.emit("track", s);
226628
226382
  const { kind: g } = s.track, l = s.streams[0];
226629
226383
  if (!l)
226630
- throw new Error("expected event stream to exist");
226631
- const u = l.id, c = document.querySelectorAll(
226632
- `[data-stream="${u}"]`
226633
- );
226634
- for (const h of c) {
226635
- const y = document.createElement(g);
226636
- y.srcObject = l, y.autoplay = !0, y instanceof HTMLVideoElement ? (y.playsInline = !0, y.controls = !1) : y.controls = !0, h.querySelector(g)?.remove(), h.append(y);
226384
+ throw events.emit("track", s), new Error("expected event stream to exist");
226385
+ const u = l.id.replaceAll("+", ":");
226386
+ Object.defineProperty(l, "id", {
226387
+ value: u
226388
+ }), events.emit("track", s);
226389
+ const c = l.id, m = document.querySelectorAll(
226390
+ `[data-stream="${c}"]`
226391
+ );
226392
+ for (const y of m) {
226393
+ const f = document.createElement(g);
226394
+ f.srcObject = l, f.autoplay = !0, f instanceof HTMLVideoElement ? (f.playsInline = !0, f.controls = !1) : f.controls = !0, y.querySelector(g)?.remove(), y.append(f);
226637
226395
  }
226638
- const m = document.querySelectorAll(
226639
- `[data-stream-preview="${u}"]`
226396
+ const h = document.querySelectorAll(
226397
+ `[data-stream-preview="${c}"]`
226640
226398
  );
226641
- for (const h of m) {
226642
- const y = document.createElement(g);
226643
- y.srcObject = l, y.autoplay = !0, y instanceof HTMLVideoElement ? (y.playsInline = !0, y.controls = !1) : y.controls = !0, h.querySelector(g)?.remove(), h.append(y);
226399
+ for (const y of h) {
226400
+ const f = document.createElement(g);
226401
+ f.srcObject = l, f.autoplay = !0, f instanceof HTMLVideoElement ? (f.playsInline = !0, f.controls = !1) : f.controls = !0, y.querySelector(g)?.remove(), y.append(f);
226644
226402
  }
226645
226403
  };
226646
226404
  } else
@@ -400088,19 +399846,11 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400088
399846
  var n = annotations_pb$3;
400089
399847
  r.object.extend(proto, n);
400090
399848
  var i = struct_pb$4;
400091
- 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) {
399849
+ 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.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) {
400092
399850
  e.Message.initialize(this, s, 0, -1, null, null);
400093
399851
  }, 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) {
400094
399852
  e.Message.initialize(this, s, 0, -1, null, null);
400095
- }, 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) {
400096
- e.Message.initialize(this, s, 0, -1, null, null);
400097
- }, 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) {
400098
- e.Message.initialize(this, s, 0, -1, null, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_);
400099
- }, 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) {
400100
- e.Message.initialize(this, s, 0, -1, null, null);
400101
- }, 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) {
400102
- e.Message.initialize(this, s, 0, -1, null, null);
400103
- }, 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) {
399853
+ }, 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) {
400104
399854
  e.Message.initialize(this, s, 0, -1, null, null);
400105
399855
  }, 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) {
400106
399856
  e.Message.initialize(this, s, 0, -1, null, null);
@@ -400108,7 +399858,11 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400108
399858
  e.Message.initialize(this, s, 0, -1, null, null);
400109
399859
  }, 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) {
400110
399860
  e.Message.initialize(this, s, 0, -1, null, null);
400111
- }, 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) {
399861
+ }, 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.GetPositionNewRequest = function(s) {
399862
+ e.Message.initialize(this, s, 0, -1, null, null);
399863
+ }, 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) {
399864
+ e.Message.initialize(this, s, 0, -1, null, null);
399865
+ }, 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.GetPointCloudMapStreamRequest = function(s) {
400112
399866
  e.Message.initialize(this, s, 0, -1, null, null);
400113
399867
  }, 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) {
400114
399868
  e.Message.initialize(this, s, 0, -1, null, null);
@@ -400119,11 +399873,10 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400119
399873
  }, 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) {
400120
399874
  return proto.viam.service.slam.v1.GetPositionRequest.toObject(s, this);
400121
399875
  }, proto.viam.service.slam.v1.GetPositionRequest.toObject = function(s, g) {
400122
- var l, u = {
400123
- name: e.Message.getFieldWithDefault(g, 1, ""),
400124
- extra: (l = g.getExtra()) && i.Struct.toObject(s, l)
399876
+ var l = {
399877
+ name: e.Message.getFieldWithDefault(g, 1, "")
400125
399878
  };
400126
- return s && (u.$jspbMessageInstance = g), u;
399879
+ return s && (l.$jspbMessageInstance = g), l;
400127
399880
  }), proto.viam.service.slam.v1.GetPositionRequest.deserializeBinary = function(s) {
400128
399881
  var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPositionRequest();
400129
399882
  return proto.viam.service.slam.v1.GetPositionRequest.deserializeBinaryFromReader(l, g);
@@ -400138,10 +399891,6 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400138
399891
  );
400139
399892
  s.setName(u);
400140
399893
  break;
400141
- case 99:
400142
- var u = new i.Struct();
400143
- g.readMessage(u, i.Struct.deserializeBinaryFromReader), s.setExtra(u);
400144
- break;
400145
399894
  default:
400146
399895
  g.skipField();
400147
399896
  break;
@@ -400156,10 +399905,6 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400156
399905
  l = s.getName(), l.length > 0 && g.writeString(
400157
399906
  1,
400158
399907
  l
400159
- ), l = s.getExtra(), l != null && g.writeMessage(
400160
- 99,
400161
- l,
400162
- i.Struct.serializeBinaryToWriter
400163
399908
  );
400164
399909
  }, proto.viam.service.slam.v1.GetPositionRequest.prototype.getName = function() {
400165
399910
  return (
@@ -400168,22 +399913,12 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400168
399913
  );
400169
399914
  }, proto.viam.service.slam.v1.GetPositionRequest.prototype.setName = function(s) {
400170
399915
  return e.Message.setProto3StringField(this, 1, s);
400171
- }, proto.viam.service.slam.v1.GetPositionRequest.prototype.getExtra = function() {
400172
- return (
400173
- /** @type{?proto.google.protobuf.Struct} */
400174
- e.Message.getWrapperField(this, i.Struct, 99)
400175
- );
400176
- }, proto.viam.service.slam.v1.GetPositionRequest.prototype.setExtra = function(s) {
400177
- return e.Message.setWrapperField(this, 99, s);
400178
- }, proto.viam.service.slam.v1.GetPositionRequest.prototype.clearExtra = function() {
400179
- return this.setExtra(void 0);
400180
- }, proto.viam.service.slam.v1.GetPositionRequest.prototype.hasExtra = function() {
400181
- return e.Message.getField(this, 99) != null;
400182
399916
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionResponse.prototype.toObject = function(s) {
400183
399917
  return proto.viam.service.slam.v1.GetPositionResponse.toObject(s, this);
400184
399918
  }, proto.viam.service.slam.v1.GetPositionResponse.toObject = function(s, g) {
400185
399919
  var l, u = {
400186
- pose: (l = g.getPose()) && t.PoseInFrame.toObject(s, l),
399920
+ pose: (l = g.getPose()) && t.Pose.toObject(s, l),
399921
+ componentReference: e.Message.getFieldWithDefault(g, 2, ""),
400187
399922
  extra: (l = g.getExtra()) && i.Struct.toObject(s, l)
400188
399923
  };
400189
399924
  return s && (u.$jspbMessageInstance = g), u;
@@ -400195,8 +399930,15 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400195
399930
  var l = g.getFieldNumber();
400196
399931
  switch (l) {
400197
399932
  case 1:
400198
- var u = new t.PoseInFrame();
400199
- g.readMessage(u, t.PoseInFrame.deserializeBinaryFromReader), s.setPose(u);
399933
+ var u = new t.Pose();
399934
+ g.readMessage(u, t.Pose.deserializeBinaryFromReader), s.setPose(u);
399935
+ break;
399936
+ case 2:
399937
+ var u = (
399938
+ /** @type {string} */
399939
+ g.readString()
399940
+ );
399941
+ s.setComponentReference(u);
400200
399942
  break;
400201
399943
  case 99:
400202
399944
  var u = new i.Struct();
@@ -400216,7 +399958,10 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400216
399958
  l = s.getPose(), l != null && g.writeMessage(
400217
399959
  1,
400218
399960
  l,
400219
- t.PoseInFrame.serializeBinaryToWriter
399961
+ t.Pose.serializeBinaryToWriter
399962
+ ), l = s.getComponentReference(), l.length > 0 && g.writeString(
399963
+ 2,
399964
+ l
400220
399965
  ), l = s.getExtra(), l != null && g.writeMessage(
400221
399966
  99,
400222
399967
  l,
@@ -400224,8 +399969,8 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400224
399969
  );
400225
399970
  }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getPose = function() {
400226
399971
  return (
400227
- /** @type{?proto.viam.common.v1.PoseInFrame} */
400228
- e.Message.getWrapperField(this, t.PoseInFrame, 1)
399972
+ /** @type{?proto.viam.common.v1.Pose} */
399973
+ e.Message.getWrapperField(this, t.Pose, 1)
400229
399974
  );
400230
399975
  }, proto.viam.service.slam.v1.GetPositionResponse.prototype.setPose = function(s) {
400231
399976
  return e.Message.setWrapperField(this, 1, s);
@@ -400233,6 +399978,13 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400233
399978
  return this.setPose(void 0);
400234
399979
  }, proto.viam.service.slam.v1.GetPositionResponse.prototype.hasPose = function() {
400235
399980
  return e.Message.getField(this, 1) != null;
399981
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getComponentReference = function() {
399982
+ return (
399983
+ /** @type {string} */
399984
+ e.Message.getFieldWithDefault(this, 2, "")
399985
+ );
399986
+ }, proto.viam.service.slam.v1.GetPositionResponse.prototype.setComponentReference = function(s) {
399987
+ return e.Message.setProto3StringField(this, 2, s);
400236
399988
  }, proto.viam.service.slam.v1.GetPositionResponse.prototype.getExtra = function() {
400237
399989
  return (
400238
399990
  /** @type{?proto.google.protobuf.Struct} */
@@ -400244,21 +399996,17 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400244
399996
  return this.setExtra(void 0);
400245
399997
  }, proto.viam.service.slam.v1.GetPositionResponse.prototype.hasExtra = function() {
400246
399998
  return e.Message.getField(this, 99) != null;
400247
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetMapRequest.prototype.toObject = function(s) {
400248
- return proto.viam.service.slam.v1.GetMapRequest.toObject(s, this);
400249
- }, proto.viam.service.slam.v1.GetMapRequest.toObject = function(s, g) {
400250
- var l, u = {
400251
- name: e.Message.getFieldWithDefault(g, 1, ""),
400252
- mimeType: e.Message.getFieldWithDefault(g, 2, ""),
400253
- cameraPosition: (l = g.getCameraPosition()) && t.Pose.toObject(s, l),
400254
- includeRobotMarker: e.Message.getBooleanFieldWithDefault(g, 4, !1),
400255
- extra: (l = g.getExtra()) && i.Struct.toObject(s, l)
399999
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.toObject = function(s) {
400000
+ return proto.viam.service.slam.v1.GetPointCloudMapRequest.toObject(s, this);
400001
+ }, proto.viam.service.slam.v1.GetPointCloudMapRequest.toObject = function(s, g) {
400002
+ var l = {
400003
+ name: e.Message.getFieldWithDefault(g, 1, "")
400256
400004
  };
400257
- return s && (u.$jspbMessageInstance = g), u;
400258
- }), proto.viam.service.slam.v1.GetMapRequest.deserializeBinary = function(s) {
400259
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetMapRequest();
400260
- return proto.viam.service.slam.v1.GetMapRequest.deserializeBinaryFromReader(l, g);
400261
- }, proto.viam.service.slam.v1.GetMapRequest.deserializeBinaryFromReader = function(s, g) {
400005
+ return s && (l.$jspbMessageInstance = g), l;
400006
+ }), proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinary = function(s) {
400007
+ var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPointCloudMapRequest();
400008
+ return proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinaryFromReader(l, g);
400009
+ }, proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinaryFromReader = function(s, g) {
400262
400010
  for (; g.nextField() && !g.isEndGroup(); ) {
400263
400011
  var l = g.getFieldNumber();
400264
400012
  switch (l) {
@@ -400269,27 +400017,48 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400269
400017
  );
400270
400018
  s.setName(u);
400271
400019
  break;
400272
- case 2:
400273
- var u = (
400274
- /** @type {string} */
400275
- g.readString()
400276
- );
400277
- s.setMimeType(u);
400278
- break;
400279
- case 3:
400280
- var u = new t.Pose();
400281
- g.readMessage(u, t.Pose.deserializeBinaryFromReader), s.setCameraPosition(u);
400020
+ default:
400021
+ g.skipField();
400282
400022
  break;
400283
- case 4:
400023
+ }
400024
+ }
400025
+ return s;
400026
+ }, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.serializeBinary = function() {
400027
+ var s = new e.BinaryWriter();
400028
+ return proto.viam.service.slam.v1.GetPointCloudMapRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
400029
+ }, proto.viam.service.slam.v1.GetPointCloudMapRequest.serializeBinaryToWriter = function(s, g) {
400030
+ var l = void 0;
400031
+ l = s.getName(), l.length > 0 && g.writeString(
400032
+ 1,
400033
+ l
400034
+ );
400035
+ }, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.getName = function() {
400036
+ return (
400037
+ /** @type {string} */
400038
+ e.Message.getFieldWithDefault(this, 1, "")
400039
+ );
400040
+ }, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.setName = function(s) {
400041
+ return e.Message.setProto3StringField(this, 1, s);
400042
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.toObject = function(s) {
400043
+ return proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject(s, this);
400044
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject = function(s, g) {
400045
+ var l = {
400046
+ pointCloudPcdChunk: g.getPointCloudPcdChunk_asB64()
400047
+ };
400048
+ return s && (l.$jspbMessageInstance = g), l;
400049
+ }), proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinary = function(s) {
400050
+ var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPointCloudMapResponse();
400051
+ return proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinaryFromReader(l, g);
400052
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinaryFromReader = function(s, g) {
400053
+ for (; g.nextField() && !g.isEndGroup(); ) {
400054
+ var l = g.getFieldNumber();
400055
+ switch (l) {
400056
+ case 1:
400284
400057
  var u = (
400285
- /** @type {boolean} */
400286
- g.readBool()
400058
+ /** @type {!Uint8Array} */
400059
+ g.readBytes()
400287
400060
  );
400288
- s.setIncludeRobotMarker(u);
400289
- break;
400290
- case 99:
400291
- var u = new i.Struct();
400292
- g.readMessage(u, i.Struct.deserializeBinaryFromReader), s.setExtra(u);
400061
+ s.setPointCloudPcdChunk(u);
400293
400062
  break;
400294
400063
  default:
400295
400064
  g.skipField();
@@ -400297,114 +400066,99 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400297
400066
  }
400298
400067
  }
400299
400068
  return s;
400300
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.serializeBinary = function() {
400069
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.serializeBinary = function() {
400301
400070
  var s = new e.BinaryWriter();
400302
- return proto.viam.service.slam.v1.GetMapRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
400303
- }, proto.viam.service.slam.v1.GetMapRequest.serializeBinaryToWriter = function(s, g) {
400071
+ return proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
400072
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter = function(s, g) {
400304
400073
  var l = void 0;
400305
- l = s.getName(), l.length > 0 && g.writeString(
400074
+ l = s.getPointCloudPcdChunk_asU8(), l.length > 0 && g.writeBytes(
400306
400075
  1,
400307
400076
  l
400308
- ), l = s.getMimeType(), l.length > 0 && g.writeString(
400309
- 2,
400310
- l
400311
- ), l = s.getCameraPosition(), l != null && g.writeMessage(
400312
- 3,
400313
- l,
400314
- t.Pose.serializeBinaryToWriter
400315
- ), l = s.getIncludeRobotMarker(), l && g.writeBool(
400316
- 4,
400317
- l
400318
- ), l = s.getExtra(), l != null && g.writeMessage(
400319
- 99,
400320
- l,
400321
- i.Struct.serializeBinaryToWriter
400322
400077
  );
400323
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getName = function() {
400078
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcdChunk = function() {
400324
400079
  return (
400325
400080
  /** @type {string} */
400326
400081
  e.Message.getFieldWithDefault(this, 1, "")
400327
400082
  );
400328
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setName = function(s) {
400329
- return e.Message.setProto3StringField(this, 1, s);
400330
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getMimeType = function() {
400083
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcdChunk_asB64 = function() {
400331
400084
  return (
400332
400085
  /** @type {string} */
400333
- e.Message.getFieldWithDefault(this, 2, "")
400086
+ e.Message.bytesAsB64(
400087
+ this.getPointCloudPcdChunk()
400088
+ )
400334
400089
  );
400335
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setMimeType = function(s) {
400336
- return e.Message.setProto3StringField(this, 2, s);
400337
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getCameraPosition = function() {
400090
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcdChunk_asU8 = function() {
400338
400091
  return (
400339
- /** @type{?proto.viam.common.v1.Pose} */
400340
- e.Message.getWrapperField(this, t.Pose, 3)
400092
+ /** @type {!Uint8Array} */
400093
+ e.Message.bytesAsU8(
400094
+ this.getPointCloudPcdChunk()
400095
+ )
400341
400096
  );
400342
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setCameraPosition = function(s) {
400343
- return e.Message.setWrapperField(this, 3, s);
400344
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.clearCameraPosition = function() {
400345
- return this.setCameraPosition(void 0);
400346
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.hasCameraPosition = function() {
400347
- return e.Message.getField(this, 3) != null;
400348
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getIncludeRobotMarker = function() {
400349
- return (
400350
- /** @type {boolean} */
400351
- e.Message.getBooleanFieldWithDefault(this, 4, !1)
400097
+ }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.setPointCloudPcdChunk = function(s) {
400098
+ return e.Message.setProto3BytesField(this, 1, s);
400099
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateRequest.prototype.toObject = function(s) {
400100
+ return proto.viam.service.slam.v1.GetInternalStateRequest.toObject(s, this);
400101
+ }, proto.viam.service.slam.v1.GetInternalStateRequest.toObject = function(s, g) {
400102
+ var l = {
400103
+ name: e.Message.getFieldWithDefault(g, 1, "")
400104
+ };
400105
+ return s && (l.$jspbMessageInstance = g), l;
400106
+ }), proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinary = function(s) {
400107
+ var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetInternalStateRequest();
400108
+ return proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinaryFromReader(l, g);
400109
+ }, proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinaryFromReader = function(s, g) {
400110
+ for (; g.nextField() && !g.isEndGroup(); ) {
400111
+ var l = g.getFieldNumber();
400112
+ switch (l) {
400113
+ case 1:
400114
+ var u = (
400115
+ /** @type {string} */
400116
+ g.readString()
400117
+ );
400118
+ s.setName(u);
400119
+ break;
400120
+ default:
400121
+ g.skipField();
400122
+ break;
400123
+ }
400124
+ }
400125
+ return s;
400126
+ }, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.serializeBinary = function() {
400127
+ var s = new e.BinaryWriter();
400128
+ return proto.viam.service.slam.v1.GetInternalStateRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
400129
+ }, proto.viam.service.slam.v1.GetInternalStateRequest.serializeBinaryToWriter = function(s, g) {
400130
+ var l = void 0;
400131
+ l = s.getName(), l.length > 0 && g.writeString(
400132
+ 1,
400133
+ l
400352
400134
  );
400353
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setIncludeRobotMarker = function(s) {
400354
- return e.Message.setProto3BooleanField(this, 4, s);
400355
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.getExtra = function() {
400135
+ }, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.getName = function() {
400356
400136
  return (
400357
- /** @type{?proto.google.protobuf.Struct} */
400358
- e.Message.getWrapperField(this, i.Struct, 99)
400137
+ /** @type {string} */
400138
+ e.Message.getFieldWithDefault(this, 1, "")
400359
400139
  );
400360
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.setExtra = function(s) {
400361
- return e.Message.setWrapperField(this, 99, s);
400362
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.clearExtra = function() {
400363
- return this.setExtra(void 0);
400364
- }, proto.viam.service.slam.v1.GetMapRequest.prototype.hasExtra = function() {
400365
- return e.Message.getField(this, 99) != null;
400366
- }, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_ = [[1, 2]], proto.viam.service.slam.v1.GetMapResponse.MapCase = {
400367
- MAP_NOT_SET: 0,
400368
- POINT_CLOUD: 1,
400369
- IMAGE: 2
400370
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getMapCase = function() {
400371
- return (
400372
- /** @type {proto.viam.service.slam.v1.GetMapResponse.MapCase} */
400373
- e.Message.computeOneofCase(this, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_[0])
400374
- );
400375
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetMapResponse.prototype.toObject = function(s) {
400376
- return proto.viam.service.slam.v1.GetMapResponse.toObject(s, this);
400377
- }, proto.viam.service.slam.v1.GetMapResponse.toObject = function(s, g) {
400378
- var l, u = {
400379
- pointCloud: (l = g.getPointCloud()) && t.PointCloudObject.toObject(s, l),
400380
- image: g.getImage_asB64(),
400381
- mimeType: e.Message.getFieldWithDefault(g, 3, "")
400140
+ }, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.setName = function(s) {
400141
+ return e.Message.setProto3StringField(this, 1, s);
400142
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateResponse.prototype.toObject = function(s) {
400143
+ return proto.viam.service.slam.v1.GetInternalStateResponse.toObject(s, this);
400144
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.toObject = function(s, g) {
400145
+ var l = {
400146
+ internalStateChunk: g.getInternalStateChunk_asB64()
400382
400147
  };
400383
- return s && (u.$jspbMessageInstance = g), u;
400384
- }), proto.viam.service.slam.v1.GetMapResponse.deserializeBinary = function(s) {
400385
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetMapResponse();
400386
- return proto.viam.service.slam.v1.GetMapResponse.deserializeBinaryFromReader(l, g);
400387
- }, proto.viam.service.slam.v1.GetMapResponse.deserializeBinaryFromReader = function(s, g) {
400148
+ return s && (l.$jspbMessageInstance = g), l;
400149
+ }), proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinary = function(s) {
400150
+ var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetInternalStateResponse();
400151
+ return proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinaryFromReader(l, g);
400152
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinaryFromReader = function(s, g) {
400388
400153
  for (; g.nextField() && !g.isEndGroup(); ) {
400389
400154
  var l = g.getFieldNumber();
400390
400155
  switch (l) {
400391
400156
  case 1:
400392
- var u = new t.PointCloudObject();
400393
- g.readMessage(u, t.PointCloudObject.deserializeBinaryFromReader), s.setPointCloud(u);
400394
- break;
400395
- case 2:
400396
400157
  var u = (
400397
400158
  /** @type {!Uint8Array} */
400398
400159
  g.readBytes()
400399
400160
  );
400400
- s.setImage(u);
400401
- break;
400402
- case 3:
400403
- var u = (
400404
- /** @type {string} */
400405
- g.readString()
400406
- );
400407
- s.setMimeType(u);
400161
+ s.setInternalStateChunk(u);
400408
400162
  break;
400409
400163
  default:
400410
400164
  g.skipField();
@@ -400412,66 +400166,36 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400412
400166
  }
400413
400167
  }
400414
400168
  return s;
400415
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.serializeBinary = function() {
400169
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.serializeBinary = function() {
400416
400170
  var s = new e.BinaryWriter();
400417
- return proto.viam.service.slam.v1.GetMapResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
400418
- }, proto.viam.service.slam.v1.GetMapResponse.serializeBinaryToWriter = function(s, g) {
400171
+ return proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
400172
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter = function(s, g) {
400419
400173
  var l = void 0;
400420
- l = s.getPointCloud(), l != null && g.writeMessage(
400174
+ l = s.getInternalStateChunk_asU8(), l.length > 0 && g.writeBytes(
400421
400175
  1,
400422
- l,
400423
- t.PointCloudObject.serializeBinaryToWriter
400424
- ), l = /** @type {!(string|Uint8Array)} */
400425
- e.Message.getField(s, 2), l != null && g.writeBytes(
400426
- 2,
400427
400176
  l
400428
- ), l = s.getMimeType(), l.length > 0 && g.writeString(
400429
- 3,
400430
- l
400431
- );
400432
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getPointCloud = function() {
400433
- return (
400434
- /** @type{?proto.viam.common.v1.PointCloudObject} */
400435
- e.Message.getWrapperField(this, t.PointCloudObject, 1)
400436
400177
  );
400437
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.setPointCloud = function(s) {
400438
- return e.Message.setOneofWrapperField(this, 1, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_[0], s);
400439
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.clearPointCloud = function() {
400440
- return this.setPointCloud(void 0);
400441
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.hasPointCloud = function() {
400442
- return e.Message.getField(this, 1) != null;
400443
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getImage = function() {
400178
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalStateChunk = function() {
400444
400179
  return (
400445
400180
  /** @type {string} */
400446
- e.Message.getFieldWithDefault(this, 2, "")
400181
+ e.Message.getFieldWithDefault(this, 1, "")
400447
400182
  );
400448
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getImage_asB64 = function() {
400183
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalStateChunk_asB64 = function() {
400449
400184
  return (
400450
400185
  /** @type {string} */
400451
400186
  e.Message.bytesAsB64(
400452
- this.getImage()
400187
+ this.getInternalStateChunk()
400453
400188
  )
400454
400189
  );
400455
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getImage_asU8 = function() {
400190
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalStateChunk_asU8 = function() {
400456
400191
  return (
400457
400192
  /** @type {!Uint8Array} */
400458
400193
  e.Message.bytesAsU8(
400459
- this.getImage()
400194
+ this.getInternalStateChunk()
400460
400195
  )
400461
400196
  );
400462
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.setImage = function(s) {
400463
- return e.Message.setOneofField(this, 2, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_[0], s);
400464
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.clearImage = function() {
400465
- return e.Message.setOneofField(this, 2, proto.viam.service.slam.v1.GetMapResponse.oneofGroups_[0], void 0);
400466
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.hasImage = function() {
400467
- return e.Message.getField(this, 2) != null;
400468
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.getMimeType = function() {
400469
- return (
400470
- /** @type {string} */
400471
- e.Message.getFieldWithDefault(this, 3, "")
400472
- );
400473
- }, proto.viam.service.slam.v1.GetMapResponse.prototype.setMimeType = function(s) {
400474
- return e.Message.setProto3StringField(this, 3, s);
400197
+ }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.setInternalStateChunk = function(s) {
400198
+ return e.Message.setProto3BytesField(this, 1, s);
400475
400199
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionNewRequest.prototype.toObject = function(s) {
400476
400200
  return proto.viam.service.slam.v1.GetPositionNewRequest.toObject(s, this);
400477
400201
  }, proto.viam.service.slam.v1.GetPositionNewRequest.toObject = function(s, g) {
@@ -400598,206 +400322,6 @@ var annotations_pb$3 = {}, http_pb$3 = {};
400598
400322
  return this.setExtra(void 0);
400599
400323
  }, proto.viam.service.slam.v1.GetPositionNewResponse.prototype.hasExtra = function() {
400600
400324
  return e.Message.getField(this, 99) != null;
400601
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.toObject = function(s) {
400602
- return proto.viam.service.slam.v1.GetPointCloudMapRequest.toObject(s, this);
400603
- }, proto.viam.service.slam.v1.GetPointCloudMapRequest.toObject = function(s, g) {
400604
- var l = {
400605
- name: e.Message.getFieldWithDefault(g, 1, "")
400606
- };
400607
- return s && (l.$jspbMessageInstance = g), l;
400608
- }), proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinary = function(s) {
400609
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPointCloudMapRequest();
400610
- return proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinaryFromReader(l, g);
400611
- }, proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinaryFromReader = function(s, g) {
400612
- for (; g.nextField() && !g.isEndGroup(); ) {
400613
- var l = g.getFieldNumber();
400614
- switch (l) {
400615
- case 1:
400616
- var u = (
400617
- /** @type {string} */
400618
- g.readString()
400619
- );
400620
- s.setName(u);
400621
- break;
400622
- default:
400623
- g.skipField();
400624
- break;
400625
- }
400626
- }
400627
- return s;
400628
- }, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.serializeBinary = function() {
400629
- var s = new e.BinaryWriter();
400630
- return proto.viam.service.slam.v1.GetPointCloudMapRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
400631
- }, proto.viam.service.slam.v1.GetPointCloudMapRequest.serializeBinaryToWriter = function(s, g) {
400632
- var l = void 0;
400633
- l = s.getName(), l.length > 0 && g.writeString(
400634
- 1,
400635
- l
400636
- );
400637
- }, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.getName = function() {
400638
- return (
400639
- /** @type {string} */
400640
- e.Message.getFieldWithDefault(this, 1, "")
400641
- );
400642
- }, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.setName = function(s) {
400643
- return e.Message.setProto3StringField(this, 1, s);
400644
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.toObject = function(s) {
400645
- return proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject(s, this);
400646
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject = function(s, g) {
400647
- var l = {
400648
- pointCloudPcd: g.getPointCloudPcd_asB64()
400649
- };
400650
- return s && (l.$jspbMessageInstance = g), l;
400651
- }), proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinary = function(s) {
400652
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetPointCloudMapResponse();
400653
- return proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinaryFromReader(l, g);
400654
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinaryFromReader = function(s, g) {
400655
- for (; g.nextField() && !g.isEndGroup(); ) {
400656
- var l = g.getFieldNumber();
400657
- switch (l) {
400658
- case 1:
400659
- var u = (
400660
- /** @type {!Uint8Array} */
400661
- g.readBytes()
400662
- );
400663
- s.setPointCloudPcd(u);
400664
- break;
400665
- default:
400666
- g.skipField();
400667
- break;
400668
- }
400669
- }
400670
- return s;
400671
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.serializeBinary = function() {
400672
- var s = new e.BinaryWriter();
400673
- return proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
400674
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter = function(s, g) {
400675
- var l = void 0;
400676
- l = s.getPointCloudPcd_asU8(), l.length > 0 && g.writeBytes(
400677
- 1,
400678
- l
400679
- );
400680
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcd = function() {
400681
- return (
400682
- /** @type {string} */
400683
- e.Message.getFieldWithDefault(this, 1, "")
400684
- );
400685
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcd_asB64 = function() {
400686
- return (
400687
- /** @type {string} */
400688
- e.Message.bytesAsB64(
400689
- this.getPointCloudPcd()
400690
- )
400691
- );
400692
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcd_asU8 = function() {
400693
- return (
400694
- /** @type {!Uint8Array} */
400695
- e.Message.bytesAsU8(
400696
- this.getPointCloudPcd()
400697
- )
400698
- );
400699
- }, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.setPointCloudPcd = function(s) {
400700
- return e.Message.setProto3BytesField(this, 1, s);
400701
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateRequest.prototype.toObject = function(s) {
400702
- return proto.viam.service.slam.v1.GetInternalStateRequest.toObject(s, this);
400703
- }, proto.viam.service.slam.v1.GetInternalStateRequest.toObject = function(s, g) {
400704
- var l = {
400705
- name: e.Message.getFieldWithDefault(g, 1, "")
400706
- };
400707
- return s && (l.$jspbMessageInstance = g), l;
400708
- }), proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinary = function(s) {
400709
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetInternalStateRequest();
400710
- return proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinaryFromReader(l, g);
400711
- }, proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinaryFromReader = function(s, g) {
400712
- for (; g.nextField() && !g.isEndGroup(); ) {
400713
- var l = g.getFieldNumber();
400714
- switch (l) {
400715
- case 1:
400716
- var u = (
400717
- /** @type {string} */
400718
- g.readString()
400719
- );
400720
- s.setName(u);
400721
- break;
400722
- default:
400723
- g.skipField();
400724
- break;
400725
- }
400726
- }
400727
- return s;
400728
- }, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.serializeBinary = function() {
400729
- var s = new e.BinaryWriter();
400730
- return proto.viam.service.slam.v1.GetInternalStateRequest.serializeBinaryToWriter(this, s), s.getResultBuffer();
400731
- }, proto.viam.service.slam.v1.GetInternalStateRequest.serializeBinaryToWriter = function(s, g) {
400732
- var l = void 0;
400733
- l = s.getName(), l.length > 0 && g.writeString(
400734
- 1,
400735
- l
400736
- );
400737
- }, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.getName = function() {
400738
- return (
400739
- /** @type {string} */
400740
- e.Message.getFieldWithDefault(this, 1, "")
400741
- );
400742
- }, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.setName = function(s) {
400743
- return e.Message.setProto3StringField(this, 1, s);
400744
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateResponse.prototype.toObject = function(s) {
400745
- return proto.viam.service.slam.v1.GetInternalStateResponse.toObject(s, this);
400746
- }, proto.viam.service.slam.v1.GetInternalStateResponse.toObject = function(s, g) {
400747
- var l = {
400748
- internalState: g.getInternalState_asB64()
400749
- };
400750
- return s && (l.$jspbMessageInstance = g), l;
400751
- }), proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinary = function(s) {
400752
- var g = new e.BinaryReader(s), l = new proto.viam.service.slam.v1.GetInternalStateResponse();
400753
- return proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinaryFromReader(l, g);
400754
- }, proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinaryFromReader = function(s, g) {
400755
- for (; g.nextField() && !g.isEndGroup(); ) {
400756
- var l = g.getFieldNumber();
400757
- switch (l) {
400758
- case 1:
400759
- var u = (
400760
- /** @type {!Uint8Array} */
400761
- g.readBytes()
400762
- );
400763
- s.setInternalState(u);
400764
- break;
400765
- default:
400766
- g.skipField();
400767
- break;
400768
- }
400769
- }
400770
- return s;
400771
- }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.serializeBinary = function() {
400772
- var s = new e.BinaryWriter();
400773
- return proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter(this, s), s.getResultBuffer();
400774
- }, proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter = function(s, g) {
400775
- var l = void 0;
400776
- l = s.getInternalState_asU8(), l.length > 0 && g.writeBytes(
400777
- 1,
400778
- l
400779
- );
400780
- }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalState = function() {
400781
- return (
400782
- /** @type {string} */
400783
- e.Message.getFieldWithDefault(this, 1, "")
400784
- );
400785
- }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalState_asB64 = function() {
400786
- return (
400787
- /** @type {string} */
400788
- e.Message.bytesAsB64(
400789
- this.getInternalState()
400790
- )
400791
- );
400792
- }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalState_asU8 = function() {
400793
- return (
400794
- /** @type {!Uint8Array} */
400795
- e.Message.bytesAsU8(
400796
- this.getInternalState()
400797
- )
400798
- );
400799
- }, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.setInternalState = function(s) {
400800
- return e.Message.setProto3BytesField(this, 1, s);
400801
400325
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.prototype.toObject = function(s) {
400802
400326
  return proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.toObject(s, this);
400803
400327
  }, proto.viam.service.slam.v1.GetPointCloudMapStreamRequest.toObject = function(s, g) {
@@ -451228,6 +450752,9 @@ StreamServiceClient.prototype.removeStream = function o(e, r, p) {
451228
450752
  };
451229
450753
  };
451230
450754
  var StreamServiceClient_1 = StreamServiceClient;
450755
+ const getValidSDPTrackName = function(o) {
450756
+ return o.replaceAll(":", "+");
450757
+ };
451231
450758
  class StreamClient extends EventDispatcher {
451232
450759
  client;
451233
450760
  options;
@@ -451238,18 +450765,34 @@ class StreamClient extends EventDispatcher {
451238
450765
  return this.client;
451239
450766
  }
451240
450767
  async add(e) {
451241
- const r = this.streamService, p = new stream_pb$1.AddStreamRequest();
451242
- p.setName(e), this.options.requestLogger?.(p), await promisify(
451243
- r.addStream.bind(r),
451244
- p
451245
- );
450768
+ const r = this.streamService, p = new stream_pb$1.AddStreamRequest(), t = getValidSDPTrackName(e);
450769
+ p.setName(t), this.options.requestLogger?.(p);
450770
+ try {
450771
+ await promisify(
450772
+ r.addStream.bind(r),
450773
+ p
450774
+ );
450775
+ } catch {
450776
+ p.setName(e), this.options.requestLogger?.(p), await promisify(
450777
+ r.addStream.bind(r),
450778
+ p
450779
+ );
450780
+ }
451246
450781
  }
451247
450782
  async remove(e) {
451248
- const r = this.streamService, p = new stream_pb$1.RemoveStreamRequest();
451249
- p.setName(e), this.options.requestLogger?.(p), await promisify(
451250
- r.removeStream.bind(r),
451251
- p
451252
- );
450783
+ const r = this.streamService, p = new stream_pb$1.RemoveStreamRequest(), t = getValidSDPTrackName(e);
450784
+ p.setName(t), this.options.requestLogger?.(p);
450785
+ try {
450786
+ await promisify(
450787
+ r.removeStream.bind(r),
450788
+ p
450789
+ );
450790
+ } catch {
450791
+ p.setName(e), this.options.requestLogger?.(p), await promisify(
450792
+ r.removeStream.bind(r),
450793
+ p
450794
+ );
450795
+ }
451253
450796
  }
451254
450797
  }
451255
450798
  export {