Track generation method and device for additive manufacturing

By hierarchical and optimization of the printing model, the material transition deposition problem caused by industrial robots in acceleration and deceleration movements is solved, and the uniformity of printing speed and printing efficiency are improved.

CN119748874AActive Publication Date: 2025-04-04WUHAN RES INST OF MATERIALS PROTECTION
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411779225.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-04-04
Estimated Expiration
2044-12-05

AI Technical Summary

Technical Problem

Industrial robots lead to transition and deposition of materials in low-speed areas during acceleration and deceleration, resulting in printing defects, limiting the geometry and printing efficiency of printed objects.

Method used

By layering the model to be printed, the fill line of each layer's cross-section is determined, and the coordinates and directions of multiple path points are determined based on the angle division results between the normal vector of the first and end points of the fill line and the Z-axis direction of the robot coordinate system, and the printing trajectory is optimized.

Benefits of technology

It achieves a more uniform printing speed, avoids local overdeposition, and improves printing efficiency and diversity of object geometry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119748874A_ABST
    Figure CN119748874A_ABST
Patent Text Reader

Abstract

The invention provides a trajectory generation method and device for additive manufacturing, and the method comprises the steps: layering a to-be-printed model, and determining a filling line of each layer of section of the to-be-printed model; determining coordinates and directions of a plurality of path points on the filling line according to an angle division result between the normal vectors of the head and tail end points of the filling line and the Z-axis direction of a robot coordinate system; and the printing track of the robot is determined according to the coordinates and the direction of the path points. According to the method, the printing track of the starting position and the ending position of each to-be-printed layer of the to-be-printed model is optimized, the motion track of the industrial robot is smoother through path point interpolation and posture optimization, and the printing speed is uniform and consistent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of additive manufacturing, and in particular to a method and device for generating a trajectory of additive manufacturing. Background Art

[0002] Currently, in printing devices with three or four degrees of freedom, due to the lack of rotational freedom, the mobile device carrying the laser head or print head cannot achieve support-free printing during the printing process, which to a certain extent limits the geometric shape of the printed object and the printing efficiency.

[0003] 3D printing using an industrial robot carrying a laser cladding head and other methods of feeding powder or wire is a commonly used additive manufacturing process. It has the characteristics of fast printing speed and large workpiece size.

[0004] However, the acceleration and deceleration of industrial robots will cause excessive deposition of materials in low-speed areas, resulting in printing defects. Summary of the invention

[0005] The present invention provides a trajectory generation method and device for additive manufacturing, which are used to solve the defect in the prior art that the acceleration and deceleration movements of industrial robots will cause transitional deposition of materials in low-speed areas, and realize a trajectory generation method for additive manufacturing with a more uniform printing speed.

[0006] The present invention provides a trajectory generation method for additive manufacturing, comprising: The model to be printed is divided into layers, and a filling line of each cross section of the model to be printed is determined; Determine the coordinates and directions of multiple path points on the filling line according to the angle division result between the normal vectors of the first and last points of the filling line and the Z-axis direction of the robot coordinate system; The printing trajectory of the robot is determined according to the coordinates and directions of the path points.

[0007] According to a method for generating a trajectory for additive manufacturing provided by the present invention, the step of dividing the model to be printed into layers and determining the filling line of each cross section of the model to be printed specifically includes: The model to be printed is cut along the Z-axis direction of the robot coordinate system, and a contour curve of each cross section obtained by cutting is determined; Determine the minimum bounding box of the contour curve of each cross section, and generate a set of printing auxiliary lines about the minimum bounding box based on a predetermined offset distance; Perform a Boolean operation on the contour curve of each cross section and the printed auxiliary line to obtain the fill line of each cross section.

[0008] According to a method for generating a trajectory for additive manufacturing provided by the present invention, the step of determining the coordinates and directions of multiple path points on the filling line according to the angle division result between the normal vectors of the first and last points of the filling line and the Z-axis direction of the robot coordinate system specifically includes: Generate a filling path sequence of the filling lines of each layer of cross section, and determine the normal vectors of two endpoints of each filling path in the filling path sequence; Determine a deviation angle between the normal vector and the Z-axis direction of the robot coordinate system, and divide the deviation angle according to the deviation angle and the number of preset path points; The coordinates and directions of the path points are determined according to the division results of the deviation angles.

[0009] According to a method for generating a trajectory for additive manufacturing provided by the present invention, the step of generating a filling path sequence of the filling lines of each layer of cross section specifically includes: A sequence of fill paths is generated using a zigzag type topology to generate fill lines for each layer of cross section.

[0010] According to a method for generating a trajectory for additive manufacturing provided by the present invention, the step of dividing the deviation angle according to the deviation angle and the preset number of path points specifically includes: Determine a first positioning point in the filling path whose normal vector is perpendicular to the Z-axis direction of the robot coordinate system and is closest to the starting endpoint of the filling path, and a point closest to the ending endpoint of the filling path as a second positioning point; Divide the first angle between the starting endpoint of the filling path and the normal vector of the first positioning point according to the preset number of path points, and divide the second angle between the ending endpoint of the filling path and the normal vector of the second positioning point according to the preset number of path points; An intersection point between an angle bisector that equally divides the first angle and the second angle and the filling path is determined as a path point.

[0011] According to a method for generating a trajectory for additive manufacturing provided by the present invention, before the step of dividing the deviation angle according to the deviation angle and the preset number of path points, the method further includes: Determine a first path length between a starting endpoint of the filling path and a first positioning point; determine a second path length between an ending endpoint of the filling path and a second positioning point; Determining the first path length and the second path length as path lengths to be evenly divided; The integer result of the ratio of the length of the path to be evenly divided to the cladding speed of the robot is taken as the preset number of path points.

[0012] The present invention also provides a trajectory generating device for additive manufacturing, comprising: A line determination module, used for dividing the model to be printed into layers and determining the filling line of each cross section of the model to be printed; A path point determination module, used to determine the coordinates and directions of multiple path points on the filling line according to the angle division result between the normal vectors of the first and last points of the filling line and the Z-axis direction of the robot coordinate system; The trajectory generation module is used to determine the printing trajectory of the robot according to the coordinates and directions of the path points.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a trajectory generation method for additive manufacturing as described in any one of the above is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for generating a trajectory for additive manufacturing as described in any one of the above is implemented.

[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for generating a trajectory for additive manufacturing as described in any one of the above is implemented.

[0016] The trajectory generation method and device provided by the present invention optimize the printing trajectory of the start and end positions of each layer to be printed of the printed model, and make the motion trajectory of the industrial robot smoother and the printing speed uniform through the interpolation of path points and posture optimization, thereby avoiding the phenomenon of local excessive deposition. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 It is one of the flow diagrams of the trajectory generation method for additive manufacturing provided by the present invention; Figure 2 is a schematic diagram of a minimum bounding box in the trajectory generation method for additive manufacturing provided by the present invention; Figure 3 It is a schematic diagram of printing auxiliary lines in the trajectory generation method for additive manufacturing provided by the present invention; Figure 4is a schematic diagram of a filling line in the trajectory generation method for additive manufacturing provided by the present invention; Figure 5 is a schematic diagram of angle averaging in the trajectory generation method for additive manufacturing provided by the present invention; Figure 6 This is the second flow chart of the method for generating a trajectory for additive manufacturing provided by the present invention; Figure 7 It is a structural schematic diagram of the trajectory generating device for additive manufacturing provided by the present invention; Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0020] Combine the following Figures 1 to 6 The trajectory generation method of additive manufacturing of the present invention is introduced, such as Figure 1 As shown, including: Step 101, dividing the model to be printed into layers, and determining the filling lines of each cross section of the model to be printed; Optionally, the model to be printed is layered in a fixed direction. The layering direction can be determined according to the shape of the model to be printed, and each cross section of the model to be printed after layering can be as convenient for printing as possible.

[0021] Optionally, the model to be printed may be evenly layered, or may be non-evenly layered according to the shape of the model to be printed.

[0022] After layering, the shape of each cross section of the model to be printed is determined, and then the filling line of each cross section is determined according to the shape of each cross section, which serves as the basis of the filling path.

[0023] Step 102, determining the coordinates and directions of a plurality of path points on the filling line according to the angle division result between the normal vectors of the beginning and end points of the filling line and the Z-axis direction of the robot coordinate system; It should be noted that in additive manufacturing, when the robot prints a flat surface, the laser print head moves directly along a straight path to print, so the printing speed is faster; when printing on inclined surfaces or curved surfaces that have an angle with the Z-axis direction of the robot coordinate system, it is necessary to adjust the direction of the laser print head according to the normal of each path point to be printed during the printing process. When the adjustment range is large, the robot's printing speed is slower.

[0024] For example, if the model to be printed is a sphere, after the sphere is layered according to the radial direction of the sphere, the outermost part of each cross section is an arc surface, and the middle position is a flat part that can be printed directly. Therefore, in the process of printing the outermost and middle parts, local deposition is easily caused due to uneven printing speed.

[0025] To this end, during the printing process, it is necessary to distinguish the flat parts that can be printed directly from other parts that need to be rotated and adjusted by the laser print head, and optimize the rotation adjustment trajectory of the laser print head to make the overall printing speed more balanced, thereby reducing the occurrence of local excessive deposition.

[0026] In a fill line determined by a to-be-printed section of a to-be-printed model, the angle between the normal vector of the start and end points of the fill line and the Z-axis direction is determined in order to determine the area in the fill line where the trajectory of the laser print head needs to be optimized.

[0027] The angle between the normal vector of the first and last points of the filling route and the Z-axis direction of the robot coordinate system is divided, that is, the angle that needs to be adjusted during a single movement and printing process of the laser print head is divided from a larger angle into multiple smaller angles, thereby facilitating the movement of the laser print head and increasing the movement speed of the laser print head during printing of this area.

[0028] On this basis, it can be understood that the trajectory optimization of the laser print head is carried out from the direction of optimizing the rotation angle of the laser print head. The result of the angle adjustment still needs to be converted into a printing trajectory, that is, the coordinates and directions of each path point on the filling line, in order to finally determine the printing trajectory of the laser print head.

[0029] Step 103, determining the printing trajectory of the robot according to the coordinates and directions of the path points.

[0030] According to the coordinates and directions of the path points finally determined, they are organized into the form of the coordinates and normal vectors of the path points. In the robot coordinate system, that is, the working coordinate system of the laser print head, each path point and its normal vector are added to the robot controller in the form of three-dimensional coordinate position and q1, q2, q3, q4 quaternion postures to generate the 3D printing trajectory of the laser print head, that is, the printing trajectory of the robot.

[0031] The present invention optimizes the printing trajectory of the start and end positions of each layer to be printed of the model to be printed, and makes the motion trajectory of the industrial robot smoother and the printing speed uniform through the interpolation of path points and posture optimization, thereby avoiding the phenomenon of local excessive deposition.

[0032] In the additive manufacturing trajectory generation method of the present invention, the step of dividing the model to be printed into layers and determining the filling line of each cross section of the model to be printed specifically includes: The model to be printed is cut along the Z-axis direction of the robot coordinate system, and a contour curve of each cross section obtained by cutting is determined; Optionally, the model to be printed is an STL (STereoLithography) model.

[0033] The model to be printed is cut into equal distances along the positive direction of the Z axis of the robot coordinate system. This cutting method facilitates the robot to perform printing operations. In other feasible implementations, the model to be printed can be cut first, and then the cutting direction is adjusted to the Z axis direction of the robot coordinate system, that is, the model to be printed is rotated as a whole so that after the rotation, the cutting direction of the model to be printed is parallel to the Z axis direction of the robot coordinate system.

[0034] Furthermore, after segmentation, the contour curve of the i-layer cross section of the model to be printed is obtained. On this basis, the corresponding filling density is pre-set according to the printing requirements. ρ and the number of offsets γ .

[0035] Determine the minimum bounding box of the contour curve of each cross section, and generate a set of printing auxiliary lines about the minimum bounding box based on a predetermined offset distance; like Figure 2 As shown, the minimum enclosing rectangle of the contour curve of each layer of cross section is used as the minimum enclosing box of the contour curve of each layer of cross section, and its length and width are represented by L and H respectively.

[0036] The offset distance D is predetermined as follows: D = L / γ .

[0037] On this basis, a set of printing auxiliary lines about the minimum bounding box is generated from top to bottom with an offset distance D, such as Figure 3 shown.

[0038] Perform a Boolean operation on the contour curve of each cross section and the printed auxiliary line to obtain the fill line of each cross section.

[0039] Perform a Boolean operation on the intersection of the contour curve of the i-th section and the printed auxiliary line to obtain a set of filling lines within the section contour curve, such as Figure 4 shown.

[0040] It can be understood that the filling line of each cross section is a group of line segments.

[0041] Name the fill line of the i-th layer section as the array line[ γ ],in, γ is a natural number, .

[0042] In the additive manufacturing trajectory generation method of the present invention, the step of determining the coordinates and directions of multiple path points on the filling line according to the angle division result between the normal vectors of the first and last points of the filling line and the Z-axis direction of the robot coordinate system specifically includes: Generate a filling path sequence of the filling lines of each layer of cross section, and determine the normal vectors of two endpoints of each filling path in the filling path sequence; The corresponding filling paths are generated according to the filling lines of each cross section, and the filling path sequences are combined.

[0043] A fill path is a filled line with a direction. Figure 4 Taking the filling lines shown as an example, in one feasible implementation, the generated filling path is that each row of filling lines is printed in a fixed direction from left to right; in another feasible implementation, the first row from top to bottom is used as the first printing row, and printing is completed from left to right, and the second row from top to bottom is used as the second printing row, and printing is completed from right to left, so that the printing track is continuous.

[0044] The array line[ γ ] Generate a fill path sequence and determine the normal vectors of the start and end endpoints of each fill path in the fill path sequence, such as Figure 5 The blue directed arrows corresponding to the starting point and end point of the fill path are shown in the figure.

[0045] Determine a deviation angle between the normal vector and the Z-axis direction of the robot coordinate system, and divide the deviation angle according to the deviation angle and the number of preset path points; The deviation angle between the normal vector corresponding to the starting endpoint of each filling path and the Z-axis direction of the robot coordinate system is as follows: Figure 5 As shown, the blue directed arrow corresponding to the starting point of the fill path rotates to AngZ[i] The corresponding blue directed arrows have the required angles.

[0046] The processing of the end endpoint of each fill path is the same as the processing of the start endpoint, so it will not be repeated here.

[0047] In this way, the starting area and the ending area that need to be optimized are determined.

[0048] On this basis, the number of path points is determined in advance, and the deviation angle is divided according to the number of path points. The number of path points is equal to the number of angle bisectors generated after dividing the deviation angle. For example, when the number of path points is 4 and the deviation angle is 10°, the deviation angle is evenly divided into 5 parts, and the deflection angle of each part is 2°.

[0049] Optionally, the number of preset path points is predetermined based on experience.

[0050] The coordinates and directions of the path points are determined according to the division results of the deviation angles.

[0051] Based on the angle division, the intersection of the angle bisector obtained by the division and the filling path is determined as the path point, such as Figure 5 As shown, Figure 5 The orange directed arrow in the figure is the angle bisector obtained by division. Its intersection with the fill path is used as the path point obtained by division. Based on the original fill path starting point and fill path end point, it is used as the supplementary path point.

[0052] The coordinates and orientation of each path point are determined for conversion into a trajectory for the laser print head.

[0053] In the additive manufacturing trajectory generation method of the present invention, the step of generating a filling path sequence of the filling line of each layer of cross section specifically includes: A sequence of fill paths is generated using a zigzag type topology to generate fill lines for each layer of cross section.

[0054] In this implementation, a zigzag topology structure is used to generate a filling path sequence.

[0055] Specifically, the two endpoints of the odd-numbered row filling path are denoted as VStart[i] and VEnd[i], and the filling path sequence is generated in the order of i∈[1, 2, 3…γ].

[0056] The two endpoints of the even-numbered fill path are VStart[i-1], VEnd[i-1], and a fill path sequence is generated in the order of i∈[γ…3, 2, 1].

[0057] In the trajectory generation method for additive manufacturing of the present invention, the step of dividing the deviation angle according to the deviation angle and the preset number of path points specifically includes: Determine a first positioning point in the filling path whose normal vector is perpendicular to the Z-axis direction of the robot coordinate system and is closest to the starting endpoint of the filling path, and a point closest to the ending endpoint of the filling path as a second positioning point; like Figure 5As shown, for each filling path, in its starting area, determine the first positioning point in the filling path whose normal vector is perpendicular to the Z-axis direction of the robot coordinate system and is closest to the starting endpoint of the filling path, and the point closest to the ending endpoint of the filling path is the second positioning point, that is, the intersection of the second blue directed arrow from left to right and the filling path is the first positioning point, and the intersection of the third blue directed arrow and the filling path is the second positioning point.

[0058] Through the above method, the adjustment area of ​​the robot printing is divided. It can be understood that the area from the starting point of the filling path to the first positioning point, and from the second positioning point to the end point of the filling path, is where the printing angle will change, so the printing path of the robot needs to be adjusted and optimized. The area between the first positioning point and the second positioning point is where the robot can complete printing by directly moving in the XOY plane.

[0059] Divide the first angle between the starting endpoint of the filling path and the normal vector of the first positioning point according to the preset number of path points, and divide the second angle between the ending endpoint of the filling path and the normal vector of the second positioning point according to the preset number of path points; An intersection point between an angle bisector that equally divides the first angle and the second angle and the filling path is determined as a path point.

[0060] Continue to refer to Figure 5 The first angle is the angle between the first two blue directed arrows from left to right, and the second angle is the angle between the last two blue directed arrows from left to right.

[0061] The first angle is evenly divided using the following angle-division formula: ; In the formula, Indicates the Z-axis direction of the robot coordinate system, is the normal vector corresponding to the starting endpoint of the filled path, t is the preset number of path points, and mod() is the remainder function.

[0062] The second angle is evenly divided using the following angle-division formula: ; In the formula, Indicates the normal vector corresponding to the end point of the fill path.

[0063] After the first angle and the second angle are divided, each angle bisector obtained by the division can be Figure 5 The intersection of the orange directed arrow in and the filled path determines the path point.

[0064] In the trajectory generation method for additive manufacturing of the present invention, before the step of dividing the deviation angle according to the deviation angle and the preset number of path points, the method further includes: Determine a first path length between a starting endpoint of the filling path and a first positioning point; determine a second path length between an ending endpoint of the filling path and a second positioning point; Determining the first path length and the second path length as path lengths to be evenly divided; The integer result of the ratio of the length of the path to be evenly divided to the cladding speed of the robot is taken as the preset number of path points.

[0065] In order to more accurately determine the number of path points, such as Figure 5 As shown, first determine the lengths L of the paths to be evenly divided corresponding to the starting and ending parts of the filling path.

[0066] Specifically, in each filling path, the portion between the starting endpoint and the first positioning point is determined as the first path, and the length of the first path is determined as the first path length. The method for determining the second path length is the same.

[0067] On this basis, the number of path points t is calculated as follows: ; Where V is the robot's cladding speed.

[0068] Among them, V is generally 5-20mm / s.

[0069] Since the path points are integers, the calculated result is rounded off to be the number of preset path points.

[0070] Optionally, different rounding methods such as rounding up or rounding down or setting a threshold may be used for rounding.

[0071] In this implementation, in order to facilitate the continuity of the robot's movement, a rounding-up method is adopted to determine as many path points as possible.

[0072] On this basis, a complete trajectory generation process is as follows Figure 6 shown.

[0073] The present invention divides the slice contour into equidistant sections through a minimum bounding box, and then generates a filling path by performing Boolean operations on the slice contour and the printing auxiliary line. At the same time, the normal vectors of the two end points are innovatively optimized according to the angle averaging principle, so that the 3D printing process can be easily realized in a support-free printing mode, thereby further broadening the practicability of the robotic arm printing system.

[0074] The trajectory generation device for additive manufacturing provided by the present invention is described below. The trajectory generation device for additive manufacturing described below and the trajectory generation method for additive manufacturing described above can correspond to each other.

[0075] like Figure 7 As shown, the trajectory generation device for additive manufacturing includes a line determination module 701, a path point determination module 702 and a trajectory generation module 703: A line determination module 701 is used to divide the model to be printed into layers and determine the filling line of each cross section of the model to be printed; Optionally, the model to be printed is layered in a fixed direction. The layering direction can be determined according to the shape of the model to be printed, and each cross section of the model to be printed after layering can be as convenient for printing as possible.

[0076] Optionally, the model to be printed may be evenly layered, or may be non-evenly layered according to the shape of the model to be printed.

[0077] After layering, the shape of each cross section of the model to be printed is determined, and then the filling line of each cross section is determined according to the shape of each cross section, which serves as the basis of the filling path.

[0078] A path point determination module 702 is used to determine the coordinates and directions of multiple path points on the filling line according to the angle division result between the normal vectors of the beginning and end points of the filling line and the Z-axis direction of the robot coordinate system; It should be noted that in additive manufacturing, when the robot prints a flat surface, the laser print head moves directly along a straight path to print, so the printing speed is faster; when printing on inclined surfaces or curved surfaces that have an angle with the Z-axis direction of the robot coordinate system, it is necessary to adjust the direction of the laser print head according to the normal of each path point to be printed during the printing process. When the adjustment range is large, the robot's printing speed is slower.

[0079] For example, if the model to be printed is a sphere, after the sphere is layered according to the radial direction of the sphere, the outermost part of each cross section is an arc surface, and the middle position is a flat part that can be printed directly. Therefore, in the process of printing the outermost and middle parts, local deposition is easily caused due to uneven printing speed.

[0080] To this end, during the printing process, it is necessary to distinguish the flat parts that can be printed directly from other parts that need to be rotated and adjusted by the laser print head, and optimize the rotation adjustment trajectory of the laser print head to make the overall printing speed more balanced, thereby reducing the occurrence of local excessive deposition.

[0081] In a fill line determined by a to-be-printed section of a to-be-printed model, the angle between the normal vector of the start and end points of the fill line and the Z-axis direction is determined in order to determine the area in the fill line where the trajectory of the laser print head needs to be optimized.

[0082] The angle between the normal vector of the first and last points of the filling route and the Z-axis direction of the robot coordinate system is divided, that is, the angle that needs to be adjusted during a single movement and printing process of the laser print head is divided from a larger angle into multiple smaller angles, thereby facilitating the movement of the laser print head and increasing the movement speed of the laser print head during printing of this area.

[0083] On this basis, it can be understood that the trajectory optimization of the laser print head is carried out from the direction of optimizing the rotation angle of the laser print head. The result of the angle adjustment still needs to be converted into a printing trajectory, that is, the coordinates and directions of each path point on the filling line, in order to finally determine the printing trajectory of the laser print head.

[0084] The trajectory generation module 703 is used to determine the printing trajectory of the robot according to the coordinates and directions of the path points.

[0085] According to the coordinates and directions of the path points finally determined, they are organized into the form of the coordinates and normal vectors of the path points. In the robot coordinate system, that is, the working coordinate system of the laser print head, each path point and its normal vector are added to the robot controller in the form of three-dimensional coordinate position and q1, q2, q3, q4 quaternion postures to generate the 3D printing trajectory of the laser print head, that is, the printing trajectory of the robot.

[0086] The present invention optimizes the printing trajectory of the start and end positions of each layer to be printed of the model to be printed, and makes the motion trajectory of the industrial robot smoother and the printing speed uniform through the interpolation of path points and posture optimization, thereby avoiding the phenomenon of local excessive deposition.

[0087] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the trajectory generation method for additive manufacturing, the method comprising: dividing the model to be printed into layers, determining the filling line of each layer section of the model to be printed; determining the coordinates and directions of multiple path points on the filling line according to the angle division result between the normal vector of the beginning and end points of the filling line and the Z-axis direction of the robot coordinate system; and determining the printing trajectory of the robot according to the coordinates and directions of the path points.

[0088] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0089] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the trajectory generation method for additive manufacturing provided by the above-mentioned methods, which includes: layering the model to be printed, and determining the filling line of each cross-section of the model to be printed; determining the coordinates and directions of multiple path points on the filling line according to the angle division result between the normal vector of the beginning and end points of the filling line and the Z-axis direction of the robot coordinate system; and determining the printing trajectory of the robot according to the coordinates and direction of the path points.

[0090] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the trajectory generation method for additive manufacturing provided by the above-mentioned methods, the method comprising: dividing the model to be printed into layers, and determining the filling line of each cross-section of the model to be printed; determining the coordinates and directions of multiple path points on the filling line according to the angle division result between the normal vectors of the start and end points of the filling line and the Z-axis direction of the robot coordinate system; and determining the printing trajectory of the robot according to the coordinates and direction of the path points.

[0091] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0092] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating a trajectory for additive manufacturing, characterized in that: include: The model to be printed is divided into layers, and a filling line of each cross section of the model to be printed is determined; Determine the coordinates and directions of multiple path points on the filling line according to the angle division result between the normal vectors of the first and last points of the filling line and the Z-axis direction of the robot coordinate system; The printing trajectory of the robot is determined according to the coordinates and directions of the path points.

2. The method for generating a trajectory for additive manufacturing according to claim 1, characterized in that: The step of dividing the model to be printed into layers and determining the filling lines of each cross section of the model to be printed specifically includes: The model to be printed is cut along the Z-axis direction of the robot coordinate system, and a contour curve of each cross section obtained by cutting is determined; Determine the minimum bounding box of the contour curve of each cross section, and generate a set of printing auxiliary lines about the minimum bounding box based on a predetermined offset distance; Perform a Boolean operation on the contour curve of each cross section and the printed auxiliary line to obtain the fill line of each cross section.

3. The method for generating a trajectory for additive manufacturing according to claim 1, characterized in that: The step of determining the coordinates and directions of multiple path points on the filling line according to the angle division result between the normal vectors of the first and last points of the filling line and the Z-axis direction of the robot coordinate system specifically includes: Generate a filling path sequence of the filling lines of each layer of cross section, and determine the normal vectors of two endpoints of each filling path in the filling path sequence; Determine a deviation angle between the normal vector and the Z-axis direction of the robot coordinate system, and divide the deviation angle according to the deviation angle and the number of preset path points; The coordinates and directions of the path points are determined according to the division results of the deviation angles.

4. The method for generating a trajectory for additive manufacturing according to claim 3, characterized in that: The step of generating a filling path sequence of the filling lines of each cross section specifically comprises: A sequence of fill paths is generated using a zigzag type topology to generate fill lines for each layer of cross section.

5. The method for generating a trajectory for additive manufacturing according to claim 3, characterized in that: The step of dividing the deviation angle according to the deviation angle and the preset number of path points specifically includes: Determine a first positioning point in the filling path whose normal vector is perpendicular to the Z-axis direction of the robot coordinate system and is closest to the starting endpoint of the filling path, and a point closest to the ending endpoint of the filling path as a second positioning point; Divide the first angle between the starting endpoint of the filling path and the normal vector of the first positioning point according to the preset number of path points, and divide the second angle between the ending endpoint of the filling path and the normal vector of the second positioning point according to the preset number of path points; An intersection point between an angle bisector that equally divides the first angle and the second angle and the filling path is determined as a path point.

6. The method for generating a trajectory for additive manufacturing according to claim 5, characterized in that: Before the step of dividing the deviation angle according to the deviation angle and the preset number of path points, the method further includes: Determine a first path length between a starting endpoint of the filling path and a first positioning point; determine a second path length between an ending endpoint of the filling path and a second positioning point; Determining the first path length and the second path length as path lengths to be evenly divided; The integer result of the ratio of the length of the path to be evenly divided to the cladding speed of the robot is taken as the preset number of path points.

7. A trajectory generation device for additive manufacturing, characterized in that: include: A line determination module, used for dividing the model to be printed into layers and determining the filling line of each cross section of the model to be printed; A path point determination module, used to determine the coordinates and directions of multiple path points on the filling line according to the angle division result between the normal vectors of the first and last points of the filling line and the Z-axis direction of the robot coordinate system; The trajectory generation module is used to determine the printing trajectory of the robot according to the coordinates and directions of the path points.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the trajectory generation method for additive manufacturing according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating a trajectory for additive manufacturing according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for generating a trajectory for additive manufacturing according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Track control method and system for concrete 3D printing

    CN113882677A

  • Directional energy deposition manufacturing method based on curved surface cantilever structure and product

    CN114425626A

  • Laser additive-shape follow-up rolling composite path planning method and device and medium

    CN115673340A

  • Additive method for thin-wall part with curved surface characteristics

    CN118322571A

  • Electric arc additive manufacturing path planning method, device and equipment and storage medium

    CN118385610A