xArm-Python-SDK 1.11.7__tar.gz → 1.13.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xArm-Python-SDK-1.11.7/xArm_Python_SDK.egg-info → xArm-Python-SDK-1.13.8}/PKG-INFO +1 -1
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/README.md +20 -38
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8/xArm_Python_SDK.egg-info}/PKG-INFO +1 -1
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xArm_Python_SDK.egg-info/SOURCES.txt +1 -1
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/comm/base.py +27 -27
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/comm/socket_port.py +4 -3
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/config/x_code.py +6 -6
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/config/x_config.py +39 -3
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/wrapper/uxbus_cmd.py +257 -157
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/wrapper/uxbus_cmd_ser.py +20 -17
- xArm-Python-SDK-1.13.8/xarm/core/wrapper/uxbus_cmd_tcp.py +304 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/tools/blockly/_blockly_base.py +7 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/tools/blockly/_blockly_handler.py +42 -13
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/tools/blockly/_blockly_highlight.py +4 -2
- xArm-Python-SDK-1.13.8/xarm/version.py +1 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/wrapper/xarm_api.py +278 -34
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/base.py +144 -70
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/code.py +3 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/events.py +10 -1
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/ft_sensor.py +3 -3
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/gpio.py +22 -0
- xArm-Python-SDK-1.13.8/xarm/x3/modbus_tcp.py +81 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/record.py +112 -87
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/xarm.py +151 -50
- xArm-Python-SDK-1.11.7/xArm_Python_SDK.egg-info/requires.txt +0 -1
- xArm-Python-SDK-1.11.7/xarm/core/wrapper/uxbus_cmd_tcp.py +0 -144
- xArm-Python-SDK-1.11.7/xarm/version.py +0 -1
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/LICENSE +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/setup.cfg +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/setup.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xArm_Python_SDK.egg-info/dependency_links.txt +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xArm_Python_SDK.egg-info/not-zip-safe +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xArm_Python_SDK.egg-info/top_level.txt +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/__init__.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/__init__.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/comm/__init__.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/comm/serial_port.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/comm/uxbus_cmd_protocol.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/config/__init__.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/utils/__init__.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/utils/convert.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/utils/crc16.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/utils/debug_print.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/utils/log.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/version.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/core/wrapper/__init__.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/tools/__init__.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/tools/blockly/__init__.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/tools/blockly/_blockly_node.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/tools/blockly/_blockly_tool.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/tools/blockly_tool.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/tools/list_ports.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/tools/threads.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/tools/utils.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/wrapper/__init__.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/wrapper/studio_api.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/__init__.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/base_board.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/decorator.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/grammar_async.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/grammar_coroutine.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/gripper.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/parse.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/report.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/robotiq.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/servo.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/studio.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/track.py +0 -0
- {xArm-Python-SDK-1.11.7 → xArm-Python-SDK-1.13.8}/xarm/x3/utils.py +0 -0
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
xArm Python SDK
|
|
5
5
|
|
|
6
6
|
## Caution
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
- Protect the arm before unlocking the motor.
|
|
7
|
+
- Please keep away from the robot arm to avoid personal injury or equipment damage.
|
|
8
|
+
- Make sure to do a safety assessment before moving to prevent collisions.
|
|
9
|
+
- Protect the arm before unlocking the joint.
|
|
11
10
|
|
|
12
11
|
## Installation
|
|
13
|
-
|
|
12
|
+
  you can run examples without installation.Only Python3 is supported.
|
|
14
13
|
- download
|
|
15
14
|
|
|
16
15
|
```bash
|
|
@@ -28,7 +27,15 @@ Install is not necessary, you can run examples without installation.Only Python3
|
|
|
28
27
|
|
|
29
28
|
- #### [API Code Document](doc/api/xarm_api_code.md)
|
|
30
29
|
|
|
30
|
+
- #### [UFACTORY ModbusTCP Manual](doc/UF_ModbusTCP_Manual.md)
|
|
31
|
+
|
|
31
32
|
## Update Summary
|
|
33
|
+
- > ### 1.13.0
|
|
34
|
+
- Compatible with the standard Modbus TCP protocol, providing part of the standard Modbus TCP protocol interface
|
|
35
|
+
|
|
36
|
+
- > ### 1.12.2
|
|
37
|
+
- Support partial Task feedback (requires firmware version greater than or equal to v2.1.0)
|
|
38
|
+
|
|
32
39
|
- > ### 1.11.6
|
|
33
40
|
- Correct the ambiguity that the `set_position_aa` interface is true when both relative and is_tool_coord are true. After the correction, when is_tool_coord is true, relative is invalid (previously is_tool_coord was invalid when relative was true)
|
|
34
41
|
|
|
@@ -43,44 +50,13 @@ Install is not necessary, you can run examples without installation.Only Python3
|
|
|
43
50
|
- 241: `getset_tgpio_modbus_data(..., is_transparent_transmission=True)`
|
|
44
51
|
- Modified the centroid unit of the `ft_sensor_iden_load` and `ft_sensor_cali_load` interfaces to millimeters (originally meters)
|
|
45
52
|
|
|
46
|
-
- > ### 1.10.0
|
|
47
|
-
- Use monotonic time
|
|
48
|
-
- Fix several bugs
|
|
49
|
-
|
|
50
|
-
- > ### 1.9.10
|
|
51
|
-
- Support Lite6 Model
|
|
52
|
-
- Fix several bugs
|
|
53
|
-
|
|
54
|
-
- > ### 1.9.0
|
|
55
|
-
- Support friction parameter identification interface
|
|
56
|
-
- Support relative motion
|
|
57
|
-
- Support xarm6-type11 firmware
|
|
58
|
-
- Repair time-consuming interface (identification) failure due to heartbeat mechanism
|
|
59
|
-
- Fix several bugs
|
|
60
|
-
|
|
61
|
-
- > ### 1.8.4
|
|
62
|
-
- Support the Six-axis Force Torque Sensor (not a third party)
|
|
63
|
-
- Add threads to handle callbacks
|
|
64
|
-
- Modify the reporting processing logic and optimize the processing of sticky packets
|
|
65
|
-
- Fixed frequent switching of the pause state causing the program to hang
|
|
66
|
-
- Fix the program hangs when setting the mechanical claw position in speed mode
|
|
67
|
-
- Fix relative movement in unsynchronized position
|
|
68
|
-
|
|
69
|
-
- > ### 1.8.0
|
|
70
|
-
|
|
71
|
-
- Support for blocky code conversion and operation of xArmStudio-1.8.0
|
|
72
|
-
- The Velocity interface supports the duration parameter (requires firmware 1.8.0 or higher)
|
|
73
|
-
- Added identification interface (current identification and torque identification) (requires firmware 1.8.0 or higher)
|
|
74
|
-
- Support linear track interface (requires firmware 1.8.0 or higher)
|
|
75
|
-
- Support calling some studio APIs
|
|
76
|
-
|
|
77
53
|
|
|
78
54
|
- >### [More](ReleaseNotes.md)
|
|
79
55
|
|
|
80
56
|
|
|
81
57
|
## [Example](example/wrapper/)
|
|
82
58
|
|
|
83
|
-
|
|
59
|
+
   __Before running the example, please modify the IP in [robot.conf](example/wrapper/robot.conf) to corresponding IP you want to control.__
|
|
84
60
|
|
|
85
61
|
- #### [0000-template](example/wrapper/common/0000-template.py)
|
|
86
62
|
|
|
@@ -131,6 +107,12 @@ __Note: Before running the example, please modify the ip value in the [robot.con
|
|
|
131
107
|
- ##### [3002-record_trajectory](example/wrapper/common/3002-record_trajectory.py)
|
|
132
108
|
|
|
133
109
|
- ##### [3003-playback_trajectory](example/wrapper/common/3003-playback_trajectory.py)
|
|
110
|
+
|
|
111
|
+
- ##### [3004-get_report_data](example/wrapper/common/3004-get_report_data.py)
|
|
112
|
+
|
|
113
|
+
- ##### [3005-task_feedback](example/wrapper/common/3005-task_feedback.py)
|
|
114
|
+
|
|
115
|
+
- ##### [3006-standard_modbus_tcp](example/wrapper/common/3006-standard_modbus_tcp.py)
|
|
134
116
|
|
|
135
117
|
- ##### [5000-set_tgpio_modbus](example/wrapper/common/5000-set_tgpio_modbus.py)
|
|
136
118
|
|
|
@@ -362,7 +344,7 @@ __Note: Before running the example, please modify the ip value in the [robot.con
|
|
|
362
344
|
- #### Other
|
|
363
345
|
```python
|
|
364
346
|
arm.set_pause_time(...)
|
|
365
|
-
arm.
|
|
347
|
+
arm.system_control(...)
|
|
366
348
|
arm.clean_error()
|
|
367
349
|
arm.clean_warn()
|
|
368
350
|
arm.set_counter_reset()
|
|
@@ -5,7 +5,6 @@ xArm_Python_SDK.egg-info/PKG-INFO
|
|
|
5
5
|
xArm_Python_SDK.egg-info/SOURCES.txt
|
|
6
6
|
xArm_Python_SDK.egg-info/dependency_links.txt
|
|
7
7
|
xArm_Python_SDK.egg-info/not-zip-safe
|
|
8
|
-
xArm_Python_SDK.egg-info/requires.txt
|
|
9
8
|
xArm_Python_SDK.egg-info/top_level.txt
|
|
10
9
|
xarm/__init__.py
|
|
11
10
|
xarm/version.py
|
|
@@ -53,6 +52,7 @@ xarm/x3/gpio.py
|
|
|
53
52
|
xarm/x3/grammar_async.py
|
|
54
53
|
xarm/x3/grammar_coroutine.py
|
|
55
54
|
xarm/x3/gripper.py
|
|
55
|
+
xarm/x3/modbus_tcp.py
|
|
56
56
|
xarm/x3/parse.py
|
|
57
57
|
xarm/x3/record.py
|
|
58
58
|
xarm/x3/report.py
|
|
@@ -16,25 +16,32 @@ from ..utils import convert
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class RxParse(object):
|
|
19
|
-
def __init__(self, rx_que):
|
|
19
|
+
def __init__(self, rx_que, fb_que=None):
|
|
20
20
|
self.rx_que = rx_que
|
|
21
|
+
self.fb_que = fb_que
|
|
21
22
|
|
|
22
23
|
def flush(self, fromid=-1, toid=-1):
|
|
23
24
|
pass
|
|
24
25
|
|
|
25
|
-
def put(self, data):
|
|
26
|
-
|
|
26
|
+
def put(self, data, is_report=False):
|
|
27
|
+
if not is_report and data[6] == 0xFF:
|
|
28
|
+
if not self.fb_que:
|
|
29
|
+
return
|
|
30
|
+
self.fb_que.put(data)
|
|
31
|
+
else:
|
|
32
|
+
self.rx_que.put(data)
|
|
27
33
|
|
|
28
34
|
|
|
29
35
|
class Port(threading.Thread):
|
|
30
|
-
def __init__(self, rxque_max):
|
|
36
|
+
def __init__(self, rxque_max, fb_que=None):
|
|
31
37
|
super(Port, self).__init__()
|
|
32
38
|
self.daemon = True
|
|
33
39
|
self.rx_que = queue.Queue(rxque_max)
|
|
40
|
+
self.fb_que = fb_que
|
|
34
41
|
self.write_lock = threading.Lock()
|
|
35
42
|
self._connected = False
|
|
36
43
|
self.com = None
|
|
37
|
-
self.rx_parse = RxParse(self.rx_que)
|
|
44
|
+
self.rx_parse = RxParse(self.rx_que, self.fb_que)
|
|
38
45
|
self.com_read = None
|
|
39
46
|
self.com_write = None
|
|
40
47
|
self.port_type = ''
|
|
@@ -229,7 +236,7 @@ class Port(threading.Thread):
|
|
|
229
236
|
|
|
230
237
|
if self.rx_que.qsize() > 1:
|
|
231
238
|
self.rx_que.get()
|
|
232
|
-
self.rx_parse.put(buffer)
|
|
239
|
+
self.rx_parse.put(buffer, True)
|
|
233
240
|
buffer = b''
|
|
234
241
|
data_num = 0
|
|
235
242
|
|
|
@@ -246,11 +253,13 @@ class Port(threading.Thread):
|
|
|
246
253
|
def recv_proc(self):
|
|
247
254
|
self.alive = True
|
|
248
255
|
logger.debug('[{}] recv thread start'.format(self.port_type))
|
|
256
|
+
is_main_tcp = self.port_type == 'main-socket'
|
|
257
|
+
is_main_serial = self.port_type == 'main-serial'
|
|
249
258
|
try:
|
|
250
259
|
failed_read_count = 0
|
|
251
|
-
|
|
260
|
+
buffer = b''
|
|
252
261
|
while self.connected and self.alive:
|
|
253
|
-
if
|
|
262
|
+
if is_main_tcp:
|
|
254
263
|
try:
|
|
255
264
|
rx_data = self.com_read(self.buffer_size)
|
|
256
265
|
except socket.timeout:
|
|
@@ -263,31 +272,22 @@ class Port(threading.Thread):
|
|
|
263
272
|
break
|
|
264
273
|
time.sleep(0.1)
|
|
265
274
|
continue
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
except socket.timeout:
|
|
270
|
-
timeout_count += 1
|
|
271
|
-
if timeout_count > 3:
|
|
272
|
-
self._connected = False
|
|
273
|
-
logger.error('[{}] socket read timeout'.format(self.port_type))
|
|
275
|
+
buffer += rx_data
|
|
276
|
+
while True:
|
|
277
|
+
if len(buffer) < 6:
|
|
274
278
|
break
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
failed_read_count += 1
|
|
278
|
-
if failed_read_count > 5:
|
|
279
|
-
self._connected = False
|
|
280
|
-
logger.error('[{}] socket read failed, len=0'.format(self.port_type))
|
|
279
|
+
length = convert.bytes_to_u16(buffer[4:6]) + 6
|
|
280
|
+
if len(buffer) < length:
|
|
281
281
|
break
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
rx_data = buffer[:length]
|
|
283
|
+
buffer = buffer[length:]
|
|
284
|
+
self.rx_parse.put(rx_data)
|
|
285
|
+
elif is_main_serial:
|
|
285
286
|
rx_data = self.com_read(self.com.in_waiting or self.buffer_size)
|
|
287
|
+
self.rx_parse.put(rx_data)
|
|
286
288
|
else:
|
|
287
289
|
break
|
|
288
|
-
timeout_count = 0
|
|
289
290
|
failed_read_count = 0
|
|
290
|
-
self.rx_parse.put(rx_data)
|
|
291
291
|
except Exception as e:
|
|
292
292
|
if self.alive:
|
|
293
293
|
logger.error('[{}] recv error: {}'.format(self.port_type, e))
|
|
@@ -90,9 +90,10 @@ class HeartBeatThread(threading.Thread):
|
|
|
90
90
|
|
|
91
91
|
class SocketPort(Port):
|
|
92
92
|
def __init__(self, server_ip, server_port, rxque_max=XCONF.SocketConf.TCP_RX_QUE_MAX, heartbeat=False,
|
|
93
|
-
buffer_size=XCONF.SocketConf.TCP_CONTROL_BUF_SIZE, forbid_uds=False):
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
buffer_size=XCONF.SocketConf.TCP_CONTROL_BUF_SIZE, forbid_uds=False, fb_que=None):
|
|
94
|
+
is_main_tcp = server_port == XCONF.SocketConf.TCP_CONTROL_PORT or server_port == XCONF.SocketConf.TCP_CONTROL_PORT + 1
|
|
95
|
+
super(SocketPort, self).__init__(rxque_max, fb_que)
|
|
96
|
+
if is_main_tcp:
|
|
96
97
|
self.port_type = 'main-socket'
|
|
97
98
|
# self.com.setsockopt(socket.SOL_SOCKET, socket.SO_RCVTIMEO, 5)
|
|
98
99
|
else:
|
|
@@ -577,11 +577,11 @@ ControllerErrorCodeMap = {
|
|
|
577
577
|
23: {
|
|
578
578
|
'en': {
|
|
579
579
|
'title': 'Joints Angle Exceed Limit',
|
|
580
|
-
'desc': 'Please
|
|
580
|
+
'desc': 'Please go to the "Live Control" page and press the "INITIAL POSITION" button to let the robot go to the initial position.'
|
|
581
581
|
},
|
|
582
582
|
'cn': {
|
|
583
583
|
'title': '关节角度超出限制',
|
|
584
|
-
'desc': '
|
|
584
|
+
'desc': '请到”实时控制“界面按住”初始点“按钮让机械臂回到初始点。'
|
|
585
585
|
}
|
|
586
586
|
},
|
|
587
587
|
24: {
|
|
@@ -736,12 +736,12 @@ ControllerErrorCodeMap = {
|
|
|
736
736
|
},
|
|
737
737
|
40: {
|
|
738
738
|
'en': {
|
|
739
|
-
'title': '
|
|
740
|
-
'desc': ''
|
|
739
|
+
'title': 'Solution failure of error-free joint trajectory',
|
|
740
|
+
'desc': 'Please adjust the position.'
|
|
741
741
|
},
|
|
742
742
|
'cn': {
|
|
743
|
-
'title': '
|
|
744
|
-
'desc': ''
|
|
743
|
+
'title': '无报错的关节轨迹求解失败',
|
|
744
|
+
'desc': '请调整点位。'
|
|
745
745
|
}
|
|
746
746
|
},
|
|
747
747
|
50: {
|
|
@@ -39,6 +39,7 @@ class XCONF(object):
|
|
|
39
39
|
XARM6_X8 = 8
|
|
40
40
|
XARM6_X9 = 9
|
|
41
41
|
XARM6_X11 = 11
|
|
42
|
+
XARM6_X12 = 12
|
|
42
43
|
|
|
43
44
|
JOINT_LIMITS = {
|
|
44
45
|
Axis.XARM5: {
|
|
@@ -83,6 +84,14 @@ class XCONF(object):
|
|
|
83
84
|
(-1.692969, math.pi),
|
|
84
85
|
(-2 * math.pi, 2 * math.pi),
|
|
85
86
|
],
|
|
87
|
+
Type.XARM6_X12: [
|
|
88
|
+
(-2 * math.pi, 2 * math.pi),
|
|
89
|
+
(-2.303834612632515, 2.303834612632515),
|
|
90
|
+
(-4.223696789826278, 0.061086523819801536),
|
|
91
|
+
(-2 * math.pi, 2 * math.pi),
|
|
92
|
+
(-2.1642082724729685, 2.1642082724729685),
|
|
93
|
+
(-2 * math.pi, 2 * math.pi),
|
|
94
|
+
],
|
|
86
95
|
|
|
87
96
|
},
|
|
88
97
|
Axis.XARM7: {
|
|
@@ -158,6 +167,14 @@ class XCONF(object):
|
|
|
158
167
|
(-math.pi, math.pi),
|
|
159
168
|
(-math.pi, math.pi)
|
|
160
169
|
],
|
|
170
|
+
Type.XARM6_X12: [
|
|
171
|
+
(-1000, 1000),
|
|
172
|
+
(-1000, 1000),
|
|
173
|
+
(-400, 1300),
|
|
174
|
+
(-math.pi, math.pi),
|
|
175
|
+
(-math.pi, math.pi),
|
|
176
|
+
(-math.pi, math.pi)
|
|
177
|
+
],
|
|
161
178
|
},
|
|
162
179
|
Axis.XARM7: {
|
|
163
180
|
Type.XARM7_X3: [
|
|
@@ -207,8 +224,9 @@ class XCONF(object):
|
|
|
207
224
|
RELOAD_DYNAMICS = 4
|
|
208
225
|
GET_REPORT_TAU_OR_I = 5
|
|
209
226
|
GET_TCP_ROTATION_RADIUS = 6
|
|
227
|
+
GET_ALLOW_APPROX_MOTION = 7
|
|
210
228
|
|
|
211
|
-
|
|
229
|
+
SYSTEM_CONTROL = 10
|
|
212
230
|
MOTION_EN = 11
|
|
213
231
|
SET_STATE = 12
|
|
214
232
|
GET_STATE = 13
|
|
@@ -256,7 +274,7 @@ class XCONF(object):
|
|
|
256
274
|
SET_LIMIT_XYZ = 52
|
|
257
275
|
GET_REDUCED_STATE = 53
|
|
258
276
|
|
|
259
|
-
SET_SERVOT = 54
|
|
277
|
+
SET_SERVOT = 54 # no longer supported
|
|
260
278
|
GET_JOINT_TAU = 55
|
|
261
279
|
SET_SAFE_LEVEL = 56
|
|
262
280
|
GET_SAFE_LEVEL = 57
|
|
@@ -270,7 +288,10 @@ class XCONF(object):
|
|
|
270
288
|
LOAD_TRAJ = 63
|
|
271
289
|
PLAY_TRAJ = 64
|
|
272
290
|
GET_TRAJ_RW_STATUS = 65
|
|
273
|
-
|
|
291
|
+
SET_ALLOW_APPROX_MOTION = 66
|
|
292
|
+
GET_DH = 67
|
|
293
|
+
SET_DH = 68
|
|
294
|
+
GET_MOVEMENT = 69
|
|
274
295
|
|
|
275
296
|
REPORT_TAU_OR_I = 70
|
|
276
297
|
SET_TIMER = 71
|
|
@@ -355,6 +376,9 @@ class XCONF(object):
|
|
|
355
376
|
TGPIO_COM_TIOUT = 240
|
|
356
377
|
TGPIO_COM_DATA = 241
|
|
357
378
|
|
|
379
|
+
FEEDBACK_CHECK = 253
|
|
380
|
+
SET_FEEDBACK_TYPE = 254
|
|
381
|
+
|
|
358
382
|
class UxbusConf:
|
|
359
383
|
SET_TIMEOUT = 2000 # ms
|
|
360
384
|
GET_TIMEOUT = 2000 # ms
|
|
@@ -463,6 +487,18 @@ class XCONF(object):
|
|
|
463
487
|
USE_PRIMITIVES = 20 # just for judgement, threshold.
|
|
464
488
|
CYLINDER = 21 # radius, height
|
|
465
489
|
BOX = 22 # x, y, z in tool coordinate direction
|
|
490
|
+
|
|
491
|
+
class FeedbackType:
|
|
492
|
+
MOTION_START = 1
|
|
493
|
+
MOTION_FINISH = 2
|
|
494
|
+
TRIGGER = 4
|
|
495
|
+
OTHER_START = 32
|
|
496
|
+
OTHER_FINISH = 64
|
|
497
|
+
|
|
498
|
+
class FeedbackCode:
|
|
499
|
+
SUCCESS = 0
|
|
500
|
+
FAILURE = 1
|
|
501
|
+
DISCARD = 2
|
|
466
502
|
|
|
467
503
|
|
|
468
504
|
|