Laser SLAM method, device and medium based on multi-frame space occupancy
Through the laser SLAM method based on multi-frame space occupancy, the 'ghost' problem of laser SLAM in highly dynamic environments is solved. The dynamic point cloud is removed through point cloud processing and feature extraction technology, which improves the accuracy and robustness of robot navigation. .
Patent Information
- Application Number
- CN202410992973.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-24
AI Technical Summary
Existing laser SLAM methods are difficult to effectively handle dynamic objects in highly dynamic environments, resulting in 'ghost' problems that affect the accuracy of 3D reconstruction and robot navigation.
The laser SLAM method based on multi-frame space occupancy is used to construct and optimize the overall situation through the projection of point cloud images, voxel meshing, downsampling, cross feature extraction, coarse matching, dynamic point cloud removal and bag-of-word model loop detection. Map, remove dynamic point cloud, improve positioning accuracy and robustness.
Effectively remove dynamic laser point clouds, improve the positioning accuracy and robustness of the SLAM system, and ensure the accuracy and reliability of the map.
Smart Images

Figure CN118518093B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of dynamic object recognition in SLAM, and in particular to a laser SLAM method, device and medium based on multi-frame space occupancy. Background Art
[0002] SLAM stands for Simultaneous Localization and Mapping, which means simultaneous positioning and mapping. Laser SLAM uses laser radar to perceive the environment and obtains accurate three-dimensional information based on the distance measurement between the laser beam and the target object. Through feature extraction and map construction, laser SLAM realizes the autonomous positioning and map construction of robots in unknown environments, providing strong support for fields such as robot navigation and autonomous driving.
[0003] The current laser SLAM method is based on the assumption of a static environment, and it is difficult to deal with the adverse effects of dynamic objects on map and positioning accuracy in actual operation scenarios. When laser SLAM performs three-dimensional reconstruction in a highly dynamic environment, it often encounters the "ghost" problem. This is because dynamic objects in the environment (such as pedestrians, vehicles, etc.) are constantly moving during the laser radar scanning process, resulting in the inclusion of multiple position information of these objects in the scanning data. When the laser SLAM system is disturbed by dynamic objects during inter-frame matching, using these data for three-dimensional reconstruction will leave "ghosts" of dynamic objects on the map, that is, incompletely overlapping images of objects at multiple locations. The "ghost" problem not only affects the visualization of the three-dimensional reconstruction, but also changes the spatial structure in the map, making it difficult for the robot to accurately judge obstacles and feasible paths in the environment, interfering with the robot's navigation and positioning. Summary of the invention
[0004] The purpose of this application is to provide a laser SLAM method, device and medium based on multi-frame spatial occupancy, which can effectively remove dynamic laser point clouds and improve the accuracy and robustness of SLAM tracking and positioning.
[0005] To achieve the above objectives, this application provides the following solutions.
[0006] In a first aspect, the present application provides a laser SLAM method based on multi-frame spatial occupancy, comprising:
[0007] Obtain the target point cloud image collected by the laser radar;
[0008] Projecting the target point cloud image onto a horizontal reference plane, dividing the projected depth image into voxel grids, and calculating the distance value corresponding to each voxel grid; the distance value is the distance between the voxel grid and the laser radar;
[0009] Based on the distance value corresponding to each voxel grid, all voxel grids are downsampled, and cross-feature extraction is performed on the optimized depth image obtained after downsampling to obtain a set of spatial feature points;
[0010] Selecting multiple frames of continuous laser point clouds from the depth image, and performing rough matching on the multiple frames of continuous laser point clouds based on the set of spatial feature points to construct a local map;
[0011] Based on the local map, voting for the spatial occupancy of voxel grids on the multiple frames of continuous laser point clouds to determine a dynamic voxel grid, and removing laser points corresponding to the dynamic voxel grid from the multiple frames of continuous laser point clouds to obtain an optimized point cloud image;
[0012] Performing precise matching based on the optimized point cloud image to obtain a preliminary global map;
[0013] According to the preliminary global map and the set of spatial feature points, the preliminary global map is optimized by using a loop closure detection algorithm of a bag-of-words model to obtain a final global map.
[0014] In a second aspect, the present application provides a computer device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any one of the above-mentioned laser SLAM methods based on multi-frame spatial occupancy.
[0015] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the above-mentioned laser SLAM methods based on multi-frame spatial occupancy.
[0016] According to the specific embodiments provided by the present application, the present application discloses the following technical effects: the present application provides a laser SLAM method, device and medium based on multi-frame spatial occupancy, uses a point cloud downsampling method based on a depth image to divide the point cloud data into voxel grids, and downsamples the results according to the distance value to ensure the data accuracy and processing efficiency of subsequent processing; cross-feature extraction is performed on the optimized depth image obtained after downsampling to obtain more comprehensive feature information, thereby guiding subsequent matching processing, and at the same time, a local map is constructed using the coarse matching pose results; then, based on the local map, the spatial occupancy of the voxel grid is voted for the multi-frame continuous laser point cloud to determine the dynamic voxel grid, and the laser points corresponding to the dynamic voxel grid are removed from the multi-frame continuous laser point cloud to obtain an optimized point cloud image, so that the static point cloud obtained can more accurately reflect the static structure of the environment, and then a precise matching is performed to obtain a more accurate pose result, and the map is corrected; in order to further optimize, the loop detection algorithm of the bag of words model is used to optimize the preliminary global map to obtain the final global map. This application utilizes the fast denoising of the point cloud downsampling method based on depth images, the comprehensive feature information of the cross-feature extraction module, and the dynamic point cloud culling of multi-frame spatial occupancy to ultimately obtain a clean static point cloud map, thereby improving the accuracy and robustness of SLAM system tracking and positioning. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 This is an application environment diagram of a laser SLAM method based on multi-frame space occupancy in one embodiment of the present application.
[0019] Figure 2 A schematic flow chart of a laser SLAM method based on multi-frame spatial occupancy provided in one embodiment of the present application.
[0020] Figure 3 A schematic diagram of cross-feature extraction provided in one embodiment of the present application.
[0021] Figure 4 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0024] The laser SLAM method based on multi-frame space occupancy provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be set up separately, integrated on the server 104, or placed on the cloud or other servers. The terminal 102 can send the point cloud image to be processed to the server 104. After receiving the point cloud image to be processed, the server 104 performs projection, voxel grid division, cross feature extraction, coarse matching to build a local map, multi-frame occupancy to remove dynamic point clouds, precise matching, and loop detection based on the bag of words model to obtain the final global map. The server 104 can feedback the final global map obtained to the terminal 102. In addition, in some embodiments, the laser SLAM method based on multi-frame space occupancy can also be implemented separately by the server 104 or the terminal 102, such as the terminal 102 can directly process the point cloud image to be processed, or the server 104 can obtain the point cloud image to be processed from the data storage system and then process it.
[0025] In an exemplary embodiment, Figure 2 As shown, a laser SLAM method based on multi-frame space occupancy is provided. The method is executed by a computer device, and can be executed by a computer device such as a terminal or a server alone, or by a terminal and a server together. In the embodiment of the present application, the method is applied to Figure 1 The server 104 in the example is used for explanation, and the steps include the following steps 201 to 207.
[0026] Step 201, obtain the target point cloud image collected by the laser radar. Specifically, for different application scenarios, different robots can be set to carry laser radars. This application only needs to first obtain the continuous target point cloud images collected by the laser radar, and then use them for subsequent steps for processing.
[0027] Step 202, projecting the target point cloud image onto a horizontal reference plane, dividing the projected depth image into voxel grids, and calculating the distance value corresponding to each voxel grid; the distance value is the distance between the voxel grid and the laser radar.
[0028] In a practical application, step 202 specifically includes the following four steps.
[0029] (1) Projecting the target point cloud image onto a horizontal reference plane to obtain a depth image; wherein the target point cloud image is formed with the laser radar as the center, and the origin of the two-dimensional image coordinate system of the corresponding generated two-dimensional depth image is at the center of the image.
[0030] (2) Determine the three-dimensional coordinates of each projection point in the depth image; the three-dimensional coordinates of any projection point in the depth image are (u, v, r); wherein the depth image is a two-dimensional image, and the corresponding coordinates should be (u, v), but in order to facilitate the classification of laser points, this application defines the type of point in the depth image as a three-dimensional space point (u, v, r), where r represents the distance value between the laser point corresponding to the projection point and the laser radar.
[0031] In an application example, the coordinate conversion process between the target point cloud image and the depth image first performs the following conversion:
[0032] .
[0033] Due to the different field of view angles and horizontal resolutions of different types of LiDARs, the size of the projected image will also be set to different values according to the needs. In order to adapt to these changes, and To normalize:
[0034] .
[0035] After normalization, multiplying by the width and height of the required projection image, the calculation formula for u and v of the point in the depth image can be obtained as:
[0036] .
[0037] Among them, FOV is the upper and lower viewing angle range of the laser radar, FOV_up is the upper limit of the viewing angle of the laser radar, and FOV_down is the lower limit of the viewing angle of the laser radar; yaw is the heading angle, which represents the rotation of the object around the Y axis; W is the width of the target point cloud image; pitch is the pitch angle, which represents the rotation of the object around the X axis; H is the height of the target point cloud image, abs() is the absolute value function, and (x, y, z) is the three-dimensional coordinate of the laser point in the target point cloud image in the laser radar coordinate system. In actual applications, laser radars also collect roll angles roll to represent the rotation of objects around the Z axis.
[0038] (3) dividing the depth image into a plurality of voxel grids; in one application example, dividing the depth image into A voxel grid, where the color depth of each point represents the modulus of the distance value at that point.
[0039] (4) Based on the three-dimensional coordinates of multiple projection points in each voxel grid, the distance value corresponding to each voxel grid is calculated. In an application example, the distance value corresponding to each projection point in each voxel grid is calculated. The values are averaged, so that the average distance value of all laser points in the voxel grid is used to represent the distance value of the voxel grid.
[0040] Step 203 , down-sample all voxel grids based on the distance value corresponding to each voxel grid, and perform cross feature extraction on the optimized depth image obtained after down-sampling to obtain a set of spatial feature points.
[0041] In an application example, the result is downsampled according to the distance value, and the noise points are filtered, so as to ensure the accuracy of the laser point data used subsequently. Further, the optimized depth image obtained after downsampling is cross-feature extracted to obtain a set of spatial feature points, which specifically includes the following steps.
[0042] (1) Divide the optimized depth image obtained after downsampling into multiple sub-images of the same size.
[0043] (2) For each sub-image, based on the cross feature extraction algorithm, the feature value of each spatial point in the sub-image is calculated; the calculation formula of the feature value of each spatial point in the sub-image is:
[0044] .
[0045] Where E is the space point The characteristic value of i is the distance value of the i-th voxel grid, r j is the distance value of the jth voxel grid, S is the spatial point in the sub-image A set of nine spatial points with centered, adjacent above and below, and adjacent left and right, such as Figure 3 shown.
[0046] (3) If the feature value of the spatial point is greater than a preset threshold, the spatial point is marked as an edge feature point.
[0047] (4) If the feature value of the spatial point is less than or equal to a preset threshold, the spatial point is marked as a plane feature point; all edge feature points and all plane feature points in all sub-images constitute a set of spatial feature points.
[0048] After the step of performing cross-feature extraction on the optimized depth image obtained after downsampling to obtain a set of spatial feature points, the laser SLAM method based on multi-frame spatial occupancy also includes a step of classifying the spatial points in all sub-images, as shown below.
[0049] (1) For each sub-image, extract the edge feature point with the maximum eigenvalue from each row of the sub-image and put it into the first feature point set.
[0050] (2) Extracting a plane feature point with a minimum eigenvalue from each row of the sub-image and putting it into a second feature point set.
[0051] (3) Extracting edge feature points with the second largest eigenvalue from each row of the sub-image and putting them into the third feature point set.
[0052] (4) Extracting a plane feature point with a second smallest eigenvalue from each row of the sub-image and putting it into a fourth feature point set.
[0053] It can also be understood that the feature points in the first feature point set and the second feature point set are obvious feature points, and the feature points in the third feature point set and the fourth feature point set are non-obvious feature points. From what has been said, it can be seen that each row of the depth image represents a laser beam, and it is not reliable to classify the feature points by calculating the curvature only in each laser beam. The cross feature extraction method proposed in this application can associate the feature point information in the upper and lower adjacent beams, obtain more comprehensive feature information, group the features to speed up the matching process, and solve the problem of similar features in different laser beams.
[0054] Step 204, select multiple frames of continuous laser point clouds from the depth image, and perform rough matching on the multiple frames of continuous laser point clouds based on the set of spatial feature points to construct a local map. In an application example, five consecutive frames of laser point clouds can be selected as candidate detection frames to form a candidate group, and these five frames are used for rough matching to quickly construct a local map.
[0055] Step 205, based on the local map, voting on the spatial occupancy of the voxel grid of the multiple frames of continuous laser point clouds to determine the dynamic voxel grid, and removing the laser points corresponding to the dynamic voxel grid from the multiple frames of continuous laser point clouds to obtain an optimized point cloud image.
[0056] In an application example, the occupancy rate of each spatial unit in multiple consecutive frames is calculated to identify the spatial unit with lower occupancy rate caused by dynamic objects, thereby eliminating the interference of dynamic objects on pose estimation. Based on this, step 205 specifically includes the following multiple steps.
[0057] (1) Associating the multiple frames of continuous laser point cloud with the local map.
[0058] (2) For any frame of laser point cloud, based on the preset voting rules, the voxel grids are voted to obtain the number of votes for all voxel grids; the preset voting rules are: if there is a local map point within the preset distance range of any laser point in the laser point cloud, the number of votes for the voxel grid where the laser point is located is increased by one; the local map point is a point in the local map. Repeat the above voting process until all five frames of laser point cloud in the candidate group have completed voting. Among them, the preset distance range represents the size of the depth threshold, which is an artificially set empirical value.
[0059] (3) The votes of all voxel grids corresponding to the multiple frames of continuous laser point clouds are summed up to obtain the total number of votes corresponding to each voxel grid.
[0060] (4) The voxel grids whose total votes are less than a preset number of votes (such as 3 votes) are marked as dynamic voxel grids, and the laser points corresponding to the dynamic voxel grids are removed from the multi-frame continuous laser point cloud to obtain an optimized point cloud image.
[0061] The static point cloud processed by dynamic culling can more accurately reflect the static structure of the environment and improve the robustness and accuracy of the SLAM system.
[0062] Step 206, performing precise matching based on the optimized point cloud image to obtain a preliminary global map; specifically, performing precise matching on the static point cloud after dynamic elimination to obtain a more accurate pose result and correct the map.
[0063] Step 207: According to the preliminary global map and the set of spatial feature points, the preliminary global map is optimized using a loop closure detection algorithm of a bag-of-words model to obtain a final global map.
[0064] In an application example, by comparing the currently observed feature points with the vocabulary representation of the previously saved feature points, it is determined whether there is a loop. By consulting the bag-of-words model, the similarity between feature points can be quickly calculated, thereby achieving pose optimization and map correction. Based on this, step 207 specifically includes the following multiple steps.
[0065] (1) Based on the first feature point set, the second feature point set, the third feature point set and the fourth feature point set, a word description tree is constructed. For example, the relative positions of the maximum edge feature set (i.e., the first feature point set) in each row of the depth image are used to form a word description of the voxel grid of the set members, n The words in the partitions constitute the laser beam description of the row, and all laser beam descriptions constitute the frame description. The bag-of-words model refers to forming a vocabulary table of words in the text and representing it as a vector. Each dimension corresponds to a word, and the value on this dimension represents the number of times the word appears. That is, the bag-of-words model is determined according to the above word description tree.
[0066] (2) Based on the word description tree, calculating the frame description similarity between the preliminary global map and the set of spatial feature points.
[0067] (3) Detecting loops based on the frame description similarity to optimize the preliminary global map to obtain a final global map.
[0068] The loop detection method based on the bag-of-words model of the present application relies on the robust spatial relationship between obvious edge feature points. At the same time, combined with the downsampling processing of the depth image in the above steps, it can greatly reduce the computational complexity of loop detection and improve computational efficiency.
[0069] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 4As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the final global map. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a laser SLAM method based on multi-frame space occupancy is implemented.
[0070] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components. In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0071] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0072] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0073] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
[0074] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.
[0075] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0076] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.
Claims
1. A laser SLAM method based on multi-frame spatial occupancy, characterized in that: The laser SLAM method based on multi-frame space occupancy includes: Obtain the target point cloud image collected by the laser radar; Projecting the target point cloud image onto a horizontal reference plane, dividing the projected depth image into voxel grids, and calculating the distance value corresponding to each voxel grid; the distance value is the distance between the voxel grid and the laser radar; Based on the distance value corresponding to each voxel grid, all voxel grids are downsampled, and cross-feature extraction is performed on the optimized depth image obtained after downsampling to obtain a set of spatial feature points; Selecting multiple frames of continuous laser point clouds from the depth image, and performing rough matching on the multiple frames of continuous laser point clouds based on the set of spatial feature points to construct a local map; Based on the local map, voting for the spatial occupancy of voxel grids on the multiple frames of continuous laser point clouds to determine a dynamic voxel grid, and removing laser points corresponding to the dynamic voxel grid from the multiple frames of continuous laser point clouds to obtain an optimized point cloud image; Performing precise matching based on the optimized point cloud image to obtain a preliminary global map; According to the preliminary global map and the set of spatial feature points, the preliminary global map is optimized by using a loop closure detection algorithm of a bag-of-words model to obtain a final global map.
2. The laser SLAM method based on multi-frame space occupancy according to claim 1, characterized in that: The target point cloud image is projected onto a horizontal reference plane, the projected depth image is divided into voxel grids, and the distance value corresponding to each voxel grid is calculated, specifically including: Projecting the target point cloud image onto a horizontal reference plane to obtain a depth image; Determining the three-dimensional coordinates of each projection point in the depth image; dividing the depth image into a plurality of voxel grids; Based on the three-dimensional coordinates of multiple projection points in each voxel grid, the distance value corresponding to each voxel grid is calculated.
3. The laser SLAM method based on multi-frame space occupancy according to claim 2, characterized in that: The three-dimensional coordinates of any projection point in the depth image are (u, v, r); wherein r represents the distance between the laser point corresponding to the projection point and the laser radar; the calculation formulas of u and v are: ; Among them, FOV is the upper and lower viewing angle range of the laser radar, FOV_up is the upper limit of the viewing angle of the laser radar, FOV_down is the lower limit of the viewing angle of the laser radar, yaw is the heading angle, W is the width of the target point cloud image, pitch is the pitch angle, H is the height of the target point cloud image, abs() is the absolute value function, and (x, y, z) is the three-dimensional coordinate of the laser point in the target point cloud image in the laser radar coordinate system.
4. The laser SLAM method based on multi-frame space occupancy according to claim 1, characterized in that: Perform cross feature extraction on the optimized depth image obtained after downsampling to obtain a set of spatial feature points, including: Divide the optimized depth image obtained after downsampling into multiple sub-images of the same size; For each sub-image, based on a cross feature extraction algorithm, the feature value of each spatial point in the sub-image is calculated; If the feature value of the spatial point is greater than a preset threshold, the spatial point is marked as an edge feature point; If the feature value of the spatial point is less than or equal to a preset threshold, the spatial point is marked as a plane feature point; all edge feature points and all plane feature points in all sub-images constitute a set of spatial feature points.
5. The laser SLAM method based on multi-frame space occupancy according to claim 4, characterized in that: The calculation formula of the eigenvalue of each spatial point in the sub-image is: ; Among them, E is the eigenvalue of the space point, r i is the distance value of the i-th voxel grid, r j is the distance value of the jth voxel grid, S is a set of nine spatial points centered on the spatial point in the sub-image, adjacent to the upper and lower points and adjacent to the left and right points; according to the laser point corresponding to each projection point in each voxel grid The values are averaged, so that the average distance value of all laser points in the voxel grid is used to represent the distance value of the voxel grid.
6. The laser SLAM method based on multi-frame space occupancy according to claim 4, characterized in that: After the step of performing cross feature extraction on the optimized depth image obtained after downsampling to obtain a set of spatial feature points, the laser SLAM method based on multi-frame spatial occupancy rate further includes: For each sub-image, extract edge feature points with maximum eigenvalues from each row of the sub-image, and put them into a first feature point set; Extracting a plane feature point with a minimum eigenvalue from each row of the sub-image, and putting the plane feature point into a second feature point set; Extracting edge feature points with the second largest eigenvalue from each row of the sub-image, and putting them into a third feature point set; A plane feature point with a second smallest eigenvalue is extracted from each row of the sub-image and put into a fourth feature point set.
7. The laser SLAM method based on multi-frame space occupancy according to claim 1, characterized in that: Based on the local map, voting for the spatial occupancy of the voxel grid is performed on the multiple frames of continuous laser point clouds to determine the dynamic voxel grid, and laser points corresponding to the dynamic voxel grid are removed from the multiple frames of continuous laser point clouds to obtain an optimized point cloud image, specifically including: Associating the multiple frames of continuous laser point clouds with the local map; For any frame of laser point cloud, the voxel grids are voted based on a preset voting rule to obtain the number of votes of all voxel grids; the preset voting rule is: if there is a local map point within a preset distance range of any laser point in the laser point cloud, the number of votes of the voxel grid where the laser point is located is increased by one; the local map point is a point in the local map; The votes of all voxel grids corresponding to the multiple frames of continuous laser point clouds are added up to obtain the total number of votes corresponding to each voxel grid; The voxel grids whose total votes are less than the preset number of votes are marked as dynamic voxel grids, and the laser points corresponding to the dynamic voxel grids are removed from the multi-frame continuous laser point cloud to obtain an optimized point cloud image.
8. The laser SLAM method based on multi-frame space occupancy according to claim 6, characterized in that: According to the preliminary global map and the set of spatial feature points, the preliminary global map is optimized by using a loop detection algorithm of a bag-of-words model to obtain a final global map, specifically including: Constructing a word description tree based on the first feature point set, the second feature point set, the third feature point set, and the fourth feature point set; Based on the word description tree, calculating the frame description similarity between the preliminary global map and the set of spatial feature points; Loop closure is detected according to the similarity of the frame descriptions to optimize the preliminary global map to obtain a final global map.
9. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the laser SLAM method based on multi-frame spatial occupancy as described in any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the laser SLAM method based on multi-frame space occupancy described in any one of claims 1 to 8 is implemented.
