1- xArm-Python-SDK API Documentation (V1.14.2 ): class XArmAPI in module xarm.wrapper.xarm_api
1+ xArm-Python-SDK API Documentation (V1.14.6 ): class XArmAPI in module xarm.wrapper.xarm_api
22
33## class __ XArmAPI__
44****************************************
@@ -978,7 +978,7 @@ xArm-Python-SDK API Documentation (V1.14.2): class XArmAPI in module xarm.wrappe
978978
979979> Get the digital value of the specified Controller GPIO
980980>
981- > : param ionum: 0~ 15 or None(both 0~ 15), default is None
981+ > : param ionum: 0~ 7(CI0 ~ CI7), 8 ~ 15(DI0 ~ DI7) or None(both 0~ 15), default is None
982982> :return: tuple((code, value or value list)), only when code is 0, the returned result is correct.
983983> &ensp ;&ensp ;&ensp ;&ensp ; code: See the [ API Code Documentation] ( ./xarm_api_code.md#api-code ) for details.
984984
@@ -1619,6 +1619,19 @@ xArm-Python-SDK API Documentation (V1.14.2): class XArmAPI in module xarm.wrappe
16191619> &ensp ;&ensp ;&ensp ;&ensp ; code: See the [ API Code Documentation] ( ./xarm_api_code.md#api-code ) for details.
16201620
16211621
1622+ #### def __ get_traj_speeding__ (self, rate):
1623+
1624+ > Obtain the joint and velocity values of joint overspeed during trajectory recording
1625+ > : param rate: speed rate, It can only be 1/2/4
1626+ >
1627+ > :return: tuple((code, speed_info)), only when code is 0, the returned result is correct.
1628+ > &ensp ;&ensp ;&ensp ;&ensp ; code: See the [ API Code Documentation] ( ./xarm_api_code.md#api-code ) for details.
1629+ > &ensp ;&ensp ;&ensp ;&ensp ; speed_info: [ result_code, servo_id, servo_speed]
1630+ > &ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ; result_code: 0:Pass, -1: Fail, >0: abnormal(1: Trajectory not loaded or incorrect status;2: The input magnification is incorrect)
1631+ > &ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ; servo_id: Effective only when result_code is -1
1632+ > &ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ; servo_speed: Effective only when result_code is -1
1633+
1634+
16221635#### def __ get_trajectories__ (self):
16231636
16241637> get the trajectories
@@ -2311,6 +2324,14 @@ xArm-Python-SDK API Documentation (V1.14.2): class XArmAPI in module xarm.wrappe
23112324> : param path: app path
23122325
23132326
2327+ #### def __ run_gcode_app__ (self, path, ** kwargs):
2328+
2329+ > Run gcode project file by xArmStudio software
2330+ > : param path: gcode file path
2331+ >
2332+ > :return: code, only when code is 0, the returned result is correct.
2333+
2334+
23142335#### def __ run_gcode_file__ (self, path, ** kwargs):
23152336
23162337> Run the gcode file
@@ -2508,7 +2529,7 @@ xArm-Python-SDK API Documentation (V1.14.2): class XArmAPI in module xarm.wrappe
25082529
25092530> Set the digital value of the specified Controller GPIO
25102531>
2511- > : param ionum: 0~ 15
2532+ > : param ionum: 0~ 7(CO0 ~ CO7), 8 ~ 15(DO0 ~ DO7)
25122533> : param value: value
25132534> : param delay_sec: delay effective time from the current start, in seconds, default is None(effective immediately)
25142535> : param sync: whether to execute in the motion queue, set to False to execute immediately(default is True)
@@ -2521,7 +2542,7 @@ xArm-Python-SDK API Documentation (V1.14.2): class XArmAPI in module xarm.wrappe
25212542#### def __ set_cgpio_digital_input_function__ (self, ionum, fun):
25222543
25232544> Set the digital input functional mode of the Controller GPIO
2524- > : param ionum: 0~ 15
2545+ > : param ionum: 0~ 7(CI0 ~ CI7), 8 ~ 15(DI0 ~ DI7)
25252546> : param fun: functional mode
25262547> &ensp ;&ensp ;&ensp ;&ensp ; 0: general input
25272548> &ensp ;&ensp ;&ensp ;&ensp ; 1: external emergency stop
@@ -2537,7 +2558,7 @@ xArm-Python-SDK API Documentation (V1.14.2): class XArmAPI in module xarm.wrappe
25372558#### def __ set_cgpio_digital_output_function__ (self, ionum, fun):
25382559
25392560> Set the digital output functional mode of the specified Controller GPIO
2540- > : param ionum: 0~ 15
2561+ > : param ionum: 0~ 7(CO0 ~ CO7), 8 ~ 15(DO0 ~ DO7)
25412562> : param fun: functionnal mode
25422563> &ensp ;&ensp ;&ensp ;&ensp ; 0: general output
25432564> &ensp ;&ensp ;&ensp ;&ensp ; 1: emergency stop
@@ -3565,7 +3586,7 @@ xArm-Python-SDK API Documentation (V1.14.2): class XArmAPI in module xarm.wrappe
35653586> &ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ; code >= 0: the last_used_tcp_speed/last_used_tcp_acc will be modified
35663587
35673588
3568- #### def __ set_vacuum_gripper__ (self, on, wait=False, timeout=3, delay_sec=None, sync=True):
3589+ #### def __ set_vacuum_gripper__ (self, on, wait=False, timeout=3, delay_sec=None, sync=True, hardware_version=1 ):
35693590
35703591> Set vacuum gripper state
35713592>
@@ -3578,6 +3599,9 @@ xArm-Python-SDK API Documentation (V1.14.2): class XArmAPI in module xarm.wrappe
35783599> : param sync: whether to execute in the motion queue, set to False to execute immediately(default is True)
35793600> &ensp ;&ensp ;&ensp ;&ensp ; 1. only available if firmware_version >= 2.4.101
35803601> &ensp ;&ensp ;&ensp ;&ensp ; 2. only available if delay_sec <= 0
3602+ > : param hardware_version: hardware version
3603+ > &ensp ;&ensp ;&ensp ;&ensp ; 1: Plug-in Connection, default
3604+ > &ensp ;&ensp ;&ensp ;&ensp ; 2: Contact Connection
35813605> :return: code
35823606> &ensp ;&ensp ;&ensp ;&ensp ; code: See the [ API Code Documentation] ( ./xarm_api_code.md#api-code ) for details.
35833607
0 commit comments