This commit is contained in:
FrankCV2048
2024-10-08 23:02:16 +08:00
parent d281b26443
commit 2fd734562d
5 changed files with 83 additions and 8 deletions

11
app.py
View File

@ -68,7 +68,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
background-color: rgba(255, 255, 255, 0);
font: 700 12pt "Microsoft YaHei UI";
color: black;
color: red;
"""
@ -176,8 +176,15 @@ class MainWindow(QMainWindow, Ui_MainWindow):
self.configReader.read(Constant.set_ini)
ip = self.configReader.get('Robot_Feed', 'IPAddress')
port = int(self.configReader.get('Robot_Feed', 'Port'))
photo_locs = [(int(self.configReader.get('Robot_Feed', 'photo_x1')),
int(self.configReader.get('Robot_Feed', 'photo_y1'))),
(int(self.configReader.get('Robot_Feed', 'photo_x2')),
int(self.configReader.get('Robot_Feed', 'photo_y2'))),
(int(self.configReader.get('Robot_Feed', 'photo_x3')),
int(self.configReader.get('Robot_Feed', 'photo_y3')))
]
self.robotClient = RobotClient(ip, port, self.command_position_quene, self.status_address)
self.robotClient = RobotClient(ip, port, photo_locs,self.command_position_quene, self.status_address)
self.feeding = Feeding(self.robotClient, self.detection) # 临时
self.last_time = time.time()