@zaber/motion 2.5.1 → 2.7.0-save-load
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.
- package/binding.gyp +2 -3
- package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
- package/dist/{node → lib}/ascii/alert_event.d.ts +0 -0
- package/dist/{node → lib}/ascii/alert_event.js +0 -0
- package/dist/{node → lib}/ascii/alert_event.js.map +0 -0
- package/dist/{node → lib}/ascii/all_axes.d.ts +0 -0
- package/dist/{node → lib}/ascii/all_axes.js +0 -0
- package/dist/{node → lib}/ascii/all_axes.js.map +0 -0
- package/dist/{web → lib}/ascii/axis.d.ts +18 -0
- package/dist/{node → lib}/ascii/axis.js +40 -0
- package/dist/lib/ascii/axis.js.map +1 -0
- package/dist/{node → lib}/ascii/axis_identity.d.ts +0 -0
- package/dist/{node → lib}/ascii/axis_identity.js +0 -0
- package/dist/{node → lib}/ascii/axis_identity.js.map +0 -0
- package/dist/{node → lib}/ascii/axis_settings.d.ts +14 -0
- package/dist/{web → lib}/ascii/axis_settings.js +30 -0
- package/dist/lib/ascii/axis_settings.js.map +1 -0
- package/dist/{node → lib}/ascii/axis_type.d.ts +0 -0
- package/dist/{node → lib}/ascii/axis_type.js +0 -0
- package/dist/{node → lib}/ascii/axis_type.js.map +0 -0
- package/dist/{web → lib}/ascii/connection.d.ts +14 -2
- package/dist/{web → lib}/ascii/connection.js +22 -2
- package/dist/lib/ascii/connection.js.map +1 -0
- package/dist/{web → lib}/ascii/device.d.ts +20 -0
- package/dist/{node → lib}/ascii/device.js +40 -0
- package/dist/lib/ascii/device.js.map +1 -0
- package/dist/{node → lib}/ascii/device_identity.d.ts +0 -0
- package/dist/{node → lib}/ascii/device_identity.js +0 -0
- package/dist/{node → lib}/ascii/device_identity.js.map +0 -0
- package/dist/{node → lib}/ascii/device_io.d.ts +0 -0
- package/dist/{node → lib}/ascii/device_io.js +0 -0
- package/dist/{node → lib}/ascii/device_io.js.map +0 -0
- package/dist/{node → lib}/ascii/device_io_info.d.ts +0 -0
- package/dist/{node → lib}/ascii/device_io_info.js +0 -0
- package/dist/{node → lib}/ascii/device_io_info.js.map +0 -0
- package/dist/{web → lib}/ascii/device_settings.d.ts +14 -0
- package/dist/{web → lib}/ascii/device_settings.js +28 -0
- package/dist/lib/ascii/device_settings.js.map +1 -0
- package/dist/{node → lib}/ascii/index.d.ts +0 -0
- package/dist/{node → lib}/ascii/index.js +0 -0
- package/dist/{node → lib}/ascii/index.js.map +0 -0
- package/dist/{node → lib}/ascii/lockstep.d.ts +0 -0
- package/dist/{node → lib}/ascii/lockstep.js +0 -0
- package/dist/{node → lib}/ascii/lockstep.js.map +0 -0
- package/dist/{node → lib}/ascii/lockstep_axes.d.ts +0 -0
- package/dist/{node → lib}/ascii/lockstep_axes.js +0 -0
- package/dist/{node → lib}/ascii/lockstep_axes.js.map +0 -0
- package/dist/{node → lib}/ascii/message_type.d.ts +0 -0
- package/dist/{node → lib}/ascii/message_type.js +0 -0
- package/dist/{node → lib}/ascii/message_type.js.map +0 -0
- package/dist/{node → lib}/ascii/response.d.ts +0 -0
- package/dist/{node → lib}/ascii/response.js +0 -0
- package/dist/{node → lib}/ascii/response.js.map +0 -0
- package/dist/{web → lib}/ascii/setting_constants.d.ts +360 -0
- package/dist/{node → lib}/ascii/setting_constants.js +360 -0
- package/dist/lib/ascii/setting_constants.js.map +1 -0
- package/dist/{web → lib}/ascii/stream.d.ts +6 -0
- package/dist/{web → lib}/ascii/stream.js +13 -0
- package/dist/lib/ascii/stream.js.map +1 -0
- package/dist/{web → lib}/ascii/stream_axis_definition.d.ts +1 -1
- package/dist/{node → lib}/ascii/stream_axis_definition.js +0 -0
- package/dist/{node → lib}/ascii/stream_axis_definition.js.map +1 -1
- package/dist/{node → lib}/ascii/stream_axis_type.d.ts +0 -0
- package/dist/{node → lib}/ascii/stream_axis_type.js +0 -0
- package/dist/{node → lib}/ascii/stream_axis_type.js.map +0 -0
- package/dist/{node → lib}/ascii/stream_buffer.d.ts +1 -0
- package/dist/{node → lib}/ascii/stream_buffer.js +1 -0
- package/dist/lib/ascii/stream_buffer.js.map +1 -0
- package/dist/{node → lib}/ascii/stream_mode.d.ts +0 -0
- package/dist/{node → lib}/ascii/stream_mode.js +0 -0
- package/dist/{node → lib}/ascii/stream_mode.js.map +0 -0
- package/dist/{node → lib}/ascii/transport.d.ts +0 -0
- package/dist/{node → lib}/ascii/transport.js +0 -0
- package/dist/{node → lib}/ascii/transport.js.map +0 -0
- package/dist/{node → lib}/ascii/unknown_response_event.d.ts +0 -0
- package/dist/{node → lib}/ascii/unknown_response_event.js +0 -0
- package/dist/{node → lib}/ascii/unknown_response_event.js.map +0 -0
- package/dist/{node → lib}/ascii/warning_flags.d.ts +0 -0
- package/dist/{node → lib}/ascii/warning_flags.js +0 -0
- package/dist/{node → lib}/ascii/warning_flags.js.map +0 -0
- package/dist/{node → lib}/ascii/warnings.d.ts +0 -0
- package/dist/{node → lib}/ascii/warnings.js +0 -0
- package/dist/{node → lib}/ascii/warnings.js.map +0 -0
- package/dist/{node → lib}/ascii_ns.d.ts +0 -0
- package/dist/{node → lib}/ascii_ns.js +0 -0
- package/dist/{node → lib}/ascii_ns.js.map +0 -0
- package/dist/{node → lib}/binary/binary_settings.d.ts +0 -0
- package/dist/{node → lib}/binary/binary_settings.js +0 -0
- package/dist/{node → lib}/binary/binary_settings.js.map +0 -0
- package/dist/{node → lib}/binary/command_code.d.ts +0 -0
- package/dist/{node → lib}/binary/command_code.js +0 -0
- package/dist/{node → lib}/binary/command_code.js.map +0 -0
- package/dist/{node → lib}/binary/connection.d.ts +0 -1
- package/dist/{web → lib}/binary/connection.js +0 -1
- package/dist/lib/binary/connection.js.map +1 -0
- package/dist/{node → lib}/binary/device.d.ts +0 -0
- package/dist/{node → lib}/binary/device.js +0 -0
- package/dist/{node → lib}/binary/device.js.map +0 -0
- package/dist/{node → lib}/binary/device_identity.d.ts +0 -0
- package/dist/{node → lib}/binary/device_identity.js +0 -0
- package/dist/{node → lib}/binary/device_identity.js.map +0 -0
- package/dist/{node → lib}/binary/device_settings.d.ts +0 -0
- package/dist/{node → lib}/binary/device_settings.js +0 -0
- package/dist/{node → lib}/binary/device_settings.js.map +0 -0
- package/dist/{node → lib}/binary/device_type.d.ts +0 -0
- package/dist/{node → lib}/binary/device_type.js +0 -0
- package/dist/{node → lib}/binary/device_type.js.map +0 -0
- package/dist/{node → lib}/binary/error_code.d.ts +0 -0
- package/dist/{node → lib}/binary/error_code.js +0 -0
- package/dist/{node → lib}/binary/error_code.js.map +0 -0
- package/dist/{node → lib}/binary/index.d.ts +0 -0
- package/dist/{node → lib}/binary/index.js +0 -0
- package/dist/{node → lib}/binary/index.js.map +0 -0
- package/dist/{node → lib}/binary/message.d.ts +0 -0
- package/dist/{node → lib}/binary/message.js +0 -0
- package/dist/{node → lib}/binary/message.js.map +0 -0
- package/dist/{node → lib}/binary/reply_code.d.ts +0 -0
- package/dist/{node → lib}/binary/reply_code.js +0 -0
- package/dist/{node → lib}/binary/reply_code.js.map +0 -0
- package/dist/{node → lib}/binary/reply_only_event.d.ts +0 -0
- package/dist/{node → lib}/binary/reply_only_event.js +0 -0
- package/dist/{node → lib}/binary/reply_only_event.js.map +0 -0
- package/dist/{node → lib}/binary/unknown_response_event.d.ts +0 -0
- package/dist/{node → lib}/binary/unknown_response_event.js +0 -0
- package/dist/{node → lib}/binary/unknown_response_event.js.map +0 -0
- package/dist/{node → lib}/binary_ns.d.ts +0 -0
- package/dist/{node → lib}/binary_ns.js +0 -0
- package/dist/{node → lib}/binary_ns.js.map +0 -0
- package/dist/lib/can_set_state_axis_response.d.ts +16 -0
- package/dist/lib/can_set_state_axis_response.js +18 -0
- package/dist/lib/can_set_state_axis_response.js.map +1 -0
- package/dist/lib/can_set_state_device_response.d.ts +17 -0
- package/dist/lib/can_set_state_device_response.js +19 -0
- package/dist/lib/can_set_state_device_response.js.map +1 -0
- package/dist/{node → lib}/device_db_source_type.d.ts +0 -0
- package/dist/{node → lib}/device_db_source_type.js +0 -0
- package/dist/{node → lib}/device_db_source_type.js.map +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/binary_command_failed_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/command_failed_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/command_preempted_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/command_preempted_exception.js +0 -0
- package/dist/{node → lib}/exceptions/command_preempted_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/connection_closed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/connection_closed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/connection_closed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/connection_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/connection_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/connection_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/conversion_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/conversion_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/conversion_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/device_address_conflict_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_busy_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_busy_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_busy_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_db_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_db_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_db_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/device_not_identified_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/device_not_identified_exception.js +0 -0
- package/dist/{node → lib}/exceptions/device_not_identified_exception.js.map +0 -0
- package/dist/lib/exceptions/g_code_execution_exception.d.ts +14 -0
- package/dist/lib/exceptions/g_code_execution_exception.js +32 -0
- package/dist/lib/exceptions/g_code_execution_exception.js.map +1 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.d.ts +17 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.js +18 -0
- package/dist/lib/exceptions/g_code_execution_exception_data.js.map +1 -0
- package/dist/lib/exceptions/g_code_syntax_exception.d.ts +14 -0
- package/dist/lib/exceptions/g_code_syntax_exception.js +32 -0
- package/dist/lib/exceptions/g_code_syntax_exception.js.map +1 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.d.ts +17 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.js +18 -0
- package/dist/lib/exceptions/g_code_syntax_exception_data.js.map +1 -0
- package/dist/{web → lib}/exceptions/index.d.ts +8 -0
- package/dist/{node → lib}/exceptions/index.js +18 -1
- package/dist/lib/exceptions/index.js.map +1 -0
- package/dist/{node → lib}/exceptions/internal_error_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/internal_error_exception.js +0 -0
- package/dist/{node → lib}/exceptions/internal_error_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_argument_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_argument_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_argument_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_data_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_data_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_data_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_packet_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_park_state_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_park_state_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_park_state_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/invalid_response_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.js +0 -0
- package/dist/{node → lib}/exceptions/io_channel_out_of_range_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/io_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/io_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/io_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/lockstep_enabled_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/lockstep_enabled_exception.js +0 -0
- package/dist/{node → lib}/exceptions/lockstep_enabled_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.js +0 -0
- package/dist/{node → lib}/exceptions/lockstep_not_enabled_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/motion_lib_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/motion_lib_exception.js +0 -0
- package/dist/{node → lib}/exceptions/motion_lib_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/movement_failed_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception.js +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/movement_interrupted_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/no_device_found_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/no_device_found_exception.js +0 -0
- package/dist/{node → lib}/exceptions/no_device_found_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/not_supported_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/not_supported_exception.js +0 -0
- package/dist/{node → lib}/exceptions/not_supported_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/os_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/os_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/os_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/out_of_request_ids_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/out_of_request_ids_exception.js +0 -0
- package/dist/{node → lib}/exceptions/out_of_request_ids_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/request_timeout_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/request_timeout_exception.js +0 -0
- package/dist/{node → lib}/exceptions/request_timeout_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/serial_port_busy_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/serial_port_busy_exception.js +0 -0
- package/dist/{node → lib}/exceptions/serial_port_busy_exception.js.map +0 -0
- package/dist/lib/exceptions/set_device_state_exception_data.d.ts +25 -0
- package/dist/lib/exceptions/set_device_state_exception_data.js +21 -0
- package/dist/lib/exceptions/set_device_state_exception_data.js.map +1 -0
- package/dist/lib/exceptions/set_device_state_failed_exception.d.ts +14 -0
- package/dist/lib/exceptions/set_device_state_failed_exception.js +32 -0
- package/dist/lib/exceptions/set_device_state_failed_exception.js.map +1 -0
- package/dist/lib/exceptions/set_peripheral_state_exception_data.d.ts +20 -0
- package/dist/lib/exceptions/set_peripheral_state_exception_data.js +19 -0
- package/dist/lib/exceptions/set_peripheral_state_exception_data.js.map +1 -0
- package/dist/lib/exceptions/set_peripheral_state_failed_exception.d.ts +14 -0
- package/dist/lib/exceptions/set_peripheral_state_failed_exception.js +32 -0
- package/dist/lib/exceptions/set_peripheral_state_failed_exception.js.map +1 -0
- package/dist/{node → lib}/exceptions/setting_not_found_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/setting_not_found_exception.js +0 -0
- package/dist/{node → lib}/exceptions/setting_not_found_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/stream_execution_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_mode_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_mode_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_mode_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_failed_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.js +0 -0
- package/dist/{node → lib}/exceptions/stream_movement_interrupted_exception_data.js.map +0 -0
- package/dist/{node → lib}/exceptions/stream_setup_failed_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/stream_setup_failed_exception.js +0 -0
- package/dist/{node → lib}/exceptions/stream_setup_failed_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/transport_already_used_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/transport_already_used_exception.js +0 -0
- package/dist/{node → lib}/exceptions/transport_already_used_exception.js.map +0 -0
- package/dist/{node → lib}/exceptions/unknown_request_exception.d.ts +0 -0
- package/dist/{node → lib}/exceptions/unknown_request_exception.js +0 -0
- package/dist/{node → lib}/exceptions/unknown_request_exception.js.map +0 -0
- package/dist/lib/finalizer.d.ts +5 -0
- package/dist/lib/finalizer.js +21 -0
- package/dist/lib/finalizer.js.map +1 -0
- package/dist/{node → lib}/firmware_version.d.ts +0 -0
- package/dist/{node → lib}/firmware_version.js +0 -0
- package/dist/{node → lib}/firmware_version.js.map +0 -0
- package/dist/lib/gateway/bindings.d.ts +5 -0
- package/dist/lib/gateway/bindings.js +35 -0
- package/dist/lib/gateway/bindings.js.map +1 -0
- package/dist/{node/gateway/bindings.d.ts → lib/gateway/bindings.node.d.ts} +0 -0
- package/dist/{node/gateway/bindings.js → lib/gateway/bindings.node.js} +1 -1
- package/dist/lib/gateway/bindings.node.js.map +1 -0
- package/dist/{web/gateway/bindings.d.ts → lib/gateway/bindings.wasm.d.ts} +0 -0
- package/dist/{web/gateway/bindings.js → lib/gateway/bindings.wasm.js} +2 -1
- package/dist/lib/gateway/bindings.wasm.js.map +1 -0
- package/dist/{node → lib}/gateway/call.d.ts +0 -0
- package/dist/{web → lib}/gateway/call.js +2 -2
- package/dist/lib/gateway/call.js.map +1 -0
- package/dist/{node → lib}/gateway/convert_exceptions.d.ts +0 -0
- package/dist/{node → lib}/gateway/convert_exceptions.js +4 -0
- package/dist/lib/gateway/convert_exceptions.js.map +1 -0
- package/dist/{node → lib}/gateway/events.d.ts +0 -1
- package/dist/{node → lib}/gateway/events.js +4 -7
- package/dist/lib/gateway/events.js.map +1 -0
- package/dist/{node → lib}/gateway/index.d.ts +0 -0
- package/dist/{node → lib}/gateway/index.js +0 -0
- package/dist/{node → lib}/gateway/index.js.map +0 -0
- package/dist/{node → lib}/gateway/serialization.d.ts +0 -0
- package/dist/{node → lib}/gateway/serialization.js +0 -0
- package/dist/{node → lib}/gateway/serialization.js.map +0 -0
- package/dist/lib/gateway/wasm-exec.d.ts +1 -0
- package/dist/{web/wasm → lib/gateway}/wasm-exec.js +13 -54
- package/dist/lib/gateway/wasm-exec.js.map +1 -0
- package/dist/lib/gateway/wasm.d.ts +4 -0
- package/dist/{web/wasm → lib/gateway}/wasm.js +1 -3
- package/dist/lib/gateway/wasm.js.map +1 -0
- package/dist/lib/gcode/axis_mapping.d.ts +16 -0
- package/dist/{web/measurement.js → lib/gcode/axis_mapping.js} +11 -11
- package/dist/lib/gcode/axis_mapping.js.map +1 -0
- package/dist/lib/gcode/index.d.ts +8 -0
- package/dist/lib/gcode/index.js +20 -0
- package/dist/lib/gcode/index.js.map +1 -0
- package/dist/lib/gcode/translate_message.d.ts +21 -0
- package/dist/lib/gcode/translate_message.js +19 -0
- package/dist/lib/gcode/translate_message.js.map +1 -0
- package/dist/lib/gcode/translate_result.d.ts +17 -0
- package/dist/lib/gcode/translate_result.js +19 -0
- package/dist/lib/gcode/translate_result.js.map +1 -0
- package/dist/lib/gcode/translator.d.ts +68 -0
- package/dist/lib/gcode/translator.js +144 -0
- package/dist/lib/gcode/translator.js.map +1 -0
- package/dist/lib/gcode/translator_axis_definition.d.ts +20 -0
- package/dist/lib/gcode/translator_axis_definition.js +48 -0
- package/dist/lib/gcode/translator_axis_definition.js.map +1 -0
- package/dist/lib/gcode/translator_config.d.ts +18 -0
- package/dist/lib/gcode/translator_config.js +41 -0
- package/dist/lib/gcode/translator_config.js.map +1 -0
- package/dist/lib/gcode/translator_definition.d.ts +18 -0
- package/dist/{web/ascii/stream_axis_definition.js → lib/gcode/translator_definition.js} +11 -18
- package/dist/lib/gcode/translator_definition.js.map +1 -0
- package/dist/lib/gcode/translator_live.d.ts +70 -0
- package/dist/lib/gcode/translator_live.js +147 -0
- package/dist/lib/gcode/translator_live.js.map +1 -0
- package/dist/lib/gcode_ns.d.ts +19 -0
- package/dist/{web/tools.js → lib/gcode_ns.js} +14 -20
- package/dist/lib/gcode_ns.js.map +1 -0
- package/dist/{node → lib}/index.d.ts +3 -1
- package/dist/{node → lib}/index.js +6 -2
- package/dist/lib/index.js.map +1 -0
- package/dist/{node → lib}/library.d.ts +0 -0
- package/dist/{node → lib}/library.js +0 -0
- package/dist/{node → lib}/library.js.map +0 -0
- package/dist/{node → lib}/log_output_mode.d.ts +0 -0
- package/dist/{node → lib}/log_output_mode.js +0 -0
- package/dist/{node → lib}/log_output_mode.js.map +0 -0
- package/dist/{web → lib}/measurement.d.ts +1 -1
- package/dist/{node → lib}/measurement.js +0 -0
- package/dist/{node → lib}/measurement.js.map +1 -1
- package/dist/{node → lib}/protobufs/main_pb.d.ts +785 -0
- package/dist/{node → lib}/protobufs/main_pb.js +6039 -2
- package/dist/lib/protobufs/main_pb.js.map +1 -0
- package/dist/{node → lib}/rotation_direction.d.ts +0 -0
- package/dist/{node → lib}/rotation_direction.js +0 -0
- package/dist/{node → lib}/rotation_direction.js.map +0 -0
- package/dist/{node → lib}/tools.d.ts +0 -0
- package/dist/{node → lib}/tools.js +0 -0
- package/dist/{node → lib}/tools.js.map +0 -0
- package/dist/{node → lib}/units.d.ts +0 -0
- package/dist/{node → lib}/units.js +0 -0
- package/dist/{node → lib}/units.js.map +0 -0
- package/dist/lib/wasm.d.ts +4 -0
- package/dist/{web/init.js → lib/wasm.js} +5 -4
- package/dist/lib/wasm.js.map +1 -0
- package/package.json +9 -16
- package/dist/node/ascii/axis.d.ts +0 -172
- package/dist/node/ascii/axis.js.map +0 -1
- package/dist/node/ascii/axis_settings.js +0 -107
- package/dist/node/ascii/axis_settings.js.map +0 -1
- package/dist/node/ascii/connection.d.ts +0 -203
- package/dist/node/ascii/connection.js +0 -380
- package/dist/node/ascii/connection.js.map +0 -1
- package/dist/node/ascii/device.d.ts +0 -165
- package/dist/node/ascii/device.js.map +0 -1
- package/dist/node/ascii/device_settings.d.ts +0 -41
- package/dist/node/ascii/device_settings.js +0 -103
- package/dist/node/ascii/device_settings.js.map +0 -1
- package/dist/node/ascii/setting_constants.d.ts +0 -563
- package/dist/node/ascii/setting_constants.js.map +0 -1
- package/dist/node/ascii/stream.d.ts +0 -307
- package/dist/node/ascii/stream.js +0 -659
- package/dist/node/ascii/stream.js.map +0 -1
- package/dist/node/ascii/stream_axis_definition.d.ts +0 -17
- package/dist/node/ascii/stream_buffer.js.map +0 -1
- package/dist/node/binary/connection.js +0 -211
- package/dist/node/binary/connection.js.map +0 -1
- package/dist/node/exceptions/index.d.ts +0 -48
- package/dist/node/exceptions/index.js.map +0 -1
- package/dist/node/gateway/bindings.js.map +0 -1
- package/dist/node/gateway/call.js +0 -46
- package/dist/node/gateway/call.js.map +0 -1
- package/dist/node/gateway/convert_exceptions.js.map +0 -1
- package/dist/node/gateway/events.js.map +0 -1
- package/dist/node/index.js.map +0 -1
- package/dist/node/init.d.ts +0 -1
- package/dist/node/init.js +0 -8
- package/dist/node/init.js.map +0 -1
- package/dist/node/measurement.d.ts +0 -17
- package/dist/web/ascii/alert_event.d.ts +0 -28
- package/dist/web/ascii/alert_event.js +0 -21
- package/dist/web/ascii/alert_event.js.map +0 -1
- package/dist/web/ascii/all_axes.d.ts +0 -46
- package/dist/web/ascii/all_axes.js +0 -122
- package/dist/web/ascii/all_axes.js.map +0 -1
- package/dist/web/ascii/axis.js +0 -367
- package/dist/web/ascii/axis.js.map +0 -1
- package/dist/web/ascii/axis_identity.d.ts +0 -29
- package/dist/web/ascii/axis_identity.js +0 -21
- package/dist/web/ascii/axis_identity.js.map +0 -1
- package/dist/web/ascii/axis_settings.d.ts +0 -41
- package/dist/web/ascii/axis_settings.js.map +0 -1
- package/dist/web/ascii/axis_type.d.ts +0 -8
- package/dist/web/ascii/axis_type.js +0 -15
- package/dist/web/ascii/axis_type.js.map +0 -1
- package/dist/web/ascii/connection.js.map +0 -1
- package/dist/web/ascii/device.js +0 -296
- package/dist/web/ascii/device.js.map +0 -1
- package/dist/web/ascii/device_identity.d.ts +0 -33
- package/dist/web/ascii/device_identity.js +0 -23
- package/dist/web/ascii/device_identity.js.map +0 -1
- package/dist/web/ascii/device_io.d.ts +0 -80
- package/dist/web/ascii/device_io.js +0 -199
- package/dist/web/ascii/device_io.js.map +0 -1
- package/dist/web/ascii/device_io_info.d.ts +0 -24
- package/dist/web/ascii/device_io_info.js +0 -20
- package/dist/web/ascii/device_io_info.js.map +0 -1
- package/dist/web/ascii/device_settings.js.map +0 -1
- package/dist/web/ascii/index.d.ts +0 -26
- package/dist/web/ascii/index.js +0 -56
- package/dist/web/ascii/index.js.map +0 -1
- package/dist/web/ascii/lockstep.d.ts +0 -120
- package/dist/web/ascii/lockstep.js +0 -281
- package/dist/web/ascii/lockstep.js.map +0 -1
- package/dist/web/ascii/lockstep_axes.d.ts +0 -24
- package/dist/web/ascii/lockstep_axes.js +0 -20
- package/dist/web/ascii/lockstep_axes.js.map +0 -1
- package/dist/web/ascii/message_type.d.ts +0 -10
- package/dist/web/ascii/message_type.js +0 -17
- package/dist/web/ascii/message_type.js.map +0 -1
- package/dist/web/ascii/response.d.ts +0 -37
- package/dist/web/ascii/response.js +0 -23
- package/dist/web/ascii/response.js.map +0 -1
- package/dist/web/ascii/setting_constants.js +0 -570
- package/dist/web/ascii/setting_constants.js.map +0 -1
- package/dist/web/ascii/stream.js.map +0 -1
- package/dist/web/ascii/stream_axis_definition.js.map +0 -1
- package/dist/web/ascii/stream_axis_type.d.ts +0 -7
- package/dist/web/ascii/stream_axis_type.js +0 -14
- package/dist/web/ascii/stream_axis_type.js.map +0 -1
- package/dist/web/ascii/stream_buffer.d.ts +0 -27
- package/dist/web/ascii/stream_buffer.js +0 -71
- package/dist/web/ascii/stream_buffer.js.map +0 -1
- package/dist/web/ascii/stream_mode.d.ts +0 -9
- package/dist/web/ascii/stream_mode.js +0 -16
- package/dist/web/ascii/stream_mode.js.map +0 -1
- package/dist/web/ascii/transport.d.ts +0 -38
- package/dist/web/ascii/transport.js +0 -91
- package/dist/web/ascii/transport.js.map +0 -1
- package/dist/web/ascii/unknown_response_event.d.ts +0 -37
- package/dist/web/ascii/unknown_response_event.js +0 -23
- package/dist/web/ascii/unknown_response_event.js.map +0 -1
- package/dist/web/ascii/warning_flags.d.ts +0 -137
- package/dist/web/ascii/warning_flags.js +0 -144
- package/dist/web/ascii/warning_flags.js.map +0 -1
- package/dist/web/ascii/warnings.d.ts +0 -19
- package/dist/web/ascii/warnings.js +0 -62
- package/dist/web/ascii/warnings.js.map +0 -1
- package/dist/web/ascii_ns.d.ts +0 -55
- package/dist/web/ascii_ns.js +0 -53
- package/dist/web/ascii_ns.js.map +0 -1
- package/dist/web/binary/binary_settings.d.ts +0 -70
- package/dist/web/binary/binary_settings.js +0 -77
- package/dist/web/binary/binary_settings.js.map +0 -1
- package/dist/web/binary/command_code.d.ts +0 -102
- package/dist/web/binary/command_code.js +0 -109
- package/dist/web/binary/command_code.js.map +0 -1
- package/dist/web/binary/connection.d.ts +0 -115
- package/dist/web/binary/connection.js.map +0 -1
- package/dist/web/binary/device.d.ts +0 -192
- package/dist/web/binary/device.js +0 -375
- package/dist/web/binary/device.js.map +0 -1
- package/dist/web/binary/device_identity.d.ts +0 -42
- package/dist/web/binary/device_identity.js +0 -25
- package/dist/web/binary/device_identity.js.map +0 -1
- package/dist/web/binary/device_settings.d.ts +0 -24
- package/dist/web/binary/device_settings.js +0 -66
- package/dist/web/binary/device_settings.js.map +0 -1
- package/dist/web/binary/device_type.d.ts +0 -8
- package/dist/web/binary/device_type.js +0 -15
- package/dist/web/binary/device_type.js.map +0 -1
- package/dist/web/binary/error_code.d.ts +0 -97
- package/dist/web/binary/error_code.js +0 -104
- package/dist/web/binary/error_code.js.map +0 -1
- package/dist/web/binary/index.d.ts +0 -12
- package/dist/web/binary/index.js +0 -28
- package/dist/web/binary/index.js.map +0 -1
- package/dist/web/binary/message.d.ts +0 -20
- package/dist/web/binary/message.js +0 -19
- package/dist/web/binary/message.js.map +0 -1
- package/dist/web/binary/reply_code.d.ts +0 -12
- package/dist/web/binary/reply_code.js +0 -19
- package/dist/web/binary/reply_code.js.map +0 -1
- package/dist/web/binary/reply_only_event.d.ts +0 -20
- package/dist/web/binary/reply_only_event.js +0 -19
- package/dist/web/binary/reply_only_event.js.map +0 -1
- package/dist/web/binary/unknown_response_event.d.ts +0 -20
- package/dist/web/binary/unknown_response_event.js +0 -19
- package/dist/web/binary/unknown_response_event.js.map +0 -1
- package/dist/web/binary_ns.d.ts +0 -27
- package/dist/web/binary_ns.js +0 -39
- package/dist/web/binary_ns.js.map +0 -1
- package/dist/web/device_db_source_type.d.ts +0 -7
- package/dist/web/device_db_source_type.js +0 -14
- package/dist/web/device_db_source_type.js.map +0 -1
- package/dist/web/exceptions/binary_command_failed_exception.d.ts +0 -14
- package/dist/web/exceptions/binary_command_failed_exception.js +0 -32
- package/dist/web/exceptions/binary_command_failed_exception.js.map +0 -1
- package/dist/web/exceptions/binary_command_failed_exception_data.d.ts +0 -12
- package/dist/web/exceptions/binary_command_failed_exception_data.js +0 -17
- package/dist/web/exceptions/binary_command_failed_exception_data.js.map +0 -1
- package/dist/web/exceptions/command_failed_exception.d.ts +0 -14
- package/dist/web/exceptions/command_failed_exception.js +0 -32
- package/dist/web/exceptions/command_failed_exception.js.map +0 -1
- package/dist/web/exceptions/command_failed_exception_data.d.ts +0 -24
- package/dist/web/exceptions/command_failed_exception_data.js +0 -20
- package/dist/web/exceptions/command_failed_exception_data.js.map +0 -1
- package/dist/web/exceptions/command_preempted_exception.d.ts +0 -7
- package/dist/web/exceptions/command_preempted_exception.js +0 -17
- package/dist/web/exceptions/command_preempted_exception.js.map +0 -1
- package/dist/web/exceptions/connection_closed_exception.d.ts +0 -7
- package/dist/web/exceptions/connection_closed_exception.js +0 -17
- package/dist/web/exceptions/connection_closed_exception.js.map +0 -1
- package/dist/web/exceptions/connection_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/connection_failed_exception.js +0 -17
- package/dist/web/exceptions/connection_failed_exception.js.map +0 -1
- package/dist/web/exceptions/conversion_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/conversion_failed_exception.js +0 -17
- package/dist/web/exceptions/conversion_failed_exception.js.map +0 -1
- package/dist/web/exceptions/device_address_conflict_exception.d.ts +0 -14
- package/dist/web/exceptions/device_address_conflict_exception.js +0 -32
- package/dist/web/exceptions/device_address_conflict_exception.js.map +0 -1
- package/dist/web/exceptions/device_address_conflict_exception_data.d.ts +0 -12
- package/dist/web/exceptions/device_address_conflict_exception_data.js +0 -17
- package/dist/web/exceptions/device_address_conflict_exception_data.js.map +0 -1
- package/dist/web/exceptions/device_busy_exception.d.ts +0 -7
- package/dist/web/exceptions/device_busy_exception.js +0 -17
- package/dist/web/exceptions/device_busy_exception.js.map +0 -1
- package/dist/web/exceptions/device_db_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/device_db_failed_exception.js +0 -17
- package/dist/web/exceptions/device_db_failed_exception.js.map +0 -1
- package/dist/web/exceptions/device_failed_exception.d.ts +0 -8
- package/dist/web/exceptions/device_failed_exception.js +0 -18
- package/dist/web/exceptions/device_failed_exception.js.map +0 -1
- package/dist/web/exceptions/device_not_identified_exception.d.ts +0 -7
- package/dist/web/exceptions/device_not_identified_exception.js +0 -17
- package/dist/web/exceptions/device_not_identified_exception.js.map +0 -1
- package/dist/web/exceptions/index.js +0 -102
- package/dist/web/exceptions/index.js.map +0 -1
- package/dist/web/exceptions/internal_error_exception.d.ts +0 -7
- package/dist/web/exceptions/internal_error_exception.js +0 -17
- package/dist/web/exceptions/internal_error_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_argument_exception.d.ts +0 -7
- package/dist/web/exceptions/invalid_argument_exception.js +0 -17
- package/dist/web/exceptions/invalid_argument_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_data_exception.d.ts +0 -7
- package/dist/web/exceptions/invalid_data_exception.js +0 -17
- package/dist/web/exceptions/invalid_data_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_packet_exception.d.ts +0 -14
- package/dist/web/exceptions/invalid_packet_exception.js +0 -32
- package/dist/web/exceptions/invalid_packet_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_packet_exception_data.d.ts +0 -16
- package/dist/web/exceptions/invalid_packet_exception_data.js +0 -18
- package/dist/web/exceptions/invalid_packet_exception_data.js.map +0 -1
- package/dist/web/exceptions/invalid_park_state_exception.d.ts +0 -7
- package/dist/web/exceptions/invalid_park_state_exception.js +0 -17
- package/dist/web/exceptions/invalid_park_state_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_response_exception.d.ts +0 -14
- package/dist/web/exceptions/invalid_response_exception.js +0 -32
- package/dist/web/exceptions/invalid_response_exception.js.map +0 -1
- package/dist/web/exceptions/invalid_response_exception_data.d.ts +0 -12
- package/dist/web/exceptions/invalid_response_exception_data.js +0 -17
- package/dist/web/exceptions/invalid_response_exception_data.js.map +0 -1
- package/dist/web/exceptions/io_channel_out_of_range_exception.d.ts +0 -7
- package/dist/web/exceptions/io_channel_out_of_range_exception.js +0 -17
- package/dist/web/exceptions/io_channel_out_of_range_exception.js.map +0 -1
- package/dist/web/exceptions/io_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/io_failed_exception.js +0 -17
- package/dist/web/exceptions/io_failed_exception.js.map +0 -1
- package/dist/web/exceptions/lockstep_enabled_exception.d.ts +0 -7
- package/dist/web/exceptions/lockstep_enabled_exception.js +0 -17
- package/dist/web/exceptions/lockstep_enabled_exception.js.map +0 -1
- package/dist/web/exceptions/lockstep_not_enabled_exception.d.ts +0 -7
- package/dist/web/exceptions/lockstep_not_enabled_exception.js +0 -17
- package/dist/web/exceptions/lockstep_not_enabled_exception.js.map +0 -1
- package/dist/web/exceptions/motion_lib_exception.d.ts +0 -8
- package/dist/web/exceptions/motion_lib_exception.js +0 -15
- package/dist/web/exceptions/motion_lib_exception.js.map +0 -1
- package/dist/web/exceptions/movement_failed_exception.d.ts +0 -14
- package/dist/web/exceptions/movement_failed_exception.js +0 -32
- package/dist/web/exceptions/movement_failed_exception.js.map +0 -1
- package/dist/web/exceptions/movement_failed_exception_data.d.ts +0 -16
- package/dist/web/exceptions/movement_failed_exception_data.js +0 -18
- package/dist/web/exceptions/movement_failed_exception_data.js.map +0 -1
- package/dist/web/exceptions/movement_interrupted_exception.d.ts +0 -14
- package/dist/web/exceptions/movement_interrupted_exception.js +0 -32
- package/dist/web/exceptions/movement_interrupted_exception.js.map +0 -1
- package/dist/web/exceptions/movement_interrupted_exception_data.d.ts +0 -16
- package/dist/web/exceptions/movement_interrupted_exception_data.js +0 -18
- package/dist/web/exceptions/movement_interrupted_exception_data.js.map +0 -1
- package/dist/web/exceptions/no_device_found_exception.d.ts +0 -7
- package/dist/web/exceptions/no_device_found_exception.js +0 -17
- package/dist/web/exceptions/no_device_found_exception.js.map +0 -1
- package/dist/web/exceptions/not_supported_exception.d.ts +0 -7
- package/dist/web/exceptions/not_supported_exception.js +0 -17
- package/dist/web/exceptions/not_supported_exception.js.map +0 -1
- package/dist/web/exceptions/os_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/os_failed_exception.js +0 -17
- package/dist/web/exceptions/os_failed_exception.js.map +0 -1
- package/dist/web/exceptions/out_of_request_ids_exception.d.ts +0 -7
- package/dist/web/exceptions/out_of_request_ids_exception.js +0 -17
- package/dist/web/exceptions/out_of_request_ids_exception.js.map +0 -1
- package/dist/web/exceptions/request_timeout_exception.d.ts +0 -7
- package/dist/web/exceptions/request_timeout_exception.js +0 -17
- package/dist/web/exceptions/request_timeout_exception.js.map +0 -1
- package/dist/web/exceptions/serial_port_busy_exception.d.ts +0 -7
- package/dist/web/exceptions/serial_port_busy_exception.js +0 -17
- package/dist/web/exceptions/serial_port_busy_exception.js.map +0 -1
- package/dist/web/exceptions/setting_not_found_exception.d.ts +0 -7
- package/dist/web/exceptions/setting_not_found_exception.js +0 -17
- package/dist/web/exceptions/setting_not_found_exception.js.map +0 -1
- package/dist/web/exceptions/stream_execution_exception.d.ts +0 -14
- package/dist/web/exceptions/stream_execution_exception.js +0 -32
- package/dist/web/exceptions/stream_execution_exception.js.map +0 -1
- package/dist/web/exceptions/stream_execution_exception_data.d.ts +0 -16
- package/dist/web/exceptions/stream_execution_exception_data.js +0 -18
- package/dist/web/exceptions/stream_execution_exception_data.js.map +0 -1
- package/dist/web/exceptions/stream_mode_exception.d.ts +0 -7
- package/dist/web/exceptions/stream_mode_exception.js +0 -17
- package/dist/web/exceptions/stream_mode_exception.js.map +0 -1
- package/dist/web/exceptions/stream_movement_failed_exception.d.ts +0 -14
- package/dist/web/exceptions/stream_movement_failed_exception.js +0 -32
- package/dist/web/exceptions/stream_movement_failed_exception.js.map +0 -1
- package/dist/web/exceptions/stream_movement_failed_exception_data.d.ts +0 -16
- package/dist/web/exceptions/stream_movement_failed_exception_data.js +0 -18
- package/dist/web/exceptions/stream_movement_failed_exception_data.js.map +0 -1
- package/dist/web/exceptions/stream_movement_interrupted_exception.d.ts +0 -14
- package/dist/web/exceptions/stream_movement_interrupted_exception.js +0 -32
- package/dist/web/exceptions/stream_movement_interrupted_exception.js.map +0 -1
- package/dist/web/exceptions/stream_movement_interrupted_exception_data.d.ts +0 -16
- package/dist/web/exceptions/stream_movement_interrupted_exception_data.js +0 -18
- package/dist/web/exceptions/stream_movement_interrupted_exception_data.js.map +0 -1
- package/dist/web/exceptions/stream_setup_failed_exception.d.ts +0 -7
- package/dist/web/exceptions/stream_setup_failed_exception.js +0 -17
- package/dist/web/exceptions/stream_setup_failed_exception.js.map +0 -1
- package/dist/web/exceptions/transport_already_used_exception.d.ts +0 -7
- package/dist/web/exceptions/transport_already_used_exception.js +0 -17
- package/dist/web/exceptions/transport_already_used_exception.js.map +0 -1
- package/dist/web/exceptions/unknown_request_exception.d.ts +0 -7
- package/dist/web/exceptions/unknown_request_exception.js +0 -17
- package/dist/web/exceptions/unknown_request_exception.js.map +0 -1
- package/dist/web/firmware_version.d.ts +0 -20
- package/dist/web/firmware_version.js +0 -19
- package/dist/web/firmware_version.js.map +0 -1
- package/dist/web/gateway/bindings.js.map +0 -1
- package/dist/web/gateway/call.d.ts +0 -6
- package/dist/web/gateway/call.js.map +0 -1
- package/dist/web/gateway/convert_exceptions.d.ts +0 -4
- package/dist/web/gateway/convert_exceptions.js +0 -74
- package/dist/web/gateway/convert_exceptions.js.map +0 -1
- package/dist/web/gateway/events.d.ts +0 -9
- package/dist/web/gateway/events.js +0 -60
- package/dist/web/gateway/events.js.map +0 -1
- package/dist/web/gateway/index.d.ts +0 -4
- package/dist/web/gateway/index.js +0 -23
- package/dist/web/gateway/index.js.map +0 -1
- package/dist/web/gateway/serialization.d.ts +0 -6
- package/dist/web/gateway/serialization.js +0 -39
- package/dist/web/gateway/serialization.js.map +0 -1
- package/dist/web/index.d.ts +0 -12
- package/dist/web/index.js +0 -33
- package/dist/web/index.js.map +0 -1
- package/dist/web/init.d.ts +0 -5
- package/dist/web/init.js.map +0 -1
- package/dist/web/library.d.ts +0 -30
- package/dist/web/library.js +0 -73
- package/dist/web/library.js.map +0 -1
- package/dist/web/log_output_mode.d.ts +0 -9
- package/dist/web/log_output_mode.js +0 -16
- package/dist/web/log_output_mode.js.map +0 -1
- package/dist/web/measurement.js.map +0 -1
- package/dist/web/protobufs/main_pb.d.ts +0 -5228
- package/dist/web/protobufs/main_pb.js +0 -39387
- package/dist/web/rotation_direction.d.ts +0 -9
- package/dist/web/rotation_direction.js +0 -16
- package/dist/web/rotation_direction.js.map +0 -1
- package/dist/web/tools.d.ts +0 -10
- package/dist/web/tools.js.map +0 -1
- package/dist/web/units.d.ts +0 -147
- package/dist/web/units.js +0 -167
- package/dist/web/units.js.map +0 -1
- package/dist/web/wasm/wasm-exec.d.ts +0 -1
- package/dist/web/wasm/wasm-exec.js.map +0 -1
- package/dist/web/wasm/wasm.d.ts +0 -14
- package/dist/web/wasm/wasm.js.map +0 -1
|
@@ -1,659 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
|
|
3
|
-
// ============= DO NOT EDIT DIRECTLY ============= //
|
|
4
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
7
|
-
}) : (function(o, m, k, k2) {
|
|
8
|
-
if (k2 === undefined) k2 = k;
|
|
9
|
-
o[k2] = m[k];
|
|
10
|
-
}));
|
|
11
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
12
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
13
|
-
}) : function(o, v) {
|
|
14
|
-
o["default"] = v;
|
|
15
|
-
});
|
|
16
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
17
|
-
if (mod && mod.__esModule) return mod;
|
|
18
|
-
var result = {};
|
|
19
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
20
|
-
__setModuleDefault(result, mod);
|
|
21
|
-
return result;
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.Stream = void 0;
|
|
25
|
-
const units_1 = require("../units");
|
|
26
|
-
const gateway = __importStar(require("../gateway"));
|
|
27
|
-
const measurement_1 = require("../measurement");
|
|
28
|
-
const stream_axis_definition_1 = require("./stream_axis_definition");
|
|
29
|
-
/**
|
|
30
|
-
* A handle for a stream with this ID on the device.
|
|
31
|
-
* Streams provide a way to execute or store a sequence of actions.
|
|
32
|
-
* Stream methods append actions to a queue which executes or stores actions in a first in, first out order.
|
|
33
|
-
*/
|
|
34
|
-
class Stream {
|
|
35
|
-
constructor(device, streamId) {
|
|
36
|
-
this._device = device;
|
|
37
|
-
this._streamId = streamId;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Device that controls this stream.
|
|
41
|
-
*/
|
|
42
|
-
get device() {
|
|
43
|
-
return this._device;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* The number that identifies the stream on the device.
|
|
47
|
-
*/
|
|
48
|
-
get streamId() {
|
|
49
|
-
return this._streamId;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Current mode of the stream.
|
|
53
|
-
*/
|
|
54
|
-
get mode() {
|
|
55
|
-
return this._retrieveMode();
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* An array of axes definitions the stream is set up to control.
|
|
59
|
-
*/
|
|
60
|
-
get axes() {
|
|
61
|
-
return this._retrieveAxes();
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Setup the stream to control the specified axes and to queue actions on the device.
|
|
65
|
-
* Allows use of lockstep axes in a stream.
|
|
66
|
-
* @param axes Definition of the stream axes.
|
|
67
|
-
*/
|
|
68
|
-
async setupLiveComposite(...axes) {
|
|
69
|
-
const request = new gateway.StreamSetupLiveCompositeRequest();
|
|
70
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
71
|
-
request.setDevice(this.device.deviceAddress);
|
|
72
|
-
request.setStreamId(this.streamId);
|
|
73
|
-
request.setAxesList(axes.map(stream_axis_definition_1.StreamAxisDefinition.toProtobuf));
|
|
74
|
-
await gateway.callAsync('device/stream_setup_live_composite', request);
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Setup the stream to control the specified axes and to queue actions on the device.
|
|
78
|
-
* @param axes Numbers of physical axes to setup the stream on.
|
|
79
|
-
*/
|
|
80
|
-
async setupLive(...axes) {
|
|
81
|
-
const request = new gateway.StreamSetupLiveRequest();
|
|
82
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
83
|
-
request.setDevice(this.device.deviceAddress);
|
|
84
|
-
request.setStreamId(this.streamId);
|
|
85
|
-
request.setAxesList(axes);
|
|
86
|
-
await gateway.callAsync('device/stream_setup_live', request);
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Setup the stream to control the specified axes and queue actions into a stream buffer.
|
|
90
|
-
* Allows use of lockstep axes in a stream.
|
|
91
|
-
* @param streamBuffer The stream buffer to queue actions in.
|
|
92
|
-
* @param axes Definition of the stream axes.
|
|
93
|
-
*/
|
|
94
|
-
async setupStoreComposite(streamBuffer, ...axes) {
|
|
95
|
-
const request = new gateway.StreamSetupStoreCompositeRequest();
|
|
96
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
97
|
-
request.setDevice(this.device.deviceAddress);
|
|
98
|
-
request.setStreamId(this.streamId);
|
|
99
|
-
request.setStreamBuffer(streamBuffer.bufferId);
|
|
100
|
-
request.setAxesList(axes.map(stream_axis_definition_1.StreamAxisDefinition.toProtobuf));
|
|
101
|
-
await gateway.callAsync('device/stream_setup_store_composite', request);
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Setup the stream to control the specified axes and queue actions into a stream buffer.
|
|
105
|
-
* @param streamBuffer The stream buffer to queue actions in.
|
|
106
|
-
* @param axes Numbers of physical axes to setup the stream on.
|
|
107
|
-
*/
|
|
108
|
-
async setupStore(streamBuffer, ...axes) {
|
|
109
|
-
const request = new gateway.StreamSetupStoreRequest();
|
|
110
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
111
|
-
request.setDevice(this.device.deviceAddress);
|
|
112
|
-
request.setStreamId(this.streamId);
|
|
113
|
-
request.setStreamBuffer(streamBuffer.bufferId);
|
|
114
|
-
request.setAxesList(axes);
|
|
115
|
-
await gateway.callAsync('device/stream_setup_store', request);
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Setup the stream to use a specified number of axes, and to queue actions in a stream buffer.
|
|
119
|
-
* Afterwards, you may call the resulting stream buffer on arbitrary axes.
|
|
120
|
-
* This mode does not allow for unit conversions.
|
|
121
|
-
* @param streamBuffer The stream buffer to queue actions in.
|
|
122
|
-
* @param axesCount The number of axes in the stream.
|
|
123
|
-
*/
|
|
124
|
-
async setupStoreArbitraryAxes(streamBuffer, axesCount) {
|
|
125
|
-
const request = new gateway.StreamSetupStoreArbitraryAxesRequest();
|
|
126
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
127
|
-
request.setDevice(this.device.deviceAddress);
|
|
128
|
-
request.setStreamId(this.streamId);
|
|
129
|
-
request.setStreamBuffer(streamBuffer.bufferId);
|
|
130
|
-
request.setAxesCount(axesCount);
|
|
131
|
-
await gateway.callAsync('device/stream_setup_store_arbitrary_axes', request);
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Append the actions in a stream buffer to the queue.
|
|
135
|
-
* @param streamBuffer The stream buffer to call.
|
|
136
|
-
*/
|
|
137
|
-
async call(streamBuffer) {
|
|
138
|
-
const request = new gateway.StreamCallRequest();
|
|
139
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
140
|
-
request.setDevice(this.device.deviceAddress);
|
|
141
|
-
request.setStreamId(this.streamId);
|
|
142
|
-
request.setStreamBuffer(streamBuffer.bufferId);
|
|
143
|
-
await gateway.callAsync('device/stream_call', request);
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Queue an absolute line movement in the stream.
|
|
147
|
-
* @param endpoint Positions for the axes to move to, relative to their home positions.
|
|
148
|
-
*/
|
|
149
|
-
async lineAbsolute(...endpoint) {
|
|
150
|
-
const request = new gateway.StreamLineRequest();
|
|
151
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
152
|
-
request.setDevice(this.device.deviceAddress);
|
|
153
|
-
request.setStreamId(this.streamId);
|
|
154
|
-
request.setType(gateway.StreamLineRequest.Type.ABS);
|
|
155
|
-
request.setEndpointList(endpoint.map(measurement_1.Measurement.toProtobuf));
|
|
156
|
-
await gateway.callAsync('device/stream_line', request);
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Queue a relative line movement in the stream.
|
|
160
|
-
* @param endpoint Positions for the axes to move to, relative to their positions before movement.
|
|
161
|
-
*/
|
|
162
|
-
async lineRelative(...endpoint) {
|
|
163
|
-
const request = new gateway.StreamLineRequest();
|
|
164
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
165
|
-
request.setDevice(this.device.deviceAddress);
|
|
166
|
-
request.setStreamId(this.streamId);
|
|
167
|
-
request.setType(gateway.StreamLineRequest.Type.REL);
|
|
168
|
-
request.setEndpointList(endpoint.map(measurement_1.Measurement.toProtobuf));
|
|
169
|
-
await gateway.callAsync('device/stream_line', request);
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Queue an absolute line movement in the stream, targeting a subset of the stream axes.
|
|
173
|
-
* @param targetAxesIndices Indices of the axes in the stream the movement targets.
|
|
174
|
-
* Refers to the axes provided during the stream setup or further execution.
|
|
175
|
-
* Indices are zero-based.
|
|
176
|
-
* @param endpoint Positions for the axes to move to, relative to their home positions.
|
|
177
|
-
*/
|
|
178
|
-
async lineAbsoluteOn(targetAxesIndices, endpoint) {
|
|
179
|
-
const request = new gateway.StreamLineRequest();
|
|
180
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
181
|
-
request.setDevice(this.device.deviceAddress);
|
|
182
|
-
request.setStreamId(this.streamId);
|
|
183
|
-
request.setType(gateway.StreamLineRequest.Type.ABS);
|
|
184
|
-
request.setTargetAxesIndicesList(targetAxesIndices);
|
|
185
|
-
request.setEndpointList(endpoint.map(measurement_1.Measurement.toProtobuf));
|
|
186
|
-
await gateway.callAsync('device/stream_line', request);
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* Queue a relative line movement in the stream, targeting a subset of the stream axes.
|
|
190
|
-
* @param targetAxesIndices Indices of the axes in the stream the movement targets.
|
|
191
|
-
* Refers to the axes provided during the stream setup or further execution.
|
|
192
|
-
* Indices are zero-based.
|
|
193
|
-
* @param endpoint Positions for the axes to move to, relative to their positions before movement.
|
|
194
|
-
*/
|
|
195
|
-
async lineRelativeOn(targetAxesIndices, endpoint) {
|
|
196
|
-
const request = new gateway.StreamLineRequest();
|
|
197
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
198
|
-
request.setDevice(this.device.deviceAddress);
|
|
199
|
-
request.setStreamId(this.streamId);
|
|
200
|
-
request.setType(gateway.StreamLineRequest.Type.REL);
|
|
201
|
-
request.setTargetAxesIndicesList(targetAxesIndices);
|
|
202
|
-
request.setEndpointList(endpoint.map(measurement_1.Measurement.toProtobuf));
|
|
203
|
-
await gateway.callAsync('device/stream_line', request);
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Queue an absolute arc movement on the first two axes of the stream.
|
|
207
|
-
* Absolute meaning that the home positions of the axes is treated as the origin.
|
|
208
|
-
* @param rotationDirection The direction of the rotation.
|
|
209
|
-
* @param centerX The first dimensions of the position of the center of the circle on which the arc exists.
|
|
210
|
-
* @param centerY The second dimensions of the position of the center of the circle on which the arc exists.
|
|
211
|
-
* @param endX The first dimensions of the end position of the arc.
|
|
212
|
-
* @param endY The second dimensions of the end position of the arc.
|
|
213
|
-
*/
|
|
214
|
-
async arcAbsolute(rotationDirection, centerX, centerY, endX, endY) {
|
|
215
|
-
const request = new gateway.StreamArcRequest();
|
|
216
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
217
|
-
request.setDevice(this.device.deviceAddress);
|
|
218
|
-
request.setStreamId(this.streamId);
|
|
219
|
-
request.setType(gateway.StreamArcRequest.Type.ABS);
|
|
220
|
-
request.setRotationDirection(rotationDirection);
|
|
221
|
-
request.setCenterX(measurement_1.Measurement.toProtobuf(centerX));
|
|
222
|
-
request.setCenterY(measurement_1.Measurement.toProtobuf(centerY));
|
|
223
|
-
request.setEndX(measurement_1.Measurement.toProtobuf(endX));
|
|
224
|
-
request.setEndY(measurement_1.Measurement.toProtobuf(endY));
|
|
225
|
-
await gateway.callAsync('device/stream_arc', request);
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Queue a relative arc movement on the first two axes of the stream.
|
|
229
|
-
* Relative meaning that the current position of the axes is treated as the origin.
|
|
230
|
-
* @param rotationDirection The direction of the rotation.
|
|
231
|
-
* @param centerX The first dimensions of the position of the center of the circle on which the arc exists.
|
|
232
|
-
* @param centerY The second dimensions of the position of the center of the circle on which the arc exists.
|
|
233
|
-
* @param endX The first dimensions of the end position of the arc.
|
|
234
|
-
* @param endY The second dimensions of the end position of the arc.
|
|
235
|
-
*/
|
|
236
|
-
async arcRelative(rotationDirection, centerX, centerY, endX, endY) {
|
|
237
|
-
const request = new gateway.StreamArcRequest();
|
|
238
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
239
|
-
request.setDevice(this.device.deviceAddress);
|
|
240
|
-
request.setStreamId(this.streamId);
|
|
241
|
-
request.setType(gateway.StreamArcRequest.Type.REL);
|
|
242
|
-
request.setRotationDirection(rotationDirection);
|
|
243
|
-
request.setCenterX(measurement_1.Measurement.toProtobuf(centerX));
|
|
244
|
-
request.setCenterY(measurement_1.Measurement.toProtobuf(centerY));
|
|
245
|
-
request.setEndX(measurement_1.Measurement.toProtobuf(endX));
|
|
246
|
-
request.setEndY(measurement_1.Measurement.toProtobuf(endY));
|
|
247
|
-
await gateway.callAsync('device/stream_arc', request);
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Queue an absolute arc movement in the stream.
|
|
251
|
-
* The movement will only target the specified subset of axes in the stream.
|
|
252
|
-
* @param targetAxesIndices Indices of the axes in the stream the movement targets.
|
|
253
|
-
* Refers to the axes provided during the stream setup or further execution.
|
|
254
|
-
* Indices are zero-based.
|
|
255
|
-
* @param rotationDirection The direction of the rotation.
|
|
256
|
-
* @param centerX The first dimensions of the position of the center of the circle on which the arc exists.
|
|
257
|
-
* @param centerY The second dimensions of the position of the center of the circle on which the arc exists.
|
|
258
|
-
* @param endX The first dimensions of the end position of the arc.
|
|
259
|
-
* @param endY The second dimensions of the end position of the arc.
|
|
260
|
-
*/
|
|
261
|
-
async arcAbsoluteOn(targetAxesIndices, rotationDirection, centerX, centerY, endX, endY) {
|
|
262
|
-
const request = new gateway.StreamArcRequest();
|
|
263
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
264
|
-
request.setDevice(this.device.deviceAddress);
|
|
265
|
-
request.setStreamId(this.streamId);
|
|
266
|
-
request.setType(gateway.StreamArcRequest.Type.ABS);
|
|
267
|
-
request.setTargetAxesIndicesList(targetAxesIndices);
|
|
268
|
-
request.setRotationDirection(rotationDirection);
|
|
269
|
-
request.setCenterX(measurement_1.Measurement.toProtobuf(centerX));
|
|
270
|
-
request.setCenterY(measurement_1.Measurement.toProtobuf(centerY));
|
|
271
|
-
request.setEndX(measurement_1.Measurement.toProtobuf(endX));
|
|
272
|
-
request.setEndY(measurement_1.Measurement.toProtobuf(endY));
|
|
273
|
-
await gateway.callAsync('device/stream_arc', request);
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* Queue a relative arc movement in the stream.
|
|
277
|
-
* The movement will only target the specified subset of axes in the stream.
|
|
278
|
-
* @param targetAxesIndices Indices of the axes in the stream the movement targets.
|
|
279
|
-
* Refers to the axes provided during the stream setup or further execution.
|
|
280
|
-
* Indices are zero-based.
|
|
281
|
-
* @param rotationDirection The direction of the rotation.
|
|
282
|
-
* @param centerX The first dimensions of the position of the center of the circle on which the arc exists.
|
|
283
|
-
* @param centerY The second dimensions of the position of the center of the circle on which the arc exists.
|
|
284
|
-
* @param endX The first dimensions of the end position of the arc.
|
|
285
|
-
* @param endY The second dimensions of the end position of the arc.
|
|
286
|
-
*/
|
|
287
|
-
async arcRelativeOn(targetAxesIndices, rotationDirection, centerX, centerY, endX, endY) {
|
|
288
|
-
const request = new gateway.StreamArcRequest();
|
|
289
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
290
|
-
request.setDevice(this.device.deviceAddress);
|
|
291
|
-
request.setStreamId(this.streamId);
|
|
292
|
-
request.setType(gateway.StreamArcRequest.Type.REL);
|
|
293
|
-
request.setTargetAxesIndicesList(targetAxesIndices);
|
|
294
|
-
request.setRotationDirection(rotationDirection);
|
|
295
|
-
request.setCenterX(measurement_1.Measurement.toProtobuf(centerX));
|
|
296
|
-
request.setCenterY(measurement_1.Measurement.toProtobuf(centerY));
|
|
297
|
-
request.setEndX(measurement_1.Measurement.toProtobuf(endX));
|
|
298
|
-
request.setEndY(measurement_1.Measurement.toProtobuf(endY));
|
|
299
|
-
await gateway.callAsync('device/stream_arc', request);
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* Queue an absolute circle movement on the first two axes of the stream.
|
|
303
|
-
* Absolute meaning that the home positions of the axes are treated as the origin.
|
|
304
|
-
* @param rotationDirection The direction of the rotation.
|
|
305
|
-
* @param centerX The first dimension of the position of the center of the circle.
|
|
306
|
-
* @param centerY The second dimension of the position of the center of the circle.
|
|
307
|
-
*/
|
|
308
|
-
async circleAbsolute(rotationDirection, centerX, centerY) {
|
|
309
|
-
const request = new gateway.StreamCircleRequest();
|
|
310
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
311
|
-
request.setDevice(this.device.deviceAddress);
|
|
312
|
-
request.setStreamId(this.streamId);
|
|
313
|
-
request.setType(gateway.StreamCircleRequest.Type.ABS);
|
|
314
|
-
request.setRotationDirection(rotationDirection);
|
|
315
|
-
request.setCenterX(measurement_1.Measurement.toProtobuf(centerX));
|
|
316
|
-
request.setCenterY(measurement_1.Measurement.toProtobuf(centerY));
|
|
317
|
-
await gateway.callAsync('device/stream_circle', request);
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* Queue a relative circle movement on the first two axes of the stream.
|
|
321
|
-
* Relative meaning that the current position of the axes is treated as the origin.
|
|
322
|
-
* @param rotationDirection The direction of the rotation.
|
|
323
|
-
* @param centerX The first dimension of the position of the center of the circle.
|
|
324
|
-
* @param centerY The second dimension of the position of the center of the circle.
|
|
325
|
-
*/
|
|
326
|
-
async circleRelative(rotationDirection, centerX, centerY) {
|
|
327
|
-
const request = new gateway.StreamCircleRequest();
|
|
328
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
329
|
-
request.setDevice(this.device.deviceAddress);
|
|
330
|
-
request.setStreamId(this.streamId);
|
|
331
|
-
request.setType(gateway.StreamCircleRequest.Type.REL);
|
|
332
|
-
request.setRotationDirection(rotationDirection);
|
|
333
|
-
request.setCenterX(measurement_1.Measurement.toProtobuf(centerX));
|
|
334
|
-
request.setCenterY(measurement_1.Measurement.toProtobuf(centerY));
|
|
335
|
-
await gateway.callAsync('device/stream_circle', request);
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* Queue an absolute circle movement in the stream.
|
|
339
|
-
* The movement will only target the specified subset of axes in the stream.
|
|
340
|
-
* @param targetAxesIndices Indices of the axes in the stream the movement targets.
|
|
341
|
-
* Refers to the axes provided during the stream setup or further execution.
|
|
342
|
-
* Indices are zero-based.
|
|
343
|
-
* @param rotationDirection The direction of the rotation.
|
|
344
|
-
* @param centerX The first dimension of the position of the center of the circle.
|
|
345
|
-
* @param centerY The second dimension of the position of the center of the circle.
|
|
346
|
-
*/
|
|
347
|
-
async circleAbsoluteOn(targetAxesIndices, rotationDirection, centerX, centerY) {
|
|
348
|
-
const request = new gateway.StreamCircleRequest();
|
|
349
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
350
|
-
request.setDevice(this.device.deviceAddress);
|
|
351
|
-
request.setStreamId(this.streamId);
|
|
352
|
-
request.setType(gateway.StreamCircleRequest.Type.ABS);
|
|
353
|
-
request.setTargetAxesIndicesList(targetAxesIndices);
|
|
354
|
-
request.setRotationDirection(rotationDirection);
|
|
355
|
-
request.setCenterX(measurement_1.Measurement.toProtobuf(centerX));
|
|
356
|
-
request.setCenterY(measurement_1.Measurement.toProtobuf(centerY));
|
|
357
|
-
await gateway.callAsync('device/stream_circle', request);
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* Queue a relative circle movement in the stream.
|
|
361
|
-
* The movement will only target the specified subset of axes in the stream.
|
|
362
|
-
* @param targetAxesIndices Indices of the axes in the stream the movement targets.
|
|
363
|
-
* Refers to the axes provided during the stream setup or further execution.
|
|
364
|
-
* Indices are zero-based.
|
|
365
|
-
* @param rotationDirection The direction of the rotation.
|
|
366
|
-
* @param centerX The first dimension of the position of the center of the circle.
|
|
367
|
-
* @param centerY The second dimension of the position of the center of the circle.
|
|
368
|
-
*/
|
|
369
|
-
async circleRelativeOn(targetAxesIndices, rotationDirection, centerX, centerY) {
|
|
370
|
-
const request = new gateway.StreamCircleRequest();
|
|
371
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
372
|
-
request.setDevice(this.device.deviceAddress);
|
|
373
|
-
request.setStreamId(this.streamId);
|
|
374
|
-
request.setType(gateway.StreamCircleRequest.Type.REL);
|
|
375
|
-
request.setTargetAxesIndicesList(targetAxesIndices);
|
|
376
|
-
request.setRotationDirection(rotationDirection);
|
|
377
|
-
request.setCenterX(measurement_1.Measurement.toProtobuf(centerX));
|
|
378
|
-
request.setCenterY(measurement_1.Measurement.toProtobuf(centerY));
|
|
379
|
-
await gateway.callAsync('device/stream_circle', request);
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* Wait for a digital input channel to reach a given value.
|
|
383
|
-
* @param channelNumber The number of the digital input channel.
|
|
384
|
-
* Channel numbers are numbered from one.
|
|
385
|
-
* @param value The value that the stream should wait for.
|
|
386
|
-
*/
|
|
387
|
-
async waitDigitalInput(channelNumber, value) {
|
|
388
|
-
const request = new gateway.StreamWaitDigitalInputRequest();
|
|
389
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
390
|
-
request.setDevice(this.device.deviceAddress);
|
|
391
|
-
request.setStreamId(this.streamId);
|
|
392
|
-
request.setChannelNumber(channelNumber);
|
|
393
|
-
request.setValue(value);
|
|
394
|
-
await gateway.callAsync('device/stream_wait_digital_input', request);
|
|
395
|
-
}
|
|
396
|
-
/**
|
|
397
|
-
* Wait for the value of a analog input channel to reach a condition concerning a given value.
|
|
398
|
-
* @param channelNumber The number of the analog input channel.
|
|
399
|
-
* Channel numbers are numbered from one.
|
|
400
|
-
* @param condition A condition (e.g. <, <=, ==, !=).
|
|
401
|
-
* @param value The value that the condition concerns, in volts.
|
|
402
|
-
*/
|
|
403
|
-
async waitAnalogInput(channelNumber, condition, value) {
|
|
404
|
-
const request = new gateway.StreamWaitAnalogInputRequest();
|
|
405
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
406
|
-
request.setDevice(this.device.deviceAddress);
|
|
407
|
-
request.setStreamId(this.streamId);
|
|
408
|
-
request.setChannelNumber(channelNumber);
|
|
409
|
-
request.setCondition(condition);
|
|
410
|
-
request.setValue(value);
|
|
411
|
-
await gateway.callAsync('device/stream_wait_analog_input', request);
|
|
412
|
-
}
|
|
413
|
-
/**
|
|
414
|
-
* Set the value of a digital output channel.
|
|
415
|
-
* @param channelNumber The number of the digital output channel.
|
|
416
|
-
* Channel numbers are numbered from one.
|
|
417
|
-
* @param value The value to set the channel to.
|
|
418
|
-
*/
|
|
419
|
-
async setDigitalOutput(channelNumber, value) {
|
|
420
|
-
const request = new gateway.StreamSetDigitalOutputRequest();
|
|
421
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
422
|
-
request.setDevice(this.device.deviceAddress);
|
|
423
|
-
request.setStreamId(this.streamId);
|
|
424
|
-
request.setChannelNumber(channelNumber);
|
|
425
|
-
request.setValue(value);
|
|
426
|
-
await gateway.callAsync('device/stream_set_digital_output', request);
|
|
427
|
-
}
|
|
428
|
-
/**
|
|
429
|
-
* Set the value of an analog output channel.
|
|
430
|
-
* @param channelNumber The number of the analog output channel.
|
|
431
|
-
* Channel numbers are numbered from one.
|
|
432
|
-
* @param value The value to set the channel to, in volts.
|
|
433
|
-
*/
|
|
434
|
-
async setAnalogOutput(channelNumber, value) {
|
|
435
|
-
const request = new gateway.StreamSetAnalogOutputRequest();
|
|
436
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
437
|
-
request.setDevice(this.device.deviceAddress);
|
|
438
|
-
request.setStreamId(this.streamId);
|
|
439
|
-
request.setChannelNumber(channelNumber);
|
|
440
|
-
request.setValue(value);
|
|
441
|
-
await gateway.callAsync('device/stream_set_analog_output', request);
|
|
442
|
-
}
|
|
443
|
-
/**
|
|
444
|
-
* Toggle the value of a digital output channel.
|
|
445
|
-
* @param channelNumber The number of the digital output channel.
|
|
446
|
-
* Channel numbers are numbered from one.
|
|
447
|
-
*/
|
|
448
|
-
async toggleDigitalOutput(channelNumber) {
|
|
449
|
-
const request = new gateway.StreamToggleDigitalOutputRequest();
|
|
450
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
451
|
-
request.setDevice(this.device.deviceAddress);
|
|
452
|
-
request.setStreamId(this.streamId);
|
|
453
|
-
request.setChannelNumber(channelNumber);
|
|
454
|
-
await gateway.callAsync('device/stream_toggle_digital_output', request);
|
|
455
|
-
}
|
|
456
|
-
/**
|
|
457
|
-
* Wait a specified time.
|
|
458
|
-
* @param time Amount of time to wait.
|
|
459
|
-
* @param unit Units of time.
|
|
460
|
-
*/
|
|
461
|
-
async wait(time, unit = units_1.Units.NATIVE) {
|
|
462
|
-
const request = new gateway.StreamWaitRequest();
|
|
463
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
464
|
-
request.setDevice(this.device.deviceAddress);
|
|
465
|
-
request.setStreamId(this.streamId);
|
|
466
|
-
request.setTime(time);
|
|
467
|
-
request.setUnit(unit);
|
|
468
|
-
await gateway.callAsync('device/stream_wait', request);
|
|
469
|
-
}
|
|
470
|
-
/**
|
|
471
|
-
* Waits until the live stream executes all queued actions.
|
|
472
|
-
* @param throwErrorOnFault Determines whether to throw error when fault is observed.
|
|
473
|
-
*/
|
|
474
|
-
async waitUntilIdle(throwErrorOnFault = true) {
|
|
475
|
-
const request = new gateway.StreamWaitUntilIdleRequest();
|
|
476
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
477
|
-
request.setDevice(this.device.deviceAddress);
|
|
478
|
-
request.setStreamId(this.streamId);
|
|
479
|
-
request.setThrowErrorOnFault(throwErrorOnFault);
|
|
480
|
-
await gateway.callAsync('device/stream_wait_until_idle', request);
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
* Cork the front of the stream's action queue, blocking execution.
|
|
484
|
-
* Execution resumes upon uncorking the queue, or when the number of queued actions reaches its limit.
|
|
485
|
-
* Corking eliminates discontinuities in motion due to subsequent stream commands reaching the device late.
|
|
486
|
-
* You can only cork an idle live stream.
|
|
487
|
-
*/
|
|
488
|
-
async cork() {
|
|
489
|
-
const request = new gateway.StreamCorkRequest();
|
|
490
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
491
|
-
request.setDevice(this.device.deviceAddress);
|
|
492
|
-
request.setStreamId(this.streamId);
|
|
493
|
-
await gateway.callAsync('device/stream_cork', request);
|
|
494
|
-
}
|
|
495
|
-
/**
|
|
496
|
-
* Uncork the front of the queue, unblocking command execution.
|
|
497
|
-
* You can only uncork an idle live stream that is corked.
|
|
498
|
-
*/
|
|
499
|
-
async uncork() {
|
|
500
|
-
const request = new gateway.StreamUncorkRequest();
|
|
501
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
502
|
-
request.setDevice(this.device.deviceAddress);
|
|
503
|
-
request.setStreamId(this.streamId);
|
|
504
|
-
await gateway.callAsync('device/stream_uncork', request);
|
|
505
|
-
}
|
|
506
|
-
/**
|
|
507
|
-
* Returns a boolean value indicating whether the live stream is executing a queued action.
|
|
508
|
-
* @return True if the stream is executing a queued action.
|
|
509
|
-
*/
|
|
510
|
-
async isBusy() {
|
|
511
|
-
const request = new gateway.StreamIsBusyRequest();
|
|
512
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
513
|
-
request.setDevice(this.device.deviceAddress);
|
|
514
|
-
request.setStreamId(this.streamId);
|
|
515
|
-
const response = await gateway.callAsync('device/stream_is_busy', request, gateway.StreamIsBusyResponse);
|
|
516
|
-
return response.getIsBusy();
|
|
517
|
-
}
|
|
518
|
-
/**
|
|
519
|
-
* Gets the maximum speed of the live stream.
|
|
520
|
-
* Converts the units using the first axis of the stream.
|
|
521
|
-
* @param unit Units of velocity.
|
|
522
|
-
* @return The maximum speed of the stream.
|
|
523
|
-
*/
|
|
524
|
-
async getMaxSpeed(unit = units_1.Units.NATIVE) {
|
|
525
|
-
const request = new gateway.StreamGetMaxSpeedRequest();
|
|
526
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
527
|
-
request.setDevice(this.device.deviceAddress);
|
|
528
|
-
request.setStreamId(this.streamId);
|
|
529
|
-
request.setUnit(unit);
|
|
530
|
-
const response = await gateway.callAsync('device/stream_get_max_speed', request, gateway.StreamGetMaxSpeedResponse);
|
|
531
|
-
return response.getMaxSpeed();
|
|
532
|
-
}
|
|
533
|
-
/**
|
|
534
|
-
* Sets the maximum speed of the live stream.
|
|
535
|
-
* Converts the units using the first axis of the stream.
|
|
536
|
-
* @param maxSpeed Maximum speed at which any stream action is executed.
|
|
537
|
-
* @param unit Units of velocity.
|
|
538
|
-
*/
|
|
539
|
-
async setMaxSpeed(maxSpeed, unit = units_1.Units.NATIVE) {
|
|
540
|
-
const request = new gateway.StreamSetMaxSpeedRequest();
|
|
541
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
542
|
-
request.setDevice(this.device.deviceAddress);
|
|
543
|
-
request.setStreamId(this.streamId);
|
|
544
|
-
request.setMaxSpeed(maxSpeed);
|
|
545
|
-
request.setUnit(unit);
|
|
546
|
-
await gateway.callAsync('device/stream_set_max_speed', request);
|
|
547
|
-
}
|
|
548
|
-
/**
|
|
549
|
-
* Gets the maximum tangential acceleration of the live stream.
|
|
550
|
-
* Converts the units using the first axis of the stream.
|
|
551
|
-
* @param unit Units of acceleration.
|
|
552
|
-
* @return The maximum tangential acceleration of the live stream.
|
|
553
|
-
*/
|
|
554
|
-
async getMaxTangentialAcceleration(unit = units_1.Units.NATIVE) {
|
|
555
|
-
const request = new gateway.StreamGetMaxTangentialAccelerationRequest();
|
|
556
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
557
|
-
request.setDevice(this.device.deviceAddress);
|
|
558
|
-
request.setStreamId(this.streamId);
|
|
559
|
-
request.setUnit(unit);
|
|
560
|
-
const response = await gateway.callAsync('device/stream_get_max_tangential_acceleration', request, gateway.StreamGetMaxTangentialAccelerationResponse);
|
|
561
|
-
return response.getMaxTangentialAcceleration();
|
|
562
|
-
}
|
|
563
|
-
/**
|
|
564
|
-
* Sets the maximum tangential acceleration of the live stream.
|
|
565
|
-
* Converts the units using the first axis of the stream.
|
|
566
|
-
* @param maxTangentialAcceleration Maximum tangential acceleration at which any stream action is executed.
|
|
567
|
-
* @param unit Units of acceleration.
|
|
568
|
-
*/
|
|
569
|
-
async setMaxTangentialAcceleration(maxTangentialAcceleration, unit = units_1.Units.NATIVE) {
|
|
570
|
-
const request = new gateway.StreamSetMaxTangentialAccelerationRequest();
|
|
571
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
572
|
-
request.setDevice(this.device.deviceAddress);
|
|
573
|
-
request.setStreamId(this.streamId);
|
|
574
|
-
request.setMaxTangentialAcceleration(maxTangentialAcceleration);
|
|
575
|
-
request.setUnit(unit);
|
|
576
|
-
await gateway.callAsync('device/stream_set_max_tangential_acceleration', request);
|
|
577
|
-
}
|
|
578
|
-
/**
|
|
579
|
-
* Gets the maximum centripetal acceleration of the live stream.
|
|
580
|
-
* Converts the units using the first axis of the stream.
|
|
581
|
-
* @param unit Units of acceleration.
|
|
582
|
-
* @return The maximum centripetal acceleration of the live stream.
|
|
583
|
-
*/
|
|
584
|
-
async getMaxCentripetalAcceleration(unit = units_1.Units.NATIVE) {
|
|
585
|
-
const request = new gateway.StreamGetMaxCentripetalAccelerationRequest();
|
|
586
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
587
|
-
request.setDevice(this.device.deviceAddress);
|
|
588
|
-
request.setStreamId(this.streamId);
|
|
589
|
-
request.setUnit(unit);
|
|
590
|
-
const response = await gateway.callAsync('device/stream_get_max_centripetal_acceleration', request, gateway.StreamGetMaxCentripetalAccelerationResponse);
|
|
591
|
-
return response.getMaxCentripetalAcceleration();
|
|
592
|
-
}
|
|
593
|
-
/**
|
|
594
|
-
* Sets the maximum centripetal acceleration of the live stream.
|
|
595
|
-
* Converts the units using the first axis of the stream.
|
|
596
|
-
* @param maxCentripetalAcceleration Maximum centripetal acceleration at which any stream action is executed.
|
|
597
|
-
* @param unit Units of acceleration.
|
|
598
|
-
*/
|
|
599
|
-
async setMaxCentripetalAcceleration(maxCentripetalAcceleration, unit = units_1.Units.NATIVE) {
|
|
600
|
-
const request = new gateway.StreamSetMaxCentripetalAccelerationRequest();
|
|
601
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
602
|
-
request.setDevice(this.device.deviceAddress);
|
|
603
|
-
request.setStreamId(this.streamId);
|
|
604
|
-
request.setMaxCentripetalAcceleration(maxCentripetalAcceleration);
|
|
605
|
-
request.setUnit(unit);
|
|
606
|
-
await gateway.callAsync('device/stream_set_max_centripetal_acceleration', request);
|
|
607
|
-
}
|
|
608
|
-
/**
|
|
609
|
-
* Returns a string which represents the stream.
|
|
610
|
-
* @return String which represents the stream.
|
|
611
|
-
*/
|
|
612
|
-
toString() {
|
|
613
|
-
const request = new gateway.StreamToStringRequest();
|
|
614
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
615
|
-
request.setDevice(this.device.deviceAddress);
|
|
616
|
-
request.setStreamId(this.streamId);
|
|
617
|
-
const response = gateway.callSync('device/stream_to_string', request, gateway.StreamToStringResponse);
|
|
618
|
-
return response.getToStr();
|
|
619
|
-
}
|
|
620
|
-
/**
|
|
621
|
-
* Disable the stream.
|
|
622
|
-
* If the stream is not setup, this command does nothing.
|
|
623
|
-
* Once disabled, the stream will no longer accept stream commands.
|
|
624
|
-
* The stream will process the rest of the commands in the queue until it is empty.
|
|
625
|
-
*/
|
|
626
|
-
async disable() {
|
|
627
|
-
const request = new gateway.StreamDisableRequest();
|
|
628
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
629
|
-
request.setDevice(this.device.deviceAddress);
|
|
630
|
-
request.setStreamId(this.streamId);
|
|
631
|
-
await gateway.callAsync('device/stream_disable', request);
|
|
632
|
-
}
|
|
633
|
-
/**
|
|
634
|
-
* Gets the axes of the stream.
|
|
635
|
-
* @return An array of axis numbers of the axes the stream is set up to control.
|
|
636
|
-
*/
|
|
637
|
-
_retrieveAxes() {
|
|
638
|
-
const request = new gateway.StreamGetAxesRequest();
|
|
639
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
640
|
-
request.setDevice(this.device.deviceAddress);
|
|
641
|
-
request.setStreamId(this.streamId);
|
|
642
|
-
const response = gateway.callSync('device/stream_get_axes', request, gateway.StreamGetAxesResponse);
|
|
643
|
-
return response.toObject().axesList.map(resp => stream_axis_definition_1.StreamAxisDefinition.fromProtobuf(resp));
|
|
644
|
-
}
|
|
645
|
-
/**
|
|
646
|
-
* Get the mode of the stream.
|
|
647
|
-
* @return Mode of the stream.
|
|
648
|
-
*/
|
|
649
|
-
_retrieveMode() {
|
|
650
|
-
const request = new gateway.StreamGetModeRequest();
|
|
651
|
-
request.setInterfaceId(this.device.connection.interfaceId);
|
|
652
|
-
request.setDevice(this.device.deviceAddress);
|
|
653
|
-
request.setStreamId(this.streamId);
|
|
654
|
-
const response = gateway.callSync('device/stream_get_mode', request, gateway.StreamGetModeResponse);
|
|
655
|
-
return response.getMode();
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
exports.Stream = Stream;
|
|
659
|
-
//# sourceMappingURL=stream.js.map
|