@zaber/motion 5.1.3 → 5.1.4
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/ascii/index.d.ts +1 -0
- package/dist/lib/ascii/index.js +4 -2
- package/dist/lib/ascii/index.js.map +1 -1
- package/dist/lib/ascii/servo_tuner.d.ts +10 -1
- package/dist/lib/ascii/servo_tuner.js +18 -1
- package/dist/lib/ascii/servo_tuner.js.map +1 -1
- package/dist/lib/ascii/simple_tuning.d.ts +26 -0
- package/dist/lib/ascii/simple_tuning.js +21 -0
- package/dist/lib/ascii/simple_tuning.js.map +1 -0
- package/dist/lib/ascii_ns.d.ts +2 -0
- package/dist/lib/ascii_ns.js +1 -0
- package/dist/lib/ascii_ns.js.map +1 -1
- package/dist/lib/protobufs/main_pb.d.ts +38 -0
- package/dist/lib/protobufs/main_pb.js +302 -0
- package/dist/lib/protobufs/main_pb.js.map +1 -1
- package/package.json +1 -1
|
@@ -189,6 +189,7 @@ goog.exportSymbol('zaber.motion.protobufs.SetServoTuningPIDRequest', null, proto
|
|
|
189
189
|
goog.exportSymbol('zaber.motion.protobufs.SetServoTuningRequest', null, proto);
|
|
190
190
|
goog.exportSymbol('zaber.motion.protobufs.SetSimpleTuning', null, proto);
|
|
191
191
|
goog.exportSymbol('zaber.motion.protobufs.SetStateRequest', null, proto);
|
|
192
|
+
goog.exportSymbol('zaber.motion.protobufs.SimpleTuning', null, proto);
|
|
192
193
|
goog.exportSymbol('zaber.motion.protobufs.SimpleTuningParamDefinition', null, proto);
|
|
193
194
|
goog.exportSymbol('zaber.motion.protobufs.StreamArcRequest', null, proto);
|
|
194
195
|
goog.exportSymbol('zaber.motion.protobufs.StreamArcRequest.Type', null, proto);
|
|
@@ -4395,6 +4396,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4395
4396
|
*/
|
|
4396
4397
|
proto.zaber.motion.protobufs.SetSimpleTuning.displayName = 'proto.zaber.motion.protobufs.SetSimpleTuning';
|
|
4397
4398
|
}
|
|
4399
|
+
/**
|
|
4400
|
+
* Generated by JsPbCodeGenerator.
|
|
4401
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4402
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4403
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4404
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4405
|
+
* valid.
|
|
4406
|
+
* @extends {jspb.Message}
|
|
4407
|
+
* @constructor
|
|
4408
|
+
*/
|
|
4409
|
+
proto.zaber.motion.protobufs.SimpleTuning = function(opt_data) {
|
|
4410
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.zaber.motion.protobufs.SimpleTuning.repeatedFields_, null);
|
|
4411
|
+
};
|
|
4412
|
+
goog.inherits(proto.zaber.motion.protobufs.SimpleTuning, jspb.Message);
|
|
4413
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4414
|
+
/**
|
|
4415
|
+
* @public
|
|
4416
|
+
* @override
|
|
4417
|
+
*/
|
|
4418
|
+
proto.zaber.motion.protobufs.SimpleTuning.displayName = 'proto.zaber.motion.protobufs.SimpleTuning';
|
|
4419
|
+
}
|
|
4398
4420
|
/**
|
|
4399
4421
|
* Generated by JsPbCodeGenerator.
|
|
4400
4422
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -49989,6 +50011,286 @@ proto.zaber.motion.protobufs.SetSimpleTuning.prototype.clearTuningParamsList = f
|
|
|
49989
50011
|
|
|
49990
50012
|
|
|
49991
50013
|
|
|
50014
|
+
/**
|
|
50015
|
+
* List of repeated fields within this message type.
|
|
50016
|
+
* @private {!Array<number>}
|
|
50017
|
+
* @const
|
|
50018
|
+
*/
|
|
50019
|
+
proto.zaber.motion.protobufs.SimpleTuning.repeatedFields_ = [4];
|
|
50020
|
+
|
|
50021
|
+
|
|
50022
|
+
|
|
50023
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
50024
|
+
/**
|
|
50025
|
+
* Creates an object representation of this proto.
|
|
50026
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
50027
|
+
* Optional fields that are not set will be set to undefined.
|
|
50028
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
50029
|
+
* For the list of reserved names please see:
|
|
50030
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
50031
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
50032
|
+
* JSPB instance for transitional soy proto support:
|
|
50033
|
+
* http://goto/soy-param-migration
|
|
50034
|
+
* @return {!Object}
|
|
50035
|
+
*/
|
|
50036
|
+
proto.zaber.motion.protobufs.SimpleTuning.prototype.toObject = function(opt_includeInstance) {
|
|
50037
|
+
return proto.zaber.motion.protobufs.SimpleTuning.toObject(opt_includeInstance, this);
|
|
50038
|
+
};
|
|
50039
|
+
|
|
50040
|
+
|
|
50041
|
+
/**
|
|
50042
|
+
* Static version of the {@see toObject} method.
|
|
50043
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
50044
|
+
* the JSPB instance for transitional soy proto support:
|
|
50045
|
+
* http://goto/soy-param-migration
|
|
50046
|
+
* @param {!proto.zaber.motion.protobufs.SimpleTuning} msg The msg instance to transform.
|
|
50047
|
+
* @return {!Object}
|
|
50048
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
50049
|
+
*/
|
|
50050
|
+
proto.zaber.motion.protobufs.SimpleTuning.toObject = function(includeInstance, msg) {
|
|
50051
|
+
var f, obj = {
|
|
50052
|
+
isUsed: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
50053
|
+
carriageMass: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
50054
|
+
hasCarriageMass: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
50055
|
+
loadMass: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
50056
|
+
tuningParamsList: jspb.Message.toObjectList(msg.getTuningParamsList(),
|
|
50057
|
+
proto.zaber.motion.protobufs.ServoTuningParam.toObject, includeInstance)
|
|
50058
|
+
};
|
|
50059
|
+
|
|
50060
|
+
if (includeInstance) {
|
|
50061
|
+
obj.$jspbMessageInstance = msg;
|
|
50062
|
+
}
|
|
50063
|
+
return obj;
|
|
50064
|
+
};
|
|
50065
|
+
}
|
|
50066
|
+
|
|
50067
|
+
|
|
50068
|
+
/**
|
|
50069
|
+
* Deserializes binary data (in protobuf wire format).
|
|
50070
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
50071
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuning}
|
|
50072
|
+
*/
|
|
50073
|
+
proto.zaber.motion.protobufs.SimpleTuning.deserializeBinary = function(bytes) {
|
|
50074
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
50075
|
+
var msg = new proto.zaber.motion.protobufs.SimpleTuning;
|
|
50076
|
+
return proto.zaber.motion.protobufs.SimpleTuning.deserializeBinaryFromReader(msg, reader);
|
|
50077
|
+
};
|
|
50078
|
+
|
|
50079
|
+
|
|
50080
|
+
/**
|
|
50081
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
50082
|
+
* given reader into the given message object.
|
|
50083
|
+
* @param {!proto.zaber.motion.protobufs.SimpleTuning} msg The message object to deserialize into.
|
|
50084
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
50085
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuning}
|
|
50086
|
+
*/
|
|
50087
|
+
proto.zaber.motion.protobufs.SimpleTuning.deserializeBinaryFromReader = function(msg, reader) {
|
|
50088
|
+
while (reader.nextField()) {
|
|
50089
|
+
if (reader.isEndGroup()) {
|
|
50090
|
+
break;
|
|
50091
|
+
}
|
|
50092
|
+
var field = reader.getFieldNumber();
|
|
50093
|
+
switch (field) {
|
|
50094
|
+
case 1:
|
|
50095
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
50096
|
+
msg.setIsUsed(value);
|
|
50097
|
+
break;
|
|
50098
|
+
case 2:
|
|
50099
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
50100
|
+
msg.setCarriageMass(value);
|
|
50101
|
+
break;
|
|
50102
|
+
case 5:
|
|
50103
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
50104
|
+
msg.setHasCarriageMass(value);
|
|
50105
|
+
break;
|
|
50106
|
+
case 3:
|
|
50107
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
50108
|
+
msg.setLoadMass(value);
|
|
50109
|
+
break;
|
|
50110
|
+
case 4:
|
|
50111
|
+
var value = new proto.zaber.motion.protobufs.ServoTuningParam;
|
|
50112
|
+
reader.readMessage(value,proto.zaber.motion.protobufs.ServoTuningParam.deserializeBinaryFromReader);
|
|
50113
|
+
msg.addTuningParams(value);
|
|
50114
|
+
break;
|
|
50115
|
+
default:
|
|
50116
|
+
reader.skipField();
|
|
50117
|
+
break;
|
|
50118
|
+
}
|
|
50119
|
+
}
|
|
50120
|
+
return msg;
|
|
50121
|
+
};
|
|
50122
|
+
|
|
50123
|
+
|
|
50124
|
+
/**
|
|
50125
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
50126
|
+
* @return {!Uint8Array}
|
|
50127
|
+
*/
|
|
50128
|
+
proto.zaber.motion.protobufs.SimpleTuning.prototype.serializeBinary = function() {
|
|
50129
|
+
var writer = new jspb.BinaryWriter();
|
|
50130
|
+
proto.zaber.motion.protobufs.SimpleTuning.serializeBinaryToWriter(this, writer);
|
|
50131
|
+
return writer.getResultBuffer();
|
|
50132
|
+
};
|
|
50133
|
+
|
|
50134
|
+
|
|
50135
|
+
/**
|
|
50136
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
50137
|
+
* format), writing to the given BinaryWriter.
|
|
50138
|
+
* @param {!proto.zaber.motion.protobufs.SimpleTuning} message
|
|
50139
|
+
* @param {!jspb.BinaryWriter} writer
|
|
50140
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
50141
|
+
*/
|
|
50142
|
+
proto.zaber.motion.protobufs.SimpleTuning.serializeBinaryToWriter = function(message, writer) {
|
|
50143
|
+
var f = undefined;
|
|
50144
|
+
f = message.getIsUsed();
|
|
50145
|
+
if (f) {
|
|
50146
|
+
writer.writeBool(
|
|
50147
|
+
1,
|
|
50148
|
+
f
|
|
50149
|
+
);
|
|
50150
|
+
}
|
|
50151
|
+
f = message.getCarriageMass();
|
|
50152
|
+
if (f !== 0.0) {
|
|
50153
|
+
writer.writeDouble(
|
|
50154
|
+
2,
|
|
50155
|
+
f
|
|
50156
|
+
);
|
|
50157
|
+
}
|
|
50158
|
+
f = message.getHasCarriageMass();
|
|
50159
|
+
if (f) {
|
|
50160
|
+
writer.writeBool(
|
|
50161
|
+
5,
|
|
50162
|
+
f
|
|
50163
|
+
);
|
|
50164
|
+
}
|
|
50165
|
+
f = message.getLoadMass();
|
|
50166
|
+
if (f !== 0.0) {
|
|
50167
|
+
writer.writeDouble(
|
|
50168
|
+
3,
|
|
50169
|
+
f
|
|
50170
|
+
);
|
|
50171
|
+
}
|
|
50172
|
+
f = message.getTuningParamsList();
|
|
50173
|
+
if (f.length > 0) {
|
|
50174
|
+
writer.writeRepeatedMessage(
|
|
50175
|
+
4,
|
|
50176
|
+
f,
|
|
50177
|
+
proto.zaber.motion.protobufs.ServoTuningParam.serializeBinaryToWriter
|
|
50178
|
+
);
|
|
50179
|
+
}
|
|
50180
|
+
};
|
|
50181
|
+
|
|
50182
|
+
|
|
50183
|
+
/**
|
|
50184
|
+
* optional bool is_used = 1;
|
|
50185
|
+
* @return {boolean}
|
|
50186
|
+
*/
|
|
50187
|
+
proto.zaber.motion.protobufs.SimpleTuning.prototype.getIsUsed = function() {
|
|
50188
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
50189
|
+
};
|
|
50190
|
+
|
|
50191
|
+
|
|
50192
|
+
/**
|
|
50193
|
+
* @param {boolean} value
|
|
50194
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
|
|
50195
|
+
*/
|
|
50196
|
+
proto.zaber.motion.protobufs.SimpleTuning.prototype.setIsUsed = function(value) {
|
|
50197
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
50198
|
+
};
|
|
50199
|
+
|
|
50200
|
+
|
|
50201
|
+
/**
|
|
50202
|
+
* optional double carriage_mass = 2;
|
|
50203
|
+
* @return {number}
|
|
50204
|
+
*/
|
|
50205
|
+
proto.zaber.motion.protobufs.SimpleTuning.prototype.getCarriageMass = function() {
|
|
50206
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
50207
|
+
};
|
|
50208
|
+
|
|
50209
|
+
|
|
50210
|
+
/**
|
|
50211
|
+
* @param {number} value
|
|
50212
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
|
|
50213
|
+
*/
|
|
50214
|
+
proto.zaber.motion.protobufs.SimpleTuning.prototype.setCarriageMass = function(value) {
|
|
50215
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
50216
|
+
};
|
|
50217
|
+
|
|
50218
|
+
|
|
50219
|
+
/**
|
|
50220
|
+
* optional bool has_carriage_mass = 5;
|
|
50221
|
+
* @return {boolean}
|
|
50222
|
+
*/
|
|
50223
|
+
proto.zaber.motion.protobufs.SimpleTuning.prototype.getHasCarriageMass = function() {
|
|
50224
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
50225
|
+
};
|
|
50226
|
+
|
|
50227
|
+
|
|
50228
|
+
/**
|
|
50229
|
+
* @param {boolean} value
|
|
50230
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
|
|
50231
|
+
*/
|
|
50232
|
+
proto.zaber.motion.protobufs.SimpleTuning.prototype.setHasCarriageMass = function(value) {
|
|
50233
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
50234
|
+
};
|
|
50235
|
+
|
|
50236
|
+
|
|
50237
|
+
/**
|
|
50238
|
+
* optional double load_mass = 3;
|
|
50239
|
+
* @return {number}
|
|
50240
|
+
*/
|
|
50241
|
+
proto.zaber.motion.protobufs.SimpleTuning.prototype.getLoadMass = function() {
|
|
50242
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
50243
|
+
};
|
|
50244
|
+
|
|
50245
|
+
|
|
50246
|
+
/**
|
|
50247
|
+
* @param {number} value
|
|
50248
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
|
|
50249
|
+
*/
|
|
50250
|
+
proto.zaber.motion.protobufs.SimpleTuning.prototype.setLoadMass = function(value) {
|
|
50251
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
50252
|
+
};
|
|
50253
|
+
|
|
50254
|
+
|
|
50255
|
+
/**
|
|
50256
|
+
* repeated ServoTuningParam tuning_params = 4;
|
|
50257
|
+
* @return {!Array<!proto.zaber.motion.protobufs.ServoTuningParam>}
|
|
50258
|
+
*/
|
|
50259
|
+
proto.zaber.motion.protobufs.SimpleTuning.prototype.getTuningParamsList = function() {
|
|
50260
|
+
return /** @type{!Array<!proto.zaber.motion.protobufs.ServoTuningParam>} */ (
|
|
50261
|
+
jspb.Message.getRepeatedWrapperField(this, proto.zaber.motion.protobufs.ServoTuningParam, 4));
|
|
50262
|
+
};
|
|
50263
|
+
|
|
50264
|
+
|
|
50265
|
+
/**
|
|
50266
|
+
* @param {!Array<!proto.zaber.motion.protobufs.ServoTuningParam>} value
|
|
50267
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
|
|
50268
|
+
*/
|
|
50269
|
+
proto.zaber.motion.protobufs.SimpleTuning.prototype.setTuningParamsList = function(value) {
|
|
50270
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
50271
|
+
};
|
|
50272
|
+
|
|
50273
|
+
|
|
50274
|
+
/**
|
|
50275
|
+
* @param {!proto.zaber.motion.protobufs.ServoTuningParam=} opt_value
|
|
50276
|
+
* @param {number=} opt_index
|
|
50277
|
+
* @return {!proto.zaber.motion.protobufs.ServoTuningParam}
|
|
50278
|
+
*/
|
|
50279
|
+
proto.zaber.motion.protobufs.SimpleTuning.prototype.addTuningParams = function(opt_value, opt_index) {
|
|
50280
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.zaber.motion.protobufs.ServoTuningParam, opt_index);
|
|
50281
|
+
};
|
|
50282
|
+
|
|
50283
|
+
|
|
50284
|
+
/**
|
|
50285
|
+
* Clears the list making it empty but non-null.
|
|
50286
|
+
* @return {!proto.zaber.motion.protobufs.SimpleTuning} returns this
|
|
50287
|
+
*/
|
|
50288
|
+
proto.zaber.motion.protobufs.SimpleTuning.prototype.clearTuningParamsList = function() {
|
|
50289
|
+
return this.setTuningParamsList([]);
|
|
50290
|
+
};
|
|
50291
|
+
|
|
50292
|
+
|
|
50293
|
+
|
|
49992
50294
|
|
|
49993
50295
|
|
|
49994
50296
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|