update 完成点位控制逻辑,UI可视化界面生成
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import logging
|
||||
from enum import Enum
|
||||
from turtle import Turtle
|
||||
|
||||
from numpy.array_api import trunc
|
||||
@ -9,6 +10,9 @@ import queue
|
||||
import json
|
||||
from Model.RobotModel import DataAddress,DATARequest,DATAReply
|
||||
from Util.util_log import log
|
||||
class DetectType(Enum):
|
||||
EyeOnHand = 0
|
||||
EyeOutHand = 1
|
||||
|
||||
class RobotClient(TCPClient):
|
||||
|
||||
@ -22,6 +26,7 @@ class RobotClient(TCPClient):
|
||||
self.time_delay_take= time_delay_take
|
||||
self.time_delay_put = time_delay_put
|
||||
self.time_delay_shake = time_delay_shake
|
||||
self.type_detection = DetectType.EyeOnHand
|
||||
def add_sendQuene(self,command): #后面 命令分等级,紧急命令直接执行
|
||||
self.command_quene.put(command)
|
||||
|
||||
@ -87,8 +92,11 @@ class RobotClient(TCPClient):
|
||||
return True
|
||||
except Exception as e:
|
||||
log.log_message(logging.ERROR,f'{e}')
|
||||
raise
|
||||
|
||||
|
||||
raise
|
||||
|
||||
def get_origin_position(self):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user