Skip to content

Commit 6d2b56d

Browse files
committed
release v3.1.2
1 parent 05c235b commit 6d2b56d

File tree

5 files changed

+130
-14
lines changed

5 files changed

+130
-14
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ChangeLog for pymycobot
22

3+
## v3.1.2 (2023-06-15)
4+
5+
- release v3.1.2
6+
- Fix set_joint_min(),set_joint_max() interface issue
7+
38
## v3.1.1 (2023-06-14)
49

510
- release v3.1.1

demo/myCobot_320_demo/myCobot_320_testtool_M5version_v1.0_20220623.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def aging_test(self):
474474

475475
def _calibration_test(self):
476476
self.write_log_to_Text("开始测试校准.")
477-
self.mycobot.set_refresh_mode(1)
477+
self.mycobot.set_fresh_mode(1)
478478
time.sleep(0.5)
479479
angles = [0, 0, 0, 0, 0, 0]
480480
test_angle = [-20, 20, 0]

demo/myCobot_320_demo/myCobot_320_testtool_PIversion_v1.0_20220623.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def aging_test():
531531

532532
def _calibration_test(self):
533533
self.write_log_to_Text("开始测试校准.")
534-
self.mycobot.set_refresh_mode(1)
534+
self.mycobot.set_fresh_mode(1)
535535
time.sleep(0.5)
536536
angles = [0, 0, 0, 0, 0, 0]
537537
test_angle = [-20, 20, 0]

docs/README.md

Lines changed: 122 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

pymycobot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
from pymycobot.mybuddyemoticon import MyBuddyEmoticon
4343
__all__.append("MyBuddyEmoticon")
4444

45-
__version__ = "3.1.1"
45+
__version__ = "3.1.2"
4646
__author__ = "Elephantrobotics"
4747
__email__ = "[email protected]"
4848
__git_url__ = "https://github.com/elephantrobotics/pymycobot"

0 commit comments

Comments
 (0)