You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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)
26
26
...
27
27
```
28
28
29
29
Finally. run the program.
30
30
31
31
```bash
32
-
python3 handle_control.py
32
+
python3 myCobot280_handle_control.py
33
33
```
34
34
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 operationsbe performed.
36
36
37
37

38
38
@@ -50,12 +50,14 @@ The corresponding functions of the handle buttons are as follows:
50
50
-**10**: Z direction coordinate value decreases
51
51
-**11**: RZ direction coordinate value decreases
52
52
-**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
59
61
-**Left 1**: Press and hold for 2s to initialize the robot to the joint zero state.
60
62
-**Left 2**: Press and hold for 2s, the robot stops torque output and relaxes all joints.
61
63
-**Right 1**: Press and hold for 2s to initialize the robot to move to the initial point.
0 commit comments