Method for establishing elevation map

By combining point cloud data, inertial navigation data and deep learning models, the elevation map of unmanned tracked vehicles is established, which solves the safety issues of vehicle pose estimation and elevation map establishment in complex environments, and achieves high-quality maps under harsh conditions. Real-time creation and improved environmental awareness.

CN118603076AActive Publication Date: 2024-09-06BEIJING INST OF TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410618064.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-09-06
Estimated Expiration
2044-05-17

AI Technical Summary

Technical Problem

When an unmanned tracked vehicle travels in a complex environment, it is difficult to accurately estimate the vehicle pose and establish an elevation map, which may exceed the movement safety boundary and affect driving safety.

Method used

Through the vehicle's point cloud data, inertial navigation data and loop detection, a factor graph is established, combined with deep learning models such as Transformer and multi-layer perceptron, to extract global descriptors, perform pose information splicing and clustering processing, and generate an elevation map. Completion is performed using a pre-trained elevation map completion model.

Benefits of technology

In the case of GNSS signal loss, lidar observation degradation and smoke interference, high-quality elevation maps are established in real time to improve the system's real-time performance and unknown area environment awareness capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118603076A
    Figure CN118603076A
Patent Text Reader

Abstract

The invention relates to a method for establishing an elevation map, relates to the technical field of autonomous navigation, and solves the problem of driving safety of an existing unmanned tracked vehicle in a complex environment. The elevation map establishment method comprises the following steps: determining first pose information of a vehicle through point cloud data of the vehicle; determining second pose information of the vehicle through inertial navigation data of the vehicle; extracting a global descriptor from the point cloud data and carrying out loopback detection to obtain third pose information of the vehicle; establishing a factor graph taking the first pose information, the second pose information and the third pose information as observation quantity factors, and solving the factor graph to obtain pose information of the vehicle; splicing the point cloud data based on the pose information to obtain a point cloud map; and performing clustering processing on the point cloud in the point cloud map, and establishing an elevation map based on a clustering processing result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of autonomous navigation technology, and in particular to a method for establishing an elevation map. Background Art

[0002] With the development of unmanned technology, unmanned tracked platforms have always been the most popular ground unmanned platforms due to their good performance, high safety, strong carrying capacity, and ability to adapt to harsh environments with complex conditions. In recent years, unmanned tracked platforms have been greatly developed, and related technologies have been widely used in various occasions, such as disaster relief and border patrol.

[0003] When unmanned tracked vehicles are driving in complex environments, especially in off-road conditions, the environment height fluctuates greatly and the vehicle posture changes greatly. If the three-dimensional characteristics of the environment are not considered and the three-dimensional motion planning and control of the vehicle are not performed, the actual performance of the vehicle is very likely to exceed the motion safety boundary, posing a great threat to driving safety. In order to maximize the driving safety of the vehicle and improve the system's passability, it is very necessary to accurately and real-timely estimate the posture of the unmanned vehicle and establish an elevation map. Summary of the invention

[0004] In view of the above analysis, an embodiment of the present invention aims to provide a method for establishing an elevation map to solve the problem of driving safety of existing unmanned tracked vehicles in complex environments.

[0005] On the one hand, an embodiment of the present invention provides a method for establishing an elevation map, comprising the following steps:

[0006] Determine the first position information of the vehicle through the point cloud data of the vehicle;

[0007] Determine the second position information of the vehicle through the inertial navigation data of the vehicle;

[0008] Extracting a global descriptor from the point cloud data and performing loop closure detection to obtain third pose information of the vehicle;

[0009] Establishing and solving a factor graph with the first posture information, the second posture information and the third posture information as observation factors to obtain posture information of the vehicle;

[0010] splicing the point cloud data based on the posture information to obtain a point cloud map;

[0011] The point cloud in the point cloud map is clustered and an elevation map is established based on the clustering result.

[0012] Further improvements based on the above method also include:

[0013] The elevation map is input into a pre-trained elevation map completion model to complete the completion of the elevation map.

[0014] Based on the further improvement of the above method, extracting the global descriptor from the point cloud data and performing loop detection to obtain the third posture information of the vehicle includes:

[0015] Projecting the point cloud data into a range image;

[0016] Inputting the range image into a feature extraction model to obtain a global descriptor of the range image;

[0017] The K-NN algorithm is used to perform nearest neighbor matching on the global descriptor at the current moment and the global descriptor at the historical moment to obtain the third posture information of the vehicle.

[0018] Based on the further improvement of the above method, the feature extraction model includes a Transformer neural network and a multi-layer perceptron, the Transformer neural network is used to extract feature information of the distance image, and the multi-layer perceptron is used to aggregate the feature information into a global descriptor that characterizes whether the distance images at different times represent that the vehicle is in the same posture.

[0019] Based on the further improvement of the above method, the observation factor of the factor graph also includes the fourth posture information of the vehicle, and the fourth posture information is determined by the global navigation satellite system GNSS data of the vehicle, and the initial factor of the factor graph is determined by the initial posture of the vehicle calculated by the inertial navigation data.

[0020] Based on the further improvement of the above method, after clustering the point cloud in the point cloud map and before establishing the elevation map based on the clustering processing result, it also includes:

[0021] Counting the distribution information of each type of point cloud in the point cloud map;

[0022] Outliers whose nearest neighbor Euclidean distance is greater than a preset threshold are considered as smoke and filtered out.

[0023] Based on the further improvement of the above method, the step of splicing the point cloud data based on the pose information to obtain a point cloud map includes:

[0024] Determine position change information and second attitude change information through the position and posture information, wherein the second attitude change information includes heading angle change information;

[0025] The point cloud data are spliced ​​according to the position change information and the posture change information to obtain a point cloud map.

[0026] Based on a further improvement of the above method, before stitching the point cloud data based on the pose information, it also includes:

[0027] Acquire the point cloud data corresponding to a key frame, wherein the key frame is a frame in which a change in the second posture information of the vehicle meets a preset threshold;

[0028] Downsampling the point cloud data corresponding to the key frame to obtain a sparse point cloud of the key frame;

[0029] Furthermore, the step of splicing the point cloud data according to the position change information and the posture change information to obtain a point cloud map includes:

[0030] The sparse point clouds of the key frames are spliced ​​according to the position change information and the posture change information to obtain a sparse point cloud map.

[0031] Based on the further improvement of the above method, the method for establishing the factor graph includes:

[0032] The frame in which the change of the second posture information of the vehicle meets a preset threshold is set as a key frame;

[0033] A sliding window is established with the R key frames at the most recent time, where R is an integer greater than 1;

[0034] The first posture information, the second posture information, the third posture information, and the fourth posture information of the vehicle are inserted into a factor graph in an incremental form.

[0035] Based on the further improvement of the above method, the elevation map completion model is a U-Net neural network model based on an encoder-decoder.

[0036] Compared with the prior art, the present invention can achieve at least one of the following beneficial effects:

[0037] 1. The present invention can establish high-quality elevation maps in real time in scenarios where GNSS signals are lost or jump, and in scenarios where lidar observations are severely degraded or interfered by smoke and dust.

[0038] 2. The present invention improves the real-time performance of the system and realizes the environmental perception capability of predicting unknown areas by constructing data sets offline and training elevation map completion models with masks.

[0039] In the present invention, the above-mentioned technical solutions can also be combined with each other to achieve more preferred combination solutions. Other features and advantages of the present invention will be described in the subsequent description, and some advantages can become obvious from the description, or can be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained through the contents particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings are only used for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. In the entire drawings, the same reference symbols represent the same components;

[0041] Figure 1 4 is a flow chart of a method for establishing an elevation map according to an embodiment of the present invention.

[0042] Figure 2 A schematic diagram of a loop closure detection based on deep learning according to an embodiment of the present invention is shown.

[0043] Figure 3 A schematic flow chart of a method for training an elevation map completion model according to an embodiment of the present invention is shown.

[0044] Figure 4 A schematic diagram of performing mask processing on an elevation map according to an embodiment of the present invention is shown.

[0045] Figure 5 A schematic diagram of a neural network structure of an elevation map completion model according to an embodiment of the present invention is shown.

[0046] Figure 6 A schematic diagram of a neural network structure of an improved ViT module according to an embodiment of the present invention is shown.

[0047] Figure 7 A structural schematic diagram of a deep convolutional feed-forward network in an improved ViT module according to an embodiment of the invention is shown. DETAILED DESCRIPTION

[0048] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0049] Figure 1 4 is a flow chart of a method for establishing an elevation map according to an embodiment of the present invention.

[0050] Combine the following Figure 1 An embodiment of the present invention will be described.

[0051] like Figure 1 As shown, the method for establishing the elevation map includes the following steps:

[0052] Step 101: Determine the first position information of the vehicle through the point cloud data of the vehicle.

[0053] The point cloud data here may be point cloud data acquired by a laser radar.

[0054] In this embodiment, line and surface features may be extracted from the point cloud data first, and then the position change of the vehicle may be obtained based on inter-frame matching. The process is described below in conjunction with a specific embodiment.

[0055] First, the point cloud P can be projected into a distance image R1, which can be expressed as: Each pixel of the distance image R1 corresponds to a point in the point cloud. Specifically, for point p in the point cloud i =(x,y,z)P, the pixel representing the distance information in the distance image can be converted by equation 1.1 (u n ,v n ):

[0056]

[0057] In equation 1.1, ξ=|φ up |+|φ down | represents the vertical field of view of the laser radar, φ up and φ down is the upward and downward tilt angle of the laser radar, (x, y, z) represents the three-dimensional coordinates of the point cloud, x n ,y n 、z n Represents the three-dimensional coordinates of the nth point cloud, r n represents the radius from the nth point cloud to the lidar, w represents the width of the range image, and h represents the height of the range image.

[0058] Then, line and surface feature extraction is performed on the range image. Specifically, let S be the set of continuous points in the same row of the range image, and the roughness c can be calculated by equation 1.2:

[0059]

[0060] In equation 1.2, r i ,r j is the pixel value of the distance image, that is, the distance from the corresponding point cloud to the lidar, |S| represents the number of points in the set S, and the double vertical line ‖ represents the modulus.

[0061] Next, sort the roughness c of the points in each row of the distance image and use the threshold c th Distinguish line and surface features. For example, if the roughness c of the point is greater than the threshold c th , then the point is segmented into a line feature; if the roughness c of the point is less than the threshold c th , then the points are segmented into surface features.

[0062] Finally, the laser radar is used to calculate the vehicle's posture change. Specifically, the midline feature E of the point cloud at the next moment is first established through equation 1.3 k+1Features of dough k+1 Line features reprojected to the point cloud coordinate system at the previous moment Features of dough The relationship between:

[0063]

[0064] In equation 1.3, X (k+1,i) Yes k+1 or k+1 The coordinates of feature point i in , yes or The coordinates of the corresponding points in T (k+1,i) (1:3) is the transformation matrix T (k+1,i) =[t x ,t y ,t z ,θ x ,θ y ,θ z ] Τ The first three rows of R are the rotation matrices defined by the Rodriguez formula (i.e., equation 1.4):

[0065]

[0066] In equation 1.4, θ = ||T (k+1,i) (4:6)|| is the last three rows of the transformation matrix; ω is the unit vector of the rotation axis. Afterwards, for each feature point X (k+1,i) In E k+1 or k+1 In any case, a nonlinear function can be established (e.g., Equation 1.5):

[0067]

[0068] In equation 1.5, is the normalized feature point distance, n T is the line feature E k+1 Direction unit vector or surface feature Η k+1 Normal unit vector. Then, the Levenberg-Marquard algorithm is used to optimize the corresponding distance d to make it close to 0, thereby solving the rotation matrix R and transformation matrix T (k+1,i) (1:3). Finally, use the solved rotation matrix R and transformation matrix T (k+1,i) (1:3), based on the posture information at the previous moment, the posture information of the vehicle at the next moment is obtained, which is the first posture information of the vehicle in the present invention. Step 102: Determine the second posture information of the vehicle through the inertial navigation data of the vehicle.

[0069] In this embodiment, the inertial navigation data of the vehicle at different times can be used to calculate the vehicle's posture information through pre-integration. Specifically, the inertial navigation data between the i-th frame and the j-th frame are used to calculate the vehicle's posture, displacement and speed information at time j through equation 1.6:

[0070]

[0071]

[0072]

[0073] In equation 1.6, q i The quaternion representation q representing the vehicle posture corresponding to the i-th frame i (α i ,β i ,γ i ), α i represents the pitch angle, β i represents the roll angle, γ i represents the heading angle, p i represents the vehicle position corresponding to the i-th frame, V i represents the vehicle speed corresponding to the i-th frame, R k Q k The matrix representation is: △t represents the time interval between two adjacent frames of inertial navigation data, ω k represents the angular velocity measured by the gyroscope, b g represents the angular velocity offset, a k represents the acceleration measured by the accelerometer, b a is the acceleration offset.

[0074] Using wheel odometers as the position and posture estimate in off-road environments is easily affected by ground undulations, slips, and turns, resulting in large errors. Using the results of inertial navigation data pre-integration to estimate vehicle position and posture can avoid this problem.

[0075] Step 103: extracting a global descriptor from the point cloud data and performing loop detection to obtain the third posture information of the vehicle.

[0076] Loop detection refers to the process in which the system can identify and use this information to correct the accumulated positioning error when the unmanned vehicle returns to a previously visited location (forming a closed loop) within a period of time. Loop detection methods include feature-based methods, appearance-based methods, topology-based methods, and consistency-based methods. In feature-based methods, features can be extracted from images or sensor data and a feature database can be constructed. When the unmanned vehicle returns to a previously visited location, the loop is detected by matching the features in the current image with the features in the database.

[0077] A global descriptor is a feature vector used in the field of computer vision to represent the content of an image. It can capture the overall information of an image. The purpose of a global descriptor is to enable computers to have a high-level understanding of an image, such as identifying scenes and object categories in an image, or comparing similarities between images. Methods for generating global descriptors include histogram statistics, feature aggregation, and deep learning. In histogram statistics, the features of a scene can be statistically described by manually designing a global descriptor.

[0078] In some embodiments, a deep learning-based method may be used to extract a global descriptor of the range image R1 and perform loop detection. Figure 2 The following is a schematic diagram of the loop detection principle based on deep learning according to an embodiment of the present invention. Figure 2 Provide explanation.

[0079] like Figure 2 As shown in the figure, the frames with every 1m change in position or 10° change in posture can be set as key frames, and the corresponding distance image R1 uses a deep neural network with a "Transformer + multi-layer perceptron (MLP)" architecture to extract the global descriptor (also known as the "global descriptor vector"). Specifically, first, the hierarchical Transformer extracts the high-dimensional features of the distance image R1 through local and global receptive fields at different spatial resolutions; then, the multi-layer perceptron (MLP) aggregates the high-dimensional features of the distance image R1 into a compact global descriptor vector, and the aggregated global descriptor can characterize whether the distance images R1 at two moments correspond to the same posture; finally, the global descriptors of the current frame and the historical frame are matched by K-NN nearest neighbors to obtain the loop detection factor, thereby obtaining the vehicle's posture estimation information.

[0080] In this embodiment, compared with the original point cloud and the range image R1, the dimension of the global descriptor vector in this embodiment is lower, so the amount of data is very small. Using it for loop detection can greatly improve the real-time performance of the system.

[0081] Step 104: Establish a factor graph with the first posture information, the second posture information and the third posture information as observation factors and solve it to obtain the posture information of the vehicle.

[0082] The factor graph is a one-way graph model used to represent the dependencies between variables and factors in a probability model. In this embodiment, the pose information calculated by the inertial navigation data (i.e., the second pose information in the present invention) can be used to initialize the factor graph to obtain the initial factors. The frames where the position changes by 1m or the attitude changes by 10° are set as key frames, and a sliding window is established with the most recent 30 key frames. The first pose information, the second pose information, and the third pose information are then inserted into the factor graph in incremental form for solution, and the following Bayesian network is used for smoothing and mapping:

[0083]

[0084] In this formula, x1, x2, and x3 are three example key frames, φ(x1,l1)φ(x2,l1)φ(x3,l2) are three observation factors (i.e., the first pose information, the second pose information, and the third pose information), φ(x1,x2)φ(x2,x3) are the optimized odometer factors, and φ(x1) is the initial factor.

[0085] According to the Bayesian formula, the probability formula of the most likely posture information of the vehicle can be derived from the formula, and then the probability problem is transformed into a nonlinear least squares problem to find a set of posture information that is as consistent as possible with all observation factors.

[0086] In some embodiments, the vehicle's Global Navigation Satellite System (GNSS) data can be received, and the position data in the longitude, latitude, and altitude coordinate systems can be converted to position data in the east, north, and sky coordinate systems. Then, the GNSS data is inserted into the factor graph in incremental form for solution, and the Bayesian network shown in equation 1.7 is used for smoothing and mapping. In this embodiment, the GNSS data is inserted into the factor graph as the fourth node, and φ(x1, l1)φ(x2, l1)φ(x3, l2) in equation 1.7 are observation factors for the four types of posture information.

[0087] It should be noted that the smoothed posture information obtained according to equation 1.7 is the posture information in the embodiment of the present invention.

[0088] In the above embodiment, the data of multiple frames can be fused together through the factor graph to achieve smoothing and optimization of the vehicle posture information, thereby increasing the perception range and reducing the blind spot of the field of vision.

[0089] Step 105: stitching the point cloud data based on the posture information to obtain a point cloud map.

[0090] In this embodiment, based on the smoothed pose obtained in step 104, the original point cloud data corresponding to the key frame in the sliding window can be rotated and translated by equation 1.8 to obtain the coordinate system of the vehicle's current k-th frame, thereby splicing to obtain a point cloud map:

[0091]

[0092] In equation 1.8, is the point cloud map of the kth frame, N is the total number of frames in the sliding window, R k-i and T k-i (1:3) is the rotation and translation matrix.

[0093] In some embodiments, step 105 includes:

[0094] Step S30: determining position change information and second posture change information through the position and posture information, wherein the second posture change information includes heading angle change information.

[0095] Step S40: splicing the point cloud data according to the position change information and the posture change information to obtain a point cloud map.

[0096] Since the spliced ​​point cloud map is for the purpose of online reasoning, in order to ensure the real-time performance of online reasoning, a sparse representation of the original point cloud data (such as a sparse point cloud after downsampling) can be used. At this time, the sparse point cloud corresponding to the key frame in the sliding window can be rotated and translated to the vehicle's current k-th frame coordinate system through Equation 1.8, thereby splicing a sparse point cloud map. In this embodiment, the rotation matrix in Equation 1.8 only includes pitch angle change information, but does not include roll angle change information and heading angle change information. It should be noted that in this embodiment, not rotating the vehicle's pitch and roll angles can also ensure that the spliced ​​point cloud map is aligned with the horizontal plane.

[0097] Step 106: clustering the point cloud in the point cloud map and establishing an elevation map based on the clustering results.

[0098] In this embodiment, a clustering algorithm may be used to cluster the point clouds in the spliced ​​point cloud map. The clustering algorithm here may be a KD-Tree algorithm. The KD-Tree algorithm, also known as the K-Dimensional Tree algorithm, is a segmentation method for processing high-dimensional data space. It is a binary tree structure, each node represents a partition in the K-dimensional space, and a tree structure is constructed by recursively selecting a dimension to segment the space.

[0099] In this embodiment, the elevation map can be stored in the form of a grid map, and the size of each grid represents a fixed length in reality. For example, the elevation map has a total of 224×224 grids, and the side length of each grid represents 0.2m in reality. At this time, the elevation map can represent the elevation information of 44.8m to the left and right of the vehicle, 67.2m in front, and 22.4m in the back.

[0100] In this embodiment, since the elevation map represents the grounded part within its range (i.e., the height information of the ground relative to the sea level or other reference datum plane), after clustering the point clouds in the spliced ​​point cloud map using a clustering algorithm, other categories of point clouds can be discarded, and only the category of point clouds with the lowest cluster center height can be retained.

[0101] In some embodiments, after clustering the point clouds in the point cloud map and before establishing the elevation map based on the clustering processing results, the method for establishing the elevation map also includes: counting the distribution information of each type of point cloud in the point cloud map; treating outliers whose nearest neighbor Euclidean distance is greater than a preset threshold as smoke and filtering them out.

[0102] In view of the problem that unmanned vehicles are prone to generate smoke when driving in off-road environments, this embodiment proposes that after clustering the point clouds in the spliced ​​point cloud map, statistical distribution information can be obtained in each class, and outliers whose nearest neighbor Euclidean distance is greater than a preset threshold are regarded as smoke and filtered out. Exemplarily, the statistical distribution information in each class is determined by equations 1.9 and 1.10:

[0103]

[0104]

[0105] At this time, the preset threshold may be 1.96σ.

[0106] In this embodiment, after the smoke is filtered out, the average height of the lowest N points (for example, N is 10) in the point cloud retained in each grid can be used as the elevation information of the grid.

[0107] In some embodiments, Figure 1 The methods for establishing elevation maps in include:

[0108] Step 107: input the elevation map into a pre-trained elevation map completion model to complete the elevation map.

[0109] The following is an explanation of the training process of the elevation map completion model.

[0110] Example 2

[0111] Figure 3FIG. 2 shows a flow chart of a method for training an elevation map completion model according to an embodiment of the present invention. Figure 3 As shown, the training method of the elevation map completion model includes the following steps:

[0112] Step 301: Perform random masking on the elevation map in the training data set to obtain an elevation map mask.

[0113] In this embodiment, the elevation map in the training data set can be stored in the form of a grid map, and the size of each grid represents a fixed length in reality. For example, the elevation map has a total of 224×224 grids, and the side length of each grid represents 0.2m in reality. At this time, the elevation map can represent the elevation information of 44.8m to the left and right of the vehicle, 67.2m in front, and 22.4m behind.

[0114] In some embodiments, the elevation map in the training data set may be an elevation map obtained according to steps 101 to 106 in an offline environment.

[0115] In the above embodiment, the elevation map in the training data set may be randomly masked to obtain an elevation map mask. Specifically, the elevation values ​​in some grids may be randomly masked in a preset area of ​​the elevation map to obtain an elevation map mask.

[0116] Figure 4 FIG. 4 is a schematic diagram showing mask processing of an elevation map according to an embodiment of the present invention. Figure 4 As shown, within each window composed of 7×7 grids, 75% of the elevation values ​​within the grids can be randomly masked to obtain an elevation map mask.

[0117] Step 302: Taking the elevation map mask as input and the elevation map before random masking as expected output, an initial model of an elevation map completion model is trained to obtain a trained elevation map completion model.

[0118] In this embodiment, the elevation map completion model may be an encoder-decoder based U-Net neural network model.

[0119] Figure 5 A schematic diagram of a neural network structure of an elevation map completion model according to an embodiment of the present invention is shown. Figure 5 The neural network structure of the elevation map completion model according to the embodiment of the present invention is described.

[0120] like Figure 5As shown in the figure, the elevation map completion model includes an encoder and a decoder. The encoder includes a block position encoding layer and four feature extraction networks, each of which includes a two-dimensional convolution layer with a 3×3 convolution kernel and an improved ViT module. The ViT here refers to the Vision Transformer model. The Vision Transformer (ViT) model is a deep learning model with a Transformer architecture for processing computer vision tasks. It can divide an image into a series of image blocks and pass each image block as an input sequence to the Transformer encoder. Each image block is converted into a vector representation through a linear projection layer, combined with a position embedding vector, and then output to the Transformer encoder for processing. The Transformer encoder includes multiple self-attention layers and feedforward neural network layers to learn global and local features in the image. Finally, the output of the encoder is split by a linear classifier.

[0121] In this embodiment, the original elevation map is divided into a series of image blocks ( Figure 5 (not shown), Figure 5 The block position encoding module in can encode a series of segmented image blocks to obtain the position embedding vector of each image block. Each image block is also passed through a linear projection layer ( Figure 5 The vector representation is converted into a vector representation (not shown), and is combined with its position embedding vector, and then output to the improved ViT module. The improved ViT module in this embodiment refers to an improved Transformer encoder. Figure 6 FIG. 2 shows a schematic diagram of a neural network structure of an improved ViT module according to an embodiment of the present invention. Figure 6 As shown, along the input to output direction, the improved ViT module includes interconnected tensor deformation operation layers, multi-head self-attention layers, layer normalization layers, deep convolutional feedforward network layers, layer normalization layers, and tensor deformation operation layers in sequence, wherein the output of the first tensor deformation operation layer is also interconnected with the first layer normalization layer, and the output of the first layer normalization layer is also interconnected with the second layer normalization layer.

[0122] It should be noted that the improved ViT module in the embodiment of the present invention is mainly an improvement on the feedforward neural network layer in the Transformer encoder. Specifically, the improved ViT module in the present invention adopts a deep convolutional feedforward network. Figure 7 FIG. 4 shows a schematic diagram of a structure of a deep convolutional feedforward network in an improved ViT module according to an embodiment of the invention. Figure 7As shown, the deep convolutional feedforward network includes an interconnected tensor deformation operation layer, a deep convolutional layer with 3×3 convolution kernels, an activation layer (GeLU activation function), a tensor deformation operation layer, a linear layer, an activation layer (GeLU activation function), and a linear layer in sequence from input to output, wherein the input of the deep convolutional feedforward network and the output of the second linear layer are XORed and used as the output of the deep convolutional feedforward network. The improved ViT module proposed in the embodiment of the present invention uses a deep convolutional feedforward network to extract information within the grid near the elevation map, which can reduce the computational cost and improve the perception of the adjacent elevation grids. The improved ViT module proposed in the embodiment of the present invention uses a multi-head self-attention mechanism to aggregate long-distance contextual information within the entire grid of the elevation map. Return Figure 5 , the four feature extraction networks in the encoder can downsample through the convolution operation of the 3X3 grid size convolution kernel, thereby mapping the original elevation map (i.e., the elevation map in the training dataset in this article) into four feature maps with resolutions from fine to coarse. The four feature extraction networks in the decoder can map the elevation map output by the encoder into four feature maps with resolutions from coarse to fine through the deconvolution operation of the 3X3 grid size convolution kernel. Figure 5 In the example, the encoder and decoder also use horizontal cross-layer connections for deep features. Specifically, the output of the 2D convolutional layer of the second feature extraction network in the encoder is input into the fourth feature extraction network in the decoder, the output of the 2D convolutional layer of the third feature extraction network in the encoder is input into the third feature extraction network in the decoder, and the output of the 2D convolutional layer of the fourth feature extraction network in the encoder is input into the first feature extraction network in the decoder.

[0123] It should be noted that although Figure 5 An example of a neural network structure of an elevation map completion model according to an embodiment of the present invention is shown, but the present invention is not limited to this. Specifically, the encoder and the decoder can adopt 8 feature extraction networks. No matter how many feature extraction networks are adopted, as long as the structure of the hierarchical feature extraction network proposed by the present invention is adopted, it falls within the protection scope of the present invention; the convolution kernels of the encoder and the decoder can also adopt convolution kernels of other grid sizes (for example, 9×9 grid size).

[0124] In this embodiment, the parameters of the ViT neural network can be pre-trained to construct a U-shaped structure network for encoding and decoding. Afterwards, the elevation map after masking can be used as the input of the U-shaped structure network, and the mean square error between the elevation map output by the U-shaped structure network and the elevation map without masking can be used as the loss function to self-supervise the fine-tuning model, and the elevation map completion model can be obtained after the training is completed.

[0125] In some embodiments, if the elevation map in the training data set is obtained according to steps 101 to 106, the elevation map in the training data set can be enhanced using data enhancement methods such as random rotation, random cropping, and random symmetry to obtain more elevation maps for training.

[0126] In some implementations, the elevation map completion model is trained using a learning rate adjustment strategy of linear warmup (WarmUp) and cosine annealing (Consine).

[0127] In some embodiments, since the laser may be blocked by objects or terrain, some grids of the elevation map obtained according to steps 101 to 106 may not have elevation values. In this embodiment, bilinear interpolation may be performed near the blank grid (here, the grid without elevation value in the elevation map) (e.g., a 12×12 window around the blank grid) according to equation 1.11 to complete the elevation information of the grid:

[0128]

[0129] In equation 1.11, Q ij The coordinates (u,v)=(x i ,y j ), i,j∈(1,2).

[0130] After that, the completed elevation map can be normalized, and the range of the height value is limited to [0-255], so that the highest point of the entire elevation map is 255 and the lowest point is 0. The normalized height value is used as the value of the RGB channel and the elevation map is stored in an image format to construct the data set required for self-supervised training.

[0131] Returning to step 107, during online operation, after obtaining the elevation map, the elevation map can be automatically completed based on the trained elevation map completion model, so that the elevation value of the environment that cannot be observed by the laser radar can be predicted.

[0132] In some embodiments, in order to meet the real-time requirements, the elevation map input in step 107 can be a sparse elevation map generated by stitching sparse point cloud maps based on key frame poses. In this embodiment, parallel calculations can be performed on the CPU and GPU, using the CPU to stitch sparse point clouds and using the GPU to efficiently infer the neural network model, thereby avoiding the huge amount of calculations after the dense point cloud is stitched.

[0133] In some embodiments, when obtaining the elevation map of the training data set according to steps 101 to 106, step 105 includes:

[0134] Step S10: determining position change information and first attitude change information through the position and posture information, wherein the first attitude change information includes pitch angle change information, roll angle change information, and heading angle change information.

[0135] Step S20: splicing the point cloud data according to the position change information and the posture change information to obtain a point cloud map.

[0136] If the purpose of the spliced ​​point cloud map is to construct a training data set, dense original point cloud data can be used. At this time, the original point cloud data corresponding to the key frame in the sliding window can be rotated and translated to the current k-th frame coordinate system of the vehicle through equation 1.8, so as to splice a dense point cloud map. In this embodiment, the rotation matrix in equation 1.8 includes pitch angle change information, roll angle change information and heading angle change information. In some embodiments, if the elevation map of the training data set is obtained according to steps 101 to 106, after the point cloud in the point cloud map is clustered, and before the elevation map is established based on the clustering processing results, the method for establishing the elevation map of the training data set also includes: counting the distribution information of each type of point cloud in the point cloud map; treating outliers whose nearest neighbor Euclidean distance is greater than a preset threshold as smoke and filtering them out.

[0137] In view of the problem that unmanned vehicles are prone to generate smoke when driving in off-road environments, this embodiment proposes that after clustering the point clouds in the spliced ​​point cloud map, statistical distribution information can be collected in each class, and outliers whose nearest neighbor Euclidean distance is greater than a preset threshold are regarded as smoke and filtered out. Exemplarily, the statistical distribution information in each class is determined by equations 1.9 and 1.10 above.

[0138] Compared with the prior art, the embodiments of the present invention can achieve at least one of the following beneficial effects:

[0139] 1. The present invention can establish high-quality elevation maps in real time in scenarios where GNSS signals are lost or jump, and in scenarios where lidar observations are severely degraded or interfered by smoke and dust.

[0140] 2. The present invention improves the real-time performance of the system and realizes the environmental perception capability of predicting unknown areas by constructing data sets offline and training elevation map completion models with masks.

[0141] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for establishing an elevation map, characterized in that: The following steps are involved: Determine the first position information of the vehicle through the point cloud data of the vehicle; Determine the second position information of the vehicle through the inertial navigation data of the vehicle; Extracting a global descriptor from the point cloud data and performing loop closure detection to obtain third pose information of the vehicle; Establishing and solving a factor graph with the first posture information, the second posture information and the third posture information as observation factors to obtain posture information of the vehicle; splicing the point cloud data based on the posture information to obtain a point cloud map; The point cloud in the point cloud map is clustered and an elevation map is established based on the clustering result.

2. The establishment method according to claim 1, characterized in that: Also includes: The elevation map is input into a pre-trained elevation map completion model to complete the completion of the elevation map.

3. The establishment method according to claim 1, characterized in that: The extracting of the global descriptor from the point cloud data and performing loop detection to obtain the third posture information of the vehicle includes: Projecting the point cloud data into a range image; Inputting the range image into a feature extraction model to obtain a global descriptor of the range image; The K-NN algorithm is used to perform nearest neighbor matching on the global descriptor at the current moment and the global descriptor at the historical moment to obtain the third posture information of the vehicle.

4. The establishment method according to claim 3, characterized in that: The feature extraction model includes a Transformer neural network and a multi-layer perceptron, wherein the Transformer neural network is used to extract feature information of the distance image, and the multi-layer perceptron is used to aggregate the feature information into a global descriptor that characterizes whether the distance images at different times represent that the vehicle is in the same posture.

5. The establishment method according to claim 1, characterized in that: The observation factor of the factor graph also includes fourth posture information of the vehicle, which is determined by the global navigation satellite system GNSS data of the vehicle, and the initial factor of the factor graph is determined by the initial posture of the vehicle calculated by the inertial navigation data.

6. The establishment method according to claim 1, characterized in that: After clustering the point cloud in the point cloud map and before establishing the elevation map based on the clustering processing result, the method further includes: Counting the distribution information of each type of point cloud in the point cloud map; Outliers whose nearest neighbor Euclidean distance is greater than a preset threshold are considered as smoke and filtered out.

7. The establishment method according to claim 6, characterized in that: The step of stitching the point cloud data based on the posture information to obtain a point cloud map comprises: Determine position change information and second attitude change information through the position and posture information, wherein the second attitude change information includes heading angle change information; The point cloud data are spliced ​​according to the position change information and the posture change information to obtain a point cloud map.

8. The establishment method according to claim 7, characterized in that: Before stitching the point cloud data based on the posture information, the method further includes: Acquire the point cloud data corresponding to a key frame, wherein the key frame is a frame in which a change in the second posture information of the vehicle meets a preset threshold; Downsampling the point cloud data corresponding to the key frame to obtain a sparse point cloud of the key frame; Furthermore, the step of splicing the point cloud data according to the position change information and the posture change information to obtain a point cloud map includes: The sparse point clouds of the key frames are spliced ​​according to the position change information and the posture change information to obtain a sparse point cloud map.

9. The establishment method according to claim 5, characterized in that: The method for establishing the factor graph comprises: The frame in which the change of the second posture information of the vehicle meets a preset threshold is set as a key frame; A sliding window is established with the R key frames at the most recent time, where R is an integer greater than 1; The first posture information, the second posture information, the third posture information, and the fourth posture information of the vehicle are inserted into a factor graph in an incremental form.

10. The establishment method according to claim 2, characterized in that: The elevation map completion model is an encoder-decoder based U-Net neural network model.

Citation Information

Patent Citations

  • Underground high-precision navigation map establishment system and establishment method

    CN109059942A

  • High-precision map construction method and device in complex environment and computer equipment

    CN113192142A

  • Automatic driving vehicle high-precision positioning method based on multi-sensor data fusion

    CN113654555A

  • Vehicle front three-dimensional digital elevation map construction system and construction method

    CN114924288A

  • Automobile positioning method and device based on multi-factor graph, equipment and storage medium

    CN116380087A