适用于Dobot Magician的Python库
基于通信协议V1.1.4(最新版本)
安装
从安装驱动程序。
pip install pydobot
例子
from serial . tools import list_ports
import pydobot
available_ports = list_ports . comports ()
print ( f'available ports: { [ x . device for x in available_ports ] } ' )
port = available_ports [ 0 ]. device
device = pydobot . Dobot ( port = port , verbose = True )
( x , y , z , r , j1 , j2 , j3 , j4 ) = device . po
1