Tool path planning method in high-dimensional space of components based on improved target heuristic
By improving the target heuristic high-dimensional space tool path planning method for parts, the problem of difficult automation equipment planning in complex aircraft structure assembly is solved, and efficient and safe processing route planning is achieved, which is suitable for military aircraft manufacturing in small spaces. .
Patent Information
- Application Number
- CN202410692123.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-31
AI Technical Summary
It is difficult for existing automation equipment to achieve efficient and safe processing route planning in the assembly of complex military aircraft structures, especially in small spaces where operation is difficult and faults occur frequently.
An improved target heuristic tool path planning method in high-dimensional space for parts is used to generate safe and collision-free tool paths through environment modeling, discretization processing, evaluation function setting and extended search of three-dimensional discrete point cloud data.
It achieves fast and efficient parts processing task planning in high-dimensional space, overcomes the impact of complex structures on the processing process, improves planning efficiency and safety, and is suitable for continuous trajectory and point-to-point processing scenarios.
Smart Images

Figure CN118276508B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of aircraft assembly, and in particular to a component high-dimensional space tool path trajectory planning method based on improved target heuristics. Background Art
[0002] With the rapid development of aircraft automated hole-making technology, a large number of automated equipment have been put into aircraft assembly applications. However, from the application situation, most of the equipment is used in scenes with good openness and large operating space, such as large wing surfaces of civil aircraft, and has not yet been found in some small space structure assembly, such as the manufacture of small and medium-sized aircraft such as military aircraft.
[0003] The internal structures of aircraft fuselages and wings are relatively complex, especially those involving military aircraft structures. The fuselages and wings involve a large number of processing tasks, with small operating spaces, high operating difficulties, and frequent assembly failures. It is extremely difficult for existing automated equipment to achieve processing in this area, mainly because existing software algorithms are unable to perform efficient and accurate processing route planning in the face of such complex processing scenarios. Therefore, the requirements for algorithms in such complex scenarios are mainly reflected in how to solve the processing route planning for all tasks safely, without collision, and efficiently. Summary of the invention
[0004] The purpose of the present invention is to provide a component high-dimensional space tool path trajectory planning method based on improved target heuristics, which can quickly and efficiently realize the planning of component processing tasks in high-dimensional space.
[0005] The present invention is implemented by the following technical solution: a component high-dimensional space tool path trajectory planning method based on improved target heuristic includes the following steps:
[0006] Step S1: Perform environmental modeling to determine the processing path of the parts to be processed;
[0007] Step S2: discretizing the path to be processed of the determined part to generate three-dimensional discrete point cloud data;
[0008] Step S3: setting an evaluation function for the generated three-dimensional discrete point cloud data;
[0009] Step S4: Initializing the three-dimensional discrete point cloud data;
[0010] Step S5: performing an extended search on the three-dimensional discrete point cloud data according to the set evaluation function;
[0011] Step S6: output the final tool path trajectory;
[0012] Step S7: End the search and input the tool path trajectory into the system for processing and generating a machining program for the equipment.
[0013] In order to better implement the method of the present invention, further, in the step S1, modeling is performed using three-dimensional modeling software, including three-dimensional modeling of the parts to be processed and three-dimensional modeling of the processing equipment, thereby forming an environmental modeling of the entire parts processing operation scene, and then determining the processing path of the parts to be processed.
[0014] In order to better implement the method of the present invention, further, in step S3, the specific contents of setting the evaluation function for the generated three-dimensional discrete point cloud data include: setting the overall evaluation function, setting the overall target evaluation method, setting the translation transformation evaluation method, setting the rotation transformation evaluation method, and the equipment singular configuration or motion over-limit evaluation method.
[0015] In order to better implement the method of the present invention, further, the overall evaluation function specifically includes an actual cost function, a heuristic cost function, and a guide function;
[0016] The actual cost function represents the actual cost from the starting point to the current node;
[0017] The heuristic cost function represents the heuristic cost from the current node to the end node of the trajectory;
[0018] The guide function represents the cost designed to prevent the equipment from approaching a singular configuration or an over-limit motion region during processing.
[0019] In order to better implement the method of the present invention, further, the actual cost function is composed of the weighted sum of translation cost and rotation cost; the actual cost of each successful connection point is composed of the actual cost of its parent node and the sum from the parent node to the current node.
[0020] In order to better implement the method of the present invention, further, the translation transformation evaluation method is set as follows: based on the description of the task trajectory, the trajectory is discretized into a series of tiny segments, and the sum of the lengths of each segment is calculated in the Euclidean space; the total length of the trajectory is the sum of the lengths of all discrete segments; therefore, the calculation of the translation cost is defined as the length of the current trajectory.
[0021] In order to better implement the method of the present invention, further, the rotation transformation evaluation method is set as follows: since the rotation space is a multi-dimensional special orthogonal group, in the calculation of the rotation transformation cost, the angle transformation of the end tool is used as the rotation transformation cost of the node. The rotation transformation between two different processing equipment configuration postures can be obtained by mapping a certain transformation matrix. Therefore, the improved rotation transformation cost is defined as the state point obtained by rotating the state point around a unit rotation axis by a certain angle.
[0022] In order to better implement the method of the present invention, further, the specific process of initializing the three-dimensional discrete point cloud data in step S4 is: putting the search initial point into the preferred point set for expansion, and setting the point set that has been visited during the expansion process as an empty set.
[0023] In order to better implement the method of the present invention, further, in step S5, the specific process of performing an extended search on the three-dimensional discrete point cloud data according to the set evaluation function is as follows:
[0024] Step S51: determining whether the extended preferred point set is an empty set, if it is an empty set, ending the search and directly outputting the final tool path trajectory;
[0025] Step S52: if the extended preferred point set is not an empty set, then searching for a point with the minimum total cost in the extended preferred point set according to a set evaluation function;
[0026] Step S53: determining whether the point with the smallest total cost is the last point, if it is the last point, ending the search and directly outputting the final tool path trajectory;
[0027] Step S54: Calculate the position and posture of the device when it reaches the point with the minimum total cost, and obtain the motion trajectory point of the device through inverse kinematics calculation for each node to be expanded of the device according to the position and posture of the device;
[0028] Step S55: determine whether the motion trajectory point of the device is in the point set that has been visited during the expansion process, if so, jump to step S54; if not, determine whether it is in the preferred point set for expansion; if not, confirm whether its total cost is infinite based on the motion trajectory point of the device, if so, jump to step S54;
[0029] Step S56: judging whether a collision occurs from the point where the total cost is the smallest to the point where the device moves on the trajectory of the device through the scene established by the environment modeling; if no collision occurs, calculating the new actual cost of the point where the device moves on the trajectory; if a collision occurs, jumping to step S54;
[0030] Step S57: determine whether the new actual cost of the device's motion trajectory point is less than the actual cost of the original device's motion trajectory point. If so, update the total cost according to the evaluation function, and add the device's motion trajectory point to the set of extended preferred point sets; if not, jump to step S54;
[0031] Step S58: Update the point set that has been visited during the expansion process and the expansion preferred point set, remove the point with the smallest total cost of the device motion trajectory from the expansion preferred point set, and add the point with the smallest total cost of the device motion trajectory to the point set that has been visited during the expansion process.
[0032] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0033] (1) Compared with the traditional search algorithm, the method of the present invention takes into account the safety obstacle avoidance and singularity avoidance requirements during the equipment processing process, introduces a guidance function, and ensures safe planning during the processing process;
[0034] (2) The present invention adopts a high-dimensional search space instead of a Euclidean space, thus redefining the actual cost evaluation method and the heuristic cost evaluation method of the high-dimensional space, thereby overcoming the problems of time-consuming and low planning efficiency in the existing parts processing due to the influence of complex structures;
[0035] (3) The present invention is not only applicable to processing planning for continuous trajectories, but also to complete and rapid planning for point-to-point trajectories. It can quickly and efficiently realize the planning of parts processing tasks in high-dimensional space and is suitable for wide promotion and application. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments with reference to the following drawings:
[0037] Figure 1 is a flow chart of the method of the present invention;
[0038] Figure 2 This is a schematic diagram of the processing of parts and equipment in the present invention;
[0039] Figure 3 It is a schematic diagram of the three-dimensional structure of the point-to-point cross-region components in the present invention;
[0040] Figure 4 It is a schematic diagram of the planar structure of the point-to-point cross-region components in the present invention;
[0041] Figure 5 It is a schematic diagram of the three-dimensional structure of the open-loop continuous space curve component in the present invention;
[0042] Figure 6 It is a schematic diagram of the planar structure of the open-loop continuous space curve component in the present invention;
[0043] Figure 7 It is a schematic diagram of the three-dimensional structure of the closed-loop continuous space curve component in the present invention;
[0044] Figure 8 It is a schematic diagram of the planar structure of the closed-loop continuous space curve component in the present invention;
[0045] Among them: 1—processing equipment, 2—tools, 3—parts, 4—paths to be processed. DETAILED DESCRIPTION
[0046] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0047] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0048] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0049] Embodiment 1:
[0050] This embodiment provides a method for high-dimensional space tool path planning of parts based on improved target heuristic, and its specific steps are as follows: Figure 1 As shown, the following steps are included:
[0051] Step S1: Perform environmental modeling to determine the processing path of the parts to be processed;
[0052] Based on 3D modeling software, build 3D models of the parts to be processed and 3D models of the processing equipment to form the entire parts processing operation scene;
[0053] Step S2: Discretize the path to be processed of the determined part to generate three-dimensional discrete point cloud data; it is defined as an ordered point set consisting of u Data composition , , x 1 , y 1 ,z 1 Respectively p 1 The position information of the point in three-dimensional space is used to set the initial collision-free position and posture of the tool to be processed. ;in Respectively p Ti The three-dimensional spatial position information of the point, express The posture information of the point in three-dimensional space is used for the Euler transformation of ZYX;
[0054] Step S3: setting an evaluation function for the generated three-dimensional discrete point cloud data; the setting of the evaluation function specifically includes:
[0055] ① Determine the overall evaluation function: Set the evaluation function of the entire path search to ,in g ( p ) is the actual cost function, which represents the actual cost from the starting point to the current node. h ( p ) is the heuristic cost function, which represents the heuristic cost from the current node to the end node of the trajectory. e ( p ) is a guiding function, which is designed to avoid the cost of the equipment approaching a singular configuration or motion over-limit area during processing. The parameter k g , k h and k e Respectively represent the weight coefficients of different costs;
[0056] ② Target evaluation method: Set the actual cost g( p ) is composed of the weighted sum of the translation cost and the rotation cost; the actual cost of each successful connection point is composed of the actual cost of its parent node and the sum of the cost from the parent node to the current node, that is, ; where g( p n ) and g( p n+1 ) represents the actual cost of the parent node and the currently successfully connected node. and Represents the translation transformation cost and rotation transformation cost between the parent node and the currently successfully connected node. k p and k r Respectively represent the cost calculation weights of translation and rotation transformations;
[0057] Similarly, the heuristic cost is set to be the instantaneous cost from the current configuration to the target configuration , p goal Represents the target location point, which is the last point of the ordered point set. p goal =p u ;
[0058] ③ Fixed translation transformation evaluation method: According to the description of the task trajectory, the trajectory is discretized into a series of tiny segments, and the length of each segment is calculated in Euclidean space; the total length of the trajectory is the sum of the lengths of all discrete segments; therefore, the calculation of the translation cost is defined as the length of the current trajectory, that is, ;
[0059] ④ Fixed rotation transformation evaluation method: Since the rotation space is a multi-dimensional special orthogonal group; in the calculation of the rotation transformation cost, the angle transformation of the end tool is used as the node The rotation transformation cost between two different processing equipment configurations can be obtained by mapping a transformation matrix, such as ; Therefore, the improved rotation transformation cost is defined as the state point Rotate a certain angle around a certain unit rotation axis to get the state point , the relevant corner cost is calculated as , represents the trace of a matrix;
[0060] ⑤ Set the evaluation method for equipment singular configuration or motion exceeding the limit: Set the evaluation method for equipment singular configuration or motion exceeding the limit , represents the evaluation function of the equipment movement over-limit cost, represents the equipment singular cost evaluation function; k l and k s They represent the weight coefficients of equipment movement over-limit cost and singular cost respectively; the equipment movement over-limit cost evaluation function is designed as ,in Indicates that in the corresponding configuration node p Place i The value of each device joint, and Indicates i The upper and lower bounds of the device joints, n Indicates the number of active joints of the device, and The two parameters control the maximum value of the overlimit cost and the rate of change at the boundary of the equipment joint motion respectively; the joint overlimit cost can select appropriate parameters and control the change of the joint overlimit cost according to the actual situation, so as to obtain a joint overlimit evaluation function with a certain safety margin;
[0061] The evaluation function of equipment movement over-limit cost is designed as , where the parameters k s1 Controls the maximum value of the singular cost, parameter k s2 Controls the rate of change of the function when the device is close to a singular position, parameter h Controls the threshold of the singular region of the device, J represents the Jacobian matrix of the device in the current configuration state, and T is the change period;
[0062] Step S4: Initialize the 3D discrete point cloud data: Search for the initial point p 1 is put into set S open In the above example, we will set S closed Set to an empty set, S open The points in the set are the preferred points for expansion, S closed The points in the set are those that have been visited during the expansion process;
[0063] Step S5: Perform an extended search on the three-dimensional discrete point cloud data according to the set evaluation function; the specific process includes:
[0064] Step S51: Determine S open Is it an empty set? If it is an empty set, jump to step S6;
[0065] Step S52: If it is not an empty set, then in S open Find the point with the minimum total cost of the node p min , the total cost is based on the evaluation function in step S3 f ( p ); if it is an empty set, the search ends;
[0066] Step S53: Determine the point with the minimum total cost p min Is it the last point? p u If it is the last point p u , then jump to step S6;
[0067] Step S54: Calculate the device upon reaching p min Position and posture when clicking T end , and for Tend Each node to be expanded T nei The motion angle of the device is obtained through inverse kinematics calculation p nei ;
[0068] Step S55: Determination p nei Is it in S closed If it is in the set, jump to step S54; if it is not in S open If not, determine whether f ( p nei ) = g( p nei ) = ∞, if true, jump to step S54;
[0069] Step S56: Determine the scene from the scene established in step S1 p min arrive p nei If no collision occurs, the new actual cost g( p nei ) new ; If a collision occurs, jump to step S54;
[0070] Step S57: Determine g( p nei ) new Is it less than g( p nei ), if satisfied, then update the cost g( p nei )=g( p nei ) new , and update according to step S3 f ( p nei ), and p nei Join S open If not satisfied, jump to step S54;
[0071] Step S58: Update the set S closed With S open ,Will p min From the set S open Remove it from p min Add to collection S closed middle;
[0072] Step S6: Output the final tool path trajectory q ;
[0073] Step S7: End the search and input the tool path trajectory into the system for processing and generating a machining program for the equipment.
[0074] Embodiment 2:
[0075] This embodiment is based on the component high-dimensional space tool path trajectory planning method based on the improved target heuristic provided in the above embodiment, and performs point-to-point cross-region component processing. First, environmental modeling is performed, such as Figure 2 As shown, it includes a processing device 1, a tool 2, a component to be processed 3, and a path to be processed 4 on the component to be processed.
[0076] Point-to-point cross-regional component structure Figure 3 , Figure 4 As shown, after the processing equipment completes processing of the position A to be processed, in the process of moving from A to B, in order to avoid collision with parts and ensure that the movement path is the shortest, the steps provided in the above embodiment are used to plan and optimize the processing path. Similarly, the motion planning from B to C and C to D can be realized.
[0077] Embodiment 3:
[0078] This embodiment is based on the high-dimensional space tool path planning method for components based on the improved target heuristic provided in the above embodiment, and performs open-loop continuous space curve component processing. First, environmental modeling is performed, such as Figure 2 As shown, it includes a processing device 1, a tool 2, a component to be processed 3, and a path to be processed 4 on the component to be processed.
[0079] The open loop continuous space curve component structure is as follows Figure 5 , Figure 6 As shown, in the process of processing an open-loop continuous space curve by a processing device, in order to avoid collision with a component obstacle boss and to ensure the shortest movement path, the steps provided in the above embodiment are used to plan and optimize the processing path.
[0080] Embodiment 4:
[0081] This embodiment is based on the improved target heuristic component high-dimensional space tool path trajectory planning method provided in the above embodiment, and performs closed-loop continuous space curve component processing. First, environmental modeling is performed, such as Figure 2 As shown, it includes a processing device 1, a tool 2, a component to be processed 3, and a path to be processed 4 on the component to be processed.
[0082] Closed-loop continuous space curve component structure such as Figure 7 , Figure 8As shown, in the process of realizing the closed-loop continuous space curve processing by the processing equipment, in order to avoid collision with the component obstacle boss and ensure the shortest movement path, the steps provided in the above embodiment are used to plan and optimize the processing path.
[0083] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A high-dimensional space tool path planning method for components based on improved target heuristics, characterized in that: The following steps are involved: Step S1: Perform environmental modeling to determine the processing path of the parts to be processed; Step S2: discretizing the path to be processed of the determined part to generate three-dimensional discrete point cloud data; Step S3: setting an evaluation function for the generated three-dimensional discrete point cloud data; The specific contents of setting the evaluation function for the generated three-dimensional discrete point cloud data include: setting the overall evaluation function, setting the overall target evaluation method, setting the translation transformation evaluation method, setting the rotation transformation evaluation method, and the device singular configuration or motion over-limit evaluation method; The overall evaluation function specifically includes an actual cost function, a heuristic cost function, and a guide function; The actual cost function represents the actual cost from the starting point to the current node; The heuristic cost function represents the heuristic cost from the current node to the end node of the trajectory; The guiding function represents the cost designed to avoid the equipment from approaching a singular configuration or an over-limit motion region during processing; The actual cost is set to be the weighted sum of the translation cost and the rotation cost; the actual cost of each successful connection point is composed of the actual cost of its parent node and the sum of the cost from the parent node to the current node; Step S4: Initializing the three-dimensional discrete point cloud data; Step S5: Perform an extended search on the three-dimensional discrete point cloud data according to the set evaluation function; the specific process is as follows: Step S51: determining whether the extended preferred point set is an empty set, if it is an empty set, ending the search and directly outputting the final tool path trajectory; Step S52: if the extended preferred point set is not an empty set, then if it is not an empty set, searching for a point with the minimum total cost in the extended preferred point set according to a set evaluation function; Step S53: determining whether the point with the smallest total cost is the last point, if it is the last point, ending the search and directly outputting the final tool path trajectory; Step S54: Calculate the position and posture of the device when it reaches the point with the minimum total cost, and obtain the motion trajectory point of the device through inverse kinematics calculation for each node to be expanded of the device according to the position and posture of the device; Step S55: determine whether the motion trajectory point of the device is in the point set that has been visited during the expansion process, if so, jump to step S54; if not, determine whether it is in the preferred point set for expansion; if not, confirm whether its total cost is infinite based on the motion trajectory point of the device, if so, jump to step S54; Step S56: judging whether a collision occurs from the point where the total cost is the smallest to the point where the device moves on the trajectory of the device through the scene established by the environment modeling; if no collision occurs, calculating the new actual cost of the point where the device moves on the trajectory; if a collision occurs, jumping to step S54; Step S57: determine whether the new actual cost of the device's motion trajectory point is less than the actual cost of the original device's motion trajectory point. If so, update the total cost according to the evaluation function, and add the device's motion trajectory point to the set of extended preferred point sets; if not, jump to step S54; Step S58: updating the point set that has been visited during the expansion process and the point set that is preferred for expansion, removing the point with the smallest total cost of the device motion trajectory point from the preferred point set for expansion, and adding the point with the smallest total cost of the device motion trajectory point to the point set that has been visited during the expansion process; Step S6: output the final tool path trajectory; Step S7: End the search and input the tool path trajectory into the system for processing and generating a machining program for the equipment.
2. The component high-dimensional space tool path trajectory planning method based on improved target heuristic according to claim 1 is characterized in that: In the step S1, modeling is performed using 3D modeling software, including 3D modeling of the parts to be processed and 3D modeling of the processing equipment, thereby forming an environmental modeling of the entire parts processing operation scene, and then determining the processing path of the parts to be processed.
3. The component high-dimensional space tool path trajectory planning method based on improved target heuristic according to claim 1 is characterized in that: The translation transformation evaluation method is set as follows: based on the description of the task trajectory, the trajectory is discretized into a series of tiny segments, and the sum of the lengths of each segment is calculated in Euclidean space; the total length of the trajectory is the sum of the lengths of all discrete segments; therefore, the calculation of the translation cost is defined as the length of the current trajectory.
4. The component high-dimensional space tool path trajectory planning method based on improved target heuristic according to claim 1 is characterized in that: The rotation transformation evaluation method is set as follows: since the rotation space is a multi-dimensional special orthogonal group, in the calculation of the rotation transformation cost, the angle transformation of the end tool is used as the rotation transformation cost of the node. The rotation transformation between two different processing equipment configuration postures can be obtained through a transformation matrix mapping. Therefore, the improved rotation transformation cost is defined as the state point obtained by rotating the state point around a unit rotation axis by a certain angle.
5. The component high-dimensional space tool path trajectory planning method based on improved target heuristic according to claim 1 or 2, characterized in that: The specific process of initializing the three-dimensional discrete point cloud data in step S4 is: putting the search initial point into the preferred point set for expansion, and setting the point set that has been visited during the expansion process as an empty set.
