Material frame side face positioning method, device and equipment and storage medium

By obtaining the point cloud on the side of the material frame and calculating the rotation matrix and offset, the problem of being unable to position the material frame in the existing technology is solved, and accurate positioning and picking efficiency are achieved in a variety of scenarios.

CN118691679APending Publication Date: 2024-09-24XYZ ROBOTICS CHINA INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310295665.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing technology cannot effectively position the material frame without an overhead camera or the size of the material frame is uncertain, making it difficult for the picking robot to accurately sort and transport goods.

Method used

By obtaining multiple side point clouds of the material frame, clustering to generate side planes, detecting angles and grouping them, determining the rotation matrix and offset, and realizing the positioning of the material frame in the workspace coordinate system.

Benefits of technology

In the absence of an overhead camera or uncertainty in the size of the material frame, the accurate positioning of the material frame is achieved, improving the operating efficiency and accuracy of the picking robot in various scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691679A
    Figure CN118691679A
Patent Text Reader

Abstract

The invention provides a material frame side face positioning method and device, equipment and a storage medium, and the method comprises the steps: obtaining a plurality of side face point clouds of a material frame, and generating a corresponding side face plane according to each side face point cloud cluster; the angles of the side planes are detected, the side planes are grouped according to the angles of the side planes, and each group comprises a parallel plane group formed by two parallel side planes or a single side plane; determining a rotation matrix of the material frame relative to a working space coordinate system according to the vector of each group of side planes; and rotating the side point cloud of the material frame according to the rotation matrix, then determining the central point of the material frame according to the side plane, and further determining the offset of the material frame relative to the working space coordinate system, namely realizing the positioning of the material frame. According to the invention, the material frame can be positioned under various conditions that there is no overhead camera, the matching effect of the overhead camera is poor, the size of the material frame is uncertain, and template matching cannot be used for positioning.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] The picking robot is an intelligent device equipped with sensors, objective lenses and electronic optical systems that can quickly sort and move goods.

[0003] More and more visual sensors and force sensors will be used in picking robots, and picking robots will become more and more intelligent. With the advancement of sensing and recognition systems, artificial intelligence and other technologies, robots are moving from being controlled in one direction to storing and applying data by themselves, and are gradually becoming information-based.

[0004] When goods are sorted and transported by a picking robot, it is necessary to capture images of the goods through a visual sensor, identify the images of the goods to determine the posture of the goods, and then the picking robot picks or transports the goods through a loaded clamp or suction cup.

[0005] In the prior art, the material frame is generally located first, and then the image recognition is performed on the goods in the material frame. However, in some usage scenarios, there is no condition to set up an overhead camera or the size of the incoming material frame is uncertain, and template matching cannot be used to locate the material frame. Therefore, a new solution is needed. Summary of the invention

[0006] In view of the defects in the prior art, an object of the present invention is to provide a material frame side positioning method, device, equipment and storage medium.

[0007] The material frame side positioning system provided by the present invention comprises the following steps:

[0008] Step S1: obtaining a plurality of side point clouds of the material frame, and generating a corresponding side plane according to clustering of each of the side point clouds;

[0009] Step S2: detecting the angle of the side plane, and grouping the side planes according to the angle of the side plane, wherein each group includes a parallel plane group formed by two parallel side planes or a single side plane;

[0010] Step S3: determining the rotation matrix of the material frame relative to the workspace coordinate system according to the direction quantities of each group of the side planes;

[0011] Step S4: Rotate the side point cloud of the material frame according to the rotation matrix, then determine the center point of the material frame according to the side plane, and then determine the offset of the material frame relative to the workspace coordinate system, that is, realize the positioning of the material frame.

[0012] Preferably, step S1 comprises the following steps:

[0013] Step S101: controlling a projector of the 3D camera module to project structured light toward the side of the material frame;

[0014] Step S102: controlling the light receiving sensor of the 3D camera module to receive the structured light reflected by the side of the material frame to generate a structured light pattern;

[0015] Step S103: Reconstructing and generating a side point cloud of the material frame according to the structured light pattern through a processor module of the 3D camera module;

[0016] Step S104: acquiring a plurality of side point clouds of the material frame, and generating a corresponding side plane according to clustering of each of the side point clouds.

[0017] Preferably, step S2 comprises the following steps:

[0018] Step S201: obtaining the number of the side planes, and triggering step S201 when the number of the side planes is between the interval [2, 4];

[0019] Step S202: detecting the angle between the side plane and the Z axis of the workspace coordinate system, and triggering step S203 when the angle between the side plane and the Z axis of the workspace coordinate system is less than a preset first angle threshold;

[0020] Step S203: Detecting the angle between the two side planes, and triggering step S204 when the angle is less than a second angle threshold or greater than a third angle threshold;

[0021] Step S204: grouping the side planes according to their angles, each group including two parallel side planes or a single side plane.

[0022] Preferably, step S3 comprises the following steps:

[0023] Step S301: obtaining the side planes in each group, and generating a normal vector of each side plane;

[0024] Step S302: generating a feature vector matrix according to the normal vectors of the plurality of side planes, decomposing the feature vector matrix and extracting feature directions to determine the Z-axis direction of the material frame;

[0025] Step S303: Determine the X-axis direction of the material frame according to a set of parallel side planes, determine the Y-axis direction of the material frame according to the X-axis and Z-axis directions of the material frame, and then generate a rotation matrix of the material frame relative to the workspace coordinate system.

[0026] Preferably, step S4 comprises the following steps:

[0027] Step S401: rotating the side plane of the material frame according to the rotation matrix so that the width W of the side plane of the material frame corresponds to the X axis, and the length L corresponds to the Y axis;

[0028] Step S402: Acquire the number of the side planes. When there is a group of the parallel planes in one direction, trigger step S403. When there is one side plane in one direction, trigger step S404.

[0029] Step S403: two intersection points formed by the straight lines passing through the origin of the material frame and perpendicularly intersecting the parallel surface group are used as the center point coordinates in the direction; two intersection points formed by the parallel surface group in another direction and the straight line passing through the origin of the material frame are used as the center point coordinates in another direction; and the offset of the material frame is determined according to the center point coordinates in the two directions;

[0030] Step S404: Extrapolate W / 2 along the straight line formed by the intersection of the straight line passing through the origin of the material frame and perpendicularly intersecting the side plane corresponding to the X-axis as the center point coordinate in that direction, extrapolate L / 2 along the normal vector formed by the intersection of the side plane corresponding to the Y-axis and the straight line passing through the origin of the material frame as the center point coordinate in another direction, and determine the offset of the material frame according to the center point coordinates in the two directions.

[0031] Preferably, the step S401 includes the following steps:

[0032] Step S4011: determining the length L, width W, and height H of the material frame according to the side plane, wherein the length L is greater than the width W, the X-axis corresponds to the length L, and the Y-axis corresponds to the width W;

[0033] Step S4012: When there is only one side plane, when the area of ​​the side plane is closer to W × H, confirm that the rotation matrix is ​​correct, otherwise rotate the side plane 90 degrees;

[0034] Step S4013: when there is a set of parallel planes, generate the distance between the two parallel side planes, if the distance is closer to W, the rotation matrix is ​​considered correct, otherwise the side plane is rotated 90°;

[0035] Step S4014: When there are two groups of parallel surfaces, generate the distance between the two parallel side planes as the width w′ and length l′. If ||(Ww′, Ll′)||2<||(Lw′, Wl′)||2, the rotation matrix is ​​considered correct, otherwise the side plane is rotated 90°.

[0036] Preferably, the method further comprises the step of detecting the parallel surface group:

[0037] When the number of the side planes is 2 and the number of the parallel surface group is 0, it is determined that the classification of the parallel surface group is correct, otherwise an error signal is issued;

[0038] When the number of the side planes is 3 and the number of the parallel surface group is 1, it is determined that the classification of the parallel surface group is correct, otherwise an error signal is issued;

[0039] When the number of the side planes is 4 and the number of the parallel surface groups is 2, it is determined that the classification of the parallel surface groups is correct, otherwise an error signal is issued.

[0040] The material frame side positioning device provided by the present invention includes the following modules:

[0041] A side plane generation module, used to obtain multiple side point clouds of the material frame, and generate a corresponding side plane according to clustering of each side point cloud;

[0042] A plane grouping module, used for detecting the angle of the side plane, and grouping the side planes according to the angle of the side plane, wherein each group includes two parallel side planes or a single side plane;

[0043] A rotation matrix generating module, used for determining the rotation matrix of the material frame relative to the workspace coordinate system according to the direction quantity of each group of the side planes;

[0044] The offset generation module is used to rotate the side point cloud of the material frame according to the rotation matrix, and then determine the center point of the material frame according to the side plane, and then determine the offset of the material frame relative to the workspace coordinate system, that is, to achieve the positioning of the material frame.

[0045] The material frame side positioning device provided by the present invention comprises:

[0046] processor;

[0047] a memory module in which executable instructions of the processor are stored;

[0048] Wherein, the processor is configured to execute the steps of the material frame side positioning system by executing the executable instructions.

[0049] The computer-readable storage medium provided according to the present invention is used to store a program, and when the program is executed, the steps of the material frame side positioning system are implemented.

[0050] Compared with the prior art, the present invention has the following beneficial effects:

[0051] In the present invention, different side point clouds of the material frame captured by a 3D camera are obtained, and the rotation matrix and offset of the material frame relative to the workspace coordinate system are determined according to the plane point clouds of the side surfaces, that is, the position of the material frame is determined in the workspace coordinate system, so as to realize positioning of the material frame in various situations such as no overhead camera, poor matching effect of the overhead camera, uncertain size of the material frame, and inability to use template matching for positioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings in the following descriptions are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work. By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, purposes and advantages of the present invention will become more obvious:

[0053] Figure 1 It is a flowchart of the steps of the material frame side positioning method in an embodiment of the present invention;

[0054] Figure 2 A flowchart of the steps of obtaining multiple side point clouds of a material frame in an embodiment of the present invention;

[0055] Figure 3 A flowchart of the steps of determining a parallel surface group in an embodiment of the present invention;

[0056] Figure 4 A flowchart of the steps of generating a rotation matrix of a material frame relative to a workspace coordinate system in an embodiment of the present invention;

[0057] Figure 5 This is a flowchart of the steps of calculating the offset of the material frame relative to the workspace coordinate system in an embodiment of the present invention;

[0058] Figure 6 A flowchart of the steps of determining the long and short sides of a material frame in an embodiment of the present invention;

[0059] Figure 7 is a schematic diagram of the angle between the side planes in an embodiment of the present invention;

[0060] Figure 8 is a schematic diagram of grouping side planes in an embodiment of the present invention;

[0061] Fig. 9 It is a schematic structural diagram of an article picking robot that executes a material frame side positioning method in an embodiment of the present invention;

[0062] Fig.10 It is a schematic diagram of a module of a material frame side positioning device in an embodiment of the present invention;

[0063] Fig.11 is a schematic diagram of the structure of a material frame side positioning device in an embodiment of the present invention; and

[0064] Fig.12 It is a schematic diagram of the structure of a computer-readable storage medium in an embodiment of the present invention. DETAILED DESCRIPTION

[0065] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0066] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein, for example, can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0067] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0068] The following specific embodiments are used to describe in detail the technical solutions of the present invention and how the technical solutions of the present application solve the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0069] Figure 1 FIG. 1 is a flow chart of the steps of the material frame side positioning method according to an embodiment of the present invention. Figure 1 As shown, the material frame side positioning method provided by the present invention comprises the following steps:

[0070] Step S1: obtaining a plurality of side point clouds of the material frame, and generating a corresponding side plane according to clustering of each of the side point clouds;

[0071] In an embodiment of the present invention, the point cloud is a data set, each point in the data set represents a set of X, Y, Z geometric coordinates and an intensity value, which records the intensity of the return signal according to the reflectivity of the object surface. When these points are combined together, a point cloud is formed, that is, a collection of data points representing a 3D shape or object in space. The point cloud can also be automatically colored to achieve more realistic visualization.

[0072] Figure 2 FIG. 1 is a flowchart of steps for obtaining multiple side point clouds of a material frame in an embodiment of the present invention. Figure 2 As shown, step S1 includes the following steps:

[0073] Step S101: controlling a projector of the 3D camera module to project structured light toward the side of the material frame;

[0074] Step S102: controlling the light receiving sensor of the 3D camera module to receive the structured light reflected by the side of the material frame to generate a structured light pattern;

[0075] Step S103: Reconstructing and generating a side point cloud of the material frame according to the structured light pattern through a processor module of the 3D camera module;

[0076] Step S104: acquiring a plurality of side point clouds of the material frame, and generating a corresponding side plane according to clustering of each of the side point clouds.

[0077] In an embodiment of the present invention, the projector is a DLP projector, the light receiving sensor is a camera unit, which is used to collect the structured light pattern formed by the structured light on the material frame, and the processor module is used to control the synchronous switching of the projector and the camera unit, and generate a point cloud image or depth image of the material frame according to the structured light pattern.

[0078] In the embodiment of the present invention, the side plane is obtained by performing plane clustering on the point cloud using the RANSAC algorithm.

[0079] Step S2: detecting the angle of the side plane, and grouping the side planes according to the angle of the side plane, each group including two parallel side planes or a single side plane;

[0080] Figure 3 FIG. 1 is a flow chart of steps for determining a parallel surface group in an embodiment of the present invention. Figure 3 As shown, step S2 includes the following steps:

[0081] Step S201: obtaining the number of the side planes, and triggering step S201 when the number of the side planes is between the interval [2, 4];

[0082] Step S202: detecting the angle between the side plane and the Z axis of the workspace coordinate system, and triggering step S203 when the angle between the side plane and the Z axis of the workspace coordinate system is less than a preset first angle threshold;

[0083] Step S203: Detecting the angle between the two side planes, and triggering step S204 when the angle is less than a second angle threshold or greater than a third angle threshold;

[0084] Step S204: grouping the side planes according to their angles, each group including two parallel side planes or a single side plane.

[0085] In the embodiment of the present invention, when it is detected that the number of the side planes is zero or the number of the side planes is greater than 4, an error signal is issued and the process returns to step S1.

[0086] The origin of the workspace coordinate system is the bottom center of the tray carrying the material frame, the long side is the X-axis direction, the short side is the Y-axis direction, and the vertical direction is the Z-axis direction.

[0087] In the embodiment of the present invention, the angle α between all side planes and the Z axis is detected. If α> a preset angle threshold, it is considered that the box is deformed too much or tilted too much, and an error signal is issued. The first angle threshold can be set to any angle value between 10° and 20°.

[0088] When the number of side planes is 1, the angle β between the side planes is not calculated;

[0089] When the number of the side planes is greater than 1, the angle β between the two side planes is detected. When the angle β is between the second angle threshold and the third angle threshold, it is determined that the deformation of the material frame is too large and an error signal is issued.

[0090] The second angle threshold may be set to any angle value between 10° and 20°, and the third angle threshold may be set to any angle value between 70° and 80°.

[0091] When the angle β is smaller than the second angle threshold, the two side planes are parallel; when the angle β is larger than the third angle threshold, the two side planes are perpendicular.

[0092] In an embodiment of the present invention, the step of detecting the parallel surface group is further included:

[0093] When the number of the side planes is 2 and the number of the parallel surface group is 0, it is determined that the classification of the parallel surface group is correct, otherwise an error signal is issued;

[0094] When the number of the side planes is 3 and the number of the parallel surface group is 1, it is determined that the classification of the parallel surface group is correct, otherwise an error signal is issued;

[0095] When the number of the side planes is 4 and the number of the parallel surface groups is 2, it is determined that the classification of the parallel surface groups is correct, otherwise an error signal is issued;

[0096] Step S3: determining the rotation matrix of the material frame relative to the workspace coordinate system according to the direction quantities of each group of the side planes;

[0097] Figure 4 FIG. 1 is a flowchart of steps for generating a rotation matrix of a material frame relative to a workspace coordinate system in an embodiment of the present invention. Figure 4 As shown, step S3 includes the following steps:

[0098] Step S301: obtaining the side planes in each group, and generating a normal vector of each side plane;

[0099] Step S302: generating a feature vector matrix according to the normal vectors of the plurality of side planes, decomposing the feature vector matrix and extracting feature directions to determine the Z-axis direction of the material frame;

[0100] Step S303: Determine the X-axis direction of the material frame according to a set of parallel side planes, determine the Y-axis direction of the material frame according to the X-axis and Z-axis directions of the material frame, and then generate a rotation matrix of the material frame relative to the workspace coordinate system.

[0101] In the embodiment of the present invention, the number of side planes is k, and the normal direction of each side plane is Wherein, i is a natural number;

[0102] Extract the normal eigenvector N:

[0103]

[0104] Wherein, N is a matrix composed of normal vectors of multiple fitted side planes; is the normal vector of the kth side plane; k is the total number of side planes.

[0105] Eigenvector decomposition,

[0106] UΣU T =NN T

[0107] Among them, U is the result of eigenvector decomposition.

[0108] Extract the feature direction, which is the third column of the feature vector Select the first set of parallel planes, assuming they are the side planes numbered 0 and 2, and calculate the average normal direction as the x direction of the material frame coordinate system.

[0109]

[0110]

[0111]

[0112] in, To fit the normal vector of the side plane according to the material frame point cloud; is the x-axis direction vector of the material frame coordinate system; is the y-axis direction vector of the material frame coordinate system; is the z-axis direction vector of the material frame coordinate system; R is the rotation matrix of the material frame.

[0113] Step S4: Rotate the side point cloud of the material frame according to the rotation matrix, then determine the center point of the material frame according to the side plane, and then determine the offset of the material frame relative to the workspace coordinate system, that is, realize the positioning of the material frame.

[0114] In the embodiment of the present invention, the position of the material frame in the workspace coordinate system is determined according to the offset and the rotation matrix.

[0115] Figure 5 FIG. 1 is a flowchart of the steps of calculating the offset of the material frame relative to the workspace coordinate system in an embodiment of the present invention. Figure 5 As shown, step S4 includes the following steps:

[0116] Step S401: rotating the side plane of the material frame according to the rotation matrix so that the width W of the side plane of the material frame corresponds to the X axis, and the length L corresponds to the Y axis;

[0117] Step S402: Acquire the number of the side planes. When there is a group of the parallel planes in one direction, trigger step S403. When there is one side plane in one direction, trigger step S404.

[0118] Step S403: two intersection points formed by the straight lines passing through the origin of the material frame and perpendicularly intersecting the parallel surface group are used as the center point coordinates in the direction; two intersection points formed by the parallel surface group in another direction and the straight line passing through the origin of the material frame are used as the center point coordinates in another direction; and the offset of the material frame is determined according to the center point coordinates in the two directions;

[0119] Step S404: Extrapolate W / 2 along the straight line formed by the intersection of the straight line passing through the origin of the material frame and perpendicularly intersecting the side plane corresponding to the X-axis as the center point coordinate in that direction, extrapolate L / 2 along the normal vector formed by the intersection of the side plane corresponding to the Y-axis and the straight line passing through the origin of the material frame as the center point coordinate in another direction, and determine the offset of the material frame according to the center point coordinates in the two directions.

[0120] In the embodiment of the present invention, step S401 includes the following steps:

[0121] Step S4011: determining the length L, width W, and height H of the material frame according to the side plane, wherein the length L is greater than the width W, the X-axis corresponds to the length L, and the Y-axis corresponds to the width W;

[0122] Step S4012: When there is only one side plane, when the area of ​​the side plane is closer to W × H, confirm that the rotation matrix is ​​correct, otherwise rotate the side plane 90 degrees;

[0123] Step S4013: when there is a set of parallel planes, generate the distance between the two parallel side planes, if the distance is closer to W, the rotation matrix is ​​considered correct, otherwise the side plane is rotated 90°;

[0124] Step S4014: When there are two groups of parallel surfaces, generate the distance between the two parallel side planes as the width w′ and length l′. If ||(Ww′, Ll′)||2<||(Lw′, Wl′)||2, the rotation matrix is ​​considered correct, otherwise the side plane is rotated 90°.

[0125] In the embodiment of the present invention, when calculating the rotation matrix of the material frame coordinate system, the normal direction corresponding to the first group of parallel surfaces is the x-axis direction of the material frame coordinate system, and the normal direction corresponding to the second group of parallel surfaces is the y-axis direction.

[0126] In the embodiment of the present invention, when calculating the offset, the x-axis corresponding direction of the material frame coordinate system is controlled to be the length L of the material frame, and the y-axis corresponding direction of the material frame coordinate system is controlled to be the length W of the material frame. However, when calculating the rotation matrix, it cannot be guaranteed that the x-axis corresponding direction of the material frame coordinate system is the length L. It is possible that the x-axis of the material frame coordinate system corresponds to the width W and the y-axis direction corresponds to the length L, and it is necessary to determine the inversion.

[0127] In the embodiment of the present invention, when there are two side planes, by comparing the areas of the two side planes, if the side area corresponding to the x-direction is smaller, the rotation matrix is ​​considered to be correct, otherwise the rotation matrix is ​​rotated 90°.

[0128] In an embodiment of the present invention, when there is a parallel surface group in one direction, the intersection point formed by a straight line passing through the origin of the workspace coordinate system and perpendicular to the parallel surface group and the parallel surface group is determined, and then the first midpoint coordinates of the two intersection points are determined, and another parallel surface group is fitted according to the parallel surface group, and then the second midpoint coordinates are determined, and the center point of the material frame is determined according to the first midpoint coordinates and the second midpoint coordinates, that is, the offset is generated;

[0129] When there is only one side plane in one direction, determine the intersection of the side plane and a straight line perpendicular to the side plane and the origin of the workspace coordinate system; when the side plane corresponds to the x-axis of the material frame coordinate system, extrapolate W / 2 from the intersection along the straight line to generate the first midpoint coordinate; when the side plane corresponds to the y-axis of the material frame coordinate system, extrapolate L / 2 from the intersection along the straight line to generate the second midpoint coordinate; determine the center point of the material frame based on the first midpoint coordinate and the second midpoint coordinate, and generate the offset.

[0130] Fig. 9 FIG. 1 is a schematic diagram of the structure of an article picking robot according to a material frame side positioning method in an embodiment of the present invention. Fig. 9 As shown, the article picking robot provided by the present invention also includes:

[0131] The first unit and the second unit are used for storing and / or transporting materials;

[0132] A depth camera 300, whose visual scanning area covers at least the first unit of storage or transportation of the material, is used to visually scan the material, collect the depth image of the material, and generate the posture information and storage position of the material according to the depth image;

[0133] The robot unit 100 is in communication with the depth camera 300, and is used to receive the posture information and the storage location, determine the placement state of the target object according to the posture and the storage location, and pick up the target object according to the placement state.

[0134] In one embodiment of the present invention, the first unit may be configured as a storage unit 200;

[0135] The material storage unit 200 is used to store materials placed in disorder;

[0136] The robot unit 100 is communicatively connected to the depth camera 300, and includes an end effector 1 for receiving the posture information and the storage position, determining the placement state of the target object according to the posture and the storage position, and picking up the target object according to the placement state and transferring it to the second unit.

[0137] The second unit may be configured to transport or store the selected materials, such as a support frame for arranging the items neatly.

[0138] The second unit may also be provided with a transport unit, so that the robot unit 100 can move the target object on the support frame to the transport unit.

[0139] The depth camera 300 is arranged on a camera bracket.

[0140] Among them, the robot unit 100 includes a processor, and the processor is configured to execute the steps of the material frame side positioning method by executing executable instructions. By acquiring different side point clouds of the material frame photographed by a 3D camera, the rotation matrix and offset of the material frame relative to the workspace coordinate system are determined according to the plane point clouds of the side, that is, the position of the material frame is determined in the workspace coordinate system, so as to realize the positioning of the material frame in various situations such as there is no overhead camera, the matching effect of the overhead camera is very poor, the size of the material frame is uncertain, and template matching cannot be used for positioning.

[0141] Fig.10 FIG. 1 is a schematic diagram of a module of a material frame side positioning device according to an embodiment of the present invention. Fig.10 As shown, the material frame side positioning device provided by the present invention includes the following modules:

[0142] A side plane generation module, used to obtain multiple side point clouds of the material frame, and generate a corresponding side plane according to clustering of each side point cloud;

[0143] A plane grouping module, used for detecting the angle of the side plane, and grouping the side planes according to the angle of the side plane, wherein each group includes two parallel side planes or a single side plane;

[0144] A rotation matrix generating module, used for determining the rotation matrix of the material frame relative to the workspace coordinate system according to the direction quantity of each group of the side planes;

[0145] The offset generation module is used to rotate the side point cloud of the material frame according to the rotation matrix, and then determine the center point of the material frame according to the side plane, and then determine the offset of the material frame relative to the workspace coordinate system, that is, to achieve the positioning of the material frame.

[0146] The present invention also provides a material frame side positioning device, comprising a processor and a memory, wherein the memory stores executable instructions of the processor, wherein the processor is configured to execute the steps of the material frame side positioning method by executing the executable instructions.

[0147] As described above, in this embodiment, by obtaining point clouds of different sides of the material frame photographed by a 3D camera, the rotation matrix and offset of the material frame relative to the workspace coordinate system are determined according to the plane point clouds of the sides, that is, the position of the material frame is determined in the workspace coordinate system, so that the material frame can be positioned in various situations such as when there is no overhead camera, the matching effect of the overhead camera is very poor, the size of the material frame is uncertain, and template matching cannot be used for positioning.

[0148] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as systems, methods or program products. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "circuits", "modules" or "platforms".

[0149] Fig.11 Schematic diagram of the structure of the material frame side positioning device in the embodiment of the present invention. Fig.11 The electronic device 600 according to this embodiment of the present invention is described. Fig.11 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0150] like Fig.11 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different platform components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.

[0151] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the steps of various exemplary embodiments of the present invention described in the above-mentioned material frame side positioning method part of this specification. For example, the processing unit 610 can execute the following steps: Figure 1 Follow the steps shown in .

[0152] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .

[0153] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0154] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0155] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, cameras, depth cameras, etc.), one or more devices that enable a user to interact with the electronic device 600, and / or any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 through the bus 630. It should be understood that although Fig.11 Not shown, other hardware and / or software modules may be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.

[0156] In an embodiment of the present invention, a computer-readable storage medium is further provided for storing a program, and the steps of the material frame side positioning method are implemented when the program is executed. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary embodiments of the present invention described in the material frame side positioning method section of the present specification.

[0157] As shown above, when the program of the computer-readable storage medium of this embodiment is executed, it obtains point clouds of different sides of the material frame photographed by a 3D camera, and determines the rotation matrix and offset of the material frame relative to the workspace coordinate system based on the plane point clouds of the sides, that is, determines the position of the material frame in the workspace coordinate system, so as to realize positioning of the material frame in various situations such as when there is no overhead camera, the matching effect of the overhead camera is very poor, the size of the material frame is uncertain, and template matching cannot be used for positioning.

[0158] Fig.12 Schematic diagram of the structure of a computer-readable storage medium in an embodiment of the present invention. Fig.11As shown, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0159] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0160] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.

[0161] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0162] In an embodiment of the present invention, by acquiring point clouds of different sides of a material frame photographed by a 3D camera, the rotation matrix and offset of the material frame relative to a workspace coordinate system are determined based on the plane point clouds of the sides, that is, the position of the material frame is determined in the workspace coordinate system, thereby achieving positioning of the material frame in various situations such as when there is no overhead camera, the matching effect of the overhead camera is very poor, the size of the material frame is uncertain, and template matching cannot be used for positioning.

[0163] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other. The above description of the disclosed embodiments enables professionals and technicians in this field to implement or use the present invention. Various modifications to these embodiments will be obvious to professionals and technicians in this field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown in this article, but will comply with the widest range consistent with the principles and novel features disclosed herein.

[0164] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art may make various modifications or variations within the scope of the claims, which do not affect the essence of the present invention.

Claims

1. A material frame side positioning method, characterized in that: The steps include: Step S1: obtaining a plurality of side point clouds of the material frame, and generating a corresponding side plane according to clustering of each of the side point clouds; Step S2: detecting the angle of the side plane, and grouping the side planes according to the angle of the side plane, wherein each group includes a parallel plane group formed by two parallel side planes or a single side plane; Step S3: determining the rotation matrix of the material frame relative to the workspace coordinate system according to the direction quantities of each group of the side planes; Step S4: Rotate the side point cloud of the material frame according to the rotation matrix, then determine the center point of the material frame according to the side plane, and then determine the offset of the material frame relative to the workspace coordinate system, that is, realize the positioning of the material frame.

2. The material frame side positioning method according to claim 1, characterized in that: The step S1 comprises the following steps: Step S101: controlling a projector of the 3D camera module to project structured light toward the side of the material frame; Step S102: controlling the light receiving sensor of the 3D camera module to receive the structured light reflected by the side of the material frame to generate a structured light pattern; Step S103: Reconstructing and generating a side point cloud of the material frame according to the structured light pattern through a processor module of the 3D camera module; Step S104: acquiring a plurality of side point clouds of the material frame, and generating a corresponding side plane according to clustering of each of the side point clouds.

3. The material frame side positioning method according to claim 1, characterized in that: The step S2 comprises the following steps: Step S201: obtaining the number of the side planes, and triggering step S201 when the number of the side planes is between the interval [2, 4]; Step S202: detecting the angle between the side plane and the Z axis of the workspace coordinate system, and triggering step S203 when the angle between the side plane and the Z axis of the workspace coordinate system is less than a preset first angle threshold; Step S203: Detecting the angle between the two side planes, and triggering step S204 when the angle is less than a second angle threshold or greater than a third angle threshold; Step S204: grouping the side planes according to their angles, each group including two parallel side planes or a single side plane.

4. The material frame side positioning method according to claim 1, characterized in that: The step S3 comprises the following steps: Step S301: obtaining the side planes in each group, and generating a normal vector of each side plane; Step S302: generating a feature vector matrix according to the normal vectors of the plurality of side planes, decomposing the feature vector matrix and extracting feature directions to determine the Z-axis direction of the material frame; Step S303: Determine the X-axis direction of the material frame according to a set of parallel side planes, determine the Y-axis direction of the material frame according to the X-axis and Z-axis directions of the material frame, and then generate a rotation matrix of the material frame relative to the workspace coordinate system.

5. The material frame side positioning method according to claim 4, characterized in that: The step S4 comprises the following steps: Step S401: rotating the side plane of the material frame according to the rotation matrix so that the width W of the side plane of the material frame corresponds to the X axis, and the length L corresponds to the Y axis; Step S402: Acquire the number of the side planes. When there is a group of the parallel planes in one direction, trigger step S403. When there is one side plane in one direction, trigger step S404. Step S403: two intersection points formed by the straight lines passing through the origin of the material frame and perpendicularly intersecting the parallel surface group are used as the center point coordinates in the direction; two intersection points formed by the parallel surface group in another direction and the straight line passing through the origin of the material frame are used as the center point coordinates in another direction; and the offset of the material frame is determined according to the center point coordinates in the two directions; Step S404: Extrapolate W / 2 along the straight line formed by the intersection of the straight line passing through the origin of the material frame and perpendicularly intersecting the side plane corresponding to the X-axis as the center point coordinate in that direction, extrapolate L / 2 along the normal vector formed by the intersection of the side plane corresponding to the Y-axis and the straight line passing through the origin of the material frame as the center point coordinate in another direction, and determine the offset of the material frame according to the center point coordinates in the two directions.

6. The material frame side positioning method according to claim 5, characterized in that: The step S401 includes the following steps: Step S4011: determining the length L, width W, and height H of the material frame according to the side plane, wherein the length L is greater than the width W, the X-axis corresponds to the length L, and the Y-axis corresponds to the width W; Step S4012: When there is only one side plane, when the area of ​​the side plane is closer to W × H, confirm that the rotation matrix is ​​correct, otherwise rotate the side plane 90°; Step S4013: when there is a set of parallel planes, generate the distance between the two parallel side planes, if the distance is closer to W, the rotation matrix is ​​considered correct, otherwise the side plane is rotated 90°; Step S4014: When there are two groups of parallel surfaces, generate the distance between the two parallel side planes as the width w′ and length l′. If ||(Ww′, Ll′)||2<||(Lw′, Wl′)||2, the rotation matrix is ​​considered correct, otherwise the side plane is rotated 90°.

7. The material frame side positioning method according to claim 1, characterized in that: The method also includes the step of detecting the parallel surface group: When the number of the side planes is 2 and the number of the parallel surface group is 0, it is determined that the classification of the parallel surface group is correct, otherwise an error signal is issued; When the number of the side planes is 3 and the number of the parallel surface group is 1, it is determined that the classification of the parallel surface group is correct, otherwise an error signal is issued; When the number of the side planes is 4 and the number of the parallel surface groups is 2, it is determined that the classification of the parallel surface groups is correct, otherwise an error signal is issued.

8. A material frame side positioning device, characterized in that: Includes the following modules: A side plane generation module, used to obtain multiple side point clouds of the material frame, and generate a corresponding side plane according to clustering of each side point cloud; A plane grouping module, used for detecting the angle of the side plane, and grouping the side planes according to the angle of the side plane, wherein each group includes two parallel side planes or a single side plane; A rotation matrix generating module, used for determining the rotation matrix of the material frame relative to the workspace coordinate system according to the direction quantity of each group of the side planes; The offset generation module is used to rotate the side point cloud of the material frame according to the rotation matrix, and then determine the center point of the material frame according to the side plane, and then determine the offset of the material frame relative to the workspace coordinate system, that is, to achieve the positioning of the material frame.

9. A material frame side positioning device, characterized in that: include: processor; a memory module in which executable instructions of the processor are stored; Wherein, the processor is configured to execute the steps of the material frame side positioning method according to any one of claims 1 to 7 by executing the executable instructions.

10. A computer-readable storage medium for storing a program, characterized in that: When the program is executed, the steps of the material frame side positioning method described in any one of claims 1 to 7 are implemented.