This commit is contained in:
2026-01-16 15:21:54 +08:00
parent 69361c5d5b
commit 1fd14cf7d8
41 changed files with 1133 additions and 26131 deletions

View File

@ -1,9 +1,6 @@
import logging
from enum import Enum
from turtle import Turtle
from numpy.array_api import trunc
import Constant
from COM.COM_TCP import TCPClient
import queue
@ -11,6 +8,7 @@ import json
from Model.RobotModel import DataAddress, DATARequest, DATAReply, CMDInstructRequest, Instruction
from Util.util_log import log
from Util.util_math import is_bit_set
#from numpy.array_api import trunc
class DetectType(Enum):
@ -45,9 +43,9 @@ class RobotClient(TCPClient):
def send_Command(self):
try:
if self.command_quene.qsize()!=0:
log.log_message(logging.INFO, f'robot-command:从队列获取命令')
# log.log_message(logging.INFO, f'robot-command:从队列获取命令')
command = self.command_quene.get()
log.log_message(logging.INFO, f'robot-command:{command}')
#log.log_message(logging.INFO, f'robot-command:{command}')
self.client_socket.send(command.encode())
if True:
response = self.client_socket.recv(1024).decode('utf-8')