Efficient positioning method and system fusing KD-Tree and feature descriptor

By integrating KD-Tree and feature descriptors, the efficient positioning method solves the problem of rapid recovery after the vehicle loses positioning information or RTK signal drifts, improves positioning accuracy and real-time performance, is suitable for complex environments, and achieves tracking with high-precision maps matching and correction.

CN118730131APending Publication Date: 2024-10-01SHANGHAI HONGJING ZHIJIA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410760192.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing technology has insufficient recovery speed and accuracy after the vehicle loses positioning information or the RTK signal drifts, and the GPS signal is easily lost or interfered in environments such as high-rise buildings or tunnels. Lidar point cloud data processing consumes a lot of computing power and Time, real-time performance is poor.

Method used

An efficient positioning method that integrates KD-Tree and feature descriptors. It constructs KD-Tree by acquiring multi-dimensional data, uses the minimum bisection method to create a hyperplane, quickly indexes the range where the vehicle may be located, and narrows the range through geometric features and lidar data. , calculate the optimal matching point of the vehicle, and use the positioning trajectory recorded on the high-precision map to perform correction and convergence calculations.

Benefits of technology

It improves the vehicle's rapid recovery positioning accuracy after losing positioning information or RTK signal drift, avoids the traversal calculation bottleneck and local optimal problems in traditional methods, ensures positioning accuracy and reliability, and provides an efficient and reliable automatic Driving positioning solution is suitable for a variety of complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118730131A_ABST
    Figure CN118730131A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle positioning, and particularly discloses an efficient positioning method and system fusing a KD-Tree and a feature descriptor, and the method comprises the steps: S1, obtaining the multi-dimensional data of an automobile, constructing the KD-Tree according to the track point data generated after the fusion of the multi-dimensional data, s2, when positioning information of a vehicle is lost or RTK signal drifting occurs, a range in which the vehicle may be located is quickly indexed through the KD-Tree, and the range is further narrowed by using geometric features and laser radar data; s3, in the determined range, through a geometric mode and Euclidean distance calculation, an optimal matching point of the vehicle is indexed; and carrying out correction and convergence calculation on the matching points by utilizing a positioning track recorded by a high-precision map. According to the method, geometric features are combined, the problem of local optimum possibly occurring in KD-Tree is avoided, and the positioning precision is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle positioning, and in particular to an efficient positioning method and system integrating KD-Tree and feature descriptors. Background Art

[0002] Autonomous vehicles rely on accurate positioning information to ensure safety and correct path planning during driving. Currently, commonly used positioning technologies include GPS, inertial navigation system (INS), real-time kinematic (RTK) system and laser radar (L iDAR). However, during actual driving, the vehicle may lose positioning information or experience positioning drift due to environmental factors such as tunnels, urban canyons or other obstacles. In this case, how to quickly and accurately reposition the vehicle and match it with the positioning trajectory recorded by the high-precision map is an engineering problem that needs to be solved urgently.

[0003] The existing positioning methods are insufficient in speed and accuracy in restoring positioning after the vehicle loses positioning information or RTK signal drift occurs. In addition, GPS signals are easily lost or interfered with in environments with tall buildings or tunnels; although the RTK system has high accuracy, signal drift will affect positioning accuracy; although LiDAR can provide accurate environmental data, it requires complex point cloud data processing, and traversing a large amount of point cloud information will consume a lot of computing power and time, and the real-time performance is poor.

[0004] Although existing technologies can provide sufficient accuracy in most cases, it is still a big challenge to quickly restore accurate positioning and match it with the HD map trajectory after the vehicle positioning information is lost or the RTK signal drifts. Therefore, a new technical solution is needed to solve this problem, improve the speed and accuracy of vehicle positioning information recovery, and ensure matching with the positioning trajectory recorded by the HD map. Summary of the invention

[0005] The purpose of the present invention is to provide an efficient positioning method and system integrating KD-Tree and feature descriptors to solve the following technical problems:

[0006] How to use RTK, lidar data and positioning trajectories recorded in high-precision maps to quickly index matching positioning points when the vehicle loses positioning information or the RTK signal drifts, and perform convergence corrections through algorithms to restore the vehicle's precise positioning while avoiding the traversal calculation bottleneck and local optimal problems in traditional methods.

[0007] The purpose of the present invention can be achieved through the following technical solutions:

[0008] The efficient positioning method integrating KD-Tree and feature descriptor includes the following steps:

[0009] Step S1: acquiring multi-dimensional data of the car, constructing a KD-Tree according to the trajectory point data generated after the fusion of the multi-dimensional data, and creating a hyperplane from the KD-Tree by the least bisection method, wherein the multi-dimensional data includes position, speed, direction and lidar point cloud data;

[0010] Step S2: When the vehicle loses positioning information or RTK signal drift occurs, the KD-Tree is used to quickly index a possible range of the vehicle, and the range is further narrowed by using geometric features and lidar data;

[0011] Step S3: within the determined range, the optimal matching point of the vehicle is indexed by geometric method and Euclidean distance calculation, wherein the geometric method includes point-line distance and angle relationship; and the positioning trajectory recorded by the high-precision map is used to correct and converge the matching point.

[0012] As a further solution of the present invention: in the step S1, the specific process of constructing the KD-Tree is as follows:

[0013] Step S11: Calculate the same data features of the data points in n dimensions, and select the dimension with large fluctuation as the feature division plane, wherein the data features include mean and mean square error;

[0014] Step S12: sort all data points on the dimension and select the median data point as the root node;

[0015] Step S13: using the root node as a boundary, dividing the data set into a left subtree and a right subtree, wherein the left subtree contains all data points whose values ​​are less than the root node value, and the right subtree contains all data points whose values ​​are greater than the root node value;

[0016] Step S14: respectively obtain the data points in the left subtree and the right subtree, and repeat steps S11-S13 until all data points are processed.

[0017] As a further solution of the present invention: in the step S13, the KD-Tree splitting method is specifically as follows:

[0018] Get an n-dimensional data set (xn1, xn2, ..., xnd), calculate the mean square error on all dimensions of the data points, and select the dimension with the largest mean square error as the partition dimension k, where d represents the number of data points and n is a positive integer;

[0019] The position of node p as the root node is the median of the data set (xk1, xk2, ..., xkd), where the left subtree contains all nodes satisfying xkp<xk, and the right subtree contains all nodes satisfying xkp≥xk, where xkp represents the value of the root node in the k dimension, and xk represents the value of any node in the k dimension.

[0020] As a further solution of the present invention: in the step S2, determining the range where the vehicle is located specifically includes the following steps:

[0021] Step S21: starting from the root node of the KD-Tree, comparing the coordinates of the vehicle's current position with the coordinates of the root node on the partitioning dimension of the root node;

[0022] Step S22: Determine whether to continue searching along the left subtree or the right subtree according to the relative position relationship between the coordinates of the current position of the vehicle and the coordinates of the root node;

[0023] Step S23: During the search process, record all the nodes passed;

[0024] Step S24: When traversing to a leaf node, output all nodes recorded in step S23, where a leaf node represents a node whose child nodes are all empty.

[0025] As a further solution of the present invention: in the step S3, the specific steps of calculating the optimal matching point of the vehicle are as follows:

[0026] Step S31: Taking the nearest point indexed by the KD-Tree as the center, draw a 60-degree fan-shaped area according to the vehicle's forward direction;

[0027] Step S32: In the sector area, further select the point that best matches the current position of the vehicle through geometric features;

[0028] Step S33: Calculate the Euclidean distance between all nodes recorded in step S24 and the current vehicle position, and select the point with the shortest distance as the final matching point.

[0029] An efficient positioning system that integrates KD-Tree and feature descriptors, including:

[0030] Data acquisition module: used to obtain multi-dimensional data of the car, build a KD-Tree based on the trajectory point data generated after the fusion of the multi-dimensional data, and create a hyperplane from the KD-Tree by the least bisection method, wherein the multi-dimensional data includes position, speed, direction and lidar point cloud data;

[0031] Range indexing module: When a vehicle loses its positioning information or RTK signal drift occurs, KD-Tree is used to quickly index the possible range of a vehicle, and the range is further narrowed by using geometric features and lidar data;

[0032] Matching calculation module: within a certain range, the optimal matching point of the vehicle is indexed through geometric methods and Euclidean distance calculation, and the geometric methods include point-line distance and angle relationship; and the positioning trajectory recorded by the high-precision map is used to correct and converge the matching points.

[0033] As a further solution of the present invention: In the data acquisition module, the specific process of constructing the KD-Tree is as follows:

[0034] Calculate the same data features of the data points in n dimensions, and select the dimension with large fluctuation as the feature partitioning plane, wherein the data features include mean and mean square error;

[0035] Sort all data points on this dimension and select the median data point as the root node;

[0036] Taking the root node as the boundary, the data set is divided into a left subtree and a right subtree, wherein the left subtree contains all data points with values ​​less than the root node value, and the right subtree contains all data points with values ​​greater than the root node value;

[0037] The data points in the left subtree and the right subtree are obtained respectively, and steps S11-S13 are repeatedly executed until all data points are processed.

[0038] As a further solution of the present invention: in the range index module, determining the range where the vehicle is located specifically includes the following steps:

[0039] Starting from the root node of the KD-Tree, compare the coordinates of the vehicle's current position with the coordinates of the root node on the partition dimension of the root node;

[0040] According to the relative position relationship between the coordinates of the vehicle's current position and the coordinates of the root node, decide whether to continue searching along the left subtree or the right subtree;

[0041] During the search process, record all the nodes passed;

[0042] When traversing to a leaf node, all nodes recorded in step S23 are output, where a leaf node represents a node whose child nodes are all empty.

[0043] The beneficial effects of the present invention are as follows: by fusing KD-Tree with geometric features, the vehicle's rapid recovery positioning accuracy after the loss of positioning information or RTK signal drift is improved; by matching and correcting the positioning trajectory recorded with the high-precision map, the positioning accuracy and reliability are ensured; an efficient and reliable autonomous driving positioning solution is provided, which is suitable for a variety of complex environments; the positioning range is quickly determined by KD-Tree, the amount of traversal calculation is reduced, and the real-time performance of the algorithm is improved; combined with geometric features, the local optimal problem that may occur in KD-Tree is avoided, and the positioning accuracy is further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The present invention will be further described below in conjunction with the accompanying drawings.

[0045] Figure 1 It is a schematic diagram of the process of the efficient positioning method of the present invention integrating KD-Tree and feature descriptor;

[0046] Figure 2 It is a schematic diagram of KD-Tree construction in the efficient positioning method of the present invention integrating KD-Tree and feature descriptor;

[0047] Figure 3 It is a schematic diagram of geometric relationship index in the efficient positioning method of the present invention which integrates KD-Tree and feature descriptor. DETAILED DESCRIPTION

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

[0049] See also Figure 1 As shown, the present invention is an efficient positioning method integrating KD-Tree and feature descriptor, comprising the following steps:

[0050] Step S1: acquiring multi-dimensional data of the vehicle, constructing a KD-Tree according to the trajectory point data generated after the fusion of the multi-dimensional data, and creating a hyperplane from the KD-Tree by the least bisection method, wherein the multi-dimensional data includes position, speed, direction and lidar point cloud data;

[0051] Step S2: When the vehicle loses positioning information or RTK signal drift occurs, the KD-Tree is used to quickly index a possible range of the vehicle, and the range is further narrowed by using geometric features and lidar data;

[0052] Step S3: within the determined range, the optimal matching point of the vehicle is indexed by geometric method and Euclidean distance calculation, wherein the geometric method includes point-line distance and angle relationship; and the positioning trajectory recorded by the high-precision map is used to correct and converge the matching point.

[0053] In a preferred embodiment of the present invention, in step S1, the specific process of constructing the KD-Tree is as follows:

[0054] Step S11: Calculate the same data features of the data points in n dimensions, and select the dimension with large fluctuation as the feature division plane, wherein the data features include mean and mean square error;

[0055] Step S12: sort all data points on the dimension and select the median data point as the root node;

[0056] Step S13: using the root node as a boundary, dividing the data set into a left subtree and a right subtree, wherein the left subtree contains all data points whose values ​​are less than the root node value, and the right subtree contains all data points whose values ​​are greater than the root node value;

[0057] Step S14: respectively obtain the data points in the left subtree and the right subtree, and repeat steps S11-S13 until all data points are processed.

[0058] In a preferred embodiment of the present invention, in step S13, the KD-Tree splitting method is specifically as follows:

[0059] Get an n-dimensional data set (xn1, xn2, ..., xnd), calculate the mean square error on all dimensions of the data points, and select the dimension with the largest mean square error as the partition dimension k, where d represents the number of data points and n is a positive integer;

[0060] The position of node p as the root node is the median of the data set (xk1, xk2, ..., xkd), where the left subtree contains all nodes satisfying xkp<xk, and the right subtree contains all nodes satisfying xkp≥xk, where xkp represents the value of the root node in the k dimension, and xk represents the value of any node in the k dimension.

[0061] For example, Figure 2 As shown, construct a KD-Tree:

[0062] Initial Data Points: Displays a set of two-dimensional data points.

[0063] First split (root node): Select an axis (such as the X axis) for the first split and display the split plane;

[0064] Second segmentation: Based on the first segmentation, another axis (such as the Y axis) is selected for segmentation of the left and right sub-regions;

[0065] Recursive segmentation: Continue segmenting each sub-region until all data points have been processed;

[0066] The splitting plane of the root node (x=0.5);

[0067] The splitting plane of the left child node (y=0.3);

[0068] The splitting plane of the right child node (y=0.7);

[0069] Further segmentation of the left sub-region (x=0.2);

[0070] · Further segmentation of the left sub-region (x=0.6).

[0071] In a preferred embodiment of the present invention, in step S2, determining the range where the vehicle is located specifically includes the following steps:

[0072] Step S21: starting from the root node of the KD-Tree, comparing the coordinates of the vehicle's current position with the coordinates of the root node on the partitioning dimension of the root node;

[0073] Step S22: Determine whether to continue searching along the left subtree or the right subtree according to the relative position relationship between the coordinates of the current position of the vehicle and the coordinates of the root node;

[0074] Step S23: During the search process, record all the nodes passed;

[0075] Step S24: When traversing to a leaf node, output all nodes recorded in step S23, where a leaf node represents a node whose child nodes are all empty.

[0076] In a preferred embodiment of the present invention, in step S3, the specific steps of calculating the optimal matching point of the vehicle are as follows:

[0077] Step S31: Taking the nearest point indexed by the KD-Tree as the center, draw a 60-degree fan-shaped area according to the vehicle's forward direction;

[0078] Step S32: In the sector area, further select the point that best matches the current position of the vehicle through geometric features;

[0079] Step S33: Calculate the Euclidean distance between all nodes recorded in step S24 and the current vehicle position, and select the point with the shortest distance as the final matching point.

[0080] by Figure 3As an example, assume that there are six track points on the path, and the connecting line between every two points is the reference track. Draw a connecting line between P1 and P2...PN from the current vehicle position, and select it by comparing the Euclidean distance of the connecting line. Combine the direction indicated by the arrow as the heading and select the point with the shortest distance in the forward direction. Then the nearest index point is P2.

[0081] An efficient positioning system that integrates KD-Tree and feature descriptors, including:

[0082] Data acquisition module: used to obtain multi-dimensional data of the car, build a KD-Tree based on the trajectory point data generated after the fusion of the multi-dimensional data, and create a hyperplane from the KD-Tree by the least bisection method, wherein the multi-dimensional data includes position, speed, direction and lidar point cloud data;

[0083] Range indexing module: When a vehicle loses its positioning information or RTK signal drift occurs, KD-Tree is used to quickly index the possible range of a vehicle, and the range is further narrowed by using geometric features and lidar data;

[0084] Matching calculation module: within a certain range, the optimal matching point of the vehicle is indexed through geometric methods and Euclidean distance calculation, and the geometric methods include point-line distance and angle relationship; and the positioning trajectory recorded by the high-precision map is used to correct and converge the matching points.

[0085] In a preferred embodiment of the present invention, in the data acquisition module, the specific process of constructing the KD-Tree is as follows:

[0086] Calculate the same data features of the data points in n dimensions, and select the dimension with large fluctuation as the feature partitioning plane, wherein the data features include mean and mean square error;

[0087] Sort all data points on this dimension and select the median data point as the root node;

[0088] Taking the root node as the boundary, the data set is divided into a left subtree and a right subtree, wherein the left subtree contains all data points with values ​​less than the root node value, and the right subtree contains all data points with values ​​greater than the root node value;

[0089] The data points in the left subtree and the right subtree are obtained respectively, and steps S11-S13 are repeatedly executed until all data points are processed.

[0090] In a preferred embodiment of the present invention, in the range index module, determining the range where the vehicle is located specifically includes the following steps:

[0091] Starting from the root node of the KD-Tree, compare the coordinates of the vehicle's current position with the coordinates of the root node on the partition dimension of the root node;

[0092] According to the relative position relationship between the coordinates of the vehicle's current position and the coordinates of the root node, decide whether to continue searching along the left subtree or the right subtree;

[0093] During the search process, record all the nodes passed;

[0094] When traversing to a leaf node, all nodes recorded in step S23 are output, where a leaf node represents a node whose child nodes are all empty.

[0095] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. An efficient positioning method integrating KD-Tree and feature descriptor, characterized in that: The following steps are involved: Step S1: acquiring multi-dimensional data of the car, constructing a KD-Tree according to the trajectory point data generated after the fusion of the multi-dimensional data, and creating a hyperplane from the KD-Tree by the least bisection method, wherein the multi-dimensional data includes position, speed, direction and lidar point cloud data; Step S2: When the vehicle loses positioning information or RTK signal drift occurs, the KD-Tree is used to quickly index a possible range of the vehicle, and the range is further narrowed by using geometric features and lidar data; Step S3: within the determined range, the optimal matching point of the vehicle is indexed by geometric method and Euclidean distance calculation, wherein the geometric method includes point-line distance and angle relationship; and the positioning trajectory recorded by the high-precision map is used to correct and converge the matching point.

2. The efficient positioning method integrating KD-Tree and feature descriptor according to claim 1, characterized in that: In step S1, the specific process of constructing the KD-Tree is as follows: Step S11: Calculate the same data features of the data points in n dimensions, and select the dimension with large fluctuation as the feature division plane, wherein the data features include mean and mean square error; Step S12: sort all data points on the dimension and select the median data point as the root node; Step S13: using the root node as a boundary, dividing the data set into a left subtree and a right subtree, wherein the left subtree contains all data points whose values ​​are less than the root node value, and the right subtree contains all data points whose values ​​are greater than the root node value; Step S14: respectively obtain the data points in the left subtree and the right subtree, and repeat steps S11-S13 until all data points are processed.

3. The efficient positioning method integrating KD-Tree and feature descriptor according to claim 2, characterized in that: In step S13, the KD-Tree splitting method is specifically as follows: Get an n-dimensional data set (xn1, xn2, ..., xnd), calculate the mean square error on all dimensions of the data points, and select the dimension with the largest mean square error as the partition dimension k, where d represents the number of data points and n is a positive integer; The position of node p as the root node is the median of the data set (xk1, xk2, ..., xkd), where the left subtree contains all nodes satisfying xkp<xk, and the right subtree contains all nodes satisfying xkp≥xk, where xkp represents the value of the root node in the k dimension, and xk represents the value of any node in the k dimension.

4. The efficient positioning method integrating KD-Tree and feature descriptor according to claim 1, characterized in that: In the step S2, determining the range where the vehicle is located specifically includes the following steps: Step S21: starting from the root node of the KD-Tree, comparing the coordinates of the current position of the vehicle with the coordinates of the root node on the partitioning dimension of the root node; Step S22: Determine whether to continue searching along the left subtree or the right subtree according to the relative position relationship between the coordinates of the current position of the vehicle and the coordinates of the root node; Step S23: During the search process, record all the nodes passed; Step S24: When traversing to a leaf node, output all nodes recorded in step S23, where a leaf node represents a node whose child nodes are all empty.

5. The efficient positioning method integrating KD-Tree and feature descriptor according to claim 4, characterized in that: In step S3, the specific steps of calculating the optimal matching point of the vehicle are as follows: Step S31: Taking the nearest point indexed by the KD-Tree as the center, draw a 60-degree fan-shaped area according to the vehicle's forward direction; Step S32: In the sector area, further select the point that best matches the current position of the vehicle through geometric features; Step S33: Calculate the Euclidean distance between all nodes recorded in step S24 and the current vehicle position, and select the point with the shortest distance as the final matching point.

6. An efficient positioning system integrating KD-Tree and feature descriptors, characterized by: The positioning system is used to execute the positioning method according to any one of claims 1 to 5 to perform vehicle positioning, including: Data acquisition module: used to obtain multi-dimensional data of the car, build a KD-Tree based on the trajectory point data generated after the fusion of the multi-dimensional data, and create a hyperplane from the KD-Tree by the least bisection method, wherein the multi-dimensional data includes position, speed, direction and lidar point cloud data; Range indexing module: When a vehicle loses its positioning information or RTK signal drift occurs, KD-Tree is used to quickly index the possible range of a vehicle, and the range is further narrowed by using geometric features and lidar data; Matching calculation module: within a certain range, the optimal matching point of the vehicle is indexed through geometric methods and Euclidean distance calculation, and the geometric methods include point-line distance and angle relationship; and the positioning trajectory recorded by the high-precision map is used to correct and converge the matching points.

7. The efficient positioning system integrating KD-Tree and feature descriptor according to claim 6, characterized in that: In the data acquisition module, the specific process of constructing the KD-Tree is as follows: Calculate the same data features of the data points in n dimensions, and select the dimension with large fluctuation as the feature partitioning plane, wherein the data features include mean and mean square error; Sort all data points on this dimension and select the median data point as the root node; Taking the root node as the boundary, the data set is divided into a left subtree and a right subtree, wherein the left subtree contains all data points with values ​​less than the root node value, and the right subtree contains all data points with values ​​greater than the root node value; The data points in the left subtree and the right subtree are obtained respectively, and steps S11-S13 are repeatedly executed until all data points are processed.

8. The efficient positioning system integrating KD-Tree and feature descriptor according to claim 6, characterized in that: In the range index module, determining the range where the vehicle is located specifically includes the following steps: Starting from the root node of the KD-Tree, compare the coordinates of the vehicle's current position with the coordinates of the root node on the partition dimension of the root node; According to the relative position relationship between the coordinates of the vehicle's current position and the coordinates of the root node, decide whether to continue searching along the left subtree or the right subtree; During the search process, record all the nodes passed; When traversing to a leaf node, all nodes recorded in step S23 are output, where a leaf node represents a node whose child nodes are all empty.