Grasping method and device based on dual-arm robot and dual-arm robot
The grasping and vacuum adsorption poses are determined in the dual-arm robot through the instance segmentation model, which solves the problems of low grasping efficiency and difficulty in data collection in complex scenes in the existing technology, and achieves efficient and robust object grasping, which is suitable for Available in various gripper models.
Patent Information
- Application Number
- CN202110594376.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-05-28
AI Technical Summary
Existing robot grasping technology has low efficiency and robustness in complex and messy object scenes, training data is difficult to obtain, and different gripper structures require retraining the model.
Using a dual-arm robot grasping method based on the instance segmentation model, the instance segmentation model is input through the target scene depth map, the grasping target mask and the vacuum adsorption target mask are obtained, and the grasping and vacuum adsorption poses are determined. It is suitable for different models of robots. Grippers simplify the training process.
It improves the grasping stability and efficiency of the robot in complex scenes, reduces the tediousness of training data collection, enhances the generalization ability of the model, and is suitable for a variety of gripper models.
Smart Images

Figure CN113538576B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of robot grasping, and in particular to a grasping method and device based on a dual-arm robot and the dual-arm robot. Background Art
[0002] Robotic grasping is a basic and important operation of robots, and is widely used in many fields such as sorting and assembly of industrial parts and service robots. Although robot dexterous grasping has great application potential in e-commerce logistics, manufacturing, home services and other fields, the objects in these scenes are generally messy or stacked, and the geometric structure of the objects is relatively complex.
[0003] At present, traditional methods mostly use machine learning models (such as CNN, LSTM, etc.) to segment multi-view RGB-D images, and align them with the three-dimensional model of the target object, finally obtaining the 6D pose of the target object, and then grasping the target object. Although the above method solves the problem of robot dexterity grasping to a certain extent, the training data of this method is difficult to obtain. On the one hand, it requires manual setting of a large number of scenes, which is very cumbersome; on the other hand, different two-finger grippers have different three-dimensional structures, and changing the two-finger gripper requires retraining. Summary of the invention
[0004] The present invention provides a grasping method and device based on a dual-arm robot and a dual-arm robot, which are used to solve the defects of low efficiency and low robustness in grasping objects in the prior art.
[0005] The present invention provides a grasping method based on a dual-arm robot, comprising:
[0006] Inputting the target scene depth map into the instance segmentation model to obtain a grasping target mask and a vacuum adsorption target mask output by the instance segmentation model; the target scene includes at least one object to be grasped;
[0007] Determining a grasping target posture based on the grasping target mask, and determining a vacuum adsorption target posture based on the vacuum adsorption target mask;
[0008] The grasping target posture and the vacuum adsorption target posture are sent to an actuator of a dual-arm robot so that the actuator grasps the object in the target scene depth map; the actuator comprises a grasping mechanical arm and a vacuum adsorption mechanical arm;
[0009] The instance segmentation model is trained based on a sample scene depth map, a captured sample mask of the sample scene depth map, a vacuum adsorption sample mask of the sample scene depth map, a score of the captured sample mask, and a score of the vacuum adsorption sample mask; and the sample scene includes at least one sample object to be captured.
[0010] According to a grasping method based on a dual-arm robot provided by the present invention, the grasping target posture is determined based on the grasping target mask, and the vacuum adsorption target posture is determined based on the vacuum adsorption target mask, including:
[0011] Acquire multiple candidate grasping postures from the first object corresponding to the grasping target mask, and determine the grasping posture scores corresponding to the candidate grasping postures based on the grasping orientation information of the first object, and use the candidate grasping posture corresponding to the maximum grasping posture score as the grasping target posture;
[0012] A plurality of candidate vacuum adsorption postures are obtained from the second object corresponding to the vacuum adsorption target mask, and based on the adsorption orientation information of the second object, a vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture is determined, and the candidate vacuum adsorption posture corresponding to the maximum vacuum adsorption posture score is used as the vacuum adsorption target posture.
[0013] According to a grasping method based on a dual-arm robot provided by the present invention, the grasping orientation information of the first object includes a straight-line distance from the center of the first object to the grasping direction, and an angle between the grasping direction of the first object and the gravity direction of the first object;
[0014] The step of acquiring a plurality of candidate grasping postures from the first object corresponding to the grasping target mask, and determining a grasping posture score corresponding to each candidate grasping posture based on the grasping orientation information of the first object, includes:
[0015] Acquire multiple initial grasping postures from the first object corresponding to the grasping target mask based on a grid method, and determine a gripper point cloud corresponding to each initial grasping posture based on each initial grasping posture;
[0016] If the gripper point cloud does not collide with the point cloud in the target scene depth map and there is at least one point cloud in the closed area of the gripper point cloud, the initial grasping posture corresponding to the gripper point cloud is used as the candidate grasping posture;
[0017] The straight-line distance from the center of the first object to the grasping direction, and the angle between the grasping direction of the first object and the gravity direction of the first object are input into the grasping posture scoring model to determine the grasping posture score corresponding to each candidate grasping posture; the grasping posture scoring model is:
[0018] S g =1-(d g +θ g );
[0019] Among them, S g represents the grasping posture score corresponding to each candidate grasping posture, d g represents the straight-line distance from the center of the first object to the grasping direction, θ g Represents the angle between the grasping direction of the first object and the gravity direction of the first object.
[0020] According to a grasping method based on a dual-arm robot provided by the present invention, the adsorption orientation information of the second object includes the angle between the adsorption direction of the second object and the gravity direction of the second object, the distance between the adsorption point of the second object and the center of the second object, and the minimum distance between the adsorption point of the second object and the non-adsorbable point of the second object; the non-adsorbable point of the second object refers to a point on the second object whose curvature is greater than a preset value;
[0021] The step of acquiring a plurality of candidate vacuum adsorption postures from the second object corresponding to the vacuum adsorption target mask, and determining a vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture based on the adsorption position information of the second object, includes:
[0022] Determine the curvature of each point on the second object corresponding to the vacuum adsorption target mask, and take the posture corresponding to the point whose curvature is less than or equal to a preset value as a candidate vacuum adsorption posture;
[0023] The angle between the adsorption direction of the second object and the gravity direction of the second object, the distance between the adsorption point of the second object and the center of the second object, and the minimum distance between the adsorption point of the second object and the non-adsorbable point of the second object are input into the vacuum adsorption posture scoring model to determine the vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture; the vacuum adsorption posture scoring model is:
[0024]
[0025] Among them, S s represents the vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture, S a represents the angle between the adsorption direction of the second object and the gravity direction of the second object, S d represents the distance between the adsorption point of the second object and the center of the second object, S b Indicates the minimum distance between the adsorption point of the second object and the non-adsorbable point of the second object.
[0026] According to a grasping method based on a dual-arm robot provided by the present invention, the grasping sample mask and the score of the grasping sample mask are determined based on the following steps:
[0027] Acquire multiple candidate sample grasping postures from each sample object, and determine the grasping sample posture score corresponding to each candidate sample grasping posture based on the grasping orientation information of each sample object, and use the candidate sample grasping posture corresponding to the maximum grasping sample posture score as the grasping sample target posture of each sample object;
[0028] Based on the grasped sample target pose of each sample object, a grasping score of each sample object is determined, and the maximum grasping score is used as the score of the grasped sample mask, and the grasped sample mask is determined based on the grasped sample target pose corresponding to the maximum grasping score.
[0029] According to a grasping method based on a dual-arm robot provided by the present invention, the vacuum adsorption sample mask and the score of the vacuum adsorption sample mask are determined based on the following steps:
[0030] Acquire multiple candidate sample vacuum adsorption postures from each sample object, and determine the vacuum adsorption sample posture score corresponding to each candidate sample vacuum adsorption posture based on the adsorption orientation information of each sample object, and use the candidate sample vacuum adsorption posture corresponding to the maximum vacuum adsorption sample posture score as the vacuum adsorption sample target posture of each sample object;
[0031] Based on the vacuum adsorption sample target posture of each sample object, the vacuum adsorption score of each sample object is determined, and the maximum vacuum adsorption score is used as the score of the vacuum adsorption sample mask, and the vacuum adsorption sample mask is determined based on the vacuum adsorption sample target posture corresponding to the maximum vacuum adsorption score.
[0032] The present invention also provides a grasping device based on a dual-arm robot, comprising:
[0033] A target mask determination unit, used for inputting a target scene depth map into an instance segmentation model to obtain a grasping target mask and a vacuum adsorption target mask output by the instance segmentation model; the target scene includes at least one object to be grasped;
[0034] A target posture determination unit, configured to determine a grasping target posture based on the grasping target mask, and to determine a vacuum adsorption target posture based on the vacuum adsorption target mask;
[0035] An object grasping unit, used for sending the grasping target posture and the vacuum adsorption target posture to the actuator of the dual-arm robot, so that the actuator grasps the object in the target scene depth map; the actuator includes a grasping mechanical arm and a vacuum adsorption mechanical arm;
[0036] The instance segmentation model is trained based on a sample scene depth map, a captured sample mask of the sample scene depth map, a vacuum adsorption sample mask of the sample scene depth map, a score of the captured sample mask, and a score of the vacuum adsorption sample mask; and the sample scene includes at least one sample object to be captured.
[0037] The present invention also provides a dual-arm robot, comprising: the grasping device based on the dual-arm robot as described above.
[0038] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of any of the above-mentioned dual-arm robot-based grasping methods are implemented.
[0039] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned grasping methods based on a dual-arm robot are implemented.
[0040] The grasping method, device and dual-arm robot based on the dual-arm robot provided by the present invention can quickly and accurately obtain the grasping target mask and the vacuum adsorption target mask based on the instance segmentation model. At the same time, since it is not necessary to collect the structure of the grasping mechanical arm clamp for training when training the instance segmentation model, the instance segmentation model can be applied to different types of grasping mechanical arm clamps, and the generalization ability of the model is relatively strong. After determining the grasping target mask and the vacuum adsorption target mask, the grasping target posture and the vacuum adsorption target posture can be accurately obtained, so that the actuator of the dual-arm robot can accurately grasp the object in the target scene depth map, and the robustness is relatively strong. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 It is a schematic diagram of the process of the grasping method based on the dual-arm robot provided by the present invention;
[0043] Figure 2 It is a schematic diagram of a process for determining a grasping target and a vacuum adsorption target based on an instance segmentation model provided by the present invention;
[0044] Figure 3It is a structural schematic diagram of a grasping device based on a dual-arm robot provided by the present invention;
[0045] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings 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.
[0047] Robotic dexterous grasping has great application potential in e-commerce logistics, manufacturing, home services and other fields, but the objects in these scenes are generally messy or stacked, and the geometric structure of the objects is relatively complex. Therefore, how to improve the stability and efficiency of robot dexterous grasping of complex objects in stacking scenes is a very worthy research problem.
[0048] At present, dexterous grasping by robots has been applied on a small scale in the manufacturing and logistics fields. Although corresponding dexterous grasping algorithms have been proposed for different scenarios and objects, there are still many problems that need to be solved in practical applications, such as low grasping stability, poor grasping efficiency, small range of graspable objects, and difficulty in sample collection.
[0049] For example, currently, machine learning models such as CNN are often used to segment multi-view RGB-D images and align them with the 3D model of the target object, finally obtaining the 6D pose of the target object, and then grasping the target object. Although the above method solves the problem of robot dexterity grasping to a certain extent, it is difficult to obtain data for training the model. On the one hand, a large number of scenes need to be set manually, which is very cumbersome; on the other hand, different two-finger grippers have different 3D structures, and changing the two-finger gripper requires retraining.
[0050] To this end, the present invention provides a grasping method based on a dual-arm robot. Figure 1 is a schematic diagram of the process of the grasping method based on the dual-arm robot provided by the present invention, such as Figure 1 As shown, the method comprises the following steps:
[0051] Step 110: input the target scene depth map into the instance segmentation model to obtain a grasping target mask and a vacuum adsorption target mask output by the instance segmentation model; the target scene includes at least one object to be grasped;
[0052] Among them, the instance segmentation model is trained based on the sample scene depth map, the captured sample mask of the sample scene depth map, the vacuum adsorption sample mask of the sample scene depth map, the score of the captured sample mask and the score of the vacuum adsorption sample mask; the sample scene includes at least one sample object to be captured.
[0053] Specifically, the target scene contains at least one object to be grasped, and the target scene depth map contains point cloud information of the target scene and point cloud information of the object to be grasped in the target scene. If the target scene contains only one object to be grasped, that is, there are no other objects in the target scene, the dual-arm robot will not collide with other objects in the scene when grasping the object. Therefore, in this case, the target scene depth map is input into the instance segmentation model, and the obtained grasping target mask and vacuum adsorption target mask both correspond to the object, that is, the object can be regarded as the best grasping target at this time.
[0054] When the target scene contains multiple objects to be grasped, since the multiple objects to be grasped in the target scene may be randomly stacked, if the dual-arm robot randomly grasps or vacuum absorbs an object, it may collide with other objects. Therefore, it is necessary to determine the best grasping object and the best vacuum absorption object from the multiple objects to be grasped, that is, the point cloud information corresponding to the best grasping object is the grasping target mask, and the point cloud information corresponding to the best vacuum absorption object is the vacuum absorption target mask. Among them, the grasping target mask and the vacuum absorption target mask can correspond to the same object or different objects.
[0055] In addition, before the target scene depth map is input into the instance segmentation model, the instance segmentation model can be trained in advance based on the training samples (sample scene depth map, captured sample mask of the sample scene depth map, vacuum adsorption sample mask of the sample scene depth map, score of the captured sample mask and score of the vacuum adsorption sample mask), and the training process is as follows:
[0056] First, the simulation engine generates a simulated image of the sample scene (i.e., the sample scene depth map) and annotation information. Then, the annotation information is used to select the most suitable objects for grasping and vacuum suction in the simulated image as samples for training the instance segmentation model. Finally, the deep learning technology is used to train the initial model with a large number of samples to obtain the instance segmentation model, which achieves the robustness and generalization ability of dexterously using the two-finger gripper and vacuum suction cup to grasp objects in cluttered stacking scenes.
[0057] After selecting the objects that are most suitable for grasping and vacuum adsorption, the grasping sample mask and the score of the grasping sample mask corresponding to the object that is most suitable for grasping, and the vacuum adsorption sample mask and the score of the vacuum adsorption sample mask corresponding to the object that is most suitable for vacuum adsorption are determined. The acquisition process of the above samples is as follows:
[0058] (a) Grasping sample pose
[0059] First, N sampling points are collected from each sample object to be captured in the sample scene depth map of the specified area. Then, for each sampling point p, the eigenvector of the matrix is calculated according to formula (1).
[0060]
[0061] in, represents the surface normal vector of unit length at point p, which is calculated by a common standard algorithm. r(p) Represents the radius of the reference frame intercepted with point p as the center. Use F(p) = [v3(p)v2(p)v1(p)] to represent the orthogonal coordinate system of point p, where v1(p) corresponds to the maximum eigenvalue of the matrix M(p), and v3(p) corresponds to the minimum eigenvalue of the matrix M(p). Vector v3(p) is a smooth estimate of the normal vector at point p, vector v2(p) represents the axis of the large principal curvature at point p, and vector v1(p) represents the axis of the small principal curvature at point p. In order to make v3(p) point to the outside of the object surface, F(p) is rotated 180 degrees. For each reference frame p∈C∩B r(p) , a grid-based method is used to search for a pose in which the gripper does not collide with the point cloud in the scene and there is at least one point cloud in the closed area of the gripper, specifically:
[0062] First, search in a two-dimensional grid G = Y × Φ, where Y and Φ represent the discreteness of the y-axis and x-axis in the coordinate system F(p) (in this embodiment, Y = 10 and Φ = 8). For each (y, Φ) ∈ G, translate and rotate the robot according to the coordinate system F(p). Then, push the robot along the negative direction of the x-axis until the base of the robot or one of the robots touches the surface of the object. Use T (x,y,Φ) ∈R 4×4 represents the homogeneous transformation matrix for translation along the x, y plane and rotation along the z axis, where x, y, Φ represent the values of transformation along the x, y, and z axes respectively. At the same time, for each (y, Φ) ∈ G, use F(h y,Φ ) represents the grasping posture in the grid y,Φ until the robot arm touches the surface of the object, as shown in formula (2):
[0063]
[0064] Among them, x * =min x∈R such that B(h x,y,Φ (p))∩C=Φ. If the number of point clouds in the closed area meets condition 1, the grasping pose is added to the set of candidate grasping poses.
[0065] Finally, the score S of each grasping posture is calculated according to formula (3): g , select the grasping posture with the highest score as the best grasping posture. g is the straight-line distance from the target center to the grasping direction, θ g is the angle between the grasping direction and gravity.
[0066] S g =1-(d g +θ g ) (3)
[0067] (b) Vacuum adsorption sample posture
[0068] First, the curvature of each point of each sample object to be grasped in the sample scene depth map is calculated, and then the points with curvature greater than the specified threshold are recorded as non-adsorbable points, and the remaining points are recorded as candidate adsorption points.
[0069] Then use formula (4) to calculate the score S of each candidate adsorption point s Among them, S a It represents the angle between the adsorption direction corresponding to the adsorption point and the gravity direction, S d Indicates the distance from the adsorption point to the center of the object, S b Indicates the minimum distance from the adsorbable point to the non-adsorbable point.
[0070]
[0071] (c) Optimal grasping of sample objects and optimal vacuum adsorption of sample objects
[0072] According to formula (5), the grasping score S of each sample object to be grasped is calculated: mg , and calculate the vacuum adsorption score S of each sample object to be grasped according to formula (6) ms :
[0073] S mg =d l +r v (5)
[0074] S ms =d r +a m (6)
[0075] Among them, d lis the distance from the center of the object to the left reference point, d r is the distance from the center of the object to the right reference point, a m is the visible area of the object, r v It is the visible ratio of the object (visible area / total area).
[0076] Then, for S mg and S ms Sort them and get the list L s and L g , select the object with the largest score from the list as the training sample, that is, from the list L s Select S mg The mask corresponding to the largest sample object is used as the captured sample mask, and the maximum S mg As the score of the captured sample mask; from the list L g Select S ms The mask corresponding to the largest sample object is used as the vacuum adsorption sample mask, and the maximum S ms Scoring as a vacuum adsorption sample mask;
[0077] After obtaining the sample scene depth map, the captured sample mask of the sample scene depth map, the vacuum adsorption sample mask of the sample scene depth map, the score of the captured sample mask, and the score of the vacuum adsorption sample mask, the sample scene depth map can be regarded as a set of the best captured target mask and the best adsorption target mask, which is used as the truth value of the initial mask branch. The score of the captured sample mask and the score of the vacuum adsorption sample mask are used as the truth value of the policy confidence branch. The center offset of the captured sample mask and the center offset of the vacuum adsorption sample mask are used as the truth value of the center offset branch.
[0078] like Figure 2 As shown in the figure, the process of the instance segmentation model obtaining the grasping target and the vacuum adsorption target is as follows:
[0079] Features are extracted through the backbone network, which takes a structured point cloud as input and outputs a 64-dimensional feature map. It is connected to three parallel convolution branches, which predict three outputs: initial segmentation mask, policy confidence, and center offset.
[0080] The initial segmentation mask divides the scene into two parts: foreground (a set of candidate grab targets) and background. The initial segmentation mask is used to perform AND operations with the center offset map to obtain the center offset map of the foreground. The center offset map is a three-channel image, and each channel represents the x, y, and z values of the vector from a point on the object to the center point of the object. In the foreground, the center offset of each pixel points to a center point. The center points of the object are clustered through a clustering algorithm, and the corresponding pixels on the corresponding image are found through the index of the clustered points, thereby obtaining the candidate segmentation mask.
[0081] The grasping strategy confidence of each pixel in the scene can be obtained through the strategy confidence branch. After obtaining the segmentation mask, the grasping strategy confidence is used to calculate the two-finger grasping score of each candidate segmentation mask according to formula (7): and vacuum adsorption score
[0082]
[0083] Among them, N k is the number of pixels in the kth Mask, and They represent the score of the captured sample mask and the score of the vacuum adsorption sample mask of the i-th pixel respectively. The Mask with the largest score of the captured sample mask and the vacuum adsorption sample mask is selected as the captured target and the vacuum adsorption target respectively.
[0084] Step 120: determine the grasping target posture based on the grasping target mask, and determine the vacuum adsorption target posture based on the vacuum adsorption target mask.
[0085] Specifically, after determining the grasping target mask, that is, determining the best grasping object from multiple objects to be grasped in the target scene, multiple points are sampled from the best grasping object as candidate grasping poses, the scores of each candidate grasping pose are judged, and the candidate grasping pose with the largest score is taken as the grasping target pose.
[0086] Similarly, after determining the vacuum adsorption target mask, that is, determining the best vacuum adsorption object from multiple objects to be vacuum adsorbed in the target scene, sampling multiple points from the best vacuum adsorption object as candidate vacuum adsorption poses, judging the scores of each candidate vacuum adsorption pose, and taking the candidate vacuum adsorption pose with the largest score as the vacuum adsorption target pose.
[0087] Step 130: Send the grasping target posture and the vacuum adsorption target posture to the actuator of the dual-arm robot so that the actuator grasps the object in the target scene depth map; the actuator includes a grasping mechanical arm and a vacuum adsorption mechanical arm.
[0088] Specifically, after determining the grasping target posture and the vacuum adsorption target posture, they are sent to the actuator of the dual-arm robot, so that the grasping robot arm can grasp the corresponding object based on the grasping target posture, and the vacuum adsorption robot arm can adsorb and grasp the corresponding object based on the vacuum adsorption target posture.
[0089] Compared with the traditional method that requires artificially setting a large number of scenes to obtain training data, the embodiment of the present invention adopts simulation, which can quickly generate a large number of sample scenes, which is simple and fast. Compared with the traditional method that requires training machine learning models according to different grippers, the embodiment of the present invention does not need to collect the structure of the gripper when training the instance segmentation model. It only needs to adjust the corresponding parameters according to different types of grippers when determining the position and posture of the grasping target. That is, the trained segmentation model can be applied to different types of grippers, and the model has a strong generalization ability.
[0090] The grasping method based on the dual-arm robot provided by the embodiment of the present invention can quickly and accurately obtain the grasping target mask and the vacuum adsorption target mask based on the instance segmentation model. At the same time, since it is not necessary to collect the structure of the grasping mechanical arm gripper for training when training the instance segmentation model, the instance segmentation model can be applied to different types of grasping mechanical arm grippers, and the generalization ability of the model is relatively strong. After determining the grasping target mask and the vacuum adsorption target mask, the grasping target posture and the vacuum adsorption target posture can be accurately obtained, so that the actuator of the dual-arm robot can accurately grasp the object in the depth map of the target scene, and the robustness is relatively strong.
[0091] Based on the above embodiment, determining the grasping target posture based on the grasping target mask, and determining the vacuum adsorption target posture based on the vacuum adsorption target mask includes:
[0092] Acquire multiple candidate grasping postures from the first object corresponding to the grasping target mask, and determine the grasping posture scores corresponding to the candidate grasping postures based on the grasping orientation information of the first object, and use the candidate grasping posture corresponding to the maximum grasping posture score as the grasping target posture;
[0093] A plurality of candidate vacuum adsorption postures are obtained from the second object corresponding to the vacuum adsorption target mask, and based on the adsorption orientation information of the second object, a vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture is determined, and the candidate vacuum adsorption posture corresponding to the maximum vacuum adsorption posture score is used as the vacuum adsorption target posture.
[0094] Specifically, the first object refers to the best grasping object in the target scene, and N sampling points are collected from the first object. Since there may be points among the N sampling points that cause the gripper to collide with the object, it is necessary to screen out candidate grasping postures based on the N sampling points. For example, the candidate grasping postures can be screened out based on the fact that the gripper does not collide with other objects in the target scene and there is at least one point cloud in the closed area of the gripper point cloud (that is, there is an object to be grasped in the closed area of the gripper point cloud). After obtaining multiple candidate grasping postures, based on the grasping orientation information of the first object (such as the straight-line distance from the center of the first object to the grasping direction, etc.), the grasping posture score corresponding to each candidate grasping posture is determined. The higher the grasping posture score, the more suitable it is for grasping with this posture. Therefore, the embodiment of the present invention uses the candidate grasping posture corresponding to the maximum grasping posture score as the grasping target posture, so that the object can be grasped with the best posture.
[0095] The second object refers to the best vacuum adsorption object in the target scene. The curvatures of the points on the second object are different. If the curvature is too large, it indicates that the corresponding points are not suitable for vacuum adsorption. Therefore, it is necessary to screen out candidate vacuum adsorption postures on the second object. For example, the postures corresponding to the points whose curvatures are less than or equal to the preset value can be used as candidate vacuum adsorption postures. After obtaining multiple candidate vacuum adsorption postures, the vacuum adsorption posture scores corresponding to each candidate vacuum adsorption posture are determined based on the adsorption orientation information of the second object (such as the angle between the adsorption direction of the second object and the gravity direction, etc.). The higher the vacuum adsorption posture score, the more suitable it is for vacuum adsorption with this posture. Therefore, the embodiment of the present invention uses the candidate vacuum adsorption posture corresponding to the maximum vacuum adsorption posture score as the vacuum adsorption target posture, so that the object can be vacuum adsorbed in the best posture.
[0096] Based on any of the above embodiments, the grasping orientation information of the first object includes a straight-line distance from the center of the first object to the grasping direction, and an angle between the grasping direction of the first object and the gravity direction of the first object;
[0097] Acquire multiple candidate grasping postures from the first object corresponding to the grasping target mask, and determine a grasping posture score corresponding to each candidate grasping posture based on the grasping orientation information of the first object, including:
[0098] Acquire multiple initial grasping postures from a first object corresponding to a grasping target mask based on a grid method, and determine a gripper point cloud corresponding to each initial grasping posture based on each initial grasping posture;
[0099] If the gripper point cloud does not collide with the point cloud in the target scene depth map and there is at least one point cloud in the closed area of the gripper point cloud, the initial grasping pose corresponding to the gripper point cloud is used as the candidate grasping pose;
[0100] The straight-line distance from the center of the first object to the grasping direction, and the angle between the grasping direction of the first object and the gravity direction of the first object are input into the grasping posture scoring model to determine the grasping posture score corresponding to each candidate grasping posture; the grasping posture scoring model is:
[0101] S g =1-(d g +θ g );
[0102] Among them, S g represents the grasping posture score corresponding to each candidate grasping posture, d g represents the straight-line distance from the center of the first object to the grasping direction, θ g Represents the angle between the grasping direction of the first object and the gravity direction of the first object.
[0103] Specifically, the embodiment of the present invention can adopt the above-mentioned method for obtaining the grasping sample posture to obtain multiple initial grasping postures of the first object, that is, determine the multiple initial grasping postures of the first object according to formula (1) and formula (2). In order to avoid the initial grasping posture causing the gripper to collide with other objects or the initial grasping posture being unable to grasp the object, the embodiment of the present invention screens each initial grasping posture, specifically, based on each initial grasping posture, determines the gripper point cloud corresponding to each initial grasping posture, if the gripper point cloud does not collide with the point cloud in the target scene depth map and there is at least one point cloud in the closed area of the gripper point cloud, then the initial grasping posture corresponding to the gripper point cloud is used as a candidate grasping posture.
[0104] After obtaining the candidate grasping postures, the straight-line distance from the center of the first object to the grasping direction, and the angle between the grasping direction of the first object and the gravity direction of the first object are input into the grasping posture scoring model to determine the grasping posture score corresponding to each candidate grasping posture. The higher the grasping posture score, the more suitable it is for grasping with this posture. Therefore, the embodiment of the present invention uses the candidate grasping posture corresponding to the maximum grasping posture score as the grasping target posture, so that the object can be grasped with the best posture.
[0105] Based on any of the above embodiments, the adsorption orientation information of the second object includes the angle between the adsorption direction of the second object and the gravity direction of the second object, the distance between the adsorption point of the second object and the center of the second object, and the minimum distance between the adsorption point of the second object and the non-adsorbable point of the second object; the non-adsorbable point of the second object refers to a point on the second object whose curvature is greater than a preset value;
[0106] Acquire multiple candidate vacuum adsorption poses from the second object corresponding to the vacuum adsorption target mask, and determine the vacuum adsorption pose score corresponding to each candidate vacuum adsorption pose based on the adsorption position information of the second object, including:
[0107] Determine the curvature of each point on the second object corresponding to the vacuum adsorption target mask, and take the pose corresponding to the point whose curvature is less than or equal to a preset value as a candidate vacuum adsorption pose;
[0108] The angle between the adsorption direction of the second object and the gravity direction of the second object, the distance between the adsorption point of the second object and the center of the second object, and the minimum distance between the adsorption point of the second object and the non-adsorbable point of the second object are input into the vacuum adsorption posture scoring model to determine the vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture; the vacuum adsorption posture scoring model is:
[0109]
[0110] Among them, S s represents the vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture, S a represents the angle between the adsorption direction of the second object and the gravity direction of the second object, S d represents the distance between the adsorption point of the second object and the center of the second object, S b Indicates the minimum distance between the adsorption point of the second object and the non-adsorbable point of the second object.
[0111] Specifically, the curvatures of various points on the second object are different. If the curvature is too large, it indicates that the corresponding point is not suitable for vacuum adsorption. Therefore, candidate vacuum adsorption postures need to be screened out on the second object. In an embodiment of the present invention, points with curvatures less than or equal to a preset value are used as adsorption points of the second object, and the postures corresponding to the points are used as candidate vacuum adsorption postures; points with curvatures greater than the preset value are used as non-adsorbable points of the second object.
[0112] After obtaining multiple candidate vacuum adsorption postures, the angle between the adsorption direction of the second object and the gravity direction of the second object, the distance between the adsorption point of the second object and the center of the second object, and the minimum distance between the adsorption point of the second object and the non-adsorbable point of the second object are input into the vacuum adsorption posture scoring model to determine the vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture. The higher the vacuum adsorption posture score, the more suitable it is for vacuum adsorption with this posture. Therefore, the embodiment of the present invention uses the candidate vacuum adsorption posture corresponding to the maximum vacuum adsorption posture score as the vacuum adsorption target posture, so that the object can be vacuum adsorbed with the best posture.
[0113] Based on any of the above embodiments, the captured sample mask and the score of the captured sample mask are determined based on the following steps:
[0114] Acquire multiple candidate sample grasping postures from each sample object, and determine the grasping sample posture score corresponding to each candidate sample grasping posture based on the grasping orientation information of each sample object, and use the candidate sample grasping posture corresponding to the maximum grasping sample posture score as the grasping sample target posture of each sample object;
[0115] Based on the grasping sample target pose of each sample object, the grasping score of each sample object is determined, and the maximum grasping score is used as the score of the grasping sample mask, and the grasping sample mask is determined based on the grasping sample target pose corresponding to the maximum grasping score.
[0116] Specifically, according to formulas (1) and (2), multiple candidate sample grasping postures can be obtained from each sample object, and the grasping sample posture score corresponding to each candidate sample grasping posture is determined based on formula (3). At the same time, the candidate sample grasping posture corresponding to the maximum grasping sample posture score is used as the grasping sample target posture of each sample object, so that the corresponding optimal grasping posture on each sample object can be screened out.
[0117] However, there may be multiple sample objects in the sample scene, and the sample objects are stacked in a disorderly manner. In order to avoid the gripper colliding with other objects during the grasping process, it is necessary to identify the best grasping object from multiple sample objects. Therefore, according to formula (5), the embodiment of the present invention can determine the grasping score S of each sample object: mg The maximum grasping score is used as the score of the grasping sample mask, and the grasping sample mask is determined based on the grasping sample target pose corresponding to the maximum grasping score.
[0118] Based on any of the above embodiments, the vacuum adsorption sample mask and the score of the vacuum adsorption sample mask are determined based on the following steps:
[0119] Acquire multiple candidate sample vacuum adsorption postures from each sample object, and determine the vacuum adsorption sample posture score corresponding to each candidate sample vacuum adsorption posture based on the adsorption orientation information of each sample object, and use the candidate sample vacuum adsorption posture corresponding to the maximum vacuum adsorption sample posture score as the vacuum adsorption sample target posture of each sample object;
[0120] Based on the vacuum adsorption sample target pose of each sample object, the vacuum adsorption score of each sample object is determined, and the maximum vacuum adsorption score is used as the score of the vacuum adsorption sample mask, and the vacuum adsorption sample mask is determined based on the vacuum adsorption sample target pose corresponding to the maximum vacuum adsorption score.
[0121] Specifically, based on the curvature of each point on each sample object, the candidate sample vacuum adsorption posture corresponding to each sample object can be determined, and the vacuum adsorption sample posture score corresponding to each candidate sample vacuum adsorption posture can be determined based on formula (4). At the same time, the candidate sample vacuum adsorption posture corresponding to the maximum vacuum adsorption sample posture score is used as the vacuum adsorption sample target posture of each sample object, so that the optimal vacuum adsorption posture corresponding to each sample object can be screened out.
[0122] However, there may be multiple sample objects in the sample scene, and the sample objects are stacked in a disorderly manner. In order to prevent the vacuum suction cup from colliding with other objects during the vacuum adsorption process, it is necessary to identify the best vacuum adsorption object from multiple sample objects. Therefore, according to formula (6), the embodiment of the present invention can determine the vacuum adsorption score S of each sample object: ms The maximum vacuum adsorption score is used as the score of the vacuum adsorption sample mask, and the vacuum adsorption sample mask is determined based on the vacuum adsorption sample target pose corresponding to the maximum vacuum adsorption score.
[0123] The grasping device based on the dual-arm robot provided by the present invention is described below. The grasping device based on the dual-arm robot described below and the grasping method based on the dual-arm robot described above can be referred to each other.
[0124] Based on any of the above embodiments, the present invention provides a grasping device based on a dual-arm robot, such as Figure 3 As shown, the device comprises:
[0125] The target mask determination unit 310 is used to input the target scene depth map into the instance segmentation model to obtain the grasping target mask and the vacuum adsorption target mask output by the instance segmentation model; the target scene includes at least one object to be grasped;
[0126] A target posture determination unit 320, configured to determine a grasping target posture based on the grasping target mask, and to determine a vacuum adsorption target posture based on the vacuum adsorption target mask;
[0127] The object grasping unit 330 is used to send the grasping target posture and the vacuum adsorption target posture to the actuator of the dual-arm robot so that the actuator grasps the object in the target scene depth map; the actuator includes a grasping mechanical arm and a vacuum adsorption mechanical arm;
[0128] The instance segmentation model is trained based on a sample scene depth map, a captured sample mask of the sample scene depth map, a vacuum adsorption sample mask of the sample scene depth map, a score of the captured sample mask, and a score of the vacuum adsorption sample mask; and the sample scene includes at least one sample object to be captured.
[0129] Based on any of the above embodiments, the target posture determination unit 320 includes:
[0130] A grasping target posture determination unit, used to obtain a plurality of candidate grasping postures from the first object corresponding to the grasping target mask, and determine a grasping posture score corresponding to each candidate grasping posture based on the grasping orientation information of the first object, and use the candidate grasping posture corresponding to the maximum grasping posture score as the grasping target posture;
[0131] The adsorption target posture determination unit is used to obtain multiple candidate vacuum adsorption postures from the second object corresponding to the vacuum adsorption target mask, and determine the vacuum adsorption posture scores corresponding to each candidate vacuum adsorption posture based on the adsorption orientation information of the second object, and use the candidate vacuum adsorption posture corresponding to the maximum vacuum adsorption posture score as the vacuum adsorption target posture.
[0132] Based on any of the above embodiments, the grasping orientation information of the first object includes a straight-line distance from the center of the first object to a grasping direction, and an angle between the grasping direction of the first object and a gravity direction of the first object;
[0133] The grasping target posture determination unit comprises:
[0134] A gripper point cloud determination unit, configured to obtain a plurality of initial gripping postures from the first object corresponding to the gripping target mask based on a grid method, and determine a gripper point cloud corresponding to each initial gripping posture based on each initial gripping posture;
[0135] a candidate grasping pose determining unit, configured to use the initial grasping pose corresponding to the gripper point cloud as the candidate grasping pose if the gripper point cloud does not collide with the point cloud in the target scene depth map and there is at least one point cloud in the closed area of the gripper point cloud;
[0136] A grasping posture score determination unit is used to input the straight-line distance from the center of the first object to the grasping direction, and the angle between the grasping direction of the first object and the gravity direction of the first object into a grasping posture score model to determine the grasping posture score corresponding to each candidate grasping posture; the grasping posture score model is:
[0137] S g =1-(d g +θ g );
[0138] Among them, S g represents the grasping posture score corresponding to each candidate grasping posture, d g represents the straight-line distance from the center of the first object to the grasping direction, θ g Represents the angle between the grasping direction of the first object and the gravity direction of the first object.
[0139] Based on any of the foregoing embodiments, the adsorption orientation information of the second object includes the angle between the adsorption direction of the second object and the gravity direction of the second object, the distance between the adsorption point of the second object and the center of the second object, and the minimum distance between the adsorption point of the second object and the non-adsorbable point of the second object; the non-adsorbable point of the second object refers to a point on the second object whose curvature is greater than a preset value;
[0140] The adsorption target posture determination unit includes:
[0141] A candidate vacuum adsorption posture determination unit, used to determine the curvature of each point on the second object corresponding to the vacuum adsorption target mask, and take the posture corresponding to the point whose curvature is less than or equal to a preset value as a candidate vacuum adsorption posture;
[0142] The vacuum adsorption posture score determination unit is used to input the angle between the adsorption direction of the second object and the gravity direction of the second object, the distance between the adsorption point of the second object and the center of the second object, and the minimum distance between the adsorption point of the second object and the non-adsorbable point of the second object into the vacuum adsorption posture score model to determine the vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture; the vacuum adsorption posture score model is:
[0143]
[0144] Among them, S S represents the vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture, S a represents the angle between the adsorption direction of the second object and the gravity direction of the second object, S d represents the distance between the adsorption point of the second object and the center of the second object, S b Indicates the minimum distance between the adsorption point of the second object and the non-adsorbable point of the second object.
[0145] Based on any of the above embodiments, it also includes:
[0146] A grasping sample target posture determination unit is used to obtain a plurality of candidate sample grasping postures from each sample object, and determine a grasping sample posture score corresponding to each candidate sample grasping posture based on the grasping orientation information of each sample object, and use the candidate sample grasping posture corresponding to the maximum grasping sample posture score as the grasping sample target posture of each sample object;
[0147] The first determination unit is used to determine the grasping score of each sample object based on the grasping sample target posture of each sample object, and use the maximum grasping score as the score of the grasping sample mask, and determine the grasping sample mask based on the grasping sample target posture corresponding to the maximum grasping score.
[0148] Based on any of the above embodiments, it also includes:
[0149] A vacuum adsorption sample target posture determination unit is used to obtain a plurality of candidate sample vacuum adsorption postures from each sample object, and determine the vacuum adsorption sample posture score corresponding to each candidate sample vacuum adsorption posture based on the adsorption orientation information of each sample object, and use the candidate sample vacuum adsorption posture corresponding to the maximum vacuum adsorption sample posture score as the vacuum adsorption sample target posture of each sample object;
[0150] The second determination unit is used to determine the vacuum adsorption score of each sample object based on the vacuum adsorption sample target posture of each sample object, and use the maximum vacuum adsorption score as the score of the vacuum adsorption sample mask, and determine the vacuum adsorption sample mask based on the vacuum adsorption sample target posture corresponding to the maximum vacuum adsorption score.
[0151] Based on any of the above embodiments, the present invention provides a dual-arm robot, comprising: a grasping device based on the dual-arm robot as described in any of the above embodiments.
[0152] Specifically, the dual-arm robot may further include a sensor module and an execution module.
[0153] Among them, the sensor module can use the PhoXi 3D scanner to perceive the 3D point cloud structure. The scanner resolution can be 1024×772, and the installation position can be 1.3m directly above the grasping area. The grasping device based on the dual-arm robot is used to receive the image collected by the sensor module, calculate the grasping target posture and vacuum adsorption target posture in the scene, and process the grasping target posture and vacuum adsorption target posture into the instructions required by the dual-arm robot operation execution module, and send them to the execution module. The execution module is used to grasp the object according to the instructions, wherein the execution module consists of a robot body, a two-finger gripper and a vacuum suction cup. The two-finger gripper is fixed to the end of one mechanical arm of the robot body, and the vacuum suction cup is fixed to the end of the other mechanical arm of the robot body.
[0154] Figure 4 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 4As shown, the electronic device may include: a processor (processor) 410, a memory (memory) 420, a communication interface (Communications Interface) 430 and a communication bus 440, wherein the processor 410, the memory 420, and the communication interface 430 communicate with each other through the communication bus 440. The processor 410 can call the logic instructions in the memory 420 to execute a grasping method based on a dual-arm robot, which method includes: inputting the target scene depth map into the instance segmentation model to obtain a grasping target mask and a vacuum adsorption target mask output by the instance segmentation model; the target scene includes at least one object to be grasped; based on the grasping target mask, determining the grasping target pose, and based on the vacuum adsorption target mask, determining the vacuum adsorption target pose; sending the grasping target pose and the vacuum adsorption target pose to the actuator of the dual-arm robot so that the actuator grasps the object in the target scene depth map; the actuator includes a grasping mechanical arm and a vacuum adsorption mechanical arm; wherein the instance segmentation model is trained based on a sample scene depth map, a grasping sample mask of the sample scene depth map, a vacuum adsorption sample mask of the sample scene depth map, a score of the grasping sample mask, and a score of the vacuum adsorption sample mask; the sample scene includes at least one sample object to be grasped.
[0155] In addition, the logic instructions in the above-mentioned memory 420 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0156] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the grasping method based on a dual-arm robot provided by the above methods, and the method includes: inputting a target scene depth map into an instance segmentation model to obtain a grasping target mask and a vacuum adsorption target mask output by the instance segmentation model; the target scene includes at least one object to be grasped; based on the grasping target mask, determining the grasping target posture, and based on the A vacuum adsorption target mask is used to determine the vacuum adsorption target posture; the grasping target posture and the vacuum adsorption target posture are sent to the actuator of the dual-arm robot so that the actuator grasps the object in the target scene depth map; the actuator includes a grasping mechanical arm and a vacuum adsorption mechanical arm; wherein the instance segmentation model is trained based on the sample scene depth map, the grasping sample mask of the sample scene depth map, the vacuum adsorption sample mask of the sample scene depth map, the score of the grasping sample mask and the score of the vacuum adsorption sample mask; the sample scene includes at least one sample object to be grasped.
[0157] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned grasping methods based on a dual-arm robot, the method comprising: inputting a target scene depth map into an instance segmentation model to obtain a grasping target mask and a vacuum adsorption target mask output by the instance segmentation model; the target scene includes at least one object to be grasped; based on the grasping target mask, determining a grasping target pose, and based on the vacuum adsorption target mask, determining a vacuum adsorption target pose; sending the grasping target pose and the vacuum adsorption target pose to an actuator of a dual-arm robot so that the actuator grasps the object in the target scene depth map; the actuator comprises a grasping mechanical arm and a vacuum adsorption mechanical arm; wherein the instance segmentation model is trained based on a sample scene depth map, a grasping sample mask of the sample scene depth map, a vacuum adsorption sample mask of the sample scene depth map, a score of the grasping sample mask, and a score of the vacuum adsorption sample mask; the sample scene includes at least one sample object to be grasped.
[0158] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0159] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0160] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A grasping method based on a dual-arm robot, characterized in that: include: Inputting the target scene depth map into the instance segmentation model to obtain a captured target mask and a vacuum adsorption target mask output by the instance segmentation model; The target scene includes at least one object to be grasped; Determining a grasping target posture based on the grasping target mask, and determining a vacuum adsorption target posture based on the vacuum adsorption target mask; The grasping target posture and the vacuum adsorption target posture are sent to an actuator of a dual-arm robot so that the actuator grasps the object in the target scene depth map; the actuator comprises a grasping mechanical arm and a vacuum adsorption mechanical arm; The instance segmentation model is trained based on a sample scene depth map, a captured sample mask of the sample scene depth map, a vacuum adsorption sample mask of the sample scene depth map, a score of the captured sample mask, and a score of the vacuum adsorption sample mask; the sample scene includes at least one sample object to be captured; The determining of the grasping target posture based on the grasping target mask, and the determining of the vacuum adsorption target posture based on the vacuum adsorption target mask, include: Acquire multiple candidate grasping postures from the first object corresponding to the grasping target mask, and determine the grasping posture scores corresponding to the candidate grasping postures based on the grasping orientation information of the first object, and use the candidate grasping posture corresponding to the maximum grasping posture score as the grasping target posture; A plurality of candidate vacuum adsorption postures are obtained from the second object corresponding to the vacuum adsorption target mask, and based on the adsorption orientation information of the second object, a vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture is determined, and the candidate vacuum adsorption posture corresponding to the maximum vacuum adsorption posture score is used as the vacuum adsorption target posture.
2. The grasping method based on a dual-arm robot according to claim 1, characterized in that: The grasping orientation information of the first object includes a straight-line distance from the center of the first object to a grasping direction, and an angle between the grasping direction of the first object and a gravity direction of the first object; The step of acquiring a plurality of candidate grasping postures from the first object corresponding to the grasping target mask, and determining a grasping posture score corresponding to each candidate grasping posture based on the grasping orientation information of the first object, includes: Acquire multiple initial grasping postures from the first object corresponding to the grasping target mask based on a grid method, and determine a gripper point cloud corresponding to each initial grasping posture based on each initial grasping posture; If the gripper point cloud does not collide with the point cloud in the target scene depth map and there is at least one point cloud in the closed area of the gripper point cloud, the initial grasping posture corresponding to the gripper point cloud is used as the candidate grasping posture; The straight-line distance from the center of the first object to the grasping direction, and the angle between the grasping direction of the first object and the gravity direction of the first object are input into the grasping posture scoring model to determine the grasping posture score corresponding to each candidate grasping posture; the grasping posture scoring model is: ; in, represents the grasping posture score corresponding to each candidate grasping posture, represents the straight-line distance from the center of the first object to the grasping direction, Represents the angle between the grasping direction of the first object and the gravity direction of the first object.
3. The grasping method based on a dual-arm robot according to claim 1, characterized in that: The adsorption orientation information of the second object includes the angle between the adsorption direction of the second object and the gravity direction of the second object, the distance between the adsorption point of the second object and the center of the second object, and the minimum distance between the adsorption point of the second object and the non-adsorbable point of the second object; the non-adsorbable point of the second object refers to a point on the second object whose curvature is greater than a preset value; The step of acquiring a plurality of candidate vacuum adsorption postures from the second object corresponding to the vacuum adsorption target mask, and determining a vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture based on the adsorption position information of the second object, includes: Determine the curvature of each point on the second object corresponding to the vacuum adsorption target mask, and take the posture corresponding to the point whose curvature is less than or equal to a preset value as a candidate vacuum adsorption posture; The angle between the adsorption direction of the second object and the gravity direction of the second object, the distance between the adsorption point of the second object and the center of the second object, and the minimum distance between the adsorption point of the second object and the non-adsorbable point of the second object are input into the vacuum adsorption posture scoring model to determine the vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture; the vacuum adsorption posture scoring model is: ; in, represents the vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture, represents the angle between the adsorption direction of the second object and the gravity direction of the second object, represents the distance between the adsorption point of the second object and the center of the second object, Indicates the minimum distance between the adsorption point of the second object and the non-adsorbable point of the second object.
4. The grasping method based on a dual-arm robot according to claim 1, characterized in that: The captured sample mask and the score of the captured sample mask are determined based on the following steps: Acquire multiple candidate sample grasping postures from each sample object, and determine the grasping sample posture score corresponding to each candidate sample grasping posture based on the grasping orientation information of each sample object, and use the candidate sample grasping posture corresponding to the maximum grasping sample posture score as the grasping sample target posture of each sample object; Based on the grasped sample target pose of each sample object, a grasping score of each sample object is determined, and the maximum grasping score is used as the score of the grasped sample mask, and the grasped sample mask is determined based on the grasped sample target pose corresponding to the maximum grasping score.
5. The grasping method based on a dual-arm robot according to claim 1, characterized in that: The vacuum adsorption sample mask and the score of the vacuum adsorption sample mask are determined based on the following steps: Acquire multiple candidate sample vacuum adsorption postures from each sample object, and determine the vacuum adsorption sample posture score corresponding to each candidate sample vacuum adsorption posture based on the adsorption orientation information of each sample object, and use the candidate sample vacuum adsorption posture corresponding to the maximum vacuum adsorption sample posture score as the vacuum adsorption sample target posture of each sample object; Based on the vacuum adsorption sample target posture of each sample object, the vacuum adsorption score of each sample object is determined, and the maximum vacuum adsorption score is used as the score of the vacuum adsorption sample mask, and the vacuum adsorption sample mask is determined based on the vacuum adsorption sample target posture corresponding to the maximum vacuum adsorption score.
6. A grasping device based on a dual-arm robot, characterized in that: include: A target mask determination unit, used for inputting a target scene depth map into an instance segmentation model to obtain a grasping target mask and a vacuum adsorption target mask output by the instance segmentation model; the target scene includes at least one object to be grasped; A target posture determination unit, configured to determine a grasping target posture based on the grasping target mask, and to determine a vacuum adsorption target posture based on the vacuum adsorption target mask; An object grasping unit, used for sending the grasping target posture and the vacuum adsorption target posture to the actuator of the dual-arm robot, so that the actuator grasps the object in the target scene depth map; the actuator includes a grasping mechanical arm and a vacuum adsorption mechanical arm; The instance segmentation model is trained based on a sample scene depth map, a captured sample mask of the sample scene depth map, a vacuum adsorption sample mask of the sample scene depth map, a score of the captured sample mask, and a score of the vacuum adsorption sample mask; the sample scene includes at least one sample object to be captured; The determining of the grasping target posture based on the grasping target mask, and the determining of the vacuum adsorption target posture based on the vacuum adsorption target mask, include: Acquire multiple candidate grasping postures from the first object corresponding to the grasping target mask, and determine the grasping posture scores corresponding to the candidate grasping postures based on the grasping orientation information of the first object, and use the candidate grasping posture corresponding to the maximum grasping posture score as the grasping target posture; A plurality of candidate vacuum adsorption postures are obtained from the second object corresponding to the vacuum adsorption target mask, and based on the adsorption orientation information of the second object, a vacuum adsorption posture score corresponding to each candidate vacuum adsorption posture is determined, and the candidate vacuum adsorption posture corresponding to the maximum vacuum adsorption posture score is used as the vacuum adsorption target posture.
7. A dual-arm robot, characterized in that: include: A grasping device based on a dual-arm robot as described in claim 6.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the grasping method based on a dual-arm robot as described in any one of claims 1 to 5 are implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the grasping method based on a dual-arm robot as claimed in any one of claims 1 to 5 are implemented.
