xarm-python-sdk 1.17.0__tar.gz → 1.17.3__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.17.0 → xarm_python_sdk-1.17.3}/PKG-INFO +1 -1
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/README.md +48 -67
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/ReleaseNotes.md +1 -1
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/doc/api/xarm_api.md +198 -62
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/config/x_config.py +6 -5
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/utils/convert.py +27 -25
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/utils/log.py +7 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/wrapper/uxbus_cmd.py +48 -25
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/wrapper/uxbus_cmd_tcp.py +4 -4
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/tools/blockly/_blockly_base.py +26 -2
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/tools/blockly/_blockly_handler.py +98 -16
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/tools/blockly/_blockly_highlight.py +8 -1
- xarm_python_sdk-1.17.3/xarm/version.py +1 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/wrapper/xarm_api.py +230 -80
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/base.py +290 -129
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/decorator.py +1 -1
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/gpio.py +6 -6
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/gripper.py +416 -11
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/linear_motor.py +24 -24
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/robotiq.py +48 -20
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/servo.py +39 -19
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/xarm.py +1 -1
- xarm_python_sdk-1.17.0/xarm/version.py +0 -1
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/.github/workflows/python-publish.yml +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/.gitignore +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/LICENSE +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/README.rst +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/doc/UF_ModbusTCP_Manual.md +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/doc/api/xarm_api_code.md +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/doc/tool/gen_api.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/doc/tool/markdown_doc.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/0000-template.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/0001-event_register.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/0002-get_property.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/0003-api_get.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/0004-servo_attach_detach.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/1001-move_line.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/1002-move_line.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/1003-relative_move_line.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/1004-move_arc_line.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/1005-move_arc_line.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/1006-move_tool_line.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/1007-counter.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/1008-move_line_aa.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/1009-cartesian_velocity_control.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/1010-cartesian_online_trajectory_planning.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/2000-joint_velocity_control.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/2006-joint_online_trajectory_planning.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/3001-move_circle.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/3002-record_trajectory.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/3003-playback_trajectory.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/3004-get_report_data.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/3005-task_feedback.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/3006-standard_modbus_tcp.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/5000-set_tgpio_modbus.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/5001-get_tgpio_digital.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/5002-get_tgpio_analog.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/5003-set_tgpio_digital.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/5004-set_gripper.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/5005-get_cgpio_digital_analog.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/5006-set_cgpio_digital_analog.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/5007-set_cgpio_input_output_function.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/5008-get_cgpio_state.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/5009-set_bio_gripper.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/6001-set_reduced_mode.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/6002-set_fense_mode.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/7001-servo_j.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/7002-servo_cartesian.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/7003-servo_cartesian_aa.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/8000-load_identify_current.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/8001-force_tech.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/8002-admittance_control.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/8003-force_control.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/8004-load_identify.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/8005-read_force_data.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/8006-save_force_zero.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/8010-get_ft_sensor_config.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/9000-set_linear_motor.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/common/get_report_data_with_protocol.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/thridparty/set_robotiq_gripper.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/thridparty/set_yinshi_gripper.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/thridparty/set_yinshi_rh56_gripper.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/tool/blockly_to_python.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/tool/example.xml +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm5/2001-move_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm5/2002-move_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm5/2003-move_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm5/2004-move_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm5/2005-move_arc_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm6/2001-move_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm6/2002-move_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm6/2003-move_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm6/2004-move_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm6/2005-move_arc_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm7/2001-move_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm7/2002-move_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm7/2003-move_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm7/2004-move_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/example/wrapper/xarm7/2005-move_arc_joint.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/pyproject.toml +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/requirements.txt +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/setup.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/__init__.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/build_backend.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/__init__.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/comm/__init__.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/comm/base.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/comm/serial_port.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/comm/socket_port.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/comm/uxbus_cmd_protocol.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/config/__init__.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/config/x_code.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/utils/__init__.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/utils/crc16.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/utils/debug_print.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/version.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/wrapper/__init__.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/core/wrapper/uxbus_cmd_ser.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/tools/__init__.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/tools/blockly/__init__.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/tools/blockly/_blockly_node.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/tools/blockly/_blockly_tool.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/tools/blockly_tool.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/tools/gcode.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/tools/list_ports.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/tools/modbus_tcp.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/tools/threads.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/tools/utils.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/wrapper/__init__.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/wrapper/studio_api.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/__init__.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/base_board.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/code.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/events.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/ft_sensor.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/grammar_async.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/grammar_coroutine.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/modbus_tcp.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/parse.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/record.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/report.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/studio.py +0 -0
- {xarm_python_sdk-1.17.0 → xarm_python_sdk-1.17.3}/xarm/x3/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xarm-python-sdk
|
|
3
|
-
Version: 1.17.
|
|
3
|
+
Version: 1.17.3
|
|
4
4
|
Summary: Python SDK for UFACTORY robotic arm 850, xArm 5/6/7, and Lite6.
|
|
5
5
|
Project-URL: Homepage, https://www.ufactory.cc
|
|
6
6
|
Project-URL: Documentation, https://github.com/xArm-Developer/xArm-Python-SDK/blob/master/doc/api/xarm_api.md
|
|
@@ -42,7 +42,7 @@ xArm Python SDK
|
|
|
42
42
|
- #### [UFACTORY ModbusTCP Manual](doc/UF_ModbusTCP_Manual.md)
|
|
43
43
|
|
|
44
44
|
## Update Summary
|
|
45
|
-
- > ### 1.17.0
|
|
45
|
+
- > ### 1.17.0/1.7.1
|
|
46
46
|
- Change some API names
|
|
47
47
|
|
|
48
48
|
- > ### 1.16.0
|
|
@@ -62,69 +62,50 @@ xArm Python SDK
|
|
|
62
62
|
- Support new version of vacuum gripper
|
|
63
63
|
- Support the studio-2.5.0 blockly project conversion to python
|
|
64
64
|
|
|
65
|
-
- > ### 1.13.30
|
|
66
|
-
- Supports obtaining unsaved trajectory recording duration
|
|
67
|
-
- Fix the abnormal path of running blockly program in some cases
|
|
68
|
-
- Fix the return format of getting C23 and C38 errors
|
|
69
|
-
- Supports obtaining identification status
|
|
70
|
-
|
|
71
|
-
- > ### 1.13.19
|
|
72
|
-
- Friction identification supports xarm7_mirror model
|
|
73
|
-
- Fix the abnormal return value of blockly conversion robotiq related interface
|
|
74
|
-
|
|
75
|
-
- > ### 1.13.0
|
|
76
|
-
- Compatible with the standard Modbus TCP protocol, providing part of the standard Modbus TCP protocol interface
|
|
77
|
-
|
|
78
|
-
- > ### 1.12.2
|
|
79
|
-
- Support partial Task feedback (requires firmware version greater than or equal to v2.1.0)
|
|
80
|
-
|
|
81
|
-
- > ### 1.11.6
|
|
82
|
-
- 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)
|
|
83
|
-
|
|
84
|
-
- > ### 1.11.5
|
|
85
|
-
- Optimization pause time is too long (wait=true)
|
|
86
|
-
- Add common motion api (Enabled after firmware version 1.11.100)
|
|
87
|
-
- The Cartesian motion-related interface adds the motion_type parameter to determine the planning method (Enabled after firmware version 1.11.100)
|
|
88
|
-
|
|
89
65
|
- > ### [More](ReleaseNotes.md)
|
|
90
66
|
|
|
91
67
|
## API Change List
|
|
92
|
-
| OLD API NAME | NEW API NAME |
|
|
93
|
-
| -------------- | ------------- |
|
|
94
|
-
|
|
|
95
|
-
|
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
-
|
|
|
100
|
-
|
|
|
101
|
-
|
|
|
102
|
-
|
|
|
103
|
-
|
|
|
104
|
-
|
|
|
105
|
-
|
|
|
106
|
-
|
|
|
107
|
-
|
|
|
108
|
-
|
|
|
109
|
-
|
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
113
|
-
|
|
|
114
|
-
|
|
|
115
|
-
|
|
|
116
|
-
|
|
|
117
|
-
|
|
|
118
|
-
|
|
|
119
|
-
|
|
|
120
|
-
|
|
|
121
|
-
|
|
|
122
|
-
|
|
|
123
|
-
|
|
|
124
|
-
|
|
|
125
|
-
|
|
|
126
|
-
|
|
|
127
|
-
|
|
|
68
|
+
| OLD API NAME | NEW API NAME | SDK VERSION |
|
|
69
|
+
| -------------- | ------------- | ------------ |
|
|
70
|
+
| set_tgpio_modbus_timeout | set_rs485_timeout | 1.17.1 |
|
|
71
|
+
| get_tgpio_modbus_timeout | get_rs485_timeout | 1.17.1 |
|
|
72
|
+
| set_tgpio_modbus_baudrate | set_rs485_baudrate | 1.17.1 |
|
|
73
|
+
| get_tgpio_modbus_baudrate | get_rs485_baudrate | 1.17.1 |
|
|
74
|
+
| getset_tgpio_modbus_data | set_rs485_data | 1.17.1 |
|
|
75
|
+
| set_impedance | set_ft_sensor_admittance_parameters | 1.17.0 |
|
|
76
|
+
| set_impedance_mbk | set_ft_sensor_admittance_parameters | 1.17.0 |
|
|
77
|
+
| set_impedance_config | set_ft_sensor_admittance_parameters | 1.17.0 |
|
|
78
|
+
| set_force_control_pid | set_ft_sensor_force_parameters | 1.17.0 |
|
|
79
|
+
| config_force_control | set_ft_sensor_force_parameters | 1.17.0 |
|
|
80
|
+
| ft_sensor_set_zero | set_ft_sensor_zero | 1.17.0 |
|
|
81
|
+
| ft_sensor_iden_load | iden_ft_sensor_load_offset | 1.17.0 |
|
|
82
|
+
| ft_sensor_cali_load | set_ft_sensor_load_offset | 1.17.0 |
|
|
83
|
+
| ft_sensor_enable | set_ft_sensor_enable | 1.17.0 |
|
|
84
|
+
| ft_sensor_app_set | set_ft_sensor_mode | 1.17.0 |
|
|
85
|
+
| ft_sensor_app_get | get_ft_sensor_mode | 1.17.0 |
|
|
86
|
+
| get_linear_track_registers | get_linear_motor_registers | 1.17.0 |
|
|
87
|
+
| get_linear_track_pos | get_linear_motor_pos | 1.17.0 |
|
|
88
|
+
| get_linear_track_status | get_linear_motor_status | 1.17.0 |
|
|
89
|
+
| get_linear_track_error | get_linear_motor_error | 1.17.0 |
|
|
90
|
+
| get_linear_track_is_enabled | get_linear_motor_is_enabled | 1.17.0 |
|
|
91
|
+
| get_linear_track_on_zero | get_linear_motor_on_zero | 1.17.0 |
|
|
92
|
+
| get_linear_track_sci | get_linear_motor_sci | 1.17.0 |
|
|
93
|
+
| get_linear_track_sco | get_linear_motor_sco | 1.17.0 |
|
|
94
|
+
| clean_linear_track_error | clean_linear_motor_error | 1.17.0 |
|
|
95
|
+
| set_linear_track_enable | set_linear_motor_enable | 1.17.0 |
|
|
96
|
+
| set_linear_track_speed | set_linear_motor_speed | 1.17.0 |
|
|
97
|
+
| set_linear_track_back_origin | set_linear_motor_back_origin | 1.17.0 |
|
|
98
|
+
| set_linear_track_pos | set_linear_motor_pos | 1.17.0 |
|
|
99
|
+
| set_linear_track_stop | set_linear_motor_stop | 1.17.0 |
|
|
100
|
+
| shutdown_system | system_control | 1.13.3 |
|
|
101
|
+
| get_suction_cup | get_vacuum_gripper | 1.5.0 |
|
|
102
|
+
| set_suction_cup | set_vacuum_gripper | 1.5.0 |
|
|
103
|
+
| get_ik | get_inverse_kinematics | 1.0.0 |
|
|
104
|
+
| get_fk | get_forward_kinematics | 1.0.0 |
|
|
105
|
+
| set_sleep_time | set_pause_time | 1.0.0 |
|
|
106
|
+
| get_gpio_digital | get_tgpio_digital | 1.0.0 |
|
|
107
|
+
| set_gpio_digital | set_tgpio_digital | 1.0.0 |
|
|
108
|
+
| get_gpio_analog | get_tgpio_analog | 1.0.0 |
|
|
128
109
|
|
|
129
110
|
|
|
130
111
|
## [Example](example/wrapper/)
|
|
@@ -356,14 +337,14 @@ xArm Python SDK
|
|
|
356
337
|
arm.robotiq_get_status(...)
|
|
357
338
|
```
|
|
358
339
|
|
|
359
|
-
- #### Modbus of the
|
|
340
|
+
- #### Modbus of the RS485
|
|
360
341
|
|
|
361
342
|
```python
|
|
362
|
-
arm.
|
|
363
|
-
arm.
|
|
364
|
-
arm.
|
|
365
|
-
arm.
|
|
366
|
-
arm.
|
|
343
|
+
arm.set_rs485_timeout(...)
|
|
344
|
+
arm.get_rs485_timeout(...)
|
|
345
|
+
arm.set_rs485_baudrate(...)
|
|
346
|
+
arm.get_rs485_baudrate(...)
|
|
347
|
+
arm.set_rs485_data(...)
|
|
367
348
|
```
|
|
368
349
|
|
|
369
350
|
- #### GPIO
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
xArm-Python-SDK API Documentation (V1.17.
|
|
1
|
+
xArm-Python-SDK API Documentation (V1.17.3): class XArmAPI in module xarm.wrapper.xarm_api
|
|
2
2
|
|
|
3
3
|
## class __XArmAPI__
|
|
4
4
|
****************************************
|
|
@@ -443,7 +443,7 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
443
443
|
> :return: code, states
|
|
444
444
|
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
445
445
|
>     states: [...]
|
|
446
|
-
>         states[0]:
|
|
446
|
+
>         states[0]: controller gpio module state
|
|
447
447
|
>             states[0] == 0: normal
|
|
448
448
|
>             states[0] == 1: wrong
|
|
449
449
|
>             states[0] == 6: communication failure
|
|
@@ -522,7 +522,18 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
522
522
|
> :return: tuple((code, [error_code, warn_code])), only when code is 0, the returned result is correct.
|
|
523
523
|
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
524
524
|
>     error_code: See the [Controller Error Code Documentation](./xarm_api_code.md#controller-error-code) for details.
|
|
525
|
-
>     warn_code: See the [Controller
|
|
525
|
+
>     warn_code: See the [Controller Warn Code Documentation](./xarm_api_code.md#controller-warn-code) for details.
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
#### def __get_external_device_monitor_params__(self):
|
|
529
|
+
|
|
530
|
+
> Get the monitor params of the external device
|
|
531
|
+
> Note:
|
|
532
|
+
>     1. only available if firmware_version >= 2.7.100
|
|
533
|
+
>
|
|
534
|
+
> :return: tuple((code, params)), only when code is 0, the returned result is correct.
|
|
535
|
+
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
536
|
+
>     params: [dev_type, frequency]
|
|
526
537
|
|
|
527
538
|
|
|
528
539
|
#### def __get_fdb_mat_history_num__(self):
|
|
@@ -1057,6 +1068,33 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
1057
1068
|
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
1058
1069
|
|
|
1059
1070
|
|
|
1071
|
+
#### def __get_rs485_baudrate__(self, target='robot', **kwargs):
|
|
1072
|
+
|
|
1073
|
+
> Get the baudrate of the target RS485
|
|
1074
|
+
>
|
|
1075
|
+
> :param target: 'robot' or 'control_box'
|
|
1076
|
+
>     robot: Robot RS485
|
|
1077
|
+
>     control_box: ControlBox RS485
|
|
1078
|
+
> :return: tuple((code, baudrate)), only when code is 0, the returned result is correct.
|
|
1079
|
+
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
1080
|
+
>     baudrate: the modbus baudrate of the target RS485
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
#### def __get_rs485_timeout__(self, target='robot', protocol='modbus_rtu', **kwargs):
|
|
1084
|
+
|
|
1085
|
+
> Get the timeout of the target RS485
|
|
1086
|
+
>
|
|
1087
|
+
> :param target: 'robot' or 'control_box'
|
|
1088
|
+
>     robot: Robot RS485
|
|
1089
|
+
>     control_box: ControlBox RS485
|
|
1090
|
+
> :param protocol: 'modbus_rtu' or 'transparent'
|
|
1091
|
+
>     modbus_rtu: Modbus RTU
|
|
1092
|
+
>     transparent: Transparent Transmission
|
|
1093
|
+
> :return: tuple((code, timeout)), only when code is 0, the returned result is correct.
|
|
1094
|
+
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
1095
|
+
>     timeout: timeout of the target RS485, milliseconds
|
|
1096
|
+
|
|
1097
|
+
|
|
1060
1098
|
#### def __get_servo_angle__(self, servo_id=None, is_radian=None, is_real=False):
|
|
1061
1099
|
|
|
1062
1100
|
> Get the servo angle
|
|
@@ -1124,23 +1162,23 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
1124
1162
|
|
|
1125
1163
|
#### def __get_tgpio_modbus_baudrate__(self):
|
|
1126
1164
|
|
|
1127
|
-
>
|
|
1128
|
-
>
|
|
1129
|
-
> :return: tuple((code, baudrate)), only when code is 0, the returned result is correct.
|
|
1130
|
-
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
1131
|
-
>     baudrate: the modbus baudrate of the tool gpio
|
|
1165
|
+
> Set the baudrate of the Robot RS485 (please use get_rs485_baudrate)
|
|
1132
1166
|
|
|
1133
1167
|
|
|
1134
|
-
#### def __get_tgpio_modbus_timeout__(self, is_transparent_transmission=False):
|
|
1168
|
+
#### def __get_tgpio_modbus_timeout__(self, is_transparent_transmission=False, **kwargs):
|
|
1135
1169
|
|
|
1136
|
-
> Get
|
|
1170
|
+
> Get the timeout of the Robot RS485 (please use get_rs485_timeout replace)
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
#### def __get_tgpio_monitor_params__(self):
|
|
1174
|
+
|
|
1175
|
+
> Get the monitor params of the TGPIO
|
|
1137
1176
|
> Note:
|
|
1138
|
-
>     
|
|
1177
|
+
>     1. only available if firmware_version >= 2.7.101
|
|
1139
1178
|
>
|
|
1140
|
-
> :
|
|
1141
|
-
> :return: tuple((code, timeout)), only when code is 0, the returned result is correct.
|
|
1179
|
+
> :return: tuple((code, params)), only when code is 0, the returned result is correct.
|
|
1142
1180
|
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
1143
|
-
>     
|
|
1181
|
+
>     params: [io_type, frequency]
|
|
1144
1182
|
|
|
1145
1183
|
|
|
1146
1184
|
#### def __get_tgpio_output_digital__(self, ionum=None):
|
|
@@ -1165,7 +1203,7 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
1165
1203
|
> Get the digital value of the specified Tool GPIO,Compared with the "get_tgpio_digital" interface,
|
|
1166
1204
|
>     the value of TI2 is obtained when the ionum is not transmitted.
|
|
1167
1205
|
>
|
|
1168
|
-
> :param ionum: 0 or 1 or
|
|
1206
|
+
> :param ionum: 0 or 1 or 2 or 3 or 4 (both 0 and 4), default is None
|
|
1169
1207
|
> :return: tuple((code, value or value list)), only when code is 0, the returned result is correct.
|
|
1170
1208
|
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
1171
1209
|
|
|
@@ -1240,12 +1278,12 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
1240
1278
|
|
|
1241
1279
|
#### def __getset_tgpio_modbus_data__(self, datas, min_res_len=0, host_id=9, is_transparent_transmission=False, use_503_port=False, **kwargs):
|
|
1242
1280
|
|
|
1243
|
-
> Send the modbus data to the
|
|
1281
|
+
> Send the modbus data to the RS485 (please use set_rs485_data replace)
|
|
1244
1282
|
>
|
|
1245
1283
|
> :param datas: data_list
|
|
1246
1284
|
> :param min_res_len: the minimum length of modbus response data. Used to check the data length, if not specified, no check
|
|
1247
|
-
> :param host_id: host_id, default is 9 (
|
|
1248
|
-
>     9:
|
|
1285
|
+
> :param host_id: host_id, default is 9 (ROBOT_RS485_HOST_ID)
|
|
1286
|
+
>     9: Robot RS485
|
|
1249
1287
|
>     11: CONTROLLER RS485
|
|
1250
1288
|
> :param is_transparent_transmission: whether to choose transparent transmission, default is False
|
|
1251
1289
|
>     Note: only available if firmware_version >= 1.11.0
|
|
@@ -1405,14 +1443,12 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
1405
1443
|
|
|
1406
1444
|
#### def __move_gohome__(self, speed=None, mvacc=None, mvtime=None, is_radian=None, wait=False, timeout=None, **kwargs):
|
|
1407
1445
|
|
|
1408
|
-
> Move to go home (Back to zero)
|
|
1409
|
-
>
|
|
1446
|
+
> Move to go home (Back to zero)
|
|
1447
|
+
> Warning: without limit detection
|
|
1410
1448
|
> Note:
|
|
1411
|
-
>     1.
|
|
1412
|
-
>     2. The API will change self.last_used_angles value into [0, 0, 0, 0, 0, 0, 0]
|
|
1413
|
-
>     3. If you want to wait for the robot to complete this action and then return, please set the parameter wait to True.
|
|
1449
|
+
>     1. If you want to wait for the robot to complete this action and then return, please set the parameter wait to True.
|
|
1414
1450
|
>         ex: code = arm.move_gohome(wait=True)
|
|
1415
|
-
>     
|
|
1451
|
+
>     2. This interface does not modify the value of last_used_joint_speed/last_used_joint_acc
|
|
1416
1452
|
>
|
|
1417
1453
|
> :param speed: gohome speed (unit: rad/s if is_radian is True else °/s), default is 50 °/s
|
|
1418
1454
|
> :param mvacc: gohome acceleration (unit: rad/s^2 if is_radian is True else °/s^2), default is 5000 °/s^2
|
|
@@ -1790,7 +1826,7 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
1790
1826
|
#### def __reset__(self, speed=None, mvacc=None, mvtime=None, is_radian=None, wait=False, timeout=None):
|
|
1791
1827
|
|
|
1792
1828
|
> Reset the xArm
|
|
1793
|
-
>
|
|
1829
|
+
> Warning: without limit detection
|
|
1794
1830
|
> Note:
|
|
1795
1831
|
>     1. If there are errors or warnings, this interface will clear the warnings and errors.
|
|
1796
1832
|
>     2. If not ready, the api will auto enable motion and set state
|
|
@@ -1878,7 +1914,7 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
1878
1914
|
> :param pos: position of the gripper. Integer between 0 and 255. 0 being the open position and 255 being the close position.
|
|
1879
1915
|
> :param speed: gripper speed between 0 and 255
|
|
1880
1916
|
> :param force: gripper force between 0 and 255
|
|
1881
|
-
> :param wait: whether to wait for the
|
|
1917
|
+
> :param wait: whether to wait for the robotiq motion complete, default is True
|
|
1882
1918
|
> :param timeout: maximum waiting time(unit: second), default is 5, only available if wait=True
|
|
1883
1919
|
>
|
|
1884
1920
|
> :return: tuple((code, robotiq_response))
|
|
@@ -1981,7 +2017,7 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
1981
2017
|
>     'M117': 'set_gripper_mode: M117 V{mode}'
|
|
1982
2018
|
>     'M119': 'get_gripper_position: M119'
|
|
1983
2019
|
>     'M120': 'set_gripper_position: M120 V{pos}'
|
|
1984
|
-
>     'M121': 'set_gripper_speed:
|
|
2020
|
+
>     'M121': 'set_gripper_speed: M121 V{speed}'
|
|
1985
2021
|
>     'M125': 'get_gripper_err_code: M125'
|
|
1986
2022
|
>     'M126': 'clean_gripper_error: M126'
|
|
1987
2023
|
>     'M131': 'get_tgpio_digital: M131'
|
|
@@ -2080,7 +2116,7 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
2080
2116
|
> :param pos: gripper pos between 71 and 150, (unit: mm)
|
|
2081
2117
|
> :param speed: gripper speed between 500 and 4500, default is 2000, (unit: pulse/s)
|
|
2082
2118
|
> :param force: gripper force between 1 and 100, default is 100
|
|
2083
|
-
> :param wait: whether to wait for the
|
|
2119
|
+
> :param wait: whether to wait for the BIO Gripper G2 motion complete, default is False
|
|
2084
2120
|
> :param timeout: maximum waiting time(unit: second), default is 5, only available if wait=True
|
|
2085
2121
|
>
|
|
2086
2122
|
> :return: tuple((code, robotiq_response))
|
|
@@ -2288,16 +2324,6 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
2288
2324
|
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
2289
2325
|
|
|
2290
2326
|
|
|
2291
|
-
#### def __set_control_modbus_baudrate__(self, baud):
|
|
2292
|
-
|
|
2293
|
-
> Set the modbus baudrate of the control box
|
|
2294
|
-
>
|
|
2295
|
-
> :param baud: 4800/9600/19200/38400/57600/115200/230400/460800/921600/1000000/1500000/2000000/2500000
|
|
2296
|
-
>
|
|
2297
|
-
> :return: code
|
|
2298
|
-
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
2327
|
#### def __set_counter_increase__(self, val=1):
|
|
2302
2328
|
|
|
2303
2329
|
> Set counter plus value, only support plus 1
|
|
@@ -2333,6 +2359,51 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
2333
2359
|
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
2334
2360
|
|
|
2335
2361
|
|
|
2362
|
+
#### def __set_dhpgc_gripper_activate__(self, wait=True, timeout=3):
|
|
2363
|
+
|
|
2364
|
+
> If not already activated. Activate the DH-PGC-140-50 gripper
|
|
2365
|
+
>
|
|
2366
|
+
> :param wait: whether to wait for the DH-PGC-140-50 gripper activate complete, default is True
|
|
2367
|
+
> :param timeout: maximum waiting time(unit: second), default is 3, only available if wait=True
|
|
2368
|
+
>
|
|
2369
|
+
> :return: code
|
|
2370
|
+
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
2371
|
+
|
|
2372
|
+
|
|
2373
|
+
#### def __set_dhpgc_gripper_position__(self, pos, speed=50, force=50, wait=True, timeout=5, **kwargs):
|
|
2374
|
+
|
|
2375
|
+
> Set the position of the DH-PGC-140-50 gripper
|
|
2376
|
+
>
|
|
2377
|
+
> :param pos: gripper pos between 0 and 1000
|
|
2378
|
+
> :param speed: gripper speed between 1 and 100
|
|
2379
|
+
> :param force: gripper force between 20 and 100
|
|
2380
|
+
> :param wait: whether to wait for the DH-PGC-140-50 gripper motion to complete, default is True
|
|
2381
|
+
> :param timeout: maximum waiting time(unit: second), default is 5s, only available if wait=True
|
|
2382
|
+
>
|
|
2383
|
+
> :return: code
|
|
2384
|
+
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
2385
|
+
|
|
2386
|
+
|
|
2387
|
+
#### def __set_external_device_monitor_params__(self, dev_type, frequency):
|
|
2388
|
+
|
|
2389
|
+
> Set the monitor params of the external device
|
|
2390
|
+
> Note:
|
|
2391
|
+
>     1. only available if firmware_version >= 2.7.100
|
|
2392
|
+
>     2. after it is turned on, the position/speed/current information of the external device will be reported through port 30000
|
|
2393
|
+
>     3. once an error occurs, you need to re call to monitor
|
|
2394
|
+
>
|
|
2395
|
+
> :param dev_type: the type of the external device
|
|
2396
|
+
>     0: Turn off monitoring
|
|
2397
|
+
>     1: xArm Gripper
|
|
2398
|
+
>     2: xArm Gripper G2
|
|
2399
|
+
>     3: BIO Gripper G2
|
|
2400
|
+
>     4: Robotiq 2F-85/Robotiq 2F-140
|
|
2401
|
+
> :param frequency: the frequency of communication with the external device
|
|
2402
|
+
>
|
|
2403
|
+
> :return code
|
|
2404
|
+
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
2405
|
+
|
|
2406
|
+
|
|
2336
2407
|
#### def __set_fdb_mat_history_num__(self, num):
|
|
2337
2408
|
|
|
2338
2409
|
> Set fdb mat history num
|
|
@@ -2364,7 +2435,7 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
2364
2435
|
|
|
2365
2436
|
#### def __set_fence_mode__(self, on):
|
|
2366
2437
|
|
|
2367
|
-
> Set the fence mode,turn on/off
|
|
2438
|
+
> Set the fence mode,turn on/off fence mode
|
|
2368
2439
|
>
|
|
2369
2440
|
> Note:
|
|
2370
2441
|
>     1. This interface relies on Firmware 1.2.11 or above
|
|
@@ -2565,7 +2636,6 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
2565
2636
|
>     2. Changes are not saved automatically. Call save_conf() to save the settings,
|
|
2566
2637
|
>    otherwise, they will be lost after a reboot.
|
|
2567
2638
|
>     3. Use clean_conf() to restore the system default settings.
|
|
2568
|
-
>     4. The clean_conf interface can restore system default settings
|
|
2569
2639
|
>
|
|
2570
2640
|
> :param direction: Gravity direction vector [x, y, z], e.g., [0, 0, -1] for a floor-mounted arm.
|
|
2571
2641
|
> :param wait: Whether to wait for the robotic arm to stop or clear all previous queued commands before applying the setting.
|
|
@@ -2590,7 +2660,7 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
2590
2660
|
> :param pos: gripper pos between 0 and 84, (unit: mm)
|
|
2591
2661
|
> :param speed: gripper speed between 15 and 225, default is 100, (unit: mm/s)
|
|
2592
2662
|
> :param force: gripper force between 1 and 100, default is 50
|
|
2593
|
-
> :param wait: whether to wait for the
|
|
2663
|
+
> :param wait: whether to wait for the xArm Gripper G2 motion complete, default is False
|
|
2594
2664
|
> :param timeout: maximum waiting time(unit: second), default is 10s, only valid if wait is True
|
|
2595
2665
|
> :return: code
|
|
2596
2666
|
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
@@ -2849,13 +2919,12 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
2849
2919
|
|
|
2850
2920
|
> Set the cartesian position, the API will modify self.last_used_position value
|
|
2851
2921
|
> Note:
|
|
2852
|
-
>     1. If it is xArm5,
|
|
2853
|
-
>     2. If
|
|
2854
|
-
>     3. If the parameter(roll/pitch/yaw) you are passing is an radian unit, be sure to set the parameter is_radian to True.
|
|
2922
|
+
>     1. If it is xArm5, roll must be set to 180° or π rad, pitch must be set to 0
|
|
2923
|
+
>     2. If the parameter(roll/pitch/yaw) you are passing is an radian unit, be sure to set the parameter is_radian to True.
|
|
2855
2924
|
>         ex: code = arm.set_position(x=300, y=0, z=200, roll=-3.14, pitch=0, yaw=0, is_radian=True)
|
|
2856
|
-
>     
|
|
2925
|
+
>     3. If you want to wait for the robot to complete this action and then return, please set the parameter wait to True.
|
|
2857
2926
|
>         ex: code = arm.set_position(x=300, y=0, z=200, roll=180, pitch=0, yaw=0, is_radian=False, wait=True)
|
|
2858
|
-
>     
|
|
2927
|
+
>     4. This interface is only used in the base coordinate system.
|
|
2859
2928
|
>
|
|
2860
2929
|
> :param x: cartesian position x, (unit: mm), default is self.last_used_position[0]
|
|
2861
2930
|
> :param y: cartesian position y, (unit: mm), default is self.last_used_position[1]
|
|
@@ -3008,6 +3077,73 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
3008
3077
|
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
3009
3078
|
|
|
3010
3079
|
|
|
3080
|
+
#### def __set_rh56_finger_position__(self, finger_id, pos, speed=500, force=500, wait=False, timeout=None, **kwargs):
|
|
3081
|
+
|
|
3082
|
+
> Set the position of the INS-RH56DFX finger
|
|
3083
|
+
>
|
|
3084
|
+
> :param finger_id: INS-RH56DFX finger_id between 1 and 6
|
|
3085
|
+
> :param pos: INS-RH56DFX pos between 0 and 1000
|
|
3086
|
+
> :param speed: INS-RH56DFX speed between 0 and 1000, default is 500
|
|
3087
|
+
> :param force: INS-RH56DFX force between 0 and 1000, default is 500
|
|
3088
|
+
> :param wait: whether to wait for the INS-RH56DFX finger motion complete, default is False
|
|
3089
|
+
> :param timeout: maximum waiting time(unit: second), default is 5s, only valid if wait is True
|
|
3090
|
+
> :return: code
|
|
3091
|
+
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
3092
|
+
|
|
3093
|
+
|
|
3094
|
+
#### def __set_rs485_baudrate__(self, baud, target='robot', **kwargs):
|
|
3095
|
+
|
|
3096
|
+
> Set the baudrate of the target RS485
|
|
3097
|
+
>
|
|
3098
|
+
> :param baud: 4800/9600/19200/38400/57600/115200/230400/460800/921600/1000000/1500000/2000000/2500000
|
|
3099
|
+
> :param target: 'robot' or 'control_box'
|
|
3100
|
+
>     robot: Robot RS485
|
|
3101
|
+
>     control_box: ControlBox RS485
|
|
3102
|
+
> :return: tuple((code, baudrate)), only when code is 0, the returned result is correct.
|
|
3103
|
+
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
3104
|
+
>     baudrate: the modbus baudrate of the target RS485
|
|
3105
|
+
|
|
3106
|
+
|
|
3107
|
+
#### def __set_rs485_data__(self, datas, min_res_len=0, target='robot', protocol='modbus_rtu', use_503_port=False, **kwargs):
|
|
3108
|
+
|
|
3109
|
+
> Send the modbus data to the target RS485
|
|
3110
|
+
>
|
|
3111
|
+
> :param datas: data_list
|
|
3112
|
+
> :param min_res_len: the minimum length of modbus response data. Used to check the data length, if not specified, no check
|
|
3113
|
+
> :param target: 'robot' or 'control_box'
|
|
3114
|
+
>     robot: Robot RS485
|
|
3115
|
+
>     control_box: ControlBox RS485
|
|
3116
|
+
> :param protocol: 'modbus_rtu' or 'transparent'
|
|
3117
|
+
>     modbus_rtu: Modbus RTU
|
|
3118
|
+
>     transparent: Transparent Transmission
|
|
3119
|
+
> :param use_503_port: whether to use port 503 for communication, default is False
|
|
3120
|
+
>     Note: if it is True, it will connect to 503 port for communication when it is used for the first time, which is generally only useful for transparent transmission.
|
|
3121
|
+
>     Note: only available if firmware_version >= 1.11.0
|
|
3122
|
+
>
|
|
3123
|
+
> :return: tuple((code, modbus_response))
|
|
3124
|
+
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
3125
|
+
>     modbus_response: modbus response data
|
|
3126
|
+
|
|
3127
|
+
|
|
3128
|
+
#### def __set_rs485_timeout__(self, timeout, target='robot', protocol='modbus_rtu', **kwargs):
|
|
3129
|
+
|
|
3130
|
+
> Set the timeout of the target RS485
|
|
3131
|
+
>
|
|
3132
|
+
> :param timeout: timeout, milliseconds
|
|
3133
|
+
> :param target: 'robot' or 'control_box'
|
|
3134
|
+
>     robot: Robot RS485
|
|
3135
|
+
>     control_box: ControlBox RS485
|
|
3136
|
+
> :param protocol: 'modbus_rtu' or 'transparent'
|
|
3137
|
+
>     modbus_rtu: Modbus RTU
|
|
3138
|
+
>     transparent: Transparent Transmission
|
|
3139
|
+
> :return: code
|
|
3140
|
+
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
3141
|
+
|
|
3142
|
+
|
|
3143
|
+
#### def __set_rs485_use_503_port__(self, use_503_port=True):
|
|
3144
|
+
|
|
3145
|
+
|
|
3146
|
+
|
|
3011
3147
|
#### def __set_self_collision_detection__(self, on_off):
|
|
3012
3148
|
|
|
3013
3149
|
> Set whether to enable self-collision detection
|
|
@@ -3037,7 +3173,7 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
3037
3173
|
>     1. If servo_id is 1-(Number of axes), angle should be a numeric value
|
|
3038
3174
|
>         ex: code = arm.set_servo_angle(servo_id=1, angle=45, is_radian=False)
|
|
3039
3175
|
>     2. If servo_id is None or 8, angle should be a list of values whose length is the number of joints
|
|
3040
|
-
>         like [axis-1, axis-2, axis-3, axis-
|
|
3176
|
+
>         like [axis-1, axis-2, axis-3, axis-4, axis-5, axis-6, axis-7]
|
|
3041
3177
|
>         ex: code = arm.set_servo_angle(angle=[30, -45, 0, 0, 0, 0, 0], is_radian=False)
|
|
3042
3178
|
> :param speed: move speed (unit: rad/s if is_radian is True else °/s), default is self.last_used_joint_speed
|
|
3043
3179
|
> :param mvacc: move acceleration (unit: rad/s^2 if is_radian is True else °/s^2), default is self.last_used_joint_acc
|
|
@@ -3263,28 +3399,28 @@ xArm-Python-SDK API Documentation (V1.17.0): class XArmAPI in module xarm.wrappe
|
|
|
3263
3399
|
|
|
3264
3400
|
#### def __set_tgpio_modbus_baudrate__(self, baud):
|
|
3265
3401
|
|
|
3266
|
-
> Set the
|
|
3267
|
-
>
|
|
3268
|
-
> :param baud: 4800/9600/19200/38400/57600/115200/230400/460800/921600/1000000/1500000/2000000/2500000
|
|
3269
|
-
>
|
|
3270
|
-
> :return: code
|
|
3271
|
-
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
3402
|
+
> Set the baudrate of the Robot RS485 (please use set_rs485_baudrate)
|
|
3272
3403
|
|
|
3273
3404
|
|
|
3274
3405
|
#### def __set_tgpio_modbus_timeout__(self, timeout, is_transparent_transmission=False, **kwargs):
|
|
3275
3406
|
|
|
3276
|
-
> Set the
|
|
3277
|
-
>
|
|
3278
|
-
> :param timeout: timeout, milliseconds
|
|
3279
|
-
> :param is_transparent_transmission: whether the set timeout is the timeout of transparent transmission
|
|
3280
|
-
>     Note: only available if firmware_version >= 1.11.0
|
|
3281
|
-
>
|
|
3282
|
-
> :return: code
|
|
3283
|
-
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
3407
|
+
> Set the timeout of the Robot RS485 (please use set_rs485_timeout)
|
|
3284
3408
|
|
|
3285
3409
|
|
|
3286
|
-
#### def
|
|
3410
|
+
#### def __set_tgpio_monitor_params__(self, io_type, frequency):
|
|
3287
3411
|
|
|
3412
|
+
> Set the monitor params of the TGPIO
|
|
3413
|
+
> Note:
|
|
3414
|
+
>     1. only available if firmware_version >= 2.7.101
|
|
3415
|
+
>     2. after it is turned on, the information of the TGPIO will be reported through port 30000
|
|
3416
|
+
>
|
|
3417
|
+
> :param io_type: the type of the TGPIO
|
|
3418
|
+
>     0: Turn off monitoring
|
|
3419
|
+
>     1: Turn on monitoring
|
|
3420
|
+
> :param frequency: the frequency of communication with the TGPIO
|
|
3421
|
+
>
|
|
3422
|
+
> :return code
|
|
3423
|
+
>     code: See the [API Code Documentation](./xarm_api_code.md#api-code) for details.
|
|
3288
3424
|
|
|
3289
3425
|
|
|
3290
3426
|
#### def __set_timeout__(self, timeout):
|
|
@@ -17,9 +17,10 @@ class XCONF(object):
|
|
|
17
17
|
TRACK_ID = LINEAR_MOTOR_ID # old
|
|
18
18
|
GRIPPER_ID = 8
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
ROBOT_RS485_HOST_ID = 9
|
|
21
|
+
CONTROL_BOX_RS485_HOST_ID = 11
|
|
22
|
+
TGPIO_HOST_ID = ROBOT_RS485_HOST_ID # old
|
|
23
|
+
LINEER_TRACK_HOST_ID = CONTROL_BOX_RS485_HOST_ID # old
|
|
23
24
|
|
|
24
25
|
def __init__(self):
|
|
25
26
|
pass
|
|
@@ -377,7 +378,7 @@ class XCONF(object):
|
|
|
377
378
|
IDEN_FRIC = 115
|
|
378
379
|
|
|
379
380
|
TGPIO_MB_TIOUT = 123
|
|
380
|
-
|
|
381
|
+
RS485_RTU = 124
|
|
381
382
|
TGPIO_ERR = 125
|
|
382
383
|
TGPIO_W16B = 127
|
|
383
384
|
TGPIO_R16B = 128
|
|
@@ -425,7 +426,7 @@ class XCONF(object):
|
|
|
425
426
|
GET_COMMON_INFO = 234
|
|
426
427
|
|
|
427
428
|
TGPIO_COM_TIOUT = 240
|
|
428
|
-
|
|
429
|
+
RS485_AGENT = 241
|
|
429
430
|
|
|
430
431
|
FEEDBACK_CHECK = 253
|
|
431
432
|
SET_FEEDBACK_TYPE = 254
|