Intelligent planning algorithm for robot end control trajectory

Through unsupervised learning and deep neural network models, combined with domain adaptation methods, intelligent planning of the control trajectory of the end of the robotic arm is realized, which solves the problem of high debugging costs of traditional robotic arms, and achieves the effect of automatically adapting to environmental changes and reducing costs.

CN115319759BActive Publication Date: 2024-09-24SHANGHAI MOMA INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211148470.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-21
Publication Date
2024-09-24
Estimated Expiration
2042-09-21

AI Technical Summary

Technical Problem

Traditional robotic arm algorithms require a lot of manpower and time for debugging and calibration, and cannot automatically adapt to changes in production models and environments, resulting in increased production costs and time costs.

Method used

Using unsupervised learning algorithms and deep neural network models, we build a physical model of the robotic arm and the environment through a simulated environment, automatically plan the trajectory and migrate it to the real environment, and use domain adaptation methods and reinforcement learning technology to achieve intelligent planning of the control trajectory at the end of the robotic arm. .

Benefits of technology

The robot arm can automatically plan a smooth trajectory, adapt to environmental changes, reduce manual deployment, save costs, and can perform collision detection and trajectory planning, reduce mechanical losses, and increase training speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115319759B
    Figure CN115319759B
Patent Text Reader

Abstract

The present invention discloses an intelligent planning algorithm for the control trajectory of a robot end, which relates to the technical field of control trajectory planning and comprises the following steps: S1: establishing a robot arm and an environmental physical model in a simulation environment, wherein the environmental physical model comprises all objects in the environment; S2: establishing a robot arm motion planner model, which comprises a speed planning of the motion trajectory and an inverse solution algorithm; S3: randomly initializing the starting point and end point of the robot arm trajectory and the physical parameters of the environment. This intelligent planning algorithm for the control trajectory of the robot end is different from the prior art in that the robot arm can automatically plan a smooth trajectory, the algorithm can adapt to environmental changes, manual deployment can be avoided, and costs can be saved. The algorithm can perform collision detection and obstacle avoidance decision-making, the algorithm complexity is hierarchical and modularized, and it is easy to build. The algorithm can be trained at the simulation end and directly applied to the robot arm to reduce mechanical loss.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of control trajectory planning, and in particular to an intelligent planning algorithm for the control trajectory of a robot end. Background Art

[0002] In the industrial production of robotic arms, engineers need to spend time debugging and calibrating traditional robotic arm algorithms. It is crucial for the robotic arm to achieve accurate and smooth trajectory planning during movement. However, every slight adjustment of the production mold and change in the production scene requires engineers to re-debug, which requires a lot of manpower and time costs. As the complexity of the production site scene increases or the number of production models increases, the time for debugging the trajectory will increase significantly, which has a great impact on the company's manpower and time costs.

[0003] Therefore, designing an algorithm that can automatically adapt to different production models and automatically adjust the planned path according to the environment is particularly important in reducing enterprise production costs. To this end, we propose an intelligent planning algorithm for the control trajectory of the robot end. Summary of the invention

[0004] The purpose of the present invention is to provide an intelligent planning algorithm for the control trajectory of a robot end to solve the problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solution: an intelligent planning algorithm for the control trajectory of the end of a robotic arm, comprising the following steps:

[0006] S1: Establish a robot arm and an environmental physical model in a simulation environment, where the environmental physical model includes all objects in the environment;

[0007] S2: Establish a robot motion planner model, including velocity planning of motion trajectory and inverse solution algorithm;

[0008] S3: Randomly initialize the starting and ending points of the robot trajectory and the physical parameters of the environment;

[0009] S4: Use an unsupervised learning algorithm to observe environmental data and select the position and speed information of the end point of the robot arm at the next moment based on the feedback prediction;

[0010] S5: The velocity planner converts the kinematic data of the robot end into the kinematic data of the joint end and controls the movement of the robot;

[0011] S6: Observe new environmental data, use the reward function to update the reward data, and continue to output new actions;

[0012] S7: Iterate steps S4, S5, and S6 until the cumulative return increases and then remains stable, end the training and save the strategy;

[0013] S8: Migrate the simulated environment to the real environment, map the state to the latent space, and apply the model trained in the simulated environment;

[0014] S9: Set the starting point and end point of the robot trajectory;

[0015] S10: Observe environmental data and use the trained strategy to select the next end trajectory of the robot arm;

[0016] S11: The kinematic data of the end of the robot arm is converted into kinematic data of the joint end through the speed planner, and the movement of the robot arm is controlled through the robot arm controller;

[0017] S12: Iterate steps S9 and S10 until the end of the robot arm reaches the target point within the allowable error range.

[0018] Preferably, the model is established in step S1 and step S2 by using the model-based method in reinforcement learning, where the model M is the environment, and the MDP<S,A,P,R> The parameterized η approximation of the state S and behavior space A is known. In fact, it is a parameterized approximation of the transfer function P and reward R. The formula is as follows:

[0019] M= <P η , R η >, where:

[0020]

[0021] R t+1 =R η (R t+1 |S t , A t )

[0022] In step S4, the model is trained by unsupervised learning. The training set of unsupervised learning is expressed as follows: X→y:

[0023] S 1 , A 1 →R 2 , S 2

[0024] S 2 , A 2 →R 3 , S 3

[0025]

[0026] S T-1 , A T-1 →R T , S T

[0027] The above adopts a deep neural network model and uses the loss function to optimize the parameter η to minimize the empirical loss.

[0028] Preferably, the step S8 specifically adopts a domain adaptation method.

[0029] Preferably, the actual steps of the domain adaptation method include: establishing a mapping set, formulating a measurement criterion, and determining an error bound.

[0030] Preferably, in step S3, the environmental physical parameters are initialized using a domain randomization method.

[0031] Preferably, the unsupervised learning algorithm in step S4 adopts the PPO algorithm as a benchmark algorithm, wherein importance sampling is used to obtain samples, and other distributions q are used to obtain data to estimate the function expectation based on the distribution p:

[0032]

[0033]

[0034] Where: p and q are the test data distribution and training sample distribution respectively.

[0035] As an advantage, the method further comprises the following steps:

[0036] Based on offline policyπ θ' Sampled data, training online policyπ θ In this process, due to π θ' is fixed and can be reused θ' Data training π θ repeatedly.

[0037] As a preferred method, the clip method is used to perform sampling constraints on θ' and θ, and the constraint formula is expressed as follows:

[0038]

[0039] Compared with the prior art, the present invention has the following beneficial effects:

[0040] 1. The robotic arm can automatically plan a smooth trajectory;

[0041] 2. The algorithm can adapt to environmental changes;

[0042] 3. It can avoid manual deployment and save costs;

[0043] 4. The algorithm can perform collision detection and plan a trajectory to avoid interference;

[0044] 5. The algorithm complexity is hierarchical and modular, easy to build;

[0045] 6. The algorithm can be trained on the simulation side and directly applied to the robotic arm to reduce mechanical loss;

[0046] 7. Through parallel training and domain randomization, the training speed can be improved by using the domain randomization method. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a flow chart of the trajectory intelligent planning algorithm of the present invention. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] See also Figure 1 The present invention provides a technical solution: an intelligent planning algorithm for the control trajectory of the end of a robotic arm, comprising the following steps:

[0050] S1: Establish a robot arm and an environmental physical model in a simulation environment, where the environmental physical model includes all objects in the environment;

[0051] S2: Establish a robot motion planner model, including velocity planning of motion trajectory and inverse solution algorithm;

[0052] S3: Randomly initialize the starting and ending points of the robot trajectory and the physical parameters of the environment;

[0053] S4: Use an unsupervised learning algorithm to observe environmental data and select the position and speed information of the end point of the robot arm at the next moment based on the feedback prediction;

[0054] S5: The velocity planner converts the kinematic data of the robot end into the kinematic data of the joint end and controls the movement of the robot;

[0055] S6: Observe new environmental data, use the reward function to update the reward data, and continue to output new actions;

[0056] S7: Iterate steps S4, S5, and S6 until the cumulative return increases and then remains stable, end the training and save the strategy;

[0057] S8: Migrate the simulated environment to the real environment, map the state to the latent space, and apply the model trained in the simulated environment;

[0058] S9: Set the starting point and end point of the robot trajectory;

[0059] S10: Observe environmental data and use the trained strategy to select the next end trajectory of the robot arm;

[0060] S11: The kinematic data of the end of the robot arm is converted into kinematic data of the joint end through the speed planner, and the movement of the robot arm is controlled through the robot arm controller;

[0061] S12: Iterate steps S9 and S10 until the end of the robot arm reaches the target point within the allowable error range.

[0062] Furthermore, the model is established in step S1 and step S2, using the model-based method in reinforcement learning, where the model M is the environment, and MDP<S,A,P,R> The parameterized η approximation of the state S and behavior space A is known. In fact, it is a parameterized approximation of the transfer function P and reward R. The formula is as follows:

[0063] M= <P η , R η >, where:

[0064]

[0065] R t+1 =R η (R t+1 |S t , A t )

[0066] In step S4, the model is trained by unsupervised learning. The training set of unsupervised learning is expressed as follows: X→y:

[0067] S 1 , A 1 →R 2 , S 2

[0068] S 2 , A 2 →R 3 , S 3

[0069]

[0070] S T-1 , A T-1 →R T , S T

[0071] The above-mentioned deep neural network model is used, and the loss function is used to optimize the parameter η to minimize the empirical loss, which can be used to solve the above-mentioned learning problems of R and S.

[0072] Furthermore, step S8 specifically adopts a domain adaptation method to map the state space to a wider environment, thereby shortening the gap between virtual and reality, mapping the data to a feature space, and finding a metric in the feature space to make the feature distribution of the source domain and target domain data as close as possible. The discriminator trained based on the source domain data features can be used on the target domain data.

[0073] Furthermore, the actual steps of the domain adaptation method include: establishing a mapping set, formulating a measurement criterion, and determining an error bound.

[0074] Furthermore, in step S3, the physical parameters of the environment are initialized using a domain randomization method, and the simulation environment is used as the domain source. When training on the domain source, a set of random parameters are used to sample on the domain source to obtain more data distribution, and then the random parameters are adjusted through the test results on the target domain, so as to better learn the sampling strategy on the target domain.

[0075] Furthermore, the unsupervised learning algorithm in step S4 adopts the PPO algorithm as a benchmark algorithm, wherein importance sampling is used to obtain samples, and other distributions q are used to obtain data to estimate the function expectation based on the distribution p:

[0076]

[0077] Where: p and q are the test data distribution and training sample distribution respectively.

[0078] Furthermore, the method further comprises the following steps:

[0079] Based on offline policyπ θ' Sampled data, training online policyπ θ In this process, due to π θ' is fixed and can be reused θ' Data training π θ Multiple times can increase data utilization and improve training stability.

[0080] Furthermore, the clip method is used to constrain the sampling of θ' and θ. The constraint formula is expressed as follows:

[0081]

[0082] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0083] Although 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 defined by the appended claims and their equivalents.

Claims

1. Intelligent planning algorithm for robot end control trajectory, characterized by: The steps include: S1: Establish a robot arm and an environmental physical model in a simulation environment, where the environmental physical model includes all objects in the environment; S2: Establish a robot motion planner model, including velocity planning of motion trajectory and inverse solution algorithm; S3: Randomly initialize the starting and ending points of the robot trajectory and the physical parameters of the environment; S4: Use an unsupervised learning algorithm to observe environmental data and select the position and speed information of the end point of the robot arm at the next moment based on the feedback prediction; S5: The velocity planner converts the kinematic data of the robot end into the kinematic data of the joint end and controls the movement of the robot; S6: Observe new environmental data, use the reward function to update the reward data, and continue to output new actions; S7: Iterate steps S4, S5, and S6 until the cumulative return increases and then remains stable, end the training and save the strategy; S8: Migrate the simulated environment to the real environment, map the state to the latent space, and apply the model trained in the simulated environment; S9: Set the starting point and end point of the robot trajectory; S10: Observe environmental data and use the trained strategy to select the next end trajectory of the robot arm; S11: The kinematic data of the end of the robot arm is converted into kinematic data of the joint end through the speed planner, and the movement of the robot arm is controlled through the robot arm controller; S12: Iterate steps S9 and S10 until the end of the robot arm reaches the target point within the allowable error range.

2. The intelligent planning algorithm for the control trajectory of the end-of-arm robot according to claim 1 is characterized in that: In the steps S1 and S2, a model is established by using a model based method in reinforcement learning. The model M is the environment, and the MDP<S,A,P,R> The parameterized η approximation of the state S and behavior space A is known. In fact, it is a parameterized approximation of the transfer function P and reward R. The formula is as follows: M= <P η ,R η >, where: S t+1 ~P η (S t+1 |S t,At ) R t+1 =R η (R t+1 |S t ,A t ) In step S4, the model is trained by unsupervised learning. The training set of unsupervised learning is expressed as follows: X→y: The above adopts a deep neural network model and uses the loss function to optimize the parameter η to minimize the empirical loss.

3. The intelligent planning algorithm for the control trajectory of the end-of-arm robot according to claim 1 is characterized in that: The step S8 specifically adopts a domain adaptation method.

4. The intelligent planning algorithm for the control trajectory of the end-of-arm robot according to claim 3 is characterized in that: The actual steps of the domain adaptation method include: establishing a mapping set, formulating a metric, and determining an error bound.

5. The intelligent planning algorithm for the control trajectory of the end-of-arm robot according to claim 1 is characterized in that: In step S3, the environmental physical parameters are initialized using a domain randomization method.

6. The intelligent planning algorithm for the control trajectory of the end-of-arm robot according to claim 1 is characterized in that: The unsupervised learning algorithm in step S4 uses the PPO algorithm as a benchmark algorithm, wherein importance sampling is used to obtain samples, and other distributions q are used to obtain data to estimate the function expectation based on the distribution p: Where: p and q are the test data distribution and training sample distribution respectively.

7. The intelligent planning algorithm for the control trajectory of the end-of-arm robot according to claim 1 is characterized in that: The following steps are also included: Based on offline policyπ θ' Sampled data, training online policyπ θ In this process, due to π θ' is fixed and can be reused θ' Data training π θ repeatedly.

8. The intelligent planning algorithm for the control trajectory of the end-of-arm robot according to claim 7 is characterized in that: By using the clip method to sample θ' and θ, the constraint formula is expressed as follows: