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
2
2
3
3
## class __ XArmAPI__
4
4
****************************************
@@ -978,7 +978,7 @@ xArm-Python-SDK API Documentation (V1.14.2): class XArmAPI in module xarm.wrappe
978
978
979
979
> Get the digital value of the specified Controller GPIO
980
980
>
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
982
982
> :return: tuple((code, value or value list)), only when code is 0, the returned result is correct.
983
983
> &ensp ;&ensp ;&ensp ;&ensp ; code: See the [ API Code Documentation] ( ./xarm_api_code.md#api-code ) for details.
984
984
@@ -1619,6 +1619,19 @@ xArm-Python-SDK API Documentation (V1.14.2): class XArmAPI in module xarm.wrappe
1619
1619
> &ensp ;&ensp ;&ensp ;&ensp ; code: See the [ API Code Documentation] ( ./xarm_api_code.md#api-code ) for details.
1620
1620
1621
1621
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
+
1622
1635
#### def __ get_trajectories__ (self):
1623
1636
1624
1637
> get the trajectories
@@ -2311,6 +2324,14 @@ xArm-Python-SDK API Documentation (V1.14.2): class XArmAPI in module xarm.wrappe
2311
2324
> : param path: app path
2312
2325
2313
2326
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
+
2314
2335
#### def __ run_gcode_file__ (self, path, ** kwargs):
2315
2336
2316
2337
> Run the gcode file
@@ -2508,7 +2529,7 @@ xArm-Python-SDK API Documentation (V1.14.2): class XArmAPI in module xarm.wrappe
2508
2529
2509
2530
> Set the digital value of the specified Controller GPIO
2510
2531
>
2511
- > : param ionum: 0~ 15
2532
+ > : param ionum: 0~ 7(CO0 ~ CO7), 8 ~ 15(DO0 ~ DO7)
2512
2533
> : param value: value
2513
2534
> : param delay_sec: delay effective time from the current start, in seconds, default is None(effective immediately)
2514
2535
> : 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
2521
2542
#### def __ set_cgpio_digital_input_function__ (self, ionum, fun):
2522
2543
2523
2544
> 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)
2525
2546
> : param fun: functional mode
2526
2547
> &ensp ;&ensp ;&ensp ;&ensp ; 0: general input
2527
2548
> &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
2537
2558
#### def __ set_cgpio_digital_output_function__ (self, ionum, fun):
2538
2559
2539
2560
> 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)
2541
2562
> : param fun: functionnal mode
2542
2563
> &ensp ;&ensp ;&ensp ;&ensp ; 0: general output
2543
2564
> &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
3565
3586
> &ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ;&ensp ; code >= 0: the last_used_tcp_speed/last_used_tcp_acc will be modified
3566
3587
3567
3588
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 ):
3569
3590
3570
3591
> Set vacuum gripper state
3571
3592
>
@@ -3578,6 +3599,9 @@ xArm-Python-SDK API Documentation (V1.14.2): class XArmAPI in module xarm.wrappe
3578
3599
> : param sync: whether to execute in the motion queue, set to False to execute immediately(default is True)
3579
3600
> &ensp ;&ensp ;&ensp ;&ensp ; 1. only available if firmware_version >= 2.4.101
3580
3601
> &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
3581
3605
> :return: code
3582
3606
> &ensp ;&ensp ;&ensp ;&ensp ; code: See the [ API Code Documentation] ( ./xarm_api_code.md#api-code ) for details.
3583
3607
0 commit comments