mycobot_ros/mycobot_ai/aikit_320_pi/scripts/test.py
2025-04-28 18:03:42 +08:00

18 lines
356 B
Python

from pymycobot import MyCobot320
import time
from pymycobot import PI_BAUD, PI_PORT
mc = MyCobot320(PI_PORT, PI_BAUD)
coords = [
[135.0, -65.5, 280.1, 178.99, 5.38, -179.9],
[136.1, -141.6, 243.9, 178.99, 5.38, -179.9]
]
angles = [0, 0, 0, 0, 0, 0]
mc.send_coords(coords[0], 20, 1)
time.sleep(3)
mc.send_coords(coords[1], 20, 1)