update 完成点位控制逻辑,UI可视化界面生成

This commit is contained in:
FrankCV2048
2024-11-30 22:46:32 +08:00
parent bde241574c
commit ef5ed6eed1
9 changed files with 369 additions and 63 deletions

View File

@ -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