@zaber/motion 9.0.1 → 9.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.
Files changed (189) hide show
  1. package/LICENSE +2 -81
  2. package/dist/binding/wasm/zaber-motion-core.wasm +0 -0
  3. package/dist/lib/ascii/setting_constants.d.ts +12 -0
  4. package/dist/lib/ascii/setting_constants.d.ts.map +1 -1
  5. package/dist/lib/ascii/setting_constants.js +12 -0
  6. package/dist/lib/ascii/setting_constants.js.map +1 -1
  7. package/dist/lib/ascii/simple_tuning.d.ts +4 -0
  8. package/dist/lib/ascii/simple_tuning.d.ts.map +1 -1
  9. package/dist/lib/ascii/simple_tuning.js +5 -1
  10. package/dist/lib/ascii/simple_tuning.js.map +1 -1
  11. package/dist/lib/exceptions/{ge_1_gripper_movement_failed_exception.d.ts → ge_1_x_gripper_movement_failed_exception.d.ts} +2 -2
  12. package/dist/lib/exceptions/ge_1_x_gripper_movement_failed_exception.d.ts.map +1 -0
  13. package/dist/lib/exceptions/{ge_1_gripper_movement_failed_exception.js → ge_1_x_gripper_movement_failed_exception.js} +5 -5
  14. package/dist/lib/exceptions/ge_1_x_gripper_movement_failed_exception.js.map +1 -0
  15. package/dist/lib/exceptions/index.d.ts +1 -1
  16. package/dist/lib/exceptions/index.d.ts.map +1 -1
  17. package/dist/lib/exceptions/index.js +1 -1
  18. package/dist/lib/exceptions/index.js.map +1 -1
  19. package/dist/lib/gateway/constants.js +1 -1
  20. package/dist/lib/gateway/constants.js.map +1 -1
  21. package/dist/lib/gateway/convert_exceptions.js +1 -1
  22. package/dist/lib/gateway/convert_exceptions.js.map +1 -1
  23. package/dist/lib/product/{ge_1_gripper.d.ts → ge_1_x_gripper.d.ts} +24 -24
  24. package/dist/lib/product/ge_1_x_gripper.d.ts.map +1 -0
  25. package/dist/lib/product/{ge_1_gripper.js → ge_1_x_gripper.js} +99 -99
  26. package/dist/lib/product/ge_1_x_gripper.js.map +1 -0
  27. package/dist/lib/product/{ge_1_gripper_direction.d.ts → ge_1_x_gripper_direction.d.ts} +4 -4
  28. package/dist/lib/product/ge_1_x_gripper_direction.d.ts.map +1 -0
  29. package/dist/lib/product/ge_1_x_gripper_direction.js +24 -0
  30. package/dist/lib/product/ge_1_x_gripper_direction.js.map +1 -0
  31. package/dist/lib/product/{ge_1_gripper_error.d.ts → ge_1_x_gripper_error.d.ts} +4 -4
  32. package/dist/lib/product/ge_1_x_gripper_error.d.ts.map +1 -0
  33. package/dist/lib/product/ge_1_x_gripper_error.js +46 -0
  34. package/dist/lib/product/ge_1_x_gripper_error.js.map +1 -0
  35. package/dist/lib/product/{ge_1_gripper_state.d.ts → ge_1_x_gripper_state.d.ts} +4 -4
  36. package/dist/lib/product/ge_1_x_gripper_state.d.ts.map +1 -0
  37. package/dist/lib/product/ge_1_x_gripper_state.js +32 -0
  38. package/dist/lib/product/ge_1_x_gripper_state.js.map +1 -0
  39. package/dist/lib/product/index.d.ts +4 -4
  40. package/dist/lib/product/index.d.ts.map +1 -1
  41. package/dist/lib/product/index.js +4 -4
  42. package/dist/lib/product/index.js.map +1 -1
  43. package/dist/lib/requests/errors.d.ts +2 -2
  44. package/dist/lib/requests/errors.d.ts.map +1 -1
  45. package/dist/lib/requests/errors.js +2 -2
  46. package/dist/lib/requests/errors.js.map +1 -1
  47. package/dist/lib/requests/ge_1_x_gripper_activate_preset_request.d.ts +15 -0
  48. package/dist/lib/requests/ge_1_x_gripper_activate_preset_request.d.ts.map +1 -0
  49. package/dist/lib/requests/{ge_1_gripper_activate_preset_request.js → ge_1_x_gripper_activate_preset_request.js} +7 -7
  50. package/dist/lib/requests/ge_1_x_gripper_activate_preset_request.js.map +1 -0
  51. package/dist/lib/requests/ge_1_x_gripper_calibrate_request.d.ts +14 -0
  52. package/dist/lib/requests/ge_1_x_gripper_calibrate_request.d.ts.map +1 -0
  53. package/dist/lib/requests/{ge_1_gripper_calibrate_request.js → ge_1_x_gripper_calibrate_request.js} +7 -7
  54. package/dist/lib/requests/ge_1_x_gripper_calibrate_request.js.map +1 -0
  55. package/dist/lib/requests/ge_1_x_gripper_empty_request.d.ts +13 -0
  56. package/dist/lib/requests/ge_1_x_gripper_empty_request.d.ts.map +1 -0
  57. package/dist/lib/requests/{ge_1_gripper_empty_request.js → ge_1_x_gripper_empty_request.js} +7 -7
  58. package/dist/lib/requests/ge_1_x_gripper_empty_request.js.map +1 -0
  59. package/dist/lib/requests/ge_1_x_gripper_get_error_response.d.ts +14 -0
  60. package/dist/lib/requests/ge_1_x_gripper_get_error_response.d.ts.map +1 -0
  61. package/dist/lib/requests/ge_1_x_gripper_get_error_response.js +36 -0
  62. package/dist/lib/requests/ge_1_x_gripper_get_error_response.js.map +1 -0
  63. package/dist/lib/requests/ge_1_x_gripper_get_state_response.d.ts +14 -0
  64. package/dist/lib/requests/ge_1_x_gripper_get_state_response.d.ts.map +1 -0
  65. package/dist/lib/requests/ge_1_x_gripper_get_state_response.js +36 -0
  66. package/dist/lib/requests/ge_1_x_gripper_get_state_response.js.map +1 -0
  67. package/dist/lib/requests/ge_1_x_gripper_move_request.d.ts +15 -0
  68. package/dist/lib/requests/ge_1_x_gripper_move_request.d.ts.map +1 -0
  69. package/dist/lib/requests/{ge_1_gripper_move_request.js → ge_1_x_gripper_move_request.js} +7 -7
  70. package/dist/lib/requests/ge_1_x_gripper_move_request.js.map +1 -0
  71. package/dist/lib/requests/ge_1_x_gripper_open_connection_request.d.ts +15 -0
  72. package/dist/lib/requests/ge_1_x_gripper_open_connection_request.d.ts.map +1 -0
  73. package/dist/lib/requests/{ge_1_gripper_open_connection_request.js → ge_1_x_gripper_open_connection_request.js} +7 -7
  74. package/dist/lib/requests/ge_1_x_gripper_open_connection_request.js.map +1 -0
  75. package/dist/lib/requests/ge_1_x_gripper_read_register_request.d.ts +14 -0
  76. package/dist/lib/requests/ge_1_x_gripper_read_register_request.d.ts.map +1 -0
  77. package/dist/lib/requests/{ge_1_gripper_read_register_request.js → ge_1_x_gripper_read_register_request.js} +7 -7
  78. package/dist/lib/requests/ge_1_x_gripper_read_register_request.js.map +1 -0
  79. package/dist/lib/requests/ge_1_x_gripper_set_auto_home_request.d.ts +15 -0
  80. package/dist/lib/requests/ge_1_x_gripper_set_auto_home_request.d.ts.map +1 -0
  81. package/dist/lib/requests/{ge_1_gripper_set_io_enabled_request.js → ge_1_x_gripper_set_auto_home_request.js} +7 -7
  82. package/dist/lib/requests/ge_1_x_gripper_set_auto_home_request.js.map +1 -0
  83. package/dist/lib/requests/ge_1_x_gripper_set_force_request.d.ts +14 -0
  84. package/dist/lib/requests/ge_1_x_gripper_set_force_request.d.ts.map +1 -0
  85. package/dist/lib/requests/{ge_1_gripper_set_force_request.js → ge_1_x_gripper_set_force_request.js} +7 -7
  86. package/dist/lib/requests/ge_1_x_gripper_set_force_request.js.map +1 -0
  87. package/dist/lib/requests/ge_1_x_gripper_set_home_direction_request.d.ts +16 -0
  88. package/dist/lib/requests/ge_1_x_gripper_set_home_direction_request.d.ts.map +1 -0
  89. package/dist/lib/requests/{ge_1_gripper_set_home_direction_request.js → ge_1_x_gripper_set_home_direction_request.js} +10 -10
  90. package/dist/lib/requests/ge_1_x_gripper_set_home_direction_request.js.map +1 -0
  91. package/dist/lib/requests/ge_1_x_gripper_set_io_enabled_request.d.ts +15 -0
  92. package/dist/lib/requests/ge_1_x_gripper_set_io_enabled_request.d.ts.map +1 -0
  93. package/dist/lib/requests/{ge_1_gripper_set_auto_home_request.js → ge_1_x_gripper_set_io_enabled_request.js} +7 -7
  94. package/dist/lib/requests/ge_1_x_gripper_set_io_enabled_request.js.map +1 -0
  95. package/dist/lib/requests/ge_1_x_gripper_set_io_input_filter_request.d.ts +15 -0
  96. package/dist/lib/requests/ge_1_x_gripper_set_io_input_filter_request.d.ts.map +1 -0
  97. package/dist/lib/requests/{ge_1_gripper_set_io_input_filter_request.js → ge_1_x_gripper_set_io_input_filter_request.js} +7 -7
  98. package/dist/lib/requests/ge_1_x_gripper_set_io_input_filter_request.js.map +1 -0
  99. package/dist/lib/requests/ge_1_x_gripper_set_preset_request.d.ts +18 -0
  100. package/dist/lib/requests/ge_1_x_gripper_set_preset_request.d.ts.map +1 -0
  101. package/dist/lib/requests/{ge_1_gripper_set_preset_request.js → ge_1_x_gripper_set_preset_request.js} +7 -7
  102. package/dist/lib/requests/ge_1_x_gripper_set_preset_request.js.map +1 -0
  103. package/dist/lib/requests/ge_1_x_gripper_set_speed_request.d.ts +14 -0
  104. package/dist/lib/requests/ge_1_x_gripper_set_speed_request.d.ts.map +1 -0
  105. package/dist/lib/requests/{ge_1_gripper_set_speed_request.js → ge_1_x_gripper_set_speed_request.js} +7 -7
  106. package/dist/lib/requests/ge_1_x_gripper_set_speed_request.js.map +1 -0
  107. package/dist/lib/requests/ge_1_x_gripper_wait_until_idle_request.d.ts +14 -0
  108. package/dist/lib/requests/ge_1_x_gripper_wait_until_idle_request.d.ts.map +1 -0
  109. package/dist/lib/requests/{ge_1_gripper_wait_until_idle_request.js → ge_1_x_gripper_wait_until_idle_request.js} +7 -7
  110. package/dist/lib/requests/ge_1_x_gripper_wait_until_idle_request.js.map +1 -0
  111. package/dist/lib/requests/ge_1_x_gripper_write_register_request.d.ts +15 -0
  112. package/dist/lib/requests/ge_1_x_gripper_write_register_request.d.ts.map +1 -0
  113. package/dist/lib/requests/{ge_1_gripper_write_register_request.js → ge_1_x_gripper_write_register_request.js} +7 -7
  114. package/dist/lib/requests/ge_1_x_gripper_write_register_request.js.map +1 -0
  115. package/dist/lib/requests/index.d.ts +17 -17
  116. package/dist/lib/requests/index.d.ts.map +1 -1
  117. package/dist/lib/requests/index.js +17 -17
  118. package/dist/lib/requests/index.js.map +1 -1
  119. package/dist/lib/requests/test_request_complex.d.ts +2 -0
  120. package/dist/lib/requests/test_request_complex.d.ts.map +1 -1
  121. package/dist/lib/requests/test_request_complex.js +13 -2
  122. package/dist/lib/requests/test_request_complex.js.map +1 -1
  123. package/package.json +1 -1
  124. package/dist/lib/exceptions/ge_1_gripper_movement_failed_exception.d.ts.map +0 -1
  125. package/dist/lib/exceptions/ge_1_gripper_movement_failed_exception.js.map +0 -1
  126. package/dist/lib/product/ge_1_gripper.d.ts.map +0 -1
  127. package/dist/lib/product/ge_1_gripper.js.map +0 -1
  128. package/dist/lib/product/ge_1_gripper_direction.d.ts.map +0 -1
  129. package/dist/lib/product/ge_1_gripper_direction.js +0 -24
  130. package/dist/lib/product/ge_1_gripper_direction.js.map +0 -1
  131. package/dist/lib/product/ge_1_gripper_error.d.ts.map +0 -1
  132. package/dist/lib/product/ge_1_gripper_error.js +0 -46
  133. package/dist/lib/product/ge_1_gripper_error.js.map +0 -1
  134. package/dist/lib/product/ge_1_gripper_state.d.ts.map +0 -1
  135. package/dist/lib/product/ge_1_gripper_state.js +0 -32
  136. package/dist/lib/product/ge_1_gripper_state.js.map +0 -1
  137. package/dist/lib/requests/ge_1_gripper_activate_preset_request.d.ts +0 -15
  138. package/dist/lib/requests/ge_1_gripper_activate_preset_request.d.ts.map +0 -1
  139. package/dist/lib/requests/ge_1_gripper_activate_preset_request.js.map +0 -1
  140. package/dist/lib/requests/ge_1_gripper_calibrate_request.d.ts +0 -14
  141. package/dist/lib/requests/ge_1_gripper_calibrate_request.d.ts.map +0 -1
  142. package/dist/lib/requests/ge_1_gripper_calibrate_request.js.map +0 -1
  143. package/dist/lib/requests/ge_1_gripper_empty_request.d.ts +0 -13
  144. package/dist/lib/requests/ge_1_gripper_empty_request.d.ts.map +0 -1
  145. package/dist/lib/requests/ge_1_gripper_empty_request.js.map +0 -1
  146. package/dist/lib/requests/ge_1_gripper_get_error_response.d.ts +0 -14
  147. package/dist/lib/requests/ge_1_gripper_get_error_response.d.ts.map +0 -1
  148. package/dist/lib/requests/ge_1_gripper_get_error_response.js +0 -36
  149. package/dist/lib/requests/ge_1_gripper_get_error_response.js.map +0 -1
  150. package/dist/lib/requests/ge_1_gripper_get_state_response.d.ts +0 -14
  151. package/dist/lib/requests/ge_1_gripper_get_state_response.d.ts.map +0 -1
  152. package/dist/lib/requests/ge_1_gripper_get_state_response.js +0 -36
  153. package/dist/lib/requests/ge_1_gripper_get_state_response.js.map +0 -1
  154. package/dist/lib/requests/ge_1_gripper_move_request.d.ts +0 -15
  155. package/dist/lib/requests/ge_1_gripper_move_request.d.ts.map +0 -1
  156. package/dist/lib/requests/ge_1_gripper_move_request.js.map +0 -1
  157. package/dist/lib/requests/ge_1_gripper_open_connection_request.d.ts +0 -15
  158. package/dist/lib/requests/ge_1_gripper_open_connection_request.d.ts.map +0 -1
  159. package/dist/lib/requests/ge_1_gripper_open_connection_request.js.map +0 -1
  160. package/dist/lib/requests/ge_1_gripper_read_register_request.d.ts +0 -14
  161. package/dist/lib/requests/ge_1_gripper_read_register_request.d.ts.map +0 -1
  162. package/dist/lib/requests/ge_1_gripper_read_register_request.js.map +0 -1
  163. package/dist/lib/requests/ge_1_gripper_set_auto_home_request.d.ts +0 -15
  164. package/dist/lib/requests/ge_1_gripper_set_auto_home_request.d.ts.map +0 -1
  165. package/dist/lib/requests/ge_1_gripper_set_auto_home_request.js.map +0 -1
  166. package/dist/lib/requests/ge_1_gripper_set_force_request.d.ts +0 -14
  167. package/dist/lib/requests/ge_1_gripper_set_force_request.d.ts.map +0 -1
  168. package/dist/lib/requests/ge_1_gripper_set_force_request.js.map +0 -1
  169. package/dist/lib/requests/ge_1_gripper_set_home_direction_request.d.ts +0 -16
  170. package/dist/lib/requests/ge_1_gripper_set_home_direction_request.d.ts.map +0 -1
  171. package/dist/lib/requests/ge_1_gripper_set_home_direction_request.js.map +0 -1
  172. package/dist/lib/requests/ge_1_gripper_set_io_enabled_request.d.ts +0 -15
  173. package/dist/lib/requests/ge_1_gripper_set_io_enabled_request.d.ts.map +0 -1
  174. package/dist/lib/requests/ge_1_gripper_set_io_enabled_request.js.map +0 -1
  175. package/dist/lib/requests/ge_1_gripper_set_io_input_filter_request.d.ts +0 -15
  176. package/dist/lib/requests/ge_1_gripper_set_io_input_filter_request.d.ts.map +0 -1
  177. package/dist/lib/requests/ge_1_gripper_set_io_input_filter_request.js.map +0 -1
  178. package/dist/lib/requests/ge_1_gripper_set_preset_request.d.ts +0 -18
  179. package/dist/lib/requests/ge_1_gripper_set_preset_request.d.ts.map +0 -1
  180. package/dist/lib/requests/ge_1_gripper_set_preset_request.js.map +0 -1
  181. package/dist/lib/requests/ge_1_gripper_set_speed_request.d.ts +0 -14
  182. package/dist/lib/requests/ge_1_gripper_set_speed_request.d.ts.map +0 -1
  183. package/dist/lib/requests/ge_1_gripper_set_speed_request.js.map +0 -1
  184. package/dist/lib/requests/ge_1_gripper_wait_until_idle_request.d.ts +0 -14
  185. package/dist/lib/requests/ge_1_gripper_wait_until_idle_request.d.ts.map +0 -1
  186. package/dist/lib/requests/ge_1_gripper_wait_until_idle_request.js.map +0 -1
  187. package/dist/lib/requests/ge_1_gripper_write_register_request.d.ts +0 -15
  188. package/dist/lib/requests/ge_1_gripper_write_register_request.d.ts.map +0 -1
  189. package/dist/lib/requests/ge_1_gripper_write_register_request.js.map +0 -1
@@ -25,14 +25,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  return result;
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.GE1Gripper = void 0;
28
+ exports.Ge1xGripper = void 0;
29
29
  const gateway = __importStar(require("../gateway"));
30
30
  const requests = __importStar(require("../requests"));
31
31
  const finalizer_1 = require("../finalizer");
32
32
  /**
33
33
  * Class representing a gripper in the GE1x series.
34
34
  */
35
- class GE1Gripper {
35
+ class Ge1xGripper {
36
36
  /**
37
37
  * The identifier for the connection.
38
38
  */
@@ -41,41 +41,41 @@ class GE1Gripper {
41
41
  }
42
42
  constructor(connectionId) {
43
43
  this._connectionId = connectionId;
44
- (0, finalizer_1.registerForFinalization)(this, GE1Gripper._free.bind(null, connectionId));
44
+ (0, finalizer_1.registerForFinalization)(this, Ge1xGripper._free.bind(null, connectionId));
45
45
  }
46
46
  /**
47
47
  * Opens a serial connection to a gripper.
48
48
  * @param portName The name of the serial port to connect to.
49
- * @param [options.deviceAddress=GE1Gripper.DEFAULT_DEVICE_ADDRESS] The address of the gripper to connect to.
49
+ * @param [options.deviceAddress=Ge1xGripper.DEFAULT_DEVICE_ADDRESS] The address of the gripper to connect to.
50
50
  * @param [options.timeout=500] The timeout in milliseconds for any request sent using this connection.
51
- * @returns A GE1Gripper instance representing the connection to the gripper.
51
+ * @returns A Ge1xGripper instance representing the connection to the gripper.
52
52
  */
53
53
  static async openConnection(portName, options = {}) {
54
- const { deviceAddress = GE1Gripper.DEFAULT_DEVICE_ADDRESS, timeout = 500, } = options;
54
+ const { deviceAddress = Ge1xGripper.DEFAULT_DEVICE_ADDRESS, timeout = 500, } = options;
55
55
  const request = {
56
- ...requests.Ge1GripperOpenConnectionRequest.DEFAULT,
56
+ ...requests.Ge1xGripperOpenConnectionRequest.DEFAULT,
57
57
  portName: portName,
58
58
  deviceAddress: deviceAddress,
59
59
  timeout: timeout,
60
60
  toBinary() {
61
- return requests.Ge1GripperOpenConnectionRequest.toBinary(this);
61
+ return requests.Ge1xGripperOpenConnectionRequest.toBinary(this);
62
62
  },
63
63
  };
64
- const response = await gateway.callAsync('ge1_gripper/open_connection', request, requests.IntResponse.fromBinary);
65
- return new GE1Gripper(response.value);
64
+ const response = await gateway.callAsync('ge1x_gripper/open_connection', request, requests.IntResponse.fromBinary);
65
+ return new Ge1xGripper(response.value);
66
66
  }
67
67
  /**
68
68
  * Closes the connection to the gripper.
69
69
  */
70
70
  async close() {
71
71
  const request = {
72
- ...requests.Ge1GripperEmptyRequest.DEFAULT,
72
+ ...requests.Ge1xGripperEmptyRequest.DEFAULT,
73
73
  connectionId: this.connectionId,
74
74
  toBinary() {
75
- return requests.Ge1GripperEmptyRequest.toBinary(this);
75
+ return requests.Ge1xGripperEmptyRequest.toBinary(this);
76
76
  },
77
77
  };
78
- await gateway.callAsync('ge1_gripper/close_connection', request);
78
+ await gateway.callAsync('ge1x_gripper/close_connection', request);
79
79
  }
80
80
  /**
81
81
  * Reads a single register value from the gripper.
@@ -84,14 +84,14 @@ class GE1Gripper {
84
84
  */
85
85
  async readRegister(registerAddress) {
86
86
  const request = {
87
- ...requests.Ge1GripperReadRegisterRequest.DEFAULT,
87
+ ...requests.Ge1xGripperReadRegisterRequest.DEFAULT,
88
88
  connectionId: this.connectionId,
89
89
  registerAddress: registerAddress,
90
90
  toBinary() {
91
- return requests.Ge1GripperReadRegisterRequest.toBinary(this);
91
+ return requests.Ge1xGripperReadRegisterRequest.toBinary(this);
92
92
  },
93
93
  };
94
- const response = await gateway.callAsync('ge1_gripper/read_register', request, requests.IntResponse.fromBinary);
94
+ const response = await gateway.callAsync('ge1x_gripper/read_register', request, requests.IntResponse.fromBinary);
95
95
  return response.value;
96
96
  }
97
97
  /**
@@ -101,15 +101,15 @@ class GE1Gripper {
101
101
  */
102
102
  async writeRegister(registerAddress, data) {
103
103
  const request = {
104
- ...requests.Ge1GripperWriteRegisterRequest.DEFAULT,
104
+ ...requests.Ge1xGripperWriteRegisterRequest.DEFAULT,
105
105
  connectionId: this.connectionId,
106
106
  registerAddress: registerAddress,
107
107
  data: data,
108
108
  toBinary() {
109
- return requests.Ge1GripperWriteRegisterRequest.toBinary(this);
109
+ return requests.Ge1xGripperWriteRegisterRequest.toBinary(this);
110
110
  },
111
111
  };
112
- await gateway.callAsync('ge1_gripper/write_register', request);
112
+ await gateway.callAsync('ge1x_gripper/write_register', request);
113
113
  }
114
114
  /**
115
115
  * Homes gripper by moving it to its homing position.
@@ -118,27 +118,27 @@ class GE1Gripper {
118
118
  async home(options = {}) {
119
119
  const { waitUntilIdle = true, } = options;
120
120
  const request = {
121
- ...requests.Ge1GripperWaitUntilIdleRequest.DEFAULT,
121
+ ...requests.Ge1xGripperWaitUntilIdleRequest.DEFAULT,
122
122
  connectionId: this.connectionId,
123
123
  waitUntilIdle: waitUntilIdle,
124
124
  toBinary() {
125
- return requests.Ge1GripperWaitUntilIdleRequest.toBinary(this);
125
+ return requests.Ge1xGripperWaitUntilIdleRequest.toBinary(this);
126
126
  },
127
127
  };
128
- await gateway.callAsync('ge1_gripper/home', request);
128
+ await gateway.callAsync('ge1x_gripper/home', request);
129
129
  }
130
130
  /**
131
131
  * Waits until the gripper has stopped moving.
132
132
  */
133
133
  async waitUntilIdle() {
134
134
  const request = {
135
- ...requests.Ge1GripperEmptyRequest.DEFAULT,
135
+ ...requests.Ge1xGripperEmptyRequest.DEFAULT,
136
136
  connectionId: this.connectionId,
137
137
  toBinary() {
138
- return requests.Ge1GripperEmptyRequest.toBinary(this);
138
+ return requests.Ge1xGripperEmptyRequest.toBinary(this);
139
139
  },
140
140
  };
141
- await gateway.callAsync('ge1_gripper/wait_until_idle', request);
141
+ await gateway.callAsync('ge1x_gripper/wait_until_idle', request);
142
142
  }
143
143
  /**
144
144
  * Moves the gripper to a specified position.
@@ -148,15 +148,15 @@ class GE1Gripper {
148
148
  async move(position, options = {}) {
149
149
  const { waitUntilIdle = true, } = options;
150
150
  const request = {
151
- ...requests.Ge1GripperMoveRequest.DEFAULT,
151
+ ...requests.Ge1xGripperMoveRequest.DEFAULT,
152
152
  connectionId: this.connectionId,
153
153
  position: position,
154
154
  waitUntilIdle: waitUntilIdle,
155
155
  toBinary() {
156
- return requests.Ge1GripperMoveRequest.toBinary(this);
156
+ return requests.Ge1xGripperMoveRequest.toBinary(this);
157
157
  },
158
158
  };
159
- await gateway.callAsync('ge1_gripper/move', request);
159
+ await gateway.callAsync('ge1x_gripper/move', request);
160
160
  }
161
161
  /**
162
162
  * Moves the gripper to the open position.
@@ -165,15 +165,15 @@ class GE1Gripper {
165
165
  async moveOpen(options = {}) {
166
166
  const { waitUntilIdle = true, } = options;
167
167
  const request = {
168
- ...requests.Ge1GripperMoveRequest.DEFAULT,
168
+ ...requests.Ge1xGripperMoveRequest.DEFAULT,
169
169
  connectionId: this.connectionId,
170
170
  position: 100,
171
171
  waitUntilIdle: waitUntilIdle,
172
172
  toBinary() {
173
- return requests.Ge1GripperMoveRequest.toBinary(this);
173
+ return requests.Ge1xGripperMoveRequest.toBinary(this);
174
174
  },
175
175
  };
176
- await gateway.callAsync('ge1_gripper/move', request);
176
+ await gateway.callAsync('ge1x_gripper/move', request);
177
177
  }
178
178
  /**
179
179
  * Moves the gripper to the closed position.
@@ -182,15 +182,15 @@ class GE1Gripper {
182
182
  async moveClose(options = {}) {
183
183
  const { waitUntilIdle = true, } = options;
184
184
  const request = {
185
- ...requests.Ge1GripperMoveRequest.DEFAULT,
185
+ ...requests.Ge1xGripperMoveRequest.DEFAULT,
186
186
  connectionId: this.connectionId,
187
187
  position: 0,
188
188
  waitUntilIdle: waitUntilIdle,
189
189
  toBinary() {
190
- return requests.Ge1GripperMoveRequest.toBinary(this);
190
+ return requests.Ge1xGripperMoveRequest.toBinary(this);
191
191
  },
192
192
  };
193
- await gateway.callAsync('ge1_gripper/move', request);
193
+ await gateway.callAsync('ge1x_gripper/move', request);
194
194
  }
195
195
  /**
196
196
  * Stops the gripper from moving.
@@ -199,14 +199,14 @@ class GE1Gripper {
199
199
  async stop(options = {}) {
200
200
  const { waitUntilIdle = true, } = options;
201
201
  const request = {
202
- ...requests.Ge1GripperWaitUntilIdleRequest.DEFAULT,
202
+ ...requests.Ge1xGripperWaitUntilIdleRequest.DEFAULT,
203
203
  connectionId: this.connectionId,
204
204
  waitUntilIdle: waitUntilIdle,
205
205
  toBinary() {
206
- return requests.Ge1GripperWaitUntilIdleRequest.toBinary(this);
206
+ return requests.Ge1xGripperWaitUntilIdleRequest.toBinary(this);
207
207
  },
208
208
  };
209
- await gateway.callAsync('ge1_gripper/stop', request);
209
+ await gateway.callAsync('ge1x_gripper/stop', request);
210
210
  }
211
211
  /**
212
212
  * Sets the gripping force of the gripper.
@@ -214,14 +214,14 @@ class GE1Gripper {
214
214
  */
215
215
  async setForce(force) {
216
216
  const request = {
217
- ...requests.Ge1GripperSetForceRequest.DEFAULT,
217
+ ...requests.Ge1xGripperSetForceRequest.DEFAULT,
218
218
  connectionId: this.connectionId,
219
219
  force: force,
220
220
  toBinary() {
221
- return requests.Ge1GripperSetForceRequest.toBinary(this);
221
+ return requests.Ge1xGripperSetForceRequest.toBinary(this);
222
222
  },
223
223
  };
224
- await gateway.callAsync('ge1_gripper/set_force', request);
224
+ await gateway.callAsync('ge1x_gripper/set_force', request);
225
225
  }
226
226
  /**
227
227
  * Sets the maximum speed of the gripper.
@@ -229,40 +229,40 @@ class GE1Gripper {
229
229
  */
230
230
  async setSpeed(speed) {
231
231
  const request = {
232
- ...requests.Ge1GripperSetSpeedRequest.DEFAULT,
232
+ ...requests.Ge1xGripperSetSpeedRequest.DEFAULT,
233
233
  connectionId: this.connectionId,
234
234
  speed: speed,
235
235
  toBinary() {
236
- return requests.Ge1GripperSetSpeedRequest.toBinary(this);
236
+ return requests.Ge1xGripperSetSpeedRequest.toBinary(this);
237
237
  },
238
238
  };
239
- await gateway.callAsync('ge1_gripper/set_speed', request);
239
+ await gateway.callAsync('ge1x_gripper/set_speed', request);
240
240
  }
241
241
  /**
242
242
  * Enables the gripper driver.
243
243
  */
244
244
  async driverEnable() {
245
245
  const request = {
246
- ...requests.Ge1GripperEmptyRequest.DEFAULT,
246
+ ...requests.Ge1xGripperEmptyRequest.DEFAULT,
247
247
  connectionId: this.connectionId,
248
248
  toBinary() {
249
- return requests.Ge1GripperEmptyRequest.toBinary(this);
249
+ return requests.Ge1xGripperEmptyRequest.toBinary(this);
250
250
  },
251
251
  };
252
- await gateway.callAsync('ge1_gripper/driver_enable', request);
252
+ await gateway.callAsync('ge1x_gripper/driver_enable', request);
253
253
  }
254
254
  /**
255
255
  * Disables the gripper driver.
256
256
  */
257
257
  async driverDisable() {
258
258
  const request = {
259
- ...requests.Ge1GripperEmptyRequest.DEFAULT,
259
+ ...requests.Ge1xGripperEmptyRequest.DEFAULT,
260
260
  connectionId: this.connectionId,
261
261
  toBinary() {
262
- return requests.Ge1GripperEmptyRequest.toBinary(this);
262
+ return requests.Ge1xGripperEmptyRequest.toBinary(this);
263
263
  },
264
264
  };
265
- await gateway.callAsync('ge1_gripper/driver_disable', request);
265
+ await gateway.callAsync('ge1x_gripper/driver_disable', request);
266
266
  }
267
267
  /**
268
268
  * Performs a calibration of the travel range by moving to the fully open and fully closed positions.
@@ -271,14 +271,14 @@ class GE1Gripper {
271
271
  async calibrate(options = {}) {
272
272
  const { saveToFlash = true, } = options;
273
273
  const request = {
274
- ...requests.Ge1GripperCalibrateRequest.DEFAULT,
274
+ ...requests.Ge1xGripperCalibrateRequest.DEFAULT,
275
275
  connectionId: this.connectionId,
276
276
  saveToFlash: saveToFlash,
277
277
  toBinary() {
278
- return requests.Ge1GripperCalibrateRequest.toBinary(this);
278
+ return requests.Ge1xGripperCalibrateRequest.toBinary(this);
279
279
  },
280
280
  };
281
- await gateway.callAsync('ge1_gripper/calibrate', request);
281
+ await gateway.callAsync('ge1x_gripper/calibrate', request);
282
282
  }
283
283
  /**
284
284
  * Gets the current state of the gripper.
@@ -286,13 +286,13 @@ class GE1Gripper {
286
286
  */
287
287
  async getState() {
288
288
  const request = {
289
- ...requests.Ge1GripperEmptyRequest.DEFAULT,
289
+ ...requests.Ge1xGripperEmptyRequest.DEFAULT,
290
290
  connectionId: this.connectionId,
291
291
  toBinary() {
292
- return requests.Ge1GripperEmptyRequest.toBinary(this);
292
+ return requests.Ge1xGripperEmptyRequest.toBinary(this);
293
293
  },
294
294
  };
295
- const response = await gateway.callAsync('ge1_gripper/get_state', request, requests.Ge1GripperGetStateResponse.fromBinary);
295
+ const response = await gateway.callAsync('ge1x_gripper/get_state', request, requests.Ge1xGripperGetStateResponse.fromBinary);
296
296
  return response.value;
297
297
  }
298
298
  /**
@@ -301,13 +301,13 @@ class GE1Gripper {
301
301
  */
302
302
  async getError() {
303
303
  const request = {
304
- ...requests.Ge1GripperEmptyRequest.DEFAULT,
304
+ ...requests.Ge1xGripperEmptyRequest.DEFAULT,
305
305
  connectionId: this.connectionId,
306
306
  toBinary() {
307
- return requests.Ge1GripperEmptyRequest.toBinary(this);
307
+ return requests.Ge1xGripperEmptyRequest.toBinary(this);
308
308
  },
309
309
  };
310
- const response = await gateway.callAsync('ge1_gripper/get_error', request, requests.Ge1GripperGetErrorResponse.fromBinary);
310
+ const response = await gateway.callAsync('ge1x_gripper/get_error', request, requests.Ge1xGripperGetErrorResponse.fromBinary);
311
311
  return response.value;
312
312
  }
313
313
  /**
@@ -315,13 +315,13 @@ class GE1Gripper {
315
315
  */
316
316
  async clearError() {
317
317
  const request = {
318
- ...requests.Ge1GripperEmptyRequest.DEFAULT,
318
+ ...requests.Ge1xGripperEmptyRequest.DEFAULT,
319
319
  connectionId: this.connectionId,
320
320
  toBinary() {
321
- return requests.Ge1GripperEmptyRequest.toBinary(this);
321
+ return requests.Ge1xGripperEmptyRequest.toBinary(this);
322
322
  },
323
323
  };
324
- await gateway.callAsync('ge1_gripper/clear_error', request);
324
+ await gateway.callAsync('ge1x_gripper/clear_error', request);
325
325
  }
326
326
  /**
327
327
  * Checks if the gripper has been homed.
@@ -329,13 +329,13 @@ class GE1Gripper {
329
329
  */
330
330
  async isHomed() {
331
331
  const request = {
332
- ...requests.Ge1GripperEmptyRequest.DEFAULT,
332
+ ...requests.Ge1xGripperEmptyRequest.DEFAULT,
333
333
  connectionId: this.connectionId,
334
334
  toBinary() {
335
- return requests.Ge1GripperEmptyRequest.toBinary(this);
335
+ return requests.Ge1xGripperEmptyRequest.toBinary(this);
336
336
  },
337
337
  };
338
- const response = await gateway.callAsync('ge1_gripper/is_homed', request, requests.BoolResponse.fromBinary);
338
+ const response = await gateway.callAsync('ge1x_gripper/is_homed', request, requests.BoolResponse.fromBinary);
339
339
  return response.value;
340
340
  }
341
341
  /**
@@ -344,13 +344,13 @@ class GE1Gripper {
344
344
  */
345
345
  async getPosition() {
346
346
  const request = {
347
- ...requests.Ge1GripperEmptyRequest.DEFAULT,
347
+ ...requests.Ge1xGripperEmptyRequest.DEFAULT,
348
348
  connectionId: this.connectionId,
349
349
  toBinary() {
350
- return requests.Ge1GripperEmptyRequest.toBinary(this);
350
+ return requests.Ge1xGripperEmptyRequest.toBinary(this);
351
351
  },
352
352
  };
353
- const response = await gateway.callAsync('ge1_gripper/get_position', request, requests.DoubleResponse.fromBinary);
353
+ const response = await gateway.callAsync('ge1x_gripper/get_position', request, requests.DoubleResponse.fromBinary);
354
354
  return response.value;
355
355
  }
356
356
  /**
@@ -359,13 +359,13 @@ class GE1Gripper {
359
359
  */
360
360
  async getCurrent() {
361
361
  const request = {
362
- ...requests.Ge1GripperEmptyRequest.DEFAULT,
362
+ ...requests.Ge1xGripperEmptyRequest.DEFAULT,
363
363
  connectionId: this.connectionId,
364
364
  toBinary() {
365
- return requests.Ge1GripperEmptyRequest.toBinary(this);
365
+ return requests.Ge1xGripperEmptyRequest.toBinary(this);
366
366
  },
367
367
  };
368
- const response = await gateway.callAsync('ge1_gripper/get_current', request, requests.IntResponse.fromBinary);
368
+ const response = await gateway.callAsync('ge1x_gripper/get_current', request, requests.IntResponse.fromBinary);
369
369
  return response.value;
370
370
  }
371
371
  /**
@@ -376,15 +376,15 @@ class GE1Gripper {
376
376
  async setHomeDirection(direction, options = {}) {
377
377
  const { saveToFlash = true, } = options;
378
378
  const request = {
379
- ...requests.Ge1GripperSetHomeDirectionRequest.DEFAULT,
379
+ ...requests.Ge1xGripperSetHomeDirectionRequest.DEFAULT,
380
380
  connectionId: this.connectionId,
381
381
  direction: direction,
382
382
  saveToFlash: saveToFlash,
383
383
  toBinary() {
384
- return requests.Ge1GripperSetHomeDirectionRequest.toBinary(this);
384
+ return requests.Ge1xGripperSetHomeDirectionRequest.toBinary(this);
385
385
  },
386
386
  };
387
- await gateway.callAsync('ge1_gripper/set_home_direction', request);
387
+ await gateway.callAsync('ge1x_gripper/set_home_direction', request);
388
388
  }
389
389
  /**
390
390
  * Enables or disables automatic homing on power up.
@@ -394,15 +394,15 @@ class GE1Gripper {
394
394
  async setAutoHome(enabled, options = {}) {
395
395
  const { saveToFlash = true, } = options;
396
396
  const request = {
397
- ...requests.Ge1GripperSetAutoHomeRequest.DEFAULT,
397
+ ...requests.Ge1xGripperSetAutoHomeRequest.DEFAULT,
398
398
  connectionId: this.connectionId,
399
399
  enabled: enabled,
400
400
  saveToFlash: saveToFlash,
401
401
  toBinary() {
402
- return requests.Ge1GripperSetAutoHomeRequest.toBinary(this);
402
+ return requests.Ge1xGripperSetAutoHomeRequest.toBinary(this);
403
403
  },
404
404
  };
405
- await gateway.callAsync('ge1_gripper/set_auto_home', request);
405
+ await gateway.callAsync('ge1x_gripper/set_auto_home', request);
406
406
  }
407
407
  /**
408
408
  * Enables or disables IO control for the gripper.
@@ -412,15 +412,15 @@ class GE1Gripper {
412
412
  async setIoEnabled(enabled, options = {}) {
413
413
  const { saveToFlash = true, } = options;
414
414
  const request = {
415
- ...requests.Ge1GripperSetIoEnabledRequest.DEFAULT,
415
+ ...requests.Ge1xGripperSetIoEnabledRequest.DEFAULT,
416
416
  connectionId: this.connectionId,
417
417
  enabled: enabled,
418
418
  saveToFlash: saveToFlash,
419
419
  toBinary() {
420
- return requests.Ge1GripperSetIoEnabledRequest.toBinary(this);
420
+ return requests.Ge1xGripperSetIoEnabledRequest.toBinary(this);
421
421
  },
422
422
  };
423
- await gateway.callAsync('ge1_gripper/set_io_enabled', request);
423
+ await gateway.callAsync('ge1x_gripper/set_io_enabled', request);
424
424
  }
425
425
  /**
426
426
  * Sets the debounce filter time for the gripper IO input to suppress noise.
@@ -430,15 +430,15 @@ class GE1Gripper {
430
430
  async setIoInputFilter(duration, options = {}) {
431
431
  const { saveToFlash = true, } = options;
432
432
  const request = {
433
- ...requests.Ge1GripperSetIoInputFilterRequest.DEFAULT,
433
+ ...requests.Ge1xGripperSetIoInputFilterRequest.DEFAULT,
434
434
  connectionId: this.connectionId,
435
435
  duration: duration,
436
436
  saveToFlash: saveToFlash,
437
437
  toBinary() {
438
- return requests.Ge1GripperSetIoInputFilterRequest.toBinary(this);
438
+ return requests.Ge1xGripperSetIoInputFilterRequest.toBinary(this);
439
439
  },
440
440
  };
441
- await gateway.callAsync('ge1_gripper/set_io_input_filter', request);
441
+ await gateway.callAsync('ge1x_gripper/set_io_input_filter', request);
442
442
  }
443
443
  /**
444
444
  * Saves a position, force, and speed as a preset.
@@ -451,7 +451,7 @@ class GE1Gripper {
451
451
  async setPreset(presetNumber, position, options = {}) {
452
452
  const { force = 100, speed = 100, saveToFlash = true, } = options;
453
453
  const request = {
454
- ...requests.Ge1GripperSetPresetRequest.DEFAULT,
454
+ ...requests.Ge1xGripperSetPresetRequest.DEFAULT,
455
455
  connectionId: this.connectionId,
456
456
  presetNumber: presetNumber,
457
457
  position: position,
@@ -459,10 +459,10 @@ class GE1Gripper {
459
459
  speed: speed,
460
460
  saveToFlash: saveToFlash,
461
461
  toBinary() {
462
- return requests.Ge1GripperSetPresetRequest.toBinary(this);
462
+ return requests.Ge1xGripperSetPresetRequest.toBinary(this);
463
463
  },
464
464
  };
465
- await gateway.callAsync('ge1_gripper/set_preset', request);
465
+ await gateway.callAsync('ge1x_gripper/set_preset', request);
466
466
  }
467
467
  /**
468
468
  * Activates a preset, causing the gripper to move to the preset position using the preset force and speed.
@@ -472,15 +472,15 @@ class GE1Gripper {
472
472
  async activatePreset(presetNumber, options = {}) {
473
473
  const { waitUntilIdle = true, } = options;
474
474
  const request = {
475
- ...requests.Ge1GripperActivatePresetRequest.DEFAULT,
475
+ ...requests.Ge1xGripperActivatePresetRequest.DEFAULT,
476
476
  connectionId: this.connectionId,
477
477
  presetNumber: presetNumber,
478
478
  waitUntilIdle: waitUntilIdle,
479
479
  toBinary() {
480
- return requests.Ge1GripperActivatePresetRequest.toBinary(this);
480
+ return requests.Ge1xGripperActivatePresetRequest.toBinary(this);
481
481
  },
482
482
  };
483
- await gateway.callAsync('ge1_gripper/activate_preset', request);
483
+ await gateway.callAsync('ge1x_gripper/activate_preset', request);
484
484
  }
485
485
  /**
486
486
  * Gets the preset number currently activated by the gripper IO input.
@@ -488,13 +488,13 @@ class GE1Gripper {
488
488
  */
489
489
  async getIoInputPresetNumber() {
490
490
  const request = {
491
- ...requests.Ge1GripperEmptyRequest.DEFAULT,
491
+ ...requests.Ge1xGripperEmptyRequest.DEFAULT,
492
492
  connectionId: this.connectionId,
493
493
  toBinary() {
494
- return requests.Ge1GripperEmptyRequest.toBinary(this);
494
+ return requests.Ge1xGripperEmptyRequest.toBinary(this);
495
495
  },
496
496
  };
497
- const response = await gateway.callAsync('ge1_gripper/get_io_input_preset_number', request, requests.IntResponse.fromBinary);
497
+ const response = await gateway.callAsync('ge1x_gripper/get_io_input_preset_number', request, requests.IntResponse.fromBinary);
498
498
  return response.value;
499
499
  }
500
500
  /**
@@ -503,26 +503,26 @@ class GE1Gripper {
503
503
  */
504
504
  static _free(connectionId) {
505
505
  const request = {
506
- ...requests.Ge1GripperEmptyRequest.DEFAULT,
506
+ ...requests.Ge1xGripperEmptyRequest.DEFAULT,
507
507
  connectionId: connectionId,
508
508
  toBinary() {
509
- return requests.Ge1GripperEmptyRequest.toBinary(this);
509
+ return requests.Ge1xGripperEmptyRequest.toBinary(this);
510
510
  },
511
511
  };
512
- gateway.callSync('ge1_gripper/free_connection', request);
512
+ gateway.callSync('ge1x_gripper/free_connection', request);
513
513
  }
514
514
  /**
515
- * Releases the native resources of the ge 1 gripper.
515
+ * Releases the native resources of the ge 1 x gripper.
516
516
  * Should only be called if your environment does not support FinalizationRegistry.
517
517
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry
518
518
  */
519
519
  free() {
520
- GE1Gripper._free(this.connectionId);
520
+ Ge1xGripper._free(this.connectionId);
521
521
  }
522
522
  }
523
- exports.GE1Gripper = GE1Gripper;
523
+ exports.Ge1xGripper = Ge1xGripper;
524
524
  /**
525
525
  * The default device address for a gripper in the GE1x series.
526
526
  */
527
- GE1Gripper.DEFAULT_DEVICE_ADDRESS = 1;
528
- //# sourceMappingURL=ge_1_gripper.js.map
527
+ Ge1xGripper.DEFAULT_DEVICE_ADDRESS = 1;
528
+ //# sourceMappingUR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OAGG;IACI,KAAK,CAAC,sBAAsB;QACjC,MAAM,OAAO,GAAuD;YAClE,GAAG,QAAQ,CAAC,uBAAuB,CAAC,OAAO;YAC3C,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,QAAQ;gBACN,OAAO,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACzD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,yCAAyC,EACzC,OAAO,EACP,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QACnC,OAAO,QAAQ,CAAC,KAAK,CAAC;IACxB,CAAC;IAED;;;OAGG;IACK,MAAM,CAAC,KAAK,CAClB,YAAoB;QAEpB,MAAM,OAAO,GAAuD;YAClE,GAAG,QAAQ,CAAC,uBAAuB,CAAC,OAAO;YAC3C,YAAY,EAAE,YAAY;YAC1B,QAAQ;gBACN,OAAO,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACzD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACI,IAAI;QACT,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACvC,CAAC;;AA3oBH,kCA4oBC;AA3oBC;;GAEG;AACoB,kCAAsB,GAAW,CAAC,CAAC","sourcesContent":["// ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //\n// ============== DO NOT EDIT DIRECTLY ============== //\n\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { registerForFinalization } from '../finalizer';\nimport { Ge1xGripperState } from './ge_1_x_gripper_state';\nimport { Ge1xGripperError } from './ge_1_x_gripper_error';\nimport { Ge1xGripperDirection } from './ge_1_x_gripper_direction';\n\n/**\n * Class representing a gripper in the GE1x series.\n */\nexport class Ge1xGripper {\n /**\n * The default device address for a gripper in the GE1x series.\n */\n public static readonly DEFAULT_DEVICE_ADDRESS: number = 1;\n\n /**\n * The identifier for the connection.\n */\n public get connectionId(): number {\n return this._connectionId;\n }\n private _connectionId: number;\n\n constructor(connectionId: number) {\n this._connectionId = connectionId;\n registerForFinalization(this, Ge1xGripper._free.bind(null, connectionId));\n }\n\n /**\n * Opens a serial connection to a gripper.\n * @param portName The name of the serial port to connect to.\n * @param [options.deviceAddress=Ge1xGripper.DEFAULT_DEVICE_ADDRESS] The address of the gripper to connect to.\n * @param [options.timeout=500] The timeout in milliseconds for any request sent using this connection.\n * @returns A Ge1xGripper instance representing the connection to the gripper.\n */\n public static async openConnection(\n portName: string,\n options: Ge1xGripper.OpenConnectionOptions = {}\n ): Promise<Ge1xGripper> {\n const {\n deviceAddress = Ge1xGripper.DEFAULT_DEVICE_ADDRESS,\n timeout = 500,\n } = options;\n const request: requests.Ge1xGripperOpenConnectionRequest & gateway.Message = {\n ...requests.Ge1xGripperOpenConnectionRequest.DEFAULT,\n portName: portName,\n deviceAddress: deviceAddress,\n timeout: timeout,\n toBinary() {\n return requests.Ge1xGripperOpenConnectionRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'ge1x_gripper/open_connection',\n request,\n requests.IntResponse.fromBinary);\n return new Ge1xGripper(response.value);\n }\n\n /**\n * Closes the connection to the gripper.\n */\n public async close(): Promise<void> {\n const request: requests.Ge1xGripperEmptyRequest & gateway.Message = {\n ...requests.Ge1xGripperEmptyRequest.DEFAULT,\n connectionId: this.connectionId,\n toBinary() {\n return requests.Ge1xGripperEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/close_connection', request);\n }\n\n /**\n * Reads a single register value from the gripper.\n * @param registerAddress The address of the register to read.\n * @returns The data at the specified register address.\n */\n public async readRegister(\n registerAddress: number\n ): Promise<number> {\n const request: requests.Ge1xGripperReadRegisterRequest & gateway.Message = {\n ...requests.Ge1xGripperReadRegisterRequest.DEFAULT,\n connectionId: this.connectionId,\n registerAddress: registerAddress,\n toBinary() {\n return requests.Ge1xGripperReadRegisterRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'ge1x_gripper/read_register',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Writes a single register value to the gripper.\n * @param registerAddress The address of the register to write.\n * @param data The data to write to the specified register address.\n */\n public async writeRegister(\n registerAddress: number,\n data: number\n ): Promise<void> {\n const request: requests.Ge1xGripperWriteRegisterRequest & gateway.Message = {\n ...requests.Ge1xGripperWriteRegisterRequest.DEFAULT,\n connectionId: this.connectionId,\n registerAddress: registerAddress,\n data: data,\n toBinary() {\n return requests.Ge1xGripperWriteRegisterRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/write_register', request);\n }\n\n /**\n * Homes gripper by moving it to its homing position.\n * @param [options.waitUntilIdle=true] Wait until homing has completed before returning.\n */\n public async home(\n options: Ge1xGripper.HomeOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.Ge1xGripperWaitUntilIdleRequest & gateway.Message = {\n ...requests.Ge1xGripperWaitUntilIdleRequest.DEFAULT,\n connectionId: this.connectionId,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.Ge1xGripperWaitUntilIdleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/home', request);\n }\n\n /**\n * Waits until the gripper has stopped moving.\n */\n public async waitUntilIdle(): Promise<void> {\n const request: requests.Ge1xGripperEmptyRequest & gateway.Message = {\n ...requests.Ge1xGripperEmptyRequest.DEFAULT,\n connectionId: this.connectionId,\n toBinary() {\n return requests.Ge1xGripperEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/wait_until_idle', request);\n }\n\n /**\n * Moves the gripper to a specified position.\n * @param position The target position for the gripper as a percentage, where 0 is closed and 100 is open.\n * @param [options.waitUntilIdle=true] Wait until the move has completed before returning.\n */\n public async move(\n position: number,\n options: Ge1xGripper.MoveOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.Ge1xGripperMoveRequest & gateway.Message = {\n ...requests.Ge1xGripperMoveRequest.DEFAULT,\n connectionId: this.connectionId,\n position: position,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.Ge1xGripperMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/move', request);\n }\n\n /**\n * Moves the gripper to the open position.\n * @param [options.waitUntilIdle=true] Wait until the move has completed before returning.\n */\n public async moveOpen(\n options: Ge1xGripper.MoveOpenOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.Ge1xGripperMoveRequest & gateway.Message = {\n ...requests.Ge1xGripperMoveRequest.DEFAULT,\n connectionId: this.connectionId,\n position: 100,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.Ge1xGripperMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/move', request);\n }\n\n /**\n * Moves the gripper to the closed position.\n * @param [options.waitUntilIdle=true] Wait until the move has completed before returning.\n */\n public async moveClose(\n options: Ge1xGripper.MoveCloseOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.Ge1xGripperMoveRequest & gateway.Message = {\n ...requests.Ge1xGripperMoveRequest.DEFAULT,\n connectionId: this.connectionId,\n position: 0,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.Ge1xGripperMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/move', request);\n }\n\n /**\n * Stops the gripper from moving.\n * @param [options.waitUntilIdle=true] Wait until the gripper has stopped before returning.\n */\n public async stop(\n options: Ge1xGripper.StopOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.Ge1xGripperWaitUntilIdleRequest & gateway.Message = {\n ...requests.Ge1xGripperWaitUntilIdleRequest.DEFAULT,\n connectionId: this.connectionId,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.Ge1xGripperWaitUntilIdleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/stop', request);\n }\n\n /**\n * Sets the gripping force of the gripper.\n * @param force The gripping force as a percentage from 20 to 100.\n */\n public async setForce(\n force: number\n ): Promise<void> {\n const request: requests.Ge1xGripperSetForceRequest & gateway.Message = {\n ...requests.Ge1xGripperSetForceRequest.DEFAULT,\n connectionId: this.connectionId,\n force: force,\n toBinary() {\n return requests.Ge1xGripperSetForceRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/set_force', request);\n }\n\n /**\n * Sets the maximum speed of the gripper.\n * @param speed The maximum speed as a percentage from 1 to 100.\n */\n public async setSpeed(\n speed: number\n ): Promise<void> {\n const request: requests.Ge1xGripperSetSpeedRequest & gateway.Message = {\n ...requests.Ge1xGripperSetSpeedRequest.DEFAULT,\n connectionId: this.connectionId,\n speed: speed,\n toBinary() {\n return requests.Ge1xGripperSetSpeedRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/set_speed', request);\n }\n\n /**\n * Enables the gripper driver.\n */\n public async driverEnable(): Promise<void> {\n const request: requests.Ge1xGripperEmptyRequest & gateway.Message = {\n ...requests.Ge1xGripperEmptyRequest.DEFAULT,\n connectionId: this.connectionId,\n toBinary() {\n return requests.Ge1xGripperEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/driver_enable', request);\n }\n\n /**\n * Disables the gripper driver.\n */\n public async driverDisable(): Promise<void> {\n const request: requests.Ge1xGripperEmptyRequest & gateway.Message = {\n ...requests.Ge1xGripperEmptyRequest.DEFAULT,\n connectionId: this.connectionId,\n toBinary() {\n return requests.Ge1xGripperEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/driver_disable', request);\n }\n\n /**\n * Performs a calibration of the travel range by moving to the fully open and fully closed positions.\n * @param [options.saveToFlash=true] Save the calibration results to flash memory so they are retained on power cycle.\n */\n public async calibrate(\n options: Ge1xGripper.CalibrateOptions = {}\n ): Promise<void> {\n const {\n saveToFlash = true,\n } = options;\n const request: requests.Ge1xGripperCalibrateRequest & gateway.Message = {\n ...requests.Ge1xGripperCalibrateRequest.DEFAULT,\n connectionId: this.connectionId,\n saveToFlash: saveToFlash,\n toBinary() {\n return requests.Ge1xGripperCalibrateRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/calibrate', request);\n }\n\n /**\n * Gets the current state of the gripper.\n * @returns The current state of the gripper.\n */\n public async getState(): Promise<Ge1xGripperState> {\n const request: requests.Ge1xGripperEmptyRequest & gateway.Message = {\n ...requests.Ge1xGripperEmptyRequest.DEFAULT,\n connectionId: this.connectionId,\n toBinary() {\n return requests.Ge1xGripperEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.Ge1xGripperGetStateResponse>(\n 'ge1x_gripper/get_state',\n request,\n requests.Ge1xGripperGetStateResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Gets the current error of the gripper.\n * @returns The current error of the gripper.\n */\n public async getError(): Promise<Ge1xGripperError> {\n const request: requests.Ge1xGripperEmptyRequest & gateway.Message = {\n ...requests.Ge1xGripperEmptyRequest.DEFAULT,\n connectionId: this.connectionId,\n toBinary() {\n return requests.Ge1xGripperEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.Ge1xGripperGetErrorResponse>(\n 'ge1x_gripper/get_error',\n request,\n requests.Ge1xGripperGetErrorResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Clears the current error of the gripper.\n */\n public async clearError(): Promise<void> {\n const request: requests.Ge1xGripperEmptyRequest & gateway.Message = {\n ...requests.Ge1xGripperEmptyRequest.DEFAULT,\n connectionId: this.connectionId,\n toBinary() {\n return requests.Ge1xGripperEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/clear_error', request);\n }\n\n /**\n * Checks if the gripper has been homed.\n * @returns True if the gripper is homed, false otherwise.\n */\n public async isHomed(): Promise<boolean> {\n const request: requests.Ge1xGripperEmptyRequest & gateway.Message = {\n ...requests.Ge1xGripperEmptyRequest.DEFAULT,\n connectionId: this.connectionId,\n toBinary() {\n return requests.Ge1xGripperEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'ge1x_gripper/is_homed',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Gets the current position of the gripper.\n * @returns The current position of the gripper as a percentage, where 0 is closed and 100 is open.\n */\n public async getPosition(): Promise<number> {\n const request: requests.Ge1xGripperEmptyRequest & gateway.Message = {\n ...requests.Ge1xGripperEmptyRequest.DEFAULT,\n connectionId: this.connectionId,\n toBinary() {\n return requests.Ge1xGripperEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'ge1x_gripper/get_position',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Gets the current current of the gripper.\n * @returns The current current of the gripper in milliamps.\n */\n public async getCurrent(): Promise<number> {\n const request: requests.Ge1xGripperEmptyRequest & gateway.Message = {\n ...requests.Ge1xGripperEmptyRequest.DEFAULT,\n connectionId: this.connectionId,\n toBinary() {\n return requests.Ge1xGripperEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'ge1x_gripper/get_current',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets the home direction for the gripper.\n * @param direction The home direction to set.\n * @param [options.saveToFlash=true] Save the home direction setting to flash memory so it is retained on power cycle.\n */\n public async setHomeDirection(\n direction: Ge1xGripperDirection,\n options: Ge1xGripper.SetHomeDirectionOptions = {}\n ): Promise<void> {\n const {\n saveToFlash = true,\n } = options;\n const request: requests.Ge1xGripperSetHomeDirectionRequest & gateway.Message = {\n ...requests.Ge1xGripperSetHomeDirectionRequest.DEFAULT,\n connectionId: this.connectionId,\n direction: direction,\n saveToFlash: saveToFlash,\n toBinary() {\n return requests.Ge1xGripperSetHomeDirectionRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/set_home_direction', request);\n }\n\n /**\n * Enables or disables automatic homing on power up.\n * @param enabled True to enable automatic homing on power up, false to disable.\n * @param [options.saveToFlash=true] Save the auto home setting to flash memory so it is retained on power cycle.\n */\n public async setAutoHome(\n enabled: boolean,\n options: Ge1xGripper.SetAutoHomeOptions = {}\n ): Promise<void> {\n const {\n saveToFlash = true,\n } = options;\n const request: requests.Ge1xGripperSetAutoHomeRequest & gateway.Message = {\n ...requests.Ge1xGripperSetAutoHomeRequest.DEFAULT,\n connectionId: this.connectionId,\n enabled: enabled,\n saveToFlash: saveToFlash,\n toBinary() {\n return requests.Ge1xGripperSetAutoHomeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/set_auto_home', request);\n }\n\n /**\n * Enables or disables IO control for the gripper.\n * @param enabled True to enable IO control, false to disable.\n * @param [options.saveToFlash=true] Save the IO enabled setting to flash memory so it is retained on power cycle.\n */\n public async setIoEnabled(\n enabled: boolean,\n options: Ge1xGripper.SetIoEnabledOptions = {}\n ): Promise<void> {\n const {\n saveToFlash = true,\n } = options;\n const request: requests.Ge1xGripperSetIoEnabledRequest & gateway.Message = {\n ...requests.Ge1xGripperSetIoEnabledRequest.DEFAULT,\n connectionId: this.connectionId,\n enabled: enabled,\n saveToFlash: saveToFlash,\n toBinary() {\n return requests.Ge1xGripperSetIoEnabledRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/set_io_enabled', request);\n }\n\n /**\n * Sets the debounce filter time for the gripper IO input to suppress noise.\n * @param duration The IO input filter time in milliseconds.\n * @param [options.saveToFlash=true] Save the IO input filter setting to flash memory so it is retained on power cycle.\n */\n public async setIoInputFilter(\n duration: number,\n options: Ge1xGripper.SetIoInputFilterOptions = {}\n ): Promise<void> {\n const {\n saveToFlash = true,\n } = options;\n const request: requests.Ge1xGripperSetIoInputFilterRequest & gateway.Message = {\n ...requests.Ge1xGripperSetIoInputFilterRequest.DEFAULT,\n connectionId: this.connectionId,\n duration: duration,\n saveToFlash: saveToFlash,\n toBinary() {\n return requests.Ge1xGripperSetIoInputFilterRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/set_io_input_filter', request);\n }\n\n /**\n * Saves a position, force, and speed as a preset.\n * @param presetNumber The preset number to save the preset to, from 1 to 4.\n * @param position The target position for the preset as a percentage, where 0 is closed and 100 is open.\n * @param [options.force=100] The gripping force for the preset as a percentage from 20 to 100.\n * @param [options.speed=100] The maximum speed for the preset as a percentage from 1 to 100.\n * @param [options.saveToFlash=true] Save the preset to flash memory so it is retained on power cycle.\n */\n public async setPreset(\n presetNumber: number,\n position: number,\n options: Ge1xGripper.SetPresetOptions = {}\n ): Promise<void> {\n const {\n force = 100,\n speed = 100,\n saveToFlash = true,\n } = options;\n const request: requests.Ge1xGripperSetPresetRequest & gateway.Message = {\n ...requests.Ge1xGripperSetPresetRequest.DEFAULT,\n connectionId: this.connectionId,\n presetNumber: presetNumber,\n position: position,\n force: force,\n speed: speed,\n saveToFlash: saveToFlash,\n toBinary() {\n return requests.Ge1xGripperSetPresetRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/set_preset', request);\n }\n\n /**\n * Activates a preset, causing the gripper to move to the preset position using the preset force and speed.\n * @param presetNumber The preset number to activate, from 1 to 4.\n * @param [options.waitUntilIdle=true] Wait until the move has completed before returning.\n */\n public async activatePreset(\n presetNumber: number,\n options: Ge1xGripper.ActivatePresetOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.Ge1xGripperActivatePresetRequest & gateway.Message = {\n ...requests.Ge1xGripperActivatePresetRequest.DEFAULT,\n connectionId: this.connectionId,\n presetNumber: presetNumber,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.Ge1xGripperActivatePresetRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('ge1x_gripper/activate_preset', request);\n }\n\n /**\n * Gets the preset number currently activated by the gripper IO input.\n * @returns The current preset number activated by the gripper IO input.\n */\n public async getIoInputPresetNumber(): Promise<number> {\n const request: requests.Ge1xGripperEmptyRequest & gateway.Message = {\n ...requests.Ge1xGripperEmptyRequest.DEFAULT,\n connectionId: this.connectionId,\n toBinary() {\n return requests.Ge1xGripperEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'ge1x_gripper/get_io_input_preset_number',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Frees the connection instance.\n * @param connectionId Connection ID to be freed.\n */\n private static _free(\n connectionId: number\n ): void {\n const request: requests.Ge1xGripperEmptyRequest & gateway.Message = {\n ...requests.Ge1xGripperEmptyRequest.DEFAULT,\n connectionId: connectionId,\n toBinary() {\n return requests.Ge1xGripperEmptyRequest.toBinary(this);\n },\n };\n\n gateway.callSync('ge1x_gripper/free_connection', request);\n }\n\n /**\n * Releases the native resources of the ge 1 x gripper.\n * Should only be called if your environment does not support FinalizationRegistry.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry\n */\n public free(): void {\n Ge1xGripper._free(this.connectionId);\n }\n}\n\nnamespace Ge1xGripper {\n export interface OpenConnectionOptions {\n /**\n * The address of the gripper to connect to.\n */\n deviceAddress?: number;\n /**\n * The timeout in milliseconds for any request sent using this connection.\n */\n timeout?: number;\n }\n export interface HomeOptions {\n /**\n * Wait until homing has completed before returning.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveOptions {\n /**\n * Wait until the move has completed before returning.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveOpenOptions {\n /**\n * Wait until the move has completed before returning.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveCloseOptions {\n /**\n * Wait until the move has completed before returning.\n */\n waitUntilIdle?: boolean;\n }\n export interface StopOptions {\n /**\n * Wait until the gripper has stopped before returning.\n */\n waitUntilIdle?: boolean;\n }\n export interface CalibrateOptions {\n /**\n * Save the calibration results to flash memory so they are retained on power cycle.\n */\n saveToFlash?: boolean;\n }\n export interface SetHomeDirectionOptions {\n /**\n * Save the home direction setting to flash memory so it is retained on power cycle.\n */\n saveToFlash?: boolean;\n }\n export interface SetAutoHomeOptions {\n /**\n * Save the auto home setting to flash memory so it is retained on power cycle.\n */\n saveToFlash?: boolean;\n }\n export interface SetIoEnabledOptions {\n /**\n * Save the IO enabled setting to flash memory so it is retained on power cycle.\n */\n saveToFlash?: boolean;\n }\n export interface SetIoInputFilterOptions {\n /**\n * Save the IO input filter setting to flash memory so it is retained on power cycle.\n */\n saveToFlash?: boolean;\n }\n export interface SetPresetOptions {\n /**\n * The gripping force for the preset as a percentage from 20 to 100.\n */\n force?: number;\n /**\n * The maximum speed for the preset as a percentage from 1 to 100.\n */\n speed?: number;\n /**\n * Save the preset to flash memory so it is retained on power cycle.\n */\n saveToFlash?: boolean;\n }\n export interface ActivatePresetOptions {\n /**\n * Wait until the move has completed before returning.\n */\n waitUntilIdle?: boolean;\n }\n}\n"]}