4 #ifndef AUBO_SDK_IO_CONTROL_INTERFACE_H 5 #define AUBO_SDK_IO_CONTROL_INTERFACE_H 10 #include <aubo/global_config.h> 14 namespace common_interface {
54 int getStandardDigitalInputNum();
76 int getToolDigitalInputNum();
98 int getConfigurableDigitalInputNum();
120 int getStandardDigitalOutputNum();
142 int getToolDigitalOutputNum();
174 int setToolIoInput(
int index,
bool input);
198 bool isToolIoInput(
int index);
220 int getConfigurableDigitalOutputNum();
242 int getStandardAnalogInputNum();
264 int getToolAnalogInputNum();
286 int getStandardAnalogOutputNum();
308 int getToolAnalogOutputNum();
336 int setDigitalInputActionDefault();
451 int setConfigurableDigitalInputAction(
int index,
554 int setDigitalOutputRunstateDefault();
594 int setStandardDigitalOutputRunstate(
int index,
635 int setToolDigitalOutputRunstate(
int index,
669 int setConfigurableDigitalOutputRunstate(
int index,
785 int setStandardAnalogOutputRunstate(
int index,
899 int setStandardAnalogInputDomain(
int index,
int domain);
930 int setToolAnalogInputDomain(
int index,
int domain);
955 int getStandardAnalogInputDomain(
int index);
979 int getToolAnalogInputDomain(
int index);
1011 int setStandardAnalogOutputDomain(
int index,
int domain);
1037 int setToolAnalogOutputDomain(
int index,
int domain);
1062 int getStandardAnalogOutputDomain(
int index);
1086 int getToolAnalogOutputDomain(
int index);
1116 int setToolVoltageOutputDomain(
int domain);
1138 int getToolVoltageOutputDomain();
1169 int setStandardDigitalOutput(
int index,
bool value);
1202 int setStandardDigitalOutputPulse(
int index,
bool value,
double duration);
1234 int setToolDigitalOutput(
int index,
bool value);
1267 int setToolDigitalOutputPulse(
int index,
bool value,
double duration);
1299 int setConfigurableDigitalOutput(
int index,
bool value);
1332 int setConfigurableDigitalOutputPulse(
int index,
bool value,
1359 int setStandardAnalogOutput(
int index,
double value);
1391 int setToolAnalogOutput(
int index,
double value);
1416 bool getStandardDigitalInput(
int index);
1442 uint32_t getStandardDigitalInputs();
1467 bool getToolDigitalInput(
int index);
1489 uint32_t getToolDigitalInputs();
1517 bool getConfigurableDigitalInput(
int index);
1545 uint32_t getConfigurableDigitalInputs();
1570 bool getStandardDigitalOutput(
int index);
1596 uint32_t getStandardDigitalOutputs();
1621 bool getToolDigitalOutput(
int index);
1643 uint32_t getToolDigitalOutputs();
1671 bool getConfigurableDigitalOutput(
int index);
1699 uint32_t getConfigurableDigitalOutputs();
1724 double getStandardAnalogInput(
int index);
1749 double getToolAnalogInput(
int index);
1774 double getStandardAnalogOutput(
int index);
1799 double getToolAnalogOutput(
int index);
1821 int getStaticLinkInputNum();
1843 int getStaticLinkOutputNum();
1869 uint32_t getStaticLinkInputs();
1895 uint32_t getStaticLinkOutputs();
1911 bool hasEncoderSensor();
1934 int setEncDecoderType(
int type,
int range_id);
1951 int setEncTickCount(
int tick);
1971 int getEncDecoderType();
1991 int getEncTickCount();
2007 int unwindEncDeltaTickCount(
int delta_count);
2029 bool getToolButtonStatus();
2057 uint32_t getHandleIoStatus();
2079 int getHandleType();
2088 #define IoControl_DECLARES \ 2089 _FUNC(IoControl, 0, getStandardDigitalInputNum) \ 2090 _FUNC(IoControl, 0, getToolDigitalInputNum) \ 2091 _FUNC(IoControl, 0, getConfigurableDigitalInputNum) \ 2092 _FUNC(IoControl, 0, getStandardDigitalOutputNum) \ 2093 _FUNC(IoControl, 0, getToolDigitalOutputNum) \ 2094 _INST(IoControl, 2, setToolIoInput, index, input) \ 2095 _FUNC(IoControl, 1, isToolIoInput, index) \ 2096 _FUNC(IoControl, 0, getConfigurableDigitalOutputNum) \ 2097 _FUNC(IoControl, 0, getStandardAnalogInputNum) \ 2098 _FUNC(IoControl, 0, getToolAnalogInputNum) \ 2099 _FUNC(IoControl, 0, getStandardAnalogOutputNum) \ 2100 _FUNC(IoControl, 0, getToolAnalogOutputNum) \ 2101 _INST(IoControl, 0, setDigitalInputActionDefault) \ 2102 _INST(IoControl, 2, setStandardDigitalInputAction, index, action) \ 2103 _INST(IoControl, 2, setToolDigitalInputAction, index, action) \ 2104 _INST(IoControl, 2, setConfigurableDigitalInputAction, index, action) \ 2105 _FUNC(IoControl, 1, getStandardDigitalInputAction, index) \ 2106 _FUNC(IoControl, 1, getToolDigitalInputAction, index) \ 2107 _FUNC(IoControl, 1, getConfigurableDigitalInputAction, index) \ 2108 _INST(IoControl, 0, setDigitalOutputRunstateDefault) \ 2109 _INST(IoControl, 2, setStandardDigitalOutputRunstate, index, runstate) \ 2110 _INST(IoControl, 2, setToolDigitalOutputRunstate, index, runstate) \ 2111 _INST(IoControl, 2, setConfigurableDigitalOutputRunstate, index, runstate) \ 2112 _FUNC(IoControl, 1, getStandardDigitalOutputRunstate, index) \ 2113 _FUNC(IoControl, 1, getToolDigitalOutputRunstate, index) \ 2114 _FUNC(IoControl, 1, getConfigurableDigitalOutputRunstate, index) \ 2115 _INST(IoControl, 2, setStandardAnalogOutputRunstate, index, runstate) \ 2116 _INST(IoControl, 2, setToolAnalogOutputRunstate, index, runstate) \ 2117 _FUNC(IoControl, 1, getStandardAnalogOutputRunstate, index) \ 2118 _FUNC(IoControl, 1, getToolAnalogOutputRunstate, index) \ 2119 _INST(IoControl, 2, setStandardAnalogInputDomain, index, domain) \ 2120 _INST(IoControl, 2, setToolAnalogInputDomain, index, domain) \ 2121 _FUNC(IoControl, 1, getStandardAnalogInputDomain, index) \ 2122 _FUNC(IoControl, 1, getToolAnalogInputDomain, index) \ 2123 _INST(IoControl, 2, setStandardAnalogOutputDomain, index, domain) \ 2124 _INST(IoControl, 2, setToolAnalogOutputDomain, index, domain) \ 2125 _INST(IoControl, 1, setToolVoltageOutputDomain, domain) \ 2126 _FUNC(IoControl, 0, getToolVoltageOutputDomain) \ 2127 _FUNC(IoControl, 1, getStandardAnalogOutputDomain, index) \ 2128 _FUNC(IoControl, 1, getToolAnalogOutputDomain, index) \ 2129 _INST(IoControl, 2, setStandardDigitalOutput, index, value) \ 2130 _INST(IoControl, 3, setStandardDigitalOutputPulse, index, value, duration) \ 2131 _INST(IoControl, 2, setToolDigitalOutput, index, value) \ 2132 _INST(IoControl, 3, setToolDigitalOutputPulse, index, value, duration) \ 2133 _INST(IoControl, 2, setConfigurableDigitalOutput, index, value) \ 2134 _INST(IoControl, 3, setConfigurableDigitalOutputPulse, index, value, duration) \ 2135 _INST(IoControl, 2, setStandardAnalogOutput, index, value) \ 2136 _INST(IoControl, 2, setToolAnalogOutput, index, value) \ 2137 _FUNC(IoControl, 1, getStandardDigitalInput, index) \ 2138 _FUNC(IoControl, 0, getStandardDigitalInputs) \ 2139 _FUNC(IoControl, 1, getToolDigitalInput, index) \ 2140 _FUNC(IoControl, 0, getToolDigitalInputs) \ 2141 _FUNC(IoControl, 1, getConfigurableDigitalInput, index) \ 2142 _FUNC(IoControl, 0, getConfigurableDigitalInputs) \ 2143 _FUNC(IoControl, 1, getStandardAnalogInput, index) \ 2144 _FUNC(IoControl, 1, getToolAnalogInput, index) \ 2145 _FUNC(IoControl, 1, getStandardDigitalOutput, index) \ 2146 _FUNC(IoControl, 0, getStandardDigitalOutputs) \ 2147 _FUNC(IoControl, 1, getToolDigitalOutput, index) \ 2148 _FUNC(IoControl, 0, getToolDigitalOutputs) \ 2149 _FUNC(IoControl, 1, getConfigurableDigitalOutput, index) \ 2150 _FUNC(IoControl, 0, getConfigurableDigitalOutputs) \ 2151 _FUNC(IoControl, 1, getStandardAnalogOutput, index) \ 2152 _FUNC(IoControl, 1, getToolAnalogOutput, index) \ 2153 _FUNC(IoControl, 0, getStaticLinkInputNum) \ 2154 _FUNC(IoControl, 0, getStaticLinkOutputNum) \ 2155 _FUNC(IoControl, 0, getStaticLinkInputs) \ 2156 _FUNC(IoControl, 0, getStaticLinkOutputs) \ 2157 _FUNC(IoControl, 0, hasEncoderSensor) \ 2158 _FUNC(IoControl, 2, setEncDecoderType, type, range_id) \ 2159 _FUNC(IoControl, 1, setEncTickCount, tick) \ 2160 _FUNC(IoControl, 0, getEncDecoderType) \ 2161 _FUNC(IoControl, 0, getEncTickCount) \ 2162 _FUNC(IoControl, 1, unwindEncDeltaTickCount, delta_count) \ 2163 _FUNC(IoControl, 0, getToolButtonStatus) \ 2164 _FUNC(IoControl, 0, getHandleIoStatus) \ 2165 _FUNC(IoControl, 0, getHandleType) 2171 #endif // AUBO_SDK_IO_CONTROL_INTERFACE_H
StandardOutputRunState
标准输出运行状态
IoControl类提供了一系列的接口对机器人标配的一些数字、模拟IO进行配置,输出状态设置、读取 ...
StandardInputAction
The StandardInputAction enum.
std::shared_ptr< IoControl > IoControlPtr