Robot mold posture determination method, device, equipment and storage medium
By collecting data with three-dimensional point cloud equipment and applying gradient descent strategy and projection strategy to determine the attitude of the robot grinding tool, it solves the problem of low attitude accuracy in the existing technology and significantly improves the accuracy and stability of welding seam grinding and polishing.
Patent Information
- Application Number
- CN202210267747.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-17
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-03-17
AI Technical Summary
The accuracy of the existing technology is reduced when determining the posture of the robot grinding tool, resulting in poor accuracy and stability of welding seam grinding and polishing.
Point cloud data is collected through the target three-dimensional point cloud equipment, the preset gradient descent strategy is used to calculate the tangent direction of the grinding and polishing path points, and the attitude of the robot grinding tool is determined based on the target projection strategy.
The accuracy of the robot's grinding tool posture is improved, thereby improving the accuracy and stability of welding seam grinding and polishing.
Smart Images

Figure CN114723812B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of weld grinding and polishing, and in particular to a robot grinding tool posture determination method, device, equipment and storage medium. Background Art
[0002] Welding technology is widely used in shipbuilding, power generation, aerospace and other industries. Defects on the surface of welded structural parts will seriously affect their subsequent processing (such as coating, electroplating and assembly, etc.) and service (mechanical properties and corrosion properties, etc.), and the grinding and polishing of welds is a key factor in determining the surface quality. The grinding and polishing of welds has the following three main characteristics: first, the grinding and polishing of welds is localized, second, the geometric characteristics of welds, and third, the thermal deformation and stress state of the weld area are difficult to predict. Therefore, the grinding and polishing of welds requires strong adaptability. The current method of weld grinding and polishing is based on visual recognition algorithm + trajectory planning + intelligent control algorithm, and uses robot automatic grinding and polishing technology to achieve efficient, precise, flexible and adaptive grinding and polishing of welds. However, for welds with complex spaces, the process of grinding and polishing welds in the above method is extremely cumbersome, and the accuracy and stability of weld grinding and polishing are poor.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a method, device, equipment and storage medium for determining the posture of a robot mold, aiming to solve the technical problem that the accuracy of determining the posture of a robot mold in the prior art is reduced, resulting in poor accuracy and stability of weld grinding and polishing.
[0005] To achieve the above object, the present invention provides a robot mold posture determination method, the robot mold posture determination method comprising the following steps:
[0006] Collect point cloud data of the processed surface through the target three-dimensional point cloud device;
[0007] Obtaining corresponding grinding and polishing path points according to the point cloud data;
[0008] Calculating the polishing path points according to a preset gradient descent strategy to obtain the tangent direction of the path points;
[0009] The posture of the robot mold is determined according to the target projection strategy and the tangent direction of the path point.
[0010] Optionally, obtaining corresponding grinding and polishing path points according to the point cloud data includes:
[0011] De-noising the point cloud data to obtain corresponding de-noised point cloud data;
[0012] The denoised point cloud data is filtered through a target region of interest to obtain target point cloud data;
[0013] The corresponding grinding and polishing path points are determined according to the target point cloud data.
[0014] Optionally, the calculating the polishing path points according to a preset gradient descent strategy to obtain the path point tangent direction includes:
[0015] The polishing path points are calculated by a preset normal estimation algorithm to obtain the current point cloud normal;
[0016] Set the corresponding radius distance according to the target weld width;
[0017] The polishing path points and radius distances are calculated by a target neighborhood calculation strategy to obtain a target point cloud neighboring point set;
[0018] The target point cloud neighboring point set is calculated according to a preset gradient descent strategy to obtain the path point tangent.
[0019] Optionally, calculating the target point cloud neighboring point set according to a preset gradient descent strategy to obtain the path point tangent direction includes:
[0020] Obtaining a corresponding normal vector set according to the target point cloud neighboring point set;
[0021] Calculating the normal vector set according to a preset optimization function to obtain a learning rate set and a position set;
[0022] Extracting a target learning rate of the learning rate set, and extracting a starting position of the position set;
[0023] The normal vector set is calculated according to a preset gradient descent strategy, the target learning rate and the starting position to obtain the path point tangent.
[0024] Optionally, determining the posture of the robot mold according to the target projection strategy and the tangent direction of the path point includes:
[0025] Determine a target plane passing through the polishing path point according to the tangent direction of the path point;
[0026] Projecting the normal vector set onto the target plane according to the target projection strategy to obtain a corresponding normal vector projection set;
[0027] Calculate the mean of each normal vector projection in the normal vector projection set to obtain the normal vector mean;
[0028] Performing vector normalization processing on the normal vector mean;
[0029] The posture of the robot mold is determined according to the processed normal vector mean and the path point tangent.
[0030] Optionally, determining the posture of the robot mold according to the processed normal vector mean and the path point tangent includes:
[0031] The processed normal vector mean is multiplied by the tangent direction of the path point to obtain a target approach vector;
[0032] Determining the waypoint posture according to the target approach vector and the waypoint tool coordinate normal;
[0033] The posture of the path point is converted through the target calibration matrix to obtain the posture of the robot mold.
[0034] Optionally, after determining the posture of the robot mold according to the target projection strategy and the tangent direction of the path point, the method further includes:
[0035] Grinding and polishing the target weld by the robot grinding tool according to the posture to obtain the current grinding degree;
[0036] When the current grinding degree is less than a preset grinding threshold, each weld in the weld set is ground and polished according to the posture of the robot grinder.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also proposes a robot mold posture determination device, the robot mold posture determination device comprising:
[0038] A collection module, used for collecting point cloud data of the processed surface through a target three-dimensional point cloud device;
[0039] An acquisition module, used for obtaining corresponding grinding and polishing path points according to the point cloud data;
[0040] A calculation module, used for calculating the polishing path points according to a preset gradient descent strategy to obtain the tangent direction of the path points;
[0041] The determination module is used to determine the posture of the robot mold according to the target projection strategy and the tangent direction of the path point.
[0042] In addition, to achieve the above-mentioned purpose, the present invention also proposes a robot mold posture determination device, which includes: a memory, a processor, and a robot mold posture determination program stored in the memory and executable on the processor, and the robot mold posture determination program is configured to implement the robot mold posture determination method as described above.
[0043] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a robot mold posture determination program is stored, and when the robot mold posture determination program is executed by a processor, the robot mold posture determination method as described above is implemented.
[0044] The method for determining the posture of a robot mold proposed in the present invention collects point cloud data of a processing surface through a target three-dimensional point cloud device; obtains corresponding grinding and polishing path points according to the point cloud data; calculates the grinding and polishing path points according to a preset gradient descent strategy to obtain the tangent of the path points; and determines the posture of the robot mold according to a target projection strategy and the tangent of the path points. Since the present invention collects point cloud data of a processing surface through a target three-dimensional point cloud device, and then calculates the tangent of the path points according to a preset gradient descent strategy, and then determines the posture of the robot mold according to the target projection strategy and the path tangent, compared with the prior art of determining the posture by a line laser profile scanner, the method can effectively improve the accuracy of determining the posture of the robot mold, thereby improving the accuracy and stability of weld grinding and polishing. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a structural schematic diagram of a robot mold posture determination device in a hardware operating environment involved in an embodiment of the present invention;
[0046] Figure 2 It is a schematic flow chart of a first embodiment of a method for determining a robot mold posture according to the present invention;
[0047] Figure 3 A schematic diagram of a robot mold posture according to an embodiment of a method for determining a robot mold posture of the present invention;
[0048] Figure 4 It is a schematic flow chart of a second embodiment of the method for determining the posture of a robot mold according to the present invention;
[0049] Figure 5 A schematic diagram of a flow chart of a third embodiment of a method for determining a robot mold posture according to the present invention;
[0050] Figure 6 Schematic diagram of functional modules of the first embodiment of the robot mold posture determination device of the present invention.
[0051] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0053] Reference Figure 1 , Figure 1The figure is a schematic diagram of the structure of a robot mold posture determination device in the hardware operating environment involved in the embodiment of the present invention.
[0054] like Figure 1 As shown, the robot mold posture determination device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0055] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the robot mold posture determination device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0056] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a robot mold posture determination program.
[0057] exist Figure 1 In the robot mold posture determination device shown, the network interface 1004 is mainly used for data communication with the network integration platform workstation; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the robot mold posture determination device of the present invention can be set in the robot mold posture determination device, and the robot mold posture determination device calls the robot mold posture determination program stored in the memory 1005 through the processor 1001, and executes the robot mold posture determination method provided by the embodiment of the present invention.
[0058] Based on the above hardware structure, an embodiment of a method for determining a robot mold posture of the present invention is proposed.
[0059] Reference Figure 2 , Figure 2 Schematic diagram of the flow chart of the first embodiment of the method for determining the posture of a robot mold according to the present invention.
[0060] In a first embodiment, the robot mold posture determination method comprises the following steps:
[0061] Step S10, collecting point cloud data of the processed surface through a target three-dimensional point cloud device.
[0062] It should be noted that the executor of this embodiment is a robot mold posture determination device, and may also be other devices that can achieve the same or similar functions, such as a mold controller, etc. This embodiment does not limit this. In this embodiment, the mold controller is taken as an example for explanation.
[0063] It should be understood that point cloud data refers to the data corresponding to the three-dimensional point cloud of the processed surface, and the point cloud data is collected in real time by a target three-dimensional point cloud device. The target three-dimensional point cloud device can be a three-dimensional point cloud camera, which has the characteristics of a large visual range and a fast scanning speed. Collecting the point cloud data of the robot mold through the target three-dimensional point cloud device can effectively improve the efficiency of collecting point cloud data. The robot mold refers to the mold used for grinding and polishing welds.
[0064] Step S20, obtaining corresponding grinding and polishing path points according to the point cloud data.
[0065] It can be understood that the grinding and polishing path points refer to the endpoints of the path corresponding to the point cloud data. Specifically, the corresponding point cloud path is obtained through the point cloud data, and then the corresponding grinding and polishing path points are obtained based on the point cloud path. The distribution and trend of the point cloud data can be determined through the grinding and polishing path points. The grinding and polishing path points are located in specific areas of interest.
[0066] Step S30, calculating the polishing path points according to a preset gradient descent strategy to obtain the path point tangent.
[0067] It should be understood that the preset gradient descent strategy refers to a strategy for calculating the endpoint tangent. The preset gradient descent strategy can be a gradient descent algorithm. The path point tangent refers to the tangent of the polishing path point. The path point tangent makes the path of the polishing trajectory smoother. The path point tangent is the normalized tangent.
[0068] Step S40, determining the posture of the robot mold according to the target projection strategy and the tangent direction of the path point.
[0069] It can be understood that the target projection strategy refers to the strategy of projecting a vector. The difference from the conventional projection method is that the target projection strategy can project the vector to a plane passing through a specific point. The posture refers to the directional posture of the robot mold during grinding and polishing. The posture of the robot mold is specifically obtained by converting the path point posture.
[0070] Further, step S40 includes: determining a target plane passing through the polishing path point according to the tangent of the path point; projecting a normal vector set to the target plane according to a target projection strategy to obtain a corresponding normal vector projection set; performing mean calculation on each normal vector projection in the normal vector projection set to obtain a normal vector mean; performing vector unitization processing on the normal vector mean; and determining the posture of the robot grinder according to the processed normal vector mean and the tangent of the path point.
[0071] It should be understood that the target plane refers to the plane passing through the polishing path points. After obtaining the target plane, in order to ensure that the normal vector and the tangent of the path point are perpendicular to each other, it is necessary to project the normal vector set to the target plane through the target projection strategy. The normal vector projection set refers to the projection set of the normal vector set projected onto the target plane.
[0072] It can be understood that the normal vector mean refers to the average value of the projections of each normal vector. Due to the high sampling rate of point cloud data, when the normal vectors in the normal vector set are evenly distributed, it is necessary to calculate the normal vector mean, then normalize the normal vector mean, and then determine the posture of the robot mold based on the tangent of the processed normal vector mean path point.
[0073] Further, determining the posture of the robot mold according to the processed normal vector mean and the path point tangent includes: multiplying the processed normal vector mean and the path point tangent to obtain a target approach vector; determining the path point posture according to the target approach vector and the path point tool coordinate normal; converting the path point posture through a target calibration matrix to obtain the posture of the robot mold.
[0074] It can be understood that the target approach vector refers to the vector that coincides with the axis of the robot mold and the coordinate system. The target approach vector is obtained by determining the mean of the normal vector after vector normalization and the tangent direction of the path point. Specifically, the mean of the normal vector after vector normalization is N t , the tangent direction of the path point is T, then the target approaches the vector The normal vector mean N after the vector is normalized t It is calculated by the following formula:
[0075]
[0076] Among them, Nt is the mean of the normal vector after vector normalization, n is the number of normal vectors, n' p is a single normal vector, and N' is a set of normal vector projections.
[0077] It should be understood that the target calibration matrix refers to a matrix for converting postures. The target calibration matrix may be a hand-eye calibration matrix. Specifically, the postures of the path points are converted by the target calibration matrix to obtain the posture of the robot mold.
[0078] Furthermore, after step S40, it also includes: grinding and polishing the target weld by the robot grinder according to the posture to obtain a current grinding degree; when the current grinding degree is less than a preset grinding threshold, grinding and polishing each weld in the weld set according to the posture of the robot grinder.
[0079] It should be understood that the current grinding degree refers to the grinding degree of the weld polished by the robot grinder according to a determined posture, and the preset grinding threshold refers to the minimum grinding degree for measuring whether the grinding degree is qualified. When the current grinding degree is less than the preset grinding threshold, it indicates that the weld polished by the posture of the robot grinder is qualified. Therefore, the robot grinder can be used to grind and polish each weld in the weld set according to the posture. Each weld refers to the weld in the grinded weld set except the weld that has been polished.
[0080] Understandably, reference Figure 3 , Figure 3 The robot mold posture diagram is as follows: The robot mold posture mainly includes three parameters: the target approach vector O, the normal vector mean N after vector unitization t and the path point tangent T, and the above parameters are in the spatial coordinate system, the path point tangent T is the horizontal axis, the target approach vector O is the vertical axis, and the normal vector mean N after vector unitization t Is the vertical axis.
[0081] In this embodiment, point cloud data of the surface to be processed is collected by a target three-dimensional point cloud device; corresponding grinding and polishing path points are obtained according to the point cloud data; the grinding and polishing path points are calculated according to a preset gradient descent strategy to obtain the tangent of the path points; the posture of the robot mold is determined according to the target projection strategy and the tangent of the path points; since this embodiment collects point cloud data of the surface to be processed by a target three-dimensional point cloud device, and then calculates the tangent of the path points according to the preset gradient descent strategy, and then determines the posture of the robot mold by the target projection strategy and the path tangent, compared with the prior art line laser profile scanner to determine the posture, it can effectively improve the accuracy of determining the posture of the robot mold, thereby improving the accuracy and stability of weld grinding and polishing.
[0082] In one embodiment, if Figure 4Based on the first embodiment, a second embodiment of the method for determining the posture of a robot mold of the present invention is proposed. Step S20 includes:
[0083] Step S201, denoising the point cloud data to obtain corresponding denoised point cloud data.
[0084] It should be understood that denoised point cloud data refers to point cloud data after noise in the point cloud data is removed. After the point cloud data is obtained, it is necessary to denoise the point cloud data so as to reduce interference in determining the polishing path points.
[0085] Step S202: filtering the denoised point cloud data by target regions of interest to obtain target point cloud data.
[0086] It can be understood that the target area of interest refers to a point cloud data area determined according to actual needs. The target area of interest can be an area where point cloud data is relatively concentrated, or it can be other areas. The target point cloud data refers to the point cloud data after being filtered through the target area of interest.
[0087] Step S203, determining corresponding grinding and polishing path points according to the target point cloud data.
[0088] It should be understood that after obtaining the target point cloud data, the target point cloud data are connected in sequence according to the point cloud data position coordinates. After the connection is completed, the corresponding point cloud path is obtained, and then the corresponding endpoint is obtained according to the point cloud path, and the endpoint is used as the polishing path point.
[0089] In this embodiment, the point cloud data is denoised to obtain corresponding denoised point cloud data; the denoised point cloud data is filtered according to the target area of interest to obtain target point cloud data; and the corresponding grinding and polishing path points are determined according to the target point cloud data; since this embodiment denoises the point cloud data, and then filters the denoised point cloud data according to the target area of interest, and then determines the corresponding grinding and polishing path points according to the filtered target point cloud data, the accuracy of determining the grinding and polishing path points can be effectively improved.
[0090] In one embodiment, if Figure 5 Based on the first embodiment, a third embodiment of the method for determining the posture of a robot mold of the present invention is proposed. Step S30 includes:
[0091] Step S301, calculating the polishing path points by a preset normal estimation algorithm to obtain the current point cloud normal.
[0092] It can be understood that the preset normal estimation algorithm refers to an algorithm for estimating the normal of a specific point. The preset normal estimation algorithm can be a point cloud normal estimation algorithm. The current point cloud normal refers to the normal of the polishing path point, which is obtained by calculating the polishing path point using the preset normal estimation algorithm.
[0093] Step S302, setting the corresponding radius distance according to the target weld width.
[0094] It should be understood that the target welding width refers to the width corresponding to the target weld, and the radius distance refers to the distance set based on the target welding width. Depending on the target weld width, the final set radius distance is also different. For example, when the target welding width is r1, the set radius distance is d, and when the target welding width is r1, the set radius distance is D.
[0095] Step S303, calculating the polishing path points and the radius distances by using a target neighborhood calculation strategy to obtain a target point cloud neighbor point set.
[0096] It can be understood that the target neighborhood calculation strategy refers to the strategy for calculating the nearest neighbor of a specific point. The target point cloud neighbor point set refers to the set of neighbor points closest to the polishing path point. After obtaining the polishing path point and the radius distance, the target point cloud neighbor point set is calculated by the following formula, specifically:
[0097]
[0098] Among them, p is the neighboring point set of the target point cloud, d is the radius distance, It is the distance between the polishing path point and the neighboring point of the target point cloud.
[0099] It should be noted that the coordinates of the grinding and polishing path points are P 1 (x 1 ,y 1 ,z 1 ), the neighboring point of the target point cloud P(x,y,z), then
[0100] Step S304, calculating the neighboring point set of the target point cloud according to a preset gradient descent strategy to obtain the tangent direction of the path point.
[0101] It should be understood that after obtaining the target point cloud neighboring point set, the target point cloud neighboring point set is calculated through a preset gradient descent strategy to obtain the path point tangent, and the path of the polishing trajectory is made smoother through the path point tangent.
[0102] Further, step S304 includes: obtaining a corresponding normal vector set according to the target point cloud neighboring point set; calculating the normal vector set according to a preset optimization function to obtain a learning rate set and a position set; extracting the target learning rate of the learning rate set, and extracting the starting position of the position set; calculating the normal vector set according to a preset gradient descent strategy, the target learning rate and the starting position to obtain the path point tangent.
[0103] It can be understood that the normal vector set refers to the set of normal vectors corresponding to the target point cloud neighboring point set, the preset optimization function refers to the function of the optimization parameters, the target learning rate refers to the most appropriate learning rate in the learning rate set, and the normal vector set is calculated according to the target learning rate and the starting position through the preset gradient descent strategy, and then the calculated path point tangent is normalized.
[0104] In this embodiment, the grinding and polishing path points are calculated by a preset normal estimation algorithm to obtain the current point cloud normal; the corresponding radius distance is set according to the target weld width; the grinding and polishing path points and the radius distance are calculated by a target neighborhood calculation strategy to obtain a target point cloud neighbor point set; the target point cloud neighbor point set is calculated according to a preset gradient descent strategy to obtain the path point tangent; since this embodiment calculates the current point cloud normal by a preset normal estimation algorithm, and then calculates the set radius distance and grinding and polishing path points according to the target neighborhood calculation strategy, and then calculates the target point cloud neighbor point set according to the preset gradient descent strategy, it can effectively improve the accuracy of the path point tangent, making the path of the grinding and polishing trajectory smoother.
[0105] In addition, an embodiment of the present invention further provides a storage medium, on which a robot mold posture determination program is stored. When the robot mold posture determination program is executed by a processor, the steps of the robot mold posture determination method described above are implemented.
[0106] Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.
[0107] In addition, refer to Figure 6 The embodiment of the present invention further provides a robot mold posture determination device, the robot mold posture determination device comprising:
[0108] The acquisition module 10 is used to acquire point cloud data of the processed surface through a target three-dimensional point cloud device.
[0109] The acquisition module 20 is used to obtain corresponding grinding and polishing path points according to the point cloud data.
[0110] The calculation module 30 is used to calculate the polishing path points according to a preset gradient descent strategy to obtain the tangent direction of the path points.
[0111] The determination module 40 is used to determine the posture of the robot mold according to the target projection strategy and the tangent direction of the path point.
[0112] In this embodiment, point cloud data of the surface to be processed is collected by a target three-dimensional point cloud device; corresponding grinding and polishing path points are obtained according to the point cloud data; the grinding and polishing path points are calculated according to a preset gradient descent strategy to obtain the tangent of the path points; the posture of the robot mold is determined according to the target projection strategy and the tangent of the path points; since this embodiment collects point cloud data of the surface to be processed by a target three-dimensional point cloud device, and then calculates the tangent of the path points according to the preset gradient descent strategy, and then determines the posture of the robot mold by the target projection strategy and the path tangent, compared with the prior art line laser profile scanner to determine the posture, it can effectively improve the accuracy of determining the posture of the robot mold, thereby improving the accuracy and stability of weld grinding and polishing.
[0113] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.
[0114] In addition, for technical details not fully described in this embodiment, reference may be made to the robot mold posture determination method provided in any embodiment of the present invention, and will not be repeated here.
[0115] In one embodiment, the acquisition module 20 is also used to denoise the point cloud data to obtain corresponding denoised point cloud data; filter the denoised point cloud data through a target area of interest to obtain target point cloud data; and determine corresponding polishing path points based on the target point cloud data.
[0116] In one embodiment, the calculation module 30 is also used to calculate the grinding and polishing path points through a preset normal estimation algorithm to obtain the current point cloud normal; set the corresponding radius distance according to the target weld width; calculate the grinding and polishing path points and the radius distance through a target neighborhood calculation strategy to obtain a target point cloud neighbor point set; calculate the target point cloud neighbor point set according to a preset gradient descent strategy to obtain the path point tangent.
[0117] In one embodiment, the calculation module 30 is also used to obtain a corresponding normal vector set based on the target point cloud neighboring point set; calculate the normal vector set according to a preset optimization function to obtain a learning rate set and a position set; extract the target learning rate of the learning rate set, and extract the starting position of the position set; calculate the normal vector set according to a preset gradient descent strategy, the target learning rate and the starting position to obtain the path point tangent.
[0118] In one embodiment, the determination module 40 is further used to determine a target plane passing through the polishing path point according to the tangent of the path point; project a normal vector set to the target plane according to a target projection strategy to obtain a corresponding normal vector projection set; calculate the mean of each normal vector projection in the normal vector projection set to obtain a normal vector mean; perform vector unitization processing on the normal vector mean; and determine the posture of the robot grinder according to the processed normal vector mean and the tangent of the path point.
[0119] In one embodiment, the determination module 40 is further used to multiply the processed normal vector mean with the tangent of the path point to obtain a target approach vector; determine the path point posture according to the target approach vector and the tool coordinate normal of the path point; and convert the path point posture through a target calibration matrix to obtain the posture of the robot mold.
[0120] In one embodiment, the determination module 40 is also used to grind and polish the target weld through the robot grinder according to the posture to obtain a current grinding degree; when the current grinding degree is less than a preset grinding threshold, each weld in the weld set is ground and polished according to the posture of the robot grinder.
[0121] Other embodiments or implementation methods of the robot mold posture determination device of the present invention can refer to the above-mentioned method embodiments, which are not repeated here.
[0122] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0123] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0124] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, an integrated platform workstation, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0125] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for determining the posture of a robot mold, characterized in that: The robot mold posture determination method comprises the following steps: Collect point cloud data of the processed surface through the target three-dimensional point cloud device; Obtaining corresponding grinding and polishing path points according to the point cloud data; Calculating the polishing path points according to a preset gradient descent strategy to obtain the tangent direction of the path points; Determining the posture of the robot mold according to the target projection strategy and the tangent direction of the path point; The step of calculating the polishing path points according to a preset gradient descent strategy to obtain the path point tangent direction includes: The polishing path points are calculated by a preset normal estimation algorithm to obtain the current point cloud normal; Set the corresponding radius distance according to the target weld width; The polishing path points and radius distances are calculated by a target neighborhood calculation strategy to obtain a target point cloud neighboring point set; Calculate the neighboring point set of the target point cloud according to a preset gradient descent strategy to obtain the tangent direction of the path point; The step of determining the posture of the robot mold according to the target projection strategy and the tangent direction of the path point includes: Determine a target plane passing through the polishing path point according to the tangent direction of the path point; Projecting the normal vector set onto the target plane according to the target projection strategy to obtain a corresponding normal vector projection set; Calculate the mean of each normal vector projection in the normal vector projection set to obtain the normal vector mean; Performing vector normalization processing on the normal vector mean; The posture of the robot mold is determined according to the processed normal vector mean and the path point tangent.
2. The robot mold posture determination method according to claim 1, characterized in that: The step of obtaining corresponding grinding and polishing path points according to the point cloud data includes: De-noising the point cloud data to obtain corresponding de-noised point cloud data; The denoised point cloud data is filtered through a target region of interest to obtain target point cloud data; The corresponding grinding and polishing path points are determined according to the target point cloud data.
3. The robot mold posture determination method according to claim 2, characterized in that: The step of calculating the target point cloud neighboring point set according to a preset gradient descent strategy to obtain the path point tangent direction includes: Obtaining a corresponding normal vector set according to the target point cloud neighboring point set; Calculating the normal vector set according to a preset optimization function to obtain a learning rate set and a position set; Extracting a target learning rate of the learning rate set, and extracting a starting position of the position set; The normal vector set is calculated according to a preset gradient descent strategy, the target learning rate and the starting position to obtain the path point tangent.
4. The robot mold posture determination method according to claim 3, characterized in that: The step of determining the posture of the robot mold according to the processed normal vector mean and the path point tangent direction includes: The processed normal vector mean is multiplied by the tangent direction of the path point to obtain a target approach vector; Determining the waypoint posture according to the target approach vector and the waypoint tool coordinate normal; The posture of the path point is converted through the target calibration matrix to obtain the posture of the robot mold.
5. The robot mold posture determination method according to claim 1, characterized in that: After determining the posture of the robot mold according to the target projection strategy and the tangent direction of the path point, the method further includes: Grinding and polishing the target weld by the robot grinding tool according to the posture to obtain the current grinding degree; When the current grinding degree is less than a preset grinding threshold, each weld in the weld set is ground and polished according to the posture of the robot grinder.
6. A robot mold posture determination device, capable of implementing the robot mold posture determination method according to any one of claims 1 to 5, characterized in that: The robot mold posture determination device comprises: A collection module, used for collecting point cloud data of the processed surface through a target three-dimensional point cloud device; An acquisition module, used for obtaining corresponding grinding and polishing path points according to the point cloud data; A calculation module, used for calculating the grinding and polishing path points according to a preset gradient descent strategy to obtain the tangent direction of the path points; The determination module is used to determine the posture of the robot mold according to the target projection strategy and the tangent direction of the path point.
7. A robot mold posture determination device, characterized in that: The robot mold posture determination device comprises: a memory, a processor, and a robot mold posture determination program stored in the memory and executable on the processor, wherein the robot mold posture determination program is configured to implement the robot mold posture determination method according to any one of claims 1 to 5.
8. A storage medium, characterized in that: The storage medium stores a robot mold posture determination program, and when the robot mold posture determination program is executed by the processor, the robot mold posture determination method according to any one of claims 1 to 5 is implemented.
