Method for identifying and representing slope terrain of lunar surface patroller
By combining the RANSAC and FPS algorithms, combined with the segmentation algorithm based on region growing, the problem of small coverage area and high computational complexity of the lunar surface patrol when identifying slope terrain is solved, and fast and accurate slope segmentation and slope identification are achieved.
Patent Information
- Application Number
- CN202411071948.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-09-24
AI Technical Summary
Existing lunar surface patrols have the problems of small coverage area and weak ductility when identifying slope terrain, and the calculation complexity is high, making it difficult to achieve accurate and real-time slope segmentation and slope identification.
The classic RANSAC algorithm and the FPS algorithm are combined to form the FPS-RANSAC ground plane segmentation algorithm, and combined with the slope segmentation algorithm based on region growing, the ground plane and slope point clouds are extracted through point cloud filtering, voxelization downsampling and statistical filtering. Calculate the angle between the ground level and the slope equation to identify the slope.
It realizes the whole process of slope segmentation and slope identification, has the advantages of fast calculation speed and high accuracy, accurately identifies multiple slope surfaces, and overcomes the shortcomings of existing algorithms.
Smart Images

Figure CN118692045A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of target detection, and in particular relates to a method for identifying and characterizing slope terrain of a lunar rover. Background Art
[0002] The lunar surface has a complex terrain, with flat land, continuous slopes, and craters everywhere. It has the characteristics of strong lighting, weak texture, and unstructured, which easily leads to scene perception problems. At the same time, there is a time delay in communication between the earth and the moon, and it is difficult for the ground measurement and control station to accurately and real-time control the lunar surface patrol. Therefore, the lunar surface patrol needs to have autonomous navigation and obstacle avoidance capabilities. In view of the environmental characteristics of the lunar surface, lidar or depth camera is generally used as a device for sensing the surrounding environment to obtain three-dimensional point cloud data, and the three-dimensional model of the slope is extracted from the acquired point cloud data.
[0003] According to the different underlying principles of the algorithm, the point cloud segmentation algorithm is divided into the following four categories: edge-based segmentation algorithm, model fitting-based segmentation algorithm, region growing-based segmentation algorithm and deep learning-based segmentation algorithm. The edge-based segmentation algorithm has the advantages of objects with clear boundaries and surface features, but has poor adaptability; the segmentation algorithm based on model fitting has strong robustness, but due to its random point selection, it has the disadvantages of small coverage area and weak ductility of the selected points; the point cloud segmentation algorithm based on region growing is a data-driven point cloud clustering method with better segmentation effect, but higher computational complexity; the disadvantage of the segmentation algorithm based on deep learning is also that the calculation is large and time-consuming. Summary of the invention
[0004] In order to overcome the shortcomings of the prior art, the present invention provides a method for identifying and characterizing the slope terrain of a lunar rover. First, the point cloud is filtered and denoised, and voxelized and downsampled. Then, the classic RANSAC algorithm is combined with the FPS algorithm to form an FPS-RANSAC ground plane segmentation algorithm. Finally, the FPS-RANSAC algorithm is combined with a slope segmentation algorithm based on regional growth to obtain the angle between the ground plane equation and the slope surface equation. The angle is the slope of the slope. The present invention realizes the entire process of slope segmentation and slope identification, and has the advantage of fast calculation speed.
[0005] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0006] Step 1: Point cloud segmentation and denoising;
[0007] Use LiDAR to collect terrain 3D point cloud and build KD tree for the point cloud;
[0008] Calculate the variance of the n-dimensional features of the m point clouds respectively, use the k-th dimension feature with the largest variance as the root node, and iterate continuously on this basis until all point clouds are divided;
[0009] The statistical filtering method is used to remove the laser radar data noise from the divided point cloud;
[0010] Step 2: Use FPS-RANSAC algorithm to extract the ground plane of laser point cloud;
[0011] The point cloud obtained in step 1 is processed by first downsampling the point cloud, and then the FPS-RANSAC algorithm is used to extract the ground plane of the point cloud;
[0012] Step 2-1: Let t be the total number of points in the point cloud, dis be the distance, and the calculation formula is shown in formula (1); randomly select a point A1 in the point cloud, whose coordinates are (x1, y1, z1), calculate the distance dis between the other t-1 points in the point cloud and point A1, sort the distance set {dis} from large to small, and select the seed point A2 with the largest distance value, whose coordinates are (x2, y2, z2);
[0013] (1)
[0014] Step 2-2: Set point B i is any point in the remaining t-2 point clouds, and point B is calculated according to formula (1) i The distances from point A1 and point A2 give two distance values;
[0015] Step 2-3: Define Point B i The value d with the smaller distance to point A1 and point A2 i As point B i The distance values to the two point clouds are calculated for all the remaining t-2 points to obtain a distance value set: {d1, d2, …, d t-2}, select the maximum distance value d i , and its corresponding point B i It is the initial seed point A3, whose coordinates are (x3, y3, z3); A1, A2, A3 are the initial three points;
[0016] Step 2-4: Assume that the equation of the plane normal vector is as shown in equation (2):
[0017] (2)
[0018] Where (a, b, c) is the unit normal vector of the plane, satisfying the constraint condition a 2 + b 2 + c 2 = 1, d is the distance from the origin to the plane, and the parameters a, b, c, d are the plane parameters of the fitting; calculate the corresponding plane equation according to the three points A1, A2, and A3 obtained in step 2-3;
[0019] For the three selected points A1(x1, y1, z1), A2(x2, y2, z2), and A3(x3, y3, z3), calculate the vector and the vector , and use the cross product of the vectors to obtain the normal vector perpendicular to the plane formed by the three point clouds. The calculation formula is shown in Equations (3) and (4):
[0020] (3)
[0021] where , , represent the unit vectors in the positive directions of the x-axis, y-axis, and z-axis respectively;
[0022] (4)
[0023] Obtain the plane equation parameters a, b, and c;
[0024] Step 2-5: Calculate the algebraic distance distance i of all points (x i , y i ) in the point cloud to this plane i = |ax i + by i + cz i + d|, where 0 < i <= t and i is an integer; set the distance threshold r, and determine whether the point is an inlier or an outlier of the fitted plane according to the set distance threshold r. If distance i is less than or equal to r, then the point is an inlier; if distance i is greater than r, then the point is an outlier; record the number of current inliers.
[0025] Step 2-6: Set the number of iterations, repeat Steps 2-1 to 2-5, and select an optimal fitting parameter, that is, the parameter of the fitted plane with the largest number of inliers; after the iteration ends, output the parameters of the optimal fitted plane, and this plane is the ground plane point cloud in the point cloud;
[0026] Step 3: Use the slope segmentation algorithm based on region growing to separate the slope point cloud;
[0027] Step 3-1: Remove the ground plane point cloud from the point cloud, calculate the curvature values of all points in the remaining point cloud, sort all points from smallest to largest according to the curvature values, and put them into a preparatory array;
[0028] Step 3-2: Initialize:
[0029] Set an empty seed point sequence and an empty cluster array; select the point with the smallest curvature value and put it into the seed point sequence, and remove the point from the prepared array.
[0030] Step 3-3: Set the angle threshold r1;
[0031] Take a seed point from the seed point sequence and calculate the normal vector of the seed point; search for the neighborhood points of the seed point, and then calculate the angle between the normal line of each neighborhood point and the normal line of the current seed point; if the angle is less than the angle threshold r1, add the point to the clustering array and remove the point from the prepared array;
[0032] Step 3-4: Set the curvature threshold s;
[0033] Calculate the curvature values of all the neighborhood points that meet the requirement of finding the angle less than the angle threshold r1 in step 3-3; if the curvature value of the neighborhood point is less than the set curvature threshold s, then put the neighborhood point into the seed point sequence;
[0034] Step 3-5: Remove the currently used seed point from the seed point sequence, and repeat steps 3-3 to 3-4 until the seed point sequence is empty;
[0035] Step 3-6: Take the point with the smallest curvature value among the remaining points in the prepared array as the new seed point, repeat steps 3-2 to 3-5 until all points in the point cloud are traversed, and output the number of cluster arrays q, where q is the number of segmented slopes. The points contained in each cluster array are the slope point clouds under the same slope;
[0036] Step 4: Combine the FPS-RANSAC algorithm and the slope segmentation algorithm based on region growing to calculate the slope gradient:
[0037] The ground plane point cloud is obtained through step 2, and the slope point cloud is obtained through step 3. Since the slope terrain on the lunar surface is less than 90°, in order to calculate the slope, it is necessary to solve the angle between the ground plane and the slope surface. The plane equation of the ground plane point extracted by the FPS-RANSAC algorithm is directly obtained. The slope point cloud separated by the slope segmentation algorithm based on region growing is subjected to SVD decomposition to calculate the slope surface equation. The angle between the ground plane equation and the slope surface equation is obtained, and the angle is the slope of the slope.
[0038] Preferably, the downsampling uses an octree-based point cloud voxelization downsampling algorithm;
[0039] Step 5-1: First, establish the voxel space and determine the maximum depth of the bounding box and the octree. The maximum depth is set as the voxelization termination condition; let x max , y max , z maxis the maximum value of the point cloud in the x, y, and z axes in the coordinate system. min , y min , z min ) is the minimum value of the point cloud in the x, y, and z axes in the coordinate system, len x , len y , len z is the side length of the voxel in the x, y, z directions, then , , ;
[0040] Step 5-2: Then use the formula Determine the root node coordinates;
[0041] Step 5-3: Finally, establish a new coordinate system with the root coordinate as the origin;
[0042] Repeat steps 5-1 to 5-3 until convergence.
[0043] Preferably, the curvature value is calculated as follows:
[0044] Assume that p is a point in the point cloud and search for its k nearest neighboring points. , the covariance matrix M of point p is shown in formula (5).
[0045] (5)
[0046] in, represents the centroid of the neighborhood point set of p;
[0047] Perform eigenvalue decomposition on the covariance matrix M in the formula to obtain the eigenvalues of M ; The goal of eigenvalue decomposition is to find a set of eigenvalues and the corresponding eigenvector , so that the covariance matrix M satisfies formula (6):
[0048] (6)
[0049] Then, the eigenvalue is solved according to formula (7): , where det represents the determinant, I is the unit matrix, and the calculated eigenvalues are recorded as λ0, λ1, and λ2, and satisfy λ0≤ λ1≤ λ2;
[0050] (7)
[0051] Then the surface curvature of point p is δ, which is calculated as shown in formula (8).
[0052] (8)
[0053] The smaller δ is, the flatter the neighborhood is, and the larger δ is, the greater the fluctuation of the neighborhood is.
[0054] The beneficial effects of the present invention are as follows:
[0055] 1. The present invention solves the shortcomings of existing algorithms, such as small coverage area and weak scalability.
[0056] 2. The present invention combines the newly proposed slope recognition algorithm with the slope segmentation algorithm, which can accurately identify multiple slope surfaces with high precision.
[0057] 3. The present invention realizes the whole process of slope segmentation and slope recognition, and has the advantage of fast calculation speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 The present invention is a flow chart of establishing a KD tree.
[0059] Figure 2 This is a schematic diagram of seed point selection using the classic RANSAC algorithm.
[0060] Figure 3 It is a flow chart of the slope segmentation algorithm based on region growing of the present invention.
[0061] Figure 4 It is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0062] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0063] The main innovative features of the present invention are:
[0064] 1. LiDAR point cloud filtering and denoising processing method.
[0065] 2. Combine the classic RANSAC algorithm with the FPS algorithm to solve the shortcomings of the RANSAC algorithm in slope recognition, such as small coverage area and weak scalability of randomly selected points.
[0066] 3. Combining FPS-RANSAC with the region growing algorithm can accurately segment the lunar slope point cloud, obtain the slope and visualize the slope terrain, which has the advantages of small calculation amount and high accuracy.
[0067] Example:
[0068] 1. Point cloud segmentation and denoising;
[0069] First, use LiDAR to collect terrain 3D point cloud data and build a KD tree for the point cloud, such as Figure 1As shown in the figure, the variance of the n-dimensional features of m point clouds is calculated respectively, and the k-th dimension feature with the largest variance is used as the root node. On this basis, the space and point cloud set are subdivided by continuous iteration until all point clouds are divided. The divided point cloud data is subjected to statistical filtering to remove the laser radar data noise.
[0070] 2. Construct FPS-RANSAC algorithm to extract ground plane from laser point cloud;
[0071] The slope point cloud data obtained in the previous step is processed. First, the point cloud is downsampled to minimize the point cloud volume while maintaining the border details of the surface objects. The downsampling part uses the existing octree-based point cloud voxelization downsampling algorithm. The specific process is divided into three steps. First, the voxel space is established to determine the maximum depth of the bounding box and the octree. The maximum depth is set as the voxelization termination condition; then set x max , y max , z max is the maximum value of the point cloud in the x, y, and z axes in the coordinate system. min , y min , z min ) is the minimum value of the point cloud in the x, y, and z axes in the coordinate system, len x , len y , len z is the side length of the voxel in the x, y, z directions, then , , , through the formula Determine the root node coordinates; finally, establish a new coordinate system with the root coordinates as the origin, and repeat until convergence.
[0072] Then the ground plane of the point cloud is extracted. When the classic RANSAC algorithm is used, the seed points are randomly selected from three non-collinear points. However, the random selection of points means that the three selected points lack strict constraints when determining the fitting surface, such as Figure 2 As shown in the figure, it is difficult to ensure that the selected plane can reflect the plane characteristics by randomly selecting points.
[0073] In order to solve the problems existing in the classic RANSAC algorithm, the present invention introduces the FPS algorithm and proposes a new FPS-RANSAC algorithm. The core idea of the FPS algorithm is to iteratively select the point farthest from the selected point set as the new sampling point, thereby ensuring the maximum spacing between the sampling points and achieving the purpose of balanced spatial distribution. The specific steps of the FPS-RANSAC algorithm proposed in the present invention are as follows:
[0074] Step 1: Let t be the total number of points in the point cloud, dis be the distance, and the calculation formula is shown in (1). Randomly select a point A1 in the point cloud, whose coordinates are (x1, y1, z1), calculate the distance dis between the other t-1 points in the point cloud and point A1, sort the distance set {dis} from large to small, and select the seed point A2 with the largest distance value, whose coordinates are (x2, y2, z2).
[0075] (1)
[0076] Step 2: Set point B i is any point in the remaining t-2 point clouds, and point B is calculated according to formula (1) i The distances from point A1 and point A2 are two distance values.
[0077] Step 3: Define Point B i The value d with the smaller distance to point A1 and point A2 i As point B i The distance value to the two points. Calculate all the remaining t-2 points to get a distance value set: {d1, d2, …, d t-2}, select the maximum distance value d i , and its corresponding point B i The initial seed point A3 has coordinates (x3, y3, z3). A1, A2, and A3 are the three initial points.
[0078] Step 4: Assume that the equation of the plane normal vector is as shown in (2):
[0079] (2)
[0080] Where (a, b, c) is the unit normal vector of the plane, satisfying the constraint condition a 2 + b 2 + c 2 = 1, d is the distance from the origin to the plane, and the parameters a, b, c, d are the plane parameters of the fit. Calculate the corresponding plane equation based on the three points A1, A2, and A3 obtained in the third step.
[0081] For the three selected points A1(x1, y1, z1), A2(x2, y2, z2), A3(x3, y3, z3), calculate the vector and vector , use vector cross product to get the normal vector perpendicular to the plane formed by the three points , the calculation formulas are shown in formula (3) and formula (4).
[0082] (3)
[0083] Among them, , , respectively represent the unit vectors in the positive directions of the x-axis, y-axis, and z-axis.
[0084] (4)
[0085] Thus, the parameters a, b, and c of the plane equation can be obtained.
[0086] Step 5: Calculate the algebraic distance distance i , y i , z i ) from all points (x i = |ax i + by i + cz i + d|, where 0 < i <= t and i is an integer. Set the distance threshold r, and determine whether the point is an inlier or an outlier of the fitted plane according to the set threshold r. If distance i is less than or equal to r, then the point is an inlier; if distance i is greater than r, then the point is an outlier. Record the number of current inliers.
[0087] Step 6: Set the number of iterations, repeat the above Steps 1 to 5, and select an optimal fitting parameter, that is, the parameter of the fitted plane with the largest number of inliers. After the iteration ends, output the parameters of the optimal fitted plane, and this plane is the ground plane point cloud in the point cloud.
[0088] 3. Design a slope segmentation algorithm based on region growing to separate the slope point cloud:
[0089] Another innovation of the present invention is to combine the slope point cloud segmentation algorithm based on region growing with the FPS-RANSAC algorithm. In the lunar surface environment, the normal vectors of each point in the slope point cloud are approximately the same, while obstacles such as small rocks are spherical, and the normal vectors of adjacent point clouds point in different directions. Based on this difference, a slope segmentation algorithm based on region growing is designed to segment and display the slope point cloud, and the process is as Figure 3 shown.
[0090] Taking into account the unstructured and single-color characteristics of the lunar surface environment, a slope segmentation scheme based on region growing is designed. The specific steps are as follows:
[0091] Step 1: Remove the ground plane point cloud from the point cloud, calculate the curvature values of all points in the remaining point cloud, sort all points from small to large according to the curvature values, and put them into a preparatory array.
[0092] The curvature can be calculated by solving the eigenvalues of the point cloud covariance matrix. Assume that p is a point in the point cloud and search for its k nearest neighboring points p i , the covariance matrix M of the point p is shown in formula (5).
[0093] (5)
[0094] in, represents the centroid of the neighborhood point set of p;
[0095] Perform eigenvalue decomposition on the covariance matrix M in the formula to obtain the eigenvalues λ of M. The goal of eigenvalue decomposition is to find a set of eigenvalues λ i and the corresponding eigenvector v i , so that the covariance matrix M satisfies formula (6):
[0096] (6)
[0097] Then, the eigenvalue λ is solved according to formula (7): i . Where det represents the determinant and I is the unit matrix. The calculated eigenvalues are denoted as λ0, λ1, and λ2, and they satisfy λ0≤ λ1≤ λ2.
[0098] (7)
[0099] Then the surface curvature of point p is δ, which is calculated as shown in formula (8).
[0100] (8)
[0101] Step 2: Set an empty seed point sequence and an empty cluster array. Select the point with the smallest curvature value and put it into the seed point sequence, and remove the point from the prepared array.
[0102] Step 3: Set the angle threshold r1. Take a seed point from the seed point sequence and calculate the normal vector of the seed point. Search the neighboring points of the seed point, and then calculate the angle between the normal of each neighboring point and the normal of the current seed point; if the angle is less than the threshold r1, add the point to the clustering array and remove the point from the prepared array.
[0103] Step 4: Set the curvature threshold s; calculate the curvature values of all neighborhood points that meet the requirements of the third step and whose angle is less than the angle threshold r1; if the curvature value of the neighborhood point is less than the set curvature threshold s, then put the point into the seed point sequence.
[0104] Step 5: Remove the currently used seed point from the seed point sequence and repeat steps 3 to 4 until the seed point sequence is empty.
[0105] Step 6: Take the point with the smallest curvature value among the remaining points contained in the prepared array as the new seed point, repeat steps 2 to 5 until all points in the point cloud are traversed, and output the number of clustering arrays q, where q is the number of segmented slopes. The points contained in each clustering array are the slope point clouds with the same slope.
[0106] The ground plane point cloud is obtained by the FPS-RANSAC algorithm, and the slope point cloud is obtained by the slope segmentation algorithm based on region growing. Since the slope terrain on the lunar surface is definitely less than 90°, in order to calculate the slope, it is necessary to solve the angle between the ground plane and the slope surface. The plane equation of the ground plane point extracted by the FPS-RANSAC algorithm can be obtained directly; the slope point cloud is separated by the slope segmentation algorithm based on region growing, and the slope point cloud is subjected to SVD decomposition to calculate the slope surface equation. The angle between the ground plane equation and the slope surface equation is obtained, and the angle is the slope of the slope. The flow chart of the lunar slope terrain recognition and characterization algorithm is shown below. Figure 4 shown.
Claims
1. A method for identifying and characterizing slope terrain of a lunar rover, characterized in that: The steps include: Step 1: Point cloud segmentation and denoising; Use LiDAR to collect terrain 3D point cloud and build KD tree for the point cloud; Calculate the variance of the n-dimensional features of the m point clouds respectively, use the k-th dimension feature with the largest variance as the root node, and iterate continuously on this basis until all point clouds are divided; The statistical filtering method is used to remove the laser radar data noise from the divided point cloud; Step 2: Use FPS-RANSAC algorithm to extract the ground plane of laser point cloud; The point cloud obtained in step 1 is processed by first downsampling the point cloud, and then the FPS-RANSAC algorithm is used to extract the ground plane of the point cloud; Step 2-1: Let t be the total number of points in the point cloud, dis be the distance, and the calculation formula is shown in formula (1); randomly select a point A1 in the point cloud, whose coordinates are (x1, y1, z1), calculate the distance dis between the other t-1 points in the point cloud and point A1, sort the distance set {dis} from large to small, and select the seed point A2 with the largest distance value, whose coordinates are (x2, y2, z2); (1) Step 2-2: Set point B i is any point in the remaining t-2 point clouds, and point B is calculated according to formula (1) i The distances from point A1 and point A2 give two distance values; Step 2-3: Define Point B i The value d with the smaller distance to point A1 and point A2 i As point B i The distance values to the two point clouds are calculated for all the remaining t-2 points to obtain a distance value set: {d1, d2, …, d t-2 }, select the maximum distance value d i , and its corresponding point B i It is the initial seed point A3, whose coordinates are (x3, y3, z3); A1, A2, A3 are the initial three points; Step 2-4: Assume that the equation of the plane normal vector is as shown in equation (2): (2) Where (a, b, c) is the unit normal vector of the plane, satisfying the constraint condition a 2 + b 2 + c 2 = 1, d is the distance from the origin to the plane, and the parameters a, b, c, d are the plane parameters of the fitting; calculate the corresponding plane equation according to the three points A1, A2, and A3 obtained in step 2-3; For the three selected points A1(x1, y1, z1), A2(x2, y2, z2), and A3(x3, y3, z3), calculate the vector and vector , use vector cross product to get the normal vector perpendicular to the plane formed by the three point clouds , the calculation formula is shown in formula (3) and formula (4): (3) in, , , Represent the unit vectors in the positive directions of the x-axis, y-axis, and z-axis respectively; (4) Get the plane equation parameters a, b, c; Step 2-5: Calculate the algebraic distance distance of all points (x i , y i , z i ) in the point cloud to this plane, where distance i = |ax i + by i + cz i + d|, where 0 < i <= t and i is an integer; set a distance threshold r, and determine whether the point is an inlier or an outlier of the fitted plane according to the set distance threshold r. If distance i is less than or equal to r, then the point is an inlier; if distance i is greater than r, then the point is an outlier; record the number of current inliers; Step 2-6: Set the number of iterations, repeat steps 2-1 to 2-5, and select an optimal fitting parameter, that is, the parameter of the fitting plane with the largest number of internal points; after the iteration, output the parameters of the best fitting plane, which is the ground plane point cloud in the point cloud; Step 3: Separate the slope point cloud using the slope segmentation algorithm based on region growing; Step 3-1: Remove the ground plane point cloud from the point cloud, calculate the curvature values of all points in the remaining point cloud, sort all points from small to large according to the curvature value, and put them into the preparation array; Step 3-2: Initialization: Set an empty seed point sequence and an empty cluster array; select the point with the smallest curvature value and put it into the seed point sequence, and remove the point from the prepared array; Step 3-3: Set the angle threshold r1; Take a seed point from the seed point sequence and calculate the normal vector of the seed point; search for the neighboring points of the seed point, and then calculate the angle between the normal of each neighboring point and the normal of the current seed point; If the angle is less than the angle threshold r1, the point is added to the clustering array and removed from the prepared array; Step 3-4: Set the curvature threshold s; Calculate the curvature values of all the neighborhood points that meet the requirement of finding the angle less than the angle threshold r1 in step 3-3; if the curvature value of the neighborhood point is less than the set curvature threshold s, then put the neighborhood point into the seed point sequence; Step 3-5: Remove the currently used seed point from the seed point sequence, and repeat steps 3-3 to 3-4 until the seed point sequence is empty; Step 3-6: Take the point with the smallest curvature value among the remaining points in the prepared array as the new seed point, repeat steps 3-2 to 3-5 until all points in the point cloud are traversed, and output the number of cluster arrays q, where q is the number of segmented slopes. The points contained in each cluster array are the slope point clouds under the same slope; Step 4: Combine the FPS-RANSAC algorithm and the slope segmentation algorithm based on region growing to calculate the slope gradient: The ground plane point cloud is obtained through step 2, and the slope point cloud is obtained through step 3. Since the slope terrain on the lunar surface is less than 90°, in order to calculate the slope, it is necessary to solve the angle between the ground plane and the slope surface. The plane equation of the ground plane point extracted by the FPS-RANSAC algorithm is directly obtained. The slope point cloud separated by the slope segmentation algorithm based on region growing is subjected to SVD decomposition to calculate the slope surface equation. The angle between the ground plane equation and the slope surface equation is obtained, and the angle is the slope of the slope.
2. The method for identifying and characterizing the slope terrain of a lunar rover according to claim 1, characterized in that: The downsampling uses an octree-based point cloud voxelization downsampling algorithm; Step 5-1: First, establish the voxel space and determine the maximum depth of the bounding box and the octree. The maximum depth is set as the voxelization termination condition; let x max , y max , z max is the maximum value of the point cloud in the x, y, and z axes in the coordinate system. min , y min , z min ) is the minimum value of the point cloud in the x, y, and z axes in the coordinate system, len x , len y , len z is the side length of the voxel in the x, y, z directions, then , , ; Step 5-2: Then use the formula Determine the root node coordinates; Step 5-3: Finally, establish a new coordinate system with the root coordinate as the origin; Repeat steps 5-1 to 5-3 until convergence.
3. The method for identifying and characterizing slope terrain of a lunar rover according to claim 1, characterized in that: The curvature value is calculated as follows: Assume that p is a point in the point cloud and search for its k nearest neighboring points. , the covariance matrix M of point p is shown in formula (5); (5) in, represents the centroid of the neighborhood point set of p; Perform eigenvalue decomposition on the covariance matrix M in the formula to obtain the eigenvalues of M ; The goal of eigenvalue decomposition is to find a set of eigenvalues and the corresponding eigenvector , so that the covariance matrix M satisfies formula (6): (6) Then, the eigenvalue is solved according to formula (7): , where det represents the determinant, I is the unit matrix, and the calculated eigenvalues are recorded as λ0, λ1, and λ2, and satisfy λ0≤ λ1≤ λ2; (7) Then the surface curvature of point p is δ, which is calculated as shown in formula (8); (8) The smaller δ is, the flatter the neighborhood is, and the larger δ is, the greater the fluctuation of the neighborhood is.
