Tool path planning method and device, electronic equipment and computer readable storage medium

By acquiring the theoretical and actual mesh of the target workpiece, toolpath information with small error and high precision is generated, solving the problem of inconsistent workpiece surfaces, realizing efficient and accurate toolpath planning, and improving machining quality.

CN117289648BActive Publication Date: 2026-11-27SUZHOU QIANJI INTELLIGENT SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211575113.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2026-11-27
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

In existing technologies, the surfaces on actual workpieces are inconsistent with theoretical models, which makes it impossible to achieve a smooth connection between the machined and unmachined areas of the actual workpiece based on theoretical toolpaths. Furthermore, existing toolpath planning methods are complex and consume a lot of computational resources.

Method used

By acquiring the theoretical and actual meshes of the target workpiece, and utilizing the theoretical toolpath information, theoretical mesh, and actual mesh, actual toolpath information with small errors and high accuracy is generated to adapt to the actual curved surface contour of the workpiece for toolpath planning.

Benefits of technology

It improves machining accuracy and efficiency, eliminates shape deviations on the actual curved surface of the workpiece, simplifies the operation process, and reduces the consumption of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117289648B_ABST
    Figure CN117289648B_ABST
Patent Text Reader

Abstract

The application provides a tool path planning method and device, electronic equipment and a computer readable storage medium. The method comprises: obtaining a theoretical grid based on a theoretical surface of a target workpiece; obtaining an actual grid of the target workpiece; obtaining actual tool path information based on theoretical tool path information, the theoretical grid and the actual grid. The theoretical tool path information comprises position information of a plurality of theoretical tool points, and the actual tool path information comprises position information of a plurality of actual tool points. The plurality of theoretical tool points are projected into the theoretical grid to obtain a plurality of theoretical projection points; a theoretical grid index and a theoretical gravity center coordinate corresponding to each theoretical projection point are obtained; position information of the plurality of actual tool points is obtained; and actual tool path information is planned based on the position information of the plurality of actual tool points. A tool path with small error and high precision can be generated, and the planned tool path can be adjusted to follow the contour of the actual surface of the workpiece.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of CNC machining and manufacturing, and in particular to toolpath planning methods, devices, electronic equipment, and computer-readable storage media. Background Technology

[0002] In the existing technology, the curved surfaces on the actual workpiece have deviations in shape, height, etc., which are inconsistent with the curved surfaces in the theoretical model. Machining based on the theoretical toolpath cannot make the machined area and the non-machined area of ​​the actual workpiece smoothly connected after machining. Therefore, toolpath planning for the actual toolpath is imperative.

[0003] Patent CN113867259A discloses a method for reconstructing the lateral information of tool trajectories based on spatial grids. This method includes the following steps: S1. Based on the G-code on the machining trajectory, determine the coordinates of each tool position point on the machining trajectory, determine the extreme coordinates along the coordinate axis of all tool positions, and divide the area included by these extreme coordinates into multiple subdivided grids; S2. For each group of adjacent tool positions corresponding to the G-code, determine the grids intersecting with the straight lines formed by connecting these adjacent tool positions, and mark the intersecting grids. Traverse all tool positions to obtain the correspondence between tool positions and grids; S3. For any tool position point ps, construct a search range, calculate the distance between the tool position point corresponding to each grid and the tool position point ps based on the correspondence established in step S2, and take the closest tool position point as the lateral point of tool position ps. Obtain the lateral points of all tool positions in this way, thus obtaining the lateral information of the tool trajectory. This method can only obtain the lateral points of tool positions and the lateral information of the tool trajectory, and it is complex to operate and consumes a lot of computational resources.

[0004] Based on this, this application provides a toolpath planning method, apparatus, electronic device, and computer-readable storage medium to improve the prior art. Summary of the Invention

[0005] The purpose of this application is to provide a toolpath planning method, device, electronic equipment, and computer-readable storage medium that can generate toolpaths with small errors and high precision, enabling the planned toolpaths to be adjusted to adapt to the contours of the actual curved surface of the workpiece.

[0006] The objective of this application is achieved through the following technical solution:

[0007] Firstly, this application provides a toolpath planning method, the method comprising:

[0008] Based on the theoretical surface of the target workpiece, a theoretical mesh is obtained;

[0009] Obtain the actual mesh of the target workpiece;

[0010] Based on the theoretical toolpath information, the theoretical mesh, and the actual mesh, actual toolpath information is obtained. The actual toolpath information is used to process the target workpiece. The theoretical toolpath information includes the position information of multiple theoretical tool points, and the actual toolpath information includes the position information of multiple actual tool points.

[0011] The beneficial effects of this technical solution are as follows: First, based on the theoretical surface of the target workpiece, a theoretical mesh of the theoretical surface of the target workpiece is obtained. Then, the actual mesh of the target workpiece is obtained. Finally, based on the theoretical toolpath information, the theoretical mesh, and the actual mesh of the target workpiece, the actual toolpath information is obtained, and the target workpiece is machined based on the actual toolpath information. This can generate toolpaths with small errors and high precision, enabling the planned toolpath to adapt to the contour of the actual surface of the workpiece, improving machining accuracy and efficiency, and eliminating shape deviations on the actual surface of the target workpiece.

[0012] In some optional implementations, obtaining the actual mesh of the target workpiece includes:

[0013] Based on the theoretical location information of multiple measurement points, the actual location information of the multiple measurement points is obtained by using an on-machine measurement method;

[0014] Based on the theoretical and actual position information of each measurement point, the position error of each measurement point is obtained;

[0015] The position error of each measurement point is decomposed to obtain the error decomposition result for each measurement point;

[0016] Based on the theoretical mesh and the error decomposition results of each measurement point, the actual mesh of the target workpiece is obtained.

[0017] The beneficial effects of this technical solution are as follows: First, based on the theoretical position information of multiple measurement points, the actual position information of the measurement points is obtained through machine measurement. Then, based on the theoretical and actual position information of each measurement point (by comparing the theoretical and actual positions), the position error of each measurement point is obtained. Error decomposition is performed on the position error of each measurement point to obtain the error decomposition result. Finally, based on the theoretical mesh and the error decomposition result of each measurement point, the actual mesh of the target workpiece is obtained. On-Machine Inspection (OMI) uses machine tool hardware as a carrier, equipped with corresponding measuring tools, to perform real-time geometric feature measurement on the machine tool during workpiece processing. The method guides subsequent process improvements based on the inspection results. It allows for feature measurement of the target workpiece without moving it, offering high accuracy, high intelligence, and low manpower and time costs. By comparing the theoretical and actual positions, the position error of each measurement point can be easily obtained. Furthermore, the actual mesh of the target workpiece is derived by inversely using the theoretical mesh and the error decomposition result of each measurement point. This eliminates the need to inversely calculate all points and lines in the theoretical mesh; it only requires calculation based on the measurement points, simplifying operation and saving costs.

[0018] In some optional implementations, the step of performing error decomposition on the position error of each of the measurement points to obtain the error decomposition result for each of the measurement points includes:

[0019] For each of the measurement points, the following processing is performed:

[0020] The measurement points are projected onto the theoretical grid to obtain the grid index and centroid coordinates corresponding to the measurement points;

[0021] Based on the grid index and centroid coordinates corresponding to the measurement points, the position error of the measurement points is decomposed to obtain the error decomposition result for each measurement point.

[0022] The beneficial effects of this technical solution are as follows: Measurement points are projected onto a theoretical grid to obtain the grid index and centroid coordinates corresponding to the measurement points; using the grid index and centroid coordinates, the position error of the measurement points is decomposed to obtain the error decomposition result for each measurement point. By projecting the measurement points onto the theoretical grid, not only can the grid index and centroid coordinates corresponding to the measurement points be obtained, but the position error of the measurement points can also be obtained, making the position error more accurate. This allows for accurate acquisition and decomposition of the position information of the measurement points; using the theoretical grid allows for a more ingenious reduction of the region corresponding to each measurement point, thus enabling more accurate and convenient acquisition of its position information, while consuming fewer computational resources.

[0023] In some optional implementations, obtaining the actual mesh of the target workpiece based on the theoretical mesh and the error decomposition results of each of the measurement points includes:

[0024] Based on the error decomposition results of each measurement point, the theoretical mesh is deformed to obtain the actual mesh of the target workpiece.

[0025] The beneficial effects of this technical solution are as follows: by utilizing the error decomposition results of each measurement point, the theoretical mesh is deformed to obtain the actual mesh of the target workpiece. Deforming the theoretical mesh based on the error decomposition results of the measurement points can better preserve the local details of the actual mesh, resulting in high fidelity and good fitting.

[0026] In some optional implementations, obtaining actual toolpath information based on theoretical toolpath information, the theoretical mesh, and the actual mesh includes:

[0027] Multiple theoretical tool points are projected onto the theoretical grid to obtain multiple theoretical projection points;

[0028] Obtain the theoretical grid index and theoretical centroid coordinates corresponding to each theoretical projection point;

[0029] Based on the actual mesh and the theoretical mesh index and theoretical centroid coordinates corresponding to each theoretical projection point, the position information of multiple actual tool points is obtained.

[0030] Based on the location information of multiple actual tool points, the actual toolpath information is planned.

[0031] The beneficial effects of this technical solution are as follows: First, multiple theoretical tool positions are projected onto a theoretical mesh to obtain multiple theoretical projection points; then, the theoretical mesh index (the mesh number corresponding to each theoretical projection point in the theoretical mesh) and the theoretical centroid coordinates corresponding to each theoretical projection point are obtained; based on the actual mesh and the theoretical mesh index and theoretical centroid coordinates corresponding to each theoretical projection point, the position information of multiple actual tool positions is obtained; thus, the actual toolpath information is planned. By projecting theoretical tool positions onto a theoretical mesh, not only can the mesh index corresponding to the theoretical tool position be obtained, but also the centroid coordinates corresponding to the theoretical tool position can be obtained, thereby obtaining the position information of the actual tool positions, making the position information of the actual tool positions more accurate, and subsequent machining operations can be performed accurately according to the actual tool positions.

[0032] In some optional implementations, obtaining the position information of multiple actual tool points based on the actual mesh and the theoretical mesh index and theoretical centroid coordinates corresponding to each theoretical projection point includes:

[0033] Based on the theoretical grid index corresponding to each theoretical projection point, obtain the actual grid index corresponding to each actual projection point in the actual grid;

[0034] Based on the theoretical centroid coordinates corresponding to each theoretical projection point, the actual centroid coordinates corresponding to each actual projection point in the actual grid are obtained.

[0035] Based on the actual grid index and actual centroid coordinates corresponding to each actual projection point in the actual grid, the position information of each actual projection point in the actual grid is obtained;

[0036] Based on the position information of each actual projection point in the actual grid, the position information of each actual tool point is obtained.

[0037] The beneficial effects of this technical solution are as follows: Based on the theoretical grid index corresponding to each theoretical projection point, the actual grid index corresponding to each actual projection point in the actual grid is obtained; based on the theoretical centroid coordinates corresponding to each theoretical projection point, the actual centroid coordinates corresponding to each actual projection point in the actual grid are obtained; based on the actual grid index and actual centroid coordinates corresponding to each actual projection point in the actual grid, the position information of each actual projection point in the actual grid is obtained; based on the position information of each actual projection point in the actual grid, the position information of each actual tool position point is obtained. By utilizing the information in the theoretical grid, the information in the actual grid is calculated, and by utilizing the principle of projection points in mathematics, the position information of the actual tool position point is indirectly obtained. If projection points are not used, it is impossible to link the theoretical grid, the actual grid, and the actual tool position point, which is not conducive to calculating the position information of the actual tool position point.

[0038] In some optional implementations, obtaining the position information of each actual tool point based on the position information of each actual projection point in the actual grid includes:

[0039] Based on the position information of each actual projection point in the actual grid, each actual projection point is back-projected to obtain the position information of multiple actual tool points.

[0040] The beneficial effects of this technical solution are as follows: based on the position information of each actual projection point in the actual grid, back-projection is performed on each actual projection point to obtain the position information of multiple actual tooling point locations. Back-projection makes it easier to obtain the position information of actual tooling point locations. In the previous steps, the projection equation of the theoretical projection point has already been obtained by projecting the theoretical tooling point location, so there is no need to perform a large number of mathematical calculations again during the back-projection process, which can save computational resources.

[0041] Secondly, this application provides a toolpath planning device, the device comprising:

[0042] The theoretical mesh module is used to obtain a theoretical mesh based on the theoretical surface of the target workpiece;

[0043] The actual mesh module is used to obtain the actual mesh of the target workpiece;

[0044] The actual toolpath information module is used to obtain actual toolpath information based on theoretical toolpath information, the theoretical mesh, and the actual mesh. The actual toolpath information is used to process the target workpiece. The theoretical toolpath information includes the position information of multiple theoretical tool points, and the actual toolpath information includes the position information of multiple actual tool points.

[0045] In some optional implementations, the actual network module obtains the actual mesh of the target workpiece in the following manner:

[0046] Based on the theoretical location information of multiple measurement points, the actual location information of the multiple measurement points is obtained by using an on-machine measurement method;

[0047] Based on the theoretical and actual position information of each measurement point, the position error of each measurement point is obtained;

[0048] The position error of each measurement point is decomposed to obtain the error decomposition result for each measurement point;

[0049] Based on the theoretical mesh and the error decomposition results of each measurement point, the actual mesh of the target workpiece is obtained.

[0050] In some optional implementations, the actual network module performs error decomposition on the position error of each measurement point in the following manner to obtain the error decomposition result for each measurement point:

[0051] For each of the measurement points, the following processing is performed:

[0052] The measurement points are projected onto the theoretical grid to obtain the grid index and centroid coordinates corresponding to the measurement points;

[0053] Based on the grid index and centroid coordinates corresponding to the measurement points, the position error of the measurement points is decomposed to obtain the error decomposition result for each measurement point.

[0054] In some optional implementations, the actual network module obtains the actual mesh of the target workpiece in the following manner:

[0055] Based on the error decomposition results of each measurement point, the theoretical mesh is deformed to obtain the actual mesh of the target workpiece.

[0056] In some optional implementations, the actual toolpath information module obtains the actual toolpath information based on the theoretical toolpath information, the theoretical mesh, and the actual mesh in the following manner:

[0057] Multiple theoretical tool points are projected onto the theoretical grid to obtain multiple theoretical projection points;

[0058] Obtain the theoretical grid index and theoretical centroid coordinates corresponding to each theoretical projection point;

[0059] Based on the actual grid and the theoretical grid index and theoretical centroid coordinates corresponding to each theoretical projection point, the position information of multiple actual tool points is obtained;

[0060] Based on the location information of multiple actual tool points, the actual toolpath information is planned.

[0061] In some optional implementations, the actual toolpath information is obtained by acquiring the position information of multiple actual tool points in the following manner:

[0062] Based on the theoretical grid index corresponding to each theoretical projection point, obtain the actual grid index corresponding to each actual projection point in the actual grid;

[0063] Based on the theoretical centroid coordinates corresponding to each theoretical projection point, the actual centroid coordinates corresponding to each actual projection point in the actual grid are obtained.

[0064] Based on the actual grid index and actual centroid coordinates corresponding to each actual projection point in the actual grid, the position information of each actual projection point in the actual grid is obtained;

[0065] Based on the position information of each actual projection point in the actual grid, the position information of each actual tool point is obtained.

[0066] In some optional implementations, the actual network module obtains the position information of each actual tool point based on the position information of each actual projection point in the actual grid in the following manner:

[0067] Based on the position information of each actual projection point in the actual grid, each actual projection point is back-projected to obtain the position information of multiple actual tool points.

[0068] Thirdly, this application provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of any of the above methods.

[0069] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of any of the above methods. Attached Figure Description

[0070] The present application will be further described below with reference to the accompanying drawings and embodiments.

[0071] Figure 1 A flowchart illustrating a toolpath planning method provided in an embodiment of this application is shown.

[0072] Figure 2 A schematic diagram of a process for obtaining a theoretical mesh is shown in an embodiment of this application.

[0073] Figure 3 This illustration shows a flowchart of an embodiment of the present application for obtaining actual toolpath information.

[0074] Figure 4 This illustration shows a flowchart of an embodiment of the present application for obtaining the position information of multiple actual tool points.

[0075] Figure 5 A schematic diagram of a measurement point provided in an embodiment of this application is shown.

[0076] Figure 6 A schematic diagram of a theoretical grid provided in an embodiment of this application is shown.

[0077] Figure 7 This diagram illustrates the positional relationship between a measurement point and a theoretical grid, as provided in an embodiment of this application.

[0078] Figure 8 A schematic diagram of the vertices of a theoretical mesh provided in an embodiment of this application is shown.

[0079] Figure 9 This illustration shows a schematic diagram of deforming a theoretical mesh to obtain an actual mesh, according to an embodiment of this application.

[0080] Figure 10 A schematic diagram of a theoretical cutting point and a theoretical projection point provided in an embodiment of this application is shown.

[0081] Figure 11 This illustration shows a schematic diagram of an actual tool position point and an actual projection point provided in an embodiment of this application.

[0082] Figure 12 A schematic diagram of a toolpath planning device provided in an embodiment of this application is shown.

[0083] Figure 13 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown.

[0084] Figure 14 A schematic diagram of the structure of a program product provided in an embodiment of this application is shown. Detailed Implementation

[0085] The embodiments of this application will be further described below with reference to the accompanying drawings and specific implementation methods. It should be noted that, without conflict, the various embodiments or technical features described below can be arbitrarily combined to form new implementation methods.

[0086] In the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, a and b and c, where a, b, and c can be single or multiple. It is worth noting that "at least one" can also be interpreted as "one or more".

[0087] It should also be noted that, in the embodiments of this application, the words "exemplary" or "for example" are used to indicate that they are examples, illustrations, or descriptions. Any implementation or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other implementations or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0088] Below, we will first briefly describe one of the technical fields of this application (adaptive compensation).

[0089] Shape-based compensation, also known as contour adaptation, addresses the issue of surface deviations on actual parts, which differ from the surfaces in the theoretical model. The actual part's surface is divided into machined and unmachined areas. The machining requirement is that the machined and unmachined areas on the actual surface should smoothly connect after machining. Therefore, the toolpath programmed based on the theoretical surface (theoretical toolpath) cannot meet the machining requirements. Consequently, the machining toolpath must be able to adapt to the contour of the actual surface. This toolpath adjustment process is called shape-based compensation or contour adaptation. Its main applications include surface repair and equal-thickness machining of castings, forgings, and 3D printed parts.

[0090] Method Implementation Examples

[0091] See Figure 1 , Figure 1 A flowchart illustrating a toolpath planning method provided in an embodiment of this application is shown.

[0092] This application provides a toolpath planning method, the method comprising:

[0093] Step S101: Obtain the theoretical mesh based on the theoretical surface of the target workpiece;

[0094] Step S102: Obtain the actual mesh of the target workpiece;

[0095] Step S103: Based on the theoretical toolpath information, the theoretical mesh, and the actual mesh, obtain the actual toolpath information. The actual toolpath information is used to process the target workpiece. The theoretical toolpath information includes the position information of multiple theoretical tool points, and the actual toolpath information includes the position information of multiple actual tool points.

[0096] Therefore, firstly, based on the theoretical surface of the target workpiece, the theoretical mesh of the theoretical surface of the target workpiece is obtained, then the actual mesh of the target workpiece is obtained, and finally, based on the theoretical toolpath information, theoretical mesh, and actual mesh of the target workpiece, the actual toolpath information is obtained, and the target workpiece is machined based on the actual toolpath information.

[0097] It can generate toolpaths with small errors and high precision, enabling the planned toolpaths to adapt to the contours of the actual curved surface of the workpiece, thereby improving machining accuracy and efficiency and eliminating shape deviations on the actual curved surface of the target workpiece.

[0098] The embodiments of this application do not limit the target workpiece, which may be, for example, a casting, a forging, a 3D printed part, a turbine, a bladed disk, or a gear. The gear may be, for example, a spur gear, a rack internal gear, a helical gear, a helical rack herringbone gear, a straight bevel gear, an arc bevel gear, a zero-degree bevel gear, an interlocking shaft helical gear, a cylindrical worm gear worm wheel drum worm pair hypoid gear, a face gear, etc.

[0099] The embodiments of this application do not limit the shape of the actual mesh, which may be, for example, a triangular mesh, a circular mesh, a rectangular mesh, a square mesh, a pentagonal mesh, an octagonal mesh, etc.

[0100] The embodiments of this application do not limit the actual number of grids, which can be, for example, 1, 2, 3, 4, 5, 6, 10, 15, 20, 30, 50, 80, 100, 200, 500, 1000, etc.

[0101] The embodiments of this application do not limit the shape of the theoretical network, which may be, for example, a triangular mesh, a circular mesh, a rectangular mesh, a square mesh, a pentagonal mesh, an octagonal mesh, etc.

[0102] The embodiments of this application do not limit the number of theoretical grids, which can be, for example, 1, 2, 3, 4, 5, 6, 10, 15, 20, 30, 50, 80, 100, 200, 500, 1000, etc.

[0103] The number of theoretical cutting points is not limited in the embodiments of this application. For example, it can be 1, 2, 3, 4, 5, 6, 10, 15, 20, 30, 50, 80, 100, 200, 500, 1000, etc.

[0104] The number of actual cutting points is not limited in the embodiments of this application. For example, it can be 1, 2, 3, 4, 5, 6, 10, 15, 20, 30, 50, 80, 100, 200, 500, 1000, etc.

[0105] See Figure 2 , Figure 2 A schematic diagram of a process for obtaining a theoretical mesh is shown in an embodiment of this application.

[0106] In some optional implementations, obtaining the actual mesh of the target workpiece (i.e., step S102) includes:

[0107] Step S301: Based on the theoretical location information of multiple measurement points, obtain the actual location information of the multiple measurement points using an on-machine measurement method;

[0108] Step S202: Based on the theoretical and actual position information of each measurement point, obtain the position error of each measurement point;

[0109] Step S203: Perform error decomposition on the position error of each measurement point to obtain the error decomposition result for each measurement point;

[0110] Step S204: Based on the theoretical mesh and the error decomposition results of each measurement point, obtain the actual mesh of the target workpiece.

[0111] Therefore, firstly, based on the theoretical position information of multiple measurement points, the actual position information of the measurement points is obtained by machine measurement. Based on the theoretical position information and the actual position information of each measurement point (by comparing the theoretical position and the actual position), the position error of each measurement point is obtained. The position error of each measurement point is decomposed to obtain the error decomposition result of each measurement point. Then, based on the theoretical mesh and the error decomposition result of each measurement point, the actual mesh of the target workpiece is obtained.

[0112] The number of measurement points is not limited in the embodiments of this application, and can be, for example, 1, 2, 3, 4, 5, 6, 10, 15, 20, 30, 50, 80, 100, 200, 500, 1000, etc.

[0113] On-Machine Inspection (OMI) is a method that uses machine tool hardware as a carrier and is equipped with corresponding measuring tools to measure geometric features on the machine tool in real time during the workpiece processing. The method guides the improvement of subsequent processes based on the inspection results. It can measure the features of the target workpiece without moving the target workpiece, and has high accuracy, high level of intelligence, and low manpower and time costs.

[0114] By comparing the theoretical position with the actual position, the positional error of each measurement point can be easily obtained; and the actual mesh of the target workpiece can be derived by back-calculating the theoretical mesh and the error decomposition results of each measurement point. It is not necessary to back-calculate all the points and lines in the theoretical mesh, but only the measurement points are needed to calculate the result. The operation is simple and cost-effective.

[0115] In some optional implementations, on-machine measurement (OMI) is a measurement method that uses the hardware of a CNC machine tool as a carrier, along with corresponding measuring tools and software, to complete the measurement of the geometric features of a part on the CNC machine tool. The hardware may include machine tool probes, machine tool tool setters, etc., while the software may include macro programs, dedicated 3D measurement software, etc. Besides measuring part dimensions and accuracy, on-machine measurement can also be used for workpiece alignment, tool breakage detection, machine tool health status monitoring, machining error compensation, and parameter setting. It has significant guiding significance for improving machining accuracy and constructing large closed-loop systems, especially for complex curved surfaces; the more complex the workpiece and the higher the accuracy requirements, the more obvious its advantages become. Based on the measurement method (whether the probe directly contacts the workpiece), on-machine measurement can be divided into three categories: contact, non-contact, and composite. This application does not impose any limitations on these categories.

[0116] In some optional implementations, the step of performing error decomposition on the position error of each measurement point to obtain the error decomposition result for each measurement point (i.e., step S203) includes:

[0117] For each of the measurement points, the following processing is performed:

[0118] The measurement points are projected onto the theoretical grid to obtain the grid index and centroid coordinates corresponding to the measurement points;

[0119] Based on the grid index and centroid coordinates corresponding to the measurement points, the position error of the measurement points is decomposed to obtain the error decomposition result for each measurement point.

[0120] Therefore, the measurement points are projected onto the theoretical grid to obtain the grid index and centroid coordinates corresponding to the measurement points; using the grid index and centroid coordinates corresponding to the measurement points, the position error of the measurement points is decomposed to obtain the error decomposition result for each measurement point.

[0121] By projecting the measurement points onto the theoretical grid, not only can the grid index corresponding to the measurement point be obtained, but also the centroid coordinates corresponding to the measurement point can be obtained. Thus, the position error of the measurement point can be obtained by using the grid index and the centroid coordinates corresponding to the measurement point, making the position error more accurate. The position information of the measurement point can be accurately obtained and the position information can be decomposed.

[0122] Using theoretical grids allows for a more ingenious reduction of the area corresponding to each measurement point, thereby obtaining its location information more accurately and conveniently, while consuming less computational resources.

[0123] In some optional implementations, the grid index corresponding to the measurement point can be the grid number where the measurement point is located, which can be, for example, the grid number marked with numbers, letters, Chinese characters, symbols, etc.

[0124] In some optional implementations, the center coordinates of the measurement point can be calculated from the vertices of the grid corresponding to the measurement point. For example, when the grid corresponding to the measurement point is a triangle and the coordinates of the three vertices of the grid corresponding to the measurement point are (x1, y1, z1), (x2, y2, z2), and (x3, y3, z3), the centroid coordinates of the measurement point are (x, y), where x = (x1 + x2 + x3) / 3 and y = (y1 + y2 + y3) / 3.

[0125] The embodiments of this application do not limit the error decomposition results of the measurement points. For example, it can be the error between the actual grid index and the theoretical grid index of the measurement point, the error between the actual centroid coordinates and the theoretical centroid coordinates of the measurement point, or the error between the actual grid index and the theoretical grid index of the measurement point and the error between the actual centroid coordinates and the theoretical centroid coordinates of the measurement point.

[0126] In some optional implementations, obtaining the actual mesh of the target workpiece (i.e., step S204) based on the theoretical mesh and the error decomposition results of each of the measurement points includes:

[0127] Based on the error decomposition results of each measurement point, the theoretical mesh is deformed to obtain the actual mesh of the target workpiece.

[0128] Therefore, the theoretical mesh is deformed using the error decomposition results at each measurement point to obtain the actual mesh of the target workpiece. Deforming the theoretical mesh based on the error decomposition results at the measurement points can better preserve the local details of the actual mesh, resulting in high fidelity and good fit.

[0129] This application does not limit the method of deforming the theoretical mesh. For example, it can use the Laplace mesh deformation algorithm to deform the theoretical mesh. The essence of the Laplace deformation algorithm is the process of encoding and decoding the local detail features of the mesh. The encoding process refers to converting the Euclidean space coordinates of the mesh vertices to Laplace coordinates, where the Laplace coordinates contain the local detail features of the mesh. The decoding process refers to inversely calculating the Euclidean space coordinates using differential coordinates.

[0130] See Figure 3 , Figure 3 This illustration shows a flowchart of an embodiment of the present application for obtaining actual toolpath information.

[0131] In some optional implementations, obtaining the actual toolpath information based on the theoretical toolpath information, the theoretical mesh, and the actual mesh (i.e., step S103) includes:

[0132] Step S301: Project multiple theoretical tool points onto the theoretical grid to obtain multiple theoretical projection points;

[0133] Step S302: Obtain the theoretical grid index and theoretical centroid coordinates corresponding to each theoretical projection point;

[0134] Step S303: Based on the actual mesh and the theoretical mesh index and theoretical centroid coordinates corresponding to each theoretical projection point, obtain the position information of multiple actual tool points;

[0135] Step S304: Based on the position information of multiple actual tool points, the actual toolpath information is planned.

[0136] Therefore, firstly, multiple theoretical tool points are projected onto the theoretical grid to obtain multiple theoretical projection points; then, the theoretical grid index (the grid number corresponding to each theoretical projection point in the theoretical grid) and the theoretical centroid coordinates corresponding to each theoretical projection point are obtained; based on the actual grid and the theoretical grid index and theoretical centroid coordinates corresponding to each theoretical projection point, the position information of multiple actual tool points is obtained; thus, the actual toolpath information is planned.

[0137] By projecting the theoretical tool position point onto the theoretical mesh, not only can the mesh index corresponding to the theoretical tool position point be obtained, but also the centroid coordinates corresponding to the theoretical tool position point can be obtained, thereby obtaining the position information of the actual tool position point. This makes the position information of the actual tool position point more accurate, and subsequent machining operations can be performed accurately according to the actual tool position point.

[0138] This application does not limit the theoretical toolpath information. The theoretical toolpath information may include the location information of the theoretical tool point, the number of theoretical tool points, the cutting direction of the theoretical tool point, and the path information of the theoretical toolpath.

[0139] This application does not limit the actual toolpath information. The actual toolpath information may include the location information of the actual tool point, the number of actual tool points, the cutting direction of the actual tool point, and the path information of the actual toolpath.

[0140] In some alternative implementations,

[0141] See Figure 4 , Figure 4 This illustration shows a flowchart of an embodiment of the present application for obtaining the position information of multiple actual tool points.

[0142] In some optional implementations, obtaining the position information of multiple actual tool points based on the actual mesh and the theoretical mesh index and theoretical centroid coordinates corresponding to each theoretical projection point (i.e., step S303) includes:

[0143] Step S401: Based on the theoretical grid index corresponding to each theoretical projection point, obtain the actual grid index corresponding to each actual projection point in the actual grid;

[0144] Step S402: Based on the theoretical centroid coordinates corresponding to each theoretical projection point, obtain the actual centroid coordinates corresponding to each actual projection point in the actual grid;

[0145] Step S403: Based on the actual grid index and actual centroid coordinates corresponding to each actual projection point in the actual grid, obtain the position information of each actual projection point in the actual grid;

[0146] Step S404: Based on the position information of each actual projection point in the actual grid, obtain the position information of each actual tool point.

[0147] Therefore, based on the theoretical grid index corresponding to each theoretical projection point, the actual grid index corresponding to each actual projection point in the actual grid is obtained; based on the theoretical centroid coordinates corresponding to each theoretical projection point, the actual centroid coordinates corresponding to each actual projection point in the actual grid are obtained.

[0148] Based on the actual grid index and actual centroid coordinates of each actual projection point in the actual grid, the position information of each actual projection point in the actual grid is obtained; based on the position information of each actual projection point in the actual grid, the position information of each actual tool position point is obtained.

[0149] By utilizing information from the theoretical mesh, information from the actual mesh can be calculated. By applying the principle of projection points in mathematics, the position information of the actual tool position can be indirectly obtained. If projection points are not used, it is impossible to link the theoretical mesh, the actual mesh, and the actual tool position, which is not conducive to calculating the position information of the actual tool position.

[0150] The number of theoretical projection points is not limited in the embodiments of this application. For example, it can be 1, 2, 3, 4, 5, 6, 10, 15, 20, 30, 50, 80, 100, 200, 500, 1000, etc.

[0151] The embodiments of this application do not limit the number of actual projection points, which can be, for example, 1, 2, 3, 4, 5, 6, 10, 15, 20, 30, 50, 80, 100, 200, 500, 1000, etc.

[0152] In some optional implementations, obtaining the position information of each actual tool point based on the position information of each actual projection point in the actual grid (i.e., step S404) includes:

[0153] Based on the position information of each actual projection point in the actual grid, each actual projection point is back-projected to obtain the position information of multiple actual tool points.

[0154] Therefore, based on the position information of each actual projection point in the actual grid, each actual projection point is back-projected to obtain the position information of multiple actual tool points.

[0155] Back projection can be used to obtain the actual tool position information more easily. In the previous steps, the projection equation of the theoretical tool position has already been obtained by projecting it. Therefore, there is no need to perform a lot of mathematical calculations again during the back projection process, which can save computing resources.

[0156] See Figures 5 to 10 , Figure 5 This illustration shows a schematic diagram of a measurement point provided in an embodiment of this application. Figure 6 A schematic diagram of a theoretical grid provided in an embodiment of this application is shown. Figure 7 This diagram illustrates the positional relationship between a measurement point and a theoretical grid, as provided in an embodiment of this application. Figure 8 This illustration shows a schematic diagram of the vertices of a theoretical mesh provided in an embodiment of this application. Figure 9 This illustration shows a schematic diagram of deforming a theoretical mesh to obtain an actual mesh, according to an embodiment of this application. Figure 10 This illustration shows a schematic diagram of a theoretical cutting point and a theoretical projection point provided in an embodiment of this application. Figure 11 A schematic diagram of an actual tool position point and an actual projection point provided in an embodiment of this application is shown.

[0157] In one specific embodiment, such as Figure 5 First, several measurement points are planned on the theoretical surface. Based on the theoretical position information of multiple measurement points, the actual position information of the measurement points is obtained by machine measurement. The position error of each measurement point is obtained by comparing its theoretical and actual positions. Then, the theoretical surface is triangularly meshed to obtain the following... Figure 6 The theoretical grid is shown, and the measurement points are projected onto the theoretical grid (e.g., Figure 7 This is used to obtain the grid index and centroid coordinates corresponding to the measurement points. A coordinate system is constructed based on the theoretical surface, where u is the vertical axis parallel to the theoretical surface and pointing upwards, and v is the horizontal axis parallel to the theoretical surface and pointing horizontally to the right. The grid (triangle) index for each measurement point is i, and its centroid coordinates relative to the three vertices on the corresponding grid (triangle) are g. i =(x i ,y i ,z i ).

[0158] Using the grid index and centroid coordinates corresponding to the measurement points, error decomposition is performed on the positional errors of the measurement points to obtain the error decomposition results for each measurement point. The specific operation can be as follows: Figure 8 As shown, the positional error of each measurement point is decomposed onto the three vertices of its respective grid (triangle), and the weight value of the decomposition is the centroid coordinate g relative to the three vertices. i =(xi ,y i ,z i After decomposition, the error direction of the vertex is the average normal of the adjacent triangles.

[0159] like Figure 9 As shown, the theoretical mesh is deformed using the magnitude and direction of the errors at its vertices to obtain the actual mesh. In this embodiment, the Laplace mesh deformation algorithm is mainly used to deform the theoretical mesh. The essence of the Laplace deformation algorithm is the process of encoding and decoding the local detail features of the mesh. The encoding process refers to converting the Euclidean space coordinates of the mesh vertices to Laplace coordinates, where the Laplace coordinates contain the local detail features of the mesh. The decoding process refers to inversely calculating the Euclidean space coordinates using differential coordinates. By making the Laplace coordinates of each vertex before deformation as equal as possible to the Laplace coordinates of each vertex after deformation, the actual mesh is calculated.

[0160] Multiple theoretical toolpath points are projected onto a theoretical mesh to obtain multiple theoretical projection points. Then, the theoretical mesh index (the mesh number corresponding to each theoretical projection point) and the theoretical centroid coordinates corresponding to each theoretical projection point are obtained. Based on the actual mesh and the theoretical mesh index and theoretical centroid coordinates of each theoretical projection point, the position information of multiple actual toolpath points is obtained; thus, the actual toolpath information is planned. Specifically, firstly, based on the theoretical mesh index corresponding to each theoretical projection point, the actual mesh index corresponding to each actual projection point in the actual mesh is obtained. Then, based on the theoretical centroid coordinates corresponding to each theoretical projection point, the actual centroid coordinates corresponding to each actual projection point in the actual mesh are obtained. Finally, based on the actual mesh index and actual centroid coordinates corresponding to each actual projection point in the actual mesh, the position information of each actual projection point in the actual mesh is obtained, thereby obtaining the position information of each actual toolpath point. Figure 10 Project the theoretical toolpath onto the theoretical triangular mesh and record each theoretical toolpath point P. i The corresponding theoretical projection point Q i The triangular patch index i, and its centroid coordinates g relative to the three vertices. i =(x i ,y i ,z i ), resulting in the index sequence I = (i1, i2, ..., i i ,…,i n ) and the barycentric coordinate sequence G=(g1,g2,…,g i ,…,g n ).like Figure 11 Then, using the index sequence I = (i1, i2, ..., i...) obtained in the previous step... i ,…,in ) and the barycentric coordinate sequence G=(g1,g2,…,g i ,…,g n This involves reversing the process to obtain the actual toolpath information. Specifically, it involves finding the corresponding triangle in the actual mesh using the triangle index i, and then using the centroid coordinates g. i =(x i ,y i ,z i The actual projection point Q is calculated. i ′ The coordinates, and then using P i →Q i The inverse projection transformation yields the actual tool position P. i ′ Then the actual toolpath can be obtained.

[0161] Device Examples

[0162] See Figure 12 , Figure 12 A schematic diagram of a toolpath planning device provided in an embodiment of this application is shown.

[0163] This application also provides a toolpath planning device, the specific implementation of which is consistent with the implementation method and the technical effect achieved in the above method embodiments, and some contents will not be repeated.

[0164] The device includes:

[0165] Theoretical mesh module 101 is used to obtain a theoretical mesh based on the theoretical surface of the target workpiece;

[0166] Actual mesh module 102 is used to acquire the actual mesh of the target workpiece;

[0167] The actual toolpath information module 103 is used to obtain actual toolpath information based on theoretical toolpath information, the theoretical mesh, and the actual mesh. The actual toolpath information is used to process the target workpiece. The theoretical toolpath information includes the position information of multiple theoretical tool points, and the actual toolpath information includes the position information of multiple actual tool points.

[0168] In some optional implementations, the actual network module 102 obtains the actual mesh of the target workpiece in the following manner:

[0169] Based on the theoretical location information of multiple measurement points, the actual location information of the multiple measurement points is obtained by using an on-machine measurement method;

[0170] Based on the theoretical and actual position information of each measurement point, the position error of each measurement point is obtained;

[0171] The position error of each measurement point is decomposed to obtain the error decomposition result for each measurement point;

[0172] Based on the theoretical mesh and the error decomposition results of each measurement point, the actual mesh of the target workpiece is obtained.

[0173] In some optional implementations, the actual network module performs error decomposition on the position error of each measurement point in the following manner to obtain the error decomposition result for each measurement point:

[0174] For each of the measurement points, the following processing is performed:

[0175] The measurement points are projected onto the theoretical grid to obtain the grid index and centroid coordinates corresponding to the measurement points;

[0176] Based on the grid index and centroid coordinates corresponding to the measurement points, the position error of the measurement points is decomposed to obtain the error decomposition result for each measurement point.

[0177] In some optional implementations, the actual network module 102 obtains the actual mesh of the target workpiece in the following manner:

[0178] Based on the error decomposition results of each measurement point, the theoretical mesh is deformed to obtain the actual mesh of the target workpiece.

[0179] In some optional implementations, the actual toolpath information module 103 obtains the actual toolpath information based on the theoretical toolpath information, the theoretical mesh, and the actual mesh in the following manner:

[0180] Multiple theoretical tool points are projected onto the theoretical grid to obtain multiple theoretical projection points;

[0181] Obtain the theoretical grid index and theoretical centroid coordinates corresponding to each theoretical projection point;

[0182] Based on the actual grid and the theoretical grid index and theoretical centroid coordinates corresponding to each theoretical projection point, the position information of multiple actual tool points is obtained;

[0183] Based on the location information of multiple actual tool points, the actual toolpath information is planned.

[0184] In some optional implementations, the actual toolpath information is obtained by acquiring the position information of multiple actual tool points in the following manner:

[0185] Based on the theoretical grid index corresponding to each theoretical projection point, obtain the actual grid index corresponding to each actual projection point in the actual grid;

[0186] Based on the theoretical centroid coordinates corresponding to each theoretical projection point, the actual centroid coordinates corresponding to each actual projection point in the actual grid are obtained.

[0187] Based on the actual grid index and actual centroid coordinates corresponding to each actual projection point in the actual grid, the position information of each actual projection point in the actual grid is obtained;

[0188] Based on the position information of each actual projection point in the actual grid, the position information of each actual tool point is obtained.

[0189] In some optional implementations, the actual network module obtains the position information of each actual tool point based on the position information of each actual projection point in the actual grid in the following manner:

[0190] Based on the position information of each actual projection point in the actual grid, each actual projection point is back-projected to obtain the position information of multiple actual tool points.

[0191] Equipment Implementation Examples

[0192] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of any of the above methods. The specific implementation method and the technical effects achieved are the same as those described in the above method embodiments, and some contents will not be repeated.

[0193] See Figure 13 , Figure 13 A structural block diagram of an electronic device provided in an embodiment of this application is shown.

[0194] Electronic device 200 includes at least one memory 210, at least one processor 220, and a bus 230 connecting different platform systems.

[0195] The memory 210 may include a readable medium in the form of volatile memory, such as random access memory (RAM) 211 and / or cache memory 212, and may further include read-only memory (ROM) 213.

[0196] The memory 210 also stores a computer program, which can be executed by the processor 220 to enable the processor 220 to implement the steps of any of the above methods.

[0197] The memory 210 may also include a utility 214 having at least one program module 215, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.

[0198] Accordingly, processor 220 can execute the aforementioned computer program, and can also execute utility 214.

[0199] The processor 220 may employ one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0200] Bus 230 can be one or more of several types of bus structures, including a memory bus or memory controller, peripheral bus, graphics acceleration port, processor, or a local bus using any bus structure with multiple bus structures.

[0201] Electronic device 200 can also communicate with one or more external devices 240, such as keyboards, pointing devices, Bluetooth devices, etc., and with one or more devices capable of interacting with it, and / or with any device that enables it to communicate with one or more other computing devices (e.g., routers, modems, etc.). This communication can be performed via input / output interface 250. Furthermore, electronic device 200 can also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 260. Network adapter 260 can communicate with other modules of electronic device 200 via bus 230. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 200, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.

[0202] Medium Examples

[0203] This application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the steps of any of the above methods. The specific implementation method and the technical effects achieved are the same as those described in the above method embodiments, and some contents will not be repeated.

[0204] See Figure 14 , Figure 14 A schematic diagram of the structure of a program product provided in an embodiment of this application is shown.

[0205] The program product is used to implement any of the methods described above. The program product may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In embodiments of this application, the readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device. The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.

[0206] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium capable of sending, propagating, or transmitting a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, or any suitable combination thereof. Program code for performing operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C, Python, or similar programming languages. The program code may be executed entirely on a user computing device, partially on a user device, as a standalone software package, partially on a user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing devices can be connected to user computing devices via any type of network, including local area networks (LANs) or wide area networks (WANs), or they can be connected to external computing devices (e.g., via the Internet using an Internet service provider).

[0207] This application describes the invention from the perspectives of purpose, performance, progress, and novelty, and it meets the functional enhancement and use requirements emphasized by the Patent Law. The above description and drawings are merely preferred embodiments of this application and are not intended to limit this application. Therefore, all structures, devices, features, etc., that are similar to or identical to those of this application, i.e., all equivalent substitutions or modifications made in accordance with the scope of this patent application, shall fall within the scope of protection of this patent application.

Claims

1. A toolpath planning method, characterized in that, The method includes: The theoretical mesh is obtained based on the theoretical surface of the target workpiece; Based on the theoretical location information of multiple measurement points, the actual location information of the multiple measurement points is obtained by using an on-machine measurement method; Based on the theoretical and actual position information of each measurement point, the position error of each measurement point is obtained; For each measurement point, the measurement point is projected onto the theoretical grid to obtain the grid index and centroid coordinates corresponding to the measurement point; based on the grid index and centroid coordinates corresponding to the measurement point, the position error of the measurement point is decomposed to obtain the error decomposition result for each measurement point; Based on the error decomposition results of each measurement point, the vertices of the theoretical mesh are deformed to obtain the actual mesh of the target workpiece; Based on the theoretical toolpath information, the theoretical mesh, and the actual mesh, actual toolpath information is obtained. The actual toolpath information is used to process the target workpiece. The theoretical toolpath information includes the position information of multiple theoretical tool points, and the actual toolpath information includes the position information of multiple actual tool points. The process of obtaining actual toolpath information based on theoretical toolpath information, the theoretical mesh, and the actual mesh includes: Multiple theoretical tool points are projected onto the theoretical grid to obtain multiple theoretical projection points; Obtain the theoretical grid index and theoretical centroid coordinates corresponding to each theoretical projection point; Based on the actual grid and the theoretical grid index and theoretical centroid coordinates corresponding to each theoretical projection point, the position information of multiple actual tool points is obtained; Based on the position information of multiple actual tool points, the actual toolpath information is planned. The step of obtaining the position information of multiple actual tool points based on the actual mesh and the theoretical mesh index and theoretical centroid coordinates corresponding to each theoretical projection point includes: Based on the theoretical grid index corresponding to each theoretical projection point, obtain the actual grid index corresponding to each actual projection point in the actual grid. Based on the theoretical centroid coordinates corresponding to each theoretical projection point, the actual centroid coordinates corresponding to each actual projection point in the actual grid are obtained. Based on the actual grid index and actual centroid coordinates corresponding to each actual projection point in the actual grid, the position information of each actual projection point in the actual grid is obtained; Based on the position information of each actual projection point in the actual grid, each actual projection point is back-projected to obtain the position information of multiple actual tool points.

2. A toolpath planning device, characterized in that, The device includes: The theoretical mesh module is used to obtain the theoretical mesh based on the theoretical surface of the target workpiece; The actual mesh module is used to obtain the actual mesh of the target workpiece; The actual toolpath information module is used to obtain actual toolpath information based on theoretical toolpath information, the theoretical mesh, and the actual mesh. The actual toolpath information is used to process the target workpiece. The theoretical toolpath information includes the position information of multiple theoretical tool points, and the actual toolpath information includes the position information of multiple actual tool points. The actual mesh module obtains the actual mesh of the target workpiece in the following manner: Based on the theoretical location information of multiple measurement points, the actual location information of the multiple measurement points is obtained by using an on-machine measurement method; Based on the theoretical and actual position information of each measurement point, the position error of each measurement point is obtained; For each measurement point, the measurement point is projected onto the theoretical grid to obtain the grid index and centroid coordinates corresponding to the measurement point; based on the grid index and centroid coordinates corresponding to the measurement point, the position error of the measurement point is decomposed to obtain the error decomposition result for each measurement point; Based on the error decomposition results of each measurement point, the vertices of the theoretical mesh are deformed to obtain the actual mesh of the target workpiece; The actual toolpath information module obtains the actual toolpath information based on the theoretical toolpath information, the theoretical mesh, and the actual mesh in the following manner: Multiple theoretical tool points are projected onto the theoretical grid to obtain multiple theoretical projection points; Obtain the theoretical grid index and theoretical centroid coordinates corresponding to each theoretical projection point; Based on the actual grid and the theoretical grid index and theoretical centroid coordinates corresponding to each theoretical projection point, the position information of multiple actual tool points is obtained; Based on the position information of multiple actual tool points, the actual toolpath information is planned. The step of obtaining the position information of multiple actual tool points based on the actual mesh and the theoretical mesh index and theoretical centroid coordinates corresponding to each theoretical projection point includes: Based on the theoretical grid index corresponding to each theoretical projection point, obtain the actual grid index corresponding to each actual projection point in the actual grid. Based on the theoretical centroid coordinates corresponding to each theoretical projection point, the actual centroid coordinates corresponding to each actual projection point in the actual grid are obtained. Based on the actual grid index and actual centroid coordinates corresponding to each actual projection point in the actual grid, the position information of each actual projection point in the actual grid is obtained; Based on the position information of each actual projection point in the actual grid, each actual projection point is back-projected to obtain the position information of multiple actual tool points.

3. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method of claim 1.

4. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method of claim 1.

Citation Information

Patent Citations

  • Space grid-based tool path transverse information reconstruction method

    CN113867259A

  • Flexible conformal antenna laser machining error control method based on curved surface mapping

    CN110497088A