@viamrobotics/sdk 0.0.50 → 0.0.52-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/arm/{Client.d.ts → client.d.ts} +1 -1
- package/dist/components/arm.d.ts +2 -2
- package/dist/components/base/{Client.d.ts → client.d.ts} +1 -1
- package/dist/components/base.d.ts +2 -2
- package/dist/components/board/{Client.d.ts → client.d.ts} +1 -1
- package/dist/components/board.d.ts +2 -2
- package/dist/components/camera/{Camera.d.ts → camera.d.ts} +3 -3
- package/dist/components/camera/{Client.d.ts → client.d.ts} +3 -3
- package/dist/components/camera.d.ts +2 -2
- package/dist/components/encoder/{Client.d.ts → client.d.ts} +1 -1
- package/dist/components/encoder.d.ts +3 -3
- package/dist/components/motor/{Client.d.ts → client.d.ts} +1 -1
- package/dist/components/motor.d.ts +2 -2
- package/dist/components/{movementsensor/Client.d.ts → movement-sensor/client.d.ts} +1 -1
- package/dist/components/movementsensor.d.ts +2 -2
- package/dist/components/sensor/{Client.d.ts → client.d.ts} +1 -1
- package/dist/components/sensor.d.ts +2 -2
- package/dist/extra/stream/{Client.d.ts → client.d.ts} +1 -1
- package/dist/extra/stream.d.ts +2 -2
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +2402 -2407
- package/dist/main.umd.js +5 -5
- package/dist/robot/{Client.d.ts → client.d.ts} +3 -3
- package/dist/robot/dial.d.ts +1 -1
- package/dist/robot/{SessionTransport.d.ts → session-transport.d.ts} +1 -1
- package/dist/robot.d.ts +2 -2
- package/dist/services/motion/{Client.d.ts → client.d.ts} +1 -1
- package/dist/services/motion.d.ts +2 -2
- package/package.json +1 -1
- package/dist/components/arm/{Arm.d.ts → arm.d.ts} +0 -0
- package/dist/components/base/{Base.d.ts → base.d.ts} +0 -0
- package/dist/components/board/{Board.d.ts → board.d.ts} +0 -0
- package/dist/components/encoder/{Encoder.d.ts → encoder.d.ts} +0 -0
- package/dist/components/motor/{Motor.d.ts → motor.d.ts} +0 -0
- package/dist/components/{movementsensor/MovementSensor.d.ts → movement-sensor/movement-sensor.d.ts} +0 -0
- package/dist/components/sensor/{Sensor.d.ts → sensor.d.ts} +0 -0
- package/dist/extra/stream/{Stream.d.ts → stream.d.ts} +0 -0
- package/dist/robot/{Robot.d.ts → robot.d.ts} +1 -1
- /package/dist/robot/{SessionManager.d.ts → session-manager.d.ts} +0 -0
- /package/dist/services/motion/{Motion.d.ts → motion.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RobotClient } from '../../robot';
|
|
2
2
|
import pb from '../../gen/component/arm/v1/arm_pb';
|
|
3
3
|
import type { Options, Pose } from '../../types';
|
|
4
|
-
import type { Arm } from './
|
|
4
|
+
import type { Arm } from './arm';
|
|
5
5
|
/**
|
|
6
6
|
* A gRPC-web client for the Arm component.
|
|
7
7
|
*
|
package/dist/components/arm.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { Arm } from './arm/
|
|
2
|
-
export { ArmClient } from './arm/
|
|
1
|
+
export type { Arm } from './arm/arm';
|
|
2
|
+
export { ArmClient } from './arm/client';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { Base } from './base/
|
|
2
|
-
export { BaseClient } from './base/
|
|
1
|
+
export type { Base } from './base/base';
|
|
2
|
+
export { BaseClient } from './base/client';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Board } from './Board';
|
|
2
1
|
import type { RobotClient } from '../../robot';
|
|
3
2
|
import type { Options } from '../../types';
|
|
4
3
|
import pb from '../../gen/component/board/v1/board_pb';
|
|
4
|
+
import type { Board } from './board';
|
|
5
5
|
/**
|
|
6
6
|
* A gRPC-web client for the Board component.
|
|
7
7
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { Board } from './board/
|
|
2
|
-
export { BoardClient } from './board/
|
|
1
|
+
export type { Board } from './board/board';
|
|
2
|
+
export { BoardClient } from './board/client';
|
|
@@ -7,7 +7,7 @@ export interface Properties {
|
|
|
7
7
|
/** Camera distortion parameters, if available. */
|
|
8
8
|
distortionParameters?: DistortionParameters.AsObject;
|
|
9
9
|
}
|
|
10
|
-
export type MimeType = 'image/vnd.viam.rgba' | 'image/jpeg' | 'image/png' | 'pointcloud/pcd' | 'unsupported';
|
|
10
|
+
export type MimeType = '' | 'image/vnd.viam.rgba' | 'image/jpeg' | 'image/png' | 'pointcloud/pcd' | 'unsupported';
|
|
11
11
|
/** Represents any physical hardware that can capture frames. */
|
|
12
12
|
export interface Camera {
|
|
13
13
|
/**
|
|
@@ -16,14 +16,14 @@ export interface Camera {
|
|
|
16
16
|
* @param mimeType - A specific MIME type to request. This is not necessarily
|
|
17
17
|
* the same type that will be returned.
|
|
18
18
|
*/
|
|
19
|
-
getImage: (mimeType
|
|
19
|
+
getImage: (mimeType?: MimeType) => Promise<Uint8Array>;
|
|
20
20
|
/**
|
|
21
21
|
* Render a frame from a camera to an HTTP response.
|
|
22
22
|
*
|
|
23
23
|
* @param mimeType - A specific MIME type to request. This is not necessarily
|
|
24
24
|
* the same type that will be returned.
|
|
25
25
|
*/
|
|
26
|
-
renderFrame: (mimeType
|
|
26
|
+
renderFrame: (mimeType?: MimeType) => Promise<Blob>;
|
|
27
27
|
/** Return a point cloud from a camera. */
|
|
28
28
|
getPointCloud: () => Promise<Uint8Array>;
|
|
29
29
|
/** Return the camera properties. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Camera, MimeType } from './Camera';
|
|
2
1
|
import type { RobotClient } from '../../robot';
|
|
3
2
|
import type { Options } from '../../types';
|
|
4
3
|
import pb from '../../gen/component/camera/v1/camera_pb';
|
|
4
|
+
import type { Camera, MimeType } from './camera';
|
|
5
5
|
/**
|
|
6
6
|
* A gRPC-web client for the Camera component.
|
|
7
7
|
*
|
|
@@ -13,8 +13,8 @@ export declare class CameraClient implements Camera {
|
|
|
13
13
|
private readonly options;
|
|
14
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
15
15
|
private get cameraService();
|
|
16
|
-
getImage(mimeType
|
|
17
|
-
renderFrame(mimeType
|
|
16
|
+
getImage(mimeType?: MimeType): Promise<Uint8Array>;
|
|
17
|
+
renderFrame(mimeType?: MimeType): Promise<Blob>;
|
|
18
18
|
getPointCloud(): Promise<Uint8Array>;
|
|
19
19
|
getProperties(): Promise<pb.GetPropertiesResponse.AsObject>;
|
|
20
20
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { Camera } from './camera/
|
|
2
|
-
export { CameraClient } from './camera/
|
|
1
|
+
export type { Camera, MimeType } from './camera/camera';
|
|
2
|
+
export { CameraClient } from './camera/client';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RobotClient } from '../../robot';
|
|
2
2
|
import encoderApi from '../../gen/component/encoder/v1/encoder_pb';
|
|
3
3
|
import { type Options } from '../../types';
|
|
4
|
-
import { type Encoder, EncoderPositionType } from './
|
|
4
|
+
import { type Encoder, EncoderPositionType } from './encoder';
|
|
5
5
|
/**
|
|
6
6
|
* A gRPC-web client for the Encoder component.
|
|
7
7
|
*
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { Encoder, EncoderProperties } from './encoder/
|
|
2
|
-
export { EncoderPositionType } from './encoder/
|
|
3
|
-
export { EncoderClient } from './encoder/
|
|
1
|
+
export type { Encoder, EncoderProperties } from './encoder/encoder';
|
|
2
|
+
export { EncoderPositionType } from './encoder/encoder';
|
|
3
|
+
export { EncoderClient } from './encoder/client';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { Motor } from './motor/
|
|
2
|
-
export { MotorClient } from './motor/
|
|
1
|
+
export type { Motor } from './motor/motor';
|
|
2
|
+
export { MotorClient } from './motor/client';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RobotClient } from '../../robot';
|
|
2
2
|
import type { Options } from '../../types';
|
|
3
3
|
import pb from '../../gen/component/movementsensor/v1/movementsensor_pb';
|
|
4
|
-
import type { MovementSensor } from './
|
|
4
|
+
import type { MovementSensor } from './movement-sensor';
|
|
5
5
|
/**
|
|
6
6
|
* A gRPC-web client for the MovementSensor component.
|
|
7
7
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { MovementSensorPosition, MovementSensorProperties, MovementSensor, } from './
|
|
2
|
-
export { MovementSensorClient } from './
|
|
1
|
+
export type { MovementSensorPosition, MovementSensorProperties, MovementSensor, } from './movement-sensor/movement-sensor';
|
|
2
|
+
export { MovementSensorClient } from './movement-sensor/client';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { Sensor } from './sensor/
|
|
2
|
-
export { SensorClient } from './sensor/
|
|
1
|
+
export type { Sensor } from './sensor/sensor';
|
|
2
|
+
export { SensorClient } from './sensor/client';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventDispatcher } from '../../events';
|
|
2
2
|
import type { RobotClient } from '../../robot';
|
|
3
3
|
import type { Options } from '../../types';
|
|
4
|
-
import type { Stream } from './
|
|
4
|
+
import type { Stream } from './stream';
|
|
5
5
|
/**
|
|
6
6
|
* A gRPC-web client for a Stream.
|
|
7
7
|
*
|
package/dist/extra/stream.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { Stream } from './stream/
|
|
2
|
-
export { StreamClient } from './stream/
|
|
1
|
+
export type { Stream } from './stream/stream';
|
|
2
|
+
export { StreamClient } from './stream/client';
|
package/dist/main.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export { type Board, BoardClient } from './components/board';
|
|
|
58
58
|
* @group Raw Protobufs
|
|
59
59
|
*/
|
|
60
60
|
export { default as cameraApi } from './gen/component/camera/v1/camera_pb';
|
|
61
|
-
export { type Camera, CameraClient } from './components/camera';
|
|
61
|
+
export { type Camera, type MimeType, CameraClient } from './components/camera';
|
|
62
62
|
/**
|
|
63
63
|
* Raw Protobuf interfaces for an Encoder component.
|
|
64
64
|
*
|