bgg35-50
This commit is contained in:
@ -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')
|
||||
|
||||
Reference in New Issue
Block a user