update
This commit is contained in:
@ -9,12 +9,12 @@ from Util.util_log import log
|
|||||||
|
|
||||||
class RobotClient(TCPClient):
|
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)
|
super().__init__(ip, port)
|
||||||
self.command_quene = command_quene
|
self.command_quene = command_quene
|
||||||
self.status_model = status_model
|
self.status_model = status_model
|
||||||
self.errorCommands = {}
|
self.errorCommands = {}
|
||||||
|
self.photo_locs = photo_locs
|
||||||
def add_sendQuene(self,command): #后面 命令分等级,紧急命令直接执行
|
def add_sendQuene(self,command): #后面 命令分等级,紧急命令直接执行
|
||||||
self.command_quene.put(command)
|
self.command_quene.put(command)
|
||||||
return
|
return
|
||||||
|
|||||||
@ -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-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-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]
|
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]
|
||||||
|
|||||||
@ -16,6 +16,12 @@ j5_min=-150
|
|||||||
j5_max=+150
|
j5_max=+150
|
||||||
j6_min=-150
|
j6_min=-150
|
||||||
j6_max=+150
|
j6_max=+150
|
||||||
|
photo_x1 = 0
|
||||||
|
photo_y1 = 0
|
||||||
|
photo_x2 = 0
|
||||||
|
photo_y2 = 0
|
||||||
|
photo_x3 = 0
|
||||||
|
photo_y3 = 0
|
||||||
LineCount=2
|
LineCount=2
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
11
app.py
11
app.py
@ -68,7 +68,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|||||||
|
|
||||||
background-color: rgba(255, 255, 255, 0);
|
background-color: rgba(255, 255, 255, 0);
|
||||||
font: 700 12pt "Microsoft YaHei UI";
|
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)
|
self.configReader.read(Constant.set_ini)
|
||||||
ip = self.configReader.get('Robot_Feed', 'IPAddress')
|
ip = self.configReader.get('Robot_Feed', 'IPAddress')
|
||||||
port = int(self.configReader.get('Robot_Feed', 'Port'))
|
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.feeding = Feeding(self.robotClient, self.detection) # 临时
|
||||||
self.last_time = time.time()
|
self.last_time = time.time()
|
||||||
|
|
||||||
|
|||||||
40
untitled.ui
40
untitled.ui
@ -127,7 +127,7 @@ border: 1px solid #dcdfe6;
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="page_6">
|
<widget class="QWidget" name="page_6">
|
||||||
<widget class="QFrame" name="frame_2">
|
<widget class="QFrame" name="frame_2">
|
||||||
@ -792,7 +792,7 @@ li.checked::marker { content: "\2612"; }
|
|||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">background-color: rgba(255, 255, 255, 0);
|
<string notr="true">background-color: rgba(255, 255, 255, 0);
|
||||||
color: black;</string>
|
color: red;</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>正在移动</string>
|
<string>正在移动</string>
|
||||||
@ -1982,7 +1982,7 @@ color:#7A7A7A;</string>
|
|||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">background-color: rgba(255, 255, 255, 0);
|
<string notr="true">background-color: rgba(255, 255, 255, 0);
|
||||||
font: 700 12pt "Microsoft YaHei UI";
|
font: 700 12pt "Microsoft YaHei UI";
|
||||||
color: black;</string>
|
color: red;</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>拍照中...</string>
|
<string>拍照中...</string>
|
||||||
@ -2200,7 +2200,7 @@ background-color: #ff6e00;
|
|||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>50</y>
|
<y>50</y>
|
||||||
<width>871</width>
|
<width>871</width>
|
||||||
<height>461</height>
|
<height>191</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@ -2287,6 +2287,38 @@ background-color: #197971;
|
|||||||
<string>保存</string>
|
<string>保存</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QFrame" name="frame_4">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>10</x>
|
||||||
|
<y>240</y>
|
||||||
|
<width>871</width>
|
||||||
|
<height>211</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>QFrame::Shape::StyledPanel</enum>
|
||||||
|
</property>
|
||||||
|
<property name="frameShadow">
|
||||||
|
<enum>QFrame::Shadow::Raised</enum>
|
||||||
|
</property>
|
||||||
|
<widget class="QFrame" name="frame_5">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>10</y>
|
||||||
|
<width>871</width>
|
||||||
|
<height>61</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>QFrame::Shape::StyledPanel</enum>
|
||||||
|
</property>
|
||||||
|
<property name="frameShadow">
|
||||||
|
<enum>QFrame::Shadow::Raised</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
|||||||
Reference in New Issue
Block a user