Semantic-based laser SLAM method in dynamic scenes
Through the recognition of dynamic road signs and semi-static road signs and semantic map technology, the performance problem of laser SLAM in dynamic scenes has been solved, the positioning accuracy and mapping performance of the unmanned driving platform have been improved, and it can adapt to complex environments.
Patent Information
- Application Number
- CN202410163883.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-05
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-02-05
AI Technical Summary
The performance of existing laser SLAM methods decreases or fails in dynamic scenes, and the maps generated by traditional map types have poor understandability and poor human-computer interaction effects.
It adopts the recognition of dynamic landmarks and semi-static landmarks, combines point cloud semantic segmentation and clustering algorithms, realizes point cloud instance segmentation through RangeNet++ and DBSCAN, and uses particle swarm algorithm and Kalman filter for pose estimation and motion state recognition to establish a rich semantic map.
It improves the positioning accuracy and mapping performance of the unmanned driving platform in dynamic environments, adapts to complex and changeable real-world environments, and achieves more efficient dynamic scene processing.
Smart Images

Figure CN117974787B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of autonomous driving and relates to a semantic-based laser SLAM method in a dynamic scene. Background Art
[0002] In the field of robotics and autonomous driving, laser SLAM (simultaneous localization and mapping) technology is one of the key technologies for achieving autonomous navigation and positioning of unmanned driving platforms. This technology uses laser LiDAR to capture three-dimensional point cloud data of the surrounding environment, and calculates the posture of the unmanned driving platform by analyzing the changes in these data, thereby achieving autonomous positioning and navigation of the unmanned driving platform. Although laser SLAM technology has been widely studied and explored in the field of robotics and autonomous driving, and some effective SLAM solutions have emerged in this process. However, the existing laser SLAM methods still have the following two main problems:
[0003] (1) Most existing SLAM solutions still rely on the assumption of a static world. However, in real environments, especially in urban traffic scenes, moving objects are everywhere and dynamic scenes are almost inevitable, which leads to the performance degradation or even failure of existing SLAM algorithms.
[0004] (2) Most existing research works are based on traditional map types, such as geometric feature maps and traditional occupancy grid maps. Although these maps can describe and model the environment to a certain extent, they still have some obvious shortcomings, such as poor comprehension of the generated maps and poor human-computer interaction.
[0005] In view of the limitations of the above-mentioned existing SLAM technology, this study proposes a new semantic laser SLAM method suitable for dynamic scenes. One of the core of this method is based on the recognition of dynamic landmarks and semi-static landmarks, and uses semi-static landmarks and pure static landmarks for registration to improve the positioning accuracy of the unmanned driving platform. In addition, a richer and more practical point cloud semantic map can be established. This map, combined with advanced semantic understanding capabilities, enables the SLAM system to better adapt to and understand the complex and changing real-world environment. Through these innovations, the unmanned driving platform can achieve more accurate positioning and mapping in a dynamically changing environment, thereby improving the overall performance of the autonomous driving system. Summary of the invention
[0006] In view of this, an object of the present invention is to provide a semantic-based laser SLAM method in a dynamic scene.
[0007] In order to achieve the above object, the present invention provides the following technical solutions:
[0008] A semantics-based laser SLAM method in a dynamic scene, the method comprising the following steps:
[0009] S1: Instance segmentation of point cloud; specifically, for the original LiDAR point cloud, RangeNet++ is used to perform semantic segmentation of the point cloud, dividing the point cloud into point cloud clusters with different semantics; for the point cloud clusters, the DBSCAN clustering algorithm is used to cluster them to achieve instance segmentation of the point cloud; based on the semantic information of the point cloud, the instances are divided into three categories: pure static landmarks, landmarks with unknown motion states, and ground point clouds;
[0010] S2: Preliminary estimation of pose; specifically, for the purely static landmarks and the landmarks in unknown motion state in two consecutive frames, the initial pairing of the landmarks is completed based on the geometric center and semantic information of the landmarks; for the landmark pairs that have completed the initial pairing, the layering threshold is determined according to the average value of the landmark pairs in the vertical direction, and the landmark pairs are layered according to the layering threshold into upper and lower layers; then, the point clouds of the upper and lower layers of the landmark pairs are projected on the horizontal plane to obtain a two-dimensional point set, and Graham's The Scan algorithm calculates the convex hull of a two-dimensional point set to obtain the upper and lower convex hulls; the shape similarity and size proximity between the convex hull features of the same layer in the upper and lower convex hulls of two consecutive frames are judged by a comprehensive index constructed by the rotation function curve and the Hausdorff distance; a pair of convex hulls with the most similar shape and the closest size are selected as the convex hull feature pair of the landmark pair based on the comprehensive index, and the pair is used as the convex hull feature pair for registration to perform preliminary pose estimation; an objective function with the overlapping area of the convex hull feature pair as the optimization target is constructed, and then the optimized particle swarm algorithm is used to iteratively solve the objective function parameters so that the sum of the overlapping areas between all convex hull feature pairs in the previous and next frames is maximized;
[0011] S3: Identification of the motion state of unknown motion state landmarks; specifically including: using the results of preliminary pose estimation, converting the geometric center of the unknown motion state landmark in the LiDAR coordinate system at the current moment to the world coordinate system; then, based on the two-dimensional uniform turning model, establishing a state transfer model, predicting the geometric center position and speed of the landmark, and using the landmark center position converted to the world coordinate system as the input of the observation equation, and using the Kalman filter to update the position and speed of the geometric center; considering both the state change amount and the semantic information to distinguish between dynamic landmarks and semi-static landmarks: if the speed and position change of the landmark is less than the set threshold, and the semantic information of the landmark at the previous and next moments is consistent, then the unknown motion state landmark is identified as a semi-static landmark; if the speed and position change of the landmark is greater than the set threshold, and the semantic information of the landmark at the previous and next moments is consistent, then the unknown motion state landmark is identified as a dynamic landmark;
[0012] S4: Accurate estimation of posture; specifically including: accurate posture estimation is divided into two parts: 1) horizontal posture estimation and 2) vertical posture estimation; for horizontal posture estimation, pure static landmarks and semi-static landmarks are used, combined with the method of matching the local map of the current frame, to achieve accurate estimation of horizontal posture; in the vertical direction, by selecting the ground point cloud within a certain neighborhood of the LiDAR origin, and performing plane fitting on the front-view ground point cloud and the rear-view ground point cloud respectively; by comparing the angle change between the normal vectors of the planes in the two frames before and after, the pitch angle change of the unmanned driving platform is determined; the horizontal posture estimation and the pitch angle change are combined to jointly solve the vertical change; assuming that the roll of the unmanned driving platform is 0; and the six-degree-of-freedom posture change is obtained by combining the posture changes in each direction; and the posture in the global coordinate system is solved by transformation integral;
[0013] S5: Loop detection; specifically includes: extracting LinK3D features from purely static road signs and ground point clouds, and then creating a bag of words based on the extracted LinK3D features; then, using BoW3D to detect loops, and during the loop detection process, ensuring that only LinK3D features with the same semantic information are used to solve loop constraints; when a loop is detected, using graph optimization methods to implement loop correction to update the pose and map;
[0014] S6: Mapping; specifically, for purely static landmarks and ground point clouds, convert them into the world coordinate system through their poses; then, voxelize the global map.
[0015] Furthermore, the S1 includes:
[0016] S1-1: For the original LiDAR point cloud, RangeNet++ is used to perform semantic segmentation of the point cloud, dividing the point cloud into point cloud clusters with different semantics according to different semantics;
[0017] S1-2: For point cloud clusters, the DBSCAN clustering algorithm is used to perform clustering to achieve instance segmentation of point clouds; based on the semantic information of point clouds, instances are divided into three categories: purely static landmarks, landmarks in unknown motion states, and ground point clouds.
[0018] Further, the S2 includes:
[0019] S2-1: Calculate the geometric center of each landmark at time k-1 and time k for purely static landmarks and landmarks in unknown motion state, then find the shortest distance from each geometric center at time k-1 to the geometric center at time k, and find the average of these shortest distances; if the shortest distance between two landmarks at time k-1 and time k is less than the average, and the semantic information of the landmarks at these two times is consistent, then the pair of landmarks is considered to have completed the initial pairing, and the two landmarks are called landmark pairs;
[0020] S2-2: determining a stratification threshold according to an average value of the landmark pair in the vertical direction, and dividing each landmark in the landmark pair into an upper and lower layer according to the stratification threshold;
[0021] S2-3: Project the point clouds of the upper and lower layers of the landmark pair on the horizontal plane to obtain a two-dimensional projection point set; use the Graham's Scan algorithm to calculate the convex hull of the two-dimensional projection point set to obtain the upper and lower convex hulls of the landmark pair;
[0022] S2-4: Use the rotation function curve and Hausdorff distance to establish a weighted comprehensive evaluation index to judge the shape similarity and size proximity between the convex hulls of the same layer in the upper and lower convex hulls of the landmarks at time k-1 and time k;
[0023] S2-5: Select a pair of convex hulls with the most similar shapes and sizes based on comprehensive evaluation indicators and As the convex hull feature pair of the landmark pair, i represents the i-th convex hull feature pair at time k-1 and time k, and N represents the total number of convex hull feature pairs;
[0024] S2-6: Define the change in posture between time k-1 and time k as t x and t y They represent the translation change on the xoy plane, t θ Represents the amount of change in rotation around the vertical direction; calculates the overlapping area of the i-th pair of convex hull features Where Area(·) represents the function of calculating the overlapping area of two convex hulls; express The new convex hull formed after the Euclidean transformation of t; Represents the counterclockwise ordered convex hull formed by the intersection of two convex hulls; for N convex hull feature pairs, establish an objective function with the overlapping area of the convex hull feature pairs as the optimization target
[0025] S2-7: Use the optimized particle swarm algorithm to solve the optimization variables; first, the randomly generated initial position is t init , t init =(t1,t2,...,t j ,...,t P ) and initial velocity v init , v init =(v1,v2,...,v j ,...,v P ), where P is the number of particle swarms, t j represents the position of the jth particle in the initial position, vj represents the velocity of the jth particle in the initial velocity;
[0026] S2-8: Mapping particle t j To convex hull feature On, we get the convex hull And calculate its convex hull feature The overlapping area g i (t j ); then calculate the fitness value corresponding to the particle Among them, the fitness value G(t j ) is the sum of the overlapping areas of the N feature pairs corresponding to the jth particle;
[0027] S2-9: Update the individual optimal position of each particle The formula is as follows: in, is the historical optimal fitness value, is the individual optimal position of the jth particle
[0028] S2-10: Update the global optimal position g of the particle swarm best The formula is as follows: Among them, G(g best ) is the global optimal fitness value in history, g best is the global optimal position of the entire particle swarm;
[0029] S2-11 updates the particle speed according to the individual optimal position and the global optimal position of the particle; the formula for updating the speed of the jth particle is as follows: Where: j∈[1,P]; iter represents the number of iterations; the inertia weight coefficient w is a constant; r1 and r2 are random numbers ranging from 0 to 1, which obey a uniform distribution; c1 and c2 are learning factors, Where, ITER represents the total number of iterations; c3 and c4 are constants;
[0030] S2-12: Update the particle's position; the position update equation is as follows: j (iter+1)=t j (iter)+v j (iter+1), where v j (iter+1) is the updated velocity of the jth particle, t j (iter+1) is the updated position of the jth particle;
[0031] S2-13: Set two iteration stop conditions: 1) reaching the predetermined maximum number of iterations; and 2) the change in the objective function value of the global optimal position of the particle swarm after iteration is less than the set threshold; if any of the conditions is met, the algorithm terminates the iteration;
[0032] S2-14: Select the particle that maximizes the objective function value when the iteration ends as the optimal solution of the objective function
[0033] Further, the S3 includes:
[0034] S3-1: The geometric center of the road sign in the unknown motion state at time k-1 is predicted using a two-dimensional uniform turning model; specifically, the state vector is assumed to be Where (x,y) is the horizontal displacement vector, and is the velocity vector; the turning angular velocity ω = Δθ / τ, where τ is the sampling period of LiDAR; based on the horizontal geometric center state of the road sign at time k-1, the geometric center state of the road sign at time k is predicted; the prediction equation is x k =Fx k-1 +Γw k-1 , where x k is the predicted state at time k, x k-1 is the state at time k-1, and F represents the state transfer matrix Γ is the noise matrix w k-1 represents process noise, and is Gaussian white noise with a mean of 0; the covariance matrix Q of the process noise;
[0035] S3-2: Using preliminary estimates The geometric center of the landmark at time k is transformed into the world coordinate system, which is used as the measured value of the geometric center of the landmark; the measurement equation is defined as follows: k =Hx k +ν k , where z k =[z x,k ,z y,k ] T is the observed value at time k, ν k =[ν x,k ,ν y,k ] T represents the measurement noise, which is also a Gaussian white noise distribution with a mean of 0, and its variance matrix is R, H represents the observation matrix,
[0036] S3-3: Use Kalman filter to update the position and speed of the landmark; specifically include: establishing an independent Kalman filter for each unknown motion state landmark for estimation; estimating the posterior state based on time k-1 according to Predict the prior state estimate at the current time k The error covariance matrix P based on k-1 time k-1|k-1 , according to P k|k-1 =FP k-1|k-1 F T +Q, predict the prior error covariance matrix P at the current time k k|k-1 ; Then, according to Estimate the posterior state Update, where K k is the Kalman gain at time k, K k =P k|k-1 H T (HP k|k-1 H T +R) -1 ;
[0037] S3-4: Determine whether the road sign is a semi-static road sign; the judgment conditions are as follows: 1) The speed and position change of the road sign is less than the set threshold ||v obj || and ||d obj ||; 2) The semantics of the road signs at the two moments before and after are consistent. The unknown motion state road signs that meet the above conditions are semi-static road signs;
[0038] S3-5: Determine whether the road sign is a dynamic road sign; the determination conditions are as follows: 1) The speed or position change of the road sign is not less than the set threshold value ||v obj || and ||d obj ||; 2) The semantics of the landmarks at two moments are consistent; the unknown motion state landmark that meets the above conditions is a dynamic landmark.
[0039] Further, the S4 includes:
[0040] S4-1: Divide the pose estimation into two parts: 1) horizontal pose estimation and 2) vertical pose estimation.
[0041] S4-2: For the estimation of the horizontal pose change, firstly, the pure static landmarks and semi-static landmarks at time k are used to perform preliminary pairing with the landmarks existing in the historical local map to form landmark pairs; then, the paired landmark pairs are layered into upper and lower layers; then, convex hull features are established for the landmarks in the upper and lower layers respectively; then, the convex hull feature pairs with the most similar shapes and sizes are evaluated and selected from the convex hull features of the upper and lower layers; finally, the optimized particle swarm algorithm is used to solve the horizontal pose change that maximizes the sum of the overlapping areas of the convex hull feature pairs.
[0042] S4-3: For the estimation of the vertical pose change, the ground point cloud within a certain neighborhood of the laser LiDAR origin is selected, and the forward-looking ground point cloud and the rear-looking ground point cloud are plane-fitted respectively; the pitch angle change of the unmanned driving platform is determined by comparing the angle change between the normal vectors of the planes in the two frames before and after; the change in the vertical direction is solved by combining the horizontal pose change and the pitch angle change, and the roll change is assigned to 0 to obtain the estimated vertical pose.
[0043] S4-4: Combination and The six-degree-of-freedom pose change is obtained by matching the point clouds of the previous and next two frames;
[0044] S4-5: Through transformation integration, the position and posture of the unmanned driving platform in the global coordinate system are obtained.
[0045] Further, the S5 includes:
[0046] S5-1: Extract LinK3D features from purely static road signs and ground point clouds, and create word bags based on the extracted LinK3D features;
[0047] S5-2: Use BoW3D to detect loops; during loop detection, only LinK3D features with the same semantic information are used to solve loop constraints;
[0048] S5-3: When a loop is detected, a graph optimization method is used to perform loop correction to update the pose and update the global map.
[0049] Further, the S6 includes:
[0050] S6-1: For purely static road signs and ground point clouds, according to the calculated pose in the global coordinate system, the point clouds are converted to the world coordinate system to obtain a global static semantic map, and then the global static semantic map is voxelized.
[0051] The beneficial effects of the present invention are:
[0052] (1) Adaptation to dynamic environments: This method is particularly suitable for dynamic scenes and can effectively process and adapt to dynamic changes in the environment, such as moving vehicles, pedestrians, etc. This adaptability is difficult to achieve with traditional laser SLAM methods.
[0053] (2) Improved positioning accuracy: The new semantic laser SLAM method proposed in this invention focuses on the registration of semi-static landmarks and purely static landmarks by identifying dynamic landmarks and semi-static landmarks, thereby improving the positioning accuracy of the unmanned driving platform in a dynamic environment.
[0054] (3) Establishing a rich semantic information map: Compared with the traditional laser SLAM method, the present invention can establish a richer and more practical point cloud semantic map. This map not only contains spatial location information, but also integrates advanced semantic understanding capabilities, enabling the SLAM system to better adapt to and understand the complex and ever-changing real-world environment.
[0055] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:
[0057] Figure 1 It is the algorithm flow chart of the present invention;
[0058] Figure 2 This is the recognition effect of the dynamic road sign of the present invention on the KITTI dataset 07 sequence, where black represents the dynamic road sign point cloud and gray represents the non-dynamic point cloud;
[0059] Figure 3 for Figure 2 A local magnified view of the area marked as number 1;
[0060] Figure 4 for Figure 2 A local magnified view of the area marked as number 2;
[0061] Figure 5 for Figure 2 A local magnified view of the area marked as number 3;
[0062] Figure 6 This is the result of mapping based on pure static road signs and ground point clouds in the KITTI dataset 07 sequence, where different instances are represented by different gray levels;
[0063] Figure 7 for Figure 6 A local magnified view of the area marked as number 1;
[0064] Figure 8 for Figure 6 A local magnified view of the area marked as number 2;
[0065] Fig. 9 for Figure 6 A local enlarged view of the area marked with number 3. DETAILED DESCRIPTION
[0066] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, 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 invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.
[0067] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0068] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0069] like Figure 1 As shown, a semantic-based laser SLAM method in a dynamic scene of the present invention comprises the following steps:
[0070] S1, instance segmentation of point cloud. Specifically, for the original LiDAR point cloud, RangeNet++ is used to perform semantic segmentation of the point cloud, and the point cloud is segmented into point cloud clusters with different semantics. For the point cloud clusters, the DBSCAN clustering algorithm is used to cluster and achieve instance segmentation of the point cloud. Based on the semantic information of the point cloud, the instances are divided into three categories: pure static landmarks, landmarks with unknown motion states, and ground point clouds.
[0071] S2, preliminary estimation of posture. Specifically including: for the purely static landmarks and landmarks in unknown motion state in the previous and next two frames, the initial pairing of landmarks is completed based on the geometric center and semantic information of the landmarks. For the landmark pairs that have completed the initial pairing, the stratification threshold is determined according to the average value of the landmark pairs in the vertical direction, and the landmark pairs are stratified according to the stratification threshold, and are divided into upper and lower layers. Then, the point clouds of the upper and lower layers are projected on the horizontal plane respectively to obtain a two-dimensional point set, and the convex hull of the two-dimensional point set is calculated using the Graham's Scan algorithm to obtain the upper and lower convex hulls. The shape similarity and size proximity between the convex hull features of the same layer in the upper and lower convex hulls of consecutive frames are judged by a comprehensive index constructed using the rotation function curve and the Hausdorff distance. According to the comprehensive index, a pair of convex hulls with the most similar shapes and the closest sizes are selected as the convex hull feature pair of the landmark pair, and they are used as the alignment features for preliminary estimation of posture. An objective function with the overlapping area of convex hull feature pairs as the optimization target is constructed, and then the optimized particle swarm algorithm is used to iteratively solve the objective function parameters so that the sum of the overlapping areas between all convex hull feature pairs in the previous and next frames is maximized.
[0072] S3, motion state identification of unknown motion state landmarks. Specifically, it includes: using the results of preliminary pose estimation, converting the geometric center of the landmark in the LiDAR coordinate system at the current moment to the world coordinate system; then, establishing a state transition model, predicting the position and speed of the geometric center of the landmark, and using the landmark center position converted to the world coordinate system as the input of the observation equation, and using the Kalman filter to update the position and speed of the geometric center. Two factors, state change and semantic information, are considered to distinguish dynamic landmarks from semi-static landmarks: if the speed and position change of the landmark is less than the set threshold, and the semantic information of the landmark is consistent at the previous and next moments, the unknown motion state landmark is identified as a semi-static landmark; if the speed and position change of the landmark is greater than the set threshold, and the semantic information of the landmark is consistent at the previous and next moments, the unknown motion state landmark is identified as a dynamic landmark.
[0073] S4, accurate estimation of posture. Specifically, the accurate posture estimation is divided into two parts: 1) horizontal posture estimation and 2) vertical posture estimation. For the horizontal posture estimation, pure static landmarks and semi-static landmarks are used, combined with the method of matching the local map of the current frame, to achieve accurate estimation of the horizontal posture. In the vertical direction, by selecting the ground point cloud within a certain neighborhood of the LiDAR origin, and performing plane fitting on the front-view ground point cloud and the rear-view ground point cloud respectively. By comparing the angle change between the normal vectors of the planes in the two frames before and after, the pitch angle change of the unmanned driving platform can be determined. Combine the posture estimation and pitch angle change in the horizontal direction, and jointly solve the change in the vertical direction. Assume that the roll of the unmanned driving platform is 0. Combine the posture changes in each direction to obtain the six-degree-of-freedom posture change. And solve the posture in the global coordinate system through transformation integral.
[0074] S5, loop detection. Specifically, it includes: extracting LinK3D features from purely static road signs and ground point clouds, and then creating a bag of words based on the extracted LinK3D features. Then, BoW3D is used to detect loops. During the loop detection process, it is ensured that only LinK3D features with the same semantic information are used to match and solve loop constraints. When a loop is detected, a graph optimization method is used to implement loop correction to update the pose and map.
[0075] S6, map building. Specifically, it includes: for purely static road signs and ground point clouds, transform them into the world coordinate system through pose. Then, voxelize the global map.
[0076] S1 specifically includes
[0077] 1-1 For the original laser LiDAR point cloud, RangeNet++ is used to perform point cloud semantic segmentation, and the point cloud is segmented into point cloud clusters with different semantics according to different semantics.
[0078] 1-2 For point cloud clusters, the DBSCAN clustering algorithm is used to cluster and realize instance segmentation of point clouds. Based on the semantic information of point clouds, instances are divided into three categories: purely static landmarks, landmarks in unknown motion states, and ground point clouds.
[0079] S2 specifically includes
[0080] 2-1 Calculate the geometric center of each landmark for pure static landmarks and landmarks in unknown motion at time k-1 and k, then find the shortest distance from each geometric center at time k-1 to the geometric center at time k, and find the average of these shortest distances. If the shortest distance between two landmarks at time k-1 and time k is less than the average, and the semantic information of the landmarks at these two times is consistent, then this pair of landmarks is considered to have completed the initial pairing, and the two landmarks are called landmark pairs.
[0081] 2-2 Determine the stratification threshold according to the average value of the landmark pair in the vertical direction, and divide each landmark in the landmark pair into upper and lower layers according to the stratification threshold.
[0082] 2-3 Project the upper and lower point clouds of the landmark pair on the horizontal plane to obtain a two-dimensional projection point set. Use the Graham's Scan algorithm to calculate the convex hull of the two-dimensional projection point set to obtain the upper and lower convex hulls of the landmark pair.
[0083] 2-4 Use the rotation function curve and Hausdorff distance to establish a weighted comprehensive evaluation index to judge the shape similarity and size proximity between the same layer convex hulls in the upper and lower convex hulls of the landmarks at time k-1 and time k.
[0084] 2-5 Select a pair of convex hulls with the most similar shapes and sizes based on the comprehensive evaluation index and As the convex hull feature pair of the landmark pair, i represents the i-th convex hull feature pair at time k-1 and time k, and N represents the total number of convex hull feature pairs.
[0085] 2-6 Define the change in posture at time k-1 and time k as t x and t y They represent the translation change on the xoy plane, t θ Represents the amount of change in rotation around the vertical direction. Calculate the overlapping area of the i-th pair of convex hull features Where Area(·) represents the function of calculating the overlapping area of two convex hulls; express The new convex hull formed after the Euclidean transformation of t; Represents the counterclockwise ordered convex hull formed by the intersection of two convex hulls; for N convex hull feature pairs, establish an objective function with the overlapping area of the convex hull feature pairs as the optimization target
[0086] 2-7 Use the optimized particle swarm algorithm to solve the optimization variable t. First, the randomly generated initial position is t init , t init =(t1,t2,...,t j ,...,t P ) and initial velocity v init , v init =(v1,v2,...,v j ,...,v P ). Where P is the number of particle swarms, t j represents the position of the jth particle in the initial position, v jrepresents the velocity of the jth particle in the initial velocity.
[0087] 2-8 Mapping particle t j To convex hull feature On, we get the convex hull And calculate its convex hull feature The overlapping area g i (t j ). Then calculate the fitness value corresponding to the particle Among them, the fitness value G(t j ) is the sum of the overlapping areas of the N feature pairs corresponding to the jth particle.
[0088] 2-9 Update the individual optimal position of each particle The formula is as follows: in, is the historical optimal fitness value, is the individual optimal position of the jth particle
[0089] 2-10 Update the global optimal position g of the particle swarm best The formula is as follows: Among them, G(g best ) is the global optimal fitness value in history, g best is the global optimal position of the entire particle swarm.
[0090] 2-11 Update the particle speed based on the individual optimal position and global optimal position of the particle. The formula for updating the speed of the jth particle is as follows: Where: j∈[1,P]; iter represents the number of iterations; the inertia weight coefficient w is a constant; r1 and r2 are random numbers ranging from 0 to 1, which obey a uniform distribution; c1 and c2 are learning factors, Where, ITER represents the total number of iterations; c3 and c4 are constants;
[0091] 2-12 Update the particle's position. The position update equation is as follows: j (iter+1)=t j (iter)+v j (iter+1), where v j (iter+1) is the updated velocity of the jth particle, t j (iter+1) is the updated position of the jth particle.
[0092] 2-13 sets two iteration stop conditions: 1) reaching the predetermined maximum number of iterations; and 2) the change in the objective function value of the global optimal position of the particle swarm after iteration is less than the set threshold. If any of the conditions is met, the algorithm terminates the iteration.
[0093] 2-14 Select the particle that maximizes the objective function value when the iteration ends as the optimal solution of the objective function
[0094] S3 specifically includes
[0095] 3-1 The geometric center of the road sign with unknown motion state at time k-1 is predicted using a two-dimensional uniform turning model. Specifically, let the state vector be Where (x,y) is the horizontal displacement vector, and is the velocity vector. The turning angular velocity ω = Δθ / τ, where τ is the sampling period of the LiDAR. Based on the horizontal geometric center state of the road sign at time k-1, the geometric center state of the road sign at time k is predicted. The prediction equation is x k =Fx k-1 +Γw k-1 , where x k is the predicted state at time k, x k-1 is the state at time k-1, and F represents the state transfer matrix Γ is the noise matrix w k-1 represents the process noise, and is a Gaussian white noise with a mean of 0. The covariance matrix Q of the process noise.
[0096] 3-2 Using preliminary estimation results The geometric center of the landmark at time k is transformed into the world coordinate system and used as the measured value of the geometric center of the landmark. The measurement equation is defined as follows: k =Hx k +ν k , where z k =[z x,k ,z y,k ] T is the observed value at time k, ν k =[ν x,k ,ν y,k ] T represents the measurement noise, which is also a Gaussian white noise distribution with a mean of 0, and its variance matrix is R, H represents the observation matrix,
[0097] 3-3 Use Kalman filter to update the position and speed of the landmark. Specifically, it includes: establishing an independent Kalman filter for each unknown motion state landmark to estimate. Posterior state estimation based on time k-1 according to Predict the prior state estimate at the current time k The error covariance matrix P based on k-1 time k-1|k-1 , according to P k|k-1 =FPk-1|k-1 F T +Q, predict the prior error covariance matrix P at the current time k k|k-1 ; Then, according to Estimate the posterior state Update, where K k is the Kalman gain at time k, K k =P k|k-1 H T (HP k|k-1 H T +R) -1 .
[0098] 3-4 Determine whether the road sign is a semi-static road sign. The judgment conditions are as follows: 1) The speed and position change of the road sign is less than the set threshold ||v obj || and ||d obj ||; 2) The semantics of the road signs at the two moments before and after are consistent. The unknown motion state road signs that meet the above conditions are semi-static road signs;
[0099] 3-5 Determine whether the road sign is a dynamic road sign. The judgment conditions are as follows: 1) The speed or position change of the road sign is not less than the set threshold ||v obj || and ||d obj ||; 2) The semantics of the landmarks at the two moments before and after are consistent. The unknown motion state landmarks that meet the above conditions are dynamic landmarks.
[0100] S4 specifically includes
[0101] 4-1 divides the precise pose estimation into two parts: 1) horizontal pose estimation and 2) vertical pose estimation.
[0102] 4-2 For the estimation of the horizontal pose change, first use the pure static landmarks and semi-static landmarks at time k to perform preliminary pairing with the landmarks existing in the historical local map to form landmark pairs. Then, the paired landmark pairs are divided into upper and lower layers. Next, convex hull features are established for the landmarks in the upper and lower layers respectively. After that, the convex hull feature pairs with the most similar shapes and sizes are evaluated and selected from the convex hull features of the upper and lower layers. Finally, the optimized particle swarm algorithm is used to solve the horizontal pose change that maximizes the sum of the overlapping areas of the convex hull feature pairs.
[0103] 4-3 For the estimation of the vertical posture change, the ground point cloud in a certain neighborhood of the laser LiDAR origin is selected, and plane fitting is performed on the forward-looking ground point cloud and the rear-looking ground point cloud respectively. The pitch angle change of the unmanned driving platform is determined by comparing the angle change between the normal vectors of the planes in the two frames before and after. Combined with the horizontal posture change and the pitch angle change, the vertical change is jointly solved, and the roll change is assigned to 0 to obtain the estimated vertical posture.
[0104] 4-4 combination and The six-degree-of-freedom pose change can be obtained by matching the point clouds of the previous and next two frames.
[0105] 4-5 Through transformation integration, the position and posture of the unmanned driving platform in the global coordinate system are obtained.
[0106] S5 specifically includes
[0107] 5-1 Extract LinK3D features for purely static road signs and ground point clouds, and create word bags based on the extracted LinK3D features.
[0108] 5-2 Use BoW3D to detect loops. In the process of loop detection, only LinK3D features with the same semantic information are used to solve loop constraints.
[0109] 5-3 When a loop is detected, a graph optimization method is used to perform loop correction to update the pose and update the global map.
[0110] S6 specifically includes
[0111] 6-1 For purely static road signs and ground point clouds, according to the calculated pose in the global coordinate system, the point clouds are converted to the world coordinate system to obtain a global static semantic map, and then the global static semantic map is voxelized.
[0112] The present invention evaluates the superiority of the invention from three aspects: 1) positioning accuracy; 2) detection effect of dynamic road signs and 3) mapping effect.
[0113] In order to evaluate the positioning accuracy of the present invention, the positioning accuracy of the present invention is compared with that of various SLAM algorithms on the KITTI dataset. Here, the comparison includes two different situations: a situation without loop closure and a situation with loop closure.
[0114] For the case of no loop closure, we selected a series of advanced laser mileage calculation methods for comparison with the present invention. These algorithms include: MULLS-LO(s1)(C.Zheng,Y.Lyu,M.Li,and Z.Zhang,"LodoNet:A DeepNeural Network with 2D Keypoint Matching for 3D LiDAR Odometry Estimation,"inProceedings ofthe28thACM International Conference on Multimedia,2020,pp.2391–2399.),ICP-Point2Point(PJBesl and NDMcKay,"A method for registration of3-D shapes,"IEEE Transactions on Pattern Analysis andMachine Intelligence,vol.14,no.2,pp.239-256,1992.),ICP-point2plane(K.-L.Low,"Linear Least-SquaresOptimization for Point-to-Plane ICP Surface Registration,"February 20042004, no.TR04-004, pp.1-3.), CLS (M.Velas, M.Spanel, andA.Herout, "Collar Line Segments for fast odometry estimation from Velodyne point clouds," in 2016 IEEEInternational Conference on Robotics andAutomation(ICRA),2016,pp.4486-4495.), G-ICP(AVSegal,D. and S. Thrun, "Generalized-ICP," in Robotics: Science and Systems, 2009, vol. 2, no. 4, pp. 1-8.), Velas et al. (M. Velas, M. Spanel, M. Hradis, and A. Herout, "CNN for IMU assisted odometry estimation using velodyne LiDAR," in 2018 IEEE International Conference on Autonomous Robot Systems and Competitions (ICARSC), 2018, pp. 71-77.), LOAM Velodyne (J. Zhang and S. Singh, "LOAM: Lidar Odometry and Mapping in Real-time," Robotics: Science and Systems, vol. 2, no. 9, pp. 1-14, 2014.), LO-Net (Q. Li et al., "LO-Net: Deep Real-Time Lidar Odometry," in 2019 IEEE / CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2019, pp. 8465-8474.), LeGO-LOAM (T. Shan and B. Englot, "LeGO-LOAM: Lightweight and Ground-Optimized Lidar Odometry and Mapping on Variable Terrain," in 2018 IEEE / RSJ International Conference on Intelligent Robots and Systems (IROS), 2018, pp. 4758-4765.) and L-LO (F. Li, C. Fu, and D. Sun, "L-LO: Enhancing Pose Estimation Precision via a Landmark-Based LiDAR Odometry," pp. 1-14. [Online]. Available: https: / / arxiv.org / abs / 2312.16787).For the case of loop closure, we selected S4-SLAM (B.Zhou, Y.He, K.Qian, X.Ma, and X.Li, "S4-SLAM: A real-time 3D LIDARSLAM system for ground / watersurface multi-scene outdoor applications," Autonomous Robots, vol.45, no.1, pp.77-98, 2021.), LiTAMIN2 (M.Yokozuka, K.Koide, S.Oishi, and A.Banno, "LiTAMIN2: Ultra Light LiDAR-based SLAM using GeometricApproximation applied with KL-Divergence," in 2021 IEEE International Conference on Robotics and Automation (ICRA), 2021, pp.11619-11625.), etc. We used the mean displacement root mean square error (t. rel ) and the average rotation root mean square error (r rel ) are used to quantitatively evaluate the accuracy of SLAM methods, which is also the comparison benchmark of industry standards. Table 1 shows the positioning accuracy comparison results of the method of the present invention and the current mainstream algorithm under the conditions of no loop and with loop.
[0115] Table 1
[0116]
[0117]
[0118] Note: "U" stands for urban roads, "H" stands for highways, and "C" stands for rural roads; "*" stands for loops, and "-" stands for data unavailable. In the table, for the case without loops, the best results of the algorithm without loop closure are highlighted in bold black. Similarly, for the case with loops, the numbers in bold black show the best performance of the algorithm with loop closure.
[0119] For the case of no loop, the test results show that compared with other algorithms, the method proposed in the present invention shows higher positioning accuracy in most test sequences. In particular, in terms of average displacement error and average rotation error, this method has achieved the lowest record. This clearly proves that the positioning accuracy of the present invention has significant performance advantages over other current SLAM methods. At the same time, in the presence of loops, the present invention also shows excellent positioning performance, achieving the lowest average displacement error and average rotation error. Overall, the experiment fully verifies the advantages of the positioning performance of the present invention under different conditions.
[0120] In order to evaluate the effect of dynamic road sign recognition of the present invention, we used the KITTI dataset sequence 07, which is rich in dynamic road signs and static road signs, to test the algorithm. Figure 2 The recognition effect of the present invention on dynamic road signs is shown, where dynamic road signs are displayed as black point clouds and non-dynamic ones are displayed as gray point clouds. Figure 3 , Figure 4 and Figure 5 Provided separately Figure 2 The local magnified view of the area marked as number 1, 2, and 3 in the figure is shown to show these details in more detail. The experimental results show that the present invention can accurately identify dynamic landmarks in the scene and maintain the spatial consistency of semi-static landmarks and purely static landmarks in the map.
[0121] In order to evaluate the effect of this method in building maps based on pure static landmarks and ground point clouds, we selected the KITTI dataset sequence 07 for experimental verification. Figure 6 We show our map results based on pure static landmarks and ground point clouds on the KITTI dataset sequence 07, where different instances are represented by different grayscale levels. Figure 7 , Figure 8 and Fig. 9 They provide Figure 6 The local magnified view of the area marked as number 1, 2, and 3 in FIG. The experimental results clearly show that the present invention successfully establishes a global semantic map based on pure static landmarks and ground point clouds.
[0122] In summary, the present invention demonstrates its excellent performance in three aspects. 1) The present invention can achieve higher positioning accuracy both in the absence of loops and in the presence of loops; 2) The present invention can effectively identify dynamic road signs and maintain the spatial consistency of semi-static road signs and purely static road signs in the map; 3) The present invention successfully establishes a global semantic map based on purely static road signs and ground point clouds. The successful application of this invention means that unmanned driving platforms can interpret the surrounding environment more accurately and achieve more precise positioning, laying a solid foundation for the further development and popularization of autonomous driving technology.
[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.
Claims
1. Semantic-based laser SLAM method in dynamic scenes, Features: The method comprises the following steps: S1: Instance segmentation of point cloud; specifically, for the original LiDAR point cloud, RangeNet++ is used to perform semantic segmentation of the point cloud, dividing the point cloud into point cloud clusters with different semantics; for the point cloud clusters, the DBSCAN clustering algorithm is used to cluster them to achieve instance segmentation of the point cloud; based on the semantic information of the point cloud, the instances are divided into three categories: pure static landmarks, landmarks with unknown motion states, and ground point clouds; S2: Preliminary estimation of pose; specifically, for the purely static landmarks and the landmarks in unknown motion state in two consecutive frames, the initial pairing of the landmarks is completed based on the geometric center and semantic information of the landmarks; for the landmark pairs that have completed the initial pairing, the layering threshold is determined according to the average value of the landmark pairs in the vertical direction, and the landmark pairs are layered according to the layering threshold into upper and lower layers; then, the point clouds of the upper and lower layers of the landmark pairs are projected on the horizontal plane to obtain a two-dimensional point set, and Graham's The Scan algorithm calculates the convex hull of a two-dimensional point set to obtain the upper and lower convex hulls; the shape similarity and size proximity between the convex hull features of the same layer in the upper and lower convex hulls of two consecutive frames are judged by a comprehensive index constructed by the rotation function curve and the Hausdorff distance; a pair of convex hulls with the most similar shape and the closest size are selected as the convex hull feature pair of the landmark pair based on the comprehensive index, and the pair is used as the convex hull feature pair for registration to perform preliminary pose estimation; an objective function with the overlapping area of the convex hull feature pair as the optimization target is constructed, and then the optimized particle swarm algorithm is used to iteratively solve the objective function parameters so that the sum of the overlapping areas between all convex hull feature pairs in the previous and next frames is maximized; S3: Identification of the motion state of unknown motion state landmarks; specifically including: using the results of preliminary pose estimation, converting the geometric center of the unknown motion state landmark in the LiDAR coordinate system at the current moment to the world coordinate system; then, based on the two-dimensional uniform turning model, establishing a state transfer model, predicting the geometric center position and speed of the landmark, and using the landmark center position converted to the world coordinate system as the input of the observation equation, and using the Kalman filter to update the position and speed of the geometric center; considering both the state change amount and the semantic information to distinguish between dynamic landmarks and semi-static landmarks: if the speed and position change of the landmark is less than the set threshold, and the semantic information of the landmark at the previous and next moments is consistent, then the unknown motion state landmark is identified as a semi-static landmark; if the speed and position change of the landmark is greater than the set threshold, and the semantic information of the landmark at the previous and next moments is consistent, then the unknown motion state landmark is identified as a dynamic landmark; S4: Accurate estimation of posture; specifically including: Accurate posture estimation is divided into two parts: 1) horizontal posture estimation and 2) vertical posture estimation; for horizontal posture estimation, pure static landmarks and semi-static landmarks are used, combined with the method of matching the local map of the current frame, to achieve accurate estimation of the horizontal posture; in the vertical direction, by selecting the ground point cloud within a certain neighborhood of the LiDAR origin, and performing plane fitting on the front-view ground point cloud and the rear-view ground point cloud respectively; by comparing the angle change between the normal vectors of the planes in the previous and next frames, the pitch angle change of the unmanned driving platform is determined; the horizontal posture estimation and the pitch angle change are combined to jointly solve the vertical change; assuming that the roll of the unmanned driving platform is 0; and the six-degree-of-freedom posture change obtained by combining the posture changes in each direction; and the posture in the global coordinate system is solved by transformation integral; S5: Loop detection; specifically includes: extracting LinK3D features from purely static road signs and ground point clouds, and then creating a bag of words based on the extracted LinK3D features; then, using BoW3D to detect loops, and during the loop detection process, ensuring that only LinK3D features with the same semantic information are used to solve loop constraints; when a loop is detected, using graph optimization methods to implement loop correction to update the pose and map; S6: Mapping; specifically, for purely static landmarks and ground point clouds, convert them into the world coordinate system through their poses; then, voxelize the global map.
2. The semantic-based laser SLAM method in dynamic scenes according to claim 1, Features: The S1 includes: S1-1: For the original LiDAR point cloud, RangeNet++ is used to perform semantic segmentation of the point cloud, dividing the point cloud into point cloud clusters with different semantics according to different semantics; S1-2: For point cloud clusters, the DBSCAN clustering algorithm is used to perform clustering to achieve instance segmentation of point clouds; based on the semantic information of point clouds, instances are divided into three categories: purely static landmarks, landmarks in unknown motion states, and ground point clouds.
3. The semantic-based laser SLAM method in dynamic scenes according to claim 1, Features: The S2 includes: S2-1: Calculate the geometric center of each landmark at time k-1 and time k for purely static landmarks and landmarks in unknown motion state, then find the shortest distance from each geometric center at time k-1 to the geometric center at time k, and find the average of these shortest distances; if the shortest distance between two landmarks at time k-1 and time k is less than the average, and the semantic information of the landmarks at these two times is consistent, then the pair of landmarks is considered to have completed the initial pairing, and the two landmarks are called landmark pairs; S2-2: determining a stratification threshold according to an average value of the landmark pair in the vertical direction, and dividing each landmark in the landmark pair into an upper and lower layer according to the stratification threshold; S2-3: Project the point clouds of the upper and lower layers of the landmark pair on the horizontal plane to obtain a two-dimensional projection point set; use Graham's Scan algorithm to calculate the convex hull of the two-dimensional projection point set to obtain the upper and lower convex hulls of the landmark pair; S2-4: Use the rotation function curve and Hausdorff distance to establish a weighted comprehensive evaluation index to judge the shape similarity and size proximity between the convex hulls of the same layer in the upper and lower convex hulls of the landmarks at time k-1 and time k; S2-5: Select a pair of convex hulls with the most similar shapes and sizes based on comprehensive evaluation indicators and As the convex hull feature pair of the landmark pair, i represents the i-th convex hull feature pair at time k-1 and time k, and N represents the total number of convex hull feature pairs; S2-6: Define the change in posture between time k-1 and time k as t x and t y They represent the translation change on the xoy plane, t θ Represents the amount of change in rotation around the vertical direction; calculates the overlapping area of the i-th pair of convex hull features Where Area(·) represents the function of calculating the overlapping area of two convex hulls; express The new convex hull formed after the Euclidean transformation of t; Represents the counterclockwise ordered convex hull formed by the intersection of two convex hulls; for N convex hull feature pairs, establish an objective function with the overlapping area of the convex hull feature pairs as the optimization target S2-7: Use the optimized particle swarm algorithm to solve the optimization variables; first, the randomly generated initial position is t init , t init =(t 1 ,t 2 ,...,t j ,...,t P ) and initial velocity v init , v init =(v 1 ,v 2 ,...,v j ,...,v P ), where P is the number of particle swarms, t j represents the position of the jth particle in the initial position, v j represents the velocity of the jth particle in the initial velocity; S2-8: Mapping particle t j To convex hull feature On, we get the convex hull And calculate its convex hull feature The overlapping area g i (t j ); then calculate the fitness value corresponding to the particle Among them, the fitness value G(t j ) is the sum of the overlapping areas of the N feature pairs corresponding to the jth particle; S2-9: Update the individual optimal position of each particle The formula is as follows: in, is the historical optimal fitness value, is the individual optimal position of the jth particle S2-10: Update the global optimal position g of the particle swarm best The formula is as follows: Among them, G(g best ) is the global optimal fitness value in history, g best is the global optimal position of the entire particle swarm; S2-11 updates the particle speed according to the individual optimal position and the global optimal position of the particle; the formula for updating the speed of the jth particle is as follows: Where: j∈[1,P]; iter represents the number of iterations; the inertia weight coefficient w is a constant; r 1 and r 2 is a random number between 0 and 1, which follows a uniform distribution; c 1 and c 2 is the learning factor, Where ITER represents the total number of iterations; c 3 and c 4 is a constant; S2-12: Update the particle's position; the position update equation is as follows: j (iter+1)=t j (iter)+v j (iter+1), where v j (iter+1) is the updated velocity of the jth particle, t j (iter+1) is the updated position of the jth particle; S2-13: Set two iteration stop conditions: 1) reaching the predetermined maximum number of iterations; and 2) the change in the objective function value of the global optimal position of the particle swarm after iteration is less than the set threshold; if any of the conditions is met, the algorithm terminates the iteration; S2-14: Select the particle that maximizes the objective function value when the iteration ends as the optimal solution of the objective function 4. The semantic-based laser SLAM method in dynamic scenes according to claim 1, Features: The S3 includes: S3-1: The geometric center of the road sign in the unknown motion state at time k-1 is predicted using a two-dimensional uniform turning model; specifically, the state vector is assumed to be Where (x,y) is the horizontal displacement vector, and is the velocity vector; the turning angular velocity ω = Δθ / τ, where τ is the sampling period of LiDAR; based on the horizontal geometric center state of the road sign at time k-1, the geometric center state of the road sign at time k is predicted; the prediction equation is x k =Fx k-1 +Γw k-1 , where x k is the predicted state at time k, x k-1 is the state at time k-1, and F represents the state transfer matrix Γ is the noise matrix w k-1 represents process noise, and is Gaussian white noise with a mean of 0; the covariance matrix Q of the process noise; S3-2: Using preliminary estimates The geometric center of the landmark at time k is transformed into the world coordinate system, which is used as the measured value of the geometric center of the landmark; the measurement equation is defined as follows: k =Hx k +ν k , where z k =[z x,k ,z y,k ] T is the observed value at time k, ν k =[ν x,k ,ν y,k ] T represents the measurement noise, which is also a Gaussian white noise distribution with a mean of 0, and its variance matrix is R, H represents the observation matrix, S3-3: Use Kalman filter to update the position and speed of the landmark; specifically include: establishing an independent Kalman filter for each unknown motion state landmark for estimation; estimating the posterior state based on time k-1 according to Predict the prior state estimate at the current time k The error covariance matrix P based on k-1 time k-1|k-1 , according to P k|k-1 =FP k-1|k-1 F T +Q, predict the prior error covariance matrix P at the current time k k|k-1 ; Then, according to Estimate the posterior state Update, where K k is the Kalman gain at time k, K k =P k|k-1 H T (HP k|k-1 H T +R) -1 ; S3-4: Determine whether the road sign is a semi-static road sign; the judgment conditions are as follows: 1) The speed and position change of the road sign is less than the set threshold ||v obj || and ||d obj ||; 2) The semantics of the road signs at the two moments before and after are consistent. The unknown motion state road signs that meet the above conditions are semi-static road signs; S3-5: Determine whether the road sign is a dynamic road sign; the determination conditions are as follows: 1) The speed or position change of the road sign is not less than the set threshold value ||v obj || and ||d obj ||; 2) The semantics of the landmarks at two moments are consistent; the unknown motion state landmark that meets the above conditions is a dynamic landmark.
5. The semantic-based laser SLAM method in dynamic scenes according to claim 1, Features: The S4 includes: S4-1: Divide the pose estimation into two parts: 1) horizontal pose estimation and 2) vertical pose estimation. S4-2: For the estimation of the horizontal pose change, firstly, the pure static landmarks and semi-static landmarks at time k are used to perform preliminary pairing with the landmarks existing in the historical local map to form landmark pairs; then, the paired landmark pairs are layered into upper and lower layers; then, convex hull features are established for the landmarks in the upper and lower layers respectively; then, the convex hull feature pairs with the most similar shapes and sizes are evaluated and selected from the convex hull features of the upper and lower layers; finally, the optimized particle swarm algorithm is used to solve the horizontal pose change that maximizes the sum of the overlapping areas of the convex hull feature pairs. S4-3: For the estimation of the vertical pose change, the ground point cloud within a certain neighborhood of the laser LiDAR origin is selected, and the forward-looking ground point cloud and the rear-looking ground point cloud are plane-fitted respectively; the pitch angle change of the unmanned driving platform is determined by comparing the angle change between the normal vectors of the planes in the two frames before and after; the change in the vertical direction is solved by combining the horizontal pose change and the pitch angle change, and the roll change is assigned to 0 to obtain the estimated vertical pose. S4-4: Combination and The six-degree-of-freedom pose change is obtained by matching the point clouds of the previous and next two frames; S4-5: Through transformation integration, the position and posture of the unmanned driving platform in the global coordinate system are obtained.
6. The semantic-based laser SLAM method in dynamic scenes according to claim 1, Features: The S5 includes: S5-1: Extract LinK3D features from purely static road signs and ground point clouds, and create word bags based on the extracted LinK3D features; S5-2: Use BoW3D to detect loops; during loop detection, only LinK3D features with the same semantic information are used to solve loop constraints; S5-3: When a loop is detected, a graph optimization method is used to perform loop correction to update the pose and update the global map.
7. The semantic-based laser SLAM method in dynamic scenes according to claim 1, Features: The S6 includes: S6-1: For purely static road signs and ground point clouds, according to the calculated pose in the global coordinate system, the point clouds are converted to the world coordinate system to obtain a global static semantic map, and then the global static semantic map is voxelized.
