diff --git a/COM/COM_Robot.py b/COM/COM_Robot.py
index 2c8b3c2..a5d7ed2 100644
--- a/COM/COM_Robot.py
+++ b/COM/COM_Robot.py
@@ -9,12 +9,12 @@ from Util.util_log import log
class RobotClient(TCPClient):
- def __init__(self, ip, port, command_quene, status_model:DataAddress):
+ def __init__(self, ip, port, photo_locs,command_quene, status_model:DataAddress):
super().__init__(ip, port)
self.command_quene = command_quene
self.status_model = status_model
self.errorCommands = {}
-
+ self.photo_locs = photo_locs
def add_sendQuene(self,command): #后面 命令分等级,紧急命令直接执行
self.command_quene.put(command)
return
diff --git a/MvSDKLog/CamCtrl_00.log b/MvSDKLog/CamCtrl_00.log
index fe408f2..86f0748 100644
--- a/MvSDKLog/CamCtrl_00.log
+++ b/MvSDKLog/CamCtrl_00.log
@@ -4792,3 +4792,33 @@ Warning 2024-09-13 23:43:59:0203 DevID:Virtual USB3 Vision Source-Line:MvCamer
Warning 2024-09-13 23:43:59:0203 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L0996) ProcessName:python.exe(16884) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_VERSION] failed, Ret[0x80000001]
Warning 2024-09-13 23:43:59:0203 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L1000) ProcessName:python.exe(16884) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_MANUFACTURER] failed, Ret[0x80000001]
Warning 2024-09-13 23:43:59:0203 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L1004) ProcessName:python.exe(16884) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_USER_DEFINED_NAME] failed, Ret[0x80000001]
+Error 2024-09-14 21:20:34:0106 DevID: Source-Line:MvCameraControl.dll(OtherLoadLibrary.cpp-L0709) ProcessName:python.exe(13148) Description:[LoadSRAllFunctions]hSRModule is NULL, Ret[0x8000000c]
+Warning 2024-09-14 21:20:34:0126 DevID: Source-Line:MvCameraControl.dll(GenTLLoadLibraryEx.cpp-L0345) ProcessName:python.exe(13148) Description:[LoadCtiLibInter]MV_GCSetConfigIntValue is NULL, CTI path[D:\environment\envs\UICreater\lib\site-packages\MvProducerVIR.dll]
+Warning 2024-09-14 21:20:34:0140 DevID:Virtual GigE Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L0992) ProcessName:python.exe(13148) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_MODEL] failed, Ret[0x80000001]
+Warning 2024-09-14 21:20:34:0140 DevID:Virtual GigE Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L0996) ProcessName:python.exe(13148) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_VERSION] failed, Ret[0x80000001]
+Warning 2024-09-14 21:20:34:0140 DevID:Virtual GigE Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L1000) ProcessName:python.exe(13148) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_MANUFACTURER] failed, Ret[0x80000001]
+Warning 2024-09-14 21:20:34:0140 DevID:Virtual GigE Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L1004) ProcessName:python.exe(13148) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_USER_DEFINED_NAME] failed, Ret[0x80000001]
+Warning 2024-09-14 21:20:34:0140 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L0992) ProcessName:python.exe(13148) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_MODEL] failed, Ret[0x80000001]
+Warning 2024-09-14 21:20:34:0140 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L0996) ProcessName:python.exe(13148) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_VERSION] failed, Ret[0x80000001]
+Warning 2024-09-14 21:20:34:0140 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L1000) ProcessName:python.exe(13148) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_MANUFACTURER] failed, Ret[0x80000001]
+Warning 2024-09-14 21:20:34:0140 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L1004) ProcessName:python.exe(13148) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_USER_DEFINED_NAME] failed, Ret[0x80000001]
+Error 2024-09-19 19:51:35:0016 DevID: Source-Line:MvCameraControl.dll(OtherLoadLibrary.cpp-L0709) ProcessName:python.exe(15456) Description:[LoadSRAllFunctions]hSRModule is NULL, Ret[0x8000000c]
+Warning 2024-09-19 19:51:35:0037 DevID: Source-Line:MvCameraControl.dll(GenTLLoadLibraryEx.cpp-L0345) ProcessName:python.exe(15456) Description:[LoadCtiLibInter]MV_GCSetConfigIntValue is NULL, CTI path[D:\environment\envs\UICreater\lib\site-packages\MvProducerVIR.dll]
+Warning 2024-09-19 19:51:35:0051 DevID:Virtual GigE Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L0992) ProcessName:python.exe(15456) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_MODEL] failed, Ret[0x80000001]
+Warning 2024-09-19 19:51:35:0051 DevID:Virtual GigE Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L0996) ProcessName:python.exe(15456) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_VERSION] failed, Ret[0x80000001]
+Warning 2024-09-19 19:51:35:0051 DevID:Virtual GigE Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L1000) ProcessName:python.exe(15456) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_MANUFACTURER] failed, Ret[0x80000001]
+Warning 2024-09-19 19:51:35:0051 DevID:Virtual GigE Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L1004) ProcessName:python.exe(15456) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_USER_DEFINED_NAME] failed, Ret[0x80000001]
+Warning 2024-09-19 19:51:35:0051 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L0992) ProcessName:python.exe(15456) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_MODEL] failed, Ret[0x80000001]
+Warning 2024-09-19 19:51:35:0051 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L0996) ProcessName:python.exe(15456) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_VERSION] failed, Ret[0x80000001]
+Warning 2024-09-19 19:51:35:0052 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L1000) ProcessName:python.exe(15456) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_MANUFACTURER] failed, Ret[0x80000001]
+Warning 2024-09-19 19:51:35:0052 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L1004) ProcessName:python.exe(15456) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_USER_DEFINED_NAME] failed, Ret[0x80000001]
+Error 2024-09-19 20:04:10:0200 DevID: Source-Line:MvCameraControl.dll(OtherLoadLibrary.cpp-L0709) ProcessName:python.exe(14692) Description:[LoadSRAllFunctions]hSRModule is NULL, Ret[0x8000000c]
+Warning 2024-09-19 20:04:10:0204 DevID: Source-Line:MvCameraControl.dll(GenTLLoadLibraryEx.cpp-L0345) ProcessName:python.exe(14692) Description:[LoadCtiLibInter]MV_GCSetConfigIntValue is NULL, CTI path[D:\environment\envs\UICreater\lib\site-packages\MvProducerVIR.dll]
+Warning 2024-09-19 20:04:10:0204 DevID:Virtual GigE Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L0992) ProcessName:python.exe(14692) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_MODEL] failed, Ret[0x80000001]
+Warning 2024-09-19 20:04:10:0204 DevID:Virtual GigE Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L0996) ProcessName:python.exe(14692) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_VERSION] failed, Ret[0x80000001]
+Warning 2024-09-19 20:04:10:0204 DevID:Virtual GigE Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L1000) ProcessName:python.exe(14692) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_MANUFACTURER] failed, Ret[0x80000001]
+Warning 2024-09-19 20:04:10:0204 DevID:Virtual GigE Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L1004) ProcessName:python.exe(14692) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_USER_DEFINED_NAME] failed, Ret[0x80000001]
+Warning 2024-09-19 20:04:10:0204 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L0992) ProcessName:python.exe(14692) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_MODEL] failed, Ret[0x80000001]
+Warning 2024-09-19 20:04:10:0204 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L0996) ProcessName:python.exe(14692) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_VERSION] failed, Ret[0x80000001]
+Warning 2024-09-19 20:04:10:0204 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L1000) ProcessName:python.exe(14692) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_MANUFACTURER] failed, Ret[0x80000001]
+Warning 2024-09-19 20:04:10:0204 DevID:Virtual USB3 Vision Source-Line:MvCameraControl.dll(GenTLManager.cpp-L1004) ProcessName:python.exe(14692) Description:[GetInterfaceInfos]TLGetInterfaceInfo[INTERFACE_INFO_USER_DEFINED_NAME] failed, Ret[0x80000001]
diff --git a/Seting.ini b/Seting.ini
index 4223b36..91f91bc 100644
--- a/Seting.ini
+++ b/Seting.ini
@@ -16,6 +16,12 @@ j5_min=-150
j5_max=+150
j6_min=-150
j6_max=+150
+photo_x1 = 0
+photo_y1 = 0
+photo_x2 = 0
+photo_y2 = 0
+photo_x3 = 0
+photo_y3 = 0
LineCount=2
diff --git a/app.py b/app.py
index 6ec3a27..6f9e3f9 100644
--- a/app.py
+++ b/app.py
@@ -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()
diff --git a/untitled.ui b/untitled.ui
index aded5bd..f66ca92 100644
--- a/untitled.ui
+++ b/untitled.ui
@@ -127,7 +127,7 @@ border: 1px solid #dcdfe6;
- 0
+ 1
@@ -792,7 +792,7 @@ li.checked::marker { content: "\2612"; }
background-color: rgba(255, 255, 255, 0);
-color: black;
+color: red;
正在移动
@@ -1982,7 +1982,7 @@ color:#7A7A7A;
background-color: rgba(255, 255, 255, 0);
font: 700 12pt "Microsoft YaHei UI";
-color: black;
+color: red;
拍照中...
@@ -2200,7 +2200,7 @@ background-color: #ff6e00;
10
50
871
- 461
+ 191
@@ -2287,6 +2287,38 @@ background-color: #197971;
保存
+
+
+
+ 10
+ 240
+ 871
+ 211
+
+
+
+ QFrame::Shape::StyledPanel
+
+
+ QFrame::Shadow::Raised
+
+
+
+
+ 0
+ 10
+ 871
+ 61
+
+
+
+ QFrame::Shape::StyledPanel
+
+
+ QFrame::Shadow::Raised
+
+
+