Robot grabbing method, device, equipment, storage medium and product
By processing depth image data and RGB-D images, the capture pose is generated, and the accuracy of traditional 2D capture methods to capture objects in messy scenes is solved, and the robot can quickly and accurately capture in unstructured scenes is achieved. .
Patent Information
- Application Number
- CN202410708034.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional 2D grab estimation methods cannot quickly and accurately capture objects, especially unknown objects, in messy scenes, and cannot generalize to real scenes.
By acquiring multiple image data of the target object, processing depth image data is performed to generate instance segmentation data, RGB-D images are extracted for pose estimation, generating a grab pose, and crawling based on this pose. Specific steps include point cloud data processing, mean drift algorithm, feature conversion and global average pooling operations, calculating the grab pose and quality, and adjusting the grab angle to ensure a trusted area.
It realizes the rapid and accurate grasping of objects in messy scenes, generates feasible grasping poses, and improves the robot's grasping ability in unstructured scenes.
Smart Images

Figure CN118650609A
Abstract
Description
Technical Field
[0001] The present application relates to the field of robotics technology, and in particular to a robot grasping method, device, equipment, storage medium and computer program product. Background Art
[0002] With the development of intelligent robots, robotic grasping technology has been widely used in industrial and agricultural scenarios. For the problem of toe-to-toe grasping in unstructured scenarios, intelligent robots are required to generate the required gripper width and the position of the object to be grasped from environmental perception.
[0003] At present, traditional 2D grasping estimation adopts analytical methods, that is, calculating the object grasping configuration through geometry, kinematics and dynamics. However, due to the occlusion of various objects in real scenes, the uncertainty of object shape and posture, such methods cannot be generalized well to unknown objects in real scenes. That is, in the process of robot grasping objects, it is impossible to grasp objects quickly and accurately in cluttered scenes. Summary of the invention
[0004] The main purpose of this application is to provide a robot grasping method, device, equipment, storage medium and computer program product, aiming to solve the technical problem in the related technology that the robot cannot grasp objects quickly and accurately in cluttered scenes during the process of grasping objects through traditional 2D grasping estimation and analysis methods.
[0005] To achieve the above objectives, an embodiment of the present application provides a robot grasping method, the method comprising: Acquire a plurality of first image data of the target object; Processing the depth image data in the first image data to obtain instance segmentation data, where the instance segmentation data is obtained by merging local maximum values and local minimum values calculated and processed for each object in the depth image data; Extracting an RGB-D image corresponding to the instance segmentation data, and performing pose estimation processing on the RGB-D image using a preset grasp estimation algorithm to generate a grasp pose; Based on the grasping posture, the target object is grasped.
[0006] In a possible implementation manner of the present application, the step of processing the depth image data in the first image data to obtain instance segmentation data includes: Based on the depth image data, extracting point cloud data and center deviation data of the target object; The point cloud data and the center deviation data are calculated and processed by a mean shift algorithm to obtain instance segmentation data.
[0007] In a possible implementation manner of the present application, the instance segmentation data includes grabbing estimated points, and the step of calculating and processing the point cloud data and the center deviation data by a mean shift algorithm to obtain the instance segmentation data includes: Extracting a first position index corresponding to a local maximum value and a second position index corresponding to a local minimum value in the center deviation data; Calculating the first position index and the second position index by using a preset center prediction algorithm to obtain a first estimated point position; Merging the first estimated points to obtain a captured estimated point; The step of grasping the target object based on the grasping posture includes: The target object is grasped based on the grasping estimation point position and the grasping posture.
[0008] In a possible implementation of the present application, the step of performing pose estimation processing on the RGB-D image by using a preset grasp estimation algorithm to generate a grasp pose includes: Performing feature conversion processing on the RGB-D image to obtain multiple feature maps; Determine the average value of each feature map through a global average pooling operation; Obtaining a weighting coefficient for each of the feature maps; Based on the weighted coefficient and the average value, the grasping posture is calculated.
[0009] In a possible implementation manner of the present application, after the step of calculating the grasping posture based on the weighted coefficient and the average value, the method further includes: Quantifying the target grasping quality corresponding to the target object to obtain a binary quality map; Extracting the maximum convexity defect distance of the image contour in the binary quality map; A fitting angle is calculated based on the image contour and the maximum convexity defect distance.
[0010] In a possible implementation manner of the present application, the step of grasping the target object based on the grasping posture includes: The estimated grasping points corresponding to the target object are divided according to preset angles to obtain a reliable area, a graspable area, and an unreliable area; If the grasping angle corresponding to the grasping posture is in an unreliable area, based on the fitting angle, the grasping angle is adjusted to a reliable area, and the target object is grasped in the reliable area; If the grasping angle corresponding to the grasping posture is in the graspable area, the grasping angle is added to the preset angle to obtain a new grasping angle, and the target object is grasped at the new grasping angle.
[0011] The present application also provides a robot grasping device, the robot grasping device comprising: An acquisition module, used for acquiring a plurality of first image data of a target object; a processing module, configured to process the depth image data in the first image data to obtain instance segmentation data, wherein the instance segmentation data is obtained by merging local maximum values and local minimum values calculated and processed for each object in the depth image data; A determination module is used to extract an RGB-D image corresponding to the instance segmentation data, and perform pose estimation processing on the RGB-D image through a preset grasp estimation algorithm to generate a grasp pose; A grasping module is used to grasp the target object based on the grasping posture.
[0012] The present application also provides a robot grasping device, which is a physical node device. The robot grasping device includes: a memory, a processor, and a program of the robot grasping method stored in the memory and executable on the processor. When the program of the robot grasping method is executed by the processor, the steps of the robot grasping method as described above can be implemented.
[0013] In order to achieve the above-mentioned purpose, a storage medium is further provided, on which a robot grasping program is stored. When the robot grasping program is executed by a processor, the steps of any of the above-mentioned robot grasping methods are implemented.
[0014] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a robot grasping program, and when the robot grasping program is executed by a processor, it implements the steps of the robot grasping method described above.
[0015] The present application provides a robot grasping method, apparatus, device, storage medium and computer program product. Compared with the related art, which uses a traditional 2D grasping estimation and analysis method, and is unable to quickly and accurately grasp objects in a cluttered scene during the robot grasping the object, in the present application, multiple first image data of the target object are obtained; the depth image data in the first image data is analyzed and processed to obtain instance segmentation data; the instance segmentation data is obtained by merging the local maximum and local minimum values calculated and processed for each object in the depth image data; the RGB-D image corresponding to the instance segmentation data is extracted, and the RGB-D image is subjected to posture estimation processing through a preset grasping estimation algorithm to generate a grasping posture, and based on the grasping posture, the target object is grasped. In the present application, in the process of determining the estimated grasping point, the local maximum and local minimum values after calculation and processing of each object in the depth image data are clustered, so that the instance mask of the invisible object can be generated quickly and accurately, thereby, according to the depth information corresponding to the instance mask, a feasible grasping posture is generated, and then, based on the grasping posture, the target object is grasped, so that the robot can grasp objects quickly and accurately even in cluttered scenes. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a schematic diagram of the flow chart of the first embodiment of the robot grasping method of the present application; Figure 2 A schematic diagram of the process of instance segmentation and grasping posture of an unseen object involved in the robot grasping method of this application; Figure 3 A schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application; Figure 4 A schematic diagram of a process for adaptively generating estimated grasping points involved in the robot grasping method of the present application; Figure 5 This is a schematic diagram of the QQGNN model architecture involved in the robot grasping method of this application; Figure 6 A schematic diagram of the decoupled grasping quality network processing flow involved in the robot grasping method of this application; Figure 7 A schematic diagram of noise visualization of the target grasping quality involved in the robot grasping method of this application; Figure 8 A schematic diagram of the grasping angle optimization process involved in the robot grasping method of this application; Fig. 9 This is a schematic diagram of the visualization results of the grasping optimization involved in the robot grasping method of this application. DETAILED DESCRIPTION
[0017] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0018] The present application embodiment provides a robot grasping method. In the first embodiment of the robot grasping method of the present application, refer to Figure 1 , the method comprises the following steps: Step S10, acquiring a plurality of first image data of the target object; It should be noted that the executor of this method is an intelligent robot used to grasp objects. The control unit of the intelligent robot contains a variety of grasping algorithms. When an object to be grasped is detected, the target object is photographed to obtain the corresponding first image data, and then the first image data is processed through the model to determine the grasping posture of the robot's arm and the spatial position of the object, and the object is grasped at the grasping angle obtained by calculation.
[0019] It should be noted that the robot grasping method can be applied to a robot grasping device, the robot grasping device belongs to a robot grasping system, and the robot grasping system belongs to a robot grasping device.
[0020] It should be noted that the target object can be a toy, household appliances, or other heavy objects, etc., without specific limitation.
[0021] It should be noted that the first image data is the image data of the object detected in the current scene, which is used for subsequent input into the model for analysis and processing, and then outputting the corresponding grasping posture and grasping width. The first image data can be RGB image data, depth image data, RGB-D image data, point cloud data, etc., without specific limitation.
[0022] Step S20, processing the depth image data in the first image data to obtain instance segmentation data, wherein the instance segmentation data is obtained by merging local maximum values and local minimum values calculated and processed for each object in the depth image data; It should be noted that the process of analyzing and processing the first image data is completed by a quantized grasping quality generative neural network (QQGNN). In the overall processing process, QQGNN first uses a lightweight CNN to generate the initial grasping configuration of the unknown object from RGB and depth (RGB-D) data. In order to solve the problem of reduced grasping performance due to the lightweight design of the model, a decoupled grasping quality network is designed to generate grasping quality. In order to improve the robustness and generalization of the model, an adaptive linear filtering method is proposed to grasp the configuration. Then, a grasping posture optimization method based on ellipse fitting is proposed to obtain the final grasping configuration, which will be explained in detail below.
[0023] It should be noted that in complex scenes, there will be objects that the robot has not seen or cannot capture. Based on this, a fast clustering unseen object instance segmentation (Fast UOIS) method is also proposed in this embodiment. The initial seed point required for clustering is selected according to the position of the predicted object's central deviation used to calculate its local maximum and minimum values. This mean shift algorithm for adaptively generating seed points can quickly and accurately obtain instance masks of unseen objects. Accordingly, Fast UOIS first generates pixel-by-pixel predictions of object categories and center offsets from synthetic depth images. These predictions are then used to calculate the required initial seed points for the clustering algorithm and to find possible instance masks. Finally, the depth information corresponding to the obtained instance mask is sent to the grasping network to generate a feasible grasping posture.
[0024] It should be noted that the local maximum and local minimum are extracted from the 3D center deviation of the foreground pixel corresponding to the point cloud data, respectively, by calculating the local maximum and local minimum through the maximum pooling layer; Specifically, the method of calculating the estimated grab position through the local maximum and local minimum may be:
[0025] in represents the 3D center deviation of the foreground pixel, and Respectively represent the locations of the local maximum and minimum values of the given input. Indicates removal Location The points at the corresponding positions in .
[0026] It should be noted that the instance segmentation data contains the instance masks of each object in the image data collected by the camera. When grasping an object, it is necessary to first segment the current object, determine the point or position of each object, and then grasp the object at the corresponding grasping angle.
[0027] Step S30, extracting an RGB-D image corresponding to the instance segmentation data, and performing pose estimation processing on the RGB-D image using a preset grasp estimation algorithm to generate a grasp pose; It should be noted that when the grasping posture is generated, the target grasping quality is also generated. The target grasping quality can be a weighted linear combination of different feature maps corresponding to the target object in the local field of view, which can also be called a grasping quality map, which is used to represent the position point of the target object.
[0028] It should be noted that the grasping posture includes the grasping angle of the target object. When the model generates the target grasping quality, the grasping posture is generated synchronously.
[0029] It should be noted that after generating instance segmentation data, the estimated grasping position of the object can be determined. The estimated grasping position is the target object position estimated by the model. The position obtained after model analysis may have errors, and the target grasping quality needs to be optimized to obtain a more accurate estimated grasping position.
[0030] It should be noted that the RGB-D image can be the depth image data of the monitored isolated object. In the grasping pose generation stage, the isolated object (not in contact with other objects) obtained by instance segmentation is selected, the isolated object closest to the camera is selected, and the RGB-D image corresponding to the object is extracted, and the grasping pose is estimated using the grasping estimation method. When there is no isolated object, the RGB-D information corresponding to the instance mask closest to the camera is selected and sent to the grasping estimation method to realize pose estimation. Through this two-stage method, the complexity of the object scene can be weakened, and fast and accurate pose estimation can be achieved.
[0031] Step S40: grasping the target object based on the grasping posture.
[0032] It should be noted that after the estimated grasping point and grasping posture are determined, the target object can be grasped.
[0033] Specifically, the overall execution flow chart of this application is as follows: Figure 5 As shown in the figure, "*" is used to indicate different operation layers. CBP* represents a structure consisting of convolution, batch normalization, and parameter leakage linear units, Res* represents the original residual block, CPS* consists of convolution, PixelShuffle upsampling operation, and PReLU, C* represents a convolution with an output channel of 1, and n× represents the number of channels in this layer is CBP1 channel number multiplied by n.
[0034] In the calculation process of the model, first, the RGB-D data passes through 3 CBPs. The feature map size output by the first CBP is consistent with the original input image. The feature map sizes output by the second and third CBPs are 1 / 2 and 1 / 4 of the original input image respectively. The kernel size of each CBP is 9×9, 4×4 and 4×4 respectively. The 3 CBPs improve the feature extraction capability by doubling the number of feature maps output successively. Secondly, the depth of the model is further improved by using 2 original residual blocks to increase the number of CNN layers. Each residual block consists of two CBPs and a jump connection, and the ReLU used in it is replaced by PReLU. The kernel size in both residual blocks is 3×3, and the output feature map size is 75×75. Two CBPs with a kernel size of 3x3 are used to further expand the model depth while halving the number of channels to reduce the model's computational complexity. The output feature map size of both CBPs is 75×75. Then, two CPSs are used to double the feature map from low resolution to the original input resolution. All kernel sizes in the two CPSs are 3×3. Research based on FPN shows that fusion of feature maps from different layers performs better in the same task. In order to achieve feature fusion of different layers and avoid using additional operations to increase the computational complexity, only the output feature maps of CBP1 and PS2 are fused. Finally, the feature map of the C1 layer output size of 300×300 is fed into DGQN and C2 to C4 to generate the initial grasping configuration. The outputs of DGQN and C2 are respectively fed into AF to obtain the corresponding initial grasping quality and grasping width. The kernel size of the C1 layer is 3×3, and the kernel size of the C2 to C4 layers is 3×3. The output feature map size is 300×300.
[0035] Traditional convolution requires more storage space and computing time than depth-wise convolution, which is not conducive to the deployment of the grasping model on embedded AI devices. Since depth-wise convolution lacks effective use of information from different channels at the same spatial position, excessive use will affect the grasping performance of the model. In order to balance the grasping performance, computing efficiency and parameter quantity of the model, this application uses depth-wise convolution in all convolution layers between CBP2 and CBP5.
[0036] Specifically, the grasping configuration in the robot base coordinate system can be defined as follows: (1) in, represents a scalar quality measure. When the value of a position is larger, it means that the object at that position is more likely to be selected. Indicates the center position of the end of the gripper jaw; Indicates the rotation angle of the gripper around the z-axis; Indicates the desired jaw width.
[0037] For images , where H is the image height and W is the image width. The capture configuration can be defined as: (2) in, represents the same scalar as in equation (1); F(∙) represents the filter; express Location; Represents the grasping angle. Since the actual grasping angle is symmetrical, its value is ; To avoid directly learning the grasping angle, the angle is encoded as two components of a unit vector, namely and ; The final grip angle is determined by Calculated. Indicates the capture width, and its value is in the range of [0, 150] pixels.
[0038] In image space Convert to the robot base coordinate system It can be expressed as: (3) in, Represents the transformation from the image coordinate system to the camera coordinate system, which can be calculated by the camera intrinsic parameters and depth map; represents the transformation from the camera coordinate system to the robot actuator coordinate system, which can be calculated by the hand-eye calibration algorithm; Represents the transformation of the robot actuator to the robot base coordinate system, which can be calculated from all the robot's joint readings and link configuration parameters.
[0039] The present application provides a robot grasping method, apparatus, device, storage medium and computer program product. Compared with the related art, which uses a traditional 2D grasping estimation and analysis method, and is unable to quickly and accurately grasp objects in a cluttered scene during the robot grasping the object, in the present application, multiple first image data of the target object are obtained; the depth image data in the first image data is analyzed and processed to obtain instance segmentation data; the instance segmentation data is obtained by merging the local maximum and local minimum values calculated and processed for each object in the depth image data; the RGB-D image corresponding to the instance segmentation data is extracted, and the RGB-D image is subjected to posture estimation processing through a preset grasping estimation algorithm to generate a grasping posture, and based on the grasping posture, the target object is grasped. In the present application, in the process of determining the estimated grasping point, the local maximum and local minimum values after calculation and processing of each object in the depth image data are clustered, so that the instance mask of the invisible object can be generated quickly and accurately, thereby, according to the depth information corresponding to the instance mask, a feasible grasping posture is generated, and then, based on the grasping posture, the target object is grasped, so that the robot can grasp objects quickly and accurately even in cluttered scenes.
[0040] Further, based on the first embodiment of the present application, another embodiment of the present application is provided. In this embodiment, the step S20 of processing the depth image data in the first image data to obtain instance segmentation data includes: Step S21, extracting point cloud data and center deviation data of the target object based on the depth image data; It should be noted that the point cloud data is obtained by back-projecting the depth map captured by the camera through the camera intrinsic parameters, and the center deviation data of the target object is the 3D center deviation of each initial point in the image data. It should be noted that in order to solve the trade-off between speed and accuracy, the semantic mask and 3D center deviation of the object are first generated from the organized point cloud, and then the mean shift algorithm is used to obtain the instance mask. In order to obtain a better initial seed point, previous work used a distance-based approach to carefully select a fixed number of seed points. However, this initialization method requires a lot of calculations. In order to effectively solve this problem, this application uses an adaptive initialization seed point method. First, the positions of the local maximum and minimum values are selected according to the predicted 3D center deviation, and then used to select the corresponding initial seed points in the center voting.
[0041] Step S22, calculating and processing the point cloud data and the center deviation data by using a mean shift algorithm to obtain instance segmentation data; It should be noted that the method for calculating the instance segmentation data can be: first generate a semantic mask of the object from the point cloud data, wherein the semantic mask includes three categories: background (0), desktop (1) and object (2) (the target is also called foreground). By processing the semantic mask, the object can be converted into a binary mask, that is, the background is 0 and the foreground is 1. In this way, the corresponding foreground object data can be extracted from the center deviation data and the input point cloud data according to the above binary mask, and the two are added to obtain the 3D center voting data. Then, the 3D center voting data is calculated by the mean shift algorithm to obtain the instance segmentation data.
[0042] The instance segmentation data includes the captured estimated points, and the step S22 of calculating and processing the point cloud data and the center deviation data by the mean shift algorithm to obtain the instance segmentation data includes: Extracting a first position index corresponding to a local maximum value and a second position index corresponding to a local minimum value in the center deviation data; It should be noted that the method of extracting the local maximum and local minimum in the center deviation data can be: calculating the center deviation data through the maximum pooling layer of the model to obtain the local maximum and local minimum.
[0043] It should be noted that the first position index and the second position index may be position coordinates, which are used to indicate the position point of the object.
[0044] Calculating the first position index and the second position index by using a preset center prediction algorithm to obtain a first estimated point position; It should be noted that the first estimated position is a preliminary estimated position of the target object.
[0045] The first estimated points are merged to obtain a captured estimated point.
[0046] The step of grasping the target object based on the grasping posture includes: The target object is grasped based on the grasping estimation point position and the grasping posture.
[0047] It should be noted that after obtaining the first estimated point, the calculation results need to be merged and finally the estimated point is output. The specific calculation process is as follows: Figure 4 As shown, (a) the center deviation of the foreground; (b) the local maximum seed point position; (c) the local minimum seed point position; (d) the initial seed point position.
[0048] Specifically, the method for segmenting an unseen object instance proposed in this application is as follows: Figure 2As shown in Figure 1, CGR consists of a convolutional layer (Conv), a group normalization layer (GN), and a ReLU. ESP stands for efficient spatial pyramid. Figure 2 As shown in Figure 1, a pipeline for segmenting unseen objects and grasping pose generation is shown. The pipeline consists of two main stages. In the first stage, Fast UOIS organizes the point cloud into three channels of XYZ coordinates. As input, it outputs instance segmentation mask. It should be noted that It is computed by back-projecting the depth map given the camera intrinsics. In the second stage, the grasp generation algorithm takes the depth image, the first image data or the RGB-D image, and the segmented instance mask as input and generates feasible grasps.
[0049] In the first stage, the input point cloud This application uses a U-Net-based encoder-decoder architecture to perform instance segmentation by fusing features at different levels. Given an input point cloud and features extracted from it ,in represents the encoder-decoder network, is the weight of the network. Semantic segmentation mask 3D deviation from the center of the object They can be calculated by the following equations:
[0050]
[0051] in and Each represents a convolutional layer, and their weights are and , semantic segmentation mask It includes three categories: background, table and foreground / object.
[0052] Then, the proposed adaptive clustering algorithm is trained from the input foreground / object mask , Point Cloud and center deviation Predict pixel-by-pixel class.
[0053] To generate a pixel-by-pixel instance mask, we perform a 3D space search on the center of the predicted object. Perform mean shift clustering. For simplicity, predict the center of the object Known as the center vote The mean shift algorithm finds areas containing high-density data through a nonparametric kernel density estimation method. This application uses kernel density estimation with a Gaussian kernel, which can be expressed as:
[0054] The bandwidth , Gaussian kernel , represents the seed point, Represents the data points to be clustered, which are the center votes .
[0055] For the seed point , whose initial selection affects the performance and efficiency of the final clustering. In order to balance the performance and efficiency of clustering, this application designs an algorithm for adaptively generating initial seed points. Considering a single object, the position at which the center deviation is maximum and the Euclidean distance is minimum can be used to select the initial seed point from the predicted center. Due to the uncertainty of the number of objects in unstructured scenes, the seed points selected by the above method cannot be assigned to different objects. In order to solve this problem, this application selects the initial seed point within a local window. Given a center vote , its initial seed point can be calculated by the following equation:
[0056] in represents the 3D center deviation of the foreground pixel, and Respectively represent the locations of the local maximum and minimum values of the given input. Indicates removal Location The points at the corresponding positions in .
[0057] For a location Whether it is desirable can be determined by calculating its Whether the value in is equal to the local maximum value is judged. The process is expressed as follows:
[0058] in represents the maximum pooling operation, whose kernel size and stride are and 1. Equation (11) is used to select the local maximum position. When the result is true, it means that the position is reserved for equation (10) to calculate the initial seed point. For the selection of the local minimum position, equation (11) can be used to Perform calculations.
[0059] Figure 4 The adaptive seed point initialization method is demonstrated. First, the 3D center deviation is calculated Secondly, the maximum pooling layer is used to calculate The local maximum and minimum values of are calculated by using the above equation to calculate the seed point. The result is as follows Figure 4 Finally, the positions calculated above are combined, and the result is Figure 4 (d) Compared with the encoder-decoder architecture based on U-Net, the proposed initialization seed point algorithm can be better allocated to different positions and can adaptively set the number of initial points.
[0060] Specifically, we need to calculate the loss function. Following the U-Net-based encoder-decoder architecture, this application uses the semantic segmentation loss , center deviation loss , clustering loss and separation loss To train a model for generating semantic masks and center deviation .
[0061] Semantic segmentation loss: This application uses weighted cross entropy, which can be calculated as:
[0062] in and Represent the predicted category and the true category respectively. represents cross entropy. With label equal to The normalized sum is inversely proportional to the number of pixels.
[0063] Center shift loss: This application uses weighted smooth L1 loss (Huber loss), which can be calculated as:
[0064] in and Represent the predicted center offset and the actual center offset, respectively, and the weight The label in formula (11) is equal to is inversely proportional to the number of pixels, Represents Huber loss.
[0065] Clustering loss: This application expands Gaussian mean shift (GMS) for several iterations and performs it on the points to be clustered. GMS iteratively moves a set of 3D seed points to higher density areas. represents the point at the lth iteration of the mean shift. Initialized as the center vote of the foreground pixel This application applies the following losses to and , with corresponding object instance labels : ① in represents a weight inversely proportional to the class size, represents the Euclidean distance, , Indicates an indicator function that returns 1 or 0 based on whether the specified condition is true or false. For simplicity, Renamed to This loss function affects the kernel density estimate mode close to its points and at least Stay away from points that do not belong to the cluster and encourage points More like clustering. Set to 0.1.
[0066] The above formula ① to all points belonging to the object will lead to excessive memory usage, so a random version is used instead in the U-Net based encoder-decoder architecture. They randomly sampled the points containing A collection of indexes and settings , and run GMS only on these points. Different from the encoder-decoder architecture based on U-Net, this application generates the initial seed points by calculating the center deviation to adaptively generate the initial seed points. Similar to the encoder-decoder architecture based on U-Net, when the generated initial seed points exceed This application also randomly samples A collection of indexes. The values are set to 50 and 300 in training and testing respectively. Iterations and application In each iteration. The training and testing times are set to 5 and 10 respectively.
[0067] Separation loss: This application also uses separation loss, which encourages the center vote not necessarily at the center of the object, as long as it is far away from other object center votes. To achieve this goal, consider the following equation:
[0068] in is the jth real object center, . is a hyperparameter, which is set to 15. M ij Just the center vote The distance to the center of all objects is given by Scale and apply softmax. The separation loss is expressed using cross entropy as:
[0069] Finally, the total loss is expressed as . Hyperparameter weights , , and They are set to 3, 5, 1 and 1 respectively.
[0070] In this embodiment, the initial points required for clustering are selected based on the predicted center deviation of the target object used to calculate the positions of its local maximum and minimum values. The mean shift algorithm for adaptively generating seed points can quickly and accurately obtain instance masks of unseen objects, thereby facilitating the subsequent robot to quickly and accurately grasp the target object.
[0071] Further, based on the first embodiment and the second embodiment of the present application, another embodiment of the present application is provided. In this embodiment, the step S30 of performing pose estimation processing on the RGB-D image by using a preset grasp estimation algorithm to generate a grasp pose includes: Step S31, performing feature conversion processing on the RGB-D image to obtain multiple feature maps; It should be noted that the point cloud data is first subjected to feature conversion processing to obtain multiple feature maps, which is convenient for the calculation of subsequent models. The calculation process is executed by a decoupled grasping quality network, which can display the local field of view and the global field of view of the target object.
[0072] Step S32, determining the average value of each of the feature maps through a global average pooling operation; Step S33, obtaining a weighting coefficient of each of the feature maps; Step S34: Calculate the target grasping quality and grasping posture based on the weighted coefficient and the average value.
[0073] Specifically, the decoupled grasping quality network processing flow diagram is as follows: Figure 6 As shown, for the C5 convolutional layer in the figure, let Represents the value of the kth feature map at the spatial position (i, j). represents the weight of the kth feature map. The output of the C5 convolutional layer can be calculated as: (4) Among them, the quality of grabbing It can be regarded as a weighted linear combination of different feature maps in the local field of view.
[0074] In order to obtain more robust grasping quality, consider generating grasping quality in a multi-feature weighted manner under a global perspective. In the convolutional layer, the foreground and background show different responses under the same input, and the same foreground or background shows different responses under different inputs. For ease of analysis, visualize the feature maps of some channels, such as Figure 6 As shown at the bottom, Figure 6 At the bottom, the bright areas have positive values and the dark areas have negative values. Figure 6 The foreground of the same feature map in the bottom is similar and clearly different from the background. Therefore, the foreground can be extracted by weighted linear combination of different feature maps.
[0075] Based on the above analysis, a neural network can be used to estimate a set of feature map coefficients for solving the problem, such as Figure 6 As shown at the top. First, a depth-wise convolution (DW) C6 is used to obtain C feature maps that do not interact with each other; then, a global average pooling (GAP) operation is used to calculate each feature map The process can be roughly expressed as ,in ; Compared with equation (4), using GAP can obtain the feature expression under the global perspective, and then, using the convolution with a kernel of 1×1 and the tanh activation function to obtain the weighting coefficients of different feature maps Finally, the weighted sum is used to estimate the grasp quality , for the quality of the crawl , its calculation expression is as follows: (5) For Equation (4) and Equation (5), their estimated grasping qualities should remain consistent, i.e. and The difference at the same spatial position (x, y) should be small. and A simple weighted calculation is performed to increase the robustness of the grasping quality. The final grasping quality pass Calculated.
[0076] It should be noted that for most grasping models, a Gaussian filter (GF) is usually selected to filter the grasping function. These models usually assume that the noise of the input data follows a Gaussian distribution. Their experimental results show that a Gaussian filter with a fixed kernel can remove the maximum grasp value close to the low-quality area, which can make the model have a more robust grasp. However, there are two problems with choosing a fixed Gaussian filter to filter the grasping quality. First, does the output of the noise data after passing through the convolutional neural network still follow a Gaussian distribution? Second, assuming that the grasping quality noise output by the model follows a Gaussian distribution, the Gaussian noise contained in the grasps output at different times in real scenarios often has different distribution parameters. Therefore, how to design an adaptive filter for the output? Given a grasp quality graph , H and W represent height and width respectively. Inspired by image noise filtering, the captured quality map after filtering can be calculated as: (6) Where Op represents the noise estimation operator.
[0077] Going further, grab the quality noise map It can be roughly expressed as and The difference between: (7) To estimate Data distribution, statistics Figure 7 The third local noise histogram arranged from left to right, the visualization result is as follows Figure 7 As shown in the rightmost figure. Figure 7 As shown, from left to right: Quality map before filtering ; Quality map after filtering ; Grab quality noise map ; Noise histogram.
[0078] from Figure 4 From the visualization results, we can see that the noise distribution of the grasp quality graph can be roughly regarded as a Gaussian distribution. For the grasp quality generated by the model, a linear smoothing filter can be selected for filtering, such as a Gaussian filter or a mean filter.
[0079] Wherein, the step S34 of calculating the grasping posture based on the weighted coefficient and the average value, further includes: Quantifying the target grasping quality corresponding to the target object to obtain a binary quality map; Extracting the maximum convexity defect distance of the image contour in the binary quality map; A fitting angle is calculated based on the image contour and the maximum convexity defect distance.
[0080] In order to design the adaptive filter simply and efficiently, an adaptive mean filter based on ellipse fitting is proposed. Given a quality map QI, it is quantized using the following equation: (8) Where QB represents the quantized binary quality map; p=(u, v) represents any point on the quality map; T represents the quantization threshold, which can be 0.4.
[0081] Algorithm 1 describes the outline of ellipse fitting from the quantized quality map. This application currently only applies the ellipse fitting algorithm to cuboid-like and spheroid-like objects with zero-genus surface projection. For a quantized quality map QB, first find all its contours and calculate the maximum convexity defect distance of the largest contour. It should be noted that any deviation of a contour from its convex hull is called a convexity defect. Then, the ellipse fitting algorithm is used to estimate the ellipse parameters E under the conditions of a single contour and a defect distance within 10 pixels. P = {M cen , E ma , E mi , θ ma}. Among them, M cen Indicates the position of the center point of the ellipse, E ma Indicates the spindle distance, E mi represents the minor axis distance, and θ ma represents the angle between the main axis and the horizontal axis. Finally, use E P The short semi-axis distance in is used as the window size of the mean filter to realize adaptive mean filtering. When the ellipse fitting fails, the present application uses the Gaussian filter (GF) described above to filter the grasping function. The present application does not use a filter to filter the grasping angle. Intuitively, the generated grasping rectangle is greatly affected by the grasping angle. The filtered grasping angle may be near abnormal values, which is not conducive to robot grasping.
[0082] Specifically, the content of Algorithm 1 is as follows: Algorithm 1 Ellipse fitting Input: Quantized quality map: Q B 1: Function ellipse fitting (Q B ) ; 2: Initialize distance Dis = 10, ellipse parameter E P = {}; 3: From Q B Get all contours CR = {CR1, CR2, CR n}; 4: Search for the largest contour CR from CR l∈【1,n】 : Computing and CT lThe maximum convexity defect distance Dis_max between; 5: If no contour is found in CR l and Dis_max < Dis, then; 6: Fit an ellipse E from CR l ; 7: For each end point p on the major axis of E t ; 8: If p t is on CR l , then; 9: Update E → E P ; 10: End.
[0083] Among them, the step S40 of grasping the target object based on the grasping pose includes: Dividing the grasping estimated points corresponding to the target object at a preset angle to obtain a reliable area, a graspable area, and an unreliable area; It should be noted that the preset angle can be 30 degrees, 50 degrees, etc., and is not specifically limited. In this embodiment, the preset angle is 30 degrees for illustration.
[0084] If the grasping angle corresponding to the grasping pose is in the unreliable area, based on the fitting angle, adjust the grasping angle to the reliable area and grasp the target object in the reliable area; If the grasping angle corresponding to the grasping pose is in the graspable area, add the preset angle to the grasping angle to obtain a new grasping angle, and grasp the target object with the new grasping angle.
[0085] It should be noted that based on the above ellipse fitting algorithm, after the ellipse fitting is successful, the present application uses the angle of its major axis and the position of the symmetry center to optimize the grasping angle and the grasping position respectively. Considering axially symmetric objects in the real scene, they widely exist in home and industrial scenes. An object with a cuboid-like or sphere-like surface projection with 0-genus (an object with a 0-genus surface projection that is rectangle-like or circle-like), its grasping angle and the grasping center position can be regarded as the direction perpendicular to the major axis and the symmetry center of the major axis respectively.
[0086] To better describe the grasping optimization algorithm, the present application first divides the grasping area of the object at 30° intervals, as Figure 8 shown. They are respectively three areas: reliable, graspable, and unreliable. For the ellipse angle obtained by fitting with Algorithm 1 , the grasping angle calculated by formula (5) is optimized through the following two cases: 1) When estimated fall into Figure 8 The left image area, i.e. The following conditions must be met: (9) Among them, the generated It is not reliable and needs to be adjusted to obtain a reliable gripping angle. Add 90° away from the main axis of the ellipse, that is Figure 8 Dotted arrow in the left area.
[0087] 2) When estimated fall into Figure 8 The right image area, Satisfies the following equation: (10) Among them, the generated It has a certain graspability. Add 30° away from the ellipse, that is Figure 8 There is a dotted arrow in the middle right picture area.
[0088] for Fig. 9 The original grasp rectangle in the second image from left to right, which can lead to potential grasp failures in some cases. Specifically, if the grasp point is closer to the object's center of mass, then the object is less likely to fall out of the gripper. Additionally, there may be better contact between the gripper and the object if the grasp point is located at the object's center of mass rather than at an extreme location (e.g. Fig. 9 This application uses Algorithm 1 to fit Fig. 9 The grasping quality shown in the first figure is obtained Fig. 9 The ellipse in the third picture and select the symmetry center of the ellipse as the grab point.
[0089] It should be noted that the application hopes that the position of the generated grasping point is as close to the center of gravity of the object as possible. However, overfitting of the ellipse will cause the selected symmetry center to deviate from the center of gravity of the object, which is not conducive to actual grasping. To avoid this, firstly, the grasping quality QB is quantified by equation (10). Secondly, the two endpoints of the main axis of the ellipse are shrunk along the center of the main axis to the outer contour of QB, as shown in Fig. 9 The two purple endpoints on the white line segment in the third picture.
[0090] This application calculates the midpoint of the two endpoints as the grab point to optimize the rectangular frame position. Finally, the optimized grab frame result is as follows Fig. 9 shown.
[0091] Finally, the steps to calculate the loss function are as follows: This application regards the generation of the grasp configuration pipeline as a regression problem and uses the smooth L1 loss. Compared with the L1 loss and the L2 loss, the smooth L1 loss combines the advantages of both, that is, it is insensitive to outliers and can converge faster. Given the estimated grasp and real capture , the loss function is defined as follows: (11) Zk is defined as follows: (12) In this embodiment, an adaptive filter that quantifies the grasping quality is used to solve the grasping estimation failure problem that may be caused by low-quality areas and enhance the robustness of grasping. An ellipse fitting grasping configuration optimization method is proposed to correct the estimated unreasonable grasping position and angle.
[0092] Reference Figure 3 , Figure 3 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application.
[0093] like Figure 3 As shown, the robot grasping device may include: a processor 1001 , a memory 1005 , and a communication bus 1002 . The communication bus 1002 is used to realize the connection and communication between the processor 1001 and the memory 1005 .
[0094] Optionally, the robot grasping device may also include a user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, a WiFi module, etc. The user interface may include a display screen (Display), an input submodule such as a keyboard (Keyboard), and the optional user interface may also include a standard wired interface and a wireless interface. The network interface may include a standard wired interface and a wireless interface (such as a WI-FI interface).
[0095] Those skilled in the art will understand that Figure 3 The structure of the robot grasping device shown in the figure does not constitute a limitation of the robot grasping device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0096] like Figure 3 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, and a robot grasping program. The operating system is a program that manages and controls the hardware and software resources of the robot grasping device, and supports the operation of the robot grasping program and other software and / or programs. The network communication module is used to realize the communication between the components inside the memory 1005, and the communication with other hardware and software in the robot grasping system.
[0097] exist Figure 3 In the robot grasping device shown, the processor 1001 is used to execute the robot grasping program stored in the memory 1005 to implement the steps of any of the above-mentioned robot grasping methods.
[0098] The specific implementation of the robot grasping device of the present application is basically the same as the embodiments of the robot grasping method described above, and will not be repeated here.
[0099] In addition, an embodiment of the present application also proposes a computer program product, including a robot grasping program, which implements the steps of the robot grasping method described above when executed by a processor.
[0100] The specific implementation methods of the computer program product of the present application are basically the same as the above-mentioned embodiments of the robot grasping method, and will not be repeated here.
[0101] The present application also provides a robot grasping device, the robot grasping device comprising: An acquisition module, used for acquiring a plurality of first image data of a target object; a processing module, configured to process the depth image data in the first image data to obtain instance segmentation data, wherein the instance segmentation data is obtained by merging local maximum values and local minimum values calculated and processed for each object in the depth image data; A generation module, used to extract an RGB-D image corresponding to the instance segmentation data, and perform pose estimation processing on the RGB-D image through a preset grasp estimation algorithm to generate a grasp pose; A grasping module is used to grasp the target object based on the grasping posture.
[0102] In a possible implementation manner of the present application, the processing module includes: An extraction unit, configured to extract point cloud data and center deviation data of the target object based on the depth image data; The computing and processing unit is used to perform computing and processing on the point cloud data and the center deviation data by means of a mean shift algorithm to obtain instance segmentation data.
[0103] In a possible implementation manner of the present application, the computing processing unit includes: A first calculation subunit, used for extracting a first position index corresponding to a local maximum value and a second position index corresponding to a local minimum value in the center deviation data; A second calculation subunit is used to calculate the first position index and the second position index by using a preset center prediction algorithm to obtain a first estimated point position; The first estimated points are merged to obtain a captured estimated point.
[0104] In a possible implementation manner of the present application, the generating module includes: A processing unit, used for performing feature conversion processing on the RGB-D image to obtain multiple feature maps; A determination unit, used to determine an average value of each of the feature maps through a global average pooling operation; An acquisition unit, used to acquire a weighting coefficient of each of the feature maps; The first calculation unit is used to calculate the target grasping quality and grasping posture based on the weighted coefficient and the average value.
[0105] In a possible implementation manner of the present application, the generating module further includes: A quantization processing unit, used for quantizing the target grasping quality corresponding to the target object to obtain a binary quality map; An extraction unit, used for extracting the maximum convexity defect distance of the image contour in the binary quality map; The second calculation unit is used to calculate the fitting angle based on the image contour and the maximum convexity defect distance.
[0106] In a possible implementation manner of the present application, the capture module includes: A division unit, used to divide the grasping estimation points corresponding to the target object at a preset angle to obtain a reliable area, a graspable area and an unreliable area; an adjusting unit, configured to adjust the grasping angle to a reliable area based on the fitting angle if the grasping angle corresponding to the grasping posture is in an unreliable area, and grasp the target object in the reliable area; The grasping unit is used to add a preset angle to the grasping angle to obtain a new grasping angle if the grasping angle corresponding to the grasping posture is in a graspable area, and grasp the target object at the new grasping angle.
[0107] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0108] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0110] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A robot grasping method, characterized in that: The method comprises the following steps: Acquire a plurality of first image data of the target object; Processing the depth image data in the first image data to obtain instance segmentation data, where the instance segmentation data is obtained by merging local maximum values and local minimum values calculated and processed for each object in the depth image data; Extracting an RGB-D image corresponding to the instance segmentation data, and performing pose estimation processing on the RGB-D image using a preset grasp estimation algorithm to generate a grasp pose; Based on the grasping posture, the target object is grasped.
2. The robot grasping method according to claim 1, characterized in that: The step of processing the depth image data in the first image data to obtain instance segmentation data comprises: Based on the depth image data, extracting point cloud data and center deviation data of the target object; The point cloud data and the center deviation data are calculated and processed by a mean shift algorithm to obtain instance segmentation data.
3. The robot grasping method according to claim 2, characterized in that: The instance segmentation data includes grabbing estimated points, and the step of calculating and processing the point cloud data and the center deviation data by the mean shift algorithm to obtain the instance segmentation data includes: Extracting a first position index corresponding to a local maximum value and a second position index corresponding to a local minimum value in the center deviation data; Calculating the first position index and the second position index by using a preset center prediction algorithm to obtain a first estimated point position; Merging the first estimated points to obtain a captured estimated point; The step of grasping the target object based on the grasping posture includes: The target object is grasped based on the grasping estimation point position and the grasping posture.
4. The robot grasping method according to claim 1, characterized in that: The step of performing posture estimation processing on the RGB-D image by using a preset grasp estimation algorithm to generate a grasp posture comprises: Performing feature conversion processing on the RGB-D image to obtain multiple feature maps; Determine the average value of each feature map through a global average pooling operation; Obtaining a weighting coefficient for each of the feature maps; Based on the weighted coefficient and the average value, the grasping posture is calculated.
5. The robot grasping method according to claim 4, characterized in that: After the step of calculating the grasping posture based on the weighted coefficient and the average value, the method further includes: Quantifying the target grasping quality corresponding to the target object to obtain a binary quality map; Extracting the maximum convexity defect distance of the image contour in the binary quality map; A fitting angle is calculated based on the image contour and the maximum convexity defect distance.
6. The robot grasping method according to claim 5, characterized in that: The step of grasping the target object based on the grasping posture includes: The estimated grasping points corresponding to the target object are divided according to preset angles to obtain a reliable area, a graspable area, and an unreliable area; If the grasping angle corresponding to the grasping posture is in an unreliable area, based on the fitting angle, the grasping angle is adjusted to a reliable area, and the target object is grasped in the reliable area; If the grasping angle corresponding to the grasping posture is in the graspable area, the grasping angle is added to the preset angle to obtain a new grasping angle, and the target object is grasped at the new grasping angle.
7. A robot grasping device, characterized in that: The robot grasping device comprises: An acquisition module, used for acquiring a plurality of first image data of a target object; a processing module, configured to process the depth image data in the first image data to obtain instance segmentation data, wherein the instance segmentation data is obtained by merging local maximum values and local minimum values calculated and processed for each object in the depth image data; A determination module is used to extract an RGB-D image corresponding to the instance segmentation data, and perform pose estimation processing on the RGB-D image through a preset grasp estimation algorithm to generate a grasp pose; A grasping module is used to grasp the target object based on the grasping posture.
8. A robot grasping device, characterized in that: The device comprises: a memory, a processor, and a robot grasping program stored in the memory and executable on the processor, wherein the robot grasping program is configured to implement the steps of the robot grasping method according to any one of claims 1 to 6.
9. A computer storage medium, characterized in that The computer storage medium stores a robot grasping program, and when the robot grasping program is executed by the processor, the steps of the robot grasping method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a robot grasping program, and when the robot grasping program is executed by a processor, the steps of the robot grasping method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Object grabbing method and device, electronic equipment and storage medium
CN119910646A
Commodity placement uniformity calculation method and device, electronic equipment and storage medium
CN121564098A
Robot visual servo control method, device and equipment and storage medium
CN121946495A
