Manipulator processing path planning method, device, equipment and storage medium
Through the combination of hierarchical hybrid decentralized planning strategy and dynamic environment model, the balance problem of efficiency and accuracy in robot processing path planning is solved, and mechanical problems are predicted through simulation mechanics analysis, achieving a more efficient and safer processing process.
Patent Information
- Application Number
- CN202410760463.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-13
AI Technical Summary
Existing manipulator processing path planning methods are difficult to find a balance between processing efficiency and accuracy, especially in complex environments and changing task requirements, and ignore the analysis of mechanical characteristics, resulting in possible mechanical problems and safety hazards.
A hierarchical hybrid decentralized planning strategy is used to decompose and plan machining tasks in detail, combined with piecewise polynomial interpolation and dynamic environment models for trajectory adjustment, the improved GoldS-PSO algorithm is used to optimize path time, and simulation mechanics analysis is performed to predict and adjust mechanical parameters.
It improves the efficiency and accuracy of robot processing, enhances the adaptability in complex environments, reduces processing time, extends the service life of the robot, and improves processing safety and reliability.
Smart Images

Figure CN118322219B
Abstract
Description
Technical Field
[0001] The present application relates to the field of machine vision technology, and in particular to a robot processing path planning method, device, equipment and storage medium. Background Art
[0002] With the continuous improvement of industrial automation level, the requirements for robot processing path planning are getting higher and higher. It is necessary not only to ensure the accuracy and repeatability of processing, but also to improve the processing efficiency under the premise of ensuring safety. However, the existing path planning methods often find it difficult to find an ideal balance between processing efficiency and processing accuracy, especially in complex processing environments and changing task requirements. This problem is particularly prominent.
[0003] As the complexity of processing tasks increases, a single trajectory planning strategy is often difficult to meet diverse processing needs. For example, for complex processing projects with multiple processing subtasks, how to effectively decompose the tasks and dynamically adjust the processing trajectory according to the processing environment and real-time data to optimize the processing efficiency and processing quality has become an urgent problem to be solved. The prior art lacks a path planning method that can comprehensively consider the processing environment, task complexity and dynamic performance of the manipulator, which limits the further improvement of the manipulator's processing efficiency. On the other hand, traditional manipulator path planning often ignores the analysis of mechanical properties during the processing process, which may cause the manipulator to encounter unforeseen mechanical problems during the processing, such as excessive stress and deformation, and may even damage the manipulator or the workpiece. Therefore, how to introduce mechanical parameter analysis in the path planning process to predict and avoid possible mechanical problems in advance has become the key to improving the safety and reliability of manipulator processing. The lack of comprehensive consideration of mechanical properties in manipulator processing path planning not only limits the improvement of processing accuracy, but also affects the service life and processing safety of the manipulator. Summary of the invention
[0004] The present application provides a robot processing path planning method, device, equipment and storage medium, which are used to improve the accuracy of robot processing path planning.
[0005] In a first aspect, the present application provides a robot processing path planning method, the robot processing path planning method comprising:
[0006] Performing processing task planning on the target manipulator to obtain a processing task planning result, and performing trajectory planning on the target manipulator to generate a first manipulator processing trajectory;
[0007] Dynamically adjusting the processing trajectory of the first manipulator to obtain a processing trajectory of the second manipulator, and optimizing the path time of the processing trajectory of the second manipulator to obtain a target processing time parameter;
[0008] Based on the second manipulator processing trajectory and the target processing time parameter, a simulation mechanical analysis is performed on the target manipulator to obtain manipulator mechanical parameters, and a target manipulator processing trajectory of the target manipulator is generated.
[0009] In a second aspect, the present application provides a robot processing path planning device, the robot processing path planning device comprising:
[0010] A planning module is used to plan a processing task for a target manipulator, obtain a processing task planning result, and perform trajectory planning for the target manipulator to generate a first manipulator processing trajectory;
[0011] An adjustment module, used for dynamically adjusting the machining trajectory of the first manipulator to obtain the machining trajectory of the second manipulator, and performing path time optimization on the machining trajectory of the second manipulator to obtain a target machining time parameter;
[0012] A generation module is used to perform a simulation mechanical analysis on the target manipulator based on the second manipulator processing trajectory and the target processing time parameter to obtain manipulator mechanical parameters and generate a target manipulator processing trajectory of the target manipulator.
[0013] The third aspect of the present application provides a robot processing path planning device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the robot processing path planning device executes the above-mentioned robot processing path planning method.
[0014] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned robot machining path planning method.
[0015] In the technical solution provided by the present application, the processing trajectory of the manipulator can be accurately controlled by effectively decomposing the processing task based on the hierarchical hybrid decentralized planning strategy and carefully planning each subtask, thereby improving the processing efficiency and accuracy. The use of piecewise polynomial interpolation further ensures the smoothness of the path and avoids the sudden changes that may occur during the processing process, which is crucial to improving the quality of the processed parts. By establishing a dynamic environment model and performing collision prediction analysis and dynamic adjustment of the trajectory according to the processing environment and real-time data, the adaptability of the manipulator in a complex and changing processing environment is enhanced. This dynamic adjustment mechanism enables the manipulator to respond to changes in the external environment in real time to ensure the continuity and safety of the processing process. The improved GoldS-PSO algorithm is used for path time optimization, which can effectively reduce the total time required for processing while ensuring the processing quality. The application of this algorithm not only improves the efficiency of path planning, but also further improves the economy and practicality of the entire processing process by optimizing the time parameters. By performing simulation mechanical analysis on the processing trajectory and target processing time parameters of the second manipulator, the mechanical parameters of the manipulator are obtained in time. This step can predict the mechanical problems that the manipulator may encounter when performing a specific task before processing. This predictive analysis helps to make adjustments in advance, reduce mechanical damage and processing failures caused by mechanical problems, extend the service life of the robot, and improve the safety and reliability of processing. By identifying abnormal trajectory segments and correcting them, a fine trajectory adjustment mechanism is provided for the robot. This adjustment is not only based on mechanical parameters, but also takes into account trajectory stability, thereby ensuring the optimal performance of the robot when performing processing tasks and avoiding errors and risks that may occur during the processing process. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0017] Figure 1 A schematic diagram of an embodiment of a robot processing path planning method in an embodiment of the present application;
[0018] Figure 2 This is a schematic diagram of an embodiment of a robot processing path planning device in an embodiment of the present application. DETAILED DESCRIPTION
[0019] The embodiments of the present application provide a method, device, equipment and storage medium for manipulator processing path planning. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0020] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 , an embodiment of the robot processing path planning method in the embodiment of the present application includes:
[0021] Step S101, performing processing task planning on the target manipulator to obtain the processing task planning result, and performing trajectory planning on the target manipulator to generate a first manipulator processing trajectory;
[0022] It is understandable that the execution subject of the present application may be a robot processing path planning device, or a terminal or a server, which is not specifically limited here. The present application embodiment is described by taking a server as the execution subject as an example.
[0023] It should be noted that, in this embodiment, before planning the processing task for the target manipulator, the target manipulator needs to be calibrated. The specific calibration information includes: XY step size: 3 mm; angle step size: 3 degrees; image size: 1280 * 1024; field of view: 13.358 * 10.660 (mm * mm); X-direction resolution 0.010436 (mm / pixel); X-direction resolution 0.010410 (mm / pixel).
[0024] Specifically, a dot target is placed in the camera field of view, and the relationship between the camera and the mechanical rotation center is determined by the 5-point calibration method. The initial coordinates of the target are recorded as ORG, and after the simulated target rotates N degrees around the mechanical rotation center, it is pulled back to the ORG position through XY, and the target coordinates are re-grabbed as SAMP, and the error between SAMP and ORG is calculated. The error calculation process is shown in the following table:
[0025] Table 1: Calculation process of alignment ORGX error and alignment ORGY error
[0026] Specifically, the processing task of the target manipulator is decomposed based on the hierarchical hybrid decentralized planning strategy to obtain multiple processing subtasks. The processing task planning is performed for the decomposed processing subtasks respectively. Each subtask is assigned an initial task planning result, which includes the processing path, required time, expected cost and resource allocation. These initial task planning results are formulated after fully considering multiple factors such as the physical limitations of the manipulator, the actual conditions of the processing environment and the material properties, providing a preliminary plan that is both feasible and efficient in implementation for each subtask. The final processing task planning result is obtained by comprehensively analyzing the initial task planning results of each processing subtask. The possible mutual influence, resource sharing and conflict between different subtasks are considered to ensure the smoothness and coordination of the entire processing process. Through comprehensive analysis, resource allocation is optimized, processing time is reduced, and processing efficiency and quality are improved. Based on the obtained processing task planning results, the trajectory of the target manipulator is planned by the piecewise polynomial interpolation method. The motion trajectory of the manipulator in the processing process is described by a mathematical model to ensure that the manipulator can complete the processing task with high precision according to the predetermined path. Segmented polynomial interpolation can provide a smooth transition curve to adapt to dynamic changes in the machining process, optimize machining speed and accuracy, reduce wear on the robot, and extend its service life.
[0027] In this embodiment, the target manipulator is subjected to kinematic analysis according to the processing task planning result, and multiple key path points in the processing process are identified. Key path points refer to key positions in the processing of the manipulator, which help to ensure the processing quality and efficiency. Identifying these points is to ensure that the manipulator can move with the most optimized trajectory while avoiding possible collisions and unnecessary movements. Based on the identified multiple key path points, the target manipulator is subjected to trajectory planning. The velocity curve and acceleration curve of each key path point are calculated, and these curves are the basis for achieving smooth and efficient movement of the manipulator. The calculation of the velocity curve and acceleration curve is related to the processing accuracy, and also directly affects the movement efficiency of the manipulator and the safety of the processing process. Through calculation, it is ensured that each step of the manipulator's movement in the processing process is designed, and excessive acceleration or deceleration is avoided, so as to ensure the continuity and stability of the processing process. The velocity curve and acceleration curve of each key path point are fitted by the piecewise polynomial interpolation method to generate the first manipulator processing trajectory. The piecewise polynomial interpolation is a mathematical tool that can generate a smooth curve based on a limited number of data points. By interpolating and fitting the velocity and acceleration curves, smooth and continuous robot motion trajectories are generated, ensuring that these trajectories are optimized both technically and economically.
[0028] Step S102, dynamically adjusting the processing trajectory of the first manipulator to obtain the processing trajectory of the second manipulator, and optimizing the path time of the processing trajectory of the second manipulator to obtain the target processing time parameter;
[0029] Specifically, the processing environment and real-time data of the target manipulator are obtained. Changes in the processing environment or fluctuations in real-time data may affect the processing trajectory of the manipulator. By monitoring and analyzing the processing environment and real-time data, the accuracy and practicality of trajectory planning are ensured. Then, based on the obtained processing environment information and real-time data, a dynamic environment model of the target manipulator is established. The model reflects the current working state of the manipulator and can predict various situations that may occur in the future, such as the movement of obstacles in the working area and changes in processing materials. The collision prediction analysis of the processing trajectory of the first manipulator is performed. By analyzing the risk of the manipulator colliding with obstacles in the environment when moving on a predetermined trajectory, a collision index is obtained, which is a quantitative expression of the collision risk. The trajectory is dynamically adjusted according to the calculated collision index. The speed and acceleration of the processing trajectory of the first manipulator are adjusted to avoid potential collision risks and optimize processing efficiency. Then, the corresponding processing trajectory of the second manipulator is generated according to the speed adjustment parameter and the acceleration adjustment parameter. The path time of the processing trajectory of the second manipulator is optimized based on the GoldS-PSO algorithm. The GoldS-PSO algorithm is an algorithm that combines golden section search and particle swarm optimization, which is suitable for solving such optimization problems. Through this algorithm, the processing time can be reduced while ensuring the processing quality and accuracy, and the optimal target processing time parameters can be obtained.
[0030] In this embodiment, the path time optimization target and fitness function of the second manipulator processing trajectory are defined, and the specific optimization targets, such as the shortest processing time, the best energy efficiency, etc., are clearly defined. At the same time, the performance of each possible trajectory scheme is quantified by the fitness function, and the pros and cons of each scheme are objectively evaluated. Then, the GoldS-PSO algorithm is used to initialize the path time particle swarm of the second manipulator processing trajectory in combination with the set path time optimization target, and an initial particle swarm containing multiple particles is generated, each particle represents a set of possible processing path time parameters, and these parameters reflect different manipulator processing trajectories and corresponding time costs. The fitness value of each particle in the initial particle swarm is calculated by the fitness function. The fitness value is a quantitative index for evaluating the performance of the processing path time parameters represented by the particle, reflecting the degree of fit between the parameter set and the optimization target. Based on the calculated fitness value, the initial particle swarm is updated with particle velocity and particle position to generate the first particle swarm. By simulating the social behavior between individuals in the particle swarm, the entire group is evolved in the direction of a higher fitness value. The update of particle velocity takes into account the individual optimal solution and the global optimal solution, while the update of particle position reflects the process of searching for the optimal solution in the parameter space. The golden sine function is introduced to generate a dynamic factor to adjust the particle velocity. The dynamic factor generated by the golden sine function is used to iteratively update the first particle swarm, optimize the search behavior of the particle swarm, and effectively avoid the problem of premature convergence. Finally, the second particle swarm optimized by the golden sine function is optimized to obtain the target processing time parameters. Through multiple rounds of iterative updates of the particle swarm, the optimal processing path time parameters are finally obtained, that is, the parameter set that can achieve the shortest processing time while meeting the robot processing requirements.
[0031] Step S103: Perform simulation mechanical analysis on the target manipulator based on the second manipulator machining trajectory and the target machining time parameters to obtain manipulator mechanical parameters and generate a target manipulator machining trajectory of the target manipulator.
[0032] Specifically, based on the processing trajectory of the second manipulator and the target processing time parameter, the target manipulator is simulated and the motion data is collected to obtain a detailed motion data set of the manipulator in the process of performing the processing task, including the motion speed, acceleration, path and other information of each joint of the manipulator. According to the manipulator motion data set, the target manipulator is subjected to force analysis, including the magnitude and direction of the force borne by each component of the manipulator during the movement. Force analysis is a key step in evaluating the structural stability of the manipulator and predicting possible wear points, which helps to understand how the manipulator responds to external forces during the processing. Then, according to the manipulator motion data set, the target manipulator is subjected to stress analysis to calculate the stress conditions that each component of the manipulator may encounter during the movement and processing. Stress analysis helps prevent mechanical failures caused by excessive stress and ensure the long-term stable operation of the manipulator. The mechanical parameters of the manipulator are generated according to the manipulator force data and the manipulator stress data. These parameters include the maximum stress value that the manipulator may encounter during the processing, the stress distribution of key components, and any mechanical problems that may affect the processing accuracy and efficiency. The processing trajectory of the second robot is adjusted according to the mechanical parameters of the robot to ensure that the robot can operate in the optimal state during the actual processing, minimize the processing errors caused by mechanical problems, and at the same time improve the work efficiency of the robot and extend its service life to obtain the final target robot processing trajectory.
[0033] In this embodiment, the stability of the target manipulator is evaluated according to the mechanical parameters of the manipulator, including the load-bearing capacity of the manipulator, the stress distribution of the joints, and the vibration characteristics. The stability of the manipulator during the processing is quantified by the evaluation index. Based on the trajectory stability evaluation index, the processing trajectory of the second manipulator is analyzed to identify possible abnormal areas. These abnormal areas refer to those trajectory segments that may cause the stability of the manipulator to decrease or the processing accuracy to be impaired. The identification of abnormal areas is completed through a comprehensive review of the processing trajectory, with special attention to those trajectory segments where the mechanical parameters indicate that excessive stress or unstable vibration may occur. After identifying the abnormal trajectory segment, the trajectory is corrected. Corresponding trajectory correction parameters are formulated for each abnormal trajectory segment, which are intended to adjust the motion trajectory of the manipulator to eliminate or reduce the impact of abnormal conditions. The determination of the trajectory correction parameters involves the analysis of the abnormal trajectory segment, including recalculating the processing path, adjusting the motion speed and acceleration, etc., to ensure the stability and processing accuracy of the manipulator during the processing. Based on the trajectory correction parameters, the processing trajectory of the second manipulator is adjusted as necessary to generate the processing trajectory of the target manipulator. Taking into account the need to eliminate abnormal areas and comprehensively considering the requirements of processing efficiency and quality, the final target robot processing trajectory can not only avoid processing errors caused by mechanical instability, but also ensure the efficient and high-quality completion of the processing process.
[0034] In the embodiment of the present application, by effectively decomposing the processing tasks based on the hierarchical hybrid decentralized planning strategy and carefully planning each subtask, the processing trajectory of the manipulator can be accurately controlled, thereby improving the processing efficiency and accuracy. The use of piecewise polynomial interpolation further ensures the smoothness of the path and avoids the sudden changes that may occur during the processing, which is crucial to improving the quality of the processed parts. By establishing a dynamic environment model and performing collision prediction analysis and dynamic adjustment of the trajectory according to the processing environment and real-time data, the adaptability of the manipulator in a complex and changing processing environment is enhanced. This dynamic adjustment mechanism enables the manipulator to respond to changes in the external environment in real time and ensure the continuity and safety of the processing process. The improved GoldS-PSO algorithm is used for path time optimization, which can effectively reduce the total time required for processing while ensuring the processing quality. The application of this algorithm not only improves the efficiency of path planning, but also further improves the economy and practicality of the entire processing process by optimizing the time parameters. By performing simulation mechanical analysis on the processing trajectory and target processing time parameters of the second manipulator, the mechanical parameters of the manipulator are obtained in time. This step can predict the mechanical problems that the manipulator may encounter when performing a specific task before processing. This predictive analysis helps to make adjustments in advance, reduce mechanical damage and processing failures caused by mechanical problems, extend the service life of the robot, and improve the safety and reliability of processing. By identifying abnormal trajectory segments and correcting them, a fine trajectory adjustment mechanism is provided for the robot. This adjustment is not only based on mechanical parameters, but also takes into account trajectory stability, thereby ensuring the optimal performance of the robot when performing processing tasks and avoiding errors and risks that may occur during the processing process.
[0035] In a specific embodiment, the process of executing step S101 may specifically include the following steps:
[0036] (1) Based on the hierarchical hybrid decentralized planning strategy, the target robot is decomposed into multiple processing subtasks.
[0037] (2) Performing processing task planning for multiple processing subtasks respectively to obtain the initial task planning result for each processing subtask;
[0038] (3) Comprehensively analyze the initial task planning results of each processing subtask to obtain the processing task planning results;
[0039] (4) According to the processing task planning results, trajectory planning and piecewise polynomial interpolation are performed on the target robot to generate the first robot processing trajectory.
[0040] Specifically, the target robot is decomposed into a complex machining task into multiple smaller and more specific machining subtasks based on a hierarchical hybrid decentralized planning strategy. The decomposition process takes into account various aspects of the machining task, such as the nature of the machining material, the machining accuracy requirements, and the needs of specific machining operations. Then, the decomposed machining subtasks are task planned separately. This includes key planning activities such as selecting appropriate machining tools for each subtask, determining machining parameters (such as speed, depth, and path), and estimating machining time, so as to develop an initial machining plan for each subtask to ensure that they can be technically executed independently and can achieve the expected machining effect. Taking rough machining as an example, task planning may involve selecting a large-diameter milling cutter to quickly remove material, setting a high feed rate and a reasonable cutting depth. The initial task planning results of each subtask are comprehensively analyzed. By comprehensively considering the planning results of all subtasks, potential conflicts or bottlenecks, such as tool change time, robot movement path, etc., are identified and resolved, and the execution order and resource allocation of the entire machining task are optimized. The comprehensive analysis ensures the smoothness of the machining process, reduces unnecessary downtime, and improves overall machining efficiency. According to the results of the processing task planning, the target robot is subjected to trajectory planning and piecewise polynomial interpolation. According to the specific requirements of the robot and the processing task, the motion trajectory of the robot during the processing is planned. By adopting the piecewise polynomial interpolation method, the movement of the robot between processing points is ensured to be smooth, and sudden acceleration or deceleration at the processing path conversion point is avoided, thereby improving the processing quality and reducing the wear of the robot.
[0041] In a specific embodiment, the execution step performs trajectory planning and piecewise polynomial interpolation on the target manipulator according to the processing task planning result, and the process of generating the first manipulator processing trajectory may specifically include the following steps:
[0042] (1) Perform kinematic analysis on the target robot based on the processing task planning results to obtain multiple key path points;
[0043] (2) Plan the trajectory of the target robot based on multiple key path points to obtain the velocity curve and acceleration curve of each key path point;
[0044] (3) The piecewise polynomial interpolation method is used to fit the velocity curve and acceleration curve of each key path point to generate the first robot processing trajectory.
[0045] Specifically, the target manipulator is subjected to kinematic analysis according to the processing task planning results to determine the key path points that the manipulator must pass through during the processing process. The determination of the key path points is based on the specific requirements of the processing task, such as the starting and ending points of the processing, the corner points, and any positions where deceleration or change of direction is required. For example, when processing a complex surface, these key path points may include the various starting boundary points of the surface, the points with large curvature changes, and the end point of the completed processing. Then, the trajectory of the target manipulator is planned based on the key path points, and the velocity curve and acceleration curve of the manipulator in the process of moving from one key path point to another are calculated. The calculation of the velocity curve and the acceleration curve takes into account the dynamic performance of the manipulator and the characteristics of the processing material to ensure that the manipulator can move smoothly during the processing process while maintaining high efficiency and accuracy. For example, when processing certain materials that require fine processing, the manipulator may need to decelerate when approaching the key path point to ensure the processing accuracy, and it is necessary to formulate appropriate velocity and acceleration curves during planning. The segmented polynomial interpolation method is used to fit the velocity curve and acceleration curve of each key path point to generate the first manipulator processing trajectory. Piecewise polynomial interpolation is a mathematical tool that generates a smooth curve based on a set of data points. Piecewise polynomial interpolation is used to generate a smooth and continuous robot processing trajectory, ensuring that every movement of the robot during the processing process is based on the calculated trajectory, reducing mechanical vibration and unnecessary pauses during the processing. For example, by precisely controlling the speed and acceleration of the robot when processing a part with multiple complex curves, it ensures that each part can be accurately processed while the entire processing process remains efficient.
[0046] In a specific embodiment, the process of executing step S102 may specifically include the following steps:
[0047] (1) Obtain the processing environment and real-time data of the target robot;
[0048] (2) Establish a dynamic environment model of the target robot based on the processing environment and real-time data;
[0049] (3) Perform collision prediction analysis on the machining trajectory of the first robot to obtain a collision index;
[0050] (4) Dynamically adjusting the machining trajectory of the first manipulator according to the collision index to obtain speed adjustment parameters and acceleration adjustment parameters;
[0051] (5) generating a corresponding second manipulator processing trajectory according to the speed adjustment parameter and the acceleration adjustment parameter;
[0052] (6) Based on the GoldS-PSO algorithm, the path time of the second robot processing trajectory is optimized to obtain the target processing time parameters.
[0053] Specifically, the processing environment and real-time data of the target manipulator are obtained. This includes the current position, speed, position of the processing material, and any potential obstacles in the surrounding environment of the manipulator. Then, based on the obtained processing environment and real-time data, a dynamic environment model of the target manipulator is established. This model is a mathematical expression of the processing environment in which the manipulator is located, including the dynamic position and speed changes of the manipulator and the processing material, as well as possible obstacles in the environment. Through this model, the state of the manipulator at a certain moment in the future is predicted, thereby providing support for avoiding potential collisions and successfully completing the processing task. For example, the model can simulate the entire process of a manipulator carrying a part from one assembly station to another, while ensuring that it does not collide with other objects on the way. The dynamic environment model is used to perform collision prediction analysis on the processing trajectory of the first manipulator. The probability of the manipulator encountering obstacles in the environment when executing the current processing trajectory is evaluated by calculating the collision index. The higher the collision index, the greater the possibility of a collision. For example, if the manipulator needs to move quickly between two assembly stations and an unexpected obstacle suddenly appears on the path, the collision prediction analysis can promptly warn of possible collision risks. The processing trajectory of the first manipulator is dynamically adjusted according to the collision index, including calculating the speed adjustment parameters and acceleration adjustment parameters according to the collision risk to avoid collision while ensuring the continuity of the processing task. The adjustment of speed and acceleration enables the manipulator to bypass obstacles while maintaining processing efficiency or slow down when necessary to safely pass through narrow spaces. For example, when a possible collision is predicted, the manipulator can slow down, bypass the obstacle, and then accelerate back to the original processing trajectory. The path time of the processing trajectory of the second manipulator is optimized based on the GoldS-PSO algorithm. The GoldS-PSO algorithm is an algorithm that combines golden section search and particle swarm optimization, and is suitable for solving path time optimization problems. Through this algorithm, the processing trajectory of the manipulator is optimized to ensure that the total processing time is minimized while meeting all operation constraints. For example, while ensuring that all obstacles are avoided, the algorithm can find a safe and fast path that enables the manipulator to complete the processing task in the shortest time.
[0054] In a specific embodiment, the execution step optimizes the path time of the second manipulator processing trajectory based on the GoldS-PSO algorithm to obtain the target processing time parameter may specifically include the following steps:
[0055] (1) Define the path time optimization objective and fitness function of the second robot machining trajectory;
[0056] (2) Based on the GoldS-PSO algorithm and the path time optimization objective, the path time particle swarm is initialized for the second manipulator processing trajectory to obtain an initial particle swarm, where each particle in the initial particle swarm includes a set of processing path time parameters;
[0057] (3) Calculate the fitness value of each particle in the initial particle swarm through the fitness function;
[0058] (4) Update the particle velocity and particle position of the initial particle swarm according to the fitness value to obtain the first particle swarm;
[0059] (5) Generate a dynamic factor for adjusting the particle speed through the golden sine function, and iteratively update the first particle group according to the dynamic factor to generate a second particle group;
[0060] (6) Optimize the second particle swarm and obtain the target processing time parameters.
[0061] Specifically, the path time optimization objective and fitness function of the second robot machining trajectory are defined. The path time optimization objective aims to reduce the total time required for the robot to complete all machining tasks, while taking into account the safety and accuracy requirements of the machining process. In order to quantify the effect of each possible solution (or "particle"), a fitness function is defined. This function is usually based on the total time of the machining path and may contain other factors, such as the smoothness of the path, the energy consumption of the robot, etc., to ensure that the selected trajectory is not only fast but also practical. Based on the GoldS-PSO algorithm and the defined path time optimization objective, the path time particle swarm is initialized for the second robot machining trajectory to generate an initial particle swarm. Each particle represents a set of possible machining path time parameters, which define the specific details of the robot machining process, such as the speed and acceleration of each segment of the trajectory. The generation of the initial particle swarm is a random process that aims to extensively explore the solution space to ensure the possibility of finding the global optimal solution. Then, the fitness value of each particle in the initial particle swarm is calculated by the fitness function. The performance of each particle (i.e., each set of machining path time parameters) relative to the optimization objective is evaluated to determine which particles are closer to the ideal machining path. The particle with a higher fitness value indicates that the processing path it represents is closer to the optimization target, that is, the processing time is short and meets other set processing quality standards. The particle velocity and particle position of the initial particle swarm are updated according to the fitness value to obtain the first particle swarm. The search process is guided by information sharing between individuals and groups. The update of particle velocity takes into account the historical best position of the individual (individual cognitive part) and the historical best position of the entire group (social part), thereby driving the particles to move to the better solution area. Then, the dynamic factor for adjusting the particle velocity is generated by the golden sine function. The dynamic factor is based on the golden section principle. The purpose is to dynamically adjust the exploration and utilization balance of particles during the search process, so as to effectively avoid local optimal solutions and increase the probability of finding the global optimal solution. Using the dynamic factor, the first particle swarm is iteratively updated to generate the second particle swarm. The second particle swarm is optimized to obtain the target processing time parameter. Through multiple iterative updates of the particle swarm, the position of the particle (i.e., the processing path time parameter) is continuously optimized until one or more optimal solutions that meet the optimization target are found. For example, for a robot processing task involving multiple processing stations and complex trajectories, this process determines a set of path time parameters that enable the robot to complete the processing in the shortest total time while meeting safety and accuracy requirements.
[0062] In a specific embodiment, the process of executing step S103 may specifically include the following steps:
[0063] (1) Based on the processing trajectory of the second robot and the target processing time parameters, the target robot is simulated and motion data is collected to obtain a robot motion data set;
[0064] (2) Perform force analysis on the target manipulator based on the manipulator motion data set to obtain the manipulator force data;
[0065] (3) Perform stress analysis on the target manipulator based on the manipulator motion data set to obtain the manipulator stress data;
[0066] (4) Generate mechanical parameters of the manipulator based on the manipulator force data and manipulator stress data;
[0067] (5) Adjust the machining trajectory of the second manipulator according to the mechanical parameters of the manipulator to obtain the machining trajectory of the target manipulator.
[0068] Specifically, the target manipulator is simulated and motion data is collected based on the processing trajectory of the second manipulator and the target processing time parameters. The motion of the manipulator on the predetermined processing trajectory is simulated by simulation software, and the motion data such as the speed, acceleration, and position of the manipulator during the entire processing process are collected. The target manipulator is subjected to force analysis based on the collected manipulator motion data set, and the forces on each component of the manipulator during the processing task are calculated. Including the force conditions of the manipulator's joints, drive systems, and processing tools under the action of internal and external loads. For example, the force analysis can reveal that a joint of the manipulator is subjected to excessive force due to excessive processing load during the processing, which may cause mechanical fatigue or damage. Then, the same manipulator motion data set is used to perform stress analysis to obtain the stress conditions that the manipulator may encounter during the processing. By calculating the material properties and structural characteristics of the manipulator, the stress values of each component of the manipulator under different operating conditions are determined. It helps to prevent the manipulator from malfunctioning due to excessive stress, especially when performing complex or heavy-load processing tasks. The mechanical parameters of the manipulator are generated based on the manipulator force data and stress data. These parameters describe the physical and mechanical behavior of the robot during operation, including maximum bearing capacity, stress distribution, possible fatigue points, etc. For example, through analysis, it is known that the stress at a specific position of the robot during processing exceeds the fatigue limit of the material, which will prompt the need to adjust the processing trajectory or robot design. According to the obtained mechanical parameters of the robot, the necessary adjustments are made to the second robot processing trajectory to generate the target robot processing trajectory. The movement path of the robot is optimized according to the mechanical parameters to reduce unnecessary stress concentration, avoid potential collisions, and improve processing efficiency. For example, if the analysis shows that the acceleration of the robot is too high on a specific processing path, causing unnecessary stress, this problem can be alleviated by adjusting the shape of the processing path or the speed setting of the robot.
[0069] In a specific embodiment, the execution step adjusts the machining trajectory of the second manipulator according to the mechanical parameters of the manipulator to obtain the target manipulator machining trajectory, which may specifically include the following steps:
[0070] (1) Evaluate the stability of the target manipulator based on the manipulator's mechanical parameters to obtain the trajectory stability evaluation index;
[0071] (2) identifying abnormal areas of the machining trajectory of the second manipulator according to the trajectory stability evaluation index to obtain at least one abnormal trajectory segment;
[0072] (3) performing trajectory correction on at least one abnormal trajectory segment to obtain corresponding trajectory correction parameters;
[0073] (4) The machining trajectory of the second robot is adjusted according to the trajectory correction parameters to obtain the target robot machining trajectory.
[0074] Specifically, the stability of the target manipulator is evaluated according to the mechanical parameters of the manipulator, and the mechanical parameters of the manipulator include data such as stress, force and dynamic response of the manipulator during the processing. The purpose of the stability evaluation is to quantify the stability level of the manipulator when performing the processing task, so as to identify factors that may cause the manipulator to be unstable or the processing accuracy to decrease. During the evaluation process, stability evaluation indicators are calculated, which reflect the dynamic stability of the manipulator during the processing. For example, by analyzing the vibration frequency and amplitude of the manipulator joint, the stability performance of the manipulator under a specific processing speed and load can be evaluated. According to the stability evaluation indicators, the abnormal area of the processing trajectory of the second manipulator is identified. The processing trajectory is analyzed to find those trajectory sections that may cause the stability of the manipulator to decrease. These abnormal areas may be caused by reasons such as too fast processing speed, too sharp corners or unreasonable path design. These abnormal areas are identified by using data analysis and pattern recognition technology. For example, if it is found that there is an excessive acceleration change on the path where the manipulator moves from one processing point to another, this area may be identified as an abnormal area. Trajectory correction is performed on at least one abnormal trajectory segment identified to obtain corresponding trajectory correction parameters. The goal of trajectory correction is to modify the machining trajectory to eliminate or reduce the negative impact of abnormal areas on the stability and machining accuracy of the robot. This may include adjusting the movement speed of the robot, changing the shape of the machining path, or optimizing the machining sequence. By analyzing the abnormal area, the most appropriate corrective measures are determined, and the required trajectory correction parameters are calculated. For example, if an abnormal area is caused by a sharp corner, the trajectory correction parameters may include reducing the speed when passing through the area and designing a path for smooth corners. The machining trajectory of the second robot is adjusted according to the trajectory correction parameters to obtain the target robot machining trajectory. The trajectory correction parameters are applied to the machining trajectory of the second robot, and through mathematical calculations and algorithm support, it is ensured that the adjusted machining trajectory can meet the dual requirements of stability and accuracy.
[0075] The above describes the robot processing path planning method in the embodiment of the present application. The following describes the robot processing path planning device in the embodiment of the present application. Figure 2 In the embodiment of the present application, an embodiment of the robot processing path planning device includes:
[0076] The planning module 201 is used to plan the processing task for the target manipulator, obtain the processing task planning result, and plan the trajectory of the target manipulator to generate the first manipulator processing trajectory;
[0077] The adjustment module 202 is used to dynamically adjust the machining trajectory of the first manipulator to obtain the machining trajectory of the second manipulator, and optimize the path time of the machining trajectory of the second manipulator to obtain the target machining time parameter;
[0078] The generation module 203 is used to perform a simulation mechanical analysis on the target manipulator based on the second manipulator machining trajectory and the target machining time parameter, obtain the manipulator mechanical parameters, and generate a target manipulator machining trajectory of the target manipulator.
[0079] Through the cooperation of the above components, the effective decomposition of the processing task based on the hierarchical hybrid decentralized planning strategy and the careful planning of each subtask can accurately control the processing trajectory of the manipulator, thereby improving the processing efficiency and accuracy. The use of piecewise polynomial interpolation further ensures the smoothness of the path and avoids the sudden changes that may occur during the processing, which is crucial to improving the quality of the processed parts. By establishing a dynamic environment model and performing collision prediction analysis and dynamic adjustment of the trajectory according to the processing environment and real-time data, the adaptability of the manipulator in complex and changing processing environments is enhanced. This dynamic adjustment mechanism enables the manipulator to respond to changes in the external environment in real time to ensure the continuity and safety of the processing process. The improved GoldS-PSO algorithm is used for path time optimization, which can effectively reduce the total time required for processing while ensuring the processing quality. The application of this algorithm not only improves the efficiency of path planning, but also further improves the economy and practicality of the entire processing process by optimizing the time parameters. By performing simulation mechanical analysis on the processing trajectory and target processing time parameters of the second manipulator, the mechanical parameters of the manipulator are obtained in time. This step can predict the mechanical problems that the manipulator may encounter when performing specific tasks before processing. This predictive analysis helps to make adjustments in advance, reduce mechanical damage and processing failures caused by mechanical problems, extend the service life of the robot, and improve the safety and reliability of processing. By identifying abnormal trajectory segments and correcting them, a fine trajectory adjustment mechanism is provided for the robot. This adjustment is not only based on mechanical parameters, but also takes into account trajectory stability, thereby ensuring the optimal performance of the robot when performing processing tasks and avoiding errors and risks that may occur during the processing process.
[0080] The present application also provides a robot processing path planning device, which includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor executes the steps of the robot processing path planning method in the above-mentioned embodiments.
[0081] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the robot processing path planning method.
[0082] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0083] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0084] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A robot processing path planning method, characterized in that: The robot processing path planning method comprises: Performing processing task planning on the target manipulator to obtain a processing task planning result, and performing trajectory planning on the target manipulator to generate a first manipulator processing trajectory; Dynamically adjust the processing trajectory of the first manipulator to obtain the processing trajectory of the second manipulator, and optimize the path time of the processing trajectory of the second manipulator to obtain the target processing time parameters; specifically including: acquiring the processing environment and real-time data of the target manipulator; establishing a dynamic environment model of the target manipulator according to the processing environment and the real-time data; performing collision prediction analysis on the processing trajectory of the first manipulator to obtain a collision index; dynamically adjust the processing trajectory of the first manipulator according to the collision index to obtain a speed adjustment parameter and an acceleration adjustment parameter; generate a corresponding processing trajectory of the second manipulator according to the speed adjustment parameter and the acceleration adjustment parameter; define the path of the processing trajectory of the second manipulator time optimization objective and fitness function; initializing the path time particle swarm of the second manipulator processing trajectory based on the GoldS-PSO algorithm and the path time optimization objective to obtain an initial particle swarm, wherein each particle in the initial particle swarm includes a set of processing path time parameters; calculating the fitness value of each particle in the initial particle swarm respectively through the fitness function; updating the particle speed and particle position of the initial particle swarm according to the fitness value to obtain a first particle swarm; generating a dynamic factor for adjusting the particle speed through a golden sine function, and iteratively updating the first particle swarm according to the dynamic factor to generate a second particle swarm; optimizing the second particle swarm to obtain a target processing time parameter; Based on the second manipulator processing trajectory and the target processing time parameter, a simulation mechanical analysis is performed on the target manipulator to obtain manipulator mechanical parameters, and a target manipulator processing trajectory of the target manipulator is generated.
2. The robot processing path planning method according to claim 1, characterized in that: The processing task planning is performed on the target manipulator to obtain the processing task planning result, and the trajectory planning is performed on the target manipulator to generate the first manipulator processing trajectory, including: Based on the hierarchical hybrid decentralized planning strategy, the processing task of the target robot is decomposed to obtain multiple processing subtasks. Performing processing task planning on the multiple processing subtasks respectively to obtain an initial task planning result for each processing subtask; Comprehensively analyze the initial task planning results of each processing subtask to obtain the processing task planning results; According to the processing task planning result, trajectory planning and piecewise polynomial interpolation are performed on the target manipulator to generate a first manipulator processing trajectory.
3. The robot processing path planning method according to claim 2 is characterized in that: The step of performing trajectory planning and piecewise polynomial interpolation on the target manipulator according to the processing task planning result to generate a first manipulator processing trajectory includes: Performing kinematic analysis on the target manipulator according to the processing task planning result to obtain multiple key path points; Performing trajectory planning for the target manipulator based on the multiple key path points to obtain a velocity curve and an acceleration curve for each key path point; The piecewise polynomial interpolation method is used to perform trajectory fitting on the velocity curve and acceleration curve of each key path point to generate the first robot machining trajectory.
4. The robot processing path planning method according to claim 1, characterized in that: The method of performing a simulation mechanical analysis on the target manipulator based on the second manipulator processing trajectory and the target processing time parameter to obtain manipulator mechanical parameters and generate a target manipulator processing trajectory of the target manipulator includes: Based on the processing trajectory of the second manipulator and the target processing time parameter, simulation and motion data collection are performed on the target manipulator to obtain a manipulator motion data set; Performing force analysis on the target manipulator according to the manipulator motion data set to obtain manipulator force data; Performing stress analysis on the target manipulator according to the manipulator motion data set to obtain manipulator stress data; Generate mechanical parameters of the manipulator according to the force data of the manipulator and the stress data of the manipulator; The processing trajectory of the second manipulator is adjusted according to the mechanical parameters of the manipulator to obtain the target manipulator processing trajectory.
5. The robot processing path planning method according to claim 4, characterized in that: The step of adjusting the machining trajectory of the second manipulator according to the mechanical parameters of the manipulator to obtain the target manipulator machining trajectory includes: Performing stability evaluation on the target manipulator according to the mechanical parameters of the manipulator to obtain a trajectory stability evaluation index; Identify abnormal areas of the second manipulator machining trajectory according to the trajectory stability evaluation index to obtain at least one trajectory abnormal segment; Performing trajectory correction on the at least one abnormal trajectory segment to obtain corresponding trajectory correction parameters; The second manipulator machining trajectory is adjusted according to the trajectory correction parameters to obtain a target manipulator machining trajectory.
6. A robot processing path planning device, characterized in that: The robot processing path planning device comprises: A planning module is used to plan a processing task for a target manipulator, obtain a processing task planning result, and perform trajectory planning for the target manipulator to generate a first manipulator processing trajectory; The adjustment module is used to dynamically adjust the processing trajectory of the first manipulator to obtain the processing trajectory of the second manipulator, and optimize the path time of the processing trajectory of the second manipulator to obtain the target processing time parameter; specifically includes: obtaining the processing environment and real-time data of the target manipulator; establishing the dynamic environment model of the target manipulator according to the processing environment and the real-time data; performing collision prediction analysis on the processing trajectory of the first manipulator to obtain a collision index; dynamically adjusting the processing trajectory of the first manipulator according to the collision index to obtain a speed adjustment parameter and an acceleration adjustment parameter; generating a corresponding second manipulator processing trajectory according to the speed adjustment parameter and the acceleration adjustment parameter; defining the processing trajectory of the second manipulator The method comprises the following steps: first, performing a path time optimization objective and a fitness function of a trajectory; initializing a path time particle swarm for the second manipulator processing trajectory based on the GoldS-PSO algorithm and the path time optimization objective to obtain an initial particle swarm, wherein each particle in the initial particle swarm includes a set of processing path time parameters; calculating the fitness value of each particle in the initial particle swarm respectively through the fitness function; updating the particle speed and the particle position of the initial particle swarm according to the fitness value to obtain a first particle swarm; generating a dynamic factor for adjusting the particle speed through a golden sine function, and iteratively updating the first particle swarm according to the dynamic factor to generate a second particle swarm; optimizing the second particle swarm to obtain a target processing time parameter; A generation module is used to perform a simulation mechanical analysis on the target manipulator based on the second manipulator processing trajectory and the target processing time parameter to obtain manipulator mechanical parameters and generate a target manipulator processing trajectory of the target manipulator.
7. A robot processing path planning device, characterized in that: The robot processing path planning device comprises: a memory and at least one processor, wherein the memory stores instructions; The at least one processor calls the instructions in the memory to enable the robot processing path planning device to execute the robot processing path planning method according to any one of claims 1 to 5.
8. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the robot processing path planning method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Wind power system reactive power planning method based on golden section cloud particle swarm optimization algorithm
CN103346573A
Polynomial interpolation trajectory planning method for mechanical arm based on QPSO algorithm
CN109343345A
Mechanical arm track optimization obtaining method based on improved multi-target PSO algorithm
CN116352697A
Track speed optimization method of series mechanical arm based on deep learning
CN116572237A
Obstacle avoidance trajectory planning method of drill rod loading and unloading manipulator under variable target condition
CN117415806A
