![]() |
AUBO SDK
0.26.0
|
The IoControl class provides a series of interfaces for configuring and reading the robot's standard digital and analog IO, as well as setting output states. More...
#include <io_control.h>
Public Member Functions | |
| IoControl () | |
| virtual | ~IoControl () |
| int | getStandardDigitalInputNum () |
| Get the number of standard digital inputs. | |
| int | getToolDigitalInputNum () |
| Get the number of tool digital IOs (including digital inputs and outputs). | |
| int | getConfigurableDigitalInputNum () |
| Get the number of configurable digital inputs. | |
| int | getStandardDigitalOutputNum () |
| Get the number of standard digital outputs. | |
| int | getToolDigitalOutputNum () |
| Get the number of tool digital IOs (including digital inputs and outputs). | |
| int | setToolIoInput (int index, bool input) |
| Set the specified tool digital IO as input or output. | |
| bool | isToolIoInput (int index) |
| Determine whether the specified tool digital IO is configured as input. | |
| int | getConfigurableDigitalOutputNum () |
| Get the number of configurable digital outputs. | |
| int | getStandardAnalogInputNum () |
| Get the number of standard analog inputs. | |
| int | getToolAnalogInputNum () |
| Get the number of tool analog inputs. | |
| int | getStandardAnalogOutputNum () |
| Get the number of standard analog outputs. | |
| int | getToolAnalogOutputNum () |
| Get the number of tool analog outputs. | |
| int | setDigitalInputActionDefault () |
| Set all digital input actions to no trigger. | |
| int | setStandardDigitalInputAction (int index, StandardInputAction action) |
| Set the trigger action for standard digital input. | |
| int | setToolDigitalInputAction (int index, StandardInputAction action) |
| Set the trigger action for tool digital input. | |
| int | setConfigurableDigitalInputAction (int index, StandardInputAction action) |
| Set the trigger action for configurable digital input. | |
| StandardInputAction | getStandardDigitalInputAction (int index) |
| Get the trigger action for standard digital input. | |
| StandardInputAction | getToolDigitalInputAction (int index) |
| Get the trigger action for tool digital input. | |
| StandardInputAction | getConfigurableDigitalInputAction (int index) |
| Get the trigger action for configurable digital input. | |
| int | setDigitalOutputRunstateDefault () |
| Set all digital output runstates to None. | |
| int | setStandardDigitalOutputRunstate (int index, StandardOutputRunState runstate) |
| Set the runstate for standard digital output. | |
| int | setToolDigitalOutputRunstate (int index, StandardOutputRunState runstate) |
| Set the runstate for tool digital output. | |
| int | setConfigurableDigitalOutputRunstate (int index, StandardOutputRunState runstate) |
| Set the runstate for configurable digital output. | |
| StandardOutputRunState | getStandardDigitalOutputRunstate (int index) |
| Get the runstate for standard digital output. | |
| StandardOutputRunState | getToolDigitalOutputRunstate (int index) |
| Get the runstate for tool digital output. | |
| StandardOutputRunState | getConfigurableDigitalOutputRunstate (int index) |
| Get the runstate for configurable digital output. | |
| int | setStandardAnalogOutputRunstate (int index, StandardOutputRunState runstate) |
| Set the runstate for standard analog output. | |
| int | setToolAnalogOutputRunstate (int index, StandardOutputRunState runstate) |
| Set the runstate for tool analog output. | |
| StandardOutputRunState | getStandardAnalogOutputRunstate (int index) |
| Get the runstate for standard analog output. | |
| StandardOutputRunState | getToolAnalogOutputRunstate (int index) |
| Get the runstate for tool analog output. | |
| int | setStandardAnalogInputDomain (int index, int domain) |
| Set the range of standard analog input. | |
| int | setToolAnalogInputDomain (int index, int domain) |
| Set the range of tool analog input. | |
| int | getStandardAnalogInputDomain (int index) |
| Get the domain of standard analog input. | |
| int | getToolAnalogInputDomain (int index) |
| Get the domain of tool analog input. | |
| int | setStandardAnalogOutputDomain (int index, int domain) |
| Set the range of standard analog output. | |
| int | setToolAnalogOutputDomain (int index, int domain) |
| Set the range of tool analog output. | |
| int | getStandardAnalogOutputDomain (int index) |
| Get the domain of standard analog output. | |
| int | getToolAnalogOutputDomain (int index) |
| Get the domain of tool analog output. | |
| int | setToolVoltageOutputDomain (int domain) |
| Set the tool voltage output value (unit: V) | |
| int | getToolVoltageOutputDomain () |
| Get the tool voltage output value (unit: V) | |
| int | setStandardDigitalOutput (int index, bool value) |
| Set the value of a standard digital output. | |
| int | setStandardDigitalOutputPulse (int index, bool value, double duration) |
| Set digital output pulse. | |
| int | setToolDigitalOutput (int index, bool value) |
| Set the value of tool digital output. | |
| int | setToolDigitalOutputPulse (int index, bool value, double duration) |
| Set tool digital output pulse. | |
| int | setConfigurableDigitalOutput (int index, bool value) |
| Set the value of configurable digital output. | |
| int | setConfigurableDigitalOutputPulse (int index, bool value, double duration) |
| Set configurable digital output pulse. | |
| int | setStandardAnalogOutput (int index, double value) |
| Set the value of standard analog output. | |
| int | setToolAnalogOutput (int index, double value) |
| Set the value of tool analog output. | |
| bool | getStandardDigitalInput (int index) |
| Get the value of a standard digital input. | |
| uint32_t | getStandardDigitalInputs () |
| Get all standard digital input values. | |
| bool | getToolDigitalInput (int index) |
| Get the value of tool digital input. | |
| uint32_t | getToolDigitalInputs () |
| Get all tool digital input values. | |
| bool | getConfigurableDigitalInput (int index) |
| Get the value of configurable digital input. | |
| uint32_t | getConfigurableDigitalInputs () |
| Get all configurable digital input values. | |
| bool | getStandardDigitalOutput (int index) |
| Get the value of a standard digital output. | |
| uint32_t | getStandardDigitalOutputs () |
| Get all standard digital output values. | |
| bool | getToolDigitalOutput (int index) |
| Get the value of tool digital output. | |
| uint32_t | getToolDigitalOutputs () |
| Get all tool digital output values. | |
| bool | getConfigurableDigitalOutput (int index) |
| Get the value of configurable digital output. | |
| uint32_t | getConfigurableDigitalOutputs () |
| Get all configurable digital output values. | |
| double | getStandardAnalogInput (int index) |
| Get the value of standard analog input. | |
| double | getToolAnalogInput (int index) |
| Get the value of tool analog input. | |
| double | getStandardAnalogOutput (int index) |
| Get the value of standard analog output. | |
| double | getToolAnalogOutput (int index) |
| Get the value of tool analog output. | |
| int | getStaticLinkInputNum () |
| Get the number of static link inputs. | |
| int | getStaticLinkOutputNum () |
| Get the number of static link outputs. | |
| uint32_t | getStaticLinkInputs () |
| Get all static link input values. | |
| uint32_t | getStaticLinkOutputs () |
| Get all static link output values. | |
| bool | hasEncoderSensor () |
| Whether the robot is equipped with an encoder. | |
| int | setEncDecoderType (int type, int range_id) |
| Set the decoding method of the integrated encoder. | |
| int | setEncTickCount (int tick) |
| Set the tick count of the integrated encoder. | |
| int | getEncDecoderType () |
| Get the decoder type of the encoder. | |
| int | getEncTickCount () |
| Get the tick count | |
| int | unwindEncDeltaTickCount (int delta_count) |
| Prevent counting errors when the count exceeds the range | |
| bool | getToolButtonStatus () |
| Get the status of the tool button. | |
| uint32_t | getHandleIoStatus () |
| Get the status of handle buttons. | |
| int | getHandleType () |
| Get the handle type. | |
Protected Attributes | |
| void * | d_ |
The IoControl class provides a series of interfaces for configuring and reading the robot's standard digital and analog IO, as well as setting output states.
Standard digital input/output: Standard IOs on the control cabinet IO panel
Tool digital input/output: Digital IOs exposed via the tool-end connector
Configurable input/output: Can be configured as safety IO or general digital IO
Definition at line 42 of file io_control.h.
| arcs::common_interface::IoControl::IoControl | ( | ) |
|
virtual |
| bool arcs::common_interface::IoControl::getConfigurableDigitalInput | ( | int | index | ) |
Get the value of configurable digital input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| StandardInputAction arcs::common_interface::IoControl::getConfigurableDigitalInputAction | ( | int | index | ) |
Get the trigger action for configurable digital input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| int arcs::common_interface::IoControl::getConfigurableDigitalInputNum | ( | ) |
Get the number of configurable digital inputs.
| arcs::common_interface::AuboException |
| uint32_t arcs::common_interface::IoControl::getConfigurableDigitalInputs | ( | ) |
Get all configurable digital input values.
| arcs::common_interface::AuboException |
| bool arcs::common_interface::IoControl::getConfigurableDigitalOutput | ( | int | index | ) |
Get the value of configurable digital output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getConfigurableDigitalOutputNum | ( | ) |
Get the number of configurable digital outputs.
| arcs::common_interface::AuboException |
| StandardOutputRunState arcs::common_interface::IoControl::getConfigurableDigitalOutputRunstate | ( | int | index | ) |
Get the runstate for configurable digital output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| uint32_t arcs::common_interface::IoControl::getConfigurableDigitalOutputs | ( | ) |
Get all configurable digital output values.
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getEncDecoderType | ( | ) |
Get the decoder type of the encoder.
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getEncTickCount | ( | ) |
Get the tick count
| arcs::common_interface::AuboException |
| uint32_t arcs::common_interface::IoControl::getHandleIoStatus | ( | ) |
Get the status of handle buttons.
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getHandleType | ( | ) |
Get the handle type.
| arcs::common_interface::AuboException |
| double arcs::common_interface::IoControl::getStandardAnalogInput | ( | int | index | ) |
Get the value of standard analog input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getStandardAnalogInputDomain | ( | int | index | ) |
Get the domain of standard analog input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getStandardAnalogInputNum | ( | ) |
Get the number of standard analog inputs.
| arcs::common_interface::AuboException |
| double arcs::common_interface::IoControl::getStandardAnalogOutput | ( | int | index | ) |
Get the value of standard analog output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getStandardAnalogOutputDomain | ( | int | index | ) |
Get the domain of standard analog output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getStandardAnalogOutputNum | ( | ) |
Get the number of standard analog outputs.
| arcs::common_interface::AuboException |
| StandardOutputRunState arcs::common_interface::IoControl::getStandardAnalogOutputRunstate | ( | int | index | ) |
Get the runstate for standard analog output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| bool arcs::common_interface::IoControl::getStandardDigitalInput | ( | int | index | ) |
Get the value of a standard digital input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| StandardInputAction arcs::common_interface::IoControl::getStandardDigitalInputAction | ( | int | index | ) |
Get the trigger action for standard digital input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| int arcs::common_interface::IoControl::getStandardDigitalInputNum | ( | ) |
Get the number of standard digital inputs.
| arcs::common_interface::AuboException |
| uint32_t arcs::common_interface::IoControl::getStandardDigitalInputs | ( | ) |
Get all standard digital input values.
| arcs::common_interface::AuboException |
| bool arcs::common_interface::IoControl::getStandardDigitalOutput | ( | int | index | ) |
Get the value of a standard digital output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getStandardDigitalOutputNum | ( | ) |
Get the number of standard digital outputs.
| arcs::common_interface::AuboException |
| StandardOutputRunState arcs::common_interface::IoControl::getStandardDigitalOutputRunstate | ( | int | index | ) |
Get the runstate for standard digital output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| uint32_t arcs::common_interface::IoControl::getStandardDigitalOutputs | ( | ) |
Get all standard digital output values.
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getStaticLinkInputNum | ( | ) |
Get the number of static link inputs.
| arcs::common_interface::AuboException |
| uint32_t arcs::common_interface::IoControl::getStaticLinkInputs | ( | ) |
Get all static link input values.
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getStaticLinkOutputNum | ( | ) |
Get the number of static link outputs.
| arcs::common_interface::AuboException |
| uint32_t arcs::common_interface::IoControl::getStaticLinkOutputs | ( | ) |
Get all static link output values.
| arcs::common_interface::AuboException |
| double arcs::common_interface::IoControl::getToolAnalogInput | ( | int | index | ) |
Get the value of tool analog input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getToolAnalogInputDomain | ( | int | index | ) |
Get the domain of tool analog input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getToolAnalogInputNum | ( | ) |
Get the number of tool analog inputs.
| arcs::common_interface::AuboException |
| double arcs::common_interface::IoControl::getToolAnalogOutput | ( | int | index | ) |
Get the value of tool analog output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getToolAnalogOutputDomain | ( | int | index | ) |
Get the domain of tool analog output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getToolAnalogOutputNum | ( | ) |
Get the number of tool analog outputs.
| arcs::common_interface::AuboException |
| StandardOutputRunState arcs::common_interface::IoControl::getToolAnalogOutputRunstate | ( | int | index | ) |
Get the runstate for tool analog output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| bool arcs::common_interface::IoControl::getToolButtonStatus | ( | ) |
Get the status of the tool button.
| arcs::common_interface::AuboException |
| bool arcs::common_interface::IoControl::getToolDigitalInput | ( | int | index | ) |
Get the value of tool digital input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| StandardInputAction arcs::common_interface::IoControl::getToolDigitalInputAction | ( | int | index | ) |
Get the trigger action for tool digital input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| int arcs::common_interface::IoControl::getToolDigitalInputNum | ( | ) |
Get the number of tool digital IOs (including digital inputs and outputs).
| arcs::common_interface::AuboException |
| uint32_t arcs::common_interface::IoControl::getToolDigitalInputs | ( | ) |
Get all tool digital input values.
| arcs::common_interface::AuboException |
| bool arcs::common_interface::IoControl::getToolDigitalOutput | ( | int | index | ) |
Get the value of tool digital output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getToolDigitalOutputNum | ( | ) |
Get the number of tool digital IOs (including digital inputs and outputs).
| arcs::common_interface::AuboException |
| StandardOutputRunState arcs::common_interface::IoControl::getToolDigitalOutputRunstate | ( | int | index | ) |
Get the runstate for tool digital output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| uint32_t arcs::common_interface::IoControl::getToolDigitalOutputs | ( | ) |
Get all tool digital output values.
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::getToolVoltageOutputDomain | ( | ) |
Get the tool voltage output value (unit: V)
| arcs::common_interface::AuboException |
| bool arcs::common_interface::IoControl::hasEncoderSensor | ( | ) |
Whether the robot is equipped with an encoder.
The integrated encoder number is 0.
| arcs::common_interface::AuboException |
| bool arcs::common_interface::IoControl::isToolIoInput | ( | int | index | ) |
Determine whether the specified tool digital IO is configured as input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setConfigurableDigitalInputAction | ( | int | index, |
| StandardInputAction | action | ||
| ) |
Set the trigger action for configurable digital input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| action | Trigger action |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setConfigurableDigitalOutput | ( | int | index, |
| bool | value | ||
| ) |
Set the value of configurable digital output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| value | Output value. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setConfigurableDigitalOutputPulse | ( | int | index, |
| bool | value, | ||
| double | duration | ||
| ) |
Set configurable digital output pulse.
| index | |
| value | |
| duration |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setConfigurableDigitalOutputRunstate | ( | int | index, |
| StandardOutputRunState | runstate | ||
| ) |
Set the runstate for configurable digital output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| runstate | Output runstate selection |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setDigitalInputActionDefault | ( | ) |
Set all digital input actions to no trigger.
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setDigitalOutputRunstateDefault | ( | ) |
Set all digital output runstates to None.
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setEncDecoderType | ( | int | type, |
| int | range_id | ||
| ) |
Set the decoding method of the integrated encoder.
| type | 0 - Disable encoder 1 - AB quadrature 2 - AB quadrature + Z 3 - AB differential quadrature 4 - AB differential quadrature + Z differential |
| range_id | 0 is a 32-bit signed encoder, range [-2147483648, 2147483647] 1 is an 8-bit unsigned encoder, range [0, 255] 2 is a 16-bit unsigned encoder, range [0, 65535] 3 is a 24-bit unsigned encoder, range [0, 16777215] 4 is a 32-bit unsigned encoder, range [0, 4294967295] |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setEncTickCount | ( | int | tick | ) |
Set the tick count of the integrated encoder.
| tick | Tick count |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setStandardAnalogInputDomain | ( | int | index, |
| int | domain | ||
| ) |
Set the range of standard analog input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| domain | Input range |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setStandardAnalogOutput | ( | int | index, |
| double | value | ||
| ) |
Set the value of standard analog output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| value | Output value. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setStandardAnalogOutputDomain | ( | int | index, |
| int | domain | ||
| ) |
Set the range of standard analog output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| domain | Output range |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setStandardAnalogOutputRunstate | ( | int | index, |
| StandardOutputRunState | runstate | ||
| ) |
Set the runstate for standard analog output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| runstate | Output runstate selection |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setStandardDigitalInputAction | ( | int | index, |
| StandardInputAction | action | ||
| ) |
Set the trigger action for standard digital input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| action | Trigger action |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setStandardDigitalOutput | ( | int | index, |
| bool | value | ||
| ) |
Set the value of a standard digital output.
| index | Indicates the IO pin. |
| value | Output value. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setStandardDigitalOutputPulse | ( | int | index, |
| bool | value, | ||
| double | duration | ||
| ) |
Set digital output pulse.
| index | |
| value | |
| duration |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setStandardDigitalOutputRunstate | ( | int | index, |
| StandardOutputRunState | runstate | ||
| ) |
Set the runstate for standard digital output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| runstate | Output runstate selection |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setToolAnalogInputDomain | ( | int | index, |
| int | domain | ||
| ) |
Set the range of tool analog input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| domain | Input range |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setToolAnalogOutput | ( | int | index, |
| double | value | ||
| ) |
Set the value of tool analog output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| value | Output value. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setToolAnalogOutputDomain | ( | int | index, |
| int | domain | ||
| ) |
Set the range of tool analog output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| domain | Output range |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setToolAnalogOutputRunstate | ( | int | index, |
| StandardOutputRunState | runstate | ||
| ) |
Set the runstate for tool analog output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| runstate | Output runstate selection |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setToolDigitalInputAction | ( | int | index, |
| StandardInputAction | action | ||
| ) |
Set the trigger action for tool digital input.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| action | Trigger action |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setToolDigitalOutput | ( | int | index, |
| bool | value | ||
| ) |
Set the value of tool digital output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| value | Output value. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setToolDigitalOutputPulse | ( | int | index, |
| bool | value, | ||
| double | duration | ||
| ) |
Set tool digital output pulse.
| index | |
| value | |
| duration |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setToolDigitalOutputRunstate | ( | int | index, |
| StandardOutputRunState | runstate | ||
| ) |
Set the runstate for tool digital output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| runstate | Output runstate selection |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setToolIoInput | ( | int | index, |
| bool | input | ||
| ) |
Set the specified tool digital IO as input or output.
Tool digital IOs are special and can be configured as input or output.
| index | Indicates the IO pin, starting from 0. For example, 0 means the first pin. |
| input | Indicates whether the specified IO is input. If input is true, set the IO as input; otherwise, set as output. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setToolVoltageOutputDomain | ( | int | domain | ) |
Set the tool voltage output value (unit: V)
| domain | Tool voltage output value, can be 0, 12, or 24. 0 means 0V, 12 means 12V, 24 means 24V. |
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::unwindEncDeltaTickCount | ( | int | delta_count | ) |
Prevent counting errors when the count exceeds the range
| delta_count |
| arcs::common_interface::AuboException |
|
protected |
Definition at line 4561 of file io_control.h.