Goods shelf leg filtering method and device, autonomous moving device and storage medium

By obtaining lidar data and QR code offset, decoding shelf information and filtering out shelf leg data, the problem of autonomous mobile devices misidentifying shelf legs as obstacles is solved, improving the accuracy of collision detection and mobile safety.

CN118691808APending Publication Date: 2024-09-24KUKA ROBOTICS GUANGDONG CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410615750.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

When an autonomous mobile device performs cargo handling tasks, it is easy to mistakenly identify the shelf legs as obstacles, resulting in frequent parking and reduced movement efficiency. Moreover, the existing technology method of setting up non-detection areas cannot ensure movement safety and may miss other obstacles. .

Method used

By obtaining the lidar data and the offset of the QR code relative to the camera, decoding the QR code to obtain shelf information, filtering out the lidar data belonging to the shelf legs, accurately identifying the shelf legs and avoiding interference with collision detection, improving detection accuracy and Security.

Benefits of technology

It achieves accurate identification and filtering of shelf legs, avoids parking problems caused by mistakenly identifying shelf legs as obstacles, and avoids missing other obstacles, improving the accuracy of collision detection and the mobile safety of autonomous mobile devices. sex and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691808A
    Figure CN118691808A
Patent Text Reader

Abstract

The embodiment of the invention provides a shelf leg filtering method and device, an autonomous mobile device and a storage medium, and relates to the technical field of navigation. According to the invention, laser radar data and the offset of a two-dimensional code relative to a camera can be obtained, and the two-dimensional code is located at the bottom of a goods shelf; decoding the two-dimensional code to obtain goods shelf information of the goods shelf; and according to the laser radar data, the offset and the shelf information, filtering the laser radar data belonging to shelf legs to obtain target laser radar data. According to the invention, the shelf leg can be accurately identified and the laser radar data belonging to the shelf leg can be filtered out, and excessive laser radar data cannot be filtered out, so that interference of the laser radar data belonging to the shelf leg to related applications (such as collision detection) is avoided, and missing detection of obstacles is avoided; and thus, the accuracy of related applications (such as collision detection) and the safety and efficiency of movement of the autonomous mobile device are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of navigation technology, and more specifically, to a shelf leg filtering method, device, autonomous mobile device and storage medium. Background Art

[0002] For example, when autonomous mobile devices such as autonomous mobile robots (AMRs) or automated guided vehicles (AGVs) perform cargo handling tasks, they involve shelves with shelf legs. For examples, see Figure 1 , Figure 1 A schematic diagram of a shelf with shelf legs is shown, where the shelf legs are used to support the shelf. The sensing device on the autonomous mobile device, such as a laser radar, can easily identify the shelf legs as obstacles and trigger the autonomous mobile device to stop frequently, resulting in low movement efficiency of the autonomous mobile device.

[0003] To overcome the technical problem of frequently stopping the rack due to mistakenly identifying the rack legs as obstacles, please refer to Figure 2 and Figure 3 , Figure 2 A schematic diagram of a non-detection zone in the related art is shown. Figure 3 A schematic diagram showing another non-detection zone in the related art is shown. Figure 2 and Figure 3 The shaded part in the figure is a non-detection zone. The related technology proposes to set a non-detection zone within a certain range around the autonomous mobile device according to the size of the shelf, and not perform collision detection on the non-detection zone. That is, obstacles in the non-detection zone do not trigger parking, thereby avoiding identifying the shelf legs as obstacles.

[0004] However, the inventors found in their research that the technical solution of setting up a non-detection zone in the related art has the following defects: ① If there are other obstacles outside the shelf legs in the non-detection zone, other obstacles will not trigger the autonomous mobile device to stop, which may cause the autonomous mobile device to collide with other obstacles, and the movement safety of the autonomous mobile device cannot be ensured. ② Please refer to Figure 4 and Figure 5 , Figure 4 Shows Figure 2 The schematic diagram of the shelf being tilted is shown. Figure 5 Shows Figure 3 The schematic diagram of the shelf being tilted is shown. Figure 4 and Figure 5The shaded area in the figure is the non-detection area. When a fixed non-detection area is used to filter the shelf legs, if the autonomous mobile device is tilted against the shelf, there is a certain angle between the shelf and the non-detection area, and the shelf legs may be outside the non-detection area. At this time, the autonomous mobile device will identify the shelf legs outside the non-detection area as obstacles and trigger the autonomous mobile device to stop. However, the defect of identifying the shelf legs as obstacles cannot be overcome. Summary of the invention

[0005] The embodiments of the present application propose a shelf leg filtering method, device, autonomous mobile device and storage medium to solve the above-mentioned technical problems.

[0006] In a first aspect, an embodiment of the present application provides a shelf leg filtering method, the method comprising: acquiring laser radar data and an offset of a two-dimensional code relative to a camera, the two-dimensional code being located at the bottom of the shelf; decoding the two-dimensional code to obtain shelf information of the shelf; and filtering out the laser radar data belonging to the shelf legs based on the laser radar data, the offset and the shelf information to obtain target laser radar data.

[0007] In the second aspect, an embodiment of the present application provides a shelf leg filtering device, which includes: an environmental perception module, used to obtain laser radar data and the offset of a two-dimensional code relative to a camera, wherein the two-dimensional code is located at the bottom of the shelf; a visual recognition module, used to decode the two-dimensional code to obtain shelf information of the shelf; a data filtering module, used to filter out the laser radar data belonging to the shelf legs according to the laser radar data, the offset and the shelf information, and obtain target laser radar data.

[0008] In a third aspect, an embodiment of the present application provides an autonomous mobile device, which includes: a camera, a laser radar, a memory, and a processor. The camera is used to identify a QR code at the bottom of a shelf. An application is stored in the memory. When the processor calls the application, a shelf leg filtering method is executed.

[0009] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having program code stored thereon, wherein the program code is configured to cause the processor to execute a shelf leg filtering method when called by a processor.

[0010] The shelf leg filtering method provided in the embodiment of the present application has the following technical effects: based on the laser radar data, the offset of the QR code relative to the camera and the shelf information, the shelf legs can be accurately identified and the laser radar data belonging to the shelf legs can be filtered out without filtering out too much laser radar data, thereby avoiding the interference of the laser radar data belonging to the shelf legs with related applications such as collision detection (such as the interference of identifying the shelf legs as obstacles), and avoiding the missed detection of obstacles (for example, the related technology filters out all laser radar data in the undetected area, which will miss the obstacles in the undetected area), thereby improving the accuracy of related applications such as collision detection and the safety and efficiency of the movement of autonomous mobile devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, not all embodiments. Based on the embodiments of the present application, all other embodiments and drawings obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0012] Figure 1 A schematic diagram of a shelf with shelf legs is shown;

[0013] Figure 2 A schematic diagram of a non-detection zone in the related art is shown;

[0014] Figure 3 A schematic diagram showing another non-detection zone in the related art is shown;

[0015] Figure 4 Shows Figure 2 The schematic diagram of the shelf shown is tilted;

[0016] Figure 5 Shows Figure 3 The schematic diagram of the shelf shown is tilted;

[0017] Figure 6 A schematic diagram of a process of filtering shelf legs provided in an embodiment of the present application is shown;

[0018] Figure 7 A schematic diagram showing the offset of a two-dimensional code relative to a camera provided by an exemplary embodiment of the present application is shown;

[0019] Figure 8 A schematic diagram of measuring the position of a shelf leg provided by an exemplary embodiment of the present application is shown;

[0020] Fig. 9 It shows that an embodiment of the present application provides Figure 6Schematic diagram of the process of step S130;

[0021] Fig.10 A schematic diagram showing a region of interest provided by an exemplary embodiment of the present application is shown;

[0022] Fig.11 A schematic diagram showing laser radar data within a region of interest provided by an exemplary embodiment of the present application is shown;

[0023] Fig.12 An exemplary embodiment of the present application provides Fig.12 Schematic diagram of the clusters obtained by clustering;

[0024] Fig.13 It shows that an embodiment of the present application provides Fig. 9 Schematic diagram of the process of step S133;

[0025] Fig.14 A schematic diagram of the structure of a shelf leg filtering device provided in one embodiment of the present application is shown;

[0026] Fig.15 A schematic structural diagram of an autonomous mobile device provided in one embodiment of the present application is shown. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0028] The shelf leg filtering method in the embodiment of the present application can be applied to a shelf leg filtering device or an autonomous mobile device. The shelf leg filtering device can be integrated into an autonomous mobile device. The autonomous mobile device can include but is not limited to AMR or AGV.

[0029] The autonomous mobile device is equipped with at least a camera and a laser radar. The camera is used to capture the QR code installed at the bottom of the shelf, and both the laser radar and the camera can be used to sense the environment around the autonomous mobile device. The specific deployment positions of the camera and the laser radar are not specifically limited in this application. For example, the camera can be located at the top of the autonomous mobile device (for example, the top center) and facing upward (in this case, the camera can be called an upper vision camera), and the laser radar can be located at the front of the autonomous mobile device. It can be understood that the types of shelves involved in this application are not limited, the types of QR codes are not limited, and the QR code is deployed at the bottom of the shelf and parallel to the shelf. For example, the QR code can be deployed at the bottom center of the shelf and parallel to the shelf.

[0030] See also Figure 6 , Figure 6The flowchart of the shelf leg filtering method provided by an embodiment of the present application is shown. The shelf leg filtering method may include steps S110 to S130.

[0031] Step S110: Acquire laser radar data and the offset of the two-dimensional code relative to the camera, where the two-dimensional code is located at the bottom of the shelf.

[0032] LiDAR data is also called LiDAR point cloud. The laser points obtained by a 360-degree scan of the LiDAR form a frame of LiDAR data. LiDAR data can be obtained through the LiDAR on the autonomous mobile device. After obtaining the LiDAR data, the LiDAR data can be converted to the vehicle coordinate system based on the LiDAR external parameters, that is, the transformation relationship between the LiDAR coordinate system and the vehicle coordinate system of the autonomous mobile device, for subsequent calculations.

[0033] The QR code is attached to the bottom of the shelf, for example, the QR code can be attached to the center of the bottom of the shelf. Each QR code has its corresponding QR code coordinate system, the origin of the QR code coordinate system is the center of the QR code, and the QR code coordinate system has an x-axis and a y-axis. The camera of the autonomous mobile device has a corresponding camera coordinate system, the origin of the camera coordinate system is the center of the camera field of view, and the camera coordinate system has an x-axis and a y-axis. As an example, see Figure 7 , Figure 7 FIG. 1 is a schematic diagram showing the offset of a two-dimensional code relative to a camera provided by an exemplary embodiment of the present application. Figure 7 In the figure, the rectangle represents the QR code, the coordinate system xoy represents the QR code coordinate system, and the coordinate system x'-o'-y' represents the camera coordinate system.

[0034] The QR code at the bottom of the shelf can be identified by a camera (e.g., an upper vision camera) on the autonomous mobile device to obtain the offset of the QR code relative to the camera. The offset of the QR code relative to the camera can refer to the offset of the center of the QR code relative to the center of the camera field of view. Figure 7 As shown, the offset may include the offset of the center of the QR code in the x direction from the center of the camera field of view (denoted as x), the offset y of the center of the QR code in the x direction from the center of the camera field of view (denoted as y), and the deflection angle between the x direction of the QR code and the x direction of the camera field of view (denoted as θ). That is, the offset may be expressed as (x, y, θ).

[0035] Step S120: Decode the QR code to obtain shelf information of the shelf.

[0036] In the embodiment of the present application, the QR code carries the shelf information of the shelf where it is located. The shelf information of the shelf can be pre-established according to the actual situation of each shelf, and the QR code corresponding to the shelf can be generated according to the shelf information of each shelf, and the QR code can be pasted on the bottom center of the shelf. The QR code can be captured by a camera on an autonomous mobile device, and then the QR code can be decoded to obtain the shelf information of the shelf. For example, the QR code has a black and white code block array, and the shelf information of the black and white code block array shelf is generated, carrying the shelf information of the shelf. The shelf information of the shelf can be obtained by decoding the black and white code block array of the QR code.

[0037] In an embodiment of the present application, the shelf information may include, but is not limited to: attribute information of the shelf, attribute information of the shelf legs, the position of the shelf legs, the total number of shelf legs, preset parameters corresponding to the shelf, and other information.

[0038] The attribute information of the shelf may include, but is not limited to, the size information of the shelf, the shape of the orthographic projection outline of the shelf on the ground (e.g., circular, rectangular), etc. The size information of the shelf may include the size of the orthographic projection outline of the shelf on the ground. For example, assuming that the orthographic projection outline of the shelf on the ground is a rectangle, the size information of the shelf may include the size of the rectangle.

[0039] The attribute information of the shelf legs may include, but is not limited to, the size information of the shelf legs, the shape of the orthographic projection outline of the shelf on the ground (hereinafter referred to as the shelf leg shape, such as a circle or a rectangle), etc. The size information of the shelf legs may include the size of the orthographic projection outline of the shelf legs on the ground. For example, assuming that the orthographic projection outline of the shelf legs on the ground is a rectangle, the size information of the shelf legs may include the side length of the rectangle. The orthographic projection outline of the shelf legs on the ground may be a regular shape or an irregular shape, and this application does not impose any specific limitation.

[0040] The shelf leg position of a shelf may refer to the coordinates of the center of the shelf leg in the QR code coordinate system. The shelf leg position may include the positions of all the shelf legs of the shelf. For example, assuming that the shelf has 4 shelf legs, there are 4 shelf leg positions. For another example, assuming that the shelf legs have 10, there are 10 shelf leg positions. For example, the shelf leg position of a shelf may be represented as (x l1 ,y l1 )、(x l2 ,y l2 ),……(x ln ,y ln ), where (x li ,y li ) represents the position of the i-th shelf leg, and n is the total number of shelf legs.

[0041] The position of each shelf leg can be measured in advance. For an example, please refer to Figure 8 , Figure 8A schematic diagram of measuring the position of a shelf leg provided by an exemplary embodiment of the present application is shown. Figure 8 The shelf shown includes 4 shelf legs 1-4, and the orthographic projection contours of shelf legs 1-4 on the ground are all square. Take shelf leg 2 as an example. Assuming that the distance between shelf leg 2 and the center of the QR code in the x direction is 1000 mm, the distance between shelf leg 2 and the center of the QR code in the y direction is 800 mm, and the width of the shelf leg is 150 mm, the shelf leg information corresponding to shelf leg 2 (including the position of shelf leg 2 and the size of its orthographic projection contour on the ground) can be expressed as (1000, -800, 150). According to the method of measuring shelf leg 2, the shelf leg information of all shelf legs of the shelf is measured, a number is set for each shelf leg, and the shelf leg information of each shelf leg is bound to the corresponding shelf leg number, and the shelf leg information shown in Table 1 can be obtained.

[0042] Table 1

[0043]

[0044]

[0045] The preset parameters corresponding to the shelf can be default data set in advance according to each shelf leg, which is used to filter out the lidar data belonging to the shelf legs. The preset parameters can be set in advance according to the shape and number of the shelf legs.

[0046] In some embodiments, all the shelf legs of the shelf have the same shape and size, and a preset parameter can be set, which is greater than or equal to the size of the shelf leg of the shelf. A circle formed with the center of the shelf leg as the center and the preset parameter as the radius completely surrounds the positive projection outline of the shelf leg on the ground. For example, assuming that the shape of the shelf leg is a rectangle, the preset parameter can be set to be greater than or equal to 1 / 2 of the long side of the rectangle (or the minimum circumscribed circle radius of the rectangle). For another example, assuming that the shape of the shelf leg is a circle, the preset parameter can be set to be greater than or equal to the radius of the circle. For another example, assuming that the shape of the shelf leg is an irregular shape, the preset parameter can be set to be greater than or equal to the radius of the minimum circumscribed circle of the irregular shape.

[0047] In other embodiments, the shelf legs have different shapes and sizes, and multiple preset parameters can be set according to the shapes and sizes of the multiple shelf legs, each shelf leg corresponds to a preset parameter, and the preset parameter corresponding to each shelf leg is greater than or equal to the size of the shelf leg. A circle formed with the center of the shelf leg as the center and the preset parameter as the radius completely surrounds the orthographic projection contour of the shelf leg on the ground.

[0048] Step S130: According to the laser radar data, the offset and the shelf information, filter out the laser radar data belonging to the shelf legs to obtain target laser radar data.

[0049] When generating a local obstacle map, the laser radar data belonging to the shelf legs can be filtered out according to the laser radar data, the offset and the shelf information to obtain the target laser radar data.

[0050] See also Fig. 9 , Fig. 9 It shows that an embodiment of the present application provides Figure 6 Schematic diagram of the process of step S130 in FIG. Step S130 may include steps S131 to S133.

[0051] Step S131: Determine the positions of M shelf legs of the shelf according to the offset of the QR code relative to the camera and the shelf information, where M is the total number of shelf legs of the shelf.

[0052] The M shelf leg positions of the shelf can be obtained from the shelf information; according to the offset of the QR code relative to the camera, the M shelf leg positions are offset compensated to obtain the M shelf leg positions after offset compensation. It can be understood that the steps after step S131 are all performed based on the offset compensated shelf leg positions. The present application can determine the actual position of the current shelf leg through the pre-established shelf information and the offset obtained by visual recognition, taking into account the following factors: Figure 4 and Figure 5 In the case where the autonomous mobile device deviates the top of the shelf, even if the autonomous mobile device deviates the top of the shelf, the accurate position of the shelf legs can be obtained through offset compensation, thereby ensuring the subsequent accurate filtering of the lidar data belonging to the shelf legs.

[0053] For example, the shelf leg position of the i-th shelf leg is recorded as (x li ,y li ), the offset of the QR code relative to the camera is recorded as (x, y, θ), and the offset compensation of each shelf leg position can be performed according to the following expression to obtain the offset-compensated shelf leg position of each shelf leg:

[0054]

[0055] Among them, (x ′ li ,y ′ li ) represents the position of the i-th shelf leg after offset compensation.

[0056] Step S132: Cluster the lidar data according to the shelf information to obtain N clusters, where N is a positive integer.

[0057] The contour information of the shelf can be obtained from the shelf information; according to the contour information of the shelf, the laser radar data is segmented into regions of interest to obtain regions of interest; the laser radar data within the regions of interest are clustered to obtain N clusters.

[0058] The shelf outline information may include the corner point position information of the orthographic projection outline of the shelf on the ground, and the corner point position information may reflect the shape and size of the orthographic projection outline of the shelf on the ground. The corner point position information may refer to the coordinates of the corner point in the QR code coordinate system. For an example, please refer to Fig.10 , Fig.10 A schematic diagram of an area of ​​interest provided by an exemplary embodiment of the present application is shown. Fig.10 In the figure, the position information of the corner points A, B, C, and D of the shelf are represented as (Xmax, Ymax), (Xmax, Ymin), (Xmin, Ymin), and (Xmin, Ymax) respectively.

[0059] exist Fig.10 In the figure, the area within the dotted box is the area of ​​interest. Fig.10 As shown, the region of interest completely surrounds the orthographic projection outline of the shelf on the ground, that is, the size of the region of interest is greater than or equal to the size of the orthographic projection outline of the shelf on the ground. The shape of the region of interest and the shape of the orthographic projection outline of the shelf on the ground can be the same or different.

[0060] In some embodiments, the position information of each corner point of the orthographic projection contour of the shelf on the ground can be directly used as the position information of each corner point of the region of interest to obtain the region of interest; the laser radar data in the region of interest is obtained to complete the segmentation of the region of interest. In this embodiment, the shape and size of the region of interest and the orthographic projection contour of the shelf on the ground are the same.

[0061] In other embodiments, in order to improve the accuracy of subsequent clustering of lidar data belonging to shelf legs (hereinafter referred to as shelf leg clustering), an outward expansion distance can be obtained; based on the corner point position information, the orthographic projection outline of the shelf on the ground is expanded outward by the outward expansion distance to obtain the area of ​​interest; the lidar data within the area of ​​interest is obtained to complete the segmentation of the area of ​​interest.

[0062] For example, Fig.10 In the figure, the orthographic projection of the shelf on the ground is a rectangle, such as Fig.10 As shown in the figure, the position information of the corner points A, B, C, and D of the shelf are represented as (Xmax, Ymax), (Xmax, Ymin), (Xmin, Ymin), and (Xmin, Ymax) respectively. Assuming that the expansion distance is d, the orthographic projection contour of the shelf on the ground can be expanded outward by d based on the position information of the corner points A, B, C, and D, thereby obtaining the region of interest. The region of interest is Fig.10 The area within the dashed box.

[0063] In some embodiments, the outward expansion distance may be a preset distance.

[0064] In other embodiments, the outward expansion distance may be a distance dynamically generated based on the computing power resources of the autonomous mobile device. Specifically, the outward expansion distance may be dynamically generated within a preset distance range according to the current computing power resources of the autonomous mobile device. Among them, the computing power resources are positively correlated with the outward expansion distance. The more computing power resources, the larger the outward expansion distance. The minimum value of the preset distance range is greater than or equal to 0, and the maximum value of the preset distance range may be set in advance according to actual needs. The maximum value is used to limit the outward expansion distance to avoid the outward expansion distance being too large, resulting in the calculation of too many laser radar point clouds outside the shelves, causing unnecessary waste of resources and affecting the accuracy of subsequent clustering of shelf legs. Compared with the preset fixed outward expansion distance, the outward expansion distance is dynamically generated according to the computing power resources of the autonomous mobile device, and the computing power resources of the autonomous mobile device can be flexibly utilized under the premise of ensuring the accuracy of the shelf leg clustering. On the one hand, when the computing power resources are abundant, a larger outward expansion distance is selected to improve the accuracy of the shelf leg clustering. On the other hand, when the computing power resources are tight, a smaller outward expansion distance is selected, which can reduce the amount of calculation and the delay in obtaining the target laser radar data under the premise of ensuring the accuracy of the shelf leg clustering, and ensure real-time collision detection as much as possible.

[0065] After the laser radar data in the area of ​​interest is obtained, the laser radar data can be clustered according to the shelf information to obtain N clusters. Specifically, the total number of shelf legs and the distance between each shelf leg and the center of the shelf can be obtained from the shelf information; according to the total number of shelf legs and the distance between each shelf leg and the center of the shelf, the laser radar data can be clustered to obtain N clusters.

[0066] In some embodiments, the maximum distance between each shelf leg and the center of the shelf can be obtained, and the clustering condition can be determined according to the total number of shelf legs and the maximum distance; based on the clustering condition, the laser radar data is clustered to obtain N clusters. For example, the clustering condition may include: ① the number of points in each cluster is greater than or equal to the total number of shelf legs; ② the distance between the center of each cluster and the point farthest from it is greater than or equal to the above maximum distance.

[0067] For examples, please refer to 11 and Fig.12 , Fig.11 A schematic diagram showing laser radar data within an area of ​​interest provided by an exemplary embodiment of the present application is shown. Fig.12 An exemplary embodiment of the present application provides Fig.12 Schematic diagram of the clusters obtained by clustering. Fig.11In the figure, the four laser points circled by the rectangular frame correspond to the four shelf legs of the shelf. Assuming that the maximum distance between the four shelf legs and the center of the shelf is 5 cm, the clustering conditions can be set as follows: ① The number of points in each cluster is greater than or equal to 4; ② The distance between the center of each cluster and the farthest point is greater than or equal to 5. Fig.11 By clustering, we can get Fig.12 The clusters shown.

[0068] It is understandable that as long as clustering can be performed based on the above clustering conditions, any clustering algorithm (such as a density clustering algorithm) can be used, and the present application does not limit the specific clustering algorithm.

[0069] Step S133: According to the N clusters and the M shelf leg positions, the laser radar data belonging to the shelf legs is filtered out to obtain the target laser radar data.

[0070] See also Fig.13 , Fig.13 It shows that an embodiment of the present application provides Fig. 9 Schematic diagram of the process of step S133 in FIG. Step S133 may include steps S1331 to S1333.

[0071] Step S1331: Filter out the real shelf leg cluster from the N clusters based on the distances between the N clusters and the M shelf leg positions.

[0072] The distance between each cluster in the N clusters and the M shelf leg positions can be determined to obtain the M distances corresponding to each cluster; from the N clusters, a cluster with at least one distance less than or equal to the distance threshold is selected as the real shelf leg cluster. The distance threshold can be set in advance according to the requirements for clustering accuracy.

[0073] In some embodiments, the distance between each cluster center and the M shelf leg positions can be calculated to obtain M distances corresponding to each cluster. For example, N clusters can be traversed and the position (coordinate) of each cluster center in the N clusters can be determined according to the following expression:

[0074]

[0075] Among them, (x cn ,y cn ) represents the location of each cluster center, k and n cn Both represent the total number of points in each cluster; (x cni ,y cni ) represents the coordinates of each point in each cluster.

[0076] It is possible to determine whether the M distances corresponding to each cluster are all greater than the distance threshold, and determine whether each of the N clusters is a real shelf leg cluster based on the judgment result. Specifically, for each cluster, if the M distances corresponding to the cluster are all greater than the distance threshold, it can be determined that the cluster is a false shelf leg cluster; if at least one of the M distances corresponding to the cluster is less than or equal to the distance threshold, it can be determined that the cluster is a real shelf leg cluster.

[0077] In some embodiments, the distance between the cluster and the shelf leg position may be the Euclidean distance. For example, the following expression may be used to detect whether each cluster is a real shelf leg cluster:

[0078]

[0079] Among them, (x cn ,y cn ) represents the position of each cluster center, (x ′ ln ,y ′ ln ) represents the position of the shelf leg (after offset compensation), and d represents the distance threshold.

[0080] After filtering out the real shelf leg clusters, the number of real shelf leg clusters can be counted.

[0081] Step S1332: Based on the positions of M shelf legs, obtain the number of shelf legs within the field of view of the laser radar.

[0082] It is possible to detect whether the M shelf leg positions are located within the field of view (FOV) of the laser radar, and determine the number of shelf legs within the field of view of the laser radar according to the detection results. For example, the number of shelf legs can be set to 0 by default, and each shelf leg position can be traversed. If the shelf leg position is within the field of view (FOV) of the laser radar, the number of shelf legs is accumulated by 1; if the shelf leg position is outside the field of view (FOV) of the laser radar, the number of shelf legs remains unchanged until the M shelf leg positions are traversed to obtain the number of shelf legs.

[0083] Step S1333: According to the number of shelf legs and the number of real shelf leg clusters, filter out the laser radar data belonging to the shelf legs to obtain the target laser radar data.

[0084] It is possible to detect whether the number of shelf legs and the number of real shelf leg clusters are the same; if the number of shelf legs and the number of real shelf leg clusters are the same, the data belonging to the shelf legs in the lidar data are filtered out according to the real shelf leg clusters to obtain target lidar data; if the number of shelf legs and the number of real shelf leg clusters are different, the data belonging to the shelf legs in the lidar data are filtered out according to the M shelf leg positions to obtain target lidar data.

[0085] In some embodiments, the number of shelf legs and the number of real shelf leg clusters are the same, indicating that the detection accuracy of the real shelf leg clusters is high, that is, all points in the real shelf leg clusters belong to the shelf legs. According to the real shelf leg clusters, filtering out the data belonging to the shelf legs in the laser radar data to obtain the target laser radar data may include: when generating a local obstacle map, directly filtering out all points in the real shelf leg clusters to obtain the target laser radar data.

[0086] In other embodiments, considering that some points belonging to shelf legs may not be clustered into the cluster (real shelf leg cluster) during clustering, in order to ensure that the laser radar data belonging to the shelf legs can be completely filtered out, the data belonging to the shelf legs in the laser radar data is filtered out according to the real shelf leg cluster, and the target laser radar data can be obtained by: when generating a local obstacle map, obtaining the distance between the point farthest from the center of the real shelf leg cluster and the center of the real shelf leg cluster, and determining the radius of the real shelf leg cluster; using the center of the real shelf leg cluster as the center of the circle and the radius of the real shelf leg cluster as the radius to generate a circular area; filtering out all laser radar data within the circular area to obtain the target laser radar data. The number of circular areas is the same as the number of real shelf leg clusters, and the center of each circular area is the center of the corresponding real shelf leg cluster.

[0087] In some embodiments, the distance between each point in the real shelf leg cluster and the center of the real shelf leg cluster can be calculated respectively, and the maximum distance among the calculated distances is used as the radius of the real shelf leg cluster.

[0088] In other embodiments, the distance between each point in the real shelf leg cluster and the center of the real shelf leg cluster can be calculated respectively, and the maximum distance among the calculated distances is added to the preset distance to obtain the radius of the real shelf leg cluster, so that the circular area can completely contain the laser radar data belonging to the shelf leg. The preset distance can be pre-set according to actual needs to expand the range of the circular area.

[0089] By filtering out the lidar data belonging to the shelf legs based on the real shelf leg clusters, the radius of the circular area used to filter out the lidar data belonging to the shelf legs can be flexibly adjusted according to actual conditions, thereby achieving the technical effect of accurately filtering out the lidar data belonging to the shelf legs.

[0090] In some embodiments, according to the M shelf leg positions, filtering out the data belonging to the shelf legs in the laser radar data to obtain the target laser radar data may include: when generating a local obstacle map, obtaining a preset parameter corresponding to the shelf from the shelf information; using the M shelf leg positions as the center of the circle and the preset parameter as the radius to generate M circular areas; filtering out all laser radar data within the M circular areas to obtain the target laser radar data. The preset parameter may be greater than or equal to the longest boundary among the boundaries of the orthographic projection contour of the shelf on the ground, or the preset parameter may be greater than or equal to the radius of the minimum circumscribed circle of the orthographic projection contour of the shelf on the ground.

[0091] It can be understood that although the area used to filter out the LiDAR data belonging to the shelf legs in the above embodiment is a circular area, in actual application, the area used to filter out the LiDAR data belonging to the shelf legs can also be set to an area of ​​other shapes, such as a rectangular area, etc. The present application does not limit the specific shape of the area used to filter out the LiDAR data belonging to the shelf legs.

[0092] Based on steps S110 to S130, according to the lidar data, the offset of the QR code relative to the camera and the shelf information, the shelf legs can be accurately identified and the lidar data belonging to the shelf legs can be filtered out without filtering out too much lidar data, thereby avoiding interference of the lidar data belonging to the shelf legs with related applications such as collision detection (such as interference with identifying the shelf legs as obstacles) and avoiding missed obstacles (for example, related technologies filter out all lidar data in the undetected area, which will miss obstacles in the undetected area), thereby improving the accuracy of related applications such as collision detection and the safety and efficiency of the movement of autonomous mobile devices.

[0093] In some embodiments, considering that the autonomous mobile device may encounter abnormal situations such as no stable laser data or inability to cluster when lifting the shelf, in order to ensure that the laser radar data belonging to the shelf legs can be filtered out, the shelf leg filtering method may also include the following steps: when the laser radar data is abnormal and / or the above clusters cannot be clustered based on the laser radar data according to the shelf information, the data belonging to the shelf legs in the laser radar data is filtered out according to the M shelf leg positions to obtain the target laser radar data. Based on this step, it can be ensured that the laser radar data belonging to the shelf legs can also be filtered out when the above abnormal situation occurs, avoiding the interference of the laser radar data belonging to the shelf legs on the collision detection, and improving the accuracy of the collision detection and the safety and efficiency of the movement of the autonomous mobile device.

[0094] In some embodiments, after obtaining the target LiDAR data (the LiDAR data after filtering out the LiDAR data belonging to the shelf legs), collision detection can be performed based on the target LiDAR data. Specifically, a local obstacle map can be generated based on the target LiDAR data; and collision detection can be performed based on the local obstacle map. The local obstacle map can be a grid map or other map, and the embodiments of the present application do not impose specific restrictions. Since the target LiDAR data can accurately reflect the obstacles around the autonomous mobile device other than the shelf legs, it can avoid missing obstacles, improve the accuracy of collision detection and the safety of the movement of the autonomous mobile device.

[0095] For example, a blank grid map can be generated, the target lidar data can be mapped to the grid map, the grayscale value of the grid with the target lidar data can be changed, and a local obstacle map can be obtained. The local obstacle map can reflect the distribution of obstacles in the environment. Therefore, collision detection can be performed based on the local obstacle map. It can be understood that there are many implementation methods for generating a local obstacle map based on target lidar data and performing collision detection based on the local obstacle map. You can refer to the relevant technology. This example only has an explanatory purpose. This application does not limit the specific implementation methods of generating a local obstacle map based on target lidar data and performing collision detection based on the local obstacle map.

[0096] See also Fig.14 , Fig.14 The schematic diagram of the structure of a shelf leg filtering device provided by an embodiment of the present application is shown. The shelf leg filtering device 100 can be integrated in an autonomous mobile device and used to perform a shelf leg filtering method. The shelf leg filtering device 100 can include: an environment perception module 110, a visual recognition module 120 and a data filtering module 130.

[0097] The environment perception module 110 is used to obtain laser radar data and the offset of the two-dimensional code relative to the camera, and the two-dimensional code is located at the bottom of the shelf.

[0098] The visual recognition module 120 is used to decode the QR code to obtain the shelf information of the shelf.

[0099] The data filtering module 130 is used to filter out the laser radar data belonging to the shelf legs according to the laser radar data, the offset and the shelf information to obtain the target laser radar data.

[0100] In some embodiments, the data filtering module 130 is also used to determine the M shelf leg positions of the shelf based on the offset and the shelf information, where M is the total number of shelf legs of the shelf; cluster the lidar data based on the shelf information to obtain N clusters, where N is a positive integer; and filter out the lidar data belonging to the shelf legs based on the N clusters and the M shelf leg positions to obtain target lidar data.

[0101] In some embodiments, the data filtering module 130 is further used to obtain M shelf leg positions of the shelf from the shelf information; and perform offset compensation on the M shelf leg positions according to the offset to obtain M shelf leg positions after offset compensation.

[0102] In some embodiments, the data filtering module 130 is also used to obtain the contour information of the shelf from the shelf information; segment the lidar data into regions of interest based on the contour information of the shelf to obtain regions of interest; and cluster the lidar data within the regions of interest to obtain N clusters.

[0103] In some embodiments, the contour information includes corner point position information of the orthographic projection contour of the shelf on the ground. The data filtering module 130 is also used to obtain an outward expansion distance, which is a pre-set distance or a distance dynamically generated based on the computing power resources of the autonomous mobile device; based on the corner point position information, the orthographic projection contour of the shelf on the ground is expanded outward by the outward expansion distance to obtain the area of ​​interest.

[0104] In some embodiments, the data filtering module 130 is also used to obtain the total number of shelf legs of the shelf and the distance between each shelf leg and the center of the shelf from the shelf information; cluster the lidar data according to the total number of shelf legs and the distance between each shelf leg and the center of the shelf to obtain N clusters.

[0105] In some embodiments, the data filtering module 130 is also used to filter out real shelf leg clusters from N clusters based on the distances between the N clusters and the M shelf leg positions; based on the M shelf leg positions, obtain the number of shelf legs within the field of view of the lidar; based on the number of shelf legs and the number of real shelf leg clusters, filter out the lidar data belonging to the shelf legs to obtain target lidar data.

[0106] In some embodiments, the data filtering module 130 is also used to determine the distance between each cluster in the N clusters and the M shelf leg positions to obtain M distances corresponding to each cluster; from the N clusters, select a cluster in which at least one distance among the M distances is less than or equal to the distance threshold as the real shelf leg cluster.

[0107] In some embodiments, the data filtering module 130 is also used to detect whether the number of shelf legs and the number of real shelf leg clusters are the same; if the number of shelf legs and the number of real shelf leg clusters are the same, the data belonging to the shelf legs in the lidar data are filtered out according to the real shelf leg clusters to obtain target lidar data; if the number of shelf legs and the number of real shelf leg clusters are different, the data belonging to the shelf legs in the lidar data are filtered out according to the M shelf leg positions to obtain target lidar data.

[0108] In some embodiments, the data filtering module 130 is also used to obtain the distance between the point farthest from the center of the real shelf leg cluster and the center of the real shelf leg cluster to determine the radius of the real shelf leg cluster; generate a circular area with the center of the real shelf leg cluster as the center of the circle and the radius of the real shelf leg cluster as the radius; filter out all lidar data within the circular area to obtain target lidar data.

[0109] In some embodiments, the data filtering module 130 is also used to filter out the data belonging to the shelf legs in the laser radar data according to the M shelf leg positions to obtain the target laser radar data when the laser radar data is abnormal and / or the cluster cannot be clustered based on the laser radar data according to the shelf information.

[0110] In some embodiments, the data filtering module 130 is also used to obtain preset parameters corresponding to the shelf from the shelf information; generate M circular areas with M shelf leg positions as the center of the circle and the preset parameters as the radius; filter out all lidar data within the M circular areas to obtain target lidar data.

[0111] In some embodiments, the data filtering module 130 is also used to filter out the laser radar data belonging to the shelf legs according to the laser radar data, the offset and the shelf information when generating a local obstacle map, so as to obtain target laser radar data.

[0112] In some embodiments, the shelf leg filtering device 100 may further include a collision detection module. The collision detection module is used to perform collision detection based on target laser radar data.

[0113] In some embodiments, the collision detection module 140 is further used to generate a local obstacle map based on the target lidar data; and perform collision detection based on the local obstacle map.

[0114] Those skilled in the art can clearly understand that the above device provided in the embodiment of the present application can implement the method provided in the embodiment of the present application. The specific working process of the above-described device and module can refer to the corresponding process of the method in the embodiment of the present application, which will not be repeated here.

[0115] In the embodiments provided in the present application, the coupling, direct coupling or communication connection between the modules shown or discussed may be indirect coupling or communication coupling through some interfaces, devices or modules, and may be electrical, mechanical or other forms, and the embodiments of the present application do not impose specific limitations on this.

[0116] In addition, each functional module in the embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.

[0117] See also Fig.15 , Fig.15 The schematic diagram of the structure of an autonomous mobile device provided by an embodiment of the present application is shown. The autonomous mobile device 200 may include: a camera 210, a laser radar 220, a memory 230 and a processor 240. The camera 210 is used to identify a QR code located at the bottom of the shelf. The camera 210 may be located at the top of the autonomous mobile device 200 and facing the direction. The laser radar 220 may be located at the front of the autonomous mobile device. An application is stored in the memory 230, and the application is configured to cause the processor 240 to execute the method provided by the embodiment of the present application when called by the processor 240.

[0118] The processor 240 may include one or more processing cores. The processor 240 uses various interfaces and lines to connect various parts of the entire autonomous mobile device 200, and is used to run or execute instructions, programs, code sets or instruction sets stored in the memory 230, and call to run or execute data stored in the memory 230, perform various functions of the autonomous mobile device 200, and process data.

[0119] The processor 240 can be implemented in at least one of the hardware forms of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 240 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 240, but may be implemented separately through a communication chip.

[0120] The memory 230 may include a random access memory (RAM) or a read-only memory (ROM). The memory 230 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 230 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may store data created by the autonomous mobile device 200 during use, etc.

[0121] The embodiment of the present application also provides a computer-readable storage medium, on which a program code is stored. The program code is configured to cause the processor to execute the method provided by the embodiment of the present application when called by the processor.

[0122] The computer-readable storage medium may be an electronic memory such as a flash memory, an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a hard disk or a ROM.

[0123] In some embodiments, the computer readable storage medium includes a non-volatile computer readable medium (Non-Transitory Computer-Readable Storage Medium, referred to as Non-TCRSM). The computer readable storage medium has a storage space for the program code that executes any method step in the above method. These program codes can be read from or written into one or more computer program products. The program code can be compressed in an appropriate form.

[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for filtering shelf legs, characterized in that: include: Obtaining lidar data and an offset of a QR code relative to a camera, wherein the QR code is located at the bottom of the shelf; Decoding the QR code to obtain shelf information of the shelf; According to the laser radar data, the offset and the shelf information, the laser radar data belonging to the shelf legs is filtered out to obtain the target laser radar data.

2. The method according to claim 1, characterized in that The step of filtering out the laser radar data belonging to the shelf legs according to the laser radar data, the offset, and the shelf information to obtain target laser radar data includes: Determine the positions of M shelf legs of the shelf according to the offset and the shelf information, where M is the total number of shelf legs of the shelf; Clustering the laser radar data according to the shelf information to obtain N clusters, where N is a positive integer; According to the N clusters and the M shelf leg positions, the lidar data belonging to the shelf legs are filtered out to obtain the target lidar data.

3. The method according to claim 2, characterized in that Determining the positions of the M shelf legs of the shelf according to the offset and the shelf information includes: Acquire the M shelf leg positions of the shelf from the shelf information; According to the offset, offset compensation is performed on the M shelf leg positions to obtain M shelf leg positions after offset compensation.

4. The method according to claim 2, characterized in that: The laser radar data is clustered according to the shelf information to obtain N clusters, including: Acquire the contour information of the shelf from the shelf information; According to the contour information of the shelf, segment the laser radar data into regions of interest to obtain regions of interest; The laser radar data within the region of interest is clustered to obtain N clusters.

5. The method according to claim 4, characterized in that The contour information includes the corner point position information of the orthographic projection contour of the shelf on the ground. The laser radar data is segmented into regions of interest according to the contour information of the shelf to obtain regions of interest, including: Acquire an outward expansion distance, where the outward expansion distance is a preset distance or a distance dynamically generated based on computing resources of the autonomous mobile device; Based on the corner point position information, the orthographic projection outline of the shelf on the ground is expanded outward by the outward expansion distance to obtain the region of interest.

6. The method according to claim 4, characterized in that The laser radar data is clustered according to the shelf information to obtain N clusters, including: From the shelf information, obtain the total number of shelf legs of the shelf and the distance between each shelf leg and the center of the shelf; The laser radar data is clustered according to the total number of the shelf legs and the distance between each shelf leg and the center of the shelf to obtain N clusters.

7. The method according to claim 2, characterized in that The method of filtering out the laser radar data belonging to the shelf legs according to the N clusters and the M shelf leg positions to obtain the target laser radar data includes: According to the distances between the N clusters and the M shelf leg positions, the real shelf leg clusters are selected from the N clusters; Based on the positions of M shelf legs, the number of shelf legs within the field of view of the laser radar is obtained; According to the number of shelf legs and the number of real shelf leg clusters, the laser radar data belonging to the shelf legs is filtered out to obtain the target laser radar data.

8. The method according to claim 7, characterized in that The method of selecting a real shelf leg cluster from the N clusters according to the distances between the N clusters and the M shelf leg positions includes: Determine the distance between each cluster in the N clusters and the M shelf leg positions, and obtain M distances corresponding to each cluster; From the N clusters, select the clusters whose M distances have at least one distance less than or equal to the distance threshold as the real shelf leg clusters.

9. The method according to claim 7, characterized in that: The method of filtering out the laser radar data belonging to the shelf legs according to the number of shelf legs and the number of real shelf leg clusters to obtain target laser radar data includes: Detect whether the number of shelf legs and the number of real shelf leg clusters are the same; If the number of shelf legs and the number of real shelf leg clusters are the same, data belonging to the shelf legs in the laser radar data are filtered out according to the real shelf leg clusters to obtain target laser radar data; If the number of shelf legs and the number of real shelf leg clusters are different, the data belonging to the shelf legs in the laser radar data are filtered out according to the positions of the M shelf legs to obtain the target laser radar data.

10. The method according to claim 9, characterized in that According to the real shelf leg cluster, filtering out the data belonging to the shelf legs in the laser radar data to obtain the target laser radar data includes: Obtain the distance between the point farthest from the center of the real shelf leg cluster and the center of the real shelf leg cluster, and determine the radius of the real shelf leg cluster; Generate a circular area with the center of the real shelf leg cluster as the center and the radius of the real shelf leg cluster as the radius; Filter out all the lidar data within the circular area to obtain the target lidar data.

11. The method according to claim 2, characterized in that The method further comprises: When the laser radar data is abnormal and / or the cluster cannot be clustered based on the laser radar data according to the shelf information, the data belonging to the shelf legs in the laser radar data is filtered out according to the M shelf leg positions to obtain the target laser radar data.

12. The method according to claim 9 or 11, characterized in that: According to the M shelf leg positions, the data belonging to the shelf legs in the laser radar data is filtered out to obtain the target laser radar data, including: Acquire preset parameters corresponding to the shelf from the shelf information; Using the M shelf leg positions as the center of the circle and the preset parameters as the radius, M circular areas are generated; All lidar data within the M circular areas are filtered out to obtain the target lidar data.

13. The method according to claim 1, characterized in that The step of filtering out the laser radar data belonging to the shelf legs according to the laser radar data, the offset, and the shelf information to obtain target laser radar data includes: When generating a local obstacle map, the laser radar data belonging to the shelf legs is filtered out according to the laser radar data, the offset and the shelf information to obtain the target laser radar data.

14. A shelf leg filtering device, characterized in that: include: An environmental perception module, used to obtain laser radar data and an offset of a QR code relative to a camera, wherein the QR code is located at the bottom of the shelf; A visual recognition module, used for decoding the QR code to obtain shelf information of the shelf; The data filtering module is used to filter out the laser radar data belonging to the shelf legs according to the laser radar data, the offset and the shelf information to obtain the target laser radar data.

15. An autonomous mobile device, characterized in that: include: A camera, the camera being used to recognize a QR code located at the bottom of the shelf; LiDAR; A memory, wherein an application is stored in the memory; A processor, wherein when calling the application, the processor executes the method according to any one of claims 1 to 13.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, and the program codes are configured to cause the processor to execute the method according to any one of claims 1 to 13 when called by the processor.

Citation Information

Patent Citations

  • Obstacle detection method and device

    CN110857859A

  • Automated guided vehicle with anti-collision device

    CN110968090A

  • Goods shelf detection method and device, electronic equipment and storage medium

    CN113253737A

  • Goods shelf detection method, goods shelf docking method, robot and computer storage medium

    CN117630966A

  • Systems and methods for vehicle position calibration using rack leg identification

    US20200026304A1