@zaber/motion 2.13.2 → 2.14.2

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 (83) hide show
  1. package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
  2. package/dist/lib/ascii/all_axes.d.ts +5 -0
  3. package/dist/lib/ascii/all_axes.js +12 -0
  4. package/dist/lib/ascii/all_axes.js.map +1 -1
  5. package/dist/lib/ascii/axis.d.ts +5 -0
  6. package/dist/lib/ascii/axis.js +15 -3
  7. package/dist/lib/ascii/axis.js.map +1 -1
  8. package/dist/lib/ascii/axis_settings.d.ts +7 -0
  9. package/dist/lib/ascii/axis_settings.js +14 -0
  10. package/dist/lib/ascii/axis_settings.js.map +1 -1
  11. package/dist/lib/ascii/connection.js +1 -1
  12. package/dist/lib/ascii/connection.js.map +1 -1
  13. package/dist/lib/ascii/conversion_factor.d.ts +21 -0
  14. package/dist/lib/ascii/conversion_factor.js +46 -0
  15. package/dist/lib/ascii/conversion_factor.js.map +1 -0
  16. package/dist/lib/ascii/device.js +3 -3
  17. package/dist/lib/ascii/device.js.map +1 -1
  18. package/dist/lib/ascii/index.d.ts +2 -1
  19. package/dist/lib/ascii/index.js +5 -3
  20. package/dist/lib/ascii/index.js.map +1 -1
  21. package/dist/lib/ascii/lockstep.js +2 -2
  22. package/dist/lib/ascii/lockstep.js.map +1 -1
  23. package/dist/lib/ascii/oscilloscope_data.js +2 -2
  24. package/dist/lib/ascii/oscilloscope_data.js.map +1 -1
  25. package/dist/lib/ascii/paramset_info.d.ts +4 -0
  26. package/dist/lib/ascii/paramset_info.js +1 -0
  27. package/dist/lib/ascii/paramset_info.js.map +1 -1
  28. package/dist/lib/ascii/servo_tuner.d.ts +2 -2
  29. package/dist/lib/ascii/servo_tuner.js +4 -4
  30. package/dist/lib/ascii/servo_tuner.js.map +1 -1
  31. package/dist/lib/ascii/setting_constants.d.ts +4 -0
  32. package/dist/lib/ascii/setting_constants.js +4 -0
  33. package/dist/lib/ascii/setting_constants.js.map +1 -1
  34. package/dist/lib/ascii/{simple_tuning_param.d.ts → simple_tuning_param_definition.d.ts} +3 -3
  35. package/dist/lib/ascii/simple_tuning_param_definition.js +20 -0
  36. package/dist/lib/ascii/simple_tuning_param_definition.js.map +1 -0
  37. package/dist/lib/ascii/storage.d.ts +12 -0
  38. package/dist/lib/ascii/storage.js +31 -4
  39. package/dist/lib/ascii/storage.js.map +1 -1
  40. package/dist/lib/ascii/stream.d.ts +7 -0
  41. package/dist/lib/ascii/stream.js +15 -1
  42. package/dist/lib/ascii/stream.js.map +1 -1
  43. package/dist/lib/ascii_ns.d.ts +4 -2
  44. package/dist/lib/ascii_ns.js +2 -1
  45. package/dist/lib/ascii_ns.js.map +1 -1
  46. package/dist/lib/binary/binary_settings.d.ts +2 -1
  47. package/dist/lib/binary/binary_settings.js +2 -1
  48. package/dist/lib/binary/binary_settings.js.map +1 -1
  49. package/dist/lib/binary/command_code.d.ts +2 -1
  50. package/dist/lib/binary/command_code.js +1 -0
  51. package/dist/lib/binary/command_code.js.map +1 -1
  52. package/dist/lib/binary/connection.js +1 -1
  53. package/dist/lib/binary/connection.js.map +1 -1
  54. package/dist/lib/binary/device.js +2 -2
  55. package/dist/lib/binary/device.js.map +1 -1
  56. package/dist/lib/binary/reply_code.d.ts +1 -0
  57. package/dist/lib/binary/reply_code.js +1 -0
  58. package/dist/lib/binary/reply_code.js.map +1 -1
  59. package/dist/lib/can_set_state_axis_response.d.ts +1 -1
  60. package/dist/lib/can_set_state_axis_response.js.map +1 -1
  61. package/dist/lib/can_set_state_device_response.d.ts +2 -2
  62. package/dist/lib/can_set_state_device_response.js +1 -1
  63. package/dist/lib/can_set_state_device_response.js.map +1 -1
  64. package/dist/lib/exceptions/device_db_failed_exception.d.ts +8 -1
  65. package/dist/lib/exceptions/device_db_failed_exception.js +16 -1
  66. package/dist/lib/exceptions/device_db_failed_exception.js.map +1 -1
  67. package/dist/lib/exceptions/device_db_failed_exception_data.d.ts +12 -0
  68. package/dist/lib/exceptions/device_db_failed_exception_data.js +17 -0
  69. package/dist/lib/exceptions/device_db_failed_exception_data.js.map +1 -0
  70. package/dist/lib/exceptions/index.d.ts +1 -0
  71. package/dist/lib/exceptions/index.js +4 -2
  72. package/dist/lib/exceptions/index.js.map +1 -1
  73. package/dist/lib/gateway/wasm-exec.js +58 -53
  74. package/dist/lib/gateway/wasm-exec.js.map +1 -1
  75. package/dist/lib/gcode/offline_translator.d.ts +10 -0
  76. package/dist/lib/gcode/offline_translator.js +17 -0
  77. package/dist/lib/gcode/offline_translator.js.map +1 -1
  78. package/dist/lib/protobufs/main_pb.d.ts +142 -158
  79. package/dist/lib/protobufs/main_pb.js +1059 -1179
  80. package/dist/lib/protobufs/main_pb.js.map +1 -1
  81. package/package.json +1 -1
  82. package/dist/lib/ascii/simple_tuning_param.js +0 -20
  83. package/dist/lib/ascii/simple_tuning_param.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"device.js","sourceRoot":"","sources":["../../../src/binary/device.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,uDAAmD;AAEnD,uDAAmD;AACnD,uDAAmD;AACnD,oDAAsC;AAEtC,uCAAoC;AACpC,oCAAmF;AAInF;;GAEG;AACH,MAAa,MAAM;IAqGjB,YAAY,UAAsB,EAAE,aAAqB;QACvD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,IAAI,gCAAc,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;IACtC,CAAC;IAnGD;;OAEG;IACH,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAGD;;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAGD;;;OAGG;IACH,IAAW,aAAa;QACtB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M,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,iCAAiC,EACjC,OAAO,EACP,OAAO,CAAC,YAAY,CAAC,CAAC;QACxB,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;;AAldH,wBAmdC;AAldC;;GAEG;AACoB,+BAAwB,GAAW,EAAE,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { BinarySettings } from './binary_settings';\nimport { Connection } from './connection';\nimport { DeviceIdentity } from './device_identity';\nimport { DeviceSettings } from './device_settings';\nimport * as gateway from '../gateway';\nimport { CommandCode } from './command_code';\nimport { Message } from './message';\nimport { Angle, Length, Native, AngularVelocity, Velocity, Units } from '../units';\nimport { DeviceType } from './device_type';\nimport { FirmwareVersion } from '../firmware_version';\n\n/**\n * Represents a device using the binary protocol.\n */\nexport class Device {\n /**\n * Default timeout for move commands in seconds.\n */\n public static readonly DEFAULT_MOVEMENT_TIMEOUT: number = 60;\n\n /**\n * Connection of this device.\n */\n public get connection(): Connection {\n return this._connection;\n }\n private _connection: Connection;\n\n /**\n * Settings and properties of this axis.\n */\n public get settings(): DeviceSettings {\n return this._settings;\n }\n private _settings: DeviceSettings;\n\n /**\n * The device address uniquely identifies the device on the connection.\n * It can be configured or automatically assigned by the renumber command.\n */\n public get deviceAddress(): number {\n return this._deviceAddress;\n }\n private _deviceAddress: number;\n\n /**\n * Identity of the device.\n */\n public get identity(): DeviceIdentity {\n return this._retrieveIdentity();\n }\n\n /**\n * Indicates whether or not the device has been identified.\n */\n public get isIdentified(): boolean {\n return this._retrieveIsIdentified();\n }\n\n /**\n * Unique ID of the device hardware.\n */\n public get deviceId(): number {\n return this.identity.deviceId;\n }\n\n /**\n * Serial number of the device.\n */\n public get serialNumber(): number {\n return this.identity.serialNumber;\n }\n\n /**\n * Name of the product.\n */\n public get name(): string {\n return this.identity.name;\n }\n\n /**\n * Version of the firmware.\n */\n public get firmwareVersion(): FirmwareVersion {\n return this.identity.firmwareVersion;\n }\n\n /**\n * Indicates whether the device is a peripheral or part of an integrated device.\n */\n public get isPeripheral(): boolean {\n return this.identity.isPeripheral;\n }\n\n /**\n * Unique ID of the peripheral hardware.\n */\n public get peripheralId(): number {\n return this.identity.peripheralId;\n }\n\n /**\n * Name of the peripheral hardware.\n */\n public get peripheralName(): string {\n return this.identity.peripheralName;\n }\n\n /**\n * Determines the type of an device and units it accepts.\n */\n public get deviceType(): DeviceType {\n return this.identity.deviceType;\n }\n\n constructor(connection: Connection, deviceAddress: number) {\n this._connection = connection;\n this._settings = new DeviceSettings(this);\n this._deviceAddress = deviceAddress;\n }\n\n /**\n * Sends a generic Binary command to this device.\n * For more information please refer to the\n * [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).\n * @param command Command to send.\n * @param data Optional data argument to the command. Defaults to zero.\n * @param timeout Number of seconds to wait for a response from the device. 0 or negative defaults to 0.5s.\n * @param checkErrors Controls whether to throw an exception when the device rejects the command.\n * @return A response to the command.\n */\n public async genericCommand(\n command: CommandCode,\n data: number = 0,\n timeout: number = 0.0,\n checkErrors: boolean = true\n ): Promise<Message> {\n const request = new gateway.GenericBinaryRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setCommand(command as any);\n request.setData(data);\n request.setTimeout(timeout);\n request.setCheckErrors(checkErrors);\n\n const response = await gateway.callAsync<gateway.BinaryMessage>(\n 'binary/interface/generic_command',\n request,\n gateway.BinaryMessage);\n return Message.fromProtobuf(response.toObject());\n }\n\n /**\n * Sends a generic Binary command to this device without expecting a response.\n * For more information please refer to the\n * [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).\n * @param command Command to send.\n * @param data Optional data argument to the command. Defaults to zero.\n */\n public async genericCommandNoResponse(\n command: CommandCode,\n data: number = 0\n ): Promise<void> {\n const request = new gateway.GenericBinaryRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setCommand(command as any);\n request.setData(data);\n\n await gateway.callAsync('binary/interface/generic_command_no_response', request);\n }\n\n /**\n * Sends a generic Binary command to this device with unit conversions for both sent data and retrieved data.\n * @param command Command to send.\n * @param data Data argument to the command. Set to zero if command does not require argument.\n * @param fromUnit Unit to convert sent data from.\n * @param toUnit Unit to convert retrieved data to.\n * @param timeout Number of seconds to wait for a response from the device. 0 or negative defaults to 0.5s.\n * @return Data that has been converted to the provided unit.\n */\n public async genericCommandWithUnits(\n command: CommandCode,\n data: number,\n fromUnit: Units = Units.NATIVE,\n toUnit: Units = Units.NATIVE,\n timeout: number = 0.0\n ): Promise<number> {\n const request = new gateway.BinaryGenericWithUnitsRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setCommand(command as any);\n request.setData(data);\n request.setFromUnit(fromUnit);\n request.setToUnit(toUnit);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'binary/device/generic_command_with_units',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Homes device. Device returns to its homing position.\n * @param unit Unit to convert returned position to.\n * @param timeout Number of seconds to wait for response from the device chain (defaults to 60s).\n * @return Current position that has been converted to the provided unit.\n */\n public async home(\n unit: Length | Angle | Native = Units.NATIVE,\n timeout: number = Device.DEFAULT_MOVEMENT_TIMEOUT\n ): Promise<number> {\n const request = new gateway.BinaryDeviceHomeRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setUnit(unit);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'binary/device/home',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Stops ongoing device movement. Decelerates until zero speed.\n * @param unit Unit to convert returned position to.\n * @param timeout Number of seconds to wait for response from the device chain (defaults to 60s).\n * @return Current position that has been converted to the provided unit.\n */\n public async stop(\n unit: Length | Angle | Native = Units.NATIVE,\n timeout: number = Device.DEFAULT_MOVEMENT_TIMEOUT\n ): Promise<number> {\n const request = new gateway.BinaryDeviceStopRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setUnit(unit);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'binary/device/stop',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Move device to absolute position.\n * @param position Absolute position.\n * @param unit Unit for the provided position as well as position returned by the device.\n * @param timeout Number of seconds to wait for response from the device chain (defaults to 60s).\n * @return Current position that has been converted to the provided unit.\n */\n public async moveAbsolute(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n timeout: number = Device.DEFAULT_MOVEMENT_TIMEOUT\n ): Promise<number> {\n const request = new gateway.BinaryDeviceMoveRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setType(gateway.BinaryDeviceMoveRequest.MoveType.ABS);\n request.setArg(position);\n request.setUnit(unit);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'binary/device/move',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Move device to position relative to current position.\n * @param position Relative position.\n * @param unit Unit for the provided position as well as position returned by the device.\n * @param timeout Number of seconds to wait for response from the device chain (defaults to 60s).\n * @return Current position that has been converted to the provided unit.\n */\n public async moveRelative(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n timeout: number = Device.DEFAULT_MOVEMENT_TIMEOUT\n ): Promise<number> {\n const request = new gateway.BinaryDeviceMoveRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setType(gateway.BinaryDeviceMoveRequest.MoveType.REL);\n request.setArg(position);\n request.setUnit(unit);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'binary/device/move',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Begins to move device at specified speed.\n * @param velocity Movement velocity.\n * @param unit Unit to convert returned velocity to.\n * @return Device velocity that has been converted to the provided unit.\n */\n public async moveVelocity(\n velocity: number,\n unit: Velocity | AngularVelocity | Native = Units.NATIVE\n ): Promise<number> {\n const request = new gateway.BinaryDeviceMoveRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setType(gateway.BinaryDeviceMoveRequest.MoveType.VEL);\n request.setArg(velocity);\n request.setUnit(unit);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'binary/device/move',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Waits until device stops moving.\n */\n public async waitUntilIdle(): Promise<void> {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n await gateway.callAsync('binary/device/wait_until_idle', request);\n }\n\n /**\n * Check whether the device is moving.\n * @return True if the device is currently executing a motion command.\n */\n public async isBusy(): Promise<boolean> {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = await gateway.callAsync<gateway.BoolResponse>(\n 'binary/device/is_busy',\n request,\n gateway.BoolResponse);\n return response.getValue();\n }\n\n /**\n * Queries the device and the database, gathering information about the product.\n * Without this information features such as unit conversions will not work.\n * Usually, called automatically by detect devices method.\n * @return Device identification data.\n */\n public async identify(): Promise<DeviceIdentity> {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = await gateway.callAsync<gateway.BinaryDeviceIdentity>(\n 'binary/device/identify',\n request,\n gateway.BinaryDeviceIdentity);\n return DeviceIdentity.fromProtobuf(response.toObject());\n }\n\n /**\n * Parks the axis.\n * Motor drivers remain enabled and hold current continues to be applied until the device is powered off.\n * It can later be unparked and moved without first having to home it.\n */\n public async park(): Promise<void> {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n await gateway.callAsync('binary/device/park', request);\n }\n\n /**\n * Unparks axis. Axis will now be able to move.\n */\n public async unpark(): Promise<void> {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n await gateway.callAsync('binary/device/unpark', request);\n }\n\n /**\n * Returns bool indicating whether the axis is parked or not.\n * @return True if the axis is currently parked. False otherwise.\n */\n public async isParked(): Promise<boolean> {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = await gateway.callAsync<gateway.BoolResponse>(\n 'binary/device/is_parked',\n request,\n gateway.BoolResponse);\n return response.getValue();\n }\n\n /**\n * Returns current device position.\n * @param unit Units of position.\n * @return Axis position.\n */\n public async getPosition(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number> {\n const request = new gateway.BinaryDeviceGetSettingRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setSetting(BinarySettings.CURRENT_POSITION);\n request.setUnit(unit);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'binary/device/get_setting',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Returns a string that represents the device.\n * @return A string that represents the device.\n */\n public toString(): string {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = gateway.callSync<gateway.StringResponse>(\n 'binary/device/device_to_string',\n request,\n gateway.StringResponse);\n return response.getValue();\n }\n\n /**\n * Returns identity.\n * @return Device identity.\n */\n private _retrieveIdentity(): DeviceIdentity {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = gateway.callSync<gateway.BinaryDeviceGetIdentityResponse>(\n 'binary/device/get_identity',\n request,\n gateway.BinaryDeviceGetIdentityResponse);\n return DeviceIdentity.fromProtobuf(response.getIdentity()!.toObject());\n }\n\n /**\n * Returns whether or not the device have been identified.\n * @return True if the device has already been identified. False otherwise.\n */\n private _retrieveIsIdentified(): boolean {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = gateway.callSync<gateway.BoolResponse>(\n 'binary/device/get_is_identified',\n request,\n gateway.BoolResponse);\n return response.getValue();\n }\n}\n"]}
1
+ {"version":3,"file":"device.js","sourceRoot":"","sources":["../../../src/binary/device.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,uDAAmD;AAEnD,uDAAmD;AACnD,uDAAmD;AACnD,oDAAsC;AAEtC,uCAAoC;AACpC,oCAAmF;AAInF;;GAEG;AACH,MAAa,MAAM;IAqGjB,YAAY,UAAsB,EAAE,aAAqB;QACvD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,IAAI,gCAAc,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;IACtC,CAAC;IAnGD;;OAEG;IACH,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAGD;;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAGD;;;OAGG;IACH,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAGD;;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACtC,CAAC;IAED;;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ENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { BinarySettings } from './binary_settings';\nimport { Connection } from './connection';\nimport { DeviceIdentity } from './device_identity';\nimport { DeviceSettings } from './device_settings';\nimport * as gateway from '../gateway';\nimport { CommandCode } from './command_code';\nimport { Message } from './message';\nimport { Angle, Length, Native, AngularVelocity, Velocity, Units } from '../units';\nimport { DeviceType } from './device_type';\nimport { FirmwareVersion } from '../firmware_version';\n\n/**\n * Represents a device using the binary protocol.\n */\nexport class Device {\n /**\n * Default timeout for move commands in seconds.\n */\n public static readonly DEFAULT_MOVEMENT_TIMEOUT: number = 60;\n\n /**\n * Connection of this device.\n */\n public get connection(): Connection {\n return this._connection;\n }\n private _connection: Connection;\n\n /**\n * Settings and properties of this axis.\n */\n public get settings(): DeviceSettings {\n return this._settings;\n }\n private _settings: DeviceSettings;\n\n /**\n * The device address uniquely identifies the device on the connection.\n * It can be configured or automatically assigned by the renumber command.\n */\n public get deviceAddress(): number {\n return this._deviceAddress;\n }\n private _deviceAddress: number;\n\n /**\n * Identity of the device.\n */\n public get identity(): DeviceIdentity {\n return this._retrieveIdentity();\n }\n\n /**\n * Indicates whether or not the device has been identified.\n */\n public get isIdentified(): boolean {\n return this._retrieveIsIdentified();\n }\n\n /**\n * Unique ID of the device hardware.\n */\n public get deviceId(): number {\n return this.identity.deviceId;\n }\n\n /**\n * Serial number of the device.\n */\n public get serialNumber(): number {\n return this.identity.serialNumber;\n }\n\n /**\n * Name of the product.\n */\n public get name(): string {\n return this.identity.name;\n }\n\n /**\n * Version of the firmware.\n */\n public get firmwareVersion(): FirmwareVersion {\n return this.identity.firmwareVersion;\n }\n\n /**\n * Indicates whether the device is a peripheral or part of an integrated device.\n */\n public get isPeripheral(): boolean {\n return this.identity.isPeripheral;\n }\n\n /**\n * Unique ID of the peripheral hardware.\n */\n public get peripheralId(): number {\n return this.identity.peripheralId;\n }\n\n /**\n * Name of the peripheral hardware.\n */\n public get peripheralName(): string {\n return this.identity.peripheralName;\n }\n\n /**\n * Determines the type of an device and units it accepts.\n */\n public get deviceType(): DeviceType {\n return this.identity.deviceType;\n }\n\n constructor(connection: Connection, deviceAddress: number) {\n this._connection = connection;\n this._settings = new DeviceSettings(this);\n this._deviceAddress = deviceAddress;\n }\n\n /**\n * Sends a generic Binary command to this device.\n * For more information please refer to the\n * [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).\n * @param command Command to send.\n * @param data Optional data argument to the command. Defaults to zero.\n * @param timeout Number of seconds to wait for a response from the device. 0 or negative defaults to 0.5s.\n * @param checkErrors Controls whether to throw an exception when the device rejects the command.\n * @return A response to the command.\n */\n public async genericCommand(\n command: CommandCode,\n data: number = 0,\n timeout: number = 0.0,\n checkErrors: boolean = true\n ): Promise<Message> {\n const request = new gateway.GenericBinaryRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setCommand(command as any);\n request.setData(data);\n request.setTimeout(timeout);\n request.setCheckErrors(checkErrors);\n\n const response = await gateway.callAsync<gateway.BinaryMessage>(\n 'binary/interface/generic_command',\n request,\n gateway.BinaryMessage);\n return Message.fromProtobuf(response.toObject());\n }\n\n /**\n * Sends a generic Binary command to this device without expecting a response.\n * For more information please refer to the\n * [Binary Protocol Manual](https://www.zaber.com/protocol-manual?protocol=Binary#topic_quick_command_reference).\n * @param command Command to send.\n * @param data Optional data argument to the command. Defaults to zero.\n */\n public async genericCommandNoResponse(\n command: CommandCode,\n data: number = 0\n ): Promise<void> {\n const request = new gateway.GenericBinaryRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setCommand(command as any);\n request.setData(data);\n\n await gateway.callAsync('binary/interface/generic_command_no_response', request);\n }\n\n /**\n * Sends a generic Binary command to this device with unit conversions for both sent data and retrieved data.\n * @param command Command to send.\n * @param data Data argument to the command. Set to zero if command does not require argument.\n * @param fromUnit Unit to convert sent data from.\n * @param toUnit Unit to convert retrieved data to.\n * @param timeout Number of seconds to wait for a response from the device. 0 or negative defaults to 0.5s.\n * @return Data that has been converted to the provided unit.\n */\n public async genericCommandWithUnits(\n command: CommandCode,\n data: number,\n fromUnit: Units = Units.NATIVE,\n toUnit: Units = Units.NATIVE,\n timeout: number = 0.0\n ): Promise<number> {\n const request = new gateway.BinaryGenericWithUnitsRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setCommand(command as any);\n request.setData(data);\n request.setFromUnit(fromUnit);\n request.setToUnit(toUnit);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'binary/device/generic_command_with_units',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Homes device. Device returns to its homing position.\n * @param unit Unit to convert returned position to.\n * @param timeout Number of seconds to wait for response from the device chain (defaults to 60s).\n * @return Current position that has been converted to the provided unit.\n */\n public async home(\n unit: Length | Angle | Native = Units.NATIVE,\n timeout: number = Device.DEFAULT_MOVEMENT_TIMEOUT\n ): Promise<number> {\n const request = new gateway.BinaryDeviceHomeRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setUnit(unit);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'binary/device/home',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Stops ongoing device movement. Decelerates until zero speed.\n * @param unit Unit to convert returned position to.\n * @param timeout Number of seconds to wait for response from the device chain (defaults to 60s).\n * @return Current position that has been converted to the provided unit.\n */\n public async stop(\n unit: Length | Angle | Native = Units.NATIVE,\n timeout: number = Device.DEFAULT_MOVEMENT_TIMEOUT\n ): Promise<number> {\n const request = new gateway.BinaryDeviceStopRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setUnit(unit);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'binary/device/stop',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Move device to absolute position.\n * @param position Absolute position.\n * @param unit Unit for the provided position as well as position returned by the device.\n * @param timeout Number of seconds to wait for response from the device chain (defaults to 60s).\n * @return Current position that has been converted to the provided unit.\n */\n public async moveAbsolute(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n timeout: number = Device.DEFAULT_MOVEMENT_TIMEOUT\n ): Promise<number> {\n const request = new gateway.BinaryDeviceMoveRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setType(gateway.BinaryDeviceMoveRequest.MoveType.ABS);\n request.setArg(position);\n request.setUnit(unit);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'binary/device/move',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Move device to position relative to current position.\n * @param position Relative position.\n * @param unit Unit for the provided position as well as position returned by the device.\n * @param timeout Number of seconds to wait for response from the device chain (defaults to 60s).\n * @return Current position that has been converted to the provided unit.\n */\n public async moveRelative(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n timeout: number = Device.DEFAULT_MOVEMENT_TIMEOUT\n ): Promise<number> {\n const request = new gateway.BinaryDeviceMoveRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setType(gateway.BinaryDeviceMoveRequest.MoveType.REL);\n request.setArg(position);\n request.setUnit(unit);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'binary/device/move',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Begins to move device at specified speed.\n * @param velocity Movement velocity.\n * @param unit Unit to convert returned velocity to.\n * @return Device velocity that has been converted to the provided unit.\n */\n public async moveVelocity(\n velocity: number,\n unit: Velocity | AngularVelocity | Native = Units.NATIVE\n ): Promise<number> {\n const request = new gateway.BinaryDeviceMoveRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setType(gateway.BinaryDeviceMoveRequest.MoveType.VEL);\n request.setArg(velocity);\n request.setUnit(unit);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'binary/device/move',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Waits until device stops moving.\n */\n public async waitUntilIdle(): Promise<void> {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n await gateway.callAsync('binary/device/wait_until_idle', request);\n }\n\n /**\n * Check whether the device is moving.\n * @return True if the device is currently executing a motion command.\n */\n public async isBusy(): Promise<boolean> {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = await gateway.callAsync<gateway.BoolResponse>(\n 'binary/device/is_busy',\n request,\n gateway.BoolResponse);\n return response.getValue();\n }\n\n /**\n * Queries the device and the database, gathering information about the product.\n * Without this information features such as unit conversions will not work.\n * Usually, called automatically by detect devices method.\n * @return Device identification data.\n */\n public async identify(): Promise<DeviceIdentity> {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = await gateway.callAsync<gateway.BinaryDeviceIdentity>(\n 'binary/device/identify',\n request,\n gateway.BinaryDeviceIdentity);\n return DeviceIdentity.fromProtobuf(response.toObject());\n }\n\n /**\n * Parks the axis.\n * Motor drivers remain enabled and hold current continues to be applied until the device is powered off.\n * It can later be unparked and moved without first having to home it.\n */\n public async park(): Promise<void> {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n await gateway.callAsync('binary/device/park', request);\n }\n\n /**\n * Unparks axis. Axis will now be able to move.\n */\n public async unpark(): Promise<void> {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n await gateway.callAsync('binary/device/unpark', request);\n }\n\n /**\n * Returns bool indicating whether the axis is parked or not.\n * @return True if the axis is currently parked. False otherwise.\n */\n public async isParked(): Promise<boolean> {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = await gateway.callAsync<gateway.BoolResponse>(\n 'binary/device/is_parked',\n request,\n gateway.BoolResponse);\n return response.getValue();\n }\n\n /**\n * Returns current device position.\n * @param unit Units of position.\n * @return Axis position.\n */\n public async getPosition(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number> {\n const request = new gateway.BinaryDeviceGetSettingRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n request.setSetting(BinarySettings.CURRENT_POSITION);\n request.setUnit(unit);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'binary/device/get_setting',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Returns a string that represents the device.\n * @return A string that represents the device.\n */\n public toString(): string {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = gateway.callSync<gateway.StringResponse>(\n 'binary/device/device_to_string',\n request,\n gateway.StringResponse);\n return response.getValue();\n }\n\n /**\n * Returns identity.\n * @return Device identity.\n */\n private _retrieveIdentity(): DeviceIdentity {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = gateway.callSync<gateway.BinaryDeviceIdentity>(\n 'binary/device/get_identity',\n request,\n gateway.BinaryDeviceIdentity);\n return DeviceIdentity.fromProtobuf(response.toObject());\n }\n\n /**\n * Returns whether or not the device have been identified.\n * @return True if the device has already been identified. False otherwise.\n */\n private _retrieveIsIdentified(): boolean {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.connection.interfaceId);\n request.setDevice(this.deviceAddress);\n\n const response = gateway.callSync<gateway.BoolResponse>(\n 'binary/device/get_is_identified',\n request,\n gateway.BoolResponse);\n return response.getValue();\n }\n}\n"]}
@@ -8,5 +8,6 @@ export declare enum ReplyCode {
8
8
  MANUAL_MOVE = 11,
9
9
  SLIP_TRACKING = 12,
10
10
  UNEXPECTED_POSITION = 13,
11
+ DIAGNOSTIC_TRACKING_REPLY = 240,
11
12
  ERROR = 255
12
13
  }
@@ -14,6 +14,7 @@ var ReplyCode;
14
14
  ReplyCode[ReplyCode["MANUAL_MOVE"] = 11] = "MANUAL_MOVE";
15
15
  ReplyCode[ReplyCode["SLIP_TRACKING"] = 12] = "SLIP_TRACKING";
16
16
  ReplyCode[ReplyCode["UNEXPECTED_POSITION"] = 13] = "UNEXPECTED_POSITION";
17
+ ReplyCode[ReplyCode["DIAGNOSTIC_TRACKING_REPLY"] = 240] = "DIAGNOSTIC_TRACKING_REPLY";
17
18
  ReplyCode[ReplyCode["ERROR"] = 255] = "ERROR";
18
19
  })(ReplyCode = exports.ReplyCode || (exports.ReplyCode = {}));
19
20
  //# sourceMappingURL=reply_code.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reply_code.js","sourceRoot":"","sources":["../../../src/binary/reply_code.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD;;GAEG;AACH,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,2DAAiB,CAAA;IACjB,yDAAgB,CAAA;IAChB,0EAAyB,CAAA;IACzB,wDAAgB,CAAA;IAChB,4DAAkB,CAAA;IAClB,wEAAwB,CAAA;IACxB,6CAAW,CAAA;AACb,CAAC,EARW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAQpB","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\n/**\n * Named constants for all Zaber Binary protocol reply-only command codes.\n */\nexport enum ReplyCode {\n MOVE_TRACKING = 8,\n LIMIT_ACTIVE = 9,\n MANUAL_MOVE_TRACKING = 10,\n MANUAL_MOVE = 11,\n SLIP_TRACKING = 12,\n UNEXPECTED_POSITION = 13,\n ERROR = 255,\n}\n"]}
1
+ {"version":3,"file":"reply_code.js","sourceRoot":"","sources":["../../../src/binary/reply_code.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD;;GAEG;AACH,IAAY,SASX;AATD,WAAY,SAAS;IACnB,2DAAiB,CAAA;IACjB,yDAAgB,CAAA;IAChB,0EAAyB,CAAA;IACzB,wDAAgB,CAAA;IAChB,4DAAkB,CAAA;IAClB,wEAAwB,CAAA;IACxB,qFAA+B,CAAA;IAC/B,6CAAW,CAAA;AACb,CAAC,EATW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QASpB","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\n/**\n * Named constants for all Zaber Binary protocol reply-only command codes.\n */\nexport enum ReplyCode {\n MOVE_TRACKING = 8,\n LIMIT_ACTIVE = 9,\n MANUAL_MOVE_TRACKING = 10,\n MANUAL_MOVE = 11,\n SLIP_TRACKING = 12,\n UNEXPECTED_POSITION = 13,\n DIAGNOSTIC_TRACKING_REPLY = 240,\n ERROR = 255,\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * An object containing any setup issues that will prevent setting a state to a given peripheral.
2
+ * An object containing any setup issues that will prevent setting a state to a given axis.
3
3
  */
4
4
  export interface CanSetStateAxisResponse {
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"can_set_state_axis_response.js","sourceRoot":"","sources":["../../src/can_set_state_axis_response.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAoBtD,IAAiB,uBAAuB,CAUvC;AAVD,WAAiB,uBAAuB;IACzB,8BAAM,GAAG,yBAAyB,CAAC;IAEhD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAgD;QAC3E,OAAO;YACL,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,UAAU,EAAE,MAAM,CAAC,UAAU;SAC9B,CAAC;IACJ,CAAC;IALe,oCAAY,eAK3B,CAAA;AACH,CAAC,EAVgB,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAUvC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\n\n/**\n * An object containing any setup issues that will prevent setting a state to a given peripheral.\n */\nexport interface CanSetStateAxisResponse {\n /**\n * The error blocking applying this state to the given axis.\n */\n error: string;\n\n /**\n * The number of the axis that cannot be set.\n */\n axisNumber: number;\n\n}\n\nexport namespace CanSetStateAxisResponse {\n export const __type = 'CanSetStateAxisResponse';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.CanSetStateAxisResponse.AsObject): CanSetStateAxisResponse {\n return {\n error: pbData.error,\n axisNumber: pbData.axisNumber,\n };\n }\n}\n"]}
1
+ {"version":3,"file":"can_set_state_axis_response.js","sourceRoot":"","sources":["../../src/can_set_state_axis_response.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAoBtD,IAAiB,uBAAuB,CAUvC;AAVD,WAAiB,uBAAuB;IACzB,8BAAM,GAAG,yBAAyB,CAAC;IAEhD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAgD;QAC3E,OAAO;YACL,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,UAAU,EAAE,MAAM,CAAC,UAAU;SAC9B,CAAC;IACJ,CAAC;IALe,oCAAY,eAK3B,CAAA;AACH,CAAC,EAVgB,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAUvC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\n\n/**\n * An object containing any setup issues that will prevent setting a state to a given axis.\n */\nexport interface CanSetStateAxisResponse {\n /**\n * The error blocking applying this state to the given axis.\n */\n error: string;\n\n /**\n * The number of the axis that cannot be set.\n */\n axisNumber: number;\n\n}\n\nexport namespace CanSetStateAxisResponse {\n export const __type = 'CanSetStateAxisResponse';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.CanSetStateAxisResponse.AsObject): CanSetStateAxisResponse {\n return {\n error: pbData.error,\n axisNumber: pbData.axisNumber,\n };\n }\n}\n"]}
@@ -8,9 +8,9 @@ export interface CanSetStateDeviceResponse {
8
8
  */
9
9
  error: string;
10
10
  /**
11
- * Maps axis numbers to errors that block setting state of that axis.
11
+ * A list of errors that block setting state of device's axes.
12
12
  */
13
- peripheralErrors: CanSetStateAxisResponse[];
13
+ axisErrors: CanSetStateAxisResponse[];
14
14
  }
15
15
  export declare namespace CanSetStateDeviceResponse {
16
16
  const __type = "CanSetStateDeviceResponse";
@@ -11,7 +11,7 @@ var CanSetStateDeviceResponse;
11
11
  function fromProtobuf(pbData) {
12
12
  return {
13
13
  error: pbData.error,
14
- peripheralErrors: pbData.peripheralErrorsList.map(item => can_set_state_axis_response_1.CanSetStateAxisResponse.fromProtobuf(item)),
14
+ axisErrors: pbData.axisErrorsList.map(item => can_set_state_axis_response_1.CanSetStateAxisResponse.fromProtobuf(item)),
15
15
  };
16
16
  }
17
17
  CanSetStateDeviceResponse.fromProtobuf = fromProtobuf;
@@ -1 +1 @@
1
- {"version":3,"file":"can_set_state_device_response.js","sourceRoot":"","sources":["../../src/can_set_state_device_response.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAGtD,+EAAwE;AAkBxE,IAAiB,yBAAyB,CAUzC;AAVD,WAAiB,yBAAyB;IAC3B,gCAAM,GAAG,2BAA2B,CAAC;IAElD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAkD;QAC7E,OAAO;YACL,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,gBAAgB,EAAE,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,qDAAuB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SACtG,CAAC;IACJ,CAAC;IALe,sCAAY,eAK3B,CAAA;AACH,CAAC,EAVgB,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAUzC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\nimport { CanSetStateAxisResponse } from './can_set_state_axis_response';\n\n/**\n * An object containing any setup issues that will prevent setting a state to a given device.\n */\nexport interface CanSetStateDeviceResponse {\n /**\n * The error blocking applying this state to the given device.\n */\n error: string;\n\n /**\n * Maps axis numbers to errors that block setting state of that axis.\n */\n peripheralErrors: CanSetStateAxisResponse[];\n\n}\n\nexport namespace CanSetStateDeviceResponse {\n export const __type = 'CanSetStateDeviceResponse';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.CanSetStateDeviceResponse.AsObject): CanSetStateDeviceResponse {\n return {\n error: pbData.error,\n peripheralErrors: pbData.peripheralErrorsList.map(item => CanSetStateAxisResponse.fromProtobuf(item)),\n };\n }\n}\n"]}
1
+ {"version":3,"file":"can_set_state_device_response.js","sourceRoot":"","sources":["../../src/can_set_state_device_response.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAGtD,+EAAwE;AAkBxE,IAAiB,yBAAyB,CAUzC;AAVD,WAAiB,yBAAyB;IAC3B,gCAAM,GAAG,2BAA2B,CAAC;IAElD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAkD;QAC7E,OAAO;YACL,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,UAAU,EAAE,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,qDAAuB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SAC1F,CAAC;IACJ,CAAC;IALe,sCAAY,eAK3B,CAAA;AACH,CAAC,EAVgB,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAUzC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\nimport { CanSetStateAxisResponse } from './can_set_state_axis_response';\n\n/**\n * An object containing any setup issues that will prevent setting a state to a given device.\n */\nexport interface CanSetStateDeviceResponse {\n /**\n * The error blocking applying this state to the given device.\n */\n error: string;\n\n /**\n * A list of errors that block setting state of device's axes.\n */\n axisErrors: CanSetStateAxisResponse[];\n\n}\n\nexport namespace CanSetStateDeviceResponse {\n export const __type = 'CanSetStateDeviceResponse';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.CanSetStateDeviceResponse.AsObject): CanSetStateDeviceResponse {\n return {\n error: pbData.error,\n axisErrors: pbData.axisErrorsList.map(item => CanSetStateAxisResponse.fromProtobuf(item)),\n };\n }\n}\n"]}
@@ -1,7 +1,14 @@
1
+ /// <reference types="node" />
1
2
  import { MotionLibException } from './motion_lib_exception';
3
+ import { DeviceDbFailedExceptionData } from './device_db_failed_exception_data';
2
4
  /**
3
5
  * Thrown when device information cannot be retrieved from the device database.
4
6
  */
5
7
  export declare class DeviceDbFailedException extends MotionLibException {
6
- constructor(message: string);
8
+ /**
9
+ * Additional data for DeviceDbFailedException
10
+ */
11
+ get details(): DeviceDbFailedExceptionData;
12
+ private _details;
13
+ constructor(message: string, customData: Buffer | DeviceDbFailedExceptionData);
7
14
  }
@@ -4,13 +4,28 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.DeviceDbFailedException = void 0;
6
6
  const motion_lib_exception_1 = require("./motion_lib_exception");
7
+ const main_pb_1 = require("../protobufs/main_pb");
8
+ const device_db_failed_exception_data_1 = require("./device_db_failed_exception_data");
7
9
  /**
8
10
  * Thrown when device information cannot be retrieved from the device database.
9
11
  */
10
12
  class DeviceDbFailedException extends motion_lib_exception_1.MotionLibException {
11
- constructor(message) {
13
+ constructor(message, customData) {
12
14
  super(message);
13
15
  Object.setPrototypeOf(this, DeviceDbFailedException.prototype);
16
+ if (Buffer.isBuffer(customData)) {
17
+ const protobufObj = main_pb_1.DeviceDbFailedExceptionData.deserializeBinary(customData);
18
+ this._details = device_db_failed_exception_data_1.DeviceDbFailedExceptionData.fromProtobuf(protobufObj.toObject());
19
+ }
20
+ else {
21
+ this._details = customData;
22
+ }
23
+ }
24
+ /**
25
+ * Additional data for DeviceDbFailedException
26
+ */
27
+ get details() {
28
+ return this._details;
14
29
  }
15
30
  }
16
31
  exports.DeviceDbFailedException = DeviceDbFailedException;
@@ -1 +1 @@
1
- {"version":3,"file":"device_db_failed_exception.js","sourceRoot":"","sources":["../../../src/exceptions/device_db_failed_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAE5D;;GAEG;AACH,MAAa,uBAAwB,SAAQ,yCAAkB;IAE7D,YACE,OAAe;QAEf,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;IACjE,CAAC;CACF;AARD,0DAQC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\n\n/**\n * Thrown when device information cannot be retrieved from the device database.\n */\nexport class DeviceDbFailedException extends MotionLibException {\n\n constructor(\n message: string\n ) {\n super(message);\n Object.setPrototypeOf(this, DeviceDbFailedException.prototype);\n }\n}\n"]}
1
+ {"version":3,"file":"device_db_failed_exception.js","sourceRoot":"","sources":["../../../src/exceptions/device_db_failed_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAyF;AACzF,uFAAgF;AAEhF;;GAEG;AACH,MAAa,uBAAwB,SAAQ,yCAAkB;IAS7D,YACE,OAAe,EACf,UAAgD;QAEhD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;QAE/D,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,qCAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,6DAA2B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SAClF;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;SAC5B;IACH,CAAC;IArBD;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CAiBF;AAvBD,0DAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { DeviceDbFailedExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { DeviceDbFailedExceptionData } from './device_db_failed_exception_data';\n\n/**\n * Thrown when device information cannot be retrieved from the device database.\n */\nexport class DeviceDbFailedException extends MotionLibException {\n /**\n * Additional data for DeviceDbFailedException\n */\n public get details(): DeviceDbFailedExceptionData {\n return this._details;\n }\n private _details: DeviceDbFailedExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | DeviceDbFailedExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, DeviceDbFailedException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = DeviceDbFailedExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Contains additional data for a DeviceDbFailedException.
3
+ */
4
+ export interface DeviceDbFailedExceptionData {
5
+ /**
6
+ * Code describing type of the error.
7
+ */
8
+ code: string;
9
+ }
10
+ export declare namespace DeviceDbFailedExceptionData {
11
+ const __type = "DeviceDbFailedExceptionData";
12
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
+ // ============= DO NOT EDIT DIRECTLY ============= //
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.DeviceDbFailedExceptionData = void 0;
6
+ var DeviceDbFailedExceptionData;
7
+ (function (DeviceDbFailedExceptionData) {
8
+ DeviceDbFailedExceptionData.__type = 'DeviceDbFailedExceptionData';
9
+ /** @internal */
10
+ function fromProtobuf(pbData) {
11
+ return {
12
+ code: pbData.code,
13
+ };
14
+ }
15
+ DeviceDbFailedExceptionData.fromProtobuf = fromProtobuf;
16
+ })(DeviceDbFailedExceptionData = exports.DeviceDbFailedExceptionData || (exports.DeviceDbFailedExceptionData = {}));
17
+ //# sourceMappingURL=device_db_failed_exception_data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"device_db_failed_exception_data.js","sourceRoot":"","sources":["../../../src/exceptions/device_db_failed_exception_data.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAetD,IAAiB,2BAA2B,CAS3C;AATD,WAAiB,2BAA2B;IAC7B,kCAAM,GAAG,6BAA6B,CAAC;IAEpD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAoD;QAC/E,OAAO;YACL,IAAI,EAAE,MAAM,CAAC,IAAI;SAClB,CAAC;IACJ,CAAC;IAJe,wCAAY,eAI3B,CAAA;AACH,CAAC,EATgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAS3C","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Contains additional data for a DeviceDbFailedException.\n */\nexport interface DeviceDbFailedExceptionData {\n /**\n * Code describing type of the error.\n */\n code: string;\n\n}\n\nexport namespace DeviceDbFailedExceptionData {\n export const __type = 'DeviceDbFailedExceptionData';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.DeviceDbFailedExceptionData.AsObject): DeviceDbFailedExceptionData {\n return {\n code: pbData.code,\n };\n }\n}\n"]}
@@ -47,6 +47,7 @@ export { BinaryCommandFailedExceptionData } from './binary_command_failed_except
47
47
  export { CommandFailedExceptionData } from './command_failed_exception_data';
48
48
  export { CommandTooLongExceptionData } from './command_too_long_exception_data';
49
49
  export { DeviceAddressConflictExceptionData } from './device_address_conflict_exception_data';
50
+ export { DeviceDbFailedExceptionData } from './device_db_failed_exception_data';
50
51
  export { GCodeExecutionExceptionData } from './g_code_execution_exception_data';
51
52
  export { GCodeSyntaxExceptionData } from './g_code_syntax_exception_data';
52
53
  export { InvalidPacketExceptionData } from './invalid_packet_exception_data';
@@ -2,8 +2,8 @@
2
2
  // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
3
  // ============= DO NOT EDIT DIRECTLY ============= //
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.GCodeExecutionExceptionData = exports.DeviceAddressConflictExceptionData = exports.CommandTooLongExceptionData = exports.CommandFailedExceptionData = exports.BinaryCommandFailedExceptionData = exports.MotionLibException = exports.UnknownRequestException = exports.TransportAlreadyUsedException = exports.StreamSetupFailedException = exports.StreamMovementInterruptedException = exports.StreamMovementFailedException = exports.StreamModeException = exports.StreamExecutionException = exports.SettingNotFoundException = exports.SetPeripheralStateFailedException = exports.SetDeviceStateFailedException = exports.SerialPortBusyException = exports.RequestTimeoutException = exports.OutOfRequestIdsException = exports.OsFailedException = exports.NotSupportedException = exports.NoValueForKeyException = exports.NoDeviceFoundException = exports.MovementInterruptedException = exports.MovementFailedException = exports.LockstepNotEnabledException = exports.LockstepEnabledException = exports.IoFailedException = exports.IoChannelOutOfRangeException = exports.InvalidResponseException = exports.InvalidParkStateException = exports.InvalidPacketException = exports.InvalidOperationException = exports.InvalidDataException = exports.InvalidArgumentException = exports.InternalErrorException = exports.GCodeSyntaxException = exports.GCodeExecutionException = exports.DeviceNotIdentifiedException = exports.DeviceFailedException = exports.DeviceDbFailedException = exports.DeviceBusyException = exports.DeviceAddressConflictException = exports.ConversionFailedException = exports.ConnectionFailedException = exports.ConnectionClosedException = exports.CommandTooLongException = exports.CommandPreemptedException = exports.CommandFailedException = exports.BinaryCommandFailedException = void 0;
6
- exports.StreamMovementInterruptedExceptionData = exports.StreamMovementFailedExceptionData = exports.StreamExecutionExceptionData = exports.SetPeripheralStateExceptionData = exports.SetDeviceStateExceptionData = exports.MovementInterruptedExceptionData = exports.MovementFailedExceptionData = exports.InvalidResponseExceptionData = exports.InvalidPacketExceptionData = exports.GCodeSyntaxExceptionData = void 0;
5
+ exports.DeviceDbFailedExceptionData = exports.DeviceAddressConflictExceptionData = exports.CommandTooLongExceptionData = exports.CommandFailedExceptionData = exports.BinaryCommandFailedExceptionData = exports.MotionLibException = exports.UnknownRequestException = exports.TransportAlreadyUsedException = exports.StreamSetupFailedException = exports.StreamMovementInterruptedException = exports.StreamMovementFailedException = exports.StreamModeException = exports.StreamExecutionException = exports.SettingNotFoundException = exports.SetPeripheralStateFailedException = exports.SetDeviceStateFailedException = exports.SerialPortBusyException = exports.RequestTimeoutException = exports.OutOfRequestIdsException = exports.OsFailedException = exports.NotSupportedException = exports.NoValueForKeyException = exports.NoDeviceFoundException = exports.MovementInterruptedException = exports.MovementFailedException = exports.LockstepNotEnabledException = exports.LockstepEnabledException = exports.IoFailedException = exports.IoChannelOutOfRangeException = exports.InvalidResponseException = exports.InvalidParkStateException = exports.InvalidPacketException = exports.InvalidOperationException = exports.InvalidDataException = exports.InvalidArgumentException = exports.InternalErrorException = exports.GCodeSyntaxException = exports.GCodeExecutionException = exports.DeviceNotIdentifiedException = exports.DeviceFailedException = exports.DeviceDbFailedException = exports.DeviceBusyException = exports.DeviceAddressConflictException = exports.ConversionFailedException = exports.ConnectionFailedException = exports.ConnectionClosedException = exports.CommandTooLongException = exports.CommandPreemptedException = exports.CommandFailedException = exports.BinaryCommandFailedException = void 0;
6
+ exports.StreamMovementInterruptedExceptionData = exports.StreamMovementFailedExceptionData = exports.StreamExecutionExceptionData = exports.SetPeripheralStateExceptionData = exports.SetDeviceStateExceptionData = exports.MovementInterruptedExceptionData = exports.MovementFailedExceptionData = exports.InvalidResponseExceptionData = exports.InvalidPacketExceptionData = exports.GCodeSyntaxExceptionData = exports.GCodeExecutionExceptionData = void 0;
7
7
  var binary_command_failed_exception_1 = require("./binary_command_failed_exception");
8
8
  Object.defineProperty(exports, "BinaryCommandFailedException", { enumerable: true, get: function () { return binary_command_failed_exception_1.BinaryCommandFailedException; } });
9
9
  var command_failed_exception_1 = require("./command_failed_exception");
@@ -102,6 +102,8 @@ var command_too_long_exception_data_1 = require("./command_too_long_exception_da
102
102
  Object.defineProperty(exports, "CommandTooLongExceptionData", { enumerable: true, get: function () { return command_too_long_exception_data_1.CommandTooLongExceptionData; } });
103
103
  var device_address_conflict_exception_data_1 = require("./device_address_conflict_exception_data");
104
104
  Object.defineProperty(exports, "DeviceAddressConflictExceptionData", { enumerable: true, get: function () { return device_address_conflict_exception_data_1.DeviceAddressConflictExceptionData; } });
105
+ var device_db_failed_exception_data_1 = require("./device_db_failed_exception_data");
106
+ Object.defineProperty(exports, "DeviceDbFailedExceptionData", { enumerable: true, get: function () { return device_db_failed_exception_data_1.DeviceDbFailedExceptionData; } });
105
107
  var g_code_execution_exception_data_1 = require("./g_code_execution_exception_data");
106
108
  Object.defineProperty(exports, "GCodeExecutionExceptionData", { enumerable: true, get: function () { return g_code_execution_exception_data_1.GCodeExecutionExceptionData; } });
107
109
  var g_code_syntax_exception_data_1 = require("./g_code_syntax_exception_data");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exceptions/index.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;AAEtD,qFAAiF;AAAxE,+IAAA,4BAA4B,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,+IAAA,4BAA4B,OAAA;AACrC,iGAA4F;AAAnF,0JAAA,iCAAiC,OAAA;AAC1C,2GAAsG;AAA7F,oKAAA,sCAAsC,OAAA","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nexport { BinaryCommandFailedException } from './binary_command_failed_exception';\nexport { CommandFailedException } from './command_failed_exception';\nexport { CommandPreemptedException } from './command_preempted_exception';\nexport { CommandTooLongException } from './command_too_long_exception';\nexport { ConnectionClosedException } from './connection_closed_exception';\nexport { ConnectionFailedException } from './connection_failed_exception';\nexport { ConversionFailedException } from './conversion_failed_exception';\nexport { DeviceAddressConflictException } from './device_address_conflict_exception';\nexport { DeviceBusyException } from './device_busy_exception';\nexport { DeviceDbFailedException } from './device_db_failed_exception';\nexport { DeviceFailedException } from './device_failed_exception';\nexport { DeviceNotIdentifiedException } from './device_not_identified_exception';\nexport { GCodeExecutionException } from './g_code_execution_exception';\nexport { GCodeSyntaxException } from './g_code_syntax_exception';\nexport { InternalErrorException } from './internal_error_exception';\nexport { InvalidArgumentException } from './invalid_argument_exception';\nexport { InvalidDataException } from './invalid_data_exception';\nexport { InvalidOperationException } from './invalid_operation_exception';\nexport { InvalidPacketException } from './invalid_packet_exception';\nexport { InvalidParkStateException } from './invalid_park_state_exception';\nexport { InvalidResponseException } from './invalid_response_exception';\nexport { IoChannelOutOfRangeException } from './io_channel_out_of_range_exception';\nexport { IoFailedException } from './io_failed_exception';\nexport { LockstepEnabledException } from './lockstep_enabled_exception';\nexport { LockstepNotEnabledException } from './lockstep_not_enabled_exception';\nexport { MovementFailedException } from './movement_failed_exception';\nexport { MovementInterruptedException } from './movement_interrupted_exception';\nexport { NoDeviceFoundException } from './no_device_found_exception';\nexport { NoValueForKeyException } from './no_value_for_key_exception';\nexport { NotSupportedException } from './not_supported_exception';\nexport { OsFailedException } from './os_failed_exception';\nexport { OutOfRequestIdsException } from './out_of_request_ids_exception';\nexport { RequestTimeoutException } from './request_timeout_exception';\nexport { SerialPortBusyException } from './serial_port_busy_exception';\nexport { SetDeviceStateFailedException } from './set_device_state_failed_exception';\nexport { SetPeripheralStateFailedException } from './set_peripheral_state_failed_exception';\nexport { SettingNotFoundException } from './setting_not_found_exception';\nexport { StreamExecutionException } from './stream_execution_exception';\nexport { StreamModeException } from './stream_mode_exception';\nexport { StreamMovementFailedException } from './stream_movement_failed_exception';\nexport { StreamMovementInterruptedException } from './stream_movement_interrupted_exception';\nexport { StreamSetupFailedException } from './stream_setup_failed_exception';\nexport { TransportAlreadyUsedException } from './transport_already_used_exception';\nexport { UnknownRequestException } from './unknown_request_exception';\nexport { MotionLibException } from './motion_lib_exception';\n\nexport { BinaryCommandFailedExceptionData } from './binary_command_failed_exception_data';\nexport { CommandFailedExceptionData } from './command_failed_exception_data';\nexport { CommandTooLongExceptionData } from './command_too_long_exception_data';\nexport { DeviceAddressConflictExceptionData } from './device_address_conflict_exception_data';\nexport { GCodeExecutionExceptionData } from './g_code_execution_exception_data';\nexport { GCodeSyntaxExceptionData } from './g_code_syntax_exception_data';\nexport { InvalidPacketExceptionData } from './invalid_packet_exception_data';\nexport { InvalidResponseExceptionData } from './invalid_response_exception_data';\nexport { MovementFailedExceptionData } from './movement_failed_exception_data';\nexport { MovementInterruptedExceptionData } from './movement_interrupted_exception_data';\nexport { SetDeviceStateExceptionData } from './set_device_state_exception_data';\nexport { SetPeripheralStateExceptionData } from './set_peripheral_state_exception_data';\nexport { StreamExecutionExceptionData } from './stream_execution_exception_data';\nexport { StreamMovementFailedExceptionData } from './stream_movement_failed_exception_data';\nexport { StreamMovementInterruptedExceptionData } from './stream_movement_interrupted_exception_data';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exceptions/index.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;AAEtD,qFAAiF;AAAxE,+IAAA,4BAA4B,OAAA;AACrC,uEAAoE;AAA3D,kIAAA,sBAAsB,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,+IAAA,4BAA4B,OAAA;AACrC,iGAA4F;AAAnF,0JAAA,iCAAiC,OAAA;AAC1C,2GAAsG;AAA7F,oKAAA,sCAAsC,OAAA","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nexport { BinaryCommandFailedException } from './binary_command_failed_exception';\nexport { CommandFailedException } from './command_failed_exception';\nexport { CommandPreemptedException } from './command_preempted_exception';\nexport { CommandTooLongException } from './command_too_long_exception';\nexport { ConnectionClosedException } from './connection_closed_exception';\nexport { ConnectionFailedException } from './connection_failed_exception';\nexport { ConversionFailedException } from './conversion_failed_exception';\nexport { DeviceAddressConflictException } from './device_address_conflict_exception';\nexport { DeviceBusyException } from './device_busy_exception';\nexport { DeviceDbFailedException } from './device_db_failed_exception';\nexport { DeviceFailedException } from './device_failed_exception';\nexport { DeviceNotIdentifiedException } from './device_not_identified_exception';\nexport { GCodeExecutionException } from './g_code_execution_exception';\nexport { GCodeSyntaxException } from './g_code_syntax_exception';\nexport { InternalErrorException } from './internal_error_exception';\nexport { InvalidArgumentException } from './invalid_argument_exception';\nexport { InvalidDataException } from './invalid_data_exception';\nexport { InvalidOperationException } from './invalid_operation_exception';\nexport { InvalidPacketException } from './invalid_packet_exception';\nexport { InvalidParkStateException } from './invalid_park_state_exception';\nexport { InvalidResponseException } from './invalid_response_exception';\nexport { IoChannelOutOfRangeException } from './io_channel_out_of_range_exception';\nexport { IoFailedException } from './io_failed_exception';\nexport { LockstepEnabledException } from './lockstep_enabled_exception';\nexport { LockstepNotEnabledException } from './lockstep_not_enabled_exception';\nexport { MovementFailedException } from './movement_failed_exception';\nexport { MovementInterruptedException } from './movement_interrupted_exception';\nexport { NoDeviceFoundException } from './no_device_found_exception';\nexport { NoValueForKeyException } from './no_value_for_key_exception';\nexport { NotSupportedException } from './not_supported_exception';\nexport { OsFailedException } from './os_failed_exception';\nexport { OutOfRequestIdsException } from './out_of_request_ids_exception';\nexport { RequestTimeoutException } from './request_timeout_exception';\nexport { SerialPortBusyException } from './serial_port_busy_exception';\nexport { SetDeviceStateFailedException } from './set_device_state_failed_exception';\nexport { SetPeripheralStateFailedException } from './set_peripheral_state_failed_exception';\nexport { SettingNotFoundException } from './setting_not_found_exception';\nexport { StreamExecutionException } from './stream_execution_exception';\nexport { StreamModeException } from './stream_mode_exception';\nexport { StreamMovementFailedException } from './stream_movement_failed_exception';\nexport { StreamMovementInterruptedException } from './stream_movement_interrupted_exception';\nexport { StreamSetupFailedException } from './stream_setup_failed_exception';\nexport { TransportAlreadyUsedException } from './transport_already_used_exception';\nexport { UnknownRequestException } from './unknown_request_exception';\nexport { MotionLibException } from './motion_lib_exception';\n\nexport { BinaryCommandFailedExceptionData } from './binary_command_failed_exception_data';\nexport { CommandFailedExceptionData } from './command_failed_exception_data';\nexport { CommandTooLongExceptionData } from './command_too_long_exception_data';\nexport { DeviceAddressConflictExceptionData } from './device_address_conflict_exception_data';\nexport { DeviceDbFailedExceptionData } from './device_db_failed_exception_data';\nexport { GCodeExecutionExceptionData } from './g_code_execution_exception_data';\nexport { GCodeSyntaxExceptionData } from './g_code_syntax_exception_data';\nexport { InvalidPacketExceptionData } from './invalid_packet_exception_data';\nexport { InvalidResponseExceptionData } from './invalid_response_exception_data';\nexport { MovementFailedExceptionData } from './movement_failed_exception_data';\nexport { MovementInterruptedExceptionData } from './movement_interrupted_exception_data';\nexport { SetDeviceStateExceptionData } from './set_device_state_exception_data';\nexport { SetPeripheralStateExceptionData } from './set_peripheral_state_exception_data';\nexport { StreamExecutionExceptionData } from './stream_execution_exception_data';\nexport { StreamMovementFailedExceptionData } from './stream_movement_failed_exception_data';\nexport { StreamMovementInterruptedExceptionData } from './stream_movement_interrupted_exception_data';\n"]}