xarm-python-sdk 1.15.2__py3-none-any.whl
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/__init__.py +2 -0
- xarm/build_backend.py +17 -0
- xarm/core/__init__.py +2 -0
- xarm/core/comm/__init__.py +5 -0
- xarm/core/comm/base.py +303 -0
- xarm/core/comm/serial_port.py +44 -0
- xarm/core/comm/socket_port.py +150 -0
- xarm/core/comm/uxbus_cmd_protocol.py +100 -0
- xarm/core/config/__init__.py +0 -0
- xarm/core/config/x_code.py +1427 -0
- xarm/core/config/x_config.py +553 -0
- xarm/core/utils/__init__.py +3 -0
- xarm/core/utils/convert.py +124 -0
- xarm/core/utils/crc16.py +76 -0
- xarm/core/utils/debug_print.py +21 -0
- xarm/core/utils/log.py +98 -0
- xarm/core/version.py +1 -0
- xarm/core/wrapper/__init__.py +11 -0
- xarm/core/wrapper/uxbus_cmd.py +1457 -0
- xarm/core/wrapper/uxbus_cmd_ser.py +94 -0
- xarm/core/wrapper/uxbus_cmd_tcp.py +305 -0
- xarm/tools/__init__.py +0 -0
- xarm/tools/blockly/__init__.py +1 -0
- xarm/tools/blockly/_blockly_base.py +416 -0
- xarm/tools/blockly/_blockly_handler.py +1338 -0
- xarm/tools/blockly/_blockly_highlight.py +94 -0
- xarm/tools/blockly/_blockly_node.py +61 -0
- xarm/tools/blockly/_blockly_tool.py +480 -0
- xarm/tools/blockly_tool.py +1864 -0
- xarm/tools/gcode.py +90 -0
- xarm/tools/list_ports.py +39 -0
- xarm/tools/modbus_tcp.py +205 -0
- xarm/tools/threads.py +30 -0
- xarm/tools/utils.py +36 -0
- xarm/version.py +1 -0
- xarm/wrapper/__init__.py +1 -0
- xarm/wrapper/studio_api.py +34 -0
- xarm/wrapper/xarm_api.py +4416 -0
- xarm/x3/__init__.py +2 -0
- xarm/x3/base.py +2638 -0
- xarm/x3/base_board.py +198 -0
- xarm/x3/code.py +62 -0
- xarm/x3/decorator.py +104 -0
- xarm/x3/events.py +166 -0
- xarm/x3/ft_sensor.py +264 -0
- xarm/x3/gpio.py +457 -0
- xarm/x3/grammar_async.py +21 -0
- xarm/x3/grammar_coroutine.py +24 -0
- xarm/x3/gripper.py +830 -0
- xarm/x3/modbus_tcp.py +84 -0
- xarm/x3/parse.py +110 -0
- xarm/x3/record.py +216 -0
- xarm/x3/report.py +204 -0
- xarm/x3/robotiq.py +220 -0
- xarm/x3/servo.py +485 -0
- xarm/x3/studio.py +138 -0
- xarm/x3/track.py +424 -0
- xarm/x3/utils.py +43 -0
- xarm/x3/xarm.py +1928 -0
- xarm_python_sdk-1.15.2.dist-info/METADATA +103 -0
- xarm_python_sdk-1.15.2.dist-info/RECORD +63 -0
- xarm_python_sdk-1.15.2.dist-info/WHEEL +4 -0
- xarm_python_sdk-1.15.2.dist-info/licenses/LICENSE +27 -0
|
@@ -0,0 +1,1427 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# Software License Agreement (BSD License)
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2018, UFACTORY, Inc.
|
|
5
|
+
# All rights reserved.
|
|
6
|
+
#
|
|
7
|
+
# Author: Vinman <vinman.wen@ufactory.cc> <vinman.cub@gmail.com>
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
ServoCodeMap = {
|
|
11
|
+
10: {
|
|
12
|
+
'en': {
|
|
13
|
+
'title': 'Current Detection Error',
|
|
14
|
+
'desc': 'Please restart the xArm with the Emergency Stop Button on the xArm Controller. If multiple reboots are not working, please contact technical support.',
|
|
15
|
+
},
|
|
16
|
+
'cn': {
|
|
17
|
+
'title': '电流检测异常',
|
|
18
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持。',
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
11: {
|
|
22
|
+
'en': {
|
|
23
|
+
'title': 'Joint Current Overlimit',
|
|
24
|
+
'desc': 'Please restart the xArm with the Emergency Stop Button on the xArm Controller. If multiple reboots are not working, please contact technical support.',
|
|
25
|
+
},
|
|
26
|
+
'cn': {
|
|
27
|
+
'title': '关节电流过大',
|
|
28
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持。',
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
12: {
|
|
32
|
+
'en': {
|
|
33
|
+
'title': 'Joint Speed Overlimit',
|
|
34
|
+
'desc': 'Please restart the xArm with the Emergency Stop Button on the xArm Controller. If multiple reboots are not working, please contact technical support.',
|
|
35
|
+
},
|
|
36
|
+
'cn': {
|
|
37
|
+
'title': '关节速度过大',
|
|
38
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持。',
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
14: {
|
|
42
|
+
'en': {
|
|
43
|
+
'title': 'Position Command Overlimit',
|
|
44
|
+
'desc': 'Please restart the xArm with the Emergency Stop Button on the xArm Controller. If multiple reboots are not working, please contact technical support.',
|
|
45
|
+
},
|
|
46
|
+
'cn': {
|
|
47
|
+
'title': '位置指令过大',
|
|
48
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持。',
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
15: {
|
|
52
|
+
'en': {
|
|
53
|
+
'title': 'Joints Overheat',
|
|
54
|
+
'desc': 'If the robot arm is running for a long time, please stop running and restart the xArm after it\'s cool down. If multiple reboots are not working, please contact technical support.',
|
|
55
|
+
},
|
|
56
|
+
'cn': {
|
|
57
|
+
'title': '关节过热',
|
|
58
|
+
'desc': '如果机械臂长时间运行温度过高,请停并机冷却后重启机械臂。如多次重启无效,请联系技术支持。',
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
16: {
|
|
62
|
+
'en': {
|
|
63
|
+
'title': 'Encoder Initialization Error',
|
|
64
|
+
'desc': 'Please ensure that there is no external force to push the robotic arm when the it\'s energized. Please restart the xArm with the Emergency Stop Button on the xArm Controller. If multiple reboots are not working, please contact technical support.',
|
|
65
|
+
},
|
|
66
|
+
'cn': {
|
|
67
|
+
'title': '编码器初始化异常',
|
|
68
|
+
'desc': '请确保机械臂通电时,无外力推动机械臂运动。请通过控制器上的紧急停止按钮重启机械臂,如多次重启无效,请联系技术支持。',
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
17: {
|
|
72
|
+
'en': {
|
|
73
|
+
'title': 'Single Ring Encoder Error',
|
|
74
|
+
'desc': 'Please re-enable the robot.',
|
|
75
|
+
},
|
|
76
|
+
'cn': {
|
|
77
|
+
'title': '单圈编码器故障',
|
|
78
|
+
'desc': '请重新使能机械臂。',
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
18: {
|
|
82
|
+
'en': {
|
|
83
|
+
'title': 'Multi-turn Encoder Error ',
|
|
84
|
+
'desc': 'Please contact technical support.',
|
|
85
|
+
},
|
|
86
|
+
'cn': {
|
|
87
|
+
'title': '多圈编码器故障',
|
|
88
|
+
'desc': '请联系技术支持。',
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
19: {
|
|
92
|
+
'en': {
|
|
93
|
+
'title': 'Low Battery Voltage',
|
|
94
|
+
'desc': 'Please contact technical support.',
|
|
95
|
+
},
|
|
96
|
+
'cn': {
|
|
97
|
+
'title': '电池电压过低',
|
|
98
|
+
'desc': '请联系技术支持。',
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
20: {
|
|
102
|
+
'en': {
|
|
103
|
+
'title': 'Driver IC Hardware Error',
|
|
104
|
+
'desc': 'Please re-enable the robot. If it appears frequently, please contact technical support.',
|
|
105
|
+
},
|
|
106
|
+
'cn': {
|
|
107
|
+
'title': '驱动IC硬件异常',
|
|
108
|
+
'desc': '请重新使能机械臂。如频繁出现,请联系技术支持。',
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
21: {
|
|
112
|
+
'en': {
|
|
113
|
+
'title': 'Driver IC Initialization Error',
|
|
114
|
+
'desc': 'Please restart the xArm with the Emergency Stop Button on the xArm Controller. If multiple reboots are not working, please contact technical support.If multiple reboots are invalid, please contact technical support.',
|
|
115
|
+
},
|
|
116
|
+
'cn': {
|
|
117
|
+
'title': '驱动IC初始化异常',
|
|
118
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂,如多次重启无效,请联系技术支持。',
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
22: {
|
|
122
|
+
'en': {
|
|
123
|
+
'title': 'Encoder Configuration Error',
|
|
124
|
+
'desc': 'Please contact technical support.',
|
|
125
|
+
},
|
|
126
|
+
'cn': {
|
|
127
|
+
'title': '编码器配置错误',
|
|
128
|
+
'desc': '请联系技术支持。',
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
23: {
|
|
132
|
+
'en': {
|
|
133
|
+
'title': 'Large Motor Position Deviation',
|
|
134
|
+
'desc': 'Please check whether the xArm movement is blocked, whether the payload exceeds the rated payload of xArm, and whether the acceleration value is too large. If it appears frequently, please contact technical support.',
|
|
135
|
+
},
|
|
136
|
+
'cn': {
|
|
137
|
+
'title': '电机位置偏差过大',
|
|
138
|
+
'desc': '请检查机械臂运动是否受阻,末端负载是否超过机械臂额定负载,机械臂加速度值是否设置过大。如频繁出现,请联系技术支持。',
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
26: {
|
|
142
|
+
'en': {
|
|
143
|
+
'title': 'Joint N Positive Overrun',
|
|
144
|
+
'desc': 'Please check if angle value of the joint N is too large.',
|
|
145
|
+
},
|
|
146
|
+
'cn': {
|
|
147
|
+
'title': '第N关节正向超限',
|
|
148
|
+
'desc': '请检测N关节角度值是否设置过大。',
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
27: {
|
|
152
|
+
'en': {
|
|
153
|
+
'title': 'Joint N Negative Overrun',
|
|
154
|
+
'desc': 'Please check if the angle value of joint N is too large, if so, please click Clear Error and manually unlock the joint and rotate the joint to the allowed range of motion.',
|
|
155
|
+
},
|
|
156
|
+
'cn': {
|
|
157
|
+
'title': '第N关节负向超限',
|
|
158
|
+
'desc': '请检测第N关节角度值是否设置过大,如果是,请点击清除报错后,手动解锁该关节并转动该关节至其运动范围内。',
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
28: {
|
|
162
|
+
'en': {
|
|
163
|
+
'title': 'Joint Commands Error',
|
|
164
|
+
'desc': 'The xArm is not enabled, please click Enable Robot.',
|
|
165
|
+
},
|
|
166
|
+
'cn': {
|
|
167
|
+
'title': '关节指令错误',
|
|
168
|
+
'desc': '机械臂未使能,请点击“使能机械臂”。',
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
33: {
|
|
172
|
+
'en': {
|
|
173
|
+
'title': 'Drive Overloaded',
|
|
174
|
+
'desc': 'Please make sure the payload is within the rated load.',
|
|
175
|
+
},
|
|
176
|
+
'cn': {
|
|
177
|
+
'title': '驱动器过载',
|
|
178
|
+
'desc': '请确保机械臂负载处于额定负载内。',
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
34: {
|
|
182
|
+
'en': {
|
|
183
|
+
'title': 'Motor Overload',
|
|
184
|
+
'desc': 'Please make sure the payload is within the rated load.',
|
|
185
|
+
},
|
|
186
|
+
'cn': {
|
|
187
|
+
'title': '电机过载',
|
|
188
|
+
'desc': '请确保机械臂负载处于额定负载内。',
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
35: {
|
|
192
|
+
'en': {
|
|
193
|
+
'title': 'Motor Type Error',
|
|
194
|
+
'desc': 'Please restart the xArm with the Emergency Stop Button on the xArm Controller. If multiple reboots are not working, please contact technical support.',
|
|
195
|
+
},
|
|
196
|
+
'cn': {
|
|
197
|
+
'title': '电机类型错误',
|
|
198
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持。',
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
36: {
|
|
202
|
+
'en': {
|
|
203
|
+
'title': 'Driver Type Error',
|
|
204
|
+
'desc': 'Please restart the xArm with the Emergency Stop Button on the xArm Controller. If multiple reboots are not working, please contact technical support.',
|
|
205
|
+
},
|
|
206
|
+
'cn': {
|
|
207
|
+
'title': '驱动器类型错误',
|
|
208
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持。',
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
39: {
|
|
212
|
+
'en': {
|
|
213
|
+
'title': 'Joint Voltage Overload',
|
|
214
|
+
'desc': 'Please reduce the acceleration value in the Motion Settings.',
|
|
215
|
+
},
|
|
216
|
+
'cn': {
|
|
217
|
+
'title': '关节过压',
|
|
218
|
+
'desc': '请在运动设置中减少加速度值。',
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
40: {
|
|
222
|
+
'en': {
|
|
223
|
+
'title': 'Joint Voltage Insufficient',
|
|
224
|
+
'desc': 'Please reduce the acceleration value in the Motion Settings.Please check if the controller emergency stop switch is released.',
|
|
225
|
+
},
|
|
226
|
+
'cn': {
|
|
227
|
+
'title': '关节欠压',
|
|
228
|
+
'desc': '请在运动设置中减少加速度值。请检查控制器紧急停止开关是否松开。',
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
49: {
|
|
232
|
+
'en': {
|
|
233
|
+
'title': 'EEPROM Read and Write Error.',
|
|
234
|
+
'desc': 'Please restart the xArm with the Emergency Stop Button on the xArm Controller. If multiple reboots are not working, please contact technical support.',
|
|
235
|
+
},
|
|
236
|
+
'cn': {
|
|
237
|
+
'title': 'EEPROM读写错误',
|
|
238
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持。',
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
52: {
|
|
242
|
+
'en': {
|
|
243
|
+
'title': 'Motor Angle Initialization Error',
|
|
244
|
+
'desc': 'Please restart the xArm with the Emergency Stop Button on the xArm Controller. If multiple reboots are not working, please contact technical support.',
|
|
245
|
+
},
|
|
246
|
+
'cn': {
|
|
247
|
+
'title': '电机角度初始化失败',
|
|
248
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持。',
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
58: {
|
|
252
|
+
'en': {
|
|
253
|
+
'title': 'Torque Command Timeout',
|
|
254
|
+
'desc': 'Please check the connection between the Control Box and the robot.',
|
|
255
|
+
},
|
|
256
|
+
'cn': {
|
|
257
|
+
'title': '转矩指令超时',
|
|
258
|
+
'desc': '请检查控制器与机械臂的连接。',
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
'other': {
|
|
262
|
+
'en': {
|
|
263
|
+
'title': 'Joint Error',
|
|
264
|
+
'desc': 'Please restart the xArm with the Emergency Stop Button on the xArm Controller. If multiple reboots are not working, please contact technical support.',
|
|
265
|
+
},
|
|
266
|
+
'cn': {
|
|
267
|
+
'title': '关节异常',
|
|
268
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持。',
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
'failed': {
|
|
272
|
+
'en': {
|
|
273
|
+
'title': 'Joint Communication failure',
|
|
274
|
+
'desc': 'Please restart the xArm with the Emergency Stop Button on the xArm Controller. If multiple reboots are not working, please contact technical support.',
|
|
275
|
+
},
|
|
276
|
+
'cn': {
|
|
277
|
+
'title': '关节通信失败',
|
|
278
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持。',
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
GripperErrorCodeMap = {
|
|
284
|
+
9: {
|
|
285
|
+
'en': {
|
|
286
|
+
'title': 'Gripper Current Detection Error',
|
|
287
|
+
'desc': 'Please restart the xArm with the Emergency Stop Button on the xArm Controller. If multiple reboots are not working, please contact technical support.',
|
|
288
|
+
},
|
|
289
|
+
'cn': {
|
|
290
|
+
'title': '机械爪电流检测异常',
|
|
291
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持。',
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
11: {
|
|
295
|
+
'en': {
|
|
296
|
+
'title': 'Gripper Current Overlimit',
|
|
297
|
+
'desc': 'Please click “OK” to re-enable the Gripper. If it reports the same error repeatedly, please contact technical support.',
|
|
298
|
+
},
|
|
299
|
+
'cn': {
|
|
300
|
+
'title': '机械爪电流过大',
|
|
301
|
+
'desc': '请点击“确认”重新使能机械爪。如反复报错,请联系技术支持。',
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
12: {
|
|
305
|
+
'en': {
|
|
306
|
+
'title': 'Gripper Speed Overlimit',
|
|
307
|
+
'desc': 'Please click “OK” to re-enable the Gripper. If it reports the same error repeatedly, please contact technical support.',
|
|
308
|
+
},
|
|
309
|
+
'cn': {
|
|
310
|
+
'title': '机械爪速度过大',
|
|
311
|
+
'desc': '请点击“确认”重新使能机械爪。如反复报错,请联系技术支持。',
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
14: {
|
|
315
|
+
'en': {
|
|
316
|
+
'title': 'Gripper Position Command Overlimit',
|
|
317
|
+
'desc': 'Please click “OK” to re-enable the Gripper. If it reports the same error repeatedly, please contact technical support.',
|
|
318
|
+
},
|
|
319
|
+
'cn': {
|
|
320
|
+
'title': '机械爪位置指令过大',
|
|
321
|
+
'desc': '请点击“确认”重新使能机械爪。如反复报错,请联系技术支持。',
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
15: {
|
|
325
|
+
'en': {
|
|
326
|
+
'title': 'Gripper EEPROM Read and Write Error',
|
|
327
|
+
'desc': 'Please click “OK” to re-enable the Gripper. If it reports the same error repeatedly, please contact technical support.',
|
|
328
|
+
},
|
|
329
|
+
'cn': {
|
|
330
|
+
'title': '机械爪EEPROM读写错误',
|
|
331
|
+
'desc': '请点击“确认”重新使能机械爪。如反复报错,请联系技术支持。',
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
20: {
|
|
335
|
+
'en': {
|
|
336
|
+
'title': 'Gripper Driver IC Hardware Error',
|
|
337
|
+
'desc': 'Please click “OK” to re-enable the Gripper. If it reports the same error repeatedly, please contact technical support.',
|
|
338
|
+
},
|
|
339
|
+
'cn': {
|
|
340
|
+
'title': '机械爪驱动IC硬件异常',
|
|
341
|
+
'desc': '请点击“确认”重新使能机械爪。如反复报错,请联系技术支持。',
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
21: {
|
|
345
|
+
'en': {
|
|
346
|
+
'title': 'Gripper Driver IC Initialization Error',
|
|
347
|
+
'desc': 'Please click “OK” to re-enable the Gripper. If it reports the same error repeatedly, please contact technical support.',
|
|
348
|
+
},
|
|
349
|
+
'cn': {
|
|
350
|
+
'title': '机械爪驱动IC初始化异常',
|
|
351
|
+
'desc': '请点击“确认”重新使能机械爪。如反复报错,请联系技术支持。',
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
23: {
|
|
355
|
+
'en': {
|
|
356
|
+
'title': 'Gripper Large Motor Position Deviation',
|
|
357
|
+
'desc': 'Please check if the movement of the Gripper is blocked, if not, please click “OK” to re-enable the Gripper. If it reports the same error repeatedly, please contact technical support.',
|
|
358
|
+
},
|
|
359
|
+
'cn': {
|
|
360
|
+
'title': '机械爪电机位置偏差过大',
|
|
361
|
+
'desc': '请检查机械爪运动是否受阻,如机械爪运动未受阻,请点击“确认”重新使能机械爪。如频繁出现,请联系技术支持。',
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
25: {
|
|
365
|
+
'en': {
|
|
366
|
+
'title': 'Gripper Command Over Software Limit',
|
|
367
|
+
'desc': 'Please check if the gripper command is set beyond the software limit. If it reports the same error repeatedly, please contact technical support.',
|
|
368
|
+
},
|
|
369
|
+
'cn': {
|
|
370
|
+
'title': '机械爪指令超软件限位',
|
|
371
|
+
'desc': '请检测机械爪指令是否设置超出软件限制。如频繁出现,请联系技术支持。',
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
26: {
|
|
375
|
+
'en': {
|
|
376
|
+
'title': 'Gripper Feedback Position Software Limit',
|
|
377
|
+
'desc': 'Please contact technical support.',
|
|
378
|
+
},
|
|
379
|
+
'cn': {
|
|
380
|
+
'title': '机械爪反馈位置超限软件限位',
|
|
381
|
+
'desc': '请联系技术支持。',
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
33: {
|
|
385
|
+
'en': {
|
|
386
|
+
'title': 'Gripper Drive Overloaded',
|
|
387
|
+
'desc': 'Please contact technical support.',
|
|
388
|
+
},
|
|
389
|
+
'cn': {
|
|
390
|
+
'title': '机械爪驱动器过载',
|
|
391
|
+
'desc': '请联系技术支持。',
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
34: {
|
|
395
|
+
'en': {
|
|
396
|
+
'title': 'Gripper Motor Overload',
|
|
397
|
+
'desc': 'Please contact technical support.',
|
|
398
|
+
},
|
|
399
|
+
'cn': {
|
|
400
|
+
'title': '机械爪电机过载',
|
|
401
|
+
'desc': '请联系技术支持。',
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
36: {
|
|
405
|
+
'en': {
|
|
406
|
+
'title': 'Gripper Driver Type Error',
|
|
407
|
+
'desc': 'Please click “OK” to re-enable the Gripper. If it reports the same error repeatedly, please contact technical support.',
|
|
408
|
+
},
|
|
409
|
+
'cn': {
|
|
410
|
+
'title': '机械爪驱动器类型错误',
|
|
411
|
+
'desc': '请点击“确认”重新使能机械爪。如频繁出现,请联系技术支持。',
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
'other': {
|
|
415
|
+
'en': {
|
|
416
|
+
'title': 'Gripper Error',
|
|
417
|
+
'desc': 'Please click “OK” to re-enable the Gripper. If it reports the same error repeatedly, please contact technical support.',
|
|
418
|
+
},
|
|
419
|
+
'cn': {
|
|
420
|
+
'title': '机械爪异常',
|
|
421
|
+
'desc': '请点击“确认”重新使能机械爪。如频繁出现,请联系技术支持。',
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
'failed': {
|
|
425
|
+
'en': {
|
|
426
|
+
'title': 'Gripper Communication failure',
|
|
427
|
+
'desc': 'Please confirm that the mechanical grip is properly installed, or cancel the installation of the mechanical claws on the software.',
|
|
428
|
+
},
|
|
429
|
+
'cn': {
|
|
430
|
+
'title': '机械爪通信失败',
|
|
431
|
+
'desc': '请确认机械爪正确安装,或在软件上取消机械爪的安装',
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
ControllerErrorCodeMap = {
|
|
437
|
+
1: {
|
|
438
|
+
'en': {
|
|
439
|
+
'title': 'The Emergency Stop Button on the xArm Controller is pushed in to stop',
|
|
440
|
+
'desc': 'Please release the Emergency Stop Button, and then re-enable the robot'
|
|
441
|
+
},
|
|
442
|
+
'cn': {
|
|
443
|
+
'title': '控制器上的紧急停止按钮被按下',
|
|
444
|
+
'desc': '请释放紧急停止按钮,然后重新使能机械臂'
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
2: {
|
|
448
|
+
'en': {
|
|
449
|
+
'title': 'The Emergency IO of the Control Box is triggered',
|
|
450
|
+
'desc': 'Please ground the 2 EIs of the Control Box, and then re-enable the robot'
|
|
451
|
+
},
|
|
452
|
+
'cn': {
|
|
453
|
+
'title': '控制器上的紧急停止IO被触发',
|
|
454
|
+
'desc': '请将控制器的2组EI接地,然后重新使能机械臂'
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
3: {
|
|
458
|
+
'en': {
|
|
459
|
+
'title': 'The Emergency Stop Button of the Three-state Switch is pressed',
|
|
460
|
+
'desc': 'Please release the Emergency Stop Button of the Three-state Switch, and then re-enable the robot'
|
|
461
|
+
},
|
|
462
|
+
'cn': {
|
|
463
|
+
'title': '三态开关的紧急停止按钮被按下',
|
|
464
|
+
'desc': '请释放三态开关的紧急停止按钮,然后重新使能机械臂'
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
10: {
|
|
468
|
+
'en': {
|
|
469
|
+
'title': 'Servo motor error',
|
|
470
|
+
'desc': ''
|
|
471
|
+
},
|
|
472
|
+
'cn': {
|
|
473
|
+
'title': '关节错误',
|
|
474
|
+
'desc': ''
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
11: {
|
|
478
|
+
'en': {
|
|
479
|
+
'title': 'Servo motor 1 error',
|
|
480
|
+
'desc': ''
|
|
481
|
+
},
|
|
482
|
+
'cn': {
|
|
483
|
+
'title': '关节1错误',
|
|
484
|
+
'desc': ''
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
12: {
|
|
488
|
+
'en': {
|
|
489
|
+
'title': 'Servo motor 2 error',
|
|
490
|
+
'desc': ''
|
|
491
|
+
},
|
|
492
|
+
'cn': {
|
|
493
|
+
'title': '关节2错误',
|
|
494
|
+
'desc': ''
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
13: {
|
|
498
|
+
'en': {
|
|
499
|
+
'title': 'Servo motor 3 error',
|
|
500
|
+
'desc': ''
|
|
501
|
+
},
|
|
502
|
+
'cn': {
|
|
503
|
+
'title': '关节3错误',
|
|
504
|
+
'desc': ''
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
14: {
|
|
508
|
+
'en': {
|
|
509
|
+
'title': 'Servo motor 4 error',
|
|
510
|
+
'desc': ''
|
|
511
|
+
},
|
|
512
|
+
'cn': {
|
|
513
|
+
'title': '关节4错误',
|
|
514
|
+
'desc': ''
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
15: {
|
|
518
|
+
'en': {
|
|
519
|
+
'title': 'Servo motor 5 error',
|
|
520
|
+
'desc': ''
|
|
521
|
+
},
|
|
522
|
+
'cn': {
|
|
523
|
+
'title': '关节5错误',
|
|
524
|
+
'desc': ''
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
16: {
|
|
528
|
+
'en': {
|
|
529
|
+
'title': 'Servo motor 6 error',
|
|
530
|
+
'desc': ''
|
|
531
|
+
},
|
|
532
|
+
'cn': {
|
|
533
|
+
'title': '关节6错误',
|
|
534
|
+
'desc': ''
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
17: {
|
|
538
|
+
'en': {
|
|
539
|
+
'title': 'Servo motor 7 error',
|
|
540
|
+
'desc': ''
|
|
541
|
+
},
|
|
542
|
+
'cn': {
|
|
543
|
+
'title': '关节7错误',
|
|
544
|
+
'desc': ''
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
18: {
|
|
548
|
+
'en': {
|
|
549
|
+
'title': 'Force Torque Sensor Communication Error',
|
|
550
|
+
'desc': 'Please check whether the force torque sensor is installed.'
|
|
551
|
+
},
|
|
552
|
+
'cn': {
|
|
553
|
+
'title': '力矩传感器通信失败',
|
|
554
|
+
'desc': '请检查力矩传感器是否安装'
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
19: {
|
|
558
|
+
'en': {
|
|
559
|
+
'title': 'End Effector Communication Error',
|
|
560
|
+
'desc': 'Please check whether end effector is installed and the baud rate setting is correct'
|
|
561
|
+
},
|
|
562
|
+
'cn': {
|
|
563
|
+
'title': '末端工具通信失败',
|
|
564
|
+
'desc': '请检查末端工具是否安装,波特率设置是否正确'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
21: {
|
|
568
|
+
'en': {
|
|
569
|
+
'title': 'Kinematic Error',
|
|
570
|
+
'desc': 'Please re-plan the path.'
|
|
571
|
+
},
|
|
572
|
+
'cn': {
|
|
573
|
+
'title': '运动学错误',
|
|
574
|
+
'desc': '请重新规划路径。'
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
22: {
|
|
578
|
+
'en': {
|
|
579
|
+
'title': 'Self-Collision Error',
|
|
580
|
+
'desc': 'The robot is about to collide with itself. Please re-plan the path. If the robot reports the self-collision error continually, please turn on the manual mode and drag the robotic back to the normal area.'
|
|
581
|
+
},
|
|
582
|
+
'cn': {
|
|
583
|
+
'title': '自碰撞错误',
|
|
584
|
+
'desc': '机械臂即将发生自碰撞,请重新规划路径。如果机械臂持续报自碰撞错误,请开启手动模式将机械臂拖回正常位置。'
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
23: {
|
|
588
|
+
'en': {
|
|
589
|
+
'title': 'Joints Angle Exceed Limit',
|
|
590
|
+
'desc': 'Please go to the "Live Control" page and press the "INITIAL POSITION" button to let the robot go to the initial position.'
|
|
591
|
+
},
|
|
592
|
+
'cn': {
|
|
593
|
+
'title': '关节角度超出限制',
|
|
594
|
+
'desc': '请到”实时控制“界面按住”初始点“按钮让机械臂回到初始点。'
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
24: {
|
|
598
|
+
'en': {
|
|
599
|
+
'title': 'Speed Exceeds Limit',
|
|
600
|
+
'desc': 'Please check if the xArm is out of working range, or reduce the speed and acceleration values.'
|
|
601
|
+
},
|
|
602
|
+
'cn': {
|
|
603
|
+
'title': '速度超出限制',
|
|
604
|
+
'desc': '请检查机械臂是否超出运动范围,或减小运动速度和加速度值。'
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
25: {
|
|
608
|
+
'en': {
|
|
609
|
+
'title': 'Planning Error',
|
|
610
|
+
'desc': 'Please re-plan the path or reduce the speed.'
|
|
611
|
+
},
|
|
612
|
+
'cn': {
|
|
613
|
+
'title': '规划错误',
|
|
614
|
+
'desc': '请重新规划路径或者减小运动速度。'
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
26: {
|
|
618
|
+
'en': {
|
|
619
|
+
'title': 'Linux RT Error',
|
|
620
|
+
'desc': 'Please contact technical support.'
|
|
621
|
+
},
|
|
622
|
+
'cn': {
|
|
623
|
+
'title': 'Linux RT 错误',
|
|
624
|
+
'desc': '请联系技术支持。'
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
27: {
|
|
628
|
+
'en': {
|
|
629
|
+
'title': 'Command Reply Error',
|
|
630
|
+
'desc': 'Pleas retry, or restart the xArm with the Emergency Stop Button on the xArm Controller. If multiple reboots are not working, please contact technical support.'
|
|
631
|
+
},
|
|
632
|
+
'cn': {
|
|
633
|
+
'title': '回复指令错误 ',
|
|
634
|
+
'desc': '请重试,或通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持。'
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
28: {
|
|
638
|
+
'en': {
|
|
639
|
+
'title': 'End Module Communication Error',
|
|
640
|
+
'desc': 'Please restart the xArm with the Emergency Stop Button on the Control Box. If multiple reboots are not working, please contact technical support.'
|
|
641
|
+
},
|
|
642
|
+
'cn': {
|
|
643
|
+
'title': '末端通信失败',
|
|
644
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持。'
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
30: {
|
|
648
|
+
'en': {
|
|
649
|
+
'title': 'Feedback Speed Exceeds limit',
|
|
650
|
+
'desc': 'Please contact technical support.'
|
|
651
|
+
},
|
|
652
|
+
'cn': {
|
|
653
|
+
'title': '反馈速度超出限制',
|
|
654
|
+
'desc': '请联系技术支持。'
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
31: {
|
|
658
|
+
'en': {
|
|
659
|
+
'title': 'Collision Caused Abnormal Current',
|
|
660
|
+
'desc': 'Please check for collisions, check that the payload settings are correct, and that the collision sensitivity matches the speed.'
|
|
661
|
+
},
|
|
662
|
+
'cn': {
|
|
663
|
+
'title': '碰撞导致电流异常',
|
|
664
|
+
'desc': '请检查是否碰撞、负载设置是否正确,碰撞灵敏度与速度是否匹配。'
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
32: {
|
|
668
|
+
'en': {
|
|
669
|
+
'title': 'Three-point drawing circle calculation error',
|
|
670
|
+
'desc': 'Three-point drawing circle calculation error, please reset the arc command.'
|
|
671
|
+
},
|
|
672
|
+
'cn': {
|
|
673
|
+
'title': '三点圆弧指令计算出错',
|
|
674
|
+
'desc': '三点圆弧指令计算出错,请重新设置圆弧指令。'
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
33: {
|
|
678
|
+
'en': {
|
|
679
|
+
'title': 'Controller GPIO Error',
|
|
680
|
+
'desc': 'Please check the connection of the controller GPIO module and power on and off again. If the error occurs repeatedly, please contact technical support.'
|
|
681
|
+
},
|
|
682
|
+
'cn': {
|
|
683
|
+
'title': '控制器GPIO模块报错',
|
|
684
|
+
'desc': '请检查控制器GPIO模块的连接,并重新上下电。如该错误反复出现,请联系技术支持。'
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
34: {
|
|
688
|
+
'en': {
|
|
689
|
+
'title': 'Recording Timeout',
|
|
690
|
+
'desc': 'The track recording duration exceeds the maximum duration limit of 5 minutes. It is recommended to re-record.'
|
|
691
|
+
},
|
|
692
|
+
'cn': {
|
|
693
|
+
'title': '轨迹录制超时',
|
|
694
|
+
'desc': '轨迹录制时间超过最大限制5分钟,建议重新录制。'
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
35: {
|
|
698
|
+
'en': {
|
|
699
|
+
'title': 'Safety Boundary Limit',
|
|
700
|
+
'desc': 'The xArm reaches the safety boundary. Please move the xArm to the safety boundary after turning on the Manual mode on the Live Control interface.'
|
|
701
|
+
},
|
|
702
|
+
'cn': {
|
|
703
|
+
'title': '机械臂到达安全边界',
|
|
704
|
+
'desc': '机械臂到达安全边界,请到实时控制界面开启手动模式后将机械臂移动到安全边界内。'
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
36: {
|
|
708
|
+
'en': {
|
|
709
|
+
'title': 'The number of delay commands exceeds the limit',
|
|
710
|
+
'desc': 'The number of delay commands or position detection commands to be executed cannot exceed 36, please check whether there are too many delay commands or position detection commands in the code.'
|
|
711
|
+
},
|
|
712
|
+
'cn': {
|
|
713
|
+
'title': '延时指令数量超限',
|
|
714
|
+
'desc': '待执行的延时指令或位置检测指令超过36个,请检查代码中延时指令或位置检测指令是否过多。'
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
37: {
|
|
718
|
+
'en': {
|
|
719
|
+
'title': 'Abnormal movement in Manual Mode',
|
|
720
|
+
'desc': 'Please check whether the TCP payload setting and mounting setting of the robot arm are correct.'
|
|
721
|
+
},
|
|
722
|
+
'cn': {
|
|
723
|
+
'title': '手动模式运动异常',
|
|
724
|
+
'desc': '请检查机械臂的TCP负载设置和机械臂安装方式是否与实际匹配。'
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
38: {
|
|
728
|
+
'en': {
|
|
729
|
+
'title': 'Abnormal Joint Angle',
|
|
730
|
+
'desc': 'Please stop the xArm by pressing the Emergency Stop Button on the Control Box and then contact technical support.'
|
|
731
|
+
},
|
|
732
|
+
'cn': {
|
|
733
|
+
'title': '关节角度异常',
|
|
734
|
+
'desc': '请通过控制器上的紧急停止按钮停止机械臂,并联系技术支持。'
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
39: {
|
|
738
|
+
'en': {
|
|
739
|
+
'title': 'Abnormal Communication Between Master and Slave IC of Power Board',
|
|
740
|
+
'desc': 'Please contact technical support'
|
|
741
|
+
},
|
|
742
|
+
'cn': {
|
|
743
|
+
'title': '电源板主从IC通信异常',
|
|
744
|
+
'desc': '请联系技术支持。'
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
40: {
|
|
748
|
+
'en': {
|
|
749
|
+
'title': 'Solution failure of error-free joint trajectory',
|
|
750
|
+
'desc': 'Please adjust the position.'
|
|
751
|
+
},
|
|
752
|
+
'cn': {
|
|
753
|
+
'title': '无报错的关节轨迹求解失败',
|
|
754
|
+
'desc': '请调整点位。'
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
41: {
|
|
758
|
+
'en': {
|
|
759
|
+
'title': 'The content of the friction file is invalid.',
|
|
760
|
+
'desc': 'Please restart the robot with the Emergency Stop Button on the Control Box. If multiple reboots do not work, please contact technical support.'
|
|
761
|
+
},
|
|
762
|
+
'cn': {
|
|
763
|
+
'title': '摩擦力文件内容无效。',
|
|
764
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持'
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
42: {
|
|
768
|
+
'en': {
|
|
769
|
+
'title': 'The content of the calibration file is invalid.',
|
|
770
|
+
'desc': 'Please restart the robot with the Emergency Stop Button on the Control Box. If multiple reboots do not work, please contact technical support.'
|
|
771
|
+
},
|
|
772
|
+
'cn': {
|
|
773
|
+
'title': '校准文件内容无效。',
|
|
774
|
+
'desc': '请通过控制器上的紧急停止按钮重启机械臂。如多次重启无效,请联系技术支持'
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
50: {
|
|
778
|
+
'en': {
|
|
779
|
+
'title': 'Six-axis Force Torque Sensor read error',
|
|
780
|
+
'desc': ''
|
|
781
|
+
},
|
|
782
|
+
'cn': {
|
|
783
|
+
'title': '六维力矩传感器读取数据错误',
|
|
784
|
+
'desc': ''
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
51: {
|
|
788
|
+
'en': {
|
|
789
|
+
'title': 'Six-axis Force Torque Sensor set mode error',
|
|
790
|
+
'desc': ''
|
|
791
|
+
},
|
|
792
|
+
'cn': {
|
|
793
|
+
'title': '六维力矩传感器设置模式错误',
|
|
794
|
+
'desc': ''
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
52: {
|
|
798
|
+
'en': {
|
|
799
|
+
'title': 'Six-axis Force Torque Sensor set zero error',
|
|
800
|
+
'desc': ''
|
|
801
|
+
},
|
|
802
|
+
'cn': {
|
|
803
|
+
'title': '六维力矩传感器设置零点错误',
|
|
804
|
+
'desc': ''
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
53: {
|
|
808
|
+
'en': {
|
|
809
|
+
'title': 'Six-axis Force Torque Sensor is overloaded or the reading exceeds the limit',
|
|
810
|
+
'desc': ''
|
|
811
|
+
},
|
|
812
|
+
'cn': {
|
|
813
|
+
'title': '六维力矩传感器过载或读数超限',
|
|
814
|
+
'desc': ''
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
60: {
|
|
818
|
+
'en': {
|
|
819
|
+
'title': 'Linear speed exceeded limit in servo_j mode.',
|
|
820
|
+
'desc': 'Linear speed limit is {} mm/s, current linear speed {} mm/s.'
|
|
821
|
+
},
|
|
822
|
+
'cn': {
|
|
823
|
+
'title': '关节伺服模式线速度超过限制',
|
|
824
|
+
'desc': '线速度限制值{}mm/s,当前线速度{}mm/s'
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
110: {
|
|
828
|
+
'en': {
|
|
829
|
+
'title': 'Robot Arm Base Board Communication Error',
|
|
830
|
+
'desc': 'Please contact technical support.'
|
|
831
|
+
},
|
|
832
|
+
'cn': {
|
|
833
|
+
'title': '机械臂底座板通信异常',
|
|
834
|
+
'desc': '请联系技术支持。'
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
111: {
|
|
838
|
+
'en': {
|
|
839
|
+
'title': 'Control Box External 485 Device Communication Error',
|
|
840
|
+
'desc': 'Please contact technical support.'
|
|
841
|
+
},
|
|
842
|
+
'cn': {
|
|
843
|
+
'title': '控制器外接485设备通信异常',
|
|
844
|
+
'desc': '请联系技术支持。'
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
'other': {
|
|
848
|
+
'en': {
|
|
849
|
+
'title': 'Other Errors',
|
|
850
|
+
'desc': ''
|
|
851
|
+
},
|
|
852
|
+
'cn': {
|
|
853
|
+
'title': '其他错误',
|
|
854
|
+
'desc': ''
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
ControllerWarnCodeMap = {
|
|
860
|
+
11: {
|
|
861
|
+
'en': {
|
|
862
|
+
'title': 'Current controller cache is full',
|
|
863
|
+
'desc': ''
|
|
864
|
+
},
|
|
865
|
+
'cn': {
|
|
866
|
+
'title': '当前控制器缓存已满',
|
|
867
|
+
'desc': ''
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
12: {
|
|
871
|
+
'en': {
|
|
872
|
+
'title': 'User instruction parameter error',
|
|
873
|
+
'desc': ''
|
|
874
|
+
},
|
|
875
|
+
'cn': {
|
|
876
|
+
'title': '用户指令参数错误',
|
|
877
|
+
'desc': ''
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
13: {
|
|
881
|
+
'en': {
|
|
882
|
+
'title': 'User command control code does not exist',
|
|
883
|
+
'desc': ''
|
|
884
|
+
},
|
|
885
|
+
'cn': {
|
|
886
|
+
'title': '用户指令控制码不存在',
|
|
887
|
+
'desc': ''
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
14: {
|
|
891
|
+
'en': {
|
|
892
|
+
'title': 'User instructions and parameters have no solution',
|
|
893
|
+
'desc': ''
|
|
894
|
+
},
|
|
895
|
+
'cn': {
|
|
896
|
+
'title': '用户指令和参数无解',
|
|
897
|
+
'desc': ''
|
|
898
|
+
}
|
|
899
|
+
},
|
|
900
|
+
15: {
|
|
901
|
+
'en': {
|
|
902
|
+
'title': 'Modbus cmd full',
|
|
903
|
+
'desc': ''
|
|
904
|
+
},
|
|
905
|
+
'cn': {
|
|
906
|
+
'title': 'Modbus指令已满',
|
|
907
|
+
'desc': ''
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
'other': {
|
|
911
|
+
'en': {
|
|
912
|
+
'title': 'Other Warnings',
|
|
913
|
+
'desc': ''
|
|
914
|
+
},
|
|
915
|
+
'cn': {
|
|
916
|
+
'title': '其它警告',
|
|
917
|
+
'desc': ''
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
RobotiqErrorCodeMap = {
|
|
924
|
+
0x05: {
|
|
925
|
+
'en': {
|
|
926
|
+
'title': 'Robotiq Gripper',
|
|
927
|
+
'desc': 'Action delayed, activation(reactivation) must be completed prior to perfmoring the action'
|
|
928
|
+
},
|
|
929
|
+
'cn': {
|
|
930
|
+
'title': 'Robotiq 机械爪',
|
|
931
|
+
'desc': '运动延迟, 机械爪运动之前必须先完成激活(重新激活)'
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
0x07: {
|
|
935
|
+
'en': {
|
|
936
|
+
'title': 'Robotiq Gripper',
|
|
937
|
+
'desc': 'The activation bit must be set prior to action'
|
|
938
|
+
},
|
|
939
|
+
'cn': {
|
|
940
|
+
'title': 'Robotiq 机械爪',
|
|
941
|
+
'desc': '激活位必须在机械爪运动前设置'
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
0x08: {
|
|
945
|
+
'en': {
|
|
946
|
+
'title': 'Robotiq Gripper',
|
|
947
|
+
'desc': 'Maximum operating temperature exceeded, wait for cool-down.'
|
|
948
|
+
},
|
|
949
|
+
'cn': {
|
|
950
|
+
'title': 'Robotiq 机械爪',
|
|
951
|
+
'desc': '超过最高工作温度,请等待机械爪冷却'
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
0x09: {
|
|
955
|
+
'en': {
|
|
956
|
+
'title': 'Robotiq Gripper',
|
|
957
|
+
'desc': 'No communication during at least 1 second'
|
|
958
|
+
},
|
|
959
|
+
'cn': {
|
|
960
|
+
'title': 'Robotiq 机械爪',
|
|
961
|
+
'desc': '通信中断超过1秒'
|
|
962
|
+
}
|
|
963
|
+
},
|
|
964
|
+
0x0A: {
|
|
965
|
+
'en': {
|
|
966
|
+
'title': 'Robotiq Gripper',
|
|
967
|
+
'desc': 'Under minimum operating voltage'
|
|
968
|
+
},
|
|
969
|
+
'cn': {
|
|
970
|
+
'title': 'Robotiq 机械爪',
|
|
971
|
+
'desc': '低于最小工作电压'
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
0x0B: {
|
|
975
|
+
'en': {
|
|
976
|
+
'title': 'Robotiq Gripper',
|
|
977
|
+
'desc': 'Automatic release in progress'
|
|
978
|
+
},
|
|
979
|
+
'cn': {
|
|
980
|
+
'title': 'Robotiq 机械爪',
|
|
981
|
+
'desc': '正在自动释放'
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
0x0C: {
|
|
985
|
+
'en': {
|
|
986
|
+
'title': 'Robotiq Gripper',
|
|
987
|
+
'desc': 'Internal fault, please contact support@robotiq.com'
|
|
988
|
+
},
|
|
989
|
+
'cn': {
|
|
990
|
+
'title': 'Robotiq 机械爪',
|
|
991
|
+
'desc': '内部故障,请联系技术支持 support@robotiq.com'
|
|
992
|
+
}
|
|
993
|
+
},
|
|
994
|
+
0x0D: {
|
|
995
|
+
'en': {
|
|
996
|
+
'title': 'Robotiq Gripper',
|
|
997
|
+
'desc': 'Activation fault, please verify that no interference or other erroro ccurred'
|
|
998
|
+
},
|
|
999
|
+
'cn': {
|
|
1000
|
+
'title': 'Robotiq 机械爪',
|
|
1001
|
+
'desc': '激活故障,请确认没有干扰或其他错误发生'
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
0x0E: {
|
|
1005
|
+
'en': {
|
|
1006
|
+
'title': 'Robotiq Gripper',
|
|
1007
|
+
'desc': 'Over current triggered'
|
|
1008
|
+
},
|
|
1009
|
+
'cn': {
|
|
1010
|
+
'title': 'Robotiq 机械爪',
|
|
1011
|
+
'desc': '过流'
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
0x0F: {
|
|
1015
|
+
'en': {
|
|
1016
|
+
'title': 'Robotiq Gripper',
|
|
1017
|
+
'desc': 'Automatic release completed'
|
|
1018
|
+
},
|
|
1019
|
+
'cn': {
|
|
1020
|
+
'title': 'Robotiq 机械爪',
|
|
1021
|
+
'desc': '自动松开完成'
|
|
1022
|
+
}
|
|
1023
|
+
},
|
|
1024
|
+
'other': {
|
|
1025
|
+
'en': {
|
|
1026
|
+
'title': 'Robotiq Gripper',
|
|
1027
|
+
'desc': 'Other fault'
|
|
1028
|
+
},
|
|
1029
|
+
'cn': {
|
|
1030
|
+
'title': 'Robotiq 机械爪',
|
|
1031
|
+
'desc': '其它故障'
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
BioGripperErrorCodeMap = {
|
|
1038
|
+
0x0B: {
|
|
1039
|
+
'en': {
|
|
1040
|
+
'title': 'BIO Gripper Current Overlimit',
|
|
1041
|
+
'desc': 'Current Overlimit, please click “OK” to re-enable the Gripper. If it reports the same error repeatedly, please contact technical support.',
|
|
1042
|
+
},
|
|
1043
|
+
'cn': {
|
|
1044
|
+
'title': 'BIO 机械爪过流',
|
|
1045
|
+
'desc': '电流过大,请点击“确认”重新使能机械爪。如反复报错,请联系技术支持。',
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
0x0C: {
|
|
1049
|
+
'en': {
|
|
1050
|
+
'title': 'The object slipped from the BIO Gripper',
|
|
1051
|
+
'desc': 'The object slipped from the BIO Gripper, please clear the error and try again',
|
|
1052
|
+
},
|
|
1053
|
+
'cn': {
|
|
1054
|
+
'title': 'BIO 机械爪夹取的物体脱落',
|
|
1055
|
+
'desc': 'BIO 机械爪夹取的物体脱落,请清除错误后重试',
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
'other': {
|
|
1059
|
+
'en': {
|
|
1060
|
+
'title': 'BIO Gripper',
|
|
1061
|
+
'desc': 'Other fault'
|
|
1062
|
+
},
|
|
1063
|
+
'cn': {
|
|
1064
|
+
'title': 'BIO 机械爪',
|
|
1065
|
+
'desc': '其它故障'
|
|
1066
|
+
}
|
|
1067
|
+
},
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
LinearTrackErrorCodeMap = {
|
|
1071
|
+
10: {
|
|
1072
|
+
'en': {
|
|
1073
|
+
'title': 'Linear Motor Current Detection Error',
|
|
1074
|
+
'desc': 'Please restart the Controller. If multiple reboots are not working, please contact technical support.',
|
|
1075
|
+
},
|
|
1076
|
+
'cn': {
|
|
1077
|
+
'title': '直线滑轨电流检测异常',
|
|
1078
|
+
'desc': '请重启控制器。如多次重启无效,请联系技术支持。',
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
11: {
|
|
1082
|
+
'en': {
|
|
1083
|
+
'title': 'Linear Motor Current Overlimit',
|
|
1084
|
+
'desc': 'Please clear the Linear Motor error. If it reports the same error repeatedly, please contact technical support.',
|
|
1085
|
+
},
|
|
1086
|
+
'cn': {
|
|
1087
|
+
'title': '直线滑轨电流过大',
|
|
1088
|
+
'desc': '请清除直线滑轨报错。如反复报错,请联系技术支持。',
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
12: {
|
|
1092
|
+
'en': {
|
|
1093
|
+
'title': 'Linear Motor Speed Overlimit',
|
|
1094
|
+
'desc': 'Please clear the Linear Motor error. If it reports the same error repeatedly, please contact technical support.',
|
|
1095
|
+
},
|
|
1096
|
+
'cn': {
|
|
1097
|
+
'title': '直线滑轨速度过大',
|
|
1098
|
+
'desc': '请清除直线滑轨报错。如反复报错,请联系技术支持。',
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
13: {
|
|
1102
|
+
'en': {
|
|
1103
|
+
'title': 'Linear Motor Large Motor Position Deviation',
|
|
1104
|
+
'desc': 'Please check if the movement of the Linear Motor is blocked, if not, please clear the Linear Motor error. If it reports the same error repeatedly, please contact technical support.',
|
|
1105
|
+
},
|
|
1106
|
+
'cn': {
|
|
1107
|
+
'title': '直线滑轨电机位置偏差过大',
|
|
1108
|
+
'desc': '请检查直线滑轨运动是否受阻,如直线滑轨运动未受阻,请清除直线滑轨报错。如反复报错,请联系技术支持。',
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
14: {
|
|
1112
|
+
'en': {
|
|
1113
|
+
'title': 'Linear Motor Position Command Overlimit',
|
|
1114
|
+
'desc': 'Please clear the Linear Motor error. If it reports the same error repeatedly, please contact technical support.',
|
|
1115
|
+
},
|
|
1116
|
+
'cn': {
|
|
1117
|
+
'title': '直线滑轨位置指令过大',
|
|
1118
|
+
'desc': '请清除直线滑轨报错。如反复报错,请联系技术支持。',
|
|
1119
|
+
}
|
|
1120
|
+
},
|
|
1121
|
+
20: {
|
|
1122
|
+
'en': {
|
|
1123
|
+
'title': 'Linear Motor Driver IC Hardware Error',
|
|
1124
|
+
'desc': 'Please clear the Linear Motor error. If it reports the same error repeatedly, please contact technical support.',
|
|
1125
|
+
},
|
|
1126
|
+
'cn': {
|
|
1127
|
+
'title': '直线滑轨驱动IC硬件异常',
|
|
1128
|
+
'desc': '请清除直线滑轨报错。如反复报错,请联系技术支持。',
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
21: {
|
|
1132
|
+
'en': {
|
|
1133
|
+
'title': 'Linear Motor Driver IC Initialization Error',
|
|
1134
|
+
'desc': 'Please clear the Linear Motor error. If it reports the same error repeatedly, please contact technical support.',
|
|
1135
|
+
},
|
|
1136
|
+
'cn': {
|
|
1137
|
+
'title': '直线滑轨驱动IC初始化异常',
|
|
1138
|
+
'desc': '请清除直线滑轨报错。如反复报错,请联系技术支持。',
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
25: {
|
|
1142
|
+
'en': {
|
|
1143
|
+
'title': 'Linear Motor Command Over Software Limit',
|
|
1144
|
+
'desc': 'Please check if the Linear Motor command is set beyond the software limit. If it reports the same error repeatedly, please contact technical support.',
|
|
1145
|
+
},
|
|
1146
|
+
'cn': {
|
|
1147
|
+
'title': '直线滑轨指令超软件限位',
|
|
1148
|
+
'desc': '请检测直线滑轨指令是否设置超出软件限制。如频繁出现,请联系技术支持。',
|
|
1149
|
+
}
|
|
1150
|
+
},
|
|
1151
|
+
26: {
|
|
1152
|
+
'en': {
|
|
1153
|
+
'title': 'Linear Motor Feedback Position Software Limit',
|
|
1154
|
+
'desc': 'Please contact technical support.',
|
|
1155
|
+
},
|
|
1156
|
+
'cn': {
|
|
1157
|
+
'title': '直线滑轨反馈位置超限软件限位',
|
|
1158
|
+
'desc': '请联系技术支持。',
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
33: {
|
|
1162
|
+
'en': {
|
|
1163
|
+
'title': 'Linear Motor Drive Overloaded',
|
|
1164
|
+
'desc': 'Please contact technical support.',
|
|
1165
|
+
},
|
|
1166
|
+
'cn': {
|
|
1167
|
+
'title': '直线滑轨驱动器过载',
|
|
1168
|
+
'desc': '请联系技术支持。',
|
|
1169
|
+
}
|
|
1170
|
+
},
|
|
1171
|
+
34: {
|
|
1172
|
+
'en': {
|
|
1173
|
+
'title': 'Linear Motor Motor Overload',
|
|
1174
|
+
'desc': 'Please contact technical support.',
|
|
1175
|
+
},
|
|
1176
|
+
'cn': {
|
|
1177
|
+
'title': '直线滑轨电机过载',
|
|
1178
|
+
'desc': '请联系技术支持。',
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
35: {
|
|
1182
|
+
'en': {
|
|
1183
|
+
'title': 'Linear Motor type error',
|
|
1184
|
+
'desc': 'Please contact technical support.',
|
|
1185
|
+
},
|
|
1186
|
+
'cn': {
|
|
1187
|
+
'title': '直线滑轨电机类型错误',
|
|
1188
|
+
'desc': '请联系技术支持。',
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
1191
|
+
36: {
|
|
1192
|
+
'en': {
|
|
1193
|
+
'title': 'Linear Motor Driver Type Error',
|
|
1194
|
+
'desc': 'Please clear the Linear Motor error. If it reports the same error repeatedly, please contact technical support.',
|
|
1195
|
+
},
|
|
1196
|
+
'cn': {
|
|
1197
|
+
'title': '直线滑轨驱动器类型错误',
|
|
1198
|
+
'desc': '请清除直线滑轨报错。如反复报错,请联系技术支持。',
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
39: {
|
|
1202
|
+
'en': {
|
|
1203
|
+
'title': 'Linear Motor over voltage',
|
|
1204
|
+
'desc': 'please contact technical support.',
|
|
1205
|
+
},
|
|
1206
|
+
'cn': {
|
|
1207
|
+
'title': '直线滑轨过压',
|
|
1208
|
+
'desc': '请联系技术支持。',
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
40: {
|
|
1212
|
+
'en': {
|
|
1213
|
+
'title': 'Linear Moter undervoltage',
|
|
1214
|
+
'desc': 'please contact technical support.',
|
|
1215
|
+
},
|
|
1216
|
+
'cn': {
|
|
1217
|
+
'title': '直线滑轨欠压',
|
|
1218
|
+
'desc': '请联系技术支持。',
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1221
|
+
49: {
|
|
1222
|
+
'en': {
|
|
1223
|
+
'title': 'Linear Motor EEPROM Read and Write Error',
|
|
1224
|
+
'desc': 'Please clear the Linear Motor error. If it reports the same error repeatedly, please contact technical support.',
|
|
1225
|
+
},
|
|
1226
|
+
'cn': {
|
|
1227
|
+
'title': '直线滑轨EEPROM读写错误',
|
|
1228
|
+
'desc': '请清除直线滑轨报错。如反复报错,请联系技术支持。',
|
|
1229
|
+
}
|
|
1230
|
+
},
|
|
1231
|
+
'other': {
|
|
1232
|
+
'en': {
|
|
1233
|
+
'title': 'Linear Motor Error',
|
|
1234
|
+
'desc': 'Please clear the Linear Motor error. If it reports the same error repeatedly, please contact technical support.',
|
|
1235
|
+
},
|
|
1236
|
+
'cn': {
|
|
1237
|
+
'title': '直线滑轨异常',
|
|
1238
|
+
'desc': '请清除直线滑轨报错。如反复报错,请联系技术支持。',
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
FtSensorErrorCodeMap = {
|
|
1244
|
+
64: {
|
|
1245
|
+
'en': {
|
|
1246
|
+
'title': 'Six-axis Force Torque Sensor Communication Failure',
|
|
1247
|
+
'desc': '',
|
|
1248
|
+
},
|
|
1249
|
+
'cn': {
|
|
1250
|
+
'title': '力矩出现通讯中断',
|
|
1251
|
+
'desc': '',
|
|
1252
|
+
}
|
|
1253
|
+
},
|
|
1254
|
+
65: {
|
|
1255
|
+
'en': {
|
|
1256
|
+
'title': 'The Data Collected by the Six-axis Force Torque Sensor is Abnormal',
|
|
1257
|
+
'desc': '',
|
|
1258
|
+
},
|
|
1259
|
+
'cn': {
|
|
1260
|
+
'title': '力矩采集数据不变化',
|
|
1261
|
+
'desc': '',
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
66: {
|
|
1265
|
+
'en': {
|
|
1266
|
+
'title': 'Six-axis Force Torque Sensor X-direction Torque Exceeds Limit',
|
|
1267
|
+
'desc': '',
|
|
1268
|
+
},
|
|
1269
|
+
'cn': {
|
|
1270
|
+
'title': '六维力矩传感器的Fx超限',
|
|
1271
|
+
'desc': '',
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
67: {
|
|
1275
|
+
'en': {
|
|
1276
|
+
'title': 'Six-axis Force Torque Sensor Y-direction Torque Exceeds Limit',
|
|
1277
|
+
'desc': '',
|
|
1278
|
+
},
|
|
1279
|
+
'cn': {
|
|
1280
|
+
'title': '六维力矩传感器的Fy超限',
|
|
1281
|
+
'desc': '',
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
68: {
|
|
1285
|
+
'en': {
|
|
1286
|
+
'title': 'Six-axis Force Torque Sensor Z-direction Torque Exceeds Limitrection',
|
|
1287
|
+
'desc': '',
|
|
1288
|
+
},
|
|
1289
|
+
'cn': {
|
|
1290
|
+
'title': '六维力矩传感器的Fz超限',
|
|
1291
|
+
'desc': '',
|
|
1292
|
+
}
|
|
1293
|
+
},
|
|
1294
|
+
69: {
|
|
1295
|
+
'en': {
|
|
1296
|
+
'title': 'Six-axis Force Torque Sensor Tx Torque Exceeds Limit',
|
|
1297
|
+
'desc': '',
|
|
1298
|
+
},
|
|
1299
|
+
'cn': {
|
|
1300
|
+
'title': '六维力矩传感器的Tx超限',
|
|
1301
|
+
'desc': '',
|
|
1302
|
+
}
|
|
1303
|
+
},
|
|
1304
|
+
70: {
|
|
1305
|
+
'en': {
|
|
1306
|
+
'title': 'Six-axis Force Torque Sensor Ty direction Torque Exceeds Limit',
|
|
1307
|
+
'desc': '',
|
|
1308
|
+
},
|
|
1309
|
+
'cn': {
|
|
1310
|
+
'title': '六维力矩传感器的Ty超限',
|
|
1311
|
+
'desc': '',
|
|
1312
|
+
}
|
|
1313
|
+
},
|
|
1314
|
+
71: {
|
|
1315
|
+
'en': {
|
|
1316
|
+
'title': 'Six-axis Force Torque Sensor Tz direction Torque Exceeds Limit',
|
|
1317
|
+
'desc': '',
|
|
1318
|
+
},
|
|
1319
|
+
'cn': {
|
|
1320
|
+
'title': '六维力矩传感器的Tz超限',
|
|
1321
|
+
'desc': '',
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
73: {
|
|
1325
|
+
'en': {
|
|
1326
|
+
'title': 'Six-axis Force Torque Sensor Failed to Initialize',
|
|
1327
|
+
'desc': '',
|
|
1328
|
+
},
|
|
1329
|
+
'cn': {
|
|
1330
|
+
'title': '六维力矩传感器初始化不成功',
|
|
1331
|
+
'desc': '',
|
|
1332
|
+
}
|
|
1333
|
+
},
|
|
1334
|
+
'other': {
|
|
1335
|
+
'en': {
|
|
1336
|
+
'title': 'Six-axis Force Torque Sensor Error',
|
|
1337
|
+
'desc': '',
|
|
1338
|
+
},
|
|
1339
|
+
'cn': {
|
|
1340
|
+
'title': '六维力矩传感器异常',
|
|
1341
|
+
'desc': '',
|
|
1342
|
+
}
|
|
1343
|
+
},
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
class BaseCode(object):
|
|
1348
|
+
def __init__(self, code, status=0):
|
|
1349
|
+
self._code = code
|
|
1350
|
+
self._status = status
|
|
1351
|
+
if status in [0, 1]:
|
|
1352
|
+
if code != 0:
|
|
1353
|
+
self.info = self._code_map.get(code, self._code_map.get('other'))
|
|
1354
|
+
else:
|
|
1355
|
+
self.info = {'en': {'title': 'Normal', 'desc': ''}, 'cn': {'title': '正常', 'desc': ''}}
|
|
1356
|
+
else:
|
|
1357
|
+
self.info = self._code_map.get('failed', self._code_map.get('other'))
|
|
1358
|
+
|
|
1359
|
+
@property
|
|
1360
|
+
def status(self):
|
|
1361
|
+
return self._status
|
|
1362
|
+
|
|
1363
|
+
@property
|
|
1364
|
+
def code(self):
|
|
1365
|
+
return self._code
|
|
1366
|
+
|
|
1367
|
+
@property
|
|
1368
|
+
def title(self):
|
|
1369
|
+
return {
|
|
1370
|
+
'en': self.info['en']['title'],
|
|
1371
|
+
'cn': self.info['cn']['title']
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
@property
|
|
1375
|
+
def description(self):
|
|
1376
|
+
return {
|
|
1377
|
+
'en': self.info['en']['desc'],
|
|
1378
|
+
'cn': self.info['cn']['desc']
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
class ControllerError(BaseCode):
|
|
1383
|
+
def __init__(self, code, status=0):
|
|
1384
|
+
self._code_map = ControllerErrorCodeMap
|
|
1385
|
+
super(ControllerError, self).__init__(code, status=status)
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
class ControllerWarn(BaseCode):
|
|
1389
|
+
def __init__(self, code, status=0):
|
|
1390
|
+
self._code_map = ControllerWarnCodeMap
|
|
1391
|
+
super(ControllerWarn, self).__init__(code, status=status)
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
class ServoError(BaseCode):
|
|
1395
|
+
def __init__(self, code, status=0):
|
|
1396
|
+
self._code_map = ServoCodeMap
|
|
1397
|
+
super(ServoError, self).__init__(code, status=status)
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
class GripperError(BaseCode):
|
|
1401
|
+
def __init__(self, code, status=0):
|
|
1402
|
+
self._code_map = GripperErrorCodeMap
|
|
1403
|
+
super(GripperError, self).__init__(code, status=status)
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
class BioGripperError(BaseCode):
|
|
1407
|
+
def __init__(self, code, status=0):
|
|
1408
|
+
self._code_map = BioGripperErrorCodeMap
|
|
1409
|
+
super(BioGripperError, self).__init__(code, status=status)
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
class RobotIqError(BaseCode):
|
|
1413
|
+
def __init__(self, code, status=0):
|
|
1414
|
+
self._code_map = RobotiqErrorCodeMap
|
|
1415
|
+
super(RobotIqError, self).__init__(code, status=status)
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
class LinearTrackError(BaseCode):
|
|
1419
|
+
def __init__(self, code, status=0):
|
|
1420
|
+
self._code_map = LinearTrackErrorCodeMap
|
|
1421
|
+
super(LinearTrackError, self).__init__(code, status=status)
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
class FtSensorError(BaseCode):
|
|
1425
|
+
def __init__(self, code, status=0):
|
|
1426
|
+
self._code_map = FtSensorErrorCodeMap
|
|
1427
|
+
super(FtSensorError, self).__init__(code, status=status)
|