@zaber/motion 2.15.1 → 2.15.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 (68) hide show
  1. package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
  2. package/dist/lib/ascii/all_axes.js +3 -3
  3. package/dist/lib/ascii/all_axes.js.map +1 -1
  4. package/dist/lib/ascii/axis.js +7 -7
  5. package/dist/lib/ascii/axis.js.map +1 -1
  6. package/dist/lib/ascii/connection.js +5 -5
  7. package/dist/lib/ascii/connection.js.map +1 -1
  8. package/dist/lib/ascii/device.js +10 -10
  9. package/dist/lib/ascii/device.js.map +1 -1
  10. package/dist/lib/ascii/lockstep.js +4 -4
  11. package/dist/lib/ascii/lockstep.js.map +1 -1
  12. package/dist/lib/ascii/oscilloscope.js +3 -3
  13. package/dist/lib/ascii/oscilloscope.js.map +1 -1
  14. package/dist/lib/ascii/oscilloscope_data.js +4 -4
  15. package/dist/lib/ascii/oscilloscope_data.js.map +1 -1
  16. package/dist/lib/ascii/servo_tuner.js +3 -3
  17. package/dist/lib/ascii/servo_tuner.js.map +1 -1
  18. package/dist/lib/ascii/stream.js +4 -4
  19. package/dist/lib/ascii/stream.js.map +1 -1
  20. package/dist/lib/ascii/stream_buffer.js +4 -4
  21. package/dist/lib/ascii/stream_buffer.js.map +1 -1
  22. package/dist/lib/ascii/transport.js +3 -3
  23. package/dist/lib/ascii/transport.js.map +1 -1
  24. package/dist/lib/binary/connection.js +5 -5
  25. package/dist/lib/binary/connection.js.map +1 -1
  26. package/dist/lib/binary/device.js +5 -5
  27. package/dist/lib/binary/device.js.map +1 -1
  28. package/dist/lib/exceptions/binary_command_failed_exception.js +6 -6
  29. package/dist/lib/exceptions/binary_command_failed_exception.js.map +1 -1
  30. package/dist/lib/exceptions/command_failed_exception.js +6 -6
  31. package/dist/lib/exceptions/command_failed_exception.js.map +1 -1
  32. package/dist/lib/exceptions/command_too_long_exception.js +6 -6
  33. package/dist/lib/exceptions/command_too_long_exception.js.map +1 -1
  34. package/dist/lib/exceptions/device_address_conflict_exception.js +6 -6
  35. package/dist/lib/exceptions/device_address_conflict_exception.js.map +1 -1
  36. package/dist/lib/exceptions/device_db_failed_exception.js +6 -6
  37. package/dist/lib/exceptions/device_db_failed_exception.js.map +1 -1
  38. package/dist/lib/exceptions/g_code_execution_exception.js +6 -6
  39. package/dist/lib/exceptions/g_code_execution_exception.js.map +1 -1
  40. package/dist/lib/exceptions/g_code_syntax_exception.js +6 -6
  41. package/dist/lib/exceptions/g_code_syntax_exception.js.map +1 -1
  42. package/dist/lib/exceptions/invalid_packet_exception.js +6 -6
  43. package/dist/lib/exceptions/invalid_packet_exception.js.map +1 -1
  44. package/dist/lib/exceptions/invalid_response_exception.js +6 -6
  45. package/dist/lib/exceptions/invalid_response_exception.js.map +1 -1
  46. package/dist/lib/exceptions/movement_failed_exception.js +6 -6
  47. package/dist/lib/exceptions/movement_failed_exception.js.map +1 -1
  48. package/dist/lib/exceptions/movement_interrupted_exception.js +6 -6
  49. package/dist/lib/exceptions/movement_interrupted_exception.js.map +1 -1
  50. package/dist/lib/exceptions/set_device_state_failed_exception.js +6 -6
  51. package/dist/lib/exceptions/set_device_state_failed_exception.js.map +1 -1
  52. package/dist/lib/exceptions/set_peripheral_state_failed_exception.js +6 -6
  53. package/dist/lib/exceptions/set_peripheral_state_failed_exception.js.map +1 -1
  54. package/dist/lib/exceptions/stream_execution_exception.js +6 -6
  55. package/dist/lib/exceptions/stream_execution_exception.js.map +1 -1
  56. package/dist/lib/exceptions/stream_movement_failed_exception.js +6 -6
  57. package/dist/lib/exceptions/stream_movement_failed_exception.js.map +1 -1
  58. package/dist/lib/exceptions/stream_movement_interrupted_exception.js +6 -6
  59. package/dist/lib/exceptions/stream_movement_interrupted_exception.js.map +1 -1
  60. package/dist/lib/gateway/bindings.d.ts +1 -1
  61. package/dist/lib/gateway/wasm-exec.js +1 -1
  62. package/dist/lib/gateway/wasm-exec.js.map +1 -1
  63. package/dist/lib/gcode/offline_translator.js +4 -4
  64. package/dist/lib/gcode/offline_translator.js.map +1 -1
  65. package/dist/lib/gcode/translator.js +4 -4
  66. package/dist/lib/gcode/translator.js.map +1 -1
  67. package/dist/lib/units.d.ts +2 -2
  68. package/package.json +2 -2
@@ -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,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;;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;IACpC,CAAC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AAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,gCAAgC,EAChC,OAAO,EACP,OAAO,CAAC,cAAc,CAAC,CAAC;QAC1B,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACK,iBAAiB;QACvB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;QACjD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QACpD,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAEtC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,4BAA4B,EAC5B,OAAO,EACP,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAChC,OAAO,gCAAc,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;;OAGG;IACK,qBAAqB;QAC3B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;QACjD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QACpD,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAEtC,MAAM,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.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"]}
1
+ {"version":3,"file":"device.js","sourceRoot":"","sources":["../../../src/binary/device.ts"],"names":[],"mappings":";AAAA,s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Ac,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QACpD,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAEtC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,4BAA4B,EAC5B,OAAO,EACP,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAChC,OAAO,gCAAc,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;;OAGG;IACK,qBAAqB;QAC3B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;QACjD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QACpD,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAEtC,MAAM,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.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"]}
@@ -10,6 +10,12 @@ const binary_command_failed_exception_data_1 = require("./binary_command_failed_
10
10
  * Thrown when a device rejects a binary command with an error.
11
11
  */
12
12
  class BinaryCommandFailedException extends motion_lib_exception_1.MotionLibException {
13
+ /**
14
+ * Additional data for BinaryCommandFailedException
15
+ */
16
+ get details() {
17
+ return this._details;
18
+ }
13
19
  constructor(message, customData) {
14
20
  super(message);
15
21
  Object.setPrototypeOf(this, BinaryCommandFailedException.prototype);
@@ -21,12 +27,6 @@ class BinaryCommandFailedException extends motion_lib_exception_1.MotionLibExcep
21
27
  this._details = customData;
22
28
  }
23
29
  }
24
- /**
25
- * Additional data for BinaryCommandFailedException
26
- */
27
- get details() {
28
- return this._details;
29
- }
30
30
  }
31
31
  exports.BinaryCommandFailedException = BinaryCommandFailedException;
32
32
  //# sourceMappingURL=binary_command_failed_exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"binary_command_failed_exception.js","sourceRoot":"","sources":["../../../src/exceptions/binary_command_failed_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAA8F;AAC9F,iGAA0F;AAE1F;;GAEG;AACH,MAAa,4BAA6B,SAAQ,yCAAkB;IASlE,YACE,OAAe,EACf,UAAqD;QAErD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,4BAA4B,CAAC,SAAS,CAAC,CAAC;QAEpE,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,0CAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,uEAAgC,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SACvF;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,oEAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { BinaryCommandFailedExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { BinaryCommandFailedExceptionData } from './binary_command_failed_exception_data';\n\n/**\n * Thrown when a device rejects a binary command with an error.\n */\nexport class BinaryCommandFailedException extends MotionLibException {\n /**\n * Additional data for BinaryCommandFailedException\n */\n public get details(): BinaryCommandFailedExceptionData {\n return this._details;\n }\n private _details: BinaryCommandFailedExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | BinaryCommandFailedExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, BinaryCommandFailedException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = BinaryCommandFailedExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"binary_command_failed_exception.js","sourceRoot":"","sources":["../../../src/exceptions/binary_command_failed_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAA8F;AAC9F,iGAA0F;AAE1F;;GAEG;AACH,MAAa,4BAA6B,SAAQ,yCAAkB;IAClE;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD,YACE,OAAe,EACf,UAAqD;QAErD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,4BAA4B,CAAC,SAAS,CAAC,CAAC;QAEpE,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,0CAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,uEAAgC,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SACvF;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;SAC5B;IACH,CAAC;CACF;AAvBD,oEAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { BinaryCommandFailedExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { BinaryCommandFailedExceptionData } from './binary_command_failed_exception_data';\n\n/**\n * Thrown when a device rejects a binary command with an error.\n */\nexport class BinaryCommandFailedException extends MotionLibException {\n /**\n * Additional data for BinaryCommandFailedException\n */\n public get details(): BinaryCommandFailedExceptionData {\n return this._details;\n }\n private _details: BinaryCommandFailedExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | BinaryCommandFailedExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, BinaryCommandFailedException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = BinaryCommandFailedExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
@@ -10,6 +10,12 @@ const command_failed_exception_data_1 = require("./command_failed_exception_data
10
10
  * Thrown when a device rejects a command.
11
11
  */
12
12
  class CommandFailedException extends motion_lib_exception_1.MotionLibException {
13
+ /**
14
+ * Additional data for CommandFailedException
15
+ */
16
+ get details() {
17
+ return this._details;
18
+ }
13
19
  constructor(message, customData) {
14
20
  super(message);
15
21
  Object.setPrototypeOf(this, CommandFailedException.prototype);
@@ -21,12 +27,6 @@ class CommandFailedException extends motion_lib_exception_1.MotionLibException {
21
27
  this._details = customData;
22
28
  }
23
29
  }
24
- /**
25
- * Additional data for CommandFailedException
26
- */
27
- get details() {
28
- return this._details;
29
- }
30
30
  }
31
31
  exports.CommandFailedException = CommandFailedException;
32
32
  //# sourceMappingURL=command_failed_exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"command_failed_exception.js","sourceRoot":"","sources":["../../../src/exceptions/command_failed_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAwF;AACxF,mFAA6E;AAE7E;;GAEG;AACH,MAAa,sBAAuB,SAAQ,yCAAkB;IAS5D,YACE,OAAe,EACf,UAA+C;QAE/C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;QAE9D,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,oCAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,0DAA0B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SACjF;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,wDAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { CommandFailedExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { CommandFailedExceptionData } from './command_failed_exception_data';\n\n/**\n * Thrown when a device rejects a command.\n */\nexport class CommandFailedException extends MotionLibException {\n /**\n * Additional data for CommandFailedException\n */\n public get details(): CommandFailedExceptionData {\n return this._details;\n }\n private _details: CommandFailedExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | CommandFailedExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, CommandFailedException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = CommandFailedExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"command_failed_exception.js","sourceRoot":"","sources":["../../../src/exceptions/command_failed_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAwF;AACxF,mFAA6E;AAE7E;;GAEG;AACH,MAAa,sBAAuB,SAAQ,yCAAkB;IAC5D;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD,YACE,OAAe,EACf,UAA+C;QAE/C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;QAE9D,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,oCAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,0DAA0B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SACjF;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;SAC5B;IACH,CAAC;CACF;AAvBD,wDAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { CommandFailedExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { CommandFailedExceptionData } from './command_failed_exception_data';\n\n/**\n * Thrown when a device rejects a command.\n */\nexport class CommandFailedException extends MotionLibException {\n /**\n * Additional data for CommandFailedException\n */\n public get details(): CommandFailedExceptionData {\n return this._details;\n }\n private _details: CommandFailedExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | CommandFailedExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, CommandFailedException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = CommandFailedExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
@@ -10,6 +10,12 @@ const command_too_long_exception_data_1 = require("./command_too_long_exception_
10
10
  * Thrown when a command is too long to be written by the ASCII protocol, even when continued across multiple lines.
11
11
  */
12
12
  class CommandTooLongException extends motion_lib_exception_1.MotionLibException {
13
+ /**
14
+ * Additional data for CommandTooLongException
15
+ */
16
+ get details() {
17
+ return this._details;
18
+ }
13
19
  constructor(message, customData) {
14
20
  super(message);
15
21
  Object.setPrototypeOf(this, CommandTooLongException.prototype);
@@ -21,12 +27,6 @@ class CommandTooLongException extends motion_lib_exception_1.MotionLibException
21
27
  this._details = customData;
22
28
  }
23
29
  }
24
- /**
25
- * Additional data for CommandTooLongException
26
- */
27
- get details() {
28
- return this._details;
29
- }
30
30
  }
31
31
  exports.CommandTooLongException = CommandTooLongException;
32
32
  //# sourceMappingURL=command_too_long_exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"command_too_long_exception.js","sourceRoot":"","sources":["../../../src/exceptions/command_too_long_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 { CommandTooLongExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { CommandTooLongExceptionData } from './command_too_long_exception_data';\n\n/**\n * Thrown when a command is too long to be written by the ASCII protocol, even when continued across multiple lines.\n */\nexport class CommandTooLongException extends MotionLibException {\n /**\n * Additional data for CommandTooLongException\n */\n public get details(): CommandTooLongExceptionData {\n return this._details;\n }\n private _details: CommandTooLongExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | CommandTooLongExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, CommandTooLongException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = CommandTooLongExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"command_too_long_exception.js","sourceRoot":"","sources":["../../../src/exceptions/command_too_long_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAyF;AACzF,uFAAgF;AAEhF;;GAEG;AACH,MAAa,uBAAwB,SAAQ,yCAAkB;IAC7D;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD,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;CACF;AAvBD,0DAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { CommandTooLongExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { CommandTooLongExceptionData } from './command_too_long_exception_data';\n\n/**\n * Thrown when a command is too long to be written by the ASCII protocol, even when continued across multiple lines.\n */\nexport class CommandTooLongException extends MotionLibException {\n /**\n * Additional data for CommandTooLongException\n */\n public get details(): CommandTooLongExceptionData {\n return this._details;\n }\n private _details: CommandTooLongExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | CommandTooLongExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, CommandTooLongException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = CommandTooLongExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
@@ -10,6 +10,12 @@ const device_address_conflict_exception_data_1 = require("./device_address_confl
10
10
  * Thrown when there is a conflict in device numbers preventing unique addressing.
11
11
  */
12
12
  class DeviceAddressConflictException extends motion_lib_exception_1.MotionLibException {
13
+ /**
14
+ * Additional data for DeviceAddressConflictException
15
+ */
16
+ get details() {
17
+ return this._details;
18
+ }
13
19
  constructor(message, customData) {
14
20
  super(message);
15
21
  Object.setPrototypeOf(this, DeviceAddressConflictException.prototype);
@@ -21,12 +27,6 @@ class DeviceAddressConflictException extends motion_lib_exception_1.MotionLibExc
21
27
  this._details = customData;
22
28
  }
23
29
  }
24
- /**
25
- * Additional data for DeviceAddressConflictException
26
- */
27
- get details() {
28
- return this._details;
29
- }
30
30
  }
31
31
  exports.DeviceAddressConflictException = DeviceAddressConflictException;
32
32
  //# sourceMappingURL=device_address_conflict_exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"device_address_conflict_exception.js","sourceRoot":"","sources":["../../../src/exceptions/device_address_conflict_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAgG;AAChG,qGAA8F;AAE9F;;GAEG;AACH,MAAa,8BAA+B,SAAQ,yCAAkB;IASpE,YACE,OAAe,EACf,UAAuD;QAEvD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,8BAA8B,CAAC,SAAS,CAAC,CAAC;QAEtE,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,4CAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,2EAAkC,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SACzF;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,wEAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { DeviceAddressConflictExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { DeviceAddressConflictExceptionData } from './device_address_conflict_exception_data';\n\n/**\n * Thrown when there is a conflict in device numbers preventing unique addressing.\n */\nexport class DeviceAddressConflictException extends MotionLibException {\n /**\n * Additional data for DeviceAddressConflictException\n */\n public get details(): DeviceAddressConflictExceptionData {\n return this._details;\n }\n private _details: DeviceAddressConflictExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | DeviceAddressConflictExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, DeviceAddressConflictException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = DeviceAddressConflictExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"device_address_conflict_exception.js","sourceRoot":"","sources":["../../../src/exceptions/device_address_conflict_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAgG;AAChG,qGAA8F;AAE9F;;GAEG;AACH,MAAa,8BAA+B,SAAQ,yCAAkB;IACpE;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD,YACE,OAAe,EACf,UAAuD;QAEvD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,8BAA8B,CAAC,SAAS,CAAC,CAAC;QAEtE,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,4CAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,2EAAkC,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SACzF;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;SAC5B;IACH,CAAC;CACF;AAvBD,wEAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { DeviceAddressConflictExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { DeviceAddressConflictExceptionData } from './device_address_conflict_exception_data';\n\n/**\n * Thrown when there is a conflict in device numbers preventing unique addressing.\n */\nexport class DeviceAddressConflictException extends MotionLibException {\n /**\n * Additional data for DeviceAddressConflictException\n */\n public get details(): DeviceAddressConflictExceptionData {\n return this._details;\n }\n private _details: DeviceAddressConflictExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | DeviceAddressConflictExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, DeviceAddressConflictException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = DeviceAddressConflictExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
@@ -10,6 +10,12 @@ const device_db_failed_exception_data_1 = require("./device_db_failed_exception_
10
10
  * Thrown when device information cannot be retrieved from the device database.
11
11
  */
12
12
  class DeviceDbFailedException extends motion_lib_exception_1.MotionLibException {
13
+ /**
14
+ * Additional data for DeviceDbFailedException
15
+ */
16
+ get details() {
17
+ return this._details;
18
+ }
13
19
  constructor(message, customData) {
14
20
  super(message);
15
21
  Object.setPrototypeOf(this, DeviceDbFailedException.prototype);
@@ -21,12 +27,6 @@ class DeviceDbFailedException extends motion_lib_exception_1.MotionLibException
21
27
  this._details = customData;
22
28
  }
23
29
  }
24
- /**
25
- * Additional data for DeviceDbFailedException
26
- */
27
- get details() {
28
- return this._details;
29
- }
30
30
  }
31
31
  exports.DeviceDbFailedException = DeviceDbFailedException;
32
32
  //# sourceMappingURL=device_db_failed_exception.js.map
@@ -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;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"]}
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;IAC7D;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD,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;CACF;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"]}
@@ -10,6 +10,12 @@ const g_code_execution_exception_data_1 = require("./g_code_execution_exception_
10
10
  * Thrown when a block of G-Code cannot be executed.
11
11
  */
12
12
  class GCodeExecutionException extends motion_lib_exception_1.MotionLibException {
13
+ /**
14
+ * Additional data for GCodeExecutionException
15
+ */
16
+ get details() {
17
+ return this._details;
18
+ }
13
19
  constructor(message, customData) {
14
20
  super(message);
15
21
  Object.setPrototypeOf(this, GCodeExecutionException.prototype);
@@ -21,12 +27,6 @@ class GCodeExecutionException extends motion_lib_exception_1.MotionLibException
21
27
  this._details = customData;
22
28
  }
23
29
  }
24
- /**
25
- * Additional data for GCodeExecutionException
26
- */
27
- get details() {
28
- return this._details;
29
- }
30
30
  }
31
31
  exports.GCodeExecutionException = GCodeExecutionException;
32
32
  //# sourceMappingURL=g_code_execution_exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"g_code_execution_exception.js","sourceRoot":"","sources":["../../../src/exceptions/g_code_execution_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 { GCodeExecutionExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { GCodeExecutionExceptionData } from './g_code_execution_exception_data';\n\n/**\n * Thrown when a block of G-Code cannot be executed.\n */\nexport class GCodeExecutionException extends MotionLibException {\n /**\n * Additional data for GCodeExecutionException\n */\n public get details(): GCodeExecutionExceptionData {\n return this._details;\n }\n private _details: GCodeExecutionExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | GCodeExecutionExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, GCodeExecutionException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = GCodeExecutionExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"g_code_execution_exception.js","sourceRoot":"","sources":["../../../src/exceptions/g_code_execution_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAyF;AACzF,uFAAgF;AAEhF;;GAEG;AACH,MAAa,uBAAwB,SAAQ,yCAAkB;IAC7D;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD,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;CACF;AAvBD,0DAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { GCodeExecutionExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { GCodeExecutionExceptionData } from './g_code_execution_exception_data';\n\n/**\n * Thrown when a block of G-Code cannot be executed.\n */\nexport class GCodeExecutionException extends MotionLibException {\n /**\n * Additional data for GCodeExecutionException\n */\n public get details(): GCodeExecutionExceptionData {\n return this._details;\n }\n private _details: GCodeExecutionExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | GCodeExecutionExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, GCodeExecutionException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = GCodeExecutionExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
@@ -10,6 +10,12 @@ const g_code_syntax_exception_data_1 = require("./g_code_syntax_exception_data")
10
10
  * Thrown when a block of G-Code cannot be parsed.
11
11
  */
12
12
  class GCodeSyntaxException extends motion_lib_exception_1.MotionLibException {
13
+ /**
14
+ * Additional data for GCodeSyntaxException
15
+ */
16
+ get details() {
17
+ return this._details;
18
+ }
13
19
  constructor(message, customData) {
14
20
  super(message);
15
21
  Object.setPrototypeOf(this, GCodeSyntaxException.prototype);
@@ -21,12 +27,6 @@ class GCodeSyntaxException extends motion_lib_exception_1.MotionLibException {
21
27
  this._details = customData;
22
28
  }
23
29
  }
24
- /**
25
- * Additional data for GCodeSyntaxException
26
- */
27
- get details() {
28
- return this._details;
29
- }
30
30
  }
31
31
  exports.GCodeSyntaxException = GCodeSyntaxException;
32
32
  //# sourceMappingURL=g_code_syntax_exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"g_code_syntax_exception.js","sourceRoot":"","sources":["../../../src/exceptions/g_code_syntax_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAsF;AACtF,iFAA0E;AAE1E;;GAEG;AACH,MAAa,oBAAqB,SAAQ,yCAAkB;IAS1D,YACE,OAAe,EACf,UAA6C;QAE7C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;QAE5D,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,kCAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,uDAAwB,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SAC/E;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,oDAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { GCodeSyntaxExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { GCodeSyntaxExceptionData } from './g_code_syntax_exception_data';\n\n/**\n * Thrown when a block of G-Code cannot be parsed.\n */\nexport class GCodeSyntaxException extends MotionLibException {\n /**\n * Additional data for GCodeSyntaxException\n */\n public get details(): GCodeSyntaxExceptionData {\n return this._details;\n }\n private _details: GCodeSyntaxExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | GCodeSyntaxExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, GCodeSyntaxException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = GCodeSyntaxExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"g_code_syntax_exception.js","sourceRoot":"","sources":["../../../src/exceptions/g_code_syntax_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAsF;AACtF,iFAA0E;AAE1E;;GAEG;AACH,MAAa,oBAAqB,SAAQ,yCAAkB;IAC1D;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD,YACE,OAAe,EACf,UAA6C;QAE7C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;QAE5D,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,kCAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,uDAAwB,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SAC/E;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;SAC5B;IACH,CAAC;CACF;AAvBD,oDAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { GCodeSyntaxExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { GCodeSyntaxExceptionData } from './g_code_syntax_exception_data';\n\n/**\n * Thrown when a block of G-Code cannot be parsed.\n */\nexport class GCodeSyntaxException extends MotionLibException {\n /**\n * Additional data for GCodeSyntaxException\n */\n public get details(): GCodeSyntaxExceptionData {\n return this._details;\n }\n private _details: GCodeSyntaxExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | GCodeSyntaxExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, GCodeSyntaxException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = GCodeSyntaxExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
@@ -10,6 +10,12 @@ const invalid_packet_exception_data_1 = require("./invalid_packet_exception_data
10
10
  * Thrown when a packet from a device cannot be parsed.
11
11
  */
12
12
  class InvalidPacketException extends motion_lib_exception_1.MotionLibException {
13
+ /**
14
+ * Additional data for InvalidPacketException
15
+ */
16
+ get details() {
17
+ return this._details;
18
+ }
13
19
  constructor(message, customData) {
14
20
  super(message);
15
21
  Object.setPrototypeOf(this, InvalidPacketException.prototype);
@@ -21,12 +27,6 @@ class InvalidPacketException extends motion_lib_exception_1.MotionLibException {
21
27
  this._details = customData;
22
28
  }
23
29
  }
24
- /**
25
- * Additional data for InvalidPacketException
26
- */
27
- get details() {
28
- return this._details;
29
- }
30
30
  }
31
31
  exports.InvalidPacketException = InvalidPacketException;
32
32
  //# sourceMappingURL=invalid_packet_exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invalid_packet_exception.js","sourceRoot":"","sources":["../../../src/exceptions/invalid_packet_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAwF;AACxF,mFAA6E;AAE7E;;GAEG;AACH,MAAa,sBAAuB,SAAQ,yCAAkB;IAS5D,YACE,OAAe,EACf,UAA+C;QAE/C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;QAE9D,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,oCAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,0DAA0B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SACjF;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,wDAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { InvalidPacketExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { InvalidPacketExceptionData } from './invalid_packet_exception_data';\n\n/**\n * Thrown when a packet from a device cannot be parsed.\n */\nexport class InvalidPacketException extends MotionLibException {\n /**\n * Additional data for InvalidPacketException\n */\n public get details(): InvalidPacketExceptionData {\n return this._details;\n }\n private _details: InvalidPacketExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | InvalidPacketExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, InvalidPacketException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = InvalidPacketExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"invalid_packet_exception.js","sourceRoot":"","sources":["../../../src/exceptions/invalid_packet_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAwF;AACxF,mFAA6E;AAE7E;;GAEG;AACH,MAAa,sBAAuB,SAAQ,yCAAkB;IAC5D;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD,YACE,OAAe,EACf,UAA+C;QAE/C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;QAE9D,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,oCAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,0DAA0B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SACjF;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;SAC5B;IACH,CAAC;CACF;AAvBD,wDAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { InvalidPacketExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { InvalidPacketExceptionData } from './invalid_packet_exception_data';\n\n/**\n * Thrown when a packet from a device cannot be parsed.\n */\nexport class InvalidPacketException extends MotionLibException {\n /**\n * Additional data for InvalidPacketException\n */\n public get details(): InvalidPacketExceptionData {\n return this._details;\n }\n private _details: InvalidPacketExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | InvalidPacketExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, InvalidPacketException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = InvalidPacketExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
@@ -10,6 +10,12 @@ const invalid_response_exception_data_1 = require("./invalid_response_exception_
10
10
  * Thrown when a device sends a response with unexpected type or data.
11
11
  */
12
12
  class InvalidResponseException extends motion_lib_exception_1.MotionLibException {
13
+ /**
14
+ * Additional data for InvalidResponseException
15
+ */
16
+ get details() {
17
+ return this._details;
18
+ }
13
19
  constructor(message, customData) {
14
20
  super(message);
15
21
  Object.setPrototypeOf(this, InvalidResponseException.prototype);
@@ -21,12 +27,6 @@ class InvalidResponseException extends motion_lib_exception_1.MotionLibException
21
27
  this._details = customData;
22
28
  }
23
29
  }
24
- /**
25
- * Additional data for InvalidResponseException
26
- */
27
- get details() {
28
- return this._details;
29
- }
30
30
  }
31
31
  exports.InvalidResponseException = InvalidResponseException;
32
32
  //# sourceMappingURL=invalid_response_exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invalid_response_exception.js","sourceRoot":"","sources":["../../../src/exceptions/invalid_response_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAA0F;AAC1F,uFAAiF;AAEjF;;GAEG;AACH,MAAa,wBAAyB,SAAQ,yCAAkB;IAS9D,YACE,OAAe,EACf,UAAiD;QAEjD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;QAEhE,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,sCAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,8DAA4B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SACnF;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,4DAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { InvalidResponseExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { InvalidResponseExceptionData } from './invalid_response_exception_data';\n\n/**\n * Thrown when a device sends a response with unexpected type or data.\n */\nexport class InvalidResponseException extends MotionLibException {\n /**\n * Additional data for InvalidResponseException\n */\n public get details(): InvalidResponseExceptionData {\n return this._details;\n }\n private _details: InvalidResponseExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | InvalidResponseExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, InvalidResponseException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = InvalidResponseExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"invalid_response_exception.js","sourceRoot":"","sources":["../../../src/exceptions/invalid_response_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAA0F;AAC1F,uFAAiF;AAEjF;;GAEG;AACH,MAAa,wBAAyB,SAAQ,yCAAkB;IAC9D;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD,YACE,OAAe,EACf,UAAiD;QAEjD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;QAEhE,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,sCAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,8DAA4B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SACnF;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;SAC5B;IACH,CAAC;CACF;AAvBD,4DAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { InvalidResponseExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { InvalidResponseExceptionData } from './invalid_response_exception_data';\n\n/**\n * Thrown when a device sends a response with unexpected type or data.\n */\nexport class InvalidResponseException extends MotionLibException {\n /**\n * Additional data for InvalidResponseException\n */\n public get details(): InvalidResponseExceptionData {\n return this._details;\n }\n private _details: InvalidResponseExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | InvalidResponseExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, InvalidResponseException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = InvalidResponseExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
@@ -10,6 +10,12 @@ const movement_failed_exception_data_1 = require("./movement_failed_exception_da
10
10
  * Thrown when a device registers a fault during movement.
11
11
  */
12
12
  class MovementFailedException extends motion_lib_exception_1.MotionLibException {
13
+ /**
14
+ * Additional data for MovementFailedException
15
+ */
16
+ get details() {
17
+ return this._details;
18
+ }
13
19
  constructor(message, customData) {
14
20
  super(message);
15
21
  Object.setPrototypeOf(this, MovementFailedException.prototype);
@@ -21,12 +27,6 @@ class MovementFailedException extends motion_lib_exception_1.MotionLibException
21
27
  this._details = customData;
22
28
  }
23
29
  }
24
- /**
25
- * Additional data for MovementFailedException
26
- */
27
- get details() {
28
- return this._details;
29
- }
30
30
  }
31
31
  exports.MovementFailedException = MovementFailedException;
32
32
  //# sourceMappingURL=movement_failed_exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"movement_failed_exception.js","sourceRoot":"","sources":["../../../src/exceptions/movement_failed_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAyF;AACzF,qFAA+E;AAE/E;;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,4DAA2B,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 { MovementFailedExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { MovementFailedExceptionData } from './movement_failed_exception_data';\n\n/**\n * Thrown when a device registers a fault during movement.\n */\nexport class MovementFailedException extends MotionLibException {\n /**\n * Additional data for MovementFailedException\n */\n public get details(): MovementFailedExceptionData {\n return this._details;\n }\n private _details: MovementFailedExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | MovementFailedExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, MovementFailedException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = MovementFailedExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"movement_failed_exception.js","sourceRoot":"","sources":["../../../src/exceptions/movement_failed_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAyF;AACzF,qFAA+E;AAE/E;;GAEG;AACH,MAAa,uBAAwB,SAAQ,yCAAkB;IAC7D;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD,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,4DAA2B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SAClF;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;SAC5B;IACH,CAAC;CACF;AAvBD,0DAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { MovementFailedExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { MovementFailedExceptionData } from './movement_failed_exception_data';\n\n/**\n * Thrown when a device registers a fault during movement.\n */\nexport class MovementFailedException extends MotionLibException {\n /**\n * Additional data for MovementFailedException\n */\n public get details(): MovementFailedExceptionData {\n return this._details;\n }\n private _details: MovementFailedExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | MovementFailedExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, MovementFailedException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = MovementFailedExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
@@ -10,6 +10,12 @@ const movement_interrupted_exception_data_1 = require("./movement_interrupted_ex
10
10
  * Thrown when ongoing movement is interrupted by another command or user input.
11
11
  */
12
12
  class MovementInterruptedException extends motion_lib_exception_1.MotionLibException {
13
+ /**
14
+ * Additional data for MovementInterruptedException
15
+ */
16
+ get details() {
17
+ return this._details;
18
+ }
13
19
  constructor(message, customData) {
14
20
  super(message);
15
21
  Object.setPrototypeOf(this, MovementInterruptedException.prototype);
@@ -21,12 +27,6 @@ class MovementInterruptedException extends motion_lib_exception_1.MotionLibExcep
21
27
  this._details = customData;
22
28
  }
23
29
  }
24
- /**
25
- * Additional data for MovementInterruptedException
26
- */
27
- get details() {
28
- return this._details;
29
- }
30
30
  }
31
31
  exports.MovementInterruptedException = MovementInterruptedException;
32
32
  //# sourceMappingURL=movement_interrupted_exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"movement_interrupted_exception.js","sourceRoot":"","sources":["../../../src/exceptions/movement_interrupted_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAA8F;AAC9F,+FAAyF;AAEzF;;GAEG;AACH,MAAa,4BAA6B,SAAQ,yCAAkB;IASlE,YACE,OAAe,EACf,UAAqD;QAErD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,4BAA4B,CAAC,SAAS,CAAC,CAAC;QAEpE,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,0CAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,sEAAgC,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SACvF;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,oEAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { MovementInterruptedExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { MovementInterruptedExceptionData } from './movement_interrupted_exception_data';\n\n/**\n * Thrown when ongoing movement is interrupted by another command or user input.\n */\nexport class MovementInterruptedException extends MotionLibException {\n /**\n * Additional data for MovementInterruptedException\n */\n public get details(): MovementInterruptedExceptionData {\n return this._details;\n }\n private _details: MovementInterruptedExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | MovementInterruptedExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, MovementInterruptedException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = MovementInterruptedExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"movement_interrupted_exception.js","sourceRoot":"","sources":["../../../src/exceptions/movement_interrupted_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAA8F;AAC9F,+FAAyF;AAEzF;;GAEG;AACH,MAAa,4BAA6B,SAAQ,yCAAkB;IAClE;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD,YACE,OAAe,EACf,UAAqD;QAErD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,4BAA4B,CAAC,SAAS,CAAC,CAAC;QAEpE,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YAC/B,MAAM,WAAW,GAAG,0CAAkB,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,GAAG,sEAAgC,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SACvF;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;SAC5B;IACH,CAAC;CACF;AAvBD,oEAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { MovementInterruptedExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { MovementInterruptedExceptionData } from './movement_interrupted_exception_data';\n\n/**\n * Thrown when ongoing movement is interrupted by another command or user input.\n */\nexport class MovementInterruptedException extends MotionLibException {\n /**\n * Additional data for MovementInterruptedException\n */\n public get details(): MovementInterruptedExceptionData {\n return this._details;\n }\n private _details: MovementInterruptedExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | MovementInterruptedExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, MovementInterruptedException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = MovementInterruptedExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
@@ -10,6 +10,12 @@ const set_device_state_exception_data_1 = require("./set_device_state_exception_
10
10
  * Thrown when a device cannot be set to the supplied state.
11
11
  */
12
12
  class SetDeviceStateFailedException extends motion_lib_exception_1.MotionLibException {
13
+ /**
14
+ * Additional data for SetDeviceStateFailedException
15
+ */
16
+ get details() {
17
+ return this._details;
18
+ }
13
19
  constructor(message, customData) {
14
20
  super(message);
15
21
  Object.setPrototypeOf(this, SetDeviceStateFailedException.prototype);
@@ -21,12 +27,6 @@ class SetDeviceStateFailedException extends motion_lib_exception_1.MotionLibExce
21
27
  this._details = customData;
22
28
  }
23
29
  }
24
- /**
25
- * Additional data for SetDeviceStateFailedException
26
- */
27
- get details() {
28
- return this._details;
29
- }
30
30
  }
31
31
  exports.SetDeviceStateFailedException = SetDeviceStateFailedException;
32
32
  //# sourceMappingURL=set_device_state_failed_exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"set_device_state_failed_exception.js","sourceRoot":"","sources":["../../../src/exceptions/set_device_state_failed_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAyF;AACzF,uFAAgF;AAEhF;;GAEG;AACH,MAAa,6BAA8B,SAAQ,yCAAkB;IASnE,YACE,OAAe,EACf,UAAgD;QAEhD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,6BAA6B,CAAC,SAAS,CAAC,CAAC;QAErE,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,sEAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { SetDeviceStateExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { SetDeviceStateExceptionData } from './set_device_state_exception_data';\n\n/**\n * Thrown when a device cannot be set to the supplied state.\n */\nexport class SetDeviceStateFailedException extends MotionLibException {\n /**\n * Additional data for SetDeviceStateFailedException\n */\n public get details(): SetDeviceStateExceptionData {\n return this._details;\n }\n private _details: SetDeviceStateExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | SetDeviceStateExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, SetDeviceStateFailedException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = SetDeviceStateExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"set_device_state_failed_exception.js","sourceRoot":"","sources":["../../../src/exceptions/set_device_state_failed_exception.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD,iEAA4D;AAC5D,kDAAyF;AACzF,uFAAgF;AAEhF;;GAEG;AACH,MAAa,6BAA8B,SAAQ,yCAAkB;IACnE;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD,YACE,OAAe,EACf,UAAgD;QAEhD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,6BAA6B,CAAC,SAAS,CAAC,CAAC;QAErE,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;CACF;AAvBD,sEAuBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { MotionLibException } from './motion_lib_exception';\nimport { SetDeviceStateExceptionData as CustomDataProtobuf } from '../protobufs/main_pb';\nimport { SetDeviceStateExceptionData } from './set_device_state_exception_data';\n\n/**\n * Thrown when a device cannot be set to the supplied state.\n */\nexport class SetDeviceStateFailedException extends MotionLibException {\n /**\n * Additional data for SetDeviceStateFailedException\n */\n public get details(): SetDeviceStateExceptionData {\n return this._details;\n }\n private _details: SetDeviceStateExceptionData;\n\n constructor(\n message: string,\n customData: Buffer | SetDeviceStateExceptionData\n ) {\n super(message);\n Object.setPrototypeOf(this, SetDeviceStateFailedException.prototype);\n\n if (Buffer.isBuffer(customData)) {\n const protobufObj = CustomDataProtobuf.deserializeBinary(customData);\n this._details = SetDeviceStateExceptionData.fromProtobuf(protobufObj.toObject());\n } else {\n this._details = customData;\n }\n }\n}\n"]}