AUBO SDK  0.26.0
载入中...
搜索中...
未找到
io_control.h
浏览该文件的文档.
1/** @file io_control.h
2 * @brief IO控制接口
3 */
4#ifndef AUBO_SDK_IO_CONTROL_INTERFACE_H
5#define AUBO_SDK_IO_CONTROL_INTERFACE_H
6
7#include <vector>
8#include <thread>
9
10#include <aubo/global_config.h>
11#include <aubo/type_def.h>
12
13namespace arcs {
14namespace common_interface {
15
16/**
17 * \chinese
18 * IoControl类提供了一系列的接口对机器人标配的一些数字、模拟IO进行配置,输出状态设置、读取
19 *
20 * 1. 获取各种IO的数量 \n
21 * 2. 配置IO的输入输出功能 \n
22 * 3. 可配置IO的配置 \n
23 * 4. 模拟IO的输入输出范围设置、读取
24 *
25 * 标准数字输入输出:控制柜IO面板上的标准IO \n
26 * 工具端数字输入输出:通过工具末端航插暴露的数字IO \n
27 * 可配置输入输出:可以配置为安全IO或者普通数字IO \n
28 * \endchinese
29 * \english
30 * The IoControl class provides a series of interfaces for configuring and
31 * reading the robot's standard digital and analog IO, as well as setting output
32 * states.
33 *
34 * 1. Get the number of various IOs \n
35 * 2. Configure IO input/output functions \n
36 * 3. Configuration of configurable IOs \n
37 * 4. Set and read the input/output range of analog IOs
38 *
39 * Standard digital input/output: Standard IOs on the control cabinet IO panel
40 * \n Tool digital input/output: Digital IOs exposed via the tool-end connector
41 * \n Configurable input/output: Can be configured as safety IO or general
42 * digital IO \n \endenglish
43 */
44class ARCS_ABI_EXPORT IoControl
45{
46public:
48 virtual ~IoControl();
49
50 /**
51 * \chinese
52 * 获取标准数字输入数量
53 *
54 * @return 标准数字输入数量
55 *
56 * @throws arcs::common_interface::AuboException
57 *
58 * @par Python函数原型
59 * getStandardDigitalInputNum(self: pyaubo_sdk.IoControl) -> int
60 *
61 * @par Lua函数原型
62 * getStandardDigitalInputNum() -> number
63 *
64 * @par Lua示例
65 * num = getStandardDigitalInputNum()
66 *
67 * @par JSON-RPC请求示例
68 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalInputNum","params":[],"id":1}
69 *
70 * @par JSON-RPC响应示例
71 * {"id":1,"jsonrpc":"2.0","result":16}
72 *
73 * \endchinese
74 * \english
75 * Get the number of standard digital inputs.
76 *
77 * @return Number of standard digital inputs.
78 *
79 * @throws arcs::common_interface::AuboException
80 *
81 * @par Python function prototype
82 * getStandardDigitalInputNum(self: pyaubo_sdk.IoControl) -> int
83 *
84 * @par Lua function prototype
85 * getStandardDigitalInputNum() -> number
86 *
87 * @par Lua example
88 * num = getStandardDigitalInputNum()
89 *
90 * @par JSON-RPC request example
91 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalInputNum","params":[],"id":1}
92 *
93 * @par JSON-RPC response example
94 * {"id":1,"jsonrpc":"2.0","result":16}
95 *
96 * \endenglish
97 */
99
100 /**
101 * \chinese
102 * 获取工具端数字IO数量(包括数字输入和数字输出)
103 *
104 * @return 工具端数字IO数量(包括数字输入和数字输出)
105 *
106 * @throws arcs::common_interface::AuboException
107 *
108 * @par Python函数原型
109 * getToolDigitalInputNum(self: pyaubo_sdk.IoControl) -> int
110 *
111 * @par Lua函数原型
112 * getToolDigitalInputNum() -> number
113 *
114 * @par Lua示例
115 * num = getStandardDigitalInputNum()
116 *
117 * @par JSON-RPC请求示例
118 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalInputNum","params":[],"id":1}
119 *
120 * @par JSON-RPC响应示例
121 * {"id":1,"jsonrpc":"2.0","result":4}
122 *
123 * \endchinese
124 * \english
125 * Get the number of tool digital IOs (including digital inputs and
126 * outputs).
127 *
128 * @return Number of tool digital IOs (including digital inputs and
129 * outputs).
130 *
131 * @throws arcs::common_interface::AuboException
132 *
133 * @par Python function prototype
134 * getToolDigitalInputNum(self: pyaubo_sdk.IoControl) -> int
135 *
136 * @par Lua function prototype
137 * getToolDigitalInputNum() -> number
138 *
139 * @par Lua example
140 * num = getStandardDigitalInputNum()
141 *
142 * @par JSON-RPC request example
143 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalInputNum","params":[],"id":1}
144 *
145 * @par JSON-RPC response example
146 * {"id":1,"jsonrpc":"2.0","result":4}
147 *
148 * \endenglish
149 */
151
152 /**
153 * \chinese
154 * 获取可配置数字输入数量
155 *
156 * @return 可配置数字输入数量
157 *
158 * @throws arcs::common_interface::AuboException
159 *
160 * @par Python函数原型
161 * getConfigurableDigitalInputNum(self: pyaubo_sdk.IoControl) -> int
162 *
163 * @par Lua函数原型
164 * getConfigurableDigitalInputNum() -> number
165 *
166 * @par Lua示例
167 * num = getConfigurableDigitalInputNum()
168 *
169 * @par JSON-RPC请求示例
170 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalInputNum","params":[],"id":1}
171 *
172 * @par JSON-RPC响应示例
173 * {"id":1,"jsonrpc":"2.0","result":16}
174 *
175 * \endchinese
176 * \english
177 * Get the number of configurable digital inputs.
178 *
179 * @return Number of configurable digital inputs.
180 *
181 * @throws arcs::common_interface::AuboException
182 *
183 * @par Python function prototype
184 * getConfigurableDigitalInputNum(self: pyaubo_sdk.IoControl) -> int
185 *
186 * @par Lua function prototype
187 * getConfigurableDigitalInputNum() -> number
188 *
189 * @par Lua example
190 * num = getConfigurableDigitalInputNum()
191 *
192 * @par JSON-RPC request example
193 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalInputNum","params":[],"id":1}
194 *
195 * @par JSON-RPC response example
196 * {"id":1,"jsonrpc":"2.0","result":16}
197 *
198 * \endenglish
199 */
201
202 /**
203 * \chinese
204 * 获取标准数字输出数量
205 *
206 * @return 标准数字输出数量
207 *
208 * @throws arcs::common_interface::AuboException
209 *
210 * @par Python函数原型
211 * getStandardDigitalOutputNum(self: pyaubo_sdk.IoControl) -> int
212 *
213 * @par Lua函数原型
214 * getStandardDigitalOutputNum() -> number
215 *
216 * @par Lua示例
217 * num = getStandardDigitalOutputNum()
218 *
219 * @par JSON-RPC请求示例
220 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalOutputNum","params":[],"id":1}
221 *
222 * @par JSON-RPC响应示例
223 * {"id":1,"jsonrpc":"2.0","result":8}
224 *
225 * \endchinese
226 * \english
227 * Get the number of standard digital outputs.
228 *
229 * @return Number of standard digital outputs.
230 *
231 * @throws arcs::common_interface::AuboException
232 *
233 * @par Python function prototype
234 * getStandardDigitalOutputNum(self: pyaubo_sdk.IoControl) -> int
235 *
236 * @par Lua function prototype
237 * getStandardDigitalOutputNum() -> number
238 *
239 * @par Lua example
240 * num = getStandardDigitalOutputNum()
241 *
242 * @par JSON-RPC request example
243 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalOutputNum","params":[],"id":1}
244 *
245 * @par JSON-RPC response example
246 * {"id":1,"jsonrpc":"2.0","result":8}
247 *
248 * \endenglish
249 */
251
252 /**
253 * \chinese
254 * 获取工具端数字IO数量(包括数字输入和数字输出)
255 *
256 * @return 工具端数字IO数量(包括数字输入和数字输出)
257 *
258 * @throws arcs::common_interface::AuboException
259 *
260 * @par Python函数原型
261 * getToolDigitalOutputNum(self: pyaubo_sdk.IoControl) -> int
262 *
263 * @par Lua函数原型
264 * getToolDigitalOutputNum() -> number
265 *
266 * @par Lua示例
267 * num = getToolDigitalOutputNum()
268 *
269 * @par JSON-RPC请求示例
270 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalOutputNum","params":[],"id":1}
271 *
272 * @par JSON-RPC响应示例
273 * {"id":1,"jsonrpc":"2.0","result":4}
274 *
275 * \endchinese
276 * \english
277 * Get the number of tool digital IOs (including digital inputs and
278 * outputs).
279 *
280 * @return Number of tool digital IOs (including digital inputs and
281 * outputs).
282 *
283 * @throws arcs::common_interface::AuboException
284 *
285 * @par Python function prototype
286 * getToolDigitalOutputNum(self: pyaubo_sdk.IoControl) -> int
287 *
288 * @par Lua function prototype
289 * getToolDigitalOutputNum() -> number
290 *
291 * @par Lua example
292 * num = getToolDigitalOutputNum()
293 *
294 * @par JSON-RPC request example
295 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalOutputNum","params":[],"id":1}
296 *
297 * @par JSON-RPC response example
298 * {"id":1,"jsonrpc":"2.0","result":4}
299 *
300 * \endenglish
301 */
303
304 /**
305 * \chinese
306 * 设置指定的工具端数字IO为输入或输出
307 *
308 * 工具端数字IO比较特殊,IO可以配置为输入或者输出
309 *
310 * @param index: 表示IO口的管脚,管脚编号从0开始。
311 * 例如,0表示第一个管脚。
312 * @param input: 表示指定IO是否为输入。
313 * input 为true时,设置指定IO为输入,否则为输出
314 * @return 成功返回0;失败返回错误码
315 * AUBO_BUSY
316 * AUBO_BAD_STATE
317 * -AUBO_INVL_ARGUMENT
318 * -AUBO_BAD_STATE
319 *
320 * @throws arcs::common_interface::AuboException
321 *
322 * @par Python函数原型
323 * setToolIoInput(self: pyaubo_sdk.IoControl, arg0: int, arg1: bool) -> int
324 *
325 * @par Lua函数原型
326 * setToolIoInput(index: number, input: boolean) -> nil
327 *
328 * @par Lua示例
329 * setToolIoInput(0,true)
330 *
331 * @par JSON-RPC请求示例
332 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolIoInput","params":[0,true],"id":1}
333 *
334 * @par JSON-RPC响应示例
335 * {"id":1,"jsonrpc":"2.0","result":0}
336 *
337 * \endchinese
338 * \english
339 * Set the specified tool digital IO as input or output.
340 *
341 * Tool digital IOs are special and can be configured as input or output.
342 *
343 * @param index: Indicates the IO pin, starting from 0.
344 * For example, 0 means the first pin.
345 * @param input: Indicates whether the specified IO is input.
346 * If input is true, set the IO as input; otherwise, set as output.
347 * @return Returns 0 on success; error code on failure.
348 * AUBO_BUSY
349 * AUBO_BAD_STATE
350 * -AUBO_INVL_ARGUMENT
351 * -AUBO_BAD_STATE
352 *
353 * @throws arcs::common_interface::AuboException
354 *
355 * @par Python function prototype
356 * setToolIoInput(self: pyaubo_sdk.IoControl, arg0: int, arg1: bool) -> int
357 *
358 * @par Lua function prototype
359 * setToolIoInput(index: number, input: boolean) -> nil
360 *
361 * @par Lua example
362 * setToolIoInput(0,true)
363 *
364 * @par JSON-RPC request example
365 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolIoInput","params":[0,true],"id":1}
366 *
367 * @par JSON-RPC response example
368 * {"id":1,"jsonrpc":"2.0","result":0}
369 *
370 * \endenglish
371 */
372 int setToolIoInput(int index, bool input);
373
374 /**
375 * \chinese
376 * 判断指定的工具端数字IO类型是否为输入
377 *
378 * @param index: 表示IO口的管脚,管脚编号从0开始。
379 * 例如,0表示第一个管脚。
380 * @return 当指定的IO为输入时返回 true, 否则为 false
381 *
382 * @throws arcs::common_interface::AuboException
383 *
384 * @par Python函数原型
385 * isToolIoInput(self: pyaubo_sdk.IoControl, arg0: int) -> bool
386 *
387 * @par Lua函数原型
388 * isToolIoInput(index: number) -> boolean
389 *
390 * @par Lua示例
391 * status = isToolIoInput(0)
392 *
393 * @par JSON-RPC请求示例
394 * {"jsonrpc":"2.0","method":"rob1.IoControl.isToolIoInput","params":[0],"id":1}
395 *
396 * @par JSON-RPC响应示例
397 * {"id":1,"jsonrpc":"2.0","result":true}
398 *
399 * \endchinese
400 * \english
401 * Determine whether the specified tool digital IO is configured as input.
402 *
403 * @param index: Indicates the IO pin, starting from 0.
404 * For example, 0 means the first pin.
405 * @return Returns true if the specified IO is input, otherwise false.
406 *
407 * @throws arcs::common_interface::AuboException
408 *
409 * @par Python function prototype
410 * isToolIoInput(self: pyaubo_sdk.IoControl, arg0: int) -> bool
411 *
412 * @par Lua function prototype
413 * isToolIoInput(index: number) -> boolean
414 *
415 * @par Lua example
416 * status = isToolIoInput(0)
417 *
418 * @par JSON-RPC request example
419 * {"jsonrpc":"2.0","method":"rob1.IoControl.isToolIoInput","params":[0],"id":1}
420 *
421 * @par JSON-RPC response example
422 * {"id":1,"jsonrpc":"2.0","result":true}
423 *
424 * \endenglish
425 */
426 bool isToolIoInput(int index);
427
428 /**
429 * \chinese
430 * 获取可配置数字输出数量
431 *
432 * @return 可配置数字输出数量
433 *
434 * @throws arcs::common_interface::AuboException
435 *
436 * @par Python函数原型
437 * getConfigurableDigitalOutputNum(self: pyaubo_sdk.IoControl) -> int
438 *
439 * @par Lua函数原型
440 * getConfigurableDigitalOutputNum() -> number
441 *
442 * @par Lua示例
443 * num = getConfigurableDigitalOutputNum()
444 *
445 * @par JSON-RPC请求示例
446 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalOutputNum","params":[],"id":1}
447 *
448 * @par JSON-RPC响应示例
449 * {"id":1,"jsonrpc":"2.0","result":16}
450 *
451 * \endchinese
452 * \english
453 * Get the number of configurable digital outputs.
454 *
455 * @return Number of configurable digital outputs.
456 *
457 * @throws arcs::common_interface::AuboException
458 *
459 * @par Python function prototype
460 * getConfigurableDigitalOutputNum(self: pyaubo_sdk.IoControl) -> int
461 *
462 * @par Lua function prototype
463 * getConfigurableDigitalOutputNum() -> number
464 *
465 * @par Lua example
466 * num = getConfigurableDigitalOutputNum()
467 *
468 * @par JSON-RPC request example
469 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalOutputNum","params":[],"id":1}
470 *
471 * @par JSON-RPC response example
472 * {"id":1,"jsonrpc":"2.0","result":16}
473 *
474 * \endenglish
475 */
477
478 /**
479 * \chinese
480 * 获取标准模拟输入数量
481 *
482 * @return 标准模拟输入数量
483 *
484 * @throws arcs::common_interface::AuboException
485 *
486 * @par Python函数原型
487 * getStandardAnalogInputNum(self: pyaubo_sdk.IoControl) -> int
488 *
489 * @par Lua函数原型
490 * getStandardAnalogInputNum() -> number
491 *
492 * @par Lua示例
493 * num = getStandardAnalogInputNum()
494 *
495 * @par JSON-RPC请求示例
496 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardAnalogInputNum","params":[],"id":1}
497 *
498 * @par JSON-RPC响应示例
499 * {"id":1,"jsonrpc":"2.0","result":2}
500 *
501 * \endchinese
502 * \english
503 * Get the number of standard analog inputs.
504 *
505 * @return Number of standard analog inputs.
506 *
507 * @throws arcs::common_interface::AuboException
508 *
509 * @par Python function prototype
510 * getStandardAnalogInputNum(self: pyaubo_sdk.IoControl) -> int
511 *
512 * @par Lua function prototype
513 * getStandardAnalogInputNum() -> number
514 *
515 * @par Lua example
516 * num = getStandardAnalogInputNum()
517 *
518 * @par JSON-RPC request example
519 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardAnalogInputNum","params":[],"id":1}
520 *
521 * @par JSON-RPC response example
522 * {"id":1,"jsonrpc":"2.0","result":2}
523 *
524 * \endenglish
525 */
527
528 /**
529 * \chinese
530 * 获取工具端模拟输入数量
531 *
532 * @return 工具端模拟输入数量
533 *
534 * @throws arcs::common_interface::AuboException
535 *
536 * @par Python函数原型
537 * getToolAnalogInputNum(self: pyaubo_sdk.IoControl) -> int
538 *
539 * @par Lua函数原型
540 * getToolAnalogInputNum() -> number
541 *
542 * @par Lua示例
543 * num = getToolAnalogInputNum()
544 *
545 * @par JSON-RPC请求示例
546 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolAnalogInputNum","params":[],"id":1}
547 *
548 * @par JSON-RPC响应示例
549 * {"id":1,"jsonrpc":"2.0","result":2}
550 *
551 * \endchinese
552 * \english
553 * Get the number of tool analog inputs.
554 *
555 * @return Number of tool analog inputs.
556 *
557 * @throws arcs::common_interface::AuboException
558 *
559 * @par Python function prototype
560 * getToolAnalogInputNum(self: pyaubo_sdk.IoControl) -> int
561 *
562 * @par Lua function prototype
563 * getToolAnalogInputNum() -> number
564 *
565 * @par Lua example
566 * num = getToolAnalogInputNum()
567 *
568 * @par JSON-RPC request example
569 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolAnalogInputNum","params":[],"id":1}
570 *
571 * @par JSON-RPC response example
572 * {"id":1,"jsonrpc":"2.0","result":2}
573 *
574 * \endenglish
575 */
577
578 /**
579 * \chinese
580 * 获取标准模拟输出数量
581 *
582 * @return 标准模拟输出数量
583 *
584 * @throws arcs::common_interface::AuboException
585 *
586 * @par Python函数原型
587 * getStandardAnalogOutputNum(self: pyaubo_sdk.IoControl) -> int
588 *
589 * @par Lua函数原型
590 * getStandardAnalogOutputNum() -> number
591 *
592 * @par Lua示例
593 * num = getStandardAnalogOutputNum()
594 *
595 * @par JSON-RPC请求示例
596 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardAnalogOutputNum","params":[],"id":1}
597 *
598 * @par JSON-RPC响应示例
599 * {"id":1,"jsonrpc":"2.0","result":2}
600 *
601 * \endchinese
602 * \english
603 * Get the number of standard analog outputs.
604 *
605 * @return Number of standard analog outputs.
606 *
607 * @throws arcs::common_interface::AuboException
608 *
609 * @par Python function prototype
610 * getStandardAnalogOutputNum(self: pyaubo_sdk.IoControl) -> int
611 *
612 * @par Lua function prototype
613 * getStandardAnalogOutputNum() -> number
614 *
615 * @par Lua example
616 * num = getStandardAnalogOutputNum()
617 *
618 * @par JSON-RPC request example
619 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardAnalogOutputNum","params":[],"id":1}
620 *
621 * @par JSON-RPC response example
622 * {"id":1,"jsonrpc":"2.0","result":2}
623 *
624 * \endenglish
625 */
627
628 /**
629 * \chinese
630 * 获取工具端模拟输出数量
631 *
632 * @return 工具端模拟输出数量
633 *
634 * @throws arcs::common_interface::AuboException
635 *
636 * @par Python函数原型
637 * getToolAnalogOutputNum(self: pyaubo_sdk.IoControl) -> int
638 *
639 * @par Lua函数原型
640 * getToolAnalogOutputNum() -> number
641 *
642 * @par Lua示例
643 * num = getToolAnalogOutputNum()
644 *
645 * @par JSON-RPC请求示例
646 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolAnalogOutputNum","params":[],"id":1}
647 *
648 * @par JSON-RPC响应示例
649 * {"id":1,"jsonrpc":"2.0","result":0}
650 *
651 * \endchinese
652 * \english
653 * Get the number of tool analog outputs.
654 *
655 * @return Number of tool analog outputs.
656 *
657 * @throws arcs::common_interface::AuboException
658 *
659 * @par Python function prototype
660 * getToolAnalogOutputNum(self: pyaubo_sdk.IoControl) -> int
661 *
662 * @par Lua function prototype
663 * getToolAnalogOutputNum() -> number
664 *
665 * @par Lua example
666 * num = getToolAnalogOutputNum()
667 *
668 * @par JSON-RPC request example
669 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolAnalogOutputNum","params":[],"id":1}
670 *
671 * @par JSON-RPC response example
672 * {"id":1,"jsonrpc":"2.0","result":0}
673 *
674 * \endenglish
675 */
677
678 /**
679 * \chinese
680 * 设置所有数字输入动作为无触发
681 *
682 * @note
683 * 当输入动作为无触发时,用户设置数字输入值为高电平,不会触发机器人发生动作
684 *
685 * @return 成功返回0;失败返回错误码
686 * AUBO_BUSY
687 * AUBO_BAD_STATE
688 * -AUBO_BAD_STATE
689 *
690 * @throws arcs::common_interface::AuboException
691 *
692 * @par Python函数原型
693 * setDigitalInputActionDefault(self: pyaubo_sdk.IoControl) -> int
694 *
695 * @par Lua函数原型
696 * setDigitalInputActionDefault() -> nil
697 *
698 * @par Lua示例
699 * setDigitalInputActionDefault()
700 *
701 * @par JSON-RPC请求示例
702 * {"jsonrpc":"2.0","method":"rob1.IoControl.setDigitalInputActionDefault","params":[],"id":1}
703 *
704 * @par JSON-RPC响应示例
705 * {"id":1,"jsonrpc":"2.0","result":0}
706 *
707 * \endchinese
708 * \english
709 * Set all digital input actions to no trigger.
710 *
711 * @note
712 * When the input action is set to no trigger, setting the digital input
713 * value to high will not trigger any robot action.
714 *
715 * @return Returns 0 on success; error code on failure.
716 * AUBO_BUSY
717 * AUBO_BAD_STATE
718 * -AUBO_BAD_STATE
719 *
720 * @throws arcs::common_interface::AuboException
721 *
722 * @par Python function prototype
723 * setDigitalInputActionDefault(self: pyaubo_sdk.IoControl) -> int
724 *
725 * @par Lua function prototype
726 * setDigitalInputActionDefault() -> nil
727 *
728 * @par Lua example
729 * setDigitalInputActionDefault()
730 *
731 * @par JSON-RPC request example
732 * {"jsonrpc":"2.0","method":"rob1.IoControl.setDigitalInputActionDefault","params":[],"id":1}
733 *
734 * @par JSON-RPC response example
735 * {"id":1,"jsonrpc":"2.0","result":0}
736 *
737 * \endenglish
738 */
740
741 /**
742 * \chinese
743 * 设置标准数字输入触发动作
744 *
745 * @note
746 * 当给输入设置为无触发动作(StandardInputAction::Default)时,
747 * 用户设置数字输入值为高电平,不会触发机器人发生动作。\n
748 * 当给输入设置触发动作时,用户设置数字输入值为高电平,会触发机器人执行相应的动作。\n
749 * 例如,当设置DI0的触发动作为拖动示教(StandardInputAction::Handguide)时,
750 * 用户设置DI0为高电平,机器人会进入拖动示教。
751 * 设置DI0为低电平,机器人会退出拖动示教。
752 *
753 * @param index: 表示IO口的管脚,管脚编号从0开始。
754 * 例如,0表示第一个管脚。
755 * @param action: 触发动作
756 *
757 * @return 成功返回0;失败返回错误码
758 * AUBO_REQUEST_IGNORE
759 * AUBO_BUSY
760 * AUBO_BAD_STATE
761 * -AUBO_INVL_ARGUMENT
762 * -AUBO_BAD_STATE
763 *
764 * @throws arcs::common_interface::AuboException
765 *
766 * @par Python函数原型
767 * setStandardDigitalInputAction(self: pyaubo_sdk.IoControl, arg0: int,
768 * arg1: arcs::common_interface::StandardInputAction) -> int
769 *
770 * @par Lua函数原型
771 * setStandardDigitalInputAction(index: number, action: number) -> nil
772 *
773 * @par Lua示例
774 * setStandardDigitalInputAction(0,1)
775 *
776 * @par JSON-RPC请求示例
777 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardDigitalInputAction","params":[0,"Handguide"],"id":1}
778 *
779 * @par JSON-RPC响应示例
780 * {"id":1,"jsonrpc":"2.0","result":0}
781 *
782 * \endchinese
783 * \english
784 * Set the trigger action for standard digital input.
785 *
786 * @note
787 * When the input is set to no trigger action
788 * (StandardInputAction::Default), setting the digital input value to high
789 * will not trigger any robot action.\n When a trigger action is set,
790 * setting the digital input value to high will trigger the corresponding
791 * robot action.\n For example, if DI0 is set to trigger Handguide
792 * (StandardInputAction::Handguide), setting DI0 to high will enable
793 * hand-guiding mode. Setting DI0 to low will exit hand-guiding mode.
794 *
795 * @param index: Indicates the IO pin, starting from 0.
796 * For example, 0 means the first pin.
797 * @param action: Trigger action
798 *
799 * @return Returns 0 on success; error code on failure.
800 * AUBO_REQUEST_IGNORE
801 * AUBO_BUSY
802 * AUBO_BAD_STATE
803 * -AUBO_INVL_ARGUMENT
804 * -AUBO_BAD_STATE
805 *
806 * @throws arcs::common_interface::AuboException
807 *
808 * @par Python function prototype
809 * setStandardDigitalInputAction(self: pyaubo_sdk.IoControl, arg0: int,
810 * arg1: arcs::common_interface::StandardInputAction) -> int
811 *
812 * @par Lua function prototype
813 * setStandardDigitalInputAction(index: number, action: number) -> nil
814 *
815 * @par Lua example
816 * setStandardDigitalInputAction(0,1)
817 *
818 * @par JSON-RPC request example
819 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardDigitalInputAction","params":[0,"Handguide"],"id":1}
820 *
821 * @par JSON-RPC response example
822 * {"id":1,"jsonrpc":"2.0","result":0}
823 *
824 * \endenglish
825 */
827
828 /**
829 * \chinese
830 * 设置工具数字输入触发动作
831 *
832 * @note
833 * 当给输入设置为无触发动作(StandardInputAction::Default)时,
834 * 用户设置工具数字输入值为高电平,不会触发机器人发生动作。\n
835 * 当给输入设置触发动作时,用户设置工具数字输入值为高电平,会触发机器人执行相应的动作。\n
836 * 例如,当设置TOOL_IO[0]的类型为输入而且触发动作为拖动示教(StandardInputAction::Handguide)时,
837 * 用户设置TOOL_IO[0]为高电平,机器人会进入拖动示教。
838 * 设置TOOL_IO[0]为低电平,机器人会退出拖动示教。
839 *
840 * @param index: 表示IO口的管脚,管脚编号从0开始。
841 * 例如,0表示第一个管脚。
842 * @param action: 触发动作
843 *
844 * @return 成功返回0;失败返回错误码
845 * AUBO_REQUEST_IGNORE
846 * AUBO_BUSY
847 * AUBO_BAD_STATE
848 * -AUBO_INVL_ARGUMENT
849 * -AUBO_BAD_STATE
850 *
851 * @throws arcs::common_interface::AuboException
852 *
853 * @par Python函数原型
854 * setToolDigitalInputAction(self: pyaubo_sdk.IoControl, arg0: int, arg1:
855 * arcs::common_interface::StandardInputAction) -> int
856 *
857 * @par Lua函数原型
858 * setToolDigitalInputAction(index: number, action: number) -> nil
859 *
860 * @par Lua示例
861 * setToolDigitalInputAction(0,1)
862 *
863 * @par JSON-RPC请求示例
864 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolDigitalInputAction","params":[0,"Handguide"],"id":1}
865 *
866 * @par JSON-RPC响应示例
867 * {"id":1,"jsonrpc":"2.0","result":0}
868 *
869 * \endchinese
870 * \english
871 * Set the trigger action for tool digital input.
872 *
873 * @note
874 * When the input is set to no trigger action
875 * (StandardInputAction::Default), setting the tool digital input value to
876 * high will not trigger any robot action.\n When a trigger action is set,
877 * setting the tool digital input value to high will trigger the
878 * corresponding robot action.\n For example, if TOOL_IO[0] is set as input
879 * and its trigger action is Handguide (StandardInputAction::Handguide),
880 * setting TOOL_IO[0] to high will enable hand-guiding mode.
881 * Setting TOOL_IO[0] to low will exit hand-guiding mode.
882 *
883 * @param index: Indicates the IO pin, starting from 0.
884 * For example, 0 means the first pin.
885 * @param action: Trigger action
886 *
887 * @return Returns 0 on success; error code on failure.
888 * AUBO_REQUEST_IGNORE
889 * AUBO_BUSY
890 * AUBO_BAD_STATE
891 * -AUBO_INVL_ARGUMENT
892 * -AUBO_BAD_STATE
893 *
894 * @throws arcs::common_interface::AuboException
895 *
896 * @par Python function prototype
897 * setToolDigitalInputAction(self: pyaubo_sdk.IoControl, arg0: int, arg1:
898 * arcs::common_interface::StandardInputAction) -> int
899 *
900 * @par Lua function prototype
901 * setToolDigitalInputAction(index: number, action: number) -> nil
902 *
903 * @par Lua example
904 * setToolDigitalInputAction(0,1)
905 *
906 * @par JSON-RPC request example
907 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolDigitalInputAction","params":[0,"Handguide"],"id":1}
908 *
909 * @par JSON-RPC response example
910 * {"id":1,"jsonrpc":"2.0","result":0}
911 *
912 * \endenglish
913 */
915
916 /**
917 * \chinese
918 * 设置可配置数字输入触发动作
919 *
920 * @param index: 表示IO口的管脚,管脚编号从0开始。
921 * 例如,0表示第一个管脚。
922 * @param action: 触发动作
923 *
924 * @return 成功返回0;失败返回错误码
925 * AUBO_REQUEST_IGNORE
926 * AUBO_BUSY
927 * AUBO_BAD_STATE
928 * -AUBO_INVL_ARGUMENT
929 * -AUBO_BAD_STATE
930 *
931 * @throws arcs::common_interface::AuboException
932 *
933 * @note 需要将可配置输入的安全输入动作设置为
934 * SafetyInputAction::Unassigned时这个函数的配置才会生效
935 *
936 * @par Python函数原型
937 * setConfigurableDigitalInputAction(self: pyaubo_sdk.IoControl, arg0: int,
938 * arg1: arcs::common_interface::StandardInputAction) -> int
939 *
940 * @par Lua函数原型
941 * setConfigurableDigitalInputAction(index: number, action: number) -> nil
942 *
943 * @par Lua示例
944 * setConfigurableDigitalInputAction(0,1)
945 *
946 * @par JSON-RPC请求示例
947 * {"jsonrpc":"2.0","method":"rob1.IoControl.setConfigurableDigitalInputAction","params":[0,"Handguide"],"id":1}
948 *
949 * @par JSON-RPC响应示例
950 * {"id":1,"jsonrpc":"2.0","result":0}
951 *
952 * \endchinese
953 * \english
954 * Set the trigger action for configurable digital input.
955 *
956 * @param index: Indicates the IO pin, starting from 0.
957 * For example, 0 means the first pin.
958 * @param action: Trigger action
959 *
960 * @return Returns 0 on success; error code on failure.
961 * AUBO_REQUEST_IGNORE
962 * AUBO_BUSY
963 * AUBO_BAD_STATE
964 * -AUBO_INVL_ARGUMENT
965 * -AUBO_BAD_STATE
966 *
967 * @throws arcs::common_interface::AuboException
968 *
969 * @note This function takes effect only when the safety input action of the
970 * configurable input is set to SafetyInputAction::Unassigned.
971 *
972 * @par Python function prototype
973 * setConfigurableDigitalInputAction(self: pyaubo_sdk.IoControl, arg0: int,
974 * arg1: arcs::common_interface::StandardInputAction) -> int
975 *
976 * @par Lua function prototype
977 * setConfigurableDigitalInputAction(index: number, action: number) -> nil
978 *
979 * @par Lua example
980 * setConfigurableDigitalInputAction(0,1)
981 *
982 * @par JSON-RPC request example
983 * {"jsonrpc":"2.0","method":"rob1.IoControl.setConfigurableDigitalInputAction","params":[0,"Handguide"],"id":1}
984 *
985 * @par JSON-RPC response example
986 * {"id":1,"jsonrpc":"2.0","result":0}
987 *
988 * \endenglish
989 */
991 StandardInputAction action);
992
993 /**
994 * \chinese
995 * 获取标准数字输入触发动作
996 *
997 * @param index: 表示IO口的管脚,管脚编号从0开始。
998 * 例如,0表示第一个管脚。
999 * @return 标准数字输入触发动作
1000 *
1001 * @par Python函数原型
1002 * getStandardDigitalInputAction(self: pyaubo_sdk.IoControl, arg0: int) ->
1003 * arcs::common_interface::StandardInputAction
1004 *
1005 * @par Lua函数原型
1006 * getStandardDigitalInputAction(index: number) -> number
1007 *
1008 * @par Lua示例
1009 * num = getStandardDigitalInputAction(0)
1010 *
1011 * @par JSON-RPC请求示例
1012 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalInputAction","params":[0],"id":1}
1013 *
1014 * @par JSON-RPC响应示例
1015 * {"id":1,"jsonrpc":"2.0","result":"Default"}
1016 *
1017 * \endchinese
1018 * \english
1019 * Get the trigger action for standard digital input.
1020 *
1021 * @param index: Indicates the IO pin, starting from 0.
1022 * For example, 0 means the first pin.
1023 * @return Standard digital input trigger action
1024 *
1025 * @par Python function prototype
1026 * getStandardDigitalInputAction(self: pyaubo_sdk.IoControl, arg0: int) ->
1027 * arcs::common_interface::StandardInputAction
1028 *
1029 * @par Lua function prototype
1030 * getStandardDigitalInputAction(index: number) -> number
1031 *
1032 * @par Lua example
1033 * num = getStandardDigitalInputAction(0)
1034 *
1035 * @par JSON-RPC request example
1036 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalInputAction","params":[0],"id":1}
1037 *
1038 * @par JSON-RPC response example
1039 * {"id":1,"jsonrpc":"2.0","result":"Default"}
1040 *
1041 * \endenglish
1042 */
1044
1045 /**
1046 * \chinese
1047 * 获取工具端数字输入触发动作
1048 *
1049 * @param index: 表示IO口的管脚,管脚编号从0开始。
1050 * 例如,0表示第一个管脚。
1051 * @return 工具端数字输入触发动作
1052 *
1053 * @par Python函数原型
1054 * getToolDigitalInputAction(self: pyaubo_sdk.IoControl, arg0: int) ->
1055 * arcs::common_interface::StandardInputAction
1056 *
1057 * @par Lua函数原型
1058 * getToolDigitalInputAction(index: number) -> number
1059 *
1060 * @par Lua示例
1061 * getToolDigitalInputAction(0)
1062 *
1063 * @par JSON-RPC请求示例
1064 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalInputAction","params":[0],"id":1}
1065 *
1066 * @par JSON-RPC响应示例
1067 * {"id":1,"jsonrpc":"2.0","result":"Default"}
1068 *
1069 * \endchinese
1070 * \english
1071 * Get the trigger action for tool digital input.
1072 *
1073 * @param index: Indicates the IO pin, starting from 0.
1074 * For example, 0 means the first pin.
1075 * @return Tool digital input trigger action
1076 *
1077 * @par Python function prototype
1078 * getToolDigitalInputAction(self: pyaubo_sdk.IoControl, arg0: int) ->
1079 * arcs::common_interface::StandardInputAction
1080 *
1081 * @par Lua function prototype
1082 * getToolDigitalInputAction(index: number) -> number
1083 *
1084 * @par Lua example
1085 * getToolDigitalInputAction(0)
1086 *
1087 * @par JSON-RPC request example
1088 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalInputAction","params":[0],"id":1}
1089 *
1090 * @par JSON-RPC response example
1091 * {"id":1,"jsonrpc":"2.0","result":"Default"}
1092 *
1093 * \endenglish
1094 */
1096
1097 /**
1098 * \chinese
1099 * 获取可配置数字输入的输入触发动作
1100 *
1101 * @param index: 表示IO口的管脚,管脚编号从0开始。
1102 * 例如,0表示第一个管脚。
1103 * @return 返回输入触发动作
1104 *
1105 * @par Python函数原型
1106 * getConfigurableDigitalInputAction(self: pyaubo_sdk.IoControl, arg0: int)
1107 * -> arcs::common_interface::StandardInputAction
1108 *
1109 * @par Lua函数原型
1110 * getConfigurableDigitalInputAction(index: number) -> number
1111 *
1112 * @par Lua示例
1113 * num = getConfigurableDigitalInputAction(0)
1114 *
1115 * @par JSON-RPC请求示例
1116 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalInputAction","params":[0],"id":1}
1117 *
1118 * @par JSON-RPC响应示例
1119 * {"id":1,"jsonrpc":"2.0","result":"Default"}
1120 *
1121 * \endchinese
1122 * \english
1123 * Get the trigger action for configurable digital input.
1124 *
1125 * @param index: Indicates the IO pin, starting from 0.
1126 * For example, 0 means the first pin.
1127 * @return Returns the input trigger action.
1128 *
1129 * @par Python function prototype
1130 * getConfigurableDigitalInputAction(self: pyaubo_sdk.IoControl, arg0: int)
1131 * -> arcs::common_interface::StandardInputAction
1132 *
1133 * @par Lua function prototype
1134 * getConfigurableDigitalInputAction(index: number) -> number
1135 *
1136 * @par Lua example
1137 * num = getConfigurableDigitalInputAction(0)
1138 *
1139 * @par JSON-RPC request example
1140 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalInputAction","params":[0],"id":1}
1141 *
1142 * @par JSON-RPC response example
1143 * {"id":1,"jsonrpc":"2.0","result":"Default"}
1144 *
1145 * \endenglish
1146 */
1148
1149 /**
1150 * \chinese
1151 * 设置所有数字输出状态选择为无
1152 *
1153 * @note
1154 * 当给输出状态设置为无(StandardOutputRunState::None)时,
1155 * 用户可以设置数字输出值。\n
1156 * 当给输出设置状态时,用户不可设置数字输出值,控制器会自动设置数字输出值。\n
1157 * 例如,当设置DO0的输出状态为高电平指示正在拖动示教(StandardOutputRunState::Handguiding)时,
1158 * 机器人进入拖动示教,DO0会自动变为高电平。
1159 * 机器人退出拖动示教,DO0会自动变为低电平。
1160 *
1161 * @return 成功返回0;失败返回错误码
1162 * AUBO_BUSY
1163 * AUBO_BAD_STATE
1164 * -AUBO_BAD_STATE
1165 *
1166 * @throws arcs::common_interface::AuboException
1167 *
1168 * @par Python函数原型
1169 * setDigitalOutputRunstateDefault(self: pyaubo_sdk.IoControl) -> int
1170 *
1171 * @par Lua函数原型
1172 * setDigitalOutputRunstateDefault() -> nil
1173 *
1174 * @par Lua示例
1175 * setDigitalOutputRunstateDefault()
1176 *
1177 * @par JSON-RPC请求示例
1178 * {"jsonrpc":"2.0","method":"rob1.IoControl.setDigitalOutputRunstateDefault","params":[],"id":1}
1179 *
1180 * @par JSON-RPC响应示例
1181 * {"id":1,"jsonrpc":"2.0","result":0}
1182 *
1183 * \endchinese
1184 * \english
1185 * Set all digital output runstates to None.
1186 *
1187 * @note
1188 * When the output runstate is set to None (StandardOutputRunState::None),
1189 * users can set the digital output value.\n
1190 * When the output runstate is set, users cannot set the digital output
1191 * value, and the controller will set it automatically.\n For example, when
1192 * DO0's output runstate is set to indicate hand-guiding
1193 * (StandardOutputRunState::Handguiding), the robot enters hand-guiding mode
1194 * and DO0 will automatically become high. When the robot exits
1195 * hand-guiding, DO0 will automatically become low.
1196 *
1197 * @return Returns 0 on success; error code on failure.
1198 * AUBO_BUSY
1199 * AUBO_BAD_STATE
1200 * -AUBO_BAD_STATE
1201 *
1202 * @throws arcs::common_interface::AuboException
1203 *
1204 * @par Python function prototype
1205 * setDigitalOutputRunstateDefault(self: pyaubo_sdk.IoControl) -> int
1206 *
1207 * @par Lua function prototype
1208 * setDigitalOutputRunstateDefault() -> nil
1209 *
1210 * @par Lua example
1211 * setDigitalOutputRunstateDefault()
1212 *
1213 * @par JSON-RPC request example
1214 * {"jsonrpc":"2.0","method":"rob1.IoControl.setDigitalOutputRunstateDefault","params":[],"id":1}
1215 *
1216 * @par JSON-RPC response example
1217 * {"id":1,"jsonrpc":"2.0","result":0}
1218 *
1219 * \endenglish
1220 */
1222
1223 /**
1224 * \chinese
1225 * 设置标准数字输出状态选择
1226 *
1227 * @note
1228 * 当给输出状态设置为无(StandardOutputRunState::None)时,
1229 * 用户可以设置数字输出值。\n
1230 * 当给输出设置状态时,用户不可设置数字输出值,控制器会自动设置数字输出值。\n
1231 * 例如,当设置DO0的输出状态为高电平指示正在拖动示教(StandardOutputRunState::Handguiding)时,
1232 * 机器人进入拖动示教,DO0会自动变为高电平。
1233 * 机器人退出拖动示教,DO0会自动变为低电平。
1234 *
1235 * @param index: 表示IO口的管脚,管脚编号从0开始。
1236 * 例如,0表示第一个管脚。
1237 * @param runstate: 输出状态选择
1238 *
1239 * @return 成功返回0;失败返回错误码
1240 * AUBO_REQUEST_IGNORE
1241 * AUBO_BUSY
1242 * AUBO_BAD_STATE
1243 * -AUBO_INVL_ARGUMENT
1244 * -AUBO_BAD_STATE
1245 *
1246 * @throws arcs::common_interface::AuboException
1247 *
1248 * @par Python函数原型
1249 * setStandardDigitalOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int,
1250 * arg1: arcs::common_interface::StandardOutputRunState) -> int
1251 *
1252 * @par Lua函数原型
1253 * setStandardDigitalOutputRunstate(index: number, runstate: number) -> nil
1254 *
1255 * @par Lua示例
1256 * setStandardDigitalOutputRunstate(0,1)
1257 *
1258 * @par JSON-RPC请求示例
1259 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardDigitalOutputRunstate","params":[0,"PowerOn"],"id":1}
1260 *
1261 * @par JSON-RPC响应示例
1262 * {"id":1,"jsonrpc":"2.0","result":0}
1263 *
1264 * \endchinese
1265 * \english
1266 * Set the runstate for standard digital output.
1267 *
1268 * @note
1269 * When the output runstate is set to None (StandardOutputRunState::None),
1270 * users can set the digital output value.\n
1271 * When the output runstate is set, users cannot set the digital output
1272 * value, and the controller will set it automatically.\n For example, when
1273 * DO0's output runstate is set to indicate hand-guiding
1274 * (StandardOutputRunState::Handguiding), the robot enters hand-guiding mode
1275 * and DO0 will automatically become high. When the robot exits
1276 * hand-guiding, DO0 will automatically become low.
1277 *
1278 * @param index: Indicates the IO pin, starting from 0.
1279 * For example, 0 means the first pin.
1280 * @param runstate: Output runstate selection
1281 *
1282 * @return Returns 0 on success; error code on failure.
1283 * AUBO_REQUEST_IGNORE
1284 * AUBO_BUSY
1285 * AUBO_BAD_STATE
1286 * -AUBO_INVL_ARGUMENT
1287 * -AUBO_BAD_STATE
1288 *
1289 * @throws arcs::common_interface::AuboException
1290 *
1291 * @par Python function prototype
1292 * setStandardDigitalOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int,
1293 * arg1: arcs::common_interface::StandardOutputRunState) -> int
1294 *
1295 * @par Lua function prototype
1296 * setStandardDigitalOutputRunstate(index: number, runstate: number) -> nil
1297 *
1298 * @par Lua example
1299 * setStandardDigitalOutputRunstate(0,1)
1300 *
1301 * @par JSON-RPC request example
1302 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardDigitalOutputRunstate","params":[0,"PowerOn"],"id":1}
1303 *
1304 * @par JSON-RPC response example
1305 * {"id":1,"jsonrpc":"2.0","result":0}
1306 *
1307 * \endenglish
1308 */
1310 StandardOutputRunState runstate);
1311
1312 /**
1313 * \chinese
1314 * 设置工具端数字输出状态选择
1315 *
1316 * @note
1317 * 当给输出状态设置为无(StandardOutputRunState::None)时,
1318 * 用户可以设置数字输出值。\n
1319 * 当给输出设置状态时,用户不可设置数字输出值,控制器会自动设置数字输出值。\n
1320 * 例如,当设置TOOL_IO[0]类型为输出且输出状态为高电平指示正在拖动示教(StandardOutputRunState::Handguiding)时,
1321 * 机器人进入拖动示教,TOOL_IO[0]会自动变为高电平。
1322 * 机器人退出拖动示教,TOOL_IO[0]会自动变为低电平。
1323 *
1324 * @param index: 表示IO口的管脚,管脚编号从0开始。
1325 * 例如,0表示第一个管脚。
1326 * @param runstate: 输出状态选择
1327 *
1328 * @return 成功返回0;失败返回错误码
1329 * AUBO_REQUEST_IGNORE
1330 * AUBO_BUSY
1331 * AUBO_BAD_STATE
1332 * -AUBO_INVL_ARGUMENT
1333 * -AUBO_BAD_STATE
1334 *
1335 * @throws arcs::common_interface::AuboException
1336 *
1337 * @par Python函数原型
1338 * setToolDigitalOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int, arg1:
1339 * arcs::common_interface::StandardOutputRunState) -> int
1340 *
1341 * @par Lua函数原型
1342 * setToolDigitalOutputRunstate(index: number, runstate: number) -> nil
1343 *
1344 * @par Lua示例
1345 * setToolDigitalOutputRunstate(0,1)
1346 *
1347 * @par JSON-RPC请求示例
1348 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolDigitalOutputRunstate","params":[0,"None"],"id":1}
1349 *
1350 * @par JSON-RPC响应示例
1351 * {"id":1,"jsonrpc":"2.0","result":0}
1352 *
1353 * \endchinese
1354 * \english
1355 * Set the runstate for tool digital output.
1356 *
1357 * @note
1358 * When the output runstate is set to None (StandardOutputRunState::None),
1359 * users can set the digital output value.\n
1360 * When the output runstate is set, users cannot set the digital output
1361 * value, and the controller will set it automatically.\n For example, when
1362 * TOOL_IO[0] is set as output and its runstate is set to indicate
1363 * hand-guiding (StandardOutputRunState::Handguiding), the robot enters
1364 * hand-guiding mode and TOOL_IO[0] will automatically become high. When the
1365 * robot exits hand-guiding, TOOL_IO[0] will automatically become low.
1366 *
1367 * @param index: Indicates the IO pin, starting from 0.
1368 * For example, 0 means the first pin.
1369 * @param runstate: Output runstate selection
1370 *
1371 * @return Returns 0 on success; error code on failure.
1372 * AUBO_REQUEST_IGNORE
1373 * AUBO_BUSY
1374 * AUBO_BAD_STATE
1375 * -AUBO_INVL_ARGUMENT
1376 * -AUBO_BAD_STATE
1377 *
1378 * @throws arcs::common_interface::AuboException
1379 *
1380 * @par Python function prototype
1381 * setToolDigitalOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int, arg1:
1382 * arcs::common_interface::StandardOutputRunState) -> int
1383 *
1384 * @par Lua function prototype
1385 * setToolDigitalOutputRunstate(index: number, runstate: number) -> nil
1386 *
1387 * @par Lua example
1388 * setToolDigitalOutputRunstate(0,1)
1389 *
1390 * @par JSON-RPC request example
1391 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolDigitalOutputRunstate","params":[0,"None"],"id":1}
1392 *
1393 * @par JSON-RPC response example
1394 * {"id":1,"jsonrpc":"2.0","result":0}
1395 *
1396 * \endenglish
1397 */
1399 StandardOutputRunState runstate);
1400
1401 /**
1402 * \chinese
1403 * 设置可配置数字输出状态选择
1404 *
1405 * @param index: 表示IO口的管脚,管脚编号从0开始。
1406 * 例如,0表示第一个管脚。
1407 * @param runstate: 输出状态选择
1408 *
1409 * @return 成功返回0;失败返回错误码
1410 * AUBO_REQUEST_IGNORE
1411 * AUBO_BUSY
1412 * AUBO_BAD_STATE
1413 * -AUBO_INVL_ARGUMENT
1414 * -AUBO_BAD_STATE
1415 *
1416 * @throws arcs::common_interface::AuboException
1417 *
1418 * @par Python函数原型
1419 * setConfigurableDigitalOutputRunstate(self: pyaubo_sdk.IoControl, arg0:
1420 * int, arg1: arcs::common_interface::StandardOutputRunState) -> int
1421 *
1422 * @par Lua函数原型
1423 * setConfigurableDigitalOutputRunstate(index: number, runstate: number) ->
1424 * nil
1425 *
1426 * @par Lua示例
1427 * setConfigurableDigitalOutputRunstate(0,1)
1428 *
1429 * @par JSON-RPC请求示例
1430 * {"jsonrpc":"2.0","method":"rob1.IoControl.setConfigurableDigitalOutputRunstate","params":[0,"None"],"id":1}
1431 *
1432 * @par JSON-RPC响应示例
1433 * {"id":1,"jsonrpc":"2.0","result":0}
1434 *
1435 * \endchinese
1436 * \english
1437 * Set the runstate for configurable digital output.
1438 *
1439 * @param index: Indicates the IO pin, starting from 0.
1440 * For example, 0 means the first pin.
1441 * @param runstate: Output runstate selection
1442 *
1443 * @return Returns 0 on success; error code on failure.
1444 * AUBO_REQUEST_IGNORE
1445 * AUBO_BUSY
1446 * AUBO_BAD_STATE
1447 * -AUBO_INVL_ARGUMENT
1448 * -AUBO_BAD_STATE
1449 *
1450 * @throws arcs::common_interface::AuboException
1451 *
1452 * @par Python function prototype
1453 * setConfigurableDigitalOutputRunstate(self: pyaubo_sdk.IoControl, arg0:
1454 * int, arg1: arcs::common_interface::StandardOutputRunState) -> int
1455 *
1456 * @par Lua function prototype
1457 * setConfigurableDigitalOutputRunstate(index: number, runstate: number) ->
1458 * nil
1459 *
1460 * @par Lua example
1461 * setConfigurableDigitalOutputRunstate(0,1)
1462 *
1463 * @par JSON-RPC request example
1464 * {"jsonrpc":"2.0","method":"rob1.IoControl.setConfigurableDigitalOutputRunstate","params":[0,"None"],"id":1}
1465 *
1466 * @par JSON-RPC response example
1467 * {"id":1,"jsonrpc":"2.0","result":0}
1468 *
1469 * \endenglish
1470 */
1472 StandardOutputRunState runstate);
1473
1474 /**
1475 * \chinese
1476 * 获取标准数字输出状态选择
1477 *
1478 * @param index: 表示IO口的管脚,管脚编号从0开始。
1479 * 例如,0表示第一个管脚。
1480 * @return 输出状态选择
1481 *
1482 * @throws arcs::common_interface::AuboException
1483 *
1484 * @par Python函数原型
1485 * getStandardDigitalOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int)
1486 * -> arcs::common_interface::StandardOutputRunState
1487 *
1488 * @par Lua函数原型
1489 * getStandardDigitalOutputRunstate(index: number) -> number
1490 *
1491 * @par Lua示例
1492 * num = getStandardDigitalOutputRunstate(0)
1493 *
1494 * @par JSON-RPC请求示例
1495 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalOutputRunstate","params":[0],"id":1}
1496 *
1497 * @par JSON-RPC响应示例
1498 * {"id":1,"jsonrpc":"2.0","result":"None"}
1499 *
1500 * \endchinese
1501 * \english
1502 * Get the runstate for standard digital output.
1503 *
1504 * @param index: Indicates the IO pin, starting from 0.
1505 * For example, 0 means the first pin.
1506 * @return Output runstate selection
1507 *
1508 * @throws arcs::common_interface::AuboException
1509 *
1510 * @par Python function prototype
1511 * getStandardDigitalOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int)
1512 * -> arcs::common_interface::StandardOutputRunState
1513 *
1514 * @par Lua function prototype
1515 * getStandardDigitalOutputRunstate(index: number) -> number
1516 *
1517 * @par Lua example
1518 * num = getStandardDigitalOutputRunstate(0)
1519 *
1520 * @par JSON-RPC request example
1521 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalOutputRunstate","params":[0],"id":1}
1522 *
1523 * @par JSON-RPC response example
1524 * {"id":1,"jsonrpc":"2.0","result":"None"}
1525 *
1526 * \endenglish
1527 */
1529
1530 /**
1531 * \chinese
1532 * 获取工具端数字输出状态选择
1533 *
1534 * @param index: 表示IO口的管脚,管脚编号从0开始。
1535 * 例如,0表示第一个管脚。
1536 * @return 输出状态选择
1537 *
1538 * @throws arcs::common_interface::AuboException
1539 *
1540 * @par Python函数原型
1541 * getToolDigitalOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int) ->
1542 * arcs::common_interface::StandardOutputRunState
1543 *
1544 * @par Lua函数原型
1545 * getToolDigitalOutputRunstate(index: number) -> number
1546 *
1547 * @par Lua示例
1548 * num = getToolDigitalOutputRunstate(0)
1549 *
1550 * @par JSON-RPC请求示例
1551 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalOutputRunstate","params":[0],"id":1}
1552 *
1553 * @par JSON-RPC响应示例
1554 * {"id":1,"jsonrpc":"2.0","result":"None"}
1555 *
1556 * \endchinese
1557 * \english
1558 * Get the runstate for tool digital output.
1559 *
1560 * @param index: Indicates the IO pin, starting from 0.
1561 * For example, 0 means the first pin.
1562 * @return Output runstate selection
1563 *
1564 * @throws arcs::common_interface::AuboException
1565 *
1566 * @par Python function prototype
1567 * getToolDigitalOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int) ->
1568 * arcs::common_interface::StandardOutputRunState
1569 *
1570 * @par Lua function prototype
1571 * getToolDigitalOutputRunstate(index: number) -> number
1572 *
1573 * @par Lua example
1574 * num = getToolDigitalOutputRunstate(0)
1575 *
1576 * @par JSON-RPC request example
1577 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalOutputRunstate","params":[0],"id":1}
1578 *
1579 * @par JSON-RPC response example
1580 * {"id":1,"jsonrpc":"2.0","result":"None"}
1581 *
1582 * \endenglish
1583 */
1585
1586 /**
1587 * \chinese
1588 * 获取可配置数字输出状态选择
1589 *
1590 * @param index: 表示IO口的管脚,管脚编号从0开始。
1591 * 例如,0表示第一个管脚。
1592 * @return 输出状态选择
1593 *
1594 * @throws arcs::common_interface::AuboException
1595 *
1596 * @par Python函数原型
1597 * getConfigurableDigitalOutputRunstate(self: pyaubo_sdk.IoControl, arg0:
1598 * int)
1599 * -> arcs::common_interface::StandardOutputRunState
1600 *
1601 * @par Lua函数原型
1602 * getConfigurableDigitalOutputRunstate(index: number) -> number
1603 *
1604 * @par Lua示例
1605 * num = getConfigurableDigitalOutputRunstate(0)
1606 *
1607 * @par JSON-RPC请求示例
1608 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalOutputRunstate","params":[0],"id":1}
1609 *
1610 * @par JSON-RPC响应示例
1611 * {"id":1,"jsonrpc":"2.0","result":"None"}
1612 *
1613 * \endchinese
1614 * \english
1615 * Get the runstate for configurable digital output.
1616 *
1617 * @param index: Indicates the IO pin, starting from 0.
1618 * For example, 0 means the first pin.
1619 * @return Output runstate selection
1620 *
1621 * @throws arcs::common_interface::AuboException
1622 *
1623 * @par Python function prototype
1624 * getConfigurableDigitalOutputRunstate(self: pyaubo_sdk.IoControl, arg0:
1625 * int)
1626 * -> arcs::common_interface::StandardOutputRunState
1627 *
1628 * @par Lua function prototype
1629 * getConfigurableDigitalOutputRunstate(index: number) -> number
1630 *
1631 * @par Lua example
1632 * num = getConfigurableDigitalOutputRunstate(0)
1633 *
1634 * @par JSON-RPC request example
1635 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalOutputRunstate","params":[0],"id":1}
1636 *
1637 * @par JSON-RPC response example
1638 * {"id":1,"jsonrpc":"2.0","result":"None"}
1639 *
1640 * \endenglish
1641 */
1643
1644 /**
1645 * \chinese
1646 * 设置标准模拟输出状态选择
1647 *
1648 * @note
1649 * 当给输出状态设置为无(StandardOutputRunState::None)时,
1650 * 用户可以设置模拟输出值。\n
1651 * 当给输出设置状态时,用户不可设置模拟输出值,控制器会自动设置模拟输出值。\n
1652 * 例如,当设置AO0的输出状态为高电平指示正在拖动示教(StandardOutputRunState::Handguiding)时,
1653 * 机器人进入拖动示教,AO0的值会自动变为最大值。
1654 * 机器人退出拖动示教,AO0的值会自动变为0。
1655 *
1656 * @param index: 表示IO口的管脚,管脚编号从0开始。
1657 * 例如,0表示第一个管脚。
1658 * @param runstate: 输出状态选择
1659 * @return 成功返回0;失败返回错误码
1660 * AUBO_REQUEST_IGNORE
1661 * AUBO_BUSY
1662 * AUBO_BAD_STATE
1663 * -AUBO_INVL_ARGUMENT
1664 * -AUBO_BAD_STATE
1665 *
1666 * @throws arcs::common_interface::AuboException
1667 *
1668 * @par Python函数原型
1669 * setStandardAnalogOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int,
1670 * arg1: arcs::common_interface::StandardOutputRunState) -> int
1671 *
1672 * @par Lua函数原型
1673 * setStandardAnalogOutputRunstate(index: number, runstate: number) -> nil
1674 *
1675 * @par Lua示例
1676 * setStandardAnalogOutputRunstate(0,6)
1677 *
1678 * @par JSON-RPC请求示例
1679 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardAnalogOutputRunstate","params":[0,"None"],"id":1}
1680 *
1681 * @par JSON-RPC响应示例
1682 * {"id":1,"jsonrpc":"2.0","result":0}
1683 *
1684 * \endchinese
1685 * \english
1686 * Set the runstate for standard analog output.
1687 *
1688 * @note
1689 * When the output runstate is set to None (StandardOutputRunState::None),
1690 * users can set the analog output value.\n
1691 * When the output runstate is set, users cannot set the analog output
1692 * value, and the controller will set it automatically.\n For example, when
1693 * AO0's output runstate is set to indicate hand-guiding
1694 * (StandardOutputRunState::Handguiding), the robot enters hand-guiding mode
1695 * and AO0 will automatically become the maximum value. When the robot exits
1696 * hand-guiding, AO0 will automatically become 0.
1697 *
1698 * @param index: Indicates the IO pin, starting from 0.
1699 * For example, 0 means the first pin.
1700 * @param runstate: Output runstate selection
1701 * @return Returns 0 on success; error code on failure.
1702 * AUBO_REQUEST_IGNORE
1703 * AUBO_BUSY
1704 * AUBO_BAD_STATE
1705 * -AUBO_INVL_ARGUMENT
1706 * -AUBO_BAD_STATE
1707 *
1708 * @throws arcs::common_interface::AuboException
1709 *
1710 * @par Python function prototype
1711 * setStandardAnalogOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int,
1712 * arg1: arcs::common_interface::StandardOutputRunState) -> int
1713 *
1714 * @par Lua function prototype
1715 * setStandardAnalogOutputRunstate(index: number, runstate: number) -> nil
1716 *
1717 * @par Lua example
1718 * setStandardAnalogOutputRunstate(0,6)
1719 *
1720 * @par JSON-RPC request example
1721 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardAnalogOutputRunstate","params":[0,"None"],"id":1}
1722 *
1723 * @par JSON-RPC response example
1724 * {"id":1,"jsonrpc":"2.0","result":0}
1725 *
1726 * \endenglish
1727 */
1729 StandardOutputRunState runstate);
1730
1731 /**
1732 * \chinese
1733 * 设置工具端模拟输出状态选择
1734 *
1735 * @param index: 表示IO口的管脚,管脚编号从0开始。
1736 * 例如,0表示第一个管脚。
1737 * @param runstate: 输出状态选择
1738 * @return 成功返回0;失败返回错误码
1739 * AUBO_REQUEST_IGNORE
1740 * AUBO_BUSY
1741 * AUBO_BAD_STATE
1742 * -AUBO_INVL_ARGUMENT
1743 * -AUBO_BAD_STATE
1744 *
1745 * @throws arcs::common_interface::AuboException
1746 *
1747 * @par Python函数原型
1748 * setToolAnalogOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int, arg1:
1749 * arcs::common_interface::StandardOutputRunState) -> int
1750 *
1751 * @par Lua函数原型
1752 * setToolAnalogOutputRunstate(index: number, runstate: number) -> nil
1753 *
1754 * @par Lua示例
1755 * setToolAnalogOutputRunstate(0,1)
1756 *
1757 * @par JSON-RPC请求示例
1758 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolAnalogOutputRunstate","params":[0,"None"],"id":1}
1759 *
1760 * @par JSON-RPC响应示例
1761 * {"id":1,"jsonrpc":"2.0","result":0}
1762 *
1763 * \endchinese
1764 * \english
1765 * Set the runstate for tool analog output.
1766 *
1767 * @param index: Indicates the IO pin, starting from 0.
1768 * For example, 0 means the first pin.
1769 * @param runstate: Output runstate selection
1770 * @return Returns 0 on success; error code on failure.
1771 * AUBO_REQUEST_IGNORE
1772 * AUBO_BUSY
1773 * AUBO_BAD_STATE
1774 * -AUBO_INVL_ARGUMENT
1775 * -AUBO_BAD_STATE
1776 *
1777 * @throws arcs::common_interface::AuboException
1778 *
1779 * @par Python function prototype
1780 * setToolAnalogOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int, arg1:
1781 * arcs::common_interface::StandardOutputRunState) -> int
1782 *
1783 * @par Lua function prototype
1784 * setToolAnalogOutputRunstate(index: number, runstate: number) -> nil
1785 *
1786 * @par Lua example
1787 * setToolAnalogOutputRunstate(0,1)
1788 *
1789 * @par JSON-RPC request example
1790 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolAnalogOutputRunstate","params":[0,"None"],"id":1}
1791 *
1792 * @par JSON-RPC response example
1793 * {"id":1,"jsonrpc":"2.0","result":0}
1794 *
1795 * \endenglish
1796 */
1798
1799 /**
1800 * \chinese
1801 * 获取标准模拟输出状态选择
1802 *
1803 * @param index: 表示IO口的管脚,管脚编号从0开始。
1804 * 例如,0表示第一个管脚。
1805 * @return 标准模拟输出状态选择
1806 *
1807 * @throws arcs::common_interface::AuboException
1808 *
1809 * @par Python函数原型
1810 * getStandardAnalogOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int) ->
1811 * arcs::common_interface::StandardOutputRunState
1812 *
1813 * @par Lua函数原型
1814 * getStandardAnalogOutputRunstate(index: number) -> number
1815 *
1816 * @par Lua示例
1817 * num = getStandardAnalogOutputRunstate(0)
1818 *
1819 * @par JSON-RPC请求示例
1820 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardAnalogOutputRunstate","params":[0],"id":1}
1821 *
1822 * @par JSON-RPC响应示例
1823 * {"id":1,"jsonrpc":"2.0","result":"None"}
1824 *
1825 * \endchinese
1826 * \english
1827 * Get the runstate for standard analog output.
1828 *
1829 * @param index: Indicates the IO pin, starting from 0.
1830 * For example, 0 means the first pin.
1831 * @return Standard analog output runstate selection
1832 *
1833 * @throws arcs::common_interface::AuboException
1834 *
1835 * @par Python function prototype
1836 * getStandardAnalogOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int) ->
1837 * arcs::common_interface::StandardOutputRunState
1838 *
1839 * @par Lua function prototype
1840 * getStandardAnalogOutputRunstate(index: number) -> number
1841 *
1842 * @par Lua example
1843 * num = getStandardAnalogOutputRunstate(0)
1844 *
1845 * @par JSON-RPC request example
1846 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardAnalogOutputRunstate","params":[0],"id":1}
1847 *
1848 * @par JSON-RPC response example
1849 * {"id":1,"jsonrpc":"2.0","result":"None"}
1850 *
1851 * \endenglish
1852 */
1854
1855 /**
1856 * \chinese
1857 * 获取工具端模拟输出状态选择
1858 *
1859 * @param index: 表示IO口的管脚,管脚编号从0开始。
1860 * 例如,0表示第一个管脚。
1861 * @return 工具端模拟输出状态选择
1862 *
1863 * @throws arcs::common_interface::AuboException
1864 *
1865 * @par Python函数原型
1866 * getToolAnalogOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int) ->
1867 * arcs::common_interface::StandardOutputRunState
1868 *
1869 * @par Lua函数原型
1870 * getToolAnalogOutputRunstate(index: number) -> number
1871 *
1872 * @par Lua示例
1873 * num = getToolAnalogOutputRunstate(0)
1874 *
1875 * @par JSON-RPC请求示例
1876 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolAnalogOutputRunstate","params":[0],"id":1}
1877 *
1878 * @par JSON-RPC响应示例
1879 * {"id":1,"jsonrpc":"2.0","result":"None"}
1880 *
1881 * \endchinese
1882 * \english
1883 * Get the runstate for tool analog output.
1884 *
1885 * @param index: Indicates the IO pin, starting from 0.
1886 * For example, 0 means the first pin.
1887 * @return Tool analog output runstate selection
1888 *
1889 * @throws arcs::common_interface::AuboException
1890 *
1891 * @par Python function prototype
1892 * getToolAnalogOutputRunstate(self: pyaubo_sdk.IoControl, arg0: int) ->
1893 * arcs::common_interface::StandardOutputRunState
1894 *
1895 * @par Lua function prototype
1896 * getToolAnalogOutputRunstate(index: number) -> number
1897 *
1898 * @par Lua example
1899 * num = getToolAnalogOutputRunstate(0)
1900 *
1901 * @par JSON-RPC request example
1902 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolAnalogOutputRunstate","params":[0],"id":1}
1903 *
1904 * @par JSON-RPC response example
1905 * {"id":1,"jsonrpc":"2.0","result":"None"}
1906 *
1907 * \endenglish
1908 */
1910
1911 /**
1912 * \chinese
1913 * 设置所有数字输出急停后状态为默认(不做改变)
1914 *
1915 * @return 成功返回0;失败返回错误码
1916 * AUBO_BUSY
1917 * AUBO_BAD_STATE
1918 * -AUBO_BAD_STATE
1919 *
1920 * @throws arcs::common_interface::AuboException
1921 *
1922 * @par Python函数原型
1923 * setDigitalOutputAfterEStopDefault(self: pyaubo_sdk.IoControl) -> int
1924 *
1925 * @par Lua函数原型
1926 * setDigitalOutputAfterEStopDefault() -> nil
1927 *
1928 * @par Lua示例
1929 * setDigitalOutputAfterEStopDefault()
1930 *
1931 * @par JSON-RPC请求示例
1932 * {"jsonrpc":"2.0","method":"rob1.IoControl.setDigitalOutputAfterEStopDefault","params":[],"id":1}
1933 *
1934 * @par JSON-RPC响应示例
1935 * {"id":1,"jsonrpc":"2.0","result":0}
1936 *
1937 * \endchinese
1938 * \english
1939 * Set all digital output states after emergency stop to default(no change)
1940 *
1941 * @return Returns 0 on success; error code on failure.
1942 * AUBO_BUSY
1943 * AUBO_BAD_STATE
1944 * -AUBO_BAD_STATE
1945 *
1946 * @throws arcs::common_interface::AuboException
1947 *
1948 * @par Python function prototype
1949 * setDigitalOutputAfterEStopDefault(self: pyaubo_sdk.IoControl) -> int
1950 *
1951 * @par Lua function prototype
1952 * setDigitalOutputAfterEStopDefault() -> nil
1953 *
1954 * @par Lua example
1955 * setDigitalOutputAfterEStopDefault()
1956 *
1957 * @par JSON-RPC request example
1958 * {"jsonrpc":"2.0","method":"rob1.IoControl.setDigitalOutputAfterEStopDefault","params":[],"id":1}
1959 *
1960 * @par JSON-RPC response example
1961 * {"id":1,"jsonrpc":"2.0","result":0}
1962 *
1963 * \endenglish
1964 */
1966
1967 /**
1968 * \chinese
1969 * 设置所有模拟输出急停后状态为默认(不做改变)
1970 *
1971 * @return 成功返回0;失败返回错误码
1972 * AUBO_BUSY
1973 * AUBO_BAD_STATE
1974 * -AUBO_BAD_STATE
1975 *
1976 * @throws arcs::common_interface::AuboException
1977 *
1978 * @par Python函数原型
1979 * setAnalogOutputAfterEStopDefault(self: pyaubo_sdk.IoControl) -> int
1980 *
1981 * @par Lua函数原型
1982 * setAnalogOutputAfterEStopDefault() -> nil
1983 *
1984 * @par Lua示例
1985 * setAnalogOutputAfterEStopDefault()
1986 *
1987 * @par JSON-RPC请求示例
1988 * {"jsonrpc":"2.0","method":"rob1.IoControl.setAnalogOutputAfterEStopDefault","params":[],"id":1}
1989 *
1990 * @par JSON-RPC响应示例
1991 * {"id":1,"jsonrpc":"2.0","result":0}
1992 *
1993 * \endchinese
1994 * \english
1995 * Set all analog output states after emergency stop to default(no change)
1996 *
1997 * @return Returns 0 on success; error code on failure.
1998 * AUBO_BUSY
1999 * AUBO_BAD_STATE
2000 * -AUBO_BAD_STATE
2001 *
2002 * @throws arcs::common_interface::AuboException
2003 *
2004 * @par Python function prototype
2005 * setAnalogOutputAfterEStopDefault(self: pyaubo_sdk.IoControl) -> int
2006 *
2007 * @par Lua function prototype
2008 * setAnalogOutputAfterEStopDefault() -> nil
2009 *
2010 * @par Lua example
2011 * setAnalogOutputAfterEStopDefault()
2012 *
2013 * @par JSON-RPC request example
2014 * {"jsonrpc":"2.0","method":"rob1.IoControl.setAnalogOutputAfterEStopDefault","params":[],"id":1}
2015 *
2016 * @par JSON-RPC response example
2017 * {"id":1,"jsonrpc":"2.0","result":0}
2018 *
2019 * \endenglish
2020 */
2022
2023 /**
2024 * \chinese
2025 * 设置标准数字输出急停后的输出值
2026 *
2027 * @param index: 表示IO口的管脚,
2028 * @param value: 输出值
2029 * @return 成功返回0;失败返回错误码
2030 * AUBO_REQUEST_IGNORE
2031 * AUBO_BUSY
2032 * AUBO_BAD_STATE
2033 * -AUBO_INVL_ARGUMENT
2034 * -AUBO_BAD_STATE
2035 *
2036 * @throws arcs::common_interface::AuboException
2037 *
2038 * @par Python函数原型
2039 * setStandardDigitalOutputAfterEStop(self: pyaubo_sdk.IoControl, arg0: int,
2040 * arg1: bool) -> int
2041 *
2042 * @par Lua函数原型
2043 * setStandardDigitalOutputAfterEStop(index: number, value: boolean) -> nil
2044 *
2045 * @par Lua示例
2046 * setStandardDigitalOutputAfterEStop(0,true)
2047 *
2048 * @par JSON-RPC请求示例
2049 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardDigitalOutputAfterEStop","params":[0,true],"id":1}
2050 *
2051 * @par JSON-RPC响应示例
2052 * {"id":1,"jsonrpc":"2.0","result":0}
2053 *
2054 * \endchinese
2055 * \english
2056 * Set the value of a standard digital output after emergency stop
2057 *
2058 * @param index: Indicates the IO pin.
2059 * @param value: Output value.
2060 * @return Returns 0 on success; error code on failure.
2061 * AUBO_REQUEST_IGNORE
2062 * AUBO_BUSY
2063 * AUBO_BAD_STATE
2064 * -AUBO_INVL_ARGUMENT
2065 * -AUBO_BAD_STATE
2066 *
2067 * @throws arcs::common_interface::AuboException
2068 *
2069 * @par Python function prototype
2070 * setStandardDigitalOutputAfterEStop(self: pyaubo_sdk.IoControl, arg0: int,
2071 * arg1: bool) -> int
2072 *
2073 * @par Lua function prototype
2074 * setStandardDigitalOutputAfterEStop(index: number, value: boolean) -> nil
2075 *
2076 * @par Lua example
2077 * setStandardDigitalOutputAfterEStop(0,true)
2078 *
2079 * @par JSON-RPC request example
2080 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardDigitalOutputAfterEStop","params":[0,true],"id":1}
2081 *
2082 * @par JSON-RPC response example
2083 * {"id":1,"jsonrpc":"2.0","result":0}
2084 *
2085 * \endenglish
2086 */
2087 int setStandardDigitalOutputAfterEStop(int index, bool value);
2088
2089 /**
2090 * \chinese
2091 * 设置可配置数字输出急停后的输出值
2092 *
2093 * @param index: 表示IO口的管脚,
2094 * @param value: 输出值
2095 * @return 成功返回0;失败返回错误码
2096 * AUBO_REQUEST_IGNORE
2097 * AUBO_BUSY
2098 * AUBO_BAD_STATE
2099 * -AUBO_INVL_ARGUMENT
2100 * -AUBO_BAD_STATE
2101 *
2102 * @throws arcs::common_interface::AuboException
2103 *
2104 * @par Python函数原型
2105 * setConfigurableDigitalOutputAfterEStop(self: pyaubo_sdk.IoControl, arg0:
2106 * int, arg1: bool) -> int
2107 *
2108 * @par Lua函数原型
2109 * setConfigurableDigitalOutputAfterEStop(index: number, value: boolean) ->
2110 * nil
2111 *
2112 * @par Lua示例
2113 * setConfigurableDigitalOutputAfterEStop(0,true)
2114 *
2115 * @par JSON-RPC请求示例
2116 * {"jsonrpc":"2.0","method":"rob1.IoControl.setConfigurableDigitalOutputAfterEStop","params":[0,true],"id":1}
2117 *
2118 * @par JSON-RPC响应示例
2119 * {"id":1,"jsonrpc":"2.0","result":0}
2120 *
2121 * \endchinese
2122 * \english
2123 * Set the value of a configurable digital output after emergency stop
2124 *
2125 * @param index: Indicates the IO pin.
2126 * @param value: Output value.
2127 * @return Returns 0 on success; error code on failure.
2128 * AUBO_REQUEST_IGNORE
2129 * AUBO_BUSY
2130 * AUBO_BAD_STATE
2131 * -AUBO_INVL_ARGUMENT
2132 * -AUBO_BAD_STATE
2133 *
2134 * @throws arcs::common_interface::AuboException
2135 *
2136 * @par Python function prototype
2137 * setConfigurableDigitalOutputAfterEStop(self: pyaubo_sdk.IoControl, arg0:
2138 * int, arg1: bool) -> int
2139 *
2140 * @par Lua function prototype
2141 * setConfigurableDigitalOutputAfterEStop(index: number, value: boolean) ->
2142 * nil
2143 *
2144 * @par Lua example
2145 * setConfigurableDigitalOutputAfterEStop(0,true)
2146 *
2147 * @par JSON-RPC request example
2148 * {"jsonrpc":"2.0","method":"rob1.IoControl.setConfigurableDigitalOutputAfterEStop","params":[0,true],"id":1}
2149 *
2150 * @par JSON-RPC response example
2151 * {"id":1,"jsonrpc":"2.0","result":0}
2152 *
2153 * \endenglish
2154 */
2155 int setConfigurableDigitalOutputAfterEStop(int index, bool value);
2156
2157 /**
2158 * \chinese
2159 * 设置标准模拟输出急停后的输出值
2160 *
2161 * @param index: 表示IO口的管脚,管脚编号从0开始。
2162 * 例如,0表示第一个管脚。
2163 * @param value: 模拟输出值
2164 *
2165 * @return 成功返回0;失败返回错误码
2166 * AUBO_REQUEST_IGNORE
2167 * AUBO_BUSY
2168 * AUBO_BAD_STATE
2169 * -AUBO_INVL_ARGUMENT
2170 * -AUBO_BAD_STATE
2171 *
2172 * @throws arcs::common_interface::AuboException
2173 *
2174 * @par Python函数原型
2175 * setStandardAnalogOutputAfterEStop(self: pyaubo_sdk.IoControl, arg0: int,
2176 * arg1: float) -> int
2177 *
2178 * @par Lua函数原型
2179 * setStandardAnalogOutputAfterEStop(index: number, value: number) -> nil
2180 *
2181 * @par Lua示例
2182 * setStandardAnalogOutputAfterEStop(0,5.4)
2183 *
2184 * \endchinese
2185 * \english
2186 * Set the value of standard analog output after emergency stop
2187 *
2188 * @param index: Indicates the IO pin, starting from 0.
2189 * For example, 0 means the first pin.
2190 * @param value: Output value.
2191 *
2192 * @return Returns 0 on success; error code on failure.
2193 * AUBO_REQUEST_IGNORE
2194 * AUBO_BUSY
2195 * AUBO_BAD_STATE
2196 * -AUBO_INVL_ARGUMENT
2197 * -AUBO_BAD_STATE
2198 *
2199 * @throws arcs::common_interface::AuboException
2200 *
2201 * @par Python function prototype
2202 * setStandardAnalogOutputAfterEStop(self: pyaubo_sdk.IoControl, arg0: int,
2203 * arg1: float) -> int
2204 *
2205 * @par Lua function prototype
2206 * setStandardAnalogOutputAfterEStop(index: number, value: number) -> nil
2207 *
2208 * @par Lua example
2209 * setStandardAnalogOutputAfterEStop(0,5.4)
2210 *
2211 * \endenglish
2212 */
2213 int setStandardAnalogOutputAfterEStop(int index, double value);
2214
2215 /**
2216 * \chinese
2217 * 设置标准模拟输入的范围
2218 *
2219 * @param index: 表示IO口的管脚,管脚编号从0开始。
2220 * 例如,0表示第一个管脚。
2221 * @param domain: 输入的范围
2222 *
2223 * @return 成功返回0;失败返回错误码
2224 * AUBO_REQUEST_IGNORE
2225 * AUBO_BUSY
2226 * AUBO_BAD_STATE
2227 * -AUBO_INVL_ARGUMENT
2228 * -AUBO_BAD_STATE
2229 *
2230 * @throws arcs::common_interface::AuboException
2231 *
2232 * @par Python函数原型
2233 * setStandardAnalogInputDomain(self: pyaubo_sdk.IoControl, arg0: int, arg1:
2234 * int) -> int
2235 *
2236 * @par Lua函数原型
2237 * setStandardAnalogInputDomain(index: number, domain: number) -> nil
2238 *
2239 * @par Lua示例
2240 * setStandardAnalogInputDomain(0,1)
2241 *
2242 * @par JSON-RPC请求示例
2243 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardAnalogInputDomain","params":[0,8],"id":1}
2244 *
2245 * @par JSON-RPC响应示例
2246 * {"id":1,"jsonrpc":"2.0","result":0}
2247 *
2248 * \endchinese
2249 * \english
2250 * Set the range of standard analog input.
2251 *
2252 * @param index: Indicates the IO pin, starting from 0.
2253 * For example, 0 means the first pin.
2254 * @param domain: Input range
2255 *
2256 * @return Returns 0 on success; error code on failure.
2257 * AUBO_REQUEST_IGNORE
2258 * AUBO_BUSY
2259 * AUBO_BAD_STATE
2260 * -AUBO_INVL_ARGUMENT
2261 * -AUBO_BAD_STATE
2262 *
2263 * @throws arcs::common_interface::AuboException
2264 *
2265 * @par Python function prototype
2266 * setStandardAnalogInputDomain(self: pyaubo_sdk.IoControl, arg0: int, arg1:
2267 * int) -> int
2268 *
2269 * @par Lua function prototype
2270 * setStandardAnalogInputDomain(index: number, domain: number) -> nil
2271 *
2272 * @par Lua example
2273 * setStandardAnalogInputDomain(0,1)
2274 *
2275 * @par JSON-RPC request example
2276 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardAnalogInputDomain","params":[0,8],"id":1}
2277 *
2278 * @par JSON-RPC response example
2279 * {"id":1,"jsonrpc":"2.0","result":0}
2280 *
2281 * \endenglish
2282 */
2283 int setStandardAnalogInputDomain(int index, int domain);
2284
2285 /**
2286 * \chinese
2287 * 设置工具端模拟输入的范围
2288 *
2289 * @param index: 表示IO口的管脚,管脚编号从0开始。
2290 * 例如,0表示第一个管脚。
2291 * @param domain: 输入的范围
2292 * @return 成功返回0;失败返回错误码
2293 * AUBO_REQUEST_IGNORE
2294 * AUBO_BUSY
2295 * AUBO_BAD_STATE
2296 * -AUBO_INVL_ARGUMENT
2297 * -AUBO_BAD_STATE
2298 *
2299 * @throws arcs::common_interface::AuboException
2300 *
2301 * @par Python函数原型
2302 * setToolAnalogInputDomain(self: pyaubo_sdk.IoControl, arg0: int, arg1:
2303 * int) -> int
2304 *
2305 * @par Lua函数原型
2306 * setToolAnalogInputDomain(index: number, domain: number) -> nil
2307 *
2308 * @par Lua示例
2309 * setToolAnalogInputDomain(0,1)
2310 *
2311 * @par JSON-RPC请求示例
2312 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolAnalogInputDomain","params":[0,8],"id":1}
2313 *
2314 * @par JSON-RPC响应示例
2315 * {"id":1,"jsonrpc":"2.0","result":0}
2316 *
2317 * \endchinese
2318 * \english
2319 * Set the range of tool analog input.
2320 *
2321 * @param index: Indicates the IO pin, starting from 0.
2322 * For example, 0 means the first pin.
2323 * @param domain: Input range
2324 * @return Returns 0 on success; error code on failure.
2325 * AUBO_REQUEST_IGNORE
2326 * AUBO_BUSY
2327 * AUBO_BAD_STATE
2328 * -AUBO_INVL_ARGUMENT
2329 * -AUBO_BAD_STATE
2330 *
2331 * @throws arcs::common_interface::AuboException
2332 *
2333 * @par Python function prototype
2334 * setToolAnalogInputDomain(self: pyaubo_sdk.IoControl, arg0: int, arg1:
2335 * int) -> int
2336 *
2337 * @par Lua function prototype
2338 * setToolAnalogInputDomain(index: number, domain: number) -> nil
2339 *
2340 * @par Lua example
2341 * setToolAnalogInputDomain(0,1)
2342 *
2343 * @par JSON-RPC request example
2344 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolAnalogInputDomain","params":[0,8],"id":1}
2345 *
2346 * @par JSON-RPC response example
2347 * {"id":1,"jsonrpc":"2.0","result":0}
2348 *
2349 * \endenglish
2350 */
2351 int setToolAnalogInputDomain(int index, int domain);
2352
2353 /**
2354 * \chinese
2355 * 获取标准模式输入范围
2356 *
2357 * @param index: 表示IO口的管脚,管脚编号从0开始。
2358 * 例如,0表示第一个管脚。
2359 * @return 标准模式输入范围
2360 *
2361 * @throws arcs::common_interface::AuboException
2362 *
2363 * @par Python函数原型
2364 * getStandardAnalogInputDomain(self: pyaubo_sdk.IoControl, arg0: int) ->
2365 * int
2366 *
2367 * @par Lua函数原型
2368 * getStandardAnalogInputDomain(index: number) -> number
2369 *
2370 * @par Lua示例
2371 * num = getStandardAnalogInputDomain(0)
2372 *
2373 * @par JSON-RPC请求示例
2374 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardAnalogInputDomain","params":[0],"id":1}
2375 *
2376 * @par JSON-RPC响应示例
2377 * {"id":1,"jsonrpc":"2.0","result":0}
2378 *
2379 * \endchinese
2380 * \english
2381 * Get the domain of standard analog input.
2382 *
2383 * @param index: Indicates the IO pin, starting from 0.
2384 * For example, 0 means the first pin.
2385 * @return Standard analog input domain
2386 *
2387 * @throws arcs::common_interface::AuboException
2388 *
2389 * @par Python function prototype
2390 * getStandardAnalogInputDomain(self: pyaubo_sdk.IoControl, arg0: int) ->
2391 * int
2392 *
2393 * @par Lua function prototype
2394 * getStandardAnalogInputDomain(index: number) -> number
2395 *
2396 * @par Lua example
2397 * num = getStandardAnalogInputDomain(0)
2398 *
2399 * @par JSON-RPC request example
2400 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardAnalogInputDomain","params":[0],"id":1}
2401 *
2402 * @par JSON-RPC response example
2403 * {"id":1,"jsonrpc":"2.0","result":0}
2404 *
2405 * \endenglish
2406 */
2408
2409 /**
2410 * \chinese
2411 * 获取工具端模式输入范围
2412 *
2413 * @param index: 表示IO口的管脚,管脚编号从0开始。
2414 * 例如,0表示第一个管脚。
2415 * @return 工具端模式输入范围
2416 *
2417 * @throws arcs::common_interface::AuboException
2418 *
2419 * @par Python函数原型
2420 * getToolAnalogInputDomain(self: pyaubo_sdk.IoControl, arg0: int) -> int
2421 *
2422 * @par Lua函数原型
2423 * getToolAnalogInputDomain(index: number) -> number
2424 *
2425 * @par Lua示例
2426 * num = getToolAnalogInputDomain(0)
2427 *
2428 * @par JSON-RPC请求示例
2429 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolAnalogInputDomain","params":[0],"id":1}
2430 *
2431 * @par JSON-RPC响应示例
2432 * {"id":1,"jsonrpc":"2.0","result":10}
2433 *
2434 * \endchinese
2435 * \english
2436 * Get the domain of tool analog input.
2437 *
2438 * @param index: Indicates the IO pin, starting from 0.
2439 * For example, 0 means the first pin.
2440 * @return Tool analog input domain
2441 *
2442 * @throws arcs::common_interface::AuboException
2443 *
2444 * @par Python function prototype
2445 * getToolAnalogInputDomain(self: pyaubo_sdk.IoControl, arg0: int) -> int
2446 *
2447 * @par Lua function prototype
2448 * getToolAnalogInputDomain(index: number) -> number
2449 *
2450 * @par Lua example
2451 * num = getToolAnalogInputDomain(0)
2452 *
2453 * @par JSON-RPC request example
2454 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolAnalogInputDomain","params":[0],"id":1}
2455 *
2456 * @par JSON-RPC response example
2457 * {"id":1,"jsonrpc":"2.0","result":10}
2458 *
2459 * \endenglish
2460 */
2462
2463 /**
2464 * \chinese
2465 * 设置标准模拟输出的范围
2466 *
2467 * @param index: 表示IO口的管脚,管脚编号从0开始。
2468 * 例如,0表示第一个管脚。
2469 * @param domain: 输出的范围
2470 *
2471 * @return 成功返回0;失败返回错误码
2472 * AUBO_REQUEST_IGNORE
2473 * AUBO_BUSY
2474 * AUBO_BAD_STATE
2475 * -AUBO_INVL_ARGUMENT
2476 * -AUBO_BAD_STATE
2477 *
2478 * @throws arcs::common_interface::AuboException
2479 *
2480 * @par Python函数原型
2481 * setStandardAnalogOutputDomain(self: pyaubo_sdk.IoControl, arg0: int,
2482 * arg1: int) -> int
2483 *
2484 * @par Lua函数原型
2485 * setStandardAnalogOutputDomain(index: number, domain: number) -> nil
2486 *
2487 * @par Lua示例
2488 * setStandardAnalogOutputDomain(0,1)
2489 *
2490 * @par JSON-RPC请求示例
2491 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardAnalogOutputDomain","params":[0,8],"id":1}
2492 *
2493 * @par JSON-RPC响应示例
2494 * {"id":1,"jsonrpc":"2.0","result":0}
2495 *
2496 * \endchinese
2497 * \english
2498 * Set the range of standard analog output.
2499 *
2500 * @param index: Indicates the IO pin, starting from 0.
2501 * For example, 0 means the first pin.
2502 * @param domain: Output range
2503 *
2504 * @return Returns 0 on success; error code on failure.
2505 * AUBO_REQUEST_IGNORE
2506 * AUBO_BUSY
2507 * AUBO_BAD_STATE
2508 * -AUBO_INVL_ARGUMENT
2509 * -AUBO_BAD_STATE
2510 *
2511 * @throws arcs::common_interface::AuboException
2512 *
2513 * @par Python function prototype
2514 * setStandardAnalogOutputDomain(self: pyaubo_sdk.IoControl, arg0: int,
2515 * arg1: int) -> int
2516 *
2517 * @par Lua function prototype
2518 * setStandardAnalogOutputDomain(index: number, domain: number) -> nil
2519 *
2520 * @par Lua example
2521 * setStandardAnalogOutputDomain(0,1)
2522 *
2523 * @par JSON-RPC request example
2524 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardAnalogOutputDomain","params":[0,8],"id":1}
2525 *
2526 * @par JSON-RPC response example
2527 * {"id":1,"jsonrpc":"2.0","result":0}
2528 *
2529 * \endenglish
2530 */
2531 int setStandardAnalogOutputDomain(int index, int domain);
2532
2533 /**
2534 * \chinese
2535 * 设置工具端模拟输出范围
2536 *
2537 * @param index: 表示IO口的管脚,管脚编号从0开始。
2538 * 例如,0表示第一个管脚。
2539 * @param domain: 输出的范围
2540 *
2541 * @return 成功返回0;失败返回错误码
2542 * AUBO_REQUEST_IGNORE
2543 * AUBO_BUSY
2544 * AUBO_BAD_STATE
2545 * -AUBO_INVL_ARGUMENT
2546 * -AUBO_BAD_STATE
2547 *
2548 * @throws arcs::common_interface::AuboException
2549 *
2550 * @par Python函数原型
2551 * setToolAnalogOutputDomain(self: pyaubo_sdk.IoControl, arg0: int, arg1:
2552 * int) -> int
2553 *
2554 * @par Lua函数原型
2555 * setToolAnalogOutputDomain(index: number, domain: number) -> nil
2556 *
2557 * @par Lua示例
2558 * setToolAnalogOutputDomain(0,1)
2559 *
2560 * \endchinese
2561 * \english
2562 * Set the range of tool analog output.
2563 *
2564 * @param index: Indicates the IO pin, starting from 0.
2565 * For example, 0 means the first pin.
2566 * @param domain: Output range
2567 *
2568 * @return Returns 0 on success; error code on failure.
2569 * AUBO_REQUEST_IGNORE
2570 * AUBO_BUSY
2571 * AUBO_BAD_STATE
2572 * -AUBO_INVL_ARGUMENT
2573 * -AUBO_BAD_STATE
2574 *
2575 * @throws arcs::common_interface::AuboException
2576 *
2577 * @par Python function prototype
2578 * setToolAnalogOutputDomain(self: pyaubo_sdk.IoControl, arg0: int, arg1:
2579 * int) -> int
2580 *
2581 * @par Lua function prototype
2582 * setToolAnalogOutputDomain(index: number, domain: number) -> nil
2583 *
2584 * @par Lua example
2585 * setToolAnalogOutputDomain(0,1)
2586 *
2587 * \endenglish
2588 */
2589 int setToolAnalogOutputDomain(int index, int domain);
2590
2591 /**
2592 * \chinese
2593 * 获取标准模拟输出范围
2594 *
2595 * @param index: 表示IO口的管脚,管脚编号从0开始。
2596 * 例如,0表示第一个管脚。
2597 * @return 标准模拟输出范围
2598 *
2599 * @throws arcs::common_interface::AuboException
2600 *
2601 * @par Python函数原型
2602 * getStandardAnalogOutputDomain(self: pyaubo_sdk.IoControl, arg0: int) ->
2603 * int
2604 *
2605 * @par Lua函数原型
2606 * getStandardAnalogOutputDomain(index: number) -> number
2607 *
2608 * @par Lua示例
2609 * num = getStandardAnalogOutputDomain(0)
2610 *
2611 * @par JSON-RPC请求示例
2612 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardAnalogOutputDomain","params":[0],"id":1}
2613 *
2614 * @par JSON-RPC响应示例
2615 * {"id":1,"jsonrpc":"2.0","result":0}
2616 *
2617 * \endchinese
2618 * \english
2619 * Get the domain of standard analog output.
2620 *
2621 * @param index: Indicates the IO pin, starting from 0.
2622 * For example, 0 means the first pin.
2623 * @return Standard analog output domain
2624 *
2625 * @throws arcs::common_interface::AuboException
2626 *
2627 * @par Python function prototype
2628 * getStandardAnalogOutputDomain(self: pyaubo_sdk.IoControl, arg0: int) ->
2629 * int
2630 *
2631 * @par Lua function prototype
2632 * getStandardAnalogOutputDomain(index: number) -> number
2633 *
2634 * @par Lua example
2635 * num = getStandardAnalogOutputDomain(0)
2636 *
2637 * @par JSON-RPC request example
2638 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardAnalogOutputDomain","params":[0],"id":1}
2639 *
2640 * @par JSON-RPC response example
2641 * {"id":1,"jsonrpc":"2.0","result":0}
2642 *
2643 * \endenglish
2644 */
2646
2647 /**
2648 * \chinese
2649 * 获取工具端模拟输出范围
2650 *
2651 * @param index: 表示IO口的管脚,管脚编号从0开始。
2652 * 例如,0表示第一个管脚。
2653 * @return 工具端模拟输出范围
2654 *
2655 * @throws arcs::common_interface::AuboException
2656 *
2657 * @par Python函数原型
2658 * getToolAnalogOutputDomain(self: pyaubo_sdk.IoControl, arg0: int) -> int
2659 *
2660 * @par Lua函数原型
2661 * getToolAnalogOutputDomain(index: number) -> number
2662 *
2663 * @par Lua示例
2664 * num = getToolAnalogOutputDomain(0)
2665 *
2666 * @par JSON-RPC请求示例
2667 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolAnalogOutputDomain","params":[0],"id":1}
2668 *
2669 * @par JSON-RPC响应示例
2670 * {"id":1,"jsonrpc":"2.0","result":0}
2671 *
2672 * \endchinese
2673 * \english
2674 * Get the domain of tool analog output.
2675 *
2676 * @param index: Indicates the IO pin, starting from 0.
2677 * For example, 0 means the first pin.
2678 * @return Tool analog output domain
2679 *
2680 * @throws arcs::common_interface::AuboException
2681 *
2682 * @par Python function prototype
2683 * getToolAnalogOutputDomain(self: pyaubo_sdk.IoControl, arg0: int) -> int
2684 *
2685 * @par Lua function prototype
2686 * getToolAnalogOutputDomain(index: number) -> number
2687 *
2688 * @par Lua example
2689 * num = getToolAnalogOutputDomain(0)
2690 *
2691 * @par JSON-RPC request example
2692 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolAnalogOutputDomain","params":[0],"id":1}
2693 *
2694 * @par JSON-RPC response example
2695 * {"id":1,"jsonrpc":"2.0","result":0}
2696 *
2697 * \endenglish
2698 */
2700
2701 /**
2702 * \chinese
2703 * 设置工具端电源电压值(单位V)
2704 *
2705 * @param domain: 工具端电源电压值,可选三个档位,分别为0、12和24。\n
2706 * 0表示0V, 12表示12V, 24表示24V。
2707 *
2708 * @return 成功返回0; 失败返回错误码
2709 * AUBO_REQUEST_IGNORE
2710 * AUBO_BUSY
2711 * AUBO_BAD_STATE
2712 * -AUBO_INVL_ARGUMENT
2713 * -AUBO_BAD_STATE
2714 *
2715 * @throws arcs::common_interface::AuboException
2716 *
2717 * @par Python函数原型
2718 * setToolVoltageOutputDomain(self: pyaubo_sdk.IoControl, arg0: int) -> int
2719 *
2720 * @par Lua函数原型
2721 * setToolVoltageOutputDomain(domain: number) -> nil
2722 *
2723 * @par Lua示例
2724 * setToolVoltageOutputDomain(24)
2725 *
2726 * @par JSON-RPC请求示例
2727 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolVoltageOutputDomain","params":[24],"id":1}
2728 *
2729 * @par JSON-RPC响应示例
2730 * {"id":1,"jsonrpc":"2.0","result":0}
2731 *
2732 * \endchinese
2733 * \english
2734 * Set the tool voltage output value (unit: V)
2735 *
2736 * @param domain: Tool voltage output value, can be 0, 12, or 24.\n
2737 * 0 means 0V, 12 means 12V, 24 means 24V.
2738 *
2739 * @return Returns 0 on success; error code on failure.
2740 * AUBO_REQUEST_IGNORE
2741 * AUBO_BUSY
2742 * AUBO_BAD_STATE
2743 * -AUBO_INVL_ARGUMENT
2744 * -AUBO_BAD_STATE
2745 *
2746 * @throws arcs::common_interface::AuboException
2747 *
2748 * @par Python function prototype
2749 * setToolVoltageOutputDomain(self: pyaubo_sdk.IoControl, arg0: int) -> int
2750 *
2751 * @par Lua function prototype
2752 * setToolVoltageOutputDomain(domain: number) -> nil
2753 *
2754 * @par Lua example
2755 * setToolVoltageOutputDomain(24)
2756 *
2757 * @par JSON-RPC request example
2758 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolVoltageOutputDomain","params":[24],"id":1}
2759 *
2760 * @par JSON-RPC response example
2761 * {"id":1,"jsonrpc":"2.0","result":0}
2762 *
2763 * \endenglish
2764 */
2766
2767 /**
2768 * \chinese
2769 * 获取工具端电源电压值(单位V)
2770 *
2771 * @return 工具端电源电压值(单位V)
2772 *
2773 * @throws arcs::common_interface::AuboException
2774 *
2775 * @par Python函数原型
2776 * getToolVoltageOutputDomain(self: pyaubo_sdk.IoControl) -> int
2777 *
2778 * @par Lua函数原型
2779 * getToolVoltageOutputDomain() -> number
2780 *
2781 * @par Lua示例
2782 * num = getToolVoltageOutputDomain()
2783 *
2784 * @par JSON-RPC请求示例
2785 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolVoltageOutputDomain","params":[],"id":1}
2786 *
2787 * @par JSON-RPC响应示例
2788 * {"id":1,"jsonrpc":"2.0","result":0}
2789 *
2790 * \endchinese
2791 * \english
2792 * Get the tool voltage output value (unit: V)
2793 *
2794 * @return Tool voltage output value (unit: V)
2795 *
2796 * @throws arcs::common_interface::AuboException
2797 *
2798 * @par Python function prototype
2799 * getToolVoltageOutputDomain(self: pyaubo_sdk.IoControl) -> int
2800 *
2801 * @par Lua function prototype
2802 * getToolVoltageOutputDomain() -> number
2803 *
2804 * @par Lua example
2805 * num = getToolVoltageOutputDomain()
2806 *
2807 * @par JSON-RPC request example
2808 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolVoltageOutputDomain","params":[],"id":1}
2809 *
2810 * @par JSON-RPC response example
2811 * {"id":1,"jsonrpc":"2.0","result":0}
2812 *
2813 * \endenglish
2814 */
2816
2817 /**
2818 * \chinese
2819 * 设置标准数字输出值
2820 *
2821 * @param index: 表示IO口的管脚,
2822 * @param value: 输出值
2823 * @return 成功返回0;失败返回错误码
2824 * AUBO_REQUEST_IGNORE
2825 * AUBO_BUSY
2826 * AUBO_BAD_STATE
2827 * -AUBO_INVL_ARGUMENT
2828 * -AUBO_BAD_STATE
2829 *
2830 * @throws arcs::common_interface::AuboException
2831 *
2832 * @par Python函数原型
2833 * setStandardDigitalOutput(self: pyaubo_sdk.IoControl, arg0: int, arg1:
2834 * bool) -> int
2835 *
2836 * @par Lua函数原型
2837 * setStandardDigitalOutput(index: number, value: boolean) -> nil
2838 *
2839 * @par Lua示例
2840 * setStandardDigitalOutput(0,true)
2841 *
2842 * @par JSON-RPC请求示例
2843 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardDigitalOutput","params":[0,true],"id":1}
2844 *
2845 * @par JSON-RPC响应示例
2846 * {"id":1,"jsonrpc":"2.0","result":0}
2847 *
2848 * \endchinese
2849 * \english
2850 * Set the value of a standard digital output.
2851 *
2852 * @param index: Indicates the IO pin.
2853 * @param value: Output value.
2854 * @return Returns 0 on success; error code on failure.
2855 * AUBO_REQUEST_IGNORE
2856 * AUBO_BUSY
2857 * AUBO_BAD_STATE
2858 * -AUBO_INVL_ARGUMENT
2859 * -AUBO_BAD_STATE
2860 *
2861 * @throws arcs::common_interface::AuboException
2862 *
2863 * @par Python function prototype
2864 * setStandardDigitalOutput(self: pyaubo_sdk.IoControl, arg0: int, arg1:
2865 * bool) -> int
2866 *
2867 * @par Lua function prototype
2868 * setStandardDigitalOutput(index: number, value: boolean) -> nil
2869 *
2870 * @par Lua example
2871 * setStandardDigitalOutput(0,true)
2872 *
2873 * @par JSON-RPC request example
2874 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardDigitalOutput","params":[0,true],"id":1}
2875 *
2876 * @par JSON-RPC response example
2877 * {"id":1,"jsonrpc":"2.0","result":0}
2878 *
2879 * \endenglish
2880 */
2881 int setStandardDigitalOutput(int index, bool value);
2882
2883 /**
2884 * \chinese
2885 * 设置数字输出脉冲
2886 *
2887 * @param index
2888 * @param value
2889 * @param duration
2890 *
2891 * @return 成功返回0;失败返回错误码
2892 * AUBO_REQUEST_IGNORE
2893 * AUBO_BUSY
2894 * AUBO_BAD_STATE
2895 * -AUBO_INVL_ARGUMENT
2896 * -AUBO_BAD_STATE
2897 *
2898 * @throws arcs::common_interface::AuboException
2899 *
2900 * @par Python函数原型
2901 * setStandardDigitalOutputPulse(self: pyaubo_sdk.IoControl, arg0: int,
2902 * arg1: bool, arg2: float) -> int
2903 *
2904 * @par Lua函数原型
2905 * setStandardDigitalOutputPulse(index: number, value: boolean, duration:
2906 * number) -> nil
2907 *
2908 * @par Lua示例
2909 * setStandardDigitalOutputPulse(0,true,2.5)
2910 *
2911 * @par JSON-RPC请求示例
2912 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardDigitalOutputPulse","params":[0,true,0.5],"id":1}
2913 *
2914 * @par JSON-RPC响应示例
2915 * {"id":1,"jsonrpc":"2.0","result":0}
2916 *
2917 * \endchinese
2918 * \english
2919 * Set digital output pulse.
2920 *
2921 * @param index
2922 * @param value
2923 * @param duration
2924 *
2925 * @return Returns 0 on success; error code on failure.
2926 * AUBO_REQUEST_IGNORE
2927 * AUBO_BUSY
2928 * AUBO_BAD_STATE
2929 * -AUBO_INVL_ARGUMENT
2930 * -AUBO_BAD_STATE
2931 *
2932 * @throws arcs::common_interface::AuboException
2933 *
2934 * @par Python function prototype
2935 * setStandardDigitalOutputPulse(self: pyaubo_sdk.IoControl, arg0: int,
2936 * arg1: bool, arg2: float) -> int
2937 *
2938 * @par Lua function prototype
2939 * setStandardDigitalOutputPulse(index: number, value: boolean, duration:
2940 * number) -> nil
2941 *
2942 * @par Lua example
2943 * setStandardDigitalOutputPulse(0,true,2.5)
2944 *
2945 * @par JSON-RPC request example
2946 * {"jsonrpc":"2.0","method":"rob1.IoControl.setStandardDigitalOutputPulse","params":[0,true,0.5],"id":1}
2947 *
2948 * @par JSON-RPC response example
2949 * {"id":1,"jsonrpc":"2.0","result":0}
2950 *
2951 * \endenglish
2952 */
2953 int setStandardDigitalOutputPulse(int index, bool value, double duration);
2954
2955 /**
2956 * \chinese
2957 * 设置工具端数字输出值
2958 *
2959 * @param index: 表示IO口的管脚,管脚编号从0开始。
2960 * 例如,0表示第一个管脚。
2961 * @param value: 数字输出值
2962 *
2963 * @return 成功返回0;失败返回错误码
2964 * AUBO_REQUEST_IGNORE
2965 * AUBO_BUSY
2966 * AUBO_BAD_STATE
2967 * -AUBO_INVL_ARGUMENT
2968 * -AUBO_BAD_STATE
2969 *
2970 * @throws arcs::common_interface::AuboException
2971 *
2972 * @par Python函数原型
2973 * setToolDigitalOutput(self: pyaubo_sdk.IoControl, arg0: int, arg1: bool)
2974 * -> int
2975 *
2976 * @par Lua函数原型
2977 * setToolDigitalOutput(index: number, value: boolean) -> nil
2978 *
2979 * @par Lua示例
2980 * setToolDigitalOutput(0,true)
2981 *
2982 * @par JSON-RPC请求示例
2983 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolDigitalOutput","params":[0,true],"id":1}
2984 *
2985 * @par JSON-RPC响应示例
2986 * {"id":1,"jsonrpc":"2.0","result":0}
2987 *
2988 * \endchinese
2989 * \english
2990 * Set the value of tool digital output.
2991 *
2992 * @param index: Indicates the IO pin, starting from 0.
2993 * For example, 0 means the first pin.
2994 * @param value: Output value.
2995 *
2996 * @return Returns 0 on success; error code on failure.
2997 * AUBO_REQUEST_IGNORE
2998 * AUBO_BUSY
2999 * AUBO_BAD_STATE
3000 * -AUBO_INVL_ARGUMENT
3001 * -AUBO_BAD_STATE
3002 *
3003 * @throws arcs::common_interface::AuboException
3004 *
3005 * @par Python function prototype
3006 * setToolDigitalOutput(self: pyaubo_sdk.IoControl, arg0: int, arg1: bool)
3007 * -> int
3008 *
3009 * @par Lua function prototype
3010 * setToolDigitalOutput(index: number, value: boolean) -> nil
3011 *
3012 * @par Lua example
3013 * setToolDigitalOutput(0,true)
3014 *
3015 * @par JSON-RPC request example
3016 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolDigitalOutput","params":[0,true],"id":1}
3017 *
3018 * @par JSON-RPC response example
3019 * {"id":1,"jsonrpc":"2.0","result":0}
3020 *
3021 * \endenglish
3022 */
3023 int setToolDigitalOutput(int index, bool value);
3024
3025 /**
3026 * \chinese
3027 * 设置工具端数字输出脉冲
3028 *
3029 * @param index
3030 * @param value
3031 * @param duration
3032 *
3033 * @return 成功返回0;失败返回错误码
3034 * AUBO_REQUEST_IGNORE
3035 * AUBO_BUSY
3036 * AUBO_BAD_STATE
3037 * -AUBO_INVL_ARGUMENT
3038 * -AUBO_BAD_STATE
3039 *
3040 * @throws arcs::common_interface::AuboException
3041 *
3042 * @par Python函数原型
3043 * setToolDigitalOutputPulse(self: pyaubo_sdk.IoControl, arg0: int, arg1:
3044 * bool, arg2: float) -> int
3045 *
3046 * @par Lua函数原型
3047 * setToolDigitalOutputPulse(index: number, value: boolean, duration:
3048 * number) -> nil
3049 *
3050 * @par Lua示例
3051 * setToolDigitalOutputPulse(0,true,2)
3052 *
3053 * @par JSON-RPC请求示例
3054 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolDigitalOutputPulse","params":[0,true,0.5],"id":1}
3055 *
3056 * @par JSON-RPC响应示例
3057 * {"id":1,"jsonrpc":"2.0","result":0}
3058 *
3059 * \endchinese
3060 * \english
3061 * Set tool digital output pulse.
3062 *
3063 * @param index
3064 * @param value
3065 * @param duration
3066 *
3067 * @return Returns 0 on success; error code on failure.
3068 * AUBO_REQUEST_IGNORE
3069 * AUBO_BUSY
3070 * AUBO_BAD_STATE
3071 * -AUBO_INVL_ARGUMENT
3072 * -AUBO_BAD_STATE
3073 *
3074 * @throws arcs::common_interface::AuboException
3075 *
3076 * @par Python function prototype
3077 * setToolDigitalOutputPulse(self: pyaubo_sdk.IoControl, arg0: int, arg1:
3078 * bool, arg2: float) -> int
3079 *
3080 * @par Lua function prototype
3081 * setToolDigitalOutputPulse(index: number, value: boolean, duration:
3082 * number) -> nil
3083 *
3084 * @par Lua example
3085 * setToolDigitalOutputPulse(0,true,2)
3086 *
3087 * @par JSON-RPC request example
3088 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolDigitalOutputPulse","params":[0,true,0.5],"id":1}
3089 *
3090 * @par JSON-RPC response example
3091 * {"id":1,"jsonrpc":"2.0","result":0}
3092 *
3093 * \endenglish
3094 */
3095 int setToolDigitalOutputPulse(int index, bool value, double duration);
3096
3097 /**
3098 * \chinese
3099 * 设置可配置数字输出值
3100 *
3101 * @param index: 表示IO口的管脚,管脚编号从0开始。
3102 * 例如,0表示第一个管脚。
3103 * @param value: 数字输出值
3104 *
3105 * @return 成功返回0;失败返回错误码
3106 * AUBO_REQUEST_IGNORE
3107 * AUBO_BUSY
3108 * AUBO_BAD_STATE
3109 * -AUBO_INVL_ARGUMENT
3110 * -AUBO_BAD_STATE
3111 *
3112 * @throws arcs::common_interface::AuboException
3113 *
3114 * @par Python函数原型
3115 * setConfigurableDigitalOutput(self: pyaubo_sdk.IoControl, arg0: int, arg1:
3116 * bool) -> int
3117 *
3118 * @par Lua函数原型
3119 * setConfigurableDigitalOutput(index: number, value: boolean) -> nil
3120 *
3121 * @par Lua示例
3122 * setConfigurableDigitalOutput(0,true)
3123 *
3124 * @par JSON-RPC请求示例
3125 * {"jsonrpc":"2.0","method":"rob1.IoControl.setConfigurableDigitalOutput","params":[0,true],"id":1}
3126 *
3127 * @par JSON-RPC响应示例
3128 * {"id":1,"jsonrpc":"2.0","result":0}
3129 *
3130 * \endchinese
3131 * \english
3132 * Set the value of configurable digital output.
3133 *
3134 * @param index: Indicates the IO pin, starting from 0.
3135 * For example, 0 means the first pin.
3136 * @param value: Output value.
3137 *
3138 * @return Returns 0 on success; error code on failure.
3139 * AUBO_REQUEST_IGNORE
3140 * AUBO_BUSY
3141 * AUBO_BAD_STATE
3142 * -AUBO_INVL_ARGUMENT
3143 * -AUBO_BAD_STATE
3144 *
3145 * @throws arcs::common_interface::AuboException
3146 *
3147 * @par Python function prototype
3148 * setConfigurableDigitalOutput(self: pyaubo_sdk.IoControl, arg0: int, arg1:
3149 * bool) -> int
3150 *
3151 * @par Lua function prototype
3152 * setConfigurableDigitalOutput(index: number, value: boolean) -> nil
3153 *
3154 * @par Lua example
3155 * setConfigurableDigitalOutput(0,true)
3156 *
3157 * @par JSON-RPC request example
3158 * {"jsonrpc":"2.0","method":"rob1.IoControl.setConfigurableDigitalOutput","params":[0,true],"id":1}
3159 *
3160 * @par JSON-RPC response example
3161 * {"id":1,"jsonrpc":"2.0","result":0}
3162 *
3163 * \endenglish
3164 */
3165 int setConfigurableDigitalOutput(int index, bool value);
3166
3167 /**
3168 * \chinese
3169 * 设置可配置数字输出脉冲
3170 *
3171 * @param index
3172 * @param value
3173 * @param duration
3174 *
3175 * @return 成功返回0;失败返回错误码
3176 * AUBO_REQUEST_IGNORE
3177 * AUBO_BUSY
3178 * AUBO_BAD_STATE
3179 * -AUBO_INVL_ARGUMENT
3180 * -AUBO_BAD_STATE
3181 *
3182 * @throws arcs::common_interface::AuboException
3183 *
3184 * @par Python函数原型
3185 * setConfigurableDigitalOutputPulse(self: pyaubo_sdk.IoControl, arg0: int,
3186 * arg1: bool, arg2: float) -> int
3187 *
3188 * @par Lua函数原型
3189 * setConfigurableDigitalOutputPulse(index: number, value: boolean,
3190 * duration: number) -> nil
3191 *
3192 * @par Lua示例
3193 * setConfigurableDigitalOutputPulse(0,true,2.3)
3194 *
3195 * @par JSON-RPC请求示例
3196 * {"jsonrpc":"2.0","method":"rob1.IoControl.setConfigurableDigitalOutputPulse","params":[0,true,0.5],"id":1}
3197 *
3198 * @par JSON-RPC响应示例
3199 * {"id":1,"jsonrpc":"2.0","result":0}
3200 *
3201 * \endchinese
3202 * \english
3203 * Set configurable digital output pulse.
3204 *
3205 * @param index
3206 * @param value
3207 * @param duration
3208 *
3209 * @return Returns 0 on success; error code on failure.
3210 * AUBO_REQUEST_IGNORE
3211 * AUBO_BUSY
3212 * AUBO_BAD_STATE
3213 * -AUBO_INVL_ARGUMENT
3214 * -AUBO_BAD_STATE
3215 *
3216 * @throws arcs::common_interface::AuboException
3217 *
3218 * @par Python function prototype
3219 * setConfigurableDigitalOutputPulse(self: pyaubo_sdk.IoControl, arg0: int,
3220 * arg1: bool, arg2: float) -> int
3221 *
3222 * @par Lua function prototype
3223 * setConfigurableDigitalOutputPulse(index: number, value: boolean,
3224 * duration: number) -> nil
3225 *
3226 * @par Lua example
3227 * setConfigurableDigitalOutputPulse(0,true,2.3)
3228 *
3229 * @par JSON-RPC request example
3230 * {"jsonrpc":"2.0","method":"rob1.IoControl.setConfigurableDigitalOutputPulse","params":[0,true,0.5],"id":1}
3231 *
3232 * @par JSON-RPC response example
3233 * {"id":1,"jsonrpc":"2.0","result":0}
3234 *
3235 * \endenglish
3236 */
3237 int setConfigurableDigitalOutputPulse(int index, bool value,
3238 double duration);
3239
3240 /**
3241 * \chinese
3242 * 设置标准模拟输出值
3243 *
3244 * @param index: 表示IO口的管脚,管脚编号从0开始。
3245 * 例如,0表示第一个管脚。
3246 * @param value: 模拟输出值
3247 *
3248 * @return 成功返回0;失败返回错误码
3249 * AUBO_REQUEST_IGNORE
3250 * AUBO_BUSY
3251 * AUBO_BAD_STATE
3252 * -AUBO_INVL_ARGUMENT
3253 * -AUBO_BAD_STATE
3254 *
3255 * @throws arcs::common_interface::AuboException
3256 *
3257 * @par Python函数原型
3258 * setStandardAnalogOutput(self: pyaubo_sdk.IoControl, arg0: int, arg1:
3259 * float) -> int
3260 *
3261 * @par Lua函数原型
3262 * setStandardAnalogOutput(index: number, value: number) -> nil
3263 *
3264 * @par Lua示例
3265 * setStandardAnalogOutput(0,5.4)
3266 *
3267 * \endchinese
3268 * \english
3269 * Set the value of standard analog output.
3270 *
3271 * @param index: Indicates the IO pin, starting from 0.
3272 * For example, 0 means the first pin.
3273 * @param value: Output value.
3274 *
3275 * @return Returns 0 on success; error code on failure.
3276 * AUBO_REQUEST_IGNORE
3277 * AUBO_BUSY
3278 * AUBO_BAD_STATE
3279 * -AUBO_INVL_ARGUMENT
3280 * -AUBO_BAD_STATE
3281 *
3282 * @throws arcs::common_interface::AuboException
3283 *
3284 * @par Python function prototype
3285 * setStandardAnalogOutput(self: pyaubo_sdk.IoControl, arg0: int, arg1:
3286 * float) -> int
3287 *
3288 * @par Lua function prototype
3289 * setStandardAnalogOutput(index: number, value: number) -> nil
3290 *
3291 * @par Lua example
3292 * setStandardAnalogOutput(0,5.4)
3293 *
3294 * \endenglish
3295 */
3296 int setStandardAnalogOutput(int index, double value);
3297
3298 /**
3299 * \chinese
3300 * 设置工具端模拟输出值
3301 *
3302 * @param index: 表示IO口的管脚,管脚编号从0开始。
3303 * 例如,0表示第一个管脚。
3304 * @param value: 模拟输出
3305 *
3306 * @return 成功返回0;失败返回错误码
3307 * AUBO_REQUEST_IGNORE
3308 * AUBO_BUSY
3309 * AUBO_BAD_STATE
3310 * -AUBO_INVL_ARGUMENT
3311 * -AUBO_BAD_STATE
3312 *
3313 * @throws arcs::common_interface::AuboException
3314 *
3315 * @par Python函数原型
3316 * setToolAnalogOutput(self: pyaubo_sdk.IoControl, arg0: int, arg1: float)
3317 * -> int
3318 *
3319 * @par Lua函数原型
3320 * setToolAnalogOutput(index: number, value: number) -> nil
3321 *
3322 * @par Lua示例
3323 * setToolAnalogOutput(0,1.2)
3324 *
3325 * @par JSON-RPC请求示例
3326 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolAnalogOutput","params":[0,0.5],"id":1}
3327 *
3328 * @par JSON-RPC响应示例
3329 * {"id":1,"jsonrpc":"2.0","result":13}
3330 *
3331 * \endchinese
3332 * \english
3333 * Set the value of tool analog output.
3334 *
3335 * @param index: Indicates the IO pin, starting from 0.
3336 * For example, 0 means the first pin.
3337 * @param value: Output value.
3338 *
3339 * @return Returns 0 on success; error code on failure.
3340 * AUBO_REQUEST_IGNORE
3341 * AUBO_BUSY
3342 * AUBO_BAD_STATE
3343 * -AUBO_INVL_ARGUMENT
3344 * -AUBO_BAD_STATE
3345 *
3346 * @throws arcs::common_interface::AuboException
3347 *
3348 * @par Python function prototype
3349 * setToolAnalogOutput(self: pyaubo_sdk.IoControl, arg0: int, arg1: float)
3350 * -> int
3351 *
3352 * @par Lua function prototype
3353 * setToolAnalogOutput(index: number, value: number) -> nil
3354 *
3355 * @par Lua example
3356 * setToolAnalogOutput(0,1.2)
3357 *
3358 * @par JSON-RPC request example
3359 * {"jsonrpc":"2.0","method":"rob1.IoControl.setToolAnalogOutput","params":[0,0.5],"id":1}
3360 *
3361 * @par JSON-RPC response example
3362 * {"id":1,"jsonrpc":"2.0","result":13}
3363 *
3364 * \endenglish
3365 */
3366 int setToolAnalogOutput(int index, double value);
3367
3368 /**
3369 * \chinese
3370 * 获取标准数字输入值
3371 *
3372 * @param index: 表示IO口的管脚,管脚编号从0开始。
3373 * 例如,0表示第一个管脚。
3374 *
3375 * @return 高电平返回true; 低电平返回false
3376 *
3377 * @throws arcs::common_interface::AuboException
3378 *
3379 * @par Python函数原型
3380 * getStandardDigitalInput(self: pyaubo_sdk.IoControl, arg0: int) -> bool
3381 *
3382 * @par Lua函数原型
3383 * getStandardDigitalInput(index: number) -> boolean
3384 *
3385 * @par Lua示例
3386 * status = getStandardDigitalInput(0)
3387 *
3388 * @par JSON-RPC请求示例
3389 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalInput","params":[0],"id":1}
3390 *
3391 * @par JSON-RPC响应示例
3392 * {"id":1,"jsonrpc":"2.0","result":false}
3393 *
3394 * \endchinese
3395 * \english
3396 * Get the value of a standard digital input.
3397 *
3398 * @param index: Indicates the IO pin, starting from 0.
3399 * For example, 0 means the first pin.
3400 *
3401 * @return Returns true for high level; false for low level.
3402 *
3403 * @throws arcs::common_interface::AuboException
3404 *
3405 * @par Python function prototype
3406 * getStandardDigitalInput(self: pyaubo_sdk.IoControl, arg0: int) -> bool
3407 *
3408 * @par Lua function prototype
3409 * getStandardDigitalInput(index: number) -> boolean
3410 *
3411 * @par Lua example
3412 * status = getStandardDigitalInput(0)
3413 *
3414 * @par JSON-RPC request example
3415 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalInput","params":[0],"id":1}
3416 *
3417 * @par JSON-RPC response example
3418 * {"id":1,"jsonrpc":"2.0","result":false}
3419 *
3420 * \endenglish
3421 */
3423
3424 /**
3425 * \chinese
3426 * 获取所有的标准数字输入值
3427 *
3428 * @return 所有的标准数字输入值 \n
3429 * 例如,当返回值是2863267846时,换成2进制后是10101010101010100000000000000110。
3430 * 后16位就是所有的标准数字输入状态值,
3431 * 最后一位表示DI00的输入状态值,倒数第二位表示DI01的输入状态值,以此类推。\n
3432 * 1表示高电平状态,0表示低电平状态
3433 *
3434 * @throws arcs::common_interface::AuboException
3435 *
3436 * @par Python函数原型
3437 * getStandardDigitalInputs(self: pyaubo_sdk.IoControl) -> int
3438 *
3439 * @par Lua函数原型
3440 * getStandardDigitalInputs() -> number
3441 *
3442 * @par Lua示例
3443 * num = getStandardDigitalInputs()
3444 *
3445 * @par JSON-RPC请求示例
3446 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalInputs","params":[],"id":1}
3447 *
3448 * @par JSON-RPC响应示例
3449 * {"id":1,"jsonrpc":"2.0","result":0}
3450 *
3451 * \endchinese
3452 * \english
3453 * Get all standard digital input values.
3454 *
3455 * @return All standard digital input values.\n
3456 * For example, if the return value is 2863267846, its binary representation
3457 * is 10101010101010100000000000000110. The lower 16 bits represent the
3458 * status of all standard digital inputs, the least significant bit
3459 * indicates the input status of DI00, the second least significant bit
3460 * indicates DI01, and so on.\n 1 means high level, 0 means low level.
3461 *
3462 * @throws arcs::common_interface::AuboException
3463 *
3464 * @par Python function prototype
3465 * getStandardDigitalInputs(self: pyaubo_sdk.IoControl) -> int
3466 *
3467 * @par Lua function prototype
3468 * getStandardDigitalInputs() -> number
3469 *
3470 * @par Lua example
3471 * num = getStandardDigitalInputs()
3472 *
3473 * @par JSON-RPC request example
3474 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalInputs","params":[],"id":1}
3475 *
3476 * @par JSON-RPC response example
3477 * {"id":1,"jsonrpc":"2.0","result":0}
3478 *
3479 * \endenglish
3480 */
3482
3483 /**
3484 * \chinese
3485 * 获取工具端数字输入值
3486 *
3487 * @param index: 表示IO口的管脚,管脚编号从0开始。
3488 * 例如,0表示第一个管脚。
3489 *
3490 * @return 高电平返回true; 低电平返回false
3491 *
3492 * @throws arcs::common_interface::AuboException
3493 *
3494 * @par Python函数原型
3495 * getToolDigitalInput(self: pyaubo_sdk.IoControl, arg0: int) -> bool
3496 *
3497 * @par Lua函数原型
3498 * getToolDigitalInput(index: number) -> boolean
3499 *
3500 * @par Lua示例
3501 * status = getToolDigitalInput(0)
3502 *
3503 * @par JSON-RPC请求示例
3504 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalInput","params":[0],"id":1}
3505 *
3506 * @par JSON-RPC响应示例
3507 * {"id":1,"jsonrpc":"2.0","result":false}
3508 *
3509 * \endchinese
3510 * \english
3511 * Get the value of tool digital input.
3512 *
3513 * @param index: Indicates the IO pin, starting from 0.
3514 * For example, 0 means the first pin.
3515 *
3516 * @return Returns true for high level; false for low level.
3517 *
3518 * @throws arcs::common_interface::AuboException
3519 *
3520 * @par Python function prototype
3521 * getToolDigitalInput(self: pyaubo_sdk.IoControl, arg0: int) -> bool
3522 *
3523 * @par Lua function prototype
3524 * getToolDigitalInput(index: number) -> boolean
3525 *
3526 * @par Lua example
3527 * status = getToolDigitalInput(0)
3528 *
3529 * @par JSON-RPC request example
3530 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalInput","params":[0],"id":1}
3531 *
3532 * @par JSON-RPC response example
3533 * {"id":1,"jsonrpc":"2.0","result":false}
3534 *
3535 * \endenglish
3536 */
3537 bool getToolDigitalInput(int index);
3538
3539 /**
3540 * \chinese
3541 * 获取所有的工具端数字输入值
3542 *
3543 * @return 返回所有的工具端数字输入值
3544 *
3545 * @throws arcs::common_interface::AuboException
3546 *
3547 * @par Python函数原型
3548 * getToolDigitalInputs(self: pyaubo_sdk.IoControl) -> int
3549 *
3550 * @par Lua函数原型
3551 * getToolDigitalInputs() -> number
3552 *
3553 * @par Lua示例
3554 * num = getToolDigitalInputs()
3555 *
3556 * @par JSON-RPC请求示例
3557 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalInputs","params":[],"id":1}
3558 *
3559 * @par JSON-RPC响应示例
3560 * {"id":1,"jsonrpc":"2.0","result":0}
3561 *
3562 * \endchinese
3563 * \english
3564 * Get all tool digital input values.
3565 *
3566 * @return Returns all tool digital input values.
3567 *
3568 * @throws arcs::common_interface::AuboException
3569 *
3570 * @par Python function prototype
3571 * getToolDigitalInputs(self: pyaubo_sdk.IoControl) -> int
3572 *
3573 * @par Lua function prototype
3574 * getToolDigitalInputs() -> number
3575 *
3576 * @par Lua example
3577 * num = getToolDigitalInputs()
3578 *
3579 * @par JSON-RPC request example
3580 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalInputs","params":[],"id":1}
3581 *
3582 * @par JSON-RPC response example
3583 * {"id":1,"jsonrpc":"2.0","result":0}
3584 *
3585 * \endenglish
3586 */
3588
3589 /**
3590 * \chinese
3591 * 获取可配置数字输入值
3592 *
3593 * @note 可用于获取安全IO的输入值
3594 *
3595 * @param index: 表示IO口的管脚,管脚编号从0开始。
3596 * 例如,0表示第一个管脚。
3597 *
3598 * @return 高电平返回true; 低电平返回false
3599 *
3600 * @throws arcs::common_interface::AuboException
3601 *
3602 * @par Python函数原型
3603 * getConfigurableDigitalInput(self: pyaubo_sdk.IoControl, arg0: int) ->
3604 * bool
3605 *
3606 * @par Lua函数原型
3607 * getConfigurableDigitalInput(index: number) -> boolean
3608 *
3609 * @par Lua示例
3610 * status = getConfigurableDigitalInput(0)
3611 *
3612 * @par JSON-RPC请求示例
3613 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalInput","params":[0],"id":1}
3614 *
3615 * @par JSON-RPC响应示例
3616 * {"id":1,"jsonrpc":"2.0","result":false}
3617 *
3618 * \endchinese
3619 * \english
3620 * Get the value of configurable digital input.
3621 *
3622 * @note Can be used to get the value of safety IO.
3623 *
3624 * @param index: Indicates the IO pin, starting from 0.
3625 * For example, 0 means the first pin.
3626 *
3627 * @return Returns true for high level; false for low level.
3628 *
3629 * @throws arcs::common_interface::AuboException
3630 *
3631 * @par Python function prototype
3632 * getConfigurableDigitalInput(self: pyaubo_sdk.IoControl, arg0: int) ->
3633 * bool
3634 *
3635 * @par Lua function prototype
3636 * getConfigurableDigitalInput(index: number) -> boolean
3637 *
3638 * @par Lua example
3639 * status = getConfigurableDigitalInput(0)
3640 *
3641 * @par JSON-RPC request example
3642 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalInput","params":[0],"id":1}
3643 *
3644 * @par JSON-RPC response example
3645 * {"id":1,"jsonrpc":"2.0","result":false}
3646 *
3647 * \endenglish
3648 */
3650
3651 /**
3652 * \chinese
3653 * 获取所有的可配置数字输入值
3654 *
3655 * @note 可用于获取安全IO的输入值
3656 *
3657 * @return 所有的可配置数字输入值\n
3658 * 例如,当返回值是2863267846时,换成2进制后是10101010101010100000000000000110。
3659 * 后16位就是所有的输入状态值,
3660 * 最后一位表示管脚0的输入状态值,倒数第二位表示管脚1的输入状态值,以此类推。\n
3661 * 1表示高电平状态,0表示低电平状态
3662 *
3663 * @throws arcs::common_interface::AuboException
3664 *
3665 * @par Python函数原型
3666 * getConfigurableDigitalInputs(self: pyaubo_sdk.IoControl) -> int
3667 *
3668 * @par Lua函数原型
3669 * getConfigurableDigitalInputs() -> number
3670 *
3671 * @par Lua示例
3672 * num = getConfigurableDigitalInputs()
3673 *
3674 * @par JSON-RPC请求示例
3675 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalInputs","params":[],"id":1}
3676 *
3677 * @par JSON-RPC响应示例
3678 * {"id":1,"jsonrpc":"2.0","result":0}
3679 *
3680 * \endchinese
3681 * \english
3682 * Get all configurable digital input values.
3683 *
3684 * @note Can be used to get the value of safety IO.
3685 *
3686 * @return All configurable digital input values.\n
3687 * For example, if the return value is 2863267846, its binary representation
3688 * is 10101010101010100000000000000110. The lower 16 bits represent the
3689 * status of all input pins, the least significant bit indicates the input
3690 * status of pin 0, the second least significant bit indicates pin 1, and so
3691 * on.\n 1 means high level, 0 means low level.
3692 *
3693 * @throws arcs::common_interface::AuboException
3694 *
3695 * @par Python function prototype
3696 * getConfigurableDigitalInputs(self: pyaubo_sdk.IoControl) -> int
3697 *
3698 * @par Lua function prototype
3699 * getConfigurableDigitalInputs() -> number
3700 *
3701 * @par Lua example
3702 * num = getConfigurableDigitalInputs()
3703 *
3704 * @par JSON-RPC request example
3705 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalInputs","params":[],"id":1}
3706 *
3707 * @par JSON-RPC response example
3708 * {"id":1,"jsonrpc":"2.0","result":0}
3709 *
3710 * \endenglish
3711 */
3713
3714 /**
3715 * \chinese
3716 * 获取标准数字输出值
3717 *
3718 * @param index: 表示IO口的管脚,管脚编号从0开始。
3719 * 例如,0表示第一个管脚。
3720 *
3721 * @return 高电平返回true; 低电平返回false
3722 *
3723 * @throws arcs::common_interface::AuboException
3724 *
3725 * @par Python函数原型
3726 * getStandardDigitalOutput(self: pyaubo_sdk.IoControl, arg0: int) -> bool
3727 *
3728 * @par Lua函数原型
3729 * getStandardDigitalOutput(index: number) -> boolean
3730 *
3731 * @par Lua示例
3732 * status = getStandardDigitalOutput(0)
3733 *
3734 * @par JSON-RPC请求示例
3735 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalOutput","params":[0],"id":1}
3736 *
3737 * @par JSON-RPC响应示例
3738 * {"id":1,"jsonrpc":"2.0","result":true}
3739 *
3740 * \endchinese
3741 * \english
3742 * Get the value of a standard digital output.
3743 *
3744 * @param index: Indicates the IO pin, starting from 0.
3745 * For example, 0 means the first pin.
3746 *
3747 * @return Returns true for high level; false for low level.
3748 *
3749 * @throws arcs::common_interface::AuboException
3750 *
3751 * @par Python function prototype
3752 * getStandardDigitalOutput(self: pyaubo_sdk.IoControl, arg0: int) -> bool
3753 *
3754 * @par Lua function prototype
3755 * getStandardDigitalOutput(index: number) -> boolean
3756 *
3757 * @par Lua example
3758 * status = getStandardDigitalOutput(0)
3759 *
3760 * @par JSON-RPC request example
3761 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalOutput","params":[0],"id":1}
3762 *
3763 * @par JSON-RPC response example
3764 * {"id":1,"jsonrpc":"2.0","result":true}
3765 *
3766 * \endenglish
3767 */
3769
3770 /**
3771 * \chinese
3772 * 获取所有的标准数字输出值
3773 *
3774 * @return 所有的标准数字输出值 \n
3775 * 例如,当返回值是2863267846时,换成2进制后是10101010101010100000000000000110。
3776 * 后16位就是所有的标准数字输出状态值,
3777 * 最后一位表示DI00的输出状态值,倒数第二位表示DI01的输出状态值,以此类推。\n
3778 * 1表示高电平状态,0表示低电平状态.
3779 *
3780 * @throws arcs::common_interface::AuboException
3781 *
3782 * @par Python函数原型
3783 * getStandardDigitalOutputs(self: pyaubo_sdk.IoControl) -> int
3784 *
3785 * @par Lua函数原型
3786 * getStandardDigitalOutputs() -> number
3787 *
3788 * @par Lua示例
3789 * num = getStandardDigitalOutputs()
3790 *
3791 * @par JSON-RPC请求示例
3792 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalOutputs","params":[],"id":1}
3793 *
3794 * @par JSON-RPC响应示例
3795 * {"id":1,"jsonrpc":"2.0","result":69}
3796 *
3797 * \endchinese
3798 * \english
3799 * Get all standard digital output values.
3800 *
3801 * @return All standard digital output values.\n
3802 * For example, if the return value is 2863267846, its binary representation
3803 * is 10101010101010100000000000000110. The lower 16 bits represent the
3804 * status of all standard digital outputs, the least significant bit
3805 * indicates the output status of DO00, the second least significant bit
3806 * indicates DO01, and so on.\n 1 means high level, 0 means low level.
3807 *
3808 * @throws arcs::common_interface::AuboException
3809 *
3810 * @par Python function prototype
3811 * getStandardDigitalOutputs(self: pyaubo_sdk.IoControl) -> int
3812 *
3813 * @par Lua function prototype
3814 * getStandardDigitalOutputs() -> number
3815 *
3816 * @par Lua example
3817 * num = getStandardDigitalOutputs()
3818 *
3819 * @par JSON-RPC request example
3820 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardDigitalOutputs","params":[],"id":1}
3821 *
3822 * @par JSON-RPC response example
3823 * {"id":1,"jsonrpc":"2.0","result":69}
3824 *
3825 * \endenglish
3826 */
3828
3829 /**
3830 * \chinese
3831 * 获取工具端数字输出值
3832 *
3833 * @param index: 表示IO口的管脚,管脚编号从0开始。
3834 * 例如,0表示第一个管脚。
3835 *
3836 * @return 高电平返回true; 低电平返回false
3837 *
3838 * @throws arcs::common_interface::AuboException
3839 *
3840 * @par Python函数原型
3841 * getToolDigitalOutput(self: pyaubo_sdk.IoControl, arg0: int) -> bool
3842 *
3843 * @par Lua函数原型
3844 * getToolDigitalOutput(index: number) -> boolean
3845 *
3846 * @par Lua示例
3847 * status = getToolDigitalOutput(0)
3848 *
3849 * @par JSON-RPC请求示例
3850 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalOutput","params":[0],"id":1}
3851 *
3852 * @par JSON-RPC响应示例
3853 * {"id":1,"jsonrpc":"2.0","result":false}
3854 *
3855 * \endchinese
3856 * \english
3857 * Get the value of tool digital output.
3858 *
3859 * @param index: Indicates the IO pin, starting from 0.
3860 * For example, 0 means the first pin.
3861 *
3862 * @return Returns true for high level; false for low level.
3863 *
3864 * @throws arcs::common_interface::AuboException
3865 *
3866 * @par Python function prototype
3867 * getToolDigitalOutput(self: pyaubo_sdk.IoControl, arg0: int) -> bool
3868 *
3869 * @par Lua function prototype
3870 * getToolDigitalOutput(index: number) -> boolean
3871 *
3872 * @par Lua example
3873 * status = getToolDigitalOutput(0)
3874 *
3875 * @par JSON-RPC request example
3876 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalOutput","params":[0],"id":1}
3877 *
3878 * @par JSON-RPC response example
3879 * {"id":1,"jsonrpc":"2.0","result":false}
3880 *
3881 * \endenglish
3882 */
3883 bool getToolDigitalOutput(int index);
3884
3885 /**
3886 * \chinese
3887 * 获取所有的工具端数字输出值
3888 *
3889 * @return 所有的工具端数字输出值
3890 *
3891 * @throws arcs::common_interface::AuboException
3892 *
3893 * @par Python函数原型
3894 * getToolDigitalOutputs(self: pyaubo_sdk.IoControl) -> int
3895 *
3896 * @par Lua函数原型
3897 * getToolDigitalOutputs() -> number
3898 *
3899 * @par Lua示例
3900 * num = getToolDigitalOutputs()
3901 *
3902 * @par JSON-RPC请求示例
3903 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalOutputs","params":[],"id":1}
3904 *
3905 * @par JSON-RPC响应示例
3906 * {"id":1,"jsonrpc":"2.0","result":9}
3907 *
3908 * \endchinese
3909 * \english
3910 * Get all tool digital output values.
3911 *
3912 * @return All tool digital output values.
3913 *
3914 * @throws arcs::common_interface::AuboException
3915 *
3916 * @par Python function prototype
3917 * getToolDigitalOutputs(self: pyaubo_sdk.IoControl) -> int
3918 *
3919 * @par Lua function prototype
3920 * getToolDigitalOutputs() -> number
3921 *
3922 * @par Lua example
3923 * num = getToolDigitalOutputs()
3924 *
3925 * @par JSON-RPC request example
3926 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolDigitalOutputs","params":[],"id":1}
3927 *
3928 * @par JSON-RPC response example
3929 * {"id":1,"jsonrpc":"2.0","result":9}
3930 *
3931 * \endenglish
3932 */
3934
3935 /**
3936 * \chinese
3937 * 获取可配值数字输出值
3938 *
3939 * @note 可用于获取安全IO的输出值
3940 *
3941 * @param index: 表示IO口的管脚,管脚编号从0开始。
3942 * 例如,0表示第一个管脚。
3943 *
3944 * @return 高电平返回true; 低电平返回false
3945 *
3946 * @throws arcs::common_interface::AuboException
3947 *
3948 * @par Python函数原型
3949 * getConfigurableDigitalOutput(self: pyaubo_sdk.IoControl, arg0: int) ->
3950 * bool
3951 *
3952 * @par Lua函数原型
3953 * getConfigurableDigitalOutput(index: number) -> boolean
3954 *
3955 * @par Lua示例
3956 * status = getConfigurableDigitalOutput(0)
3957 *
3958 * @par JSON-RPC请求示例
3959 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalOutput","params":[0],"id":1}
3960 *
3961 * @par JSON-RPC响应示例
3962 * {"id":1,"jsonrpc":"2.0","result":true}
3963 *
3964 * \endchinese
3965 * \english
3966 * Get the value of configurable digital output.
3967 *
3968 * @note Can be used to get the value of safety IO.
3969 *
3970 * @param index: Indicates the IO pin, starting from 0.
3971 * For example, 0 means the first pin.
3972 *
3973 * @return Returns true for high level; false for low level.
3974 *
3975 * @throws arcs::common_interface::AuboException
3976 *
3977 * @par Python function prototype
3978 * getConfigurableDigitalOutput(self: pyaubo_sdk.IoControl, arg0: int) ->
3979 * bool
3980 *
3981 * @par Lua function prototype
3982 * getConfigurableDigitalOutput(index: number) -> boolean
3983 *
3984 * @par Lua example
3985 * status = getConfigurableDigitalOutput(0)
3986 *
3987 * @par JSON-RPC request example
3988 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalOutput","params":[0],"id":1}
3989 *
3990 * @par JSON-RPC response example
3991 * {"id":1,"jsonrpc":"2.0","result":true}
3992 *
3993 * \endenglish
3994 */
3996
3997 /**
3998 * \chinese
3999 * 获取所有的可配值数字输出值
4000 *
4001 * @note 可用于获取安全IO的输出值
4002 *
4003 * @return 所有的可配值数字输出\n
4004 * 例如,当返回值是2863267846时,换成2进制后是10101010101010100000000000000110。
4005 * 后16位就是所有的输出值,
4006 * 最后一位表示管脚0的输出状态值,倒数第二位表示管脚1的输出状态值,以此类推。\n
4007 * 1表示高电平状态,0表示低电平状态.
4008 *
4009 * @throws arcs::common_interface::AuboException
4010 *
4011 * @par Python函数原型
4012 * getConfigurableDigitalOutputs(self: pyaubo_sdk.IoControl) -> int
4013 *
4014 * @par Lua函数原型
4015 * getConfigurableDigitalOutputs() -> number
4016 *
4017 * @par Lua示例
4018 * num = getConfigurableDigitalOutputs()
4019 *
4020 * @par JSON-RPC请求示例
4021 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalOutputs","params":[],"id":1}
4022 *
4023 * @par JSON-RPC响应示例
4024 * {"id":1,"jsonrpc":"2.0","result":1}
4025 *
4026 * \endchinese
4027 * \english
4028 * Get all configurable digital output values.
4029 *
4030 * @note Can be used to get the value of safety IO.
4031 *
4032 * @return All configurable digital output values.\n
4033 * For example, if the return value is 2863267846, its binary representation
4034 * is 10101010101010100000000000000110. The lower 16 bits represent the
4035 * status of all output pins, the least significant bit indicates the output
4036 * status of pin 0, the second least significant bit indicates pin 1, and so
4037 * on.\n 1 means high level, 0 means low level.
4038 *
4039 * @throws arcs::common_interface::AuboException
4040 *
4041 * @par Python function prototype
4042 * getConfigurableDigitalOutputs(self: pyaubo_sdk.IoControl) -> int
4043 *
4044 * @par Lua function prototype
4045 * getConfigurableDigitalOutputs() -> number
4046 *
4047 * @par Lua example
4048 * num = getConfigurableDigitalOutputs()
4049 *
4050 * @par JSON-RPC request example
4051 * {"jsonrpc":"2.0","method":"rob1.IoControl.getConfigurableDigitalOutputs","params":[],"id":1}
4052 *
4053 * @par JSON-RPC response example
4054 * {"id":1,"jsonrpc":"2.0","result":1}
4055 *
4056 * \endenglish
4057 */
4059
4060 /**
4061 * \chinese
4062 * 获取标准模拟输入值
4063 *
4064 * @param index: 表示IO口的管脚,管脚编号从0开始。
4065 * 例如,0表示第一个管脚。
4066 *
4067 * @return 标准模拟输入值
4068 *
4069 * @throws arcs::common_interface::AuboException
4070 *
4071 * @par Python函数原型
4072 * getStandardAnalogInput(self: pyaubo_sdk.IoControl, arg0: int) -> float
4073 *
4074 * @par Lua函数原型
4075 * getStandardAnalogInput(index: number) -> number
4076 *
4077 * @par Lua示例
4078 * getStandardAnalogInput(0)
4079 *
4080 * @par JSON-RPC请求示例
4081 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardAnalogInput","params":[0],"id":1}
4082 *
4083 * @par JSON-RPC响应示例
4084 * {"id":1,"jsonrpc":"2.0","result":0.0}
4085 *
4086 * \endchinese
4087 * \english
4088 * Get the value of standard analog input.
4089 *
4090 * @param index: Indicates the IO pin, starting from 0.
4091 * For example, 0 means the first pin.
4092 *
4093 * @return Standard analog input value.
4094 *
4095 * @throws arcs::common_interface::AuboException
4096 *
4097 * @par Python function prototype
4098 * getStandardAnalogInput(self: pyaubo_sdk.IoControl, arg0: int) -> float
4099 *
4100 * @par Lua function prototype
4101 * getStandardAnalogInput(index: number) -> number
4102 *
4103 * @par Lua example
4104 * getStandardAnalogInput(0)
4105 *
4106 * @par JSON-RPC request example
4107 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardAnalogInput","params":[0],"id":1}
4108 *
4109 * @par JSON-RPC response example
4110 * {"id":1,"jsonrpc":"2.0","result":0.0}
4111 *
4112 * \endenglish
4113 */
4114 double getStandardAnalogInput(int index);
4115
4116 /**
4117 * \chinese
4118 * 获取工具端模拟输入值
4119 *
4120 * @param index: 表示IO口的管脚,管脚编号从0开始。
4121 * 例如,0表示第一个管脚。
4122 *
4123 * @return 工具端模拟输入值
4124 *
4125 * @throws arcs::common_interface::AuboException
4126 *
4127 * @par Python函数原型
4128 * getToolAnalogInput(self: pyaubo_sdk.IoControl, arg0: int) -> float
4129 *
4130 * @par Lua函数原型
4131 * getToolAnalogInput(index: number) -> number
4132 *
4133 * @par Lua示例
4134 * num = getToolAnalogInput(0)
4135 *
4136 * @par JSON-RPC请求示例
4137 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolAnalogInput","params":[0],"id":1}
4138 *
4139 * @par JSON-RPC响应示例
4140 * {"id":1,"jsonrpc":"2.0","result":0.0}
4141 *
4142 * \endchinese
4143 * \english
4144 * Get the value of tool analog input.
4145 *
4146 * @param index: Indicates the IO pin, starting from 0.
4147 * For example, 0 means the first pin.
4148 *
4149 * @return Tool analog input value.
4150 *
4151 * @throws arcs::common_interface::AuboException
4152 *
4153 * @par Python function prototype
4154 * getToolAnalogInput(self: pyaubo_sdk.IoControl, arg0: int) -> float
4155 *
4156 * @par Lua function prototype
4157 * getToolAnalogInput(index: number) -> number
4158 *
4159 * @par Lua example
4160 * num = getToolAnalogInput(0)
4161 *
4162 * @par JSON-RPC request example
4163 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolAnalogInput","params":[0],"id":1}
4164 *
4165 * @par JSON-RPC response example
4166 * {"id":1,"jsonrpc":"2.0","result":0.0}
4167 *
4168 * \endenglish
4169 */
4170 double getToolAnalogInput(int index);
4171
4172 /**
4173 * \chinese
4174 * 获取标准模拟输出值
4175 *
4176 * @param index: 表示IO口的管脚,管脚编号从0开始。
4177 * 例如,0表示第一个管脚。
4178 *
4179 * @return 标准模拟输出值
4180 *
4181 * @throws arcs::common_interface::AuboException
4182 *
4183 * @par Python函数原型
4184 * getStandardAnalogOutput(self: pyaubo_sdk.IoControl, arg0: int) -> float
4185 *
4186 * @par Lua函数原型
4187 * getStandardAnalogOutput(index: number) -> number
4188 *
4189 * @par Lua示例
4190 * num = getStandardAnalogOutput(0)
4191 *
4192 * @par JSON-RPC请求示例
4193 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardAnalogOutput","params":[0],"id":1}
4194 *
4195 * @par JSON-RPC响应示例
4196 * {"id":1,"jsonrpc":"2.0","result":0.0}
4197 *
4198 * \endchinese
4199 * \english
4200 * Get the value of standard analog output.
4201 *
4202 * @param index: Indicates the IO pin, starting from 0.
4203 * For example, 0 means the first pin.
4204 *
4205 * @return Standard analog output value.
4206 *
4207 * @throws arcs::common_interface::AuboException
4208 *
4209 * @par Python function prototype
4210 * getStandardAnalogOutput(self: pyaubo_sdk.IoControl, arg0: int) -> float
4211 *
4212 * @par Lua function prototype
4213 * getStandardAnalogOutput(index: number) -> number
4214 *
4215 * @par Lua example
4216 * num = getStandardAnalogOutput(0)
4217 *
4218 * @par JSON-RPC request example
4219 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStandardAnalogOutput","params":[0],"id":1}
4220 *
4221 * @par JSON-RPC response example
4222 * {"id":1,"jsonrpc":"2.0","result":0.0}
4223 *
4224 * \endenglish
4225 */
4226 double getStandardAnalogOutput(int index);
4227
4228 /**
4229 * \chinese
4230 * 获取工具端模拟输出值
4231 *
4232 * @param index: 表示IO口的管脚,管脚编号从0开始。
4233 * 例如,0表示第一个管脚。
4234 *
4235 * @return 工具端模拟输出值
4236 *
4237 * @throws arcs::common_interface::AuboException
4238 *
4239 * @par Python函数原型
4240 * getToolAnalogOutput(self: pyaubo_sdk.IoControl, arg0: int) -> float
4241 *
4242 * @par Lua函数原型
4243 * getToolAnalogOutput(index: number) -> number
4244 *
4245 * @par Lua示例
4246 * num = getToolAnalogOutput(0)
4247 *
4248 * @par JSON-RPC请求示例
4249 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolAnalogOutput","params":[0],"id":1}
4250 *
4251 * @par JSON-RPC响应示例
4252 * {"id":1,"jsonrpc":"2.0","result":0.0}
4253 *
4254 * \endchinese
4255 * \english
4256 * Get the value of tool analog output.
4257 *
4258 * @param index: Indicates the IO pin, starting from 0.
4259 * For example, 0 means the first pin.
4260 *
4261 * @return Tool analog output value.
4262 *
4263 * @throws arcs::common_interface::AuboException
4264 *
4265 * @par Python function prototype
4266 * getToolAnalogOutput(self: pyaubo_sdk.IoControl, arg0: int) -> float
4267 *
4268 * @par Lua function prototype
4269 * getToolAnalogOutput(index: number) -> number
4270 *
4271 * @par Lua example
4272 * num = getToolAnalogOutput(0)
4273 *
4274 * @par JSON-RPC request example
4275 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolAnalogOutput","params":[0],"id":1}
4276 *
4277 * @par JSON-RPC response example
4278 * {"id":1,"jsonrpc":"2.0","result":0.0}
4279 *
4280 * \endenglish
4281 */
4282 double getToolAnalogOutput(int index);
4283
4284 /**
4285 * \chinese
4286 * 获取联动输入数量
4287 *
4288 * @return 联动输入数量
4289 *
4290 * @throws arcs::common_interface::AuboException
4291 *
4292 * @par Python函数原型
4293 * getStaticLinkInputNum(self: pyaubo_sdk.IoControl) -> int
4294 *
4295 * @par Lua函数原型
4296 * getStaticLinkInputNum() -> number
4297 *
4298 * @par Lua示例
4299 * num = getStaticLinkInputNum()
4300 *
4301 * @par JSON-RPC请求示例
4302 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStaticLinkInputNum","params":[],"id":1}
4303 *
4304 * @par JSON-RPC响应示例
4305 * {"id":1,"jsonrpc":"2.0","result":8}
4306 *
4307 * \endchinese
4308 * \english
4309 * Get the number of static link inputs.
4310 *
4311 * @return Number of static link inputs.
4312 *
4313 * @throws arcs::common_interface::AuboException
4314 *
4315 * @par Python function prototype
4316 * getStaticLinkInputNum(self: pyaubo_sdk.IoControl) -> int
4317 *
4318 * @par Lua function prototype
4319 * getStaticLinkInputNum() -> number
4320 *
4321 * @par Lua example
4322 * num = getStaticLinkInputNum()
4323 *
4324 * @par JSON-RPC request example
4325 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStaticLinkInputNum","params":[],"id":1}
4326 *
4327 * @par JSON-RPC response example
4328 * {"id":1,"jsonrpc":"2.0","result":8}
4329 *
4330 * \endenglish
4331 */
4333
4334 /**
4335 * \chinese
4336 * 获取联动输出数量
4337 *
4338 * @return 联动输出数量
4339 *
4340 * @throws arcs::common_interface::AuboException
4341 *
4342 * @par Python函数原型
4343 * getStaticLinkOutputNum(self: pyaubo_sdk.IoControl) -> int
4344 *
4345 * @par Lua函数原型
4346 * getStaticLinkOutputNum() -> number
4347 *
4348 * @par Lua示例
4349 * num = getStaticLinkOutputNum()
4350 *
4351 * @par JSON-RPC请求示例
4352 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStaticLinkOutputNum","params":[],"id":1}
4353 *
4354 * @par JSON-RPC响应示例
4355 * {"id":1,"jsonrpc":"2.0","result":0}
4356 *
4357 * \endchinese
4358 * \english
4359 * Get the number of static link outputs.
4360 *
4361 * @return Number of static link outputs.
4362 *
4363 * @throws arcs::common_interface::AuboException
4364 *
4365 * @par Python function prototype
4366 * getStaticLinkOutputNum(self: pyaubo_sdk.IoControl) -> int
4367 *
4368 * @par Lua function prototype
4369 * getStaticLinkOutputNum() -> number
4370 *
4371 * @par Lua example
4372 * num = getStaticLinkOutputNum()
4373 *
4374 * @par JSON-RPC request example
4375 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStaticLinkOutputNum","params":[],"id":1}
4376 *
4377 * @par JSON-RPC response example
4378 * {"id":1,"jsonrpc":"2.0","result":0}
4379 *
4380 * \endenglish
4381 */
4383
4384 /**
4385 * \chinese
4386 * 获取所有的联动输入值
4387 *
4388 * @return 所有的联动输入值\n
4389 * 例如,当返回值是2863267846时,换成2进制后是10101010101010100000000000000110。
4390 * 后16位就是所有的联动输入状态值,
4391 * 最后一位表示管脚0的输入状态值,倒数第二位表示管脚1的输入状态值,以此类推。\n
4392 * 1表示高电平状态,0表示低电平状态.
4393 *
4394 * @throws arcs::common_interface::AuboException
4395 *
4396 * @par Python函数原型
4397 * getStaticLinkInputs(self: pyaubo_sdk.IoControl) -> int
4398 *
4399 * @par Lua函数原型
4400 * getStaticLinkInputs() -> number
4401 *
4402 * @par Lua示例
4403 * num = getStaticLinkInputs()
4404 *
4405 * @par JSON-RPC请求示例
4406 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStaticLinkInputs","params":[],"id":1}
4407 *
4408 * @par JSON-RPC响应示例
4409 * {"id":1,"jsonrpc":"2.0","result":0}
4410 *
4411 * \endchinese
4412 * \english
4413 * Get all static link input values.
4414 *
4415 * @return All static link input values.\n
4416 * For example, if the return value is 2863267846, its binary representation
4417 * is 10101010101010100000000000000110. The lower 16 bits represent the
4418 * status of all static link inputs, the least significant bit indicates the
4419 * input status of pin 0, the second least significant bit indicates pin 1,
4420 * and so on.\n 1 means high level, 0 means low level.
4421 *
4422 * @throws arcs::common_interface::AuboException
4423 *
4424 * @par Python function prototype
4425 * getStaticLinkInputs(self: pyaubo_sdk.IoControl) -> int
4426 *
4427 * @par Lua function prototype
4428 * getStaticLinkInputs() -> number
4429 *
4430 * @par Lua example
4431 * num = getStaticLinkInputs()
4432 *
4433 * @par JSON-RPC request example
4434 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStaticLinkInputs","params":[],"id":1}
4435 *
4436 * @par JSON-RPC response example
4437 * {"id":1,"jsonrpc":"2.0","result":0}
4438 *
4439 * \endenglish
4440 */
4442
4443 /**
4444 * \chinese
4445 * 获取所有的联动输出值
4446 *
4447 * @return 返回所有的联动输出值 \n
4448 * 例如,当返回值是2863267846时,换成2进制后是10101010101010100000000000000110。
4449 * 后16位就是所有的联动输出状态值,
4450 * 最后一位表示管脚0的输出状态值,倒数第二位表示管脚1的输出状态值,以此类推。\n
4451 * 1表示高电平状态,0表示低电平状态.
4452 *
4453 * @throws arcs::common_interface::AuboException
4454 *
4455 * @par Python函数原型
4456 * getStaticLinkOutputs(self: pyaubo_sdk.IoControl) -> int
4457 *
4458 * @par Lua函数原型
4459 * getStaticLinkOutputs() -> number
4460 *
4461 * @par Lua示例
4462 * num = getStaticLinkOutputs()
4463 *
4464 * @par JSON-RPC请求示例
4465 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStaticLinkOutputs","params":[],"id":1}
4466 *
4467 * @par JSON-RPC响应示例
4468 * {"id":1,"jsonrpc":"2.0","result":0}
4469 *
4470 * \endchinese
4471 * \english
4472 * Get all static link output values.
4473 *
4474 * @return Returns all static link output values.\n
4475 * For example, if the return value is 2863267846, its binary representation
4476 * is 10101010101010100000000000000110. The lower 16 bits represent the
4477 * status of all static link outputs, the least significant bit indicates
4478 * the output status of pin 0, the second least significant bit indicates
4479 * pin 1, and so on.\n 1 means high level, 0 means low level.
4480 *
4481 * @throws arcs::common_interface::AuboException
4482 *
4483 * @par Python function prototype
4484 * getStaticLinkOutputs(self: pyaubo_sdk.IoControl) -> int
4485 *
4486 * @par Lua function prototype
4487 * getStaticLinkOutputs() -> number
4488 *
4489 * @par Lua example
4490 * num = getStaticLinkOutputs()
4491 *
4492 * @par JSON-RPC request example
4493 * {"jsonrpc":"2.0","method":"rob1.IoControl.getStaticLinkOutputs","params":[],"id":1}
4494 *
4495 * @par JSON-RPC response example
4496 * {"id":1,"jsonrpc":"2.0","result":0}
4497 *
4498 * \endenglish
4499 */
4501
4502 /**
4503 * \chinese
4504 * 机器人是否配置了编码器
4505 * 集成编码器的编号为 0
4506 *
4507 * @return 机器人配置编码器返回 true, 反之返回 false
4508 *
4509 * @throws arcs::common_interface::AuboException
4510 *
4511 * @par JSON-RPC请求示例
4512 * {"jsonrpc":"2.0","method":"rob1.IoControl.hasEncoderSensor","params":[],"id":1}
4513 *
4514 * @par JSON-RPC响应示例
4515 * {"id":1,"jsonrpc":"2.0","result":true}
4516 *
4517 * \endchinese
4518 * \english
4519 * Whether the robot is equipped with an encoder.
4520 * The integrated encoder number is 0.
4521 *
4522 * @return Returns true if the robot is equipped with an encoder, otherwise
4523 * false.
4524 *
4525 * @throws arcs::common_interface::AuboException
4526 *
4527 * @par JSON-RPC request example
4528 * {"jsonrpc":"2.0","method":"rob1.IoControl.hasEncoderSensor","params":[],"id":1}
4529 *
4530 * @par JSON-RPC response example
4531 * {"id":1,"jsonrpc":"2.0","result":true}
4532 *
4533 * \endenglish
4534 */
4536 /**
4537 * \chinese
4538 * 设置集成编码器的解码方式
4539 *
4540 * @param type
4541 * 0-禁用编码器
4542 * 1-AB正交
4543 * 2-AB正交+Z
4544 * 3-AB差分正交
4545 * 4-AB差分正交+Z差分
4546 *
4547 * @param range_id
4548 * 0 表示32位有符号编码器,范围为 [-2147483648, 2147483647]
4549 * 1 表示8位无符号编码器,范围为 [0, 255]
4550 * 2 表示16位无符号编码器,范围为 [0, 65535]
4551 * 3 表示24位无符号编码器,范围为 [0, 16777215]
4552 * 4 表示32位无符号编码器,范围为 [0, 4294967295]
4553 *
4554 * @return 成功返回0;失败返回错误码
4555 * AUBO_NO_ACCESS
4556 * AUBO_BUSY
4557 * AUBO_BAD_STATE
4558 * -AUBO_INVL_ARGUMENT
4559 * -AUBO_BAD_STATE
4560 *
4561 * @throws arcs::common_interface::AuboException
4562 * \endchinese
4563 * \english
4564 * Set the decoding method of the integrated encoder.
4565 *
4566 * @param type
4567 * 0 - Disable encoder
4568 * 1 - AB quadrature
4569 * 2 - AB quadrature + Z
4570 * 3 - AB differential quadrature
4571 * 4 - AB differential quadrature + Z differential
4572 *
4573 * @param range_id
4574 * 0 is a 32-bit signed encoder, range [-2147483648, 2147483647]
4575 * 1 is an 8-bit unsigned encoder, range [0, 255]
4576 * 2 is a 16-bit unsigned encoder, range [0, 65535]
4577 * 3 is a 24-bit unsigned encoder, range [0, 16777215]
4578 * 4 is a 32-bit unsigned encoder, range [0, 4294967295]
4579 *
4580 * @return Returns 0 on success; error code on failure.
4581 * AUBO_NO_ACCESS
4582 * AUBO_BUSY
4583 * AUBO_BAD_STATE
4584 * -AUBO_INVL_ARGUMENT
4585 * -AUBO_BAD_STATE
4586 *
4587 * @throws arcs::common_interface::AuboException
4588 * \endenglish
4589 */
4590 int setEncDecoderType(int type, int range_id);
4591
4592 /**
4593 * \chinese
4594 * 设置集成编码器脉冲数
4595 *
4596 * @param tick 脉冲数
4597 *
4598 * @return 成功返回0;失败返回错误码
4599 * AUBO_NO_ACCESS
4600 * AUBO_BUSY
4601 * AUBO_BAD_STATE
4602 * -AUBO_INVL_ARGUMENT
4603 * -AUBO_BAD_STATE
4604 *
4605 * @throws arcs::common_interface::AuboException
4606 * \endchinese
4607 * \english
4608 * Set the tick count of the integrated encoder.
4609 *
4610 * @param tick Tick count
4611 *
4612 * @return Returns 0 on success; error code on failure.
4613 * AUBO_NO_ACCESS
4614 * AUBO_BUSY
4615 * AUBO_BAD_STATE
4616 * -AUBO_INVL_ARGUMENT
4617 * -AUBO_BAD_STATE
4618 *
4619 * @throws arcs::common_interface::AuboException
4620 * \endenglish
4621 */
4622 int setEncTickCount(int tick);
4623
4624 /**
4625 * \chinese
4626 * 获取编码器的解码方式
4627 *
4628 * @return 成功返回0;失败返回错误码
4629 * AUBO_NO_ACCESS
4630 * AUBO_BUSY
4631 * AUBO_BAD_STATE
4632 * -AUBO_BAD_STATE
4633 *
4634 * @throws arcs::common_interface::AuboException
4635 *
4636 * @par JSON-RPC请求示例
4637 * {"jsonrpc":"2.0","method":"rob1.IoControl.getEncDecoderType","params":[],"id":1}
4638 *
4639 * @par JSON-RPC响应示例
4640 * {"id":1,"jsonrpc":"2.0","result":0}
4641 *
4642 * \endchinese
4643 * \english
4644 * Get the decoder type of the encoder.
4645 *
4646 * @return Returns 0 on success; error code on failure.
4647 * AUBO_NO_ACCESS
4648 * AUBO_BUSY
4649 * AUBO_BAD_STATE
4650 * -AUBO_BAD_STATE
4651 *
4652 * @throws arcs::common_interface::AuboException
4653 *
4654 * @par JSON-RPC request example
4655 * {"jsonrpc":"2.0","method":"rob1.IoControl.getEncDecoderType","params":[],"id":1}
4656 *
4657 * @par JSON-RPC response example
4658 * {"id":1,"jsonrpc":"2.0","result":0}
4659 *
4660 * \endenglish
4661 */
4663
4664 /**
4665 * \chinese
4666 * 获取脉冲数
4667 *
4668 * @return 成功返回0;失败返回错误码
4669 * AUBO_NO_ACCESS
4670 * AUBO_BUSY
4671 * AUBO_BAD_STATE
4672 * -AUBO_BAD_STATE
4673 *
4674 * @throws arcs::common_interface::AuboException
4675 *
4676 * @par JSON-RPC请求示例
4677 * {"jsonrpc":"2.0","method":"rob1.IoControl.getEncTickCount","params":[],"id":1}
4678 *
4679 * @par JSON-RPC响应示例
4680 * {"id":1,"jsonrpc":"2.0","result":0}
4681 *
4682 * \endchinese
4683 * \english
4684 * Get the tick count
4685 *
4686 * @return Returns 0 on success; error code on failure.
4687 * AUBO_NO_ACCESS
4688 * AUBO_BUSY
4689 * AUBO_BAD_STATE
4690 * -AUBO_BAD_STATE
4691 *
4692 * @throws arcs::common_interface::AuboException
4693 *
4694 * @par JSON-RPC request example
4695 * {"jsonrpc":"2.0","method":"rob1.IoControl.getEncTickCount","params":[],"id":1}
4696 *
4697 * @par JSON-RPC response example
4698 * {"id":1,"jsonrpc":"2.0","result":0}
4699 *
4700 * \endenglish
4701 */
4703
4704 /**
4705 * \chinese
4706 * 防止在计数超出范围时计数错误
4707 *
4708 * @param delta_count
4709 *
4710 * @return 成功返回0;失败返回错误码
4711 * AUBO_NO_ACCESS
4712 * AUBO_BUSY
4713 * AUBO_BAD_STATE
4714 * -AUBO_BAD_STATE
4715 *
4716 * @throws arcs::common_interface::AuboException
4717 * \endchinese
4718 * \english
4719 * Prevent counting errors when the count exceeds the range
4720 *
4721 * @param delta_count
4722 *
4723 * @return Returns 0 on success; error code on failure.
4724 * AUBO_NO_ACCESS
4725 * AUBO_BUSY
4726 * AUBO_BAD_STATE
4727 * -AUBO_BAD_STATE
4728 *
4729 * @throws arcs::common_interface::AuboException
4730 * \endenglish
4731 */
4732 int unwindEncDeltaTickCount(int delta_count);
4733
4734 /**
4735 * \chinese
4736 * 获取末端按钮状态
4737 *
4738 * @return 按下返回true; 否则返回false
4739 *
4740 * @throws arcs::common_interface::AuboException
4741 *
4742 * @par Python函数原型
4743 * getToolButtonStatus() -> bool
4744 *
4745 * @par Lua函数原型
4746 * getToolButtonStatus() -> boolean
4747 *
4748 * @par Lua示例
4749 * status = getToolButtonStatus()
4750 *
4751 * @par JSON-RPC请求示例
4752 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolButtonStatus","params":[],"id":1}
4753 *
4754 * @par JSON-RPC响应示例
4755 * {"id":1,"jsonrpc":"2.0","result":false}
4756 *
4757 * \endchinese
4758 * \english
4759 * Get the status of the tool button.
4760 *
4761 * @return Returns true if pressed; otherwise false.
4762 *
4763 * @throws arcs::common_interface::AuboException
4764 *
4765 * @par Python function prototype
4766 * getToolButtonStatus() -> bool
4767 *
4768 * @par Lua function prototype
4769 * getToolButtonStatus() -> boolean
4770 *
4771 * @par Lua example
4772 * status = getToolButtonStatus()
4773 *
4774 * @par JSON-RPC request example
4775 * {"jsonrpc":"2.0","method":"rob1.IoControl.getToolButtonStatus","params":[],"id":1}
4776 *
4777 * @par JSON-RPC response example
4778 * {"id":1,"jsonrpc":"2.0","result":false}
4779 *
4780 * \endenglish
4781 */
4783
4784 /**
4785 * \chinese
4786 * 获取手柄按键状态
4787 *
4788 * @note 获取手柄按键状态
4789 *
4790 * @return 所有的手柄按键输入值\n
4791 * 例如,当返回值是2863267846时,换成2进制后是10101010101010100000000000000110。
4792 * 后16位就是所有的输入状态值,
4793 * 最后一位表示管脚0的输入状态值,倒数第二位表示管脚1的输入状态值,以此类推。\n
4794 * 1表示高电平状态,0表示低电平状态
4795 *
4796 * @throws arcs::common_interface::AuboException
4797 *
4798 * @par Python函数原型
4799 * getHandleIoStatus(self: pyaubo_sdk.IoControl) -> int
4800 *
4801 * @par Lua函数原型
4802 * getHandleIoStatus() -> number
4803 *
4804 * @par Lua示例
4805 * num = getHandleIoStatus()
4806 *
4807 * @par JSON-RPC请求示例
4808 * {"jsonrpc":"2.0","method":"rob1.IoControl.getHandleIoStatus","params":[],"id":1}
4809 *
4810 * @par JSON-RPC响应示例
4811 * {"id":1,"jsonrpc":"2.0","result":0}
4812 *
4813 * \endchinese
4814 * \english
4815 * Get the status of handle buttons.
4816 *
4817 * @note Get the status of handle buttons.
4818 *
4819 * @return All handle button input values.\n
4820 * For example, if the return value is 2863267846, its binary representation
4821 * is 10101010101010100000000000000110. The lower 16 bits represent the
4822 * status of all input pins, the least significant bit indicates the input
4823 * status of pin 0, the second least significant bit indicates pin 1, and so
4824 * on.\n 1 means high level, 0 means low level.
4825 *
4826 * @throws arcs::common_interface::AuboException
4827 *
4828 * @par Python function prototype
4829 * getHandleIoStatus(self: pyaubo_sdk.IoControl) -> int
4830 *
4831 * @par Lua function prototype
4832 * getHandleIoStatus() -> number
4833 *
4834 * @par Lua example
4835 * num = getHandleIoStatus()
4836 *
4837 * @par JSON-RPC request example
4838 * {"jsonrpc":"2.0","method":"rob1.IoControl.getHandleIoStatus","params":[],"id":1}
4839 *
4840 * @par JSON-RPC response example
4841 * {"id":1,"jsonrpc":"2.0","result":0}
4842 *
4843 * \endenglish
4844 */
4846
4847 /**
4848 * \chinese
4849 * 获取手柄类型
4850 *
4851 * @return type
4852 *
4853 * @throws arcs::common_interface::AuboException
4854 *
4855 * @par Python函数原型
4856 * getHandleType() -> int
4857 *
4858 * @par Lua函数原型
4859 * getHandleType() -> int
4860 *
4861 * @par Lua示例
4862 * int_num = getHandleType()
4863 *
4864 * @par JSON-RPC请求示例
4865 * {"jsonrpc":"2.0","method":"rob1.IoControl.getHandleType","params":[],"id":1}
4866 *
4867 * @par JSON-RPC响应示例
4868 * {"id":1,"jsonrpc":"2.0","result":0}
4869 *
4870 * \endchinese
4871 * \english
4872 * Get the handle type.
4873 *
4874 * @return type
4875 *
4876 * @throws arcs::common_interface::AuboException
4877 *
4878 * @par Python function prototype
4879 * getHandleType() -> int
4880 *
4881 * @par Lua function prototype
4882 * getHandleType() -> int
4883 *
4884 * @par Lua example
4885 * int_num = getHandleType()
4886 *
4887 * @par JSON-RPC request example
4888 * {"jsonrpc":"2.0","method":"rob1.IoControl.getHandleType","params":[],"id":1}
4889 *
4890 * @par JSON-RPC response example
4891 * {"id":1,"jsonrpc":"2.0","result":0}
4892 *
4893 * \endenglish
4894 */
4896
4897protected:
4898 void *d_;
4899};
4900using IoControlPtr = std::shared_ptr<IoControl>;
4901} // namespace common_interface
4902} // namespace arcs
4903
4904#endif // AUBO_SDK_IO_CONTROL_INTERFACE_H
IoControl类提供了一系列的接口对机器人标配的一些数字、模拟IO进行配置,输出状态设置、读取
Definition io_control.h:45
int setAnalogOutputAfterEStopDefault()
设置所有模拟输出急停后状态为默认(不做改变)
int setToolAnalogOutputDomain(int index, int domain)
设置工具端模拟输出范围
StandardInputAction getStandardDigitalInputAction(int index)
获取标准数字输入触发动作
int setToolAnalogInputDomain(int index, int domain)
设置工具端模拟输入的范围
int setStandardDigitalOutputAfterEStop(int index, bool value)
设置标准数字输出急停后的输出值
bool getToolDigitalOutput(int index)
获取工具端数字输出值
int getConfigurableDigitalOutputNum()
获取可配置数字输出数量
int setConfigurableDigitalOutput(int index, bool value)
设置可配置数字输出值
StandardOutputRunState getToolAnalogOutputRunstate(int index)
获取工具端模拟输出状态选择
uint32_t getStaticLinkOutputs()
获取所有的联动输出值
uint32_t getStandardDigitalOutputs()
获取所有的标准数字输出值
StandardInputAction getConfigurableDigitalInputAction(int index)
获取可配置数字输入的输入触发动作
int setStandardDigitalInputAction(int index, StandardInputAction action)
设置标准数字输入触发动作
int setConfigurableDigitalInputAction(int index, StandardInputAction action)
设置可配置数字输入触发动作
int getConfigurableDigitalInputNum()
获取可配置数字输入数量
int getStandardAnalogOutputNum()
获取标准模拟输出数量
int getToolDigitalOutputNum()
获取工具端数字IO数量(包括数字输入和数字输出)
double getStandardAnalogOutput(int index)
获取标准模拟输出值
uint32_t getHandleIoStatus()
获取手柄按键状态
int setDigitalOutputRunstateDefault()
设置所有数字输出状态选择为无
StandardOutputRunState getStandardDigitalOutputRunstate(int index)
获取标准数字输出状态选择
int getStaticLinkOutputNum()
获取联动输出数量
int getEncTickCount()
获取脉冲数
int getStandardDigitalOutputNum()
获取标准数字输出数量
int setConfigurableDigitalOutputAfterEStop(int index, bool value)
设置可配置数字输出急停后的输出值
int getHandleType()
获取手柄类型
int setToolAnalogOutputRunstate(int index, StandardOutputRunState runstate)
设置工具端模拟输出状态选择
int getToolAnalogInputNum()
获取工具端模拟输入数量
int setStandardDigitalOutput(int index, bool value)
设置标准数字输出值
bool getStandardDigitalOutput(int index)
获取标准数字输出值
bool getToolDigitalInput(int index)
获取工具端数字输入值
StandardInputAction getToolDigitalInputAction(int index)
获取工具端数字输入触发动作
double getToolAnalogOutput(int index)
获取工具端模拟输出值
int getToolVoltageOutputDomain()
获取工具端电源电压值(单位V)
int getStandardDigitalInputNum()
获取标准数字输入数量
int getToolDigitalInputNum()
获取工具端数字IO数量(包括数字输入和数字输出)
bool getStandardDigitalInput(int index)
获取标准数字输入值
int setToolVoltageOutputDomain(int domain)
设置工具端电源电压值(单位V)
int setToolDigitalOutputPulse(int index, bool value, double duration)
设置工具端数字输出脉冲
uint32_t getToolDigitalOutputs()
获取所有的工具端数字输出值
int setToolDigitalInputAction(int index, StandardInputAction action)
设置工具数字输入触发动作
int setConfigurableDigitalOutputPulse(int index, bool value, double duration)
设置可配置数字输出脉冲
int setStandardAnalogOutputDomain(int index, int domain)
设置标准模拟输出的范围
double getToolAnalogInput(int index)
获取工具端模拟输入值
int setEncDecoderType(int type, int range_id)
设置集成编码器的解码方式
StandardOutputRunState getConfigurableDigitalOutputRunstate(int index)
获取可配置数字输出状态选择
int getStandardAnalogInputDomain(int index)
获取标准模式输入范围
int setToolIoInput(int index, bool input)
设置指定的工具端数字IO为输入或输出
int getToolAnalogOutputNum()
获取工具端模拟输出数量
StandardOutputRunState getStandardAnalogOutputRunstate(int index)
获取标准模拟输出状态选择
uint32_t getConfigurableDigitalInputs()
获取所有的可配置数字输入值
bool getToolButtonStatus()
获取末端按钮状态
int getStandardAnalogOutputDomain(int index)
获取标准模拟输出范围
int setStandardAnalogInputDomain(int index, int domain)
设置标准模拟输入的范围
int setDigitalInputActionDefault()
设置所有数字输入动作为无触发
uint32_t getToolDigitalInputs()
获取所有的工具端数字输入值
int getStandardAnalogInputNum()
获取标准模拟输入数量
int setToolAnalogOutput(int index, double value)
设置工具端模拟输出值
int setConfigurableDigitalOutputRunstate(int index, StandardOutputRunState runstate)
设置可配置数字输出状态选择
int setEncTickCount(int tick)
设置集成编码器脉冲数
bool hasEncoderSensor()
机器人是否配置了编码器 集成编码器的编号为 0
int getToolAnalogOutputDomain(int index)
获取工具端模拟输出范围
int getToolAnalogInputDomain(int index)
获取工具端模式输入范围
bool isToolIoInput(int index)
判断指定的工具端数字IO类型是否为输入
int setStandardDigitalOutputRunstate(int index, StandardOutputRunState runstate)
设置标准数字输出状态选择
int setToolDigitalOutputRunstate(int index, StandardOutputRunState runstate)
设置工具端数字输出状态选择
int setToolDigitalOutput(int index, bool value)
设置工具端数字输出值
int setStandardAnalogOutputRunstate(int index, StandardOutputRunState runstate)
设置标准模拟输出状态选择
StandardOutputRunState getToolDigitalOutputRunstate(int index)
获取工具端数字输出状态选择
uint32_t getConfigurableDigitalOutputs()
获取所有的可配值数字输出值
int unwindEncDeltaTickCount(int delta_count)
防止在计数超出范围时计数错误
int setDigitalOutputAfterEStopDefault()
设置所有数字输出急停后状态为默认(不做改变)
uint32_t getStandardDigitalInputs()
获取所有的标准数字输入值
double getStandardAnalogInput(int index)
获取标准模拟输入值
int getEncDecoderType()
获取编码器的解码方式
int setStandardAnalogOutput(int index, double value)
设置标准模拟输出值
uint32_t getStaticLinkInputs()
获取所有的联动输入值
bool getConfigurableDigitalInput(int index)
获取可配置数字输入值
int getStaticLinkInputNum()
获取联动输入数量
int setStandardAnalogOutputAfterEStop(int index, double value)
设置标准模拟输出急停后的输出值
bool getConfigurableDigitalOutput(int index)
获取可配值数字输出值
int setStandardDigitalOutputPulse(int index, bool value, double duration)
设置数字输出脉冲
StandardInputAction
The StandardInputAction enum
Definition type_def.h:604
std::shared_ptr< IoControl > IoControlPtr
StandardOutputRunState
标准输出运行状态
Definition type_def.h:596
数据类型的定义