@viamrobotics/sdk 0.9.2-rc.0 → 0.9.3

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.
@@ -19,7 +19,7 @@ export declare class MovementSensorClient implements MovementSensor {
19
19
  getOrientation(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Orientation.AsObject>;
20
20
  getPosition(extra?: {}): Promise<pb.GetPositionResponse.AsObject>;
21
21
  getProperties(extra?: {}): Promise<pb.GetPropertiesResponse.AsObject>;
22
- getAccuracy(extra?: {}): Promise<Record<string, number>>;
22
+ getAccuracy(extra?: {}): Promise<pb.GetAccuracyResponse.AsObject>;
23
23
  getLinearAcceleration(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Vector3.AsObject>;
24
24
  getReadings(extra?: {}): Promise<Record<string, unknown>>;
25
25
  doCommand(command: StructType): Promise<StructType>;
@@ -2,6 +2,7 @@ import type { Resource, Orientation, StructType, Vector3 } from '../../types';
2
2
  import pb from '../../gen/component/movementsensor/v1/movementsensor_pb';
3
3
  export type MovementSensorPosition = pb.GetPositionResponse.AsObject;
4
4
  export type MovementSensorProperties = pb.GetPropertiesResponse.AsObject;
5
+ export type MovementSensorAccuracy = pb.GetAccuracyResponse.AsObject;
5
6
  /**
6
7
  * Represents any sensor that reports information about the robot's direction,
7
8
  * position, and/or speed.
@@ -26,7 +27,7 @@ export interface MovementSensor extends Resource {
26
27
  /** Get the properties of this movement sensor */
27
28
  getProperties(extra?: StructType): Promise<MovementSensorProperties>;
28
29
  /** Get the accuracy of various sensors */
29
- getAccuracy(extra?: StructType): Promise<Record<string, number>>;
30
+ getAccuracy(extra?: StructType): Promise<MovementSensorAccuracy>;
30
31
  /** Get linear acceleration across x/y/z axes */
31
32
  getLinearAcceleration(extra?: StructType): Promise<Vector3>;
32
33
  /** Return the readings of a sensor. */
@@ -1,2 +1,2 @@
1
- export type { MovementSensorPosition, MovementSensorProperties, MovementSensor, } from './movement-sensor/movement-sensor';
1
+ export type { MovementSensorPosition, MovementSensorProperties, MovementSensorAccuracy, MovementSensor, } from './movement-sensor/movement-sensor';
2
2
  export { MovementSensorClient } from './movement-sensor/client';
@@ -0,0 +1 @@
1
+ export declare const DIAL_TIMEOUT = 5000;
package/dist/main.d.ts CHANGED
@@ -115,7 +115,7 @@ export { type Motor, MotorClient } from './components/motor';
115
115
  * @group Raw Protobufs
116
116
  */
117
117
  export { default as movementSensorApi } from './gen/component/movementsensor/v1/movementsensor_pb';
118
- export { type MovementSensor, type MovementSensorProperties, type MovementSensorPosition, MovementSensorClient, } from './components/movementsensor';
118
+ export { type MovementSensor, type MovementSensorProperties, type MovementSensorPosition, type MovementSensorAccuracy, MovementSensorClient, } from './components/movementsensor';
119
119
  /**
120
120
  * Raw Protobuf interfaces for a PowerSensor component.
121
121
  *
@@ -294,29 +294,12 @@ export { type SlamPosition, type SlamProperties, SlamClient, } from './services/
294
294
  *
295
295
  * Generated with https://github.com/improbable-eng/grpc-web
296
296
  *
297
- * @example
298
- *
299
- * ```ts
300
- * import { grpc } from '@improbable-eng/grpc-web';
301
- *
302
- * const client = {}; // replace with a connected robot client
303
- *
304
- * const request = new visionApi.GetDetectorNamesRequest();
305
- * request.setName('myvision');
306
- *
307
- * client.visionService.getDetectorNames(
308
- * request,
309
- * new grpc.Metadata(),
310
- * (error, response) => {
311
- * // do something with error or response
312
- * }
313
- * );
314
- * ```
315
- *
297
+ * @deprecated Use {@link VisionClient} instead.
316
298
  * @alpha
317
299
  * @group Raw Protobufs
318
300
  */
319
301
  export { default as visionApi } from './gen/service/vision/v1/vision_pb';
302
+ export { type Detection, type Classification, type PointCloudObject, VisionClient, } from './services/vision';
320
303
  /**
321
304
  * Raw Protobuf interfaces that are shared across multiple components and
322
305
  * services.