Baijiu warehouse agv lightweight perception fusion method based on scale unification

By employing a scale-consistent data fusion algorithm in the AGV of a liquor warehouse, combined with 2D LiDAR and a monocular camera, the problems of high cost and high algorithm complexity in LiDAR and camera perception fusion were solved, achieving efficient and low-cost obstacle detection and enhancing the obstacle avoidance capability of the AGV.

CN118840640BActive Publication Date: 2026-11-20SICHUAN UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410964974.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2026-11-20
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

In existing technologies, the fusion of LiDAR and camera perception in AGVs used in liquor warehouses suffers from high cost, high algorithm complexity, poor algorithm interpretability, and neglect of sensor obstacle scale differences, resulting in poor obstacle avoidance performance.

Method used

A scale-consistent data fusion algorithm is adopted, which combines 2D LiDAR with a monocular camera, uses the real-time semantic segmentation model LiteSeg to process image data, combines the pinhole camera imaging model to convert obstacle information, and uses radius filtering to denoise, so as to achieve temporal and spatial alignment and scale consistency between LiDAR and pseudo LiDAR data.

Benefits of technology

This improved the robustness and accuracy of the sensing system, reduced hardware costs, and significantly enhanced system performance and real-time capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118840640B_ABST
    Figure CN118840640B_ABST
Patent Text Reader

Abstract

The application provides a liquor warehouse AGV lightweight perception fusion method based on scale unification, and comprises the following steps: S1, image data of a monocular camera is processed through a real-time semantic segmentation model to obtain obstacle information in a pixel coordinate system; S2, an image single-pixel distance estimation geometric model is established to convert the obstacle information in the pixel coordinate system to a world coordinate system, and the obstacle information is referred to as pseudo-laser radar data; S3, radius filtering is adopted for denoising processing; S4, laser radar and pseudo-laser radar data are aligned in time and space, and scale unification is performed; and S5, laser radar and pseudo-laser radar data are fused. The application innovatively proposes a data fusion algorithm based on scale unification, defines and quantifies the scale of sensor data, and effectively fuses different sensor data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a lightweight perception fusion method for AGVs in liquor warehouses based on scale uniformity. Background Technology

[0002] The liquor industry is a vital sector of my country's national economy, boasting a massive market size and significant development potential. However, the current warehousing and transportation of finished liquor products in my country still relies heavily on inefficient manual labor. In recent years, with continuous development and innovation in the warehousing and transportation sector, Automated Storage and Retrieval Systems (AS / RS) have gained increasing attention due to their high degree of automation, high space utilization, and high security. AS / RS typically comprises a control center, Automated Guided Vehicles (AGVs), stacker cranes, and automated racking systems. AGVs, in particular, are mobile robots with positioning capabilities, capable of moving along predetermined paths according to instructions from a host computer, and performing material handling. They are key equipment in modern logistics and warehousing industries such as flexible manufacturing production lines and automated warehouses. AGVs play a crucial role in AS / RS, and solving the problem of intelligent obstacle avoidance for AGVs has been a focus of research. Effectively perceiving the surrounding environment is key to solving the obstacle avoidance problem for AGVs. However, using a single sensor can easily lead to poor obstacle avoidance performance; therefore, achieving the fusion of multi-sensor perception data from AGVs is of significant practical importance.

[0003] Currently, LiDAR and cameras are among the most widely used sensor combinations for mobile robots. LiDAR and cameras complement each other well; LiDAR is better suited to nighttime environments and has better anti-interference capabilities, while cameras can identify and classify objects and have better semantic understanding capabilities. Both LiDAR and cameras encompass various types, including 2D and 3D LiDAR, and cameras such as ordinary RGB cameras (also known as monocular cameras), depth cameras (which can be further divided into binocular cameras, structured light cameras, TOF cameras, etc. based on their ranging principles), infrared cameras, and more. Due to the high cost of 3D LiDAR, 2D LiDAR is the most widely used in industrial applications. 2D LiDAR uses a laser beam to scan the surrounding environment horizontally and measures the reflection time between the laser beam and objects to obtain distance information. LiDAR is a sensor that directly measures the distance to obstacles, while camera data is massive and contains redundant data. Therefore, how to effectively extract obstacle information from image data is one of the current research hotspots in multi-sensor perception fusion. The main method for obtaining obstacle information from image data in many studies is to use depth cameras, such as binocular cameras. Binocular cameras use two cameras spaced a certain distance apart to simulate human stereoscopic vision. They calculate feature points in the left and right images and then calculate the distance between these feature points through projection. However, using depth cameras is generally much more expensive than using monocular cameras, and the algorithms used in binocular cameras are more complex. Therefore, it is essential to use 2D LiDAR and monocular cameras as perception sensors for AGVs and to effectively fuse the data from these two types of sensors.

[0004] Current LiDAR and camera perception fusion technologies have the following drawbacks: First, they use depth cameras, which are costly; second, some algorithms have high complexity, making them unsuitable for deployment on embedded devices or for real-time perception; third, some algorithms use post-fusion strategies, resulting in poor interpretability; and fourth, most algorithms ignore the scale differences in obstacle information from different sensors. Summary of the Invention

[0005] The purpose of this invention is to overcome the shortcomings of existing technologies and provide a lightweight perception fusion method for AGVs used in liquor warehouses based on scale uniformity. This invention innovatively proposes a scale-uniform data fusion algorithm that defines and quantifies the scale of sensor data, achieving effective fusion of data from different sensors. This fusion algorithm enhances the robustness and accuracy of the perception system, using only low-cost 2D LiDAR and monocular cameras as the robot's perception sensors, resulting in a significant improvement in system performance and an effective reduction in hardware costs.

[0006] The objective of this invention is achieved through the following technical solution: a lightweight perception fusion method for AGVs in liquor warehouses based on scale uniformity, comprising the following steps:

[0007] S1. Obtain the distance values ​​of obstacles in all directions around the robot using 2D single-line LiDAR, which is called LiDAR data; use a monocular camera to collect image data around the robot, and process the image data of the monocular camera through a real-time semantic segmentation model to segment the ground and background areas in the image. Obstacle information in the pixel coordinate system is obtained by sampling the boundary pixels of the ground and background areas at equal intervals.

[0008] S2. Based on the pinhole camera imaging model, establish a geometric model for estimating the distance of a single pixel in the image. This geometric model is used to transform obstacle information in the pixel coordinate system to the world coordinate system. The obstacle information extracted from the image is called pseudo-LiDAR data.

[0009] S3. Radius filtering is used for noise reduction to remove noise from pseudo-LiDAR data;

[0010] S4. Perform temporal and spatial alignment on lidar and pseudo lidar data, and standardize the scale.

[0011] S5. Perform fusion of lidar and pseudo lidar data.

[0012] The beneficial effects of this invention are as follows: This invention proposes a simple and lightweight image obstacle information extraction algorithm framework. It employs the real-time semantic segmentation model LiteSeg to process images, thereby obtaining obstacle information in the pixel coordinate system. After model quantization, LiteSeg is only 4MB in size and can achieve an image processing efficiency of 10 frames per second on the Sunrise X3 processor. This efficient model significantly improves the system's real-time performance and response speed.

[0013] Based on the pinhole camera imaging model, this invention proposes a geometric model for estimating the distance of a single pixel in an image. This model is used to transform obstacle information in the pixel coordinate system to the world coordinate system. Simultaneously, an algorithmic framework for fusing LiDAR and monocular camera data is proposed. An innovative scale-consistent data fusion algorithm is proposed, defining and quantifying the scale of sensor data to achieve effective fusion of data from different sensors. This fusion algorithm enhances the robustness and accuracy of the perception system, using only low-cost 2D LiDAR and monocular cameras as the robot's perception sensors, achieving a significant improvement in system performance and an effective reduction in hardware costs. Attached Figure Description

[0014] Figure 1The flowchart is a flowchart of the lightweight perception fusion method for AGVs in liquor warehouses based on scale uniformity according to the present invention.

[0015] Figure 2 This is a diagram of the network architecture of the real-time semantic segmentation model LiteSeg.

[0016] Figure 3 This is a schematic diagram of a pinhole camera model;

[0017] Figure 4 A graph showing the LaserScan data format;

[0018] Figure 5 This is a schematic diagram representing the scale information of lidar data.

[0019] Figure 6 This is a schematic diagram of the lidar data correction process. Detailed Implementation

[0020] This invention first processes image data from a monocular camera using a real-time semantic segmentation model, segmenting the ground and non-ground (background) regions in the image. Obstacle information in the pixel coordinate system is obtained by sampling the boundary pixels of the ground and background regions at equal intervals. Secondly, a geometric model for single-pixel distance estimation is invented based on a pinhole camera imaging model. This model is used to transform the obstacle information in the pixel coordinate system to the world coordinate system; this obstacle information is referred to as pseudo-LiDAR data. Radar filtering is used to remove noise from the pseudo-LiDAR data. Finally, considering the different coordinate systems of LiDAR and pseudo-LiDAR data, spatiotemporal alignment is required. Temporal alignment ensures that the AGV acquires sensor data at the same moment, while spatial alignment transforms the pseudo-LiDAR data from the world coordinate system to the radar coordinate system using a camera-radar joint calibration method. Furthermore, since the scales of the LiDAR and pseudo-LiDAR point cloud data are different, scale consistency processing is required. Therefore, this invention proposes a scale-consistent LiDAR and pseudo-LiDAR data fusion method.

[0021] The technical solution of the present invention will be further described below with reference to the accompanying drawings.

[0022] like Figure 1 As shown, the present invention provides a lightweight perception fusion method for AGVs in a liquor warehouse based on scale uniformity, comprising the following steps:

[0023] S1. The distance values ​​of obstacles in all directions around the robot are obtained using a 2D single-line LiDAR, and this data is called LiDAR data. A monocular camera is used to collect image data around the robot, and the image data is processed using a real-time semantic segmentation model to segment the ground and background regions. Obstacle information in pixel coordinates is obtained by sampling the boundary pixels of the ground and background regions at equal intervals. The LiDAR data is represented using the LaserScan topic format in ROS2, and can be received by subscribing to the LiDAR topic data. Simply put, the LiDAR data is an array representing the distance values ​​of obstacles in all directions around the robot.

[0024] The real-time semantic segmentation model used in this invention is LiteSeg, a lightweight real-time semantic segmentation model capable of performing real-time semantic segmentation tasks on devices with limited computing resources. It maintains high segmentation accuracy while having a small model size and low computational complexity. The LiteSeg model is based on an encoder-decoder architecture, and its network architecture is as follows: Figure 2 As shown in the diagram. In the diagram, `conv` represents convolution, `Average Pooling` represents average pooling, `upsample` represents upsampling, and `Concatenate` represents connecting multiple network branches. In the LiteSeg model, the encoder extracts and fuses multi-scale features from the input data, and the decoder uses these features to generate a segmented image.

[0025] The LiteSeg model offers various backbone networks to adapt to diverse needs. This invention employs MobileNetV2 as its backbone network. MobileNetV2 maintains a small model size and computational complexity while exhibiting high performance in image classification and object detection. It has been widely applied in resource-constrained environments such as mobile devices, embedded systems, and edge computing, becoming one of the important representatives of lightweight deep learning models.

[0026] This invention uses cross-entropy as the loss function for the model, and the expression of the loss function is shown in equation (1). Where N represents the number of samples in each training batch, H and W represent the height and width of the image, and y... ij This represents the probability that the model correctly predicts the class of pixel ij. The optimizer chosen is the Adam optimizer, with an initial learning rate of the default value of 0.001.

[0027]

[0028] The model's evaluation metric is the Mean Intersection over Union (MIoU), a commonly used metric in semantic segmentation tasks that measures the accuracy of the model's predictions for each class of pixels in an image. The MIoU calculation method is shown in Equation (2). Where N... class TP indicates the number of categories. i FP represents the number of pixels predicted to be class i that are actually also class i. i FN represents the number of pixels predicted to be class i but actually not class i. i This represents the number of pixels that were predicted to be of class i but actually belong to class i.

[0029]

[0030] The training, testing, and deployment process of the real-time semantic segmentation model LiteSeg is as follows:

[0031] (1) Acquire image data;

[0032] (2) Data labeling;

[0033] (3) Divide the training set and the test set;

[0034] (4) Train on a PC, use MIoU as the evaluation metric, and select the model that performs best in the test set;

[0035] (5) Model quantization: Convert the floating-point model into a fixed-point model to obtain a fixed-point model file;

[0036] (6) Deploy the fixed-point model file to the robot.

[0037] S2. Based on the pinhole camera imaging model, establish a geometric model for estimating the distance of a single pixel in the image. This geometric model is used to transform obstacle information in the pixel coordinate system to the world coordinate system. The obstacle information extracted from the image is called pseudo-LiDAR data.

[0038] The pinhole camera model is the most common camera imaging geometry model. (Examples of pinhole camera models are listed below.) Figure 3 As shown, the pinhole camera model comprises four coordinate systems: world coordinate system, camera coordinate system, image coordinate system, and pixel coordinate system. The world coordinate system and camera coordinate system are three-dimensional coordinate systems, while the image coordinate system and pixel coordinate system are two-dimensional coordinate systems.

[0039] The world coordinate system is an absolute coordinate system, often used to describe the true position and orientation of objects in a scene;

[0040] The camera coordinate system represents the camera's own coordinate system, with the camera's optical center (optical center) as the origin, the camera's optical axis as the z-axis, and the camera's image plane as the xy-plane;

[0041] The image coordinate system is a coordinate system on the camera's imaging plane, used to describe the position of points on the imaging plane. Its origin is located at the center of the imaging plane, and the x-axis and y-axis are parallel to the two sides of the imaging plane, respectively.

[0042] The pixel coordinate system and the image coordinate system are located on the same plane and are used to describe the position of the image in the digital sensor or digital image. Its origin is located at the upper left corner of the image, the x-axis is to the right, and the y-axis is downward.

[0043] In the pixel coordinate system, the unit is the number of pixels; in other coordinate systems, the value represents the physical distance, and the unit is centimeters or meters.

[0044] The relationship between the four coordinate systems is as follows: the transformation from the world coordinate system to the camera coordinate system is a rigid body transformation; the transformation from the camera coordinate system to the image coordinate system is a perspective projection relationship; and the transformation from the image coordinate system to the pixel coordinate system is an affine transformation. The parameters used to describe the transformation relationship between the camera coordinate system and the pixel coordinate system are called camera intrinsic parameters, and the parameters used to describe the transformation relationship between the world coordinate system and the camera coordinate system are called camera extrinsic parameters.

[0045] The transformation relationships between the four coordinate systems are shown in the following equation:

[0046]

[0047] Where (U,V,W) are the physical coordinates in the world coordinate system, (u,v) are the pixel coordinates in the pixel coordinate system corresponding to the point, and Z represents the scale factor; the left multiplication matrices on the right side of the equation represent the affine transformation matrix, perspective projection matrix, and rigid body transformation matrix from left to right; in the affine transformation matrix, dX and dY represent the physical dimensions of a single pixel in the X and Y directions, respectively; θ considers the possible rotation between the pixel coordinate system and the image coordinate system, and most literature generally assumes θ to be 90° here; u0 and v0 represent the translation of the image coordinate system relative to the pixel coordinate system along the X and Y axes, respectively; in the perspective projection matrix, f represents the camera focal length; in the rigid body transformation matrix, R is a 3×3 rotation matrix, and T is a 3×1 translation vector, which describe the rotation and translation relationship between the world coordinate system and the camera, respectively.

[0048] The affine transformation matrix and the perspective projection matrix are combined to obtain the distortion-free pinhole camera imaging parameter model, as shown in the following equation:

[0049]

[0050] In the equation, the left-multiplied matrices on the right-hand side of the equation represent the intrinsic parameter matrix and the extrinsic parameter matrix, respectively.

[0051] Considering that the sampled points after semantic segmentation are located in the boundary region between the ground and non-ground areas, we can set W=0 in the world coordinate system, and after simplification, we get:

[0052]

[0053] Merging the intrinsic parameter matrix and the extrinsic parameter matrix yields:

[0054]

[0055] Where H is the parameter matrix, which is the matrix product of the intrinsic parameter matrix and the extrinsic parameter matrix;

[0056] Eliminating the scale factor Z in the above equation yields the geometric model for estimating the distance between single pixels in the image, as shown in the following equation:

[0057]

[0058] This formula can transform coordinates in the pixel coordinate system to the world coordinate system. The parameter matrix H is solved using the checkerboard calibration method and the PnP algorithm, where the checkerboard calibration method is used to solve for the camera intrinsic parameters, and the PnP algorithm is used to solve for the camera extrinsic parameters.

[0059] S3. Radius filtering is used for denoising to remove noise from pseudo-LiDAR data. Radius filtering is an image processing technique widely used for smoothing images and removing noise. It is based on the spatial relationship between pixels, defines a radius to determine the neighborhood range, and performs some form of weighted averaging or other operations on the pixels within this range. It is mainly used for denoising, smoothing, and sparsification.

[0060] In point cloud data processing, the first step of radius filtering is to find the neighboring points of each point within a specified radius. The second step is to define a threshold. If the number of neighboring points of a point within a specified radius is less than this threshold, the point is considered a noise point. Then, the point cloud data is traversed, and all points with fewer than the threshold neighboring points are deleted.

[0061] S4. Perform temporal and spatial alignment on the lidar and pseudo lidar data, and standardize their scale; the specific implementation method is as follows:

[0062] S41. Time Alignment: Two threads are created: one to receive data from the LiDAR and monocular camera, and the other to fuse the data. Data reception and fusion run concurrently. Two lock objects are created to lock the LiDAR and monocular camera data respectively, controlling whether their data is updated. Locking prevents data updates. When data is received from the LiDAR and monocular camera, the corresponding lock object is acquired; if successful, the corresponding data is updated. When fusing LiDAR and monocular camera data, both lock objects are acquired; if successful, subsequent fusion operations are performed. Acquiring two lock objects ensures that data is locked and not updated during fusion. For example, if variables 'a' and 'b' represent two types of sensor data, without locking, the data of 'a' and 'b' will constantly change during fusion, making it impossible to guarantee that they are from the same time. Therefore, locking is needed to ensure that the data of 'a' and 'b' remain unchanged during fusion, and the locks are released for updates after fusion is complete. This implementation ensures that sensor data is not updated during data fusion, thus achieving time alignment.

[0063] S42. Spatial Alignment of Pseudo-LiDAR Data and Radar Data: After obtaining pseudo-LiDAR data from image data, it is not possible to directly fuse the pseudo-LiDAR data and radar data because their coordinate systems are not unified. Therefore, spatial alignment of the pseudo-LiDAR data and radar data is required. In this invention, a real-time semantic segmentation model and an image single-pixel distance estimation geometric model are established to obtain obstacle information in the image data. The output of the model is the three-dimensional coordinates in the world coordinate system, i.e., the pseudo-LiDAR data. Therefore, to achieve spatial alignment of the two sensors, the transformation relationship from the world coordinate system to the radar coordinate system needs to be obtained. To simplify the above problem, the radar coordinate system and the world coordinate system are regarded as two-dimensional coordinate systems, i.e., coordinate systems that only contain XY coordinates, thereby aligning the two sensor data.

[0064] Now, assuming a point in the world coordinate system is (U, V) and its coordinates in the radar coordinate system are (X, Y), then the above two coordinates should satisfy the following relationship:

[0065]

[0066] Where R is a 2×2 rotation matrix and T is a 2×1 translation vector; the rotation matrix and translation vector are obtained by solving the above equations using a camera-radar joint calibration method, thus obtaining the transformation relationship between the world coordinate system and the radar coordinate system. This enables the transformation of pseudo-LiDAR data from the world coordinate system to the radar coordinate system, achieving coordinate system unification for the two types of point cloud data.

[0067] S43. Scale Consistency: The LaserScan topic data format is a commonly used method for representing two-dimensional lidar data. This format consists of a series of laser beam measurements, used to represent the distance information of the reflection point at different angles of a laser beam emitted from a fixed position by the radar. The LaserScan data format can be derived from... Figure 5 The visualization shows the LiDAR coordinate system, represented by solid lines. This coordinate system is divided into several equally spaced sector regions. The angle of each sector represents the angular resolution of the radar data. The radar point clouds are located on the boundaries of each sector (points on the dashed lines in the diagram). The radar point cloud data is obtained from measurements by a 2D single-line LiDAR. A single-line LiDAR measures distance by emitting a laser and receiving the reflected light. The radar rotates at a constant speed to measure distances in 360 degrees. The point cloud data measured by the LiDAR is uniformly distributed, but there may be situations where there are no obstacles in a certain direction or obstacles are too far away to be detected. When there are no obstacles in a certain direction or the maximum detection distance is exceeded, the corresponding position in the radar array is stored as inf (representing infinite distance) as a placeholder. The points on the dashed lines in the diagram represent the radar point clouds in various angular directions. The radar point clouds represent obstacles detected by the LiDAR, and the distance between each point cloud and the origin represents the distance to the obstacle. It should be noted that in the LaserScan data format, the radar data array is arranged according to angles from -π to π, meaning the point cloud data along the negative X-axis is the first element in the array. When fusing pseudo-LiDAR data with LiDAR data, the fusion result is still represented using the LiDAR LaserScan data format. However, due to the scale inconsistency between the pseudo-LiDAR data and the LiDAR data, direct fusion may result in poor fusion performance.

[0068] Scale normalization refers to transforming data into a range with similar scales to facilitate comparison, analysis, or application. In many fields, scale normalization is an important preprocessing step that helps eliminate scale differences between data, enabling effective comparison and integration. It plays a crucial role in both statistical analysis and image processing.

[0069] In LaserScan format LiDAR data, scale information can be represented by angular resolution. For example... Figure 5 As shown, the obstacle scale represented by point S can be represented by the size of the fan-shaped region formed by the dotted lines l1 and l2, and the size of the fan-shaped region formed by the dotted lines l1 and l2 can be represented by the angular resolution, where the dotted lines l1 and l2 are the angle bisectors of the fan-shaped regions on both sides of the boundary line where S is located.

[0070] For the obstacle information scale extracted from image data, i.e., the pseudo-LiDAR data scale, this invention uses equation (9) to estimate its scale. Here, the horizontal field of view is an inherent parameter of the camera, and the number of samples is the number of sampling points at equal intervals for boundary pixels after semantic segmentation.

[0071]

[0072] After the scaling calculations are completed, the scale ratio between the pseudo-LiDAR data and the LiDAR data are calculated, as well as the position index of each point cloud in the pseudo-LiDAR data corresponding to a sector in the LiDAR coordinate system. The scale ratio is used to determine the scale range of the pseudo-LiDAR data, and the position index is used to determine the position of the pseudo-LiDAR point cloud data in the LiDAR coordinate system. Finally, the LiDAR data is corrected using the pseudo-LiDAR data based on the above two calculation results.

[0073] The correction process is as follows: Assume point S represents a point cloud in the pseudo-LiDAR data, point S' represents the point cloud position of point S in the LiDAR coordinate system, and the scale ratio between the pseudo-LiDAR and the LiDAR is Q. When Q is even, within the scale range of point S in the LiDAR data, select Q / 2 LiDAR point cloud data points in each of the two regions to the left and right of the boundary line where point S is located. If the obstacle distance value represented by any point in these regions is greater than the obstacle distance value represented by point S, then the obstacle distance value of that point is modified to the obstacle distance value represented by point S. When Q is odd, first find the sector where S' is located, and determine whether S is to the left or right of the angle bisector of the sector where S' is located (i.e., the boundary line where S' is located). If it is to the left, select (Q-1) / 2+1 LiDAR point cloud data points on the left and (Q-1) / 2 on the right. If it is to the right, select (Q-1) / 2+1 on the right and (Q-1) / 2 on the left. For the selected LiDAR point cloud data, if the obstacle distance value represented by any point is greater than the obstacle distance value represented by point S, then modify the obstacle distance value of that point to the obstacle distance value represented by point S.

[0074] like Figure 6 As shown, in this embodiment, the scale ratio between the pseudo-LiDAR and the LiDAR is 2. In the figure, the fan-shaped area formed by the green dashed line represents the angular resolution of the pseudo-LiDAR data, and the fan-shaped area formed by the black dashed line represents the angular resolution of the LiDAR data. S1 and S2 are LiDAR point cloud data within the scale range of point S. In the figure, point S is closer to the origin than points S1 and S2, so the obstacle distance values ​​of S1 and S2 need to be modified to the obstacle distance values ​​represented by S. The above process is the correction process of LiDAR data using pseudo-LiDAR data.

[0075] S5. Perform fusion of lidar and pseudo lidar data.

[0076] Those skilled in the art will recognize that the embodiments described herein are intended to help the reader understand the principles of the invention, and should be understood that the scope of protection of the invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific modifications and combinations based on the technical teachings disclosed in this invention without departing from the spirit of the invention, and these modifications and combinations are still within the scope of protection of this invention.

Claims

1. A lightweight perception fusion method for AGVs in liquor warehouses based on scale uniformity, characterized in that, Includes the following steps: S1. Obtain the distance values ​​of obstacles in all directions around the robot using 2D single-line LiDAR, which is called LiDAR data; use a monocular camera to collect image data around the robot, and process the image data of the monocular camera through a real-time semantic segmentation model to segment the ground and background areas in the image. Obstacle information in the pixel coordinate system is obtained by sampling the boundary pixels of the ground and background areas at equal intervals. S2. Based on the pinhole camera imaging model, establish a geometric model for estimating the distance of a single pixel in the image. This geometric model is used to transform obstacle information in the pixel coordinate system to the world coordinate system. The obstacle information extracted from the image is called pseudo-LiDAR data. S3. Radius filtering is used for noise reduction to remove noise from pseudo-LiDAR data; S4. Perform temporal and spatial alignment on the lidar and pseudo lidar data, and standardize their scale; the specific implementation method is as follows: S41, Time Alignment: Create two threads: one to receive data from the LiDAR and monocular camera, and the other to fuse the data from the LiDAR and monocular camera. Create two lock objects to control whether the LiDAR and monocular camera data are updated. When data from the LiDAR and monocular camera is received, attempt to acquire the corresponding lock object; if successful, update the corresponding data. When fusing the LiDAR and monocular camera data, attempt to acquire both lock objects; if successful, proceed with the subsequent fusion operation. S42. Spatial alignment of pseudo-LiDAR data and radar data: Treat the radar coordinate system and the world coordinate system as two-dimensional coordinate systems, that is, coordinate systems that only contain XY coordinates, so as to align the data of the two sensors. Now, assuming a point in the world coordinate system is (U, V) and its coordinates in the radar coordinate system are (X, Y), then the two coordinates should satisfy the following relationship: ; Where R is a 2×2 rotation matrix and T is a 2×1 translation vector; the above equations are solved by camera-radar joint calibration to obtain the rotation matrix and translation vector, and the transformation relationship between the world coordinate system and the radar coordinate system is obtained; thus, the pseudo-lidar data is transformed from the world coordinate system to the radar coordinate system, realizing the coordinate system unification of the two point cloud data. S43. Perform scale uniformity: Divide the lidar coordinate system into several equally spaced sector regions. The angle of the sector region represents the angular resolution of the radar data. The radar point cloud is located on the boundary line of each sector region. The distance between each point cloud and the origin represents the distance to the obstacle. The scale of pseudo-LiDAR data is estimated using the following formula: ; The horizontal field of view is an inherent parameter of the camera, and the number of samples is the number of sampling points that are sampled at equal intervals for boundary pixels after semantic segmentation. After the scale calculations are completed, the scale ratio between the pseudo-LiDAR data and the LiDAR data are calculated, as well as the position index of each point cloud in the pseudo-LiDAR data corresponding to the sector region in the LiDAR coordinate system. The scale ratio is used to determine the scale range of the pseudo-LiDAR data, and the position index is used to determine the position of the pseudo-LiDAR point cloud data in the LiDAR coordinate system. Finally, the LiDAR data is corrected using the pseudo-LiDAR data based on the above two calculation results. S5. Perform fusion of lidar and pseudo lidar data.

2. The lightweight perception fusion method for AGVs in a liquor warehouse based on scale uniformity as described in claim 1, characterized in that, The specific implementation method of step S2 is as follows: The pinhole camera model includes four coordinate systems: world coordinate system, camera coordinate system, image coordinate system, and pixel coordinate system. The world coordinate system and camera coordinate system are three-dimensional coordinate systems, while the image coordinate system and pixel coordinate system are two-dimensional coordinate systems. The world coordinate system is an absolute coordinate system, often used to describe the true position and orientation of objects in a scene; The camera coordinate system represents the camera's own coordinate system, with the camera's optical center as the origin, the camera's optical axis as the z-axis, and the camera's image plane as the xy-plane; The image coordinate system is a coordinate system on the camera's imaging plane, used to describe the position of points on the imaging plane. Its origin is located at the center of the imaging plane, and the x-axis and y-axis are parallel to the two sides of the imaging plane, respectively. The pixel coordinate system and the image coordinate system are located on the same plane and are used to describe the position of the image in the digital sensor or digital image. Its origin is located at the upper left corner of the image, the x-axis is to the right, and the y-axis is downward. In the pixel coordinate system, the unit is the number of pixels; in other coordinate systems, the value represents the physical distance, and the unit is centimeters or meters. The relationship between the four coordinate systems is as follows: the transformation from the world coordinate system to the camera coordinate system is a rigid body transformation; the transformation from the camera coordinate system to the image coordinate system is a perspective projection relationship; and the transformation from the image coordinate system to the pixel coordinate system is an affine transformation. The parameters used to describe the transformation relationship between the camera coordinate system and the pixel coordinate system are called camera intrinsic parameters, and the parameters used to describe the transformation relationship between the world coordinate system and the camera coordinate system are called camera extrinsic parameters. The transformation relationships between the four coordinate systems are shown in the following equation: ; Where (U, V, W) are the physical coordinates in the world coordinate system, (u, v) are the pixel coordinates in the pixel coordinate system corresponding to the point, and Z represents the scale factor; the left-multiplication matrices on the right side of the equation represent the affine transformation matrix, perspective projection matrix, and rigid body transformation matrix from left to right; in the affine transformation matrix, dX and dY represent the physical dimensions of a single pixel in the X and Y directions, respectively, and θ is 90°. and These represent the translations of the image coordinate system relative to the pixel coordinate system along the X and Y axes, respectively; in the perspective projection matrix, f represents the camera focal length; in the rigid body transformation matrix, R is a 3×3 rotation matrix and T is a 3×1 translation vector, which respectively describe the rotation and translation relationships between the world coordinate system and the camera. The affine transformation matrix and the perspective projection matrix are combined to obtain the distortion-free pinhole camera imaging parameter model, as shown in the following equation: ; In the equation, the left-multiplied matrices on the right-hand side of the equation represent the intrinsic parameter matrix and the extrinsic parameter matrix, respectively. Setting W=0 in the world coordinate system, we get the following after simplification: ; Merging the intrinsic parameter matrix and the extrinsic parameter matrix yields: ; Where H is the parameter matrix, which is the matrix product of the intrinsic parameter matrix and the extrinsic parameter matrix; Eliminating the scale factor Z in the above equation yields the geometric model for estimating the distance between single pixels in the image, as shown in the following equation: ; The parameter matrix H is solved using the chessboard calibration method and the PnP algorithm. The chessboard calibration method is used to solve the camera intrinsic parameters, and the PnP algorithm is used to solve the camera extrinsic parameters.

Citation Information

Patent Citations

  • Monocular vision scene depth estimation method based on deep learning

    CN110310317A

  • Three-dimensional target detection and identification method based on multi-source fusion in vehicle-road cooperation scene

    CN114332494A