Port AGV material shelf identification and positioning method and system based on multi-line laser radar

Through the combination of multi-line lidar and ultrasonic radar, the material rack is automatically identified and the AGV is guided to enter and park under the material rack, which solves the navigation problem in the scenario of flexible placement of material racks in the existing technology and achieves flexible adaptation and accuracy of AGV. parking.

CN118560909APending Publication Date: 2024-08-30JUSHI HUIXING (WUHAN) TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410728950.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing AGV navigation technology is difficult to achieve precise positioning and parking in scenarios where material racks are placed flexibly, and it has strict requirements on the attitude and angle of the material racks, making it unable to adapt to a variety of scenarios.

Method used

Multi-line lidar is used to obtain point cloud data, and the position and orientation of the material rack door frame and guidance device are calculated. Through the combination of lidar and ultrasonic radar, the AGV is automatically guided to enter under the material rack and stop, avoiding collisions and adapting to different material rack postures and angle.

Benefits of technology

It realizes the automatic guidance and precise positioning of AGV in the scenario of flexible placement of material racks, avoids collision with the material racks, and enhances the flexibility and applicability of navigation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118560909A
    Figure CN118560909A
Patent Text Reader

Abstract

The purpose of the invention is to guide the AGV to enter the material shelf and stop at a specified position. The guiding process is divided into three stages, wherein the first stage is that the AGV is guided to be close to an inlet of the material frame, and the orientation of the AGV is adjusted so that the AGV can be driven into the material frame more easily; and stage 2, guiding the AGV to enter from one end of the material rack and continuously run below the material rack, and meanwhile, preventing the AGV from colliding with the material rack. And the vehicle head of the AGV is driven out of the other end of the material rack. And stage 3, guiding the AGV to run at a low speed, and stopping at a specified position below the material rack. When the ultrasonic radar continuously feeds back that a short-distance object exists due to shielding of the guide strip, it is considered that the ultrasonic radar is still in the material frame, and the AGV needs to run at a low speed; and when the feedback change of the ultrasonic radar is that no short-distance object exists, it is considered that the ultrasonic radar just leaves the interior of the material frame, the deceleration parking action is executed, and the AGV is parked until the AGV reaches the designated position.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method and system for identification and positioning suitable for AGV automatic application scenarios. Background Art

[0002] The present invention relates to the field of AGV navigation, and in particular to a visual navigation system for locating the position of a material rack, guiding the AGV to enter the material rack, and finally stopping at a specified position. The visual navigation system is mainly composed of a material rack, a multi-line laser radar, an ultrasonic radar, and a computing unit. The visual navigation system provides different forms of guidance at different stages: when the AGV is outside the material rack, the multi-line laser radar provides an accurate material rack entrance position and orientation; when the AGV is under the material rack, the multi-line laser radar provides an accurate material rack guide bar position and orientation; finally, the ultrasonic radar is used to determine whether the AGV should stop.

[0003] At present, a method of obtaining the direction of the ground magnetic strip by a linear Hall magnetic sensor has been widely used to achieve precise navigation, so that the AGV can accurately enter under the goods; or, an auxiliary alignment method such as a groove rail is used to achieve precise parking. For example, "An intelligent bobbin transport device, system and transport method based on AGV" (CN114620433A) designs a transportation method, including the AGV obtaining the direction signal of the ground magnetic strip through a linear Hall magnetic sensor during operation, obtaining the position and site information through an RFID sensor, and sneaking into the bottom of the bobbin car from the rear of the bobbin car after the RFID module knows that it has arrived at the site. When the linear Hall magnetic sensor recognizes the horizontal positioning magnetic strip, the car stops, the traction lifting traction shaft rises, drills into the traction head, and then pulls the bobbin car to travel on the groove rail. This patent uses a magnetic strip to guide the AGV to travel, and determines whether to stop by a horizontal positioning magnetic strip. The bobbin car is limited in lateral position by the groove rail. The technical solution requires that the bobbin car to be transported must be located at the site and can only be located on the groove rail at the horizontal positioning magnetic strip. This solution is not suitable for scenarios where goods are flexibly placed. Summary of the invention

[0004] The purpose of this patent is to guide the AGV into the material rack and stop at the specified position. The specific technical solution is as follows:

[0005] As a first aspect, the present invention provides a method for identifying and locating a port AGV material rack based on a multi-line laser radar, the steps of the method are as follows:

[0006] Step 1: Obtain point cloud data and calculate the coordinates of the output material rack door frame in the XY plane of the vehicle coordinate system, as well as the orientation of the door frame Based on this output, the AGV is guided to approach the entrance of the material rack, and the relative posture between the AGV and the material rack is adjusted, and the AGV head is guided to travel until the distance from the material rack door frame is less than the preset distance;

[0007] Step 2: Obtain point cloud data and calculate the coordinates of the two endpoints of the guide devices on both sides of the material rack in the XY plane of the vehicle coordinate system. Based on the output, guide the AGV to enter from one end of the material rack and continue to drive under the material rack, while avoiding collision between the AGV and the material rack. The process ends when the AGV drives out from the other end of the material rack and the multi-line laser radar cannot detect the reflective guide devices on both sides of the material rack.

[0008] Step 3: Determine whether the object is blocked by the guidance device based on the detection data obtained by the object detector in real time. If the detection data is within the preset threshold range, it is determined to be yes, and the AGV is guided to drive slowly; if the detection data exceeds the preset threshold range, it is determined to be no, and the AGV is guided to slow down until it reaches the specified position and stops.

[0009] It is further preferred in all optional embodiments that step 1 comprises the following steps:

[0010] The input data of step 1 is the point cloud data obtained by the laser radar. Each point contains at least 4 parameters, which are the coordinates of the point in the point cloud coordinate system. , and the line number ring of the laser radar to which the point belongs. The output data of step 1 is the coordinates of the material rack door frame in the XY plane of the vehicle coordinate system, as well as the orientation of the door frame ;in:

[0011] 1.1: Convert the laser point cloud data into a depth map of 3-channel matrix data with M rows and N columns, where M is the total number of lines of the multi-line laser radar and N is the maximum horizontal scanning angle of the multi-line laser radar divided by the horizontal scanning interval. The quotient of retains the target area in the depth map and crops other areas;

[0012] 1.2: Traverse the depth map row by row and column by column. When the range value of the nearest pixel to the left and right of the null pixel is within the preset threshold range, linear interpolation is used to fill the range of the null pixel. and ; Otherwise, the range of empty pixels is filled by nearest neighbor interpolation. and ;

[0013] 1.3: Traverse the depth map row by row and column by column. If the range value difference between the current pixel and the upper and lower adjacent pixels exceeds the preset threshold range, the current pixel is assigned a null value; otherwise, the current pixel is retained;

[0014] 1.4: Extract the point cloud data of a pair of pillars closest to the AGV in the depth map;

[0015] 1.5: The set of pixel fragment pairs obtained in the previous step includes multiple pixel fragment pairs, each pixel fragment pair includes two pixel fragments, left and right. The last pixel of the left pixel fragment corresponds to the right edge of the left column of the door frame, and the first pixel of the right pixel fragment corresponds to the left edge of the right column of the door frame; the average of the point cloud coordinates of the last pixel of all left pixel fragments is taken as the position of the left column of the door frame, and the average of the point cloud coordinates of the first pixel of all right pixel fragments is taken as the position of the right column of the door frame; the position coordinates of the door frame are the average of the position coordinates of the left and right columns; the orientation of the door frame is perpendicular to the line connecting the position coordinates of the two columns, and is toward the inside of the material rack; according to the relative position relationship between the calibrated lidar coordinate system and the vehicle coordinate system, the currently calculated position coordinates and orientation angle of the door frame are converted into the position coordinates and orientation angle of the door frame in the vehicle coordinate system.

[0016] It is further preferred in all optional embodiments that step 1.1 includes the following steps:

[0017] 1.1.1) Set each pixel of the depth map to a null value, and define the value of the first channel in the depth map as -999999 to represent a null value;

[0018] 1.1.2) Traverse the point cloud data one by one, according to the coordinates of the point Calculate the direction , and then use Divide by the horizontal scan interval , get the column number n of the point in the depth map; according to the coordinates of the point Calculate the distance range from the point to the origin of the coordinate system; combine the distance range and the point cloud coordinates Assign values ​​to the three channels in the mth row and nth column of the depth map in order;

[0019] 1.1.3) Only keep the target area in the depth map and crop other areas.

[0020] It is further preferred in all optional modes that step 1.4 comprises the following steps:

[0021] 1.4.1) For each row of the depth map, traverse column by column, bind consecutive non-null value pixels into a pixel segment, calculate the width of the pixel segment based on the two point cloud coordinates of the first and last pixels of the pixel segment, and only retain the pixel segments whose width is within the preset threshold range of the door frame column width, and use them as candidate positions of a single column;

[0022] 1.4.2) For each row of pixel fragments searched, the pixel fragments of the row are combined in pairs, and all possible combinations are traversed. The distance between the two pixel fragments is calculated based on the point cloud coordinates of the last pixel of the left pixel fragment and the point cloud coordinates of the first pixel of the right pixel fragment in the combination, and only the pixel fragment pairs whose distance is within the preset threshold range of the spacing between the pillars of the door frame are retained;

[0023] 1.4.3) For each pixel fragment pair in each row, if a pixel fragment pair has no pixel fragment pairs in adjacent rows whose distance is within a preset threshold range, then the pixel fragment pair is eliminated, and the remaining pixel fragment pairs that are adjacent to each other and can run through multiple rows are combined into multiple pixel fragment pair sets, and each pixel fragment pair includes two left and right pixel fragments;

[0024] 1.4.4) For the above-mentioned multiple pixel fragment pair sets, the average distance from a set to the origin is calculated based on the point cloud coordinates of each pixel in each set, and only the sets whose distances are within the preset threshold range are retained (here, the sets with the smallest average distance are preferentially selected) as the point cloud data of the pair of pillars closest to the AGV searched from the depth map.

[0025] It is further preferred in all optional embodiments that step 2 comprises the following steps:

[0026] The input data of step 2 is the point cloud data obtained by the laser radar. Each point contains at least the coordinates of the point in the point cloud coordinate system. The output data of step 2 is the coordinates of the two end points of the guide devices on both sides of the material rack in the XY plane of the vehicle coordinate system; where:

[0027] 2.1: Convert the point cloud data of the multi-line laser radar into single-line point cloud data of the left and right front of the vehicle;

[0028] 2.2: Determine two area ranges in advance on the XY plane of the point cloud coordinate system, and extract the corresponding left and right guide device point cloud data from the left front and right front single-line point cloud data respectively, so as to calculate the endpoint coordinates of the left and right guide devices.

[0029] It is further preferred in all optional embodiments that step 2.1 includes the following steps:

[0030] 2.1.1) According to the height of the upper and lower edges of the material rack guide device, determine a preset height range on the Z axis of the point cloud coordinate system, traverse the point cloud one by one, remove points that are not in the height range, and then use the point cloud coordinates of the retained points to calculate the preset height range. Calculate the direction of the point ;

[0031] 2.1.2) Traverse the point cloud one by one, according to the direction of the point , the retained point clouds are divided into and , divided into left front point cloud and right front point cloud;

[0032] 2.1.3) For the left front point cloud and the rear front point cloud, sort the point clouds according to The values ​​of are arranged from small to large to obtain single-line point cloud data. After arrangement, if two or more adjacent points If the difference is within the preset threshold range, these points are removed, the average point cloud coordinates and orientation of these points are calculated, and added to the single-line point cloud to maintain The values ​​are arranged from small to large.

[0033] It is further preferred in all optional modes that step 2.2 comprises the following steps:

[0034] 2.2.1) Determine two area ranges in advance on the XY plane of the point cloud coordinate system, and traverse the point clouds one by one for the single-line point clouds on the left and right sides, and remove the points that are not within the area range;

[0035] 2.2.2) For the single lines on the left and right sides, a straight line is fitted according to the point cloud coordinates, which is called the first fitting straight line;

[0036] 2.2.3) Calculate the distances between the point cloud and the first fitting straight lines on the left and right sides respectively, remove points whose distances exceed the preset threshold range, and retain the points as the point cloud data of the guiding device;

[0037] 2.2.4) For the single-line point clouds on the left and right sides, a straight line is fitted again according to the point cloud coordinates, which is called the second fitting straight line; the first and last points in the single-line point clouds on the left and right sides are taken respectively, and their foot points on the second fitting straight line are calculated. The foot point coordinates are the coordinates of the two end points of the guiding device.

[0038] As a second aspect, the present invention provides a port AGV material rack identification and positioning system based on a multi-line laser radar, the system comprising a material rack, an AGV, a laser radar module, an object detection module, and a computing and storage module, wherein:

[0039] The material rack is used to carry goods. Its bottom is through for the AGV to pass through. Both ends of the material rack are equipped with reflective door frames and the two inner sides of the bottom are equipped with reflective guide devices.

[0040] AGV, used to lift and lower the material rack according to the instructions of the computing and storage module, and move the material rack to the designated location;

[0041] A laser radar module is used to identify the door frame and the guide device on the material rack, and determine the position and orientation of the door frame and the guide device in the vehicle coordinate system;

[0042] Object detection module, used to determine whether the AGV has traveled to the specified position under the material rack;

[0043] A computing and storage module, used to execute any one of the above-mentioned methods for identifying and locating a port AGV material rack based on a multi-line laser radar;

[0044] The computing and storage module is connected to the laser radar module, the object detection module and the AGV for data communication.

[0045] It is further preferred among all the optional methods that the laser radar module is a multi-line laser radar installed on the head of the AGV; the object detection module is an ultrasonic radar or a laser rangefinder installed on the left or right side of the AGV.

[0046] As a third aspect, the present invention provides a data processing device, which includes a central processing unit, a readable memory, and a data bus. The central processing unit is data-connected to the readable memory via the data bus. The central processing unit controls the readable memory according to operating instructions, thereby executing any one of the above-mentioned methods for identifying and positioning port AGV material racks based on multi-line laser radar.

[0047] The beneficial effects of the present invention are: it can automatically guide the AGV to enter under the material rack, and automatically identify the target components and other obstacles during the entry process, ensuring that the AGV avoids collision with the material rack during the movement. Through the present invention, the stringent requirements for the placement of material racks in the prior art are eliminated, and the placement of material racks can be made more flexible. The AGV can automatically adapt to the postures and angles of various material racks, so that the AGV can be applied to more scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0049] Figure 1 It is a structural schematic diagram of the material rack of the present invention;

[0050] Figure 2 It is a schematic diagram of the AGV structure of the present invention;

[0051] Figure 3 It is a schematic diagram of the method flow of the present invention;

[0052] Figure 4This is the identification and positioning process of the first stage of the present invention Figure 1 ;

[0053] Figure 5 This is the identification and positioning process of the first stage of the present invention Figure 2 ;

[0054] Figure 6 This is the identification and positioning process of the second stage of the present invention Figure 1 ;

[0055] Figure 7 This is the identification and positioning process of the second stage of the present invention Figure 2 .

[0056] Explanation of the accompanying figures: 1- material rack, 2- door frame, 3- guide strip, 4- multi-line laser radar, 5- ultrasonic radar. DETAILED DESCRIPTION

[0057] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0058] In the description of this specific embodiment, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. indicate the orientation or position relationship based on the orientation or position relationship shown in the accompanying drawings, or the orientation or position relationship in which the invention product is usually placed when in use. They are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0059] In addition, the terms "horizontal", "vertical", "overhanging" and the like do not mean that the components are required to be absolutely horizontal or overhanging, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0060] In the description of this specific embodiment, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this specific embodiment can be understood according to specific circumstances.

[0061] Embodiment 1, the present invention provides a port AGV material rack 1 identification and positioning system based on a multi-line laser radar 4, the system includes a material rack 1, an AGV, a laser radar module, an object detection module, a computing and storage module, wherein:

[0062] The material rack 1 is used to carry goods. Its bottom is through for the AGV to pass through. The two ends of the material rack 1 are provided with reflective door frames 2 and the two inner sides of the bottom are provided with reflective guide devices. The material rack 1 is a shelf that is through from front to back. An AGV can pass under the shelf, and goods such as steel coils can be placed on the top of the shelf.

[0063] There are laser-reflecting door frames 2 at both ends of the material rack 1. Door frames 2 are used to guide the AGV to the entrance of the material rack 1. Both ends of the material rack 1 may be entrances, and the specific end to enter is determined by the scheduling system. The width of the left and right columns of the door frame 2 is known, and the distance between the columns is also known.

[0064] There are guiding devices capable of reflecting laser light on both sides of the material rack 1 - guide bars 3 . The guide bars 3 are used to guide the AGV to continue to travel and enter under the material rack 1 without colliding with the material rack 1 .

[0065] In order to enhance the ability of the door frame 2 and the guide strip 3 to reflect laser light, a reflective film may be attached to the door frame 2 and the guide strip 3, or reflective paint may be applied thereto.

[0066] AGV is used to lift and lower the material rack 1 according to the instructions of the computing and storage module, and move the material rack 1 to the specified location. The AGV (Automatic Guided Vehicle) has a long strip shape, and the front and rear length of the vehicle is much larger than its left and right width. The width of the AGV is slightly smaller than the width of the material rack 1, so that the AGV can drive under the material rack 1.

[0067] The AGV drives under the material rack 1, and after reaching the designated position, it lifts the material rack 1, and then completes the purpose of transporting the material rack 1.

[0068] A multi-line laser radar 4 is installed on the head of the AGV to detect objects in front of the vehicle. In this method, the multi-line laser radar 4 is used to identify the door frame 2 and the guide bar 3 on the material rack 1, and determine the position and orientation of the door frame 2 and the guide bar 3 in the vehicle coordinate system.

[0069] An object detection device capable of detecting whether an object exists is installed on the left side or right side of the vehicle (the left side of the vehicle in the figure), such as an ultrasonic radar 5 or a laser ranging device. The object detection device is used to determine whether the AGV has reached a specified position under the material rack 1.

[0070] A computing and storage module, used to execute any one of the above-mentioned methods for identifying and locating a port AGV material rack 1 based on a multi-line laser radar 4;

[0071] The computing and storage module is connected to the multi-line laser radar 4 and ultrasonic radar 5 or the laser ranging device and the AGV for data communication, so as to acquire and control the data.

[0072] Embodiment 2, the present invention provides a method for identifying and locating a port AGV material rack based on a multi-line laser radar.

[0073] First, the vehicle coordinate system and point cloud coordinate system involved in the method are explained:

[0074] The origin of the vehicle coordinate system is located at the geometric center of the vehicle; the positive direction of the X-axis is toward the front of the AGV, parallel to the ground; the positive direction of the Y-axis is toward the left side of the AGV, parallel to the ground; the positive direction of the Z-axis is toward the zenith of the AGV, perpendicular to the ground. Represents the origin of the vehicle coordinate system, symbol Represents the coordinate values ​​of the three axes of the vehicle coordinate system. The subscript A represents the AGV. Defines the direction of the direction vector It is the angle between the projection of this direction in the XY plane and the positive direction of the X-axis. The positive direction of the angle satisfies the right-hand coordinate system.

[0075] The definition of the point cloud coordinate system is determined by the model of the laser radar. Usually, the origin of the point cloud coordinate system is located inside the laser radar, with the positive direction of the Y axis facing the front of the laser radar, that is, the detection direction, the positive direction of the X axis facing the right side of the laser radar, and the positive direction of the Z axis facing the top of the laser radar. This method requires that the laser radar be installed on the front of the AGV, with the detection direction of the laser radar facing the front of the AGV, and the relative position relationship between the point cloud coordinate system and the vehicle coordinate system is accurately determined through the laser radar calibration program. In this method, the symbol Represents the origin of the point cloud coordinate system, symbol Represents the coordinate values ​​of the three axes of the point cloud coordinate system. The subscript L represents the Lidar. Defines the orientation angle of the direction vector The angle between the projection of the direction in the XY plane and the positive direction of the X axis. The positive direction of the angle satisfies the right-hand coordinate system. It is the absolute value of the difference between the two corresponding directions. Define the XY plane as a horizontal plane.

[0076] The purpose of this method is to guide the AGV into the material rack and stop at a specified position. To this end, this method divides the above guidance process into three stages.

[0077] Phase 1 (Step 1): The process of the AGV driving outside the material rack. The goal of Phase 1 is to guide the AGV to the entrance of the material rack and adjust the direction of the AGV to make it easier for the AGV to enter the material rack. Phase 1 ends when the AGV is aligned with one end of the material rack, the body is parallel to the material rack, and the front of the vehicle is less than a certain distance from the door frame of the material rack. The distance between the front of the vehicle and the material rack used to determine whether Phase 1 has ended needs to be preset in advance, for example, 1.5 meters.

[0078] Phase 2 (Step 2): The process of the AGV driving into the material rack. The goal of Phase 2 is to guide the AGV to drive in from one end of the material rack and continue to drive under the material rack while avoiding collision between the AGV and the material rack. Phase 2 ends when the front of the AGV drives out from the other end of the material rack (that is, when the multi-line laser radar cannot detect the guide strip because the front of the AGV drives out of the material rack).

[0079] Phase three (step 3): The process of the AGV gradually stopping. The goal of phase three is to guide the AGV to drive slowly and stop at the designated position under the material rack. When the ultrasonic radar continues to feedback the existence of a close-range object due to the obstruction of the guide bar, it is considered that the ultrasonic radar is still in the material rack and the AGV should drive slowly; when the feedback of the ultrasonic radar changes to no close-range objects, it is considered that the ultrasonic radar has just left the inside of the material rack, and the deceleration and parking action is executed. The AGV stops after reaching the designated position, and phase three ends. The designated position where the AGV stops needs to be preset in advance. For example, when the ultrasonic radar cannot detect the material rack, the vehicle stops immediately or stops after moving 0.5 meters forward.

[0080] In the above stages, this method will provide identification and positioning solutions based on multi-line laser radar and ultrasonic radar for the door frame and guide strip of the material rack respectively.

[0081] 1. Identification and positioning of stage one.

[0082] The input data of stage 1 is the point cloud data obtained by the multi-line laser radar on the front of the vehicle. Each point contains at least 4 parameters, which are the coordinates of the point in the point cloud coordinate system. , and the line number ring of the multi-line laser radar to which the point belongs. The output data of stage one is the coordinates of the material rack door frame in the XY plane of the vehicle coordinate system, as well as the orientation of the door frame The specific steps are as follows:

[0083] Step 1: Convert the laser point cloud data into a depth map. The depth map is a 3-channel matrix data with M rows and N columns. M is the total number of lines of the multi-line laser radar. For example, the M value of the depth map corresponding to a 16-line laser radar is 16. The ring value of the point is the row number m of the point in the depth map; N is the maximum horizontal scanning angle of the multi-line laser radar divided by the horizontal scanning interval For example, when the maximum horizontal scanning angle is 180° and the horizontal scanning interval is 0.1°, the N value is 1800. The first step is decomposed into the following steps:

[0084] 1) Set each pixel of the depth map to a null value. Define the value of the first channel in the depth map as -999999, which represents a null value.

[0085] 2) Traverse the point cloud data one by one, according to the coordinates of the point Calculate the direction , and then use Divide by the horizontal scan interval , get the column number n of the point in the depth map; according to the coordinates of the point Calculate the distance range from the point to the origin of the coordinate system; combine the distance range and the point cloud coordinates Assign values ​​to the three channels in the mth row and nth column of the depth map in sequence.

[0086] 3) Only the target area of ​​interest in the depth map is retained, and other areas are cropped to remove useless or disturbed parts of the depth map, such as removing fixed occlusions caused by the mounting bracket of the lidar.

[0087] Step 2: Fill in the empty pixels in the depth map. Because the LiDAR will filter out some points with low reflection intensity or large measurement uncertainty, some empty pixels may appear in the depth map. Traverse the depth map row by row and column by column. When the range values ​​of the nearest pixels on the left and right of the empty pixel are close, use linear interpolation to fill in the range of the empty pixel. and ; Otherwise, the range of empty pixels is filled by nearest neighbor interpolation. and The threshold used to determine whether the range values ​​of the left and right nearest pixels are close needs to be preset in advance.

[0088] Step 3: Remove ground pixels from the depth map. The recognition objects in stage 1 are the two columns that make up the door frame of the material rack. Removing ground pixels helps improve the accuracy of column detection. The distances from adjacent pixels on the column to the origin should not differ much. Traverse the depth map row by row and column by column. If the range value of the current pixel differs greatly from that of the upper and lower adjacent pixels, assign the current pixel a null value; otherwise, retain the current pixel. This step can also filter out noise pixels, such as some messy branches and leaves of shrubs. The threshold used to determine whether the range values ​​of upper and lower adjacent pixels are close needs to be preset in advance.

[0089] Step 4: Extract the pair of pillars closest to the AGV in the depth map. Step 4 is divided into the following steps:

[0090] 1) Determine the candidate position of a single column in each row of the depth map. For each row of the depth map, traverse column by column, bind consecutive non-null value pixels into a pixel segment, calculate the width of the pixel segment (in meters) based on the two point cloud coordinates of the first and last pixels of the pixel segment, and only retain the pixel segments whose width is close to the actual width of the door frame column. The retained pixel segments are the candidate positions of a single column.

[0091] 2) Determine the candidate positions of the column pairs in each row of the depth map. For each row of pixel fragments searched, combine the pixel fragments of the row in pairs, and traverse all possible combinations. According to the point cloud coordinates of the last pixel of the left pixel fragment in the combination and the point cloud coordinates of the first pixel of the right pixel fragment, calculate the distance (in meters) between the two pixel fragments, and only retain the pixel fragment pairs whose distance is close to the actual distance between the door frame columns. The retained pixel fragment pairs are the candidate positions of a pair of door frame columns.

[0092] 3) Determine the candidate positions of the door frame. The candidate positions of the pixel fragment pairs representing a pair of pillars in each row of the depth map should be close, so if a pixel fragment pair in a row does not have a close pixel fragment pair in the adjacent row, then the pixel fragment pair should be eliminated. Perform the above operation for each pixel fragment pair in each row. The pixel fragment pairs that are adjacent to each other and can run through multiple rows are combined into a set of pixel fragment pairs.

[0093] 4) Determine the pair of columns closest to the AGV head. Since the material rack may also contain other brackets besides the door frames at both ends, the above steps may search for multiple sets of pixel fragment pairs. According to the point cloud coordinates of each pixel in each set, the average distance from the set to the origin can be calculated, and only the set with the closest distance is retained as the pair of columns closest to the AGV searched from the depth map.

[0094] Step 5: Calculate the position and orientation of the door frame. The set of pixel fragment pairs obtained in the previous step contains multiple pixel fragment pairs, each of which contains two pixel fragments on the left and right. The last pixel of the left pixel fragment corresponds to the right edge of the left column of the door frame, and the first pixel of the right pixel fragment corresponds to the left edge of the right column of the door frame. Take the average of the point cloud coordinates of the last pixel of all left pixel fragments as the position of the left column of the door frame, and take the average of the point cloud coordinates of the first pixel of all right pixel fragments as the position of the right column of the door frame. The position coordinates of the door frame are the average of the position coordinates of the left and right columns. The orientation of the door frame is perpendicular to the line connecting the position coordinates of the two columns and faces the inside of the material rack. According to the relative position relationship between the calibrated lidar coordinate system and the vehicle coordinate system, the position coordinates and orientation angle of the door frame currently calculated are converted into the position coordinates and orientation angle of the door frame in the vehicle coordinate system.

[0095] 2. Identification and Positioning of Phase 2

[0096] The input data of stage 2 is the point cloud data obtained by the multi-line laser radar on the front of the vehicle. Each point contains at least the coordinates of the point in the point cloud coordinate system. The output data of the second stage is the coordinates of the two end points of the guide bars on both sides of the material rack in the XY plane of the vehicle coordinate system. The specific steps are as follows:

[0097] Step 1: Convert the multi-line laser radar point cloud data into single-line point cloud data of the left and right front of the vehicle. The first step is divided into the following steps:

[0098] 1) According to the height of the upper and lower edges of the material rack guide bar, a height range is determined in advance on the Z axis of the point cloud coordinate system, and the point cloud is traversed one by one to remove points that are not in the height range, and then the point cloud coordinates of the retained points are used to determine the height range. Calculate the direction of the point .

[0099] 2) Traverse the point cloud one by one, according to the direction of the point , the retained point clouds are divided into and , divided into left front point cloud and right front point cloud.

[0100] 3) For the left front point cloud and the rear front point cloud, sort the point clouds according to The values ​​of are arranged from small to large to obtain single-line point cloud data. After arrangement, if two or more adjacent points If the difference is small, these points are removed, and the average point cloud coordinates and orientation of these points are calculated and added to the single-line point cloud. The values ​​are arranged from small to large.

[0101] Step 2: Extract the guide strips in the single-line point clouds on the left and right sides respectively. The identification object of stage 2 is the guide strips on both sides of the AGV. At this time, the guide strips can only appear not far from the left front and right front of the AGV. Predetermine two area ranges in the XY plane of the point cloud coordinate system, corresponding to the possible positions of the left and right guide strips. The second step is decomposed into the following steps:

[0102] 1) For the single-line point clouds on the left and right sides, traverse the point clouds one by one and remove the points that are not within the area.

[0103] 2) For the single-line point clouds on the left and right sides, a straight line is fitted according to the XY coordinates of the point clouds, which is called the first fitting line.

[0104] 3) Calculate the distance between the point cloud and the first fitting line on the left and right sides on the XY plane, and remove the points that are far away. The retained points are the point cloud data representing the left and right guide bars.

[0105] 4) Calculate the coordinates of the endpoints of the left and right guide strips in the XY plane. For the single-line point clouds on the left and right sides, fit a straight line again according to the XY coordinates of the point clouds, which is called the second fitting line. Take the first and last points in the single-line point cloud and calculate their foot of the perpendicular on the second fitting line. The XY coordinates of the foot of the perpendicular are the coordinates of the two end points of the left and right guide strips.

[0106] 3. Identification and positioning of stage three.

[0107] The input data of phase three is the distance measurement data provided by the ultrasonic radar on the AGV side. The output of phase two is whether the ultrasonic radar is in the material rack. If the distance measurement data of the ultrasonic radar is less than the preset threshold, it is judged as "yes"; otherwise, it is judged as "no". The moment from "yes" to "no" is considered to be the ultrasonic radar just leaving the material rack.

[0108] Based on the existing technology and in combination with the description of the above method, those skilled in the art can clearly understand the specific content of the present technical solution and realize the technical effect described in the present technical solution.

[0109] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present invention may be implemented by means of hardware comprising several different elements and by means of appropriately programmed computers. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A method for identifying and locating a port AGV material rack based on a multi-line laser radar, characterized in that: The steps of the method are as follows: Step 1: Obtain point cloud data and calculate the coordinates of the output material rack door frame in the XY plane of the vehicle coordinate system, as well as the orientation of the door frame Based on this output, the AGV is guided to approach the entrance of the material rack, and the relative posture between the AGV and the material rack is adjusted, and the AGV head is guided to travel until the distance from the material rack door frame is less than the preset distance; Step 2: Obtain point cloud data and calculate the coordinates of the two endpoints of the guide devices on both sides of the material rack in the XY plane of the vehicle coordinate system. Based on the output, guide the AGV to enter from one end of the material rack and continue to drive under the material rack, while avoiding collision between the AGV and the material rack. The process ends when the AGV drives out from the other end of the material rack and the multi-line laser radar cannot detect the reflective guide devices on both sides of the material rack. Step 3: Determine whether the object is blocked by the guidance device based on the detection data obtained by the object detector in real time. If the detection data is within the preset threshold range, it is determined to be yes, and the AGV is guided to drive slowly; if the detection data exceeds the preset threshold range, it is determined to be no, and the AGV is guided to slow down until it reaches the specified position and stops.

2. The method for identifying and locating a port AGV material rack based on a multi-line laser radar according to claim 1 is characterized in that: The step 1 comprises the following steps: The input data of step 1 is the point cloud data obtained by the laser radar. Each point contains at least 4 parameters, which are the coordinates of the point in the point cloud coordinate system. , and the line number ring of the laser radar to which the point belongs. The output data of step 1 is the coordinates of the material rack door frame in the XY plane of the vehicle coordinate system, as well as the orientation of the door frame ;in: 1.1: Convert the laser point cloud data into a depth map of 3-channel matrix data with M rows and N columns, where M is the total number of lines of the multi-line laser radar and N is the maximum horizontal scanning angle of the multi-line laser radar divided by the horizontal scanning interval. The quotient of retains the target area in the depth map and crops other areas; 1.2: Traverse the depth map row by row and column by column. When the range value of the nearest pixel to the left and right of the null pixel is within the preset threshold range, linear interpolation is used to fill the range of the null pixel. and ; Otherwise, the range of empty pixels is filled by nearest neighbor interpolation. and ; 1.3: Traverse the depth map row by row and column by column. If the range value difference between the current pixel and the upper and lower adjacent pixels exceeds the preset threshold range, the current pixel is assigned a null value; otherwise, the current pixel is retained; 1.4: Extract the point cloud data of a pair of pillars closest to the AGV in the depth map; 1.5: The set of pixel fragment pairs obtained in the previous step includes multiple pixel fragment pairs, each pixel fragment pair includes two pixel fragments, left and right. The last pixel of the left pixel fragment corresponds to the right edge of the left column of the door frame, and the first pixel of the right pixel fragment corresponds to the left edge of the right column of the door frame; the average of the point cloud coordinates of the last pixel of all left pixel fragments is taken as the position of the left column of the door frame, and the average of the point cloud coordinates of the first pixel of all right pixel fragments is taken as the position of the right column of the door frame; the position coordinates of the door frame are the average of the position coordinates of the left and right columns; the orientation of the door frame is perpendicular to the line connecting the position coordinates of the two columns, and is toward the inside of the material rack; according to the relative position relationship between the calibrated lidar coordinate system and the vehicle coordinate system, the currently calculated position coordinates and orientation angle of the door frame are converted into the position coordinates and orientation angle of the door frame in the vehicle coordinate system.

3. The method for identifying and locating a port AGV material rack based on a multi-line laser radar according to claim 2 is characterized in that: The step 1.1 comprises the following steps: 1.1.1) Set each pixel of the depth map to a null value, and define the value of the first channel in the depth map as -999999 to represent a null value; 1.1.2) Traverse the point cloud data one by one, according to the coordinates of the point Calculate the direction , and then use Divide by the horizontal scan interval , get the column number n of the point in the depth map; according to the coordinates of the point Calculate the distance range from the point to the origin of the coordinate system; combine the distance range and the point cloud coordinates Assign values ​​to the three channels in the mth row and nth column of the depth map in order; 1.1.3) Only keep the target area in the depth map and crop other areas.

4. The method for identifying and locating a port AGV material rack based on a multi-line laser radar according to claim 3 is characterized in that: The step 1.4 comprises the following steps: 1.4.1) For each row of the depth map, traverse column by column, bind consecutive non-null value pixels into a pixel segment, calculate the width of the pixel segment based on the two point cloud coordinates of the first and last pixels of the pixel segment, and only retain the pixel segments whose width is within the preset threshold range of the door frame column width, and use them as candidate positions of a single column; 1.4.2) For each row of pixel fragments searched, the pixel fragments of the row are combined in pairs, and all possible combinations are traversed. The distance between the two pixel fragments is calculated based on the point cloud coordinates of the last pixel of the left pixel fragment and the point cloud coordinates of the first pixel of the right pixel fragment in the combination, and only the pixel fragment pairs whose distance is within the preset threshold range of the spacing between the pillars of the door frame are retained; 1.4.3) For each pixel fragment pair in each row, if a pixel fragment pair has no pixel fragment pairs in adjacent rows whose distance is within a preset threshold range, then the pixel fragment pair is eliminated, and the remaining pixel fragment pairs that are adjacent to each other and can run through multiple rows are combined into multiple pixel fragment pair sets, and each pixel fragment pair includes two left and right pixel fragments; 1.4.4) For the above-mentioned multiple pixel fragment pair sets, the average distance from a set to the origin is calculated based on the point cloud coordinates of each pixel in each set, and only the sets whose distances are within the preset threshold range are retained as the point cloud data of the pair of pillars closest to the AGV searched from the depth map.

5. The method for identifying and locating a port AGV material rack based on a multi-line laser radar according to claim 4 is characterized in that: The step 2 comprises the following steps: The input data of step 2 is the point cloud data obtained by the laser radar. Each point contains at least the coordinates of the point in the point cloud coordinate system. The output data of step 2 is the coordinates of the two end points of the guide devices on both sides of the material rack in the XY plane of the vehicle coordinate system; where: 2.1: Convert the point cloud data of the multi-line laser radar into single-line point cloud data of the left and right front of the vehicle; 2.2: Determine two area ranges in advance on the XY plane of the point cloud coordinate system, and extract the corresponding left and right guide device point cloud data from the left front and right front single-line point cloud data respectively, so as to calculate the endpoint coordinates of the left and right guide devices.

6. The method for identifying and locating a port AGV material rack based on a multi-line laser radar according to claim 5 is characterized in that: The step 2.1 comprises the following steps: 2.1.1) According to the height of the upper and lower edges of the material rack guide device, determine a preset height range on the Z axis of the point cloud coordinate system, traverse the point cloud one by one, remove points that are not in the height range, and then use the point cloud coordinates of the retained points to calculate the preset height range. Calculate the direction of the point ; 2.1.2) Traverse the point cloud one by one, according to the direction of the point , the retained point clouds are divided into and , divided into left front point cloud and right front point cloud; 2.1.3) For the left front point cloud and the rear front point cloud, sort the point clouds according to The values ​​of are arranged from small to large to obtain single-line point cloud data; after arrangement, if two or more adjacent points If the difference is within the preset threshold range, these points are removed, the average point cloud coordinates and orientation of these points are calculated, and added to the single-line point cloud to maintain The values ​​are arranged from small to large.

7. The method for identifying and locating a port AGV material rack based on a multi-line laser radar according to claim 6 is characterized in that: The step 2.2 comprises the following steps: 2.2.1) Determine two area ranges in advance on the XY plane of the point cloud coordinate system, and traverse the point clouds one by one for the single-line point clouds on the left and right sides, and remove the points that are not within the area range; 2.2.2) For the single lines on the left and right sides, a straight line is fitted according to the point cloud coordinates, which is called the first fitting straight line; 2.2.3) Calculate the distances between the point cloud and the first fitting straight lines on the left and right sides respectively, remove points whose distances exceed the preset threshold range, and retain the points as the point cloud data of the guiding device; 2.2.4) For the single-line point clouds on the left and right sides, a straight line is fitted again according to the point cloud coordinates, which is called the second fitting straight line; the first and last points in the single-line point clouds on the left and right sides are taken respectively, and their foot points on the second fitting straight line are calculated. The foot point coordinates are the coordinates of the two end points of the guiding device.

8. A port AGV material rack identification and positioning system based on multi-line laser radar, characterized in that: The system includes a material rack, an AGV, a laser radar module, an object detection module, and a computing and storage module, wherein: The material rack is used to carry goods. Its bottom is through for the AGV to pass through. Both ends of the material rack are equipped with reflective door frames and the two inner sides of the bottom are equipped with reflective guide devices. AGV, used to lift and lower the material rack according to the instructions of the computing and storage module, and move the material rack to the designated location; A laser radar module is used to identify the door frame and the guide device on the material rack, and determine the position and orientation of the door frame and the guide device in the vehicle coordinate system; Object detection module, used to determine whether the AGV has traveled to the specified position under the material rack; A computing and storage module, used to execute a port AGV material rack identification and positioning method based on a multi-line laser radar as described in any one of claims 1 to 7 above; The computing and storage module is connected to the laser radar module, the object detection module and the AGV for data communication.

9. The port AGV material rack identification and positioning system based on multi-line laser radar according to claim 8 is characterized in that: The laser radar module is a multi-line laser radar installed on the head of the AGV; the object detection module is an ultrasonic radar or a laser rangefinder installed on the left or right side of the AGV.

10. A data processing device, comprising a central processing unit, a readable memory, and a data bus, characterized in that: The central processing unit is data-connected to the readable memory via a data bus, and the central processing unit controls the readable memory according to operation instructions, thereby executing any one of the methods described in claims 1 to 7.

Citation Information

Cited By

  • Cantilever shaft butt joint method and device and storage medium

    CN119428916A