A laser cladding track planning method
By performing laser contour scanning and inverse kinematics solving on complex curved surfaces, a collision-free joint angle vector set is generated, which solves the interference problem between the robotic arm and the complex curved surface, realizes the safety and continuity of the robotic arm in laser cladding operations on complex curved surfaces, and improves the stability and accuracy of the repair process.
Patent Information
- Application Number
- CN202611223618.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-13
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies, when converting geometric paths into executable robot trajectories, neglect the spatial interference problem between the robotic arm link and the complex curved surface to be clad, leading to physical collisions and repair failures.
Point cloud data is obtained by laser contour scanning of the object to be repaired. Normal vector estimation and triangular mesh reconstruction are performed to construct an equidistant cross-sectional contour point set. Inverse kinematics solution is then performed to eliminate intersecting joint angle vectors and generate a collision-free joint angle vector set. Finally, cubic spline time parameterization interpolation is performed to generate a continuous robotic arm joint space processing trajectory.
It achieves end-to-end motion safety and trajectory dynamic continuity of the robotic arm in laser cladding operations on complex curved surfaces, avoiding equipment damage and improving the stability and accuracy of the repair process.
Smart Images

Figure CN123129133A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of trajectory planning technology, and in particular to a laser cladding trajectory planning method. Background Technology
[0002] In the field of laser cladding repair, automated processing of complex curved surface parts typically relies on 3D scanning and robot path planning technologies. Current mainstream methods generally acquire surface point cloud data of the workpiece to be repaired using a laser scanner. After preprocessing such as denoising and fitting, a target surface model is reconstructed. Then, the machining toolpath is generated using the equidistant section method or projection method. Finally, the robot's inverse kinematics algorithm is used to convert the path points in Cartesian space into trajectories in joint space, ultimately driving a robotic arm to carry a laser to complete the cladding operation. This process has been widely applied in surface strengthening and dimensional restoration of aero-engine blades, molds, and large shaft parts.
[0003] However, the inventors discovered that existing technologies, in converting geometric paths into executable robot trajectories, often only focus on the pose accessibility of the end effector relative to the workpiece surface, neglecting the spatial interference problem between the robotic arm link and the complex curved surface to be clad. Due to the drastic curvature changes of complex surfaces and the irregular structure around the repair area, the joint angle sequence generated solely based on the end effector pose is highly susceptible to physical collisions between the robotic arm link or non-tool-end components and the workpiece during actual movement, resulting in equipment damage or repair failure. Relying solely on manual teaching adjustments or offline simulation software for post-processing verification and manual correction is not only inefficient but also makes it difficult to guarantee the continuous smoothness of the trajectory. Summary of the Invention
[0004] The purpose of this invention is to at least partially solve one of the technical problems existing in the prior art.
[0005] To achieve the above objectives, the present invention provides a laser cladding trajectory planning method, comprising the following steps: Laser contour scanning is performed on the object to be repaired to obtain point cloud data of the object's surface. Normal vector estimation and triangular mesh reconstruction are performed on the point cloud data of the object's surface to obtain the mesh of the surface to be clad. The mesh of the surface to be clad is intersected layer by layer using an equidistant cross-sectional plane sequence. The cross-sectional contour point set in each intersecting layer is extracted, and the cross-sectional contour point set is resampled with equal arc length to obtain the initial processing path point sequence. A laser beam attitude vector is added to each path point in the initial processing path point sequence to construct the complete end pose of each path point. The inverse kinematics solution is performed on the complete end pose to obtain the sequence of robot arm joint angle vectors corresponding to each path point. The bounding box hierarchical intersection test is performed between the geometric model of the robotic arm link corresponding to each joint angle vector and the mesh of the surface to be clad, and the joint angle vectors with intersection are eliminated to obtain a set of collision-free joint angle vectors; The collision-free joint angle vector set is subjected to cubic spline time parameterization interpolation with velocity constraints to generate a continuous robotic arm joint space machining trajectory.
[0006] Furthermore, laser contour scanning is performed on the object to be repaired to obtain point cloud data of the object's surface, including: The laser scanning probe is controlled to project a laser beam onto the object to be repaired, and the diffuse reflection light intensity array on the surface of the object to be repaired is collected. The energy center pixel in the diffuse reflection light intensity array is then extracted. By combining the preset calibration projection matrix of the laser scanning probe, the energy center pixel is inversely projected into spatial coordinates to obtain an initial discrete point set; A spatial grid is constructed for the initial discrete point set, and local neighborhood point clusters of the initial discrete point set are extracted based on the spatial grid. The local covariance matrix of the local neighborhood point clusters is then constructed. The principal curvature feature value is obtained by performing eigenvalue decomposition on the local covariance matrix. Based on the principal curvature feature value, the jump outlier noise points in the initial discrete point set are removed to obtain the point cloud data of the physical surface.
[0007] Furthermore, the normal vector of the point cloud data of the physical surface is estimated and a triangular mesh is reconstructed to obtain the mesh of the surface to be clad, including: Extract the spatial neighborhood coordinates of each data point in the point cloud data of the physical surface, construct the local scatter matrix of the spatial neighborhood coordinates, perform feature decomposition on the local scatter matrix to extract the feature vector corresponding to the minimum feature value, and obtain the initial normal vector. The intrinsic positivity of the initial normal vector is calculated based on the coordinates of the scanning probe. The initial normal vector with a negative value is reversed according to the intrinsic positivity to obtain a set of oriented normal vectors. A spatial scalar field is constructed using the directional normal vector set as a gradient constraint. The implicit distance values of each discrete grid node in the spatial scalar field are calculated to generate a signed distance field. Extract the voxel intersections with implicit distance values of zero from the signed distance field, connect the voxel intersections in sequence, and perform polygon patch fitting to obtain the mesh of the surface to be clad.
[0008] Furthermore, the mesh of the surface to be clad is intersected layer by layer using a sequence of equidistant cross-sections, and the cross-sectional profile point set within each intersecting layer is extracted, including: Extract the spatial bounding box extrema of the mesh to be clad, establish the manufacturing growth axis based on the spatial bounding box extrema, and construct an equidistant cross-sectional plane sequence along the manufacturing growth axis; Extract the topological edges of the surface mesh to be clad, calculate the spatial line-plane intersections of the equidistant cross-section sequence and the topological edges of the mesh, and obtain an initial discrete intersection set; Extract the adjacency topology of the surface mesh to be clad, and perform connectivity matching on the initial discrete intersection set based on the adjacency topology to construct an intersection connectivity sequence; Extract the ordered coordinate nodes from the intersection point connected sequence to obtain the cross-sectional profile point set within each intersection layer.
[0009] Furthermore, a laser beam attitude vector is added to each path point in the initial processing path point sequence to construct the complete end pose of each path point, including: Extract the spatial coordinate difference values of adjacent path points in the initial processing path point sequence, and calculate the path tangential vector; The path points are searched for the nearest point to the surface mesh to be clad, and the matching local mesh patches are extracted to obtain the spatial normal vector of the local mesh patches. Using the spatial normal vector as a reference, and combining it with a preset cladding process tilt angle, the spatial normal vector is rotated around an axis to obtain the laser beam attitude vector. The cross product of the laser beam attitude vector and the path tangential vector is calculated to obtain the path binormal vector; The laser beam attitude vector, the path subnormal vector, and the path tangential vector are orthogonalized to construct a local orthogonal rotation matrix. Extract the three-dimensional position coordinates of each path point, and concatenate the three-dimensional position coordinates with the local orthogonal rotation matrix to obtain the complete end pose of each path point.
[0010] Furthermore, inverse kinematics is performed on the complete end-effector pose to obtain the sequence of robot arm joint angle vectors corresponding to each path point, including: Extract the translation coordinate components and rotation matrix components from the complete end pose, and construct spatial kinematic equations by combining them with preset robotic arm link parameters; The spatial kinematic equations are decomposed by trigonometric algebra to extract multiple sets of inverse spatial solutions that satisfy the complete end pose, thereby obtaining a candidate joint solution set, wherein the candidate joint solution set includes multiple sets of inverse spatial solutions; Extract the numerical difference between each set of spatial inverse solutions in the candidate joint solution set and the state of the preceding joint corresponding to the adjacent preceding path point to obtain the joint angular displacement. Calculate the determinant of the Jacobian matrix corresponding to each set of spatial inverse solutions to obtain the Jacobian singularity; construct the physical motion cost with the joint angular displacement and the Jacobian singularity as constraints, and extract the target spatial inverse solution corresponding to the minimum physical motion cost. The target space corresponding to each path point is sequentially combined to obtain the sequence of robot arm joint angle vectors corresponding to each path point.
[0011] Furthermore, a bounding box hierarchical intersection test is performed between the geometric model of the robotic arm link corresponding to each joint angle vector and the mesh of the surface to be clad, and the intersecting joint angle vectors are removed to obtain a collision-free set of joint angle vectors, including: Based on each joint angle vector in the joint angle vector sequence of the robotic arm, a positive kinematic mapping is performed on the geometric model of the robotic arm link, the spatial extrema of the link are extracted, and the link bounding box is constructed. Extract the set of grid vertex coordinates of the surface to be clad, and perform hierarchical division of the set of grid vertex coordinates based on the spatial span to construct a grid bounding box tree; Extract the geometric separation axis between the link bounding box and the mesh bounding box tree, and project the boundary vertices of the link bounding box and the mesh bounding box tree onto the geometric separation axis to calculate the projection overlap. Based on the projection overlap, collision joint angle vectors with interference are identified, and the collision joint angle vectors are removed from the robotic arm joint angle vector sequence to obtain a set of collision-free joint angle vectors.
[0012] Furthermore, the boundary vertices of the link bounding box and the mesh bounding box tree are projected onto the geometric separation axis to calculate the projection overlap, including: Extract the boundary vertex coordinates of the link bounding box and the mesh bounding box tree, and perform a vector dot product operation on the boundary vertex coordinates based on the geometric separation axis to obtain the axial dot product scalar; Extract the numerical extrema from the axial dot product scalar to construct the scalar extrema boundary, and generate a one-dimensional projection interval of the link bounding box and the mesh bounding box tree based on the scalar extrema boundary; Based on the one-dimensional projection interval, the interval boundary difference between the link bounding box and the mesh bounding box tree is calculated, and the positive interval boundary difference is extracted to construct the scalar intersection length. The spatial interference between the link bounding box and the mesh bounding box tree on the geometric separation axis is determined based on the scalar intersection length, and the projection overlap is obtained.
[0013] Furthermore, the collision-free joint angle vector set is subjected to cubic spline time parameterized interpolation with velocity constraints to generate a continuous robotic arm joint space machining trajectory, including: Extract the joint angle difference components of adjacent vectors in the collision-free joint angle vector set, and perform time-domain span allocation on the joint angle difference components in combination with the preset joint velocity extreme values to obtain the initial time node sequence; The initial time node sequence is subjected to speed limit verification and time step compensation to obtain a compliant time node sequence; A spline interpolation equation system is constructed using the compliant time node sequence and the collision-free joint angle vector set. The kinematic continuity constraints of the spline interpolation equation system are extracted. Based on the kinematic continuity constraints, the coefficients of the spline interpolation equation system are solved to obtain the spline polynomial coefficients. Based on the spline polynomial coefficients, the compliant time node sequence is discretized in the time domain to obtain a continuous robotic arm joint spatial processing trajectory.
[0014] Technical effect This invention provides a laser cladding trajectory planning method, comprising: performing laser contour scanning on the object to be repaired to acquire point cloud data of the object's surface; estimating the normal vector and reconstructing the triangular mesh on the point cloud data to obtain a surface mesh to be clad; performing layer-by-layer intersection on the surface mesh using an equidistant cross-sectional plane sequence, extracting the cross-sectional contour point set within each intersection layer, and resampling the cross-sectional contour point set with equal arc length to obtain an initial processing path point sequence; attaching a laser beam attitude vector to each path point in the initial processing path point sequence to construct the complete end pose of each path point; performing inverse kinematics solution on the complete end pose to obtain a sequence of robotic arm joint angle vectors corresponding to each path point; and using the sequence of robotic arm joint angle vectors corresponding to each joint angle vector to obtain a sequence of robotic arm joint angle vectors. The geometric model of the robotic arm link is subjected to bounding box hierarchical intersection test with the mesh of the surface to be clad, and the joint angle vectors with intersection are eliminated to obtain a collision-free joint angle vector set. The collision-free joint angle vector set is then subjected to cubic spline time parameterized interpolation with velocity constraints to generate a continuous robotic arm joint space machining trajectory. This solves the technical problem that traditional technology is prone to physical collisions between the robotic arm link or non-tool end parts and the workpiece during actual movement, resulting in equipment damage or repair failure. It achieves the coordinated guarantee of the robotic arm's full-link motion safety and trajectory dynamic continuity in laser cladding operations on complex curved surfaces, effectively avoids the risk of physical interference between the link and non-tool end parts and the workpiece, and significantly improves the stability, accuracy and equipment reliability of the repair process. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a schematic diagram of the steps of a laser cladding trajectory planning method in one embodiment of the present invention.
[0017] The objectives, features, and advantages of this invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0018] The embodiments of the present invention are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention. The step numbers in the following embodiments are set only for ease of explanation, and there is no limitation on the order between the steps. The execution order of each step in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.
[0019] The following describes in detail, with reference to the accompanying drawings, a laser cladding trajectory planning method according to an embodiment of the present invention.
[0020] Figure 1 This invention provides a laser cladding trajectory planning method, comprising the following steps: Step S1: Perform laser contour scanning on the object to be repaired to obtain point cloud data of the object's surface. Then, perform normal vector estimation and triangular mesh reconstruction on the point cloud data of the object's surface to obtain the mesh of the surface to be clad.
[0021] Specifically, a laser contour scanner is used to scan the surface of the object to be repaired line by line along a preset path, collecting raw point cloud data containing spatial coordinate information. Principal component analysis is used to decompose the point cloud distribution within a local neighborhood, extracting the eigenvector corresponding to the smallest eigenvalue as the normal vector for that point, thus estimating the surface orientation. Subsequently, a moving cube algorithm or Poisson reconstruction method is used to construct a topologically continuous triangular mesh based on the point cloud position and its normal information, accurately representing the geometry and spatial boundaries of the surface to be clad. In this embodiment, the above scheme achieves high-fidelity digital modeling of complex surfaces, providing a reliable geometric benchmark for subsequent trajectory planning.
[0022] Step S2: The mesh to be clad is intersected layer by layer with an equidistant cross-sectional plane sequence, and the cross-sectional contour point set in each intersecting layer is extracted. The cross-sectional contour point set is resampled with equal arc length to obtain the initial processing path point sequence.
[0023] Specifically, a set of parallel cross-sectional planes are generated at fixed intervals along a preset direction, and their intersections with the mesh of the surface to be clad are calculated sequentially to obtain the set of closed or open cross-sectional contour points for each layer. For each layer of contour point set, the Euclidean distance between adjacent points is first calculated and accumulated to obtain the total arc length. Then, the total arc length is divided equally according to the preset sampling interval. Based on the proportional relationship between the accumulated arc length and the segment length, the coordinates of the interpolation points are located in reverse to achieve uniform resampling of spatial points. This process eliminates the problem of uneven distribution of the original intersection points due to the density of the mesh. In this embodiment, the above scheme ensures the equidistant distribution of the initial processing path points in geometric space, laying the foundation for the smoothness of subsequent motion.
[0024] Step S3: Add laser beam attitude vectors to each path point in the initial processing path point sequence to construct the complete end pose of each path point, and perform inverse kinematics solution on the complete end pose to obtain the robot arm joint angle vector sequence corresponding to each path point.
[0025] Specifically, for each position point in the initial processing path point sequence, the laser beam incident direction is determined based on the surface normal vector at that point. This direction is then used as an attitude vector and combined with the position coordinates to form a complete end-effector pose containing six degrees of freedom information. Subsequently, based on the robotic arm kinematic model, inverse kinematics solutions are performed for each pose using analytical or numerical iterative methods. This maps the Cartesian space pose to joint angle values, outputting the corresponding joint angle vector sequence. During the solution process, the solution that satisfies joint constraints and minimizes the change in joint angles compared to the previous moment is prioritized to ensure motion continuity. In this embodiment, the above scheme achieves accurate conversion from path points to executable joint space.
[0026] Step S4: Perform bounding box hierarchical intersection test between the robotic arm link geometry model corresponding to each joint angle vector and the surface mesh to be clad, and remove the joint angle vectors that intersect to obtain a collision-free joint angle vector set.
[0027] Specifically, based on the joint angle vectors, the robotic arm link geometry model is driven to the corresponding pose, constructing an axis-aligned bounding box tree structure containing each link and the mesh of the surface to be clad. First, the top-level bounding boxes are checked for overlap; if they do not overlap, no collision is determined. If they overlap, the bounding boxes of child nodes are recursively refined layer by layer until the leaf node level, where precise triangular facet intersection testing is performed. Once any link is confirmed to have geometric interference with the surface mesh, the joint angle vector is immediately marked and removed, retaining all vectors that pass the test to form a collision-free joint angle vector set. In this embodiment, the above scheme efficiently filters out potential interference configurations, ensuring the physical safety of trajectory execution.
[0028] Step S5: Perform cubic spline time parameterization interpolation with velocity constraints on the collision-free joint angle vector set to generate a continuous robotic arm joint space machining trajectory.
[0029] Specifically, using discrete nodes in the collision-free joint angle vector set as control points, a cubic spline function is constructed to describe the continuous curve of each joint angle changing with time. Velocity constraints are introduced during interpolation. By adjusting the time span between adjacent nodes, the first derivative of each spline segment is ensured not to exceed the maximum allowable angular velocity of the robotic arm joint, while maintaining continuous acceleration to avoid motion shock. An iterative optimization strategy is used to dynamically allocate time parameters during the solution process until the peak velocity in all intervals meets the limit requirements. The final output is a continuous joint space machining trajectory containing position, velocity, and acceleration information. In this embodiment, the above scheme achieves smooth trajectory generation that conforms to dynamic constraints, ensuring the motion stability of the cladding process.
[0030] In a specific embodiment, laser contour scanning is performed on the object to be repaired to obtain point cloud data of the object's surface, including: The laser scanning probe is controlled to project a laser beam onto the object to be repaired, and the diffuse reflection light intensity array on the surface of the object to be repaired is collected. The energy center pixel in the diffuse reflection light intensity array is then extracted. By combining the preset calibration projection matrix of the laser scanning probe, the energy center pixel is inversely projected into spatial coordinates to obtain an initial discrete point set; A spatial grid is constructed for the initial discrete point set, and local neighborhood point clusters of the initial discrete point set are extracted based on the spatial grid. The local covariance matrix of the local neighborhood point clusters is then constructed. The principal curvature feature value is obtained by performing eigenvalue decomposition on the local covariance matrix. Based on the principal curvature feature value, the jump outlier noise points in the initial discrete point set are removed to obtain the point cloud data of the physical surface.
[0031] Specifically, in the process of obtaining high-precision surface point cloud data by laser contour scanning of the object to be repaired, the laser scanning probe is first driven by the motion control unit to move along a preset trajectory, continuously projecting a linear laser beam onto the surface of the object. When the laser beam irradiates the surface of the object, a light intensity distribution image is formed due to the diffuse reflection characteristics of the material. This diffuse reflection light intensity array is acquired in real time by the image sensor built into the probe. For the grayscale value distribution of each column of pixels in the array, a sub-pixel-level centroid extraction algorithm is used to lock the energy center pixel. The position of this pixel represents the precise imaging coordinates of the laser line on the current cross-section. Subsequently, using the pre-calibrated projection matrix, the coordinates of the two-dimensional energy center pixel are inversely projected into a three-dimensional spatial coordinate system, thereby generating an initial discrete point set reflecting the geometry of the object's surface.
[0032] Given that the original point set inevitably contains noise caused by stray ambient light or abrupt material changes, further spatial filtering is required. Specifically, a uniformly divided three-dimensional spatial grid is constructed based on the spatial bounding box of the initial discrete point set, and each data point is assigned to its corresponding grid cell. For the target point in each grid cell, a local neighborhood cluster within a preset radius is searched, and a local covariance matrix is constructed based on the three-dimensional coordinate deviation of all points within the cluster to characterize the geometric distribution characteristics within the neighborhood. Then, eigenvalue decomposition is performed on the local covariance matrix to obtain three eigenvalues sorted by size, where the largest eigenvalue corresponds to the degree of extension in the principal curvature direction of the local surface, and the smallest eigenvalue reflects the degree of dispersion in the normal thickness direction.
[0033] If the ratio of the maximum to the minimum eigenvalue of a point significantly deviates from the threshold range allowed by the continuity of a normal surface, it indicates that the point exhibits an abnormal jumping trend in its local neighborhood, and is therefore identified as an outlier and removed. Conversely, if the eigenvalue ratio is within a reasonable range, the point is considered to belong to the real surface structure and is retained. After point-by-point traversal and discrimination, all retained valid points together constitute the final point cloud data of the physical surface.
[0034] In this embodiment, the above-mentioned scheme effectively improves the signal-to-noise ratio and geometric fidelity of point cloud data, providing a reliable data foundation for subsequent cladding path planning.
[0035] In a specific embodiment, the normal vector of the point cloud data of the physical surface is estimated and a triangular mesh is reconstructed to obtain the mesh of the surface to be clad, including: Extract the spatial neighborhood coordinates of each data point in the point cloud data of the physical surface, construct the local scatter matrix of the spatial neighborhood coordinates, perform feature decomposition on the local scatter matrix to extract the feature vector corresponding to the minimum feature value, and obtain the initial normal vector. The intrinsic positivity of the initial normal vector is calculated based on the coordinates of the scanning probe. The initial normal vector with a negative value is reversed according to the intrinsic positivity to obtain a set of oriented normal vectors. A spatial scalar field is constructed using the directional normal vector set as a gradient constraint. The implicit distance values of each discrete grid node in the spatial scalar field are calculated to generate a signed distance field. Extract the voxel intersections with implicit distance values of zero from the signed distance field, connect the voxel intersections in sequence, and perform polygon patch fitting to obtain the mesh of the surface to be clad.
[0036] Specifically, after acquiring point cloud data of the physical surface, the first step is to perform normal vector estimation to characterize the local geometric orientation. For each data point in the point cloud, the coordinate set of its neighboring points within a preset spatial radius is retrieved, and a local scatter matrix is constructed based on the coordinate deviation of each point in this set relative to the center point. Eigenvalue decomposition is performed on this local scatter matrix, and the unit eigenvector corresponding to the smallest eigenvalue is extracted as the initial normal vector for that point. This direction characterizes the direction of the normal of the locally fitted plane. Since the normal obtained from eigenvalue decomposition has bidirectional uncertainty, further global orientation correction is required. Using the optical center coordinates of the laser scanning probe at the acquisition time as the reference origin, the inner product value between each initial normal vector and the line-of-sight vector pointing from the optical center to the corresponding data point is calculated. When the inner product value is negative, it indicates that the current normal deviates from the observation direction, contradicting the physical imaging mechanism; therefore, the initial normal vector is reversed. If the inner product value is positive or zero, the original direction remains unchanged, thus obtaining a set of oriented normal vectors with consistent orientation.
[0037] After normal orientation is completed, the implicit surface reconstruction stage begins. Using the set of oriented normal vectors as gradient constraints, a spatial scalar field is constructed in the 3D regular mesh space surrounding the point cloud. By solving the Poisson equation or a similar variational optimization problem, the gradient direction of the scalar field at each data point is positively correlated with the corresponding oriented normal vector, while ensuring that the field function tends to decay smoothly in regions far from the surface. After numerical solution, each discrete mesh node is assigned an implicit distance value. The absolute value of this value approximately represents the Euclidean distance from the node to the real surface, and the sign indicates whether the node is located inside or outside the surface, thus generating a complete signed distance field. Subsequently, all voxel elements in the signed distance field are traversed to detect whether there is a sign jump in the implicit distance values between adjacent nodes. For voxel edges with zero crossings, linear interpolation is used to accurately locate spatial intersections with implicit distance values of zero. These zero-value intersections are sequentially connected in series according to the voxel topological connection relationship, and then fitted into triangular or polygonal patches using marching cubes or similar algorithms. Finally, they are spliced together to form a closed and continuous mesh of the surface to be clad.
[0038] In this embodiment, the above scheme realizes a robust transformation from discrete disordered point clouds to high-fidelity parametric surfaces, ensuring that the geometric model on which the subsequent cladding path planning depends has accurate normal consistency and topological integrity.
[0039] In a specific embodiment, the mesh of the surface to be clad is intersected layer by layer using a sequence of equidistant cross-sections, and the cross-sectional profile point set within each intersection layer is extracted, including: Extract the spatial bounding box extrema of the mesh to be clad, establish the manufacturing growth axis based on the spatial bounding box extrema, and construct an equidistant cross-sectional plane sequence along the manufacturing growth axis; Extract the topological edges of the surface mesh to be clad, calculate the spatial line-plane intersections of the equidistant cross-section sequence and the topological edges of the mesh, and obtain an initial discrete intersection set; Extract the adjacency topology of the surface mesh to be clad, and perform connectivity matching on the initial discrete intersection set based on the adjacency topology to construct an intersection connectivity sequence; Extract the ordered coordinate nodes from the intersection point connected sequence to obtain the cross-sectional profile point set within each intersection layer.
[0040] Specifically, in the process of extracting the cross-sectional profile point set by layer-by-layer intersection of the mesh of the surface to be clad, the geometric datum for layered manufacturing must first be established. By traversing the three-dimensional coordinates of all vertices in the mesh of the surface to be clad, the minimum and maximum values of each axis in the Cartesian coordinate system are obtained, thereby determining the extrema of the spatial bounding box surrounding the entire surface. Based on this range of extrema, a direction perpendicular to the preset manufacturing growth axis is selected as the layering normal, and within the projection interval of the bounding box along this axis, a series of parallel and equally spaced cross-sectional plane sequences are generated according to the preset layer thickness step size. This manufacturing growth axis is usually consistent with the deposition direction of the laser cladding head to ensure that the subsequent layer slicing matches the actual processing posture.
[0041] Subsequently, for each mesh topological edge in the surface to be clad, it is determined whether its two vertices are located on opposite sides of the current cross-section. If the opposite-side condition is met, the precise spatial coordinates of the edge and the cross-section are calculated based on the principle of linear interpolation. All intersections that meet the condition are summarized to form the initial discrete intersection set of the current layer. Since the mesh edges are stored in an unordered state in space, the resulting intersections also lack a natural order, and it is necessary to further utilize the adjacency topological relationship of the mesh for connectivity reorganization. Specifically, a starting intersection is randomly selected from the initial discrete intersection set. Based on the next edge shared by the two adjacent triangular faces to which it belongs, the next intersection corresponding to that edge is found, and so on, continuously tracing along the mesh boundary until returning to the starting point or reaching the end point of the open boundary, thereby constructing a connected sequence of intersections with a clear order. For cases with multiple independent contours, the above tracing process is repeated until all intersections are assigned to the corresponding sequence.
[0042] Finally, ordered coordinate nodes are extracted sequentially from each intersection connection sequence. These nodes are spatially connected end-to-end and oriented in the same direction, collectively forming the set of closed or open cross-sectional profile points within the intersection layer. When determining the intersection of the edge line and the cutting plane, a floating-point tolerance threshold is used to handle numerical accuracy issues, preventing missed or duplicate intersections due to rounding errors. The layer thickness step size setting also fully considers the engineering balance between the single-pass height capability of the cladding process and the surface step effect, ensuring that the slicing results meet both geometric approximation accuracy and actual manufacturing constraints.
[0043] In this embodiment, the above scheme achieves an efficient and robust conversion from a three-dimensional curved mesh to a two-dimensional ordered contour, providing a hierarchical geometric input with a clear structure and correct topology for subsequent path planning.
[0044] In a specific embodiment, a laser beam attitude vector is added to each path point in the initial processing path point sequence to construct the complete end pose of each path point, including: Extract the spatial coordinate difference values of adjacent path points in the initial processing path point sequence, and calculate the path tangential vector; The path points are searched for the nearest point to the surface mesh to be clad, and the matching local mesh patches are extracted to obtain the spatial normal vector of the local mesh patches. Using the spatial normal vector as a reference, and combining it with a preset cladding process tilt angle, the spatial normal vector is rotated around an axis to obtain the laser beam attitude vector. The cross product of the laser beam attitude vector and the path tangential vector is calculated to obtain the path binormal vector; The laser beam attitude vector, the path subnormal vector, and the path tangential vector are orthogonalized to construct a local orthogonal rotation matrix. Extract the three-dimensional position coordinates of each path point, and concatenate the three-dimensional position coordinates with the local orthogonal rotation matrix to obtain the complete end pose of each path point.
[0045] Specifically, when adding a laser beam attitude vector to the initial processing path point sequence to construct a complete end pose, the local motion direction of the path must first be established. For any two adjacent path points in the sequence, their three-dimensional spatial coordinates are extracted and the difference value is calculated. This difference vector is normalized and used as the path tangential vector of the current path point. This vector represents the instantaneous forward direction of the laser cladding head moving along the trajectory. At the same time, in order to obtain an attitude reference that matches the surface geometry, each path point is subjected to a nearest neighbor search algorithm towards the mesh of the surface to be clad, locating the local mesh facet with the smallest distance, and directly reading the pre-stored spatial normal vector of this facet. Considering that the laser beam is not strictly perpendicular to the workpiece surface in the actual cladding process, but needs to maintain a specific forward tilt angle to optimize the flow of the molten pool and the powder capture efficiency, the spatial normal vector is rotated around the path tangential vector as the rotation axis by a preset cladding process forward tilt angle. The resulting new vector is the laser beam attitude vector, which accurately describes the spatial orientation of the laser optical axis during operation.
[0046] To ensure that the end effector coordinate system satisfies the right-hand rule and that each axis is independent, an orthogonal reference system needs to be constructed. A cross product operation is performed on the obtained laser beam attitude vector and path tangential vector to generate a path binormal vector perpendicular to both, representing the lateral reference of the cladding head. Subsequently, the laser beam attitude vector, path binormal vector, and path tangential vector are jointly orthogonalized to eliminate non-orthogonal components caused by accumulated numerical calculation errors, thus constructing a standard local orthogonal rotation matrix. The three column vectors of this rotation matrix correspond to the three principal axes of the end effector coordinate system, ensuring the mathematical rigor of the attitude description. Finally, the original three-dimensional position coordinates of each path point are extracted as translation components and concatenated with the local orthogonal rotation matrix according to the standard format of a homogeneous transformation matrix, forming a fourth-order square matrix containing position and attitude information, i.e., the complete end effector pose of each path point. Throughout the pose construction process, all vector operations adhere to strict physical definitions and geometric constraints. The rotation operation of the tilt angle is explicitly limited to the plane defined by the path tangential vector, avoiding attitude ambiguity caused by multi-degree-of-freedom coupling. The orthogonalization process ensures that the determinant of the rotation matrix is always positive one, eliminating engineering taboos such as mirror transformation or scale distortion. Furthermore, the mesh resolution and tilt angle range on which the nearest point search depends are set according to the typical metal cladding process window, ensuring both the real-time performance of the attitude calculation and that the laser incident conditions are always within the effective cladding range.
[0047] In this embodiment, the above scheme achieves deep integration of path geometry information and process posture parameters, and the generated end pose has both trajectory continuity and process adaptability, providing complete kinematic input for the robot to accurately perform cladding operations.
[0048] In a specific embodiment, inverse kinematics is performed on the complete end-effector pose to obtain the sequence of robot arm joint angle vectors corresponding to each path point, including: Extract the translation coordinate components and rotation matrix components from the complete end pose, and construct spatial kinematic equations by combining them with preset robotic arm link parameters; The spatial kinematic equations are decomposed by trigonometric algebra to extract multiple sets of inverse spatial solutions that satisfy the complete end pose, thereby obtaining a candidate joint solution set, wherein the candidate joint solution set includes multiple sets of inverse spatial solutions; Extract the numerical difference between each set of spatial inverse solutions in the candidate joint solution set and the state of the preceding joint corresponding to the adjacent preceding path point to obtain the joint angular displacement. Calculate the determinant of the Jacobian matrix corresponding to each set of spatial inverse solutions to obtain the Jacobian singularity; construct the physical motion cost with the joint angular displacement and the Jacobian singularity as constraints, and extract the target spatial inverse solution corresponding to the minimum physical motion cost. The target space corresponding to each path point is sequentially combined to obtain the sequence of robot arm joint angle vectors corresponding to each path point.
[0049] Specifically, when performing inverse kinematics on the complete end-effector pose to obtain the joint angle vector sequence of the robotic arm, it is first necessary to establish a mapping relationship from Cartesian space to joint space. The translational coordinate components and rotation matrix components in the complete end-effector pose are extracted as target output constraints. Combined with preset robotic arm link parameters (such as DH parameters or POE exponential product parameters), a closed-form spatial kinematic equation describing the nonlinear relationship between the end-effector pose and each joint variable is constructed. For this equation, an analytical or semi-analytical trigonometric algebraic decomposition is performed. Utilizing the specific geometric characteristics of the robotic arm (such as parallel or intersecting adjacent axes), the high-dimensional coupled equation is reduced to a set of independently solvable sub-equations. This mathematically exhausts all joint configuration combinations that satisfy the current end-effector pose, forming a candidate joint solution set containing multiple sets of spatial inverse solutions.
[0050] Given the existence of redundant degrees of freedom or multiple solution branches, it is necessary to select the optimal target solution from the candidate joint solution set. On the one hand, the Euclidean distance or weighted norm between each set of spatial inverse solutions and the preceding joint states corresponding to adjacent preceding path points is calculated to obtain the joint angular displacement, which reflects the smoothness and energy consumption level of trajectory execution. On the other hand, the Jacobian matrix of each set of spatial inverse solutions is calculated by substituting it into the current configuration, and the absolute value of the determinant of this matrix is taken as the Jacobian singularity, which is used to characterize the risk of the configuration approaching the kinematic singularity point. Subsequently, a comprehensive physical motion cost function is constructed using the reciprocal of the joint angular displacement and the Jacobian singularity (or the normalized singularity measure) as dual constraint factors. By traversing the candidate set and comparing the cost values, the spatial inverse solution that minimizes the cost function is selected as the target spatial inverse solution of the current path point, ensuring that the selected configuration is both far from the singular region and maintains the continuity of joint motion.
[0051] Finally, the inverse solutions of the target space corresponding to all path points are arranged sequentially according to the temporal or spatial order of the original path point sequence, forming a complete sequence of joint angle vectors for the robotic arm. During the trigonometric algebraic decomposition, the structural symmetry and geometric degeneracy of the robotic arm are fully utilized, avoiding convergence failures that may occur with numerical iteration methods. In the construction of the cost function, both joint angular displacements and Jacobian singularities are dimensionless, eliminating the risk of weight imbalance caused by differences in the ranges of different joints and inconsistencies in the singularity dimensions. Simultaneously, the selection of the preceding joint state is strictly limited to the previously confirmed valid solution, ensuring causal continuity in time and preventing trajectory abrupt changes or collision risks caused by skipping solution selection.
[0052] In this embodiment, the above-mentioned scheme realizes an efficient and robust conversion from task space pose to joint space command. The generated joint angle vector sequence has kinematic feasibility, trajectory smoothness and singularity avoidance capability, providing a reliable underlying control input for the robotic arm to safely and accurately perform cladding operations.
[0053] In a specific embodiment, a bounding box hierarchical intersection test is performed between the robotic arm link geometry model corresponding to each joint angle vector and the mesh of the surface to be clad, and the intersecting joint angle vectors are eliminated to obtain a collision-free joint angle vector set, including: Based on each joint angle vector in the joint angle vector sequence of the robotic arm, a positive kinematic mapping is performed on the geometric model of the robotic arm link, the spatial extrema of the link are extracted, and the link bounding box is constructed. Extract the set of grid vertex coordinates of the surface to be clad, and perform hierarchical division of the set of grid vertex coordinates based on the spatial span to construct a grid bounding box tree; Extract the geometric separation axis between the link bounding box and the mesh bounding box tree, and project the boundary vertices of the link bounding box and the mesh bounding box tree onto the geometric separation axis to calculate the projection overlap. Based on the projection overlap, collision joint angle vectors with interference are identified, and the collision joint angle vectors are removed from the robotic arm joint angle vector sequence to obtain a set of collision-free joint angle vectors.
[0054] Specifically, when performing bounding box hierarchical intersection tests between the robotic arm link geometry model corresponding to each joint angle vector and the mesh of the surface to be clad to eliminate collision configurations, it is first necessary to establish a spatial occupancy representation of the robotic arm under the current joint configuration. For each set of joint angle vectors in the robotic arm joint angle vector sequence, forward kinematic mapping calculations are performed to obtain the precise pose of each link in the base coordinate system; then, the spatial extremum points of each link geometry model (usually a simplified convex hull or original CAD boundary representation) under this pose are extracted, and axis-aligned bounding boxes or oriented bounding boxes that tightly wrap the link entities are constructed accordingly, forming a dynamically updated set of link bounding boxes. At the same time, to accelerate the query efficiency on the environment side, the vertex coordinate set of the mesh of the surface to be clad is recursively divided according to its spatial distribution span, and a top-down hierarchical partitioning strategy is used to construct a mesh bounding box tree. Each node in this tree structure stores the bounding box of the corresponding sub-mesh region and the child node index, while the leaf nodes are associated with the actual triangular facets.
[0055] After entering the intersection detection phase, a top-down traversal is performed on the link bounding box and mesh bounding box tree corresponding to each set of joint angle vectors. During the traversal, the potential geometric separation axis between the current link bounding box and the current tree node bounding box is extracted. This axis is usually formed by the face normal or edge cross product direction of the two bounding boxes. Then, all boundary vertices of the two bounding boxes are orthogonally projected onto this geometric separation axis, and the minimum and maximum values of their respective projection intervals are calculated. The overlap length of the two intervals is then obtained as the projection overlap. If there is a non-zero projection overlap on all candidate separation axes, it is determined that the current level bounding box pair may interfere, and the process continues to delve into child nodes or switches to precise patch-level detection. If the projection overlap is zero on any separation axis, it is immediately determined that the two do not intersect, and the branch traversal is terminated early. When a set of joint angle vectors causes at least one link bounding box and any leaf node in the mesh bounding box tree to pass all separation axis tests and is precisely verified to have geometric penetration, the joint angle vector is marked as a collision joint angle vector.
[0056] Finally, all entries identified as colliding joint angle vectors are systematically removed from the original robotic arm joint angle vector sequence, retaining the remaining configurations that have not interfered, forming a collision-free joint angle vector set. In the bounding box construction phase, a conservative outward expansion strategy is adopted for the link geometry model to ensure that the real entity is completely contained within the bounding box, avoiding missed detections. In the separation axis selection, only mathematically complete axis sets are used to prevent misjudgments due to missing axes. Furthermore, the mesh bounding box tree's partitioning depth and the upper limit of the number of leaf node faces are dynamically set based on real-time requirements and memory constraints, maximizing computational throughput while ensuring detection accuracy. The removal operation only applies to vectors that have been confirmed to collide, without modifying the order or value of the remaining vectors, maintaining the integrity of the path's temporal sequence.
[0057] In this embodiment, the above scheme realizes a high-fidelity and high-efficiency collision filtering mechanism. The resulting collision-free joint angle vector set not only ensures the physical safety of the robotic arm in complex curved surface cladding operations, but also retains a feasible configuration with sufficient density to support subsequent trajectory interpolation and process continuity requirements.
[0058] In a specific embodiment, the boundary vertices of the link bounding box and the mesh bounding box tree are projected onto the geometric separation axis to calculate the projection overlap, including: Extract the boundary vertex coordinates of the link bounding box and the mesh bounding box tree, and perform a vector dot product operation on the boundary vertex coordinates based on the geometric separation axis to obtain the axial dot product scalar; Extract the numerical extrema from the axial dot product scalar to construct the scalar extrema boundary, and generate a one-dimensional projection interval of the link bounding box and the mesh bounding box tree based on the scalar extrema boundary; Based on the one-dimensional projection interval, the interval boundary difference between the link bounding box and the mesh bounding box tree is calculated, and the positive interval boundary difference is extracted to construct the scalar intersection length. The spatial interference between the link bounding box and the mesh bounding box tree on the geometric separation axis is determined based on the scalar intersection length, and the projection overlap is obtained.
[0059] Specifically, when calculating the projection overlap by projecting the boundary vertices of the link bounding box and the mesh bounding box tree onto the geometric separation axis, a dimensionality reduction mapping from 3D space to a 1D scalar axis is first required. Specifically, the coordinates of all boundary vertices of the link bounding box and the current mesh bounding box tree node are extracted. These 3D coordinate vectors are then subjected to a vector dot product operation with the normalized geometric separation axis to obtain the axial dot product scalar value of each vertex along that axis. This scalar value accurately represents the algebraic position of each vertex along the separation axis, providing fundamental data for subsequent interval construction.
[0060] Subsequently, based on the obtained axial dot product scalar set, extreme value searches are performed on the vertex scalars of the link bounding box and the mesh bounding box tree, respectively, extracting their respective minimum and maximum values as scalar extreme value boundaries. Using the minimum value as the lower bound and the maximum value as the upper bound, two independent one-dimensional projection intervals are generated, representing the spatial occupancy range of the link entity and the environment mesh along the current separation axis direction. This step transforms the complex three-dimensional geometric intersection problem into a simple one-dimensional interval relationship judgment, significantly reducing computational complexity.
[0061] After entering the overlap measurement stage, the boundary difference of the two one-dimensional projection intervals is calculated. Specifically, the larger of the lower bounds of the two intervals and the smaller of the upper bounds are taken, and the difference is calculated. If the difference is positive, it is used as the scalar intersection length, representing the actual overlapping line segment length of the two bounding boxes on the current separation axis. If the difference is zero or negative, the scalar intersection length is set to zero, indicating that the two are completely separated on that axis. Finally, this scalar intersection length is directly defined as the projection overlap of the link bounding box and the mesh bounding box tree on the current geometric separation axis. This value is not only used to determine whether interference has occurred (overlap greater than zero indicates a potential collision), but also serves as a quantitative indicator of penetration depth for subsequent precise detection or safety margin assessment.
[0062] In vector dot product operations, the geometric separation axis is pre-normalized to ensure that the axial dot product scalar has a clear physical length meaning. In interval boundary difference calculations, a standard one-dimensional interval intersection formula is used to avoid redundant conditional branches and numerical ambiguity. Furthermore, all extreme value searches and difference operations are performed within floating-point tolerance to prevent rounding errors from misclassifying bounding boxes that should be in contact as separate. This projection overlap extraction mechanism, as the core of the separation axis test, ensures both the mathematical rigor of intersection determination and the computational efficiency required for real-time collision detection.
[0063] In this embodiment, the above scheme achieves efficient and accurate conversion from three-dimensional geometry to one-dimensional quantity. The extracted projection overlap provides a reliable and quantifiable interference basis for bounding box hierarchical intersection testing, and supports the robust generation of collision-free joint angle vector sets.
[0064] In a specific embodiment, the collision-free joint angle vector set is subjected to cubic spline time parameterized interpolation with velocity constraints to generate a continuous robotic arm joint space machining trajectory, including: Extract the joint angle difference components of adjacent vectors in the collision-free joint angle vector set, and perform time-domain span allocation on the joint angle difference components in combination with the preset joint velocity extreme values to obtain the initial time node sequence; The initial time node sequence is subjected to speed limit verification and time step compensation to obtain a compliant time node sequence; A spline interpolation equation system is constructed using the compliant time node sequence and the collision-free joint angle vector set. The kinematic continuity constraints of the spline interpolation equation system are extracted. Based on the kinematic continuity constraints, the coefficients of the spline interpolation equation system are solved to obtain the spline polynomial coefficients. Based on the spline polynomial coefficients, the compliant time node sequence is discretized in the time domain to obtain a continuous robotic arm joint spatial processing trajectory.
[0065] Specifically, when generating continuous robotic arm joint space machining trajectories by performing velocity-constrained cubic spline time parameterized interpolation on a collision-free joint angle vector set, the initial mapping relationship between path points and the time domain must first be established. The angular difference components of adjacent vectors in each joint dimension of the collision-free joint angle vector set are extracted. For each joint, the ratio of the absolute value of this difference to the preset joint velocity extreme value is calculated. The maximum value of this ratio among all joints is taken as the minimum feasible time span of the current segment, thus ensuring that no joint exceeds the speed limit. The time domain spans of all path segments are sequentially accumulated to construct an initial time node sequence containing the corresponding times of each path point. This sequence provides the basic time skeleton for subsequent interpolation.
[0066] Subsequently, a rigorous velocity limit check and dynamic compensation are performed on the initial time node sequence. Each segment is checked to see if the instantaneous velocity derived from the current time span exceeds physical limits or process-allowed thresholds. If a limit violation is found, the time step size for that segment is increased proportionally, and all subsequent time nodes are adjusted synchronously to maintain a monotonically increasing time series. This compensation process is iteratively executed until the entire sequence satisfies the velocity constraints, ultimately outputting a compliant time node sequence. This sequence preserves the geometric order of the original path points and incorporates dynamic feasibility guarantees, laying a legitimate time base for spline construction.
[0067] After entering the spline construction stage, a piecewise cubic polynomial spline interpolation equation system is established using the compliant time node sequence and the collision-free joint angle vector set as known conditions. Triple kinematic continuity constraints (position continuity, velocity continuity, and acceleration continuity) are applied at each internal node, and natural or specified velocity boundary conditions are added at the beginning and end points to form a closed linear equation system. This equation system is efficiently solved (e.g., using the chasing method to handle tridiagonal structures), yielding four coefficients for each segment of the cubic polynomial, i.e., the spline polynomial coefficients. These coefficients precisely encode the local analytical expression of the joint angles changing over time and globally satisfy C0. 2 Continuity requirement.
[0068] Finally, based on the obtained spline polynomial coefficients, time-domain discrete sampling is performed at fixed or adaptive sampling intervals within each time period defined by the compliant time node sequence. Substituting the sampling time into the corresponding cubic polynomial and its first and second derivative expressions, the joint angle, angular velocity, and angular acceleration values are output synchronously, thereby generating a high-density, smooth, and dynamically compliant continuous robotic arm joint space machining trajectory. In the time step compensation stage, only expansion is performed without contraction to avoid compromising the verified compliance; in the spline equation system construction, the constraints are complete and the matrix structure is good, ensuring the uniqueness and stability of the numerical solution. Furthermore, the discrete sampling density can be adaptively adjusted according to the curvature or acceleration rate of change, reducing the data volume in the smooth trajectory region and improving the resolution in the high dynamic region, balancing storage efficiency and execution accuracy.
[0069] In this embodiment, the above-mentioned scheme realizes a high-fidelity conversion from discrete collision-free configurations to continuous executable trajectories. The generated joint space machining trajectory not only passes through all safe configuration points geometrically, but also strictly meets the speed constraints and kinematic smoothness requirements in the time domain, providing a complete sequence of underlying motion commands for the robotic arm to complete the cladding operation stably, accurately and efficiently.
Claims
1. A laser cladding trajectory planning method, characterized in that, Includes the following steps: Laser contour scanning is performed on the object to be repaired to obtain point cloud data of the object's surface. Normal vector estimation and triangular mesh reconstruction are performed on the point cloud data of the object's surface to obtain the mesh of the surface to be clad. The mesh of the surface to be clad is intersected layer by layer using an equidistant cross-sectional plane sequence. The cross-sectional contour point set in each intersecting layer is extracted, and the cross-sectional contour point set is resampled with equal arc length to obtain the initial processing path point sequence. A laser beam attitude vector is added to each path point in the initial processing path point sequence to construct the complete end pose of each path point. The inverse kinematics solution is performed on the complete end pose to obtain the sequence of robot arm joint angle vectors corresponding to each path point. The bounding box hierarchical intersection test is performed between the geometric model of the robotic arm link corresponding to each joint angle vector and the mesh of the surface to be clad, and the joint angle vectors with intersection are eliminated to obtain a set of collision-free joint angle vectors; The collision-free joint angle vector set is subjected to cubic spline time parameterization interpolation with velocity constraints to generate a continuous robotic arm joint space machining trajectory.
2. The laser cladding trajectory planning method according to claim 1, characterized in that, Laser contour scanning is performed on the object to be repaired to obtain point cloud data of the object's surface, including: The laser scanning probe is controlled to project a laser beam onto the object to be repaired, and the diffuse reflection light intensity array on the surface of the object to be repaired is collected. The energy center pixel in the diffuse reflection light intensity array is then extracted. By combining the preset calibration projection matrix of the laser scanning probe, the energy center pixel is inversely projected into spatial coordinates to obtain an initial discrete point set; A spatial grid is constructed for the initial discrete point set, and local neighborhood point clusters of the initial discrete point set are extracted based on the spatial grid. The local covariance matrix of the local neighborhood point clusters is then constructed. The principal curvature feature value is obtained by performing eigenvalue decomposition on the local covariance matrix. Based on the principal curvature feature value, the jump outlier noise points in the initial discrete point set are removed to obtain the point cloud data of the physical surface.
3. The laser cladding trajectory planning method according to claim 1, characterized in that, The normal vector of the point cloud data of the physical surface is estimated and a triangular mesh is reconstructed to obtain the mesh of the surface to be clad, including: Extract the spatial neighborhood coordinates of each data point in the point cloud data of the physical surface, construct the local scatter matrix of the spatial neighborhood coordinates, perform feature decomposition on the local scatter matrix to extract the feature vector corresponding to the minimum feature value, and obtain the initial normal vector. The intrinsic positivity of the initial normal vector is calculated based on the coordinates of the scanning probe. The initial normal vector with a negative value is reversed according to the intrinsic positivity to obtain a set of oriented normal vectors. A spatial scalar field is constructed using the directional normal vector set as a gradient constraint. The implicit distance values of each discrete grid node in the spatial scalar field are calculated to generate a signed distance field. Extract the voxel intersections with implicit distance values of zero from the signed distance field, connect the voxel intersections in sequence, and perform polygon patch fitting to obtain the mesh of the surface to be clad.
4. The laser cladding trajectory planning method according to claim 1, characterized in that, The mesh of the surface to be clad is intersected layer by layer using a sequence of equidistant cross-sections, and the set of cross-sectional profile points within each intersecting layer is extracted, including: Extract the spatial bounding box extrema of the mesh to be clad, establish the manufacturing growth axis based on the spatial bounding box extrema, and construct an equidistant cross-sectional plane sequence along the manufacturing growth axis; Extract the topological edges of the surface mesh to be clad, calculate the spatial line-plane intersections of the equidistant cross-section sequence and the topological edges of the mesh, and obtain an initial discrete intersection set; Extract the adjacency topology of the surface mesh to be clad, and perform connectivity matching on the initial discrete intersection set based on the adjacency topology to construct an intersection connectivity sequence; Extract the ordered coordinate nodes from the intersection point connected sequence to obtain the cross-sectional profile point set within each intersection layer.
5. The laser cladding trajectory planning method according to claim 1, characterized in that, A laser beam attitude vector is attached to each path point in the initial processing path point sequence to construct the complete end pose of each path point, including: Extract the spatial coordinate difference values of adjacent path points in the initial processing path point sequence, and calculate the path tangential vector; The path points are searched for the nearest point to the surface mesh to be clad, and the matching local mesh patches are extracted to obtain the spatial normal vector of the local mesh patches. Using the spatial normal vector as a reference, and combining it with a preset cladding process tilt angle, the spatial normal vector is rotated around an axis to obtain the laser beam attitude vector. The cross product of the laser beam attitude vector and the path tangential vector is calculated to obtain the path binormal vector; The laser beam attitude vector, the path subnormal vector, and the path tangential vector are orthogonalized to construct a local orthogonal rotation matrix. Extract the three-dimensional position coordinates of each path point, and concatenate the three-dimensional position coordinates with the local orthogonal rotation matrix to obtain the complete end pose of each path point.
6. The laser cladding trajectory planning method according to claim 1, characterized in that, Inverse kinematics is performed on the complete end-effector pose to obtain the sequence of robot joint angle vectors corresponding to each path point, including: Extract the translation coordinate components and rotation matrix components from the complete end pose, and construct spatial kinematic equations by combining them with preset robotic arm link parameters; The spatial kinematic equations are decomposed by trigonometric algebra to extract multiple sets of inverse spatial solutions that satisfy the complete end pose, thereby obtaining a candidate joint solution set, wherein the candidate joint solution set includes multiple sets of inverse spatial solutions; Extract the numerical difference between each set of spatial inverse solutions in the candidate joint solution set and the state of the preceding joint corresponding to the adjacent preceding path point to obtain the joint angular displacement. Calculate the determinant of the Jacobian matrix corresponding to each set of spatial inverse solutions to obtain the Jacobian singularity; construct the physical motion cost with the joint angular displacement and the Jacobian singularity as constraints, and extract the target spatial inverse solution corresponding to the minimum physical motion cost. The target space corresponding to each path point is sequentially combined to obtain the sequence of robot arm joint angle vectors corresponding to each path point.
7. The laser cladding trajectory planning method according to claim 1, characterized in that, A bounding box hierarchical intersection test is performed between the geometric model of the robotic arm link corresponding to each joint angle vector and the mesh of the surface to be clad. Intersecting joint angle vectors are removed to obtain a collision-free set of joint angle vectors, including: Based on each joint angle vector in the joint angle vector sequence of the robotic arm, a positive kinematic mapping is performed on the geometric model of the robotic arm link, the spatial extrema of the link are extracted, and the link bounding box is constructed. Extract the set of grid vertex coordinates of the surface to be clad, and perform hierarchical division of the set of grid vertex coordinates based on the spatial span to construct a grid bounding box tree; Extract the geometric separation axis between the link bounding box and the mesh bounding box tree, and project the boundary vertices of the link bounding box and the mesh bounding box tree onto the geometric separation axis to calculate the projection overlap. Based on the projection overlap, collision joint angle vectors with interference are identified, and the collision joint angle vectors are removed from the robotic arm joint angle vector sequence to obtain a set of collision-free joint angle vectors.
8. The laser cladding trajectory planning method according to claim 7, characterized in that, The boundary vertices of the link bounding box and the mesh bounding box tree are projected onto the geometric separation axis, and the projection overlap is extracted, including: Extract the boundary vertex coordinates of the link bounding box and the mesh bounding box tree, and perform a vector dot product operation on the boundary vertex coordinates based on the geometric separation axis to obtain the axial dot product scalar; Extract the numerical extrema from the axial dot product scalar to construct the scalar extremum boundary, and generate a one-dimensional projection interval of the link bounding box and the mesh bounding box tree based on the scalar extremum boundary; Based on the one-dimensional projection interval, the interval boundary difference between the link bounding box and the mesh bounding box tree is calculated, and the positive interval boundary difference is extracted to construct the scalar intersection length. The spatial interference between the link bounding box and the mesh bounding box tree on the geometric separation axis is determined based on the scalar intersection length, and the projection overlap is obtained.
9. The laser cladding trajectory planning method according to claim 1, characterized in that, Perform velocity-constrained cubic spline time parameterized interpolation on the collision-free joint angle vector set to generate a continuous robotic arm joint space machining trajectory, including: Extract the joint angle difference components of adjacent vectors in the collision-free joint angle vector set, and perform time-domain span allocation on the joint angle difference components in combination with the preset joint velocity extreme values to obtain the initial time node sequence; The initial time node sequence is subjected to speed limit verification and time step compensation to obtain a compliant time node sequence; A spline interpolation equation system is constructed using the compliant time node sequence and the collision-free joint angle vector set. The kinematic continuity constraints of the spline interpolation equation system are extracted. Based on the kinematic continuity constraints, the coefficients of the spline interpolation equation system are solved to obtain the spline polynomial coefficients. Based on the spline polynomial coefficients, the compliant time node sequence is discretized in the time domain to obtain a continuous robotic arm joint spatial processing trajectory.
