Mechanical arm autonomous grabbing algorithm research method based on deep reinforcement learning

The experience pool mechanism that combines deep reinforcement learning algorithms and imitation learning solves the problem of low grabbing efficiency of robotic arms in unstructured environments, achieves more efficient object recognition and path planning, and improves the grabbing capabilities of robotic arms. and learning efficiency.

CN118570296APending Publication Date: 2024-08-30CHANGCHUN UNIV OF SCI & TECH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410438253.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-12
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Robotic arms have low grabbing efficiency and weak perception and recognition capabilities in unstructured environments, making it difficult to adapt to complex and changeable working environments.

Method used

Adopt an autonomous grasping algorithm for the robotic arm based on deep reinforcement learning, detect objects to be grasped through a convolutional neural network, build a reinforcement learning structure, design a plastic reward function and an experience pool mechanism combined with imitation learning to improve data utilization and learning efficiency. Implement path planning and grabbing functions.

Benefits of technology

It improves the grasping ability and path planning ability of the robotic arm in complex environments, shortens the training time, and improves data utilization and learning convergence speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570296A
    Figure CN118570296A
Patent Text Reader

Abstract

The invention belongs to the technical field of reinforcement learning, and particularly relates to a mechanical arm autonomous grabbing algorithm research method based on deep reinforcement learning. The method comprises three parts of image processing, reinforcement learning training and real object deployment, aims to solve the problem of low working efficiency of a mechanical arm in the prior art, and performs real-time detection and tracking on a to-be-grabbed object through a convolutional neural network to obtain pose information of a target object. A three-experience pool mechanism combining reinforcement learning and imitation learning is designed, so that the problems of too long training time and low data utilization rate caused by random exploration in the initial training stage of an original DDPG algorithm are solved. A new reward function is designed, the grabbing efficiency of the mechanical arm is improved, and the network convergence speed is increased. And finally, the trained model is deployed on a real mechanical arm. According to the method, the experience pool of reinforcement learning and the reward function design are improved, so that the method can have a better grabbing strategy in a complex non-structural environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robotics, and in particular to a research method for an autonomous grasping algorithm of a robotic arm based on deep reinforcement learning. Background Art

[0002] In recent years, with the continuous maturity and popularization of artificial intelligence technology, robots have gradually become one of the hottest research directions in the industrial field. Social development also requires industrial robots to participate in production work more deeply and intelligently. The widespread application of robots has greatly simplified the manual operation process, not only saving labor costs and reducing labor intensity, but also more effectively ensuring product quality and production efficiency in the manufacturing process. Traditional robot grasping tasks are usually implemented by robot teaching or offline programming. However, grasping failures and type grasping errors often occur in multi-type grasping operations. This is because traditional methods often lack accurate perception of the position of the target object. In order to improve the robot's adaptability and grasping efficiency in complex and changeable grasping environments, the robot needs to use visual sensors to collect environmental visual information in real time, and after processing the information, quickly and accurately identify and locate the target object to achieve high-precision grasping operations. In addition, visual perception can also provide more comprehensive and accurate environmental perception, helping robots better adapt to various working environments. However, in some unstructured working environments, the position and state of the target object are often uncertain. At the same time, there may be a lot of noise and interference factors in the environment, which will affect the robot's perception and recognition capabilities. Therefore, it is still a challenging task to achieve robot target detection and grasping of objects. Therefore, we propose a research method for an autonomous grasping algorithm for a robotic arm based on deep reinforcement learning to solve the above problems. Summary of the invention

[0004] 1. Technical issues to be solved

[0005] In view of the shortcomings of the prior art, the present invention provides a research method for an autonomous grasping algorithm of a robotic arm based on deep reinforcement learning, which solves the problems of low grasping efficiency and weak perception and recognition capabilities of the robotic arm in an unstructured environment.

[0006] (II) Technical solution

[0007] In order to achieve the above-mentioned purpose, the present invention specifically adopts the following technical solutions:

[0008] A research method for autonomous grasping algorithm of robotic arms based on deep reinforcement learning, including 6 aspects.

[0009] Step 1: Use a convolutional neural network to detect the object to be grasped and obtain the (x, y, θ z);

[0010] Step 2: Based on the position of the target object obtained in step 1, let the rotation angle θ around the x and y axes x =θ y = 0, measure the vertical distance from the camera to the base of the robot to complete the z-axis coordinate, and according to the coordinate transformation relationship, obtain the (x, y, z, θ x ,θ y ,θ z ) Posture information;

[0011] Step 3: Construct a reinforcement learning structure, use the entire scene as the environment information for reinforcement learning, and use the robot arm as the agent in reinforcement learning. It uses the image information state in the environment to make random grasping actions to obtain the corresponding reward value.

[0012] Step 4: Design a plastic reward function and a sparse reward function that combine the relationship between the robot arm, the object to be grasped, and the surrounding obstacles. By training the network in simulation, the robot arm can complete path planning, grasping and other functions, thereby accelerating the network convergence speed.

[0013] Step 5: Design a new three-experience pool mechanism that combines reinforcement learning and imitation learning. The original DDPG algorithm randomly explores in the early stage of training, resulting in low data utilization. The improved experience pool can classify and extract data in the early and late stages of training, thereby improving data utilization and rapid convergence.

[0014] Step 6: Deploy the trained model to a real robotic arm to enable it to have better grasping capabilities in complex unstructured environments.

[0015] Furthermore, in step 1, the Yolov8 network is used to detect the object to be grasped, and the (x, y, θ z )information.

[0016] Furthermore, in step 2, the RGB-D camera is used to determine the coordinates (x, y, z, θ) of the target object based on the robot base coordinate system. x ,θ y ,θ z ) pose information.

[0017] Furthermore, in step 3, the reinforcement learning task is usually modeled using a Markov decision process (MDP). An MDP can be composed of a five-tuple<S,A,P,R,γ> Indicates that S is the state space, A is the agent action space, and the state transfer function P represents the action a taken by the agent. t , the state is S t Transfer to S t+1 The probability of, R is the reward function space.

[0018] Furthermore, in step 4, the sparse reward function design in the original DDPG algorithm often gives rewards at the final stage of the task, but there is no reward signal at other times. This may cause the agent to be in a long period of no feedback during the learning process, and requires a lot of exploration to find an effective policy. The appropriate addition of a plastic reward function can improve the problem of the sparse reward function, improve learning efficiency and enhance exploration capabilities, and can strengthen certain specific behaviors.

[0019] Furthermore, in step 5, the original DDPG algorithm uses a separate experience pool to store the experience obtained by the interaction between the agent and the environment, which makes the sample distribution uneven and the storage efficiency low. Compared with the original DDPG algorithm in reinforcement learning, the present invention introduces imitation learning and redesigns the experience pool part. Such a design can classify, store and extract the data generated at each stage of the interaction, thereby improving data utilization efficiency and convergence speed.

[0020] The present invention uses a six-degree-of-freedom robotic arm to verify the actual performance improvement effect.

[0021] (III) Beneficial effects

[0022] Compared with the prior art, the present invention provides a research method for a robot arm autonomous grasping algorithm based on deep reinforcement learning, which has the following beneficial effects:

[0023] The present invention, by redesigning three experience pools combining imitation learning and reinforcement learning, can classify the data generated in different stages of training and store them in different experience pools, thereby improving data utilization and accelerating the training convergence speed.

[0024] The present invention, by redesigning the reward function, can guide the robot arm to better approach the target and complete path planning and grasping. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a schematic diagram of the structure of the present invention;

[0026] Figure 2 A schematic diagram of the structure of obtaining color and depth images by the camera of the present invention;

[0027] Figure 3 A schematic diagram of a reinforcement learning network structure is constructed for the present invention;

[0028] Figure 4 This is a schematic diagram of the improved structure of DDPG of the present invention;

[0029] Figure 5 This is a schematic diagram of the structure of the experience pool of the present invention;

[0030] Figure 6 This is a schematic diagram of the structure of the six-freedom robotic arm of the present invention; DETAILED DESCRIPTION

[0031] 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.

[0032] Example

[0033] like Figure 1 As shown, a method for studying a robot arm autonomous grasping algorithm based on deep reinforcement learning is proposed in one embodiment of the present invention, comprising the following steps:

[0034] Step 1: Use Yolo v8 to detect the object to be grasped and obtain the (x, y, θ z )information.

[0035] Step 2: Based on the position of the target object obtained in step 1, let the rotation angle θ around the x and y axes x =θ y = 0, measure the vertical distance from the camera to the base of the robot to complete the z-axis coordinate, and according to the coordinate transformation relationship, obtain the (x, y, z, θ x ,θ y ,θ z ) Posture information; using Figure 2Obtain color and depth image information from RGB-D images as state information input in reinforcement learning. Collect images through RGB depth cameras, and obtain the object's grasping posture (x, y, θ) through target detection and posture extraction algorithms. Use the object to be grasped in the detection results as foreground information, and the workbench information as background information. Segment the background area and extract the position of the foreground object to be grasped. Binarize the image, extract the contour through the Opencv interface function, calculate the minimum bounding rectangle of the object, and the rotation angle of the object to be grasped is the rotation angle of the minimum bounding rectangle. The center coordinates of the rectangular frame are the coordinates of the object to be grasped.

[0036] Step 3: Construct a reinforcement learning structure, such as Figure 3 As shown in the figure, the entire scene is used as the environmental information for reinforcement learning, and the robotic arm is used as the intelligent agent (Agent) in reinforcement learning. It uses the image information state (State) in the environment (Env) to make random grasping actions (Action) to obtain the corresponding reward value (Reward).

[0037] Step 4: Design a plastic reward function and a sparse reward function that combine the relationship between the robot arm, the object to be grasped, and the surrounding obstacles. By training the network in simulation, the robot arm can complete path planning, grasping and other functions, thereby accelerating the network convergence speed.

[0038] In the Pybullet simulation environment, we continuously try and explore to form autonomous grasping decisions, and judge the quality of the model by the loss function, reward function value and convergence speed. P arm is the position of the end effector of the robot arm in three-dimensional space, P target is the position of the target point in the base coordinate system, ||P arm -P target || is the Euclidean distance from the end effector to the target point, and the other d = ||P arm -P obs || is the distance from the robot to the obstacle. Such a reward function design can not only guide the robot to move towards the object to be grasped, but also realize the obstacle avoidance function after training. R2 is designed as a sparse reward function, and the object is judged whether it is grasped successfully according to the coordinate transformation of the object to be grasped in three-dimensional space. When the grasping is successful, a round is considered to be over and a positive reward is given. When the grasping fails, a negative reward is given.

[0039] In summary, the reward function of the present invention consists of three parts: R=R1+R2.

[0040] Step 5: Design a Figure 4As shown in the figure, the new three-experience pool mechanism that combines reinforcement learning and imitation learning. The original DDPG algorithm randomly explores in the early stage of training, resulting in low data utilization. The improved experience pool can classify and extract data in the early and late stages of training, improve data utilization, and improve generalization.

[0041] In the original model, sampling is performed in a completely random manner, and the collected experience samples are highly random. Although this method can fully exert the agent's exploration ability, it directly leads to insufficient sample quality and inability to collect very effective samples, resulting in low data sampling efficiency, and it is difficult for the agent to learn good results from limited samples. In this case, if you want to get a good training effect, you need a huge number of samples, which wastes a lot of computing power and time costs. The present invention introduces high-quality and efficient expert experience to help the intelligent agent learn the correct strategy faster and improve the stability of learning. By adding classifiers such as Figure 5 As shown, the data generated in each period are classified and stored in different experience pools and extracted in a certain proportion to improve the convergence speed and generalization while avoiding falling into the local optimal solution.

[0042] Step 6: Deploy the trained model to a real robot arm, so that it has better grasping and path planning capabilities in complex unstructured environments. It has six degrees of freedom and a total of six rotational joints. The three joints at the end control the grasping posture, and the three rigid links near the base control the position of the end of the robot arm. The end can be equipped with a gripper. The improved DH parameter method is used to construct the link coordinate system of the robot arm as shown in the figure. Figure 6 shown.

[0043] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A research method for an autonomous grasping algorithm of a robotic arm based on deep reinforcement learning, characterized in that: To enable it to have autonomous learning ability, the method includes the following steps: Step 1: Use a convolutional neural network to detect the object to be grasped and obtain the (x, y, θ z ); Step 2: Based on the position of the target object obtained in step 1, let the rotation angle θ around the x and y axes x =θ y = 0, measure the vertical distance from the camera to the base of the robot to complete the z-axis coordinate, and according to the coordinate transformation relationship, obtain the (x, y, z, θ x ,θ y ,θ z ) Posture information; Step 3: Construct a reinforcement learning structure, use the entire scene as the environment information for reinforcement learning, and use the robot arm as the agent in reinforcement learning. It uses the image information state in the environment to make random grasping actions to obtain the corresponding reward value. Step 4: Design a plastic reward function and a sparse reward function that combine the relationship between the robot arm, the object to be grasped, and the surrounding obstacles. By training the network in simulation, the robot arm can complete path planning, grasping and other functions, thereby accelerating the network convergence speed. Step 5: Design a new three-experience pool mechanism that combines reinforcement learning and imitation learning. The original DDPG algorithm randomly explores in the early stage of training, resulting in low data utilization. The improved experience pool can classify and extract data in the early and late stages of training, improving data utilization and generalization. Step 6: Deploy the trained model to a real robotic arm to enable it to have better grasping capabilities in complex unstructured environments.

2. The method for studying a robot arm autonomous grasping algorithm based on deep reinforcement learning according to claim 1, characterized in that: The step 1 determines the coordinate information of the object to be grasped in the three-dimensional space through the color image and depth image obtained by the RGB-D camera.

3. The method for studying a robot arm autonomous grasping algorithm based on deep reinforcement learning according to claim 1 is characterized in that: In step 2, a Realsense D435i camera is used to obtain an RGB image and the spatial coordinate relationship between the object to be grasped and the robotic arm is obtained through hand-eye calibration and intrinsic calibration.

4. The method for studying a robot arm autonomous grasping algorithm based on deep reinforcement learning according to claim 1, characterized in that: The step 3 uses reinforcement learning to train it to increase its autonomous grasping ability.

5. The method for studying a robot arm autonomous grasping algorithm based on deep reinforcement learning according to claim 1, characterized in that: In step 4, R1 is designed as a plastic reward function and R2 is designed as a sparse reward function. Whether the object is successfully grasped is determined based on the coordinate transformation of the object to be grasped in three-dimensional space. The final reward function consists of two parts: R=R1+R2.

6. The method for studying a robot arm autonomous grasping algorithm based on deep reinforcement learning according to claim 1, characterized in that: Compared with the problems of low data utilization and slow convergence speed caused by the single random sampling experience pool design in the original algorithm, step 5 introduces a multi-experience pool design as an improvement, which is divided into a teaching experience replay pool, a random sampling pool and a priority experience replay pool.

Citation Information

Cited By

  • Learning method and system for robot to grab few samples in unstructured environment

    CN120269572A

  • Reinforcement learning method of mechanical arm, electronic equipment, storage medium and program product

    CN121562719A