Workpiece positioning method and device, equipment, storage medium and program product
By utilizing the combination of positioning reference points and contact points in an automated welding system, the precise positioning of the workpiece is achieved, and the problem of difficulty in fixing welds caused by large and complex shapes of the workpiece is solved, and the problem of laser positioning accuracy is affected. The processing effect and corrective accuracy are reduced, and the cost is reduced.
Patent Information
- Application Number
- CN202411413055.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2024-11-26
AI Technical Summary
During automated welding, the large and complex shape of the workpiece makes it difficult to fix the weld position. The laser positioning technology is disturbed by light and surface impurities, which affects the accuracy of positioning, resulting in poor processing effect of the automation system.
By determining the positioning reference point and the positioning starting point of the end effector in the preset offset direction of the workpiece, the end effector moves the positioning along the target positioning direction, and determining the contact point as the target contact point when contacting the workpiece is contacted , accurately positioning the workpiece based on the positioning reference point and contact point, realizing repositioning after process switching.
It improves the processing effect and correcting accuracy of the automation system, reduces external environment interference, avoids interference to system operation, and does not need to add detection equipment or transform the system, reducing costs.
Smart Images

Figure CN119016956A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of welding processing, and in particular to a workpiece positioning method, device, computer equipment, computer-readable storage medium and computer program product. Background Art
[0002] With the rapid development of intelligent manufacturing, automated welding equipment is becoming more and more popular. When using robots to perform batch automated welding on workpieces, problems such as large workpieces and multiple welds often occur, which lead to difficulties in placing the workpieces, difficulty in fixing the placement, and low efficiency in teaching the weld position. Positioning technology is one of the key technologies for realizing automated welding. It enables the welding robot to automatically adjust its position without human intervention to ensure the accuracy of the weld position.
[0003] In traditional technology, laser vision sensors are usually used to detect ahead of the welding gun, and the position coordinates of the measuring points are calculated to achieve real-time correction of the welding trajectory.
[0004] However, the laser positioning method has certain requirements for lighting conditions and workpiece surface quality. It is easily disturbed by impurities on the workpiece surface, affecting the positioning accuracy. The reflection of the workpiece may interfere with the normal operation of the laser weld tracking system, resulting in poor processing effect of the automation system. Summary of the invention
[0005] Based on this, it is necessary to provide a workpiece positioning method, device, computer equipment, computer-readable storage medium and computer program product that can improve the processing effect of the automation system in order to solve the above technical problems.
[0006] In a first aspect, the present application provides a workpiece positioning method, comprising:
[0007] Positioning a first target workpiece, determining a positioning reference point and a positioning starting point of an end effector from at least one preset workpiece offset direction of the first target workpiece, wherein the positioning reference point coincides with a projection point of the positioning starting point projected onto the surface of the first target workpiece along the preset workpiece offset direction;
[0008] Selecting a target positioning direction of a second target workpiece from at least one preset workpiece offset direction according to a pointing direction from the positioning starting point to the positioning reference point, wherein the first target workpiece and the second target workpiece are in different processes;
[0009] Control the end effector to move from the positioning starting point to the target positioning direction;
[0010] In the case where it is detected that the end effector is in contact with the second target workpiece, a current contact point between the end effector and the second target workpiece is used as a target contact point;
[0011] Based on the positioning reference point and the target contact point, the processing position of the second target workpiece is positioned.
[0012] In one embodiment, determining a positioning reference point and a positioning starting point of an end effector from at least one preset workpiece offset direction of a first target workpiece includes:
[0013] Selecting a positioning starting point of the end effector from a preset workpiece offset direction of the first target workpiece, wherein the spacing distance between the positioning starting point and the first target workpiece is greater than a preset distance threshold;
[0014] Control the end effector to move from the positioning starting point to the preset workpiece offset direction;
[0015] When it is detected that the end effector is in contact with the first target workpiece, a current contact point between the end effector and the first target workpiece is used as a positioning reference point.
[0016] In one embodiment, at least two preset workpiece offset directions are not collinear; selecting a positioning starting point of the end effector from the preset workpiece offset direction of the first target workpiece includes:
[0017] At least one spatial position is selected from each non-collinear preset workpiece offset direction of the first target workpiece as a positioning starting point.
[0018] In one embodiment, selecting a positioning starting point of the end effector from a preset workpiece offset direction of the first target workpiece includes:
[0019] When it is determined that there is a position offset and an angle offset between the second target workpiece and the first target workpiece, a plurality of spatial positions are selected from each non-collinear preset workpiece offset direction of the first target workpiece as a positioning starting point.
[0020] In one embodiment, controlling the end effector to move from a positioning starting point to a target positioning direction includes:
[0021] Control the end effector to move from the positioning starting point to the target positioning direction, and in the process of moving from the positioning starting point to the target positioning direction, detect whether the end effector sends a successful positioning identification information, and the successful positioning identification information is generated by the end effector through the detection of a voltage signal;
[0022] If the positioning success identification information sent by the end effector is detected, it is determined that the end effector is in contact with the second target workpiece;
[0023] If the positioning success identification information sent by the end effector is not detected, when the timing reaches the preset communication interval time, jump to the step of detecting whether the end effector sends the positioning success identification information;
[0024] After locating the processing position of the second target workpiece based on the positioning reference point and the target contact point, the method further includes:
[0025] Acquire a workpiece position detection value and a workpiece position true value of a second target workpiece;
[0026] When the difference between the detected workpiece position value and the actual workpiece position value exceeds the preset positioning accuracy range, the communication interval time is adjusted.
[0027] In one embodiment, during the process of moving from the positioning starting point to the target positioning direction, detecting whether the end effector sends positioning success identification information includes:
[0028] In the process of moving from the positioning starting point to the target positioning direction, it is detected whether the end effector sends the positioning success identification information, and the path position of the end effector is detected at each preset position detection interval, and the position detection interval is less than the communication interval;
[0029] The current contact point between the end effector and the second target workpiece is used as a target contact point, including:
[0030] The time of receiving the information of the successful location identification information;
[0031] Based on the information receiving time, the communication interval time and the position detection interval time, a target path position is selected from each path position as the current contact point between the end effector and the second target workpiece, and the current contact point between the end effector and the second target workpiece is used as the target contact point. The target path position is separated from the position of the end effector at the information receiving time by a first moving distance, and the target path position is separated from the position of the end effector at the last communication by a second moving distance. The difference between the first moving distance and the second moving distance is less than a preset distance difference threshold.
[0032] In a second aspect, the present application also provides a workpiece positioning device, comprising:
[0033] A first positioning module is used to position a first target workpiece, determine a positioning reference point and a positioning starting point of an end effector from at least one preset workpiece offset direction of the first target workpiece, and the positioning reference point coincides with a projection point of the positioning starting point projected onto the surface of the first target workpiece along the preset workpiece offset direction;
[0034] A positioning module is used to control the end effector to move from the positioning starting point to the target positioning direction;
[0035] A detection module, configured to, when detecting that the end effector is in contact with the second target workpiece, use a current contact point between the end effector and the second target workpiece as a target contact point;
[0036] The second positioning module is used to locate the processing position of the second target workpiece based on the positioning reference point and the target contact point.
[0037] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0038] Positioning a first target workpiece, determining a positioning reference point and a positioning starting point of an end effector from at least one preset workpiece offset direction of the first target workpiece, wherein the positioning reference point coincides with a projection point of the positioning starting point projected onto the surface of the first target workpiece along the preset workpiece offset direction;
[0039] Control the end effector to move from the positioning starting point to the target positioning direction;
[0040] In the case where it is detected that the end effector is in contact with the second target workpiece, a current contact point between the end effector and the second target workpiece is used as a target contact point;
[0041] Based on the positioning reference point and the target contact point, the processing position of the second target workpiece is positioned.
[0042] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:
[0043] Positioning a first target workpiece, determining a positioning reference point and a positioning starting point of an end effector from at least one preset workpiece offset direction of the first target workpiece, wherein the positioning reference point coincides with a projection point of the positioning starting point projected onto the surface of the first target workpiece along the preset workpiece offset direction;
[0044] Control the end effector to move from the positioning starting point to the target positioning direction;
[0045] In the case where it is detected that the end effector is in contact with the second target workpiece, a current contact point between the end effector and the second target workpiece is used as a target contact point;
[0046] Based on the positioning reference point and the target contact point, the processing position of the second target workpiece is positioned.
[0047] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0048] Positioning a first target workpiece, determining a positioning reference point and a positioning starting point of an end effector from at least one preset workpiece offset direction of the first target workpiece, wherein the positioning reference point coincides with a projection point of the positioning starting point projected onto the surface of the first target workpiece along the preset workpiece offset direction;
[0049] Control the end effector to move from the positioning starting point to the target positioning direction;
[0050] In the case where it is detected that the end effector is in contact with the second target workpiece, a current contact point between the end effector and the second target workpiece is used as a target contact point;
[0051] Based on the positioning reference point and the target contact point, the processing position of the second target workpiece is positioned.
[0052] The workpiece positioning method, device, computer equipment, computer-readable storage medium and computer program product first locate the first target workpiece, determine the positioning reference point and the positioning starting point of the end effector from at least one preset workpiece offset direction of the first target workpiece, and the positioning reference point coincides with the projection point of the positioning starting point on the surface of the first target workpiece along the preset workpiece offset direction, thereby realizing the positioning of the positioning reference point on the first target workpiece; and then, according to the pointing direction from the positioning starting point to the positioning reference point, select the target positioning direction of the second target workpiece from at least one preset workpiece offset direction, wherein the first target workpiece and the second target workpiece are in different processes, thereby realizing the target positioning of the second target workpiece. The positioning direction is determined; by controlling the end effector to move and position along the target positioning direction from the positioning starting point, the second target workpiece is searched along the workpiece offset direction of the target workpiece; and then by detecting that the end effector is in contact with the second target workpiece, the current contact point between the end effector and the second target workpiece is used as the target contact point, so as to realize the point positioning of the second target workpiece. Since the positioning direction is consistent with the workpiece offset direction, the position deviation between the target contact point and the positioning reference point can characterize the offset of the target workpiece. Therefore, the processing position of the second target workpiece is positioned based on the positioning reference point and the target contact point, so as to realize the contact positioning of the second target workpiece. In this way, the repositioning of the target workpiece after the process switching can be realized only by detecting whether the end effector is in contact with the second target workpiece. The whole deviation correction process is hardly affected by the external environment, the deviation correction accuracy is high, and it will not interfere with the original operation of the automation system, so it can effectively improve the processing effect of the automation system. On the other hand, the whole process does not require the automation system to be modified or new detection equipment to be added, so it can effectively reduce the processing cost of the automation system. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 A schematic diagram of a workpiece positioning method according to an embodiment;
[0055] Figure 2 A schematic diagram of a scenario of moving and positioning a target workpiece that has undergone unidirectional positional deviation in one embodiment;
[0056] Figure 3 A schematic diagram of a scene of moving and positioning a target workpiece that has been offset in a plane in an embodiment;
[0057] Figure 4 A schematic diagram of a scenario of moving and positioning a target workpiece that is simultaneously offset in position and direction in one embodiment;
[0058] Figure 5 is a schematic flow chart of a workpiece positioning method in another embodiment;
[0059] Figure 6 is a structural block diagram of a workpiece positioning device in one embodiment;
[0060] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0062] In an exemplary embodiment, Figure 1As shown, a workpiece positioning method is provided. This embodiment uses the method applied to a terminal as an example, wherein the terminal may be, but is not limited to, an automation system, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. Among them, the automation system may be a welding robot, a robotic arm, etc.; the Internet of Things device may be a smart speaker, a smart TV, a smart air conditioner, a smart car device, a projection device, etc.; the portable wearable device may be a smart watch, a smart bracelet, a head-mounted device, etc. The head-mounted device may be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. It can be understood that the method may also be applied to a server, and may also be applied to a system including a terminal and a server, and may be implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps S10-S60. Among them:
[0063] Step S10, positioning the first target workpiece, determining a positioning reference point and a positioning starting point of the end effector from at least one preset workpiece offset direction of the first target workpiece, the positioning reference point coincides with a projection point of the positioning starting point projected onto the surface of the first target workpiece along the preset workpiece offset direction.
[0064] It should be noted that this embodiment is applied to the control module of the automation system, and the movement of the end effector is controlled by the control module. During the movement, the end effector can position and weld the workpiece, wherein the automation system can be a welding robot or a robotic arm, etc., and the end effector can be a welding wire.
[0065] Before welding a workpiece, it is usually necessary to calibrate the position of the welding gun and the workpiece to ensure that the weld position is accurate. However, after the switching process, the switching process includes the replacement of different workpieces, or the switching between different processes of the same workpiece, which may cause the relative position relationship between the workpiece and the welding execution site on the welding gun to change. If welding is still performed according to the original welding trajectory, the weld will deviate from the expected, resulting in low welding quality, and even requiring additional grinding, repairing or even re-welding. Therefore, it is necessary to reposition the workpiece before welding when the relative position relationship between the workpiece and the welding execution site on the welding gun may change. As an example, if the end effector contacts the workpiece during movement, an electrical signal will be generated, and the position and size of the welding wire are known. Therefore, by detecting the change in the electrical signal of the end effector, the contact point between the welding wire and the workpiece can be located.
[0066] The first target workpiece refers to the workpiece before the switching process, and the second target workpiece refers to the workpiece after the switching process. The first target workpiece and the second target workpiece can be the same or different. If the switching process is to replace the workpiece, the first target workpiece and the second target workpiece are different. If the switching process is to switch between different processes of the same workpiece, the first target workpiece and the second target workpiece refer to the same workpiece in different positions.
[0067] The possible offset of the workpiece after the switching process includes at least one of position offset and angle offset. The position offset includes unidirectional position offset and bidirectional position offset. Among them, unidirectional position offset refers to the position of the workpiece being offset in one direction, such as along the length direction, along the width direction or along the diameter direction, etc.; bidirectional position offset refers to the position of the workpiece being offset in two directions, such as along the length direction and the width direction, or along two directions of different diameters, etc.; angle offset refers to the azimuth angle of the workpiece being offset, that is, the workpiece undergoes a rotational transformation.
[0068] The positioning starting point is the starting point for the end controller to move and position, and is located in the preset offset direction of the first target workpiece. The preset workpiece offset direction refers to the allowable offset direction of the workpiece determined by the limit module based on the workpiece placement platform. For example, if the workpiece placement platform is provided with a workpiece placement slot of the same width as the workpiece, the workpiece can only be offset in the length direction. The positioning reference point is located on the outer surface of the first target workpiece, and the outer surface where the positioning reference point is located is not parallel to the preset workpiece offset direction.
[0069] It can be understood that there can be multiple candidate positioning starting points and candidate positioning reference points, but each group of positioning starting points and positioning reference points determined in the end corresponds to each other one by one, and the corresponding positioning reference points coincide with the projection points of the positioning starting points along the preset workpiece offset direction onto the surface of the first target workpiece.
[0070] Exemplarily, when a process switch is detected, the positioning information of the first target workpiece can be acquired first, and the positioning information of the first target workpiece can be determined when the first target workpiece is processed; then, based on the positioning information of the first target workpiece, at least one of the candidate positioning starting point and the candidate positioning reference point is determined from at least one preset workpiece offset direction of the first target workpiece; then, from the candidate positioning starting points and the candidate positioning reference points, at least one group of positioning starting points and positioning reference points that can meet preset conditions are selected, and the preset conditions refer to the overlap of the projection point of the positioning reference point and the projection point of the positioning starting point on the surface of the first target workpiece along the preset workpiece offset direction.
[0071] It is understandable that there can be one or more groups of positioning starting points and positioning reference points. Multiple groups of positioning starting points and positioning reference points can effectively avoid false detection, reduce errors, and improve the accuracy of position correction, but it takes more time and occupies more computing resources.
[0072] As an example, the positioning reference point and the positioning starting point can be determined by calculation, or by first selecting one of the candidate positioning reference points or the candidate positioning starting points, and then controlling the end effector to move along a preset workpiece offset direction to find the other one. This embodiment is not limited to this.
[0073] Step S20 , selecting a target positioning direction of a second target workpiece from at least one preset workpiece offset direction according to the pointing direction from the positioning starting point to the positioning reference point, wherein the first target workpiece and the second target workpiece are in different processes.
[0074] The target positioning direction is the moving direction of the end effector during the mobile positioning process.
[0075] Illustratively, after determining the positioning reference point and the positioning starting point, the pointing direction from the positioning starting point to the positioning reference point can be determined first, and then one matching the pointing direction is selected from the preset workpiece offset directions as the target positioning direction of the second target workpiece.
[0076] Step S30, controlling the end effector to move from the positioning starting point to the target positioning direction.
[0077] Exemplarily, the end effector can be controlled to move to the positioning starting point, and then move from the positioning starting point to the target positioning direction for positioning. Mobile positioning refers to moving from the positioning starting point to the target positioning direction, and in the process of moving to the target positioning direction, continuously detecting whether the end effector is in contact with the second target workpiece.
[0078] Among them, when the end effector is a welding wire, a voltage signal will be generated when the welding wire contacts the second target workpiece. Therefore, it is possible to determine whether the end effector contacts the second target workpiece by detecting whether a voltage signal is generated at the welding wire; or, a pressure sensor may be provided on the end effector. When the end effector contacts the second target workpiece, the pressure sensor collects a pressure signal. Therefore, it is possible to determine whether the end effector contacts the second target workpiece by detecting the pressure signal. The method of determining whether the welding wire contacts the second target workpiece by a voltage signal does not require the addition of other sensors or detection devices, and can effectively reduce the cost of positioning.
[0079] As an example, controlling the end effector to move from the positioning starting point to the target positioning direction includes: controlling the end effector to move from the positioning starting point to the target positioning direction, and in the process of moving from the positioning starting point to the target positioning direction, detecting whether the end effector sends a successful positioning identification information, the successful positioning identification information is generated by the end effector through the detection of a voltage signal trigger; if the successful positioning identification information sent by the end effector is detected, it is determined that the end effector is in contact with the second target workpiece; if the successful positioning identification information sent by the end effector is not detected, then when the timing reaches a preset communication interval time, jump to the step of detecting whether the end effector sends a successful positioning identification information.
[0080] Exemplarily, after determining the reference position of the positioning reference point and the starting position of the positioning starting point, the end effector can be controlled to move to the starting position of the positioning starting point, and then move from the positioning starting point to the target positioning direction; in the process of moving from the positioning starting point to the target positioning direction, before the end effector contacts the second target workpiece, the end effector will not generate a voltage signal. When contacting the second target workpiece, the end effector generates a voltage signal. After detecting the voltage signal, the end effector generates positioning success identification information. During the process of mobile positioning, the end controller and the control module of the automation system communicate once at a preset communication interval. In the communication after generating the successful positioning identification information, the end actuator will send the generated successful positioning identification information to the control module of the automation system. After detecting the successful positioning identification information sent by the end actuator, the control module of the automation system can determine that the end actuator is in contact with the second target workpiece, thereby executing the step of taking the current contact point between the end actuator and the second target workpiece as the target contact point. Before detecting the successful positioning identification information sent by the end actuator, the control module of the automation system can continue to communicate with the end actuator once at a preset communication interval until at least one of the following is detected: the end actuator is in contact with the second target workpiece, or the moving distance of the end actuator exceeds the preset moving distance threshold, or the moving time of the end actuator exceeds the preset moving time threshold, etc.
[0081] Step S40: When it is detected that the end effector is in contact with the second target workpiece, a current contact point between the end effector and the second target workpiece is used as a target contact point.
[0082] Exemplarily, if it is detected that the end effector is in contact with the second target workpiece, the current contact point between the end effector and the second target workpiece is detected, and the current contact point between the end effector and the second target workpiece is used as the target contact point; if it is not detected that the end effector is in contact with the second target workpiece, it is possible to continue to detect whether the end effector is in contact with the second target workpiece until it is detected that the end effector is in contact with the second target workpiece, or it is detected that the movement distance of the end effector exceeds a preset movement distance threshold, or it is detected that the movement time of the end effector exceeds a preset movement time threshold, etc.
[0083] Among them, the first contact point is located on the outer surface of the second target workpiece, and the outer surface where the first contact point is located is at the same position on the workpiece as the outer surface where the positioning reference point is located. For example, if the outer surface where the positioning reference point is located is the right side surface of the rectangular target workpiece, then the outer surface where the first contact point is located is also the right side surface of the rectangular target workpiece.
[0084] As an example, in the case where there may be an angular offset between the second target workpiece and the first target workpiece, the outer surface where the first contact point is located and the outer surface where the positioning reference point is located may correspond to different outer surfaces of the workpiece. For example, the outer surface where the positioning reference point is located is the right side, but the outer surface where the first contact point is located is the front side. However, the position offset and angle offset caused by switching the workpiece are usually small. Therefore, a preset edge distance threshold can be set based on experience or test results, and the distance between the positioning reference point and the edge line of the outer surface where the positioning reference point is located is greater than the preset edge distance threshold, thereby ensuring that the outer surface where the first contact point is located and the outer surface where the positioning reference point is located are in the same position on the workpiece.
[0085] As an example, after it is detected that the end effector is in contact with the second target workpiece, the end effector may be controlled to stop moving, or the end effector may be controlled to move to a preset positioning end point.
[0086] Step S60: positioning the processing position of the second target workpiece based on the positioning reference point and the target contact point.
[0087] Exemplarily, after determining the first contact position, the offset transformation information of the second target workpiece relative to the first target workpiece can be determined based on the relative positions of the positioning reference point and the target contact point. Based on the offset transformation information and the processing position information of the first target workpiece, the processing position of the second target workpiece can be located.
[0088] As an example, based on the relative positions of the positioning reference point and the target contact point, determining the offset transformation information of the second target workpiece relative to the first target workpiece includes: calculating the position offset and angle offset of the second target workpiece relative to the first target workpiece based on the position difference between the positioning reference point and the target contact point, generating a correction matrix based on the position offset and the angle offset, and multiplying the processing position of the first target workpiece by the correction matrix to obtain the processing position of the second target workpiece.
[0089] In the above workpiece positioning method, firstly, by positioning the first target workpiece, a positioning reference point and a positioning starting point of the end effector are determined from at least one preset workpiece offset direction of the first target workpiece, and the positioning reference point coincides with a projection point of the positioning starting point on the surface of the first target workpiece along the preset workpiece offset direction, thereby realizing the positioning of the positioning reference point on the first target workpiece; and then, according to the pointing direction from the positioning starting point to the positioning reference point, a target positioning direction of the second target workpiece is selected from at least one preset workpiece offset direction, wherein the first target workpiece and the second target workpiece are in different processes, thereby realizing the determination of the target positioning direction of the second target workpiece; and by controlling the end effector The actuator moves and locates along the target positioning direction from the positioning starting point, realizing the search for the second target workpiece along the workpiece offset direction of the target workpiece; and then, when the end actuator is detected to be in contact with the second target workpiece, the current contact point between the end actuator and the second target workpiece is used as the target contact point, realizing the point positioning of the second target workpiece. Since the positioning direction is consistent with the workpiece offset direction, the position deviation between the target contact point and the positioning reference point can characterize the offset of the target workpiece. Therefore, by locating the processing position of the second target workpiece based on the positioning reference point and the target contact point, the contact positioning of the second target workpiece is realized. In this way, the repositioning of the target workpiece after the process switching can be realized only by detecting whether the end actuator is in contact with the second target workpiece. The entire correction process is hardly affected by the external environment, the correction accuracy is high, and it will not interfere with the original operation of the automation system, so it can effectively improve the processing effect of the automation system. On the other hand, the entire process does not require the automation system to be modified or new detection equipment to be added, so the processing cost of the automation system can be effectively reduced.
[0090] In an exemplary embodiment, determining the positioning reference point and the positioning starting point of the end effector from at least one preset workpiece offset direction of the first target workpiece includes steps S11 to S13. In which:
[0091] Step S11, selecting a positioning starting point of the end effector from a preset workpiece offset direction of the first target workpiece, wherein the spacing distance between the positioning starting point and the first target workpiece is greater than a preset distance threshold.
[0092] For example, after the first target workpiece is positioned, any one or more points in a preset workpiece offset direction of the first target workpiece, the points having a spacing distance from the first target workpiece greater than a preset distance threshold, may be selected as the positioning starting point.
[0093] Step S12, controlling the end effector to move from the positioning starting point along a preset workpiece offset direction for positioning.
[0094] Exemplarily, after determining the positioning starting point, the end effector can be controlled to move to the positioning starting point, and from the positioning starting point, mobile positioning is performed along a preset workpiece offset direction. Mobile positioning refers to moving along a preset workpiece offset direction, and in the process of moving along the preset workpiece offset direction, continuously detecting whether the end effector is in contact with the first target workpiece.
[0095] Step S13: when it is detected that the end effector is in contact with the first target workpiece, a current contact point between the end effector and the first target workpiece is used as a positioning reference point.
[0096] Exemplarily, if it is detected that the end effector is in contact with the first target workpiece, the current contact point between the end effector and the first target workpiece is detected, and the current contact point between the end effector and the first target workpiece is determined as the positioning reference point; if it is not detected that the end effector is in contact with the first target workpiece, it is possible to continue to detect whether the end effector is in contact with the first target workpiece until it is detected that the end effector is in contact with the first target workpiece, or it is detected that the movement distance of the end effector exceeds a preset movement distance threshold, or it is detected that the movement time of the end effector exceeds a preset movement time threshold, etc. As an example, if it is detected that the movement distance of the end effector exceeds a preset movement distance threshold, or it is detected that the movement time of the end effector exceeds a preset movement time threshold, it is possible to return to the step of selecting the end effector's positioning starting point from the preset workpiece offset direction of the first target workpiece, and reselect the positioning starting point.
[0097] In this embodiment, by first determining the positioning starting point and then controlling the end effector to move and position to determine the positioning reference point, it can be ensured that the positioning reference point is located in the target positioning direction, avoiding the situation where the positioning reference point deviates from the actual target positioning direction due to errors in the calculation or positioning process, thereby improving the positioning accuracy of the first contact point and thus improving the positioning accuracy of the processing position of the second target workpiece.
[0098] In an exemplary embodiment, at least two preset workpiece offset directions are not collinear; selecting a positioning starting point of the end effector from the preset workpiece offset direction of the first target workpiece includes:
[0099] At least one spatial position is selected from each non-collinear preset workpiece offset direction of the first target workpiece as a positioning starting point.
[0100] It should be noted that, according to the different shapes and specifications of the workpiece, the limit module of the workpiece placement platform can limit the unidirectional position offset of the workpiece, that is, the workpiece can only reciprocate in a certain straight line direction. In this case, the preset workpiece offset directions are two colinear but opposite directions. It is only necessary to determine a set of positioning reference points and positioning starting points to measure the position offset of the workpiece in the workpiece offset direction, thereby achieving correction.
[0101] As an example, see Figure 2 , Figure 2 In the figure, P0 is the starting point of the positioning, P1 is the positioning reference point corresponding to P0, P1' is the first contact point, P2 is the preset positioning end point, the dotted line indicates the position of the first target workpiece, and the arrow indicates the target positioning direction. When performing mobile positioning, the end effector is controlled to move to P0 first, and then move along the target positioning direction, passing through P1, and contacting the second target workpiece at P1'. The length of P1P1' is the position offset of the target workpiece. Based on the position offset, the processing position of the first target workpiece is offset and calculated to obtain the processing position of the second target workpiece. After detecting that the end effector is in contact with P1', the end effector can be controlled to move to P2, waiting for the processing operation or the next mobile positioning operation.
[0102] However, in cases where the workpiece is large or the weld is complex, limiting the unidirectional position offset of the workpiece may not complete the welding process. In this case, the workpiece may be subject to a bidirectional offset restriction, that is, the workpiece can only be translated within a plane. In this case, any translation transformation of the workpiece can be split into translation components in at least two non-parallel directions. Therefore, it is only necessary to detect the position offset between the first target workpiece and the second target workpiece in at least two directions to achieve accurate positioning of the second target workpiece.
[0103] For example, when the user determines that the target workpiece can only be translated within a plane, at least two non-collinear workpiece offset directions can be preset. During the position correction process, if the number of non-collinear preset workpiece offset directions is determined to be two or more than two, then from each non-collinear preset workpiece offset direction of the first target workpiece, any one or more spatial positions whose spacing distance from the first target workpiece is greater than a preset distance threshold are selected as the starting point for position finding.
[0104] It can be understood that the position correction in this case can be achieved by setting the number of non-collinear preset workpiece offset directions to two, referring to Figure 3 , Figure 3 In the figure, P0 and P3 are both the starting points of positioning, P1 is the positioning reference point corresponding to P0, P4 is the positioning reference point corresponding to P3, P1' is the first contact point corresponding to P0, P4' is the first contact point corresponding to P3, P2 and P5 are preset positioning end points, the dotted line part indicates the position of the first target workpiece, and the arrow indicates the target positioning direction. When performing mobile positioning, the end effector can be controlled to move to P0 for the first mobile positioning, and then move along the target positioning direction, pass P1, and contact the second target workpiece at P1', and then move from P1' Go to P2 and wait for the second movement and positioning, and then move from P2 to P3 for the second movement and positioning, and then move along the target positioning direction, pass P4, and contact the second target workpiece at P4'. The length of P1P1' is the position offset of the target workpiece in the P0P1 direction, and the length of P4P4' is the position offset of the target workpiece in the P3P4 direction. Based on the position offset in the P0P1 direction and the position offset in the P3P4 direction, the processing position of the first target workpiece is offset calculated to obtain the processing position of the second target workpiece.
[0105] As an example, suppose the target artifact occurs as follows Figure 3 The plane position offset shown, dx, dy, dz are the position offsets of the second target workpiece and the first target workpiece in the x, y and z directions respectively, (Project_x, Project_y, Project_z) are the projection coordinates of P4P4' determined by the second mobile positioning on P1P1' determined by the first mobile positioning, then dx, dy, dz can be calculated by the following formula:
[0106] dx = (x P1’ -x P1 ) + (x P4’ -x P4 ) - Project_x
[0107] dy = (y P1’ -y P1 ) + (y P4’ -y P4 ) - Project_y
[0108] dz = (z P1’ -z P1 ) + (z P4’ -z P4 ) - Project_z
[0109] Assuming that the coordinates of the workpiece weld point on the first target workpiece are (x, y, z), then the coordinates of the workpiece weld point on the second target workpiece (x', y', z') can be corrected using the following correction matrix:
[0110]
[0111] It is understandable that when the number of non-collinear preset workpiece offset directions is greater than two, the accuracy of the correction can be further improved, but more time and computing resources are consumed.
[0112] In this embodiment, by splitting the position offset of the target workpiece in the plane into components in at least two non-parallel directions, and then controlling the end effector to move and locate along these two directions, the position offset components of the target workpiece in these two directions can be detected, thereby achieving accurate positioning of the second target workpiece.
[0113] In an exemplary embodiment, selecting a positioning starting point of the end effector from a preset workpiece offset direction of the first target workpiece includes:
[0114] When it is determined that there is a position offset and an angle offset between the second target workpiece and the first target workpiece, a plurality of spatial positions are selected from each non-collinear preset workpiece offset direction of the first target workpiece as a positioning starting point.
[0115] It should be noted that, in cases where the workpiece is large or the weld is complex, limiting the plane offset of the workpiece may still not complete the welding process. In this case, it may not be possible to restrict the workpiece from rotating, and the relative position between the second target workpiece and the first target workpiece may undergo both positional and angular offsets. That is, the second target workpiece may undergo both positional translation and rotational transformation relative to the first target workpiece. In this case, performing a movement and positioning in each non-collinear workpiece offset direction cannot accurately detect the angular offset.
[0116] Exemplarily, when the user determines that there is a position offset and an angle offset between the second target workpiece and the first target workpiece, two or more non-collinear workpiece offset directions can be preset and the angle offset detection can be turned on. In this way, during the position correction process, if it is determined that the number of non-collinear preset workpiece offset directions is two or more and the angle offset detection is turned on, then from each non-collinear preset workpiece offset direction of the first target workpiece, any two or more spatial positions whose interval distance from the first target workpiece is greater than the preset distance threshold are selected as the positioning starting point, and the line connecting at least two positioning starting points is not parallel to the preset workpiece offset direction.
[0117] It can be understood that the position correction in this case can be achieved by selecting two positioning starting points in each non-collinear preset workpiece offset direction. Figure 4 , Figure 4 Positioning 1 and positioning 2 are two mobile positionings in the offset direction of one workpiece, and positioning 3 and positioning 4 are two mobile positionings in the offset direction of another workpiece. The position information determined by four mobile positionings can be used to determine the position offset and angle offset of the second target workpiece relative to the first target workpiece. Based on the position offset and angle offset, the processing position of the first target workpiece can be offset calculated to obtain the processing position of the second target workpiece.
[0118] It is understandable that if the number of positioning starting points in each non-collinear preset workpiece offset direction is greater than two, the accuracy of the correction can be further improved, but more time and computing resources are consumed.
[0119] In this embodiment, by performing at least two movement positioning operations in each non-collinear workpiece offset direction, the angular offset and position offset of the second target workpiece relative to the first target workpiece can be detected, thereby achieving accurate positioning of the second target workpiece.
[0120] In an exemplary embodiment, Figure 5 As shown, the end effector is controlled to move from the positioning starting point to the target positioning direction, including steps S31 to S33. Among them:
[0121] Step S31, control the end effector to move from the positioning starting point to the target positioning direction, and in the process of moving from the positioning starting point to the target positioning direction, detect whether the end effector sends a successful positioning identification information, and the successful positioning identification information is generated by the end effector through the detection of a voltage signal.
[0122] Exemplarily, after determining the reference position of the positioning reference point and the starting position of the positioning starting point, the end effector can be controlled to move to the starting position of the positioning starting point, and then move from the positioning starting point to the target positioning direction; in the process of moving from the positioning starting point to the target positioning direction, before the end effector contacts the second target workpiece, the end effector will not generate a voltage signal, and when it contacts the second target workpiece, the end effector generates a voltage signal, and after detecting the voltage signal, the end effector generates a successful positioning identification information. In the process of mobile positioning, the end controller and the control module of the automation system communicate once every preset communication interval, and in the communication after the successful positioning identification information is generated, the end effector will send the generated successful positioning identification information to the control module of the automation system.
[0123] As an example, the control module of the automation system and the end effector can communicate through EIP (Ethernet / IP) or Modbus (a communication protocol). After the control module of the automation system starts mobile positioning, if the EIP protocol communication method is adopted, the end effector will periodically report the "positioning success" mark; if the Modbus communication method is adopted, the control module of the automation system will periodically read the "positioning success" mark from the end effector.
[0124] Step S32: if the positioning success identification information sent by the end effector is detected, it is determined that the end effector is in contact with the second target workpiece.
[0125] Exemplarily, after detecting the successful positioning identification information sent by the end effector, the control module of the automation system can determine that the end effector is in contact with the second target workpiece, thereby executing the step of using the current contact point between the end effector and the second target workpiece as the target contact position.
[0126] Step S33, if the positioning success identification information sent by the end effector is not detected, then when the timing reaches the preset communication interval time, jump to the step of detecting whether the end effector sends the positioning success identification information.
[0127] Exemplarily, before detecting the successful positioning identification information sent by the end effector, the control module of the automation system can continue to communicate with the end effector once every preset communication interval time until at least one of the end effector is detected to be in contact with the second target workpiece, or the moving distance of the end effector is detected to exceed a preset moving distance threshold, or the moving time of the end effector is detected to exceed a preset moving time threshold, etc.
[0128] After the processing position of the second target workpiece is located based on the positioning reference point and the target contact point, the process further includes steps S60 to S70.
[0129] Step S60, obtaining the workpiece position detection value and the workpiece position true value of the second target workpiece.
[0130] It should be noted that since the communication between the end effector and the control module of the automation system is periodic, the time when the control module of the automation system actually detects the successful positioning identification information is often later than the actual contact time between the end effector and the second target workpiece, thereby affecting the positioning accuracy of the first contact point, resulting in deviations in the weld position after correction, affecting the welding quality.
[0131] Assuming that the communication cycle interval is X milliseconds and the robot positioning speed is V mm / s, the positioning accuracy is calculated as follows:
[0132] Positioning accuracy = X*(V / 1000) mm
[0133] Therefore, the shorter the communication cycle, the smaller the positioning deviation, but frequent communication will also consume more system resources, thus affecting the normal operation of other modules in the automation system, and further affecting the final welding quality. Therefore, before the automation system actually performs the welding task, the preset communication interval time can be debugged to determine the communication interval time that can meet the actual accuracy requirements.
[0134] The true value of the workpiece position is used to represent the actual position of the second target workpiece, and can be determined and input manually or by image recognition or the like.
[0135] Exemplarily, after positioning the second target workpiece, a workpiece position detection value of the second target workpiece determined by positioning and a workpiece position true value may be acquired.
[0136] Step S70, when it is detected that the difference between the workpiece position detection value and the workpiece position real value exceeds the preset positioning accuracy range, the communication interval time is adjusted.
[0137] It should be noted that, usually, if the actual positioning accuracy is less than the preset positioning accuracy range, the accuracy of position correction will be higher, but the resources of other modules in the automation system may be insufficient, resulting in lower final welding quality; if the actual positioning accuracy is greater than the preset positioning accuracy range, although the normal operation of each module in the automation system can be guaranteed, the accuracy of position correction is low, which will also result in lower final welding quality. Therefore, the preset positioning accuracy range can be determined based on the actual accuracy requirements and the performance of the automation system, and then the communication interval time can be debugged based on the preset positioning accuracy range to improve the welding quality.
[0138] For example, after obtaining the true value of the tool position, the position difference between the true value of the workpiece position and the detected value of the workpiece position can be calculated, and the numerical difference between the position difference and the preset positioning accuracy range can be compared. If the position difference is less than the preset positioning accuracy range, the communication interval time is increased to reduce the resource occupation of the position correction and ensure the normal operation of each module in the automation system; if the position difference is greater than the preset positioning accuracy range, the communication interval time is reduced to improve the accuracy of the position correction.
[0139] In this embodiment, by determining the preset positioning accuracy range based on the actual accuracy requirements and the performance of the automation system, and then debugging the communication interval time based on the preset positioning accuracy range, the normal operation of each module in the automation system can be guaranteed on the basis of improving the accuracy of position correction, thereby improving the welding quality.
[0140] In an exemplary embodiment, in the process of moving from the positioning starting point to the target positioning direction, detecting whether the end effector sends positioning success identification information includes:
[0141] In the process of moving from the positioning starting point to the target positioning direction, it is detected whether the end effector sends the positioning success identification information, and the path position of the end effector is detected at each preset position detection interval, and the position detection interval is less than the communication interval.
[0142] Exemplarily, in the process of moving from the positioning starting point to the target positioning direction, before the end effector contacts the second target workpiece, the end effector does not generate a voltage signal. When contacting the second target workpiece, the end effector generates a voltage signal. After detecting the voltage signal, the end effector generates successful positioning identification information. In the process of mobile positioning, the end controller communicates with the control module of the automation system once every preset communication interval. In the communication after the successful positioning identification information is generated, the end effector sends the generated successful positioning identification information to the control module of the automation system.
[0143] In the process of moving from the positioning starting point to the target positioning direction, in synchronization with the end effector detecting the voltage signal, the automation system will also periodically detect the path position of itself or the end effector through other positioning sensors set by itself.
[0144] The current contact point between the end effector and the second target workpiece is used as the target contact point, and steps S41 to S42 are also included. Among them:
[0145] Step S41, obtaining the information receiving time of the successful positioning identification information and the moving speed information of the end effector.
[0146] Exemplarily, if it is detected that the end effector is in contact with the second target workpiece, the information receiving time of the successful positioning identification information and the moving speed information of the end effector are acquired.
[0147] Step S42, based on the information receiving time, the communication interval time and the position detection interval time, select a target path position from each path position as the current contact point between the end effector and the second target workpiece, and use the current contact point between the end effector and the second target workpiece as the target contact point, the target path position is separated from the position of the end effector at the information receiving time by a first moving distance, the target path position is separated from the position of the end effector at the last communication by a second moving distance, and the difference between the first moving distance and the second moving distance is less than a preset distance difference threshold.
[0148] The moving speed information is used to characterize the moving speed of the end effector, including at least one of moving speed, moving acceleration, etc.
[0149] It should be noted that, at present, the position of the end effector is usually detected after receiving the successful positioning identification information, and the detected position of the end effector is determined as the first contact position of the first contact point. However, at this time, there is a delay from the actual contact time, which leads to a certain deviation in the first contact position. For example, if the communication interval is 100 milliseconds, if the end effector contacts the second target workpiece at the 10th millisecond, and the first contact position is detected after 100 milliseconds of communication, if the movement speed of the end effector is 10 mm / s, there is still a deviation of 0.9 mm after correction.
[0150] Exemplarily, based on the information receiving time and the communication interval time, the time range between the last communication and the current communication can be determined, and then based on the position detection time interval, at least one position detection time between the last communication and the current communication can be determined; then, from the detected path positions, the path positions corresponding to the last communication, the current communication and each position detection time are queried, and from the path positions corresponding to each position detection time, the path position located in the middle position between the path position corresponding to the last communication and the path position corresponding to the current communication is selected as the current contact point between the end effector and the second target workpiece, and the current contact point between the end effector and the second target workpiece is taken as the target contact point, that is, assuming that the distance between the target path position and the position of the end effector at the information receiving time is the first moving distance, and the distance between the target path position and the position of the end effector at the last communication is the second moving distance, then the path position that can make the difference between the first moving distance and the second moving distance less than the preset distance difference threshold is selected as the current contact point between the end effector and the second target workpiece, and the current contact point between the end effector and the second target workpiece is taken as the target contact point. For example, if the communication interval is 100 milliseconds, the position detection time interval is 10 milliseconds, and the moving speed of the end effector is 10 mm / s, there are 8 path positions between the last communication and this communication. Taking the fourth or fifth path position as the current contact point between the end effector and the second target workpiece, and taking the current contact point between the end effector and the second target workpiece as the target contact point, the positioning error can be reduced to within 0.5 mm.
[0151] In this embodiment, the positioning error caused by communication delay is compensated by increasing the frequency of position detection, so that fewer resources can be used to obtain higher positioning accuracy.
[0152] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0153] Based on the same inventive concept, the embodiment of the present application also provides a workpiece positioning device for implementing the workpiece positioning method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more workpiece positioning device embodiments provided below can refer to the limitations of the workpiece positioning method above, and will not be repeated here.
[0154] In an exemplary embodiment, Figure 6 As shown, a workpiece positioning device is provided, comprising: a first positioning module 602, a direction selection module 604, a positioning module 606, a detection module 608 and a second positioning module 610, wherein:
[0155] A first positioning module 602 is used to position a first target workpiece, determine a positioning reference point and a positioning starting point of an end effector from at least one preset workpiece offset direction of the first target workpiece, and the positioning reference point coincides with a projection point of the positioning starting point projected onto the surface of the first target workpiece along the preset workpiece offset direction;
[0156] A direction selection module 604 is used to select a target positioning direction of a second target workpiece from the at least one preset workpiece offset direction according to the pointing direction from the positioning starting point to the positioning reference point, wherein the first target workpiece and the second target workpiece are in different processes;
[0157] A positioning module 606 is used to control the end effector to move and position from the positioning starting point along the target positioning direction;
[0158] A detection module 608 is configured to, when it is detected that the end effector is in contact with the second target workpiece, use a current contact point between the end effector and the second target workpiece as a target contact point;
[0159] The second positioning module 610 is used to locate the processing position of the second target workpiece based on the positioning reference point and the target contact point.
[0160] In an exemplary embodiment, the first positioning module 602 is further configured to:
[0161] Selecting a positioning starting point of the end effector from a preset workpiece offset direction of the first target workpiece, wherein the spacing distance between the positioning starting point and the first target workpiece is greater than a preset distance threshold;
[0162] Control the end effector to move from the positioning starting point to the preset workpiece offset direction;
[0163] When it is detected that the end effector is in contact with the first target workpiece, a current contact point between the end effector and the first target workpiece is used as a positioning reference point.
[0164] In an exemplary embodiment, at least two of the preset workpiece offset directions are not collinear; the first positioning module 602 is further used for:
[0165] At least one spatial position is selected from each non-collinear preset workpiece offset direction of the first target workpiece as a positioning starting point.
[0166] In an exemplary embodiment, the first positioning module 602 is further configured to:
[0167] When it is determined that there is a position offset and an angle offset between the second target workpiece and the first target workpiece, a plurality of spatial positions are selected from each non-collinear preset workpiece offset direction of the first target workpiece as a positioning starting point.
[0168] In an exemplary embodiment, the location module 606 is further configured to:
[0169] Control the end effector to move from the positioning starting point to the target positioning direction, and in the process of moving from the positioning starting point to the target positioning direction, detect whether the end effector sends a successful positioning identification information, and the successful positioning identification information is generated by the end effector through the detection of a voltage signal;
[0170] If the positioning success identification information sent by the end effector is detected, it is determined that the end effector is in contact with the second target workpiece;
[0171] If the positioning success identification information sent by the end effector is not detected, when the timing reaches the preset communication interval time, jump to the step of detecting whether the end effector sends the positioning success identification information;
[0172] The workpiece positioning device further includes an adjustment module, which is used to: after positioning the processing position of the second target workpiece based on the positioning reference point and the target contact point, the adjustment module is used to:
[0173] Acquire a workpiece position detection value and a workpiece position true value of a second target workpiece;
[0174] When the difference between the detected workpiece position value and the actual workpiece position value exceeds the preset positioning accuracy range, the communication interval time is adjusted.
[0175] In an exemplary embodiment, the location module 606 is further configured to:
[0176] In the process of moving from the positioning starting point to the target positioning direction, it is detected whether the end effector sends the positioning success identification information, and the path position of the end effector is detected at each preset position detection interval, and the position detection interval is less than the communication interval;
[0177] The detection module 608 is also used for:
[0178] The time of receiving the information of the successful location identification information;
[0179] Based on the information receiving time, the communication interval time and the position detection interval time, a target path position is selected from each path position as the current contact point between the end effector and the second target workpiece, and the current contact point between the end effector and the second target workpiece is used as the target contact point. The target path position is separated from the position of the end effector at the information receiving time by a first moving distance, and the target path position is separated from the position of the end effector at the last communication by a second moving distance. The difference between the first moving distance and the second moving distance is less than a preset distance difference threshold.
[0180] Each module in the above workpiece positioning device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0181] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a workpiece positioning method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0182] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0183] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0184] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0185] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0186] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0187] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0188] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0189] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A workpiece positioning method, characterized in that: The method comprises: Positioning a first target workpiece, determining a positioning reference point and a positioning starting point of an end effector from at least one preset workpiece offset direction of the first target workpiece, wherein the positioning reference point coincides with a projection point of the positioning starting point projected onto the surface of the first target workpiece along the preset workpiece offset direction; According to the pointing direction from the positioning starting point to the positioning reference point, selecting a target positioning direction of a second target workpiece from the at least one preset workpiece offset direction, wherein the first target workpiece and the second target workpiece are in different processes; Controlling the end effector to move and locate from the positioning starting point along the target positioning direction; In the case where the end effector is detected to be in contact with the second target workpiece, taking a current contact point between the end effector and the second target workpiece as a target contact point; Based on the positioning reference point and the target contact point, the processing position of the second target workpiece is positioned.
2. The method according to claim 1, characterized in that The step of determining a positioning reference point and a positioning starting point of an end effector from at least one preset workpiece offset direction of the first target workpiece includes: Selecting a positioning starting point of the end effector from a preset workpiece offset direction of the first target workpiece, wherein the spacing distance between the positioning starting point and the first target workpiece is greater than a preset distance threshold; Controlling the end effector to move and locate from the positioning starting point along a preset workpiece offset direction; When it is detected that the end effector is in contact with the first target workpiece, a current contact point between the end effector and the first target workpiece is used as a positioning reference point.
3. The method according to claim 2, characterized in that At least two of the preset workpiece offset directions are not collinear; and selecting a positioning starting point of the end effector from the preset workpiece offset direction of the first target workpiece includes: At least one spatial position is selected from each non-collinear preset workpiece offset direction of the first target workpiece as a positioning starting point.
4. The method according to claim 2, characterized in that: The step of selecting a positioning starting point of the end effector from a preset workpiece offset direction of the first target workpiece includes: When it is determined that there is a position offset and an angle offset between the second target workpiece and the first target workpiece, a plurality of spatial positions are selected from each non-collinear preset workpiece offset direction of the first target workpiece as a positioning starting point.
5. The method according to any one of claims 1 to 4, characterized in that: The step of controlling the end effector to move and locate from the location-locating starting point along the target location-locating direction comprises: Control the end effector to move from the positioning starting point to the target positioning direction, and in the process of moving from the positioning starting point to the target positioning direction, detect whether the end effector sends a successful positioning identification information, wherein the successful positioning identification information is generated by the end effector through the detection of a voltage signal; If the positioning success identification information sent by the end effector is detected, it is determined that the end effector is in contact with the second target workpiece; If the positioning success identification information sent by the end effector is not detected, when the timing reaches the preset communication interval time, jump to the step of detecting whether the end effector sends the positioning success identification information; After positioning the processing position of the second target workpiece based on the positioning reference point and the target contact point, the method further includes: Acquire a workpiece position detection value and a workpiece position true value of the second target workpiece; When it is detected that the difference between the workpiece position detection value and the workpiece position true value exceeds a preset positioning accuracy range, the communication interval time is adjusted.
6. The method according to claim 5, characterized in that In the process of moving from the positioning starting point to the target positioning direction, detecting whether the end effector sends positioning success identification information includes: In the process of moving from the positioning starting point to the target positioning direction, detecting whether the end effector sends positioning success identification information, and detecting the path position of the end effector at each preset position detection interval, wherein the position detection interval is less than the communication interval; The step of taking the current contact point between the end effector and the second target workpiece as the target contact point comprises: Obtaining the information receiving time of the successful location identification information; Based on the information receiving time, the communication interval time and the position detection interval time, a target path position is selected from each of the path positions as the current contact point between the end effector and the second target workpiece, and the current contact point between the end effector and the second target workpiece is used as the target contact point, the target path position is separated from the position of the end effector at the information receiving time by a first moving distance, the target path position is separated from the position of the end effector at the last communication by a second moving distance, and the difference between the first moving distance and the second moving distance is less than a preset distance difference threshold.
7. A workpiece positioning device, characterized in that: The device comprises: A first positioning module is used to position a first target workpiece, determine a positioning reference point and a positioning starting point of an end effector from at least one preset workpiece offset direction of the first target workpiece, and the positioning reference point coincides with a projection point of the positioning starting point projected onto the surface of the first target workpiece along the preset workpiece offset direction; a direction selection module, configured to select a target positioning direction of a second target workpiece from the at least one preset workpiece offset direction according to a pointing direction from the positioning starting point to the positioning reference point, wherein the first target workpiece and the second target workpiece are in different processes; A positioning module, used for controlling the end effector to move and position from the positioning starting point along the target positioning direction; a detection module, configured to, when detecting that the end effector is in contact with the second target workpiece, use a current contact point between the end effector and the second target workpiece as a target contact point; The second positioning module is used to locate the processing position of the second target workpiece based on the positioning reference point and the target contact point.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Control method for welding starting point of V-shaped workpiece in robot welding
CN102554407A
Locating method and device based on laser sensing and electronic equipment
CN117226330A
Welding seam locating method, device and equipment and computer readable storage medium
CN117324850A
Cited By
Weld joint identification method and device, computer equipment and storage medium
CN119820054A
Robot welding locating method, electronic equipment, robot and storage medium
CN120395855A
Welding locating method, device and equipment of collaborative robot and medium
CN120480886A
