@viamrobotics/sdk 0.17.1-rc.0 → 0.18.0-rc.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/gen/app/v1/app_pb.d.ts +8 -0
- package/dist/gen/app/v1/robot_pb.d.ts +6 -0
- package/dist/main.es.js +64 -2
- package/dist/main.umd.js +1 -1
- package/dist/services/vision/client.d.ts +14 -1
- package/dist/services/vision/types.d.ts +21 -0
- package/dist/services/vision/vision.d.ts +20 -1
- package/package.json +1 -1
|
@@ -3087,6 +3087,12 @@ export class MLModelMetadata extends jspb.Message {
|
|
|
3087
3087
|
setVersionsList(value: Array<string>): void;
|
|
3088
3088
|
addVersions(value: string, index?: number): string;
|
|
3089
3089
|
|
|
3090
|
+
getModelType(): app_mltraining_v1_ml_training_pb.ModelTypeMap[keyof app_mltraining_v1_ml_training_pb.ModelTypeMap];
|
|
3091
|
+
setModelType(value: app_mltraining_v1_ml_training_pb.ModelTypeMap[keyof app_mltraining_v1_ml_training_pb.ModelTypeMap]): void;
|
|
3092
|
+
|
|
3093
|
+
getModelFramework(): app_mltraining_v1_ml_training_pb.ModelFrameworkMap[keyof app_mltraining_v1_ml_training_pb.ModelFrameworkMap];
|
|
3094
|
+
setModelFramework(value: app_mltraining_v1_ml_training_pb.ModelFrameworkMap[keyof app_mltraining_v1_ml_training_pb.ModelFrameworkMap]): void;
|
|
3095
|
+
|
|
3090
3096
|
serializeBinary(): Uint8Array;
|
|
3091
3097
|
toObject(includeInstance?: boolean): MLModelMetadata.AsObject;
|
|
3092
3098
|
static toObject(includeInstance: boolean, msg: MLModelMetadata): MLModelMetadata.AsObject;
|
|
@@ -3100,6 +3106,8 @@ export class MLModelMetadata extends jspb.Message {
|
|
|
3100
3106
|
export namespace MLModelMetadata {
|
|
3101
3107
|
export type AsObject = {
|
|
3102
3108
|
versionsList: Array<string>,
|
|
3109
|
+
modelType: app_mltraining_v1_ml_training_pb.ModelTypeMap[keyof app_mltraining_v1_ml_training_pb.ModelTypeMap],
|
|
3110
|
+
modelFramework: app_mltraining_v1_ml_training_pb.ModelFrameworkMap[keyof app_mltraining_v1_ml_training_pb.ModelFrameworkMap],
|
|
3103
3111
|
}
|
|
3104
3112
|
}
|
|
3105
3113
|
|
|
@@ -387,6 +387,11 @@ export class ServiceConfig extends jspb.Message {
|
|
|
387
387
|
setServiceConfigsList(value: Array<ResourceLevelServiceConfig>): void;
|
|
388
388
|
addServiceConfigs(value?: ResourceLevelServiceConfig, index?: number): ResourceLevelServiceConfig;
|
|
389
389
|
|
|
390
|
+
hasLogConfiguration(): boolean;
|
|
391
|
+
clearLogConfiguration(): void;
|
|
392
|
+
getLogConfiguration(): LogConfiguration | undefined;
|
|
393
|
+
setLogConfiguration(value?: LogConfiguration): void;
|
|
394
|
+
|
|
390
395
|
serializeBinary(): Uint8Array;
|
|
391
396
|
toObject(includeInstance?: boolean): ServiceConfig.AsObject;
|
|
392
397
|
static toObject(includeInstance: boolean, msg: ServiceConfig): ServiceConfig.AsObject;
|
|
@@ -407,6 +412,7 @@ export namespace ServiceConfig {
|
|
|
407
412
|
model: string,
|
|
408
413
|
api: string,
|
|
409
414
|
serviceConfigsList: Array<ResourceLevelServiceConfig.AsObject>,
|
|
415
|
+
logConfiguration?: LogConfiguration.AsObject,
|
|
410
416
|
}
|
|
411
417
|
}
|
|
412
418
|
|
package/dist/main.es.js
CHANGED
|
@@ -67578,7 +67578,9 @@ var packages_pb = {};
|
|
|
67578
67578
|
return proto.viam.app.v1.MLModelMetadata.toObject(o, this);
|
|
67579
67579
|
}, proto.viam.app.v1.MLModelMetadata.toObject = function(o, c) {
|
|
67580
67580
|
var v, d = {
|
|
67581
|
-
versionsList: (v = e.Message.getRepeatedField(c, 1)) == null ? void 0 : v
|
|
67581
|
+
versionsList: (v = e.Message.getRepeatedField(c, 1)) == null ? void 0 : v,
|
|
67582
|
+
modelType: e.Message.getFieldWithDefault(c, 2, 0),
|
|
67583
|
+
modelFramework: e.Message.getFieldWithDefault(c, 3, 0)
|
|
67582
67584
|
};
|
|
67583
67585
|
return o && (d.$jspbMessageInstance = c), d;
|
|
67584
67586
|
}), proto.viam.app.v1.MLModelMetadata.deserializeBinary = function(o) {
|
|
@@ -67595,6 +67597,20 @@ var packages_pb = {};
|
|
|
67595
67597
|
);
|
|
67596
67598
|
o.addVersions(d);
|
|
67597
67599
|
break;
|
|
67600
|
+
case 2:
|
|
67601
|
+
var d = (
|
|
67602
|
+
/** @type {!proto.viam.app.mltraining.v1.ModelType} */
|
|
67603
|
+
c.readEnum()
|
|
67604
|
+
);
|
|
67605
|
+
o.setModelType(d);
|
|
67606
|
+
break;
|
|
67607
|
+
case 3:
|
|
67608
|
+
var d = (
|
|
67609
|
+
/** @type {!proto.viam.app.mltraining.v1.ModelFramework} */
|
|
67610
|
+
c.readEnum()
|
|
67611
|
+
);
|
|
67612
|
+
o.setModelFramework(d);
|
|
67613
|
+
break;
|
|
67598
67614
|
default:
|
|
67599
67615
|
c.skipField();
|
|
67600
67616
|
break;
|
|
@@ -67609,6 +67625,12 @@ var packages_pb = {};
|
|
|
67609
67625
|
v = o.getVersionsList(), v.length > 0 && c.writeRepeatedString(
|
|
67610
67626
|
1,
|
|
67611
67627
|
v
|
|
67628
|
+
), v = o.getModelType(), v !== 0 && c.writeEnum(
|
|
67629
|
+
2,
|
|
67630
|
+
v
|
|
67631
|
+
), v = o.getModelFramework(), v !== 0 && c.writeEnum(
|
|
67632
|
+
3,
|
|
67633
|
+
v
|
|
67612
67634
|
);
|
|
67613
67635
|
}, proto.viam.app.v1.MLModelMetadata.prototype.getVersionsList = function() {
|
|
67614
67636
|
return (
|
|
@@ -67621,6 +67643,20 @@ var packages_pb = {};
|
|
|
67621
67643
|
return e.Message.addToRepeatedField(this, 1, o, c);
|
|
67622
67644
|
}, proto.viam.app.v1.MLModelMetadata.prototype.clearVersionsList = function() {
|
|
67623
67645
|
return this.setVersionsList([]);
|
|
67646
|
+
}, proto.viam.app.v1.MLModelMetadata.prototype.getModelType = function() {
|
|
67647
|
+
return (
|
|
67648
|
+
/** @type {!proto.viam.app.mltraining.v1.ModelType} */
|
|
67649
|
+
e.Message.getFieldWithDefault(this, 2, 0)
|
|
67650
|
+
);
|
|
67651
|
+
}, proto.viam.app.v1.MLModelMetadata.prototype.setModelType = function(o) {
|
|
67652
|
+
return e.Message.setProto3EnumField(this, 2, o);
|
|
67653
|
+
}, proto.viam.app.v1.MLModelMetadata.prototype.getModelFramework = function() {
|
|
67654
|
+
return (
|
|
67655
|
+
/** @type {!proto.viam.app.mltraining.v1.ModelFramework} */
|
|
67656
|
+
e.Message.getFieldWithDefault(this, 3, 0)
|
|
67657
|
+
);
|
|
67658
|
+
}, proto.viam.app.v1.MLModelMetadata.prototype.setModelFramework = function(o) {
|
|
67659
|
+
return e.Message.setProto3EnumField(this, 3, o);
|
|
67624
67660
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.v1.MLTrainingVersion.prototype.toObject = function(o) {
|
|
67625
67661
|
return proto.viam.app.v1.MLTrainingVersion.toObject(o, this);
|
|
67626
67662
|
}, proto.viam.app.v1.MLTrainingVersion.toObject = function(o, c) {
|
|
@@ -78677,6 +78713,32 @@ class VisionClient {
|
|
|
78677
78713
|
const { service: g } = this, u = new pb$5.GetObjectPointCloudsRequest();
|
|
78678
78714
|
return u.setName(this.name), u.setCameraName(e), u.setExtra(struct_pb.Struct.fromJavaScript(s)), this.options.requestLogger?.(u), (await promisify(g.getObjectPointClouds.bind(g), u)).getObjectsList().map((l) => l.toObject());
|
|
78679
78715
|
}
|
|
78716
|
+
async getProperties(e = {}) {
|
|
78717
|
+
const { service: s } = this, g = new pb$5.GetPropertiesRequest();
|
|
78718
|
+
g.setName(this.name), g.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(g);
|
|
78719
|
+
const u = await promisify(s.getProperties.bind(s), g);
|
|
78720
|
+
return {
|
|
78721
|
+
classificationsSupported: u.getClassificationsSupported(),
|
|
78722
|
+
detectionsSupported: u.getDetectionsSupported(),
|
|
78723
|
+
objectPointCloudsSupported: u.getObjectPointCloudsSupported()
|
|
78724
|
+
};
|
|
78725
|
+
}
|
|
78726
|
+
async captureAllFromCamera(e, {
|
|
78727
|
+
returnImage: s,
|
|
78728
|
+
returnClassifications: g,
|
|
78729
|
+
returnDetections: u,
|
|
78730
|
+
returnObjectPointClouds: p
|
|
78731
|
+
}, l = {}) {
|
|
78732
|
+
const { service: t } = this, r = new pb$5.CaptureAllFromCameraRequest();
|
|
78733
|
+
r.setName(this.name), r.setCameraName(e), r.setReturnImage(s), r.setReturnClassifications(g), r.setReturnDetections(u), r.setReturnObjectPointClouds(p), r.setExtra(struct_pb.Struct.fromJavaScript(l)), this.options.requestLogger?.(r);
|
|
78734
|
+
const n = await promisify(t.captureAllFromCamera.bind(t), r);
|
|
78735
|
+
return {
|
|
78736
|
+
image: n.getImage()?.toObject(),
|
|
78737
|
+
classifications: n.getClassificationsList().map((o) => o.toObject()),
|
|
78738
|
+
detections: n.getDetectionsList().map((o) => o.toObject()),
|
|
78739
|
+
objectPointClouds: n.getObjectsList().map((o) => o.toObject())
|
|
78740
|
+
};
|
|
78741
|
+
}
|
|
78680
78742
|
async doCommand(e) {
|
|
78681
78743
|
const { service: s } = this;
|
|
78682
78744
|
return doCommandFromClient(s, this.name, e, this.options);
|
|
@@ -78743,7 +78805,7 @@ class GenericClient {
|
|
|
78743
78805
|
return doCommandFromClient(s, this.name, e, this.options);
|
|
78744
78806
|
}
|
|
78745
78807
|
}
|
|
78746
|
-
const version = "0.
|
|
78808
|
+
const version = "0.18.0-rc.0";
|
|
78747
78809
|
export {
|
|
78748
78810
|
ArmClient,
|
|
78749
78811
|
BaseClient,
|