Laser point screening system for traversing grid map layer by layer
By traversing the laser point screening system of the raster map layer by layer, using multiple data channels for parallel calculation and accumulators to filter laser points, the problem of low lidar positioning efficiency in the existing technology is solved, and fast and accurate laser point cloud processing is achieved. .
Patent Information
- Application Number
- CN202310475323.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-28
- Publication Date
- 2024-10-29
AI Technical Summary
When existing robots use lidar for global relocation, the software algorithm requires a large number of iterative calculations, resulting in high CPU resource usage and time-consuming. In addition, the noise information in the multi-level laser map introduces invalid calculations, occupies the hardware accelerator cache, and reduces positioning efficiency.
Design a laser point screening system that traverses the raster map layer by layer. Through the state machine control module and laser point processing module, multiple data channels are used to perform position transformation operations in parallel. The accumulator calculates the dynamic probability and value of the laser points to filter out the infeasible ones. solution, reducing invalid calculations and improving positioning speed.
It significantly reduces the amount of data search and the number of repeated executions of position transformation operations, speeds up positioning operations, shortens the repositioning time of multi-resolution raster maps, and improves the efficiency of real-time positioning.
Smart Images

Figure CN118864643A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of laser point cloud processing, and in particular to a laser point screening system that traverses a grid map layer by layer. Background Art
[0002] The current global relocation method of robots can adopt the global relocation technology based on laser radar. For mobile robots to use laser maps for relocation, the industry mostly adopts software algorithms to implement it. A large number of iterative calculations are performed for each laser data, and the matching method is repeatedly used to traverse each generated laser radar data to obtain the location information of the target to be relocated on the map. This method will take up a lot of CPU resources and is very time-consuming. When using a hardware accelerator to traverse the multi-level laser map layer by layer and perform positioning calculations for each laser point, due to the presence of noise information in a batch of laser point clouds collected by the laser radar in the same area, the positioning calculation amount in the multi-level laser map will introduce a lot of invalid calculations, especially for some noise information, which will occupy a large amount of cache space inside the hardware accelerator, resulting in low efficiency of positioning calculations or related instruction execution. Summary of the invention
[0003] This application provides a laser point screening system for traversing a grid map layer by layer. The specific technical solution is as follows: The laser point screening system for traversing a grid map layer by layer includes a state machine control module, a laser point processing module and a DDR memory; the laser point processing module is divided into a plurality of data channels and an accumulator; the laser point processing module is used to obtain a multi-resolution grid map from the DDR memory, and traverse the grid map layer by layer to obtain the position transformation operation required to be performed on the current grid map; the laser point processing module is used to read a batch of laser points for positioning the current grid map from the DDR memory in sequence according to a trigger signal sent by the state machine control module; under the triggering of the state machine control module, the laser point processing module traverses the current grid map, and each time a laser point is read, the laser point is recorded as the current The previous laser point is transmitted to each data channel at the same time. The current laser point is configured in each data channel to execute each round of position transformation operation in the current layer grid map in parallel, and obtain the target point and its corresponding occupation probability value in parallel; in each data channel, for the same laser point, the occupation probability values corresponding to the target point obtained in the current layer grid map through each round of position transformation operation are added in sequence through the accumulator, and the accumulator calculates the dynamic probability and value corresponding to the laser point each time it is added; the laser point processing module is used to determine that the current laser point is an infeasible solution based on the dynamic probability and value corresponding to the current laser point, and then eliminate the current laser point so that it no longer executes each round of position transformation operation, and the accumulator stops adding. Under the triggering of the state machine control module, the laser point processing module is used to determine that the current laser point is a feasible solution based on the dynamic probability and value corresponding to the current laser point, set the feasible solution as the laser point used for positioning the next layer of grid map and write it back to the DDR memory, so that when each data channel performs a corresponding round of position transformation operation in the next layer of grid map, the laser point used for positioning the next layer of grid map written back to the DDR memory is updated to the current laser point, and then the updated current laser point is read from the DDR memory, so as to realize layer-by-layer screening of feasible solutions in the grid map with low to high resolution, and update a batch of laser points used for positioning the current layer of grid map layer by layer.
[0004] In summary, compared with the corresponding position transformation operation and feasible solution layer-by-layer search operation in the software environment, the laser point screening system disclosed in the present application adopts a multi-channel parallel execution of the position transformation operation and the accumulator structure, and controls the same laser point to perform the position transformation operation required to be performed in a layer of grid map in parallel in each data channel. Before the occupation probability values obtained are completely accumulated together (repeatedly accumulated together under the scheduling of the state machine), the infeasible solution is screened out and the calculation of the dynamic probability and value is terminated in time, thereby reducing the amount of accumulated calculation, wherein the position transformation operation required to be performed in each layer of the grid map is pre-set, but when an infeasible solution is judged in real time based on the dynamic probability and value, the current laser point will be abandoned to terminate the execution of the position transformation operation or the accumulation operation of the corresponding occupation probability value in advance. It is conducive to speeding up the acquisition of the optimal laser point, greatly reducing the amount of data search, and also reducing the number of repeated executions of the position transformation operation in each data channel, speeding up the positioning operation speed, reducing the repositioning time of the multi-resolution grid map, and facilitating the implementation of real-time positioning. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] Figure 1 A schematic diagram of a framework of a laser point screening system for traversing a grid map layer by layer is disclosed as an embodiment. Implementation
[0006] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings.
[0007] When the mobile robot walks in the environment area, it uses a laser sensor to scan the surrounding environment. Generally, the laser probe rotates 360 degrees to scan, collects laser points fed back at various directions, and converts them into a grid coordinate system to establish a laser map. If the map resolution is distinguished and used for large-scale positioning calculations, a multi-layer grid map is established, which is regarded as a multi-resolution laser map composed of grid maps at multiple resolutions; then, the position to be located can be determined based on the probability information of the collected laser points falling into the map coordinate position of the resolution, so that the mobile robot can use the laser map to relocate the target position, which is the position where the robot has located but lost its posture information. Specifically, the laser sensor is a laser radar that can rotate 360 degrees. The laser radar has a built-in laser probe and a motion rotation mechanism. The motion rotation mechanism can support the 360-degree rotation of the laser probe. Therefore, under the driving action of the motion rotation mechanism, the laser probe revolves around the rotation center of the laser radar, and each rotation obtains a laser point cloud, that is, a collection of multiple laser points formed around the laser probe. Laser points or laser points scattered in a grid map of a certain resolution are all necessary data for positioning. When the target position to be positioned (also referred to as the position point to be relocated) is lost in the map, it is necessary to restore the positioning of the target position; and the distribution of large amounts of map information or laser points is often discrete. Therefore, the present application designs a hardware logic circuit to process data in parallel, and uses an off-chip memory to save the laser points scanned by the laser and the map data of the pre-built multi-resolution grid map. Then, the hardware logic circuit is used to accelerate the judgment of the laser points that can be used as a feasible solution, and provide the software environment with the effective posture information required by the relocation algorithm. Specifically, the hardware logic circuit is used to complete the parallel traversal of the laser points in multiple data channels and the cumulative summation of the occupation probability values at the offset coordinate positions, which saves unnecessary calculations when a feasible solution or an infeasible solution is judged, and shortens the time for obtaining the effective laser points in the map based on the relocation algorithm used in the current scene.
[0008] The present application discloses a laser point screening system for traversing a grid map layer by layer, combined with Figure 1It can be known that the laser point screening system disclosed in the present application includes a state machine control module, a laser point processing module and a DDR memory; the laser point processing module is divided into multiple data channels and an accumulator; the laser point processing module is a hardware logic circuit, which is connected by digital logic units, and the laser point processing module adopts a hardware circuit. The laser point processing module belongs to the register module in the positioning logic circuit; the state machine control module is actually a state machine, including a main state machine and a sub-state machine controlled by it, and the state machine control module adopts a state machine control method to generate a control signal. The laser point processing module will interact with the DDR memory (or CPU) on the AHB bus through the AHB (Advanced High performance Bus) bus analysis module.
[0009] The laser point processing module has multiple data channels, and each data channel has various computing units in a corresponding data channel. The computing units in each data channel are computing logic units for performing different computing functions, thus forming a parallel computing circuit, and mainly supporting repeated reading operations, writing operations, and iterative computing operations under the control of a state machine. Specifically, each data channel is configured to perform at least one round of position transformation operations on the laser point, and the position transformation operations performed by any two data channels are two rounds of position transformation operations of different types, and support parallel execution in the data channels in which they are located.
[0010] The laser point processing module is used to obtain a multi-resolution raster map from the DDR memory, and traverse the raster map layer by layer to obtain the position transformation operation required to be performed on the current layer raster map; the multi-resolution raster map is a raster map at multiple resolutions, wherein each resolution corresponds to a layer of raster map, so that the multi-resolution raster map becomes a multi-layer raster map or a raster map of multiple levels of resolution. In this embodiment, a map at one resolution is a raster map of one level of resolution. In order to realize a fine search for feasible solutions or candidate solutions, the laser point processing module obtains the multi-resolution raster map from the DDR memory in the order of resolution from low to high, and here the raster map of one level of resolution can be read layer by layer from the DDR memory according to the control signal sent by the state machine control module. Regarding multi-resolution raster maps, it should be noted that multi-resolution is to set multiple levels of resolution from large to small resolution values. Raster maps at various resolutions constitute a multi-resolution raster map, which can also be understood as multi-layer raster maps and raster maps with multiple levels of resolution. Therefore, when a multi-resolution raster map is regarded as consisting of block maps of multiple resolutions, the multi-resolution raster map is a collection of multiple raster maps of different resolutions, and these raster maps of different resolutions are used to represent the same detection area. Each raster map is represented as a layer of raster map or a raster map of one level of resolution. When a multi-resolution raster map is regarded as a global raster map, The global grid map is a grid map that supports representing the same detection area with multiple resolutions. Each resolution corresponds to a layer of block map or a grid map of a level of resolution in the global grid map. That is, after traversing a grid map of one resolution in the global grid map, if the resolution value is changed, a grid map of another resolution can be traversed in the global grid map (a grid map of a different level of resolution relative to the last traversed grid map). The global grid map can be recorded as a grid map that can be refreshed to different levels of resolution, so that the laser point screening system can repeatedly traverse or selectively traverse the map of the same detection area according to each level of resolution. On this basis, the laser point screening system disclosed in the present application generally starts from the lowest resolution grid map in the process of searching for multi-resolution grid maps, and gradually increases the resolution in sequence to perform a fine search, that is, search in a map with a finer resolution.
[0011] The laser point processing module is used to read a batch of laser points used for positioning the current layer of grid map from the DDR memory in sequence according to the trigger signal sent by the state machine control module, so that the same laser point is allocated to each data channel, and also obtain the corresponding layer of grid map from the DDR memory to each data channel. The corresponding layer of grid map is a grid map of a resolution level currently required to be read that is scheduled from the multi-resolution grid map according to the control signal sent by the state machine control module; each time a layer of grid map is obtained, it is regarded as traversing a layer of grid map, and the currently obtained layer of grid map is the current layer of grid map, also recorded as the current layer of grid map.
[0012] Under the triggering of the state machine control module, when the laser point processing module traverses the current layer grid map, each time a laser point is read, the laser point is recorded as the current laser point, and then the current laser point is transmitted to each data channel at the same time. The current laser point is configured in each data channel to perform each round of position transformation operations in the current layer grid map in parallel, and the target point and its corresponding occupancy probability value are obtained in parallel in each data channel; in some embodiments, the obtained target points are counted in each data channel respectively, and the laser point processing module also counts the number of times at least one laser point performs at least one round of position transformation operations. The number of target points obtained by the operation; wherein, each data channel obtains the coordinates of multiple target points in the same clock cycle and indexes them to the corresponding occupancy probability values in real time, a laser point performs a round of position transformation operation to obtain a target point, the posture parameters used by a laser point to perform a round of position transformation operation are preset and may vary depending on the resolution of the traversed grid map. When the location of the laser point screening system is set to the origin of the coordinate system of the grid map, the posture parameters used by a laser point to perform a round of position transformation operation or the laser point itself can be directly used as a positioning result.
[0013] It should be noted that the laser point processing module and the state machine control module are components of the positioning logic circuit; the state machine control module adopts a state machine control method to generate a control signal, a trigger signal, a counting signal or an enable signal, which is used to control the parallel calculation of multiple data channels of the laser point processing module and the layer-by-layer traversal of the map data; if a variety of calculation units are divided in each data channel, including but not limited to an addition logic circuit, a multiplication logic circuit, a comparator, and a selector; and each calculation unit has a corresponding number of iterative calculation requirements, and the number of iterative calculations of some calculation units may be only once, a judgment mechanism and a memory are introduced to assist in accelerating the iterative calculation; then the state machine control module configures a state machine for each calculation unit to ensure the normal operation of the iterative calculation of the calculation unit so as to search and update the feasible solution layer by layer of the grid map, and at the same time, the state machine control module also sets relevant registers to provide read instructions and write instructions specifically for each state machine, including but not limited to triggering, enabling, setting, resetting, clearing, switching of working states, beating counting and other control functions.
[0014] In each data channel, for the same laser point, the occupation probability values corresponding to the target points in the current layer grid map obtained through each round of position transformation operation are added in sequence through the accumulator, and the dynamic probability and value corresponding to the laser point are calculated each time the accumulator is added; it is worth noting that the occupation probability values corresponding to the target points in the current layer grid map obtained through each data channel through multiple rounds of position transformation operations can be added together in the same clock cycle, specifically according to the trigger signal sent by the state machine control module, triggering the occupation probability values corresponding to the target points in the current layer grid map obtained by the corresponding round of position transformation operation in each data channel. The coordinates of the target point and its corresponding occupancy probability values are added together, including the state machine control module scheduling the parallel output of the coordinates of the target point and its corresponding occupancy probability value and performing the addition operation (accumulation operation), and then using the dynamic probability and value obtained by the accumulator each time to judge whether the current laser point is feasible, that is, judging whether the current laser point is a feasible solution or an infeasible solution based on the relationship between the dynamic probability and the threshold; wherein, when the candidate solution corresponding to each round of position transformation operation is not judged as an infeasible solution, the accumulator controls each data channel to add the occupancy probability values corresponding to the target point obtained by the corresponding round of position transformation operation in the current layer grid map.
[0015] In this embodiment, the same laser point exists in each data channel, and p laser points perform different rounds of position transformation operations in parallel to obtain N target points, that is, p target offset coordinates that need to participate in the addition of occupation probability values. Whenever the p target points in the current layer grid map obtained by each round of position transformation operations are calculated, the accumulator controls the occupation probability values corresponding to the p target points to be added to the probability sum value result previously added, and then updates the current probability sum value result added to the probability sum value result previously added, which is also recorded as the dynamic probability sum value corresponding to the laser point; the initial probability sum value result added is a value of 0. Since the laser point processing module participates in the calculation in the form of hardware, the laser point processing module realizes that each output of a target point and its corresponding occupation probability value has been added to obtain the dynamic probability sum value accumulated last time.
[0016] When the laser point processing module determines that the current laser point is an infeasible solution based on the dynamic probability and value corresponding to the current laser point, the laser point processing module removes the current laser point so that it no longer performs each round of position transformation operations, and the accumulator stops adding until the laser point in the batch of laser points used for positioning the current layer grid map that does not participate in the accumulation of occupancy probability values in the current layer grid map is updated to the current laser point. Therefore, when screening infeasible solutions from a batch of laser points used for the current layer grid map, stop adding the occupancy probability values corresponding to the target points obtained in the current layer grid map by the corresponding round position transformation operations output in parallel by each data channel, so that there is no need to control the same laser point to complete the position transformation operations required to be performed in the current layer grid map in each data channel, so as to reduce the calculation time of the hardware circuit; then trigger the laser points in the batch of laser points used for positioning the current layer grid map that do not participate in the accumulation of occupancy probability values in the current layer grid map to be updated as the current laser points, and for the updated current laser points, use an accumulator to accumulate the occupancy probability values corresponding to the target points obtained in the current layer grid map through each round of position transformation operations. In addition, when it is judged that the current laser point is an infeasible solution based on the dynamic probability and value corresponding to the current laser point, it is determined to exclude the infeasible solution from the batch of laser points used for the current layer grid map, which is equivalent to filtering the noise information in the laser point cloud.
[0017] Specifically, in the laser point processing module, a strategy for screening out infeasible solutions from a batch of laser points used for positioning the current grid map based on the dynamic probability and value of the target point includes: in one grid map, when the result of the real-time added dynamic probability and value after calculation processing is less than or equal to a certain threshold, the current laser point is determined as an invalid laser point in the current grid map, that is, an infeasible solution, and is preferentially excluded when traversing the next grid map, and is not used as a laser point for positioning the next grid map, so that before the occupation probability values obtained by controlling the same laser point to perform the position transformation operation required to be performed in one grid map in parallel in each data channel are completely accumulated together (repeatedly accumulated together under the scheduling of the state machine), the calculation of the dynamic probability and value is terminated in time, and the number of cumulative summations of the occupation probability values corresponding to the target point by the accumulator set in the laser point processing module is reduced, so as to reduce the invalid calculation time of the hardware circuit, thereby reducing the time of the laser point processing module using the multi-resolution grid map for positioning.
[0018] In summary, compared with the corresponding position transformation operation and feasible solution layer-by-layer search operation in the software environment, the laser point screening system disclosed in the present application adopts a multi-channel parallel execution of the position transformation operation and the accumulator structure, and controls the same laser point to perform the position transformation operation required to be performed in a layer of grid map in parallel in each data channel. Before the occupation probability values obtained are completely accumulated together (repeatedly accumulated together under the scheduling of the state machine), the infeasible solution is screened out and the calculation of the dynamic probability and value is terminated in time, thereby reducing the amount of accumulated calculation, wherein the position transformation operation required to be performed in each layer of the grid map is pre-set, but when an infeasible solution is judged in real time based on the dynamic probability and value, the current laser point will be abandoned to terminate the execution of the position transformation operation or the accumulation operation of the corresponding occupation probability value in advance. It is conducive to speeding up the acquisition of the optimal laser point, greatly reducing the amount of data search, and also reducing the number of repeated executions of the position transformation operation in each data channel, speeding up the positioning operation speed, reducing the repositioning time of the multi-resolution grid map, and facilitating the implementation of real-time positioning.
[0019] On the basis of the above-mentioned embodiment, under the triggering of the state machine control module, there is: a laser point processing module, which is used to determine that the current laser point is a feasible solution based on the dynamic probability and value corresponding to the current laser point, set the feasible solution as the laser point for positioning the next layer of grid map and write it back to the DDR memory, so that when each data channel performs a corresponding round of position transformation operation in the next layer of grid map, the laser point for positioning the next layer of grid map written back to the DDR memory is updated to the current laser point, and then the updated current laser point is read from the DDR memory, so as to realize the layer-by-layer screening of feasible solutions in the grid map with low to high resolution, and update a batch of laser points for positioning the current layer of grid map layer by layer. In addition, when the laser point processing module determines that the current laser point is a feasible solution based on the dynamic probability and value corresponding to the current laser point, the accumulator stops adding until the laser point in the batch of laser points for positioning the current layer of grid map that does not participate in the accumulation of occupation probability values in the current layer of grid map is updated to the current laser point.
[0020] When the laser point processing module traverses to the next layer of grid map, each data channel needs to read the laser point used for positioning the next layer of grid map from the DDR memory before performing the same round of position transformation operation in the next layer of grid map, and can also directly obtain the target point and its occupancy probability value pre-obtained by the laser point used for positioning the next layer of grid map in the same round of position transformation operation from the DDR memory through the selector, so as to save the need to continue to perform the same round of position transformation operation in the next layer of grid map. Here, each data channel is provided with a selector to realize the parallel calling of the intermediate coordinate value (the coordinate of the target point obtained by the same round of position transformation operation in the current layer of grid map) calculated in the last real-time positioning (i.e., the same laser point performs the position transformation operation to obtain multiple target points) without controlling the laser point to repeatedly perform the same round of position transformation operation, thereby reducing the repositioning calculation time under multi-resolution grid maps.
[0021] It should be noted that there are multiple layers of multi-resolution grid maps, and each layer of grid maps is configured with a resolution; the number of rounds of position transformation operations required to be performed on each layer of grid maps is equal, and the number of rounds of position transformation operations required to be performed on each layer of grid maps is equal to the product of the number of data channels and the preset integer multiple, and the preset integer multiple is preferably greater than the value 1, and less than the number of rounds of position transformation operations required to be performed on each layer of grid maps; the position transformation operations required to be performed on each layer of grid maps are pre-set, especially the position and posture parameters included in the position transformation operations required to be performed on the first layer of grid maps will make a reference amount. Each data channel is configured to perform at least one round of position transformation operations on the laser point, and the position transformation operations performed by any two data channels are two rounds of position transformation operations of different types, and support parallel execution in the data channels in which they are located. Each data channel is configured to perform at least two rounds of different types of position transformation operations on the laser point. Preferably, one round of position transformation operations means that an angle deflection operation is first performed on a laser point, and then a coordinate offset operation is performed along one coordinate axis direction, and then a coordinate offset operation is performed along another coordinate axis direction. At least one of the angle deflection operations and the coordinate shifting operations in various coordinate axis directions required for different wheel position changing operations or different types of two-wheel position changing operations is different.
[0022] In the same layer of grid map, when the cumulative sum of the occupation probability values of the target points obtained by executing each round of position transformation operations in parallel in each data channel for all current laser points is greater than or equal to a threshold, the current laser point is set as a feasible solution, that is, a feasible solution of the current layer of grid map. At this time, the accumulator can also be stopped from adding the occupation probability values that have not participated in the accumulation, so as to reduce the amount of invalid calculations paid by the laser point processing module. Then, the laser points that have not participated in the accumulation of occupation probability values in the current layer of grid map in a batch of laser points used for positioning the current layer of grid map, or the laser points that have not participated in the accumulation of occupation probability values in the next layer of grid map in a batch of laser points used for positioning the next layer of grid map (for the scene of starting to traverse the next layer of grid map) are triggered to be updated to the current laser point, so that the accumulator can be controlled to add the occupation probability values output in parallel by each data channel.
[0023] On this basis, the laser point processing module traverses to the last layer of grid map (the grid map with the highest resolution), and judges each feasible solution from a batch of laser points used for positioning the last layer of grid map as the optimal feasible solution set, and provides repositioning posture data for the grid map with the highest resolution. Therefore, under the triggering of the state machine control module, the laser point processing module can first form the initial candidate solution set on the grid map with the lowest resolution and start searching for feasible solutions, and then traverse layer by layer from low to high resolution in the multi-resolution grid map, and select the feasible solution set from the candidate solution set of each layer of grid map and use it as the candidate solution set of the next layer of grid map, until the final feasible solution set is selected in the grid map with the highest resolution as the optimal feasible solution set, and then the laser point repositioning process in the multi-resolution grid map is considered to be completed.
[0024] Therefore, after the feasible solution is screened out, it is directly updated to the laser point used for positioning the next layer of grid map. Therefore, in the higher resolution grid map, the fewer laser points are used for positioning, which is conducive to obtaining the optimal laser point, greatly reducing the amount of data search, and also reducing the number of repeated executions of position transformation operations in each data channel, speeding up the positioning operation speed, reducing the repositioning time of multi-resolution grid maps, and facilitating the implementation of real-time positioning.
[0025] In some embodiments, the laser point processing module sequentially accumulates the occupancy probability values corresponding to the target points obtained by performing the required position transformation operations on a batch of laser points used for positioning the current layer of the grid map, and obtains a map probability and value, which can be used as all the map probabilities and values required for positioning a position to be relocated. The laser point screening system supports software instructions to set the laser points corresponding to the map probabilities and values in the last layer of the grid map as the relocated positions in the multi-resolution grid map.
[0026] As an embodiment, the laser point processing module is used to control a laser point to perform a round of position transformation operation in the current layer grid map to obtain a target point according to the control signal sent by the state machine control module. As a result of a laser point cyclically executing or performing a position transformation in a layer grid map according to the control signal sent by the state machine control module, the position coordinates and angle information of a target point are obtained. Since it is based on the hardware logic circuit, the laser point processing module simultaneously obtains the new laser point and the map data of a layer grid map (which can also be a grid map with higher resolution) from the DDR memory, and at the same time, the sum of the occupation probability values corresponding to the multiple target points output by the accumulator (forming the dynamic probability sum value) is called to perform threshold judgment to determine the feasible solution in the layer grid map currently read, and the laser points judged as feasible solutions obtained by the corresponding wheel position transformation operations (representing different types of wheel position transformation operations, corresponding to different posture offset effects and obtaining corresponding occupation probability values) in each data channel, the target points and their corresponding occupation probability values obtained by the laser points judged as feasible solutions in the current layer grid map by performing each round of position transformation operations. In each layer of the grid map, that is, in each resolution of the grid map, the posture data corresponding to each grid is configured with an occupation probability value, so that each target point or each laser point has a matching occupation probability value. Thus, the laser point processing module realizes calculation and search at the same time. It should be noted that because the various operation instructions loaded in the software environment are serially executed, it is impossible to implement parallel execution of operation instructions, and the hardware logic circuit supports pipeline processing of data, that is, calculation and search at the same time, and writes the feasible solution determined in real time back to the DDR memory. For example, under the condition that the AHB bus frequency is 300MHz and the CPU main frequency is 1GHz, the CPU is used to perform real-time positioning on a grid map of a certain scale, which takes about 10ms; when the AHB bus frequency and the map size remain unchanged, the positioning logic circuit is used to process the grid map of the same size, such as repositioning (restoring the positioning of the target point that needs to be positioned after it is lost), which takes 1.54ms. In contrast, the method of positioning by hardware logic circuit, i.e., introducing the laser point processing module, not only greatly reduces the requirements for CPU frequency or system clock frequency, but also makes the overall time consumption of the positioning logic circuit less than that of the CPU processing method, and improves the efficiency by at least 3 times. This ensures that the laser point screening system can efficiently complete the repositioning of the map at a lower frequency and with certain hardware resources.
[0027] In some embodiments, the DDR memory is used to store laser points collected by the laser sensor and located in the current detection area, and is also used to store a multi-resolution grid map representing the current detection area, so that the laser point processing module traverses the current detection area according to each level of resolution; each resolution grid map corresponds to a layer of grid map, so that the grid maps at multiple resolutions are configured as a multi-layer grid map arranged in order from low to high resolution; the laser point screening system is electrically connected to the laser sensor, and each layer of grid map or each resolution grid map can be regarded as a block map generated within the effective detection range of the laser sensor, except that the resolution required to represent the effective detection range is different, and the degree of refinement displayed is different; the current detection area is represented by all All rounds of position transformation operations that the laser point needs to perform in the current layer of grid map form a position drift area in the corresponding angles and coordinates (candidate solutions); in a layer of grid map, the candidate solution set is a set of all candidate solutions to be traversed that are pre-set in a layer of grid map, and each candidate solution to be traversed is a combination of angles and coordinates to be traversed; wherein, one candidate solution corresponds to one round of position transformation operations; one round of position transformation operations is represented as a combination of an angle and a coordinate, or a combination of an angle deflection and a coordinate offset, so that the coordinate offset of a feasible solution in the current layer of grid map is used to represent a coordinate area in the next layer of grid map, that is, a higher resolution grid map needs to use more grids to represent an area of the same physical size in a lower resolution grid map.
[0028] It should be noted that the current grid map is a grid map currently obtained by the laser point processing module; the next grid map is a grid map obtained by the laser point processing module next time; the resolution of the next grid map is higher than the resolution of the current grid map. Both the current grid map and the next grid map are laser grid maps, which accept laser points (i.e., the position coordinates of laser points, scanning points, or point cloud points) falling into the corresponding grids and match an occupancy probability value in the grids. For the grid map, the entire environment scanned by the laser sensor is first divided into rectangular grids with the same side length. The side length of the grid is selected according to the size of the autonomous mobile device where the laser point screening system is located and the need for environmental representation. As for the resolution of the map, it can be represented by the number of grids. For example, under a 0.05m resolution map, 1m needs to be represented by 20 grids. Then, through the continuous movement of the robot in the environment, the information of each grid in the scanned environment is obtained and an occupancy probability value is assigned to represent the probability of this grid being occupied. Each grid represents a rectangular block, and a value in the range of (0,1) is used to indicate the probability of this block being occupied, indicating whether there is an obstacle at the corresponding physical location. Therefore, the map data of the grid map may include the coordinates of the grid, the position information of the target point in the grid map, the occupancy probability value corresponding to the target point falling into the corresponding grid, the grid side length, the grid map coordinate system elements, the map resolution, the coordinate offset step required for coordinate offset in the grid map, and the angle deflection step required for angle deflection in the grid map, which can all be stored in the DDR memory.
[0029] The automatic moving device may be an automatic moving robot or an unmanned vehicle, etc., as long as it is a device that can move automatically without human intervention. In addition, in the above embodiment, the robot is equipped with a laser radar for distance measurement.
[0030] As an embodiment, under the cyclic scheduling of the state machine control module, the laser point processing module is used to automatically perform the following steps: Step 1, in the current layer grid map, traverse each laser point in a batch of laser points used for positioning the current layer grid map in turn; in the process of traversing each laser point, control the current laser point to perform each round of position transformation operation in parallel in each data channel, so that each data channel obtains the target point in parallel; or select the pre-updated current laser point and the target point and its corresponding occupancy probability value obtained by performing the position transformation operation on the pre-updated current laser point in the previous layer grid map through the internal selector in each data channel (generally, the target point is pre-stored). It can be understood that each time step 1 is executed, one of the laser points in the batch of laser points used for positioning the current grid map is traversed, and the laser point is set as the current laser point, and the current laser point is controlled to perform each round of position transformation operation in parallel in each data channel in the first grid map, or the pre-updated current laser point and its corresponding occupancy probability value are selected by the selector in the Mth (M is greater than or equal to 2)th grid map; in the process of traversing the grid map, under the cyclic scheduling of the state machine control module, the laser point processing module outputs the target point and its corresponding occupancy probability value in parallel in each data channel by repeatedly executing step 1 until all the laser points in the batch of laser points used for positioning the current grid map are traversed.
[0031] It should be noted that the laser points in each data channel perform at least one round of position transformation operation in parallel; the current layer grid map is a layer grid map currently obtained by the laser point processing module, which can be shared by each data channel.
[0032] Step 2: Whenever each data channel obtains the corresponding occupancy probability value in parallel, the accumulator is triggered to accumulate the occupancy probability values generated in parallel once, that is, the accumulator accumulates the occupancy probability values output in parallel by each data channel once in the same clock cycle, and calculates the dynamic probability and value of the current laser point. And based on the currently calculated dynamic probability and value, it is judged whether the current laser point is a feasible solution or an infeasible solution; whenever a feasible solution is judged in the current layer grid map, the currently judged feasible solution is updated to the laser point used for positioning the next layer grid map, and the currently judged feasible solution, the target point required for the currently judged feasible solution and its corresponding occupancy probability value are written into the DDR memory; wherein, when the current laser point is judged to be an infeasible solution based on the currently calculated dynamic probability and value, the accumulator suspends the addition of the occupancy probability value, and then the occupancy probability value sum calculation can be exited in advance.
[0033] In some embodiments, step 2 determines the relationship between the sum of the dynamic probability sum of the current laser point and the dynamic change result of the single point probability maximum value and a certain threshold value to screen out feasible solutions from the candidate solution set determined in step 1, and exclude the infeasible solution to determine the laser point used for positioning the next layer of grid map, and stop the accumulator in advance to continue the accumulation operation in step 2. Then trigger the laser points in the batch of laser points used for positioning the current layer of grid map that do not participate in the accumulation of occupation probability values in the current layer of grid map to be updated as the current laser point. In step 2, the occupation probability values corresponding to each target point obtained by a round of position transformation operations performed by the same laser point in each data channel are sequentially added, which is equivalent to the accumulation operation. The number of additions can be regarded as the number of accumulations of occupation probability values one by one, and before judging it as an infeasible solution or a feasible solution, the sum obtained by each addition needs to be threshold judged.
[0034] Step 3: After all laser points in the current layer grid map have been traversed and all feasible solutions have been determined, all feasible solutions determined in the current layer grid map are set as all laser points for positioning the next layer grid map, and all laser points for positioning the next layer grid map are updated to the batch of laser points for positioning the current layer grid map, and the next layer grid map is updated to the current layer grid map described in step 1. Preferably, the number of all feasible solutions determined in the current layer grid map is less than the number of the batch of laser points for positioning the current layer grid map. Then, steps 1 to 3 are repeated until a grid map with the highest resolution is traversed and all feasible solutions are determined therefrom, and all feasible solutions determined in the grid map with the highest resolution are set as laser point clouds for positioning the self-moving device where the laser point screening system is located.
[0035] In step 3, the next layer of grid map is updated to the current layer of grid map to realize the layer-changing traversal of the multi-resolution grid map; the steps 1 to 3 are repeatedly executed to realize the screening of the corresponding feasible solution set in the candidate solution set of each layer of grid map in the order of resolution from low to high; until the highest resolution layer of grid map is traversed and the feasible solution set (all determined feasible solutions) is screened out from it, the latest screened feasible solution is set as the optimal feasible solution, wherein, when the highest resolution layer of grid map is traversed and the feasible solution set is screened out from it, it can be determined that the traversal of the multi-resolution grid map has been completed. Combining the above steps 2 and 3, it can be known that the occupation probability values corresponding to the target points obtained by the corresponding wheel position transformation operation of the same laser point in each data channel are all added together to obtain the corresponding dynamic probability and value. The number of dynamic probability and value is not specifically limited and will change with the change of the number of accumulations of the accumulator.
[0036] Based on the parallel pipeline design concept of the hardware circuit, steps 1, 2, 3 and 4 disclosed in this embodiment support parallel execution or sequential execution under the control of the state machine control module, so as to realize that while controlling a laser point to perform a round of position transformation operation in a layer of grid map, an infeasible solution or a feasible solution can be judged in the same layer of grid map. It also supports adding the occupancy probability values output in parallel by each data channel once or stopping the accumulation immediately. At the same time, if there is a feasible solution, the target point and its corresponding occupancy probability value calculated in each data channel are written into the DDR memory. Among them, the cyclic scheduling of the state machine control module is that the trigger signal sent by the state machine control module controls the laser point processing module to repeatedly perform the operations of step 2 to step 4; the laser point processing module selects feasible solutions in each layer of the grid map in order from low to high resolution, and can traverse and calculate the target point in the same layer of the grid map while judging the feasible solution or the infeasible solution, until recursively traversing to the highest resolution layer of the grid map and judging all feasible solutions therefrom, so as to set all feasible solutions in the highest resolution layer of the grid map as the laser point cloud positioned by the self-mobile device where the laser point screening system is located.
[0037] On the other hand, the parallel execution of steps 1 to 4 triggers the laser point processing module to traverse and screen the multi-resolution grid map layer by layer based on multiple data channels, and before calculating the sum of the corresponding occupancy probability values of all target points obtained by the position transformation operation required to perform the same laser point in the current layer of the grid map, it can judge in advance whether it is a feasible solution or a feasible solution, and control the accumulator to suspend the addition operation, so as to speed up the acquisition of feasible solutions at a finer resolution, reduce the amount of hardware circuit calculation, and improve the search speed.
[0038] It can be understood that, under the cyclic scheduling of the state machine control module, each time step 1 is executed in the current layer grid map, a laser point obtains the corresponding target point and its corresponding occupancy probability value by performing a round of position transformation operation; under the cyclic scheduling of the state machine control module, each time step 2 is executed to accumulate a dynamic probability and value, the number of rounds of position transformation operations executed in the same layer grid map is equal to the number of data channels, and when it is determined that the current laser point is an infeasible solution, step 2 is suspended so that the number of accumulations generated by the accumulator in step 2 under the cyclic scheduling of the state machine control module is less than the preset integer multiple, which is the number of accumulations for the same laser point, or the same laser point is triggered to terminate the execution of the position transformation operation required to complete a layer of grid map in the laser point processing module, until the laser point that does not participate in the accumulation of occupancy probability values in the current layer grid map among a batch of laser points used for positioning the current layer grid map is updated to the current laser point, and then the accumulator is controlled to work.
[0039] Based on the above embodiment, when the laser point processing module executes step 2, the method for judging whether the current laser point is a feasible solution or an infeasible solution based on a currently calculated dynamic probability and value comprises the following steps: Step 21, the laser point processing module first determines that the number of rounds of position transformation operations that the current laser point needs to perform in the current layer grid map is N, and determines that the current laser point is configured to perform p rounds of position transformation operations in parallel in p data channels, and obtains p target points and their corresponding occupation probability values in parallel; one laser point is configured to perform one round of position transformation operations in one data channel; Step 22, the laser point processing module controls the occupation probability values corresponding to the p target points to be added through the accumulator in turn, so that the occupation probability values generated by each data channel are added to obtain the dynamic probability sum value sum(p) of the current laser point; wherein p is equal to the number of data channels, which is less than or equal to N; in this embodiment, whenever the laser point processing module obtains the occupation probability value corresponding to a target point, the accumulator controls the current occupation probability value to be added to the dynamic probability sum value sum(i) obtained last time, to obtain the dynamic probability sum value of the current laser point. Preferably, when the laser point processing module detects through counting that the addition is to the i-th laser point, the accumulator calculates the i-th dynamic probability sum value.
[0040] Step 23, the laser point processing module calculates the sum of sum(p) and (Np)*max_prob to obtain the predicted probability and value, and then determines whether the predicted probability and value is greater than or equal to the first preset screening threshold. If yes, step 24 is executed to further determine the feasible solution. Otherwise, the current target point is determined to be an infeasible solution, which is excluded, and step 22 is stopped, that is, sum(i) is stopped, and the predicted probability and value are also stopped. The occupancy probability values obtained in each data channel for the same laser point are accumulated and calculated. The laser point that is not executed in step 22 in the current layer grid map among the batch of laser points used for the current layer grid map positioning is updated to the current laser point, and then the execution of step 22 is triggered. Therefore, before p changes to N, that is, before the accumulator is added to obtain sum(N), the infeasible solutions are sequentially screened out from the batch of laser points used for the current layer grid map positioning, and invalid feasible solutions are excluded in advance. It is also convenient to exit the addition operation of step 22 as soon as an infeasible solution is found, so as to avoid the accumulator from performing subsequent redundant calculations.
[0041] For calculating the sum of sum(p) and (Np)*max_prob, the predicted probability and value can be obtained. Here, an accumulator or other specific adder can be used for implementation, and there is no limitation here; wherein, p is equal to the number of data channels, less than or equal to N, and p is a positive integer, and N generally reaches hundreds. (Np)*max_prob is used to represent a dynamic reference value, which changes with the change of p. The sum of sum(p) and (Np)*max_prob is regarded as a dynamic predicted probability and value. Since the laser point processing module traverses the multi-resolution grid map layer by layer, the sum of sum(p) and (Np)*max_prob calculated by the laser point processing module in the corresponding layer of the grid map will be continuously updated.
[0042] Step 24, the laser point processing module repeatedly executes steps 21 and 22 to trigger the current laser point to add the occupation probability values obtained by executing new p-round position transformation operations in parallel on p data channels, wherein each time step 22 is repeated, the numerical increment of p is p, and the accumulator continues to accumulate the occupation probability values corresponding to the new p-round position transformation operations on the basis of the dynamic probability and value already obtained, until the dynamic probability and value sum(N) of the current laser point is obtained, that is, when p is incremented to N according to the increment p, the dynamic probability and value sum(N) of the current laser point is obtained; then determine whether sum(N) is greater than or equal to the second preset screening threshold value, if so, determine that the current laser point is a feasible solution in the current layer grid map, otherwise determine that the current laser point is an infeasible solution.
[0043] The repeated execution of step 21 and step 22 is scheduled and executed by the state machine control module. Under the control of the state machine control module, the accumulator in the laser point processing module performs an addition operation on the occupation probability values input in parallel by each data channel during the repeated execution of step 22. The output dynamic probability sum value sum(p) increases continuously until p is updated to be equal to N, and the dynamic probability sum value sum(N) is obtained. The accumulator completes the addition operation with the number of rounds of position transformation operations required to be performed by the current layer grid map as an operation cycle; then the CPU determines whether sum(N) is greater than or equal to the second preset screening threshold value. If so, it is determined that the current laser point is a feasible solution in the current layer grid map. Otherwise, it is determined that the current laser point is an infeasible solution and is excluded. It can be removed from a batch of laser points used for positioning the current layer grid map. Among them, the first preset screening threshold value is less than or equal to the second preset screening threshold value, so as to improve the accuracy of feasible solution screening by combining the number of target points.
[0044] In the above-mentioned embodiment, step 21, step 22, step 23 and step 24 support parallel execution under the control of the state machine control module to improve the calculation and search efficiency. In some cases, they also support jumps between non-parallel steps to improve the flexibility of counting operations, addition operations and judgment operations.
[0045] It should be noted that max_prob is the maximum single-point probability, and the maximum single-point probability, addition order, number of additions, first preset screening threshold, second preset screening threshold and preset reference number are all preset, so as to facilitate direct call by the laser point processing module. Preferably, the first preset screening threshold and the second preset screening threshold set in each layer of the grid map are also updated to adapt to the change of map resolution and the change of the number of feasible solutions; or the first preset screening threshold, the second preset screening threshold and max_prob remain unchanged in traversing each layer of the grid map.
[0046] In summary, the hardware parallel processing involved (multiple data channels execute position transformation operations in parallel, and the occupation probability values output by each data channel are added) can determine an infeasible solution or a feasible solution from the same batch of laser points based on the dynamic probability and value of the target point. Specifically, under the control of the state machine control module, corresponding thresholds are used as screening criteria in different calculation and judgment stages to respectively determine feasible solutions and infeasible solutions in each layer of the grid map. Through the cyclic search method disclosed in steps 1 to 4 and steps 21 to 24, invalid laser points in the grid map to be traversed next time can be excluded in advance when searching in each layer of the grid map, thereby playing the role of laser point cloud filtering, reducing redundant calculations of the adder or accumulator circuit involved in step 22, and improving the operation speed.
[0047] On the basis of the above embodiment, under the control of the state machine control module, the laser point processing module is used for controlling the occupation probability values corresponding to the p target points in the current layer grid map to be added by the accumulator to obtain sum (p), and the current laser point is configured to perform a new p-round position transformation operation in the p data channels, and obtain the new p target points and their corresponding occupation probability values in parallel; wherein, when the laser point processing module determines in step 23 that the current laser point is an infeasible solution, the occupation probability values corresponding to the new p target points are stopped from being added to sum (p), and the predicted probability and value are stopped from being calculated. Therefore, under the control of the state machine control module, the occupation probability values corresponding to the corresponding p target points are promoted to be added in the hardware circuit environment, the corresponding dynamic probability and value are generated in real time, and the infeasible solution and the feasible solution are judged in real time, so that the laser point processing module can obtain sum (p) by adding in a pipeline manner, and obtain the new target point and its occupation probability value by performing a round of position transformation operation, and can also judge whether the laser point corresponding to the dynamic probability and value accumulated by the accumulator last time is an infeasible solution.
[0048] When it is determined that the current laser point is an infeasible solution in the current grid map, the occupation probability values corresponding to the new p target points are stopped from being added to sum(p), and the sum of sum(p) and (Np)*max_prob is stopped from being calculated, and the sum of sum(p+p) and (Npp)*max_prob is also stopped from being calculated, and the sum of sum(p+p) and (Npp)*max_prob is stopped from being calculated, then step 22 can be regarded as stopping execution to reduce the amount of invalid calculations, and at the same time, the laser points in the batch of laser points used for positioning the current grid map that have not performed step 22 in the current grid map are updated to the current laser points, then the same laser point can be controlled to perform a new round of position transformation operations in parallel in p data channels, and is located in the current grid map, until the batch of laser points used for positioning the current grid map is traversed, and it is determined that the infeasible solution is excluded from the batch of laser points used for positioning the current grid map. Of course, it can also be triggered that the laser point performs the corresponding round of position transformation operations required to be performed in the next grid map in each data channel.
[0049] The laser point processing module is used to determine whether the current laser point is an infeasible solution or a feasible solution by executing step 24, trigger the laser points in the batch of laser points used for positioning the current layer grid map that do not participate in the accumulation of occupancy probability values in the current layer grid map to be updated as the current laser point, and then repeat steps 21 to 24 until the batch of laser points used for positioning the current layer grid map is traversed, and it is determined that the laser points determined to be infeasible solutions are excluded from the batch of laser points used for positioning the current layer grid map; and each laser point in the batch of laser points used for positioning the next layer grid map is updated to the current laser point in turn. At the same time, the candidate solutions in the next layer of grid map are started to be traversed, and the laser point processing module updates the next layer of grid map to the current layer of grid map described in step 1 according to the implementation methods disclosed in the above steps 1 to 4; steps 1 to 3 are repeatedly executed until the highest resolution grid map is traversed and all feasible solutions are determined therefrom, and the laser point cloud positioned by the self-moving device where the laser point screening system is located is provided, thereby completing the traversal and repositioning of the multi-resolution grid map.
[0050] As an embodiment of the aforementioned step 1, when executing the step 1 in the first layer of the grid map, that is, the laser point processing module executes the step 1 in the process of traversing the first layer of the grid map, the laser point processing module sets the target point obtained by executing each round of position transformation operations in parallel in each data channel for the current laser point as the initial target point, including the coordinates of the initial target point, as the result obtained by executing each round of position transformation operations in parallel for the first time in each data channel; the initial target point is obtained by real-time calculation through the corresponding round of position transformation operations in each data channel, and is not the posture information directly called from the DDR memory using a selector. For example, in the Cartesian coordinate system of the grid map, the laser point is translated in the horizontal axis direction and the vertical axis direction to generate a new target point, wherein the translation amount in each coordinate axis direction is determined by the corresponding position transformation operation. Furthermore, if the current laser point is judged as a feasible solution in the first-layer grid map, the current laser point judged as a feasible solution is updated to the laser point used for positioning the second-layer grid map, and the corresponding initial target point is updated to the target point obtained by performing the same round of position transformation operation in parallel in each data channel for the laser point used for positioning the second-layer grid map, and the occupancy probability value corresponding to the corresponding initial target point is updated to the occupancy probability value corresponding to the target point obtained by performing the same round of position transformation operation in parallel in each data channel for the laser point used for positioning the second-layer grid map, and the updated laser point, target point and its corresponding occupancy probability value are all saved in the DDR memory, so as to facilitate reading the relevant laser point, target offset coordinates and their corresponding occupancy probability values from the selector when traversing the next layer of grid map.
[0051] The laser point processing module is used for executing the step 1 in the M-th layer grid map, and the selector set in each data channel selects the laser point used for positioning the M-1th layer grid map from the DDR memory, and the target point and its corresponding occupation probability value obtained by the laser point used for positioning the M-1th layer grid map in parallel performing the same round of position transformation operation in each data channel, so as to repeatedly execute steps 21 to 24, or execute steps 2 to 3, wherein M is greater than or equal to the value 2, and M is less than or equal to the maximum number of layers allowed to be configured in the multi-resolution grid map; wherein the currently selected target point and its corresponding occupation probability value are obtained when executing the step 2 in the M-1th layer grid map, and are the results of conversion and updating, and M is greater than or equal to the value 2; for example, when executing the step 1 in the second layer grid map, the laser point processing module controls the selector set in each data channel to directly read from the DDR memory the laser point used for positioning the next layer grid map judged from the initial target point, and its corresponding target point and its corresponding occupation probability value. This reduces the need to repeatedly perform position transformation operations on the same batch of laser points in a multi-layer grid map, saving computational effort in the process of searching the map layer by layer.
[0052] It should be noted that the first layer of grid map obtained by the laser point processing module from the DDR memory is the data of the first layer of grid map obtained from the DDR memory, wherein the first layer of grid map obtained by the laser point processing module from the DDR memory is the grid map with the lowest resolution stored in the DDR memory, and all wheel position transformation operations required to be performed in the grid map with the lowest resolution stored in the DDR memory are saved in the form of posture parameters and are all pre-set.
[0053] As an embodiment, a target point and its corresponding occupancy probability value are obtained in a grid map layer by executing a round of position transformation operation in each data channel for each laser point, and the matching relationship between the obtained target point and its corresponding occupancy probability value is preset; for the same laser point, the matching relationship between a target point and a round of position transformation operation is preset; so as to facilitate the call of the laser point processing module, specifically, it can be read from the DDR memory, or read from other storage units without occupying DDR bandwidth resources, or when the laser point is input to the laser point processing module for the first time, a round of position transformation operation is selected to calculate and obtain the corresponding target point; in this embodiment, the occupancy probability value corresponding to a target point is used to reflect the possibility of the autonomous mobile device or the laser sensor falling into the grid corresponding to the target point in the grid map layer, the laser point screening system is arranged inside the autonomous mobile device, the autonomous mobile device is equipped with at least one laser sensor, all the laser points are laser points located in the current detection area collected by the laser sensor, and the autonomous mobile device is located in the current detection area.
[0054] It should be noted that each layer of grid map is a block map generated within the effective detection range of the laser sensor, and the effective detection range of the laser sensor covers the current detection area; each layer of grid map is a block map of preset size, which is used to describe the area within the effective detection range of the laser sensor, covering the position drift range generated at various angles and coordinate axis directions. In the same layer of grid map, a round of position transformation operation is a combination of a coordinate and an angle, or a combination of a coordinate offset and an angle deflection. In addition, based on the difference in resolution, the laser point processing module corresponds to an area in a relatively high-resolution grid map from the coordinate information of a feasible solution in the lowest-resolution grid map, and the number of grids contained in the relatively high-resolution grid map is greater than the number of grids used to represent the coordinate information of a feasible solution in the lowest-resolution grid map.
[0055] As a way to evaluate the probability value of an autonomous mobile device falling into a position in the current detection area, each layer of grid map represents a current detection area; among a batch of laser points used for positioning the current layer of grid map, the dynamic probability and value corresponding to the same laser point are used to reflect the possibility of the autonomous mobile device or laser sensor falling into the corresponding offset grid range of a layer of grid map; it should be emphasized that the embodiment takes a partial environmental map as an example, that is, the current position of the autonomous mobile device equipped with the laser point screening system is taken as the origin, and a grid map of each resolution is generated within the effective search range of the set laser sensor. Considering that the laser beam emitted by the laser sensor has a certain range, that is, it can only scan an area within a certain range, preferably, when determining the search range, the range of the laser beam can be used as a basis, and a layer of grid map can be generated within the range of 5 meters around the autonomous mobile device. In the scenario where the autonomous mobile device is a robot, when the robot loses its positioning, there is a certain deviation in the current posture. For this reason, this embodiment performs a round of position transformation operation based on the current posture according to the set angle deflection and coordinate offset, and forms a corresponding target point. Therefore, when the robot moves, there is a certain drift error based on the current posture. This embodiment performs a grid position transformation operation on the basis of the current posture according to the coordinate offset and angle deflection set on the environment map to obtain the transformed robot posture information. The target point or the laser point judged as a feasible solution is relocated back to a posture information in a layer of grid map.
[0056] Preferably, the dynamic probability and value are used to reflect the accurate positioning of the robot on the grid. Figure 1 The larger the dynamic probability and value, the more accurate the robot positioning is in this layer of grid. Figure 1The greater the possibility of the position. Therefore, when the laser point screening system processes all the preset number of laser points collected at one time into all the dynamic probabilities and values required for locating a position to be relocated through the laser point processing module, the relocation algorithm disclosed in the prior art can select the laser point corresponding to the dynamic probability and value with the largest value as the relocation result, that is, the restored position is located on a layer of grid map with the preset number of laser points as the unit. Among them, a layer of grid map is generated within the effective detection range of the laser sensor with the current position of the laser sensor as the origin of the coordinate system. The preset number of laser points is a group of laser points obtained by the robot using a laser radar to scan a circle at the target position, which can be marked as laser points. Optionally, when determining the occupancy probability value of an area in an environmental map, the environmental map can be processed to obtain a corresponding grid map, and the positioning probability corresponding to the obstacles in the grid map can obey a normal distribution. There is a corresponding coordinate range for each grid side length in the grid map, which can be expressed as a map resolution. The environment map contains obstacles and blank areas; after the grid map is determined, it can be saved so that it can be used directly the next time the positioning is restored. In each data channel inside the laser point processing module, a selector can be used to select and read. Specifically, a corresponding selector is set in each data channel, and the selector can be directly called when the software notifies the next positioning recovery. On this basis, according to the current posture of the robot, the position of the robot in the grid map can be determined, and then the dynamic probability and value can be obtained according to the sum of the occupancy probability values of each corresponding grid point (the target point that may drift to) scanned by the laser probe. If the robot where the laser point screening system is located moves, the laser points stored in the DDR memory will be updated with the newly collected ones. As long as the laser point screening system keeps refreshing the occupancy probability value and the dynamic probability and value corresponding to its laser point in real time under the cyclic scheduling of the state machine control module, the new position to be relocated can be matched with the new dynamic probability and value, which can speed up the overcoming of the influence of laser point noise and positioning error collected by the laser sensor, so that the laser point screening system can maintain a high system performance in various positioning environments and various resolution grid maps, and can efficiently complete repositioning under multi-resolution grid maps.
[0057] In some application scenarios, the laser point screening system is arranged inside an autonomous mobile device, the autonomous mobile device is equipped with at least one laser sensor, and the exterior of the laser point screening system is configured to connect to the laser sensor; the autonomous mobile device may be a robot, and the laser sensor may be a laser radar installed on the robot. The dynamic probability and value are used to reflect the probability that the autonomous mobile device falls into the block area. Figure 1The probability of a position. The occupancy probability value corresponding to the target point indicates the probability of the laser point with the target offset coordinates obtained after a round of position transformation operation falling into the corresponding position of the block map, or indicates the probability of the autonomous mobile device falling into the corresponding position of the block map; each laser point has a corresponding relationship with the target offset coordinates obtained after a round of position transformation operation, and is pre-set for the laser point processing module to call.
[0058] As an embodiment, the laser point processing module is used to burst read a batch of laser points from the DDR memory under the trigger of the burst read command issued by the state machine control module, and read the map data of each layer of the grid map from the DDR memory in sequence according to the order of low to high resolution; wherein the state machine control module generates the burst read command by counting to schedule the laser point processing module to read out the laser points, target points and their corresponding occupancy probability values multiple times; the map data of each layer of the grid map includes the target points and their corresponding occupancy probability values.
[0059] Specifically, the DDR memory is used to store the laser points collected by the external laser sensor, and provide the source data for calculation for the positioning logic circuit, including providing the laser points and the map data of each layer of the grid map. Here, the DDR memory can transmit the multi-resolution grid map as a whole map data to the DDR memory, so that each data channel controls the laser point to perform the corresponding wheel position transformation operation in each layer of the grid map to obtain the corresponding target point. The laser point processing module is used to burst read out the laser point from the DDR memory under the control of the state machine control module; for example, by issuing a burst read command to read out a batch of laser points and map data from the DDR memory at one time. Among them, the number of the batch of laser points or the number of map data is equal to the burst length. The burst read control module schedules the laser point processing module to read out the laser points multiple times by counting, so that the preset positioning number of laser points are transmitted to each data channel in sequence. Preferably, the number of a batch of laser points used for the first layer of grid map positioning is the preset positioning number. The number of laser points read out in each burst is the burst length. The laser point processing module is also used to, under the control of the state machine control module, burst write the dynamic probability and value, the occupation probability value, and the coordinates of the target point output by the laser point processing module into the DDR memory; for example, by issuing a burst write command to burst write a batch of dynamic probability and value, and occupation probability value into the DDR memory, thereby improving the reading speed.
[0060] The laser point processing module is used to control the laser points in each data channel to perform angle deflection operations in parallel according to the angle information included in the corresponding wheel position transformation operation under the control of the state machine control module, and obtain reference coordinates in parallel; and control the reference coordinates obtained by each data channel to perform coordinate offset operations in parallel according to the coordinate information included in the corresponding wheel position transformation operation to obtain target offset coordinates, wherein the target offset coordinates are the coordinates of the target point, that is, the same laser point in each data channel is converted into the coordinates of the target point in parallel, wherein the target offset coordinates are the coordinates of the target point, in the same layer of the grid map, because a round of position transformation operation corresponds to a combination of a coordinate and an angle, or a combination of a coordinate offset and an angle deflection. Thus, the state machine control module and the positioning logic circuit are divided by means of hardware logic circuits to form multiple logic units mainly for calculation, caching, and state scheduling.
[0061] It should be noted that in the process of burst transmission of data by the laser spot processing module through the state machine control module, the addresses issued are aligned. For example, if the storage addresses read continuously in the same row are adjacent, the storage space (logical bank) is divided in the form of aligned addresses. When accessing burst read or burst write data externally, this division is required. The aligned address is determined by the width of the data transmitted per beat. The aligned address belongs to a continuous address, and the number of addresses that exist is the burst length. For the burst length, a burst refers to a method in which adjacent storage units in the same row continuously transmit data. The number of storage units (columns) involved in the continuous transmission is the burst length, which can be expressed in the DDR memory as the number of cycles of continuous transmission; a burst can be a burst read operation or a burst write operation. The state machine control module includes a burst read state machine, which supports burst16 (indicating that the burst length is equal to 16), burst8 (burst length is equal to 8), burst4 (burst length is equal to 4), burst2 (burst length is equal to 2) and single transmission (single length is equal to 2). Similarly, for the single length, single refers to the way of data transmission in a storage unit in the same row. The number of storage units (columns) involved in one transmission is the single length, which can be expressed as the number of cycles of one transmission in DDR memory; single can be a single read operation or a single write operation. In the process of the laser spot processing module performing a single data transmission operation through the state machine control module, the number of continuous addresses transmitted at one time is the single length. When the data is read or written externally, the single length is determined by the continuous data of the address transmitted per beat. Among them, the single length is less than the burst length, and the single length is greater than or equal to the value 1; the burst length indicates the number of continuous address units transmitted under one burst transmission operation; the burst transmission operation is a burst read operation or a burst write operation; the single length indicates the number of continuous address units transmitted under one single transmission operation; the single transmission operation is a single read operation or a single write operation. The ratio of the amount of data read in a burst to the amount of data read in a single burst is a preset integer value, so that the laser point processing module can perform a new round of position transformation operations on the laser points read in a burst by the laser point processing module in sequence after a single read operation of the preset integer value on the DDR memory.
[0062] It should be noted that DDR SDRAM (DDR for short) is a double data rate parallel dynamic random access memory. The DDR memory can establish an electrical connection with a bus outside the positioning logic circuit through a DDR interface to transform the memory system in the laser point screening system into a double data rate (DDR) memory system. DDR memory can not only be used as the largest memory in the laser point screening system, but the DDR interface of the DDR memory can significantly increase the data transmission rate without changing the maximum signal frequency of the system; even if the maximum frequency of the data signal is increased by two times, the DDR signal enables the external access device to double the throughput while maintaining the currently feasible maximum clock frequency.
[0063] As an embodiment, a preset parallel number of data channels is set inside the laser point processing module, and the preset positioning number is preferably greater than or equal to the preset parallel number. Correspondingly, the DDR memory is used to input the current laser point into each data channel at the same time to perform multiple rounds of position transformation operations in parallel. In the laser point processing module, each data channel is marked with a serial number, which can be set in order from small to large values; so that the same laser point is accessed by multiple data channels at the same time, and then the cumulative result of the occupation probability values corresponding to multiple target points is accumulated at one time by the accumulator, reducing the calculation burden of a single data channel.
[0064] In this embodiment, a selector is provided in each data channel, and a preset parallel number block storage array is provided inside the laser point processing module; in each data channel, the selector is used to select the laser point used for positioning the M-1 layer grid map from the DDR memory when executing step 1 in the M layer grid map, and the target point and its corresponding occupancy probability value obtained by performing the same round of position transformation operation in parallel in each data channel by the laser point used for positioning the M-1 layer grid map, and transmit them to a storage array connected to the data channel. Specifically, the laser point processing module is used to control the same laser point to perform angle deflection operations in parallel in each data channel under the scheduling of the state machine control module to obtain the reference coordinates in the current layer grid map; then control the reference coordinates obtained by each data channel to perform coordinate offset operations in parallel in the current layer grid map; when executing step 1 in the first layer grid map, the target offset coordinates and the corresponding occupancy probability values obtained by each data channel are selected and input into a storage array connected to the data channel through a selector, and are written into the DDR memory in sequence when the current laser point is judged to be a feasible solution; when the map data of the next layer grid map and the laser points used for positioning the next layer grid map are burst read from the DDR memory, it is configured to execute step 1 in the second layer grid map, and the target offset coordinates and the corresponding occupancy probability values in the current layer grid map are directly read through the selector for repositioning the next layer grid map.
[0065] The selector is used to select the laser point used for positioning the M-1th layer grid map from the DDR memory when executing step 1 in the Mth layer grid map, the target point obtained by performing the same round of position transformation operation in parallel in each data channel, and its corresponding occupancy probability value, and transmit it to a storage array connected to the data channel. Then, the path between the DDR memory and the storage array is selected in the same data channel, and it is directly used for the repositioning of the next layer grid map without performing the position transformation operation in the corresponding data channel, wherein M is greater than or equal to the value 2; the target offset coordinates corresponding to the feasible solution obtained last time are set in the last layer grid map obtained, such as the M-1th layer grid map.
[0066] In summary, the design of the selector in each data channel and its strobe input method reduce the number of times the laser point processing module repeatedly reads the same batch of laser points from the cache memory, and there is no need to repeat the trigonometric function calculation during repositioning, saving a lot of time consumed by trigonometric function calculation. This reduces the frequent access to the AHB bus.
[0067] Preferably, the amount of data access (the number of accesses to the address unit) transmitted from the DDR memory to each data channel each time is greater than the burst length, so that the state machine control module needs to initiate multiple burst read operations or the single read operation, so that the laser point processing module processes all the laser points used for positioning the current grid map obtained by real-time scanning into target offset coordinates that may be covered in the current layer grid map. Each laser point may need to undergo multiple rounds of position transformation operations, and the laser points in each data channel are allowed to perform the same round of position transformation operations in parallel; the larger the number of data channels provided in the laser point processing module, the smaller the number of laser points allocated to each data channel, the smaller the number of accumulated angle deflections and coordinate offsets performed in each data channel, and the reduction in the number of memory accesses.
[0068] Preferably, the preset positioning number is set to 200, and the preset positioning number of laser points represents 200 laser points, specifically, there are 200 X-axis (horizontal axis) coordinates and 200 Y-axis (vertical axis) coordinates. The burst length can be set to 16, then the laser points on the address unit of a burst length represent the coordinate values on 16 consecutive address units, and the burst length represents the number of address units used to store data, and each address unit stores 1 laser point or 1 target point or 1 target point coordinate or 1 target point corresponding to the occupancy probability value.
[0069] As an embodiment of the position transformation operation, each time an angle deflection operation is performed on the same laser point, a new reference coordinate is obtained, and then a coordinate shift operation is performed on the new reference coordinate to obtain a new target shift coordinate and index it to the corresponding occupancy probability value; one round of position transformation operation includes an angle deflection operation and a coordinate shift operation, and one coordinate shift operation includes one horizontal coordinate shift operation and one vertical coordinate shift operation; wherein, the same round of position transformation operation represents the same type of angle deflection operation and the same type of coordinate shift operation. In the first layer grid map, the number of angle deflection operations required for the same laser point is preset, and the number of coordinate shift operations required for the same reference coordinate is preset and configured by the registers in the laser point processing module, which can be configured to provide initial posture data for repeating steps 1 to 4 for the first round of position transformation operations required to be performed for the current laser point during the execution of step 1 in the first layer grid map. The number of angle deflection operations or the number of angle deflection operations included in a round of position transformation operations is equal to 1, and the number of coordinate offset operations or the number of coordinate offset operations included in a round of position transformation operations is equal to 1. Preferably, the number of angle deflection operations included in a round of position transformation operations is equal to the number of coordinate offset operations included in the same round of position transformation operations. In summary, the pose data required for traversing the grid map layer by layer to provide the corresponding candidate solutions is achieved.
[0070] As an embodiment, the same type of angle deflection operation requires the same number of deflection operations, and the same type of coordinate offset operation includes the same type of horizontal coordinate offset operation and the same type of vertical coordinate offset operation, so that in the same layer of grid map, the target point obtained after the same type of angle deflection operation and the same type of coordinate offset operation has the same posture relationship in the same layer of grid map relative to the same laser point before executing the current round of position transformation operation, wherein the angle deflection amount involved in the same type of angle deflection operation and the coordinate offset amount involved in the same type of coordinate offset operation correspond to the posture parameters included in the same round of position transformation operation disclosed in the aforementioned embodiment.
[0071] Preferably, in the same layer of grid map, when the same type of angle deflection operation and the same type of coordinate offset operation are represented by the same round of position transformation operation, the same type of angle deflection operation requires the same number of deflection, and the same type of coordinate offset operation includes coordinate transformation calculations with the same number of horizontal coordinate offsets and coordinate transformation calculations with the same number of vertical coordinate offsets. The horizontal coordinate offset operation includes a horizontal coordinate offset along the horizontal axis, and the vertical coordinate offset operation includes a vertical coordinate offset along the vertical axis, so that the position transformation operation includes coordinate offsets of multiple values. Therefore, the same type of horizontal coordinate offset operation requires the same number of coordinate offsets (relative to the first offset in the horizontal axis direction) and the same direction of coordinate offsets (for example, along the positive direction of the horizontal axis or the negative direction of the horizontal axis), so that the same type of horizontal coordinate offset operation generates the same coordinate offset on the horizontal axis; the same type of vertical coordinate offset operation requires the same number of coordinate offsets (relative to the first offset in the vertical axis direction) and the same direction of coordinate offsets (for example, along the positive direction of the vertical axis or the negative direction of the vertical axis).
[0072] It should be noted that for different laser points, the same type of angle deflection operation requires the same deflection direction and the same number of current deflection operations, and the same set of angle deflection operation formulas (composed of trigonometric functions) can be applied. However, since the present application selects a batch of laser points for positioning the next layer of grid map from a batch of laser points for positioning the first layer of grid map, the screening of feasible solutions is limited to searching the grid map layer by layer, and the laser points judged as feasible solutions in the previous layer of grid map will be repeatedly searched. Therefore, in addition to searching for feasible solutions in the first layer of grid map, the same set of angle deflection operation formulas (composed of trigonometric functions) will be used to perform trigonometric function calculations to obtain each target point. In the subsequent reading of each layer of grid map with a resolution higher than the first layer of grid map, the corresponding target points that have been calculated are directly called. Moreover, since the storage array pre-stores the trigonometric function values, when using laser points in the first layer of grid map for trigonometric function calculations, the trigonometric function values can be directly called for simple addition and multiplication operations. Thus, when relocating each layer of grid map, the laser point screening system saves trigonometric function calculation time.
[0073] Preferably, a round of position transformation operation includes: whenever the laser point processing module performs an angle deflection operation, the laser point processing module controls the corresponding reference coordinate to first perform a coordinate offset operation along one coordinate axis direction, and then perform a coordinate offset operation along another coordinate axis direction; wherein, when one coordinate axis direction represents the horizontal coordinate axis direction, the other coordinate axis direction represents the vertical coordinate axis direction, to indicate that the horizontal coordinate offset operation is performed first, and then the vertical coordinate offset operation is performed; when one coordinate axis direction represents the vertical coordinate axis direction, the other coordinate axis direction represents the horizontal coordinate axis direction, to indicate that the vertical coordinate offset operation is performed first, and then the horizontal coordinate offset operation is performed. In the coordinate system of each layer of the grid map, one coordinate axis direction is set perpendicular to another coordinate axis direction. One horizontal coordinate offset operation and one vertical coordinate offset operation are combined as coordinate offset operations in a round of position transformation operation. In some embodiments, in the laser point processing module, performing a round of position transformation operation includes: whenever each data channel of the laser point processing module performs an angle deflection operation, the laser point processing module controls the corresponding reference coordinate to perform a coordinate shift along one coordinate axis direction first, and then perform a coordinate shift along another coordinate axis direction to form a horizontal coordinate shift operation and a vertical coordinate shift operation, which can be understood as constituting a coordinate shift operation. Therefore, in the same round of position transformation operation, the offset direction along which the first coordinate shift is performed and the coordinate offset amount generated by the first coordinate shift relative to the coordinate before the execution in the offset direction are the same in different data channels, and the offset direction along which the second coordinate shift is performed and the coordinate offset amount generated by the second coordinate shift relative to the coordinate before the execution in the offset direction are the same in different data channels. Moreover, for laser points that perform two rounds of position transformation operations of different types in different data channels, they can be performed in parallel to output the target offset coordinates in parallel.
[0074] In this embodiment, the laser point processing module does not restrict the execution order between the horizontal coordinate offset operation and the vertical coordinate offset operation in a round of position transformation operation. Wherein, the laser point processing module is pre-configured with the maximum number of offsets allowed for the reference coordinates in the horizontal axis direction of the current layer grid map and the coordinate offset step in the horizontal axis direction, and the maximum number of offsets allowed for the reference coordinates in the vertical axis direction of the current layer grid map and the coordinate offset step in the vertical axis direction according to the resolution of the current layer grid map, which can be called by the corresponding data channel.
[0075] As an example, Figure 1 As shown, the laser point processing module includes a preset parallel number of posture transformation units, a preset parallel number of selectors, and a preset parallel number of RAM storage units; wherein a RAM storage unit is a storage array set inside the laser point processing module; the preset parallel number is represented by p, and preferably, p is an integer greater than 3. The preset parallel number of posture transformation units are each marked with a serial number, the preset parallel number of selectors are each marked with a serial number, and the preset parallel number of RAM storage units are each marked with a serial number; correspondingly, in Figure 1 In the example, a preset number of parallel pose transformation units are represented from top to bottom as pose transformation unit_1, pose transformation unit_2, ..., pose transformation unit_p; each of the preset number of parallel selectors is marked with a serial number, and correspondingly, in Figure 1 In the example, selector_1, selector_2, ..., selector_p are represented from top to bottom; each of the preset parallel number of RAM storage units is marked with a serial number, and correspondingly, Figure 1 In , from top to bottom, they are represented as RAM_1, RAM_2, ..., RAM_p. A posture transformation unit is connected to an input end of a selector marked with the same serial number, another input end of a selector marked with the same serial number is connected to a DDR memory, a selection end of a selector marked with the same serial number is connected to a CPU arranged outside the laser point screening system, and an output end of a selector marked with the same serial number is connected to a RAM storage unit marked with the same serial number; a RAM storage unit is connected to an input end of an accumulator as an addend signal input end, and a posture transformation unit, a selector and a RAM storage unit marked with the same serial number are sequentially connected to form a data channel. Correspondingly, in Figure 1In the embodiment, the posture transformation unit_1 is connected to an input end of the selector_1, the other input end of the selector_1 is connected to the DDR memory, the output end of the selector_1 is connected to RAM_1, so as to form a data channel 1 in the laser point processing module, and RAM_1 is connected to an accumulator. The posture transformation unit_2 is connected to an input end of the selector_2, the other input end of the selector_2 is connected to the DDR memory, the output end of the selector_2 is connected to RAM_2, so as to form a data channel 2 in the laser point processing module, and RAM_2 is connected to an accumulator. The posture transformation unit_p is connected to an input end of the selector_p, the other input end of the selector_p is connected to the DDR memory, the output end of the selector_p is connected to RAM_p, so as to form a data channel p in the laser point processing module, and RAM_p is connected to an accumulator.
[0076] A selector is used to select the occupancy probability value corresponding to each target point output by a posture transformation unit marked with the same serial number read from the DDR memory when executing step 1 in the first layer grid map, and transmit it to the RAM storage unit as the corresponding occupancy probability value obtained by the data channel in step 1.
[0077] In the process of traversing each layer of the grid map, while the selector transmits data to the RAM storage unit, the state machine control module triggers the RAM storage unit to control all laser points to perform p rounds of position transformation operations at the current laser point, and the occupation probability values corresponding to each target point obtained in parallel are accumulated together. The RAM storage unit controls the occupation probability value to be added once to obtain a sum (p). The execution subject of step 1 in the current layer of the grid map is the posture transformation unit. The state machine control module acts as a state machine that parallelly schedules the posture transformation unit and the RAM storage unit connected in each data channel to cyclically process data, and can let new data wait while executing the calculation function of old data.
[0078] In some embodiments, under the scheduling of the state machine control module, whenever there is idle memory space in the external FIFO, the RAM storage unit connected to the FIFO inputs the occupancy probability value indexed by it into the FIFO, and the FIFO receives the occupancy probability value input by the RAM storage unit in a first-in-first-out storage manner. In addition, under the scheduling of the state machine control module, whenever there is idle memory space in the RAM storage unit, a data channel connected to the RAM storage unit inputs the occupancy probability value corresponding to the target offset coordinates into the RAM storage unit, and if necessary, the target offset coordinates are also input to construct a mapping relationship between the coordinates and the occupancy probability value in the RAM storage unit; so as to trigger each data channel to read the calculated target point and its corresponding occupancy probability value during the position transformation operation required to be performed in the first layer of the grid map or the process of repeatedly performing step 1.
[0079] The selector is used to select the target points and their corresponding occupancy probability values obtained by executing the same round of position transformation operations of the laser points used for positioning the M-1th layer grid map when executing step 1 in the M-1th layer grid map, and transmit them directly to a connected RAM storage unit. It should be noted that, from steps 1 to 4 disclosed in the aforementioned embodiment, it can be seen that the selector is used to select the target points obtained by each round of position transformation operations required to be executed in the input M-1th layer grid map when executing step 1 in the M-1th layer grid map, which are actually the target points obtained corresponding to the feasible solutions in the M-1th layer grid map. Figure 1 It can be seen that the data path selected by the selector flows from the data cache module to the RAM storage unit without passing through the posture transformation unit in the data path, so there is no need to trigger the posture transformation unit in the data path to perform the position transformation operation, saving the time of the angle deflection operation and the coordinate offset operation, thereby speeding up the search speed of the feasible solution of each layer of the grid map when multiple data channels process data in parallel.
[0080] Based on the above embodiment, a preset number of parallel pose transformation units is provided, where p represents the preset number of parallel units, such as Figure 1As shown, from top to bottom, they are represented as a posture transformation unit_1, a posture transformation unit_2, ..., and a posture transformation unit_p, which are used to control the laser point to rotate in parallel with a preset angle deflection step when the laser point is acquired in the first layer grid map, and read the trigonometric function value corresponding to the angle deflection amount generated by the currently executed angle deflection operation from the RAM storage unit to obtain multiple reference coordinates, but the angle deflection operation is not performed when traversing the M-th layer grid map; thereby, the laser point is controlled in parallel to rotate one circle with a preset angle deflection step to obtain multiple reference coordinates, forming the rotation posture data under the currently executed angle deflection operation, which can be cached as the rotation posture data directly called when the subsequent step 1 is executed. In this embodiment, a preset number of parallel posture transformation units control the laser point to perform angle deflection operations in parallel, obtain reference coordinates in parallel, and then control the reference coordinates to perform coordinate offset operations in parallel. The reference coordinates are transmitted in the same data channel. Moreover, in the same data channel, a laser point is controlled by the posture transformation unit to perform angle deflection operations with a maximum number of target deflection times, and they occur continuously. The time interval between two adjacent times is determined by the state machine control module. Each posture transformation unit is used to control each reference coordinate to perform a coordinate shift operation along one of the coordinate axis directions in parallel after each reference coordinate is obtained in parallel, and after the coordinate shift operation occurs along another coordinate axis direction, determine that a laser point completes a round of position transformation operation in a data channel, and sets the coordinates of the target point obtained after a round of position transformation operation as the target offset coordinates, and then stores the occupation probability value corresponding to the target offset coordinates into the connected RAM storage unit, so that the preset parallel number of RAM storage units obtain the occupation probability value in parallel; it is also used to control selectors_1, selectors_2, ..., and selectors_p in parallel to input the target offset coordinates and the corresponding occupation probability value corresponding to the current laser point from the DDR memory when traversing the M-th layer grid map. The preset parallel number of posture transformation units are also used to obtain map data in the current layer grid map in parallel, including the target offset coordinates and the corresponding occupation probability value, and provide them to the laser point as a feasible solution in the previous layer grid map, so that the laser point is converted or matched to the corresponding target point (or target offset coordinates); wherein each posture transformation unit is used to perform different types of position transformation operations.
[0081] In this embodiment, a preset number of RAM storage units are used to control the occupation probability values corresponding to the target points transmitted in parallel by the selectors to the accumulator in parallel under the triggering of the state machine control module, and the accumulator performs an accumulation operation to obtain a dynamic probability sum value corresponding to the current laser point, so that before the occupation probability values corresponding to the target points obtained by the same laser point through all the position transformation operations required to be performed on the current layer grid map are completely accumulated together, they are updated to become the initial sum value of the accumulator, so that after the laser points in the batch of laser points used for positioning the current layer grid map that do not participate in the accumulation of occupation probability values in the current layer grid map are updated to the current laser point, the occupation probability values corresponding to the new target points transmitted in parallel by the selectors are continuously added through the accumulator, wherein the occupation probability values corresponding to the target points obtained by the same laser point through all the position transformation operations required to be performed on the current layer grid map are completely accumulated together, and the number of accumulations performed by the accumulator is equal to the preset integer multiple. Among them, the state machine control module is used to drive each RAM storage unit to add the occupancy probability values corresponding to the target offset coordinates obtained by different wheel position transformation operations in sequence by counting, so as to obtain the dynamic probability and value corresponding to the same laser point. In the hardware implementation process, the angle deflection operation and coordinate offset operation performed by the posture transformation unit are performed by an adder and subtractor; the coordinate offset direction, that is, the coordinate axis direction along which the coordinate offset is: adaptively configured in the associated register according to the requirements of the repositioning algorithm. In order to obtain a dynamic probability and value, or a dynamic probability and value, it is necessary to control the reference coordinates obtained by the same angle deflection operation in parallel in multiple data channels to offset along the horizontal axis direction of each layer of the grid map and along the vertical axis direction of each layer of the grid map, so as to provide enough coordinate offset states for the positioning of the repositioning algorithm at the software execution level to ensure the accuracy of repositioning.
[0082] The state machine control module is also used to index in parallel from each RAM storage unit a batch of occupancy probability values corresponding to the target offset coordinates obtained by different types of position transformation operations by counting, and trigger each RAM storage unit to output the occupancy probability values to the accumulator in an orderly manner; in each RAM storage unit, each batch of occupancy probability values corresponding to the target offset coordinates obtained by different types of position transformation operations are set to be output within the same clock cycle, so that the accumulator can simultaneously complete the addition operation of multiple occupancy probability values, thereby improving the effectiveness of the dynamic probability and value output by the accumulator.
[0083] It should be noted that the counting method can be obtained by counting at the same clock edge by the counter set in the state machine control module, which serves as the scheduling basis for each working state. That is, when the count reaches a certain clock cycle and the calculation time requirement of the relevant unit is met, the working state can be scheduled to avoid congestion of data transmitted on the bus and data transmitted between related units.
[0084] In some embodiments, a preset parallel number of RAM storage units are used to output in parallel the occupation probability values obtained by the same laser point in each round of position transformation operations performed in parallel, and the occupation probability values output in parallel are accumulated once, and the current accumulation result is used as the initial sum value for the next accumulation. Whenever the state machine control module counts that the number of accumulations reaches the preset integer multiple, the current accumulated dynamic probability sum value is set as a map probability sum value, and it is determined that the number of position transformation operations actually participated by the current laser point reaches the total number of position transformation operations required to be performed on the current layer of grid map, and the accumulated initial sum value is set to a value of 0, so as to trigger the laser point used for positioning the next layer of grid map to be updated to the current laser point, and start executing each round of position transformation operations in parallel in the next layer of grid map, wherein the number of rounds of position transformation operations required to be performed on the current layer of grid map and the preset parallel number are both pre-configured.
[0085] As an example, combining Figure 1It can be seen that the laser point screening system also includes a write cache module; a preset parallel number of RAM storage units, which are used to write the laser points that are judged as feasible solutions in the current layer grid map in parallel, and the target points and corresponding occupancy probability values obtained by executing the corresponding wheel position transformation operation in the current layer grid map into the write cache module in accordance with the established coordinate traversal order under the triggering of the write command issued by the state machine control module; wherein the established coordinate traversal order is the order of traversing the coordinate positions in a layer grid map by line change, or the order of traversing the coordinate positions in a layer grid map by column change. The write cache module, when preferably a FIFO memory, is used to cache the data output by the preset parallel number of RAM storage units in a first-in-first-out manner, and write the cached data burst into the DDR memory under the triggering of the write command issued by the state machine control module, wherein the cached data includes the laser points that are judged as feasible solutions, and the target points and corresponding occupancy probability values obtained by executing the corresponding wheel position transformation operation in the current layer grid map. Thus, the coordinate traversal module is used to write the coordinates of the feasible solution, the coordinates of the target point obtained by performing the position transformation operation, and the occupation probability value into the write cache module in sequence according to the established coordinate traversal order whenever the number of dynamic probabilities and values accumulated and calculated by the preset parallel number of RAM storage units reaches a certain cache number and write order specified by the write command issued by the state machine control module. The established coordinate traversal order is expressed as: map coordinates x0, y0, ..., x0, yn, x1, y0, ..., x1, yn, forming an order of traversing the coordinates of the laser point, the coordinates of the target point, and the occupation probability value in a layer of grid map, which is equivalent to the order of traversing the two-dimensional map area column by column, and specifically, it can be traversing the block map by changing columns along the positive direction of the horizontal axis, so that the write cache module can obtain the coordinates of the laser point and the target point and their corresponding occupation probability values by changing columns. Alternatively, the predetermined coordinate traversal sequence is expressed as: map coordinates x0, y0, ..., xn, y0, x0, y1, ..., xn, y1, forming an order of traversing laser points, target points and their corresponding occupancy probability values in a layer of grid map, which is equivalent to the order of traversing the two-dimensional map area row by row, and specifically, it can be traversing each layer of grid map row by row along the positive direction of the vertical coordinate axis. This allows the write cache module to traverse row by row and column by column to obtain each laser point used for positioning a new layer of grid map, the target point coordinates that have been obtained through position transformation operations in the previous layer of grid map, and the corresponding probability information.
[0086] On the basis of the above-mentioned embodiment, whenever all feasible solutions in the current layer grid map are written to the write cache module, it is determined that the traversal of the current layer grid map is completed, which corresponds to the result of executing the above-mentioned step 3, specifically, by repeatedly executing steps 1 and 2 to traverse all laser points in the current layer grid map to set a batch of laser points for positioning the next layer grid map.
[0087] Preferably, whenever the number of laser points, target points and their corresponding occupation probability values cached by the write cache module reaches the burst length, the state machine control module triggers the write cache module to write the burst length laser points, target points or their corresponding occupation probability and values into the DDR memory at one time; the state machine control module counts the number of data cached by the write cache module by counting. Therefore, the write cache module caches data in a first-in-first-out manner to achieve continuous acquisition of map coordinate information on adjacent address units.
[0088] In the embodiments provided in the present application, it should be understood that the disclosed systems and processors can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules and units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
Claims
1. A laser point screening system that traverses the grid map layer by layer, It is characterized in that The laser point screening system includes a state machine control module, a laser point processing module and a DDR memory; the laser point processing module is divided into multiple data channels and an accumulator; The laser point processing module is used to obtain a multi-resolution grid map from the DDR memory, and traverse the grid map layer by layer to obtain the position transformation operation required to be performed on the current layer grid map; The laser point processing module is used to read a batch of laser points for positioning the current layer grid map from the DDR memory in sequence according to the trigger signal sent by the state machine control module; Under the triggering of the state machine control module, the laser point processing module traverses the current layer grid map. Whenever a laser point is read, the laser point is recorded as the current laser point, and then the current laser point is transmitted to each data channel at the same time. The current laser point is configured in each data channel to execute each round of position transformation operations in the current layer grid map in parallel, and obtain the target point and its corresponding occupancy probability value in parallel; In each data channel, for the same laser point, the occupancy probability values corresponding to the target points in the current layer grid map obtained through each round of position transformation operations are added in sequence through the accumulator. The accumulator calculates the dynamic probability and value corresponding to the laser point each time it is added; The laser point processing module is used to determine that the current laser point is an infeasible solution based on the dynamic probability and value corresponding to the current laser point, and then remove the current laser point so that it no longer performs each round of position transformation operations, and the accumulator stops adding.
2. According to the laser point screening system of claim 1, It is characterized in that Under the triggering of the state machine control module, there are: The laser point processing module is used to determine that the current laser point is a feasible solution based on the dynamic probability and value corresponding to the current laser point, set the feasible solution as the laser point used for positioning the next layer of grid map and write it back to the DDR memory, so that when each data channel performs a corresponding round of position transformation operation in the next layer of grid map, the laser point written back to the DDR memory for positioning the next layer of grid map is updated to the current laser point, and then read the updated current laser point from the DDR memory, so as to realize layer-by-layer screening of feasible solutions in grid maps with low to high resolutions, and update a batch of laser points used for positioning the current layer of grid map layer by layer; When the laser point processing module determines that the current laser point is a feasible solution based on the dynamic probability and value corresponding to the current laser point, the accumulator stops adding until the laser point in the batch of laser points used for positioning the current layer grid map that does not participate in the accumulation of the occupancy probability value in the current layer grid map is updated to the current laser point; Among them, the multi-resolution raster map has multiple layers of raster maps, and each layer of raster maps is configured with a resolution; The number of rounds of position transformation operations required to be performed on each layer of the grid map is equal, and the number of rounds of position transformation operations required to be performed on each layer of the grid map is equal to the product of the number of data channels and a preset integer multiple; the position transformation operations required to be performed on each layer of the grid map are pre-set; Each data channel is configured to perform at least one round of position transformation operation on the laser point, and the position transformation operations performed by any two data channels are two rounds of position transformation operations of different types, and support parallel execution within the data channels.
3. The laser point screening system according to claim 2, It is characterized in that The laser point processing module is used to control a laser point to perform a round of position transformation operation in the current layer grid map to obtain a target point according to the control signal sent by the state machine control module, and at the same time obtain the map data of the new laser point and the current layer grid map from the DDR memory, and write the laser point judged as a feasible solution obtained by the corresponding round of position transformation operation in each data channel, the target point obtained by performing each round of position transformation operation in the current layer grid map by the laser point judged as a feasible solution and its corresponding occupancy probability value into the DDR memory; Among them, in each layer of the grid map, the posture data corresponding to each grid is configured with an occupancy probability value, so that each target point or each laser point has a matching occupancy probability value.
4. The laser point screening system according to claim 3, It is characterized in that Under the loop scheduling of the state machine control module, the laser point processing module is used to automatically perform the following steps: Step 1, traversing each laser point in a batch of laser points used for positioning the current layer grid map in sequence in the current layer grid map; in the process of traversing each laser point, controlling the current laser point to perform each round of position transformation operation in parallel in each data channel, so that each data channel acquires the target point in parallel; or selecting the current laser point updated in advance and the target point and its corresponding occupancy probability value obtained by performing the position transformation operation on the previous layer grid map by the selector set in each data channel; Step 2: Whenever each data channel obtains the corresponding occupancy probability value in parallel, the accumulator is triggered to accumulate the occupancy probability values generated in parallel once, and the dynamic probability and value of the current laser point are calculated; And based on the currently calculated dynamic probability and value, it is determined whether the current laser point is a feasible solution or an infeasible solution; Whenever a feasible solution is determined in the current grid map, the currently determined feasible solution is updated as the laser point used for positioning the next grid map, and the currently determined feasible solution, the target point required for the currently determined feasible solution and its corresponding occupancy probability value are written into the DDR memory; Step 3: After all laser points in the current layer grid map have been traversed and all feasible solutions have been determined therefrom, all feasible solutions determined in the current layer grid map are set as all laser points for positioning the next layer grid map, and all laser points for positioning the next layer grid map are updated to the batch of laser points for positioning the current layer grid map, and the next layer grid map is updated to the current layer grid map described in step 1; then, steps 1 to 3 are repeated until a grid map of the highest resolution is traversed and all feasible solutions have been determined therefrom, and all feasible solutions determined in the grid map of the highest resolution are set as laser point clouds for positioning the self-moving device where the laser point screening system is located; Among them, step 1, step 2, step 3 and step 4 support parallel execution or sequential execution under the control of the state machine control module; The cyclic scheduling of the state machine control module is that the trigger signal sent by the state machine control module controls the laser point processing module to repeatedly perform the operations of step 2 to step 4; Among them, the current layer of raster map is the layer of raster map currently traversed by the laser point processing module; the next layer of raster map is the layer of raster map traversed next time by the laser point processing module; the resolution of the next layer of raster map is higher than the resolution of the current layer of raster map; the previous layer of raster map is the layer of raster map traversed last time by the laser point processing module, and the resolution of the previous layer of raster map is lower than the resolution of the current layer of raster map.
5. The laser point screening system according to claim 4, It is characterized in that Under the cyclic scheduling of the state machine control module, each time step 1 is executed in the current layer grid map, a laser point obtains the corresponding target point and its corresponding occupancy probability value by performing a round of position transformation operation; Under the cyclic scheduling of the state machine control module, each time step 2 is executed to accumulate a dynamic probability and value, the number of rounds of position transformation operations executed in the same layer of the grid map is equal to the number of data channels. When it is determined that the current laser point is an infeasible solution, step 2 is suspended so that the number of accumulations generated by the accumulator in step 2 under the cyclic scheduling of the state machine control module is less than the preset integer multiple, or the same laser point is triggered to terminate the position transformation operations required to complete a layer of the grid map in the laser point processing module.
6. The laser point screening system according to claim 5, It is characterized in that When the laser point processing module executes step 2, the method for judging whether the current laser point is a feasible solution or an infeasible solution based on a currently calculated dynamic probability and value comprises the following steps: Step 21, the laser point processing module first determines that the number of rounds of position transformation operations that the current laser point needs to perform in the current layer grid map is N, and determines that the current laser point is configured to perform p rounds of position transformation operations in parallel in p data channels, and obtains p target points and their corresponding occupation probability values in parallel; one laser point is configured to perform one round of position transformation operations in one data channel; Step 22, the laser point processing module sequentially controls the occupation probability values corresponding to the p target points to be added through the accumulator, so that the occupation probability values generated by each data channel are added to obtain the dynamic probability sum value sum(p) of the current laser point; wherein p is equal to the number of data channels and is less than or equal to N; Step 23, calculate the sum of sum(p) and (Np)*max_prob to obtain the predicted probability and value, and then determine whether the predicted probability and value is greater than or equal to the first preset screening threshold value, if yes, execute step 24, otherwise determine that the current target point is an infeasible solution, and stop executing step 22 until the laser point in the batch of laser points used for positioning the current layer grid map that has not executed step 22 in the current layer grid map is updated as the current laser point; Step 24, the laser point processing module repeatedly executes steps 21 and 22 to trigger the current laser point to add the occupation probability values obtained by executing new p-round position transformation operations in parallel on p data channels, wherein each time step 22 is repeated, the numerical increment of p is p, and the accumulator continues to accumulate the occupation probability values corresponding to the new p-round position transformation operations on the basis of the dynamic probability sum value already obtained, until the dynamic probability sum value sum(N) of the current laser point is obtained; then determine whether sum(N) is greater than or equal to the second preset screening threshold value, if yes, determine that the current laser point is a feasible solution in the current layer grid map, otherwise determine that the current laser point is an infeasible solution; Wherein, step 21, step 22, step 23 and step 24 support parallel execution under the control of the state machine control module; Wherein, max_prob is the maximum single-point probability, and the maximum single-point probability, the first preset screening threshold, the second preset screening threshold, and the preset benchmark quantity are all preset; The first preset screening threshold is less than or equal to the second preset screening threshold.
7. The laser point screening system according to claim 6, It is characterized in that The laser point processing module is used for controlling the occupation probability values corresponding to p target points in the current layer grid map to be added by the accumulator to obtain sum (p), and the current laser point is configured to perform a new p-round position transformation operation in p data channels, and obtains new p target points and their corresponding occupation probability values in parallel; When the laser point processing module determines in step 23 that the current laser point is an infeasible solution, it stops adding the occupation probability values corresponding to the new p target points to sum(p), and stops calculating the predicted probability and value.
8. The laser point screening system according to claim 7, It is characterized in that The laser point processing module is used to determine whether the current laser point is an infeasible solution or a feasible solution by executing step 24, trigger the laser points in the batch of laser points used for the current layer grid map positioning that do not participate in the accumulation of occupancy probability values in the current layer grid map to be updated as the current laser point, and then repeat steps 21 to 24 until the batch of laser points used for the current layer grid map positioning is traversed, and it is determined that the laser points judged to be infeasible solutions are excluded from the batch of laser points used for the current layer grid map positioning; and each laser point in the batch of laser points used for the next layer grid map positioning is updated to the current laser point in turn.
9. The laser point screening system according to claim 8, It is characterized in that The laser point processing module is used for setting the target point obtained by performing each round of position transformation operation of the current laser point in parallel in each data channel as the initial target point when executing the step 1 in the first layer grid map; if the current laser point is judged as a feasible solution in the first layer grid map, then updating the current laser point judged as a feasible solution to the laser point used for positioning the second layer grid map, and updating the corresponding initial target point to the target point obtained by performing the same round of position transformation operation in parallel in each data channel for the laser point used for positioning the second layer grid map, and updating the occupation probability value corresponding to the corresponding initial target point to the occupation probability value corresponding to the target point obtained by performing the same round of position transformation operation in parallel in each data channel for the laser point used for positioning the second layer grid map, and saving the updated laser point, target point and their corresponding occupation probability values to the DDR memory; The laser point processing module is used for executing the step 1 in the M-th layer grid map, and the selector in each data channel selects the laser point used for positioning the M-1-th layer grid map from the DDR memory, and the target point and its corresponding occupancy probability value obtained by performing the same round of position transformation operation in parallel in each data channel for the laser point used for positioning the M-1-th layer grid map, so as to repeatedly execute steps 21 to 24, or execute steps 2 to 3, wherein M is greater than or equal to the value 2, and M is less than or equal to the maximum number of layers allowed to be configured in the multi-resolution grid map; Among them, the first layer of raster map is the lowest resolution raster map stored in the DDR memory. All wheel position transformation operations required to be performed in the lowest resolution raster map stored in the DDR memory are saved in the form of posture parameters and are pre-set.
10. The laser point screening system according to claim 9, It is characterized in that The laser point processing module is used to burst read a batch of laser points from the DDR memory under the trigger of the burst read command issued by the state machine control module, and read the map data of each layer of the grid map from the DDR memory in order from low to high resolution; wherein the state machine control module generates the burst read command by counting to schedule the laser point processing module to read the laser points, target points and their corresponding occupancy probability values multiple times; the map data of each layer of the grid map includes the target points and their corresponding occupancy probability values; The laser point processing module is used to control the laser points in each data channel to perform angle deflection operations in parallel according to the angle information included in the corresponding wheel position transformation operation under the control of the state machine control module, and obtain reference coordinates in parallel; and control the reference coordinates obtained by each data channel to perform coordinate offset operations in parallel according to the coordinate information included in the corresponding wheel position transformation operation to obtain target offset coordinates, wherein the target offset coordinates are the coordinates of the target point.
11. The laser point screening system according to claim 10, It is characterized in that A preset number of parallel data channels are arranged inside the laser point processing module, and a selector is arranged inside each data channel; a preset number of parallel block storage arrays are arranged inside the laser point processing module; In each data channel, a selector is used to select the laser points used for positioning the M-1th layer grid map from the DDR memory when executing step 1 in the Mth layer grid map, and the target points and their corresponding occupancy probability values obtained by performing the same round of position transformation operations in parallel in each data channel for the laser points used for positioning the M-1th layer grid map, and transmit them to a storage array connected to the data channel.
12. The laser point screening system according to claim 11, It is characterized in that Whenever an angle deflection operation is performed on the same laser point, a new reference coordinate is obtained, and then a coordinate shift operation is performed on the new reference coordinate to obtain a new target shift coordinate and index it to the corresponding occupancy probability value; a round of position transformation operation includes an angle deflection operation and a coordinate shift operation, and the coordinate shift operation includes a horizontal coordinate shift operation and a vertical coordinate shift operation; in the first layer grid map, the number of angle deflection operations required for the same laser point is preset, and the number of coordinate shift operations required for the same reference coordinate is preset; Among them, a round of position transformation operation includes: each time the laser point processing module performs an angle deflection operation, the laser point processing module controls the corresponding reference coordinate to first perform a coordinate offset operation along one coordinate axis direction, and then perform a coordinate offset operation along another coordinate axis direction; wherein, when one coordinate axis direction represents the horizontal coordinate axis direction, the other coordinate axis direction represents the vertical coordinate axis direction; when one coordinate axis direction represents the vertical coordinate axis direction, the other coordinate axis direction represents the horizontal coordinate axis direction.
13. The laser point screening system according to claim 12, It is characterized in that The same round of position transformation operations represents the same type of angle deflection operations and the same type of coordinate shift operations; The number of deflection operations required for the same type of angle deflection operation is the same, and the same type of coordinate offset operation includes the same type of horizontal coordinate offset operation and the same type of vertical coordinate offset operation, so that in the same layer of grid map, the target point obtained after the same type of angle deflection operation and the same type of coordinate offset operation has the same posture relationship in the same layer of grid map relative to the same laser point before the current round of position transformation operation is performed, wherein the angle deflection amount involved in the same type of angle deflection operation and the coordinate offset amount involved in the same type of coordinate offset operation correspond to the posture parameters represented by one round of position transformation operation; The horizontal coordinate shift operation includes performing a horizontal coordinate shift along the horizontal coordinate axis direction, and the vertical coordinate shift operation includes performing a vertical coordinate shift along the vertical coordinate axis direction.
14. The laser point screening system according to claim 13, It is characterized in that The laser point processing module includes a preset number of parallel posture transformation units, a preset number of parallel selectors, and a preset number of parallel RAM storage units; wherein a RAM storage unit is a storage array set inside the laser point processing module; A preset number of parallel pose transformation units are each marked with a serial number, a preset number of parallel selectors are each marked with a serial number, and a preset number of parallel RAM storage units are each marked with a serial number; A posture transformation unit is connected to an input end of a selector marked with the same serial number, another input end of a selector marked with the same serial number is connected to a DDR memory, and an output end of a selector marked with the same serial number is connected to a RAM storage unit marked with the same serial number; a RAM storage unit is connected to the accumulator, and a posture transformation unit, a selector and a RAM storage unit marked with the same serial number are sequentially connected to form a data channel; A selector, used for selecting, when executing step 1 in the first layer grid map, the occupancy probability value corresponding to each target point outputted by a posture transformation unit marked with the same serial number read from the DDR memory and transmitting it to the RAM storage unit as the corresponding occupancy probability value obtained by the data channel in step 1; A selector is used to select, when executing step 1 in the M-th layer grid map, the target points and their corresponding occupancy probability values obtained by executing the same round of position transformation operations of the laser points used for positioning the M-1-th layer grid map, which are sequentially input from the DDR memory, so that they are directly transmitted to a connected RAM storage unit.
15. The laser point screening system according to claim 14, It is characterized in that A preset number of parallel posture transformation units are used to control the laser point to rotate with a preset angle deflection step in parallel when the laser point is acquired in the first layer grid map, and read the trigonometric function value corresponding to the angle deflection amount generated by the currently executed angle deflection operation from the RAM storage unit to obtain multiple reference coordinates; Each posture transformation unit is used to control each reference coordinate to perform a coordinate shift operation in parallel along one coordinate axis direction and after the coordinate shift operation occurs in another coordinate axis direction, determine that a laser point completes a round of position transformation operations required to be performed in the first layer grid map, and sets the obtained coordinates of the target point as the target shift coordinates, and stores the occupancy probability value corresponding to the target shift coordinates into the connected RAM storage unit, so that a preset parallel number of RAM storage units obtain the occupancy probability value in parallel; Among them, the preset parallel number of posture transformation units are also used to respectively configure each round of position transformation operations required to be performed on the current layer grid map; the preset parallel number is p; the number of rounds of all position transformation operations required to be performed on the current layer grid map is N; A preset parallel number of RAM storage units are used to control, under the triggering of the state machine control module, the occupation probability values corresponding to the target points transmitted in parallel by each selector to the accumulator in parallel, and the accumulator performs an accumulation operation to obtain a dynamic probability sum value corresponding to the current laser point, so that before the occupation probability values corresponding to the target points obtained by all the position transformation operations required to be performed on the same laser point through the current layer grid map are completely accumulated together, they are updated to become the initial sum value of the accumulator, so as to continue to accumulate the occupation probability values corresponding to the new target points transmitted in parallel by each selector, wherein, in order to achieve the complete accumulation of the occupation probability values corresponding to the target points obtained by all the position transformation operations required to be performed on the same laser point through the current layer grid map, the number of accumulations performed by the accumulator is equal to the preset integer multiple.
16. The laser point screening system according to claim 15, It is characterized in that The laser point screening system also includes a write cache module; A preset parallel number of RAM storage units are used to write the laser points that are determined to be feasible solutions in the current layer grid map in parallel, and the target points and corresponding occupancy probability values obtained by executing the corresponding wheel position transformation operation in the current layer grid map into the write cache module in accordance with the established coordinate traversal order under the triggering of the write command issued by the state machine control module; wherein the established coordinate traversal order is the order of traversing the coordinate positions in a layer grid map by row change, or the order of traversing the coordinate positions in a layer grid map by column change; A write cache module is used to cache data output by a preset parallel number of RAM storage units in a first-in-first-out manner, and write the cached data burst into the DDR memory under the triggering of a write command issued by the state machine control module, wherein the cached data includes the laser points judged as feasible solutions, and the target points and corresponding occupancy probability values obtained by executing the corresponding wheel position transformation operation in the current layer grid map.
