Skip to content

Commit 1eb0aa4

Browse files
author
Leonid Fedorenchik
committed
Merge remote-tracking branch 'github/main'
2 parents 40d4e8c + b8ed6cd commit 1eb0aa4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3695
-662
lines changed

CHANGELOG.md

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

3+
## v3.9.9 (2025-06-19)
4+
5+
- release v3.9.9
6+
- Optimizing AGV protocols.
7+
- Added stop motion interface for 280 grippers.
8+
- Update M750 limit information.
9+
10+
## v3.9.8 (2025-06-05)
11+
12+
- release v3.9.8
13+
- Fix bugs
14+
315
## v3.9.7 (2025-4-14)
416

517
- release v3.9.7

demo/handle_control/README.md

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ pip3 install -r requirements.txt
1414

1515
## 3.Modify port number
1616

17-
Edit the handle_control.py file
17+
Edit the myCobot280_handle_control.py file
1818

1919
```python
2020
import pygame
2121
import time
2222
from pymycobot import MyCobot280
2323
import threading
24-
# Change com7 to the port number detected by your computer
25-
mc = MyCobot280("com7")
24+
# Change /dev/ttyAMA0 to the port number and rate detected by your computer
25+
mc = MyCobot280("/dev/ttyANA0", 1000000)
2626
...
2727
```
2828

2929
Finally. run the program.
3030

3131
```bash
32-
python3 handle_control.py
32+
python3 myCobot280_handle_control.py
3333
```
3434

35-
> Note: After running the program, first click the **14** button to check the machine connection status, the machine connection status is normal (if it is abnormal, you will not be able to perform other operations, please solve the abnormal connection problem first), and then click **Right 1** button, other operations can only be performed after the machine reaches the initial point.
35+
> Note: After running the program, you must first click the **Right 1** button. Only after the machine reaches the initial point can other operations be performed.
3636
3737
![img_en](./handle.jpg)
3838

@@ -50,12 +50,14 @@ The corresponding functions of the handle buttons are as follows:
5050
- **10**: Z direction coordinate value decreases
5151
- **11**: RZ direction coordinate value decreases
5252
- **12**: RZ direction coordinate value increases
53-
- **13**: Wake up the handle. After the handle is not used for a long time after connection, it will enter sleep mode. You need to press this button to wake up.
54-
- **14**: Check the connection status of the machine. The atom LED flashes green three times to indicate that the machine is normal; flashes red three times to indicate that the state is abnormal.
55-
- **X**: Press and hold the button, the jaws continue to open
56-
- **Y**: Press and hold the button, the jaws continue to close
57-
- **A**: open suction pump
58-
- **B**: Shut down the suction pump
53+
54+
[//]: # (- **13**: Wake up the handle. After the handle is not used for a long time after connection, it will enter sleep mode. You need to press this button to wake up.)
55+
56+
[//]: # (- **14**: Check the connection status of the machine. The atom LED flashes green three times to indicate that the machine is normal; flashes red three times to indicate that the state is abnormal.)
57+
- **X**: Click the button, open gripper
58+
- **Y**: Click the button, close gripper
59+
- **A**: Click the button, open suction pump
60+
- **B**: Click the button, Shut down the suction pump
5961
- **Left 1**: Press and hold for 2s to initialize the robot to the joint zero state.
6062
- **Left 2**: Press and hold for 2s, the robot stops torque output and relaxes all joints.
6163
- **Right 1**: Press and hold for 2s to initialize the robot to move to the initial point.
@@ -77,25 +79,25 @@ pip3 install -r requirements.txt
7779

7880
## 3.修改端口号
7981

80-
编辑 handle_control.py 文件
82+
编辑 myCobot280_handle_control.py 文件
8183

8284
```python
8385
import pygame
8486
import time
8587
from pymycobot import MyCobot280
8688
import threading
87-
# 将com7修改为你的电脑检测到的实际端口号
88-
mc = MyCobot280("com7")
89+
# 将/dev/ttyAMA0和1000000修改为你的电脑检测到的实际端口号和波特率
90+
mc = MyCobot280("/dev/ttyAMA0", 1000000)
8991
...
9092
```
9193

9294
最后,运行程序即可。
9395

9496
```bash
95-
python3 handle_control.py
97+
python3 myCobot280_handle_control.py
9698
```
9799

98-
> 注意:在运行程序以后,首先要先点击**14**按钮,检查机器连接状态,机器连接状态正常(若为异常,将无法进行其他的操作,请先解决连接异常问题),再点击**Right 1**按钮,机器到达初始点位以后,才可以进行其他的操作。
100+
> 注意:在运行程序以后,首先要点击**Right 1**按钮,机器到达初始点位以后,才可以进行其他的操作。
99101
100102
手柄按钮对应功能如下:
101103

@@ -111,12 +113,14 @@ python3 handle_control.py
111113
- **10**: Z方向坐标值减小
112114
- **11**: RZ方向坐标值减小
113115
- **12**: RZ方向坐标值增加
114-
- **13**: 唤醒手柄,手柄连接以后长时间不使用会进入休眠,需要按下此键来唤醒
115-
- **14**: 检测机器连接状态,atom LED闪烁绿灯三次表示机器正常,闪烁红灯三次表示状态异常。
116-
- **X**: 夹爪累加张开
117-
- **Y**: 夹爪累加关闭
118-
- **X**: 打开吸泵
119-
- **X**: 关闭吸泵
116+
117+
[//]: # (- **13**: 唤醒手柄,手柄连接以后长时间不使用会进入休眠,需要按下此键来唤醒)
118+
119+
[//]: # (- **14**: 检测机器连接状态,atom LED闪烁绿灯三次表示机器正常,闪烁红灯三次表示状态异常。)
120+
- **X**: 点击按钮,夹爪张开
121+
- **Y**: 点击按钮,夹爪关闭
122+
- **A**: 点击按钮,打开吸泵
123+
- **B**: 点击按钮,关闭吸泵
120124
- **Left 1**: 长按2s,初始化机器人至关节零位状态。
121125
- **Left 2**: 长按2s,机器人停止力矩输出,放松所有关节。
122126
- **Right 1**: 长按2s,初始化机器人至移动初始点位。

0 commit comments

Comments
 (0)