|
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...

Functions | |
| int | arcs::common_interface::IoControl::getStandardDigitalInputNum () |
| Get the number of standard digital inputs. | |
| int | arcs::common_interface::IoControl::getToolDigitalInputNum () |
| Get the number of tool digital IOs (including digital inputs and outputs). | |
| int | arcs::common_interface::IoControl::getConfigurableDigitalInputNum () |
| Get the number of configurable digital inputs. | |
| int | arcs::common_interface::IoControl::getStandardDigitalOutputNum () |
| Get the number of standard digital outputs. | |
| int | arcs::common_interface::IoControl::getToolDigitalOutputNum () |
| Get the number of tool digital IOs (including digital inputs and outputs). | |
| int | arcs::common_interface::IoControl::setToolIoInput (int index, bool input) |
| Set the specified tool digital IO as input or output. | |
| bool | arcs::common_interface::IoControl::isToolIoInput (int index) |
| Determine whether the specified tool digital IO is configured as input. | |
| int | arcs::common_interface::IoControl::getConfigurableDigitalOutputNum () |
| Get the number of configurable digital outputs. | |
| int | arcs::common_interface::IoControl::getStandardAnalogInputNum () |
| Get the number of standard analog inputs. | |
| int | arcs::common_interface::IoControl::getToolAnalogInputNum () |
| Get the number of tool analog inputs. | |
| int | arcs::common_interface::IoControl::getStandardAnalogOutputNum () |
| Get the number of standard analog outputs. | |
| int | arcs::common_interface::IoControl::getToolAnalogOutputNum () |
| Get the number of tool analog outputs. | |
| int | arcs::common_interface::IoControl::setDigitalInputActionDefault () |
| Set all digital input actions to no trigger. | |
| int | arcs::common_interface::IoControl::setStandardDigitalInputAction (int index, StandardInputAction action) |
| Set the trigger action for standard digital input. | |
| int | arcs::common_interface::IoControl::setToolDigitalInputAction (int index, StandardInputAction action) |
| Set the trigger action for tool digital input. | |
| int | arcs::common_interface::IoControl::setConfigurableDigitalInputAction (int index, StandardInputAction action) |
| Set the trigger action for configurable digital input. | |
| StandardInputAction | arcs::common_interface::IoControl::getStandardDigitalInputAction (int index) |
| Get the trigger action for standard digital input. | |
| StandardInputAction | arcs::common_interface::IoControl::getToolDigitalInputAction (int index) |
| Get the trigger action for tool digital input. | |
| StandardInputAction | arcs::common_interface::IoControl::getConfigurableDigitalInputAction (int index) |
| Get the trigger action for configurable digital input. | |
| int | arcs::common_interface::IoControl::setDigitalOutputRunstateDefault () |
| Set all digital output runstates to None. | |
| int | arcs::common_interface::IoControl::setStandardDigitalOutputRunstate (int index, StandardOutputRunState runstate) |
| Set the runstate for standard digital output. | |
| int | arcs::common_interface::IoControl::setToolDigitalOutputRunstate (int index, StandardOutputRunState runstate) |
| Set the runstate for tool digital output. | |
| int | arcs::common_interface::IoControl::setConfigurableDigitalOutputRunstate (int index, StandardOutputRunState runstate) |
| Set the runstate for configurable digital output. | |
| int | arcs::common_interface::IoControl::setDigitalOutputRunstate (int io_type, int index, StandardOutputRunState runstate, const std::string &object_name, double threshold) |
| Set digital output runstate with optional condition checking based on waypoint, plane or obstacle thresholds. | |
| StandardOutputRunState | arcs::common_interface::IoControl::getStandardDigitalOutputRunstate (int index) |
| Get the runstate for standard digital output. | |
| StandardOutputRunState | arcs::common_interface::IoControl::getToolDigitalOutputRunstate (int index) |
| Get the runstate for tool digital output. | |
| StandardOutputRunState | arcs::common_interface::IoControl::getConfigurableDigitalOutputRunstate (int index) |
| Get the runstate for configurable digital output. | |
| StandardOutputRunState | arcs::common_interface::IoControl::getDigitalOutputRunstate (int io_type, int index) |
| Get the current runstate of a digital output of the specified type. | |
| int | arcs::common_interface::IoControl::setStandardAnalogOutputRunstate (int index, StandardOutputRunState runstate) |
| Set the runstate for standard analog output. | |
| int | arcs::common_interface::IoControl::setToolAnalogOutputRunstate (int index, StandardOutputRunState runstate) |
| Set the runstate for tool analog output. | |
| StandardOutputRunState | arcs::common_interface::IoControl::getStandardAnalogOutputRunstate (int index) |
| Get the runstate for standard analog output. | |
| StandardOutputRunState | arcs::common_interface::IoControl::getToolAnalogOutputRunstate (int index) |
| Get the runstate for tool analog output. | |
| int | arcs::common_interface::IoControl::setDigitalOutputAfterEStopDefault () |
| Set all digital output states after emergency stop to default(no change) | |
| int | arcs::common_interface::IoControl::setAnalogOutputAfterEStopDefault () |
| Set all analog output states after emergency stop to default(no change) | |
| int | arcs::common_interface::IoControl::setStandardDigitalOutputAfterEStop (int index, bool value) |
| Set the value of a standard digital output after emergency stop | |
| int | arcs::common_interface::IoControl::setConfigurableDigitalOutputAfterEStop (int index, bool value) |
| Set the value of a configurable digital output after emergency stop | |
| int | arcs::common_interface::IoControl::setStandardAnalogOutputAfterEStop (int index, double value) |
| Set the value of standard analog output after emergency stop | |
| int | arcs::common_interface::IoControl::setStandardAnalogInputDomain (int index, int domain) |
| Set the range of standard analog input. | |
| int | arcs::common_interface::IoControl::setToolAnalogInputDomain (int index, int domain) |
| Set the range of tool analog input. | |
| int | arcs::common_interface::IoControl::getStandardAnalogInputDomain (int index) |
| Get the domain of standard analog input. | |
| int | arcs::common_interface::IoControl::getToolAnalogInputDomain (int index) |
| Get the domain of tool analog input. | |
| int | arcs::common_interface::IoControl::setStandardAnalogOutputDomain (int index, int domain) |
| Set the range of standard analog output. | |
| int | arcs::common_interface::IoControl::setToolAnalogOutputDomain (int index, int domain) |
| Set the range of tool analog output. | |
| int | arcs::common_interface::IoControl::getStandardAnalogOutputDomain (int index) |
| Get the domain of standard analog output. | |
| int | arcs::common_interface::IoControl::getToolAnalogOutputDomain (int index) |
| Get the domain of tool analog output. | |
| int | arcs::common_interface::IoControl::setToolVoltageOutputDomain (int domain) |
| Set the tool voltage output value (unit: V) | |
| int | arcs::common_interface::IoControl::getToolVoltageOutputDomain () |
| Get the tool voltage output value (unit: V) | |
| int | arcs::common_interface::IoControl::setStandardDigitalOutput (int index, bool value) |
| Set the value of a standard digital output. | |
| int | arcs::common_interface::IoControl::setStandardDigitalOutputPulse (int index, bool value, double duration) |
| Set digital output pulse. | |
| int | arcs::common_interface::IoControl::setToolDigitalOutput (int index, bool value) |
| Set the value of tool digital output. | |
| int | arcs::common_interface::IoControl::setToolDigitalOutputPulse (int index, bool value, double duration) |
| Set tool digital output pulse. | |
| int | arcs::common_interface::IoControl::setConfigurableDigitalOutput (int index, bool value) |
| Set the value of configurable digital output. | |
| int | arcs::common_interface::IoControl::setConfigurableDigitalOutputPulse (int index, bool value, double duration) |
| Set configurable digital output pulse. | |
| int | arcs::common_interface::IoControl::setStandardAnalogOutput (int index, double value) |
| Set the value of standard analog output. | |
| int | arcs::common_interface::IoControl::setToolAnalogOutput (int index, double value) |
| Set the value of tool analog output. | |
| bool | arcs::common_interface::IoControl::getStandardDigitalInput (int index) |
| Get the value of a standard digital input. | |
| uint32_t | arcs::common_interface::IoControl::getStandardDigitalInputs () |
| Get all standard digital input values. | |
| bool | arcs::common_interface::IoControl::getToolDigitalInput (int index) |
| Get the value of tool digital input. | |
| uint32_t | arcs::common_interface::IoControl::getToolDigitalInputs () |
| Get all tool digital input values. | |
| bool | arcs::common_interface::IoControl::getConfigurableDigitalInput (int index) |
| Get the value of configurable digital input. | |
| uint32_t | arcs::common_interface::IoControl::getConfigurableDigitalInputs () |
| Get all configurable digital input values. | |
| bool | arcs::common_interface::IoControl::getStandardDigitalOutput (int index) |
| Get the value of a standard digital output. | |
| uint32_t | arcs::common_interface::IoControl::getStandardDigitalOutputs () |
| Get all standard digital output values. | |
| bool | arcs::common_interface::IoControl::getToolDigitalOutput (int index) |
| Get the value of tool digital output. | |
| uint32_t | arcs::common_interface::IoControl::getToolDigitalOutputs () |
| Get all tool digital output values. | |
| bool | arcs::common_interface::IoControl::getConfigurableDigitalOutput (int index) |
| Get the value of configurable digital output. | |
| uint32_t | arcs::common_interface::IoControl::getConfigurableDigitalOutputs () |
| Get all configurable digital output values. | |
| double | arcs::common_interface::IoControl::getStandardAnalogInput (int index) |
| Get the value of standard analog input. | |
| double | arcs::common_interface::IoControl::getToolAnalogInput (int index) |
| Get the value of tool analog input. | |
| double | arcs::common_interface::IoControl::getStandardAnalogOutput (int index) |
| Get the value of standard analog output. | |
| double | arcs::common_interface::IoControl::getToolAnalogOutput (int index) |
| Get the value of tool analog output. | |
| int | arcs::common_interface::IoControl::getStaticLinkInputNum () |
| Get the number of static link inputs. | |
| int | arcs::common_interface::IoControl::getStaticLinkOutputNum () |
| Get the number of static link outputs. | |
| uint32_t | arcs::common_interface::IoControl::getStaticLinkInputs () |
| Get all static link input values. | |
| uint32_t | arcs::common_interface::IoControl::getStaticLinkOutputs () |
| Get all static link output values. | |
| bool | arcs::common_interface::IoControl::hasEncoderSensor () |
| Whether the robot is equipped with an encoder. | |
| int | arcs::common_interface::IoControl::setEncDecoderType (int type, int range_id) |
| Set the decoding method of the integrated encoder. | |
| int | arcs::common_interface::IoControl::setEncTickCount (int tick) |
| Set the tick count of the integrated encoder. | |
| int | arcs::common_interface::IoControl::getEncDecoderType () |
| Get the decoder type of the encoder. | |
| int | arcs::common_interface::IoControl::getEncTickCount () |
| Get the tick count | |
| int | arcs::common_interface::IoControl::unwindEncDeltaTickCount (int delta_count) |
| Prevent counting errors when the count exceeds the range | |
| bool | arcs::common_interface::IoControl::getToolButtonStatus () |
| Get the status of the tool button. | |
| uint32_t | arcs::common_interface::IoControl::getHandleIoStatus () |
| Get the status of handle buttons. | |
| int | arcs::common_interface::IoControl::getHandleType () |
| Get the handle type. | |
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
| 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 |
| StandardOutputRunState arcs::common_interface::IoControl::getDigitalOutputRunstate | ( | int | io_type, |
| int | index ) |
Get the current runstate of a digital output of the specified type.
Use this API to query the runstate selection (for example None, Handguiding, WaypointArrived) of different digital output types (standard, tool, configurable).
| io_type | Numeric IO type (0=standard, 1=tool, 2=configurable) |
| index | IO pin index starting from 0 |
| 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::setAnalogOutputAfterEStopDefault | ( | ) |
Set all analog output states after emergency stop to default(no change)
| 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::setConfigurableDigitalOutputAfterEStop | ( | int | index, |
| bool | value ) |
Set the value of a configurable digital output after emergency stop
| index | Indicates the IO 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::setDigitalOutputAfterEStopDefault | ( | ) |
Set all digital output states after emergency stop to default(no change)
| arcs::common_interface::AuboException |
| int arcs::common_interface::IoControl::setDigitalOutputRunstate | ( | int | io_type, |
| int | index, | ||
| StandardOutputRunState | runstate, | ||
| const std::string & | object_name, | ||
| double | threshold ) |
Set digital output runstate with optional condition checking based on waypoint, plane or obstacle thresholds.
Use this API to control a digital output when a specified condition is met (for example, waypoint arrival or distance to a plane/obstacle). Specify an object type, name and a threshold value to enable conditional triggering. When the condition is satisfied, the given digital output will be set to the requested runstate.
| io_type | Numeric IO type (e.g. 0=standard, 1=tool, 2=configurable) |
| index | IO pin index starting from 0 |
| runstate | The desired output action |
| object_name | Unique identifier of the condition object (optional) |
| threshold | Condition threshold: angle in degrees for waypoints, or distance in millimeters for planes/obstacles(optional) |
| 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::setStandardAnalogOutputAfterEStop | ( | int | index, |
| double | value ) |
Set the value of standard analog output after emergency stop
| 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::setStandardDigitalOutputAfterEStop | ( | int | index, |
| bool | value ) |
Set the value of a standard digital output after emergency stop
| 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 |