Deep reinforcement learning robot arm motion planning method, system and storage medium based on constraint model
Through the deep reinforcement learning method based on the constraint model, the problem of insufficient adaptability of traditional robot arm motion planning methods in dynamic tasks and complex environments is solved, more efficient and safer motion planning is achieved, the risk of collision is reduced, and the Stability and training speed of robotic arms.
Patent Information
- Application Number
- CN202410181734.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-18
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-02-18
AI Technical Summary
Traditional robotic arm motion planning methods lack adaptability and flexibility, are difficult to cope with dynamic tasks and changes in complex environments, and can easily lead to collisions and safety issues.
The deep reinforcement learning method based on the constraint model is used to collect environmental state information through the deep reinforcement learning algorithm, build and train the dynamic environment model, generate virtual future trajectories and update the policy network to ensure that the manipulator abides by the constraints during movement.
It improves the motion planning effect and safety of the robotic arm, enables it to adapt to dynamic tasks and complex environments faster, reduces the risk of collision, and improves training speed and stability.
Smart Images

Figure CN118123816B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robotic arm control technology, and in particular to a deep reinforcement learning robotic arm motion planning method, system and storage medium based on a constraint model. Background Art
[0002] Traditional robot arm motion planning methods are usually designed based on predefined trajectories or rules. This method can be expressed through simple mathematical models or rules, and has the advantages of being simple and easy to implement. However, this method often lacks adaptability and flexibility. Specifically, first of all, the limitations under dynamic tasks; because the predefined trajectories or rules are fixed, they cannot adapt to the changes in dynamic tasks; when faced with unknown obstacles, uncertain workpiece positions or dynamic task requirements, traditional robot arm motion planning methods cannot make timely adjustments and adaptations. Secondly, the limitations in complex environments; in complex workspaces, such as narrow spaces, irregularly shaped workpieces, etc., traditional robot arm motion planning methods often find it difficult to generate suitable motion trajectories. At the same time, due to the lack of perception and cognitive ability of the environment, this method is prone to problems such as collisions and friction, affecting the safety and motion effects of the robot arm. The above defects are what those skilled in the art expect to overcome. Summary of the invention
[0003] The purpose of the present invention is to overcome the above-mentioned defects in the prior art. The first aspect of the present invention provides a deep reinforcement learning robot arm motion planning method based on a constraint model.
[0004] Based on the first aspect of the present invention, the second aspect of the present invention also provides a deep reinforcement learning robotic arm motion planning system based on a constraint model.
[0005] Based on the first aspect of the present invention, the third aspect of the present invention further provides a computer-readable storage medium.
[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0007] In the first aspect, a deep reinforcement learning robot arm motion planning method based on a constraint model is provided, comprising the following steps:
[0008] Step S1, collecting initial real environment state information; based on the deep reinforcement learning algorithm, adopting a strategy and performing an action according to the initial real environment state information; collecting the real environment state information after performing the action and obtaining a reward signal;
[0009] Step S2, storing a trajectory consisting of the initial real environment state information of step S1 in T time steps, the real environment state information after the action is performed, the action information and the reward signal in the experience pool;
[0010] Step S3, extracting a batch of transfer tuples from the experience pool of step S2, and constructing and training a dynamic environment model;
[0011] Step S4: The robot arm interacts with the dynamic environment model of step S3, selects a state after the current transfer tuple as the starting prediction point, and generates a virtual future trajectory for accelerating exploration; on the virtual future trajectory, the virtual target that meets the constraint conditions is used to re-mark the desired target of the historical transfer tuple;
[0012] Step S5, using the historical transfer tuple after re-marking the expected target in step S4 to update the policy network and value network of the deep reinforcement learning algorithm described in step S1;
[0013] The real environment state information in step S1 includes information of the end effector of the robot arm, information of the operated object and position information of the desired target.
[0014] First, the learning robot arm motion planning method can make full use of existing sample data, improve sample utilization, and better learn the dynamic characteristics of the environment, thereby improving the motion planning effect of the robot arm; it can accelerate the exploration of the environment and improve the efficiency of motion planning; it enables the robot arm to learn effective strategies faster and improve the training speed. Secondly, the learning robot arm motion planning method can enable the robot arm to comply with the set constraints during the movement, such as avoiding collisions or keeping objects stable, which is conducive to improving the stability and safety of the robot arm's movement. Finally, the learning robot arm motion planning method can also converge to the optimal solution faster.
[0015] Furthermore, the information of the end effector of the robotic arm includes the coordinates, angular velocity, linear velocity and gripper opening state of the end effector of the robotic arm; the information of the operated object includes the coordinates, angular velocity and linear velocity of the operated object; the position information of the desired target is the three-dimensional coordinates that the end effector of the robotic arm or the operated object needs to reach.
[0016] Furthermore, the deep reinforcement learning algorithm used in step S1 is the DDPG (Deep Deterministic Policy Gradient) algorithm; the real environment state information in step S1 is input into the DDPG algorithm, and the coordinate displacement of the end effector of the robot arm and the opening state of the gripper are output, which is conducive to improving the accuracy, stability and generalization ability of the robot arm motion planning.
[0017] Furthermore, in step S1, a reward signal is obtained by calculating whether the distance between the three-dimensional coordinates of the end effector of the manipulator or the operated object and the three-dimensional coordinates of the desired target is less than a threshold; the reward signal is sparse and binary, and when the distance between the three-dimensional coordinates of the end effector of the manipulator or the operated object and the three-dimensional coordinates of the desired target is less than or equal to the threshold, a reward of 0 is returned; when the distance between the three-dimensional coordinates of the end effector of the manipulator or the operated object and the three-dimensional coordinates of the desired target is greater than the threshold, a reward of -1 is returned. This is conducive to the deep reinforcement learning algorithm to better understand the task objectives, so that effective motion strategies can be learned faster; and setting the reward signal in a sparse and binary form effectively reduces the redundancy of the reward signal, making the reward signal more concise and clear, reducing the interference of noise during training, and accelerating the learning process.
[0018] Furthermore, in step S2, the experience pool saves the transfer tuples by using a dictionary and a numpy array of length T; the experience pool has a dictionary attribute buffers, which contains the numpy arrays of each transfer tuple. The experience pool can efficiently store and manage a large number of transfer tuples; in addition, by setting the dictionary attribute buffers, different transfer tuples can also be stored according to different identifiers, which is convenient for obtaining or re-marking specific transfer tuples from the experience pool.
[0019] Furthermore, in step S3, the dynamic environment model adopts a multi-layer perceptron model, which is composed of an input layer, four hidden layers and an output layer; the real environment state information and action information are input into the multi-layer perceptron model, and the predicted environment state information is output; in step S3, the same batch of transfer tuples extracted from the experience pool are used to train the dynamic environment model twice. It can improve the prediction accuracy of the model for state changes and is suitable for complex motion planning tasks; the first training enables the model to initially learn the patterns and features of the data, and the second training further optimizes the model parameters so that the model can better adapt to various motion planning scenarios to increase the generalization ability of the model; in addition, training the model twice can reduce the error of model training, improve the stability and reliability of the system, and also reduce the computational cost of training.
[0020] Furthermore, in step S4, the method for the robot arm to interact with the dynamic environment model includes the following steps:
[0021] Step S41: Select a state s after the transition tuple of the current time step t k (t≤k≤T) as the predicted starting environment state s' k ;
[0022] Step S42: The robot arm starts the environment state s' according to the prediction in step S41.k Output action;
[0023] Step S43: The dynamic environment model is based on the predicted initial environment state s' in step S41. k and the action information output by the robot arm in step S42, outputting the predicted environmental state information;
[0024] Step S44, repeat the first three steps n times.
[0025] Preferably, in step S4, the virtual target φ(s' k+l )The constraints that need to be satisfied are:
[0026]
[0027]
[0028] Among them, 0≤l≤n-1; φ(s) maps the state s to the achieved goal g achieved ; is the target φ(s' k+l+1 ) and φ(s' k+l ) between the two.
[0029] Secondly, a deep reinforcement learning robot arm motion planning system based on a constraint model is provided, including the following modules:
[0030] A data collection module is used to collect initial real environment status information and real environment status information after the action is executed;
[0031] A deep reinforcement learning algorithm module is connected to the data acquisition module and is used to receive initial real environment state information and adopt strategies to obtain action information; the deep reinforcement learning algorithm module includes a strategy network and a value network;
[0032] A robotic arm control module, connected to the deep reinforcement learning algorithm module, for receiving action information and controlling the robotic arm to perform actions;
[0033] A construction module is used to construct a reward function, an experience pool, and a dynamic environment model; specifically, based on the reward function, a reward signal is obtained according to the initial real environment state information obtained by the data acquisition module and the real environment state information after the action is performed; a trajectory consisting of the initial real environment state information, the action information, and the reward signal is stored in the experience pool; a batch of transfer tuples are extracted from the experience pool to construct the dynamic environment model;
[0034] The training module is used to extract a batch of transfer tuples from the experience pool and train the dynamic environment model; it is used to interact the robot arm with the dynamic environment model, select a state after the current transfer tuple as the starting prediction point, and generate a virtual future trajectory; on the virtual future trajectory, the virtual target that meets the constraint conditions is used to re-mark the expected target of the historical transfer tuple; the historical transfer tuple after re-marking the expected target is used to update the policy network and value network of the deep reinforcement learning algorithm module.
[0035] According to a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is run on a computer, the computer executes the method according to the first aspect.
[0036] Compared with the prior art, the present invention has the following beneficial effects:
[0037] The present invention discloses a deep reinforcement learning manipulator motion planning method based on a constraint model. By storing the real environment state information of T time steps, the real environment state information after executing an action, the action information and the reward signal in an experience pool, and using these data to construct and train a dynamic environment model, the method can make full use of the existing sample data, improve the sample utilization rate, and better learn the dynamic characteristics of the environment, thereby improving the motion planning effect of the manipulator; by setting the manipulator to interact with the dynamic environment model, a certain state after the current transfer tuple is selected as the starting prediction point to generate a virtual future trajectory; and re-marking the virtual target satisfying the constraint condition on the virtual future trajectory with the expected target of the historical transfer tuple, on the one hand, the method can accelerate the exploration of the environment and improve the efficiency of motion planning; the manipulator can learn effective strategies faster and improve the training speed; on the other hand, setting the constraint condition can make the manipulator comply with the set constraint condition during the motion process, such as avoiding collision or keeping the object stable, which is conducive to improving the stability and safety of the manipulator motion. At the same time, by re-marking the historical transfer tuple after the expected target is used to update the policy network and value network of the deep reinforcement learning algorithm, it can converge to the optimal solution faster. The constraint model-based deep reinforcement learning robotic arm motion planning method is flexible and can adapt to changes in dynamic tasks and complex environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a flow chart of the deep reinforcement learning robot arm motion planning method based on the constraint model provided by the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0040] See also Figure 1 , this embodiment provides a deep reinforcement learning robot arm motion planning method based on a constraint model, the method comprising the following steps:
[0041] Step S1, collecting initial real environment state information; based on the deep reinforcement learning algorithm, adopting a strategy and performing an action according to the initial real environment state information; collecting the real environment state information after performing the action to obtain a reward signal.
[0042] Among them, the real environment state information includes the information of the end effector of the manipulator, the information of the operated object, and the position information of the desired target. Specifically, the information of the end effector of the manipulator includes the coordinates, angular velocity, linear velocity and gripper opening state of the end effector of the manipulator; the information of the operated object includes the coordinates, angular velocity and linear velocity of the operated object; the position information of the desired target is the three-dimensional coordinates that the end effector of the manipulator or the operated object needs to reach. A comprehensive understanding of the current state of the manipulator and the state of the environment is conducive to better planning the motion trajectory and actions of the manipulator.
[0043] The deep reinforcement learning algorithm used in step S1 is the DDPG (Deep Deterministic Policy Gradient) algorithm; the collected real environment state information is input into the DDPG algorithm, and the coordinate displacement of the end effector of the robot arm and the opening state of the gripper are output. Combining the DDPG algorithm with the motion planning method can improve the accuracy, stability and generalization ability of the robot arm motion planning, so that the robot arm can better adapt to various complex environments and task requirements.
[0044] The method for obtaining the reward signal in step S1 is: by calculating whether the distance between the three-dimensional coordinates of the end effector of the manipulator or the operated object and the three-dimensional coordinates of the desired target is less than a threshold, thereby obtaining a reward signal. Specifically, the reward signal is sparse and binary. When the distance between the three-dimensional coordinates of the end effector of the manipulator or the operated object and the three-dimensional coordinates of the desired target is less than or equal to the threshold, a reward of 0 is returned; when the distance between the three-dimensional coordinates of the end effector of the manipulator or the operated object and the three-dimensional coordinates of the desired target is greater than the threshold, a reward of -1 is returned. By using the distance threshold as the judgment standard of the reward signal, the goal of the manipulator motion planning can be clarified, which is conducive to the deep reinforcement learning algorithm to better understand the task goal, so that effective motion strategies can be learned faster; and the reward signal is in a sparse and binary form, which effectively reduces the redundancy of the reward signal, makes the reward signal more concise and clear, reduces the interference of noise during training, and accelerates the learning process. At the same time, the sensitivity of the reward function can be flexibly adjusted by adjusting the distance threshold, so that the method can adapt to different task requirements.
[0045] Step S2: Store a trajectory consisting of the initial real environment state information of step S1 in T time steps, the real environment state information after executing the action, the action information and the reward signal in the experience pool; so that the method can make full use of the existing sample data and improve the sample utilization rate.
[0046] Specifically, the experience pool uses a dictionary and a numpy array of length T to save the transfer tuples; the experience pool has a dictionary attribute buffers, which contains the numpy arrays of each transfer tuple. On the one hand, the experience pool can efficiently store and manage a large number of transfer tuples; on the other hand, by setting the dictionary attribute buffers, different transfer tuples can be stored according to different identifiers, which is convenient for obtaining or re-marking specific transfer tuples from the experience pool.
[0047] Step S3, extract a batch of transfer tuples from the experience pool of step S2, and construct and train the dynamic environment model. The dynamic environment model adopts a multi-layer perceptron model, which consists of an input layer, four hidden layers and an output layer; the real environment state information and action information are input into the multi-layer perceptron model, and the predicted environment state information is output. By adopting the multi-layer perceptron model as the dynamic environment model, the accuracy of the model's prediction of state changes can be improved, and it is suitable for complex motion planning tasks. The same batch of transfer tuples extracted from the experience pool are trained twice on the dynamic environment model. The first training enables the model to initially learn the patterns and features of the data, and the second training further optimizes the model parameters so that the model can better adapt to various motion planning scenarios to increase the generalization ability of the model; in addition, training the model twice can reduce the error of model training, improve the stability and reliability of the system, and also reduce the computational cost of training.
[0048] Step S4: The robot interacts with the dynamic environment model of step S3, selects a state after the current transfer tuple as the starting prediction point, and generates a virtual future trajectory for accelerating exploration; on the virtual future trajectory, the virtual target that meets the constraint conditions is used to re-mark the desired target of the historical transfer tuple. On the one hand, this method can accelerate the exploration of the environment and improve the efficiency of motion planning; the robot can learn effective strategies more quickly and improve the training speed; on the other hand, setting constraints can enable the robot to comply with the set constraints during the movement, such as avoiding collisions or keeping objects stable, which is conducive to improving the stability and safety of the robot's movement.
[0049] The method for interacting the robot arm with the dynamic environment model comprises the following steps:
[0050] Step S41: Select a state s after the transition tuple of the current time step t k (t≤k≤T) as the predicted starting environment state s' k ;
[0051] Step S42: The robot arm starts the environment state s' according to the prediction in step S41. k Output action;
[0052] Step S43: The dynamic environment model is based on the predicted initial environment state s' in step S41. k and the action information output by the robot arm in step S42, outputting the predicted environmental state information;
[0053] Step S44, repeat the first three steps n times. By repeating the interaction multiple times, the interaction between the robot arm and the dynamic environment model can be made more complete, thereby increasing the stability of the robot arm motion planning method.
[0054] Specifically, the virtual target φ(s') used for re-labeling k+l )The constraints that need to be satisfied are:
[0055]
[0056]
[0057] Among them, 0≤l≤n-1; φ(s) maps the state s to the achieved goal g achieved ; is the target φ(s' k+l+1 ) and φ(s' k+l ) The threshold threshold is the same as the threshold set in the reward function.
[0058] Step S5: Use the historical transfer tuples after re-marking the expected target in step S4 to update the policy network and value network of the deep reinforcement learning algorithm in step S1.
[0059] Specifically, the gradient descent method is used to update the policy network and value network of the deep reinforcement learning algorithm. The gradient descent method is an iterative optimization method that minimizes the objective function by continuously adjusting the network parameters so that the network gradually converges to the optimal solution. In addition, the gradient descent method can also enable the network to handle more complex tasks and environments and accelerate the training process.
[0060] This embodiment also provides a deep reinforcement learning robotic arm motion planning system based on a constraint model, the system comprising: a data acquisition module, a deep reinforcement learning algorithm module, a robotic arm control module, a construction module and a training module.
[0061] The data acquisition module is used to collect the initial real environment state information and the real environment state information after the action is performed. Specifically, the real environment state information includes the information of the end effector of the manipulator, the information of the operated object, and the position information of the desired target. The information of the end effector of the manipulator includes the coordinates, angular velocity, linear velocity and gripper opening state of the end effector of the manipulator; the information of the operated object includes the coordinates, angular velocity and linear velocity of the operated object; the position information of the desired target is the three-dimensional coordinates that the end effector of the manipulator or the operated object needs to reach.
[0062] The deep reinforcement learning algorithm module is connected to the data acquisition module to receive the initial real environment state information and adopt strategies to obtain action information. The deep reinforcement learning algorithm module adopts the DDPG (Deep Deterministic Policy Gradient) algorithm; the deep reinforcement learning algorithm module includes a strategy network and a value network.
[0063] The robotic arm control module is connected to the deep reinforcement learning algorithm module, and is used to receive action information and control the robotic arm to perform actions.
[0064] The construction module is used to construct a reward function, an experience pool, and a dynamic environment model. Specifically, based on the reward function, a reward signal is obtained according to the initial real environment state information obtained by the data acquisition module and the real environment state information after the action is performed. A trajectory consisting of the initial real environment state information, action information, and reward signal is stored in the experience pool. A batch of transfer tuples are extracted from the experience pool to construct a dynamic environment model.
[0065] The training module is used to extract a batch of transfer tuples from the experience pool and train the dynamic environment model; it is used to interact the robotic arm with the dynamic environment model, select a state after the current transfer tuple as the starting prediction point, and generate a virtual future trajectory; on the virtual future trajectory, the virtual target that meets the constraint conditions is used to re-mark the expected target of the historical transfer tuple; the historical transfer tuple after re-marking the expected target is used to update the policy network and value network of the deep reinforcement learning algorithm module.
[0066] This embodiment also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed, it implements the deep reinforcement learning robotic arm motion planning method based on the constraint model as described above.
[0067] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.
Claims
1. A deep reinforcement learning robot arm motion planning method based on a constraint model, characterized in that: The following steps are involved: Step S1, collecting initial real environment status information; Based on the deep reinforcement learning algorithm, a strategy is adopted according to the initial real environment state information to perform an action; the real environment state information after the action is performed is collected, and a reward signal is obtained by calculating whether the distance between the three-dimensional coordinates of the end effector of the robot arm or the operated object and the three-dimensional coordinates of the desired target is less than a threshold; The reward signal is sparse and binary. When the distance between the 3D coordinates of the end effector of the robot arm or the 3D coordinates of the operated object and the 3D coordinates of the desired target is less than or equal to the threshold, a reward of 0 is returned; when the distance between the 3D coordinates of the end effector of the robot arm or the 3D coordinates of the operated object and the 3D coordinates of the desired target is greater than the threshold, a reward of -1 is returned. Step S2, storing a trajectory consisting of the initial real environment state information of step S1 in T time steps, the real environment state information after the action is performed, the action information and the reward signal in the experience pool; Step S3, extracting a batch of transfer tuples from the experience pool of step S2, and constructing and training a dynamic environment model; Step S4: The robot arm interacts with the dynamic environment model of step S3, selects a state after the current transfer tuple as the starting prediction point, and generates a virtual future trajectory for accelerating exploration; on the virtual future trajectory, the virtual target that meets the constraint conditions is used to re-mark the desired target of the historical transfer tuple; In step S4, the method for the robot arm to interact with the dynamic environment model includes the following steps: Step S41: Select a state s after the transition tuple of the current time step t k As the predicted starting environment state s' k , where t≤k≤T; Step S42: The robot arm starts the environment state s' according to the prediction in step S41. k Output action; Step S43: The dynamic environment model is based on the predicted initial environment state s' in step S41. k and the action information output by the robot arm in step S42, outputting the predicted environmental state information; Step S44, repeat the first three steps n times; In step S4, the virtual target φ(s') used for re-marking k+l )The constraints that need to be satisfied are: Among them, 0≤l≤n-1; Mapping state s to achieved goal g achieved ; is the target and The distance between them, the threshold threshold is the same as the threshold set in the reward function; Step S5, using the historical transfer tuple after re-marking the desired target in step S4 to update the policy network and value network of the deep reinforcement learning algorithm described in step S1; The real environment state information in step S1 includes information of the end effector of the robot arm, information of the operated object and position information of the desired target.
2. The deep reinforcement learning robot arm motion planning method based on the constraint model according to claim 1 is characterized in that: The information of the end effector of the robotic arm includes the coordinates, angular velocity, linear velocity and gripper opening state of the end effector of the robotic arm; the information of the operated object includes the coordinates, angular velocity and linear velocity of the operated object; the position information of the desired target is the three-dimensional coordinates that the end effector of the robotic arm or the operated object needs to reach.
3. The deep reinforcement learning robot arm motion planning method based on the constraint model according to claim 1 is characterized in that: The deep reinforcement learning algorithm used in step S1 is the DDPG algorithm; the real environment state information in step S1 is input into the DDPG algorithm, and the coordinate displacement of the end effector of the robot arm and the opening state of the gripper are output.
4. The deep reinforcement learning robot arm motion planning method based on the constraint model according to claim 1 is characterized in that: In step S2, the experience pool saves the transfer tuples by using a dictionary and a numpy array of length T; the experience pool has a dictionary attribute buffers, which contains the numpy array of each transfer tuple.
5. The deep reinforcement learning robot arm motion planning method based on the constraint model according to claim 1 is characterized in that: In the step S3, the dynamic environment model adopts a multi-layer perceptron model, which consists of an input layer, four hidden layers and an output layer; the real environment state information and action information are input into the multi-layer perceptron model, and the predicted environment state information is output; in the step S3, the dynamic environment model is trained twice with the same batch of transfer tuples extracted from the experience pool.
6. A deep reinforcement learning robot arm motion planning system based on a constraint model, characterized in that: Includes the following modules: A data collection module is used to collect initial real environment status information and real environment status information after the action is executed; A deep reinforcement learning algorithm module is connected to the data acquisition module and is used to receive the initial real environment state information and adopt a strategy to obtain action information; the deep reinforcement learning algorithm module includes a strategy network and a value network, and obtains a reward signal by calculating whether the distance between the three-dimensional coordinates of the end effector of the robot arm or the operated object and the three-dimensional coordinates of the desired target is less than a threshold; The reward signal is sparse and binary. When the distance between the 3D coordinates of the end effector of the robot arm or the 3D coordinates of the operated object and the 3D coordinates of the desired target is less than or equal to the threshold, a reward of 0 is returned; when the distance between the 3D coordinates of the end effector of the robot arm or the 3D coordinates of the operated object and the 3D coordinates of the desired target is greater than the threshold, a reward of -1 is returned. A robotic arm control module, connected to the deep reinforcement learning algorithm module, for receiving action information and controlling the robotic arm to perform actions; A construction module is used to construct a reward function, an experience pool, and a dynamic environment model; specifically, based on the reward function, a reward signal is obtained according to the initial real environment state information obtained by the data acquisition module and the real environment state information after the action is performed; a trajectory consisting of the initial real environment state information, the action information, and the reward signal is stored in the experience pool; Extract a batch of transfer tuples from the experience pool to build a dynamic environment model; A training module is used to extract a batch of transfer tuples from the experience pool and train the dynamic environment model; to interact the robot arm with the dynamic environment model, select a state after the current transfer tuple as the starting prediction point, and generate a virtual future trajectory; on the virtual future trajectory, a virtual target that meets the constraint conditions is used to re-mark the expected target of the historical transfer tuple; the historical transfer tuple after re-marking the expected target is used to update the policy network and value network of the deep reinforcement learning algorithm module; The method for the robot arm to interact with the dynamic environment model includes the following steps: Step S41: Select a state s after the transition tuple of the current time step t k As the predicted starting environment state s' k , where t≤k≤T; Step S42: The robot arm starts the environment state s' according to the prediction in step S41. k Output action; Step S43: The dynamic environment model is based on the predicted initial environment state s' in step S41. k and the action information output by the robot arm in step S42, outputting the predicted environmental state information; Step S44, repeat the first three steps n times; The virtual target φ(s') used for relabeling k+l )The constraints that need to be satisfied are: Among them, 0≤l≤n-1; Mapping state s to achieved goal g achieved ; is the goal and The distance between them, the threshold threshold is the same as the threshold set in the reward function.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 5 is implemented.
