@viamrobotics/sdk 0.40.1 → 0.41.0
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/api-version.d.ts +1 -1
- package/dist/app/app-client.d.ts +234 -0
- package/dist/app/billing-client.d.ts +12 -0
- package/dist/app/data-client.d.ts +98 -10
- package/dist/app/ml-training-client.d.ts +18 -0
- package/dist/components/arm/arm.d.ts +21 -0
- package/dist/components/base/base.d.ts +24 -0
- package/dist/components/board/board.d.ts +33 -0
- package/dist/components/button/button.d.ts +3 -0
- package/dist/components/camera/camera.d.ts +12 -0
- package/dist/components/encoder/encoder.d.ts +9 -0
- package/dist/components/gantry/gantry.d.ts +21 -0
- package/dist/components/generic/generic.d.ts +3 -0
- package/dist/components/gripper/gripper.d.ts +15 -0
- package/dist/components/input-controller/input-controller.d.ts +6 -0
- package/dist/components/motor/motor.d.ts +30 -0
- package/dist/components/movement-sensor/movement-sensor.d.ts +27 -0
- package/dist/components/power-sensor/power-sensor.d.ts +12 -0
- package/dist/components/sensor/sensor.d.ts +3 -0
- package/dist/components/servo/servo.d.ts +12 -0
- package/dist/components/switch/switch.d.ts +9 -0
- package/dist/gen/app/datapipelines/v1/data_pipelines_connect.d.ts +7 -7
- package/dist/gen/app/datapipelines/v1/data_pipelines_pb.d.ts +35 -35
- package/dist/gen/app/v1/app_connect.d.ts +12 -1
- package/dist/gen/app/v1/app_pb.d.ts +63 -0
- package/dist/gen/app/v1/robot_pb.d.ts +5 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +2132 -1730
- package/dist/main.umd.js +7 -7
- package/dist/services/data-manager/client.d.ts +6 -0
- package/dist/services/ml-model/client.d.ts +1 -1
- package/dist/services/ml-model/index.d.ts +1 -1
- package/dist/services/ml-model/ml-model.d.ts +2 -0
- package/dist/services/vision/vision.d.ts +21 -0
- package/package.json +1 -1
|
@@ -22,6 +22,9 @@ export declare class DataManagerClient implements DataManager {
|
|
|
22
22
|
* await dataManager.sync();
|
|
23
23
|
* ```
|
|
24
24
|
*
|
|
25
|
+
* For more information, see [Data Manager
|
|
26
|
+
* API](https://docs.viam.com/dev/reference/apis/services/data/#sync).
|
|
27
|
+
*
|
|
25
28
|
* @param extra - Extra arguments to pass to the sync request.
|
|
26
29
|
* @param callOptions - Call options for the sync request.
|
|
27
30
|
*/
|
|
@@ -39,6 +42,9 @@ export declare class DataManagerClient implements DataManager {
|
|
|
39
42
|
* await dataManager.doCommand(new Struct({ cmd: 'test', data1: 500 }));
|
|
40
43
|
* ```
|
|
41
44
|
*
|
|
45
|
+
* For more information, see [Data Manager
|
|
46
|
+
* API](https://docs.viam.com/dev/reference/apis/services/data/#docommand).
|
|
47
|
+
*
|
|
42
48
|
* @param command - The command to do.
|
|
43
49
|
* @param callOptions - Call options for the command.
|
|
44
50
|
*/
|
|
@@ -4,8 +4,8 @@ import { type Options } from '../../types';
|
|
|
4
4
|
import type { RobotClient } from '../../robot';
|
|
5
5
|
export declare class MLModelClient implements MLModel {
|
|
6
6
|
private client;
|
|
7
|
-
private readonly name;
|
|
8
7
|
private readonly options;
|
|
8
|
+
readonly name: string;
|
|
9
9
|
callOptions: CallOptions;
|
|
10
10
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
11
11
|
metadata(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/mlmodel/v1/mlmodel_pb").MetadataResponse>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { MLModel, FlatTensors } from './ml-model';
|
|
1
|
+
export type { MLModel, Metadata, FlatTensors, TensorInfo } from './ml-model';
|
|
2
2
|
export { MLModelClient } from './client';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { Struct } from '@bufbuild/protobuf';
|
|
2
2
|
import type * as mlModelAPI from '../../gen/service/mlmodel/v1/mlmodel_pb';
|
|
3
|
+
export type Metadata = mlModelAPI.Metadata;
|
|
4
|
+
export type TensorInfo = mlModelAPI.TensorInfo;
|
|
3
5
|
export type FlatTensors = mlModelAPI.FlatTensors;
|
|
4
6
|
export interface MLModel {
|
|
5
7
|
metadata: (extra?: Struct) => Promise<mlModelAPI.MetadataResponse>;
|
|
@@ -14,6 +14,9 @@ export interface Vision extends Resource {
|
|
|
14
14
|
* const detections = await vision.getDetectionsFromCamera('my_camera');
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
+
* For more information, see [Vision
|
|
18
|
+
* API](https://docs.viam.com/dev/reference/apis/services/vision/#getdetectionsfromcamera).
|
|
19
|
+
*
|
|
17
20
|
* @param cameraName - The name of the camera to use for detection.
|
|
18
21
|
* @returns - The list of Detections.
|
|
19
22
|
*/
|
|
@@ -37,6 +40,9 @@ export interface Vision extends Resource {
|
|
|
37
40
|
* );
|
|
38
41
|
* ```
|
|
39
42
|
*
|
|
43
|
+
* For more information, see [Vision
|
|
44
|
+
* API](https://docs.viam.com/dev/reference/apis/services/vision/#getdetections).
|
|
45
|
+
*
|
|
40
46
|
* @param image - The image from which to get detections.
|
|
41
47
|
* @param width - The width of the image.
|
|
42
48
|
* @param height - The height of the image.
|
|
@@ -57,6 +63,9 @@ export interface Vision extends Resource {
|
|
|
57
63
|
* );
|
|
58
64
|
* ```
|
|
59
65
|
*
|
|
66
|
+
* For more information, see [Vision
|
|
67
|
+
* API](https://docs.viam.com/dev/reference/apis/services/vision/#getclassificationsfromcamera).
|
|
68
|
+
*
|
|
60
69
|
* @param cameraName - The name of the camera to use for classification.
|
|
61
70
|
* @param count - The number of Classifications requested.
|
|
62
71
|
* @returns - The list of Classifications.
|
|
@@ -82,6 +91,9 @@ export interface Vision extends Resource {
|
|
|
82
91
|
* );
|
|
83
92
|
* ```
|
|
84
93
|
*
|
|
94
|
+
* For more information, see [Vision
|
|
95
|
+
* API](https://docs.viam.com/dev/reference/apis/services/vision/#getclassifications).
|
|
96
|
+
*
|
|
85
97
|
* @param image - The image from which to get classifications.
|
|
86
98
|
* @param width - The width of the image.
|
|
87
99
|
* @param height - The height of the image.
|
|
@@ -102,6 +114,9 @@ export interface Vision extends Resource {
|
|
|
102
114
|
* await vision.getObjectPointClouds('my_camera');
|
|
103
115
|
* ```
|
|
104
116
|
*
|
|
117
|
+
* For more information, see [Vision
|
|
118
|
+
* API](https://docs.viam.com/dev/reference/apis/services/vision/#getobjectpointclouds).
|
|
119
|
+
*
|
|
105
120
|
* @param cameraName - The name of the camera.
|
|
106
121
|
* @returns - The list of PointCloudObjects
|
|
107
122
|
*/
|
|
@@ -118,6 +133,9 @@ export interface Vision extends Resource {
|
|
|
118
133
|
* const properties = await vision.getProperties();
|
|
119
134
|
* ```
|
|
120
135
|
*
|
|
136
|
+
* For more information, see [Vision
|
|
137
|
+
* API](https://docs.viam.com/dev/reference/apis/services/vision/#getproperties).
|
|
138
|
+
*
|
|
121
139
|
* @returns - The properties of the vision service
|
|
122
140
|
*/
|
|
123
141
|
getProperties: (extra?: Struct) => Promise<Properties>;
|
|
@@ -137,6 +155,9 @@ export interface Vision extends Resource {
|
|
|
137
155
|
* });
|
|
138
156
|
* ```
|
|
139
157
|
*
|
|
158
|
+
* For more information, see [Vision
|
|
159
|
+
* API](https://docs.viam.com/dev/reference/apis/services/vision/#captureallfromcamera).
|
|
160
|
+
*
|
|
140
161
|
* @param cameraName - The name of the camera to use for classification,
|
|
141
162
|
* detection, and segmentation.
|
|
142
163
|
* @param opts - The fields desired in the response.
|