Mechanical arm precise path planning method and system based on back DDPG

Through the robot arm path planning method based on back-to-back DDPG, local actions and value networks are trained section by section, combined with the global value network, to solve the problems of over-fitting and high computational complexity in complex tasks in the existing technology, and achieve efficient Robotic arm path planning and control.

CN118832601AActive Publication Date: 2024-10-25国网(山东)电动汽车服务有限公司

Patent Information

Application Number
CN202411321020.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2024-10-25
Estimated Expiration
2044-09-23

AI Technical Summary

Technical Problem

Existing robot arm motion planning methods are prone to overfitting in complex tasks, limiting model generalization capabilities, high computational complexity, long running time, and prone to falling into local optimal solutions, making it difficult to achieve efficient path planning in large-scale problems.

Method used

Adopting a precise path planning method for the robotic arm based on back-to-back DDPG, by constructing a local action network and a local value network for section-by-section training, each joint optimizes the control strategy, combines the global value network to evaluate the overall status, and adopts a collaborative optimization mechanism to reduce the optimization space complexity, improve model convergence speed and path planning accuracy.

Benefits of technology

It significantly reduces the optimization space complexity, improves the model convergence speed and calculation efficiency, improves the accuracy of robotic arm path planning and the coordination performance of the overall system, and ensures the balance and coordination of local optimization and global optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118832601A_ABST
    Figure CN118832601A_ABST
Patent Text Reader

Abstract

The invention provides a mechanical arm precise path planning method and system based on backward DDPG, and belongs to the technical field of charging piles, and the method comprises the following steps: S1, a mechanical arm comprises a plurality of sections, each joint can correspondingly control one section of the mechanical arm, and each joint respectively constructs an independent local action network and a local value network; s2, constructing a global value network, wherein the global value network is used for evaluating the influence of the actions of all joints on the overall state; and S3, based on the optimized control strategy and path planning of the nth joint, the (n-1) th joint is trained, all the joints are trained section by section, and finally the overall control strategy and path planning of the mechanical arm are obtained. When each joint strategy is optimized, the influence of each joint strategy on the whole system is considered at the same time, unification of local optimization and global optimization is achieved, the optimization effect of a single joint can be improved, and the path planning precision of the whole mechanical arm system and the overall convergence speed of the model are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of charging piles, and in particular relates to a method and system for precise path planning of a robotic arm based on a back-facing DDPG. Background Art

[0002] The automatic charging of the charging robot arm has become a research focus as an important means to improve the charging efficiency of electric vehicles, adapt to the automatic driving system, avoid the charging time too long, the overtime fee for not leaving the charging station in time after fully charged, and the safety hazards of manual charging. Among them, the accuracy of the robot arm trajectory planning is crucial to achieve the precise execution of the task. Trajectory planning takes into account environmental factors and constraints, avoids potential collision risks through reasonable path selection to ensure the safety of operation, and reduces the movement time and energy consumption of the robot arm, improving resource utilization and energy efficiency.

[0003] The patent with application number 202210501902.8 provides a robotic arm motion planning method based on deep reinforcement learning. It includes training a deep reinforcement learning network in different task scenarios in a simulation environment, and storing the experience data in success and failure experience replay pools. When the data of the two replay pools reaches the set value, the loss value and reward value are input into the neural network, and the weight is output; then data is extracted from the replay pool according to the weight to continue training the deep reinforcement learning network, and iterate until the network converges. Finally, the position and posture of the target object in the real environment are mapped to the simulation environment, and the trained network is input for motion planning to obtain the optimal path.

[0004] The above method may overfit the training data in complex tasks, limit the generalization ability of the model, and reduce its reliability in real-world applications. It also requires a large amount of training data and time to achieve good performance. For complex tasks and environments, the training time may be very long.

[0005] The patent with application number 202310975975.5 provides a multi-objective trajectory planning method and system, including objective functions and constraints; using B-spline interpolation to determine the objective function; converting the constraints into a finite number of control points; finding the Pareto optimal solution through enhanced NSGA-II to form the optimal trajectory.

[0006] The above method has high computational complexity and long running time when dealing with large-scale problems. It also ignores the autonomous learning and generalization capabilities of the robot arm and is prone to falling into local optimal solutions. Summary of the invention

[0007] In order to solve the above problems existing in the prior art, a method and system for precise path planning of a robotic arm based on back-to-back DDPG are provided.

[0008] The technical solution adopted by the present invention to solve its technical problem is: This technical solution proposes a method for accurate path planning of a robotic arm based on back-to-back DDPG, including the following steps: S1: The robot arm consists of several segments. Each joint can control a corresponding segment of the robot arm. Each joint constructs an independent local action network and local value network. S2: Construct a global value network, which is used to evaluate the impact of all joint actions on the overall state; S3: Based on n After the joints are optimized, the control strategy and path planning are trained. n -1 joint, train each joint section by section, and finally obtain the overall control strategy and path planning of the robotic arm.

[0009] Preferably, define n The local action network of each joint is , the local value network is , build a global value network ; Build for each joint separately MDP Model, define n The state space of each joint is expressed as: (1); In the formula, For the n Joint to N The angle of the joints, For the n The length of the robot arm corresponding to the joints, is the target position, is the location of multiple obstacles; No. n The motion space of the joint is the three-dimensional angle change of the joint, expressed as: (2); In the formula, For the robot arm x The pitch angle of the axis when it rotates up and down, with positive values ​​for upward rotation and negative values ​​for downward rotation; For the robot arm y The yaw angle of the axis rotation, with negative values ​​for left rotation and positive values ​​for right rotation.

[0010] Preferably, n The reward of each joint is defined as the Pareto optimal form of its own control penalty, expressed as: (3); In the formula, For joints n The self-control penalty is expressed as the overall path accuracy of the robot and the individual control accuracy of the robot. is the gripper position of the robot arm, For the N The distance between the robot arm and the obstacle, t is a preset weight parameter used to unify the order of magnitude; For the collaboration benefit between the robots, When the current robot arm is not moving, i The self-control penalty of each joint is maximized by Obtain the Pareto equilibrium solution.

[0011] Preferably, the action is generated by a local action network , and get rewards , design the local action network loss function of the local action network , expressed as: (4); In the formula, t is the training iteration variable of the robot arm, is the policy gradient loss of the local action network, used to maximize Q value; is the global state change penalty term, To balance the weight; It is the comparison value between the control penalty of the current action and the average control penalty of all robotic arms that have made actions, and represents the contribution of the current action to the global optimum.

[0012] Preferably, a global value network is used for system supervision, and the global value network loss function is expressed as: (5); In the formula, is the global state, Valuing the global value network, The parameters are Global value network valuation, is the action taken by the local action network after state transition, is the discount factor.

[0013] Preferably, based on the obtained global value network loss function, the local value network loss function is obtained by the collaboration of the local value network and the global value network, which is expressed as: (6); In the formula, For the n Parameters of joints The value network valuation of After the state transfer n The local action network of each joint is based on parameters The generated action, To use n The value network valuation of each joint, To balance the weight.

[0014] Preferably, by monitoring the changes of the local action network loss function and the local value network loss function, when the changes in multiple training rounds are less than the set threshold, the local network is considered to have converged, and the local value network convergence judgment variable is expressed as: (7); In the formula, is the event function, Indicates that the local value network loss change is less than the threshold ,otherwise ; Indicates that the global value network loss change is less than the threshold ,otherwise , To determine the time window size for value network convergence; When both conditions are met within the time window , the local value network converges.

[0015] Preferably, the local action network convergence judgment variable expression is: (8); In the formula, is the preset local action network loss change threshold, is the event function, Indicates that the local action network loss change is less than , To determine the time window size for local action network convergence; When the time window And when the local value network converges, the local action network converges.

[0016] When the local section n When the action network and value network of each joint converge, When n The robotic arms converge.

[0017] Preferably, the training sequence is: starting from the end of the robotic arm, training the neural network of each joint section by section.

[0018] A robot arm precise path planning system based on back-facing DDPG, used to execute the robot arm precise path planning method based on back-facing DDPG, comprising: The motion acquisition module is responsible for collecting the posture of each joint of the robotic arm, the contact force and position information of the charging socket; Local evaluation module, used to evaluate the action and value of each robot joint; The global evaluation module is used to evaluate the impact of all robot joint actions on the overall state; The loss function calculation module calculates the control penalty of the current action and the average control penalty of all robotic arms that have made actions according to the posture of each joint, and represents the contribution of the current action to the global optimum. The convergence judgment calculation module calculates the convergence degree of the robot arm joints by monitoring the changes in the local action network loss function and the local value network loss function; The action execution module is responsible for executing the overall control strategy and path planning of the robotic arm.

[0019] Compared with the prior art, the present invention has the following advantages: This application adopts a back-to-back training strategy, starting from the end of the robotic arm, to train the neural network of each joint section by section. After each section of the network converges, the neural network of the previous section of the joint is trained in turn, so that the path planning of the previous section of the joint is optimized based on the optimal solution of the next section of the joint. In this way, n The problem of simultaneous optimization of the paths of the multi-section robot arm is split into the optimization problem of a single-section robot arm, which significantly reduces the complexity of the optimization space and improves the convergence speed and computational efficiency of the model.

[0020] In the process of updating local network parameters, this application combines the errors of the local value network and the global value network. Through this collaborative mechanism, the unification of local optimization and global optimization is achieved, which not only improves the optimization effect of a single joint, but also improves the path planning accuracy of the entire robotic arm system, while effectively improving the overall convergence speed of the model.

[0021] This application collaboratively optimizes local networks and global networks to ensure that each joint network does not destroy the coordination performance of the entire system during independent optimization. This not only improves the independent performance of each joint, but also ensures the efficiency and coordination of the overall path planning and control of the robotic arm.

[0022] This application designs an efficient convergence judgment method by comprehensively considering the changes in the loss functions of the local network and the global network. This method can not only consider the impact of each joint strategy on the entire system when optimizing it, but also ensure the balance and coordination between local optimization and global optimization during the training process. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which: Figure 1 It is the overall flow chart of the present invention; Figure 2 It is a schematic diagram of the dynamic planning of the robot path in the present invention. DETAILED DESCRIPTION

[0024] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0025] like Figure 1-Figure 2 As shown, this embodiment proposes a method for accurate path planning of a robotic arm based on back-to-back DDPG, comprising the following steps: S1: The robot arm consists of several segments. Each joint can control a corresponding segment of the robot arm. Each joint constructs an independent local action network and local value network. The local action network and local value network are used to process the action and value evaluation of each robot segment, thereby achieving fine control of each joint of the robot; S2: Build a global value network, which is used to evaluate the impact of all joint actions on the overall state, thereby optimizing global control; S3: Based on n After the joints are optimized, the control strategy and path planning are trained. n -1 joint, train each joint section by section, and finally obtain the overall control strategy and path planning of the robotic arm.

[0026] The training sequence is: starting from the end of the robotic arm, the neural network of each joint is trained section by section to ensure that the action and value assessment of each joint can be effectively coordinated.

[0027] It also includes a back-to-back training convergence judgment method based on local-global collaboration, which is used to judge the convergence during the training process to ensure the effectiveness and stability of the training. By training the joint networks of the robotic arm section by section, fine control and global optimization of the robotic arm are achieved.

[0028] A robotic arm consists of n The first joint corresponds to the bottom of the robot arm. nThe joints correspond to the head of the robot arm, and each joint can control a section of the robot arm. A local action network and a local value network are constructed for each joint. n The local action network of each joint is , the local value network is In order to evaluate the impact of all robot joint actions on the overall state, a global value network is constructed ; Build for each joint separately MDP Model, define n The state space of each joint is expressed as: (1); In the formula, For the n Joint to N The angle of the joints, For the n The length of the robot arm corresponding to the joints, is the target position, is the location of multiple obstacles; No. n The motion space of the joint is the three-dimensional angle change of the joint, expressed as: (2); In the formula, For the robot arm x The pitch angle of the axis when it rotates up and down, with positive values ​​for upward rotation and negative values ​​for downward rotation; For the robot arm y The yaw angle of the axis rotation, with negative values ​​for left rotation and positive values ​​for right rotation.

[0029] No. n The reward of each joint is defined as the Pareto optimal form of its own control penalty, so that each robotic arm can maximize its own control effect under given conditions, avoiding the situation where the automatic control penalty of a single robotic arm is reduced, resulting in a reduction in the optimization effect of other robotic arms, expressed as: (3); In the formula, For joints n The self-control penalty is expressed as the overall path accuracy of the robot and the individual control accuracy of the robot. is the gripper position of the robot arm, For the N The distance between the robot arm and the obstacle, t is a preset weight parameter used to unify the order of magnitude; For the collaboration benefit between the robots, When the current robot arm is not moving, i The self-control penalty of each joint is maximized by Obtain the Pareto equilibrium solution to help the robotic arm n Decisions are made by comprehensively considering the global state and other robot actions to enhance coordination and avoid falling into individual optimality.

[0030] Traditional robot path planning methods need to consider the control and path planning issues of the entire robot system at the same time, which makes the training process very complicated, especially for multi-joint robot systems. In traditional methods, the entire system is trained at the same time, and the optimization of the previous joints will affect the training results of the subsequent joints, making it difficult for the system to converge. The parameter adjustment of each joint will affect the state of the entire system, and the training process is prone to fall into local optimal solutions or gradient vanishing / exploding problems.

[0031] Therefore, by adopting the back-to-back training strategy, starting from the end of the robot arm, the neural network of each joint is trained section by section. When each network converges, the neural network of the previous joint is trained in turn, so that the path planning of the previous joint is optimized based on the optimal solution of the next joint, thereby gradually ensuring the improvement of the overall performance. In this way, n The problem of simultaneous optimization of the paths of two joints of the robotic arm is split into the optimization problem of a single joint of the robotic arm. Each joint of the robotic arm only needs to solve the optimization problem based on the previous joint, which significantly reduces the complexity of the optimization space and improves the convergence speed and computational efficiency of the model.

[0032] First n Take the training of joints as an example, in the state Next, the action is generated by the local action network , and get rewards , in order to optimize the local action network, so that its output action can not only maximize Q The local action network loss function of the local action network is designed to take into account the global optimality. , expressed as: (4); In the formula, t is the training iteration variable of the robot arm, is the policy gradient loss of the local action network, used to maximize Q value; is the global state change penalty term, To balance the weight; It is the comparison value between the control penalty of the current action and the average control penalty of all robotic arms that have made actions, and represents the contribution of the current action to the global optimum.

[0033] To evaluate the action As for the impact on the overall performance of the robotic arm, the global value network is used for system supervision, and the loss function of the global value network is expressed as: (5); In the formula, is the global state, Valuing the global value network, The parameters are Global value network valuation, is the action taken by the local action network after state transition, is the discount factor.

[0034] Based on the obtained global value network loss function, the local value network loss function is obtained through the collaboration between the local value network and the global value network to update the local value network, which is expressed as: (6); In the formula, For the n Parameters of joints The value network valuation of After the state transfer n The local action network of each joint is based on parameters The generated action, To use n The value network valuation of each joint, To balance the weight.

[0035] According to the above loss function, independent training of the network corresponding to each joint can be achieved. In the process of updating the local network parameters, the errors of the local value network and the global value network are combined. Through this collaborative mechanism, the unification of local optimization and global optimization is achieved, which not only improves the optimization effect of a single joint, but also improves the path planning accuracy of the entire robotic arm system, while effectively improving the overall convergence speed of the model.

[0036] In the training process of robot path planning and control optimization, convergence judgment is a key link. The back-to-back training method can ensure the independent optimization of each joint network and the coordination performance of the overall system. By monitoring the changes in the local action network loss function and the local value network loss function, when the change is less than the set threshold within multiple training rounds, the local network is considered to have converged. The local value network convergence judgment variable is expressed as: (7); In the formula, is the event function, Indicates that the local value network loss change is less than the threshold ,otherwise ; Indicates that the global value network loss change is less than the threshold ,otherwise , To determine the time window size for value network convergence; When both conditions are met within the time window , the local value network converges.

[0037] The local action network convergence judgment variable expression is: (8); In the formula, is the preset local action network loss change threshold, is the event function, Indicates that the local action network loss change is less than , To determine the time window size for local action network convergence; When the time window And when the local value network converges, the local action network converges.

[0038] When the local section n When the action network and value network of each joint converge, When n The robotic arms converge.

[0039] By collaboratively optimizing the local network and the global network, we ensure that the coordination performance of the entire system is not destroyed during the independent optimization of each joint network. This not only improves the independent performance of each joint, but also ensures the efficiency and coordination of the overall path planning and control of the robotic arm.

[0040] By comprehensively considering the changes in the loss functions of the local network and the global network, an efficient convergence judgment method is designed. This method can not only consider the impact of each joint strategy on the entire system when optimizing it, but also ensure the balance and coordination between local optimization and global optimization during the training process. The optimal robotic arm path planning strategy can be obtained after the training of all joints is completed.

[0041] A robot arm precise path planning system based on back-facing DDPG, used to execute the robot arm precise path planning method based on back-facing DDPG, comprising: The motion acquisition module is responsible for collecting the posture of each joint of the robotic arm, the contact force and position information of the charging socket; Local evaluation module, used to evaluate the action and value of each robot joint; The global evaluation module is used to evaluate the impact of all robot joint actions on the overall state; The loss function calculation module calculates the control penalty of the current action and the average control penalty of all robotic arms that have made actions according to the posture of each joint, and represents the contribution of the current action to the global optimum. The convergence judgment calculation module calculates the convergence degree of the robot arm joints by monitoring the changes in the local action network loss function and the local value network loss function; The action execution module is responsible for executing the overall control strategy and path planning of the robotic arm.

[0042] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is limited by the claims and their equivalents.

Claims

1. A precise path planning method for a robotic arm based on back-to-back DDPG, characterized in that: The following steps are involved: S1: The robot arm consists of several segments. Each joint can control a corresponding segment of the robot arm. Each joint constructs an independent local action network and local value network. S2: Construct a global value network, which is used to evaluate the impact of all joint actions on the overall state; S3: Based on n After the joints are optimized, the control strategy and path planning are trained. n -1 joint, train each joint section by section, and finally obtain the overall control strategy and path planning of the robotic arm.

2. The method for accurate path planning of a robotic arm based on back-to-back DDPG according to claim 1, characterized in that: Definition n The local action network of each joint is , the local value network is , build a global value network ; Build for each joint separately MDP Model, define n The state space of each joint is expressed as: (1); In the formula, For the n Joint to N The angle of the joints, For the n The length of the robot arm corresponding to the joints, is the target position, is the location of multiple obstacles; No. n The motion space of the joint is the three-dimensional angle change of the joint, expressed as: (2); In the formula, For the robot arm x The pitch angle of the axis when it rotates up and down, with positive values ​​for upward rotation and negative values ​​for downward rotation; For the robot arm y The yaw angle of the axis rotation, with negative values ​​for left rotation and positive values ​​for right rotation.

3. The method for accurate path planning of a robotic arm based on back-to-back DDPG according to claim 2, characterized in that: No. n The reward of each joint is defined as the Pareto optimal form of its own control penalty, expressed as: (3); In the formula, For joints n The self-control penalty is expressed as the overall path accuracy of the robot and the individual control accuracy of the robot. is the gripper position of the robot arm, For the N The distance between the robot arm and the obstacle, t is a preset weight parameter used to unify the order of magnitude; For the collaboration benefit between the robots, When the current robot arm is not moving, i The self-control penalty of each joint is maximized by Obtain the Pareto equilibrium solution.

4. The method for accurate path planning of a robotic arm based on back-to-back DDPG according to claim 1, characterized in that: Generating actions from local action networks , and get rewards , design the local action network loss function of the local action network , expressed as: (4); In the formula, t is the training iteration variable of the robot arm, is the policy gradient loss of the local action network, used to maximize Q value; is the global state change penalty term, To balance the weight; It is the comparison value between the control penalty of the current action and the average control penalty of all robotic arms that have made actions, and represents the contribution of the current action to the global optimum.

5. The method for accurate path planning of a robotic arm based on back-to-back DDPG according to claim 1, characterized in that: The global value network is used for system supervision, and the global value network loss function is expressed as: (5); In the formula, is the global state, Valuing the global value network, The parameters are Global value network valuation, is the action taken by the local action network after state transition, is the discount factor.

6. The method for accurate path planning of a robotic arm based on back-to-back DDPG according to claim 5, characterized in that: Based on the obtained global value network loss function, the local value network loss function is obtained through the collaboration between the local value network and the global value network, which is expressed as: (6); In the formula, For the n Parameters of joints The value network valuation of After the state transfer n The local action network of each joint is based on parameters The generated action, To use n The value network valuation of each joint, To balance the weight.

7. The method for accurate path planning of a robotic arm based on back-to-back DDPG according to claim 1, characterized in that: By monitoring the changes in the local action network loss function and the local value network loss function, when the changes in multiple training rounds are less than the set threshold, the local network is considered to have converged. The local value network convergence judgment variable is expressed as: (7); In the formula, is the event function, Indicates that the local value network loss change is less than the threshold ,otherwise ; Indicates that the global value network loss change is less than the threshold ,otherwise , To determine the time window size for value network convergence; When both conditions are met within the time window , the local value network converges.

8. The method for accurate path planning of a robotic arm based on back-to-back DDPG according to claim 7, characterized in that: The local action network convergence judgment variable expression is: (8); In the formula, is the preset local action network loss change threshold, is the event function, Indicates that the local action network loss change is less than , To determine the time window size for local action network convergence; When the time window And when the local value network converges, the local action network converges; When the local section n When the action network and value network of each joint converge, When n The robotic arms converge.

9. The method for accurate path planning of a robotic arm based on back-to-back DDPG according to claim 1, characterized in that: The training sequence is: starting from the end of the robotic arm, train the neural network of each joint section by section.

10. A precise path planning system for a robotic arm based on back-to-back DDPG, characterized in that: The method for accurately planning a robot arm path based on back-to-back DDPG according to any one of claims 1 to 9 comprises: The motion acquisition module is responsible for collecting the posture of each joint of the robotic arm, the contact force and position information of the charging socket; Local evaluation module, used to evaluate the action and value of each robot joint; The global evaluation module is used to evaluate the impact of all robot joint actions on the overall state; The loss function calculation module calculates the control penalty of the current action and the average control penalty of all robotic arms that have made actions according to the posture of each joint, and represents the contribution of the current action to the global optimum. The convergence judgment calculation module calculates the convergence degree of the robot arm joints by monitoring the changes in the local action network loss function and the local value network loss function; The action execution module is responsible for executing the overall control strategy and path planning of the robotic arm.

Citation Information

Patent Citations

  • Deep reinforcement learning mechanical arm motion planning method based on maximum entropy frame

    CN115091469A

  • Automatic driving layered path planning method based on sampling and deep reinforcement learning

    CN115793641A

  • Control method and system for improving operation precision of robot arm

    CN116079730A

  • Mechanical arm path planning method and system based on depth deterministic strategy gradient

    CN116494247A

  • Industrial mechanical arm optimal motion planning method based on hierarchical reinforcement learning

    CN118514072A

Cited By

  • Humanoid robot welding pose adjusting method and system

    CN120326636A

  • Dynamic scheduling method and device for charging robot with body and medium

    CN122155313A