@zaber/motion 4.2.4 → 4.2.5
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/binding/wasm/zaber-motion-lib.wasm +0 -0
- package/dist/lib/library.d.ts +7 -0
- package/dist/lib/library.js +11 -0
- package/dist/lib/library.js.map +1 -1
- package/dist/lib/protobufs/main_pb.d.ts +20 -0
- package/dist/lib/protobufs/main_pb.js +152 -0
- package/dist/lib/protobufs/main_pb.js.map +1 -1
- package/package.json +1 -1
|
Binary file
|
package/dist/lib/library.d.ts
CHANGED
|
@@ -32,4 +32,11 @@ export declare class Library {
|
|
|
32
32
|
* @param mode Whether to turn internal mode on or off.
|
|
33
33
|
*/
|
|
34
34
|
static setInternalMode(mode: boolean): void;
|
|
35
|
+
/**
|
|
36
|
+
* Sets the period between polling for IDLE during movements.
|
|
37
|
+
* Caution: Setting the period too low may cause performance issues.
|
|
38
|
+
* @param period Period in milliseconds.
|
|
39
|
+
* Negative value restores the default period.
|
|
40
|
+
*/
|
|
41
|
+
static setIdlePollingPeriod(period: number): void;
|
|
35
42
|
}
|
package/dist/lib/library.js
CHANGED
|
@@ -81,6 +81,17 @@ class Library {
|
|
|
81
81
|
request.setMode(mode);
|
|
82
82
|
gateway.callSync('library/set_internal_mode', request);
|
|
83
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Sets the period between polling for IDLE during movements.
|
|
86
|
+
* Caution: Setting the period too low may cause performance issues.
|
|
87
|
+
* @param period Period in milliseconds.
|
|
88
|
+
* Negative value restores the default period.
|
|
89
|
+
*/
|
|
90
|
+
static setIdlePollingPeriod(period) {
|
|
91
|
+
const request = new gateway.IntRequest();
|
|
92
|
+
request.setValue(period);
|
|
93
|
+
gateway.callSync('library/set_idle_polling_period', request);
|
|
94
|
+
}
|
|
84
95
|
}
|
|
85
96
|
exports.Library = Library;
|
|
86
97
|
//# sourceMappingURL=library.js.map
|
package/dist/lib/library.js.map
CHANGED
|
@@ -1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W,CAAC,IAAI,CAAC,CAAC;QAC1B,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAExC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,oBAAoB;QAChC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,0BAA0B,EAAE,CAAC;QAEzD,OAAO,CAAC,QAAQ,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,eAAe,CAC3B,IAAa;QAEb,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,sBAAsB,EAAE,CAAC;QACrD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAEtB,OAAO,CAAC,QAAQ,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,oBAAoB,CAChC,MAAc;QAEd,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAEzB,OAAO,CAAC,QAAQ,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF;AAxFD,0BAwFC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\nimport { LogOutputMode } from './log_output_mode';\nimport { DeviceDbSourceType } from './device_db_source_type';\n\nexport class Library {\n /**\n * Sets library logging output.\n * @param mode Logging output mode.\n * @param [filePath=''] Path of the file to open.\n */\n public static setLogOutput(\n mode: LogOutputMode,\n filePath: string = ''\n ): void {\n const request = new gateway.SetLogOutputRequest();\n request.setMode(mode as any);\n request.setFilePath(filePath);\n\n gateway.callSync('logging/set_output', request);\n }\n\n /**\n * Sets source of Device DB data. Allows selection of a web service or a local file.\n * @param sourceType Source type.\n * @param [urlOrFilePath=''] URL of the web service or path to the local file.\n * Leave empty for the default URL of Zaber web service.\n */\n public static setDeviceDbSource(\n sourceType: DeviceDbSourceType,\n urlOrFilePath: string = ''\n ): void {\n const request = new gateway.SetDeviceDbSourceRequest();\n request.setSourceType(sourceType as any);\n request.setUrlOrFilePath(urlOrFilePath);\n\n gateway.callSync('device_db/set_source', request);\n }\n\n /**\n * Enables Device DB store.\n * The store uses filesystem to save information obtained from the Device DB.\n * The stored data are later used instead of the Device DB.\n * @param [storeLocation=''] Specifies relative or absolute path of the folder used by the store.\n * If left empty defaults to a folder in user home directory.\n * Must be accessible by the process.\n */\n public static enableDeviceDbStore(\n storeLocation: string = ''\n ): void {\n const request = new gateway.ToggleDeviceDbStoreRequest();\n request.setToggleOn(true);\n request.setStoreLocation(storeLocation);\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables Device DB store.\n */\n public static disableDeviceDbStore(): void {\n const request = new gateway.ToggleDeviceDbStoreRequest();\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables certain customer checks (like FF flag).\n * @param mode Whether to turn internal mode on or off.\n */\n public static setInternalMode(\n mode: boolean\n ): void {\n const request = new gateway.SetInternalModeRequest();\n request.setMode(mode);\n\n gateway.callSync('library/set_internal_mode', request);\n }\n\n /**\n * Sets the period between polling for IDLE during movements.\n * Caution: Setting the period too low may cause performance issues.\n * @param period Period in milliseconds.\n * Negative value restores the default period.\n */\n public static setIdlePollingPeriod(\n period: number\n ): void {\n const request = new gateway.IntRequest();\n request.setValue(period);\n\n gateway.callSync('library/set_idle_polling_period', request);\n }\n}\n"]}
|
|
@@ -92,6 +92,26 @@ export namespace EmptyRequest {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
export class IntRequest extends jspb.Message {
|
|
96
|
+
getValue(): number;
|
|
97
|
+
setValue(value: number): void;
|
|
98
|
+
|
|
99
|
+
serializeBinary(): Uint8Array;
|
|
100
|
+
toObject(includeInstance?: boolean): IntRequest.AsObject;
|
|
101
|
+
static toObject(includeInstance: boolean, msg: IntRequest): IntRequest.AsObject;
|
|
102
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
103
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
104
|
+
static serializeBinaryToWriter(message: IntRequest, writer: jspb.BinaryWriter): void;
|
|
105
|
+
static deserializeBinary(bytes: Uint8Array): IntRequest;
|
|
106
|
+
static deserializeBinaryFromReader(message: IntRequest, reader: jspb.BinaryReader): IntRequest;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export namespace IntRequest {
|
|
110
|
+
export type AsObject = {
|
|
111
|
+
value: number,
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
95
115
|
export class BoolResponse extends jspb.Message {
|
|
96
116
|
getValue(): boolean;
|
|
97
117
|
setValue(value: boolean): void;
|
|
@@ -99,6 +99,7 @@ goog.exportSymbol('zaber.motion.protobufs.GenericCommandRequest', null, proto);
|
|
|
99
99
|
goog.exportSymbol('zaber.motion.protobufs.GenericCommandResponse', null, proto);
|
|
100
100
|
goog.exportSymbol('zaber.motion.protobufs.GenericCommandResponseCollection', null, proto);
|
|
101
101
|
goog.exportSymbol('zaber.motion.protobufs.GetSimpleTuningParamDefinitionResponse', null, proto);
|
|
102
|
+
goog.exportSymbol('zaber.motion.protobufs.IntRequest', null, proto);
|
|
102
103
|
goog.exportSymbol('zaber.motion.protobufs.IntResponse', null, proto);
|
|
103
104
|
goog.exportSymbol('zaber.motion.protobufs.InterfaceEmptyRequest', null, proto);
|
|
104
105
|
goog.exportSymbol('zaber.motion.protobufs.InterfaceType', null, proto);
|
|
@@ -320,6 +321,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
320
321
|
*/
|
|
321
322
|
proto.zaber.motion.protobufs.EmptyRequest.displayName = 'proto.zaber.motion.protobufs.EmptyRequest';
|
|
322
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* Generated by JsPbCodeGenerator.
|
|
326
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
327
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
328
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
329
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
330
|
+
* valid.
|
|
331
|
+
* @extends {jspb.Message}
|
|
332
|
+
* @constructor
|
|
333
|
+
*/
|
|
334
|
+
proto.zaber.motion.protobufs.IntRequest = function(opt_data) {
|
|
335
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
336
|
+
};
|
|
337
|
+
goog.inherits(proto.zaber.motion.protobufs.IntRequest, jspb.Message);
|
|
338
|
+
if (goog.DEBUG && !COMPILED) {
|
|
339
|
+
/**
|
|
340
|
+
* @public
|
|
341
|
+
* @override
|
|
342
|
+
*/
|
|
343
|
+
proto.zaber.motion.protobufs.IntRequest.displayName = 'proto.zaber.motion.protobufs.IntRequest';
|
|
344
|
+
}
|
|
323
345
|
/**
|
|
324
346
|
* Generated by JsPbCodeGenerator.
|
|
325
347
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -5145,6 +5167,136 @@ proto.zaber.motion.protobufs.EmptyRequest.serializeBinaryToWriter = function(mes
|
|
|
5145
5167
|
|
|
5146
5168
|
|
|
5147
5169
|
|
|
5170
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5171
|
+
/**
|
|
5172
|
+
* Creates an object representation of this proto.
|
|
5173
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5174
|
+
* Optional fields that are not set will be set to undefined.
|
|
5175
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5176
|
+
* For the list of reserved names please see:
|
|
5177
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5178
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5179
|
+
* JSPB instance for transitional soy proto support:
|
|
5180
|
+
* http://goto/soy-param-migration
|
|
5181
|
+
* @return {!Object}
|
|
5182
|
+
*/
|
|
5183
|
+
proto.zaber.motion.protobufs.IntRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5184
|
+
return proto.zaber.motion.protobufs.IntRequest.toObject(opt_includeInstance, this);
|
|
5185
|
+
};
|
|
5186
|
+
|
|
5187
|
+
|
|
5188
|
+
/**
|
|
5189
|
+
* Static version of the {@see toObject} method.
|
|
5190
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5191
|
+
* the JSPB instance for transitional soy proto support:
|
|
5192
|
+
* http://goto/soy-param-migration
|
|
5193
|
+
* @param {!proto.zaber.motion.protobufs.IntRequest} msg The msg instance to transform.
|
|
5194
|
+
* @return {!Object}
|
|
5195
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5196
|
+
*/
|
|
5197
|
+
proto.zaber.motion.protobufs.IntRequest.toObject = function(includeInstance, msg) {
|
|
5198
|
+
var f, obj = {
|
|
5199
|
+
value: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
5200
|
+
};
|
|
5201
|
+
|
|
5202
|
+
if (includeInstance) {
|
|
5203
|
+
obj.$jspbMessageInstance = msg;
|
|
5204
|
+
}
|
|
5205
|
+
return obj;
|
|
5206
|
+
};
|
|
5207
|
+
}
|
|
5208
|
+
|
|
5209
|
+
|
|
5210
|
+
/**
|
|
5211
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5212
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5213
|
+
* @return {!proto.zaber.motion.protobufs.IntRequest}
|
|
5214
|
+
*/
|
|
5215
|
+
proto.zaber.motion.protobufs.IntRequest.deserializeBinary = function(bytes) {
|
|
5216
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5217
|
+
var msg = new proto.zaber.motion.protobufs.IntRequest;
|
|
5218
|
+
return proto.zaber.motion.protobufs.IntRequest.deserializeBinaryFromReader(msg, reader);
|
|
5219
|
+
};
|
|
5220
|
+
|
|
5221
|
+
|
|
5222
|
+
/**
|
|
5223
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5224
|
+
* given reader into the given message object.
|
|
5225
|
+
* @param {!proto.zaber.motion.protobufs.IntRequest} msg The message object to deserialize into.
|
|
5226
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5227
|
+
* @return {!proto.zaber.motion.protobufs.IntRequest}
|
|
5228
|
+
*/
|
|
5229
|
+
proto.zaber.motion.protobufs.IntRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5230
|
+
while (reader.nextField()) {
|
|
5231
|
+
if (reader.isEndGroup()) {
|
|
5232
|
+
break;
|
|
5233
|
+
}
|
|
5234
|
+
var field = reader.getFieldNumber();
|
|
5235
|
+
switch (field) {
|
|
5236
|
+
case 1:
|
|
5237
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5238
|
+
msg.setValue(value);
|
|
5239
|
+
break;
|
|
5240
|
+
default:
|
|
5241
|
+
reader.skipField();
|
|
5242
|
+
break;
|
|
5243
|
+
}
|
|
5244
|
+
}
|
|
5245
|
+
return msg;
|
|
5246
|
+
};
|
|
5247
|
+
|
|
5248
|
+
|
|
5249
|
+
/**
|
|
5250
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5251
|
+
* @return {!Uint8Array}
|
|
5252
|
+
*/
|
|
5253
|
+
proto.zaber.motion.protobufs.IntRequest.prototype.serializeBinary = function() {
|
|
5254
|
+
var writer = new jspb.BinaryWriter();
|
|
5255
|
+
proto.zaber.motion.protobufs.IntRequest.serializeBinaryToWriter(this, writer);
|
|
5256
|
+
return writer.getResultBuffer();
|
|
5257
|
+
};
|
|
5258
|
+
|
|
5259
|
+
|
|
5260
|
+
/**
|
|
5261
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5262
|
+
* format), writing to the given BinaryWriter.
|
|
5263
|
+
* @param {!proto.zaber.motion.protobufs.IntRequest} message
|
|
5264
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5265
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5266
|
+
*/
|
|
5267
|
+
proto.zaber.motion.protobufs.IntRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5268
|
+
var f = undefined;
|
|
5269
|
+
f = message.getValue();
|
|
5270
|
+
if (f !== 0) {
|
|
5271
|
+
writer.writeInt32(
|
|
5272
|
+
1,
|
|
5273
|
+
f
|
|
5274
|
+
);
|
|
5275
|
+
}
|
|
5276
|
+
};
|
|
5277
|
+
|
|
5278
|
+
|
|
5279
|
+
/**
|
|
5280
|
+
* optional int32 value = 1;
|
|
5281
|
+
* @return {number}
|
|
5282
|
+
*/
|
|
5283
|
+
proto.zaber.motion.protobufs.IntRequest.prototype.getValue = function() {
|
|
5284
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
5285
|
+
};
|
|
5286
|
+
|
|
5287
|
+
|
|
5288
|
+
/**
|
|
5289
|
+
* @param {number} value
|
|
5290
|
+
* @return {!proto.zaber.motion.protobufs.IntRequest} returns this
|
|
5291
|
+
*/
|
|
5292
|
+
proto.zaber.motion.protobufs.IntRequest.prototype.setValue = function(value) {
|
|
5293
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
5294
|
+
};
|
|
5295
|
+
|
|
5296
|
+
|
|
5297
|
+
|
|
5298
|
+
|
|
5299
|
+
|
|
5148
5300
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5149
5301
|
/**
|
|
5150
5302
|
* Creates an object representation of this proto.
|