ROS unmanned vehicle mapping navigation method in unstructured environment
By combining the fast direct lidar inertial odometry method, non-histogram descriptor algorithm and Bayes tree optimization technology on ROS unmanned vehicles, the problems of mapping errors and navigation inaccuracies in unstructured environments are solved and achieved. Efficient and reliable navigation capabilities.
Patent Information
- Application Number
- CN202410841694.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-13
AI Technical Summary
In unstructured environments, the mapping algorithm of ROS unmanned vehicles has problems such as height errors, point cloud drift, and map inaccuracies, making it impossible to perform effective positioning and navigation.
The fast direct lidar inertial odometry method is used to output odometry pose and key frame information, combined with the non-histogram global descriptor algorithm and the laser odometry and map construction algorithm, and Bayesian trees and convolutional neural networks are used to optimize the global map. , construct a static point cloud image through a 3D adaptive Monte Carlo algorithm and multi-resolution range images, and perform dynamic trajectory filtering and obstacle prediction control.
It solves the problems of point cloud drift, height error and Z-axis failure to align, achieves efficient, reliable and accurate navigation in unstructured environments, and overcomes the shortcomings of low-dimensional navigation and general algorithms.
Smart Images

Figure CN118640910A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of ROS unmanned vehicle planning and navigation, and in particular to a ROS unmanned vehicle mapping and navigation method in an unstructured environment. Background Art
[0002] As a revolutionary innovation, autonomous driving technology has gradually shifted from theoretical research to practical application with the continuous advancement of technology. In recent years, the rapid development of fields such as artificial intelligence, deep learning, and machine learning has brought major breakthroughs in autonomous driving technology, enabling cars to more accurately perceive the surrounding environment, make intelligent decisions, and achieve efficient vehicle control. In unstructured environments, the development of autonomous driving technology faces more challenges and opportunities. Such environments include complex urban roads, pedestrian crossings, traffic lights, construction sites, mountains, and other unstructured environments. The current mapping algorithm, when applied to ROS unmanned vehicles, will have problems such as height error, point cloud drift, and inaccurate maps, making it impossible to perform subsequent positioning and navigation tasks. In response to these challenges, it is urgent to propose a more effective mapping and navigation method for ROS unmanned vehicles in unstructured environments. Summary of the invention
[0003] The purpose of the present invention is to solve the technical problems existing in the prior art and to provide a ROS unmanned vehicle mapping and navigation method in an unstructured environment.
[0004] In order to achieve the above object, the technical solution provided by the present invention is: a ROS unmanned vehicle mapping and navigation method in an unstructured environment, the method comprising the following steps:
[0005] Step (1): Use the fast direct lidar inertial odometry method to output the odometry pose and keyframe information for the unstructured environment, then call the non-histogram global descriptor algorithm as a loop detector, and then use the laser odometry and map construction algorithm to output a preliminary global 3D map.
[0006] Step (2): First, use the Bayesian tree-based incremental smoothing and mapping solver to optimize the global map factor graph, extract feature points, and perform feature matching; then, use the convolutional neural network-based pose graph optimization scheme to perform absolute camera pose regression using multiple rotational averages to achieve global pose graph optimization; finally, use a multi-resolution range image to construct a static point cloud map algorithm to filter dynamic trajectories from the optimized prior map.
[0007] Step (3): Use the 3D adaptive Monte Carlo algorithm to readjust the positioning error by measuring the distance of the initialized fixed beacon, thereby detecting and correcting the accumulated error of the mileage measurement and realizing position estimation; then, obtain the sparse path through the plane fitting search tree method, and then interpolate the sparse path through Gaussian process regression to obtain a feasible global path.
[0008] Step (4): First, the obstacles around the unmanned vehicle are parameterized and their future trajectories are predicted by combining the spatial clustering algorithm based on hierarchical density and the unscented Kalman filter. Then, the improved adaptive dynamic control obstacle function model predictive control algorithm is used to follow the above global path and avoid obstacles until the target point is reached.
[0009] Furthermore, the specific steps of step (1) are: calling the environmental data transmitted by the lidar, camera, inertial navigation, and wheel odometer, using a tightly coupled iterative extended Kalman filter to fuse the lidar feature points with the inertial navigation data and output the odometer posture and key frame information.
[0010] Step 2.1 The global descriptor algorithm for non-histogram is as follows:
[0011] The non-histogram global descriptor algorithm converts 3D point clouds into 2.5D by reducing the dimension, and uses a search algorithm to match the point cloud data of the current frame and the historical frame to achieve loop detection; for a frame of point cloud data scanned by a lidar, a top view is obtained from the top of the 3D point cloud, and a polar coordinate system is established with the lidar position as the origin. 20 rings are divided outward from the origin, and each ring is divided into 60 equal parts, that is, 1200 grids, and the maximum height (Z value) of the midpoint of each grid is used as the grid value. The top view is then radially expanded into a rectangular image with 20 rows and 60 columns, and the average values of each row and column are calculated respectively to obtain the ring-bond matrix and the sector matrix as global descriptors. The point cloud data of a single scan is used to construct a rectangular image scanning context, and a binary tree is constructed using the ring-bond vector to perform a neighbor search to find multiple similar frames that are looped with the current frame and their ring-bond translation values. The similarity scores are calculated and similar frames with high scores are screened out. Then, the minimum offset and similarity score are calculated sector by sector, and the frame with the highest similarity score is selected as the loopback frame. The posture relationship between the current frame and the loopback frame is solved to achieve loop detection.
[0012] Step 2.2 The laser odometer and map construction algorithm is as follows:
[0013] During each scan, the points received in the laser scan are recorded in a sequence; the point clouds in the following scans are combined to form point cloud clusters; then, the point cloud clusters are processed by two algorithms; the lidar ranging algorithm extracts the point cloud and calculates the movement of the lidar between uninterrupted scans; the estimated movement is used to correct the distortion in the point cloud cluster, and the algorithm estimates the movement of the lidar under the condition of 10 hertz execution; then, the lidar mapping algorithm processes the output and runs at a frequency of 1 hertz to obtain a precisely matched and calibrated point cloud; finally, combining the above two algorithms can achieve real-time mapping, outputting the attitude of the lidar relative to the real-time 3D map.
[0014] The three-dimensional mapping method of the present invention uses a fast direct laser radar inertial odometer as a front-end odometer method, uses a non-histogram global descriptor algorithm as a loop detector, is integrated into the laser odometer and map construction algorithm, and serves as a back-end detection to ultimately output a preliminary three-dimensional point cloud map; its back-end detection receives odometer posture and key frame data sent by the fast direct laser radar inertial odometer, performs trajectory optimization in the back-end detection, and transmits the data back to the fast direct laser radar inertial odometer to affect the odometer output, thereby continuously reducing the point cloud posture cumulative error and eliminating the point cloud map drift, height error, and Z-axis error.
[0015] Furthermore, the specific steps of step (2) are as follows: using a Bayesian tree-based incremental smoothing and mapping solver to optimize the global map factor graph, using a Bayesian tree to process sparse matrices, and converting them into factor graphs to better solve square root information and mapping problems, using a convolutional neural network-based posture graph optimization scheme, and using multiple rotational averages to perform absolute camera posture regression, thereby achieving global posture graph optimization and establishing a global map; calling a new algorithm for constructing a static point cloud map, called a multi-resolution range image static point cloud map algorithm, which proposes a method for reducing error prediction based on multi-resolution ranging images; conservatively retaining the determined static point cloud, and then iteratively recovering more uncertain static points by expanding the query graph related window size, thereby implicitly compensating for the motion or alignment error of the lidar and performing dynamic trajectory filtering on the PCD point cloud.
[0016] Furthermore, the specific steps of step (3) are as follows: calling the 3D adaptive Monte Carlo algorithm to act on the constructed three-dimensional point cloud map; the algorithm can first perform reliable short-term position estimation based on the laser radar mileage measurement, and at the same time, due to the integration of map matching and ranging measurement, its drift is kept within a certain range; then the mileage measurement prior is used to filter the noise and outliers existing in the laser ranging; finally, when the point cloud and the map do not match well, the 3D adaptive Monte Carlo algorithm will use the mileage measurement to update the movement and ranging of the particles to maintain the low discreteness of the particle position; the algorithm provides reliable position and yaw angle positioning; in addition, the algorithm is very efficient and suitable for real-time operation on the ROS unmanned vehicle to perform online autonomous positioning; then calling the plane fitting search tree algorithm to evaluate the terrain of the unstructured environment, calculate the traversability of the terrain, and then generate a traversable sparse path, and then interpolate the sparse path by Gaussian process regression to finally obtain a feasible dense global path.
[0017] Furthermore, the specific steps of step (4) are: first, use a hierarchical density-based spatial clustering algorithm to parameterize the obstacles around the unmanned vehicle, then call the unscented Kalman filter to predict its future trajectory, and finally use an adaptive dynamic control obstacle function model predictive control algorithm to follow the above global path and avoid obstacles until reaching the target point.
[0018] Compared with the prior art, the present invention has the following beneficial effects:
[0019] The 3D mapping method of the present invention can solve the problems of inaccurate mapping such as point cloud drift, height error, and Z-axis misalignment in mapping unstructured environments. The algorithm for constructing a static point cloud map using multi-resolution range images can accurately identify and remove the point cloud trajectories left by dynamic obstacles in the prior map. The 3D adaptive Monte Carlo algorithm can efficiently realize the real-time positioning of the ROS unmanned vehicle, so that the ROS unmanned vehicle can navigate efficiently, reliably and accurately in unstructured environments. Moreover, the global framework is established in a three-dimensional environment, overcoming the shortcomings of low-dimensional navigation and general algorithms for mapping and navigation in unstructured environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention.
[0021] Figure 1 It is the system framework of the present invention;
[0022] Figure 2 It is a block diagram of the three-dimensional mapping algorithm of the present invention;
[0023] Figure 3 It is a back-end detection block diagram of the present invention;
[0024] Figure 4 Comparison diagram of improved mapping methods in embodiments of the present invention;
[0025] Figure 5 Schematic diagram of measurement model in an embodiment of the present invention
[0026] Figure 6 Static point cloud image of the improved mapping method in the embodiment of the present invention
[0027] Figure 7 Static point cloud image after dynamic trajectory filtering in the embodiment of the present invention
[0028] Figure 8 3D adaptive Monte Carlo algorithm autonomous positioning diagram in the embodiment of the present invention
[0029] Fig. 9 Global path planning diagram of plane fitting search tree algorithm in an embodiment of the present invention
[0030] Fig.10 System framework experimental diagram in the embodiment of the present invention DETAILED DESCRIPTION
[0031] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, this section will further describe the present invention in detail in conjunction with examples and drawings. The schematic implementation modes of the present invention and their descriptions are only used to explain the present invention and are not intended to limit the present invention.
[0032] The system framework of the present invention is as follows Figure 1 As shown in the figure, the environmental data received by the laser radar, inertial navigation, camera and wheel odometer are used to build a 3D map using the improved 3D mapping algorithm. Figure 2 As shown, the unstructured environment is mapped three-dimensionally and output as a priori map.
[0033] Specifically, fast direct lidar inertial odometer is used to map unstructured environments, a preliminary three-dimensional point cloud prior map is constructed, and a tightly coupled iterative extended Kalman filter is used to fuse lidar feature points with inertial navigation data to output a preliminary point cloud map and establish a measurement model.
[0034] The measurement model in the present invention is defined as follows:
[0035] Define k to be the index of the lidar scan, { L p j , j = 1, ..., m} are points in the kth scan, which are sampled in the local lidar coordinate frame L at the end of the scan. Due to the lidar measurement noise, each measurement point L P j Typically subject to noise consisting of ranging noise and beam steering noise L nj After removing these noises, the local LiDAR coordinate frame can be obtained. L p gt j The actual point position in :
[0036] L p gt j = L p j + L n j
[0037] Use the corresponding LiDAR pose G T Ik =( G R Ik , G p Ik ) and external reference I T L After being projected into the global frame, the true point should lie exactly on the local facet patch on the map. Figure 3 As shown, G u j is the normal vector of the corresponding plane, G q j is a point on the plane. It should be noted that G T Ik and I T Lk are all contained in the state vector X k Therefore, the measurement result contributed by the j-th point measurement is L P j In the following form:
[0038] 0= G u T j ( G T Ik I T Lk ( L P j + L n j )- G q j )
[0039] Then, an iterative Kalman filter is used. The specific implementation is divided into two steps: forward propagation after the inertial navigation measurement value arrives and real-time iterative update during the lidar scanning. Then, the map points are organized into a binary tree, which merges the newly scanned point cloud at the rate of mileage measurement to achieve dynamic growth of the point cloud map. To ensure that the map size is controllable, only map points in a local area of a certain length around the current position of the lidar are retained on the binary tree. Then, the point cloud map is incrementally updated: point-by-point insertion is performed using tree-based heuristic merging and downsampling; box-by-box deletion is performed using lazy labels; attribute update functions are used to perform attribute update operations; and, the relevant tree is rebuilt through the binary tree to dynamically rebalance itself; then, the backend detection algorithm such as Figure 4 As shown, the preliminary prior map is optimized. Using a non-histogram global descriptor algorithm, the 3D point cloud is converted to 2.5D by dimensionality reduction, and the point cloud data of the current frame and the historical frame are matched to achieve loop detection. The global map factor graph is optimized using incremental smoothing and mapping based on the Bayesian tree. The sparse matrix is processed using the Bayesian tree and then converted into a factor graph, which can better solve the square root information and mapping problems, extract feature points, and match feature points. Using a posture graph optimization solution based on a convolutional neural network, the absolute camera posture regression is performed using multiple rotation averages to achieve global posture graph optimization, and the preliminary processed prior global map is output. The mapping effect of the improved algorithm is shown in the figure below. Figure 5 As shown;
[0040] Then, the algorithm for constructing a static point cloud map using multi-resolution range images is called to detect the dynamic point cloud trajectories (bright yellow) left by dynamic objects such as moving vehicles and people on the global point cloud map, and the static point cloud map (red) constructed by stationary objects. Figure 6 As shown. Call the removal module in the dynamic trajectory filtering algorithm, and use each scanning group in turn to determine which is the dynamic point in the sub-map composed of the remaining scanning points. After taking turns, each point may be marked multiple times. Voting on the multiple marking results is used to determine whether the point is a dynamic point or a static point, and the dynamic points are filtered out. Finally, the static prior map after dynamic trajectory filtering is obtained, as shown in Figure 7 As shown;
[0041] Then, the 3D adaptive Monte Carlo algorithm places random particles, matches the real-time point cloud of the LiDAR with the saved point cloud, discards particles with unmatched states, and finally strengthens particles with correct states to obtain the real state of the unmanned vehicle and realize position estimation, such as Figure 8 shown.
[0042] The estimated position is then used as the reference position of the unmanned vehicle in the plane fitting search tree algorithm. The target point of the unmanned vehicle is given on the point cloud prior map, and global path planning is performed to obtain the reference path for the unmanned vehicle to reach the target point, such as Fig. 9shown.
[0043] In addition, the improved hierarchical density-based spatial clustering algorithm and unscented Kalman filter are used to parameterize the obstacles around the unmanned vehicle and predict its future trajectory, which is then passed to the adaptive dynamic control obstacle function model predictive control local planning algorithm for obstacle avoidance. At the same time, the reference path of the global path planning is obtained in real time for following until it finally reaches the target point safely.
[0044] During the entire process, the local planning algorithm will pass the calculated unmanned vehicle control quantity to the execution unit through the system controller to complete the navigation and obstacle avoidance behavior of the unmanned vehicle.
[0045] Conduct real-world navigation tests in an outdoor non-structured environment with uneven terrain in the woods. Fig.10 As shown in the figure, pedestrians with random states are arranged to repeatedly block the forward route of the unmanned vehicle, and the local perception range of the unmanned vehicle is set to 8*8m, and the map resolution is 0.1m. The prediction step length of the unscented Kalman filter for obstacles is 30, and the step length of the adaptive dynamic control obstacle function model predictive control local planning algorithm for the rolling optimization of the unmanned vehicle is 30, the body radius is 0.3m, and the safety distance is 0.2m. Fig.10 It can be clearly seen that the green solid line represents the local obstacle avoidance tracking path generated by the adaptive dynamic control obstacle function model predictive control local planning algorithm, the blue solid line represents the global reference trajectory generated by the plane fitting search tree algorithm, the green cylinder represents the current position of the obstacle, and the blue cylinder represents the prediction of the obstacle position. Since the obstacle's motion trajectory is accurately predicted and the constraints of the adaptive control barrier function are adopted, the unmanned vehicle can avoid the obstacle in the opposite direction of its motion, and the cost of the optimization solution is greatly reduced. This not only enhances the safety of navigation, but also provides a smoother and faster driving trajectory. It can be seen that this method can effectively complete the perception and construction of the surrounding environment, and can adapt to the situation of terrain obstacles in non-structured environments.
[0046] The 3D mapping algorithm in the present invention can solve the inaccurate mapping problems such as point cloud drift, height error, and Z-axis misalignment in unstructured environment mapping. The static point cloud map algorithm constructed by multi-resolution range images can accurately identify and remove the point cloud tracks left by dynamic obstacles in the map. The 3D adaptive Monte Carlo algorithm can efficiently realize the real-time positioning of the ROS unmanned vehicle, so that the ROS unmanned vehicle can navigate efficiently, reliably and accurately in unstructured environments.
[0047] The whole process of the system in the present invention, from mapping, positioning, planning, to the final control, is completed based on three-dimensional spatial information. Therefore, it overcomes the shortcomings of low-dimensional navigation and general algorithms for mapping and navigation in unstructured environments, and is more suitable for autonomous navigation in unstructured environments.
[0048] Under the premise that no conflict occurs, those skilled in the art may freely combine and superimpose the above-mentioned additional technical features.
[0049] The above description is only a preferred implementation mode of the present invention. Any technical solution that achieves the purpose of the present invention by substantially the same means belongs to the protection scope of the present invention.
Claims
1. A ROS unmanned vehicle mapping and navigation method in an unstructured environment, characterized in that: The following steps are involved: Step (1): Use the fast direct lidar inertial odometry method to output the odometry pose and keyframe information for unstructured environments, then call the non-histogram global descriptor algorithm as a loop detector, and then use the laser odometry and map construction algorithm to output a preliminary global 3D map; Step (2): First, the global map factor graph is optimized using an incremental smoothing and mapping solver based on a Bayesian tree, feature points are extracted, and feature matching is performed; then, a posture graph optimization scheme based on a convolutional neural network is used to perform absolute camera posture regression using multiple rotational averages to achieve global posture graph optimization; finally, a static point cloud algorithm is used to construct a multi-resolution range image to filter dynamic trajectories from the optimized prior map; Step (3): Use the 3D adaptive Monte Carlo algorithm to readjust the positioning error by measuring the distance of the initialized fixed beacon, so as to detect and correct the accumulated error of the mileage measurement and realize the position estimation; then, obtain the sparse path through the plane fitting search tree method, and then interpolate the sparse path through the Gaussian process regression to obtain a feasible global path; Step (4): First, the obstacles around the unmanned vehicle are parameterized and their future trajectories are predicted by combining the spatial clustering algorithm based on hierarchical density and the unscented Kalman filter. Then, the improved adaptive dynamic control obstacle function model predictive control algorithm is used to follow the above global path and avoid obstacles until the target point is reached.
2. The ROS unmanned vehicle mapping and navigation method in an unstructured environment according to claim 1 is characterized in that: The implementation method of step (1) is as follows: calling the environmental data transmitted by the laser radar, camera, inertial navigation, and wheel odometer carried by the ROS unmanned vehicle, using the fast direct laser radar inertial odometer to perform three-dimensional point cloud mapping on the unstructured environment, using the tightly coupled iterative extended Kalman filter to fuse the laser radar feature points with the inertial navigation data, and outputting the odometer pose and key frame information; Step 2.1 The global descriptor algorithm for non-histogram is as follows: The non-histogram global descriptor algorithm converts 3D point cloud into 2.5D by reducing dimension, and uses a search algorithm to match the point cloud data of the current frame and the historical frame to achieve loop detection; for a frame of point cloud data scanned by a lidar, a bird's-eye view is obtained from the top of the 3D point cloud, and a polar coordinate system is established with the lidar position as the origin; 20 circular rings are divided outward from the origin, and each circular ring is divided into 60 equally divided parts, that is, 1200 grids, and the maximum height Z value of the midpoint of each grid is used as the grid value; Then the top view is radially expanded into a rectangular image with 20 rows and 60 columns, and the average values of each row and column are calculated respectively to obtain the ring-key matrix and the sector matrix as global descriptors; the rectangular image scanning context is constructed using the point cloud data of a single scan, and a binary tree is constructed using the ring-key vector to perform a neighbor search to find multiple similar frames that are looped with the current frame and their ring-key translation values, calculate the similarity score, and filter out similar frames with high scores; then, the minimum offset and similarity score are calculated sector by sector, and the frame with the highest similarity score is selected as the loopback frame, and the posture relationship between the current frame and the loopback frame is solved to achieve loop detection; Step 2.2 The laser odometer and map construction algorithm is as follows: During each scan, the points received in the laser scan are recorded in a sequence; the point clouds in the next scan are combined to form point cloud clusters; then, the point cloud clusters are processed by two algorithms; the lidar ranging algorithm extracts the point cloud and calculates the motion of the lidar between uninterrupted scans; the estimated motion is used to correct the distortion in the point cloud cluster, and the algorithm estimates the motion of the lidar under the condition of 10 hertz execution; then, the lidar mapping algorithm processes the output and runs at a frequency of 1 hertz to obtain a precisely matched and calibrated point cloud; finally, combining the above two algorithms can achieve real-time mapping, outputting the attitude of the lidar relative to the real-time 3D map; A non-histogram global descriptor algorithm is used as a loop detector and integrated into the laser odometer and map construction algorithm as backend detection, which ultimately outputs a preliminary three-dimensional point cloud map.
3. The ROS unmanned vehicle mapping and navigation method in an unstructured environment according to claim 1 is characterized in that: The implementation method of step (2) is as follows: using incremental smoothing and mapping based on a Bayesian tree to solve and optimize the global map factor graph, using the Bayesian tree to process the sparse matrix and then convert it into a factor graph, the square root information and mapping problem can be solved to extract feature points; using a posture graph optimization solution based on a convolutional neural network, using multiple rotational averages to perform absolute camera posture regression, thereby achieving global posture graph optimization.
4. The ROS unmanned vehicle mapping and navigation method in an unstructured environment according to claim 1, characterized in that: The implementation method of step (3) is as follows: using a 3D adaptive Monte Carlo algorithm, the mileage measurement system combines point cloud, attitude estimation and key frames in a loosely coupled filter so as to estimate a reliable and accurate positioning in a short period of time, and uses the ranging of the initialized fixed beacon to readjust the positioning error, thereby detecting and correcting the accumulated error of the mileage measurement to achieve position estimation; then calling the plane fitting search tree algorithm to perform terrain evaluation on the unstructured environment, calculate the traversability of the terrain, generate a traversable sparse path, and then interpolate the sparse path by Gaussian process regression to obtain a feasible global path.
5. The ROS unmanned vehicle mapping and navigation method in an unstructured environment according to claim 1, characterized in that: The implementation method of step (4) is as follows: first, a spatial clustering algorithm based on hierarchical density is used to parameterize and display the obstacles around the unmanned vehicle, then an unscented Kalman filter is called to predict its future trajectory, and finally an improved adaptive dynamic control obstacle function model predictive control algorithm is used to follow the above global path and avoid obstacles until the target point is reached.
Citation Information
Cited By
Mobile robot for autonomously mapping in unknown closed space and working method
CN119247957A
Unmanned fire extinguishing robot navigation method and device based on 4D millimeter wave radar
CN119354205A
Aircraft single-beam laser unknown environment mapping method
CN119414359A
Point cloud data processing method, device and equipment, and readable storage medium
CN119936906A
Autonomous positioning method, readable storage medium and navigation equipment
CN120947659A
