@zaber/motion 9.2.0 → 9.3.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 (119) hide show
  1. package/LICENSE +6 -6
  2. package/dist/binding/wasm/zaber-motion-core.wasm +0 -0
  3. package/dist/lib/ascii/accel_type.d.ts +17 -0
  4. package/dist/lib/ascii/accel_type.d.ts.map +1 -0
  5. package/dist/lib/ascii/accel_type.js +26 -0
  6. package/dist/lib/ascii/accel_type.js.map +1 -0
  7. package/dist/lib/ascii/axis.d.ts +8 -0
  8. package/dist/lib/ascii/axis.d.ts.map +1 -1
  9. package/dist/lib/ascii/axis.js +22 -0
  10. package/dist/lib/ascii/axis.js.map +1 -1
  11. package/dist/lib/ascii/axis_settings.d.ts +6 -0
  12. package/dist/lib/ascii/axis_settings.d.ts.map +1 -1
  13. package/dist/lib/ascii/axis_settings.js +19 -0
  14. package/dist/lib/ascii/axis_settings.js.map +1 -1
  15. package/dist/lib/ascii/device.d.ts +8 -0
  16. package/dist/lib/ascii/device.d.ts.map +1 -1
  17. package/dist/lib/ascii/device.js +21 -0
  18. package/dist/lib/ascii/device.js.map +1 -1
  19. package/dist/lib/ascii/device_settings.d.ts +6 -0
  20. package/dist/lib/ascii/device_settings.d.ts.map +1 -1
  21. package/dist/lib/ascii/device_settings.js +18 -0
  22. package/dist/lib/ascii/device_settings.js.map +1 -1
  23. package/dist/lib/ascii/index.d.ts +1 -0
  24. package/dist/lib/ascii/index.d.ts.map +1 -1
  25. package/dist/lib/ascii/index.js +1 -0
  26. package/dist/lib/ascii/index.js.map +1 -1
  27. package/dist/lib/ascii/lockstep.js +2 -2
  28. package/dist/lib/ascii/lockstep.js.map +1 -1
  29. package/dist/lib/gateway/constants.js +1 -1
  30. package/dist/lib/gateway/constants.js.map +1 -1
  31. package/dist/lib/index.d.ts +2 -0
  32. package/dist/lib/index.d.ts.map +1 -1
  33. package/dist/lib/index.js +3 -1
  34. package/dist/lib/index.js.map +1 -1
  35. package/dist/lib/measurement_or_value.d.ts +21 -0
  36. package/dist/lib/measurement_or_value.d.ts.map +1 -0
  37. package/dist/lib/measurement_or_value.js +67 -0
  38. package/dist/lib/measurement_or_value.js.map +1 -0
  39. package/dist/lib/movement/default_motion_units.d.ts +32 -0
  40. package/dist/lib/movement/default_motion_units.d.ts.map +1 -0
  41. package/dist/lib/movement/default_motion_units.js +47 -0
  42. package/dist/lib/movement/default_motion_units.js.map +1 -0
  43. package/dist/lib/movement/index.d.ts +3 -0
  44. package/dist/lib/movement/index.d.ts.map +1 -0
  45. package/dist/lib/movement/index.js +21 -0
  46. package/dist/lib/movement/index.js.map +1 -0
  47. package/dist/lib/movement/moveable.d.ts +418 -0
  48. package/dist/lib/movement/moveable.d.ts.map +1 -0
  49. package/dist/lib/movement/moveable.js +639 -0
  50. package/dist/lib/movement/moveable.js.map +1 -0
  51. package/dist/lib/product/ge_1_x_gripper.d.ts +1 -8
  52. package/dist/lib/product/ge_1_x_gripper.d.ts.map +1 -1
  53. package/dist/lib/product/ge_1_x_gripper.js +3 -6
  54. package/dist/lib/product/ge_1_x_gripper.js.map +1 -1
  55. package/dist/lib/requests/device_has_command_request.d.ts +17 -0
  56. package/dist/lib/requests/device_has_command_request.d.ts.map +1 -0
  57. package/dist/lib/requests/device_has_command_request.js +51 -0
  58. package/dist/lib/requests/device_has_command_request.js.map +1 -0
  59. package/dist/lib/requests/index.d.ts +12 -2
  60. package/dist/lib/requests/index.d.ts.map +1 -1
  61. package/dist/lib/requests/index.js +12 -2
  62. package/dist/lib/requests/index.js.map +1 -1
  63. package/dist/lib/requests/lockstep_move_request.d.ts +4 -0
  64. package/dist/lib/requests/lockstep_move_request.d.ts.map +1 -1
  65. package/dist/lib/requests/lockstep_move_request.js +14 -1
  66. package/dist/lib/requests/lockstep_move_request.js.map +1 -1
  67. package/dist/lib/requests/moveable_driver_enable_request.d.ts +14 -0
  68. package/dist/lib/requests/moveable_driver_enable_request.d.ts.map +1 -0
  69. package/dist/lib/requests/moveable_driver_enable_request.js +39 -0
  70. package/dist/lib/requests/moveable_driver_enable_request.js.map +1 -0
  71. package/dist/lib/requests/moveable_get_acceleration_request.d.ts +17 -0
  72. package/dist/lib/requests/moveable_get_acceleration_request.d.ts.map +1 -0
  73. package/dist/lib/requests/moveable_get_acceleration_request.js +44 -0
  74. package/dist/lib/requests/moveable_get_acceleration_request.js.map +1 -0
  75. package/dist/lib/requests/moveable_get_setting_request.d.ts +15 -0
  76. package/dist/lib/requests/moveable_get_setting_request.d.ts.map +1 -0
  77. package/dist/lib/requests/moveable_get_setting_request.js +39 -0
  78. package/dist/lib/requests/moveable_get_setting_request.js.map +1 -0
  79. package/dist/lib/requests/moveable_id_request.d.ts +13 -0
  80. package/dist/lib/requests/moveable_id_request.d.ts.map +1 -0
  81. package/dist/lib/requests/moveable_id_request.js +35 -0
  82. package/dist/lib/requests/moveable_id_request.js.map +1 -0
  83. package/dist/lib/requests/moveable_move_request.d.ts +21 -0
  84. package/dist/lib/requests/moveable_move_request.d.ts.map +1 -0
  85. package/dist/lib/requests/moveable_move_request.js +72 -0
  86. package/dist/lib/requests/moveable_move_request.js.map +1 -0
  87. package/dist/lib/requests/moveable_move_sin_request.d.ts +18 -0
  88. package/dist/lib/requests/moveable_move_sin_request.d.ts.map +1 -0
  89. package/dist/lib/requests/moveable_move_sin_request.js +61 -0
  90. package/dist/lib/requests/moveable_move_sin_request.js.map +1 -0
  91. package/dist/lib/requests/moveable_set_acceleration_request.d.ts +17 -0
  92. package/dist/lib/requests/moveable_set_acceleration_request.d.ts.map +1 -0
  93. package/dist/lib/requests/moveable_set_acceleration_request.js +52 -0
  94. package/dist/lib/requests/moveable_set_acceleration_request.js.map +1 -0
  95. package/dist/lib/requests/moveable_set_setting_request.d.ts +15 -0
  96. package/dist/lib/requests/moveable_set_setting_request.d.ts.map +1 -0
  97. package/dist/lib/requests/moveable_set_setting_request.js +46 -0
  98. package/dist/lib/requests/moveable_set_setting_request.js.map +1 -0
  99. package/dist/lib/requests/moveable_setup_request.d.ts +19 -0
  100. package/dist/lib/requests/moveable_setup_request.d.ts.map +1 -0
  101. package/dist/lib/requests/moveable_setup_request.js +53 -0
  102. package/dist/lib/requests/moveable_setup_request.js.map +1 -0
  103. package/dist/lib/requests/moveable_type.d.ts +14 -0
  104. package/dist/lib/requests/moveable_type.d.ts.map +1 -0
  105. package/dist/lib/requests/moveable_type.js +23 -0
  106. package/dist/lib/requests/moveable_type.js.map +1 -0
  107. package/dist/lib/requests/moveable_wait_until_idle_request.d.ts +14 -0
  108. package/dist/lib/requests/moveable_wait_until_idle_request.d.ts.map +1 -0
  109. package/dist/lib/requests/moveable_wait_until_idle_request.js +39 -0
  110. package/dist/lib/requests/moveable_wait_until_idle_request.js.map +1 -0
  111. package/package.json +6 -2
  112. package/dist/lib/requests/ge_1_x_gripper_calibrate_request.d.ts +0 -14
  113. package/dist/lib/requests/ge_1_x_gripper_calibrate_request.d.ts.map +0 -1
  114. package/dist/lib/requests/ge_1_x_gripper_calibrate_request.js +0 -39
  115. package/dist/lib/requests/ge_1_x_gripper_calibrate_request.js.map +0 -1
  116. package/dist/lib/requests/lockstep_disable_request.d.ts +0 -16
  117. package/dist/lib/requests/lockstep_disable_request.d.ts.map +0 -1
  118. package/dist/lib/requests/lockstep_disable_request.js +0 -47
  119. package/dist/lib/requests/lockstep_disable_request.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveable.js","sourceRoot":"","sources":["../../../src/movement/moveable.ts"],"names":[],"mappings":";AAAA,wDAAwD;AACxD,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,oDAAsC;AACtC,sDAAwC;AACxC,4CAAuD;AACvD,wCAAqC;AAErC,gDAA6C;AAO7C;;GAEG;AACH,MAAa,QAAQ;IACnB;;OAEG;IACH,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAGD;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,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Q,CAAC,IAAI,CAAC,CAAC;YACnD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;IAED;;;;OAIG;IACI,IAAI;QACT,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;CACF;AA5zBD,4BA4zBC","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 { Axis } from '../ascii/axis';\nimport { Device } from '../ascii/device';\nimport { Lockstep } from '../ascii/lockstep';\nimport { MeasurementOrValue } from '../measurement_or_value';\nimport { DefaultMotionUnits } from './default_motion_units';\nimport { Angle, Length, Native, Velocity, AngularVelocity, Acceleration, AngularAcceleration } from '../units';\nimport { AccelType } from '../ascii/accel_type';\nimport { CyclicDirection } from '../cyclic_direction';\n\n/**\n * Represents something that moves: either an axis of a device, or a lockstep group.\n */\nexport class Moveable {\n /**\n * The identifier for the moveable instance.\n */\n public get moveableId(): number {\n return this._moveableId;\n }\n private _moveableId: number;\n\n /**\n * The device this moveable is on.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n constructor(moveableId: number, device: Device) {\n this._moveableId = moveableId;\n this._device = device;\n registerForFinalization(this, Moveable._free.bind(null, moveableId));\n }\n\n /**\n * Creates a Moveable instance for a given axis.\n * @param axis Axis to create a Moveable for.\n * @param options.units Default units of measurement used for movement operations.\n * @returns A Moveable instance for the specified axis.\n */\n public static async fromAxis(\n axis: Axis,\n options: Moveable.FromAxisOptions = {}\n ): Promise<Moveable> {\n const {\n units,\n } = options;\n const request: requests.MoveableSetupRequest & gateway.Message = {\n ...requests.MoveableSetupRequest.DEFAULT,\n interfaceId: axis.device.connection.interfaceId,\n moveableNumber: axis.axisNumber,\n moveableType: requests.MoveableType.AXIS,\n device: axis.device.deviceAddress,\n defaultUnits: units,\n toBinary() {\n return requests.MoveableSetupRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'moveable/setup',\n request,\n requests.IntResponse.fromBinary);\n return new Moveable(response.value, axis.device);\n }\n\n /**\n * Creates a Moveable instance for a given lockstep group.\n * @param lockstep Lockstep group to create a Moveable for.\n * @param options.units Default units of measurement used for movement operations.\n * @returns A Moveable instance for the specified lockstep group.\n */\n public static async fromLockstep(\n lockstep: Lockstep,\n options: Moveable.FromLockstepOptions = {}\n ): Promise<Moveable> {\n const {\n units,\n } = options;\n const request: requests.MoveableSetupRequest & gateway.Message = {\n ...requests.MoveableSetupRequest.DEFAULT,\n interfaceId: lockstep.device.connection.interfaceId,\n moveableNumber: lockstep.lockstepGroupId,\n moveableType: requests.MoveableType.LOCKSTEP,\n device: lockstep.device.deviceAddress,\n defaultUnits: units,\n toBinary() {\n return requests.MoveableSetupRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'moveable/setup',\n request,\n requests.IntResponse.fromBinary);\n return new Moveable(response.value, lockstep.device);\n }\n\n /**\n * Creates a Moveable instance for a single-axis device.\n * @param device Device to create a Moveable for.\n * @param options.units Default units of measurement used for movement operations.\n * @returns A Moveable instance for the specified device.\n */\n public static async fromDevice(\n device: Device,\n options: Moveable.FromDeviceOptions = {}\n ): Promise<Moveable> {\n const {\n units,\n } = options;\n const request: requests.MoveableSetupRequest & gateway.Message = {\n ...requests.MoveableSetupRequest.DEFAULT,\n interfaceId: device.connection.interfaceId,\n moveableNumber: 1,\n moveableType: requests.MoveableType.DEVICE,\n device: device.deviceAddress,\n defaultUnits: units,\n toBinary() {\n return requests.MoveableSetupRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'moveable/setup',\n request,\n requests.IntResponse.fromBinary);\n return new Moveable(response.value, device);\n }\n\n /**\n * Moves to an absolute position.\n * @param position Absolute position to move to.\n * @param options.velocity Movement velocity. If not specified, the maximum velocity setting is used.\n * @param options.acceleration Movement acceleration. If not specified, the default acceleration setting is used.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param options.cyclicDirection Which direction a cyclic device should take to get to the target position.\n * @param options.extraCycles Number of extra cycles to complete before stopping at the target.\n */\n public async moveAbsolute(\n position: MeasurementOrValue,\n options: Moveable.MoveAbsoluteOptions = {}\n ): Promise<void> {\n const {\n velocity,\n acceleration,\n waitUntilIdle = true,\n cyclicDirection,\n extraCycles,\n } = options;\n const request: requests.MoveableMoveRequest & gateway.Message = {\n ...requests.MoveableMoveRequest.DEFAULT,\n moveableId: this.moveableId,\n position: position,\n velocity: velocity,\n acceleration: acceleration,\n waitUntilIdle: waitUntilIdle,\n cyclicDirection: cyclicDirection,\n extraCycles: extraCycles,\n toBinary() {\n return requests.MoveableMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/move_abs', request);\n }\n\n /**\n * Moves by a relative amount from the current position.\n * @param position Relative displacement to move by.\n * @param options.velocity Movement velocity. If not specified, the maximum velocity setting is used.\n * @param options.acceleration Movement acceleration. If not specified, the default acceleration setting is used.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async moveRelative(\n position: MeasurementOrValue,\n options: Moveable.MoveRelativeOptions = {}\n ): Promise<void> {\n const {\n velocity,\n acceleration,\n waitUntilIdle = true,\n } = options;\n const request: requests.MoveableMoveRequest & gateway.Message = {\n ...requests.MoveableMoveRequest.DEFAULT,\n moveableId: this.moveableId,\n position: position,\n velocity: velocity,\n acceleration: acceleration,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.MoveableMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/move_rel', request);\n }\n\n /**\n * Begins moving at a specified velocity.\n * @param velocity Velocity to move at.\n * @param options.acceleration Movement acceleration. If not specified, the default acceleration setting is used.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async moveVelocity(\n velocity: MeasurementOrValue,\n options: Moveable.MoveVelocityOptions = {}\n ): Promise<void> {\n const {\n acceleration,\n waitUntilIdle = true,\n } = options;\n const request: requests.MoveableMoveRequest & gateway.Message = {\n ...requests.MoveableMoveRequest.DEFAULT,\n moveableId: this.moveableId,\n velocity: velocity,\n acceleration: acceleration,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.MoveableMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/move_vel', request);\n }\n\n /**\n * Moves to the end of travel.\n * @param options.velocity Movement velocity. If not specified, the maximum velocity setting is used.\n * @param options.acceleration Movement acceleration. If not specified, the default acceleration setting is used.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async moveMax(\n options: Moveable.MoveMaxOptions = {}\n ): Promise<void> {\n const {\n velocity,\n acceleration,\n waitUntilIdle = true,\n } = options;\n const request: requests.MoveableMoveRequest & gateway.Message = {\n ...requests.MoveableMoveRequest.DEFAULT,\n moveableId: this.moveableId,\n velocity: velocity,\n acceleration: acceleration,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.MoveableMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/move_max', request);\n }\n\n /**\n * Moves to the beginning of travel.\n * @param options.velocity Movement velocity. If not specified, the maximum velocity setting is used.\n * @param options.acceleration Movement acceleration. If not specified, the default acceleration setting is used.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async moveMin(\n options: Moveable.MoveMinOptions = {}\n ): Promise<void> {\n const {\n velocity,\n acceleration,\n waitUntilIdle = true,\n } = options;\n const request: requests.MoveableMoveRequest & gateway.Message = {\n ...requests.MoveableMoveRequest.DEFAULT,\n moveableId: this.moveableId,\n velocity: velocity,\n acceleration: acceleration,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.MoveableMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/move_min', request);\n }\n\n /**\n * Returns the current position of the moveable.\n * @param options.unit Units of position. If not specified, the default position unit is used.\n * @returns Current position.\n */\n public async getPosition(\n options: Moveable.GetPositionOptions = {}\n ): Promise<number> {\n const {\n unit,\n } = options;\n const request: requests.MoveableGetSettingRequest & gateway.Message = {\n ...requests.MoveableGetSettingRequest.DEFAULT,\n moveableId: this.moveableId,\n unit: unit,\n toBinary() {\n return requests.MoveableGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'moveable/get_position',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the current encoder position of the moveable.\n * @param options.unit Units of position. If not specified, the default position unit is used.\n * @returns Current encoder position.\n */\n public async getEncoderPosition(\n options: Moveable.GetEncoderPositionOptions = {}\n ): Promise<number> {\n const {\n unit,\n } = options;\n const request: requests.MoveableGetSettingRequest & gateway.Message = {\n ...requests.MoveableGetSettingRequest.DEFAULT,\n moveableId: this.moveableId,\n unit: unit,\n toBinary() {\n return requests.MoveableGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'moveable/get_encoder_position',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Moves the moveable to the home position.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async home(\n options: Moveable.HomeOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.MoveableMoveRequest & gateway.Message = {\n ...requests.MoveableMoveRequest.DEFAULT,\n moveableId: this.moveableId,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.MoveableMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/home', request);\n }\n\n /**\n * Returns bool indicating whether the moveable has position reference and was homed.\n * @returns True if the moveable has position reference and was homed.\n */\n public async isHomed(): Promise<boolean> {\n const request: requests.MoveableIdRequest & gateway.Message = {\n ...requests.MoveableIdRequest.DEFAULT,\n moveableId: this.moveableId,\n toBinary() {\n return requests.MoveableIdRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'moveable/is_homed',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns bool indicating whether the moveable is executing a motion command.\n * @returns True if the moveable is currently executing a motion command.\n */\n public async isBusy(): Promise<boolean> {\n const request: requests.MoveableIdRequest & gateway.Message = {\n ...requests.MoveableIdRequest.DEFAULT,\n moveableId: this.moveableId,\n toBinary() {\n return requests.MoveableIdRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'moveable/is_busy',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns bool indicating whether the moveable is parked.\n * @returns True if the moveable is parked.\n */\n public async isParked(): Promise<boolean> {\n const request: requests.MoveableIdRequest & gateway.Message = {\n ...requests.MoveableIdRequest.DEFAULT,\n moveableId: this.moveableId,\n toBinary() {\n return requests.MoveableIdRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'moveable/is_parked',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Stops ongoing movement of the moveable.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async stop(\n options: Moveable.StopOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.MoveableMoveRequest & gateway.Message = {\n ...requests.MoveableMoveRequest.DEFAULT,\n moveableId: this.moveableId,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.MoveableMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/stop', request);\n }\n\n /**\n * Moves the moveable in a sinusoidal trajectory.\n * @param amplitude Amplitude of the sinusoidal motion (half of the motion's peak-to-peak range).\n * @param period Period of the sinusoidal motion.\n * @param [options.count=0] Number of sinusoidal cycles to complete.\n * Must be a multiple of 0.5.\n * If count is not specified or set to 0, the moveable will move indefinitely.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async moveSin(\n amplitude: MeasurementOrValue,\n period: MeasurementOrValue,\n options: Moveable.MoveSinOptions = {}\n ): Promise<void> {\n const {\n count = 0,\n waitUntilIdle = true,\n } = options;\n const request: requests.MoveableMoveSinRequest & gateway.Message = {\n ...requests.MoveableMoveSinRequest.DEFAULT,\n moveableId: this.moveableId,\n amplitude: amplitude,\n period: period,\n count: count,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.MoveableMoveSinRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/move_sin', request);\n }\n\n /**\n * Stops the moveable at the end of the sinusoidal trajectory.\n * If the sinusoidal motion was started with an integer-plus-half cycle count,\n * the motion ends at the half-way point of the sinusoidal trajectory.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished.\n */\n public async moveSinStop(\n options: Moveable.MoveSinStopOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.MoveableMoveRequest & gateway.Message = {\n ...requests.MoveableMoveRequest.DEFAULT,\n moveableId: this.moveableId,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.MoveableMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/move_sin_stop', request);\n }\n\n /**\n * Parks the moveable.\n */\n public async park(): Promise<void> {\n const request: requests.MoveableIdRequest & gateway.Message = {\n ...requests.MoveableIdRequest.DEFAULT,\n moveableId: this.moveableId,\n toBinary() {\n return requests.MoveableIdRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/park', request);\n }\n\n /**\n * Unparks the moveable.\n */\n public async unpark(): Promise<void> {\n const request: requests.MoveableIdRequest & gateway.Message = {\n ...requests.MoveableIdRequest.DEFAULT,\n moveableId: this.moveableId,\n toBinary() {\n return requests.MoveableIdRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/unpark', request);\n }\n\n /**\n * Returns the current velocity of the moveable.\n * @param options.unit Units of velocity. If not specified, the default velocity unit is used.\n * @returns Current velocity.\n */\n public async getVelocity(\n options: Moveable.GetVelocityOptions = {}\n ): Promise<number> {\n const {\n unit,\n } = options;\n const request: requests.MoveableGetSettingRequest & gateway.Message = {\n ...requests.MoveableGetSettingRequest.DEFAULT,\n moveableId: this.moveableId,\n unit: unit,\n toBinary() {\n return requests.MoveableGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'moveable/get_velocity',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the maximum speed that this moveable will execute moves at by default.\n * If a different velocity is specified on a move command, that will override\n * this value for that command only.\n * @param options.unit Units of velocity. If not specified, the default velocity unit is used.\n * @returns Maximum speed.\n */\n public async getMaxSpeed(\n options: Moveable.GetMaxSpeedOptions = {}\n ): Promise<number> {\n const {\n unit,\n } = options;\n const request: requests.MoveableGetSettingRequest & gateway.Message = {\n ...requests.MoveableGetSettingRequest.DEFAULT,\n moveableId: this.moveableId,\n unit: unit,\n toBinary() {\n return requests.MoveableGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'moveable/get_max_speed',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets the maximum speed of the moveable. For a lockstep group, sets the value on all axes.\n * @param speed Maximum speed to set.\n */\n public async setMaxSpeed(\n speed: MeasurementOrValue\n ): Promise<void> {\n const request: requests.MoveableSetSettingRequest & gateway.Message = {\n ...requests.MoveableSetSettingRequest.DEFAULT,\n moveableId: this.moveableId,\n value: speed,\n toBinary() {\n return requests.MoveableSetSettingRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/set_max_speed', request);\n }\n\n /**\n * Returns the maximum acceleration of the moveable. For a lockstep group, returns the lowest value across all axes.\n * @param options.accelType Which acceleration ramp to return. Defaults to AccelDecel.\n * @param options.unit Units of acceleration. If not specified, the default acceleration unit is used.\n * @returns Maximum acceleration.\n */\n public async getMaxAcceleration(\n options: Moveable.GetMaxAccelerationOptions = {}\n ): Promise<number> {\n const {\n accelType,\n unit,\n } = options;\n const request: requests.MoveableGetAccelerationRequest & gateway.Message = {\n ...requests.MoveableGetAccelerationRequest.DEFAULT,\n moveableId: this.moveableId,\n accelType: accelType,\n unit: unit,\n toBinary() {\n return requests.MoveableGetAccelerationRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'moveable/get_max_acceleration',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets the maximum acceleration of the moveable. For a lockstep group, sets the value on all axes.\n * @param accel Maximum acceleration to set.\n * @param options.accelType Which acceleration ramp to set. Defaults to AccelDecel.\n */\n public async setMaxAcceleration(\n accel: MeasurementOrValue,\n options: Moveable.SetMaxAccelerationOptions = {}\n ): Promise<void> {\n const {\n accelType,\n } = options;\n const request: requests.MoveableSetAccelerationRequest & gateway.Message = {\n ...requests.MoveableSetAccelerationRequest.DEFAULT,\n moveableId: this.moveableId,\n accel: accel,\n accelType: accelType,\n toBinary() {\n return requests.MoveableSetAccelerationRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/set_max_acceleration', request);\n }\n\n /**\n * Returns the minimum limit of the moveable.\n * @param options.unit Units of position. If not specified, the default position unit is used.\n * @returns Minimum limit.\n */\n public async getLimitMin(\n options: Moveable.GetLimitMinOptions = {}\n ): Promise<number> {\n const {\n unit,\n } = options;\n const request: requests.MoveableGetSettingRequest & gateway.Message = {\n ...requests.MoveableGetSettingRequest.DEFAULT,\n moveableId: this.moveableId,\n unit: unit,\n toBinary() {\n return requests.MoveableGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'moveable/get_limit_min',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the maximum limit of the moveable.\n * @param options.unit Units of position. If not specified, the default position unit is used.\n * @returns Maximum limit.\n */\n public async getLimitMax(\n options: Moveable.GetLimitMaxOptions = {}\n ): Promise<number> {\n const {\n unit,\n } = options;\n const request: requests.MoveableGetSettingRequest & gateway.Message = {\n ...requests.MoveableGetSettingRequest.DEFAULT,\n moveableId: this.moveableId,\n unit: unit,\n toBinary() {\n return requests.MoveableGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'moveable/get_limit_max',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the lockstep group this moveable represents, or null if it is not a lockstep moveable.\n * @returns Lockstep instance, or null if this is not a lockstep moveable.\n */\n public async getLockstep(): Promise<Lockstep | null> {\n const request: requests.MoveableIdRequest & gateway.Message = {\n ...requests.MoveableIdRequest.DEFAULT,\n moveableId: this.moveableId,\n toBinary() {\n return requests.MoveableIdRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'moveable/get_lockstep',\n request,\n requests.IntResponse.fromBinary);\n return response.value !== 0 ? new Lockstep(this.device, response.value) : null;\n }\n\n /**\n * Returns the axis this moveable represents.\n * For a lockstep moveable, returns the primary axis of the lockstep group.\n * @returns Axis this moveable is based on.\n */\n public async getAxis(): Promise<Axis> {\n const request: requests.MoveableIdRequest & gateway.Message = {\n ...requests.MoveableIdRequest.DEFAULT,\n moveableId: this.moveableId,\n toBinary() {\n return requests.MoveableIdRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'moveable/get_axis',\n request,\n requests.IntResponse.fromBinary);\n return new Axis(this.device, response.value);\n }\n\n /**\n * Disables the driver, which prevents current from being sent to the motor or load.\n * If the driver is already disabled, the driver remains disabled.\n */\n public async driverDisable(): Promise<void> {\n const request: requests.MoveableIdRequest & gateway.Message = {\n ...requests.MoveableIdRequest.DEFAULT,\n moveableId: this.moveableId,\n toBinary() {\n return requests.MoveableIdRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/driver_disable', request);\n }\n\n /**\n * Attempts to enable the driver repeatedly for the specified timeout.\n * If the driver is already enabled, the driver remains enabled.\n * @param [options.timeout=10] Timeout in seconds. Specify 0 to attempt to enable the driver once.\n */\n public async driverEnable(\n options: Moveable.DriverEnableOptions = {}\n ): Promise<void> {\n const {\n timeout = 10,\n } = options;\n const request: requests.MoveableDriverEnableRequest & gateway.Message = {\n ...requests.MoveableDriverEnableRequest.DEFAULT,\n moveableId: this.moveableId,\n timeout: timeout,\n toBinary() {\n return requests.MoveableDriverEnableRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/driver_enable', request);\n }\n\n /**\n * Waits until the moveable stops moving.\n * @param [options.throwErrorOnFault=true] Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n options: Moveable.WaitUntilIdleOptions = {}\n ): Promise<void> {\n const {\n throwErrorOnFault = true,\n } = options;\n const request: requests.MoveableWaitUntilIdleRequest & gateway.Message = {\n ...requests.MoveableWaitUntilIdleRequest.DEFAULT,\n moveableId: this.moveableId,\n throwErrorOnFault: throwErrorOnFault,\n toBinary() {\n return requests.MoveableWaitUntilIdleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('moveable/wait_until_idle', request);\n }\n\n /**\n * Frees the moveable instance.\n * @param moveableId The ID of the moveable to free.\n */\n private static _free(\n moveableId: number\n ): void {\n const request: requests.MoveableIdRequest & gateway.Message = {\n ...requests.MoveableIdRequest.DEFAULT,\n moveableId: moveableId,\n toBinary() {\n return requests.MoveableIdRequest.toBinary(this);\n },\n };\n\n gateway.callSync('moveable/free', request);\n }\n\n /**\n * Releases the native resources of the moveable.\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 Moveable._free(this.moveableId);\n }\n}\n\nnamespace Moveable {\n export interface FromAxisOptions {\n /**\n * Default units of measurement used for movement operations.\n */\n units?: DefaultMotionUnits;\n }\n export interface FromLockstepOptions {\n /**\n * Default units of measurement used for movement operations.\n */\n units?: DefaultMotionUnits;\n }\n export interface FromDeviceOptions {\n /**\n * Default units of measurement used for movement operations.\n */\n units?: DefaultMotionUnits;\n }\n export interface MoveAbsoluteOptions {\n /**\n * Movement velocity. If not specified, the maximum velocity setting is used.\n */\n velocity?: MeasurementOrValue;\n /**\n * Movement acceleration. If not specified, the default acceleration setting is used.\n */\n acceleration?: MeasurementOrValue;\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Which direction a cyclic device should take to get to the target position.\n */\n cyclicDirection?: CyclicDirection;\n /**\n * Number of extra cycles to complete before stopping at the target.\n */\n extraCycles?: number;\n }\n export interface MoveRelativeOptions {\n /**\n * Movement velocity. If not specified, the maximum velocity setting is used.\n */\n velocity?: MeasurementOrValue;\n /**\n * Movement acceleration. If not specified, the default acceleration setting is used.\n */\n acceleration?: MeasurementOrValue;\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveVelocityOptions {\n /**\n * Movement acceleration. If not specified, the default acceleration setting is used.\n */\n acceleration?: MeasurementOrValue;\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveMaxOptions {\n /**\n * Movement velocity. If not specified, the maximum velocity setting is used.\n */\n velocity?: MeasurementOrValue;\n /**\n * Movement acceleration. If not specified, the default acceleration setting is used.\n */\n acceleration?: MeasurementOrValue;\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveMinOptions {\n /**\n * Movement velocity. If not specified, the maximum velocity setting is used.\n */\n velocity?: MeasurementOrValue;\n /**\n * Movement acceleration. If not specified, the default acceleration setting is used.\n */\n acceleration?: MeasurementOrValue;\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface GetPositionOptions {\n /**\n * Units of position. If not specified, the default position unit is used.\n */\n unit?: Length | Angle | Native;\n }\n export interface GetEncoderPositionOptions {\n /**\n * Units of position. If not specified, the default position unit is used.\n */\n unit?: Length | Angle | Native;\n }\n export interface HomeOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface StopOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveSinOptions {\n /**\n * Number of sinusoidal cycles to complete.\n * Must be a multiple of 0.5.\n * If count is not specified or set to 0, the moveable will move indefinitely.\n */\n count?: number;\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveSinStopOptions {\n /**\n * Determines whether function should return after the movement is finished.\n */\n waitUntilIdle?: boolean;\n }\n export interface GetVelocityOptions {\n /**\n * Units of velocity. If not specified, the default velocity unit is used.\n */\n unit?: Velocity | AngularVelocity | Native;\n }\n export interface GetMaxSpeedOptions {\n /**\n * Units of velocity. If not specified, the default velocity unit is used.\n */\n unit?: Velocity | AngularVelocity | Native;\n }\n export interface GetMaxAccelerationOptions {\n /**\n * Which acceleration ramp to return. Defaults to AccelDecel.\n */\n accelType?: AccelType;\n /**\n * Units of acceleration. If not specified, the default acceleration unit is used.\n */\n unit?: Acceleration | AngularAcceleration | Native;\n }\n export interface SetMaxAccelerationOptions {\n /**\n * Which acceleration ramp to set. Defaults to AccelDecel.\n */\n accelType?: AccelType;\n }\n export interface GetLimitMinOptions {\n /**\n * Units of position. If not specified, the default position unit is used.\n */\n unit?: Length | Angle | Native;\n }\n export interface GetLimitMaxOptions {\n /**\n * Units of position. If not specified, the default position unit is used.\n */\n unit?: Length | Angle | Native;\n }\n export interface DriverEnableOptions {\n /**\n * Timeout in seconds. Specify 0 to attempt to enable the driver once.\n */\n timeout?: number;\n }\n export interface WaitUntilIdleOptions {\n /**\n * Determines whether to throw error when fault is observed.\n */\n throwErrorOnFault?: boolean;\n }\n}\n"]}
@@ -89,9 +89,8 @@ export declare class Ge1xGripper {
89
89
  driverDisable(): Promise<void>;
90
90
  /**
91
91
  * Performs a calibration of the travel range by moving to the fully open and fully closed positions.
92
- * @param [options.saveToFlash=true] Save the calibration results to flash memory so they are retained on power cycle.
93
92
  */
94
- calibrate(options?: Ge1xGripper.CalibrateOptions): Promise<void>;
93
+ calibrate(): Promise<void>;
95
94
  /**
96
95
  * Gets the current state of the gripper.
97
96
  * @returns The current state of the gripper.
@@ -220,12 +219,6 @@ declare namespace Ge1xGripper {
220
219
  */
221
220
  waitUntilIdle?: boolean;
222
221
  }
223
- interface CalibrateOptions {
224
- /**
225
- * Save the calibration results to flash memory so they are retained on power cycle.
226
- */
227
- saveToFlash?: boolean;
228
- }
229
222
  interface SetHomeDirectionOptions {
230
223
  /**
231
224
  * Save the home direction setting to flash memory so it is retained on power cycle.
@@ -1 +1 @@
1
- {"version":3,"file":"ge_1_x_gripper.d.ts","sourceRoot":"","sources":["../../../src/product/ge_1_x_gripper.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE;;GAEG;AACH,qBAAa,WAAW;IACtB;;OAEG;IACH,gBAAuB,sBAAsB,EAAE,MAAM,CAAK;IAE1D;;OAEG;IACH,IAAW,YAAY,IAAI,MAAM,CAEhC;IACD,OAAO,CAAC,aAAa,CAAS;gBAElB,YAAY,EAAE,MAAM;IAKhC;;;;;;OAMG;WACiB,cAAc,CAChC,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,WAAW,CAAC,qBAA0B,GAC9C,OAAO,CAAC,WAAW,CAAC;IAsBvB;;OAEG;IACU,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAYnC;;;;OAIG;IACU,YAAY,CACvB,eAAe,EAAE,M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O,CAAC,EAAE,MAAM,CAAC;KACpB;IACD,UAAiB,WAAW;QACxB;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KAC3B;IACD,UAAiB,WAAW;QACxB;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KAC3B;IACD,UAAiB,eAAe;QAC5B;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KAC3B;IACD,UAAiB,gBAAgB;QAC7B;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KAC3B;IACD,UAAiB,WAAW;QACxB;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KAC3B;IACD,UAAiB,gBAAgB;QAC7B;;WAEG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;KACzB;IACD,UAAiB,uBAAuB;QACpC;;WAEG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;KACzB;IACD,UAAiB,kBAAkB;QAC/B;;WAEG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;KACzB;IACD,UAAiB,mBAAmB;QAChC;;WAEG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;KACzB;IACD,UAAiB,uBAAuB;QACpC;;WAEG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;KACzB;IACD,UAAiB,gBAAgB;QAC7B;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;KACzB;IACD,UAAiB,qBAAqB;QAClC;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KAC3B;CACF"}
1
+ {"version":3,"file":"ge_1_x_gripper.d.ts","sourceRoot":"","sources":["../../../src/product/ge_1_x_gripper.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;A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,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;KACzB;IACD,UAAiB,qBAAqB;QAClC;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KAC3B;CACF"}
@@ -266,16 +266,13 @@ class Ge1xGripper {
266
266
  }
267
267
  /**
268
268
  * Performs a calibration of the travel range by moving to the fully open and fully closed positions.
269
- * @param [options.saveToFlash=true] Save the calibration results to flash memory so they are retained on power cycle.
270
269
  */
271
- async calibrate(options = {}) {
272
- const { saveToFlash = true, } = options;
270
+ async calibrate() {
273
271
  const request = {
274
- ...requests.Ge1xGripperCalibrateRequest.DEFAULT,
272
+ ...requests.Ge1xGripperEmptyRequest.DEFAULT,
275
273
  connectionId: this.connectionId,
276
- saveToFlash: saveToFlash,
277
274
  toBinary() {
278
- return requests.Ge1xGripperCalibrateRequest.toBinary(this);
275
+ return requests.Ge1xGripperEmptyRequest.toBinary(this);
279
276
  },
280
277
  };
281
278
  await gateway.callAsync('ge1x_gripper/calibrate', request);
@@ -1 +1 @@
1
- {"version":3,"file":"ge_1_x_gripper.js","sourceRoot":"","sources":["../../../src/product/ge_1_x_gripper.ts"],"names":[],"mappings":";AAAA,wDAAwD;AACxD,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,oDAAsC;AACtC,sDAAwC;AACxC,4CAAuD;AAKvD;;GAEG;AACH,MAAa,WAAW;IAMtB;;OAEG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAGD,YAAY,YAAoB;QAC9B,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAA,mCAAuB,EAAC,IAAI,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,KAAK,CAAC,cAAc,CAChC,QAAgB,EAChB,UAA6C,EAAE;Q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BAAuB,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;;AA7oBH,kCA8oBC;AA7oBC;;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 * When enabled, the gripper will not move to a preset position until the IO input changes.\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 that can be enabled using I/O or the activatePreset() method.\n * Note that presets are only activated by I/O when the I/O input changes to that preset number.\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"]}
1
+ {"version":3,"file":"ge_1_x_gripper.js","sourceRoot":"","sources":["../../../src/product/ge_1_x_gripper.ts"],"names":[],"mappings":";AAAA,wDAAwD;AACxD,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,oDAAsC;AACtC,sDAAwC;AACxC,4CAAuD;AAKvD;;GAEG;AACH,MAAa,WAAW;IAMtB;;OAEG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAGD,YAAY,YAAoB;QAC9B,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAA,mCAAuB,EAAC,IAAI,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,KAAK,CAAC,cAAc,CAChC,QAAgB,EAChB,UAA6C,EAAE;QAE/C,MAAM,EACJ,aAAa,GAAG,WAAW,CAAC,sBAAsB,EAClD,OAAO,GAAG,GAAG,GACd,GAAG,OAAO,CAAC;QACZ,MAAM,OAAO,GAAgE;YAC3E,GAAG,QAAQ,CAAC,gCAAgC,CAAC,OAAO;YACpD,QAAQ,EAAE,QAAQ;YAClB,aAAa,EAAE,aAAa;YAC5B,OAAO,EAAE,OAAO;YAChB,QAAQ;gBACN,OAAO,QAAQ,CAAC,gCAAgC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAClE,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,8BAA8B,EAC9B,OAAO,EACP,QAAQ,CAAC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CAAC,SAAS,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;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;;AAtoBH,kCAuoBC;AAtoBC;;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 */\n public async calibrate(): 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/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 * When enabled, the gripper will not move to a preset position until the IO input changes.\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 that can be enabled using I/O or the activatePreset() method.\n * Note that presets are only activated by I/O when the I/O input changes to that preset number.\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 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"]}
@@ -0,0 +1,17 @@
1
+ import { BSON } from 'bson';
2
+ export interface DeviceHasCommandRequest {
3
+ interfaceId: number;
4
+ device: number;
5
+ axis: number;
6
+ command: string;
7
+ allowPartial: boolean;
8
+ }
9
+ export declare const DeviceHasCommandRequest: {
10
+ fromBinary: (buffer: Uint8Array) => DeviceHasCommandRequest;
11
+ toBinary: (value: DeviceHasCommandRequest) => Uint8Array;
12
+ DEFAULT: Readonly<DeviceHasCommandRequest>;
13
+ sanitize: (value: DeviceHasCommandRequest) => DeviceHasCommandRequest;
14
+ convert: (value: BSON.Document) => DeviceHasCommandRequest;
15
+ isA: (value: any) => value is DeviceHasCommandRequest;
16
+ };
17
+ //# sourceMappingURL=device_has_command_request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"device_has_command_request.d.ts","sourceRoot":"","sources":["../../../src/requests/device_has_command_request.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IAEpB,MAAM,EAAE,MAAM,CAAC;IAEf,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB,YAAY,EAAE,OAAO,CAAC;CAEvB;AAED,eAAO,MAAM,uBAAuB;yBACb,UAAU,KAAG,uBAAuB;sBAEvC,uBAAuB,KAAG,UAAU;;sBAUpC,uBAAuB,KAAG,uBAAuB;qBAYlD,KAAK,QAAQ,KAAG,uBAAuB;iBAQ3C,GAAG;CAYjB,CAAC"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeviceHasCommandRequest = void 0;
4
+ // ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //
5
+ // ============== DO NOT EDIT DIRECTLY ============== //
6
+ const bson_1 = require("bson");
7
+ const sanitizer_1 = require("../gateway/sanitizer");
8
+ exports.DeviceHasCommandRequest = {
9
+ fromBinary: (buffer) => exports.DeviceHasCommandRequest.convert(bson_1.BSON.deserialize(buffer, { useBigInt64: true })),
10
+ toBinary: (value) => bson_1.BSON.serialize(exports.DeviceHasCommandRequest.sanitize(value)),
11
+ DEFAULT: Object.freeze({
12
+ interfaceId: 0,
13
+ device: 0,
14
+ axis: 0,
15
+ command: '',
16
+ allowPartial: false,
17
+ }),
18
+ sanitize: (value) => {
19
+ if (value == null) {
20
+ throw new TypeError('Expected DeviceHasCommandRequest object but got null or undefined.');
21
+ }
22
+ if (typeof value !== 'object') {
23
+ throw new TypeError(`Expected DeviceHasCommandRequest object but got ${typeof value}.`);
24
+ }
25
+ return {
26
+ interfaceId: sanitizer_1.sanitizer.sanitizeInt(value.interfaceId, 'interfaceId'),
27
+ device: sanitizer_1.sanitizer.sanitizeInt(value.device, 'device'),
28
+ axis: sanitizer_1.sanitizer.sanitizeInt(value.axis, 'axis'),
29
+ command: sanitizer_1.sanitizer.sanitizeString(value.command, 'command'),
30
+ allowPartial: sanitizer_1.sanitizer.sanitizeBool(value.allowPartial, 'allowPartial'),
31
+ };
32
+ },
33
+ convert: (value) => ({
34
+ interfaceId: value.interfaceId,
35
+ device: value.device,
36
+ axis: value.axis,
37
+ command: value.command,
38
+ allowPartial: value.allowPartial,
39
+ }),
40
+ isA: (value) => {
41
+ const castValue = value;
42
+ return (value != null &&
43
+ typeof value === 'object' &&
44
+ sanitizer_1.sanitizer.isInt(castValue.interfaceId) &&
45
+ sanitizer_1.sanitizer.isInt(castValue.device) &&
46
+ sanitizer_1.sanitizer.isInt(castValue.axis) &&
47
+ sanitizer_1.sanitizer.isString(castValue.command) &&
48
+ sanitizer_1.sanitizer.isBool(castValue.allowPartial));
49
+ },
50
+ };
51
+ //# sourceMappingURL=device_has_command_request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"device_has_command_request.js","sourceRoot":"","sources":["../../../src/requests/device_has_command_request.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,wDAAwD;AACxD,+BAA4B;AAC5B,oDAAiD;AAepC,QAAA,uBAAuB,GAAG;IACrC,UAAU,EAAE,CAAC,MAAkB,EAA2B,EAAE,CAAC,+BAAuB,CAAC,OAAO,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAE7I,QAAQ,EAAE,CAAC,KAA8B,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,+BAAuB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEjH,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,WAAW,EAAE,CAAC;QACd,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,OAAO,EAAE,EAAE;QACX,YAAY,EAAE,KAAK;KACpB,CAAsC;IAEvC,QAAQ,EAAE,CAAC,KAA8B,EAA2B,EA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AAC;YAC/B,qBAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC;YACrC,qBAAS,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CACzC,CAAC;IACJ,CAAC;CACF,CAAC","sourcesContent":["// ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //\n// ============== DO NOT EDIT DIRECTLY ============== //\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\n\nexport interface DeviceHasCommandRequest {\n interfaceId: number;\n\n device: number;\n\n axis: number;\n\n command: string;\n\n allowPartial: boolean;\n\n}\n\nexport const DeviceHasCommandRequest = {\n fromBinary: (buffer: Uint8Array): DeviceHasCommandRequest => DeviceHasCommandRequest.convert(BSON.deserialize(buffer, { useBigInt64: true })),\n\n toBinary: (value: DeviceHasCommandRequest): Uint8Array => BSON.serialize(DeviceHasCommandRequest.sanitize(value)),\n\n DEFAULT: Object.freeze({\n interfaceId: 0,\n device: 0,\n axis: 0,\n command: '',\n allowPartial: false,\n }) as Readonly<DeviceHasCommandRequest>,\n\n sanitize: (value: DeviceHasCommandRequest): DeviceHasCommandRequest => {\n if (value == null) { throw new TypeError('Expected DeviceHasCommandRequest object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected DeviceHasCommandRequest object but got ${typeof value}.`) }\n return {\n interfaceId: sanitizer.sanitizeInt(value.interfaceId, 'interfaceId'),\n device: sanitizer.sanitizeInt(value.device, 'device'),\n axis: sanitizer.sanitizeInt(value.axis, 'axis'),\n command: sanitizer.sanitizeString(value.command, 'command'),\n allowPartial: sanitizer.sanitizeBool(value.allowPartial, 'allowPartial'),\n };\n },\n\n convert: (value: BSON.Document): DeviceHasCommandRequest => ({\n interfaceId: value.interfaceId,\n device: value.device,\n axis: value.axis,\n command: value.command,\n allowPartial: value.allowPartial,\n }),\n\n isA: (value: any): value is DeviceHasCommandRequest => {\n const castValue = value as DeviceHasCommandRequest;\n return (\n value != null &&\n typeof value === 'object' &&\n sanitizer.isInt(castValue.interfaceId) &&\n sanitizer.isInt(castValue.device) &&\n sanitizer.isInt(castValue.axis) &&\n sanitizer.isString(castValue.command) &&\n sanitizer.isBool(castValue.allowPartial)\n );\n },\n};\n"]}
@@ -47,6 +47,7 @@ export * from './device_get_setting_request';
47
47
  export * from './device_get_storage_request';
48
48
  export * from './device_get_warnings_request';
49
49
  export * from './device_get_warnings_response';
50
+ export * from './device_has_command_request';
50
51
  export * from './device_home_request';
51
52
  export * from './device_identify_request';
52
53
  export * from './device_move_request';
@@ -93,7 +94,6 @@ export * from './gateway_event';
93
94
  export * from './gateway_request';
94
95
  export * from './gateway_response';
95
96
  export * from './ge_1_x_gripper_activate_preset_request';
96
- export * from './ge_1_x_gripper_calibrate_request';
97
97
  export * from './ge_1_x_gripper_empty_request';
98
98
  export * from './ge_1_x_gripper_get_error_response';
99
99
  export * from './ge_1_x_gripper_get_state_response';
@@ -127,7 +127,6 @@ export * from './int_response';
127
127
  export * from './interface_empty_request';
128
128
  export * from './interface_type';
129
129
  export * from './load_paramset';
130
- export * from './lockstep_disable_request';
131
130
  export * from './lockstep_empty_request';
132
131
  export * from './lockstep_enable_request';
133
132
  export * from './lockstep_get_axis_numbers_response';
@@ -143,6 +142,17 @@ export * from './microscope_empty_request';
143
142
  export * from './microscope_find_request';
144
143
  export * from './microscope_init_request';
145
144
  export * from './microscope_trigger_camera_request';
145
+ export * from './moveable_driver_enable_request';
146
+ export * from './moveable_get_acceleration_request';
147
+ export * from './moveable_get_setting_request';
148
+ export * from './moveable_id_request';
149
+ export * from './moveable_move_request';
150
+ export * from './moveable_move_sin_request';
151
+ export * from './moveable_set_acceleration_request';
152
+ export * from './moveable_set_setting_request';
153
+ export * from './moveable_setup_request';
154
+ export * from './moveable_type';
155
+ export * from './moveable_wait_until_idle_request';
146
156
  export * from './objective_changer_change_request';
147
157
  export * from './objective_changer_create_response';
148
158
  export * from './objective_changer_get_current_response';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sour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BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC"}
@@ -65,6 +65,7 @@ __exportStar(require("./device_get_setting_request"), exports);
65
65
  __exportStar(require("./device_get_storage_request"), exports);
66
66
  __exportStar(require("./device_get_warnings_request"), exports);
67
67
  __exportStar(require("./device_get_warnings_response"), exports);
68
+ __exportStar(require("./device_has_command_request"), exports);
68
69
  __exportStar(require("./device_home_request"), exports);
69
70
  __exportStar(require("./device_identify_request"), exports);
70
71
  __exportStar(require("./device_move_request"), exports);
@@ -111,7 +112,6 @@ __exportStar(require("./gateway_event"), exports);
111
112
  __exportStar(require("./gateway_request"), exports);
112
113
  __exportStar(require("./gateway_response"), exports);
113
114
  __exportStar(require("./ge_1_x_gripper_activate_preset_request"), exports);
114
- __exportStar(require("./ge_1_x_gripper_calibrate_request"), exports);
115
115
  __exportStar(require("./ge_1_x_gripper_empty_request"), exports);
116
116
  __exportStar(require("./ge_1_x_gripper_get_error_response"), exports);
117
117
  __exportStar(require("./ge_1_x_gripper_get_state_response"), exports);
@@ -145,7 +145,6 @@ __exportStar(require("./int_response"), exports);
145
145
  __exportStar(require("./interface_empty_request"), exports);
146
146
  __exportStar(require("./interface_type"), exports);
147
147
  __exportStar(require("./load_paramset"), exports);
148
- __exportStar(require("./lockstep_disable_request"), exports);
149
148
  __exportStar(require("./lockstep_empty_request"), exports);
150
149
  __exportStar(require("./lockstep_enable_request"), exports);
151
150
  __exportStar(require("./lockstep_get_axis_numbers_response"), exports);
@@ -161,6 +160,17 @@ __exportStar(require("./microscope_empty_request"), exports);
161
160
  __exportStar(require("./microscope_find_request"), exports);
162
161
  __exportStar(require("./microscope_init_request"), exports);
163
162
  __exportStar(require("./microscope_trigger_camera_request"), exports);
163
+ __exportStar(require("./moveable_driver_enable_request"), exports);
164
+ __exportStar(require("./moveable_get_acceleration_request"), exports);
165
+ __exportStar(require("./moveable_get_setting_request"), exports);
166
+ __exportStar(require("./moveable_id_request"), exports);
167
+ __exportStar(require("./moveable_move_request"), exports);
168
+ __exportStar(require("./moveable_move_sin_request"), exports);
169
+ __exportStar(require("./moveable_set_acceleration_request"), exports);
170
+ __exportStar(require("./moveable_set_setting_request"), exports);
171
+ __exportStar(require("./moveable_setup_request"), exports);
172
+ __exportStar(require("./moveable_type"), exports);
173
+ __exportStar(require("./moveable_wait_until_idle_request"), exports);
164
174
  __exportStar(require("./objective_changer_change_request"), exports);
165
175
  __exportStar(require("./objective_changer_create_response"), exports);
166
176
  __exportStar(require("./objective_changer_get_current_response"), exports);