Robot autonomous grabbing and pushing control method based on reinforcement learning
Through deep reinforcement learning and the calculation of hybrid dispersion coefficients, combined with the neural network model, the scene change reward strategy is designed, which solves the problem of combining push and grab operations, improves the robot's grabbing efficiency and success rate, and simplifies the design process.
Patent Information
- Application Number
- CN202410696831.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-27
AI Technical Summary
In the existing technology, the push and grasp operation is used as an auxiliary operation for the robot's grasping action. How to combine it more efficiently and design a reasonable reward function is still one of the research difficulties. Moreover, the reward function design of the pushing action is insufficient, which affects the efficiency of the grasping action. .
Using a robot autonomous grasping and pushing control method based on deep reinforcement learning, by calculating the hybrid dispersion coefficient as a predictive value that affects grasping and pushing actions, a pushing reward strategy based on scene changes is designed, and a reinforcement learning algorithm and neural network model are combined to select the optimal action.
It improves the robot's cognitive ability of complex scenes, makes its actions more purposeful, improves the grasping success rate and action efficiency, simplifies the design process, and reduces the need for manual design of components.
Smart Images

Figure CN118700128A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automation and mechanical control, and in particular to a robot autonomous grasping and pushing control method based on reinforcement learning. Background Art
[0002] Robotic grasping is a robot system that can simulate human arm movements and perform various tasks. With the rapid development of artificial intelligence and machine learning technologies, robotic grasping has shown an increasingly broad application prospect in various application fields. The research on robotic grasping was initially to obtain environmental information through some perception methods, so that robots can effectively grasp, move and place objects. With the complexity of grasping work, grasping alone has gradually become ineffective. In order to make grasping work more efficient, researchers use pushing actions to assist grasping operations. The coordination of pushing and grasping actions can make robotic grasping operations more efficient, and pushing actions can create better operating space for grasping actions. In the early grasping technology, geometric drive technology was widely used by researchers because it was relatively direct and intuitive. It relies on sensors or cameras to obtain the position and shape information of objects, and then plans and controls the grasping posture based on geometric principles. Data-driven methods are relatively new, and they rely more on large-scale data sets and machine learning algorithms to learn and predict the best grasping strategies. With the development of technologies such as machine learning and deep learning, data-driven methods have gradually become one of the hot spots in research and application.
[0003] The invention patent with publication number CN116852353A, "A method for grabbing multiple target objects with a dense scene robot based on deep reinforcement learning", uses a mask function to filter out meaningful pixels and obtain the maximum Q value of the pushing action and the maximum Q value of the grabbing action at time t, and selects the action according to the maximum Q value in the current state. The invention patent with publication number CN112975977A, "An efficient robot grasping deep reinforcement learning reward training method and system", uses a depth camera to identify the target object and the end of the robot arm, and calculates the line of sight between the center of the robot end effector and the center of the target object, and returns this to the computer as a basis for judging whether the robot arm can grab the target object. Although many studies have been devoted to the push-grasp collaborative operation and have achieved corresponding results, the two actions are learned separately, and how to combine the push-grasp operation more efficiently is still one of the difficulties in the research. In addition, as the push-grasp action is an auxiliary operation of the grabbing action, how to reasonably design the reward function of the push action is also one of the important research contents. Summary of the invention
[0004] The present invention proposes a robot autonomous grasping and pushing control method based on reinforcement learning, which uses deep reinforcement learning combined with mixed dispersion coefficient to obtain an efficient push and grasp action coordination strategy. This mechanism calculates the mixed dispersion coefficient by using the distribution of objects in complex scenes, and uses this mixed dispersion coefficient as one of the factors affecting the predicted value Q of grasping and pushing actions, so that the system has a clearer understanding of the current complex scene situation; this mechanism can guide network training, so that the robot can choose actions more purposefully according to the situation on the field, making the action more efficient; at the same time, a new action reward method is designed; by judging the distribution of objects in the scene before and after pushing as the evaluation standard for pushing actions.
[0005] The technical solution adopted by the present invention is:
[0006] A robot autonomous grasping and pushing control method based on reinforcement learning comprises the following steps:
[0007] Step 1: Use V-REP software to build a simulation platform to simulate a cluttered environment, including an RGB-D camera, a UR5 robot, an RG2 mechanical claw, several objects, and a working area;
[0008] Step 2: Design the push-grasp action, end-effector movement strategy and rotation angle in complex scenarios;
[0009] Step 3: Design a neural network model based on combining mixed dispersion coefficients;
[0010] Step 4: Obtain a height map from the image acquired by the RGB-D camera and calculate the mixed dispersion coefficient M;
[0011] Step 5: Prediction of the robot’s autonomous grasping and pushing Q value based on reinforcement learning; Rotate the height map into 16 directions as two parallel grasping networks Φ g and promote the network p The input of the fully convolutional neural network composed of is combined with the mixed dispersion coefficient, and the pixel Q value of the action prediction is used as the output to filter out the grasping action Q with the maximum Q value at that moment g and push action Q p , compare the maximum Q value of two actions and select the action;
[0012] Step 6: Design action reward strategy;
[0013] Step 7: Store the experience in the experience replay pool; store (s, a, s′, r, M,) in the experience pool to facilitate the neural network to complete the parameter update of the neural network through the experience pool data; where s represents the current state, a represents the action taken in the current state, s′ is the next state after taking the action, r is the reward of the action, and M represents the current mixed dispersion coefficient;
[0014] Step 8: Update the neural network weights using the experience pool data.
[0015] Further, the step 1 specifically includes the following steps:
[0016] Step 1-1: Use the remote API function vrep.simxStart provided by the V-REP software to connect to the server of the V-REP simulation environment; at the same time, use the vrep.simxGetObjectHandle function to obtain the handle of the robot in the simulation environment in order to control the movement of the robot later;
[0017] Step 1-2: Set 0.448×0.448m in the simulation environment 2 The area is taken as the working area, and nine blocks are randomly dropped in this area to simulate the complex scene of the cluttered environment;
[0018] Steps 1-3: Add the UR5 robot and RG2 gripper to the V-REP software, and add two RGB-D cameras to obtain object information in the workspace.
[0019] Further, the step 2 specifically includes the following steps:
[0020] Step 2-1: Design the push and grab action;
[0021] If a push action is performed, the claw is first closed, then moves to the action position, and pushes 0.1m in the predicted optimal direction, and finally returns to the specified position and opens the claw;
[0022] If the grasping action is executed, the mechanical claw moves to the predicted position and rotates to the predicted angle to fall, closes the claw clamp, and releases the claw clamp after the grasping moves to the specified position;
[0023] Step 2-2: End effector movement strategy, the specific steps are:
[0024] Step 2-2-1: The position information of the end effector can be obtained through the API function vrep.simxGetObjectPosition provided by the V-REP simulation software. The target position is the action position predicted by the neural network and processed by the z coordinate to prevent collision, specifically adding the z coordinate;
[0025] By comparing these two positions, the movement direction vector is calculated, which indicates the movement path from the target position to the end effector position; the formula is as follows:
[0026] p=p 1 -p 2
[0027] In the formula, p represents the moving direction vector, p 1represents the target position, p 2 represents the position of the end effector;
[0028] Step 2-2-2: Calculate the norm of the moving direction vector, that is, the total distance of movement; in order to plan each step of movement, set 0.02 times the original direction vector size as the step size, and calculate the moving step vector; the calculation formula for the moving distance is as follows:
[0029] Dis=||p 1 -p 2 || 2
[0030] Where Dis is the distance between the two; the moving step vector Move_s is calculated as follows:
[0031]
[0032] Step 2-2-3: Estimate the number of moving steps required n_m_s; the calculation method is as follows:
[0033]
[0034] Step 2-3: Design the rotation angle of the mechanical claw. The specific steps are as follows:
[0035] Step 2-3-1: Call the V-REP software function simxGetObjectOrientation to obtain the current orientation information of the UR5 robot gripper; the orientation information provides the current direction or rotation angle of the gripper in three-dimensional space;
[0036] Step 2-3-2: Based on the difference between the desired rotation angle and the current gripper orientation, the desired rotation angle is determined by the height map rotation angle; a fixed rotation step size of 0.3 is selected, and the positive or negative step size depends on whether the gripper needs to rotate clockwise or counterclockwise to reach the target angle;
[0037] Step 2-3-3: Determine the required number of rotation steps by calculating the ratio of the difference between the desired rotation angle and the current angle to the rotation step length and rounding it down to an integer; this ensures that the gripper can accurately reach the target rotation angle with the minimum number of steps.
[0038] Further, the step 4 specifically includes the following steps:
[0039] Step 4-1: Calculate the height map; capture RGB-D image data from a fixed camera, project the data onto a three-dimensional point cloud, construct a point cloud model with spatial information, and vertically back-project in the gravity direction to construct a height map image representation with color and bottom height channels;
[0040] Step 4-2: Calculate the mixed dispersion coefficient; divide the blocks into independent blocks and dependent blocks, and calculate the distance between the center of each block and the center of other blocks by the following formula. If both are greater than a certain threshold δ, they are independent, otherwise they are dependent;
[0041] d(b i ,b j )=||b i -b j || 2 i≠j
[0042] Among them, b i ,b j represents the i-th and j-th blocks, d(b i ,b j ) represents the distance between two blocks;
[0043] Count the number of independent blocks and non-independent blocks m and n; from this, the mixed dispersion coefficient can be calculated, then
[0044]
[0045] Among them, ρ is a natural number from 0 to 9; when M is greater than 0, there must be a separate block; when M is equal to 1, all blocks are not connected to other blocks and can be grabbed at will; when M is equal to -1, there is no separate block and a pushing action is required.
[0046] Further, the step 5 specifically includes the following steps:
[0047] Step 5-1: Rotate the network input height image in 16 directions, with each rotation angle of 22.5°, to obtain 16 images of the same state in different directions; when performing pushing and grasping actions, only consider the pushing in a certain direction, obtain the predicted values of the pushing action in 16 directions, and obtain 32 dense pixel images, of which 16 are predictions of pushing in different directions and 16 are predictions of grasping in different directions;
[0048] Step 5-2: The impact of the mixed dispersion coefficient M on the predicted Q value; in the Deep Q Learning algorithm, the Q value is predicted as follows:
[0049]
[0050] Among them, α is the learning rate; γ is the discount factor; s′ and a′ are the state and action at the next moment; s represents the current state, a represents the action in the current environment, θ represents the parameter of the current neural network, r represents the reward value of the current action, and θ - are fixed neural network parameters;
[0051] The mixed dispersion coefficient M is added to the Q value prediction, and the improved Q value prediction is as follows:
[0052]
[0053] Among them, M′ is the mixing dispersion coefficient at the next moment.
[0054] Step 5-3: Action selection; the neural network outputs a prediction graph and selects the Q value Q corresponding to the best action g and Q p , compare Q g and Q p , if Q g >Q p Then select the grab action; if Q g <Q p , select the push action; the push and grab actions are performed according to step 2.
[0055] Furthermore, the action reward strategy is: reward the pushing and grasping actions; if the grasping action is performed, a reward value of 1 is given if the grasping is successful, otherwise 0 is given; by judging whether the pushing action makes the scene more conducive to grasping, a corresponding reward is given, and when the pushing action increases the mixed dispersion coefficient M'>M, a reward of 1 is given, otherwise a reward of 0 is given; M represents the mixed dispersion coefficient at the current moment, and M' represents the mixed dispersion coefficient at the next moment.
[0056] Further, the step 8 specifically includes the following steps:
[0057] Step 8-1: Use the priority based on random ranking and the approximate power-law distribution to train the experience replay with priority. The exploration strategy adopted is the ε-greedy strategy.
[0058] Step 8-2: Neural network weights are updated; future expectations are calculated as follows:
[0059]
[0060] Where γ is the discount factor; R t represents the expected future reward at time t; y t represents the target value, which is obtained by the reward value of the current action and the Q value of the best action corresponding to the next state;
[0061] Training the neural network using the Huber loss function:
[0062]
[0063] In the formula, θ i is the parameter of the neural network at iteration i, the target network parameter Keep it fixed between each update;
[0064] The neural network parameters are adjusted by stochastic gradient descent method, and the weight update is completed by the following formula:
[0065]
[0066]
[0067] in, It means that the partial derivative of the network layer is obtained by chain derivation rule. Indicates update to the nth layer; θ t+1 represents the updated neural network parameters; θ t represents the parameters of the current neural network; η is the learning rate; λ represents the weight decay factor.
[0068] The beneficial effects of the present invention are:
[0069] 1. The present invention adopts a learning method based on deep reinforcement learning, which greatly reduces the components required for manual design, thereby simplifying the design workflow and enabling the deep learning system to handle complex tasks more efficiently.
[0070] 2. The present invention proposes a mixed dispersion coefficient for describing the scene, so that the system can have a clearer understanding of the current complex scene situation; this mechanism can guide network training and enable robots to choose actions more purposefully according to the situation on the field, making the actions more efficient.
[0071] 3. The present invention designs a push reward strategy based on scene changes. By judging whether the pushing action is more conducive to grasping and giving rewards, the action efficiency is higher and the grasping success rate is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 It is a schematic diagram of the overall task flow of the invention;
[0073] Figure 2 Figure 2 is a diagram of the experimental platform used in the present invention;
[0074] Figure 3 It is the optimization control flow chart of the present invention;
[0075] Figure 4 It is an action diagram of the grabbing action of the present invention;
[0076] Figure 5 An action diagram for the driving action of the present invention. DETAILED DESCRIPTION
[0077] The present invention will be further described below in conjunction with the accompanying drawings.
[0078] like Figure 1As shown in the figure, image data is captured by a fixed RGB-D camera. These data are then projected onto a three-dimensional point cloud to construct a point cloud model with spatial information. These point clouds are vertically back-projected in the direction of gravity to form a height map image representation with color and bottom height channels. The present invention further calculates the mixed dispersion coefficient, which reflects the distribution and density of objects in the scene and provides an important reference for the robot's action decision. Subsequently, the constructed height map is rotated into 16 different directions as two parallel grasping networks Φ g and promote the network p The input of the fully convolutional neural network is composed of two networks. These two networks are responsible for predicting the grabbing and pushing actions respectively. During the network processing, the mixed dispersion coefficient is incorporated to enhance the network's understanding of the complexity of the scene. Finally, the network outputs the action prediction Q value at each pixel. The present invention selects the pushing action and grabbing action (Q g and Q p ), and combined with the current state of Q g and Q p The maximum Q value is used to select the most suitable action. The specific process is as follows:
[0079] Step 1: Design of robot push-grasp simulation platform in cluttered environment;
[0080] like Figure 2 As shown, the present invention uses V-REP software to build a simulation platform, which includes an RGB-D camera, a UR5 robot, an RG2 mechanical claw, and the design of a working area, and also includes the addition of several blocks to simulate a cluttered environment.
[0081] Step 1-1: In step 1, use Python to connect to V-REP. Use the remote API function vrep.simxStart provided by V-REP to connect to the server of the V-REP simulation environment; at the same time, use the vrep.simxGetObjectHandle function to obtain the handle of the robot in the simulation environment for subsequent control of the robot's movement.
[0082] Step 1-2: Set 0.448×0.448m in the simulation environment 2 The area is taken as the working space, and nine blocks are randomly dropped into this space to simulate the complex scene of the cluttered environment.
[0083] Steps 1-3: Add the UR5 robot and RG2 gripper in the simulation software V-REP, and add two RGB-D cameras to obtain object information in the workspace.
[0084] Step 2: Design the push-grasp action, end-effector movement strategy and rotation angle in complex scenarios. The specific steps are as follows:
[0085] Step 2-1: Design the pushing and grabbing actions. If the pushing action is performed, the mechanical claw will first close, then move to the action position, and push 0.1m in the predicted optimal direction, and finally return to the specified position and open the mechanical claw; if the grabbing action is performed, the mechanical claw will move to the predicted position and rotate to the predicted angle to fall, close the claw clamp, and release the claw clamp after the grabbing moves to the specified position.
[0086] Step 2-2: End effector movement strategy, the specific steps are:
[0087] Step 2-2-1: Get the position information of the end effector through the API function vrep.simxGetObjectPosition provided by the V-REP simulation software. The target position is the action position predicted by the neural network and processed by the z coordinate to prevent collision, specifically adding the z coordinate; by comparing the two positions, calculate the moving direction vector, which indicates the moving path from the target position to the end effector position. The formula is as follows:
[0088] p=p 1 -p 2
[0089] In the formula, p represents the moving direction vector, p 1 represents the target position, p 2 Represents the position of the end effector.
[0090] Step 2-2-2: Calculate the norm of the moving direction vector, that is, the total distance of movement; in order to plan each step of movement, set 0.02 times the original direction vector size as the step size, and calculate the moving step vector; the calculation formula for the moving distance is as follows:
[0091] Dis=||p 1 -p 2 || 2
[0092] Where Dis is the distance between the two; the moving step vector Move_s is calculated as follows:
[0093]
[0094] Step 2-2-3: Estimate the number of moving steps required n_m_s; the calculation method is as follows:
[0095]
[0096] Step 2-3: Design the rotation angle of the robot claw, including the following steps:
[0097] Step 2-3-1: Call the V-REP software function simxGetObjectOrientation to obtain the current orientation information of the UR5 robot gripper; the orientation information provides the current direction or rotation angle of the gripper in three-dimensional space;
[0098] Step 2-3-2: Based on the difference between the desired rotation angle and the current gripper orientation, the desired rotation angle is determined by the height map rotation angle; a fixed rotation step size of 0.3 is selected, and the positive or negative step size depends on whether the gripper needs to rotate clockwise or counterclockwise to reach the target angle;
[0099] Step 2-3-3: By calculating the ratio of the difference between the desired rotation angle and the current angle to the rotation step length and rounding it down to an integer, the required number of rotation steps is determined, ensuring that the gripper can accurately reach the target rotation angle with the minimum number of steps.
[0100] Step 3: Design a neural network model based on a combined mixed dispersion coefficient; the present invention uses two DenseNet-121 convolutional neural network architectures to train the push and grab actions respectively; the neural network takes the obtained height map as input and outputs the action prediction Q value under the scene; the present invention completes the collaborative task through model-free deep reinforcement learning, and the neural network accepts visual observations and outputs action predictions.
[0101] like Figure 3 , the present invention uses the mixed dispersion coefficient as an important factor of the action prediction value Q. The neural network rotates the height map into 16 directions as input, and outputs the Q value under the influence of the mixed dispersion coefficient, and executes the action after decision.
[0102] Step 4: Obtain a height map from the image acquired by the RGB-D camera and calculate the mixed dispersion coefficient M; the specific steps are:
[0103] Step 4-1: Calculate the height map, capture RGB-D images from a fixed camera, project the data onto a three-dimensional point cloud, construct a point cloud model with spatial information, and vertically back-project in the gravity direction to construct a height map image representation with color and bottom height channels.
[0104] Step 4-2: Calculate the mixed dispersion coefficient; the present invention divides the blocks into independent blocks and dependent blocks, and calculates the distance between the center of each block and the center of other blocks by the following formula. If both are greater than a certain threshold δ, we call them independent, otherwise they are dependent;
[0105] d(b i , b j )=||b i -b j ||2 i≠j
[0106] Among them, b i and b j represents the i-th and j-th blocks, d(b i ,b j ) represents the distance between two blocks;
[0107] The numbers m and n of independent blocks and non-independent blocks are counted; thus, the mixed dispersion coefficient can be calculated, and the present invention defines it as follows:
[0108]
[0109] Among them, ρ is a natural number from 0 to 9. In the definition of the present invention, when M is greater than 0, there must be a separate block. When M is equal to 1, all blocks are not connected to other blocks and can be grabbed at will. When M is equal to -1, there is no separate block and a pushing action needs to be performed.
[0110] Step 5: The robot's autonomous grasping and pushing Q value prediction based on reinforcement learning includes the following steps:
[0111] Step 5-1: Rotate the network input height image in 16 directions, with the angle of each direction differing by 22.5°, to obtain 16 images of the same state in different directions; when performing a pushing action, only consider the pushing in a certain direction, and you can get the predicted values of the pushing action in 16 directions; the design of the grasping action is similar, and you can get the predicted values of the mechanical claw at different rotation angles. In this way, 32 dense pixel images were obtained, of which 16 were predictions of pushing in different directions, and 16 were predictions of grasping in different directions.
[0112] Step 5-2: The impact of the mixed dispersion coefficient M on the predicted value Q. In the Deep Q Learning algorithm, the Q value is predicted as follows:
[0113]
[0114] Among them, α is the learning rate, γ is the discount factor, s′ and a′ are the state and action at the next moment.
[0115] The present invention adds the mixed dispersion coefficient M to the Q value prediction, and the improved Q value prediction is as follows:
[0116]
[0117] Among them, M′ is the mixing dispersion coefficient at the next moment.
[0118] Step 5-3: Action selection; the neural network outputs a prediction graph, selects the Q values Qg and Qp corresponding to the best action, compares Qg and Qp, and if Qg>Qp, selects the grasping action; if Qg<Qp, selects the pushing action; the pushing and grasping actions are executed according to step 2;
[0119] In this way, the predicted Q-values of the push and grasp actions will be related to the current state distribution, allowing the system to select push and grasp actions more effectively.
[0120] Step 6: Design action reward strategy:
[0121] Figure 4 and Figure 5 They are the action diagrams of grabbing action and pushing action respectively. Figure 4 As shown in the figure, the robot successfully grabs the object. Figure 5 The mid-push action makes the scene more grabbable.
[0122] Reward the push and grab actions in time. If the grab action is executed, a reward value of 1 is given if the grab is successful, otherwise 0 is given; give corresponding rewards by judging whether the push action makes the scene more conducive to grabbing; when the push action increases the mixed dispersion coefficient M'>M, give a reward of 1, otherwise give a reward of 0; M represents the mixed dispersion coefficient at the current moment, and M' represents the mixed dispersion coefficient at the next moment.
[0123] Step 7: Store the experience in the experience replay pool; store (s, a, s′, r, M,) in the experience pool to facilitate the neural network to complete the update of the neural network through the experience pool data. Among them, s represents the current state, a represents the action taken in the current state, s′ is the next state after taking the action, r is the reward of the action, and M represents the current mixed dispersion coefficient.
[0124] Step 8: Update the neural network weights using the experience pool data. The specific steps include:
[0125] Step 8-1: The present invention uses a priority based on random ranking and an approximate power-law distribution to train experience replay with priority, and the exploration strategy adopted is the ε-greedy strategy.
[0126] Step 8-2: Neural network weights are updated; future expectations are calculated as follows:
[0127]
[0128] Where γ is the discount factor; R t represents the expected future reward at time t; y t Represents the target value, which is obtained by the reward value of the current action and the Q value of the best action corresponding to the next state.
[0129] Training the neural network using the Huber loss function:
[0130]
[0131] In the formula, θ i is the parameter of the neural network at iteration i, the target network parameter Keep it fixed between each update; the present invention adjusts the neural network parameters by stochastic gradient descent method; and completes the weight update by the following formula:
[0132]
[0133] in, It means that the partial derivative of the network layer is obtained by chain derivation rule. Indicates update to the nth layer; θ t+1 represents the updated neural network parameters; θ t represents the parameters of the current neural network; η is the learning rate; λ represents the weight decay factor.
[0134] As shown in Table 1, the accuracy of the present invention has reached 70% in the 500th training, and the system designed by the present invention has a good completion effect.
[0135] Table 1 Training results
[0136]
[0137] As shown in Table 2, the system of the present invention is compared with the VPG system (DOI: 10.1109 / IROS.2018.8593986), and its training results are relatively good.
[0138] Table 2 Comparison of training results
[0139]
[0140] The present invention uses three indicators to further evaluate the designed system: average completion rate, average success efficiency, and average action efficiency. The average completion rate measures the ability of the strategy to complete the task by grasping at least N objects without failure in no more than 10 consecutive attempts. The average action efficiency describes the simplicity of the strategy to complete the task. The higher these three indicators are, the better.
[0141] The comparison of the three indicators of the present invention and the VPG system is shown in Table 3. The three indicators are all higher than the VPG system, which shows that the system designed by the present invention has better task completion results.
[0142] Table 3 Index comparison
[0143]
[0144] This method can optimize the learning network training process, so that the robot can make the most favorable grasping and pushing action decisions based on real-time training results. At the same time, the design of the reward function makes the action more efficient and greatly improves the success rate.
[0145] The above content is a further detailed description of the present invention in combination with specific preferred implementation modes. It cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope of the present invention.
Claims
1. A robot autonomous grasping and pushing control method based on reinforcement learning, characterized in that: The following steps are involved: Step 1: Use V-REP software to build a simulation platform to simulate a cluttered environment, including an RGB-D camera, a UR5 robot, an RG2 mechanical claw, several objects, and a working area; Step 2: Design the push-grasp action, end-effector movement strategy and rotation angle in complex scenarios; Step 3: Design a neural network model based on combining mixed dispersion coefficients; Step 4: Obtain a height map from the image acquired by the RGB-D camera and calculate the mixed dispersion coefficient M; Step 5: Prediction of robot autonomous grasping and pushing Q value based on reinforcement learning; Rotate the height map into 16 directions as two parallel grasping networks Φ g and promote the network p The input of the fully convolutional neural network composed of is combined with the mixed dispersion coefficient, and the pixel Q value of the action prediction is used as the output to filter out the grasping action Q with the maximum Q value at that moment g and push action Q p , according to Q g and Q p Select the action; Step 6: Design action reward strategy; Step 7: Store the experience into the experience replay pool; Store (s, a, s′, r, M,) in the experience pool to facilitate the neural network to complete the update of the neural network through the experience pool data; where s represents the current state, a represents the action taken in the current state, s′ is the next state after taking the action, r is the reward of the action, and M represents the current mixed dispersion coefficient; Step 8: Update the neural network weights using the experience pool data.
2. The robot autonomous grasping and pushing control method based on reinforcement learning according to claim 1 is characterized in that: The step 1 specifically comprises the following steps: Step 1-1: Use the remote API function vrep.simxStart provided by the V-REP software to connect to the server of the V-REP simulation environment; at the same time, use the vrep.simxGetObjectHandle function to obtain the handle of the robot in the simulation environment in order to control the movement of the robot later; Step 1-2: Set 0.448×0.448m in the simulation environment 2 The area is taken as the working area, and nine blocks are randomly dropped in this area to simulate the complex scene of the cluttered environment; Steps 1-3: Add the UR5 robot and RG2 gripper to the V-REP software, and add two RGB-D cameras to obtain object information in the workspace.
3. The robot autonomous grasping and pushing control method based on reinforcement learning according to claim 1 is characterized in that: The step 2 specifically includes the following steps: Step 2-1: Design the push and grab action; If a push action is performed, the claw is first closed, then moves to the action position, and pushes 0.1m in the predicted optimal direction, and finally returns to the specified position and opens the claw; If the grasping action is executed, the mechanical claw moves to the predicted position and rotates to the predicted angle to fall, closes the claw clamp, and releases the claw clamp after the grasping moves to the specified position; Step 2-2: End effector movement strategy, the specific steps are: Step 2-2-1: The position information of the end effector can be obtained through the API function vrep.simxGetObjectPosition provided by the V-REP simulation software. The target position is the action position predicted by the neural network and processed by the z coordinate to prevent collision, specifically adding the z coordinate; By comparing these two positions, the movement direction vector is calculated, which indicates the movement path from the target position to the end effector position; the formula is as follows: p=p1-p2 In the formula, p represents the moving direction vector, p1 represents the target position, and p2 represents the position of the end effector; Step 2-2-2: Calculate the norm of the moving direction vector, that is, the total distance of movement; in order to plan each step of movement, set 0.02 times the original direction vector size as the step size, and calculate the moving step vector; the calculation formula for the moving distance is as follows: Dis=||p1-p2||2 Where Dis is the distance between the two; the moving step vector Move_s is calculated as follows: Step 2-2-3: Estimate the number of moving steps required n_m_s; the calculation method is as follows: Step 2-3: Design the rotation angle of the mechanical claw. The specific steps are as follows: Step 2-3-1: Call the V-REP software function simxGetObjectOrientation to obtain the current orientation information of the UR5 robot gripper; the orientation information provides the current direction or rotation angle of the gripper in three-dimensional space; Step 2-3-2: Based on the difference between the desired rotation angle and the current gripper orientation, the desired rotation angle is determined by the height map rotation angle; a fixed rotation step size of 0.3 is selected, and the positive or negative step size depends on whether the gripper needs to rotate clockwise or counterclockwise to reach the target angle; Step 2-3-3: Determine the required number of rotation steps by calculating the ratio of the difference between the desired rotation angle and the current angle to the rotation step length and rounding it down to an integer; this ensures that the gripper can accurately reach the target rotation angle with the minimum number of steps.
4. The robot autonomous grasping and pushing control method based on reinforcement learning according to claim 1 is characterized in that: The step 4 specifically comprises the following steps: Step 4-1: Calculate the height map; capture RGB-D image data from a fixed camera, project the data onto a three-dimensional point cloud, construct a point cloud model with spatial information, and vertically back-project in the gravity direction to construct a height map image representation with color and bottom height channels; Step 4-2: Calculate the mixed dispersion coefficient; divide the blocks into independent blocks and dependent blocks, and calculate the distance between the center of each block and the center of other blocks by the following formula. If both are greater than a certain threshold δ, they are independent, otherwise they are dependent; d(b i ,b j )=||b i -b j ||2i≠j Among them, b i ,b j represents the i-th and j-th blocks, d(b i ,b j ) represents the distance between two blocks; Count the number of independent blocks and non-independent blocks m and n; from this, the mixed dispersion coefficient can be calculated, then Among them, ρ is a natural number from 0 to 9; when M is greater than 0, there must be a separate block; when M is equal to 1, all blocks are not connected to other blocks and can be grabbed at will; when M is equal to -1, there is no separate block and a pushing action is required.
5. The robot autonomous grasping and pushing control method based on reinforcement learning according to claim 1 is characterized in that: The step 5 specifically comprises the following steps: Step 5-1: Rotate the network input height image in 16 directions, with each rotation angle of 22.5°, to obtain 16 images of the same state in different directions; when performing pushing and grasping actions, only consider the pushing in a certain direction, obtain the predicted values of the pushing action in 16 directions, and obtain 32 dense pixel images, of which 16 are predictions of pushing in different directions and 16 are predictions of grasping in different directions; Step 5-2: The impact of the mixed dispersion coefficient M on the predicted Q value; in the Deep Q Learning algorithm, the Q value is predicted as follows: Among them, α is the learning rate; γ is the discount factor; s′ and a′ are the state and action at the next moment; s represents the current state, a represents the action in the current environment, θ represents the parameter of the current neural network, r represents the reward value of the current action, and θ - are fixed neural network parameters; The mixed dispersion coefficient M is added to the Q value prediction, and the improved Q value prediction is as follows: Among them, M′ is the mixing dispersion coefficient at the next moment. Step 5-3: Action selection; the neural network outputs a prediction graph and selects the Q value Q corresponding to the best action g and Q p , compare Q g and Q p , if Q g >Q p Then select the grab action; if Q g <Q p , select the push action; the push and grab actions are performed according to step 2.
6. The robot autonomous grasping and pushing control method based on reinforcement learning according to claim 1 is characterized in that: The action reward strategy is: reward the pushing and grasping actions; if the grasping action is performed, a reward value of 1 is given if the grasping is successful, otherwise 0 is given; by judging whether the pushing action makes the scene more conducive to grasping, a corresponding reward is given, and when the pushing action increases the mixed dispersion coefficient M'>M, a reward of 1 is given, otherwise a reward of 0 is given; M represents the mixed dispersion coefficient at the current moment, and M' represents the mixed dispersion coefficient at the next moment.
7. The robot autonomous grasping and pushing control method based on reinforcement learning according to claim 1, characterized in that: The step 8 specifically comprises the following steps: Step 8-1: Use the priority based on random ranking and the approximate power-law distribution to train the experience replay with priority. The exploration strategy adopted is the ε-greedy strategy. Step 8-2: Neural network weights are updated; future expectations are calculated as follows: Where γ is the discount factor; R t represents the expected future reward at time t; y t represents the target value, which is obtained by the reward value of the current action and the Q value of the best action corresponding to the next state; Training the neural network using the Huber loss function: In the formula, θ i is the parameter of the neural network at iteration i, the target network parameter Keep it fixed between each update; The neural network parameters are adjusted by stochastic gradient descent method, and the weight update is completed by the following formula: in, It means that the partial derivative of the network layer is obtained by chain derivation rule. Indicates update to the nth layer; θ t+1 represents the updated neural network parameters; θ t represents the parameters of the current neural network; η is the learning rate; λ represents the weight decay factor.
Citation Information
Cited By
Three-dimensional force decoupling method based on deep learning
CN120928692A
