@@ -10,7 +10,7 @@ We support Python2, Python3.5 or later.
1010<!-- vim-markdown-toc GFM -->
1111
1212- [ pymycobot] ( #pymycobot )
13- - [ MyCobot / Mypalletizer / MechArm] ( #mycobot--mypalletizer--mecharm )
13+ - [ MyCobot / Mypalletizer / MechArm / MyArm ] ( #mycobot--mypalletizer--mecharm--myarm )
1414 - [ Overall status] ( #overall-status )
1515 - [ power\_ on] ( #power_on )
1616 - [ power\_ off] ( #power_off )
@@ -23,6 +23,7 @@ We support Python2, Python3.5 or later.
2323 - [ MDI mode and operation] ( #mdi-mode-and-operation )
2424 - [ get\_ angles] ( #get_angles )
2525 - [ set\_ fresh\_ mode(mode)] ( #set_fresh_modemode )
26+ - [ get\_ fresh\_ mode()] ( #get_fresh_mode )
2627 - [ send\_ angle] ( #send_angle )
2728 - [ send\_ angles()] ( #send_angles )
2829 - [ get\_ radians] ( #get_radians )
@@ -33,9 +34,11 @@ We support Python2, Python3.5 or later.
3334 - [ sync\_ send\_ angles] ( #sync_send_angles )
3435 - [ sync\_ send\_ coords] ( #sync_send_coords )
3536 - [ is\_ in\_ position] ( #is_in_position )
37+ - [ is\_ moving] ( #is_moving )
3638 - [ JOG mode and operation] ( #jog-mode-and-operation )
3739 - [ jog\_ angle] ( #jog_angle )
3840 - [ jog\_ coord] ( #jog_coord )
41+ - [ jog\_ absolute] ( #jog_absolute )
3942 - [ jog\_ increment] ( #jog_increment )
4043 - [ jog\_ stop] ( #jog_stop )
4144 - [ pause] ( #pause )
@@ -67,10 +70,10 @@ We support Python2, Python3.5 or later.
6770 - [ set\_ digital\_ output()] ( #set_digital_output )
6871 - [ get\_ digital\_ input()] ( #get_digital_input )
6972 - [ set\_ pwm\_ output()] ( #set_pwm_output )
73+ - [ set\_ gripper\_ calibration] ( #set_gripper_calibration )
7074 - [ get\_ gripper\_ value] ( #get_gripper_value )
7175 - [ set\_ gripper\_ state] ( #set_gripper_state )
7276 - [ set\_ gripper\_ value] ( #set_gripper_value )
73- - [ set\_ gripper\_ ini] ( #set_gripper_ini )
7477 - [ is\_ gripper\_ moving] ( #is_gripper_moving )
7578 - [ get\_ basic\_ input] ( #get_basic_input )
7679 - [ set\_ basic\_ output] ( #set_basic_output )
@@ -100,8 +103,14 @@ We support Python2, Python3.5 or later.
100103 - [ get\_ servo\_ temps] ( #get_servo_temps )
101104 - [ init\_ eletric\_ gripper] ( #init_eletric_gripper )
102105 - [ set\_ eletric\_ gripper] ( #set_eletric_gripper )
106+ - [ set\_ gripper\_ mode] ( #set_gripper_mode )
107+ - [ get\_ gripper\_ mode] ( #get_gripper_mode )
103108 - [ set\_ encoders\_ drag] ( #set_encoders_drag )
104- - [ set\_ refresh\_ mode] ( #set_refresh_mode )
109+ - [ get\_ solution\_ angles] ( #get_solution_angles )
110+ - [ set\_ solution\_ angles] ( #set_solution_angles )
111+ - [ joint\_ brake] ( #joint_brake )
112+ - [ get\_ transpoendr\_ mode] ( #get_transpoendr_mode )
113+ - [ set\_ transpoendr\_ mode] ( #set_transpoendr_mode )
105114 - [ Raspberry pi -- GPIO] ( #raspberry-pi----gpio )
106115 - [ gpio\_ init] ( #gpio_init )
107116 - [ gpio\_ output] ( #gpio_output )
@@ -231,7 +240,7 @@ We support Python2, Python3.5 or later.
231240<!-- vim-markdown-toc -->
232241</details >
233242
234- # MyCobot / Mypalletizer / MechArm
243+ # MyCobot / Mypalletizer / MechArm / MyArm
235244
236245** Import to your project** :
237246
@@ -349,6 +358,14 @@ Set command refresh mode
349358 1 - Always execute the latest command first.
350359 0 - Execute instructions sequentially in the form of a queue.
351360
361+ ### get_fresh_mode()
362+
363+ get command refresh mode
364+
365+ * ** return**
366+ - 1 - Always execute the latest command first.
367+ - 0 - Execute instructions sequentially in the form of a queue.
368+
352369### send_angle
353370
354371- ** Prototype** : ` send_angles(id, degree, speed) `
@@ -521,6 +538,17 @@ Set command refresh mode
521538 - ` 0 ` - false
522539 - ` -1 ` - error
523540
541+ ### is_moving
542+
543+ - ** Prototype** : ` is_moving() `
544+
545+ - ** Description** : Detect if the robot is moving.
546+
547+ - ** Returns**
548+ - ` 1 ` - is moving
549+ - ` 0 ` - not moving
550+ - ` -1 ` - error data
551+
524552## JOG mode and operation
525553
526554### jog_angle
@@ -547,6 +575,21 @@ Set command refresh mode
547575 - ` direction ` : ` 0 ` - decrease, ` 1 ` - increase
548576 - ` speed ` : 0 ~ 100
549577
578+ ### jog_absolute
579+
580+ - ** Prototype** : ` jog_absolute(joint_id, angle, speed) `
581+
582+ - ** Description** : Jog absolute angle.
583+
584+ - ** Parameters**
585+
586+ - ` joint_id ` : (` int ` )
587+ - for mycobot: int 1-6.
588+ - for mypalletizer: int 1-4.
589+ - for myArm: int 1 - 7.
590+ - ` direction ` :
591+ - ` speed ` : 0 ~ 100
592+
550593### jog_increment
551594
552595- ** Prototype** : ` jog_increment(coord_id, direction, speed) `
@@ -791,7 +834,7 @@ Set command refresh mode
791834 - ` pin_mode ` (int): 0 - input, 1 - output, 2 - input_pullup
792835
793836### set_digital_output()
794-
837+ Set the terminal atom io status
795838- ** Parameters**
796839
797840 - ` pin_no ` (int):
@@ -820,6 +863,13 @@ Set command refresh mode
820863 - ` frequency ` (` int ` ): clock frequency
821864 - ` pin_val ` (` int ` ): Duty cycle 0 ~ 256; 128 means 50%
822865
866+ ### set_gripper_calibration
867+
868+ - ** Prototype** : ` set_gripper_calibration() `
869+
870+ - ** Description** : Set the current position to zero, set current position value is ` 2048 ` .
871+
872+
823873### get_gripper_value
824874
825875- ** Prototype** : ` get_gripper_value() `
@@ -850,11 +900,11 @@ Set command refresh mode
850900 - ` value ` (int): 0 ~ 100
851901 - ` speed ` (int): 0 ~ 100
852902
853- ### set_gripper_ini
903+ <!-- ### set_gripper_ini
854904
855905- **Prototype**: `set_gripper_ini()`
856906
857- - ** Description** : Set the current position to zero, set current position value is ` 2048 ` .
907+ - **Description**: Set the current position to zero, set current position value is `2048`. -->
858908
859909### is_gripper_moving
860910
@@ -1114,6 +1164,26 @@ Set command refresh mode
11141164
11151165 - ` status ` (` int ` ): 0 - open, 1 - close.
11161166
1167+ ### set_gripper_mode
1168+
1169+ - ** Prototype** : ` set_gripper_mode(status) `
1170+
1171+ - ** Description** : Set gripper mode.
1172+
1173+ - ** Parameters**
1174+
1175+ - ` status ` (` int ` ): 0 - transparent transmission. 1 - Port Mode.
1176+
1177+ ### get_gripper_mode
1178+
1179+ - ** Prototype** : ` get_gripper_mode() `
1180+
1181+ - ** Description** : Get gripper mode.
1182+
1183+ - ** Return**
1184+
1185+ - ` status ` (` int ` ): 0 - transparent transmission. 1 - Port Mode.
1186+
11171187### set_encoders_drag
11181188
11191189- ** Prototype** : ` set_encoders_drag(encoders, speeds) `
@@ -1125,15 +1195,56 @@ Set command refresh mode
11251195 - ` encoders ` (` list ` ) : encoders list.
11261196 - ` speeds ` : Obtained by the get_servo_speeds() method
11271197
1128- ### set_refresh_mode
11291198
1130- - ** Prototype** : ` set_refresh_mode(mode) `
1199+ ### get_solution_angles
1200+
1201+ - ** Prototype** : ` get_solution_angles() `
1202+
1203+ - ** Description** : Get zero space deflection angle value.(` This interface is only applicable to MyArm ` )
1204+
1205+ ### set_solution_angles
1206+
1207+ - ** Prototype** : ` set_solution_angles(angle, speed) `
1208+
1209+ - ** Description** : Set zero space deflection angle value.(` This interface is only applicable to MyArm ` )
1210+
1211+ - ** Parameters**
1212+
1213+ - ` angle ` : Angle of joint 1.
1214+ - ` speed ` : 1 - 100.
1215+
1216+ ### joint_brake
1217+
1218+ - ** Prototype** : ` joint_brake(joint_id) `
11311219
1132- - ** Description** : Set command refresh mode
1220+ - ** Description** : Make it stop when the joint is in motion, and the buffer distance is positively related to the existing speed
11331221
11341222- ** Parameters**
11351223
1136- - ` mode ` : 0 - with interpolation 1 - No interpolation
1224+ - ` joint_id ` : 1 - 7.
1225+
1226+ ### get_transpoendr_mode
1227+
1228+ - ** Prototype** : ` get_transpoendr_mode() `
1229+
1230+ - ** Description** : Obtain the configuration information of serial transmission mode.(` This interface is only applicable to MyArm ` )
1231+
1232+ - ** Return**
1233+ - ` 0 ` : Turn off transparent transmission
1234+ - ` 1 ` : Turn on transparent transmission, verify all data
1235+ - ` 2 ` : Turn on transparent transmission, only verify communication forwarding mode configuration information (default is 0)
1236+
1237+ ### set_transpoendr_mode
1238+
1239+ - ** Prototype** : ` set_transpoendr_mode(mode) `
1240+
1241+ - ** Description** : Set serial port transmission mode.(` This interface is only applicable to MyArm ` )
1242+
1243+ - ** Parameters**
1244+ - ` mode ` :
1245+ - ` 0 ` : Turn off transparent transmission
1246+ - ` 1 ` : Turn on transparent transmission, verify all data
1247+ - ` 2 ` : Turn on transparent transmission, only verify communication forwarding mode configuration information
11371248
11381249## Raspberry pi -- GPIO
11391250
0 commit comments