A robot trajectory planning method and system for electric vehicle stator welding
By optimizing the welding trajectory of electric vehicle stators using integer programming algorithms and an improved flocking optimization algorithm, the problems of difficult and inefficient trajectory planning in galvanometer scanning laser welding technology are solved, achieving efficient and continuous welding trajectory planning and improving the quality and efficiency of robot welding.
Patent Information
- Application Number
- CN202411826013.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-12-12
AI Technical Summary
Existing galvanometer scanning laser welding technology has problems such as difficulty in trajectory planning, low work efficiency, and easy damage to the enamel film of enameled wire in stator welding of electric vehicles, and has failed to make full use of its advantages of fast positioning speed.
A collaborative trajectory planning method based on dynamic and static performance index optimization is adopted, which combines integer programming algorithm, fine geometric obstacle avoidance detection and improved chicken flocking optimization algorithm. The trajectory is smoothed by quintic spline interpolation, and the robot welding path is optimized to ensure that the robot performs welding tasks in the optimal order, avoids collisions and improves welding accuracy.
It significantly improves the efficiency of robotic welding, shortens the initial planning and debugging time for engineers, generates continuous and smooth welding trajectories, suppresses impacts on the robot system, and improves welding quality and efficiency.
Smart Images

Figure CN119858155B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of industrial robot technology, specifically relating to a robot trajectory planning method and system for stator welding of electric vehicles. Background Technology
[0002] With the rapid development of the electric vehicle market, the performance requirements for motor manufacturing are increasing, especially the precision and efficiency of welding processes. Therefore, to meet the growing demands of the electric vehicle market, motor manufacturers have been seeking ways to improve motor power and performance. Flat-wire motors, which insert flat copper wire into the stator slots, have a larger fill factor compared to traditional motors, resulting in higher power density, higher thermal load capacity, and enhanced reliability and stability.
[0003] To overcome the limitations of traditional laser welding technology used in electric vehicle stators, galvanometer scanning laser welding technology has been developed. It offers advantages such as high positioning speed and high welding precision. However, the diverse weld seam shapes introduced by this technology present new technical challenges for robot motion planning, such as difficulties in trajectory planning and low robot efficiency. Furthermore, galvanometer scanning laser welding technology is prone to damaging the enamel film on enameled wires, affecting production efficiency and failing to fully utilize its high positioning speed advantage. Summary of the Invention
[0004] To overcome the technical problems of existing galvanometer scanning laser welding technology, this invention provides a robot trajectory planning method and system for stator welding in electric vehicles. This invention is a collaborative trajectory planning method and system based on dynamic and static performance index optimization, primarily applied to laser welding robots for electric vehicle stators.
[0005] The technical solution adopted by this invention to solve the technical problem is as follows:
[0006] This invention provides a robot trajectory planning method for stator welding in electric vehicles, comprising the following steps:
[0007] Step S1: Robot initialization;
[0008] Step S2: Use an integer programming algorithm to find the welding path to ensure that the robot performs welding tasks in the optimal order;
[0009] When the integer programming algorithm is used for path planning in an undirected graph, for two nodes with an edge, only one variable is considered. Inequality constraints are added to prevent the formation of cycles, and the number of sub-cycles and the vertex set are determined based on the integer programming solution results.
[0010] For a given weighted undirected graph, the direction of the path is not considered, that is, it is not necessary to distinguish the nodes. To the node edge and nodes To the node edge If we only consider one variable, then we only consider... In any case, as long as and If there is an edge, then Therefore, the following relationship exists:
[0011] (4);
[0012] in, and Both represent nodes. Represents a node To the node The edge, Represents a node To the node The edge, The weight of the edge is represented by n, and the number of nodes is represented by n.
[0013] The constraints are as follows:
[0014] ;
[0015] ;
[0016] in, Represents a node To the node The edge, Represents a node To the node The edge;
[0017] Rewritten variables The number of elements in the set has been reduced by half, but the above constraints do not prevent the formation of cycles; therefore, assuming that integer programming is used to solve the problem, the set of elements containing... Vertex set of a subcircle , All are vertices, and V is the vertex set. The vertex set containing only one sub-cycle is obtained through calculation. ;
[0018] Step S3: Plan the welding path using a fine geometric obstacle avoidance detection method. Envelope the robotic arm and obstacles using capsule body envelope and spherical sweep body method respectively, and use the geometric relationship between the two to complete distance detection and obstacle avoidance processing.
[0019] Step S4: Trajectory planning;
[0020] S4.1: Use quintic spline interpolation to smooth the planned welding trajectory, ensuring the continuity and smoothness of the trajectory;
[0021] S4.2: Limit the robot's speed, acceleration, and jerk by setting the initial speed, initial acceleration, termination speed, and termination acceleration of the robot's end effector;
[0022] S4.3: Introduce optimization algorithms to iteratively optimize the trajectory, and calculate the number of joint angle conditions, global joint motion, and robot flexibility index;
[0023] Step S5: Establish a robot trajectory optimization model, input finite parameters, and plan the optimal smooth trajectory offline;
[0024] Step S6: The robot performs welding operations along the optimal smooth trajectory.
[0025] Furthermore, by calculation, the vertex set containing only one sub-cycle is obtained, i.e. The specific implementation process is as follows:
[0026] First, add The inequality constraints are then resolved and solved again using integer programming. The specific calculation formula is as follows:
[0027] (5);
[0028] in, This represents the k-th vertex in the vertex set;
[0029] Then, based on the results obtained from resolving the integer programming problem, the number of sub-cycles contained in the solution is determined. as well as Vertex set of a subcircle .
[0030] Furthermore, the specific implementation process of step S3 is as follows:
[0031] S3.1: Set a safe distance between the robot and obstacles to ensure that no collisions occur during the welding process;
[0032] S3.2: Use robot inverse kinematics to calculate joint angles to ensure the accessibility of each welding point on the robot;
[0033] S3.3: By detecting the geometric relationship between obstacles and robot links, possible collisions are identified and handled.
[0034] Furthermore, the quintic spline interpolation method is used for spline node interpolation on a given interval. Through integration and substitution of boundary conditions, an underdetermined system of equations containing unknowns and equations is obtained. Then, fixed boundary conditions are added to obtain a definite solution to the linear system of equations.
[0035] Furthermore, the optimization algorithm is an improved flock optimization algorithm. In the improved flock optimization algorithm, roosters, hens, and chicks have different position update strategies. Roosters account for 20% of the flock size, hens account for 40%, and chicks account for 40%, with a flock size of 50. Roosters randomly update their positions, and the update strategy is based on an improved normal distribution to enhance the search breadth. Hens usually follow roosters when foraging, and their position update strategy is constrained by the roosters' behavior and involves stealing food. An attraction mechanism is introduced to improve the search depth. Chicks can only follow hens, and their position update strategy is improved based on the hens' positions.
[0036] Furthermore, the finite parameters include: the working environment axis range and the robot DH model parameters, wherein the robot DH model parameters are: link offsets of 1.045, 0, 0, 1.025, 0 and 0 respectively, link lengths of 0.5, 1.3, -0.055, 0, 0 and 0 respectively, and link rotation angles of -90°, 0°, -90°, 90°, -90° and 0° respectively.
[0037] Furthermore, the specific implementation process of step S5 is as follows:
[0038] First, the positional information of the robotic arm is extracted from the individual units, and a corresponding kinematic model is constructed. Then, the accessibility of the welding path and the movement sequence of the robotic arm are determined through a series of operations, and the tasks of overlapping points are assigned using a nonlinear optimization method. The collision risk of the robotic arm during the movement is evaluated using a function, and multiple evaluation indicators are calculated to ensure that no collision occurs, including the laser welding gun accessibility index, robot flexibility index, and global joint motion index. The fitness function integrates these indicators and measures the motion performance of the robotic arm by setting different weight coefficients. Finally, the function outputs the fitness value and a detailed result structure, which includes the motion path of each robotic arm, the specific values of each index, and the position, velocity, and acceleration of the robotic arm at different time points.
[0039] The present invention provides a robot trajectory planning system for stator welding of electric vehicles, comprising: a joint welding path planning module and a performance optimization trajectory planning module;
[0040] The joint welding path planning module uses an integer programming algorithm and a fine geometric obstacle avoidance detection method for path planning. By detecting the geometric relationship between obstacles and robot links, and using inverse kinematics to calculate joint angles, it ensures the accessibility of the weld point, enabling the robot to perform collision-free welding tasks in the optimal order.
[0041] The performance optimization trajectory planning module uses quintic spline interpolation to smooth the trajectory, limits speed and acceleration, calculates the joint angle condition number, global joint motion, and robot flexibility index, and then obtains a smooth laser welding robot trajectory through a cost function and collision detection algorithm.
[0042] The beneficial effects of this invention are:
[0043] This invention provides a robot trajectory planning method and system for stator welding in electric vehicles. It employs an integer programming algorithm for path planning, combined with quintic spline interpolation and an improved chicken flocking optimization algorithm for trajectory optimization. Specifically, it includes initializing the environment and robot model, setting parameters and updating strategies, calculating joint angle condition numbers, and inverse kinematics. This method enables offline planning of optimal smooth trajectories, significantly improving robot efficiency and shortening the initial planning and debugging time for engineers. Experimental results show that the method effectively suppresses impacts on the robot system, obtaining time-optimal obstacle avoidance trajectories with continuous acceleration, providing valuable reference for further applications in engineering machinery automation and industrial robot technology. Attached Figure Description
[0044] Figure 1 This is the iterative evolution curve of the algorithm's cost value in this invention.
[0045] Figure 2 This refers to the angular acceleration of joint 1 of the robot end effector of the present invention.
[0046] Figure 3 The angle of joint 1 of the robot end effector of the present invention.
[0047] Figure 4 This refers to the angular velocity of joint 1 of the robot end effector of the present invention.
[0048] Figure 5 This refers to the angular acceleration of joint 1 of the robot end effector of the present invention.
[0049] Figure 6 The angle of joint 2 of the robot end effector of the present invention.
[0050] Figure 7 This refers to the angular velocity of joint 2 of the robot end effector of the present invention.
[0051] Figure 8 This refers to the angular acceleration of joint 2 of the robot end effector of the present invention.
[0052] Figure 9 This refers to the angular acceleration of joint 2 of the robot end effector of the present invention.
[0053] Figure 10The angle of joint 3 of the robot end effector of the present invention.
[0054] Figure 11 This refers to the angular velocity of joint 3 of the robot end effector of the present invention.
[0055] Figure 12 This refers to the angular acceleration of joint 3 of the robot end effector of the present invention.
[0056] Figure 13 This refers to the angular acceleration of joint 3 of the robot end effector of the present invention.
[0057] Figure 14 The angle of joint 4 of the robot end effector of the present invention.
[0058] Figure 15 This refers to the angular velocity of joint 4 of the robot end effector of the present invention.
[0059] Figure 16 This refers to the angular acceleration of joint 4 of the robot end effector of the present invention.
[0060] Figure 17 This refers to the angular acceleration of joint 4 of the robot end effector of the present invention.
[0061] Figure 18 The angle of joint 5 of the robot end effector of the present invention.
[0062] Figure 19 This refers to the angular velocity of joint 5 of the robot end effector of the present invention.
[0063] Figure 20 This refers to the angular acceleration of joint 5 of the robot end effector of the present invention.
[0064] Figure 21 This refers to the angular acceleration of joint 5 of the robot end effector of the present invention.
[0065] Figure 22 The angle of joint 6 of the robot end effector of the present invention.
[0066] Figure 23 This refers to the angular velocity of joint 6 of the robot end effector of the present invention.
[0067] Figure 24 This refers to the angular acceleration of joint 6 of the robot end effector of the present invention.
[0068] Figure 25 This refers to the angular acceleration of joint 6 of the robot end effector of the present invention.
[0069] Figure 26 This is the iterative evolution curve of the robot dexterity index of the present invention.
[0070] Figure 27 This is the iterative evolution curve of the reachability index of the laser welding gun of the present invention.
[0071] Figure 28 This is the iterative evolution curve of the global joint motion index of the robot in this invention.
[0072] Figure 29 This is the iterative evolution curve of the robot installation position according to the present invention.
[0073] Figure 30 The present invention provides a flowchart of a robot trajectory planning method for stator welding of electric vehicles. Detailed Implementation
[0074] The present invention will be further described in detail below with reference to the accompanying drawings.
[0075] In a first aspect, the present invention provides a robot trajectory planning method for stator welding of electric vehicles.
[0076] See Figure 30 The present invention provides a robot trajectory planning method for stator welding in electric vehicles, the specific implementation process of which is as follows:
[0077] Step S1: Robot initialization, including setting the environment, model, and related parameters;
[0078] Step S2: Use an integer programming algorithm to find the welding path to ensure that the robot performs welding tasks in the optimal order;
[0079] When integer programming is used for path planning in undirected graphs, for two nodes with an edge, only one variable is considered. Inequality constraints are added to prevent the formation of cycles, and the number of sub-cycles and the vertex set are determined based on the integer programming solution.
[0080] Integer programming algorithms can accurately provide the optimal solution for the welding path.
[0081] In the prior art, the constraints applied to a given weighted undirected graph are as follows:
[0082] (1);
[0083] (2);
[0084] (3);
[0085] The three constraints described above respectively indicate that each node has only one outgoing arc, and each node has only one incoming arc. node To the node The edge, Integer variables that are either 0 or 1 and Let S represent nodes, and V represent vertex sets. Although an integer programming approach is used, constraints that do not form cycles are not easy to represent.
[0086] Therefore, this invention employs an improved integer programming method: specifically, for a given weighted undirected graph, the direction of the path can be disregarded, i.e., it is not necessary to distinguish between nodes. To the node edge and nodes To the node edge We only need to consider one variable, therefore, we only need to consider one variable. In any case, as long as and If there is an edge, then Therefore, the following relationship exists:
[0087] (4);
[0088] in, and Both represent nodes. Represents a node To the node The edge, Represents a node To the node The edge, The weight of the edge is represented by n, and the number of nodes is represented by n.
[0089] The constraints are as follows:
[0090] ;
[0091] ;
[0092] in, Represents a node To the node The edge, Represents a node To the node The edge.
[0093] Rewritten variables The number of elements in the set has been reduced by half. However, the above constraints do not prevent constraints that form cycles. Therefore, assuming that integer programming is used to solve the problem, the set of elements containing... Vertex set of a subcircle , Let V be a set of vertices, and let V be the vertex set. Then, perform the following operations sequentially until you obtain a vertex set containing only one subcycle. .
[0094] Specifically, first increase The inequality constraints are then resolved and solved again using integer programming. The specific calculation formula is as follows:
[0095] (5);
[0096] in, This represents the k-th vertex in the vertex set.
[0097] Then, based on the results obtained from resolving the integer programming problem, the number of sub-cycles contained in the solution is determined. as well as Vertex set of a subcircle .
[0098] Step S3: Plan the welding path using a refined geometric obstacle avoidance detection method. Envelope the robotic arm and obstacles using both capsule-like and spherical swept-body methods, and utilize the geometric relationship between these methods to complete distance detection, further refining the obstacle avoidance process. The specific implementation flow is as follows:
[0099] S3.1: Set a safe distance between the robot and obstacles to ensure that no collisions occur during the welding process;
[0100] S3.2: Use robot inverse kinematics to calculate joint angles to ensure the accessibility of each welding point on the robot;
[0101] S3.3: By detecting the geometric relationship between obstacles and robot links, possible collisions are identified and handled.
[0102] Step S4: Trajectory planning;
[0103] Trajectory planning is performed using a quintic spline interpolation function and an improved chicken flocking optimization algorithm. The quintic spline interpolation function is primarily used for spline node interpolation over a given interval. Through integration and substitution of boundary conditions, an underdetermined system of equations containing unknowns and equations is obtained. Finally, fixed boundary conditions are added to obtain a definite solution to the linear system of equations. The specific implementation process is as follows:
[0104] S4.1: Use quintic spline interpolation to smooth the planned welding trajectory, ensuring the continuity and smoothness of the trajectory;
[0105] S4.2: Limit the robot's speed, acceleration, and jerk by setting the initial speed, initial acceleration, termination speed, and termination acceleration of the robot's end effector;
[0106] S4.3: Introduce optimization algorithms to iteratively optimize the trajectory, calculating factors including the number of joint angle conditions, global joint motion, and robot flexibility index.
[0107] Specifically, the optimization algorithm can be an improved chicken flock optimization algorithm.
[0108] In the improved flock optimization algorithm, roosters, hens, and chicks have different position update strategies. Roosters account for 20% of the flock, hens account for 40%, and chicks account for 40%, with a flock size of 50. Roosters randomly update their positions, and the update strategy is based on an improved normal distribution to enhance search breadth. Hens usually follow roosters when foraging, and their position update strategy is constrained by rooster behavior and involves stealing food. An attraction mechanism is introduced to improve the search depth. Chicks can only follow hens, and their position update strategy is improved based on the hens' positions.
[0109] Step S5: Establish a laser welding robot trajectory optimization model. Inputting finite parameters allows for offline planning of the optimal smooth trajectory. The finite parameters mainly include: the working environment axis range and the robot DH model parameters. The specific robot DH model parameters are as follows: link offsets are 1.045, 0, 0, 1.025, 0, and 0; link lengths are 0.5, 1.3, -0.055, 0, 0, and 0; and link rotation angles are -90°, 0°, -90°, 90°, -90°, and 0°. First, the positional information of the robotic arm is extracted from the individual units, and a corresponding kinematic model is constructed. Then, the accessibility of the welding path and the movement sequence of the robotic arm are determined through a series of operations, and the tasks of overlapping points are assigned using a nonlinear optimization method. The collision risk of the robotic arm during the movement is evaluated using a function, and multiple evaluation indicators are calculated to ensure that no collision occurs, including the laser welding gun accessibility index, robot flexibility index, and global joint motion index. The fitness function integrates these indicators and measures the motion performance of the robotic arm by setting different weight coefficients. Finally, the function outputs the fitness value and a detailed result structure, which includes the motion path of each robotic arm, the specific values of each index, and the position, velocity, and acceleration of the robotic arm at different time points.
[0110] Step S6: The robot performs welding operations according to the above-mentioned optimal smooth trajectory.
[0111] To verify the performance of the trajectory planning method for a laser welding robot used in stator welding of electric vehicles, parameters such as robot base coordinates, working environment axis range, and robot DH model parameters were set. Fifth-order spline interpolation was used to default the robot's velocity and acceleration. The flock size was 100 individuals, and the evolutionary generation was 50 generations. The test results are as follows: Figures 1 to 29 As shown.
[0112] Depend on Figure 1 As can be seen, the iterative evolution curve of the algorithm cost in this invention shows the changes in the fitness values of the CSO algorithm before and after the improvement during the evolution process. The improved CSO algorithm exhibits better stability and adaptability during the evolution process.
[0113] Depend on Figures 2 to 25 It can be seen that after determining the motion parameters, the trajectory is generated in joint space using a fifth-order spline interpolation function. The robot completes the task in 16 seconds. The angular velocity curves at the initial and target nodes are 0 rad / s², and the overall trajectory speed is continuous and smooth. The angular acceleration curves at the initial and target nodes are also 0 rad / s², and the variation range of the trajectory angular acceleration curves planned by the improved CSO algorithm meets the actual angular acceleration constraints. The initial impact values of the robot's six joints are relatively large, and the final impact values of joints 3 and 6 are also relatively large. Joint 3 is mainly responsible for position transformation, and joint 6 is mainly responsible for adjusting the welding posture. Frequent adjustments to the welding posture cause the robot to bear a larger impact value. The results not only prove that the trajectory planning method based on the improved CSO can generate continuous and smooth trajectories.
[0114] The iterative evolution curve of the robot dexterity index of this invention is as follows: Figure 26 As shown, the robot is highly flexible and its welding posture adjustment is relatively flexible, thus enabling it to complete welding tasks in areas with large curvature.
[0115] The iterative evolution curve of the reachability index of the laser welding gun of the present invention is as follows: Figure 27 As shown, after 40 iterations, the reachability index of the robot's welding gun converges to TA = 1, so there are no unreachable welding poses.
[0116] The iterative evolution curve of the robot's global joint motion index in this invention is as follows: Figure 28 As shown, because the curved parts at the welding points that the robot is responsible for have a greater degree of curvature, it needs to adjust the welding pose more often. After the robot has been iterated to the 40th generation, although there is a slight increase, the total amount of joint motion converges to the minimum value.
[0117] The iterative evolution curve of the robot installation position in this invention is as follows: Figure 29 As shown, because the curved parts at the welding points that the robot is responsible for have a greater degree of curvature, it needs to adjust the welding pose more often. After the robot has been iterated to the 40th generation, although there is a slight increase, the total amount of joint motion converges to the minimum value.
[0118] Secondly, the present invention provides a robot trajectory planning system for stator welding of electric vehicles.
[0119] The present invention provides a robot trajectory planning system for stator welding of electric vehicles, which is mainly used to implement the robot trajectory planning method for stator welding of electric vehicles provided in the first aspect of the present invention. Specifically, it includes the following modules: joint welding path planning module and performance optimization trajectory planning module.
[0120] The joint welding path planning module uses integer programming algorithm and fine geometric obstacle avoidance detection method for path planning. By detecting the geometric relationship between obstacles and robot links, and using inverse kinematics to calculate joint angles, it ensures the accessibility of weld points, enabling the robot to perform collision-free welding tasks in the optimal order.
[0121] Among them, the performance optimization trajectory planning module uses quintic spline interpolation to smooth the trajectory, limits speed and acceleration, calculates indicators such as joint angle condition number, global joint motion and robot flexibility, and then obtains a smooth laser welding robot trajectory through cost function and collision detection algorithm.
[0122] In summary, the robot trajectory planning method and system for stator welding of electric vehicles provided by this invention can effectively suppress the impact of the robot working system and obtain the obstacle avoidance trajectory with optimal time and continuous acceleration. It can provide a valid reference for robot trajectory planning. The various models, parameters and robot operation data in this invention have certain reference value for robot trajectory planning methods.
[0123] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A robot trajectory planning method for stator welding in electric vehicles, characterized in that, Includes the following steps: Step S1: Robot initialization; Step S2: Use an integer programming algorithm to find the welding path to ensure that the robot performs welding tasks in the optimal order; When the integer programming algorithm is used for path planning in an undirected graph, for two nodes with an edge, only one variable is considered. Inequality constraints are added to prevent the formation of cycles, and the number of sub-cycles and the vertex set are determined based on the integer programming solution results. For a given weighted undirected graph, the direction of the path is not considered, that is, it is not necessary to distinguish the nodes. To the node edge and nodes To the node edge If we only consider one variable, then we only consider... In any case, as long as and If there is an edge, then Therefore, the following relationship exists: (4); in, and Both represent nodes. Represents a node To the node The edge, Represents a node To the node The edge, The weight of the edge is represented by n, and the number of nodes is represented by n. The constraints are as follows: ; ; in, Represents a node To the node The edge, Represents a node To the node The edge; Rewritten variables The number of elements in the set has been reduced by half, but the above constraints do not prevent the formation of cycles; therefore, assuming that integer programming is used to solve the problem, the set of elements containing... Vertex set of a subcircle , All are vertices, and V is the vertex set. The vertex set containing only one sub-cycle is obtained through calculation. ; Step S3: Plan the welding path using a fine geometric obstacle avoidance detection method. Envelope the robotic arm and obstacles using capsule body envelope and spherical sweep body method respectively, and use the geometric relationship between the two to complete distance detection and obstacle avoidance processing. Step S4: Trajectory planning; S4.1: Use quintic spline interpolation to smooth the planned welding trajectory, ensuring the continuity and smoothness of the trajectory; S4.2: Limit the robot's speed, acceleration, and jerk by setting the initial speed, initial acceleration, termination speed, and termination acceleration of the robot's end effector; S4.3: Introduce optimization algorithms to iteratively optimize the trajectory, and calculate the number of joint angle conditions, global joint motion, and robot flexibility index; Step S5: Establish a robot trajectory optimization model, input finite parameters, and plan the optimal smooth trajectory offline; Step S6: The robot performs welding operations along the optimal smooth trajectory.
2. The robot trajectory planning method for stator welding of electric vehicles according to claim 1, characterized in that, The vertex set containing only one sub-cycle is obtained through calculation, i.e. The specific implementation process is as follows: First, add The inequality constraints are then resolved and solved again using integer programming. The specific calculation formula is as follows: (5); in, This represents the k-th vertex in the vertex set; Then, based on the results obtained from resolving the integer programming problem, the number of sub-cycles contained in the solution is determined. as well as Vertex set of a subcircle .
3. The robot trajectory planning method for stator welding of electric vehicles according to claim 1, characterized in that, The specific implementation process of step S3 is as follows: S3.1: Set a safe distance between the robot and obstacles to ensure that no collisions occur during the welding process; S3.2: Use robot inverse kinematics to calculate joint angles to ensure the accessibility of each welding point on the robot; S3.3: By detecting the geometric relationship between obstacles and robot links, possible collisions are identified and handled.
4. The robot trajectory planning method for stator welding of electric vehicles according to claim 1, characterized in that, The quintic spline interpolation method is used for spline node interpolation on a given interval. By integrating and substituting boundary conditions, an underdetermined system of equations containing unknowns and equations is obtained. Then, by adding fixed boundary conditions, a definite solution to the linear system of equations is obtained.
5. The robot trajectory planning method for stator welding of electric vehicles according to claim 1, characterized in that, The optimization algorithm described is an improved flock optimization algorithm. In this algorithm, roosters, hens, and chicks have different position update strategies. Roosters make up 20% of the flock, hens 40%, and chicks 40%, with a flock size of 50. Roosters randomly update their positions, and the update strategy is based on an improved normal distribution to enhance search breadth. Hens usually follow roosters when foraging, and their position update strategy is constrained by rooster behavior and involves theft. An attraction mechanism is introduced to improve search depth. Chicks can only follow hens, and their position update strategy is based on an improved hens' position.
6. The robot trajectory planning method for stator welding of electric vehicles according to claim 1, characterized in that, The finite parameters include: the working environment axis range and the robot DH model parameters. The robot DH model parameters are: link offsets of 1.045, 0, 0, 1.025, 0 and 0, link lengths of 0.5, 1.3, -0.055, 0, 0 and 0, and link rotation angles of -90°, 0°, -90°, 90°, -90° and 0°.
7. The robot trajectory planning method for stator welding of electric vehicles according to claim 1, characterized in that, The specific implementation process of step S5 is as follows: First, the position information of the robotic arm is extracted from the individual and the corresponding kinematic model is constructed. Then, the accessibility of the welding path and the movement sequence of the robotic arm are determined through a series of operations, and the tasks of overlapping points are assigned using a nonlinear optimization method. The function assesses the collision risk of the robotic arm during its movement and calculates multiple evaluation metrics, including laser welding gun reachability, robot dexterity, and global joint motion, while ensuring that no collision occurs. The fitness function integrates these metrics and measures the robotic arm's motion performance by setting different weighting coefficients. Finally, the function outputs the fitness value and a detailed result structure, which includes the motion path of each robotic arm, the specific values of each metric, and the position, velocity, and acceleration of the robotic arm at different time points.
8. A robot trajectory planning system for stator welding of electric vehicles, used to implement the robot trajectory planning method for stator welding of electric vehicles as described in claim 1, characterized in that, include: Joint welding path planning module and performance optimization trajectory planning module; The joint welding path planning module uses an integer programming algorithm and a fine geometric obstacle avoidance detection method for path planning. By detecting the geometric relationship between obstacles and robot links, and using inverse kinematics to calculate joint angles, it ensures the accessibility of the weld point, enabling the robot to perform collision-free welding tasks in the optimal order. The performance optimization trajectory planning module uses quintic spline interpolation to smooth the trajectory, limits speed and acceleration, calculates the joint angle condition number, global joint motion, and robot flexibility index, and then obtains a smooth laser welding robot trajectory through a cost function and collision detection algorithm.
Citation Information
Patent Citations
Device and method for making robot track given route at high accuracy
CN101623867A
Impact constrained robot obstacle avoidance and time optimal trajectory planning method
CN113885535A
