@zaber/motion 2.12.0 → 2.13.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.
@@ -199,6 +199,7 @@ goog.exportSymbol('zaber.motion.protobufs.SetServoTuningPIDRequest', null, proto
199
199
  goog.exportSymbol('zaber.motion.protobufs.SetServoTuningRequest', null, proto);
200
200
  goog.exportSymbol('zaber.motion.protobufs.SetSimpleTuning', null, proto);
201
201
  goog.exportSymbol('zaber.motion.protobufs.SetStateRequest', null, proto);
202
+ goog.exportSymbol('zaber.motion.protobufs.SimpleTuningIsInUse', null, proto);
202
203
  goog.exportSymbol('zaber.motion.protobufs.SimpleTuningParam', null, proto);
203
204
  goog.exportSymbol('zaber.motion.protobufs.SimpleTuningParamList', null, proto);
204
205
  goog.exportSymbol('zaber.motion.protobufs.StartupParamset', null, proto);
@@ -4987,6 +4988,27 @@ if (goog.DEBUG && !COMPILED) {
4987
4988
  */
4988
4989
  proto.zaber.motion.protobufs.SimpleTuningParamList.displayName = 'proto.zaber.motion.protobufs.SimpleTuningParamList';
4989
4990
  }
4991
+ /**
4992
+ * Generated by JsPbCodeGenerator.
4993
+ * @param {Array=} opt_data Optional initial data array, typically from a
4994
+ * server response, or constructed directly in Javascript. The array is used
4995
+ * in place and becomes part of the constructed object. It is not cloned.
4996
+ * If no data is provided, the constructed object will be empty, but still
4997
+ * valid.
4998
+ * @extends {jspb.Message}
4999
+ * @constructor
5000
+ */
5001
+ proto.zaber.motion.protobufs.SimpleTuningIsInUse = function(opt_data) {
5002
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5003
+ };
5004
+ goog.inherits(proto.zaber.motion.protobufs.SimpleTuningIsInUse, jspb.Message);
5005
+ if (goog.DEBUG && !COMPILED) {
5006
+ /**
5007
+ * @public
5008
+ * @override
5009
+ */
5010
+ proto.zaber.motion.protobufs.SimpleTuningIsInUse.displayName = 'proto.zaber.motion.protobufs.SimpleTuningIsInUse';
5011
+ }
4990
5012
  /**
4991
5013
  * Generated by JsPbCodeGenerator.
4992
5014
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -15749,7 +15771,11 @@ proto.zaber.motion.protobufs.DeviceMoveRequest.toObject = function(includeInstan
15749
15771
  waitUntilIdle: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
15750
15772
  type: jspb.Message.getFieldWithDefault(msg, 5, 0),
15751
15773
  arg: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
15752
- unit: jspb.Message.getFieldWithDefault(msg, 7, "")
15774
+ unit: jspb.Message.getFieldWithDefault(msg, 7, ""),
15775
+ velocity: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
15776
+ velocityUnit: jspb.Message.getFieldWithDefault(msg, 9, ""),
15777
+ acceleration: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
15778
+ accelerationUnit: jspb.Message.getFieldWithDefault(msg, 11, "")
15753
15779
  };
15754
15780
 
15755
15781
  if (includeInstance) {
@@ -15814,6 +15840,22 @@ proto.zaber.motion.protobufs.DeviceMoveRequest.deserializeBinaryFromReader = fun
15814
15840
  var value = /** @type {string} */ (reader.readString());
15815
15841
  msg.setUnit(value);
15816
15842
  break;
15843
+ case 8:
15844
+ var value = /** @type {number} */ (reader.readDouble());
15845
+ msg.setVelocity(value);
15846
+ break;
15847
+ case 9:
15848
+ var value = /** @type {string} */ (reader.readString());
15849
+ msg.setVelocityUnit(value);
15850
+ break;
15851
+ case 10:
15852
+ var value = /** @type {number} */ (reader.readDouble());
15853
+ msg.setAcceleration(value);
15854
+ break;
15855
+ case 11:
15856
+ var value = /** @type {string} */ (reader.readString());
15857
+ msg.setAccelerationUnit(value);
15858
+ break;
15817
15859
  default:
15818
15860
  reader.skipField();
15819
15861
  break;
@@ -15892,6 +15934,34 @@ proto.zaber.motion.protobufs.DeviceMoveRequest.serializeBinaryToWriter = functio
15892
15934
  f
15893
15935
  );
15894
15936
  }
15937
+ f = message.getVelocity();
15938
+ if (f !== 0.0) {
15939
+ writer.writeDouble(
15940
+ 8,
15941
+ f
15942
+ );
15943
+ }
15944
+ f = message.getVelocityUnit();
15945
+ if (f.length > 0) {
15946
+ writer.writeString(
15947
+ 9,
15948
+ f
15949
+ );
15950
+ }
15951
+ f = message.getAcceleration();
15952
+ if (f !== 0.0) {
15953
+ writer.writeDouble(
15954
+ 10,
15955
+ f
15956
+ );
15957
+ }
15958
+ f = message.getAccelerationUnit();
15959
+ if (f.length > 0) {
15960
+ writer.writeString(
15961
+ 11,
15962
+ f
15963
+ );
15964
+ }
15895
15965
  };
15896
15966
 
15897
15967
 
@@ -16032,6 +16102,78 @@ proto.zaber.motion.protobufs.DeviceMoveRequest.prototype.setUnit = function(valu
16032
16102
  };
16033
16103
 
16034
16104
 
16105
+ /**
16106
+ * optional double velocity = 8;
16107
+ * @return {number}
16108
+ */
16109
+ proto.zaber.motion.protobufs.DeviceMoveRequest.prototype.getVelocity = function() {
16110
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
16111
+ };
16112
+
16113
+
16114
+ /**
16115
+ * @param {number} value
16116
+ * @return {!proto.zaber.motion.protobufs.DeviceMoveRequest} returns this
16117
+ */
16118
+ proto.zaber.motion.protobufs.DeviceMoveRequest.prototype.setVelocity = function(value) {
16119
+ return jspb.Message.setProto3FloatField(this, 8, value);
16120
+ };
16121
+
16122
+
16123
+ /**
16124
+ * optional string velocity_unit = 9;
16125
+ * @return {string}
16126
+ */
16127
+ proto.zaber.motion.protobufs.DeviceMoveRequest.prototype.getVelocityUnit = function() {
16128
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
16129
+ };
16130
+
16131
+
16132
+ /**
16133
+ * @param {string} value
16134
+ * @return {!proto.zaber.motion.protobufs.DeviceMoveRequest} returns this
16135
+ */
16136
+ proto.zaber.motion.protobufs.DeviceMoveRequest.prototype.setVelocityUnit = function(value) {
16137
+ return jspb.Message.setProto3StringField(this, 9, value);
16138
+ };
16139
+
16140
+
16141
+ /**
16142
+ * optional double acceleration = 10;
16143
+ * @return {number}
16144
+ */
16145
+ proto.zaber.motion.protobufs.DeviceMoveRequest.prototype.getAcceleration = function() {
16146
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
16147
+ };
16148
+
16149
+
16150
+ /**
16151
+ * @param {number} value
16152
+ * @return {!proto.zaber.motion.protobufs.DeviceMoveRequest} returns this
16153
+ */
16154
+ proto.zaber.motion.protobufs.DeviceMoveRequest.prototype.setAcceleration = function(value) {
16155
+ return jspb.Message.setProto3FloatField(this, 10, value);
16156
+ };
16157
+
16158
+
16159
+ /**
16160
+ * optional string acceleration_unit = 11;
16161
+ * @return {string}
16162
+ */
16163
+ proto.zaber.motion.protobufs.DeviceMoveRequest.prototype.getAccelerationUnit = function() {
16164
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
16165
+ };
16166
+
16167
+
16168
+ /**
16169
+ * @param {string} value
16170
+ * @return {!proto.zaber.motion.protobufs.DeviceMoveRequest} returns this
16171
+ */
16172
+ proto.zaber.motion.protobufs.DeviceMoveRequest.prototype.setAccelerationUnit = function(value) {
16173
+ return jspb.Message.setProto3StringField(this, 11, value);
16174
+ };
16175
+
16176
+
16035
16177
 
16036
16178
 
16037
16179
 
@@ -24116,7 +24258,11 @@ proto.zaber.motion.protobufs.LockstepMoveRequest.toObject = function(includeInst
24116
24258
  waitUntilIdle: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
24117
24259
  type: jspb.Message.getFieldWithDefault(msg, 5, 0),
24118
24260
  arg: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
24119
- unit: jspb.Message.getFieldWithDefault(msg, 8, "")
24261
+ unit: jspb.Message.getFieldWithDefault(msg, 8, ""),
24262
+ velocity: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
24263
+ velocityUnit: jspb.Message.getFieldWithDefault(msg, 10, ""),
24264
+ acceleration: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
24265
+ accelerationUnit: jspb.Message.getFieldWithDefault(msg, 12, "")
24120
24266
  };
24121
24267
 
24122
24268
  if (includeInstance) {
@@ -24181,6 +24327,22 @@ proto.zaber.motion.protobufs.LockstepMoveRequest.deserializeBinaryFromReader = f
24181
24327
  var value = /** @type {string} */ (reader.readString());
24182
24328
  msg.setUnit(value);
24183
24329
  break;
24330
+ case 9:
24331
+ var value = /** @type {number} */ (reader.readDouble());
24332
+ msg.setVelocity(value);
24333
+ break;
24334
+ case 10:
24335
+ var value = /** @type {string} */ (reader.readString());
24336
+ msg.setVelocityUnit(value);
24337
+ break;
24338
+ case 11:
24339
+ var value = /** @type {number} */ (reader.readDouble());
24340
+ msg.setAcceleration(value);
24341
+ break;
24342
+ case 12:
24343
+ var value = /** @type {string} */ (reader.readString());
24344
+ msg.setAccelerationUnit(value);
24345
+ break;
24184
24346
  default:
24185
24347
  reader.skipField();
24186
24348
  break;
@@ -24259,6 +24421,34 @@ proto.zaber.motion.protobufs.LockstepMoveRequest.serializeBinaryToWriter = funct
24259
24421
  f
24260
24422
  );
24261
24423
  }
24424
+ f = message.getVelocity();
24425
+ if (f !== 0.0) {
24426
+ writer.writeDouble(
24427
+ 9,
24428
+ f
24429
+ );
24430
+ }
24431
+ f = message.getVelocityUnit();
24432
+ if (f.length > 0) {
24433
+ writer.writeString(
24434
+ 10,
24435
+ f
24436
+ );
24437
+ }
24438
+ f = message.getAcceleration();
24439
+ if (f !== 0.0) {
24440
+ writer.writeDouble(
24441
+ 11,
24442
+ f
24443
+ );
24444
+ }
24445
+ f = message.getAccelerationUnit();
24446
+ if (f.length > 0) {
24447
+ writer.writeString(
24448
+ 12,
24449
+ f
24450
+ );
24451
+ }
24262
24452
  };
24263
24453
 
24264
24454
 
@@ -24399,6 +24589,78 @@ proto.zaber.motion.protobufs.LockstepMoveRequest.prototype.setUnit = function(va
24399
24589
  };
24400
24590
 
24401
24591
 
24592
+ /**
24593
+ * optional double velocity = 9;
24594
+ * @return {number}
24595
+ */
24596
+ proto.zaber.motion.protobufs.LockstepMoveRequest.prototype.getVelocity = function() {
24597
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
24598
+ };
24599
+
24600
+
24601
+ /**
24602
+ * @param {number} value
24603
+ * @return {!proto.zaber.motion.protobufs.LockstepMoveRequest} returns this
24604
+ */
24605
+ proto.zaber.motion.protobufs.LockstepMoveRequest.prototype.setVelocity = function(value) {
24606
+ return jspb.Message.setProto3FloatField(this, 9, value);
24607
+ };
24608
+
24609
+
24610
+ /**
24611
+ * optional string velocity_unit = 10;
24612
+ * @return {string}
24613
+ */
24614
+ proto.zaber.motion.protobufs.LockstepMoveRequest.prototype.getVelocityUnit = function() {
24615
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
24616
+ };
24617
+
24618
+
24619
+ /**
24620
+ * @param {string} value
24621
+ * @return {!proto.zaber.motion.protobufs.LockstepMoveRequest} returns this
24622
+ */
24623
+ proto.zaber.motion.protobufs.LockstepMoveRequest.prototype.setVelocityUnit = function(value) {
24624
+ return jspb.Message.setProto3StringField(this, 10, value);
24625
+ };
24626
+
24627
+
24628
+ /**
24629
+ * optional double acceleration = 11;
24630
+ * @return {number}
24631
+ */
24632
+ proto.zaber.motion.protobufs.LockstepMoveRequest.prototype.getAcceleration = function() {
24633
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
24634
+ };
24635
+
24636
+
24637
+ /**
24638
+ * @param {number} value
24639
+ * @return {!proto.zaber.motion.protobufs.LockstepMoveRequest} returns this
24640
+ */
24641
+ proto.zaber.motion.protobufs.LockstepMoveRequest.prototype.setAcceleration = function(value) {
24642
+ return jspb.Message.setProto3FloatField(this, 11, value);
24643
+ };
24644
+
24645
+
24646
+ /**
24647
+ * optional string acceleration_unit = 12;
24648
+ * @return {string}
24649
+ */
24650
+ proto.zaber.motion.protobufs.LockstepMoveRequest.prototype.getAccelerationUnit = function() {
24651
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
24652
+ };
24653
+
24654
+
24655
+ /**
24656
+ * @param {string} value
24657
+ * @return {!proto.zaber.motion.protobufs.LockstepMoveRequest} returns this
24658
+ */
24659
+ proto.zaber.motion.protobufs.LockstepMoveRequest.prototype.setAccelerationUnit = function(value) {
24660
+ return jspb.Message.setProto3StringField(this, 12, value);
24661
+ };
24662
+
24663
+
24402
24664
 
24403
24665
 
24404
24666
 
@@ -49843,6 +50105,136 @@ proto.zaber.motion.protobufs.SimpleTuningParamList.prototype.clearParamsList = f
49843
50105
 
49844
50106
 
49845
50107
 
50108
+ if (jspb.Message.GENERATE_TO_OBJECT) {
50109
+ /**
50110
+ * Creates an object representation of this proto.
50111
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
50112
+ * Optional fields that are not set will be set to undefined.
50113
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
50114
+ * For the list of reserved names please see:
50115
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
50116
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
50117
+ * JSPB instance for transitional soy proto support:
50118
+ * http://goto/soy-param-migration
50119
+ * @return {!Object}
50120
+ */
50121
+ proto.zaber.motion.protobufs.SimpleTuningIsInUse.prototype.toObject = function(opt_includeInstance) {
50122
+ return proto.zaber.motion.protobufs.SimpleTuningIsInUse.toObject(opt_includeInstance, this);
50123
+ };
50124
+
50125
+
50126
+ /**
50127
+ * Static version of the {@see toObject} method.
50128
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
50129
+ * the JSPB instance for transitional soy proto support:
50130
+ * http://goto/soy-param-migration
50131
+ * @param {!proto.zaber.motion.protobufs.SimpleTuningIsInUse} msg The msg instance to transform.
50132
+ * @return {!Object}
50133
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50134
+ */
50135
+ proto.zaber.motion.protobufs.SimpleTuningIsInUse.toObject = function(includeInstance, msg) {
50136
+ var f, obj = {
50137
+ value: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
50138
+ };
50139
+
50140
+ if (includeInstance) {
50141
+ obj.$jspbMessageInstance = msg;
50142
+ }
50143
+ return obj;
50144
+ };
50145
+ }
50146
+
50147
+
50148
+ /**
50149
+ * Deserializes binary data (in protobuf wire format).
50150
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
50151
+ * @return {!proto.zaber.motion.protobufs.SimpleTuningIsInUse}
50152
+ */
50153
+ proto.zaber.motion.protobufs.SimpleTuningIsInUse.deserializeBinary = function(bytes) {
50154
+ var reader = new jspb.BinaryReader(bytes);
50155
+ var msg = new proto.zaber.motion.protobufs.SimpleTuningIsInUse;
50156
+ return proto.zaber.motion.protobufs.SimpleTuningIsInUse.deserializeBinaryFromReader(msg, reader);
50157
+ };
50158
+
50159
+
50160
+ /**
50161
+ * Deserializes binary data (in protobuf wire format) from the
50162
+ * given reader into the given message object.
50163
+ * @param {!proto.zaber.motion.protobufs.SimpleTuningIsInUse} msg The message object to deserialize into.
50164
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
50165
+ * @return {!proto.zaber.motion.protobufs.SimpleTuningIsInUse}
50166
+ */
50167
+ proto.zaber.motion.protobufs.SimpleTuningIsInUse.deserializeBinaryFromReader = function(msg, reader) {
50168
+ while (reader.nextField()) {
50169
+ if (reader.isEndGroup()) {
50170
+ break;
50171
+ }
50172
+ var field = reader.getFieldNumber();
50173
+ switch (field) {
50174
+ case 1:
50175
+ var value = /** @type {boolean} */ (reader.readBool());
50176
+ msg.setValue(value);
50177
+ break;
50178
+ default:
50179
+ reader.skipField();
50180
+ break;
50181
+ }
50182
+ }
50183
+ return msg;
50184
+ };
50185
+
50186
+
50187
+ /**
50188
+ * Serializes the message to binary data (in protobuf wire format).
50189
+ * @return {!Uint8Array}
50190
+ */
50191
+ proto.zaber.motion.protobufs.SimpleTuningIsInUse.prototype.serializeBinary = function() {
50192
+ var writer = new jspb.BinaryWriter();
50193
+ proto.zaber.motion.protobufs.SimpleTuningIsInUse.serializeBinaryToWriter(this, writer);
50194
+ return writer.getResultBuffer();
50195
+ };
50196
+
50197
+
50198
+ /**
50199
+ * Serializes the given message to binary data (in protobuf wire
50200
+ * format), writing to the given BinaryWriter.
50201
+ * @param {!proto.zaber.motion.protobufs.SimpleTuningIsInUse} message
50202
+ * @param {!jspb.BinaryWriter} writer
50203
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50204
+ */
50205
+ proto.zaber.motion.protobufs.SimpleTuningIsInUse.serializeBinaryToWriter = function(message, writer) {
50206
+ var f = undefined;
50207
+ f = message.getValue();
50208
+ if (f) {
50209
+ writer.writeBool(
50210
+ 1,
50211
+ f
50212
+ );
50213
+ }
50214
+ };
50215
+
50216
+
50217
+ /**
50218
+ * optional bool value = 1;
50219
+ * @return {boolean}
50220
+ */
50221
+ proto.zaber.motion.protobufs.SimpleTuningIsInUse.prototype.getValue = function() {
50222
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
50223
+ };
50224
+
50225
+
50226
+ /**
50227
+ * @param {boolean} value
50228
+ * @return {!proto.zaber.motion.protobufs.SimpleTuningIsInUse} returns this
50229
+ */
50230
+ proto.zaber.motion.protobufs.SimpleTuningIsInUse.prototype.setValue = function(value) {
50231
+ return jspb.Message.setProto3BooleanField(this, 1, value);
50232
+ };
50233
+
50234
+
50235
+
50236
+
50237
+
49846
50238
  if (jspb.Message.GENERATE_TO_OBJECT) {
49847
50239
  /**
49848
50240
  * Creates an object representation of this proto.