Laser positioning control method and device
By receiving laser scanning control instructions, determining the scanning position and compensation method, and adjusting the end position of the robot tool, it solves the problems of high cost and poor applicability of the existing laser positioning control methods, and achieves high efficiency and low applicability to a variety of working conditions. Cost-effective laser positioning control.
Patent Information
- Application Number
- CN202211236359.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-10
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-10-10
AI Technical Summary
The existing laser positioning control method has high development costs and low applicability of personalized algorithms when there are many types of products and poor blanking and tooling positioning, and cannot effectively meet the needs of industrial automation.
Provide a laser positioning control method and device, which determines the scanning position and compensation method by receiving laser scanning control instructions, controls the robot movement to scan, obtains the scanning results and the actual working position, and adjusts the operating position according to the compensation variable parameters to improve applicability and reduce costs.
It achieves high applicability to various working conditions, reduces investment costs, avoids personalized algorithm customization, and improves operating accuracy and efficiency.
Smart Images

Figure CN115629602B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot technology, and in particular to a laser positioning control method and device. Background Art
[0002] With the improvement of industrial automation level, manual teaching operation of robots can no longer meet the actual production needs. Especially when there are many types of products, poor material cutting and tooling positioning, it is necessary to use visual sensing or contact sensing and other technologies to cross-integrate with robots in order to better serve the manufacturing industry.
[0003] However, in actual use, when performing laser positioning control, laser manufacturers generally customize personalized algorithms based on the product characteristics of different users. This not only requires a large amount of development work, a long cycle, and high costs; but also after users switch to new products, the original algorithm may become unusable and has low applicability. Summary of the invention
[0004] The object of the present invention is to provide a laser positioning control method and device with low investment cost and strong applicability.
[0005] To achieve the above object, the present invention provides a laser positioning control method, which comprises:
[0006] Receive laser scanning control instructions;
[0007] Determine the scanning position and compensation method according to the laser scanning control instruction;
[0008] Controlling the robot to move to the scanning position to scan, and obtaining the scanning result and the actual working position of the end of the robot tool;
[0009] Determining compensation variable parameters according to the scanning results and the compensation method;
[0010] According to the compensation variable parameters, the actual working position of the robot tool end is adjusted to determine the operating position.
[0011] The present invention provides a laser positioning control device to improve applicability and reduce investment costs, which includes:
[0012] An instruction receiving module, used for receiving laser scanning control instructions;
[0013] A scanning compensation determination module, used to determine a scanning position and a compensation method according to the laser scanning control instruction;
[0014] A scanning result receiving module is used to control the robot to move to the scanning position for scanning, and obtain the scanning result and the actual working position of the robot tool end;
[0015] A compensation variable parameter determination module, used to determine the compensation variable parameters according to the scanning result and the compensation method;
[0016] The offset module is used to adjust the actual working position of the robot tool end according to the compensation variable parameters to determine the operating position.
[0017] The present invention provides a computer device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the laser positioning control method as described above is implemented when the processor executes the computer program.
[0018] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. In response to the computer program being executed by a processor, the laser positioning control method as described above is implemented.
[0019] The present invention provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the laser positioning control method as described above is implemented.
[0020] The embodiment of the present invention receives a laser scanning control instruction; determines a scanning position and a compensation method according to the laser scanning control instruction; controls the robot to move to the scanning position for scanning, obtains the scanning result and the actual working position of the robot tool end; determines the compensation variable parameters according to the scanning result and the compensation method; adjusts the actual working position of the robot tool end according to the compensation variable parameters to determine the operating position. By setting different scanning positions and compensation methods in the laser scanning control instruction and determining the compensation variable parameters, the adjustment of the actual working position of the robot tool end is guided, the operating position is determined, and the applicability to various working conditions is improved, and no personalized algorithm customization is required, and the investment cost is low. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The following drawings are intended only to illustrate and explain the present invention, and are not intended to limit the scope of the present invention.
[0022] Figure 1 Schematic diagram of the implementation process of the laser positioning control method according to an embodiment of the present invention;
[0023] Figure 2 is a schematic diagram of a specific implementation process of step 104 in a specific embodiment of the present invention;
[0024] Figure 3 is another specific implementation process schematic diagram of step 104 in a specific embodiment of the present invention;
[0025] Figure 4It is a schematic diagram of the corresponding offset assignment and the value setting of parameter 8 when parameter 6 is set to different values in a specific example of the present invention;
[0026] Figure 5 It is a schematic flow chart of the steps of welding using a laser positioning control welding system in a specific example of the present invention;
[0027] Figure 6 It is a schematic diagram illustrating the compensation method for one scan;
[0028] Figure 7 It is a schematic diagram illustrating the compensation method of the secondary scan;
[0029] Figure 8 It is a schematic diagram illustrating the compensation method of three scans;
[0030] Fig. 9 is a schematic structural diagram of a laser positioning control device according to an embodiment of the present invention;
[0031] Fig.10 It is a structural schematic diagram of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0032] The present application is further described in detail below through the accompanying drawings and embodiments. Through these descriptions, the characteristics and advantages of the present application will become clearer and more specific.
[0033] The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise noted.
[0034] In addition, the technical features involved in different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.
[0035] The embodiment of the present invention provides a laser positioning control method to improve applicability and reduce investment costs. Figure 1 As shown, including:
[0036] Step 101: receiving a laser scanning control instruction;
[0037] Step 102: Determine the scanning position and compensation method according to the laser scanning control instruction;
[0038] Step 103: Control the robot to move to a scanning position to perform scanning, and obtain the scanning result and the actual working position of the end of the robot tool;
[0039] Step 104: Determine compensation variable parameters according to the scanning results and the compensation method;
[0040] Step 105: According to the compensation variable parameters, the actual working position of the robot tool end is adjusted to determine the operating position.
[0041] In a specific embodiment, by receiving a laser scanning control instruction; determining the scanning position and compensation method according to the laser scanning control instruction; controlling the robot to move to the scanning position for scanning, obtaining the scanning result and the actual working position of the robot tool end; determining the compensation variable parameters according to the scanning result and the compensation method; adjusting the actual working position of the robot tool end according to the compensation variable parameters to determine the operating position. By setting different scanning positions and compensation methods in the laser scanning control instruction and determining the compensation variable parameters, the actual working position of the robot tool end is guided to be adjusted, the operating position is determined, and the applicability to various working conditions is improved, and no personalized algorithm customization is required, and the investment cost is low.
[0042] First, a laser scanning control instruction is received, which includes at least: a scanning position parameter and a compensation mode parameter. The scanning position parameter is the position that the laser sensor needs to reach for this scan set by the user. It is generally set according to the teaching point. The setting principle is that the position closer to the teaching point is better within the preset deviation allowable range. In the process of multiple scanning, in order to distinguish different scanning positions, each scanning position is generally numbered when setting the scanning position parameter, such as 1, 2, 3, 4... The numbering method. The compensation mode parameter is the compensation method of laser positioning set by the user, which is divided into two types, one is full compensation in one scan, and the other is compensation in multiple scans. In specific implementation, it is determined whether it is necessary to scan multiple times for compensation according to the actual working conditions and scanning position. For example, if the workpiece processing accuracy is relatively high and there is a reference reference at the scanning position, when one scan can just compensate for the offset data in all directions other than the reference reference, then one scan is sufficient without multiple scans; if the workpiece position accuracy is deviated in all three directions, one scan is not enough to compensate for the deviation in the three directions. The compensation method of multiple scans for compensation can be selected to improve the accuracy of compensation and ensure the accuracy of operation.
[0043] Secondly, according to the laser scanning control instruction, the scanning position and compensation mode are determined, that is, the scanning position and compensation mode are determined by the scanning position parameters and compensation mode parameters set by the user. In a specific embodiment, different parameter values are generally preset in advance to correspond to different information. For example, in one welding, 10 welding points are divided according to the welding process and working conditions, and each welding point corresponds to a scanning position. 10 scanning positions should be set. When scanning for the first time, the user only needs to set the scanning position parameter to 1, and the specific position information can be determined according to the value. Similarly, when the value of the compensation mode parameter is 0, it corresponds to full compensation in one scan.
[0044] After determining the scanning position and compensation method, control the robot to move to the scanning position for scanning, and obtain the scanning results and the actual working position of the robot tool end. After determining the scanning position, send a control instruction with the scanning position to control the robot carrying the laser sensor to move the sensor to this scanning position for scanning. Then obtain the scanning results and the actual working position of the robot tool end at this time, that is, the actual working position of the welding gun. At this time, the actual working position of the robot tool end is the data stored after scanning the standard parts. The actual production of welding workpiece scanning requires the scanning data of the corresponding position to be called up for the subsequent difference calculation of the compensation variable. Among them, the scanning result is the position data scanned by the laser sensor, which can be considered to be based on the robot base coordinate system, and the spatial position of the identified feature point relative to the origin of the coordinate system.
[0045] Next, according to the scanning results and compensation method, the compensation variable parameters are determined, as follows: Figure 2 As shown, including:
[0046] Step 201: Determine the offset according to the scanning result;
[0047] Step 202: If the compensation mode is full compensation in one scan, the offset value is assigned to the compensation variable parameter.
[0048] When step 201 is implemented, it is necessary to first teach the standard part to record the template data, store the position of each teaching point, and store the scanned position data as the template data. The offset can be calculated by comparing the scanning result with the saved template data. The standard part refers to the template workpiece that needs to be taught for the first time, which can be considered as a reference object. The compensation values scanned by the laser are also the difference relative to this standard part.
[0049] If full compensation is performed in one scan, the offset value is assigned to the compensation variable parameter, wherein the compensation variable parameter is a data value used to correct the deviation, and in a specific embodiment, it is a GD variable, where G refers to global variables and D refers to 3-Dimensional variables, including compensation values of components in the three directions of X, Y, and Z.
[0050] If the compensation method is multiple scans and one compensation, such as Figure 3 As shown, in Figure 2 On the basis of:
[0051] Step 301: if the compensation method is multiple scans and one compensation, determine the multiple scan setting parameters according to the laser scanning control instruction;
[0052] Step 302: Determine whether it is the last time of multiple scans and the direction component to be compensated according to the multiple scan setting parameters;
[0053] Step 303: if it is determined that it is not the last of multiple scans, determine the compensation amount according to the offset and the direction component of the compensation, and assign the compensation amount to the intermediate variable;
[0054] Step 304: If it is determined to be the last scan of multiple scans, determine the compensation amount according to the offset and the direction component of the compensation, and determine the compensation variable parameter according to the compensation amount and the intermediate variable.
[0055] In a specific embodiment, since the X, Y, and Z components of each scan compensation are different when multiple scans are performed at once for compensation, for example, the first scan can be for X-direction compensation, the second scan can be for Y-direction compensation, and the third scan can be for Z-direction compensation; in some cases, if compensation is not required in a certain direction, it can be set as follows: the first scan is for X-direction compensation, and the second scan is for Z-direction compensation; or, the first scan is for YZ-direction compensation, and the second scan is for X-direction compensation. The above is only an example, and it can be set according to actual needs. Therefore, in the case of multiple scans at once for compensation, the compensation mode parameter setting also needs to be subdivided into which scan this is, and which direction component is the scan compensation. Since the first few scans in multiple scans at once for compensation do not need to be distinguished, it is only necessary to determine the last scan. For example, if compensation is performed at once for 3 scans, the first two scans do not need to be compensated immediately, and the compensation amount can be finally determined only in the third scan. Therefore, in a specific embodiment, it is also necessary to set the direction component of the compensation and the last scan identifier. The user can set parameters through multiple scans to indicate the setting status. For example, 1 represents the X direction, 2 represents the Y direction, 3 represents the Z direction, 12 represents the XY direction, 13 represents the XZ direction, and 23 represents the YZ direction. The parameter value can be set to represent whether it is the last scan. For example, in the case of multiple scans of XYZ full compensation, whether the compensation is set for multiple scans is completed. 0 represents normal (not used), 111 represents full setting completion, and other values 1, 10, 11, 100, 101, 110 represent that all settings are not complete, and the system will report an abnormal pause.
[0056] When step 303 is specifically implemented, the value of the direction component of the compensation in the calculated offset is taken out, assigned to the intermediate variable, and the intermediate variable is stored. For example, if the direction component of the compensation is the X direction, it is only necessary to store the X direction value of the calculated offset in the intermediate variable. Accordingly, the intermediate variable also contains the values of the three direction components of X, Y, and Z.
[0057] If it is the last of multiple scans, after determining the compensation amount, it is also necessary to obtain the intermediate variable, and determine the compensation variable parameters by combining the compensation amount and the intermediate variable. At this time, the compensation variable parameters include the compensation values of the three directional components of X, Y, and Z. In particular, if no compensation is required in one directional component, the value is 0.
[0058] After determining the compensation variable parameters, the actual working position of the robot tool end is adjusted according to the compensation variable parameters to determine the operating position. That is, the position correction of the actual working position of the robot tool end is completed to ensure that the operating position is the target expected position. In specific implementation, it is necessary to confirm that the compensation variable parameters do not exceed the threshold, and then adjust the actual working position of the robot tool end according to the compensation variable parameters. If the compensation variable parameters exceed the threshold, an error prompt is issued, the robot is not controlled and adjusted, and it stops working. For safety reasons, a threshold is set to avoid serious errors in the laser value due to environmental or workpiece interference, resulting in excessive compensation values, and collisions or injuries caused by the robot's erroneous compensation movement.
[0059] In order to facilitate understanding of the laser positioning control method provided by an embodiment of the present invention, a specific example is provided for explanation. The specific example provides a laser positioning control welding system that applies the above-mentioned laser positioning control method. The system is arranged on an industrial computer, and there is communication interaction between the industrial computer and the robot.
[0060] There are 8 predefined parameters in this system, namely:
[0061] Parameter 1 is the product number, a value of 1 represents product 1, a value of 2 represents product 2, and so on;
[0062] Parameter 2 is the standard part / work part switch, a value of 0 represents a standard part, and a value of 1 represents a work part;
[0063] Parameter 3 is the laser sensor control, with a value of 0 representing normal state, a value of 1 representing laser on, a value of 2 representing laser off, a value of 3 representing the start of line laser scanning, and a value of 4 representing the end of line laser scanning;
[0064] Parameter 4 is used to select the scanning position. Each scanning position can be scanned once or multiple times to obtain the scanning position. It is used in conjunction with parameter 6.
[0065] Parameter 5 is the GD variable for selecting compensation. The GD variable contains three values, which store the offsets in the X, Y, and Z directions respectively.
[0066] Parameter 6 is the scanning compensation mode. The value of 0 represents the default mode (full compensation in one scan). The compensation for multiple scans needs to be set as follows: the value of 1 represents the X direction, the value of 2 represents the Y direction, the value of 3 represents the Z direction, the value of 12 represents the XY direction, the value of 13 represents the XZ direction, and the value of 23 represents the YZ direction.
[0067] Parameter 7 is the switch of different joint form recognition algorithms. The value of 0 represents corner joint, the value of 1 represents lap joint, the value of 2 represents butt joint, etc.;
[0068] Parameter 8 is whether the compensation setting of multiple scans is completed. For example, in the case of multiple or one scan of XYZ full compensation, the value of 0 represents normal (not used), the value of 111 represents full setting, and other values 1, 10, 11, 100, 101, 110 represent incomplete setting, and the system will report an abnormal suspension. Among them, the setting rules of the parameter value representation are: the hundreds digit value in parameter 8 represents the X direction, the tens digit value represents the Y direction, and the ones digit value represents the Z direction, and in each direction, 1 represents the setting is completed, and 0 represents the setting is not completed. For example, 100 means that the X direction is set, and the Y and Z directions are not set. Specifically, Figure 4 When parameter 6 is set to different values, the corresponding offset assignment and parameter 8 value setting are shown.
[0069] When using this system for welding, you first need to set the value of parameter 2 to 0, that is, the teaching standard parts record the template data, the actuator stores the position and posture of each teaching point, and the industrial computer stores the scanned position data in the database.
[0070] Figure 5 A detailed flow chart of the steps for subsequent welding using the system, including:
[0071] To avoid errors, all parameters need to be reset (set to 0) before starting work;
[0072] Set product number (assign parameter 1);
[0073] Turn on the laser (set parameter 3 to 1);
[0074] Set the scanning position (assign a value to parameter 4), starting from 1 and going backwards. The principle for setting the scanning position is: within the allowable deviation range, the closer to the teaching point position, the better;
[0075] Set the GD variable for compensation, number parameter 5, and sort them according to the numbers 1, 2, 3, etc., and map them one by one with parameter 4;
[0076] According to the actual working conditions and scanning position, it is determined whether multiple scans are needed to set the compensation method, that is, to assign a suitable value to parameter 6;
[0077] The robot moves to the scanning position corresponding to parameter 4;
[0078] Select a suitable joint recognition algorithm (assign a value to parameter 7);
[0079] Laser scanning starts (the value of parameter 3 is set to 3);
[0080] Wait for a while. If the scan is successful (location information is identified), the value of parameter 3 = 4 is returned. If the scan fails, the system reports a scan exception and stops.
[0081] If the compensation mode is full compensation in one scan (i.e. parameter 6 = 0), the calculated compensation value will be assigned to parameter 5, otherwise the compensation value will be stored in the intermediate variable, and it will be determined whether the compensation setting for multiple scans is completed (see the value of parameter 8). If parameter 8 = the set value, the compensation value will be assigned to parameter 5; if parameter 8 = 0, the scanning position will continue to be searched, otherwise the system will report an abnormality and stop;
[0082] Turn off the laser (set parameter 3 to 2);
[0083] Determine whether parameter 5 exceeds the limit. If so, the system will report an abnormality and stop. Otherwise, the tool end point of the robot's actual work will be offset to the teaching point.
[0084] Repeat the steps from turning the laser on to turning the laser off to complete operations at different positions on the workpiece (such as welding, cutting, etc.);
[0085] Return to standby position.
[0086] In specific use, the scanning compensation method can be divided into one-time scanning, two-time scanning and three-time scanning according to the number of scanning times. Figure 6 This is a diagram illustrating the compensation method for a single scan. Figure 7 This is a diagram illustrating the compensation methods for the secondary scan. There are 12 compensation schemes. Figure 8 This is a diagram illustrating the compensation method for three scans. There are 6 compensation schemes.
[0087] From the above description, it can be seen that the system includes functions such as laser sensor control, joint recognition algorithm switching, product type switching, weld bead selection and compensation method selection, which makes it not only suitable for various complex working conditions, but also easy for operators to use and convenient for on-site operation and maintenance.
[0088] Based on the same inventive concept, the embodiment of the present invention further provides a laser positioning control device, which solves the problem in a similar manner, and the repetitive parts are not repeated here. The specific structure is as follows: Fig. 9 As shown, including:
[0089] The instruction receiving module 901 is used to receive the laser scanning control instruction;
[0090] A scanning compensation determination module 902 is used to determine a scanning position and a compensation method according to a laser scanning control instruction;
[0091] The scanning result receiving module 903 is used to control the robot to move to the scanning position for scanning, and obtain the scanning result and the actual working position of the robot tool end;
[0092] A compensation variable parameter determination module 904 is used to determine the compensation variable parameters according to the scanning results and the compensation method;
[0093] The offset module 905 is used to adjust the actual working position of the robot tool end according to the compensation variable parameters to determine the operating position.
[0094] The laser scanning control instructions include: scanning position parameters and compensation mode parameters.
[0095] In a specific embodiment, the scanning compensation determination module 902 is specifically used to:
[0096] According to the scanning results, the offset is determined;
[0097] If the compensation mode is full compensation in one scan, the offset value is assigned to the compensation variable parameter.
[0098] In specific implementation, the scanning compensation determination module 902 is further used for:
[0099] If the compensation method is multiple scans for one compensation, the multiple scan setting parameters are determined according to the laser scanning control instructions;
[0100] According to the multiple scanning setting parameters, determine whether it is the last time of the multiple scanning and the direction component of the compensation;
[0101] If it is determined that it is not the last of multiple scans, the compensation amount is determined according to the offset and the direction component of the compensation, and the compensation amount is assigned to the intermediate variable;
[0102] If it is determined to be the last scan of multiple scans, the compensation amount is determined according to the offset and the direction component of the compensation, and the compensation variable parameters are determined according to the compensation amount and the intermediate variables.
[0103] The compensation variable parameters include the compensation values of the three direction components: X, Y, and Z.
[0104] In a specific embodiment, the offset module 905 is specifically used to:
[0105] If the compensation variable parameter does not exceed the threshold value, the actual working position of the robot tool end is adjusted according to the compensation variable parameter.
[0106] An embodiment of the present invention further provides a computer device, Fig.10 Schematic diagram of a computer device in an embodiment of the present invention. The computer device can implement all steps in the laser positioning control method in the above embodiment. The computer device specifically includes the following contents:
[0107] Processor (processor) 1001, memory (memory) 1002, communication interface (CommunicationsInterface) 1003 and communication bus 1004;
[0108] The processor 1001, the memory 1002, and the communication interface 1003 communicate with each other through the communication bus 1004; the communication interface 1003 is used to realize information transmission between related devices;
[0109] The processor 1001 is used to call the computer program in the memory 1002, and the laser positioning control method in the above embodiment is implemented when the processor executes the computer program.
[0110] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned laser positioning control method is implemented.
[0111] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the above-mentioned laser positioning control method is implemented.
[0112] The laser positioning control method and device provided in this specific embodiment have the following advantages:
[0113] By receiving laser scanning control instructions; determining the scanning position and compensation method according to the laser scanning control instructions; controlling the robot to move to the scanning position for scanning, obtaining the scanning results and the actual working position of the robot tool end; determining the compensation variable parameters according to the scanning results and the compensation method; adjusting the actual working position of the robot tool end according to the compensation variable parameters to determine the operating position. By setting different scanning positions and compensation methods in the laser scanning control instructions and determining the compensation variable parameters, the actual working position of the robot tool end is guided to be adjusted, the operating position is determined, and the applicability to various working conditions is improved. No personalized algorithm customization is required, and the investment cost is low.
[0114] Although the present invention provides method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or client product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, in a parallel processor or multi-threaded processing environment).
[0115] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, devices (systems) or computer program products. Therefore, the embodiments of this specification may take the form of complete hardware embodiments, complete software embodiments or embodiments combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0116] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0117] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0119] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. In this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0120] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other. The present invention is not limited to any single aspect, nor to any single embodiment, nor to any combination and / or replacement of these aspects and / or embodiments. Moreover, each aspect and / or embodiment of the present invention may be used alone or in combination with one or more other aspects and / or embodiments thereof.
[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
Claims
1. A laser positioning control method, characterized in that: include: Receive laser scanning control instructions; Determine the scanning position and compensation method according to the laser scanning control instruction; Controlling the robot to move to the scanning position to scan, and obtaining the scanning result and the actual working position of the end of the robot tool; Determining compensation variable parameters according to the scanning results and the compensation method; According to the compensation variable parameters, the actual working position of the robot tool end is adjusted to determine the operating position; Determining compensation variable parameters according to the scanning result and the compensation method includes: Determine an offset according to the scanning result; If the compensation mode is full compensation in one scan, the value of the offset is assigned to the compensation variable parameter.
2. The laser positioning control method according to claim 1, characterized in that: The laser scanning control instruction includes: scanning position parameters and compensation mode parameters.
3. The laser positioning control method according to claim 2, characterized in that: Determining compensation variable parameters according to the scanning results and the compensation method also includes: If the compensation method is multiple scans for one compensation, multiple scan setting parameters are determined according to the laser scanning control instruction; According to the multiple scan setting parameters, determining whether it is the last scan of the multiple scans and the direction component of the compensation; If it is determined that it is not the last of the multiple scans, determining a compensation amount according to the offset and the direction component of the compensation, and assigning the compensation amount to an intermediate variable; If it is determined to be the last scan of multiple scans, the compensation amount is determined according to the offset and the direction component of the compensation, and the compensation variable parameter is determined according to the compensation amount and the intermediate variable.
4. The laser positioning control method according to claim 1, characterized in that: The compensation variable parameters include compensation values of components in three directions: X, Y, and Z.
5. The laser positioning control method according to claim 1, characterized in that: According to the compensation variable parameters, the actual working position of the robot tool end is adjusted, including: If the compensation variable parameter does not exceed the threshold value, the actual working position of the robot tool end is adjusted according to the compensation variable parameter.
6. A laser positioning control device, characterized in that: include: An instruction receiving module, used for receiving laser scanning control instructions; A scanning compensation determination module, used to determine a scanning position and a compensation method according to the laser scanning control instruction; A scanning result receiving module is used to control the robot to move to the scanning position for scanning, and obtain the scanning result and the actual working position of the robot tool end; A compensation variable parameter determination module, used to determine the compensation variable parameters according to the scanning result and the compensation method; An offset module, used to adjust the actual working position of the robot tool end according to the compensation variable parameter to determine the operating position; The compensation variable parameter determination module is used to determine the compensation variable parameter according to the scanning result and the compensation method. Specifically, the compensation variable parameter determination module is used to: Determine an offset according to the scanning result; If the compensation mode is full compensation in one scan, the value of the offset is assigned to the compensation variable parameter.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the laser positioning control method according to any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and in response to the computer program being executed by the processor, the laser positioning control method according to any one of claims 1 to 5 is implemented.
9. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the laser positioning control method according to any one of claims 1 to 5 is implemented.
