4#ifndef AUBO_SDK_IO_CONTROL_INTERFACE_H
5#define AUBO_SDK_IO_CONTROL_INTERFACE_H
10#include <aubo/global_config.h>
14namespace common_interface {
The IoControl class provides a series of interfaces for configuring and reading the robot's standard ...
int setToolAnalogOutputDomain(int index, int domain)
Set the range of tool analog output.
StandardInputAction getStandardDigitalInputAction(int index)
Get the trigger action for standard digital input.
int setToolAnalogInputDomain(int index, int domain)
Set the range of tool analog input.
bool getToolDigitalOutput(int index)
Get the value of tool digital output.
int getConfigurableDigitalOutputNum()
Get the number of configurable digital outputs.
int setConfigurableDigitalOutput(int index, bool value)
Set the value of configurable digital output.
StandardOutputRunState getToolAnalogOutputRunstate(int index)
Get the runstate for tool analog output.
uint32_t getStaticLinkOutputs()
Get all static link output values.
uint32_t getStandardDigitalOutputs()
Get all standard digital output values.
StandardInputAction getConfigurableDigitalInputAction(int index)
Get the trigger action for configurable digital input.
int setStandardDigitalInputAction(int index, StandardInputAction action)
Set the trigger action for standard digital input.
int setConfigurableDigitalInputAction(int index, StandardInputAction action)
Set the trigger action for configurable digital input.
int getConfigurableDigitalInputNum()
Get the number of configurable digital inputs.
int getStandardAnalogOutputNum()
Get the number of standard analog outputs.
int getToolDigitalOutputNum()
Get the number of tool digital IOs (including digital inputs and outputs).
double getStandardAnalogOutput(int index)
Get the value of standard analog output.
uint32_t getHandleIoStatus()
Get the status of handle buttons.
int setDigitalOutputRunstateDefault()
Set all digital output runstates to None.
StandardOutputRunState getStandardDigitalOutputRunstate(int index)
Get the runstate for standard digital output.
int getStaticLinkOutputNum()
Get the number of static link outputs.
int getEncTickCount()
Get the tick count
int getStandardDigitalOutputNum()
Get the number of standard digital outputs.
int getHandleType()
Get the handle type.
int setToolAnalogOutputRunstate(int index, StandardOutputRunState runstate)
Set the runstate for tool analog output.
int getToolAnalogInputNum()
Get the number of tool analog inputs.
int setStandardDigitalOutput(int index, bool value)
Set the value of a standard digital output.
bool getStandardDigitalOutput(int index)
Get the value of a standard digital output.
bool getToolDigitalInput(int index)
Get the value of tool digital input.
StandardInputAction getToolDigitalInputAction(int index)
Get the trigger action for tool digital input.
double getToolAnalogOutput(int index)
Get the value of tool analog output.
int getToolVoltageOutputDomain()
Get the tool voltage output value (unit: V)
int getStandardDigitalInputNum()
Get the number of standard digital inputs.
int getToolDigitalInputNum()
Get the number of tool digital IOs (including digital inputs and outputs).
bool getStandardDigitalInput(int index)
Get the value of a standard digital input.
int setToolVoltageOutputDomain(int domain)
Set the tool voltage output value (unit: V)
int setToolDigitalOutputPulse(int index, bool value, double duration)
Set tool digital output pulse.
uint32_t getToolDigitalOutputs()
Get all tool digital output values.
int setToolDigitalInputAction(int index, StandardInputAction action)
Set the trigger action for tool digital input.
int setConfigurableDigitalOutputPulse(int index, bool value, double duration)
Set configurable digital output pulse.
int setStandardAnalogOutputDomain(int index, int domain)
Set the range of standard analog output.
double getToolAnalogInput(int index)
Get the value of tool analog input.
int setEncDecoderType(int type, int range_id)
Set the decoding method of the integrated encoder.
StandardOutputRunState getConfigurableDigitalOutputRunstate(int index)
Get the runstate for configurable digital output.
int getStandardAnalogInputDomain(int index)
Get the domain of standard analog input.
int setToolIoInput(int index, bool input)
Set the specified tool digital IO as input or output.
int getToolAnalogOutputNum()
Get the number of tool analog outputs.
StandardOutputRunState getStandardAnalogOutputRunstate(int index)
Get the runstate for standard analog output.
uint32_t getConfigurableDigitalInputs()
Get all configurable digital input values.
bool getToolButtonStatus()
Get the status of the tool button.
int getStandardAnalogOutputDomain(int index)
Get the domain of standard analog output.
int setStandardAnalogInputDomain(int index, int domain)
Set the range of standard analog input.
int setDigitalInputActionDefault()
Set all digital input actions to no trigger.
uint32_t getToolDigitalInputs()
Get all tool digital input values.
int getStandardAnalogInputNum()
Get the number of standard analog inputs.
int setToolAnalogOutput(int index, double value)
Set the value of tool analog output.
int setConfigurableDigitalOutputRunstate(int index, StandardOutputRunState runstate)
Set the runstate for configurable digital output.
int setEncTickCount(int tick)
Set the tick count of the integrated encoder.
bool hasEncoderSensor()
Whether the robot is equipped with an encoder.
int getToolAnalogOutputDomain(int index)
Get the domain of tool analog output.
int getToolAnalogInputDomain(int index)
Get the domain of tool analog input.
bool isToolIoInput(int index)
Determine whether the specified tool digital IO is configured as input.
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 setToolDigitalOutput(int index, bool value)
Set the value of tool digital output.
int setStandardAnalogOutputRunstate(int index, StandardOutputRunState runstate)
Set the runstate for standard analog output.
StandardOutputRunState getToolDigitalOutputRunstate(int index)
Get the runstate for tool digital output.
uint32_t getConfigurableDigitalOutputs()
Get all configurable digital output values.
int unwindEncDeltaTickCount(int delta_count)
Prevent counting errors when the count exceeds the range
uint32_t getStandardDigitalInputs()
Get all standard digital input values.
double getStandardAnalogInput(int index)
Get the value of standard analog input.
int getEncDecoderType()
Get the decoder type of the encoder.
int setStandardAnalogOutput(int index, double value)
Set the value of standard analog output.
uint32_t getStaticLinkInputs()
Get all static link input values.
bool getConfigurableDigitalInput(int index)
Get the value of configurable digital input.
int getStaticLinkInputNum()
Get the number of static link inputs.
bool getConfigurableDigitalOutput(int index)
Get the value of configurable digital output.
int setStandardDigitalOutputPulse(int index, bool value, double duration)
Set digital output pulse.
StandardInputAction
The StandardInputAction enum.
std::shared_ptr< IoControl > IoControlPtr
StandardOutputRunState
Standard Output Run State.