@viamrobotics/sdk 0.0.46 → 0.0.47

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.
@@ -1,4 +1,4 @@
1
- import type { Extra, Vector3D } from '../../types';
1
+ import type { Extra, Vector3 } from '../../types';
2
2
  /** Represents a physical base of a robot. */
3
3
  export interface Base {
4
4
  /**
@@ -24,14 +24,14 @@ export interface Base {
24
24
  * @param linear - Desired linear power percentage from -1 to 1.
25
25
  * @param angular - Desired angular power percentage from -1 to 1.
26
26
  */
27
- setPower(linear: Vector3D, angular: Vector3D, extra?: Extra): Promise<void>;
27
+ setPower(linear: Vector3, angular: Vector3, extra?: Extra): Promise<void>;
28
28
  /**
29
29
  * Set the linear and angular velocity of a base.
30
30
  *
31
31
  * @param linear - Desired linear velocity in millimeters per second.
32
32
  * @param angular - Desired angular velocity in degrees per second.
33
33
  */
34
- setVelocity(linear: Vector3D, angular: Vector3D, extra?: Extra): Promise<void>;
34
+ setVelocity(linear: Vector3, angular: Vector3, extra?: Extra): Promise<void>;
35
35
  /** Stop a base */
36
36
  stop(extra?: Extra): Promise<void>;
37
37
  /** Return true if the base is in motion. */
@@ -1,6 +1,6 @@
1
1
  import type { RobotClient } from '../../robot';
2
2
  import type { Base } from './Base';
3
- import type { Options, Vector3D } from '../../types';
3
+ import type { Options, Vector3 } from '../../types';
4
4
  /**
5
5
  * A gRPC-web client for the Base component.
6
6
  *
@@ -14,8 +14,8 @@ export declare class BaseClient implements Base {
14
14
  private get baseService();
15
15
  moveStraight(distanceMm: number, mmPerSec: number, extra?: {}): Promise<void>;
16
16
  spin(angleDeg: number, degsPerSec: number, extra?: {}): Promise<void>;
17
- setPower(linear: Vector3D, angular: Vector3D, extra?: {}): Promise<void>;
18
- setVelocity(linear: Vector3D, angular: Vector3D, extra?: {}): Promise<void>;
17
+ setPower(linear: Vector3, angular: Vector3, extra?: {}): Promise<void>;
18
+ setVelocity(linear: Vector3, angular: Vector3, extra?: {}): Promise<void>;
19
19
  stop(extra?: {}): Promise<void>;
20
20
  isMoving(): Promise<boolean>;
21
21
  }
@@ -1,6 +1,7 @@
1
1
  import type { RobotClient } from '../../robot';
2
- import type { MovementSensor } from './MovementSensor';
3
2
  import type { Options } from '../../types';
3
+ import pb from '../../gen/component/movementsensor/v1/movementsensor_pb';
4
+ import type { MovementSensor } from './MovementSensor';
4
5
  /**
5
6
  * A gRPC-web client for the MovementSensor component.
6
7
  *
@@ -13,29 +14,13 @@ export declare class MovementSensorClient implements MovementSensor {
13
14
  private readonly options;
14
15
  constructor(client: RobotClient, name: string, options?: Options);
15
16
  private get movementsensorService();
16
- getLinearVelocity(extra?: {}): Promise<import("../../types").Vector3D>;
17
- getAngularVelocity(extra?: {}): Promise<import("../../types").Vector3D>;
17
+ getLinearVelocity(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Vector3.AsObject>;
18
+ getAngularVelocity(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Vector3.AsObject>;
18
19
  getCompassHeading(extra?: {}): Promise<number>;
19
- getOrientation(extra?: {}): Promise<{
20
- ox: number;
21
- oy: number;
22
- oz: number;
23
- theta: number;
24
- }>;
25
- getPosition(extra?: {}): Promise<{
26
- latitude: number;
27
- longitude: number;
28
- altitudeMM: number;
29
- }>;
30
- getProperties(extra?: {}): Promise<{
31
- linearVelocitySupported: boolean;
32
- angularVelocitySupported: boolean;
33
- orientationSupported: boolean;
34
- positionSupported: boolean;
35
- compassHeadingSupported: boolean;
36
- linearAccelerationSupported: boolean;
37
- }>;
20
+ getOrientation(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Orientation.AsObject>;
21
+ getPosition(extra?: {}): Promise<pb.GetPositionResponse.AsObject>;
22
+ getProperties(extra?: {}): Promise<pb.GetPropertiesResponse.AsObject>;
38
23
  getAccuracy(extra?: {}): Promise<Record<string, number>>;
39
- getLinearAcceleration(extra?: {}): Promise<import("../../types").Vector3D>;
24
+ getLinearAcceleration(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Vector3.AsObject>;
40
25
  getReadings(extra?: {}): Promise<Record<string, unknown>>;
41
26
  }
@@ -1,28 +1,17 @@
1
- import type { Extra, Orientation, Vector3D } from '../../types';
1
+ import type { Extra, Orientation, Vector3 } from '../../types';
2
2
  import type { Sensor } from '../sensor';
3
- export interface Position {
4
- latitude: number;
5
- longitude: number;
6
- altitudeMM: number;
7
- }
8
- /** The readings supported by this movement sensor */
9
- export interface Properties {
10
- linearVelocitySupported: boolean;
11
- angularVelocitySupported: boolean;
12
- orientationSupported: boolean;
13
- positionSupported: boolean;
14
- compassHeadingSupported: boolean;
15
- linearAccelerationSupported: boolean;
16
- }
3
+ import pb from '../../gen/component/movementsensor/v1/movementsensor_pb';
4
+ export type MovementSensorPosition = pb.GetPositionResponse.AsObject;
5
+ export type MovementSensorProperties = pb.GetPropertiesResponse.AsObject;
17
6
  /**
18
7
  * Represents any sensor that reports information about the robot's direction,
19
8
  * position, and/or speed.
20
9
  */
21
10
  export interface MovementSensor extends Sensor {
22
- /** Get linear velocity in mm/s across x/y/z axes */
23
- getLinearVelocity(extra?: Extra): Promise<Vector3D>;
24
- /** Get the angular velocity in degrees/s across x/y/z axes */
25
- getAngularVelocity(extra?: Extra): Promise<Vector3D>;
11
+ /** Get linear velocity across x/y/z axes */
12
+ getLinearVelocity(extra?: Extra): Promise<Vector3>;
13
+ /** Get the angular velocity across x/y/z axes */
14
+ getAngularVelocity(extra?: Extra): Promise<Vector3>;
26
15
  /**
27
16
  * Get the compass heading, which is a number from 0-359 where 0 is North, 90
28
17
  * is East, 180 is South, and 270 is West
@@ -33,12 +22,12 @@ export interface MovementSensor extends Sensor {
33
22
  * is East, 180 is South, and 270 is West
34
23
  */
35
24
  getOrientation(extra?: Extra): Promise<Orientation>;
36
- /** Get the current position latitude, longitude, and altitude (in mm) */
37
- getPosition(extra?: Extra): Promise<Position>;
25
+ /** Get the current position latitude, longitude, and altitude */
26
+ getPosition(extra?: Extra): Promise<MovementSensorPosition>;
38
27
  /** Get the properties of this movement sensor */
39
- getProperties(extra?: Extra): Promise<Properties>;
40
- /** Get the accuracy of various sensors in mm */
28
+ getProperties(extra?: Extra): Promise<MovementSensorProperties>;
29
+ /** Get the accuracy of various sensors */
41
30
  getAccuracy(extra?: Extra): Promise<Record<string, number>>;
42
- /** Get linear acceleration in mm/s/s across x/y/z axes */
43
- getLinearAcceleration(extra?: Extra): Promise<Vector3D>;
31
+ /** Get linear acceleration across x/y/z axes */
32
+ getLinearAcceleration(extra?: Extra): Promise<Vector3>;
44
33
  }
@@ -1,2 +1,2 @@
1
- export type { MovementSensor } from './movementsensor/MovementSensor';
1
+ export type { MovementSensorPosition, MovementSensorProperties, MovementSensor, } from './movementsensor/MovementSensor';
2
2
  export { MovementSensorClient } from './movementsensor/Client';
@@ -228,8 +228,8 @@ export class GetPositionResponse extends jspb.Message {
228
228
  getCoordinate(): common_v1_common_pb.GeoPoint | undefined;
229
229
  setCoordinate(value?: common_v1_common_pb.GeoPoint): void;
230
230
 
231
- getAltitudeMm(): number;
232
- setAltitudeMm(value: number): void;
231
+ getAltitudeM(): number;
232
+ setAltitudeM(value: number): void;
233
233
 
234
234
  serializeBinary(): Uint8Array;
235
235
  toObject(includeInstance?: boolean): GetPositionResponse.AsObject;
@@ -244,7 +244,7 @@ export class GetPositionResponse extends jspb.Message {
244
244
  export namespace GetPositionResponse {
245
245
  export type AsObject = {
246
246
  coordinate?: common_v1_common_pb.GeoPoint.AsObject,
247
- altitudeMm: number,
247
+ altitudeM: number,
248
248
  }
249
249
  }
250
250
 
@@ -341,8 +341,8 @@ export namespace GetAccuracyRequest {
341
341
  }
342
342
 
343
343
  export class GetAccuracyResponse extends jspb.Message {
344
- getAccuracyMmMap(): jspb.Map<string, number>;
345
- clearAccuracyMmMap(): void;
344
+ getAccuracyMap(): jspb.Map<string, number>;
345
+ clearAccuracyMap(): void;
346
346
  serializeBinary(): Uint8Array;
347
347
  toObject(includeInstance?: boolean): GetAccuracyResponse.AsObject;
348
348
  static toObject(includeInstance: boolean, msg: GetAccuracyResponse): GetAccuracyResponse.AsObject;
@@ -355,7 +355,7 @@ export class GetAccuracyResponse extends jspb.Message {
355
355
 
356
356
  export namespace GetAccuracyResponse {
357
357
  export type AsObject = {
358
- accuracyMmMap: Array<[string, number]>,
358
+ accuracyMap: Array<[string, number]>,
359
359
  }
360
360
  }
361
361
 
package/dist/main.d.ts CHANGED
@@ -91,7 +91,7 @@ export { type Motor, MotorClient } from './components/motor';
91
91
  * @group Raw Protobufs
92
92
  */
93
93
  export { default as movementSensorApi } from './gen/component/movementsensor/v1/movementsensor_pb';
94
- export { type MovementSensor, MovementSensorClient, } from './components/movementsensor';
94
+ export { type MovementSensor, type MovementSensorProperties, type MovementSensorPosition, MovementSensorClient, } from './components/movementsensor';
95
95
  /**
96
96
  * Raw Protobuf interfaces generated with
97
97
  * https://github.com/improbable-eng/grpc-web for a Sensor component.
@@ -247,7 +247,7 @@ export { default as inputControllerApi } from './gen/component/inputcontroller/v
247
247
  * @group Raw Protobufs
248
248
  */
249
249
  export { default as motionApi } from './gen/service/motion/v1/motion_pb';
250
- export { type Motion, type MotionConstraints, MotionClient, } from './services/motion';
250
+ export { type Motion, type Constraints, type LinearConstraint, type OrientationConstraint, type CollisionSpecification, MotionClient, } from './services/motion';
251
251
  export { type DataManager, DataManagerClient } from './services/data-manager';
252
252
  /**
253
253
  * Raw Protobuf interfaces for a Navigation service.
package/dist/main.es.js CHANGED
@@ -13193,15 +13193,9 @@ const promisify = function(t, e) {
13193
13193
  return new Promise((s, n) => {
13194
13194
  t(e, new grpcWebClient_umdExports.grpc.Metadata(), (u, g) => u ? n(u) : g ? s(g) : n(new Error("no response")));
13195
13195
  });
13196
- }, encodeVector3D = function(t) {
13196
+ }, encodeVector3 = function(t) {
13197
13197
  const e = new common_pb.Vector3();
13198
13198
  return e.setX(t.x), e.setY(t.y), e.setZ(t.z), e;
13199
- }, decodeVector3D = function(t) {
13200
- return {
13201
- x: t.getX(),
13202
- y: t.getY(),
13203
- z: t.getZ()
13204
- };
13205
13199
  }, encodePose = (t) => {
13206
13200
  const e = new common_pb.Pose();
13207
13201
  return e.setX(t.x), e.setY(t.y), e.setZ(t.z), e.setOX(t.oX), e.setOY(t.oY), e.setOZ(t.oZ), e.setTheta(t.theta), e;
@@ -13221,7 +13215,7 @@ const promisify = function(t, e) {
13221
13215
  }
13222
13216
  if (t.box !== void 0) {
13223
13217
  const s = new common_pb.RectangularPrism();
13224
- t.box.dimsMm !== void 0 && s.setDimsMm(encodeVector3D(t.box.dimsMm)), e.setBox(s);
13218
+ t.box.dimsMm !== void 0 && s.setDimsMm(encodeVector3(t.box.dimsMm)), e.setBox(s);
13225
13219
  }
13226
13220
  if (t.capsule !== void 0) {
13227
13221
  const s = new common_pb.Capsule();
@@ -32533,7 +32527,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32533
32527
  }, proto.viam.component.movementsensor.v1.GetPositionResponse.toObject = function(o, r) {
32534
32528
  var i, l = {
32535
32529
  coordinate: (i = r.getCoordinate()) && u.GeoPoint.toObject(o, i),
32536
- altitudeMm: e.Message.getFloatingPointFieldWithDefault(r, 2, 0)
32530
+ altitudeM: e.Message.getFloatingPointFieldWithDefault(r, 2, 0)
32537
32531
  };
32538
32532
  return o && (l.$jspbMessageInstance = r), l;
32539
32533
  }), proto.viam.component.movementsensor.v1.GetPositionResponse.deserializeBinary = function(o) {
@@ -32552,7 +32546,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32552
32546
  /** @type {number} */
32553
32547
  r.readFloat()
32554
32548
  );
32555
- o.setAltitudeMm(l);
32549
+ o.setAltitudeM(l);
32556
32550
  break;
32557
32551
  default:
32558
32552
  r.skipField();
@@ -32569,7 +32563,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32569
32563
  1,
32570
32564
  i,
32571
32565
  u.GeoPoint.serializeBinaryToWriter
32572
- ), i = o.getAltitudeMm(), i !== 0 && r.writeFloat(
32566
+ ), i = o.getAltitudeM(), i !== 0 && r.writeFloat(
32573
32567
  2,
32574
32568
  i
32575
32569
  );
@@ -32584,12 +32578,12 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32584
32578
  return this.setCoordinate(void 0);
32585
32579
  }, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.hasCoordinate = function() {
32586
32580
  return e.Message.getField(this, 1) != null;
32587
- }, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.getAltitudeMm = function() {
32581
+ }, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.getAltitudeM = function() {
32588
32582
  return (
32589
32583
  /** @type {number} */
32590
32584
  e.Message.getFloatingPointFieldWithDefault(this, 2, 0)
32591
32585
  );
32592
- }, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.setAltitudeMm = function(o) {
32586
+ }, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.setAltitudeM = function(o) {
32593
32587
  return e.Message.setProto3FloatField(this, 2, o);
32594
32588
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.movementsensor.v1.GetPropertiesRequest.prototype.toObject = function(o) {
32595
32589
  return proto.viam.component.movementsensor.v1.GetPropertiesRequest.toObject(o, this);
@@ -32854,7 +32848,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32854
32848
  return proto.viam.component.movementsensor.v1.GetAccuracyResponse.toObject(o, this);
32855
32849
  }, proto.viam.component.movementsensor.v1.GetAccuracyResponse.toObject = function(o, r) {
32856
32850
  var i, l = {
32857
- accuracyMmMap: (i = r.getAccuracyMmMap()) ? i.toObject(o, void 0) : []
32851
+ accuracyMap: (i = r.getAccuracyMap()) ? i.toObject(o, void 0) : []
32858
32852
  };
32859
32853
  return o && (l.$jspbMessageInstance = r), l;
32860
32854
  }), proto.viam.component.movementsensor.v1.GetAccuracyResponse.deserializeBinary = function(o) {
@@ -32865,7 +32859,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32865
32859
  var i = r.getFieldNumber();
32866
32860
  switch (i) {
32867
32861
  case 1:
32868
- var l = o.getAccuracyMmMap();
32862
+ var l = o.getAccuracyMap();
32869
32863
  r.readMessage(l, function(c, d) {
32870
32864
  e.Map.deserializeBinary(c, d, e.BinaryReader.prototype.readString, e.BinaryReader.prototype.readFloat, null, "", 0);
32871
32865
  });
@@ -32881,8 +32875,8 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32881
32875
  return proto.viam.component.movementsensor.v1.GetAccuracyResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
32882
32876
  }, proto.viam.component.movementsensor.v1.GetAccuracyResponse.serializeBinaryToWriter = function(o, r) {
32883
32877
  var i = void 0;
32884
- i = o.getAccuracyMmMap(!0), i && i.getLength() > 0 && i.serializeBinary(1, r, e.BinaryWriter.prototype.writeString, e.BinaryWriter.prototype.writeFloat);
32885
- }, proto.viam.component.movementsensor.v1.GetAccuracyResponse.prototype.getAccuracyMmMap = function(o) {
32878
+ i = o.getAccuracyMap(!0), i && i.getLength() > 0 && i.serializeBinary(1, r, e.BinaryWriter.prototype.writeString, e.BinaryWriter.prototype.writeFloat);
32879
+ }, proto.viam.component.movementsensor.v1.GetAccuracyResponse.prototype.getAccuracyMap = function(o) {
32886
32880
  return (
32887
32881
  /** @type {!jspb.Map<string,number>} */
32888
32882
  e.Message.getMapField(
@@ -32892,8 +32886,8 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32892
32886
  null
32893
32887
  )
32894
32888
  );
32895
- }, proto.viam.component.movementsensor.v1.GetAccuracyResponse.prototype.clearAccuracyMmMap = function() {
32896
- return this.getAccuracyMmMap().clear(), this;
32889
+ }, proto.viam.component.movementsensor.v1.GetAccuracyResponse.prototype.clearAccuracyMap = function() {
32890
+ return this.getAccuracyMap().clear(), this;
32897
32891
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.toObject = function(o) {
32898
32892
  return proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.toObject(o, this);
32899
32893
  }, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.toObject = function(o, r) {
@@ -39841,14 +39835,14 @@ class BaseClient {
39841
39835
  }
39842
39836
  async setPower(e, s, n = {}) {
39843
39837
  const u = this.baseService, g = new base_pb.SetPowerRequest();
39844
- g.setName(this.name), g.setLinear(encodeVector3D(e)), g.setAngular(encodeVector3D(s)), g.setExtra(struct_pb.Struct.fromJavaScript(n)), this.options.requestLogger?.(g), await promisify(
39838
+ g.setName(this.name), g.setLinear(encodeVector3(e)), g.setAngular(encodeVector3(s)), g.setExtra(struct_pb.Struct.fromJavaScript(n)), this.options.requestLogger?.(g), await promisify(
39845
39839
  u.setPower.bind(u),
39846
39840
  g
39847
39841
  );
39848
39842
  }
39849
39843
  async setVelocity(e, s, n = {}) {
39850
39844
  const u = this.baseService, g = new base_pb.SetVelocityRequest();
39851
- g.setName(this.name), g.setLinear(encodeVector3D(e)), g.setAngular(encodeVector3D(s)), g.setExtra(struct_pb.Struct.fromJavaScript(n)), this.options.requestLogger?.(g), await promisify(
39845
+ g.setName(this.name), g.setLinear(encodeVector3(e)), g.setAngular(encodeVector3(s)), g.setExtra(struct_pb.Struct.fromJavaScript(n)), this.options.requestLogger?.(g), await promisify(
39852
39846
  u.setVelocity.bind(u),
39853
39847
  g
39854
39848
  );
@@ -41609,7 +41603,7 @@ class MovementSensorClient {
41609
41603
  )).getLinearVelocity();
41610
41604
  if (!g)
41611
41605
  throw new Error("no linear velocity");
41612
- return decodeVector3D(g);
41606
+ return g.toObject();
41613
41607
  }
41614
41608
  async getAngularVelocity(e = {}) {
41615
41609
  const s = this.movementsensorService, n = new movementsensor_pb.GetAngularVelocityRequest();
@@ -41620,7 +41614,7 @@ class MovementSensorClient {
41620
41614
  )).getAngularVelocity();
41621
41615
  if (!g)
41622
41616
  throw new Error("no angular velocity");
41623
- return decodeVector3D(g);
41617
+ return g.toObject();
41624
41618
  }
41625
41619
  async getCompassHeading(e = {}) {
41626
41620
  const s = this.movementsensorService, n = new movementsensor_pb.GetCompassHeadingRequest();
@@ -41638,42 +41632,20 @@ class MovementSensorClient {
41638
41632
  )).getOrientation();
41639
41633
  if (!g)
41640
41634
  throw new Error("no orientation");
41641
- return {
41642
- ox: g.getOX(),
41643
- oy: g.getOY(),
41644
- oz: g.getOZ(),
41645
- theta: g.getTheta()
41646
- };
41635
+ return g.toObject();
41647
41636
  }
41648
41637
  async getPosition(e = {}) {
41649
41638
  const s = this.movementsensorService, n = new movementsensor_pb.GetPositionRequest();
41650
- n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n);
41651
- const u = await promisify(s.getPosition.bind(s), n), g = u.getCoordinate();
41652
- if (!g)
41653
- throw new Error("no coordinate");
41654
- return {
41655
- latitude: g.getLatitude(),
41656
- longitude: g.getLongitude(),
41657
- altitudeMM: u.getAltitudeMm()
41658
- };
41639
+ return n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n), (await promisify(s.getPosition.bind(s), n)).toObject();
41659
41640
  }
41660
41641
  async getProperties(e = {}) {
41661
41642
  const s = this.movementsensorService, n = new movementsensor_pb.GetPropertiesRequest();
41662
- n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n);
41663
- const u = await promisify(s.getProperties.bind(s), n);
41664
- return {
41665
- linearVelocitySupported: u.getLinearVelocitySupported(),
41666
- angularVelocitySupported: u.getAngularVelocitySupported(),
41667
- orientationSupported: u.getOrientationSupported(),
41668
- positionSupported: u.getPositionSupported(),
41669
- compassHeadingSupported: u.getCompassHeadingSupported(),
41670
- linearAccelerationSupported: u.getLinearAccelerationSupported()
41671
- };
41643
+ return n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n), (await promisify(s.getProperties.bind(s), n)).toObject();
41672
41644
  }
41673
41645
  async getAccuracy(e = {}) {
41674
41646
  const s = this.movementsensorService, n = new movementsensor_pb.GetAccuracyRequest();
41675
41647
  n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n);
41676
- const g = (await promisify(s.getAccuracy.bind(s), n)).getAccuracyMmMap(), p = {};
41648
+ const g = (await promisify(s.getAccuracy.bind(s), n)).getAccuracyMap(), p = {};
41677
41649
  for (const [o, r] of g.entries())
41678
41650
  p[o] = r;
41679
41651
  return p;
@@ -41687,7 +41659,7 @@ class MovementSensorClient {
41687
41659
  )).getLinearAcceleration();
41688
41660
  if (!g)
41689
41661
  throw new Error("no linear acceleration");
41690
- return decodeVector3D(g);
41662
+ return g.toObject();
41691
41663
  }
41692
41664
  getReadings(e = {}) {
41693
41665
  return this.sensorclient.getReadings(e);
@@ -42350,7 +42322,7 @@ class DataManagerClient {
42350
42322
  );
42351
42323
  }
42352
42324
  }
42353
- const version = "0.0.46";
42325
+ const version = "0.0.47";
42354
42326
  export {
42355
42327
  ArmClient,
42356
42328
  BaseClient,