A container positioning method, system, device and storage medium based on laser radar

By combining a rotating pan-tilt head with a multi-line lidar, RANSAC and an eight-neighborhood image algorithm are used to achieve all-round scanning and real-time positioning of containers. This solves the problem of insufficient single radar scanning, improves the accuracy and efficiency of container positioning, adapts to complex scenarios, and eliminates the impact of loading and unloading platform vibration.

CN120652482BActive Publication Date: 2025-10-14GUANGZHOU DUGE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511163840.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-20
Publication Date
2025-10-14
Estimated Expiration
2045-08-20

AI Technical Summary

Technical Problem

In existing technologies, a single lidar cannot fully capture the top and bottom contours of a container. The point cloud data is sparse, resulting in low plane fitting accuracy. The low scanning frequency cannot meet the requirements of high-precision pose solution. Manual calibration introduces errors and cannot track in real time, affecting the accuracy and efficiency of automated loading and unloading.

Method used

A rotating gimbal equipped with a single-line laser radar is used for all-round scanning, combined with a multi-line laser radar to monitor the tail of the container in real time. The container plane is fitted using the RANSAC algorithm, and the tail features are extracted using the eight-neighborhood image algorithm. A reference coordinate system is established and the posture parameters are corrected to achieve real-time positioning of the container.

Benefits of technology

It achieves full-view scanning of containers without blind spots, improves the integrity and real-time performance of point cloud data, enhances the accuracy and efficiency of posture measurement, adapts to complex scenarios and eliminates the impact of loading and unloading platform vibration, and has a high accuracy rate in identifying internal and external interference objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120652482B_ABST
    Figure CN120652482B_ABST
Patent Text Reader

Abstract

The application provides a container positioning method, system, device and storage medium based on a laser radar, the method comprising: acquiring first point cloud data covering a container and a loading and unloading platform, iteratively fitting the first point cloud data through a RANSAC algorithm, obtaining plane equations corresponding to a plurality of dominant planes of the segmented container, calculating a current pose of the container in a reference coordinate system according to the plane equations of the plurality of dominant planes, and determining first pose parameters; in the process of moving the container or the loading and unloading platform, acquiring second point cloud data obtained by scanning the environment at the tail of the container, performing local feature extraction and cluster filtering on the second point cloud data through an eight-neighborhood image algorithm to determine the position of the tail of the container, correcting the first pose parameters according to the position of the tail of the container, and outputting second pose parameters of the container. The application cooperates with a plurality of laser radars, ensures the real-time performance and point cloud integrity of scanning detection, and improves the accuracy and efficiency of container pose measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of radio detection technology, and in particular to a container positioning method, system, device and storage medium based on laser radar. Background Art

[0002] Current container loading and unloading positioning technology primarily relies on manual vision or single-lidar scanning, which presents significant limitations. Due to the limited vertical field of view, a single lidar cannot fully capture the top and bottom contours of a container, resulting in missing point cloud data and affecting plane fitting accuracy. Furthermore, the low scanning frequency of a single lidar generates a sparse point cloud, making it difficult to meet the requirements of high-precision pose calculations, especially in long-distance or large-scale scenarios.

[0003] During container loading and unloading, the relative position of the loading platform and container still requires manual calibration of reference points, which introduces human error and is unable to adapt to dynamic adjustments. Furthermore, the low scanning frequency of a single radar and the mechanical rotation required cause delays in vehicle position updates, making real-time tracking impossible. These issues collectively limit the accuracy and efficiency of automated loading and unloading, necessitating the use of technologies such as multi-sensor fusion, automatic calibration, and real-time processing to overcome these bottlenecks. Summary of the Invention

[0004] The embodiments of the present invention provide a lidar-based container positioning method, system, device, and storage medium to address the problems existing in related technologies. The technical solutions are as follows:

[0005] In a first aspect, an embodiment of the present invention provides a container positioning method based on laser radar, comprising:

[0006] Acquire first point cloud data covering the container and the loading and unloading platform, extract the platform point set of the loading and unloading platform in the first point cloud data, perform plane ground fitting, and establish a reference coordinate system based on the platform ground;

[0007] Iteratively fit the container point cloud in the first point cloud data using the RANSAC algorithm to obtain the plane equations corresponding to multiple dominant planes of the segmented container. Calculate the current pose of the container in the reference coordinate system based on the plane equations of the multiple dominant planes to determine the first pose parameter.

[0008] During the movement of the container or loading and unloading platform, the second point cloud data obtained by scanning the environment at the rear of the container is obtained. Local features of the second point cloud data are extracted using the eight-neighborhood image algorithm to obtain a feature set. The feature set is clustered and filtered to determine the rear position of the container. The first pose parameters are corrected according to the rear position of the container, and the second pose parameters of the container are output.

[0009] In one embodiment, the first point cloud data is obtained by scanning a container parked at a specified position using a single-line laser radar equipped with a rotating pan-tilt platform; wherein the rotating pan-tilt platform drives the single-line laser radar to rotate and scan at a constant angle.

[0010] In one embodiment, iteratively fitting the container point cloud in the first point cloud data using the RANSAC algorithm to obtain plane equations corresponding to multiple dominant planes of the segmented container includes:

[0011] The container point cloud is preprocessed based on the voxel grid downsampling algorithm to obtain the preprocessed container point cloud;

[0012] The preprocessed container point cloud is iteratively fitted using the RANSAC algorithm and preset plane fitting constraints to obtain the plane equations corresponding to multiple dominant planes. Among them, the plane fitting constraints include the deviation of the angle between adjacent planes being less than a preset angle and the plane roughness being less than a preset value.

[0013] In one embodiment, calculating the current posture of the container in the reference coordinate system based on the plane equations of the plurality of dominant planes, and determining the first posture parameter includes:

[0014] Calculate container dimensions based on plane equations of multiple dominant planes, where the container dimensions include container length, width, and height;

[0015] Solve the intersecting plane equations to obtain the coordinates of all vertices of the container, and determine the coordinates of the center of the container based on the coordinates of all vertices;

[0016] The tilt angle of the container relative to the ground is calculated by the dot product of the bottom normal vector and the ground normal vector, and the horizontal yaw angle and pitch angle are determined according to the slopes of the plane equations of multiple dominant planes.

[0017] In one embodiment, it further includes:

[0018] Based on the plane equations corresponding to multiple dominant planes, a corresponding spatial hierarchical index structure is constructed, and the BFS algorithm is used to traverse the spatial hierarchical index structure layer by layer;

[0019] The neighborhood points are clustered according to the set cluster radius threshold to obtain multiple cluster point cloud groups;

[0020] The size threshold is used to identify the interference objects in each cluster point cloud group, determine the location of the interference objects and remind the interference objects.

[0021] In one embodiment, local features are extracted from the second point cloud data using an eight-neighborhood image algorithm, and the obtained feature set includes:

[0022] Extracting the point cloud of the container tail area from the second point cloud data, projecting the tail point cloud to a two-dimensional plane to generate a grid matrix;

[0023] Based on the network matrix, checking the point cloud features of the center grid in eight neighborhood directions to obtain a feature set.

[0024] In an embodiment, further comprising:

[0025] Filtering the point clouds in the front-rear and up-down directions of the container in the second point cloud data, retaining the point clouds of the left and right sides of the container and fitting two side plane equations using least squares, determining the real-time direction of the container according to the two side plane equations; wherein the two side plane equations are combined with the tail position of the container to determine the three-dimensional spatial coordinates of the whole container.

[0026] In a second aspect, the embodiments of the present application provide a container positioning system based on a laser radar, comprising:

[0027] A single-line laser radar matched with a rotating holder, used for scanning a container parked at a specified position and outputting first point cloud data;

[0028] A multi-line laser radar, used for scanning the environment of the tail of the container when the container or the loading and unloading platform moves, and outputting second point cloud data;

[0029] A server, in signal communication with the single-line laser radar and the multi-line laser radar, used for executing the container positioning method based on the laser radar as described above.

[0030] In a third aspect, the embodiments of the present application provide an electronic device, comprising a memory and a processor. The memory and the processor communicate with each other through an internal connection path. The memory is used to store instructions, and the processor is used to execute the instructions stored in the memory. When the processor executes the instructions stored in the memory, the processor executes the method in any one of the embodiments of the above aspects.

[0031] In a fourth aspect, the embodiments of the present application provide a computer readable storage medium, which stores a computer program. When the computer program runs on a computer, the method in any one of the above aspects is executed.

[0032] The above technical solutions have at least the following advantages or beneficial effects:

[0033] The present invention uses a rotating single-line laser radar to scan the container and loading platform without blind spots to obtain first point cloud data. The first point cloud data is then plane-fitted using the RANSAC algorithm to determine the container's first pose parameters. When the container or loading platform moves during loading and unloading, a multi-line laser radar is used to scan the container's rear area in real time to obtain second point cloud data. The second point cloud data accurately locates the container's rear position, and the first pose parameters are corrected based on the real-time container rear position, outputting the container's accurate position during movement. The present invention combines the single-line laser radar with the multi-line laser radar to ensure real-time scanning and detection, as well as point cloud integrity, improving the accuracy and efficiency of container pose measurement.

[0034] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present invention will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed herein and should not be construed as limiting the scope of the invention.

[0036] Figure 1 Schematic diagram of the process of the container positioning method based on laser radar of the present invention;

[0037] Figure 2 This is a schematic diagram of the positional relationship between the loading and unloading platform and the container of the present invention;

[0038] Figure 3 This is a schematic diagram of a three-dimensional model of a container according to the present invention;

[0039] Figure 4 This is a schematic diagram of positioning interference objects in a container according to the present invention;

[0040] Figure 5 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0041] Hereinafter, only certain exemplary embodiments are briefly described. As will be appreciated by those skilled in the art, the described embodiments may be modified in various ways without departing from the spirit or scope of the present invention. Therefore, the drawings and description are to be considered as illustrative in nature and not restrictive.

[0042] Example 1

[0043] This embodiment provides a lidar-based container positioning method, which relates to the field of intelligent warehousing and logistics technology. Through dynamic scanning and intelligent point cloud processing, it realizes autonomous coordinate construction of the loading plane, full-size measurement of the container, real-time positioning of the vehicle posture and interference warning. It is suitable for intelligent container loading and unloading scenarios in automated ports, railway freight stations and logistics centers.

[0044] It should be explained that in this embodiment, the container is transported by a vehicle. After the container is fixed on the vehicle, it is transported to a designated location around the loading and unloading platform. A laser radar is used to scan the container on the vehicle and the loading and unloading platform, and the position of the container is located based on the scanning results.

[0045] To further improve positioning accuracy, this embodiment uses a retractable bracket to install a rotating pan-tilt platform on the ceiling directly opposite the designated location. A single-line LiDAR is mounted on the rotating pan-tilt platform. This high-refresh-rate (≥50Hz) single-line LiDAR is equipped with a 360° continuously rotating pan-tilt platform with a scanning radius of ≥20m, covering the entire surface of the container and the loading and unloading platform, thereby generating a dense point cloud (point cloud density >200 points / m²). Furthermore, a multi-line LiDAR with a field of view of 120°*50° is fixedly mounted on the loading and unloading platform. This multi-line LiDAR dynamically scans the moving container, enabling real-time positioning of the container and subsequent intelligent container loading and unloading operations.

[0046] It should be noted that a single-line laser radar refers to a laser radar device that only scans one laser beam in the vertical direction. Compared with a single-line laser radar, a multi-line laser radar emits multiple laser beams at the same time. These laser beams are distributed at different vertical angles, thereby being able to simultaneously obtain multiple levels of distance information to form three-dimensional point cloud data.

[0047] Under the above radar deployment, if Figure 1 As shown, the specific steps of the container positioning method based on laser radar in this embodiment include:

[0048] Step S1: Acquire first point cloud data covering the container and the loading and unloading platform, extract the platform point set of the loading and unloading platform in the first point cloud data, perform plane ground fitting, and establish a reference coordinate system based on the platform ground.

[0049] In this embodiment, when the vehicle with the container installed stops at a designated location, the rotating pan-tilt table drives the single-line laser radar to rotate and scan at a constant angular velocity, generating the first point cloud data covering the container and the loading and unloading platform. The first point cloud data contains the timestamp, position and posture information of each point cloud data. The precise position and posture corresponding to the point cloud sampling time (R t , T t ), where R t represents the rotation matrix, Tt Represents the translation vector, and then uses the pose at the reference moment (R ref , T ref ), convert the point cloud data at the sampling moment into the reference coordinate system, and the calculation formula is as follows:

[0050] p ref =R ref -1×(R t ×p t +T t -T ref );in:

[0051] p t Represents the point cloud coordinates at the sampling moment;

[0052] R t , T t are the rotation matrix and translation vector at the sampling moment;

[0053] R ref , T ref is the rotation matrix and translation vector at the reference moment;

[0054] p ref It is the point cloud coordinates in the reference coordinate system after motion compensation.

[0055] In this embodiment, all motion-compensated point cloud data are aligned to the same reference coordinate system, and the ICP algorithm or other registration methods are used for further fine registration, thereby fusing multiple frames of scan data into a dense point cloud dataset covering the entire surface of the container and the ground. The dense point cloud dataset is used to construct a complete 3D model of the container (such as Figure 3 As shown), the three-dimensional imaging display of the container is completed.

[0056] Then, the platform point set P of the loading and unloading platform is extracted from the first point cloud data / dense point cloud data set according to the preset tolerance threshold. ground ={p i ∣z i ∈[h- , h+ ]}(h is the platform height, The platform point set is fitted using the least squares method to obtain the platform ground equation ax+by+cz+d=0, and the platform reference coordinate system is constructed based on the platform ground equation. In this embodiment, the platform point set is extracted based on the tolerance threshold to establish the reference coordinate system, which can eliminate the coordinate drift caused by the vibration of the loading and unloading platform to a certain extent, and the posture measurement stabilization time is less than 0.5 seconds. Figure 2 As shown, in this embodiment, the midpoint of the short side of the loading and unloading platform is used as the origin to establish a reference coordinate system.

[0057] Step S2: Iteratively fit the container point cloud in the first point cloud data through the RANSAC algorithm to obtain the plane equations corresponding to multiple dominant planes of the segmented container, calculate the current position of the container in the reference coordinate system based on the plane equations of the multiple dominant planes, and determine the first pose parameter.

[0058] In order to improve computational efficiency, the first point cloud data is preprocessed based on the voxel grid downsampling algorithm, that is, the three-dimensional space is divided into small cubic grids of equal size (such as 5cm×5cm×5cm). Each grid is called a voxel. In each non-empty voxel grid, all the original points falling within the grid are collected, and the geometric center (or centroid) of these points is used to represent the points of the entire grid. Finally, only one representative point is retained for each voxel.

[0059] In this embodiment, the container point cloud in the first point cloud data is preprocessed based on the voxel grid downsampling algorithm to obtain a preprocessed container point cloud. The RANSAC (Random Sample Consensus) algorithm is used to iteratively fit multiple dominant planes in the preprocessed container point cloud to obtain plane equations corresponding to the multiple dominant planes of the segmented container. The current pose of the container in the reference coordinate system is then calculated based on the plane equations to determine the first pose parameter.

[0060] It should be noted that the first posture parameter includes container size, container vertex coordinates, center coordinates, relative inclination angle, horizontal yaw angle, and pitch angle.

[0061] Specifically, this example uses the RANSAC algorithm to iteratively fit the five dominant planes in the container point cloud. The five dominant planes are the front, left, right, top, and bottom planes of the container. The plane fitting constraints are set to the angle deviation between adjacent planes < 3° and the plane roughness < 0.005. The plane equations corresponding to the five dominant planes are:

[0062] S front : A1x+B1y+C1z=D1; ...

[0063] S bottom : A5x+B5y+C5z=D5.

[0064] On the basis of determining the plane equations of the five dominant planes, the vertex coordinates of the container are determined by solving the intersection of the three intersecting planes. The vertex coordinates V k The calculation formula is:

[0065] ;

[0066] Where m is the index of the intersecting three planes.

[0067] For example, for vertex V1, suppose it is formed by the front plane S front , left plane S left and upper plane S top The intersection results in:

[0068] ;

[0069] By solving this linear equation system, we can obtain the coordinates (x1, y1, z1) of vertex V1. Similarly, we can find the coordinates of the other seven vertices, and thus determine the coordinates of the container center based on the coordinates of all the vertices.

[0070] After determining the vertex coordinates of the container, the length of the container can be indirectly calculated based on the container size specifications or the distance between other planes (such as sides or vertices). A similar method can also be used to calculate the width and height of the container to obtain the container size.

[0071] In addition, the relative tilt angle of the container can be obtained by calculating the angle between the normal vector of the container and the normal vector of the ground. The tilt angle θ of the container relative to the ground is:

[0072] θ=arccos(Ncontainer•Nground); where,

[0073] Ncontainer: the normal vector of a dominant plane of the container (such as the bottom);

[0074] Nground: The normal vector of the ground plane (usually (0,0,1)(0,0,1));

[0075] The dot product result reflects the cosine of the angle between the two normal vectors, and arccos obtains the actual inclination angle (radians or degrees).

[0076] In addition, the horizontal yaw angle and the pitch angle can also be determined based on the plane equations of multiple dominant planes, where the slope of the container side equation (i.e., the plane equation of the left plane or the plane equation of the right plane) is the horizontal yaw angle, and the slope of the upper and lower surface equations (i.e., the plane equation of the upper plane or the plane equation of the lower plane) is the pitch angle.

[0077] Furthermore, it is necessary to determine whether there are any interference objects (unexpected objects) in the container in order to facilitate integration into the automated loading and unloading system. In this embodiment, interference object detection is required during the container positioning process. The specific method is as follows:

[0078] Based on the plane equations corresponding to multiple dominant planes, the corresponding spatial hierarchical index structure KD-TREE is constructed.

[0079] It should be noted that KD-Tree is a k-dimensional binary search tree that organizes point cloud data into a hierarchical structure by recursively dividing the space along the coordinate axis to support efficient radius neighborhood search.

[0080] The breadth-first search BFS algorithm is used to traverse the spatial hierarchical index structure layer by layer. The BFS traversal needs to dynamically call the neighborhood query function of the KD-Tree and cluster the neighborhood points according to the set clustering radius threshold. That is, each time a point p is taken from the queue, its r is quickly obtained through the KD-Tree. cluster All points in the neighborhood are obtained, thus obtaining multiple cluster point cloud groups. cluster It needs to be slightly larger than the average spacing of the point cloud to cover the continuity of the object surface and avoid mistakenly merging independent objects.

[0081] Use the size threshold to identify the interference objects in each clustered point cloud group, determine the location of the interference objects and remind the interference objects. Specifically, for each clustered point cloud group, calculate the size of its axial bounding box:

[0082] Length L = max(x) - min(x)

[0083] Width W = max(y) - min(y)

[0084] Height H = max(z) - min(z)

[0085] If L, W, and H are all less than 30 cm, the clustered point cloud group is classified as an interference object (such as tools, debris, etc.), triggering cleaning or alarming; otherwise, it is retained as a valid object (such as a cargo box, pallet, etc.). Figure 4 As shown, Figure 4 The red box in the middle shows the location of the interference object in the container.

[0086] Step S3: During the movement of the container or loading and unloading platform, obtain the second point cloud data obtained by scanning the environment at the rear of the container, perform local feature extraction on the second point cloud data through the eight-neighborhood image algorithm to obtain a feature set, perform clustering and filtering on the feature set to determine the rear position of the container, correct the first pose parameters according to the rear position of the container, and output the second pose parameters of the container.

[0087] In order to achieve the purpose of loading and unloading, the position of the container or loading and unloading platform needs to be moved and adjusted so that the container and the loading and unloading platform are in the right position, so as to complete the subsequent loading and unloading operations. During the movement of the container or the loading and unloading platform, the rear position of the vehicle is scanned by the multi-line laser radar installed on the loading and unloading platform, thereby obtaining a multi-line laser radar real-time frame 3D point cloud set, also known as the second point cloud data. Figure 2 As shown, Figure 2The container is mainly aligned with the loading and unloading platform by moving the loading and unloading platform so as to facilitate subsequent loading and unloading of goods.

[0088] The front plane, rear plane, upper plane and lower plane of the carriage point cloud are filtered from the second point cloud data, the point cloud data of the two side planes of the vehicle is retained, the least square method is used to fit the two side planes of the vehicle, the plane equations of the two side planes (i.e. left plane and right plane) are obtained, and the attitude of the carriage rotation is determined according to the slope of the plane equations of the two side planes, so as to determine the real-time direction of the container.

[0089] Since the multi-line laser radar mainly scans the position of the rear of the vehicle, the number of point clouds of the rear area of the container in the second point cloud data is relatively concentrated, at this time, the point clouds of the rear area of the container in the second point cloud data are extracted, the point clouds of the rear area are projected onto a two-dimensional plane, the point clouds of the rear area are divided into grids according to a certain resolution and converted into a two-dimensional matrix form, and a grid matrix is obtained. Each grid cell contains point cloud information falling within the area, which can be the number of points, average height and other characteristic values.

[0090] In the process of determining the position of the rear of the container, the embodiment performs feature search and analysis on the grid point cloud data by using the eight-neighborhood algorithm. By calculating and comparing the characteristic values in each grid cell and its eight-neighborhood, regions with specific geometric or density characteristics, such as edges, corners, etc. can be identified, and a number of feature sets can be obtained. For each pixel (or grid cell), its eight-neighborhood includes itself and its eight neighboring pixels (up, down, left, right, top-left, top-right, bottom-left, bottom-right).

[0091] By analyzing the feature distribution in the eight-neighborhood, abnormal values or noise points can be detected and removed, thereby improving the accuracy and robustness of feature extraction. Specifically as follows:

[0092] For the number of points or density in each grid cell and its eight-neighborhood, if the density of a certain grid cell is significantly lower than the average value of its neighborhood, it may be a noise point or an abnormal point, which can be considered for removal.

[0093] The height (i.e. z-axis coordinate) of each grid cell is calculated and the height difference with the surrounding eight neighborhood cells. If the height change of a certain grid cell is much greater than the average height change of its neighborhood cells, it may be caused by isolated abnormal points or noise, which should be removed.

[0094] The connectivity between each grid cell can also be analyzed to identify those isolated points that are not connected to any other cells. These isolated points are likely to be noise points and should be removed.

[0095] In the data after the interference point is removed, according to the specific geometric shape (for example, rectangle, trapezoid, etc.) of the container tail, the remaining point cloud data is matched in mode, so as to accurately determine the exact position of the container tail.

[0096] In this embodiment, the vehicle is scanned in real time by the multi-line laser radar during the movement of the vehicle, the real-time direction of the container is determined by fitting the two side planes of the vehicle, the three-dimensional coordinates of the container tail are determined by the eight-neighborhood algorithm, and the real-time posture of the container is accurately positioned. According to the real-time posture of the container, the first pose parameter of the container in step S2 is corrected to obtain the second pose parameter of the container in the current state, and the second pose parameter includes the container center coordinates, the relative inclination angle, the horizontal yaw angle, the pitch angle and the like. At the same time, the position of the interference in the container is accurately positioned according to the real-time posture of the container. The container center coordinates, the size data, the horizontal yaw angle, the pitch angle, and the position coordinates of the interference in the container are output to the automatic loading and unloading platform control system, so as to realize the accurate automatic loading and unloading of the goods, such as automatically controlling the rotation and displacement of the mechanical arm to the specified position, and automatically loading the goods into the vehicle by using the fork, so as to improve the loading and unloading efficiency. In the actual unloading scene, in addition to scanning and positioning the container by using the multi-line laser radar, the container interior tray can also be scanned, the tray bottom surface and the container wall in the container are separated by using the RANSAC algorithm, a single tray is segmented according to the point cloud density, the tray surface is edge-extracted to position the tray hole coordinates, and the fork arm is guided for accurate unloading.

[0097] The beneficial effects of this embodiment are as follows:

[0098] 1. Full-view non-delay coverage: this embodiment uses the gimbal to drive the single-line laser radar to realize 360° rotation, realizes non-blind area scanning, and at the same time, uses the multi-line laser radar to realize real-time scanning during the movement of the vehicle to accurately position the real-time posture of the container, which can ensure real-time and point cloud integrity at the same time;

[0099] 2. Complex scene adaptation: the gimbal drives the single-line laser radar, compared with the traditional method of intercepting a single section to calculate the slope to determine the posture, the whole container plane is fitted, which can exclude the influence of local deformation of the container and avoid misjudgment of the overall posture, and adapt to complex scenes;

[0100] 3. High-precision modeling: when the RANSAC is used to fit the container plane, even if there are recesses or attachments (outliers) on the surface, the overall plane posture can still be accurately estimated through the inlier consensus, the RANSAC plane fitting error is less than 2 mm, and the size measurement accuracy is up to centimeter level (the actual measurement error of 99.5% cases is less than 1 cm);

[0101] 4. Dynamic benchmark construction: The platform point set of the loading and unloading platform is extracted through the tolerance threshold to establish a benchmark coordinate system, which can eliminate the coordinate drift caused by the vibration of the loading and unloading platform. The pose measurement stabilization time is less than 0.5 seconds.

[0102] 5. Intelligent anti-interference: KD-Tree combined with BFS clustering algorithm is used to identify interference objects in containers, with an accuracy rate of >95% and a false alarm rate of <3%.

[0103] Example 2

[0104] This embodiment provides a container positioning system based on laser radar, which includes:

[0105] A single-line LiDAR equipped with a rotating gimbal is used to scan containers parked at designated locations. The gimbal drives the single-line LiDAR to rotate and scan at a constant angular velocity, outputting the first point cloud data covering the entire surface of the container and the loading and unloading platform.

[0106] Multi-line laser radar, installed on the loading and unloading platform, is used to scan the environment behind the container when the container or loading and unloading platform moves, and output the second point cloud data;

[0107] The server communicates signals with the single-line laser radar and the multi-line laser radar, and is used to execute the laser radar-based container positioning method as described in Example 1.

[0108] It should be noted that the various functions of the system in the embodiment of the present invention can be found in the corresponding description of the above method and will not be repeated here.

[0109] Example 3

[0110] This embodiment provides an electronic device, Figure 5 FIG. 1 shows a structural block diagram of an electronic device according to an embodiment of the present invention. Figure 5 As shown, the electronic device includes a memory 100 and a processor 200. The memory 100 stores a computer program that can be executed on the processor 200. When the processor 200 executes the computer program, the lidar-based container positioning method described in the above embodiment is implemented. The number of the memory 100 and the processor 200 can be one or more.

[0111] The electronic device also includes:

[0112] The communication interface 300 is used to communicate with external devices and perform data exchange transmission.

[0113] If the memory 100, processor 200, and communication interface 300 are implemented independently, they can be connected to each other via a bus and communicate with each other. This bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. This bus can be divided into an address bus, a data bus, a control bus, etc.

[0114] Optionally, in a specific implementation, if the memory 100, the processor 200 and the communication interface 300 are integrated on a chip, the memory 100, the processor 200 and the communication interface 300 can communicate with each other through an internal interface.

[0115] An embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the program is executed by a processor, the method provided in the embodiment of the present invention is implemented.

[0116] An embodiment of the present invention further provides a chip, which includes a processor for calling and executing instructions stored in a memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present invention.

[0117] An embodiment of the present invention also provides a chip, comprising: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided by the embodiment of the invention.

[0118] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor that supports the advanced reduced instruction set machine (ARM) architecture.

[0119] Furthermore, optionally, the above-mentioned memory may include read-only memory and random access memory, and may also include non-volatile random access memory. The memory may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory may include random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0120] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the present invention are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another.

[0121] In the description of this specification, reference to the terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art may combine and integrate different embodiments or examples described in this specification, as well as features of different embodiments or examples, unless otherwise inconsistent.

[0122] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of such features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.

[0123] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various modifications and substitutions within the technical scope disclosed in the present invention, and such modifications and substitutions are intended to be encompassed by the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A container positioning method based on laser radar, characterized in that: include: Acquire first point cloud data covering the container and the loading and unloading platform, extract the platform point set of the loading and unloading platform from the first point cloud data, perform plane ground fitting, and establish a reference coordinate system based on the platform ground; Iteratively fitting the container point cloud in the first point cloud data using a RANSAC algorithm to obtain plane equations corresponding to multiple dominant planes of the segmented container, including: performing point cloud preprocessing on the container point cloud based on a voxel grid downsampling algorithm to obtain a preprocessed container point cloud; iteratively fitting the preprocessed container point cloud using a RANSAC algorithm and preset plane fitting constraints to obtain plane equations corresponding to the multiple dominant planes; wherein the plane fitting constraints include that the deviation of the angle between adjacent planes is less than a preset angle, and that the plane roughness is less than a preset value; Calculate the current posture of the container in the reference coordinate system based on the plane equations of multiple dominant planes and determine the first posture parameter; During the movement of the container or loading and unloading platform, second point cloud data obtained by scanning the rear environment of the container is obtained, local features of the second point cloud data are extracted using an eight-neighborhood image algorithm to obtain a feature set, clustering and filtering are performed on the feature set to determine the rear position of the container, the first pose parameters are corrected according to the rear position of the container, and the second pose parameters of the container are output.

2. The container positioning method based on laser radar according to claim 1, characterized in that: The first point cloud data is obtained by scanning a container parked at a specified position using a single-line laser radar equipped with a rotating pan-tilt platform, wherein the rotating pan-tilt platform drives the single-line laser radar to rotate and scan at a constant angle.

3. The container positioning method based on laser radar according to claim 1, characterized in that: Calculating the current posture of the container in the reference coordinate system according to the plane equations of the plurality of dominant planes and determining the first posture parameter includes: Calculate container dimensions based on plane equations of multiple dominant planes, where the container dimensions include container length, width, and height; Solve the intersecting plane equations to obtain the coordinates of all vertices of the container, and determine the coordinates of the center of the container based on the coordinates of all vertices; The tilt angle of the container relative to the ground is calculated by the dot product of the bottom normal vector and the ground normal vector, and the horizontal yaw angle and pitch angle are determined according to the slopes of the plane equations of multiple dominant planes.

4. The container positioning method based on laser radar according to claim 1, characterized in that: Also includes: Based on the plane equations corresponding to multiple dominant planes, a corresponding spatial hierarchical index structure is constructed, and the BFS algorithm is used to traverse the spatial hierarchical index structure layer by layer; The neighborhood points are clustered according to the set cluster radius threshold to obtain multiple cluster point cloud groups; The size threshold is used to identify the interference objects in each cluster point cloud group, determine the location of the interference objects and remind the interference objects.

5. The container positioning method based on laser radar according to claim 1, characterized in that: The local feature extraction of the second point cloud data by the eight-neighborhood image algorithm is performed to obtain a feature set including: Extracting a point cloud of the container tail area from the second point cloud data, and projecting the tail point cloud onto a two-dimensional plane to generate a grid matrix; Based on the grid matrix, the point cloud features of the eight neighborhood directions of the central grid are checked to obtain a feature set.

6. The container positioning method based on laser radar according to claim 1, characterized in that: Also includes: The point clouds in the front and back, and up and down directions of the container in the second point cloud data are filtered, and the point clouds on the left and right sides of the container are retained. The two side plane equations are fit using the least squares method, and the real-time direction of the container is determined based on the two side plane equations; wherein the two side plane equations are combined with the tail position of the container to determine the three-dimensional spatial coordinates of the entire container.

7. A container positioning system based on laser radar, characterized in that: include: A single-line laser radar equipped with a rotating pan-tilt head is used to scan containers parked at designated locations and output the first point cloud data. Multi-line laser radar, used to scan the environment behind the container when the container or loading platform moves, and output second point cloud data; The server communicates with the single-line laser radar and the multi-line laser radar signals, and is used to execute the laser radar-based container positioning method as described in any one of claims 1 to 6.

8. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the container positioning method based on laser radar as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the lidar-based container positioning method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Container identification positioning method combining GPS\INS

    CN110673183A

  • Carriage container three-dimensional scanning system point cloud processing method based on two-dimensional laser radar

    CN111192328A