Method, device and terminal equipment for determining profile error of non-complete annulus
By subdividing the torus, calculating the minimum distance and using the differential evolution algorithm, the problem of low precision error assessment of the torus profile of non-complete torus structural parts is solved, and accurate error assessment of non-complete torus structural parts is achieved, reducing the Error rates and production costs.
Patent Information
- Application Number
- CN202210741742.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-27
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-06-27
AI Technical Summary
The existing torus profile error assessment method cannot accurately calculate the torus profile error of industrial parts with non-complete torus structures, resulting in high error rates and production costs.
By obtaining the measurement torus and ideal torus of the part to be measured, perform coordinate transformation on the actual measured points based on the coordinate transformation parameters, subdivide the ideal torus and other arc lengths, and determine whether the corresponding point of the measuring point on the ideal torus is located in the edge area. The microsphere fitting method or ideal torus parameters are used to calculate the minimum distance from the measuring point to the ideal torus, and an objective function is constructed, and a differential evolution algorithm is used to solve the torus contour error.
The accurate calculation of the torus contour error of industrial parts with non-complete torus structures is achieved, reducing error rates and production costs.
Smart Images

Figure CN115218854B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of surface profile error assessment, and in particular to a method, device and terminal equipment for determining a non-complete annular surface profile error. Background Art
[0002] In the field of mechanical processing and manufacturing, many important industrial parts are toroidal structures, such as impellers, hemispherical resonators, and toroidal stepless transmissions. These toroidal industrial parts have complex structures, important functions, high processing costs, and higher quality requirements. Therefore, the detection requirements for the geometric dimensions of these industrial parts are very strict, that is, the assessment of the contour errors of these industrial parts is very important.
[0003] The torus is a typical surface of revolution. The assessment of its profile error belongs to the assessment of surface profile error. According to national standards, surface profile error refers to the change between the actual measured surface shape and the ideal profile. The existing assessment methods for torus profile error mainly include the minimum enclosing area method and the least squares method.
[0004] However, for industrial parts with incomplete toroidal structures, the existing toroidal profile error assessment methods cannot accurately calculate their toroidal profile errors, resulting in low accuracy of their toroidal profile errors, which in turn leads to high error rates and production costs of industrial parts. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the embodiments of the present application provide a method, an apparatus and a terminal device for determining the profile error of an incomplete torus.
[0006] This application is implemented through the following technical solutions:
[0007] In a first aspect, an embodiment of the present application provides a method for determining a non-complete annular surface profile error, comprising:
[0008] Obtaining a measuring torus and an ideal torus of the part to be measured, wherein the measuring torus includes the measured points of the part to be measured, and the measured points correspond to the coordinates of the measured points; and the ideal torus includes the ideal torus parameters;
[0009] Based on the ideal coordinate system corresponding to the ideal annulus, coordinate transformation processing is performed on the measured points according to the coordinate transformation parameters, so that the measured coordinate system corresponding to the measured annulus coincides with the ideal coordinate system, and the measured points after coordinate transformation processing and the corresponding measured point coordinates are obtained;
[0010] The ideal torus is subdivided into multiple facets of equal arc length, and the nearest corresponding point of the measuring point on the ideal torus is determined based on the facets, and it is judged whether the corresponding point is located in the edge area of the ideal torus; if so, the minimum distance from the measuring point to the ideal torus is calculated based on the microsphere fitting method and the measuring point coordinates; if not, the minimum distance from the measuring point to the ideal torus is determined based on the ideal torus parameters and the measuring point coordinates;
[0011] According to the minimum distance, a torus profile error function based on coordinate transformation parameters and ideal torus parameters is constructed as the objective function. The objective function is solved based on the differential evolution algorithm to determine the torus profile error. Among them, the ideal torus parameters and coordinate transformation parameters are the quantities to be optimized.
[0012] In a possible implementation of the first aspect, based on an ideal coordinate system corresponding to the ideal annulus, coordinate transformation processing is performed on the measured point according to the coordinate transformation parameters, including:
[0013] Based on the ideal coordinate system corresponding to the ideal torus, the coordinates of the measured points are transformed according to the transformation matrix, and the transformation matrix is constructed according to the coordinate transformation parameters.
[0014] In a possible implementation of the first aspect, subdividing an ideal torus with equal arc length into a plurality of facets, determining the nearest corresponding point of the measuring point on the ideal torus according to the facets, and judging whether the corresponding point is located in an edge area of the ideal torus includes:
[0015] The ideal torus is subdivided with equal arc lengths along the element line direction and the generatrix direction to obtain a plurality of arc-shaped patches, each of which has four vertices;
[0016] Calculate the point-to-point distance between the measuring point and each vertex on the ideal torus, and take the vertex corresponding to the minimum point-to-point distance as the corresponding point of the measuring point;
[0017] It is determined whether the corresponding point is located in the edge area of the ideal torus according to the coordinates of the corresponding point.
[0018] In a possible implementation of the first aspect, if the corresponding point is located in an edge area of the ideal torus, calculating the minimum distance from the measuring point to the ideal torus based on a microsphere fitting method and the measuring point coordinates includes:
[0019] If the corresponding point is located in the edge area of the ideal torus, determine the minimum arc patch containing the corresponding point;
[0020] The approximate sphere is fitted according to the minimum arc patch, and the minimum distance is calculated according to the approximate sphere and the coordinates of the measuring point; the calculation formula of the minimum distance is:
[0021] d=|R 1 -O 1 Q|
[0022] In the formula, d is the minimum distance, R1 is the radius of the approximate sphere, O 1 is the center of the approximate sphere, O 1 Q is the distance from the measuring point Q to the center of the approximate sphere O 1 distance.
[0023] In a possible implementation manner of the first aspect, after calculating the minimum distance from the measuring point to the ideal torus according to the approximate spherical surface, the method further includes:
[0024] Subdividing the minimum arc patch into multiple iterative arc patches with equal arc length, wherein the iterative arc patch has four iterative vertices;
[0025] Calculate the iterative point-to-point distance between the measuring point and each iterative vertex on the minimum arc patch, and take the iterative vertex corresponding to the minimum iterative point-to-point distance as the iterative corresponding point of the measuring point;
[0026] Determine the minimum iterative arc patch containing iterative corresponding points, fit the iterative approximate sphere according to the minimum iterative arc patch, and calculate the iterative minimum distance according to the iterative approximate sphere and the coordinates of the measuring points;
[0027] When the absolute value of the difference between the minimum distance and the iterative minimum distance is less than the preset error, the iterative minimum distance is taken as the minimum distance; otherwise, the iterative minimum distance is taken as the minimum distance, the minimum iterative arc patch is taken as the minimum arc patch and the above steps are repeated until the absolute value of the difference between the minimum distance and the iterative minimum distance is less than the preset error.
[0028] In a possible implementation of the first aspect, the ideal torus parameters include: a torus center offset and a torus arc radius;
[0029] Correspondingly, if the corresponding point is not located in the edge area of the ideal torus, the minimum distance from the measuring point to the ideal torus is determined based on the ideal torus parameters and the measuring point coordinates, including:
[0030] If the corresponding point is not located in the edge area of the ideal torus, the minimum distance is determined according to the torus center offset, the torus arc radius and the measuring point coordinates;
[0031] The minimum distance is calculated as:
[0032]
[0033] Where d is the minimum distance, the coordinates of the measuring point are (x, y, z), R is the offset distance of the center of the torus, and r is the radius of the torus arc.
[0034] In a possible implementation manner of the first aspect, the objective function is:
[0035] f = max{2d i}
[0036] Where, f is the annular profile error, d i is the minimum distance corresponding to the i-th measuring point.
[0037] In a second aspect, an embodiment of the present application provides a device for determining a non-complete annular surface profile error, comprising:
[0038] An acquisition module is used to acquire a measurement annulus and an ideal annulus of the part to be measured, wherein the measurement annulus includes actual measurement points of the part to be measured, and the actual measurement points correspond to the coordinates of the actual measurement points; and the ideal annulus includes ideal annulus parameters;
[0039] A coordinate transformation module is used to perform coordinate transformation processing on the measured points based on the ideal coordinate system corresponding to the ideal annulus according to the coordinate transformation parameters, so that the measured coordinate system corresponding to the measured annulus coincides with the ideal coordinate system, and obtain the measured points after the coordinate transformation processing and the corresponding measured point coordinates;
[0040] A judgment module is used to subdivide the ideal torus into multiple facets of equal arc length, determine the nearest corresponding point of the measuring point on the ideal torus based on the facets, and judge whether the corresponding point is located in the edge area of the ideal torus; when the corresponding point is located in the edge area of the ideal torus, calculate the minimum distance from the measuring point to the ideal torus based on the microsphere fitting method and the measuring point coordinates; when the corresponding point is not located in the edge area of the ideal torus, determine the minimum distance from the measuring point to the ideal torus based on the ideal torus parameters and the measuring point coordinates;
[0041] The determination module is used to construct a torus profile error function based on coordinate transformation parameters and ideal torus parameters as an objective function according to the minimum distance, solve the objective function based on the differential evolution algorithm, and determine the torus profile error; wherein the ideal torus parameters and coordinate transformation parameters are quantities to be optimized.
[0042] In a third aspect, an embodiment of the present application provides a terminal device including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the method for determining the incomplete annular surface profile error as described in any one of the first aspects is implemented.
[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the method for determining the incomplete annular surface profile error as described in any one of the first aspects.
[0044] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the method for determining the incomplete annular surface profile error described in any one of the first aspects above.
[0045] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0046] The embodiments of the present application provide a method, device and terminal device for determining the profile error of an incomplete torus, by obtaining a measured torus and an ideal torus of a part to be measured, wherein the measured torus includes actual measured points of the part to be measured, and the ideal torus includes ideal torus parameters, coordinate transformation processing is performed on the actual measured points according to coordinate transformation parameters to obtain measured points, the ideal torus is subdivided into equal arc lengths, and the nearest corresponding point of the measured point on the ideal torus is determined. When the corresponding point is located in the edge area and the non-edge area of the ideal torus, different algorithms are used to calculate the minimum distance from the measured point to the ideal torus, and a torus profile error function based on the coordinate transformation parameters and the ideal torus parameters is constructed as an objective function according to the minimum distance. The objective function is solved based on a differential evolution algorithm to determine the torus profile error, so as to accurately calculate the torus profile error of industrial parts with an incomplete torus structure, thereby reducing the error rate and production cost of industrial parts.
[0047] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0049] Figure 1 It is a schematic diagram of a non-holonomic torus;
[0050] Figure 2 It is a flowchart of a method for determining a non-complete annular surface profile error provided by an embodiment of the present application;
[0051] Figure 3 is a schematic diagram of an ideal torus provided in one embodiment of the present application;
[0052] Figure 4 It is a schematic diagram of the translation and rotation of the measuring torus provided in one embodiment of the present application;
[0053] Figure 5 It is a flowchart of a method for determining a non-complete annular surface profile error provided by an embodiment of the present application;
[0054] Figure 6 It is a schematic diagram of an ideal torus with equal arc length subdivision provided by an embodiment of the present application;
[0055] Figure 7 is a schematic diagram of the edge area of an ideal torus provided in one embodiment of the present application;
[0056] Figure 8 It is a flowchart of a method for determining a non-complete annular surface profile error provided by an embodiment of the present application;
[0057] Fig. 9 It is a flowchart of a method for determining a non-complete annular surface profile error provided by an embodiment of the present application;
[0058] Fig.10 It is a structural schematic diagram of a device for determining a non-complete annular surface profile error provided by an embodiment of the present application;
[0059] Fig.11 It is a structural diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0060] The present application is described more clearly below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the effects of the present application, but are not intended to limit the present application in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present application. These all fall within the scope of protection of the present application.
[0061] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0062] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0063] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0064] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0065] In addition, the “plurality” mentioned in the embodiments of the present application should be interpreted as two or more.
[0066] In the field of mechanical processing and manufacturing, many important industrial parts are toroidal structures, such as impellers, hemispherical resonators, and toroidal stepless transmissions. These toroidal industrial parts have complex structures, important functions, high processing costs, and higher quality requirements. Therefore, the detection requirements for the geometric dimensions of these industrial parts are very strict, that is, the assessment of the contour errors of these industrial parts is very important. The torus is a typical surface of revolution, and the assessment of its contour error belongs to the surface profile error assessment. According to national standards, the surface profile error refers to the change between the actual measured surface shape and the ideal contour, that is, the torus profile error is the maximum value of 2 times the minimum distance from all measuring points in the measuring torus of the part to be measured to the ideal torus. The existing methods for assessing the torus profile error mainly include the minimum inclusion area method and the least squares method.
[0067] The torus profile error evaluation methods in related technologies all use the geometric properties of the torus to calculate the minimum distance from the measuring point to the ideal torus, and then determine the torus profile error based on the minimum distance. However, for industrial parts with non-complete torus structures, when the foot of the perpendicular from the measuring point to the ideal torus falls outside the ideal torus, it is inaccurate to directly use the geometric properties of the torus to calculate the minimum distance from the measuring point to the ideal torus. Figure 1 As shown in the figure, the foot of the perpendicular from the measuring point P to the ideal torus ABCD is point P′, and point P′ is outside the ideal torus ABCD. At this time, the distance from the measuring point P to the ideal torus ABCD calculated by the geometric properties of the torus is OP′-OP, where point O is the center of the arc of the ideal torus, and the nearest point from the measuring point P to the ideal torus ABCD is actually point P″ located at the edge of the ideal torus ABCD. This leads to a large error in the minimum distance from the measuring point to the ideal torus calculated by the geometric properties of the torus.
[0068] That is to say, for industrial parts with non-complete toroidal structures, the existing toroidal profile error assessment method cannot accurately calculate its toroidal profile error, resulting in low accuracy of its toroidal profile error, which in turn leads to high error rate and production cost of industrial parts.
[0069] Based on the above problems, the inventors have found through research that the ideal torus can be subdivided into equal arc lengths to determine the nearest corresponding point of the measuring point on the ideal torus, and to determine whether the corresponding point is located in the edge area of the ideal torus. Then, for the two cases where the corresponding point is located in the edge area and the non-edge area of the ideal torus, different methods are used to calculate the minimum distance from the measuring point to the ideal torus. Among them, for the case where the corresponding point is located in the edge area of the ideal torus, the minimum distance from the measuring point to the ideal torus is calculated based on the microsphere fitting method. Then, the improved differential evolution algorithm is used to optimize and solve the objective function constructed based on the minimum distance to determine the torus profile error.
[0070] That is to say, the embodiment of the present application obtains the measuring torus and the ideal torus of the part to be measured, the measuring torus includes the actual measured points of the part to be measured, and the ideal torus includes the ideal torus parameters, and the measured points are obtained by coordinate transformation processing according to the coordinate transformation parameters, and the ideal torus is subdivided into equal arc lengths to determine the nearest corresponding point of the measuring point on the ideal torus. When the corresponding point is located in the edge area and non-edge area of the ideal torus, different algorithms are used to calculate the minimum distance from the measuring point to the ideal torus, and a torus profile error function based on the coordinate transformation parameters and the ideal torus parameters is constructed as the objective function based on the minimum distance. The objective function is solved based on the differential evolution algorithm to determine the torus profile error. The torus profile error of industrial parts with incomplete torus structures can be accurately calculated, thereby reducing the error rate and production cost of industrial parts.
[0071] Figure 2 FIG. 1 is a flow chart of a method for determining a non-complete annular profile error provided by an embodiment of the present application. Figure 2 As shown, the method in the embodiment of the present application may include:
[0072] Step 101: Obtain a measurement annular surface and an ideal annular surface of a part to be measured.
[0073] Optionally, the measuring torus includes actual measuring points of the part to be measured, and the actual measuring points correspond to the coordinates of the actual measuring points. The ideal torus includes ideal torus parameters.
[0074] Exemplarily, the above-mentioned part to be measured is an industrial part with a non-complete toroidal structure, such as an impeller, a resonator, etc. The non-complete toroidal structure is any non-complete toroidal structure except the complete toroidal structure, and its specific structure is not specifically limited here. The measuring toroid of the part to be measured is a measuring toroidal model, and the measured points and the corresponding measured point coordinates can be obtained by discretizing the measuring toroidal model. The measuring toroid can be obtained by measuring with a three-coordinate measuring machine or other measuring equipment. The ideal toroid of the part to be measured is an ideal toroidal model, and the data points and the corresponding data point coordinates on it are known quantities. The ideal toroid is an ideal toroidal model made by computer software before the part to be measured is manufactured, so that the part to be measured is manufactured according to the above-mentioned ideal toroidal model.
[0075] The diagram of an ideal torus is shown below: Figure 3 See Figure 3 , the ideal torus parameters may include the torus center offset R and the torus arc radius r. Among them, since the measured torus of the part to be measured has a deviation from the ideal torus, the torus center offset R and the torus arc radius r are the quantities to be optimized.
[0076] Step 102: Based on the ideal coordinate system corresponding to the ideal torus, coordinate transformation processing is performed on the actual measured points according to the coordinate transformation parameters to obtain the measured points after the coordinate transformation processing and the corresponding measured point coordinates.
[0077] Optionally, the measurement annulus is translated and rotated so that the measurement coordinate system coincides with the ideal coordinate system, that is, coordinate transformation processing is performed on the measured points, and the coordinate transformation processing includes translation and rotation of all measured points.
[0078] Figure 4 It is a schematic diagram of the translation and rotation of the measuring torus provided in one embodiment of the present application.
[0079] In a possible implementation, step 102 may specifically include: based on the ideal coordinate system corresponding to the ideal annulus, performing matrix transformation on the coordinates of the measured points according to a transformation matrix, wherein the transformation matrix is constructed according to coordinate transformation parameters.
[0080] Optionally, assume that the measured point is translated by distances a, b and c around the X-axis, Y-axis and Z-axis of the measurement coordinate system, and rotated by angles α, β and γ around the X-axis, Y-axis and Z-axis of the measurement coordinate system, respectively, where a, b, c, α, β and γ are coordinate transformation parameters.
[0081] For example, the i-th measured point Q′ i =[x′ i ,y′ i ,z′ i ] T After coordinate transformation, the corresponding measuring point Q is obtained. i =[xi ,y i ,z i ] T .
[0082] The coordinate transformation formula is:
[0083]
[0084] In the formula, Q′ i The matrix after homogeneous coordinate transformation is: Q i The matrix after homogeneous coordinate transformation, i = 1, 2, 3, ..., n, where n is the number of measured points, also the number of measured points. T is the transformation matrix, which is constructed according to the coordinate transformation parameters, and T can be expressed as:
[0085]
[0086] Step 103: subdivide the ideal torus into multiple patches of equal arc length, determine the nearest corresponding point of the measuring point on the ideal torus based on the patches, and judge whether the corresponding point is located in the edge area of the ideal torus.
[0087] In one possible implementation, see Figure 5 In step 103, the following may be specifically included:
[0088] Step 1031: Subdivide the ideal torus with equal arc lengths along the element line direction and the generatrix direction to obtain a plurality of arcuate patches, each of which has four vertices.
[0089] Step 1032: Calculate the point-to-point distance between the measuring point and each vertex on the ideal torus, and take the vertex corresponding to the minimum point-to-point distance as the corresponding point of the measuring point.
[0090] Step 1033: Determine whether the corresponding point is located in the edge area of the ideal torus according to the coordinates of the corresponding point.
[0091] The schematic diagram of the ideal torus with equal arc length subdivision is as follows Figure 6 See Figure 6 The ideal torus is evenly divided m times along the element line direction M, and evenly divided n times along the generatrix direction N for equal arc length subdivision to obtain multiple uniform arc-shaped patches, each of which has four vertices.
[0092] Optional, such as Figure 6As shown, the point-to-point distance between the measuring point Q and all vertices is calculated, and the vertex closest to the measuring point Q on the ideal torus is determined based on the point-to-point distance, and the vertex is used as the corresponding point D of the measuring point Q. Since the data points on the ideal torus and the corresponding data point coordinates are known quantities, the corresponding point coordinates are also known, and it is determined whether the corresponding point D is located in the edge area of the ideal torus based on the corresponding point coordinates.
[0093] The schematic diagram of the edge area of the ideal torus is as follows Figure 7 As shown, the edge area of the ideal torus is the area located at the edge of the ideal torus, and its length and width are set according to the specific situation of the ideal torus. For example, if it is confirmed according to the corresponding point coordinates that the arc surface patch where the corresponding point D is located is located in the edge area of the ideal torus, then it is determined that the corresponding point D is located in the edge area of the ideal torus.
[0094] Step 104: When the corresponding point is located in the edge area of the ideal torus, the minimum distance from the measuring point to the ideal torus is calculated based on the microsphere fitting method and the measuring point coordinates.
[0095] In one possible implementation, see Figure 8 In step 104, the following may be specifically included:
[0096] Step 1041: When the corresponding point is located in the edge area of the ideal torus, determine the minimum arc-shaped surface patch containing the corresponding point.
[0097] Step 1042: fit an approximate sphere according to the minimum arc patch, and calculate the minimum distance between the approximate sphere and the coordinates of the measuring point.
[0098] See also Figure 6 , when the corresponding point D is located in the edge area of the ideal torus, determine the minimum arc patch D containing the corresponding point D 1 D 2 D 3 D 4 , then the foot of the perpendicular L from the measuring point Q to the ideal torus must be on the minimum arc patch D 1 D 2 D 3 D 4 Take the smallest arc patch D 1 D 2 D 3 D 4 The four vertices C closest to the corresponding point D 1 , C 2 , C 3 and C 4 , the above four vertices are located on the ideal torus and are definitely not coplanar. Based on the microsphere fitting method, according to the vertex C 1 , C 2 , C 3 and C 4The coordinates of the approximate sphere are fitted, and the radius, center and coordinates of the approximate sphere are determined. The above approximate sphere is the minimum arc patch D where the corresponding point D is located. 1 D 2 D 3 D 4 The minimum distance is calculated based on the approximate sphere and the coordinates of the measuring point.
[0099] Optionally, when the corresponding point D is located at the edge area of the ideal torus, the corresponding point D may also be located at Figure 6 Middle C 4 Position, that is, at the edge of the ideal torus, at this time, determine the corresponding point D (i.e. Figure 6 Middle C 4 ) of the smallest curved patch D 1 C 1 C 3 D 4 , then the foot of the perpendicular from the measuring point Q to the ideal torus must be on the minimum arc patch D 1 C 1 C 3 D 4 Take the smallest arc patch D 1 C 1 C 3 D 4 The four vertices D 1 , C 4 , D 4 and D (see Figure 6 ), the above four vertices are located on the ideal torus and are definitely not coplanar. Based on the microsphere fitting method, according to vertex D 1 , C 4 , D 4 The coordinates of and D are fitted to an approximate sphere, and the radius, center, and coordinates of the center of the approximate sphere are determined. The approximate sphere is the corresponding point D (i.e. Figure 6 Middle C 4 ) where the smallest arc patch D 1 C 1 C 3 D 4 The minimum distance is calculated based on the approximate sphere and the coordinates of the measuring point.
[0100] The minimum distance is calculated as:
[0101] d=|R 1 -O 1 Q|
[0102] In the formula, d is the minimum distance, R 1 is the radius of the approximate sphere, O 1 is the center of the approximate sphere, O 1 Q is the distance from the measuring point Q to the center of the approximate sphere O1 The distance, where the coordinates of the measuring point Q are (x, y, z). Through the above minimum distance calculation formula, when the corresponding point is located in the edge area of the ideal torus, the expression of the minimum distance d with respect to x, y and z is obtained, that is, the expression of the minimum distance d with respect to a, b, c, α, β, γ is obtained.
[0103] In a possible implementation manner, step 1042 may further include:
[0104] Step S1: subdivide a minimum arc patch of equal arc length into a plurality of iterative arc patches, wherein the iterative arc patch has four iterative vertices.
[0105] Step S2, calculating the iterative point-to-point distance between the measuring point and each iterative vertex on the minimum arc-shaped surface patch, and taking the iterative vertex corresponding to the minimum iterative point-to-point distance as the iterative corresponding point of the measuring point;
[0106] Step S3, determining the minimum iterative arc patch containing the iterative corresponding points, fitting the iterative approximate sphere according to the minimum iterative arc patch, and calculating the iterative minimum distance according to the iterative approximate sphere and the coordinates of the measuring points;
[0107] Step S4: When the absolute value of the difference between the minimum distance and the iterative minimum distance is less than the preset error, the iterative minimum distance is taken as the minimum distance; otherwise, the iterative minimum distance is taken as the minimum distance, the minimum iterative arcuate patch is taken as the minimum arcuate patch and the above steps S1 to S3 are repeated until the absolute value of the difference between the minimum distance and the iterative minimum distance is less than the preset error.
[0108] See also Figure 6 , for the minimum arc patch D containing the corresponding point D 1 D 2 D 3 D 4 Perform equal arc length subdivision, calculate the iterative point-to-point distance between the measuring point Q and each iterative vertex on the minimum arc patch, determine the iterative vertex on the minimum arc patch closest to the measuring point Q according to the iterative point-to-point distance, and use the iterative vertex as the iterative corresponding point D′ corresponding to the measuring point Q.
[0109] It should be noted that the minimum arc patch obtained in step 1041 is further subdivided into equal arc lengths, and the iterative minimum distance is obtained. When the absolute value of the difference between the minimum distance and the iterative minimum distance is less than the preset error, the iterative minimum distance is taken as the minimum distance. This can improve the fitting accuracy of the minimum distance, improve the accuracy of the minimum distance, and thereby improve the accuracy of the torus profile error.
[0110] Step 105: When the corresponding point is not located in the edge area of the ideal torus, the minimum distance from the measuring point to the ideal torus is determined based on the ideal torus parameters and the measuring point coordinates.
[0111] Optionally, step 105 may specifically include: when the corresponding point is not located in the edge area of the ideal torus, determining the minimum distance according to the torus center offset, the torus arc radius and the measuring point coordinates.
[0112] The minimum distance is calculated as:
[0113]
[0114] In the formula, d is the minimum distance, the coordinates of the measuring point are (x, y, z), R is the offset distance from the center of the torus, and r is the radius of the torus arc. Through the above minimum distance calculation formula, the expression of the minimum distance d about x, y, z, R and r is obtained when the corresponding point is not located in the edge area of the ideal torus, that is, when the corresponding point is located in the non-edge area of the ideal torus, that is, the expression of the minimum distance d about a, b, c, α, β, γ, R and r is obtained.
[0115] Step 106: construct a torus profile error function based on coordinate transformation parameters and ideal torus parameters as an objective function according to the minimum distance, solve the objective function based on a differential evolution algorithm, and determine the torus profile error.
[0116] Among them, the ideal torus parameters R and r, and the coordinate transformation parameters a, b, c, α, β and γ are the quantities to be optimized.
[0117] Optionally, the objective function is:
[0118] f = max{2d i}
[0119] Where, f is the annular profile error, d i is the minimum distance corresponding to the i-th measuring point. In other words, the annular profile error is the maximum value of twice the minimum distance from all measuring points to the ideal annular surface.
[0120] The differential evolution algorithm is an efficient global optimization algorithm. It minimizes the objective function by searching for the optimal values of the quantities to be optimized a, b, c, α, β, γ, R and r, that is, accurately determines the annular profile error.
[0121] In one possible implementation, see Fig. 9 In step 106, solving the objective function based on the differential evolution algorithm to determine the annular profile error may specifically include:
[0122] Step 1061: Initialize the population. The initial individuals in the population can be expressed as:
[0123] p k =(p k,1 ,p k,2 ,p k,3 ,…,pk,8 )
[0124] In the formula, p k is the kth initial individual, k = 1, 2, 3, ..., NP, where NP is the population size. p,1 to p k,8 is the element in the kth initial individual, corresponding to the coordinate transformation parameters a, b, c, α, β, γ and the ideal torus parameters R, r. As mentioned above, the population dimension I = 8.
[0125] The preset constraint boundary of the individual is set according to the error range of the torus measurement point, wherein the preset constraint boundary includes the element constraint boundary of each element in the individual, so that the value of each element does not exceed the corresponding element constraint boundary. The initial population is randomly generated within the preset constraint boundary.
[0126] Step 1062: mutation. Perform mutation operation on the initial individuals in the initial population to obtain a mutant population. Specifically, for each initial individual, three different initial individuals are randomly selected from the initial population, and mutant individuals are generated according to the mutation formula.
[0127] The mutation formula is:
[0128]
[0129] In the formula, v k is the kth mutant individual, and are three initial individuals randomly selected from the initial population, and F is the mutation operator, which determines the amplification ratio of the deviation, and its value range is generally [0,2].
[0130] The mutation operator formula is:
[0131] F=F 0 ×2 λ
[0132] In the formula, F 0 is the initial mutation operator. In practical applications, F 0 It can be set to 0.5. λ is an adaptive operator, and its value changes with the number of iterations.
[0133] The adaptive operator formula is:
[0134]
[0135] In the formula, G m represents the maximum number of iterations, and G represents the current number of iterations.
[0136] It should be noted that in the embodiment of the present application, in order to avoid premature phenomenon of the differential evolution algorithm and improve the convergence speed of the differential evolution algorithm, the differential evolution algorithm is improved, that is, an adaptive operator that changes with the number of iterations is added to the mutation operator F. So that the value of F is large at the beginning of the iteration to ensure the diversity of the population, and as the number of iterations increases, the value of F gradually decreases as λ decreases, ensuring the excellence of the population and searching for the optimal solution more accurately in a smaller interval.
[0137] Step 1063: crossover. Perform a crossover operation on the mutant individuals in the mutant population and the initial individuals in the initial population to obtain a crossover population. Specifically, a crossover operation is performed on a certain dimension of the initial population to ensure that at least one element in each crossover individual of the obtained crossover population comes from the mutant population.
[0138] The crossover formula is:
[0139]
[0140] In the formula, u k,l is the lth element of the kth crossover individual, v k,l is the lth element of the kth mutant individual, p k,l is the lth element of the kth initial individual, where l = 1, 2, 3, ..., 8. rand is a random number in the interval [0, 1], and randk(1, I) is a randomly selected dimension. CR is the crossover operator, which is a real number in the range [0, 1]. CR is used to control the probability that the elements in the crossover individual come from the mutant population or the initial population.
[0141] The crossover operator formula is:
[0142]
[0143] In the formula, CR 0 is the initial crossover operator.
[0144] It should be noted that, among the coordinate transformation parameters and the ideal torus parameters, the ideal torus parameters have a higher influence on the accuracy of the torus profile error, that is, R and r have a higher influence on the accuracy of the torus profile error. In the embodiment of the present application, in order to improve the accuracy of the torus profile error, the crossover operator corresponding to the ideal torus parameters is improved so that the crossover operator corresponding to the ideal torus parameters changes with the increase of the number of iterations.
[0145] It should be noted that in steps 1062 to 1063, that is, when performing crossover and mutation operations on the initial individuals in the initial population, the obtained mutated individuals or crossover individuals may exceed the preset constraint boundaries, that is, the values of the elements in the obtained mutated individuals or crossover individuals exceed the corresponding element constraint boundaries. Therefore, it is necessary to perform boundary checks and processing on the mutated individuals after the mutation operation and the crossover individuals after the crossover operation, respectively.
[0146] The boundary checking and processing formula is:
[0147]
[0148] In the formula, the upper boundary of the preset constraint boundary is p max , the lower boundary is p min , p′ is a mutation individual or a crossover individual.
[0149] Step 1064: Select. According to the greedy criterion, select individuals with smaller fitness from the crossover population and the initial population as the selection population.
[0150] The selection formula is:
[0151]
[0152] In the formula, h k is the kth selected individual, and the selected population is used as the initial population for the next iteration. fit is the fitness function, and the objective function is taken as the fitness function, that is, fit = f = max{2d i}, where d i It is a function of the coordinate transformation parameters and the ideal torus parameters, that is, the fitness function fit is the maximum value of twice the minimum distance from all measuring points to the ideal torus.
[0153] Optionally, repeat steps 1062 to 1064 until the maximum number of iterations G is reached. m Then the iteration stops and the selected population at this time is output. The selected individual with the smallest fitness in the selected population is taken as the optimal individual. The values of each element in the optimal individual are the optimal values of the coordinate transformation parameters and the ideal torus parameters, respectively. The fitness corresponding to the optimal individual is the obtained torus profile error.
[0154] It should be noted that steps 103 to 105 and step 106 can be executed simultaneously, so that when the point-to-point distance between the measuring point and each vertex on the ideal torus is calculated in step 1032 and the vertex corresponding to the minimum point-to-point distance is taken as the corresponding point of the measuring point, the point-to-point distance can be accurately calculated, and the vertex corresponding to the minimum point-to-point distance is determined as the corresponding point of the measuring point based on the above point-to-point distance.
[0155] The embodiment of the present application obtains a measuring torus and an ideal torus of a part to be measured, wherein the measuring torus includes actual measuring points of the part to be measured, and the ideal torus includes ideal torus parameters. The actual measuring points are subjected to coordinate transformation processing according to coordinate transformation parameters to obtain measuring points, and the ideal torus is subdivided into equal arc lengths, and the nearest corresponding point of the measuring point on the ideal torus is determined. When the corresponding point is located in an edge area and a non-edge area of the ideal torus, different algorithms are used to calculate the minimum distance from the measuring point to the ideal torus, and a torus profile error function based on the coordinate transformation parameters and the ideal torus parameters is constructed as an objective function according to the minimum distance. The objective function is solved based on a differential evolution algorithm to determine the torus profile error. The torus profile error of an industrial part with an incomplete torus structure can be accurately calculated, thereby reducing the error rate and production cost of the industrial parts.
[0156] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0157] Fig.10 Schematic diagram of the structure of a device for determining the profile error of a non-complete annulus provided in one embodiment of the present application. Fig.10 As shown, the device for determining the profile error of a non-complete torus provided in this embodiment may include: an acquisition module 201 , a coordinate transformation module 202 , a judgment module 203 and a determination module 204 .
[0158] The acquisition module 201 is used to acquire the measurement torus and the ideal torus of the part to be measured. The measurement torus includes the measured points of the part to be measured, and the measured points correspond to the measured point coordinates; the ideal torus includes the ideal torus parameters.
[0159] The coordinate transformation module 202 is used to perform coordinate transformation processing on the actual measured points based on the ideal coordinate system corresponding to the ideal torus according to the coordinate transformation parameters, so that the measurement coordinate system corresponding to the measurement torus coincides with the ideal coordinate system, and obtain the measured points after coordinate transformation processing and the corresponding measured point coordinates.
[0160] The judgment module 203 is used to subdivide the ideal torus surface with equal arc length into multiple facets, determine the nearest corresponding point of the measuring point on the ideal torus surface based on the facets, and judge whether the corresponding point is located in the edge area of the ideal torus surface; when the corresponding point is located in the edge area of the ideal torus surface, calculate the minimum distance from the measuring point to the ideal torus surface based on the microsphere fitting method and the measuring point coordinates; when the corresponding point is not located in the edge area of the ideal torus surface, determine the minimum distance from the measuring point to the ideal torus surface based on the ideal torus surface parameters and the measuring point coordinates.
[0161] The determination module 204 is used to construct a torus profile error function based on the coordinate transformation parameters and the ideal torus parameters as the objective function according to the minimum distance, solve the objective function based on the differential evolution algorithm, and determine the torus profile error; wherein the ideal torus parameters and the coordinate transformation parameters are the quantities to be optimized.
[0162] Optionally, the coordinate transformation module 202 is specifically used for: performing matrix transformation on the coordinates of the measured points according to a transformation matrix based on an ideal coordinate system corresponding to the ideal torus, wherein the transformation matrix is constructed according to coordinate transformation parameters.
[0163] Optionally, the judgment module 203 is specifically used to: subdivide the ideal torus with equal arc lengths along the direction of the element lines and the generatrix to obtain multiple arc patches, each of which has four vertices; calculate the point-to-point distance between the measuring point and each vertex on the ideal torus, and take the vertex corresponding to the minimum point-to-point distance as the corresponding point of the measuring point; and judge whether the corresponding point is located in the edge area of the ideal torus based on the coordinates of the corresponding point.
[0164] Optionally, the judgment module 203 is further specifically used to: when the corresponding point is located in the edge area of the ideal torus, determine the minimum arc surface patch containing the corresponding point; fit the approximate sphere according to the minimum arc surface patch, and calculate the minimum distance according to the approximate sphere and the coordinates of the measuring point; the calculation formula of the minimum distance is:
[0165] d=|R 1 -O 1 Q|
[0166] In the formula, d is the minimum distance, R 1 is the radius of the approximate sphere, O 1 is the center of the approximate sphere, O 1 Q is the distance from the measuring point Q to the center of the approximate sphere O 1 distance.
[0167] Optionally, the judgment module 203 is also specifically used to: subdivide the minimum arc patch with equal arc length into multiple iterative arc patches, the iterative arc patch has four iterative vertices; calculate the iterative point-to-point distance between the measuring point and each iterative vertex on the minimum arc patch, and take the iterative vertex corresponding to the minimum iterative point-to-point distance as the iterative corresponding point of the measuring point; determine the minimum iterative arc patch containing the iterative corresponding point, fit the iterative approximate sphere according to the minimum iterative arc patch, and calculate the iterative minimum distance according to the iterative approximate sphere and the coordinates of the measuring point; when the absolute value of the difference between the minimum distance and the iterative minimum distance is less than a preset error, take the iterative minimum distance as the minimum distance; otherwise, take the iterative minimum distance as the minimum distance, take the minimum iterative arc patch as the minimum arc patch and repeat the above steps until the absolute value of the difference between the minimum distance and the iterative minimum distance is less than a preset error.
[0168] Optionally, the judgment module 203 is further specifically used to: when the corresponding point is not located in the edge area of the ideal torus, determine the minimum distance according to the torus center offset, the torus arc radius and the measuring point coordinates; the calculation formula of the minimum distance is:
[0169]
[0170] Where d is the minimum distance, the coordinates of the measuring point are (x, y, z), R is the offset distance of the center of the torus, and r is the radius of the torus arc.
[0171] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0172] Fig.11 Schematic diagram of the structure of a terminal device provided by an embodiment of the present application. Fig.11 As shown, the terminal device 300 of this embodiment includes: a processor 310 and a memory 320, wherein the memory 320 stores a computer program 321 that can be run on the processor 310. When the processor 310 executes the computer program 321, the steps in any of the above method embodiments are implemented, for example Figure 2 Alternatively, when the processor 310 executes the computer program 321, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Fig.10 Functions of modules 201 to 204 are shown.
[0173] Exemplarily, the computer program 321 may be divided into one or more modules / units, one or more modules / units are stored in the memory 320, and are executed by the processor 310 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 321 in the terminal device 300.
[0174] Those skilled in the art will understand that Fig.11 It is only an example of a terminal device and does not constitute a limitation on the terminal device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, buses, etc.
[0175] The processor 310 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0176] The memory 320 may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device, or an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device. The above-mentioned memory 320 may also include both an internal storage unit of the terminal device and an external storage device. The above-mentioned memory 320 is used to store computer programs and other programs and data required by the terminal device. The memory 320 may also be used to temporarily store data that has been output or is to be output.
[0177] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0178] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0179] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0180] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0181] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0182] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0183] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0184] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for determining the profile error of a non-complete annulus, characterized in that: include: Obtaining a measurement annulus and an ideal annulus of the part to be measured, wherein the measurement annulus includes measured points of the part to be measured, and the measured points correspond to the coordinates of the measured points; The ideal torus includes ideal torus parameters; Based on the ideal coordinate system corresponding to the ideal annular surface, coordinate transformation processing is performed on the measured points according to coordinate transformation parameters, so that the measured coordinate system corresponding to the measured annular surface coincides with the ideal coordinate system, and the measured points after coordinate transformation processing and the corresponding measured point coordinates are obtained; The ideal torus is subdivided into multiple facets of equal arc length, and the nearest corresponding point of the measuring point on the ideal torus is determined according to the facets, and it is judged whether the corresponding point is located in the edge area of the ideal torus; if so, the minimum distance from the measuring point to the ideal torus is calculated based on the microsphere fitting method and the coordinates of the measuring point; if not, the minimum distance from the measuring point to the ideal torus is determined based on the ideal torus parameters and the coordinates of the measuring point; According to the minimum distance, a torus profile error function based on the coordinate transformation parameters and the ideal torus parameters is constructed as an objective function, and the objective function is solved based on a differential evolution algorithm to determine the torus profile error; wherein the ideal torus parameters and the coordinate transformation parameters are quantities to be optimized.
2. The method for determining the non-complete annular profile error according to claim 1, characterized in that: The coordinate transformation processing of the measured points based on the ideal coordinate system corresponding to the ideal annulus according to the coordinate transformation parameters includes: Based on the ideal coordinate system corresponding to the ideal annular surface, the coordinates of the measured points are transformed into a matrix according to a transformation matrix, and the transformation matrix is constructed according to the coordinate transformation parameters.
3. The method for determining the profile error of a non-complete annulus according to claim 2, characterized in that: Subdividing the ideal torus into a plurality of patches of equal arc length, determining the nearest corresponding point of the measuring point on the ideal torus according to the patches, and judging whether the corresponding point is located in the edge area of the ideal torus, comprises: Subdividing the ideal annulus with equal arc lengths along the element line direction and the generatrix direction to obtain a plurality of arcuate surface patches, each of which has four vertices; Calculate the point-to-point distance between the measuring point and each vertex on the ideal torus, and take the vertex corresponding to the minimum point-to-point distance as the corresponding point of the measuring point; It is determined whether the corresponding point is located in the edge area of the ideal torus according to the coordinates of the corresponding point.
4. The method for determining the profile error of a non-complete annulus according to claim 3, characterized in that: If the corresponding point is located in the edge area of the ideal torus, the minimum distance from the measuring point to the ideal torus is calculated based on the microsphere fitting method and the measuring point coordinates, including: If the corresponding point is located in the edge area of the ideal torus, determining the minimum arc-shaped surface patch containing the corresponding point; Fitting an approximate spherical surface according to the minimum arc-shaped surface patch, and calculating the minimum distance according to the approximate spherical surface and the coordinates of the measuring point; The calculation formula of the minimum distance is: d=|R1-O1Q| Where d is the minimum distance, R1 is the radius of the approximate sphere, O1 is the center of the approximate sphere, and O1Q is the distance from the measuring point Q to the center O1 of the approximate sphere.
5. The method for determining the profile error of a non-complete annulus according to claim 4, characterized in that: After calculating the minimum distance from the measuring point to the ideal torus according to the approximate spherical surface, the method further includes: Subdividing the minimum arc surface patch into a plurality of iterative arc surface patches with equal arc length, wherein the iterative arc surface patch has four iterative vertices; Calculate the iterative point-to-point distance between the measuring point and each iterative vertex on the minimum arc-shaped surface patch, and take the iterative vertex corresponding to the minimum iterative point-to-point distance as the iterative corresponding point of the measuring point; Determine a minimum iterative arcuate patch containing the iterative corresponding points, fit an iterative approximate sphere according to the minimum iterative arcuate patch, and calculate the iterative minimum distance according to the iterative approximate sphere and the coordinates of the measuring point; When the absolute value of the difference between the minimum distance and the iterative minimum distance is less than a preset error, the iterative minimum distance is taken as the minimum distance; otherwise, the iterative minimum distance is taken as the minimum distance, the minimum iterative arcuate patch is taken as the minimum arcuate patch and the above steps are repeated until the absolute value of the difference between the minimum distance and the iterative minimum distance is less than a preset error.
6. The method for determining the profile error of a non-complete annulus according to claim 3, characterized in that: The ideal torus parameters include: torus center offset and torus arc radius; Correspondingly, if the corresponding point is not located in the edge area of the ideal torus, determining the minimum distance from the measuring point to the ideal torus based on the ideal torus parameter and the measuring point coordinates includes: If the corresponding point is not located in the edge area of the ideal torus, the minimum distance is determined according to the torus center offset, the torus arc radius and the measuring point coordinates; The calculation formula of the minimum distance is: Where d is the minimum distance, the coordinates of the measuring point are (x, y, z), R is the offset distance of the center of the torus, and r is the radius of the torus arc.
7. The method for determining the profile error of a non-complete annulus according to any one of claims 1 to 6, characterized in that: The objective function is: f=max{2d i } Where, f is the annular profile error, d i is the minimum distance corresponding to the i-th measuring point.
8. A device for determining the profile error of a non-complete annulus, characterized in that: include: An acquisition module, used to acquire a measurement annulus and an ideal annulus of the part to be measured, wherein the measurement annulus includes measured points of the part to be measured, and the measured points correspond to measured point coordinates; and the ideal annulus includes ideal annulus parameters; A coordinate transformation module, for performing coordinate transformation processing on the measured points according to coordinate transformation parameters based on the ideal coordinate system corresponding to the ideal annulus, so that the measured coordinate system corresponding to the measured annulus coincides with the ideal coordinate system, and obtaining the measured points after coordinate transformation processing and the corresponding measured point coordinates; A judgment module, used to subdivide the ideal torus into a plurality of facets of equal arc length, determine the nearest corresponding point of the measuring point on the ideal torus according to the facets, and judge whether the corresponding point is located in the edge area of the ideal torus; when the corresponding point is located in the edge area of the ideal torus, calculate the minimum distance from the measuring point to the ideal torus based on the microsphere fitting method and the coordinates of the measuring point; when the corresponding point is not located in the edge area of the ideal torus, determine the minimum distance from the measuring point to the ideal torus based on the ideal torus parameters and the coordinates of the measuring point; A determination module is used to construct a torus profile error function based on the coordinate transformation parameters and the ideal torus parameters as an objective function according to the minimum distance, solve the objective function based on a differential evolution algorithm, and determine the torus profile error; wherein the ideal torus parameters and the coordinate transformation parameters are quantities to be optimized.
9. A terminal device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the method for determining the non-complete annular surface profile error according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for determining the non-complete annular surface profile error according to any one of claims 1 to 7 is implemented.
