@viamrobotics/sdk 0.75.1 → 0.77.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 +24 -1
- package/dist/app/ml-training-client.d.ts +1 -1
- package/dist/debug.d.ts +4 -0
- package/dist/gen/app/mltraining/v1/ml_training_connect.d.ts +46 -2
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +290 -0
- package/dist/gen/app/v1/app_connect.d.ts +45 -1
- package/dist/gen/app/v1/app_pb.d.ts +326 -1
- package/dist/gen/component/camera/v1/camera_pb.d.ts +8 -0
- package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +2 -0
- package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +8 -0
- package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +6 -0
- package/dist/gen/opentelemetry/proto/logs/v1/logs_pb.d.ts +2 -0
- package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +3 -1
- package/dist/gen/opentelemetry/proto/processcontext/v1development/process_context_pb.d.ts +2 -0
- package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +140 -2
- package/dist/gen/opentelemetry/proto/resource/v1/resource_pb.d.ts +2 -0
- package/dist/gen/opentelemetry/proto/trace/v1/trace_pb.d.ts +15 -5
- package/dist/gen/robot/v1/robot_pb.d.ts +1 -1
- package/dist/gen/service/motion/v1/motion_connect.d.ts +18 -1
- package/dist/gen/service/motion/v1/motion_pb.d.ts +190 -0
- package/dist/gen/service/vision/v1/vision_connect.d.ts +15 -1
- package/dist/gen/service/vision/v1/vision_pb.d.ts +131 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.es.js +3566 -3074
- package/dist/main.umd.js +8 -8
- package/dist/robot/client.d.ts +12 -0
- package/dist/services/vision/client.d.ts +4 -1
- package/dist/services/vision/types.d.ts +7 -1
- package/dist/services/vision/vision.d.ts +22 -1
- package/dist/services/vision.d.ts +1 -1
- package/package.json +5 -2
package/dist/robot/client.d.ts
CHANGED
|
@@ -1258,6 +1258,12 @@ export declare class RobotClient extends EventDispatcher<RobotClientDispatchEven
|
|
|
1258
1258
|
readonly O: typeof import("../gen/service/motion/v1/motion_pb").GetPlanResponse;
|
|
1259
1259
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1260
1260
|
};
|
|
1261
|
+
readonly tempStreamArmJointPositions: {
|
|
1262
|
+
readonly name: "TempStreamArmJointPositions";
|
|
1263
|
+
readonly I: typeof import("../gen/service/motion/v1/motion_pb").TempStreamArmJointPositionsRequest;
|
|
1264
|
+
readonly O: typeof import("../gen/service/motion/v1/motion_pb").TempStreamArmJointPositionsResponse;
|
|
1265
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.BiDiStreaming;
|
|
1266
|
+
};
|
|
1261
1267
|
readonly doCommand: {
|
|
1262
1268
|
readonly name: "DoCommand";
|
|
1263
1269
|
readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
|
|
@@ -1299,6 +1305,12 @@ export declare class RobotClient extends EventDispatcher<RobotClientDispatchEven
|
|
|
1299
1305
|
readonly O: typeof import("../gen/service/vision/v1/vision_pb").GetClassificationsResponse;
|
|
1300
1306
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1301
1307
|
};
|
|
1308
|
+
readonly getDetections3D: {
|
|
1309
|
+
readonly name: "GetDetections3D";
|
|
1310
|
+
readonly I: typeof import("../gen/service/vision/v1/vision_pb").GetDetections3DRequest;
|
|
1311
|
+
readonly O: typeof import("../gen/service/vision/v1/vision_pb").GetDetections3DResponse;
|
|
1312
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1313
|
+
};
|
|
1302
1314
|
readonly getObjectPointClouds: {
|
|
1303
1315
|
readonly name: "GetObjectPointClouds";
|
|
1304
1316
|
readonly I: typeof import("../gen/service/vision/v1/vision_pb").GetObjectPointCloudsRequest;
|
|
@@ -21,17 +21,20 @@ export declare class VisionClient implements Vision {
|
|
|
21
21
|
getClassificationsFromCamera(cameraName: string, count: number, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/vision/v1/vision_pb").Classification[]>;
|
|
22
22
|
getClassifications(image: Uint8Array, width: number, height: number, mimeType: MimeType, count: number, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/vision/v1/vision_pb").Classification[]>;
|
|
23
23
|
getObjectPointClouds(cameraName: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").PointCloudObject[]>;
|
|
24
|
+
getDetections3D(cameraName: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/vision/v1/vision_pb").Detection3D[]>;
|
|
24
25
|
getProperties(extra?: {}, callOptions?: CallOptions): Promise<{
|
|
25
26
|
classificationsSupported: boolean;
|
|
26
27
|
detectionsSupported: boolean;
|
|
27
28
|
objectPointCloudsSupported: boolean;
|
|
28
29
|
defaultCamera: string | undefined;
|
|
30
|
+
detections3dSupported: boolean;
|
|
29
31
|
}>;
|
|
30
|
-
captureAllFromCamera(cameraName: string, { returnImage, returnClassifications, returnDetections, returnObjectPointClouds, }: CaptureAllOptions, extra?: {}, callOptions?: CallOptions): Promise<{
|
|
32
|
+
captureAllFromCamera(cameraName: string, { returnImage, returnClassifications, returnDetections, returnObjectPointClouds, returnDetections3d, }: CaptureAllOptions, extra?: {}, callOptions?: CallOptions): Promise<{
|
|
31
33
|
image: import("../../gen/component/camera/v1/camera_pb").Image | undefined;
|
|
32
34
|
classifications: import("../../gen/service/vision/v1/vision_pb").Classification[];
|
|
33
35
|
detections: import("../../gen/service/vision/v1/vision_pb").Detection[];
|
|
34
36
|
objectPointClouds: import("../../gen/common/v1/common_pb").PointCloudObject[];
|
|
37
|
+
detections3d: import("../../gen/service/vision/v1/vision_pb").Detection3D[];
|
|
35
38
|
extra: Struct | undefined;
|
|
36
39
|
}>;
|
|
37
40
|
getStatus(callOptions?: CallOptions): Promise<JsonValue>;
|
|
@@ -4,7 +4,8 @@ import * as commonApi from '../../gen/common/v1/common_pb';
|
|
|
4
4
|
import * as visionApi from '../../gen/service/vision/v1/vision_pb';
|
|
5
5
|
export type Classification = PlainMessage<visionApi.Classification>;
|
|
6
6
|
export type Detection = PlainMessage<visionApi.Detection>;
|
|
7
|
-
export
|
|
7
|
+
export type Detection3D = PlainMessage<visionApi.Detection3D>;
|
|
8
|
+
export declare const Classification: typeof visionApi.Classification, Detection: typeof visionApi.Detection, Detection3D: typeof visionApi.Detection3D;
|
|
8
9
|
export type PointCloudObject = PlainMessage<commonApi.PointCloudObject>;
|
|
9
10
|
export declare const PointCloudObject: typeof commonApi.PointCloudObject;
|
|
10
11
|
export interface Properties {
|
|
@@ -16,17 +17,22 @@ export interface Properties {
|
|
|
16
17
|
objectPointCloudsSupported: boolean;
|
|
17
18
|
/** The default camera used for *FromCamera and GetObjectPointClouds calls */
|
|
18
19
|
defaultCamera?: string;
|
|
20
|
+
/** Whether or not GetDetections3D is supported by the vision service */
|
|
21
|
+
detections3dSupported: boolean;
|
|
19
22
|
}
|
|
20
23
|
export interface CaptureAllOptions {
|
|
21
24
|
returnImage: boolean;
|
|
22
25
|
returnClassifications: boolean;
|
|
23
26
|
returnDetections: boolean;
|
|
24
27
|
returnObjectPointClouds: boolean;
|
|
28
|
+
/** Whether or not to include 3D detections in the response. Defaults to false. */
|
|
29
|
+
returnDetections3d?: boolean;
|
|
25
30
|
}
|
|
26
31
|
export interface CaptureAllResponse {
|
|
27
32
|
image: Image | undefined;
|
|
28
33
|
classifications: Classification[];
|
|
29
34
|
detections: Detection[];
|
|
30
35
|
objectPointClouds: PointCloudObject[];
|
|
36
|
+
detections3d: Detection3D[];
|
|
31
37
|
extra: Struct | undefined;
|
|
32
38
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Struct } from '@bufbuild/protobuf';
|
|
2
2
|
import type { MimeType } from '../../main';
|
|
3
3
|
import type { Resource } from '../../types';
|
|
4
|
-
import type { CaptureAllOptions, CaptureAllResponse, Classification, Detection, PointCloudObject, Properties } from './types';
|
|
4
|
+
import type { CaptureAllOptions, CaptureAllResponse, Classification, Detection, Detection3D, PointCloudObject, Properties } from './types';
|
|
5
5
|
/** A service that enables various computer vision algorithms */
|
|
6
6
|
export interface Vision extends Resource {
|
|
7
7
|
/**
|
|
@@ -115,6 +115,26 @@ export interface Vision extends Resource {
|
|
|
115
115
|
* @returns - The list of PointCloudObjects
|
|
116
116
|
*/
|
|
117
117
|
getObjectPointClouds: (cameraName: string, extra?: Struct) => Promise<PointCloudObject[]>;
|
|
118
|
+
/**
|
|
119
|
+
* Returns the objects the vision service perceives through the specified camera. Each detection
|
|
120
|
+
* is a tree of transforms, root first: the root is parented to a frame the machine already knows,
|
|
121
|
+
* typically the camera, and every later transform is parented to the root or an earlier
|
|
122
|
+
* transform. Each transform's geometry is expressed relative to that transform's own origin.
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
*
|
|
126
|
+
* ```ts
|
|
127
|
+
* const vision = new VIAM.VisionClient(machine, 'my_vision');
|
|
128
|
+
* const detections = await vision.getDetections3D('my_camera');
|
|
129
|
+
* ```
|
|
130
|
+
*
|
|
131
|
+
* For more information, see [Vision
|
|
132
|
+
* API](https://docs.viam.com/dev/reference/apis/services/vision/#getdetections3d).
|
|
133
|
+
*
|
|
134
|
+
* @param cameraName - The name of the camera.
|
|
135
|
+
* @returns - The list of Detection3Ds
|
|
136
|
+
*/
|
|
137
|
+
getDetections3D: (cameraName: string, extra?: Struct) => Promise<Detection3D[]>;
|
|
118
138
|
/**
|
|
119
139
|
* Returns an object describing the properties of the vision service, namely booleans indicating
|
|
120
140
|
* whether classifications, detections, and 3d segmentation are supported.
|
|
@@ -145,6 +165,7 @@ export interface Vision extends Resource {
|
|
|
145
165
|
* returnClassifications: true,
|
|
146
166
|
* returnDetections: true,
|
|
147
167
|
* returnObjectPointClouds: true,
|
|
168
|
+
* returnDetections3d: true,
|
|
148
169
|
* });
|
|
149
170
|
* ```
|
|
150
171
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viamrobotics/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.77.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/main.umd.js",
|
|
6
6
|
"module": "./dist/main.es.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@connectrpc/connect-web": "^1.7.0",
|
|
60
60
|
"bsonfy": "^1.0.2",
|
|
61
61
|
"exponential-backoff": "^3.1.3",
|
|
62
|
-
"fast-xml-parser": "^5.11.
|
|
62
|
+
"fast-xml-parser": "^5.11.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@bufbuild/buf": "^1.70.0",
|
|
@@ -90,5 +90,8 @@
|
|
|
90
90
|
"vite": "^8.0.16",
|
|
91
91
|
"vitest": "^4.1.8",
|
|
92
92
|
"yaml": "^2.3.3"
|
|
93
|
+
},
|
|
94
|
+
"overrides": {
|
|
95
|
+
"undici": "^7.30.0"
|
|
93
96
|
}
|
|
94
97
|
}
|