@viamrobotics/sdk 0.1.0-pre.1 → 0.1.1-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.
|
@@ -252,6 +252,9 @@ export class Property extends jspb.Message {
|
|
|
252
252
|
getFrameFormat(): string;
|
|
253
253
|
setFrameFormat(value: string): void;
|
|
254
254
|
|
|
255
|
+
getFrameRate(): number;
|
|
256
|
+
setFrameRate(value: number): void;
|
|
257
|
+
|
|
255
258
|
serializeBinary(): Uint8Array;
|
|
256
259
|
toObject(includeInstance?: boolean): Property.AsObject;
|
|
257
260
|
static toObject(includeInstance: boolean, msg: Property): Property.AsObject;
|
|
@@ -267,6 +270,7 @@ export namespace Property {
|
|
|
267
270
|
widthPx: number,
|
|
268
271
|
heightPx: number,
|
|
269
272
|
frameFormat: string,
|
|
273
|
+
frameRate: number,
|
|
270
274
|
}
|
|
271
275
|
}
|
|
272
276
|
|
package/dist/main.es.js
CHANGED
|
@@ -38900,9 +38900,11 @@ const isLocalConnection = (t) => t.includes(".local"), dialDirect = async (t) =>
|
|
|
38900
38900
|
throw new Error(
|
|
38901
38901
|
`cannot dial "${t.host}" directly, please use a local url instead.`
|
|
38902
38902
|
);
|
|
38903
|
-
|
|
38904
|
-
|
|
38905
|
-
|
|
38903
|
+
let e;
|
|
38904
|
+
t.disableSessions && (e = { disabled: !0 });
|
|
38905
|
+
const s = new RobotClient(t.host, void 0, e);
|
|
38906
|
+
let i;
|
|
38907
|
+
return t.credential && (i = t.credential), await s.connect(t.authEntity, i), console.debug("connected via gRPC"), s;
|
|
38906
38908
|
}, dialWebRTC = async (t) => {
|
|
38907
38909
|
console.debug("dialing via WebRTC...");
|
|
38908
38910
|
const e = t.host, { signalingAddress: s } = t, u = { iceServers: t.iceServers ?? [] }, g = {
|
|
@@ -38911,9 +38913,12 @@ const isLocalConnection = (t) => t.includes(".local"), dialDirect = async (t) =>
|
|
|
38911
38913
|
signalingAddress: s,
|
|
38912
38914
|
rtcConfig: u,
|
|
38913
38915
|
noReconnect: t.noReconnect
|
|
38914
|
-
}
|
|
38915
|
-
let
|
|
38916
|
-
|
|
38916
|
+
};
|
|
38917
|
+
let p;
|
|
38918
|
+
t.disableSessions && (p = { disabled: !0 });
|
|
38919
|
+
const o = new RobotClient(e, g, p);
|
|
38920
|
+
let r;
|
|
38921
|
+
return t.credential && (r = t.credential), await o.connect(e, r), console.debug("connected via WebRTC"), o;
|
|
38917
38922
|
}, isDialWebRTCConf = (t) => {
|
|
38918
38923
|
const e = t;
|
|
38919
38924
|
return typeof e.signalingAddress != "string" ? !1 : !e.iceServers || Array.isArray(e.iceServers);
|
|
@@ -40003,7 +40008,8 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40003
40008
|
var n = {
|
|
40004
40009
|
widthPx: e.Message.getFieldWithDefault(r, 1, 0),
|
|
40005
40010
|
heightPx: e.Message.getFieldWithDefault(r, 2, 0),
|
|
40006
|
-
frameFormat: e.Message.getFieldWithDefault(r, 3, "")
|
|
40011
|
+
frameFormat: e.Message.getFieldWithDefault(r, 3, ""),
|
|
40012
|
+
frameRate: e.Message.getFloatingPointFieldWithDefault(r, 4, 0)
|
|
40007
40013
|
};
|
|
40008
40014
|
return o && (n.$jspbMessageInstance = r), n;
|
|
40009
40015
|
}), proto.viam.component.camera.v1.Property.deserializeBinary = function(o) {
|
|
@@ -40034,6 +40040,13 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40034
40040
|
);
|
|
40035
40041
|
o.setFrameFormat(l);
|
|
40036
40042
|
break;
|
|
40043
|
+
case 4:
|
|
40044
|
+
var l = (
|
|
40045
|
+
/** @type {number} */
|
|
40046
|
+
r.readFloat()
|
|
40047
|
+
);
|
|
40048
|
+
o.setFrameRate(l);
|
|
40049
|
+
break;
|
|
40037
40050
|
default:
|
|
40038
40051
|
r.skipField();
|
|
40039
40052
|
break;
|
|
@@ -40054,6 +40067,9 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40054
40067
|
), n = o.getFrameFormat(), n.length > 0 && r.writeString(
|
|
40055
40068
|
3,
|
|
40056
40069
|
n
|
|
40070
|
+
), n = o.getFrameRate(), n !== 0 && r.writeFloat(
|
|
40071
|
+
4,
|
|
40072
|
+
n
|
|
40057
40073
|
);
|
|
40058
40074
|
}, proto.viam.component.camera.v1.Property.prototype.getWidthPx = function() {
|
|
40059
40075
|
return (
|
|
@@ -40076,6 +40092,13 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
40076
40092
|
);
|
|
40077
40093
|
}, proto.viam.component.camera.v1.Property.prototype.setFrameFormat = function(o) {
|
|
40078
40094
|
return e.Message.setProto3StringField(this, 3, o);
|
|
40095
|
+
}, proto.viam.component.camera.v1.Property.prototype.getFrameRate = function() {
|
|
40096
|
+
return (
|
|
40097
|
+
/** @type {number} */
|
|
40098
|
+
e.Message.getFloatingPointFieldWithDefault(this, 4, 0)
|
|
40099
|
+
);
|
|
40100
|
+
}, proto.viam.component.camera.v1.Property.prototype.setFrameRate = function(o) {
|
|
40101
|
+
return e.Message.setProto3FloatField(this, 4, o);
|
|
40079
40102
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.camera.v1.IntrinsicParameters.prototype.toObject = function(o) {
|
|
40080
40103
|
return proto.viam.component.camera.v1.IntrinsicParameters.toObject(o, this);
|
|
40081
40104
|
}, proto.viam.component.camera.v1.IntrinsicParameters.toObject = function(o, r) {
|
|
@@ -41622,7 +41645,7 @@ class ServoClient {
|
|
|
41622
41645
|
return doCommandFromClient(s, this.name, e, this.options);
|
|
41623
41646
|
}
|
|
41624
41647
|
}
|
|
41625
|
-
const version = "0.1.0
|
|
41648
|
+
const version = "0.1.1-0";
|
|
41626
41649
|
export {
|
|
41627
41650
|
ArmClient,
|
|
41628
41651
|
BaseClient,
|