Object grasping posture calculation method based on 3D point cloud data
Through the object grab position calculation method based on 3D point cloud data, the object point cloud data is obtained and processed by using a linear laser displacement sensor, which solves the problem of low efficiency in judging the placement state of the object in the prior art, and achieves efficient and accurate objects Grabbing improves the operation efficiency of the equipment.
Patent Information
- Application Number
- CN202111279402.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-01
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-11-01
AI Technical Summary
The existing object recognition methods are inefficient in judging the placement status of objects such as grab parts, resulting in a low gripping success rate and affecting the operation efficiency of equipment.
The object grab position calculation method based on 3D point cloud data is adopted, and the object point cloud data is obtained through the linear laser displacement sensor, noise filtering and segmentation clustering are performed, the object placement status is judged and the grab position is calculated.
It improves the grasping efficiency of the robotic arm, achieves efficient and accurate grasping of objects, and improves the operation efficiency of the equipment.
Smart Images

Figure CN114004888B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of object grasping, and in particular to a method for calculating the position and posture of an object grasping based on 3D point cloud data. Background Art
[0002] The recognition efficiency and grasping success rate of objects are the key to determining whether the relevant automation products are successfully developed. Most of the current object recognition methods use cameras to obtain images for processing, which requires the establishment of a database in advance and has complex calculation methods. In particular, the placement status of objects such as parts cannot be correctly judged, resulting in a low grasping success rate, which seriously affects the operating efficiency of the equipment. In recent years, line laser sensors have become increasingly popular, and point cloud data processing algorithms have been continuously enriched. Compared with two-dimensional images, their advantages are high accuracy, depth information, and less affected by ambient light. They have broad application prospects in the field of positioning and grasping, such as logistics sorting, luggage handling, factory loading and unloading, etc.
[0003] How to use point cloud data to calculate the grasping posture of objects has become a research direction in this field. Summary of the invention
[0004] The purpose of the present invention is to provide a method for calculating the grasping posture of an object based on 3D point cloud data, which realizes efficient grasping by automatically judging the placement state and grasping posture of the object on the assembly line.
[0005] To achieve the above object, the technical solution adopted by the present invention is:
[0006] A method for calculating the position and posture of an object grasped based on 3D point cloud data comprises the following steps:
[0007] Step 1: Object point cloud data extraction;
[0008] The object to be measured and the assembly line are scanned by a line laser displacement sensor to obtain point cloud data of the object and the conveyor plane, and then the point cloud data of the object is extracted based on the height information;
[0009] Step 2: Filter point cloud noise based on the number of neighborhood points;
[0010] The Euclidean distance between each point in the point cloud data and its surrounding neighboring points is calculated in sequence, and the number of neighboring points within the threshold distance is counted. If the number is less than the set threshold, the point is judged to be a noise point in the overall point cloud data.
[0011] Step 3: Point cloud segmentation and clustering processing;
[0012] Calculate the Euclidean distance between the current point and the known reference point. If the distance is greater than the set distance threshold, they are different classes; if the distance is less than the threshold, they are the same class.
[0013] Step 4: Determine the object placement state and extract the grasping posture;
[0014] Object placement status judgment: First, extract the partial point cloud data of the object based on the height information of the single object point cloud, and then calculate its minimum circumscribed rectangle to obtain the length and width of the local object; compare the local length and width with the preset length and width values to judge the size of the local object, and then determine the object's placement status: when the difference between the length and width of the minimum circumscribed rectangle of the partial point cloud and the preset value is less than the threshold, it is judged to be in the correct placement state, otherwise it is judged that the object is not in the expected placement state;
[0015] For objects that are correctly placed, their center points and their placement angles are calculated to obtain the gripping posture of the robot arm.
[0016] Calculation of the object grabbing center point: Take the highest point of the point cloud data of the object in the correct placement state on the Z axis, intercept the point set data at a certain height downward, and calculate the center point of this part of the point set data as the grabbing center point A;
[0017] Object angle calculation: For an object placed correctly, find the midpoint B of the minimum circumscribed rectangle of the entire object point cloud model, and subtract it from the grab center point A to obtain a vector Calculating vectors The angle formed with the positive direction of the X-axis has a value range of (-180°, 180°], where the vector is positive if it is in the first and second quadrants and negative if it is in the third and fourth quadrants.
[0018] In step 2, when determining the number of neighborhood points of a point, the calculation of the spatial Euclidean distance between points only determines the linear point set where the point is located and the two linear point sets on the left and right, that is, the three linear point sets obtained by scanning the current frame and the previous and next frames of the point.
[0019] 4. The specific steps of step 3 are as follows:
[0020] According to the order of point cloud data generation, the distance between each point in each linear point set of the point cloud and the known reference point is judged in turn, that is, the first point of the first linear point set is automatically classified as the first category, and the Euclidean distance between the second point of the linear point set and the first point is calculated. If it is less than the set distance threshold, the second point is classified as the first category, and the classified point is set as the latest reference point; if it is greater than the threshold, the previous linear point set of the first category point set is searched to see if there is a neighboring point of the point. If so, it is classified as the first category point set, and the point is set as the latest reference point of the first category; if not, it is classified as the second category, and the point is set as the latest reference point of the second category;
[0021] Calculate the Euclidean distance between the third point and the first and second reference points. When the distance to the first reference point is less than the threshold, the point is classified into the first category. Otherwise, search the previous line point set of the first point set to see if there is a neighboring point of the point. If so, it is classified into the first point set. If not, determine the Euclidean distance between the point and the second reference point. If it is less than the threshold, it is classified into the second category. If it is greater than the threshold, search the previous line point set of the second point set to see if there is a neighboring point of the point. If so, it is classified into the second point set and the point is set as the latest reference point of the second category. If not, it is classified into the third point set.
[0022] Similarly, each point of a linear point set is calculated in sequence. When the first linear point set is judged, the second linear point set is judged, and so on.
[0023] After clustering is completed, the distance between the center points of each class is determined. If it is less than the threshold, they are merged into the same class.
[0024] After adopting the above scheme, the present invention first obtains the point cloud data of the object, then performs noise filtering on the point cloud data based on the number of neighborhood points, and then performs segmentation and clustering processing on the point cloud data based on the Euclidean distance threshold to determine the number of objects, and finally determines whether the state of each group of objects meets the grasping requirements based on the minimum circumscribed rectangle, and then calculates the grasping posture for those that meet the requirements. It can be seen that before calculating the grasping posture, the present invention first judges the state of the object, and only the objects that meet the grasping requirements will perform the grasping posture calculation, which can improve the grasping efficiency of the robot arm and achieve efficient and accurate grasping of objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is a flow chart of the present invention;
[0026] Figure 2 Schematic diagram for object point cloud data extraction;
[0027] Figure 3 This is a schematic diagram of the current point set of point cloud data;
[0028] Figure 4 This is the object point cloud filtering effect diagram;
[0029] Figure 5 This is the effect diagram of object point cloud segmentation and clustering;
[0030] Figure 6 A schematic diagram of the placement of objects (not the expected placement);
[0031] Figure 7 Schematic diagram for grasping the center point calculation;
[0032] Figure 8 Schematic diagram of object grasping pose calculation. DETAILED DESCRIPTION
[0033] like Figure 1 The present invention discloses a method for calculating the object grasping posture based on 3D point cloud data, which comprises the following steps:
[0034] Step 1: Object point cloud data extraction;
[0035] The object is placed on the surface of the assembly line, and the line laser displacement sensor is used to scan the object and the assembly line to obtain the point cloud data of the object and the conveyor plane, and then the point cloud data of the object is extracted based on the height information. Because the object is higher than the conveyor plane, the point cloud data of the object can be directly extracted based on the height information.
[0036] Figure 2 In the point cloud data extraction diagram shown, the object is a terminal block.
[0037] Step 2: Filter point cloud noise based on the number of neighborhood points;
[0038] The point cloud noise filtering method based on the number of neighboring points is implemented based on the Euclidean distance. The idea is that the point distribution is relatively dense, and the statistical feature is that the distance between it and the neighboring points is small. If the distance between a point and some of its neighboring points is too large, it can be determined as a noise point.
[0039] Specifically, the Euclidean distance between each point in the point cloud data and the surrounding neighborhood points is calculated in turn, and the number of neighborhood points within the threshold distance is counted. If the number is less than the set threshold, the point is judged to be a noise point in the overall point cloud.
[0040] The present invention is based on line laser scanning to obtain point cloud data, so when determining the number of neighborhood points of a point, the calculation of the spatial Euclidean distance between points only determines the linear point set where the point is located and the two linear point sets on the left and right ( Figure 3 Schematic diagram), that is, three linear point sets obtained by scanning the current frame and the previous and next frames of the point, which can reduce the amount of calculation.
[0041] The point cloud data after filtering out noise points is shown below: Figure 4 As shown in the figure (taking the terminal block as an example), the filtered point cloud data effectively filters out the noise points generated by the laser reflection, which is helpful for the subsequent object clustering and grasping posture judgment.
[0042] Step 3: Point cloud segmentation and clustering processing;
[0043] After filtering the object point cloud, it is necessary to determine how many groups of objects the point cloud data consists of and whether the objects are too close to be captured. Therefore, the point cloud data needs to be segmented and clustered.
[0044] In the present invention, point cloud segmentation and clustering processing is also based on the Euclidean distance method, and its principle is: calculate the Euclidean distance between the current point (unknown point) and the known reference point. If it is greater than the set distance threshold, they are different classes; if it is less than the threshold, they are the same class.
[0045] Specifically, the distance between each point in each linear point set of the point cloud and the known reference point is determined in turn according to the order in which the point cloud data is generated. That is, the first point of the first linear point set is automatically classified as the first category (a known point after classification), and the Euclidean distance between the second point of the linear point set and the first point is calculated. If it is less than the set distance threshold, the second point is classified as the first category, and the classified point is set as the latest reference point; if it is greater than the threshold, the previous linear point set of the first category of point set is searched to see if there is a neighboring point of the point (that is, a point with a distance less than the threshold). If so, it is classified as the first category of point set, and the point is set as the latest reference point of the first category; if not, it is classified as the second category, and the point is set as the latest reference point of the second category. Calculate the Euclidean distance between the third point and the first and second reference points (if any). When the distance to the first reference point is less than the threshold, the point is assigned to the first category. Otherwise, search the previous line point set of the first point set to see if there is a neighboring point of the point (i.e., a point whose distance is less than the threshold). If so, it is assigned to the first point set. If not, determine the Euclidean distance between the point and the second reference point. If it is less than the threshold, it is assigned to the second category. If it is greater than the threshold, search the previous line point set of the second point set to see if there is a neighboring point of the point. If so, it is assigned to the second point set, and the point is set as the latest reference point of the second category. If not, it is assigned to the third point set. Similarly, calculate each point of a line point set in turn. When the first line point set is judged, start judging the second line point set (the previous line point set starts to exist at this time), and so on. After clustering is completed, it is also necessary to determine the distance between the center points of each class. If it is less than the threshold, they are merged into the same class.
[0046] The point cloud data after data processing is shown in the figure Figure 5 As shown (also taking the wiring terminal as an example), from Figure 5 It can be clearly seen that after segmentation and clustering processing, the point cloud data of different objects can be clearly segmented, and the point cloud data of a single object can be obtained.
[0047] Step 4: Determine the object placement state and extract the grasping posture;
[0048] After acquiring the point cloud data of a single object, it is necessary to determine the placement state of the object to determine whether it can be grasped. The present invention determines this by determining the length and width of the minimum circumscribed rectangle of the intercepted portion of the point cloud data.
[0049] Judgment of object placement status: First, extract the partial point cloud data of the object based on the point cloud height information of a single object (cut the point cloud data of a certain height from the highest point downward according to the point cloud height information. The height is preset according to the actual situation such as the size of the gripper), and then calculate its minimum circumscribed rectangle to obtain the length and width of the local object; compare the local length and width with the preset length and width values to determine the size of the local object, and then determine the placement status of the object: when the difference between the length and width of the minimum circumscribed rectangle of the partial point cloud and the preset value is less than the threshold, it is judged to be the correct placement state, otherwise it is judged that the placement state of the object is not the expected placement state (such as Figure 6 ). For the correctly placed object, its center point and its placement angle (the angle of the long side of the smallest circumscribed rectangle relative to the positive direction of the X-axis) are calculated to obtain the gripping posture of the robot arm.
[0050] Calculation of object grabbing center point: Take the highest point of the correctly placed object point cloud data on the Z axis, intercept the point set data at a set height, and calculate the center point of this part of the point set data as the grabbing center point A, such as Figure 7 The setting height is preset according to the actual situation such as the size of the gripper.
[0051] Object angle calculation: For an object placed correctly, find the midpoint B of the minimum circumscribed rectangle of the entire object point cloud model, and subtract it from the grab center point A to obtain a vector Calculating vectors The angle formed with the positive direction of the X-axis has a value range of (-180°, 180°], where the vector is positive if it is in the first and second quadrants and negative if it is in the third and fourth quadrants. The calculation effect is as follows Figure 8 shown.
[0052] The grasping posture of the robot arm can be calculated through the above grasping center point and grasping angle, and the robot arm can grasp the object efficiently through this grasping posture.
[0053] In summary, the present invention first obtains the point cloud data of the object, then performs noise filtering on the point cloud data based on the number of neighborhood points, and then performs segmentation and clustering processing on the point cloud data based on the Euclidean distance threshold to determine the number of objects, and finally determines whether the state of each group of objects meets the grasping requirements based on the minimum circumscribed rectangle, and then calculates the grasping posture for those that meet the requirements. It can be seen that before calculating the grasping posture, the present invention first judges the state of the object, and only the objects that meet the grasping requirements will perform the grasping posture calculation, which can improve the grasping efficiency of the robot arm and achieve efficient and accurate grasping of objects.
[0054] The above description is merely an embodiment of the present invention and does not limit the technical scope of the present invention. Therefore, any minor modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A method for calculating the position and posture of an object grasped based on 3D point cloud data, characterized in that: The method comprises the following steps: Step 1: Object point cloud data extraction; The object to be measured and the assembly line are scanned by a line laser displacement sensor to obtain point cloud data of the object and the conveyor plane, and then the point cloud data of the object is extracted based on the height information; Step 2: Filter point cloud noise based on the number of neighborhood points; The Euclidean distance between each point in the point cloud data and its surrounding neighboring points is calculated in sequence, and the number of neighboring points within the threshold distance is counted. If the number is less than the set threshold, the point is judged to be a noise point in the overall point cloud data. Step 3: Point cloud segmentation and clustering processing; Calculate the Euclidean distance between the current point and the known reference point. If the distance is greater than the set distance threshold, they are different classes; if the distance is less than the threshold, they are the same class. Step 4: Determine the object placement state and extract the grasping posture; Object placement status judgment: First, extract the object's partial point cloud data based on the height information of the single object point cloud, and then calculate its minimum circumscribed rectangle to obtain the length and width of the local object; compare the length and width of the local object with the preset length and width values to determine the size of the local object, and then determine the object's placement status: when the difference between the length and width of the local minimum circumscribed rectangle of the partial point cloud and the preset length and width values is less than the threshold, it is judged to be in the correct placement state, otherwise it is judged that the object's placement state is not the expected placement state; For objects that are correctly placed, their center points and their placement angles are calculated to obtain the gripping posture of the robot arm. Calculation of the object grabbing center point: Take the highest point of the point cloud data of the object in the correct placement state on the Z axis, intercept the point set data at a certain height downward, and calculate the center point of this part of the point set data as the grabbing center point A; Object angle calculation: For an object placed correctly, find the midpoint B of the minimum circumscribed rectangle of the entire object point cloud model, and subtract it from the grab center point A to obtain a vector , calculate the vector The angle formed with the positive direction of the X-axis, the value range is (-180°, 180°], where the vector is positive if it is in the first and second quadrants and negative if it is in the third and fourth quadrants; In step 2, when determining the number of neighboring points of a certain point, the calculation of the spatial Euclidean distance between points only determines the linear point set where the point is located and the two linear point sets on the left and right, that is, the three linear point sets obtained by scanning the current frame and the previous and next frames of the point; The step 3 is as follows: According to the order of point cloud data generation, the distance between each point in each linear point set of the point cloud and the known reference point is judged in turn, that is, the first point of the first linear point set is automatically classified as the first category, and the Euclidean distance between the second point of the linear point set and the first point is calculated. If it is less than the set distance threshold, the second point is classified as the first category, and the classified point is set as the latest reference point; if it is greater than the threshold, the previous linear point set of the first category point set is searched to see if there is a neighboring point of the point. If so, it is classified as the first category point set, and the point is set as the latest reference point of the first category; if not, it is classified as the second category, and the point is set as the latest reference point of the second category; Calculate the Euclidean distance between the third point and the first and second reference points. When the distance to the first reference point is less than the threshold, the point is classified into the first category. Otherwise, search the previous line point set of the first point set to see if there is a neighboring point of the point. If so, it is classified into the first point set. If not, determine the Euclidean distance between the point and the second reference point. If it is less than the threshold, it is classified into the second category. If it is greater than the threshold, search the previous line point set of the second point set to see if there is a neighboring point of the point. If so, it is classified into the second point set and the point is set as the latest reference point of the second category. If not, it is classified into the third point set. Similarly, each point of a linear point set is calculated in sequence. When the first linear point set is judged, the second linear point set is judged, and so on. After clustering is completed, the distance between the center points of each class is determined. If it is less than the threshold, they are merged into the same class.
