An autonomous positioning method for dynamic scenes

By screening and optimizing feature points and texture information in dynamic environments, combined with sampling data sets and iterative optimization methods, the problem of low autonomous positioning accuracy in dynamic environments is solved, high-precision autonomous positioning and closed-loop detection are achieved, and the system's performance is improved. Robustness and stability.

CN114332222BActive Publication Date: 2024-09-17SUZHOU CHANGFENG AVIATION ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111636600.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2024-09-17
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

In a dynamic environment, existing autonomous positioning technology is difficult to improve accuracy, especially due to mismatching problems and error accumulation caused by dynamic points, which affects the robustness and long-term operational stability of UAVs and unmanned driving systems.

Method used

By obtaining the point cloud sequence from the active sensor, filtering the curvature feature points and plane feature points, constructing a feature point data set, extracting the sampling data set based on the ground point distribution of the previous frame, calculating the transformation matrix, and passing the Levenberg Markwa After special iterative optimization, a scene matching method based on texture information is finally used for closed-loop detection to improve the accuracy of autonomous positioning in dynamic environments.

Benefits of technology

It achieves mismatch elimination and error optimization in dynamic environments, improves the accuracy and robustness of autonomous positioning, and ensures long-term operational stability and accurate closed-loop detection of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114332222B
    Figure CN114332222B
Patent Text Reader

Abstract

The present invention provides an autonomous positioning method for dynamic scenes, comprising the following steps: obtaining a point cloud sequence from an active sensor; extracting a sampling data set based on the feature point data set obtained in step 1 and the ground point distribution of the previous frame, and obtaining a transfer matrix to filter the model internal point set; calculating the proportion of the internal points at time k based on the internal point set obtained in step 3; setting a termination condition K s Step 6: Use the optimal internal point set of all frames before the current frame obtained in step 5 to construct the point cloud map M k‑1 ; Polar coordinates are used instead of Cartesian coordinates. This method first proposes a point cloud coarse registration method based on dynamic point elimination before the odometer is precisely solved, which solves the mismatching problem caused by dynamic points. Then, in order to solve the error accumulation problem caused by the dynamic environment, the traditional radius-based closed-loop detection method is optimized by using the scene matching method, which achieves accurate closed-loop detection and improves the mapping accuracy in the dynamic environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of autonomous positioning of unmanned platforms, and in particular to an autonomous positioning method for dynamic scenes. Background Art

[0002] Active sensor autonomous positioning is an important research direction and one of the fields of UAV and unmanned driving. It is widely used in military and civilian fields and can be integrated into environmental perception, path planning, fault detection and other systems, which has important application significance. Simultaneous Localization and Mapping (SLAM) is one of the important methods of active sensor autonomous positioning. It can use the environmental features observed by the sensor to determine the current position of the robot and the position of the current observed target. However, in practical applications, natural factors and biological activities may cause unpredictable scene changes, which greatly troubles the robustness of posture estimation, thereby affecting the long-term operation of the mobile platform. Therefore, research in this field is still a challenging problem. By improving the random sampling consistency method, dynamic points are eliminated as mismatched point pairs, so that it can work robustly in a dynamic environment. However, most algorithms only effectively detect dynamic objects, without considering their real-time performance on edge computers, or only use the transfer matrix difference comparison method to divide dynamic and static objects, and the accuracy of autonomous positioning in dynamic environments has not been greatly improved. Summary of the invention

[0003] In view of this, the embodiments of this specification provide an autonomous positioning method for dynamic scenes, so as to achieve the purpose of improving the accuracy of autonomous positioning in dynamic environments.

[0004] The embodiments of this specification provide the following technical solutions:

[0005] An autonomous positioning method for dynamic scenes includes the following steps: Step 1: obtaining a point cloud sequence from an active sensor and dividing the point cloud into N a ×N b segment, where N a and N b All are line numbers, denoted by B k,l For the lth segment of the kth frame point cloud, select B according to the curvature k,l The two points with the largest curvature are corner feature points and the four points with the smallest curvature are plane feature points. The two corner feature points and the four plane feature points are used as feature point data sets. Step 2: extract a sampling data set based on the feature point data set obtained in step 1 and the ground point distribution of the previous frame, and record the previous frame B. k,lThe proportion of the optimal internal point set in the model is obtained by sampling and solving the transformation matrix; Step 3, according to the feature points in the sample data set obtained in step 2 and the calculated transfer matrix, the model internal point set is screened; Step 4, according to the internal point set obtained in step 3, the proportion of the internal points at time k Tcount is calculated. If the result obtained by the solution is larger than the original model, the internal point set and the model are updated; Step 5, set the termination condition K s Repeat steps 1 to 4. When the number of iterations is greater than the termination condition, stop the iteration, obtain the optimal internal point set and the corresponding transfer matrix as the initial value of the precise registration, and use the Levenberg-Marquardt iteration to obtain the optimal transfer matrix; Step 6: Use the optimal internal point set of all frames before the current frame obtained in step 5 to construct the point cloud map M k-1 , and select key frames at a frequency of 1HZ to construct the pose graph P k-1 , use the scene coarse search based on radius information to save the key frame closest to the current frame, store the current frame point cloud as the target point cloud to construct texture information, store the texture information of the historical frame and nearby frames obtained by the search, and form a description matrix of the local scene to be matched; Step seven, use the polar coordinate system to replace the Cartesian coordinate system, take the position of the sensor as the origin, calculate the azimuth and radius of each point on the XY plane, use the ring and fan-based method to reorganize the point cloud, use the ring segmentation along the radial direction, and use the fan segmentation along the azimuth, then the ring and fan can uniquely index any area of ​​the point cloud.

[0006] Furthermore, step 1 is specifically as follows: the curvature calculation formula is: Among them, x i ,x j They represent the coordinates of different points respectively. S is selected as 10, which means that the point is located 5 points before and after the same laser line according to the time stamp sequence.

[0007] Furthermore, step 2 specifically includes: recording the previous frame B k,l The proportion of the best internal point set in the previous frame B k,l The weight of the optimal internal point set in is mapped to [0.1,1], and the ground point ratio of the previous frame is obtained after mapping: in, For B k,l The optimal number of interior points at time k-1, n k-1,l For B k,l The number of laser points at time t; for the current frame sampling, defined in B k,l The probability distribution of sampling is According to this probability distribution, from B k,l The sample data set is D k,l =N a ×N b ×pk,l ; The total sample data set extracted from the kth frame is In the sample data set D k The conversion matrix is ​​obtained by sampling and solving, denoted as T k+1,k =[t x ,t y ,t z ,θ x ,θ y ,θ z ] T , where t x ,t y ,t z are the translations along the x, y, and z axes of the radar system, θ x ,θ y ,θ z is the rotation angle.

[0008] Furthermore, step three includes: predicting the feature point x at time k+1 k,r Coordinates Among them, T k+1,k (1:3) is T k+1,k The first three column vectors, R k+1,k is obtained by a rotation matrix defined by the Rodriguez formula; searching for x in the predicted coordinate set by the k-nearest neighbor algorithm k,r The coordinates of the nearest laser point are marked as x k+1,r , x k+1,r arrive The Euclidean distance d k,r The distance from the laser point to the model is shown below: Calculate the adaptive distance threshold d L , if the distance from the laser point to the model is within the threshold range, the laser point is considered to be an internal point, where is the average distance from the laser point to the model, and the adaptive distance threshold d L The calculation formula is as follows:

[0009] Furthermore, in step 4: the proportion of points inside at time k is T count The calculation formula is Using B k,l The centroid of the inliers in the _{\mathcal {E}} represents all the inliers in it, and B is assigned according to the inlier ratio. k,l The corresponding weights are calculated to obtain the weighted covariance matrix: Among them, x k,l For B k,l The center of the inner point, is the weight center of the laser radar feature point, For B k,lThe proportion of inliers; set the inlier distribution scoring factor. The larger the factor, the better the quality of the calculated model. The optimal inlier set is obtained and the optimal model is updated. The calculation formula of the inlier distribution scoring factor is:

[0010] Furthermore, the step five includes: termination condition K s The calculation formula is

[0011] Furthermore, step seven includes the following steps: let Ns and Nr represent the number of sectors and rings respectively, set the maximum interception distance of the point cloud data to L max , then the distance between each ring is The angle of each sector is In order to improve the robustness of scene recognition, the difference between the maximum and minimum heights in each region is selected as the value of the feature matrix, and a matrix of Ns×Nr is used to describe the texture information of the target point cloud; the cosine distance is used to represent the similarity of the point cloud texture information, and the Scan Context descriptor of the two frames of point cloud is defined as I q and I c , the cosine similarity formula is in, and are the column vectors of the jth column of the ScanContext of the target point cloud and the point cloud to be matched respectively; the distance between all column vectors of the two Scan Contexts is calculated, and the minimum value is taken as the final distance. The best matching relationship of column translation is D<τ, τ is the distance threshold set to determine whether two scenes are similar, c * It is the best matching scene finally detected.

[0012] Compared with the prior art, the at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects:

[0013] This method first proposes a point cloud rough registration method based on dynamic point elimination before the odometer fine solution, which solves the mismatch problem caused by dynamic points. Then, in order to solve the error accumulation problem caused by the dynamic environment, the traditional radius-based closed-loop detection method is optimized by using the scene matching method, which achieves accurate closed-loop detection and improves the mapping accuracy in dynamic environments. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0015] Figure 1 It is the overall flow chart of the method of the present invention;

[0016] Figure 2 It is a flow chart of the coarse registration based on the random sampling consistency of prior information;

[0017] Figure 3 This is a flow chart of loop detection based on optimizing radius information based on texture information. DETAILED DESCRIPTION

[0018] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0019] The following describes the implementation methods of the present application through specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, in the absence of conflict, the following embodiments and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.

[0020] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present application, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number and aspect described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.

[0021] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application. The drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0022] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.

[0023] The autonomous positioning method for dynamic environments proposed in the present invention is mainly divided into two technical points: random sampling consistency coarse alignment based on prior information, and loop detection based on texture information to optimize radius information.

[0024] The technical solutions provided by various embodiments of the present application are described below in conjunction with the accompanying drawings.

[0025] refer to Figure 1 , Figure 2 , Figure 3 ,Step 1, Sampling calculation method: Obtain the point cloud sequence from the active sensor and divide the point cloud into N a ×N b segment, where N a is the number of lines, denoted by B k,l is the lth segment of the point cloud of the kth frame. Then filter B according to the curvature k,l The two points with the largest curvature are corner feature points and the four points with the smallest curvature are plane feature points as feature point data sets. The curvature calculation formula is as follows:

[0026]

[0027] Among them, x i ,x j They represent the coordinates of different points respectively. S is selected as 10, which means that the point is located 5 points before and after the same laser line according to the time stamp sequence.

[0028] Step 2: Internal point set screening method: Based on the feature point data set obtained in step 1, extract the sampling data set according to the ground point distribution of the previous frame. Record the previous frame B k,l The proportion of the optimal internal point set in , see step 4. Map it to [0.1,1] to ensure that all B k,l There is a chance to be sampled, thus avoiding B k,l Since the optimal internal point set ratio of the current frame is 0, it will not be sampled in each subsequent frame. After mapping, the ground point ratio of the previous frame is as follows:

[0029]

[0030] in, For B k,l The optimal number of interior points at time k-1, n k-1,l For B k,l The number of laser points at time k-1.

[0031] For the sampling of the current frame, defined in B k,l The probability distribution of sampling in is as follows:

[0032]

[0033] According to this probability distribution, from B k,l The sampled data set is as follows:

[0034] D k,l =N a ×N b ×p k,l .

[0035] The total sample data set extracted from the kth frame is as follows:

[0036]

[0037] In the sample data set D k The conversion matrix is ​​obtained by sampling and solving, denoted as T k+1,k =[t x ,t y ,t z ,θ x ,θ y ,θ z ] T Among them, t x ,t y ,t z are the translations along the x, y, and z axes of the radar system, θ x ,θ y ,θ z is the rotation angle.

[0038] Step 3: Model evaluation method: According to the feature points in the sample data set obtained in step 2 and the calculated transfer matrix, the model internal point set is screened. Predict the feature point x at time k+1 k,r Coordinates

[0039]

[0040] Among them, T k+1,k (1:3) is T k+1,k The first three column vectors, R k+1,kIt is obtained by a rotation matrix defined by Rodriguez formula:

[0041]

[0042] Where I is the unit matrix, θ=||T k+1,k (4:6)||, is the antisymmetric matrix of ω, T k+1,k (4:6) is T k+1,k The last three columns are vectors.

[0043] Search x in the prediction coordinate set using the k-NearestNeighbor (kNN) algorithm k,r The coordinates of the nearest laser point are marked as x k+1,r , x k+1,r arrive The Euclidean distance d k,r The distance from the laser point to the model is shown below:

[0044]

[0045] Calculate the adaptive distance threshold d L , if the distance from the laser point to the model is within the threshold range, the laser point is considered to be an internal point. is the average distance from the laser point to the model. Adaptive distance threshold d L The calculation formula is as follows:

[0046]

[0047] Step 4: Termination condition judgment: Based on the internal point set obtained in step 3, calculate the proportion of internal points at time k, Tcount. If the Tcount obtained by solving the model is larger than that of the original model, update the internal point set and model, otherwise keep the original model unchanged. The calculation formula for the proportion of internal points at time k is Tcount, which is as follows:

[0048]

[0049] Using B k,l The centroid of the inliers in the _{\mathcal {E}} represents all the inliers in it, and B is assigned according to the inlier ratio. k,l The corresponding weights and calculated weighted covariance matrix are as follows:

[0050]

[0051] Among them, x k,l For B k,l The center of the inner point, is the weight center of the laser radar feature point, For B k,l The proportion of the middle point.

[0052] Set the inlier distribution scoring factor. The larger the factor, the better the quality of the calculated model. Based on this, the optimal inlier set can be obtained and the optimal model can be updated. The calculation formula of the inlier distribution scoring factor is as follows:

[0053]

[0054] Step 5: Set the termination condition K s , repeat steps 1 to 4 continuously, stop the iteration when the number of iterations is greater than the termination condition, obtain the optimal internal point set and the corresponding transfer matrix as the initial value of the precise registration, and then use the Levenberg-Marquardt iteration to obtain the optimal transfer matrix. Termination condition K s The calculation formula is as follows:

[0055]

[0056] Step 6: Rough scene search based on radius information: Use the optimal inner point set of all frames before the current frame obtained in step 5 to construct the point cloud map M k-1 , and select key frames at a frequency of 1HZ to construct the pose graph P k-1 , a scene coarse search based on radius information is used to save the key frame closest to the current frame. The point cloud of the current frame is stored as the target point cloud to construct texture information, and the texture information of the searched historical frames and nearby frames is stored to form a description matrix of the local scene to be matched.

[0057] Step 7. Closed-loop precise search based on texture information: Use polar coordinate system instead of Cartesian coordinate system, take the position of the sensor as the origin, calculate the azimuth and radius of each point on the XY plane, use ring and fan-based methods to reorganize the point cloud, divide the point cloud radially using rings, and use fan-shaped partitions along the azimuth, so that rings and sectors can uniquely index any area of ​​the point cloud.

[0058] Let Ns and Nr represent the number of sectors and rings respectively, and set the maximum interception distance of point cloud data to L max , then the distance between each ring is The angle of each sector is The difference between the maximum height and the minimum height in each area is selected as the numerical value of the feature matrix to describe the texture information of the target point cloud.

[0059] The cosine distance is used to represent the similarity of the texture information of the point cloud. The Scan Context (scene recognition / loop detection of 3D point cloud) descriptor of the two frame point clouds is defined as I q and I c, the cosine similarity formula is as follows:

[0060]

[0061] in, and They are the column vectors of the j-th column of the Scan Context of the target point cloud and the point cloud to be matched, respectively.

[0062] Calculate the distance between all column vectors of two Scan Contexts and take the minimum value as the final distance. Then the best matching relationship of column translation can be defined as:

[0063]

[0064] τ is the distance threshold set to determine whether two scenes are similar, c * The best matching scene is finally detected, thus achieving accurate closed-loop detection and eliminating the error accumulation caused by dynamic changes in the environment.

[0065] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the method embodiment described later, since it corresponds to the system, the description is relatively simple, and the relevant parts can be referred to the partial description of the system embodiment.

[0066] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. An autonomous positioning method for dynamic scenes, characterized in that: The following steps are involved: Step 1: Obtain a point cloud sequence from the active sensor and divide the point cloud into segment, of which and All are line numbers, is the kth frame point cloud Segments, filter by curvature The two points with the largest curvature are corner feature points and the four points with the smallest curvature are plane feature points, and the two corner feature points and the four plane feature points are used as feature point data sets; Step 2: Extract the sampling data set based on the feature point data set obtained in step 1 and the ground point distribution of the previous frame, and record the previous frame. The proportion of the optimal internal point set in , and the transformation matrix is ​​obtained by sampling solution; Step 3: Filter the model internal point set according to the feature points in the sample data set obtained in step 2 and the calculated transfer matrix; Step 4: Calculate the proportion of internal points at time k based on the internal point set obtained in step 3 , if the result obtained by the solution is larger than the original model, then update the internal point set and the model; Step 5: Set the termination condition , repeat steps 1 to 4, stop the iteration when the number of iterations is greater than the termination condition, obtain the optimal internal point set and the corresponding transfer matrix as the initial value of the precise registration, and use the Levenberg-Marquardt iteration to obtain the optimal transfer matrix; Step 6: Use the optimal internal point set of all frames before the current frame obtained in step 5 to construct a point cloud map , and select key frames at a frequency of 1HZ to construct the pose graph , a scene coarse search based on radius information is used to save the key frame closest to the current frame, the point cloud of the current frame is stored as the target point cloud to construct texture information, and the texture information of the searched historical frames and nearby frames is stored to form a description matrix of the local scene to be matched; Step 7. Use polar coordinate system instead of Cartesian coordinate system, take the position of the sensor as the origin, calculate the azimuth and radius of each point on the XY plane, use the ring and sector-based method to reorganize the point cloud, divide the point cloud into rings along the radial direction, and use sector partition along the azimuth. The rings and sectors can uniquely index any area of ​​the point cloud.

2. The autonomous positioning method for dynamic scenes according to claim 1, characterized in that: The step 1 is specifically as follows: the curvature calculation formula is: ,in, Represent the coordinates of different points. Select 10.

3. The autonomous positioning method for dynamic scenes according to claim 1, characterized in that: The step 2 specifically includes: Record the previous frame The proportion of the best internal point set in the previous frame The weight of the optimal internal point set in is mapped to [0.1,1], and the ground point ratio of the previous frame is obtained after mapping: ,in, for The optimal number of interior points at time k-1, for exist k-1 The number of laser points at the moment; For the current frame sampling, defined in The probability distribution of sampling is ; According to this probability distribution The sample data set is extracted as ; The total sample data set extracted from the kth frame is ; In the sampled data set The conversion matrix is ​​obtained by sampling and solving, which is recorded as ,in, are the translations along the x, y, and z axes of the radar system, is the rotation angle.

4. The autonomous positioning method for dynamic scenes according to claim 1, characterized in that: The step three comprises: predict Moment feature points Coordinates ,in, yes The first three column vectors, It is obtained by a rotation matrix defined by Rodriguez formula; Search in the prediction coordinate set using the k-nearest neighbor algorithm The coordinates of the nearest laser point are , arrive The Euclidean distance The distance from the laser point to the model is shown below: ; Calculate adaptive distance threshold , if the distance from the laser point to the model is within the threshold range, the laser point is considered to be an internal point, where is the average distance from the laser point to the model, and the adaptive distance threshold The calculation formula is as follows: .

5. The autonomous positioning method for dynamic scenes according to claim 1, characterized in that: In the step 4: The proportion of points within k at time is The calculation formula is ; use The centroid of the inliers in the _{\mathcal {E}} represents all the inliers in it, and is assigned according to the inlier ratio. The corresponding weights are used to calculate the weighted covariance matrix: ,in, for The center of the inner point, is the weight center of the laser radar feature point, for The proportion of the middle point; Set the inlier distribution scoring factor. The larger the factor, the better the quality of the calculated model. Get the optimal inlier set and update the optimal model. The calculation formula of the inlier distribution scoring factor is: .

6. The autonomous positioning method for dynamic scenes according to claim 1, characterized in that: The step five comprises: Termination Condition The calculation formula is .

7. The autonomous positioning method for dynamic scenes according to claim 1, characterized in that: The step seven comprises the following steps: make N s and N r Represent the number of sectors and rings respectively, and set the maximum interception distance of point cloud data to , then the distance between each ring is , the angle of each sector is In order to improve the robustness of scene recognition, the difference between the maximum and minimum heights in each area is selected as the value of the feature matrix, and a N s × N r The matrix describes the texture information of the target point cloud; The cosine distance is used to represent the similarity of point cloud texture information, and the Scan Context descriptor of two frames of point cloud is defined as and , the cosine similarity formula is ,in, and are the column vectors of the jth column of the Scan Context of the target point cloud and the point cloud to be matched respectively; Calculate the distance between all column vectors of two Scan Contexts and take the minimum value as the final distance. The best matching relationship of column translation is , It is the distance threshold set to determine whether two scenes are similar. It is the best matching scene finally detected.