from api import GmiiVisionAPI
import time
GmiiVisionSocket = GmiiVisionAPI.load()
i = None
while True:
GmiiVisionAPI.DobotM1_SetPTPCommonParams(GmiiVisionSocket, 0, 100, 100)
GmiiVisionAPI.DobotM1_SetPTPCmd(GmiiVisionSocket, 0, 0, [200, (-30), 50, 0])
GmiiVisionAPI.DobotM1_WaitQueuedCmdCompleted(GmiiVisionSocket, 0)
GmiiVisionAPI.DobotM1_SetPTPCommonParams(GmiiVisionSocket, 0, 30, 30)
for i in range(1, 7):
GmiiVisionAPI.DobotM1_SetPTPCmd(GmiiVisionSocket, 0, 7, [10, 10, 0, 0])
GmiiVisionAPI.DobotM1_WaitQueuedCmdCompleted(GmiiVisionSocket, 0)