A free-form surface workpiece positioning method and system based on Gaussian fitting

By applying Gaussian fitting algorithm and global optimization algorithm on free surface workpieces, the problems of poor accuracy and low efficiency in traditional positioning methods are solved, and high-precision and high-efficiency workpiece positioning is achieved, which reduces cost and manual intervention. It is suitable for Various workpiece shapes.

CN118673633BActive Publication Date: 2024-11-01EAST CHINA JIAOTONG UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411169963.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-11-01
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

The traditional free surface workpiece positioning method has problems such as poor accuracy, low efficiency and high cost, especially in the manufacturing process, it is necessary to design a large number of special fixtures and rely on manual intervention, resulting in low positioning accuracy and low production efficiency.

Method used

Using the free surface workpiece positioning method based on Gaussian fitting, the local coordinate system is constructed at the positioning point, the Gaussian fitting algorithm is used for geometric modeling, and combining displacement sensor measurement and global optimization algorithm to construct the positioning deviation and the actual distance. Mapping relationships, optimize the solution of the workpiece coordinate system to improve positioning accuracy.

Benefits of technology

It significantly improves the positioning accuracy of free-surface workpieces, reduces manufacturing costs, improves production efficiency, enhances the versatility and expansion of positioning methods, reduces manual intervention, and is suitable for workpieces of different shapes and sizes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673633B_ABST
    Figure CN118673633B_ABST
Patent Text Reader

Abstract

The present application discloses a free-form surface workpiece positioning method and system based on Gaussian fitting, which belongs to the field of surface positioning technology. The method includes: selecting positioning points on the free-form surface workpiece to construct a local coordinate system; performing Gaussian fitting algorithm on the local area at the positioning point to obtain its spatial surface equation; determining the actual distance from the preset fixed measurement point to the free-form surface workpiece; determining the theoretical distance from the theoretical intersection of the spatial straight line formed at the preset fixed measurement point and the spatial surface to the preset fixed measurement point; determining the mapping relationship between the positioning deviation of the free-form surface workpiece and the actual distance to construct an objective function to be optimized; optimizing and solving based on a global optimization algorithm to obtain the optimal solution for the positioning deviation of the free-form surface workpiece. The method can significantly improve the positioning accuracy of the free-form surface workpiece to overcome the defects of poor accuracy, low efficiency and high cost of traditional free-form surface workpiece positioning methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of curved surface positioning, and in particular relates to a free-curved surface workpiece positioning method and system based on Gaussian fitting. Background Art

[0002] In the booming manufacturing industry, free-form workpieces are increasingly used in modern industry due to their excellent fluid mechanics properties, especially in the optical instrument, aerospace and shipbuilding industries. For example, in the manufacture of optical instruments, the surface accuracy formed during the lens processing is extremely high; in the aerospace field, turbine blades are key components, and their surface shape is also crucial; and in the shipbuilding field, propellers are the core components of the ship's power system and are typical free-form workpieces. The performance of these free-form workpieces often directly determines the working efficiency of the entire mechanical equipment. Compared with workpieces with regular geometric shapes, free-form workpieces lack clearly defined geometric features and cannot be accurately defined with limited parameters, so the production and manufacturing of free-form workpieces becomes more complicated.

[0003] At present, the manufacturing process of free-form surface workpieces usually adopts a combination of casting, high-precision milling, manual grinding, and offline measurement. In its manufacturing process, there are the following problems: 1. In order to achieve accurate positioning of free-form surface workpieces, it is usually necessary to design and manufacture a large number of special fixtures, which takes a lot of time and increases the manufacturing cost; 2. When using special fixtures to clamp and position free-form surface workpieces, the error of the fixture system is subject to many factors, including the machining error of the locating pin, the geometric error of the fixture and the workpiece, and the deformation of the workpiece caused by the clamping force, which will affect the spatial positioning accuracy of the workpiece; 3. The manufacturing process of free-form surface workpieces is complex and has many processes, so it is often necessary to clamp and position the workpiece twice, which will inevitably cause repeated positioning errors; 4. Manual intervention in manufacturing, such as manual grinding, not only reduces the processing efficiency, but also makes it difficult to ensure the processing accuracy requirements of the workpiece.

[0004] It can be seen from this that the traditional free-form surface workpiece positioning method still has problems of poor accuracy and low efficiency. Therefore, it is urgent to design a free-form surface workpiece positioning method with high positioning accuracy and high positioning efficiency. Summary of the invention

[0005] Based on this, the present application proposes a free-form surface workpiece positioning method and system based on Gaussian fitting, aiming to significantly improve the positioning accuracy of free-form surface workpieces, so as to overcome the defects of traditional free-form surface workpiece positioning methods such as poor accuracy, low efficiency and high cost.

[0006] A first aspect of the present application provides a free-form surface workpiece positioning method based on Gaussian fitting, the method comprising:

[0007] S1: constructing a local coordinate system of a local area at a positioning point according to a normal vector, a principal curvature radius and a principal curvature direction at the positioning point, wherein the positioning point is any point on the surface of a free-form surface workpiece;

[0008] S2: constructing a Gaussian approximate expression of the local area according to the principal curvature radius and principal curvature direction at the positioning point;

[0009] S3: In the local coordinate system, using a Gaussian fitting algorithm to perform geometric modeling on the local area corresponding to the Gaussian approximate expression to obtain a local fitting surface of the local area;

[0010] S4: constructing a spatial straight line equation of the preset fixed measurement point according to the spatial position and measurement direction vector of the preset fixed measurement point;

[0011] S5: determining the actual distance between the preset fixed measurement point and the surface of the free-form surface workpiece according to the spatial straight line equation;

[0012] S6: determining a theoretical intersection point between the spatial straight line formed by the preset fixed measurement points and the local fitting surface according to the Gaussian approximation expression and the spatial straight line equation, and determining a theoretical distance between the preset fixed measurement points and the theoretical intersection point;

[0013] S7: Based on the theoretical distance, determining a mapping relationship between the positioning deviation of the free-form surface workpiece and the actual distance, and constructing an objective function to be optimized according to the mapping relationship;

[0014] S8: Optimizing and solving the objective function to be optimized based on a global optimization algorithm, and correcting the coordinate system of the free-form surface workpiece according to the optimal solution of the positioning deviation.

[0015] Compared with the prior art, the present application provides a free-form surface workpiece positioning method based on Gaussian fitting. The method first selects multiple positioning points on the free-form surface workpiece and performs precise analysis on each positioning point. At each positioning point, the z-axis of the local coordinate system is constructed by determining the normal vector at the positioning point. Subsequently, the principal curvature radius and principal curvature direction at the point are determined based on the three-dimensional digital model, corresponding to the x-axis and y-axis of the local coordinate system, respectively. Thus, each positioning point has an independent local coordinate system, which provides a reference for the subsequent positioning deviation solution; in the local coordinate system, the local area at each positioning point is geometrically modeled using the Gaussian fitting algorithm. Gaussian fitting can accurately characterize the geometric features of the surface at the positioning point through the information of the principal curvature radius and the principal curvature direction; this modeling method avoids the problem of reduced positioning accuracy caused by factors such as fixture system errors and workpiece geometric errors in traditional methods; a displacement sensor is used to measure the distance of the free-form surface workpiece, and the measurement path of the displacement sensor is converted into a spatial straight line equation in the local coordinate system through coordinate transformation. The spatial straight line equation is combined with the spatial surface equation obtained by Gaussian fitting to construct the mapping relationship between the workpiece positioning deviation and the distance measurement. This step transforms the complex positioning problem into a nonlinear optimization problem, which makes it possible to solve it in the future. For the constructed nonlinear error model, a global optimization algorithm (such as a particle swarm algorithm combined with a gradient descent algorithm) is used to solve it. The global optimization algorithm can find the optimal solution in a large search space and avoid falling into the local optimum. By iteratively updating the speed and position of the particles, the optimal solution is gradually approached, and finally the optimal solution for the workpiece positioning deviation is obtained. In summary, through this technical solution, we have successfully solved the problem of low positioning accuracy of traditional free-form surface workpieces, and achieved the reduction of manufacturing costs, the improvement of production efficiency, the improvement of positioning accuracy, and the enhancement of versatility and extensibility. These technical effects provide strong support for the transformation and upgrading of the manufacturing industry, with significant advantages and broad application prospects.

[0016] As an optional implementation of the first aspect of the present application, the step S1 specifically includes:

[0017] Select any positioning point on the surface of the free-form workpiece;

[0018] Determine a corresponding normal vector at the positioning point, and define the normal vector as the z-axis of a local coordinate system of a local area at the positioning point;

[0019] Obtaining the principal curvature radius and principal curvature direction corresponding to the positioning point, wherein there are numerous cutting planes through the z-axis, each of the cutting planes forms an intersection line with the surface of the free-form surface workpiece, each of the intersection lines corresponds to a curvature radius, the maximum curvature radius and the minimum curvature radius in the cutting plane are defined as principal curvature radii, and the direction of the principal curvature radius is defined as the principal curvature direction;

[0020] The x-axis and y-axis of the local coordinate system are determined according to the principal curvature direction.

[0021] As an optional implementation manner of the first aspect, in the step S2, the Gaussian approximation expression of the local area is:

[0022] ,

[0023] in, , are the maximum and minimum curvature radii, respectively; x, y, and z represent the coordinates of the positioning point on the x, y, and z axes of the local coordinate system, respectively.

[0024] As an optional implementation manner of the first aspect, the step S3 specifically includes:

[0025] The Gaussian curvature of the local area at the positioning point is calculated according to the maximum curvature radius and the minimum curvature radius, wherein the calculation formula is: ,in is the Gaussian curvature;

[0026] The Gaussian approximate expression of the local area is fitted according to the Gaussian curvature to obtain a local fitting surface; wherein,

[0027] like , the local fitting surface is an elliptical parabola;

[0028] like , the local fitting surface is a hyperbolic paraboloid;

[0029] like and ,or and , the local fitting surface is a parabola;

[0030] like and , the local fitting surface is a plane.

[0031] As an optional implementation manner of the first aspect, the step S4 specifically includes:

[0032] Using a measurement point on the displacement sensor as a preset fixed measurement point, obtaining a spatial position and a measurement direction vector at the preset fixed measurement point;

[0033] According to the point-slope equation construction method, a spatial straight line equation formed by a preset fixed measurement point in a reference coordinate system is obtained, wherein the reference coordinate system is a preset coordinate system expected for a free-form surface workpiece;

[0034] The spatial straight line equation formed by the preset fixed measurement points in the reference coordinate system is converted to the spatial straight line equation in the local coordinate system. The spatial straight line equation in the local coordinate system is:

[0035] ,

[0036] in , and They are The components in the x, y, and z directions, represents the spatial position of the measurement point in the local coordinate system, , , They are The components in the x, y, and z directions, Represents the measurement direction vector corresponding to the measurement point in the local coordinate system.

[0037] As an optional implementation manner of the first aspect, the step S7 specifically includes:

[0038] The mapping relationship between the positioning deviation of the free-form surface workpiece and the actual distance is expressed by the formula:

[0039] ,

[0040] in represents the theoretical distance, Indicates the actual distance. Indicates the positioning deviation of the free-form surface workpiece. and are the position vector and attitude vector of the origin of the workpiece coordinate system relative to the reference coordinate system, , , is the deflection angle of the workpiece coordinate system relative to the x, y, and z axes of the reference coordinate system;

[0041] The objective function to be optimized is constructed according to the mapping relationship, and the objective function to be optimized is expressed as:

[0042] .

[0043] As an optional implementation manner of the first aspect, the step S8 specifically includes:

[0044] Based on the global optimization algorithm, specifically by combining the particle swarm algorithm and the gradient descent algorithm, the objective function to be optimized is defined as an adaptability function;

[0045] In the particle swarm iterative updating process, the minimum value of the adaptability function is obtained, and the minimum value is regarded as the optimal solution of the positioning deviation of the free-form surface workpiece.

[0046] A second aspect of the present application provides a free-form surface workpiece positioning system based on Gaussian fitting, the system comprising:

[0047] A local positioning module, used to construct a local coordinate system of a local area at a positioning point according to a normal vector, a principal curvature radius and a principal curvature direction at the positioning point, wherein the positioning point is any point on the surface of a free-form surface workpiece;

[0048] A surface equation construction module, used to construct a Gaussian approximate expression of the local area according to the principal curvature radius and principal curvature direction at the positioning point;

[0049] A surface modeling module, used for performing geometric modeling on the local area corresponding to the Gaussian approximate expression form using a Gaussian fitting algorithm in the local coordinate system to obtain a local fitting surface of the local area;

[0050] A straight line equation construction module, used to construct a spatial straight line equation of a preset fixed measurement point according to the spatial position and measurement direction vector of the preset fixed measurement point;

[0051] An actual distance measurement module, used to determine the actual distance between the preset fixed measurement point and the surface of the free-form surface workpiece according to the spatial straight line equation;

[0052] A theoretical distance calculation module, used to determine the theoretical intersection point of the spatial straight line formed by the preset fixed measurement point and the local fitting surface according to the Gaussian approximate expression and the spatial straight line equation, and determine the theoretical distance between the preset fixed measurement point and the theoretical intersection point;

[0053] An objective function construction module, used to determine the mapping relationship between the positioning deviation of the free-form surface workpiece and the actual distance based on the theoretical distance, and to construct an objective function to be optimized according to the mapping relationship;

[0054] The positioning deviation solving module is used to optimize and solve the objective function to be optimized based on a global optimization algorithm, and correct the coordinate system of the free-form surface workpiece according to the optimal solution of the positioning deviation.

[0055] The third aspect of the present application provides a computer device, which includes a memory, a processor, and a processing program stored in the memory and executable on the processor, and when the processing program is executed by the processor, the above-mentioned free-form surface workpiece positioning method based on Gaussian fitting is implemented.

[0056] A fourth aspect of the present application provides a storage medium, on which a processing program is stored. When the processing program is executed by a processor, the above-mentioned free-form surface workpiece positioning method based on Gaussian fitting is executed.

[0057] Additional aspects and advantages of the present application will be given in part in the following description, and in part will become apparent from the following description, or will be understood through the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 A flowchart of a free-form surface workpiece positioning method based on Gaussian fitting proposed in the first embodiment of the present application;

[0059] Figure 2 A schematic diagram of establishing a local coordinate system for a positioning point in the first embodiment of the present application;

[0060] Figure 3 This is a schematic diagram of precise positioning of a free-form surface workpiece in the first embodiment of the present application;

[0061] Figure 4 This is a flow chart of obtaining the workpiece positioning error by combining the particle swarm algorithm and the gradient descent algorithm in the first embodiment of the present application;

[0062] Figure 5 This is a schematic diagram of free-form surface workpiece positioning simulation in the second embodiment of the present application;

[0063] Figure 6 This is a schematic structural diagram of a free-form surface workpiece positioning system based on Gaussian fitting proposed in the third embodiment of the present application.

[0064] The following specific implementation methods will further illustrate the present application in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0065] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0066] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.

[0067] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.

[0068] See also Figure 1 , is a flow chart of a free-form surface workpiece positioning method based on Gaussian fitting proposed in the first embodiment of the present application, and the proposed method includes:

[0069] S1: According to the normal vector, principal curvature radius and principal curvature direction at the positioning point, a local coordinate system of the local area at the positioning point is constructed. The positioning point is any point on the surface of the free-form surface workpiece.

[0070] It should be noted that in order to solve the problem of accurate positioning of free-form surface workpieces, the present invention determines its positioning error by multi-point positioning, and analyzes multiple positioning points specified on the workpiece surface. In order to facilitate the subsequent solution and study of the workpiece positioning error, it is necessary to establish a corresponding local coordinate system at each positioning point. After the local coordinate system {Li} of the positioning point is established, it is also necessary to determine the workpiece coordinate system {W} and the desired reference coordinate system {O} of the workpiece, where the posture relationship of the local coordinate system relative to the workpiece coordinate system is , the position relationship of the workpiece coordinate system relative to the reference coordinate system is , that is, the workpiece positioning deviation, the position relationship of the reference coordinate system relative to the local coordinate system is For details, please refer to Figure 2 .

[0071] It can be understood that the workpiece coordinate system is to facilitate the precise positioning and control of the free-form surface workpiece during the machining process; by establishing a coordinate system related to the free-form surface workpiece, it is easier to measure, program and machine the free-form surface workpiece; the workpiece coordinate system usually takes a certain feature point (such as the center point or edge point) of the free-form surface workpiece as the origin and a certain direction of the free-form surface workpiece as the reference direction. The reference coordinate system expected by the workpiece is a specific point in the machine tool coordinate system, which is used to determine the position of the free-form surface workpiece on the machine tool; by placing the free-form surface workpiece on this reference coordinate, the accuracy and stability of the workpiece during the machining process can be ensured.

[0072] Specifically, the construction of the local coordinate system is mainly based on the following theoretical background:

[0073] Select any positioning point on the surface of the free-form workpiece; determine the corresponding normal vector at the positioning point, and define the normal vector as the z-axis of the local coordinate system of the local area at the positioning point; obtain the principal curvature radius and principal curvature direction corresponding to the positioning point, wherein there are countless cutting planes through the z-axis, each of the cutting planes forms an intersection line with the surface of the free-form workpiece, each of the intersection lines corresponds to a curvature radius, the maximum curvature radius and the minimum curvature radius in the cutting plane are defined as principal curvature radii, and the direction of the principal curvature radius is defined as the principal curvature direction; determine the x-axis and y-axis of the local coordinate system according to the principal curvature direction.

[0074] In this step, the traditional global positioning method may lead to a decrease in overall positioning accuracy due to the accumulation of errors. By constructing a local coordinate system at each positioning point, the surface features around the point can be accurately described. This localized processing can capture subtle changes in the surface at this point, thereby improving the accuracy of positioning. The complex free-form surface workpiece positioning problem is decomposed into multiple simple positioning problems under local coordinate systems, reducing the complexity of the overall problem. This method does not rely on the overall shape or size of the workpiece, but is based on local features for positioning. Therefore, it has strong adaptability and can be applied to free-form surface workpieces of different shapes and sizes. In addition, this method does not require the design of a large number of special fixtures, reduces manufacturing costs, and improves the flexibility of the production line. It supports rapid adjustment to adapt to free-form surface workpieces of different shapes and sizes, reduces the need for manual intervention, and improves production efficiency and consistency.

[0075] S2: Construct a Gaussian approximate expression of the local area based on the principal curvature radius and principal curvature direction at the positioning point.

[0076] It should be noted that after constructing the local coordinate system at the workpiece positioning point, it is necessary to perform mathematical modeling on the local area of ​​the positioning point. Since the mathematical model is an expression of the physical shape of the actual workpiece positioning point, the establishment of the model plays a key role in the entire positioning system. If the constructed mathematical model cannot truly reflect the structural characteristics of the positioning point, the theoretical data will have a large error with the actual data; on the contrary, if the mathematical model is very close to the actual model, the theory and practice will be well matched. Based on the three-dimensional digital model, the user can determine the Gaussian curvature of the workpiece. , that is, not only can the principal curvature direction at the positioning point be determined, but also the principal curvature radius corresponding to the maximum curvature direction and the minimum curvature direction can be obtained. The principal curvature radius can more comprehensively reflect the surface changes in the local area of ​​the positioning point, and can be used to measure the curvature changes of the workpiece in different directions at this point.

[0077] Therefore, based on the information of the principal curvature direction and principal curvature radius at the positioning point, the present invention constructs a more accurate mathematical model by performing Gaussian fitting on the local area, and defines the Gaussian approximate expression of the local area at the positioning point in the local coordinate system as:

[0078]

[0079] in and is the variable to be determined in the form of Gaussian approximation in the local area, and x, y, and z represent the coordinates of the positioning point on the x, y, and z axes of the local coordinate system, respectively. Based on the information of the principal curvature, the variable to be determined in formula (1) can be obtained: and :

[0080]

[0081] in is the maximum principal radius of curvature, is the minimum principal radius of curvature, so formula (1) can be rewritten as:

[0082]

[0083] In this step, the geometric characteristics of the local area can be determined by analyzing the principal curvature radius and principal curvature direction at the positioning point. The principal curvature radius indicates the degree of curvature of the surface at that point, while the principal curvature direction gives the main direction of the curvature. Based on this information, a suitable function form can be selected to approximate the surface of the local area. The Gaussian function is a commonly used function form. It has axial symmetry and differentiability, and can capture the curvature characteristics of the surface well. By applying the Gaussian function to the local area, a Gaussian approximate expression can be obtained. This expression contains information about the principal curvature radius and the principal curvature direction, and can effectively describe the surface shape of the local area.

[0084] S3: In the local coordinate system, a Gaussian fitting algorithm is used to mathematically model the local area corresponding to the Gaussian approximate expression to obtain the local fitting surface of the local area.

[0085] Specifically, the Gaussian curvature of the local area at the positioning point is calculated according to the maximum curvature radius and the minimum curvature radius, wherein the calculation formula is:

[0086]

[0087] in is the Gaussian curvature;

[0088] The Gaussian approximate expression of the local area is fitted according to the Gaussian curvature to obtain a local fitting surface; wherein,

[0089] like , the local fitting surface is an elliptical parabola;

[0090] like , the local fitting surface is a hyperbolic paraboloid;

[0091] like and ,or and , the local fitting surface is a parabola;

[0092] like and , the local fitting surface is a plane.

[0093] In this step, the mathematical model constructed by Gaussian fitting can more accurately reflect the actual physical shape at the positioning point, thereby reducing the positioning error caused by inaccurate model. This is crucial for free-form surface workpieces, especially those with extremely high shape accuracy requirements (such as optical lenses, turbine blades, etc.). The Gaussian fitting algorithm is not limited to a specific surface type and can be applied to various free-form surface workpieces. By adjusting the parameters of Gaussian fitting, surfaces of different shapes and sizes can be effectively modeled and positioned, thereby enhancing the versatility and flexibility of the positioning method. Therefore, using the Gaussian fitting algorithm to mathematically model the local area at the positioning point of the free-form surface workpiece and constructing a Gaussian approximate expression based on the principal curvature radius and principal curvature direction is an effective way to improve the positioning accuracy of free-form surface workpieces, enhance the robustness of the algorithm, promote automated and intelligent production, and optimize production costs.

[0094] S4: constructing a spatial straight line equation of the preset fixed measurement point according to the spatial position of the preset fixed measurement point and the measurement direction vector.

[0095] S5: According to the spatial straight line equation, determine the actual distance between the preset fixed measuring point and the surface of the free-form workpiece.

[0096] It should be noted that after the local coordinate system is established and Gaussian approximation is performed on the positioning points, the free-form surface workpiece is accurately positioned by multi-point measurement. Figure 3. In the figure, the displacement sensor is moved to the specified measuring point, and the measurement is performed along the set measuring direction, so that the distance between the measuring point and the surface of the free-form surface workpiece can be measured. By establishing a mapping relationship between the positioning deviation of the free-form surface workpiece and the actual distance, the purpose of accurate positioning of the free-form surface workpiece can be achieved. When the free-form surface workpiece deviates from the preset position, the measuring point on the displacement sensor cannot intersect with the positioning point along the measuring direction. Based on the modeling method proposed in the present invention, the local area at the positioning point can be Gaussian fitted, and the displacement sensor can be converted into a spatial straight line. Therefore, the workpiece positioning problem can be converted into the intersection problem of the spatial surface and the spatial straight line.

[0097] Specifically, the measurement point on the displacement sensor is used as a preset fixed measurement point to obtain the spatial position and measurement direction vector at the preset fixed measurement point; according to the point-slope equation construction method, the spatial straight line equation formed by the preset fixed measurement point in the reference coordinate system is obtained, and the reference coordinate system is the preset coordinate system expected for the free-form surface workpiece. In order to simplify subsequent calculations, the straight line equation of the displacement sensor in the reference coordinate system is converted to the local coordinate system at the positioning point, as shown in the following formula:

[0098]

[0099] Among them, N represents that a total of N positioning points are selected during the positioning process of the free-form surface workpiece, and the superscript character T represents the transposition transformation. Represents the measurement direction vector of the preset fixed measurement point when the displacement sensor measures the i-th positioning point based on the reference coordinate system, Represents the spatial position of the preset fixed measurement point when the displacement sensor measures the i-th positioning point based on the reference coordinate system. Similarly, Represents the measurement direction vector of the preset fixed measurement point in the local coordinate system based on the i-th positioning point, Represents the spatial position of the preset fixed measurement point in the local coordinate system based on the i-th positioning point, Represents the position and posture relationship of the reference coordinate system relative to the local coordinate system of the i-th positioning point. The specific expression is:

[0100]

[0101] In formula (7), the variable The variable to be found.

[0102] Through the above coordinate system transformation, the spatial straight line equation of the preset fixed measurement point in the local coordinate system corresponding to the i-th positioning point can be obtained as:

[0103]

[0104] in, , and They are The components in the x, y, and z directions, , , They are Components in the x, y, and z directions.

[0105] Furthermore, since the spatial position of the preset fixed measurement point is a point on the straight line, and the measurement direction vector represents the direction of the straight line, by combining these two pieces of information, an equation describing the spatial straight line can be established; this spatial straight line will have an actual intersection point on the actual surface of the free-form surface workpiece, and the actual distance from the preset fixed measurement point to the actual intersection point can be determined based on the spatial straight line equation.

[0106] S6: According to the Gaussian approximate expression and the spatial straight line equation, determine the theoretical intersection point of the spatial straight line formed by the preset fixed measurement point and the local fitting surface, and determine the theoretical distance between the preset fixed measurement point and the theoretical intersection point.

[0107] S7: Based on the theoretical distance, determine the mapping relationship between the positioning deviation of the free-form surface workpiece and the actual distance, and construct the objective function to be optimized according to the mapping relationship.

[0108] Specifically, the spatial straight line equation (8) and the Gaussian approximate expression (3) are combined to obtain the theoretical distance between the preset fixed measurement point of the displacement sensor and the surface of the free-form workpiece along the measurement direction: ;

[0109] Based on the above theory, the mapping relationship between the positioning deviation of the free-form surface workpiece and the actual distance measured by the displacement sensor can be established as follows:

[0110]

[0111] Among them, in formula (9) is the positioning deviation of the free-form surface workpiece, is the position vector of the origin of the workpiece coordinate system relative to the reference coordinate system, is the attitude vector of the origin of the workpiece coordinate system relative to the reference coordinate system, is the deflection angle of the workpiece coordinate system relative to the x-axis of the reference coordinate system, is the deflection angle of the workpiece coordinate system relative to the y-axis of the reference coordinate system, is the deflection angle of the workpiece coordinate system relative to the z-axis of the reference coordinate system;

[0112] Finally, the above problem can be transformed into a nonlinear optimization problem to optimize the positioning error of the workpiece to reduce the gap between the actual distance and the theoretical distance. Therefore, the following relationship can be established:

[0113]

[0114] in is the objective function to be optimized.

[0115] In this step, the Gaussian approximation expression and the spatial straight line equation are combined to more accurately describe the relationship between the workpiece positioning deviation and the actual measured distance, thereby improving the positioning accuracy. For free-form surface workpieces of different shapes and sizes, precise positioning can be achieved by simply adjusting the positioning point and the measurement direction vector. By establishing a mapping relationship between the positioning deviation and the actual distance of the free-form surface workpiece, the objective function to be optimized can be constructed. This objective function provides reliable input data for the subsequent global optimization algorithm, making the optimization process more accurate and efficient.

[0116] S8: Optimize the objective function to be optimized based on the global optimization algorithm, and correct the coordinate system of the free-form surface workpiece according to the optimal solution of the positioning deviation.

[0117] It should be noted that the objective function to be optimized determined in step S7 is a nonlinear error model, so the problem of global optimal solution and local optimal solution is involved in the solution process. In the process of numerical iterative optimization, the initial values ​​set by the user are different, and the area to which the final function may converge is also different. If the positioning deviation of the free-form surface workpiece is solved based on the gradient descent algorithm alone, it is likely to fall into the local optimum. To address this problem, the present invention will combine the particle swarm algorithm and the gradient descent algorithm to obtain the optimal solution for the workpiece positioning error. For the nonlinear error model constructed by the present invention, there are a total of 6 parameters to be solved in the model, so it is necessary to search in a 6-dimensional space. The following formula is the speed and position of particle j during the iterative update process:

[0118]

[0119] in represents the current position of particle j, represents the position of particle j after iterative update, represents the current velocity of particle j, represents the speed of particle j after iterative update, Indicates the position corresponding to the individual extreme value of particle j at the current iteration number, represents the global optimal position corresponding to the iteration of all particles at the current moment; according to formula (11), it can be concluded that the current speed of particle j is related to three factors. The first factor is affected by the speed of particle j at the previous moment, and the corresponding weight is affected by Coefficient control; the second factor is affected by the distance between the current position of particle j and the position corresponding to the individual extreme value, through the speed coefficient The third factor is affected by the distance between the current position of particle j and the global optimal position, through the speed coefficient control; is a random function with a value range of [0, 1], which is used to increase the randomness of the search.

[0120] The corresponding global optimal position in the particle swarm and the position corresponding to the individual extreme value are mainly discriminated and analyzed through the adaptive function. According to the positioning problem of the free-form surface workpiece, the adaptive function g is defined as follows:

[0121]

[0122] In the iterative update process of the particle swarm, find the minimum value of the adaptive function under the scope. For the specific process, refer to Figure 4 As shown, the process includes: S81: initializing the particle swarm; S82: calculating the local optimal value of each particle based on the gradient descent algorithm; S83: calculating the fitness corresponding to the local optimal value of each particle; S84: updating the individual and the global optimal position according to the fitness; S85: updating the position and speed of the particle swarm; S86: judging whether the maximum number of iterations is reached or the global optimal position meets the minimum limit, if the maximum number of iterations is reached or the global optimal position meets the minimum limit, the iterative update stops, if the maximum number of iterations is not reached or the global optimal position meets the minimum limit, then continue to perform iterative updates according to the process.

[0123] It should be noted that when optimizing and solving the objective function based on the global optimization algorithm, in addition to the particle swarm algorithm and the gradient descent algorithm, a variety of other methods can also be used in other embodiments, such as genetic algorithm, simulated annealing algorithm, ant colony algorithm, differential evolution algorithm and neural network optimization algorithm. These algorithms have their own advantages and disadvantages. When selecting, they should be comprehensively considered according to the nature of the specific problem, the characteristics of the data and the scope of application of the algorithm. For the problem of precise positioning of free-form surface workpieces, a suitable global optimization algorithm can be selected according to the actual situation to optimize and solve the objective function.

[0124] In this step, the global optimization algorithm can search the solution space more comprehensively, effectively avoid falling into the local optimal solution, and thus obtain a more accurate workpiece positioning deviation. This can not only improve the positioning accuracy, but also ensure the stability and consistency of the workpiece during the production process. The positioning method based on Gaussian fitting and global optimization algorithm does not depend on the specific shape or size of the workpiece, which makes this method widely used in the positioning of free-form surface workpieces in different industries and fields, providing strong support for the transformation and upgrading of the manufacturing industry.

[0125] It is worth noting that in other optional embodiments, the method can show significant beneficial effects in a variety of application scenarios. For example, in the manufacture of optical instruments, especially in the processing of high-precision lenses, the surface accuracy of the lenses is extremely high. Using the method of the present invention, the lenses can be accurately positioned during processing. The lens surface is measured by a displacement sensor, and the local area of ​​the lens is modeled in combination with a Gaussian fitting algorithm to establish a mapping relationship between positioning deviation and ranging. The optimal positioning deviation solution obtained based on the global optimization algorithm can correct the coordinates of the lens on the production line, thereby achieving precise control of the lens processing and significantly improving the accuracy and consistency of the lens processing. In the field of aerospace, the surface shape of key components such as turbine blades directly affects their aerodynamic performance and durability. Traditional positioning methods often require a large number of customized fixtures, which are costly and difficult to ensure accuracy. The method of the present invention can reduce the dependence on special fixtures through automated and high-precision positioning technology, while achieving precise positioning of turbine blades. During the processing or assembly process, the optimal solution for positioning deviation obtained by optimization is used to correct the blade coordinates, ensure the accuracy of blade installation, and thus improve the overall working efficiency and safety of the turbine. In shipbuilding, the propeller is a core component of the ship's power system, and its shape and position have a significant impact on the performance of the ship. Since the propeller surface has a complex free-form surface shape, traditional positioning methods are often difficult to achieve precise control. Through the method of the present invention, the local surface of the propeller can be modeled based on Gaussian fitting, and precise distance measurement can be performed through a displacement sensor. Combined with the optimal solution of the positioning deviation obtained by solving the global optimization algorithm, the coordinates of the propeller are corrected to ensure the high precision of the propeller during installation or processing, and further improve the navigation performance and stability of the ship. Therefore, whether it is the above-mentioned optical instruments, aerospace or shipbuilding fields, the method of the present invention can reduce the dependence on manual intervention through precise positioning technology, further reduce the unstable factors in production, and ensure the consistency and high quality of the workpiece.

[0126] In order to further verify the method proposed by the present invention, the present invention is further described in detail below in combination with Example 2. A series of simulation experiments were conducted on a free-form surface workpiece selected by the present invention for verification. Figure 5 shown.

[0127] The following is the specific operation process and effect:

[0128] Step 110: Establishing the local coordinate system of the free-form surface workpiece positioning point.

[0129] In the workpiece coordinate system, a total of six positioning points are selected, and their position coordinates are shown in Table 1. The direction vector of the maximum principal curvature of the positioning point in the workpiece coordinate system is shown in Table 2, and the corresponding maximum principal curvature is shown in Table 3. The direction vector of the minimum principal curvature of the positioning point in the workpiece coordinate system is shown in Table 4, and the corresponding minimum principal curvature is shown in Table 5. According to the direction of the maximum curvature and the direction of the minimum curvature, the normal vector of the positioning point can be obtained as shown in Table 6.

[0130] Table 1 Position coordinates of the positioning points in the workpiece coordinate system (unit: mm)

[0131]

[0132] Table 2 Direction vector of the maximum principal curvature of the positioning point in the workpiece coordinate system

[0133]

[0134] Table 3 The maximum principal curvature of the positioning point in the workpiece coordinate system

[0135]

[0136] Table 4 Direction vector of the minimum principal curvature of the positioning point in the workpiece coordinate system

[0137]

[0138] Table 5 The minimum principal curvature of the positioning point in the workpiece coordinate system

[0139]

[0140] Table 6 Normal vector of the positioning point in the workpiece coordinate system

[0141]

[0142] Step 120: Local geometric modeling of the positioning points based on the Gaussian fitting algorithm.

[0143] Through the above theory, Gaussian fitting is performed on the local area based on the Gaussian approximate expression of the local area at the positioning point, and the final fitting effect is shown in the reference figure.

[0144] Step 130: Construct a mapping relationship between the positioning deviation of the free-form surface workpiece and the distance measurement.

[0145] The measurement point positions in the reference coordinate system are shown in Table 7, and the unit vectors of the measurement directions in the measurement coordinate system are shown in Table 8. Under ideal conditions, for the six positioning points, the distances between the measurement point positions and the Gaussian fitting surface are all 8 mm, as shown in Table 9.

[0146] Table 7 Measurement point positions in the reference coordinate system (unit: mm)

[0147]

[0148] Table 8 Unit direction vector of measurement point in reference coordinate system

[0149]

[0150] Table 9 The distance between the measurement point and the Gaussian fitting surface under ideal conditions (unit: mm)

[0151]

[0152] Step 140: Obtain the positioning deviation of the free-form surface workpiece based on a global optimal algorithm.

[0153] In order to verify the above theory, the following experiments introduced different position and posture errors to the free-form surface workpiece. Table 10 lists the initial error of workpiece positioning, that is, the position and posture of the workpiece relative to the reference platform coordinate system. A total of six groups of experiments are listed below. When the workpiece is in different initial errors, the distance between the measurement point position and the workpiece is measured, as shown in Table 11. The measured data is substituted into the adaptive function for global optimal solution, and the position and posture relationship between the workpiece coordinate system and the reference coordinate system can be obtained by theoretical solution as shown in Table 12. The deviation between the theoretically calculated position and posture of the workpiece coordinate system relative to the reference coordinate system and the actual position and posture is compared, as shown in Table 13. It can be seen from Table 13 that the gap between the two has reached the micron level, which is sufficient to prove the effectiveness of the algorithm.

[0154] Table 10 Initial error of free-form surface workpiece positioning

[0155]

[0156] Table 11 Distance between the measuring point and the workpiece (unit: mm)

[0157]

[0158] Table 12 Theoretical solution of the position and posture relationship between the workpiece coordinate system and the reference coordinate system

[0159]

[0160] Table 13 Deviation between the theoretically calculated pose of the workpiece coordinate system relative to the reference coordinate system and the actual pose

[0161]

[0162] See also Figure 6, which is a schematic structural diagram of a free-form surface workpiece positioning system based on Gaussian fitting proposed in the third embodiment of the present application, the system comprises:

[0163] A local positioning module 10 is used to construct a local coordinate system of a local area at a positioning point according to a normal vector, a principal curvature radius and a principal curvature direction at the positioning point, wherein the positioning point is any point on the surface of a free-form surface workpiece;

[0164] A surface equation construction module 20, for constructing a Gaussian approximate expression of the local area according to the principal curvature radius and principal curvature direction at the positioning point;

[0165] A surface modeling module 30 is used to perform mathematical modeling on the local area corresponding to the Gaussian approximate expression form using a Gaussian fitting algorithm in the local coordinate system to obtain a local fitting surface of the local area;

[0166] A straight line equation construction module 40, configured to construct a spatial straight line equation of a preset fixed measurement point according to the spatial position of the preset fixed measurement point and the measurement direction vector;

[0167] An actual distance measurement module 50, used to determine the actual distance between the preset fixed measurement point and the surface of the free-form workpiece according to the spatial straight line equation;

[0168] Theoretical distance calculation module 60, used to determine the theoretical intersection point of the spatial straight line formed by the preset fixed measurement point and the local fitting surface according to the Gaussian approximation expression and the spatial straight line equation, and determine the theoretical distance between the preset fixed measurement point and the theoretical intersection point;

[0169] An objective function construction module 70 is used to determine a mapping relationship between a positioning deviation of a free-form surface workpiece and the actual distance based on the theoretical distance, and to construct an objective function to be optimized according to the mapping relationship;

[0170] The positioning deviation solving module 80 is used to optimize and solve the objective function to be optimized based on a global optimization algorithm, and correct the coordinate system of the free-form surface workpiece according to the optimal solution of the positioning deviation.

[0171] On the other hand, the present application also proposes a computer device, which includes a memory, a processor, and a processing program stored in the memory and executable on the processor. When the processing program is executed by the processor, the above-mentioned free-form surface workpiece positioning method based on Gaussian fitting is implemented.

[0172] On the other hand, the present application further proposes a storage medium, on which a processing program is stored. When the processing program is run by a processor, the free-form surface workpiece positioning method based on Gaussian fitting is executed.

[0173] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0174] 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 by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, 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 ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0175] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A free-form surface workpiece positioning method based on Gaussian fitting, It is characterized in that The method comprises: S1: constructing a local coordinate system of a local area at a positioning point according to a normal vector, a principal curvature radius and a principal curvature direction at the positioning point, wherein the positioning point is any point on the surface of a free-form surface workpiece; S2: constructing a Gaussian approximate expression of the local area according to the principal curvature radius and principal curvature direction at the positioning point; S3: in the local coordinate system, using a Gaussian fitting algorithm to perform mathematical modeling on the local area corresponding to the Gaussian approximate expression to obtain a local fitting surface of the local area; S4: constructing a spatial straight line equation of the preset fixed measurement point according to the spatial position and measurement direction vector of the preset fixed measurement point; S5: determining the actual distance between the preset fixed measurement point and the surface of the free-form surface workpiece according to the spatial straight line equation; S6: determining a theoretical intersection point between the spatial straight line formed by the preset fixed measurement points and the local fitting surface according to the Gaussian approximation expression and the spatial straight line equation, and determining a theoretical distance between the preset fixed measurement points and the theoretical intersection point; S7: Based on the theoretical distance, determining a mapping relationship between the positioning deviation of the free-form surface workpiece and the actual distance, and constructing an objective function to be optimized according to the mapping relationship; S8: Optimizing and solving the objective function to be optimized based on a global optimization algorithm, and correcting the coordinate system of the free-form surface workpiece according to the optimal solution of the positioning deviation.

2. According to the free-form surface workpiece positioning method based on Gaussian fitting according to claim 1, It is characterized in that The step S1 specifically includes: Select any positioning point on the surface of the free-form workpiece; Determine a corresponding normal vector at the positioning point, and define the normal vector as the z-axis of a local coordinate system of a local area at the positioning point; Obtaining the principal curvature radius and principal curvature direction corresponding to the positioning point, wherein there are numerous cutting planes through the z-axis, each of the cutting planes forms an intersection line with the surface of the free-form surface workpiece, each of the intersection lines corresponds to a curvature radius, the maximum curvature radius and the minimum curvature radius in the cutting plane are defined as principal curvature radii, and the direction of the principal curvature radius is defined as the principal curvature direction; The x-axis and y-axis of the local coordinate system are determined according to the principal curvature direction.

3. A free-form surface workpiece positioning method based on Gaussian fitting according to claim 2, It is characterized in that In the step S2, the Gaussian approximation expression of the local area is: , in, , are the maximum and minimum curvature radii, respectively; x, y, and z represent the coordinates of the positioning point on the x, y, and z axes of the local coordinate system, respectively.

4. A free-form surface workpiece positioning method based on Gaussian fitting according to claim 3, It is characterized in that The step of S3 specifically includes: The Gaussian curvature of the local area at the positioning point is calculated according to the maximum curvature radius and the minimum curvature radius, wherein the calculation formula is: ,in is the Gaussian curvature; The Gaussian approximate expression of the local area is fitted according to the Gaussian curvature to obtain a local fitting surface; wherein, like , the local fitting surface is an elliptical parabola; like , the local fitting surface is a hyperbolic paraboloid; like and ,or and , the local fitting surface is a parabola; like and , the local fitting surface is a plane.

5. A free-form surface workpiece positioning method based on Gaussian fitting according to claim 4, It is characterized in that The step of S4 specifically includes: Using a measurement point on the displacement sensor as a preset fixed measurement point, obtaining a spatial position and a measurement direction vector at the preset fixed measurement point; According to the point-slope equation construction method, a spatial straight line equation formed by a preset fixed measurement point in a reference coordinate system is obtained, wherein the reference coordinate system is a preset coordinate system expected for a free-form surface workpiece; The spatial straight line equation formed by the preset fixed measurement points in the reference coordinate system is converted to the spatial straight line equation in the local coordinate system. The spatial straight line equation in the local coordinate system is: , in, , and They are The components in the x, y, and z directions, represents the spatial position of the measurement point in the local coordinate system, , , They are The components in the x, y, and z directions, Represents the measurement direction vector corresponding to the measurement point in the local coordinate system.

6. A free-form surface workpiece positioning method based on Gaussian fitting according to claim 5, It is characterized in that The step of S7 specifically includes: The mapping relationship between the positioning deviation of the free-form surface workpiece and the actual distance is expressed by the formula: , in represents the theoretical distance, Indicates the actual distance. Indicates the positioning deviation of the free-form surface workpiece. and are the position vector and attitude vector of the origin of the workpiece coordinate system relative to the reference coordinate system, , , is the deflection angle of the workpiece coordinate system relative to the x, y, and z axes of the reference coordinate system; The objective function to be optimized is constructed according to the mapping relationship, and the objective function to be optimized is expressed as: 。 7. A free-form surface workpiece positioning method based on Gaussian fitting according to claim 6, It is characterized in that The step of S8 specifically includes: Based on the global optimization algorithm, specifically by combining the particle swarm algorithm and the gradient descent algorithm, the objective function to be optimized is defined as an adaptability function; In the particle swarm iterative updating process, the minimum value of the adaptability function is obtained, and the minimum value is regarded as the optimal solution of the positioning deviation of the free-form surface workpiece.

8. A free-form surface workpiece positioning system based on Gaussian fitting, It is characterized in that The system comprises: A local positioning module, used to construct a local coordinate system of a local area at a positioning point according to a normal vector, a principal curvature radius and a principal curvature direction at the positioning point, wherein the positioning point is any point on the surface of a free-form surface workpiece; A surface equation construction module, used to construct a Gaussian approximate expression of the local area according to the principal curvature radius and principal curvature direction at the positioning point; A surface modeling module, used for performing mathematical modeling on the local area corresponding to the Gaussian approximate expression form using a Gaussian fitting algorithm in the local coordinate system to obtain a local fitting surface of the local area; A straight line equation construction module, used to construct a spatial straight line equation of a preset fixed measurement point according to the spatial position and measurement direction vector of the preset fixed measurement point; An actual distance measurement module, used to determine the actual distance between the preset fixed measurement point and the surface of the free-form surface workpiece according to the spatial straight line equation; A theoretical distance calculation module, used to determine the theoretical intersection point of the spatial straight line formed by the preset fixed measurement points and the local fitting surface according to the Gaussian approximate expression form and the spatial straight line equation, and determine the theoretical distance between the preset fixed measurement points and the theoretical intersection point; An objective function construction module, used to determine the mapping relationship between the positioning deviation of the free-form surface workpiece and the actual distance based on the theoretical distance, and to construct an objective function to be optimized according to the mapping relationship; The positioning deviation solving module is used to optimize and solve the objective function to be optimized based on a global optimization algorithm, and correct the coordinate system of the free-form surface workpiece according to the optimal solution of the positioning deviation.

9. A computer device, It is characterized in that The computer device includes a memory, a processor, and a processing program stored in the memory and executable on the processor. When the processing program is executed by the processor, a free-form surface workpiece positioning method based on Gaussian fitting as described in any one of claims 1 to 7 is implemented.

10. A storage medium, It is characterized in that The storage medium stores a processing program, and when the processing program is executed by a processor, a free-form surface workpiece positioning method based on Gaussian fitting according to any one of claims 1 to 7 is implemented.