A non-cooperative target pose estimation method, system and storage medium
By using the iterative closest point method of Gaussian distribution weights under the condition of changing centroid distance in the warehousing and handling robot, the interference points in the point cloud are classified and processed, which solves the problem of poor pose estimation accuracy of non-cooperative targets and improves the accuracy of pose measurement. Accuracy and robustness.
Patent Information
- Application Number
- CN202410580555.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-11
AI Technical Summary
The problem of large registration error and poor accuracy of pose calculation caused by interference points in non-cooperative target point cloud pose estimation in warehousing and handling robot navigation.
The iterative closest point method based on the Gaussian distribution weight under the condition of changing centroid distance is used to classify the interference points of the target point cloud. The far interference points are separated and eliminated using the outlier elimination algorithm, and the near interference points are separated and eliminated using the iterative closest point algorithm. Gaussian distribution weight is added to the cost function, and the weight changes with the change of the distance from the point to the center of mass, and the operation is performed in the iterative process.
It improves the accuracy and robustness of non-cooperative target pose estimation in the working environment of warehousing robots, reduces the impact of interference points on pose measurement, and enhances measurement accuracy.
Smart Images

Figure CN118154677B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of robot vision detection and positioning, and the present invention relates to a non-cooperative target posture estimation method, system and storage medium. Background Art
[0002] As intelligent elements are continuously integrated into industrial production lines, intelligent warehousing and intelligent handling have become extremely important links. In the working process of warehouse conveying robots (WCR), the first thing to do is to complete the positioning function of the target to be transported. Some scholars use a non-cooperative target relative pose measurement method based on feature information fusion, and use elliptical contours for identification and positioning. In addition, some researchers use multi-view initialization methods to improve the robot's pose measurement accuracy through loop detection technology. On this basis, the point features on the target are tracked by polar line constraints and optical flow methods, and finally the relative pose information is obtained through three-dimensional reconstruction. However, the shapes, features, volumes, etc. of the objects being transported are different, and it is difficult to ensure the validity and diversity of feature information. In order to realize the visual positioning function in the non-cooperative target mode, the commonly used iterative closest point algorithm can align the point cloud and complete the three-dimensional reconstruction. However, the interference points in the working scene of the handling robot will affect the accuracy of alignment and reconstruction. Summary of the invention
[0003] In order to solve the problems of large registration error and poor pose accuracy caused by interference points in the pose estimation of non-cooperative target point cloud in the navigation of warehouse handling robots, the purpose of the present invention is to provide a non-cooperative target pose estimation method, system and storage medium, based on the iterative closest point method of Gaussian distribution weights under the condition of variable center of mass distance, so as to improve the accuracy and robustness of non-cooperative target pose estimation in the working environment of the warehouse robot.
[0004] The technical solution to achieve the purpose of the present invention is:
[0005] A non-cooperative target pose estimation method comprises the following steps:
[0006] S01: 3D reconstruction of non-cooperative target point cloud;
[0007] S02: Obtain the target ROI area;
[0008] S03: Obtain the interference points of the target point cloud, and divide the interference points into far interference points and near interference points. For far interference points, use the outlier removal algorithm to separate and remove them before alignment; for near interference points, add Gaussian distribution weights to the cost function of the traditional iterative closest point algorithm. The weight changes with the distance from the point to the centroid, and it is brought into the calculation of the iterative process to complete the estimation of the target pose.
[0009] In the preferred technical solution, the method for performing three-dimensional reconstruction on the non-cooperative target point cloud in step S01 includes:
[0010] S11: The image feature point pairs are obtained through feature point extraction and matching algorithms. When a certain point in space appears in multiple camera perspectives, the three-dimensional coordinates of the space point are reconstructed using triangulation.
[0011] S12: Two cameras in the binocular vision system collect images from two different perspectives. The three-dimensional points in the world coordinate system are transformed into two-dimensional pixel coordinates through projection. The equations are listed as follows based on the camera imaging model:
[0012]
[0013] in, and are the two-dimensional pixel coordinates of the spatial point after imaging by the left and right cameras, , Left and right cameras respectively; is the camera internal parameter, obtained through camera calibration; is the coordinates of the space point in the world coordinate system; is the camera extrinsic parameter; and Collect the depth information of this point for the left and right cameras respectively;
[0014] Step 13: Make the projection matrix , setting the world coordinate system to the camera coordinate system of the first image, we get:
[0015]
[0016] in, is the projection transformation of the first image relative to the world coordinate system; is the projection transformation of the second image relative to the world coordinate system; is the identity matrix; , They are the motion parameters of the second image relative to the world coordinate system.
[0017] In the preferred technical solution, in step S02, an improved deep learning detection model is used to obtain a non-cooperative target ROI area;
[0018] The improved deep learning detection model is improved on the basis of YOLOv7_tiny. The convolution parts in the model are all implemented by depthwise separable convolution. The depthwise separable convolution consists of separable convolution and point convolution. The separable convolution implements channel-by-channel convolution, and the point convolution implements feature interaction between different channels. The activation function after the convolution layer adopts the ELU activation function. In ELAN, the number of convolutions on one channel is reduced from 3 to 2. The Neck part of the YOLO model includes feature fusion between 3 output channels, deletes the downsampling of the middle-layer output features to the bottom-layer features, and only retains the upsampling between the three channels and the downsampling of the high-level features to the middle-layer features.
[0019] In the preferred technical solution, the method of dividing the interference points into far interference points and near interference points in step S03 includes:
[0020] S31: The point cloud set in the three-dimensional coordinate system is expressed as:
[0021]
[0022] in, is the three-dimensional coordinate of the point cloud in the Cartesian coordinate system;
[0023] S32: For each 3D point, search for several groups of points closest to its neighborhood class and calculate the Euclidean distance, and calculate the standard deviation of the distance between this point and the neighboring points, and determine whether it is an outlier by the following formula:
[0024]
[0025] in, Indicates The statistical distance of the points; Indicates the number of adjacent points selected, represents the threshold coefficient; Indicate point With nearby The standard deviation of the points;
[0026] For point If the nearby point Its Euclidean distance is greater than If the point is smaller than 0, it is identified as a far interference point, otherwise it is identified as a near interference point.
[0027] In the preferred technical solution, the Gaussian distribution weight is added to the cost function of the traditional iterative closest point algorithm, and the weight changes with the distance from the point to the centroid, including:
[0028] S33: Adding weights to the cost function get:
[0029]
[0030] in, is the number of points in the target point set; is the first points; is the weight coefficient and , indicating the importance attached to different corresponding points;
[0031] S34: Construct the calculation weight by the distance between the near interference point and the center of mass The equation for Group point pairs and calculate their distances from the centroid of the original point cloud , and the distance to the centroid of the target point cloud :
[0032]
[0033] in, and are the centroids of the original point cloud and the target point cloud respectively;
[0034] S35: and As an independent variable, As the dependent variable, a two-dimensional Gaussian distribution function is used to characterize the characteristics of each position weight:
[0035]
[0036] because , standard deviation The value of ,therefore Further expressed as:
[0037]
[0038] S36: The cost function of the Gaussian distribution weight based on the centroid distance variation condition is obtained as:
[0039] .
[0040] In the preferred technical solution, during the solution process, the transformation of the point cloud set is converted into two steps of translation and rotation, that is, it is regarded as the rotation of the original point cloud around the center of mass and the translation of the center of mass, and the constraint term of center of mass coincidence is added to simplify the calculation, and the center of mass of the two sets of point cloud sets is defined. , :
[0041]
[0042] Eliminate the centroid from the original point cloud set and the target point cloud set, and we get:
[0043] in, and ;
[0044] Further simplification yields:
[0045]
[0046] Transform the solution to the goal into a After The process:
[0047]
[0048] in, It means returning the argument of the transformed complex number; and are the optimal rotation matrix and translation vector of the robot relative to the target.
[0049] In the preferred technical solution, the optimal rotation matrix and translation vector of the robot relative to the target are obtained and Finally, the target posture is solved through SVD decomposition to obtain the azimuth and distance information of the object to be measured relative to the robot.
[0050] The present invention also discloses a non-cooperative target pose estimation system, comprising:
[0051] Point cloud 3D reconstruction module, which performs 3D reconstruction of non-cooperative target point clouds;
[0052] A target ROI region acquisition module is used to acquire the target ROI region;
[0053] The target pose estimation module obtains the interference points of the target point cloud and divides the interference points into far interference points and near interference points. For far interference points, the outlier removal algorithm is used to separate and eliminate them before alignment; for near interference points, Gaussian distribution weights are added to the cost function of the traditional iterative closest point algorithm. The weight changes with the distance from the point to the centroid, and it is brought into the calculation of the iterative process to complete the estimation of the target pose.
[0054] In the preferred technical solution, the Gaussian distribution weight is added to the cost function of the traditional iterative closest point algorithm, and the weight changes with the distance from the point to the centroid, including:
[0055] S33: Adding weights to the cost function get:
[0056]
[0057] in, is the number of points in the target point cloud; is the first points; is the weight coefficient and , indicating the importance attached to different corresponding points;
[0058] S34: Construct the calculation weight by the distance between the near interference point and the center of mass The equation for Group point pairs and calculate their distances from the centroid of the original point cloud , and the distance to the centroid of the target point cloud :
[0059]
[0060] in, and are the centroids of the original point cloud and the target point cloud respectively;
[0061] S35: and As an independent variable, As the dependent variable, a two-dimensional Gaussian distribution function is used to characterize the characteristics of each position weight:
[0062]
[0063] because , standard deviation The value of ,therefore Further expressed as:
[0064]
[0065] S36: The cost function of the Gaussian distribution weight based on the centroid distance variation condition is obtained as:
[0066] .
[0067] The present invention further discloses a computer storage medium on which a computer program is stored. When the computer program is executed, the non-cooperative target pose estimation method is implemented.
[0068] Compared with the prior art, the present invention has the following significant advantages:
[0069] Aiming at the problems of large registration error and poor pose estimation accuracy caused by interference points in the pose estimation of non-cooperative target point cloud in the navigation of warehouse handling robots, an iterative closest point method based on Gaussian distribution weights under the condition of varying centroid distance is proposed to improve the accuracy and robustness of pose estimation of non-cooperative targets in the working environment of warehouse handling robots. On the basis of using the improved deep learning detection model to obtain the ROI area of non-cooperative targets, the interference points are classified into far interference points and near interference points. For far interference points, the statistical outlier removal algorithm is used to pre-process the point cloud. For near interference points existing on the edge of the target, Gaussian distribution weights are added to the traditional iterative closest point algorithm, and the weights change with the change of the distance from the point to the centroid, so as to weaken the near interference points. The proposed method has certain value and practical significance when warehouse handling robots face large field of view non-cooperative target pose estimation. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 A flowchart of a non-cooperative target pose estimation method according to a preferred embodiment;
[0071] Figure 2 This is a schematic diagram of the triangulation principle;
[0072] Figure 3 This is a schematic diagram of the improved target detection model architecture;
[0073] Figure 4 This is a schematic diagram of the D_CBE architecture;
[0074] Figure 5 This is a schematic diagram of the ELAN architecture;
[0075] Figure 6 This is a schematic diagram of the D_SPP architecture;
[0076] Figure 7 This is a schematic diagram of the outlier removal algorithm;
[0077] Figure 8 is the changing trend of the average reconstruction error of corresponding points as the number of interference points increases. DETAILED DESCRIPTION
[0078] The principle of the present invention is: the present invention fully considers the robot's large field of view working environment, proposes a method based on detection and measurement coupling, and improves the accuracy and robustness of the robot's non-cooperative target posture measurement by constructing an iterative closest point algorithm under the condition of varying centroid distance. The overall process of the method is to first use an improved deep learning detection model to achieve the acquisition of the target ROI area, and then use the structure from motion (Structure from Motion, SFM) to perform three-dimensional reconstruction of the target point cloud, and reconstruct the three-dimensional point cloud data of the measured target twice before and after. Considering that the interference factors existing in the "low-altitude" working environment of the storage and handling robot cause a large number of interference points to appear in the registered point cloud, the present invention classifies the interference points into far interference points and near interference points. For far interference points, the outlier removal algorithm is used to separate and remove them before registration; for near interference points, the Gaussian distribution weight under the condition of varying centroid distance is added to the cost function of the traditional iterative closest point algorithm, and it is brought into the calculation of the iterative process. Based on this, the high-precision solution of the target posture can be completed through SVD decomposition.
[0079] Embodiment 1:
[0080] like Figure 1 As shown, a non-cooperative target pose estimation method includes the following steps:
[0081] S01: 3D reconstruction of non-cooperative target point cloud;
[0082] S02: Obtain the target ROI area;
[0083] S03: Obtain the interference points of the target point cloud, and divide the interference points into far interference points and near interference points. For far interference points, use the outlier removal algorithm to separate and remove them before alignment; for near interference points, add Gaussian distribution weights to the cost function of the traditional iterative closest point algorithm. The weight changes with the distance from the point to the centroid, and it is brought into the calculation of the iterative process to complete the estimation of the target pose.
[0084] In a preferred embodiment, the method for performing three-dimensional reconstruction on the non-cooperative target point cloud in step S01 includes:
[0085] S11: The image feature point pairs are obtained through feature point extraction and matching algorithms. When a point in space appears in multiple camera perspectives, the three-dimensional coordinates of the space point are reconstructed using triangulation, such as Figure 2 As shown;
[0086] S12: Two cameras in the binocular vision system collect images from two different perspectives. The three-dimensional points in the world coordinate system are transformed into two-dimensional pixel coordinates through projection. The equations are listed as follows based on the camera imaging model:
[0087]
[0088] in, and are the two-dimensional pixel coordinates of the spatial point after imaging by the left and right cameras, , Left and right cameras respectively is the camera internal parameter, obtained through camera calibration; is the coordinates of the space point in the world coordinate system; is the camera extrinsic parameter; and The left and right cameras collect the depth information of this point respectively; the rightmost of the matrix is the number 1 in the homogeneous coordinates;
[0089] Step 13: Make the projection matrix , setting the world coordinate system to the camera coordinate system of the first image, we get:
[0090]
[0091] in, is the projection transformation of the first image relative to the world coordinate system; is the projection transformation of the second image relative to the world coordinate system; is the identity matrix; , They are the motion parameters of the second image relative to the world coordinate system.
[0092] In a preferred embodiment, in step S02, an improved deep learning detection model is used to obtain a non-cooperative target ROI area;
[0093] The improved deep learning detection model is improved on the basis of YOLOv7_tiny. The convolution parts in the model are all implemented by depthwise separable convolution. The depthwise separable convolution consists of separable convolution and point convolution. The separable convolution implements channel-by-channel convolution, and the point convolution implements feature interaction between different channels. The activation function after the convolution layer adopts the ELU activation function. In ELAN, the number of convolutions on one channel is reduced from 3 to 2. The Neck part of the YOLO model includes feature fusion between 3 output channels, deletes the downsampling of the middle-layer output features to the bottom-layer features, and only retains the upsampling between the three channels and the downsampling of the high-level features to the middle-layer features.
[0094] In a preferred embodiment, the method of dividing the interference points into far interference points and near interference points in step S03 includes:
[0095] S31: The point cloud set in the three-dimensional coordinate system is expressed as:
[0096]
[0097] in, is the three-dimensional coordinate of the point cloud in the Cartesian coordinate system;
[0098] S32: For each 3D point, search for several groups of points closest to its neighborhood class and calculate the Euclidean distance, and calculate the standard deviation of the distance between this point and the neighboring points, and determine whether it is an outlier by the following formula:
[0099]
[0100] in, Indicates The statistical distance of the points; Indicates the number of adjacent points selected, represents the threshold coefficient; Indicate point With nearby The standard deviation of the points;
[0101] For point If the nearby point Its Euclidean distance is greater than If the point is smaller than 0, it is identified as a far interference point, otherwise it is identified as a near interference point.
[0102] In a preferred embodiment, Gaussian distribution weights are added to the cost function of the traditional iterative closest point algorithm, and the weights change with the distance from the point to the centroid, including:
[0103] S33: Adding weights to the cost function get:
[0104]
[0105] in, is the number of points in the target point cloud; is the first points; is the weight coefficient and , indicating the importance attached to different corresponding points;
[0106] S34: Construct the calculation weight by the distance between the near interference point and the center of mass The equation for Group point pairs and calculate their distances from the centroid of the original point cloud , and the distance to the centroid of the target point cloud :
[0107]
[0108] in, and are the centroids of the original point cloud and the target point cloud respectively;
[0109] S35: and As an independent variable, As the dependent variable, a two-dimensional Gaussian distribution function is used to characterize the characteristics of each position weight:
[0110]
[0111] because , standard deviation The value of ,therefore Further expressed as:
[0112]
[0113] S36: The cost function of the Gaussian distribution weight based on the centroid distance variation condition is obtained as:
[0114] .
[0115] In a preferred embodiment, during the solution process, the transformation of the point cloud set is converted into two steps of translation and rotation, that is, it is regarded as the rotation of the original point cloud around the center of mass and the translation of the center of mass, and the constraint term of center of mass coincidence is added to simplify the calculation, and the center of mass of the two sets of point cloud sets is defined as , :
[0116]
[0117] Eliminate the centroid from the original point cloud set and the target point cloud set, and we get:
[0118] in, and ;
[0119] Further simplification yields:
[0120]
[0121] Transform the solution to the goal into a After The process:
[0122]
[0123] in, It means returning the argument of the transformed complex number; and are the optimal rotation matrix and translation vector of the robot relative to the target.
[0124] In a preferred embodiment, the optimal rotation matrix and translation vector of the robot relative to the target are obtained. and Finally, the target posture is solved through SVD decomposition to obtain the azimuth and distance information of the object to be measured relative to the robot.
[0125] In another embodiment, a computer storage medium stores a computer program, which implements the above-mentioned non-cooperative target pose estimation method when executed.
[0126] Any of the above pose estimation methods is used and will not be described here.
[0127] In another embodiment, a non-cooperative target pose estimation system includes:
[0128] Point cloud 3D reconstruction module, which performs 3D reconstruction of non-cooperative target point clouds;
[0129] A target ROI region acquisition module is used to acquire the target ROI region;
[0130] The target pose estimation module obtains the interference points of the target point cloud and divides the interference points into far interference points and near interference points. For far interference points, the outlier removal algorithm is used to separate and eliminate them before alignment; for near interference points, Gaussian distribution weights are added to the cost function of the traditional iterative closest point algorithm. The weight changes with the distance from the point to the centroid, and it is brought into the calculation of the iterative process to complete the estimation of the target pose.
[0131] Specifically, the workflow of the non-cooperative target pose estimation system is described below by taking a preferred embodiment as an example:
[0132] Step 1: 3D reconstruction of non-cooperative target point cloud based on SFM algorithm
[0133] Step 11: The image feature point pairs are initially obtained through feature point extraction and matching algorithms. Then the RANSAC algorithm is used to remove the mismatched points of the target point cloud to obtain high-precision feature point pairs. When a point in space appears in multiple camera perspectives, the three-dimensional coordinates of the space point can be reconstructed using triangulation.
[0134] Step 12: Figure 2 In the binocular vision system, two cameras collect images from two different perspectives. The three-dimensional points in the world coordinate system are transformed into two-dimensional pixel coordinates through projection. Therefore, according to the camera imaging model, the equation can be listed as follows:
[0135] (14)
[0136] in, and are the two-dimensional pixel coordinates of the spatial point after being imaged by the left and right cameras; is the camera internal parameter, obtained through camera calibration; is the coordinates of the space point in the world coordinate system; is the camera extrinsic parameter; and The depth information of this point is collected for the left and right cameras respectively.
[0137] Step 13: In equation (14), let the projection matrix , in order to facilitate calculation, the world coordinate system is set to the camera coordinate system of the first image, and we can get:
[0138]
[0139] in, is the projection transformation of the first image relative to the world coordinate system; is the projection transformation of the second image relative to the world coordinate system; , They are the motion parameters of the second image relative to the world coordinate system (i.e. the camera coordinate system of the first image).
[0140] Step 2: YOLO_WCR target detection model construction
[0141] In the terminal detection and recognition and posture angle calculation of the storage and handling robot, the position of the target in a certain area in the field of view can be detected first, that is, the ROI area can be locked, which can reduce the amount of point cloud calculation and improve the timeliness of the algorithm. To this end, the present invention proposes the YOLO_WCR detection model based on YOLOv7_tiny. The model structure is as follows Figure 3As shown in the figure. The model consists of two parts: the backbone network and the detection network. The size of the backbone network input image is 640x640, which is composed of two D_CBE modules and four ELAN modules. At the same time, except for the last ELAN module, a maximum pooling layer Maxpool is used for processing after other ELAN modules. After the image is extracted by the backbone network, the feature data output by the 2nd, 3rd, and 4th ELAN modules are input into the detection network for detection. The dimensions of the feature data are 80×80×512, 40×40×1024, and 20×20×1024 respectively. The detection network part is mainly composed of the D_CBE module, the D_SPP module, the upsampling layer UP module, the concatenation module Concat, and the ELAN module. The detection head part has 3 detection branches, which detect the features of 3 different resolutions in the backbone network respectively. The backbone network and the detection network are first linked horizontally, that is, the three feature data obtained by the backbone network processing are input into the corresponding detection branches respectively, and in the detection network, the processing result of each detection branch is spliced with the previous feature data in the channel dimension through the Concat module, and then the fused data is input into the next detection branch for processing. At the same time, two parallel modules, D_CBE and D_SPP, are added between the fourth ELAN module and the corresponding detection branch, and the data is fused through a Concat module and input into the corresponding prediction branch to enhance the ability to extract small target features. Finally, the target category and location information are obtained through 3 prediction (YOLO) outputs.
[0142] Step 21: The convolution part of the model (D_CBE), such as Figure 4 As shown in the figure, it includes a depth-wise separable convolution module, a batch normalization module, and an ELU activation function module. All are implemented using depth-wise separable convolution, which consists of separable convolution and point convolution. Separable convolution implements channel-by-channel convolution, that is, one channel is convolved by only one convolution kernel. This convolution performs convolution operations on each channel of the input layer independently, which can greatly reduce the number of parameters, but cannot effectively utilize the feature information between different channels. The convolution kernel size of the point convolution is 1×1×M, where M is the number of channels of the previous depth-wise convolution layer. Through the point convolution operation, the feature map of the previous step will be combined in the depth direction to generate a new feature map, thereby realizing feature interaction between different channels and ensuring the richness of the output features. The depth-wise convolution and point convolution work together to reduce the number of model parameters while ensuring the model feature extraction performance. In addition, the activation function after the convolution layer uses the ELU activation function, which has a negative value, which ensures that the average value of the activation is close to zero and the gradient is closer to the natural gradient, which can improve the learning speed of the model. At the same time, this activation function is highly robust to noise and is more suitable for applications in autonomous handling scenarios.
[0143] The structure of the ELAN part is as follows Figure 5 As shown in the figure, after the operation of the D_CBE combination module, feature fusion is achieved through Concat, and then the operation of the D_CBE module is performed. The operation of the D_CBE combination module includes the first D_CBE module, the second D_CBE module and the third D_CBE module. The operation results of the first D_CBE module, the operation results of the second D_CBE module and the combined operation results of the second D_CBE module and the third D_CBE module are used to achieve feature fusion through Concat. This part is different from the traditional detection model that uses grouped convolution to expand the channels and cardinality of the network module. YOLO_WCR uses deep separable convolution (D_CBE) to replace the multi-layer grouped convolution operation in the original structure, thereby reducing the number of network parameters and improving the model's operational efficiency. At the same time, it helps to further increase the depth of the network and enhance the network's detection capabilities, allowing the deep network to learn and converge more effectively, and solving the problem of the gradual deterioration of the multi-scale deep network model during convergence. In addition, the scale of input and output features is kept unchanged in the network, and the number of channels changes only at the first D_CBE in the two channels. The number of input and output channels of the subsequent structure remains the same, and the obtained output feature maps are stacked in the channel dimension. In general, in order to ensure the generalization ability of the model, the Neck part of the YOLO model includes feature fusion between the three output channels. Considering that the feature target of the plane calibration plate is small, the downsampling of the middle-level output features to the bottom-level features is deleted, and only the upsampling between the three channels and the downsampling of the high-level features to the middle-level features are retained, so as to maximize the lightweight of the model while ensuring the target detection capability.
[0144] The structure of D_SPP is as follows Figure 6 As shown in the figure, the D_CBE module is also used for improvement. After the D_CBE module operation, it is processed in parallel by three MP modules respectively. The MP module is the maximum pooling layer. After the three MP modules are processed in parallel, the operation results of the D_CBE module are combined through Concat to realize feature fusion, and then the D_CBE module operation is performed.
[0145] On the one hand, it solves the problem of large number of parameters in the SPPCSPC module. On the other hand, it forms a parallel dual-channel network with a D_CBE module. The output feature maps of the two modules are stacked and input into the subsequent network for detection, which can effectively improve the feature extraction ability of the network.
[0146] Step 3: Iterative closest point algorithm based on Gaussian distribution weights under the condition of varying centroid distance
[0147] Since there are a large number of interference points when extracting the transport target point cloud, the point cloud registration algorithm is offset in obtaining the centroid, making it impossible to align the point cloud with high precision. The present invention divides the interference points into two categories. The first category is far interference points. The positions of these points are far away from the actual target and have a greater impact on the centroid of the point cloud set. Therefore, they need to be screened and eliminated before registration. The second category is near interference points. These points are close to or even in contact with the target. They have little effect on the centroid but have a certain impact on the overall structure of the point cloud and are difficult to eliminate before registration. Therefore, they can be processed and updated in the iterative process by optimizing the algorithm.
[0148] Step 31: Remove interference points by statistically filtering outliers, thereby completing the preliminary processing of the original point cloud and the target point cloud. Taking the original point cloud as an example, the point cloud set can be expressed in a three-dimensional coordinate system as follows:
[0149] (16)
[0150] in, is the three-dimensional coordinate of the point cloud set in the Cartesian coordinate system. The points in are arranged in random order.
[0151] Step 32: For each 3D point, search for several groups of points closest to its neighborhood class and calculate the Euclidean distance, and calculate the standard deviation of the distance between this point and the neighboring points, and use formula (17) to determine whether it is an outlier.
[0152] (17)
[0153] in, Indicates The statistical distance of the points; Indicates the number of adjacent points selected, the value can be 20; It can be expressed as a threshold coefficient to control the number of screening points; It is represented as a point With nearby The standard deviation of points.
[0154] For point If the nearby point Its Euclidean distance is greater than If , it is identified as an outlier (i.e., a far interference point) and is removed, otherwise it is identified as a near interference point. Figure 7 shown.
[0155] Step 33: To weaken the near interference points of the point cloud, the present invention adds weights to the cost function get:
[0156] (18)
[0157] in, is the weight coefficient and , which indicates the importance of different corresponding points. The larger the value, the greater the influence of this group of points on the cost equation. In the process of solving the optimal solution of this nonlinear equation, the error of this group of points can be quickly optimized through iteration. When , the solution to this point pair is the same as the original algorithm, which means that the position and function of this point are fully considered; on the contrary, when The smaller the value of , the smaller the error calculated by this set of point pairs, and the easier it is to be weakened and ignored. , the solution result for this corresponding point is 0, which means that no matter what the position of this point is, this point will not be considered at all and will not participate in the calculation.
[0158] Step 34: Near interference points generally exist at the edge of the target object, so the calculation weight can be constructed by its distance from the center of mass For the equation To form a point pair, first calculate the distance between it and the centroid of the original point cloud and the centroid of the target point cloud as shown in formula (19):
[0159] (19)
[0160] in, and are the centroids of the original point cloud and the target point cloud respectively.
[0161] Step 35: and As an independent variable, As the dependent variable, the two-dimensional Gaussian distribution function is used to characterize the characteristics of each position weight as shown in formula (20). The Gaussian function is a single-valued function, and the weight of each neighborhood point increases or decreases monotonically with the distance between the point and the centroid.
[0162] (20)
[0163] because , calculate the standard deviation The value of ,therefore It can be expressed as shown in formula (21):
[0164] (twenty one)
[0165] Step 36: Substitute equation (21) into equation (20) to obtain the cost function based on the Gaussian distribution weight under the condition of centroid distance variation, as shown in equation (22):
[0166] (twenty two)
[0167] From formula (22), we can see that there are 6 quantities to be solved for the optimal solution of this nonlinear equation, namely 3 Euler angles and 3 translation quantities. In order to simplify the calculation, the transformation of the point cloud set is converted into two steps of translation and rotation. That is, it is regarded as the rotation of the original point cloud around the center of mass and the translation of the center of mass, and the constraint term of center of mass coincidence is added to simplify the calculation. Therefore, the center of mass of the two sets of point cloud sets is defined as shown in formula (23):
[0168] (twenty three)
[0169] Combining equation (22) and equation (23), removing the centroid from the original point cloud set and the target point cloud set, we can obtain:
[0170] (twenty four)
[0171] in, and . Observe the last term of equation (24): Therefore, formula (24) can be simplified to formula (25):
[0172] (25)
[0173] Formula (25) can be used to transform the solution of the target into After The process:
[0174] (26)
[0175] in, It means returning the argument of the transformed complex number; and It is the optimal rotation matrix and translation vector of the robot relative to the target. Then, the high-precision solution of the target posture is completed through SVD decomposition, and the azimuth and distance information of the object to be measured relative to the robot can be obtained.
[0176] In order to verify the effectiveness of the proposed method, the simulation experiment is designed as follows. First, in the target recognition verification experiment, the model constructed by the present invention is compared with the current mainstream models such as YOLOv7_x, YOLOv7, YOLOv7_tiny, and YOLOv5_s. The model training cycle is 500, and no pre-training weights are loaded. The number of data (samples) passed to the program for training at a single time is set to 16. The computer configuration for the operation is Windows 10 + 2.4GHz CPU + 24GB RAM + RTX 4080. As shown in Table 1, the model performance is evaluated in terms of precision, recall, FPS, Parameter, and FLOPS.
[0177] Table 1 Comparison of model test results
[0178]
[0179] According to the final test results, the model constructed by the present invention has advantages in test accuracy, FPS, parameter quantity and FLOPS. Among them, the parameter quantity of the YOLO_WCR model is only 36.72% of that of YOLOv7_tiny, and the FLOPS is reduced by 62.31% compared with YOLOv7_tiny. In addition, the detection speed (FPS) is also improved to a certain extent while ensuring the detection accuracy.
[0180] Then simulate and construct the point cloud data of the target to be measured. The target information described by this data is as follows: the maximum length is 1000 cm, the maximum width is 500 cm, and the maximum height is 500 cm. Rotate it by a certain angle and translate it by a certain distance to serve as the target point cloud. Add a certain number of interference points at random positions to each of the two groups of point clouds. With the center of mass of the point cloud as the center of the circle, Add the radius points as interference points. The value of is set between 600 cm and 700 cm and is taken every 10 cm. Therefore, for each point cloud, A interference point.
[0181] Then add interference points and set the rotation angle to And the translation amount is centimeters. By increasing The number of interference points is increased by taking the value of . Then the two groups of point clouds are registered using the traditional method and the method of the present invention. Since the interference points added each time are random, the experiment is repeated 10 times and the average value is taken. Finally, the average error of the corresponding points before and after the registration without adding any interference points is used as the standard for judging the accuracy. The average error is used as the ordinate and the number of distant interference points is used as the abscissa. The experimental results are as follows Figure 6 shown.
[0182] from Figure 8 It can be seen that as the number of interference points increases, the error obtained by the traditional registration method also increases, until the registration cannot be completed. However, the method of the present invention will not be affected by the interference points, and the error is always kept within a very small range. This is because the method of the present invention removes outliers when processing the point cloud set, and intelligently deletes the interference points in the original point cloud and the target point cloud.
[0183] Next, compare the pose estimation of the two methods. The rotation angle and translation vector calculated by the two methods are compared with the preset ideal values and the results are shown in Table 2.
[0184] Table 2 Comparison of pose estimation results
[0185]
[0186] It can be seen from Table 2 that the average solution error of the method of the present invention for the rotation parameter is 0.3820°, and the average solution error of the translation parameter is 1.4770 cm; while the average solution error of the traditional method for the rotation parameter is 1.0735°, and the average solution error of the translation parameter is 2.2928 cm. In summary, the method of the present invention can well weaken the influence of interference points on the measurement accuracy and can meet the actual use requirements of the storage and handling robot.
[0187] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications made without departing from the spirit and principles of the present invention shall be equivalent replacement modes and shall be included in the protection scope of the present invention.
Claims
1. A non-cooperative target pose estimation method, characterized in that: The following steps are involved: S01: 3D reconstruction of non-cooperative target point cloud; S02: Use the improved deep learning detection model to obtain the non-cooperative target ROI area; The improved deep learning detection model is improved on the basis of YOLOv7_tiny. The convolution parts in the model are all implemented by depth separable convolution. The depth separable convolution consists of separable convolution and point convolution. The separable convolution realizes channel-by-channel convolution, and the point convolution realizes the feature interaction between different channels. The activation function after the convolution layer adopts the ELU activation function. In ELAN, the number of convolutions on one channel is reduced from 3 to 2. The Neck part of the YOLO model includes feature fusion between 3 output channels, deletes the downsampling of the middle-layer output features to the bottom-layer features, and only retains the three Upsampling between channels and downsampling of high-level features to middle-level features; the improved deep learning detection model consists of a backbone network and a detection network, wherein the backbone network consists of two D_CBE modules and four ELAN modules. Except for the last ELAN module, a maximum pooling layer is used for processing after other ELAN modules; the detection network includes a D_CBE module, a D_SPP module, an upsampling layer UP module, a concatenation module Concat and an ELAN module. The detection head has a total of 3 detection branches, which detect features of 3 different resolutions in the backbone network respectively; S03: Obtain interference points of the target point cloud, and divide the interference points into far interference points and near interference points. For far interference points, use the outlier elimination algorithm to separate and eliminate them before registration; For near interference points, Gaussian distribution weights are added to the cost function of the traditional iterative closest point algorithm. The weights change with the distance from the point to the centroid, and are brought into the calculation of the iterative process to complete the estimation of the target pose.
2. The non-cooperative target pose estimation method according to claim 1, characterized in that: The method for performing three-dimensional reconstruction on the non-cooperative target point cloud in step S01 includes: S11: The image feature point pairs are obtained through feature point extraction and matching algorithms. When a certain point in space appears in multiple camera perspectives, the three-dimensional coordinates of the space point are reconstructed using triangulation. S12: Two cameras in the binocular vision system collect images from two different perspectives. The three-dimensional points in the world coordinate system are transformed into two-dimensional pixel coordinates through projection. The equations are listed as follows based on the camera imaging model: , in, and are the two-dimensional pixel coordinates of the spatial point after imaging by the left and right cameras, , Left and right cameras respectively; is the camera internal parameter, obtained through camera calibration; is the coordinates of the space point in the world coordinate system; is the camera extrinsic parameter; and Collect the depth information of this point for the left and right cameras respectively; Step 13: Make the projection matrix , setting the world coordinate system to the camera coordinate system of the first image, we get: , in, is the projection transformation of the first image relative to the world coordinate system; is the projection transformation of the second image relative to the world coordinate system; is the identity matrix; , They are the motion parameters of the second image relative to the world coordinate system.
3. The non-cooperative target pose estimation method according to claim 1, characterized in that: The method of dividing the interference points into far interference points and near interference points in step S03 includes: S31: The point cloud set in the three-dimensional coordinate system is expressed as: , in, is the three-dimensional coordinate of the point cloud in the Cartesian coordinate system; S32: For each 3D point, search for several groups of points closest to its neighborhood class and calculate the Euclidean distance, and calculate the standard deviation of the distance between this point and the neighboring points, and determine whether it is an outlier by the following formula: , in, Indicates The statistical distance of the points; Indicates the number of adjacent points selected, represents the threshold coefficient; Indicate point With nearby The standard deviation of the points; For point If the nearby point Its Euclidean distance is greater than If the point is smaller than 0, it is identified as a far interference point, otherwise it is identified as a near interference point.
4. The non-cooperative target pose estimation method according to claim 3, characterized in that: The Gaussian distribution weight is added to the cost function of the traditional iterative closest point algorithm, and the weight changes with the distance from the point to the centroid, including: S33: Adding weights to the cost function get: , in, is the number of points in the target point cloud; is the first points; is the weight coefficient and , indicating the importance attached to different corresponding points; S34: Construct the calculation weight by the distance between the near interference point and the center of mass The equation for Group point pairs and calculate their distances from the centroid of the original point cloud , and the distance to the centroid of the target point cloud : , in, and are the centroids of the original point cloud and the target point cloud respectively; S35: and As an independent variable, As the dependent variable, a two-dimensional Gaussian distribution function is used to characterize the characteristics of each position weight: , because , standard deviation The value of ,therefore Further expressed as: , S36: The cost function of the Gaussian distribution weight based on the centroid distance variation condition is obtained as: 。 5. The non-cooperative target pose estimation method according to claim 4, characterized in that: In the solution process, the transformation of the point cloud set is converted into two steps of translation and rotation, that is, it is regarded as the rotation of the original point cloud around the center of mass and the translation of the center of mass. The constraint term of center of mass coincidence is added to simplify the calculation, and the center of mass of the two sets of point cloud sets is defined , : , Eliminate the centroid from the original point cloud set and the target point cloud set, and we get: in, and ; Further simplification yields: , Transform the solution to the goal into a After The process: , in, It means returning the argument of the transformed complex number; and are the optimal rotation matrix and translation vector of the robot relative to the target.
6. The non-cooperative target pose estimation method according to claim 5, characterized in that: Get the optimal rotation matrix and translation vector of the robot relative to the target and Finally, the target posture is solved through SVD decomposition to obtain the azimuth and distance information of the object to be measured relative to the robot.
7. A non-cooperative target pose estimation system, characterized in that: include: Point cloud 3D reconstruction module, which performs 3D reconstruction of non-cooperative target point clouds; The target ROI region acquisition module uses an improved deep learning detection model to obtain the non-cooperative target ROI region; The improved deep learning detection model is improved on the basis of YOLOv7_tiny. The convolution parts in the model are all implemented by depth separable convolution. The depth separable convolution consists of separable convolution and point convolution. The separable convolution realizes channel-by-channel convolution, and the point convolution realizes the feature interaction between different channels. The activation function after the convolution layer adopts the ELU activation function. In ELAN, the number of convolutions on one channel is reduced from 3 to 2. The Neck part of the YOLO model includes feature fusion between 3 output channels, deletes the downsampling of the middle-layer output features to the bottom-layer features, and only retains the three Upsampling between channels and downsampling of high-level features to middle-level features; the improved deep learning detection model consists of a backbone network and a detection network, wherein the backbone network consists of two D_CBE modules and four ELAN modules. Except for the last ELAN module, a maximum pooling layer is used for processing after other ELAN modules; the detection network includes a D_CBE module, a D_SPP module, an upsampling layer UP module, a concatenation module Concat and an ELAN module. The detection head has a total of 3 detection branches, which detect features of 3 different resolutions in the backbone network respectively; The target pose estimation module obtains the interference points of the target point cloud and divides the interference points into far interference points and near interference points. For far interference points, the outlier removal algorithm is used to separate and remove them before registration. For near interference points, Gaussian distribution weights are added to the cost function of the traditional iterative closest point algorithm. The weights change with the distance from the point to the centroid, and are brought into the calculation of the iterative process to complete the estimation of the target pose.
8. The non-cooperative target pose estimation system according to claim 7, characterized in that: The Gaussian distribution weight is added to the cost function of the traditional iterative closest point algorithm, and the weight changes with the distance from the point to the centroid, including: S33: Adding weights to the cost function get: , in, is the number of points in the target point cloud; is the first points; is the three-dimensional coordinate of the point cloud in the Cartesian coordinate system; is the weight coefficient and , indicating the importance attached to different corresponding points; S34: Construct the calculation weight by the distance between the near interference point and the center of mass The equation for Group point pairs and calculate their distances from the centroid of the original point cloud , and the distance to the centroid of the target point cloud : , in, and are the centroids of the original point cloud and the target point cloud respectively; S35: and As an independent variable, As the dependent variable, a two-dimensional Gaussian distribution function is used to characterize the characteristics of each position weight: , because , standard deviation The value of ,therefore Further expressed as: , S36: The cost function of the Gaussian distribution weight based on the centroid distance variation condition is obtained as: 。 9. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the non-cooperative target pose estimation method according to any one of claims 1 to 6 is implemented.
