CN116442249B - Assembly control method, assembly device, and computer-readable storage medium - Google Patents
Assembly control method, assembly device, and computer-readable storage medium Download PDFInfo
- Publication number
- CN116442249B CN116442249B CN202310722117.XA CN202310722117A CN116442249B CN 116442249 B CN116442249 B CN 116442249B CN 202310722117 A CN202310722117 A CN 202310722117A CN 116442249 B CN116442249 B CN 116442249B
- Authority
- CN
- China
- Prior art keywords
- assembly
- standard sub
- assembly component
- job
- control data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J9/00—Programme-controlled manipulators
- B25J9/16—Programme controls
- B25J9/1679—Programme controls characterised by the tasks executed
- B25J9/1687—Assembly, peg and hole, palletising, straight line, weaving pattern movement
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J9/00—Programme-controlled manipulators
- B25J9/16—Programme controls
- B25J9/1602—Programme controls characterised by the control system, structure, architecture
- B25J9/161—Hardware, e.g. neural networks, fuzzy logic, interfaces, processor
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J9/00—Programme-controlled manipulators
- B25J9/16—Programme controls
- B25J9/1656—Programme controls characterised by programming, planning systems for manipulators
- B25J9/1664—Programme controls characterised by programming, planning systems for manipulators characterised by motion, path, trajectory planning
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Robotics (AREA)
- Mechanical Engineering (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Automatic Assembly (AREA)
Abstract
本发明公开了一种装配控制方法、装配设备及计算机可读存储介质,涉及机器人控制技术领域,通过根据各装配组件的使用时长确定各装配组件对应的标准子作业路径,基于标准子作业路径生成标准子作业控制数据,基于标准子作业控制数据控制装配组件进行装配,通过确定装配设备中各装配组件的使用时长,基于其使用时长确定对应的补偿后的子作业路径,即标准子作业路径,以此避免随时间推移而存在的装配设备的作业路径偏移的现象,根据标准子作业路径生成对应的标准子作业控制数据对装配组件进行控制,以此避免随使用时长的偏移的作业路径导致的装配设备的作业效率低下的情况,提升了装配设备的控制精确性。
The invention discloses an assembly control method, assembly equipment and a computer-readable storage medium, and relates to the technical field of robot control. The standard sub-operation path corresponding to each assembly component is determined according to the use time of each assembly component, and the standard sub-operation path is generated based on the standard sub-operation path. Standard sub-job control data, based on the standard sub-job control data to control the assembly components for assembly, by determining the use time of each assembly component in the assembly equipment, based on the use time to determine the corresponding compensated sub-job path, that is, the standard sub-job path, In order to avoid the deviation of the working path of the assembly equipment over time, the corresponding standard sub-job control data is generated according to the standard sub-job path to control the assembly components, so as to avoid the shifting working path with the length of use The resulting low operating efficiency of the assembly equipment improves the control accuracy of the assembly equipment.
Description
技术领域technical field
本发明涉及机器人控制技术领域,尤其涉及一种装配控制方法、装配设备及计算机可读存储介质。The invention relates to the technical field of robot control, in particular to an assembly control method, assembly equipment and a computer-readable storage medium.
背景技术Background technique
现市面上的装配设备,例如SCARA(Selective Compliance Assembly Robot Arm,选择性柔顺装配机械臂)机器人广泛应用于塑料工业、汽车工业、电子产品工业、药品工业和食品工业等领域的装配工作,现有的SCARA机器人一般通过示教的方式实现对SCARA机器人作业路径的控制,但由于时间的推移,SCARA机器人的作业路径会逐渐产生偏移,导致作业效率降低的情况,基于该情况,通常需要技术人员通过重新对SCARA机器人进行示教以对偏移进行调整。The assembly equipment currently on the market, such as SCARA (Selective Compliance Assembly Robot Arm, Selective Compliance Assembly Robot Arm) robots are widely used in the assembly work of plastics industry, automobile industry, electronics industry, pharmaceutical industry and food industry. The SCARA robot generally realizes the control of the SCARA robot's working path through the teaching method, but due to the passage of time, the SCARA robot's working path will gradually shift, resulting in a decrease in working efficiency. Based on this situation, technical personnel are usually required Adjust the offset by re-teaching the SCARA robot.
而在具体应用中发现,技术人员对存在作业路径偏移的SCARA机器人进行的示教并不能满足对偏移的精确处理,使得重新示教后的SCARA机器人的作用路径依旧存在偏移的情况。However, in specific applications, it is found that the teaching of the SCARA robot with the deviation of the working path by the technicians cannot satisfy the precise processing of the deviation, so that the action path of the SCARA robot after the re-teaching still has deviation.
发明内容Contents of the invention
本发明的主要目地在于提供一种装配控制方法、装配设备及计算机可读存储介质,旨在解决SCARA机器人存在的作业路径的偏移难以精准调整的技术问题。The main purpose of the present invention is to provide an assembly control method, assembly equipment and computer-readable storage medium, aiming at solving the technical problem that the offset of the working path of the SCARA robot is difficult to adjust accurately.
为实现上述目地,本发明提供一种装配控制方法,所述装配控制方法应用于装配设备,所述装配设备包括若干装配组件,所述装配控制方法包括以下步骤:To achieve the above object, the present invention provides an assembly control method, the assembly control method is applied to assembly equipment, the assembly equipment includes a number of assembly components, the assembly control method includes the following steps:
根据各所述装配组件的使用时长确定各所述装配组件对应的标准子作业路径,基于所述标准子作业路径生成标准子作业控制数据,其中,所述标准子作业路径为对所述装配组件在不同使用时长下存在的子作业路径的偏移进行补偿后的子作业路径;Determine the standard sub-job path corresponding to each of the assembly components according to the usage time of each of the assembly components, and generate standard sub-job control data based on the standard sub-job path, wherein the standard sub-job path is for the assembly component The sub-job path after compensation for the offset of the sub-job path existing under different usage durations;
基于所述标准子作业控制数据控制所述装配组件进行装配。The assembly components are controlled to be assembled based on the standard sub-job control data.
可选地,在所述根据各所述装配组件的使用时长确定各所述装配组件对应的标准子作业路径的步骤之前,所述方法还包括:Optionally, before the step of determining the standard sub-work path corresponding to each of the assembly components according to the usage time of each of the assembly components, the method further includes:
基于至少一组预设作业点在工件坐标系中的预设工件坐标位置,控制所述装配组件进行装配,形成一组第一实际作业点;Based on the preset workpiece coordinate positions of at least one set of preset operating points in the workpiece coordinate system, the assembly components are controlled to be assembled to form a set of first actual operating points;
采用视觉相机获取所述第一实际作业点在像素坐标系中的第一实际坐标位置;Obtaining the first actual coordinate position of the first actual operation point in the pixel coordinate system by using a visual camera;
依据预设像素-工件坐标转换关系,将所述第一实际坐标位置转换为在所述工件坐标系中的实际工件坐标位置,其中,所述预设像素-工件坐标转换关系为预先设置的像素坐标系和工件坐标系之间的转换关系;converting the first actual coordinate position into an actual workpiece coordinate position in the workpiece coordinate system according to a preset pixel-workpiece coordinate transformation relationship, wherein the preset pixel-workpiece coordinate transformation relationship is a preset pixel The conversion relationship between the coordinate system and the workpiece coordinate system;
根据所述预设工件坐标位置和所述实际工件坐标位置确定偏差量,并基于所述偏差量对所述装配组件中的工件进行校正。A deviation is determined according to the preset workpiece coordinate position and the actual workpiece coordinate position, and the workpiece in the assembly assembly is corrected based on the deviation.
可选地,在所述基于所述偏差量对所述装配组件中的工件进行校正的步骤之后,所述方法还包括:Optionally, after the step of correcting the workpiece in the assembly assembly based on the deviation, the method further includes:
选择任一所述装配组件作为基准装配组件;selecting any one of said assembly components as a reference assembly;
根据所述基准装配组件和非基准装配组件分别对应的工作路径上的理论作业点在所述像素坐标系中的理论坐标位置,控制所述基准装配组件和所述非基准装配组件进行装配,获得所述基准装配组件和所述非基准装配组件分别对应的第二实际作业点;According to the theoretical coordinate position of the theoretical working point on the working path corresponding to the reference assembly component and the non-reference assembly component respectively in the pixel coordinate system, control the reference assembly component and the non-reference assembly component to assemble, obtain The second actual operating points respectively corresponding to the reference assembly component and the non-reference assembly component;
采用所述视觉相机获取所述基准装配组件和所述非基准装配组件分别对应的所述第二实际作业点在所述像素坐标系中的第二实际坐标位置;Obtaining the second actual coordinate positions of the second actual working point corresponding to the reference assembly component and the non-reference assembly component respectively in the pixel coordinate system by using the visual camera;
根据所述基准装配组件和所述非基准装配组件分别对应的所述第二实际坐标位置和所述理论坐标位置,确定各所述装配组件的偏移量,其中,各所述装配组件中的所述基准装配组件的偏移量为0。According to the second actual coordinate position and the theoretical coordinate position respectively corresponding to the reference assembly component and the non-reference assembly component, determine the offset of each of the assembly components, wherein each of the assembly components The offset of the baseline assembly component is 0.
可选地,所述基于所述标准子作业控制数据控制所述装配组件进行装配的步骤,包括:Optionally, the step of controlling the assembly components to be assembled based on the standard sub-job control data includes:
基于所述标准子作业控制数据和各所述装配组件的偏移量,控制所述装配组件进行装配。Based on the standard sub-job control data and the offset of each of the assembly components, the assembly components are controlled to be assembled.
可选地,所述基于所述标准子作业路径生成标准子作业控制数据的步骤,包括:Optionally, the step of generating standard sub-job control data based on the standard sub-job path includes:
将所述标准子作业路径转换为标准子作业点阵图像;Converting the standard sub-job path into a standard sub-job bitmap image;
根据所述标准子作业点阵图像中每个标准像素点的控制内容,生成所述标准子作业控制数据。The standard sub-job control data is generated according to the control content of each standard pixel in the standard sub-job bitmap image.
可选地,在所述基于所述标准子作业路径生成标准子作业控制数据的步骤之后,所述方法还包括:Optionally, after the step of generating standard sub-job control data based on the standard sub-job path, the method further includes:
采用视觉相机获取历史作业点阵图像中各个历史像素点在所述像素坐标系中的历史坐标位置;Using a visual camera to obtain the historical coordinate positions of each historical pixel in the pixel coordinate system in the historical operation bitmap image;
依据所述预设像素-工件坐标转换关系,将所述历史坐标位置转换为在所述工件坐标系中的历史工件坐标位置;converting the historical coordinate position into a historical workpiece coordinate position in the workpiece coordinate system according to the preset pixel-workpiece coordinate transformation relationship;
根据所述各个历史像素点在所述工件坐标系中的预设工件坐标位置和所述历史工件坐标位置,确定偏移校正量和旋转校正量。An offset correction amount and a rotation correction amount are determined according to a preset workpiece coordinate position of each historical pixel point in the workpiece coordinate system and the historical workpiece coordinate position.
可选地,所述基于所述标准子作业控制数据和各所述装配组件的偏移量,控制所述装配组件进行装配的步骤,包括:Optionally, the step of controlling the assembly of the assembly components based on the standard sub-job control data and the offset of each of the assembly components includes:
通过所述偏移校正量和所述旋转校正量校正所述标准子作业控制数据;correcting the standard sub-job control data by the offset correction amount and the rotation correction amount;
基于校正后的标准子作业控制数据和各所述装配组件的偏移量,控制所述装配设备进行装配。Based on the corrected standard sub-job control data and the offset of each assembly component, the assembly equipment is controlled to perform assembly.
可选地,在所述基于所述标准子作业控制数据控制所述装配组件进行装配的步骤之后,所述方法还包括:Optionally, after the step of controlling the assembly components to be assembled based on the standard sub-job control data, the method further includes:
若检测到所述装配组件基于所述标准子作业控制数据进行装配的实施作业路径存在误差,则通过设置在所述装配组件中的传感器获取所述装配组件的误差值;If it is detected that the assembly component is assembled based on the standard sub-operation control data, there is an error in the implementation path of the assembly component, and the error value of the assembly component is obtained through a sensor arranged in the assembly component;
根据所述误差值确定所述装配组件的故障点。A failure point of the assembled component is determined according to the error value.
此外,为实现上述目的,本发明还提供一种装配设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机处理程序,所述处理器执行所述计算机处理程序时实现上述装配控制方法的步骤。In addition, in order to achieve the above object, the present invention also provides an assembly device, which includes a memory, a processor, and a computer processing program stored in the memory and operable on the processor. When the processor executes the computer processing program, the The steps of the above assembly control method.
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述装配控制方法的步骤。In addition, to achieve the above object, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned assembly control method are realized.
本发明通过根据各装配组件的使用时长确定各装配组件对应的标准子作业路径,基于标准子作业路径生成标准子作业控制数据,其中,标准子作业路径为对装配组件在不同使用时长下存在的子作业路径的偏移进行补偿后的作业路径,基于标准子作业控制数据控制装配组件进行装配,通过确定装配设备中各装配组件的使用时长,基于其使用时长确定对应的补偿后的作业路径,即标准子作业路径,以此避免随时间推移而存在的装配设备的作业路径偏移的现象,根据标准子作业路径生成对应的标准子作业控制数据对装配组件进行控制,以此避免偏移的作业路径导致的装配设备的作业效率低下的情况,提升了装配设备的控制精确性,同时还避免了需技术人员对装配设备进行重新示教而存在不便捷性,提升了装配设备的便捷性。The present invention determines the standard sub-job path corresponding to each assembly component according to the length of use of each assembly component, and generates standard sub-job control data based on the standard sub-job path. The offset of the sub-job path is compensated, and the assembly components are controlled based on the standard sub-job control data. By determining the use time of each assembly component in the assembly equipment, the corresponding compensated work path is determined based on the use time. That is, the standard sub-job path, so as to avoid the deviation of the working path of the assembly equipment over time, and generate the corresponding standard sub-job control data to control the assembly components according to the standard sub-job path, so as to avoid the deviation The low operating efficiency of the assembly equipment caused by the operation path improves the control accuracy of the assembly equipment, and at the same time avoids the inconvenience of requiring technicians to re-teach the assembly equipment, and improves the convenience of the assembly equipment.
附图说明Description of drawings
图1是本发明实施例方案涉及的硬件运行环境的终端结构示意图;Fig. 1 is a schematic diagram of the terminal structure of the hardware operating environment involved in the solution of the embodiment of the present invention;
图2为本发明装配控制方法第一实施例的流程示意图;Fig. 2 is a schematic flow chart of the first embodiment of the assembly control method of the present invention;
图3为SCAR机器人的结构示意图;Fig. 3 is the structural representation of SCAR robot;
图4为本发明装配控制方法第二实施例的流程示意图;Fig. 4 is a schematic flow chart of the second embodiment of the assembly control method of the present invention;
图5为本发明装配控制方法第三实施例的流程示意图。Fig. 5 is a schematic flowchart of a third embodiment of the assembly control method of the present invention.
本发明目地的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
如图1所示,图1是本发明实施例方案涉及的硬件运行环境的终端结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in the solution of the embodiment of the present invention.
本发明实施例装配控制方法应用载体为装配设备,如图1所示,该装配设备可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示区(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。The application carrier of the assembly control method in the embodiment of the present invention is an assembly device. As shown in FIG. Wherein, the communication bus 1002 is used to realize connection and communication between these components. The user interface 1003 may include a display area (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .
可选地装配设备还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。其中,传感器比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可在移动终端移动到耳边时,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;当然,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Optionally, the assembled device may also include a camera, an RF (Radio Frequency, radio frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors such as light sensors, motion sensors and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and/or backlight. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of mobile terminal posture (such as horizontal and vertical screen switching, Related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tap), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
本领域技术人员可以理解,图1中示出的装配设备结构并不构成对装配设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the assembly equipment shown in FIG. 1 is not limited to the assembly equipment, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及计算机处理程序。As shown in FIG. 1 , the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a computer processing program.
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的计算机处理程序,并执行以下操作:In the terminal shown in Figure 1, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to the client (client) and perform data communication with the client; and the processor 1001 can be used to call the computer processing program stored in memory 1005, and perform the following operations:
根据各所述装配组件的使用时长确定各所述装配组件对应的标准子作业路径,基于所述标准子作业路径生成标准子作业控制数据,其中,所述标准子作业路径为对所述装配组件在不同使用时长下存在的子作业路径的偏移进行补偿后的作业路径;Determine the standard sub-job path corresponding to each of the assembly components according to the usage time of each of the assembly components, and generate standard sub-job control data based on the standard sub-job path, wherein the standard sub-job path is for the assembly component The job path after compensation for the offset of the sub-job paths that exist under different usage durations;
基于所述标准子作业控制数据控制所述装配组件进行装配。The assembly components are controlled to be assembled based on the standard sub-job control data.
进一步地,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:Further, the processor 1001 can call the computer program stored in the memory 1005, and also perform the following operations:
在所述将根据各所述装配组件的使用时长确定各所述装配组件对应的标准子作业路径的步骤之前,基于至少一组预设作业点在工件坐标系中的预设工件坐标位置,控制所述装配组件进行装配,形成一组第一实际作业点;Before the step of determining the standard sub-operation path corresponding to each of the assembly components according to the use time of each of the assembly components, based on the preset workpiece coordinate positions of at least one set of preset operating points in the workpiece coordinate system, the control The assembly components are assembled to form a set of first actual operating points;
采用视觉相机获取所述第一实际作业点在像素坐标系中的第一实际坐标位置;Obtaining the first actual coordinate position of the first actual operation point in the pixel coordinate system by using a visual camera;
依据预设像素-工件坐标转换关系,将所述第一实际坐标位置转换为在所述工件坐标系中的实际工件坐标位置,其中,所述预设像素-工件坐标转换关系为预先设置的像素坐标系和工件坐标系之间的转换关系;converting the first actual coordinate position into an actual workpiece coordinate position in the workpiece coordinate system according to a preset pixel-workpiece coordinate transformation relationship, wherein the preset pixel-workpiece coordinate transformation relationship is a preset pixel The conversion relationship between the coordinate system and the workpiece coordinate system;
根据所述预设工件坐标位置和所述实际工件坐标位置确定偏差量,并基于所述偏差量对所述装配组件中的工件进行校正。A deviation is determined according to the preset workpiece coordinate position and the actual workpiece coordinate position, and the workpiece in the assembly assembly is corrected based on the deviation.
进一步地,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:Further, the processor 1001 can call the computer program stored in the memory 1005, and also perform the following operations:
在所述基于所述偏差量对所述装配组件中的工件进行校正的步骤之后,选择任一所述装配组件作为基准装配组件;After the step of correcting the workpiece in the assembly assembly based on the deviation amount, selecting any one of the assembly assemblies as a reference assembly assembly;
根据所述基准装配组件和非基准装配组件分别对应的工作路径上的理论作业点在所述像素坐标系中的理论坐标位置,控制所述基准装配组件和所述非基准装配组件进行装配,获得所述基准装配组件和所述非基准装配组件分别对应的第二实际作业点;According to the theoretical coordinate position of the theoretical working point on the working path corresponding to the reference assembly component and the non-reference assembly component respectively in the pixel coordinate system, control the reference assembly component and the non-reference assembly component to assemble, obtain The second actual operating points respectively corresponding to the reference assembly component and the non-reference assembly component;
采用所述视觉相机获取所述基准装配组件和所述非基准装配组件分别对应的所述第二实际作业点在所述像素坐标系中的第二实际坐标位置;Obtaining the second actual coordinate positions of the second actual working point corresponding to the reference assembly component and the non-reference assembly component respectively in the pixel coordinate system by using the visual camera;
根据所述基准装配组件和所述非基准装配组件分别对应的所述第二实际坐标位置和所述理论坐标位置,确定各所述装配组件的偏移量,其中,各所述装配组件中的所述基准装配组件的偏移量为0。According to the second actual coordinate position and the theoretical coordinate position respectively corresponding to the reference assembly component and the non-reference assembly component, determine the offset of each of the assembly components, wherein each of the assembly components The offset of the baseline assembly component is 0.
进一步地,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:Further, the processor 1001 can call the computer program stored in the memory 1005, and also perform the following operations:
所述基于所述标准子作业控制数据控制所述装配组件进行装配的步骤,包括:基于所述标准子作业控制数据和各所述装配组件的偏移量,控制所述装配组件进行装配。The step of controlling the assembly components to assemble based on the standard sub-job control data includes: controlling the assembly components to assemble based on the standard sub-job control data and the offset of each assembly component.
进一步地,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:Further, the processor 1001 can call the computer program stored in the memory 1005, and also perform the following operations:
所述基于所述标准子作业路径生成标准子作业控制数据的步骤,包括:将所述标准子作业路径转换为标准子作业点阵图像;The step of generating standard sub-job control data based on the standard sub-job path includes: converting the standard sub-job path into a standard sub-job bitmap image;
根据所述标准子作业点阵图像中每个标准像素点的控制内容,生成所述标准子作业控制数据。The standard sub-job control data is generated according to the control content of each standard pixel in the standard sub-job bitmap image.
进一步地,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:Further, the processor 1001 can call the computer program stored in the memory 1005, and also perform the following operations:
在所述基于所述标准子作业路径生成标准子作业控制数据的步骤之后,采用视觉相机获取历史作业点阵图像中各个历史像素点在所述像素坐标系中的历史坐标位置;After the step of generating standard sub-job control data based on the standard sub-job path, using a visual camera to acquire the historical coordinate positions of each historical pixel point in the pixel coordinate system in the historical job bitmap image;
依据所述预设像素-工件坐标转换关系,将所述历史坐标位置转换为在所述工件坐标系中的历史工件坐标位置;converting the historical coordinate position into a historical workpiece coordinate position in the workpiece coordinate system according to the preset pixel-workpiece coordinate transformation relationship;
根据所述各个历史像素点在所述工件坐标系中的预设工件坐标位置和所述历史工件坐标位置,确定偏移校正量和旋转校正量。An offset correction amount and a rotation correction amount are determined according to a preset workpiece coordinate position of each historical pixel point in the workpiece coordinate system and the historical workpiece coordinate position.
进一步地,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:Further, the processor 1001 can call the computer program stored in the memory 1005, and also perform the following operations:
所述基于所述标准子作业控制数据和各所述装配组件的偏移量,控制所述装配组件进行装配的步骤,包括:通过所述偏移校正量和所述旋转校正量校正所述标准子作业控制数据;The step of controlling the assembly components to assemble based on the standard sub-job control data and the offset of each of the assembly components includes: correcting the standard by using the offset correction amount and the rotation correction amount Sub-job control data;
基于校正后的标准子作业控制数据和各所述装配组件的偏移量,控制所述装配设备进行装配。Based on the corrected standard sub-job control data and the offset of each assembly component, the assembly equipment is controlled to perform assembly.
进一步地,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:Further, the processor 1001 can call the computer program stored in the memory 1005, and also perform the following operations:
在所述基于所述标准子作业控制数据控制所述装配组件进行装配的步骤之后,若检测到所述装配组件基于所述标准子作业控制数据进行装配的实施作业路径存在误差,则通过设置在所述装配组件中的传感器获取所述装配组件的误差值;After the step of controlling the assembly component to assemble based on the standard sub-job control data, if it is detected that there is an error in the implementation path of the assembly component for assembly based on the standard sub-job control data, then by setting A sensor in the assembly component acquires an error value of the assembly component;
根据所述误差值确定所述装配组件的故障点。A failure point of the assembled component is determined according to the error value.
参照图2,图2是本发明装配控制方法第一实施例的流程示意图,所述装配控制方法包括以下步骤:Referring to FIG. 2, FIG. 2 is a schematic flow chart of the first embodiment of the assembly control method of the present invention, and the assembly control method includes the following steps:
步骤A10,根据各所述装配组件的使用时长确定各所述装配组件对应的标准子作业路径,基于所述标准子作业路径生成标准子作业控制数据,其中,所述标准子作业路径为对所述装配组件在不同使用时长下存在的子作业路径的偏移进行补偿后的作业路径。Step A10: Determine the standard sub-work path corresponding to each assembly component according to the usage time of each assembly component, and generate standard sub-work control data based on the standard sub-work path, wherein the standard sub-work path is for all The work path after compensation for the offset of the sub-work paths existing in the assembly components under different use durations.
在本实施例中,以需要操控的装配机器人为SCARA机器人为例,SCARA机器人的自由度为四,因此将SCARA机器人划分为3组装配组件,以图3为例,即将第一轴关节设备2001和第二轴关节设备2002之间的连接控制设备J1归为第一组装配组件,将第二轴关节设备2002和第三轴关节设备2003之间的连接控制设备J2归为第二组装配组件,将第三轴关节设备2003和第四轴关节设备2004之间的连接控制设备J3归为第三组装配组件。In this embodiment, the assembly robot to be manipulated is a SCARA robot as an example. The SCARA robot has four degrees of freedom, so the SCARA robot is divided into three groups of assembly components. Taking Figure 3 as an example, the first axis joint device 2001 The connection control device J1 between the second-axis joint device 2002 is classified as the first group of assembly components, and the connection control device J2 between the second-axis joint device 2002 and the third-axis joint device 2003 is classified as the second group of assembly components , the connection control device J3 between the third-axis joint device 2003 and the fourth-axis joint device 2004 is classified as the third group of assembly components.
因为每组装配组件的使用时长并不相同,因此每组装配组件随时间推移而存在的作业路径的偏移也并不相同,所以本实施例通过基于装配设备的自由度进行装配组件的划分,以基于每一装配组件的使用时长进行装配组件对应的标准子作业路径进行确定后,在基于确定的标准子作业路径生成对装配组件进行控制的标准子作业控制数据,实现对装配设备中的每组装配组件随时间的推移而存在的偏移进行精确调整,避免直接基于装配设备的整体的使用时长进行作业路径的确定而存在装配设备中的个别装配组件的使用时长过短或过长,造成的确定的作业路径并不能和个别装配组件相匹配,导致确定的作业路径并不能有效改善装配设备的作业路径存在偏移的情况。Because the use time of each group of assembly components is not the same, the offset of the working path of each group of assembly components over time is also different. Therefore, this embodiment divides the assembly components based on the degree of freedom of the assembly equipment. After the standard sub-job path corresponding to the assembly component is determined based on the use time of each assembly component, the standard sub-job control data for controlling the assembly component is generated based on the determined standard sub-job path, so as to realize the control of each component in the assembly equipment. Precisely adjust the offset of assembly components over time to avoid determining the working path directly based on the overall use time of the assembly equipment and the use time of individual assembly components in the assembly equipment is too short or too long, resulting in The determined working path cannot be matched with individual assembly components, resulting in that the determined working path cannot effectively improve the deviation of the working path of the assembly equipment.
其中,因为每一生产厂家的装配组件的使用参数不同,因此各装配组件对应的使用时长所匹配的补偿后的子作业路径由前期生产厂家进行设定,本实施例不进行限定。Wherein, because the use parameters of the assembly components of each manufacturer are different, the sub-job path after compensation matched with the use time corresponding to each assembly component is set by the previous manufacturer, which is not limited in this embodiment.
步骤A20,基于所述标准子作业控制数据控制所述装配组件进行装配。Step A20, controlling the assembly components to be assembled based on the standard sub-job control data.
在通过步骤A10确定各装配组件对应的标准子作业控制数据后,直接基于标准子作业控制数据对相应的装配组件的装配操作进行控制,不仅能够避免时间推移导致的作业路径偏移,提升装配设备的作业效率,因为是对装配设备中的每个装配组件进行的对应装配操作,因此还能有效提升装配设备的装配操作精度,同时,因为是直接基于装配组件的使用时长自动匹配确定的标准子作业控制数据,所以还避免了需技术人员对装配设备进行重新示教而存在不便捷性,提升了装配设备的便捷性。After determining the standard sub-job control data corresponding to each assembly component through step A10, the assembly operation of the corresponding assembly component is directly controlled based on the standard sub-job control data, which can not only avoid the deviation of the work path caused by the passage of time, but also improve the assembly equipment. The efficiency of the operation, because it is the corresponding assembly operation for each assembly component in the assembly equipment, so it can also effectively improve the accuracy of the assembly operation of the assembly equipment, and at the same time, because it is directly based on the standard sub Operation control data, so it also avoids the inconvenience of requiring technicians to re-teach the assembly equipment, and improves the convenience of assembly equipment.
可选地,在步骤A10中基于所述标准子作业路径生成标准子作业控制数据的步骤,包括:Optionally, the step of generating standard sub-job control data based on the standard sub-job path in step A10 includes:
步骤A101,将所述标准子作业路径转换为标准子作业点阵图像。Step A101, converting the standard sub-job path into a standard sub-job bitmap image.
步骤A102,根据所述标准子作业点阵图像中每个标准像素点的控制内容,生成所述标准子作业控制数据。Step A102, generating the standard sub-job control data according to the control content of each standard pixel in the standard sub-job bitmap image.
在本实施例中,将标准子作业路径转换为标准子作业路径图像后,对标准子作业路径图像进行点阵填充,以形成若干行的标准子作业点阵图像。In this embodiment, after the standard sub-job path is converted into a standard sub-job path image, dot matrix filling is performed on the standard sub-job path image to form several rows of standard sub-job dot matrix images.
由于每个标准子作业点阵图像中的每个标准像素点都包含有控制内容,通过对这些标准像素点的提取,可以生成相应的标准子作业控制数据。Since each standard pixel in each standard sub-job bitmap image contains control content, corresponding standard sub-job control data can be generated by extracting these standard pixels.
其中,标准子作业控制数据中包括工件偏转控制数据和二进制数据,具体的,标准子作业控制数据用于控制作业轨迹,该作业轨迹可以是从左至右、右至左、上至下,和/或下至上,由此来实现横向作业或者竖向作业,确保作业轨迹的完整。Among them, the standard sub-job control data includes workpiece deflection control data and binary data. Specifically, the standard sub-job control data is used to control the operation trajectory, and the operation trajectory can be from left to right, right to left, top to bottom, and /or from bottom to top, so as to realize horizontal operation or vertical operation, and ensure the integrity of the operation track.
二进制数据用于控制对应的装配组件的开启或关闭,例如,当某装配组件的二进制数据为1时,则说明当前以需基于该装配组件完成某一流程的装配作业,故此时该装配组件开启,控制装配组件基于对应的标准子作业控制数据进行装配;当某装配组件的二进制数据为0时,则说明当前不需要还未轮到,或者不需要基于该装配组件完成当前对应的流程的装配作业,各此时该装配组件关闭,以此实现对应的装配组件的精准控制。Binary data is used to control the opening or closing of the corresponding assembly component. For example, when the binary data of an assembly component is 1, it means that the current assembly operation needs to be completed based on the assembly component, so the assembly component is turned on at this time. , control the assembly component to assemble based on the corresponding standard sub-job control data; when the binary data of an assembly component is 0, it means that it is not necessary to complete the assembly of the current corresponding process based on the assembly component. At this time, the assembly components are closed, so as to realize the precise control of the corresponding assembly components.
可选地,在步骤A20中基于所述标准子作业控制数据控制所述装配组件进行装配的步骤之后,所述方法还包括:Optionally, after the step of controlling the assembly components to be assembled based on the standard sub-job control data in step A20, the method further includes:
步骤A30,若检测到所述装配组件基于所述标准子作业控制数据进行装配的实施作业路径存在误差,则通过设置在所述装配组件中的传感器获取所述装配组件的误差值。Step A30, if it is detected that there is an error in the implementation path of the assembly component assembled based on the standard sub-job control data, the error value of the assembly component is acquired through a sensor set in the assembly component.
步骤A40,根据所述误差值确定所述装配组件的故障点。Step A40, determining the fault point of the assembly component according to the error value.
当在后续各装配组件基于对应的标准子作业控制数据进行装配的过程中,依旧存在作业路径的误差时,则此时通过设置在装配组件中的传感器获取各装配组件的误差值,通过该误差值判断具体为哪个装配组件的哪个工件导致的作业路径的误差,假设当通过误差值确定到a装配组件的a工件导致的作业路径误差时,则根据a装配组件的a工件生成表征该装配设备的a装配组件的a工件为故障点的信息以向技术人员进行故障提醒,以节省故障排查时间和故障排查成本。When there is still an error in the operation path during the subsequent assembly process of each assembly component based on the corresponding standard sub-job control data, the error value of each assembly component is obtained through the sensor set in the assembly component at this time, and the Value judges which assembly component’s work path error is caused by which workpiece, assuming that when the error value is used to determine the work path error caused by the a workpiece of the a assembly component, then the a workpiece of the a assembly component is generated to represent the assembly equipment The a workpiece of the a assembly component is the information of the fault point to remind the technician of the fault, so as to save the troubleshooting time and cost.
在本实施例中,通过根据各装配组件的使用时长确定各装配组件对应的标准子作业路径,基于标准子作业路径生成标准子作业控制数据,其中,标准子作业路径为对装配组件在不同使用时长下存在的子作业路径的偏移进行补偿后的子作业路径,基于标准子作业控制数据控制装配组件进行装配,通过确定装配设备中各装配组件的使用时长,基于其使用时长确定对应的标准子作业路径,以此避免随时间推移而存在的装配设备的作业路径偏移的现象,根据标准子作业路径生成对应的标准子作业控制数据对装配组件进行控制,以此避免偏移的作业路径导致的装配设备的作业效率低下的情况,提升了装配设备的控制精确性,同时还避免了需技术人员对装配设备进行重新示教而存在不便捷性,提升了装配设备的便捷性。In this embodiment, by determining the standard sub-job path corresponding to each assembly component according to the use time of each assembly component, the standard sub-job control data is generated based on the standard sub-job path, wherein the standard sub-job path is for different usage of the assembly components The sub-job path after compensation for the offset of the sub-job path existing under the duration, controls the assembly components to assemble based on the standard sub-job control data, and determines the corresponding standard based on the usage time of each assembly component in the assembly equipment by determining the usage time Sub-job path, so as to avoid the deviation of the job path of the assembly equipment that exists over time, and generate corresponding standard sub-job control data to control the assembly components according to the standard sub-job path, so as to avoid the shifted job path The resulting low operating efficiency of the assembly equipment improves the control accuracy of the assembly equipment, and at the same time avoids the inconvenience of requiring technicians to re-teach the assembly equipment, and improves the convenience of the assembly equipment.
参照图4,图4是本发明装配控制方法第二实施例的流程示意图,在步骤A10中根据各所述装配组件的使用时长确定各所述装配组件对应的标准子作业路径的步骤之前,所述方法还包括:Referring to FIG. 4, FIG. 4 is a schematic flow chart of the second embodiment of the assembly control method of the present invention. Before the step of determining the standard sub-operation path corresponding to each assembly assembly according to the use time of each assembly assembly in step A10, the The method also includes:
步骤B10,基于至少一组预设作业点在工件坐标系中的预设工件坐标位置,控制所述装配组件进行装配,形成一组第一实际作业点;Step B10, based on the preset workpiece coordinate positions of at least one set of preset operating points in the workpiece coordinate system, controlling the assembly components to assemble to form a set of first actual operating points;
步骤B20,采用视觉相机获取所述第一实际作业点在像素坐标系中的第一实际坐标位置;Step B20, using a visual camera to obtain the first actual coordinate position of the first actual operation point in the pixel coordinate system;
步骤B30,依据预设像素-工件坐标转换关系,将所述第一实际坐标位置转换为在所述工件坐标系中的实际工件坐标位置,其中,所述预设像素-工件坐标转换关系为预先设置的像素坐标系和工件坐标系之间的转换关系;Step B30, converting the first actual coordinate position into the actual workpiece coordinate position in the workpiece coordinate system according to the preset pixel-workpiece coordinate transformation relationship, wherein the preset pixel-workpiece coordinate transformation relationship is The conversion relationship between the set pixel coordinate system and the workpiece coordinate system;
步骤B40,根据所述预设工件坐标位置和所述实际工件坐标位置确定偏差量,并基于所述偏差量对所述装配组件中的工件进行校正。Step B40, determining a deviation amount according to the preset workpiece coordinate position and the actual workpiece coordinate position, and correcting the workpiece in the assembly assembly based on the deviation amount.
在第二实施例中,为了进一步提升装配设备的装配控制精确度,本实施例提出了对装配组件中的工件进行校正。In the second embodiment, in order to further improve the assembly control accuracy of the assembly equipment, this embodiment proposes to correct the workpieces in the assembly assembly.
具体为,由于存在环境温湿度影响、电极丢失等原因,装配组件中的工件随着使用时间的推移会产生偏差,从而导致在加工过程中由工件组成的装配组件的作业路径存在偏差,进而造成装配设备的装配控制精准度低的情况。Specifically, due to the influence of environmental temperature and humidity, electrode loss, etc., the workpieces in the assembly components will deviate over time, which will lead to deviations in the working path of the assembly components composed of workpieces during the processing process, which will cause The assembly control accuracy of the assembly equipment is low.
在本实施例中,装配设备包括视觉相机,视觉相机具有相匹配的像素坐标系。装配设备会通过预先构建像素坐标系与工件坐标系间的转换关系,将视觉相机的像素坐标系和工件坐标系统一(即预设像素-工件坐标转换关系),为每个装配组件都设置了至少一组预设作业点在工件坐标系中的预设工件坐标位置,在正式进行装配控制之前,先控制装配组件根据预设作业点在工件坐标系中的预设工件坐标位置进行装配,生成一组第一实际作业点。In this embodiment, the assembly device includes a vision camera with a matching pixel coordinate system. The assembly equipment will pre-build the transformation relationship between the pixel coordinate system and the workpiece coordinate system, and set the pixel coordinate system of the visual camera and the workpiece coordinate system (that is, the preset pixel-workpiece coordinate transformation relationship), and set up for each assembly component The preset workpiece coordinate positions of at least one set of preset operating points in the workpiece coordinate system. Before the formal assembly control, the assembly components are first controlled to assemble according to the preset workpiece coordinate positions of the preset operating points in the workpiece coordinate system, generating A set of first actual operating points.
然后利用视觉相机测量第一实际作业点在像素坐标系中的第一实际坐标位置后,依据预设的像素-工件坐标转换关系,将第一实际坐标位置转换为在工件坐标系中的实际工件坐标位置,再将实际工件坐标位置在工件坐标系中的坐标位置和其对应的预设作业点在工件坐标系中的预设工件坐标位置进行比较,若存在偏差,则计算确定偏差量后,根据该偏差量对对应的装配组件中的工件进行校正,以此实现每个装配组件中的工件的偏差校正,进一步提升装配设备的控制精确度。Then use the visual camera to measure the first actual coordinate position of the first actual operation point in the pixel coordinate system, and then convert the first actual coordinate position into the actual workpiece in the workpiece coordinate system according to the preset pixel-workpiece coordinate transformation relationship coordinate position, and then compare the coordinate position of the actual workpiece coordinate position in the workpiece coordinate system with the preset workpiece coordinate position of the corresponding preset operation point in the workpiece coordinate system. If there is a deviation, calculate and determine the deviation amount, The workpieces in the corresponding assembly components are corrected according to the deviation amount, so as to realize the deviation correction of the workpieces in each assembly component, and further improve the control accuracy of the assembly equipment.
可选地,在步骤B40中基于所述偏差量对所述装配组件中的工件进行校正的步骤之后,所述方法还包括:Optionally, after the step of correcting the workpiece in the assembly assembly based on the deviation in step B40, the method further includes:
步骤B50,选择任一所述装配组件作为基准装配组件。Step B50, selecting any one of the assembled components as a reference assembled component.
在另一实施例中,在对各装配组件中的工件进行校正之后,会从各装配组件中选择任一装配组件作为基准装配组件,其他未被选中的装配组件作为非基准装配组件,基于基准装配组件对其他非基准装配组件进行校准,以此保证由该各装配组件所形成的装配控制作业路径的连续性和准确性。In another embodiment, after correcting the workpieces in each assembly assembly, any assembly assembly will be selected from each assembly assembly as the reference assembly assembly, and other unselected assembly assemblies will be used as non-reference assembly components. The assembly component calibrates other non-reference assembly components, so as to ensure the continuity and accuracy of the assembly control operation path formed by the assembly components.
步骤B60,根据所述基准装配组件和非基准装配组件分别对应的工作路径上的理论作业点在所述像素坐标系中的理论坐标位置,控制所述基准装配组件和所述非基准装配组件进行装配,获得所述基准装配组件和所述非基准装配组件分别对应的第二实际作业点。Step B60, according to the theoretical coordinate position of the theoretical working point on the working path corresponding to the reference assembly component and the non-reference assembly component respectively in the pixel coordinate system, control the reference assembly component and the non-reference assembly component to perform Assembling, obtaining second actual operating points respectively corresponding to the reference assembly component and the non-reference assembly component.
步骤B70,采用所述视觉相机获取所述基准装配组件和所述非基准装配组件分别对应的所述第二实际作业点在所述像素坐标系中的第二实际坐标位置;Step B70, using the visual camera to obtain the second actual coordinate positions of the second actual working point corresponding to the reference assembly component and the non-reference assembly component respectively in the pixel coordinate system;
步骤B80,根据所述基准装配组件和所述非基准装配组件分别对应的所述第二实际坐标位置和所述理论坐标位置,确定各所述装配组件的偏移量,其中,各所述装配组件中的所述基准装配组件的偏移量为0。Step B80, according to the second actual coordinate position and the theoretical coordinate position corresponding to the reference assembly component and the non-reference assembly component, determine the offset of each assembly component, wherein each assembly The base assembly component in the component has an offset of 0.
根据基准装配组件和非基准装配组件分别对应的工作路径上的理论作业点在像素坐标系中的理论坐标位置,控制基准装配组件和非基准装配组件进行装配后,分别获得基准装配组件和非基准装配组件对应的第二实际作业点,然后采用视觉相机获取基准装配组件和非基准装配组件对应的第二实际作业点在像素坐标系中的第二实际坐标位置后,根据基准装配组件和非基准装配组件分别对应的第二实际坐标位置和理论坐标位置在像素坐标系中的坐标位置,计算得到各装配组件的偏移量,其中,被选中为基准装配组件的装配组件的偏移量为0。According to the theoretical coordinate position of the theoretical working point in the pixel coordinate system corresponding to the reference assembly component and the non-reference assembly component respectively, after the reference assembly component and the non-reference assembly component are assembled, the reference assembly component and the non-reference assembly are respectively obtained The second actual operating point corresponding to the assembly component, and then use the visual camera to obtain the second actual coordinate position of the second actual operating point corresponding to the reference assembly component and the non-reference assembly component in the pixel coordinate system, according to the reference assembly component and the non-reference assembly component The coordinate positions of the second actual coordinate positions and theoretical coordinate positions corresponding to the assembly components in the pixel coordinate system are calculated to obtain the offset of each assembly component, wherein the offset of the assembly component selected as the reference assembly component is 0 .
具体地,偏移量的计算过程为:根据非基准装配组件的理论作业点的理论坐标位置与基准装配组件的理论作业点的理论坐标位置,计算非基准装配组件的理论作业点与基准装配组件的理论作业点分别在X轴方向上的第一理论差值、Y轴方向上的第二理论差值和Z轴方向上的第三理论差值,然后根据非基准装配组件的第二实际作业点和基准装配组件的第二实际作业点在像素坐标系中的第二实际坐标位置,计算非基准装配组件的第二实际作业点与基准装配组件的第二实际作业点分别在X轴方向上的第一实际差值、Y轴方向上的第二实际差值和Z轴方向上的第三实际差值,计算第一实际差值与第一理论差值间的第一差值作为非基准装配组件在X轴方向上的偏移量,计算第二实际差值与第二理论差值间的第二差值作为非基准装配组件在Y轴方向上的偏移量,和计算第三实际差值与第三理论差值间的第三差值作为非基准装配组件在Z轴方向上的偏移量。Specifically, the calculation process of the offset is: according to the theoretical coordinate position of the theoretical operating point of the non-benchmark assembly component and the theoretical coordinate position of the theoretical operating point of the reference assembly component, calculate the theoretical operating point of the non-benchmark assembly component and the reference assembly component The theoretical operating points of the theoretical operating points are respectively the first theoretical difference in the X-axis direction, the second theoretical difference in the Y-axis direction, and the third theoretical difference in the Z-axis direction, and then according to the second actual operation of the non-benchmark assembly components Point and the second actual coordinate position of the second actual operating point of the reference assembly component in the pixel coordinate system, calculate the second actual operating point of the non-reference assembly component and the second actual operating point of the reference assembly component in the X-axis direction The first actual difference, the second actual difference in the Y-axis direction, and the third actual difference in the Z-axis direction, calculate the first difference between the first actual difference and the first theoretical difference as a non-reference The offset of the assembly component in the X-axis direction, calculate the second difference between the second actual difference and the second theoretical difference as the offset of the non-reference assembly component in the Y-axis direction, and calculate the third actual The third difference between the difference and the third theoretical difference is used as the offset of the non-reference assembly component in the Z-axis direction.
可选地,在步骤A20中基于所述标准子作业控制数据控制所述装配组件进行装配的步骤,包括:Optionally, in step A20, the step of controlling the assembly components to be assembled based on the standard sub-job control data includes:
步骤A201,基于所述标准子作业控制数据和各所述装配组件的偏移量,控制所述装配组件进行装配。Step A201, based on the standard sub-job control data and the offset of each of the assembly components, control the assembly components to be assembled.
由于随着使用时间的推移,使得安装后的装配组件各自对应的作业路径拼接在一起时,连接处存在的偏差导致的整体的作业路径存在精确度低的问题,基于此,本实施例提出通过确定一个基准装配组件,然后利用其他非基准装配组件与该基准装配组件的理论偏差和实际偏差,确定各非基准装配组件的偏移量,具体为:在获得未被选中为基准装配组件的装配组件的偏移量后,会根据各装配组件对应的偏移量对标准子作业控制数据进行偏移,获得各装配组件的偏移后的标准子作业控制数据,再根据偏移后的标准子作业控制数据,控制各装配组件进行装配,从而实现安装后的装配组件各自对应的作业路径拼接在一起时,连接处存在的偏差趋近为0,以此提升整体的作业路径的精确度。Due to the passage of use time, when the respective working paths of the installed assembly components are spliced together, the deviation of the connection will cause the problem of low accuracy of the overall working path. Based on this, this embodiment proposes to pass Determine a baseline assembly component, and then use the theoretical and actual deviations between other non-baseline assembly components and the baseline assembly component to determine the offset of each non-baseline assembly component, specifically: after obtaining the assembly that is not selected as the baseline assembly component After the offset of the components, the standard sub-job control data will be offset according to the offset corresponding to each assembly component to obtain the offset standard sub-job control data of each assembly component, and then according to the offset standard sub-job control data The operation control data controls the assembly of each assembly component, so that when the corresponding operation paths of the installed assembly components are spliced together, the deviation at the connection is close to 0, so as to improve the accuracy of the overall operation path.
在本实施例中,通过基于至少一组预设作业点在工件坐标系中的预设工件坐标位置,控制装配组件进行装配,形成一组第一实际作业点,采用视觉相机获取第一实际作业点在像素坐标系中的第一实际坐标位置,依据预设像素-工件坐标转换关系,将第一实际坐标位置转换为在工件坐标系中的实际工件坐标位置,根据预设工件坐标位置和实际工件坐标位置确定偏差量,并基于偏差量对装配组件中的工件进行校正,实现每个装配组件中的工件的偏差校正,进一步提升装配设备的控制精确度。In this embodiment, based on the preset workpiece coordinate positions of at least one set of preset operating points in the workpiece coordinate system, the assembly components are controlled to assemble to form a set of first actual operating points, and the first actual operating points are obtained by using a visual camera. The first actual coordinate position of the point in the pixel coordinate system, according to the preset pixel-workpiece coordinate conversion relationship, convert the first actual coordinate position into the actual workpiece coordinate position in the workpiece coordinate system, according to the preset workpiece coordinate position and the actual The workpiece coordinate position determines the deviation amount, and based on the deviation amount, the workpiece in the assembly component is corrected to realize the deviation correction of the workpiece in each assembly component, and further improve the control accuracy of the assembly equipment.
参照图5,图5是本发明装配控制方法第三实施例的流程示意图,在步骤A10中基于所述标准子作业路径生成标准子作业控制数据的步骤之后,所述方法还包括:Referring to FIG. 5, FIG. 5 is a schematic flowchart of the third embodiment of the assembly control method of the present invention. After the step of generating standard sub-job control data based on the standard sub-job path in step A10, the method further includes:
步骤C10,采用视觉相机获取历史作业点阵图像中各个历史像素点在所述像素坐标系中的历史坐标位置。Step C10, using the visual camera to obtain the historical coordinate positions of each historical pixel in the historical operation bitmap image in the pixel coordinate system.
在本实施例中,由于步骤A10中生成的标准子作业控制数据,是生产厂家预设预测的装配组件的某一使用时长下的作业路径,生成的作业控制数据,但在实际装配过程中,装配组件的作业路径可能不会按照预先预测的变化规则进行作业路径的变化,可能会发生一定的偏移或者旋转。In this embodiment, since the standard sub-job control data generated in step A10 is the job control data generated by the manufacturer’s preset and predicted job path under a certain usage time of the assembly component, but in the actual assembly process, The working path of the assembly component may not be changed according to the pre-forecast change rules, and a certain offset or rotation may occur.
所以在控制装配组件进行装配之前,会先获取各装配组件同一历史作业路径,将历史作业路径转换为历史作业路径图后,对历史作业路径图进行点阵填充和拼接,形成历史作业点阵图像,采用视觉相机获取历史作业点阵图像中各个历史像素点在像素坐标系中的历史坐标位置,通过历史坐标位置确定装配设备实际的路径变化规则。Therefore, before the control assembly components are assembled, the same historical operation path of each assembly component will be obtained first, and after the historical operation path is converted into a historical operation path map, the historical operation path map will be dot matrix filled and spliced to form a historical operation dot matrix image , the visual camera is used to obtain the historical coordinate position of each historical pixel point in the pixel coordinate system in the historical operation bit matrix image, and the actual path change rule of the assembly equipment is determined through the historical coordinate position.
步骤C20,依据所述预设像素-工件坐标转换关系,将所述历史坐标位置转换为在所述工件坐标系中的历史工件坐标位置;Step C20, converting the historical coordinate position into the historical workpiece coordinate position in the workpiece coordinate system according to the preset pixel-workpiece coordinate conversion relationship;
步骤C30,根据所述各个历史像素点在所述工件坐标系中的预设工件坐标位置和所述历史工件坐标位置,确定偏移校正量和旋转校正量。Step C30, determining an offset correction amount and a rotation correction amount according to the preset workpiece coordinate position of each historical pixel point in the workpiece coordinate system and the historical workpiece coordinate position.
根据预设像素-工件坐标转换关系,将历史坐标位置转换为在工件坐标系中的历史工件坐标位置,接着将各个历史像素点在工件坐标系中的预设工件坐标位置和历史工件坐标位置进行比较计算,确定得到各装配组件的偏移校正量和旋转校正量,其中,预设工件坐标位置为预先预测的历史像素点对应的工件坐标位置。According to the preset pixel-workpiece coordinate conversion relationship, the historical coordinate position is converted into the historical workpiece coordinate position in the workpiece coordinate system, and then the preset workpiece coordinate position and historical workpiece coordinate position of each historical pixel point in the workpiece coordinate system are calculated. Comparing and calculating, it is determined to obtain the offset correction amount and the rotation correction amount of each assembly component, wherein the preset workpiece coordinate position is the workpiece coordinate position corresponding to the pre-predicted historical pixel point.
需要说明的是,未发生偏移时,则偏移校正量为0;未发生旋转时,则旋转校正量为0。It should be noted that, when no offset occurs, the offset correction amount is 0; when no rotation occurs, the rotation correction amount is 0.
可选地,在步骤A201中基于所述标准子作业控制数据和各所述装配组件的偏移量,控制所述装配组件进行装配的步骤,包括:Optionally, in step A201, based on the standard sub-job control data and the offset of each of the assembly components, the step of controlling the assembly components to assemble includes:
步骤C40,通过所述偏移校正量和所述旋转校正量校正所述标准子作业控制数据;Step C40, correcting the standard sub-job control data by using the offset correction amount and the rotation correction amount;
步骤C50,基于校正后的标准子作业控制数据和各所述装配组件的偏移量,控制所述装配设备进行装配。Step C50, based on the corrected standard sub-job control data and the offset of each assembly component, control the assembly equipment to perform assembly.
因为在实际装配过程中,装配组件的作业路径可能不会按照预先预测的变化规则进行作业路径的变化,可能会发生一定的偏移或者旋转,因此单纯的基于标准子作业控制数据对对应的装配组件进行装配控制,其提升的装配设备的控制精确度有限,所以基于该情况,本实施例提出通过采用视觉相机获取装配设备的历史作业路径和预先预测的作业路径进行比较,获取偏移校正量和旋转校正量,以此对标准作业控制数据(由各装配组件各自对应的标准子作业控制数据组成)进行校正,通过校正后的标准子作业控制数据和各所述装配组件的偏移量实现对装配设备的装配控制,从而消除通过预测的标准子作业控制数据存在的偏差,提高装配组件的装配控制准确性,进而提高装配控制效率。Because in the actual assembly process, the operation path of the assembly component may not be changed according to the pre-predicted change rules, and a certain offset or rotation may occur. The assembly control of the components is limited, and the control accuracy of the improved assembly equipment is limited. Therefore, based on this situation, this embodiment proposes to obtain the offset correction amount by using a visual camera to obtain the historical operation path of the assembly equipment and compare it with the pre-predicted operation path. and rotation correction amount, so as to correct the standard operation control data (composed of the standard sub-operation control data corresponding to each assembly component), through the corrected standard sub-operation control data and the offset of each assembly component. The assembly control of the assembly equipment can eliminate the deviation of the predicted standard sub-job control data, improve the accuracy of assembly control of assembly components, and then improve the efficiency of assembly control.
在本实施例中,通过采用视觉相机获取历史作业点阵图像中各个历史像素点在像素坐标系中的历史坐标位置,依据预设像素-工件坐标转换关系,将历史坐标位置转换为在工件坐标系中的历史工件坐标位置,根据各个历史像素点在工件坐标系中的预设工件坐标位置和历史工件坐标位置,确定偏移校正量和旋转校正量,基于偏移校正量和旋转校正量对标准子作业控制数据进行校正,从而消除通过预测的标准子作业控制数据存在的偏差,提高装配组件的装配控制准确性,进而提高装配控制效率。In this embodiment, by using a visual camera to obtain the historical coordinate position of each historical pixel point in the pixel coordinate system in the historical operation bit matrix image, according to the preset pixel-workpiece coordinate conversion relationship, the historical coordinate position is converted into the workpiece coordinate position The historical workpiece coordinate position in the workpiece coordinate system, according to the preset workpiece coordinate position and historical workpiece coordinate position of each historical pixel point in the workpiece coordinate system, determine the offset correction amount and rotation correction amount, based on the offset correction amount and rotation correction amount. The standard sub-job control data is corrected to eliminate the deviation of the predicted standard sub-job control data, improve the assembly control accuracy of the assembled components, and then improve the assembly control efficiency.
此外,本发明实施例还提出一种装配设备,所述装配设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机处理程序,处理器执行计算处理机程序时实现上述装配控制方法的步骤。In addition, an embodiment of the present invention also proposes an assembly device, which includes a memory, a processor, and a computer processing program stored on the memory and operable on the processor. When the processor executes the computer program, the above-mentioned assembly is realized. The steps of the control method.
此外,本发明还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述装配控制方法的步骤。In addition, the present invention also proposes a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above assembly control method are implemented.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, as used herein, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or system comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or system. Without further limitations, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system comprising that element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in one of the above storage media (such as ROM/RAM, magnetic CD, CD), including several instructions to make a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method of each embodiment of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310722117.XA CN116442249B (en) | 2023-06-19 | 2023-06-19 | Assembly control method, assembly device, and computer-readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310722117.XA CN116442249B (en) | 2023-06-19 | 2023-06-19 | Assembly control method, assembly device, and computer-readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116442249A CN116442249A (en) | 2023-07-18 |
| CN116442249B true CN116442249B (en) | 2023-08-18 |
Family
ID=87120603
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310722117.XA Active CN116442249B (en) | 2023-06-19 | 2023-06-19 | Assembly control method, assembly device, and computer-readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116442249B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102982405A (en) * | 2012-11-01 | 2013-03-20 | 北方信息控制集团有限公司 | Method for automatically searching optical assemble path of components of products with subordinate relations |
| CN111906788A (en) * | 2020-08-12 | 2020-11-10 | 湖北民族大学 | Bathroom intelligent polishing system based on machine vision and polishing method thereof |
| KR20210022195A (en) * | 2019-08-19 | 2021-03-03 | 하이윈 테크놀로지스 코포레이션 | Calibration method for robot using vision technology |
| CN113084793A (en) * | 2019-12-23 | 2021-07-09 | 深圳万讯自控股份有限公司 | Multi-joint robot adopting visual guidance and guiding method |
| CN114505678A (en) * | 2022-02-21 | 2022-05-17 | 上海汇大机械制造有限公司 | Screw assembly control method and system |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5939213B2 (en) * | 2013-08-09 | 2016-06-22 | 株式会社安川電機 | Robot control apparatus and robot control method |
| US12377317B2 (en) * | 2014-04-25 | 2025-08-05 | Christopher DeCarlo | Sporting sensor-based apparatus, system, method, and computer program product |
| DE102016003566A1 (en) * | 2016-03-23 | 2017-09-28 | Liebherr-Werk Biberach Gmbh | Method for monitoring a work machine |
| US11279032B2 (en) * | 2019-04-11 | 2022-03-22 | Applied Materials, Inc. | Apparatus, systems, and methods for improved joint coordinate teaching accuracy of robots |
-
2023
- 2023-06-19 CN CN202310722117.XA patent/CN116442249B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102982405A (en) * | 2012-11-01 | 2013-03-20 | 北方信息控制集团有限公司 | Method for automatically searching optical assemble path of components of products with subordinate relations |
| KR20210022195A (en) * | 2019-08-19 | 2021-03-03 | 하이윈 테크놀로지스 코포레이션 | Calibration method for robot using vision technology |
| CN113084793A (en) * | 2019-12-23 | 2021-07-09 | 深圳万讯自控股份有限公司 | Multi-joint robot adopting visual guidance and guiding method |
| CN111906788A (en) * | 2020-08-12 | 2020-11-10 | 湖北民族大学 | Bathroom intelligent polishing system based on machine vision and polishing method thereof |
| CN114505678A (en) * | 2022-02-21 | 2022-05-17 | 上海汇大机械制造有限公司 | Screw assembly control method and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116442249A (en) | 2023-07-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3394322B2 (en) | Coordinate system setting method using visual sensor | |
| US9199379B2 (en) | Robot system display device | |
| EP1584426B1 (en) | Tool center point calibration system | |
| JP5850962B2 (en) | Robot system using visual feedback | |
| US11059181B2 (en) | Control apparatus, robot, and robot system | |
| JP6235664B2 (en) | Measuring device used to calibrate mechanism parameters of robot | |
| US10406691B2 (en) | Offline programming device and position-parameter correcting method | |
| JP2010142901A (en) | Robot calibration method and robot control device | |
| CN112743548B (en) | Method, system and terminal for unifying hand-eye calibration of two mechanical arms | |
| JP6585391B2 (en) | robot | |
| CN112873204B (en) | Robot calibration method, device, equipment and computer readable storage medium | |
| CN115122333B (en) | Robot calibration method, device, electronic device and storage medium | |
| CN117288187B (en) | Robot pose determining method and device, electronic equipment and storage medium | |
| CN116442249B (en) | Assembly control method, assembly device, and computer-readable storage medium | |
| CN109311163B (en) | Method for correcting motion control command of robot and related equipment | |
| US10471592B2 (en) | Programming method of a robot arm | |
| CN112428277A (en) | Position calibration method and device, computer equipment and storage medium | |
| JPH1097311A (en) | Correction and setting method for robot tool coordinate system and end effector used for the method | |
| JP7674502B2 (en) | Position and Orientation Measurement System | |
| CN118990616A (en) | Error diagnosis method and device and electronic equipment | |
| KR102826169B1 (en) | Spring constant compensation device and method thereof and recording medium | |
| CN114179081B (en) | Method, device and computer-readable storage medium for compensating angle transmission error | |
| CN114407012B (en) | Robot motion calibration method, device, computer equipment and storage medium | |
| CN115952389A (en) | Real-time compensation method, device, equipment and storage medium for automatic machinery | |
| US12220824B2 (en) | Correction device, correction method, and robot system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |