Dynamic occupancy grid estimation method and device

Through the dynamic occupancy grid estimation method, the laser point cloud is mapped to a two-dimensional grid and particle filtering is used to solve the problem of difficulty in obtaining obstacle speed information, achieving more accurate obstacle speed estimation and improving the clustering effect.

CN114419573BActive Publication Date: 2024-10-18BEIJING ZHIXINGZHE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011085533.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-12
Publication Date
2024-10-18
Estimated Expiration
2040-10-12

AI Technical Summary

Technical Problem

The existing technology cannot directly output the speed information of obstacles, and the obstacle speed estimation is biased, mainly due to the reliance on the laser point cloud clustering effect, resulting in over-segmentation or under-segmentation.

Method used

The dynamic occupied grid estimation method is used to map the laser point cloud to a two-dimensional grid, and the speed information of obstacles is output through the particle filtering method, including the grid information and speed information occupied by obstacles around the vehicle, independent of the clustering method. class effect.

Benefits of technology

It improves the accuracy of obstacle speed estimation and clustering effect, provides speed information directly used for obstacle avoidance calculation in decision-making planning, and reduces dependence on clustering effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114419573B_ABST
    Figure CN114419573B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for estimating a dynamic occupied grid, the method comprising: processing laser point cloud data at time K, obtaining a foreground point cloud and mapping it to an obstacle occupied grid map, obtaining the occupied grid unit corresponding to the foreground point cloud at time K; at time K+1, predicting according to the state values ​​of the first number of particles at time K, obtaining the predicted state values ​​of the second number of particles at time K+1; the first number of particles includes the third number of particles at time K-1 and the fourth number of initialized new particles; updating the occupied grid unit corresponding to the foreground point cloud at time K+1 according to the predicted state values ​​of the second number of particles at time K+1 and the occupied grid unit corresponding to the foreground point cloud at time K+1, obtaining the target occupied grid unit at time K+1. Thus, the position information and speed information of the obstacle are obtained through the speed information and position information of the target occupied grid unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a dynamic occupancy grid estimation method and device. Background Art

[0002] In recent years, autonomous vehicles have demonstrated the application of smart city life in multiple scenarios such as intelligent transportation, logistics distribution, and cleaning operations. The most important obstacle for autonomous driving perception solutions is to correctly detect obstacles in the environment and obtain their motion status. LiDAR is an important sensor for autonomous vehicles to perceive the environment, with high accuracy and anti-interference characteristics. LiDAR can mainly provide the location information and reflectivity information of obstacles, but cannot directly output the speed information of obstacles.

[0003] The current method for obtaining the speed information of obstacles from the LiDAR point cloud is to project the laser point cloud onto a two-dimensional plane for clustering, obtain the clustered obstacle position information, and use classic Kalman filtering and other algorithms to obtain the motion state of the obstacle.

[0004] The existing laser point cloud obstacle velocity estimation algorithm strongly relies on the clustering effect of the laser point cloud. If the clustering has a lot of over-segmentation or under-segmentation, it will cause problems in obstacle matching, resulting in deviations in the obstacle velocity estimation. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a method and device for estimating a dynamic occupancy grid, so as to solve the problem in the prior art that the speed information of an obstacle cannot be directly output or the estimation of the speed of the obstacle has a deviation.

[0006] To solve the above problems, in a first aspect, the present invention provides a dynamic occupancy grid estimation method, the method comprising:

[0007] Processing the laser point cloud data at time K to obtain a foreground point cloud; the foreground point cloud is a non-ground point cloud;

[0008] Mapping the foreground point cloud to the obstacle occupancy grid map to obtain the occupied grid unit corresponding to the foreground point cloud at time K;

[0009] According to the occupied grid cells corresponding to the foreground point cloud at time K, determine the occupied grid cells corresponding to the foreground point cloud at time K+1;

[0010] At time K+1, prediction is performed based on the state values ​​of the first number of particles at time K to obtain the predicted state values ​​of the second number of particles at time K+1; the first number of particles includes the third number of particles at time K-1 and the fourth number of initialized new particles; the sum of the third number and the fourth number is the first number; the state value includes the particle position and the particle velocity;

[0011] According to the predicted state values ​​of the second number of particles at time K+1 and the occupied grid cells corresponding to the foreground point cloud at time K+1, the occupied grid cells corresponding to the foreground point cloud at time K+1 are updated to obtain the target occupied grid cells at time K+1; the target occupied grid cells include speed information and position information; the second number of particles are particles in the occupied grid cells corresponding to time K+1.

[0012] In a possible implementation, the method further includes:

[0013] Based on the ground plane, the laser point cloud data is divided into preset grids;

[0014] Calculate the height difference between the maximum height point and the minimum height point in any grid in the grid map to obtain a first height difference;

[0015] When the first height difference is less than a preset first height threshold, determining any one of the grids as a first grid, and determining the point cloud in the first grid as a suspected ground point;

[0016] According to all the suspected ground points of the first grid, a ground model is obtained by fitting;

[0017] Calculate the height difference between each point in the ground model and the ground plane to obtain a second height difference;

[0018] It is determined that the points at which the second height difference is not less than a preset second height threshold constitute a foreground point cloud.

[0019] In a possible implementation, the method further includes:

[0020] Processing the laser point cloud data at the first moment to obtain the foreground point cloud at the first moment;

[0021] Mapping the foreground point cloud at the first moment to the obstacle occupation grid map to obtain the occupied grid unit corresponding to the foreground point cloud at the first moment;

[0022] Determine the occupation probability of the foreground point cloud in the occupied grid cell according to the occupied grid cell corresponding to the foreground point cloud at the first moment;

[0023] Initialize a first number of particles;

[0024] The first number of particles is arranged in occupied grid cells corresponding to the first moment according to the occupation probability.

[0025] In a possible implementation, updating the occupied grid unit corresponding to the foreground point cloud at time K+1 according to the predicted state values ​​of the fourth number of particles at time K+1 and the occupied grid unit corresponding to the foreground point cloud at time K+1 to obtain the target occupied grid unit at time K+1 specifically includes:

[0026] Determine the occupied grid cells where the first number of particles are located at time K+1 and the occupied grid cells corresponding to the foreground point cloud at time K+1 that overlap with each other;

[0027] Determine the number of particles in the overlapped occupied grid cells as a second number;

[0028] Initialize a fifth number of particles; the sum of the second number and the fifth number is the first number;

[0029] According to the number of the overlapping occupied grid cells, the third number of particles are arranged in the overlapping occupied grid cells; the overlapping occupied grid cells are the target occupied grids.

[0030] In a possible implementation, the method further includes:

[0031] Setting random state values ​​for the third number of particles;

[0032] According to the state values ​​of the second number of particles and the random state values ​​of the third number of particles, the position information and speed information of each grid in the target occupied grid are obtained.

[0033] In a second aspect, the present invention provides a dynamic occupancy grid estimation device, the device comprising:

[0034] A processing unit, the processing unit is used to process the laser point cloud data at time K to obtain a foreground point cloud; the foreground point cloud is a non-ground point cloud;

[0035] A mapping unit, the mapping unit is used to map the foreground point cloud to an obstacle occupation grid map to obtain an occupied grid unit corresponding to the foreground point cloud at time K;

[0036] A determination unit, the determination unit being used to determine the occupied grid cells corresponding to the foreground point cloud at time K+1 according to the occupied grid cells corresponding to the foreground point cloud at time K;

[0037] A prediction unit, the prediction unit is used to predict at time K+1 according to the state values ​​of the first number of particles at time K, to obtain the predicted state values ​​of the second number of particles at time K+1; the first number of particles includes the third number of particles at time K-1 and the fourth number of initialized new particles; the sum of the third number and the fourth number is the first number; the state value includes the particle position and the particle speed;

[0038] An updating unit, wherein the updating unit is used to update the occupied grid unit corresponding to the foreground point cloud at time K+1 according to the predicted state value of the second number of particles at time K+1 and the occupied grid unit corresponding to the foreground point cloud at time K+1, so as to obtain the target occupied grid unit at time K+1; the target occupied grid unit includes speed information and position information; the second number of particles are particles in the occupied grid unit corresponding to time K+1.

[0039] In a possible implementation manner, the device further includes:

[0040] A division unit, the division unit is used to divide the laser point cloud data into preset grids based on the ground plane;

[0041] A calculation unit, the calculation unit is used to calculate the height difference between the maximum height point and the minimum height point in any grid in the grid map to obtain a first height difference;

[0042] The determining unit is further configured to determine, when the first height difference is less than a preset first height threshold, that any one grid is a first grid, and determine that the point cloud in the first grid is a suspected ground point;

[0043] A fitting unit, the fitting unit being used to fit a ground model according to all the suspected ground points of the first grid;

[0044] The calculation unit is further used to calculate the height difference between each point in the ground model and the ground plane to obtain a second height difference;

[0045] The determining unit is further configured to determine that the points when the second height difference is not less than a preset second height threshold constitute a foreground point cloud.

[0046] In a possible implementation, the processing unit is further used to process the laser point cloud data at the first moment to obtain the foreground point cloud at the first moment;

[0047] The mapping unit is further used to map the foreground point cloud at the first moment to the obstacle occupation grid map to obtain the occupied grid unit corresponding to the foreground point cloud at the first moment;

[0048] The determining unit is further used to determine the occupation probability of the foreground point cloud in the occupied grid cell according to the occupied grid cell corresponding to the foreground point cloud at the first moment;

[0049] An initialization unit, the initialization unit being used to initialize a first number of particles;

[0050] A setting unit is used to set the first number of particles in the occupied grid cells corresponding to the first moment according to the occupation probability.

[0051] In a possible implementation manner, the updating unit is specifically configured to:

[0052] Determine the occupied grid cells where the first number of particles are located at time K+1 and the occupied grid cells corresponding to the foreground point cloud at time K+1 that overlap with each other;

[0053] Determine the number of particles in the overlapped occupied grid cells as a second number;

[0054] Initialize a fifth number of particles; the sum of the second number and the fifth number is the first number;

[0055] According to the number of the overlapping occupied grid cells, the third number of particles are arranged in the overlapping occupied grid cells; the overlapping occupied grid cells are the target occupied grids.

[0056] In a possible implementation manner, the setting unit is further used to set random state values ​​for the third number of particles;

[0057] The determining unit is further configured to obtain position information and speed information of each grid in the target occupied grid according to the state values ​​of the second number of particles and the random state values ​​of the third number of particles.

[0058] In a third aspect, the present invention provides a device including a memory and a processor, wherein the memory is used to store programs, and the processor is used to execute any method of the first aspect.

[0059] In a fourth aspect, the present invention provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute any method of the first aspect.

[0060] In a fifth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, any method of the first aspect is implemented.

[0061] By applying the dynamic occupied grid estimation method and device provided by the present application, it does not rely on the clustering effect of the laser point cloud, but instead performs two-dimensional grid mapping on the laser point cloud and then uses a particle filtering-based method to output dynamic occupied grid information, including grid information occupied by obstacles within a certain range around the vehicle, and speed information estimated from each occupied grid unit. The speed information can be directly used in the decision-making planning module to perform obstacle avoidance calculations, and is also convenient for direct use of the speed information of the occupied grid in subsequent clustering, thereby improving the clustering effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 A schematic diagram of a flow chart of a dynamic occupancy grid estimation method provided in Embodiment 1 of the present invention;

[0063] Figure 2 A schematic diagram of occupied grid units corresponding to foreground point clouds provided in the first embodiment of the present invention;

[0064] Figure 3 A schematic diagram of mapping a foreground point cloud to an obstacle occupancy grid map provided in the first embodiment of the present invention;

[0065] Figure 4 A schematic diagram of a process of obtaining a target occupied grid unit according to the particle prediction state at time K+1 and the occupied grid unit corresponding to the foreground point cloud after obtaining the particle prediction state at time K+1 according to the particle state at time k provided in the first embodiment of the present invention;

[0066] Figure 5 A schematic diagram of the structure of a dynamic occupancy grid estimation device provided in Embodiment 2 of the present invention;

[0067] Figure 6 This is another structural diagram of the dynamic occupancy grid estimation device provided in the second embodiment of the present invention. DETAILED DESCRIPTION

[0068] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0069] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0070] Figure 1This is a flowchart of a dynamic estimation grid estimation method provided in the first embodiment of the present invention. This method is applied to a terminal equipped with a laser radar, such as an unmanned vehicle equipped with a laser radar. The execution subject of this application is a terminal, server or processor with computing functions. This application uses the application of this method to an unmanned vehicle as an example to illustrate. When this method is applied to an unmanned vehicle, the execution subject of this method is the automated vehicle control unit (AVCU), that is, the central processing unit of the unmanned vehicle is equivalent to the "brain" of the unmanned vehicle. Figure 1 As shown, this application includes the following steps:

[0071] Step 101, processing the laser point cloud data at time K to obtain the foreground point cloud.

[0072] The foreground point cloud is the point cloud corresponding to the obstacle after removing the ground point cloud. The following is an explanation of how to obtain the foreground point cloud.

[0073] In one example, first, the original laser point cloud data and positioning data are obtained. Then, when the positioning data is valid, map data is obtained according to the positioning data. Next, a first region of interest (ROI) in the map is determined according to the map data. Finally, the point cloud in the original laser point cloud that is within the first ROI is determined as the point cloud to be segmented.

[0074] Specifically, the vehicle is equipped with sensors such as laser radar, global positioning system (GPS), inertial measurement unit (IMU), vision module, etc., and can obtain raw laser point cloud data through single-line or multi-line laser radar.

[0075] Among them, as the position of the vehicle changes, the positioning data is obtained through GPS. After obtaining multiple positioning data packets sent by GPS, the positioning data packets are parsed to obtain the port number, data packet length, flag bit, etc. of each positioning data packet. The data packet length or flag bit can be used to determine whether the positioning data is valid. For example, if the length and flag bit of the data packet meet the requirements, the positioning data is determined to be valid.

[0076] The server has a pre-built high-precision map stored in advance. The high-precision map can be divided into multiple map data files and stored according to longitude and latitude. In each map data file, the boundaries can be divided. For example, a file includes multiple boundaries, and each boundary can be determined as an ROI area. When the positioning data is valid, the vehicle can send a request message including the positioning data to the server to obtain the map data file corresponding to the positioning data. For example, the positioning data includes the longitude and latitude of the vehicle at the current location. A request message including the current longitude and latitude of the vehicle can be sent to the server to obtain the map data file corresponding to the current longitude and latitude. After receiving the map data file, the vehicle parses the map data, and determines the first ROI area in the map corresponding to the current longitude and latitude of the vehicle based on the map data, and determines the original laser point cloud in the first ROI area as the point cloud to be segmented.

[0077] Among them, by way of example but not limitation, for unmanned vehicles operating in a closed park, a high-precision map of the closed park can be downloaded from a server in advance, and the corresponding map data file can be queried based on the positioning data, and the map data file can be parsed to obtain the map data.

[0078] In another example, when the positioning data is invalid, or when the positioning data is valid but the map data is invalid, the position of the vehicle is determined based on the original laser point cloud; the second ROI is determined based on the position of the vehicle; and the point cloud in the original laser point cloud that is within the second ROI is determined as the point cloud to be segmented.

[0079] Specifically, continuing with the above example, when the length of the data packet does not meet the preset length threshold, the data packet is determined to be invalid, or when the flag of the data packet is an invalid flag, the data packet is determined to be invalid. Or the positioning data is valid, but when a query request is sent to the server based on the positioning data and the corresponding map data file is not found, it means that the map data is invalid. At this time, the position of the vehicle is determined based on the original laser point cloud. Subsequently, a second ROI is set in the vehicle coordinate system based on the vehicle coordinate system. For example, a 5m*10m rectangle can be determined as the second ROI on the right side of the vehicle coordinate system. And the point cloud in the second ROI in the original laser point cloud is determined as the point cloud to be segmented.

[0080] The above-mentioned original laser point cloud is the original laser point cloud in the vehicle coordinate system. The position of the laser radar in the vehicle coordinate system can be determined according to the installation position relationship between the vehicle and the laser radar, and the obtained laser point cloud can be converted into the original laser point cloud of the vehicle coordinate system. The positioning data is the positioning data of the vehicle coordinate system after the coordinate conversion. The center of mass of the vehicle can be used as the origin of the vehicle coordinate system. When the vehicle faces forward, the right side of the vehicle is used as the x-axis, and when the vehicle faces forward, the direction of travel is the y-axis.

[0081] Furthermore, the foreground point cloud can be obtained according to the following steps.

[0082] First, with the ground plane as a reference, for the single-frame original laser point cloud at the current moment, after obtaining the point cloud to be segmented, the point cloud to be segmented can be divided into a preset grid map. Then, the height difference between the maximum height point and the minimum height point in any grid in the grid map is calculated to obtain a first height difference. Then, when the first height difference is less than the preset first height threshold, any grid is determined to be the first grid, and the point cloud in the first grid is determined to be a suspected ground point. Then, according to the suspected ground points of all the first grids, the ground model is fitted according to the plane fitting algorithm. Then, the height difference from each point in the ground model to the ground plane is calculated to obtain a second height difference. Finally, the point when the second height difference is not less than the preset second height threshold is determined to be a foreground point cloud. At the same time, the point when the second height difference is less than the preset second height threshold can also be determined to be a background point cloud.

[0083] Among them, the size of the grid can be obtained based on the empirical value of multiple calculations. The point cloud to be segmented is a collection of multiple points, each point has position information, and the grid also has a position. The position of the grid can be represented by the position of the upper left corner of the grid. Under the premise of coordinate system one, the point cloud to be segmented can be mapped to the grid to obtain the point cloud to be segmented distributed in the grid. The first height threshold can be set according to the vehicle's traffic capacity. The second height threshold can be set according to the type of vehicle. For example, when the vehicle is a small sweeper and the vehicle is a logistics vehicle or a car driving on the street, the second height threshold is different. The plane fitting algorithm includes but is not limited to the least squares method and the random sampling consistency (RANSAC) algorithm.

[0084] Step 102 : Map the foreground point cloud to the obstacle occupancy grid map to obtain the occupied grid unit corresponding to the foreground point cloud at time K.

[0085] Specifically, after obtaining the three-dimensional foreground point cloud, it needs to be reduced to a two-dimensional foreground point cloud and mapped to the obstacle occupancy grid map, see Figure 2 , where the center of mass of the vehicle can be used as the origin of the vehicle coordinate system, the x-axis is the direction pointing to the right of the vehicle when the vehicle is facing forward, and the y-axis is the direction of travel when the vehicle is facing forward. The obstacle occupancy grid map is established, and the obstacle occupancy grid map can be divided according to the interval of 0.1m*0.1m. After projecting the foreground point cloud onto the obstacle occupancy grid map, the obstacle occupancy grid unit is obtained, that is, the foreground point cloud occupancy grid unit, or it can also be called the obstacle occupancy grid unit. See Figure 2 , if the obstacle is a vehicle, then Figure 2①~⑧ in the figure are the grid cells occupied by the obstacle vehicle.

[0086] Further, continue Figure 2 ,According to the sensor model, the state of the grid cells in the obstacle occupancy grid map after the foreground point cloud is mapped to the obstacle occupancy grid map can be estimated and marked with different grayscale values.

[0087] In one example, see Figure 3 , the part with the highest probability of being occupied by an obstacle can be assigned an occupation probability of 0.9. This is an example but not a limitation. In order to show it more vividly, Figure 3 Different probabilities are distinguished by grayscale. For example, the grid cell corresponding to the occupancy probability of 0.9 can be marked as a grayscale value of 255, the part with the lowest occupancy probability can be assigned an occupancy probability of 0.1 and marked as a grayscale value of 0, and the part with uncertain occupancy probability can be assigned an occupancy probability of 0.5 and marked as a grayscale value of 122.

[0088] In another example, the portion with uncertain occupancy probability may be further divided and marked with different gray values.

[0089] The occupancy probability here is calculated based on an inverse sensor distance model and can be a value between 0 and 1.

[0090] Step 103 , determining the occupied grid cells corresponding to the foreground point cloud at time K+1 according to the occupied grid cells corresponding to the foreground point cloud at time K.

[0091] Specifically, the occupied grid cells corresponding to the foreground scenic spot cloud at time K+1 can be obtained according to the method of step 101 - step 102 .

[0092] Step 104, at time K+1, prediction is performed based on the state values ​​of the first number of particles at time K to obtain the predicted state values ​​of the second number of particles at time K+1; the first number of particles includes the third number of particles at time K-1 and the fourth number of initialized new particles; the sum of the third number and the fourth number is the first number; the state value includes the particle position and the particle velocity.

[0093] Specifically, particle filtering refers to the process of finding a set of random samples propagating in the state space to approximate the probability density function, replacing the integral operation with the sample mean, and then obtaining the minimum variance estimate of the system state. Here, a set of random samples is called a particle.

[0094] After completing the preprocessing of the laser point cloud data and obtaining the occupied grid cells corresponding to the foreground point cloud, the latest obstacle occupation grid state at the current moment can be obtained for updating the state value of the particle filter.

[0095] See also Figure 4 At time k, the grid cells corresponding to the foreground point cloud have a certain number of particles, which can be called the first number of particles. Figure 3 Similarly, different occupied grid cells can be represented by occupation probabilities, and in order to distinguish them, the occupation probabilities can be distinguished by grayscale values. For example, but not limited to, 255 can represent the occupied grid cells corresponding to the foreground point cloud. The state value of each particle includes two types: position estimation and velocity estimation (indicated by arrows).

[0096] For details, continue with the above, see Figure 4 At time k+1, the filter can make a prediction based on the state values ​​of the first number of particles at time k to obtain the predicted state values ​​of the first number of particles at time K+1. The predicted state values ​​include the predicted speed and predicted position of each particle.

[0097] Among them, after the state of the particle is predicted, if the particle has a speed, the position will change. The particle whose speed exceeds a certain value will fall into other occupied grid cells around it after prediction. In this way, the number of particles held by the original occupied grid cell will become smaller, and the probability of the original grid being occupied will also be reduced accordingly. For example, if it is represented by a grayscale image, it will change from black with a grayscale value of 255 to gray with a lower grayscale value.

[0098] In the initialization state, how the first number of particles are arranged in the occupied grid cells is described.

[0099] Specifically, the laser point cloud data at the first moment is processed to obtain the foreground point cloud at the first moment; the foreground point cloud at the first moment is mapped to the obstacle occupation grid map to obtain the occupied grid unit corresponding to the foreground point cloud at the first moment; according to the occupied grid unit corresponding to the foreground point cloud at the first moment, the occupation probability of the foreground point cloud in the occupied grid unit is determined; a first number of particles are initialized; and according to the occupation probability, the first number of particles are set in the occupied grid unit corresponding to the first moment.

[0100] The first moment here may be an initial moment.

[0101] Step 105, based on the predicted state values ​​of the second number of particles at time K+1 and the occupied grid cells corresponding to the foreground point cloud at time K+1, the occupied grid cells corresponding to the foreground point cloud at time K+1 are updated to obtain the target occupied grid cells at time K+1; the target occupied grid cells include speed information and position information; the second number of particles are the particles in the occupied grid cells corresponding to time K+1.

[0102] Specifically, the target occupancy grid unit includes speed information and position information.

[0103] The following is a detailed description of step 105.

[0104] See also Figure 4 First, determine the occupied grid cells where the first number of particles are located at time K+1 and the occupied grid cells corresponding to the foreground point cloud at time K+1. Then, determine the number of particles in the overlapping occupied grid cells as the second number. Next, initialize the third number of particles; the sum of the third number and the second number is the first number. Finally, according to the number of overlapping occupied grid cells, set the fifth number of particles in the overlapping occupied grid cells; the overlapping occupied grid cells are the target occupied grids. See Figure 4 , the probability of the occupied grid cells where the first number of particles are located at time K+1 and the occupied grid cells corresponding to the foreground point cloud at time K+1 can be superimposed to obtain the overlapped occupied grid cells.

[0105] Furthermore, after step 105, the method further includes:

[0106] Set random state values ​​for the third number of particles;

[0107] According to the state values ​​of the second number of particles and the random state values ​​of the third number of particles, the position information and speed information of each grid in the grid occupied by the target are obtained.

[0108] Specifically, for overlapping occupied grid cells, the state values ​​of the particles in each grid can be counted to obtain the speed information of the particles in the grid, and the speed information of the obstacles can be counted based on the speed information of the particles in each grid, and the speed information of the obstacles can be used as the speed information of the target occupied grid. The speed information here can be the speed in the x direction and / or the speed in the y direction and / or the combined speed. The combined speed here is determined based on the speed in the x direction and the speed in the y direction.

[0109] Furthermore, the position information of the obstacles may also be counted, that is, the positions of the overlapping grid cells.

[0110] K and K+1 are only used to distinguish different moments. For example, K can represent the current moment, and K+1 is the next moment of the current moment. Other letters can also be used to mark, and this application is not limited to this.

[0111] Therefore, by applying the dynamic occupied grid estimation method provided by the present application, it does not rely on the clustering effect of the laser point cloud, but instead performs two-dimensional grid mapping on the laser point cloud and then uses a particle filtering-based method to output dynamic occupied grid information, including grid information occupied by obstacles within a certain range around the vehicle, and speed information estimated from each occupied grid unit. The speed information can be directly used in the decision-making planning module to perform obstacle avoidance calculations, and is also convenient for direct use of the speed information of the occupied grid in subsequent clustering, thereby improving the clustering effect.

[0112] Figure 5 A schematic diagram of the structure of a dynamic occupancy grid estimation device provided in Embodiment 2 of the present invention is shown in FIG. Figure 5 As shown, the dynamic occupancy grid estimation device 500 includes: a processing unit 501 , a mapping unit 502 , a determination unit 503 , a prediction unit 504 and an updating unit 505 .

[0113] The processing unit 501 is used to process the laser point cloud data at time K to obtain a foreground point cloud; the foreground point cloud is a non-ground point cloud;

[0114] The mapping unit 502 is used to map the foreground point cloud to the obstacle occupation grid map to obtain the occupied grid unit corresponding to the foreground point cloud at time K;

[0115] The determining unit 503 is used to determine the occupied grid cells corresponding to the foreground point cloud at time K+1 according to the occupied grid cells corresponding to the foreground point cloud at time K.

[0116] The prediction unit 504 is used to make a prediction at time K+1 according to the state values ​​of the first number of particles at time K, to obtain the predicted state values ​​of the second number of particles at time K+1; the first number of particles includes the third number of particles at time K-1 and the fourth number of initialized new particles; the sum of the third number and the fourth number is the first number; the state value includes the particle position and the particle velocity.

[0117] The updating unit 505 is used to update the occupied grid unit corresponding to the foreground point cloud at time K+1 according to the predicted state values ​​of the second number of particles at time K+1 and the occupied grid unit corresponding to the foreground point cloud at time K+1, so as to obtain the target occupied grid unit at time K+1; the target occupied grid unit includes speed information and position information; the second number of particles are particles in the occupied grid unit corresponding to time K+1.

[0118] For further information, see Figure 6 , Figure 6 This is another structural diagram of a dynamic occupied grid estimation device provided in the second embodiment of the present invention. The dynamic occupied grid estimation device 600 further includes: a dividing unit 601 , a calculating unit 602 and a fitting unit 603 .

[0119] The division unit 601 is used to divide the laser point cloud data into preset grids based on the ground plane.

[0120] The calculation unit 602 is used to calculate the height difference between the maximum height point and the minimum height point in any grid in the grid map to obtain a first height difference.

[0121] The determination unit 503 is further configured to determine, when the first height difference is less than a preset first height threshold, any grid as a first grid, and determine the point cloud within the first grid as a suspected ground point.

[0122] The fitting unit 603 is used to fit the ground model according to all the suspected ground points of the first grid.

[0123] The calculation unit 602 is further configured to calculate a height difference between each point in the ground model and the ground plane to obtain a second height difference.

[0124] The determining unit 503 is further configured to determine that the points when the second height difference is not less than a preset second height threshold constitute a foreground point cloud.

[0125] For further information, see Figure 6 , the device also includes an initialization unit 604 and a setting unit 605.

[0126] The processing unit 501 is further used to process the laser point cloud data at the first moment to obtain the foreground point cloud at the first moment.

[0127] The mapping unit 502 is further configured to map the foreground point cloud at the first moment into the obstacle occupancy grid map to obtain the occupied grid cells corresponding to the foreground point cloud at the first moment.

[0128] The determining unit 503 is further configured to determine an occupation probability of the foreground point cloud in the occupied grid cell according to the occupied grid cell corresponding to the foreground point cloud at the first moment.

[0129] The initialization unit 604 is used to initialize a first number of particles.

[0130] The setting unit 605 is used to set a first number of particles in the occupied grid cells corresponding to the first moment according to the occupation probability.

[0131] Furthermore, the updating unit 505 is specifically configured to:

[0132] Determine the occupied grid cells where the first number of particles are located at time K+1 and the occupied grid cells corresponding to the foreground point cloud at time K+1 that overlap with each other;

[0133] Determine the number of particles in the overlapping occupied grid cells as a second number;

[0134] Initialize the fifth number of particles; the sum of the second number and the fifth number is the first number;

[0135] According to the number of overlapped occupied grid cells, a third number of particles are arranged in the overlapped occupied grid cells; the overlapped occupied grid cells are target occupied grids.

[0136] Furthermore, the setting unit 604 is further configured to set random state values ​​for a third number of particles.

[0137] The determination unit 503 is further configured to obtain the position information and speed information of each grid in the target occupied grid according to the state values ​​of the second number of particles and the random state values ​​of the third number of particles.

[0138] Therefore, by applying the dynamic occupied grid estimation device provided by the present application, it does not rely on the clustering effect of the laser point cloud, but instead performs two-dimensional grid mapping on the laser point cloud and then uses a particle filtering-based method to output dynamic occupied grid information, including grid information occupied by obstacles within a certain range around the vehicle, and speed information estimated from each occupied grid unit. The speed information can be directly used in the decision-making planning module to perform obstacle avoidance calculations, and is also convenient for direct use of the speed information of the occupied grid in subsequent clustering, thereby improving the clustering effect.

[0139] Embodiment 3 of the invention provides a device, including a memory and a processor, wherein the memory is used to store a program, and the memory can be connected to the processor via a bus. The memory can be a non-volatile memory, such as a hard disk drive and a flash memory, and the memory stores a software program and a device driver. The software program can perform various functions of the above method provided in the embodiment of the present invention; the device driver can be a network and interface driver. The processor is used to execute the software program, and when the software program is executed, the method provided in embodiment 1 of the present invention can be implemented.

[0140] Embodiment 4 of the present invention provides a computer program product including instructions. When the computer program product is run on a computer, the computer executes the method provided in Embodiment 1 of the present invention.

[0141] Embodiment 5 of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method provided in Embodiment 1 of the present invention is implemented.

[0142] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0143] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0144] The above specific implementation methods further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A dynamic occupancy grid estimation method, characterized in that: The method comprises: Processing the laser point cloud data at time K to obtain a foreground point cloud; the foreground point cloud is a non-ground point cloud; Mapping the foreground point cloud to the obstacle occupancy grid map to obtain the occupied grid unit corresponding to the foreground point cloud at time K; According to the occupied grid cells corresponding to the foreground point cloud at time K, determine the occupied grid cells corresponding to the foreground point cloud at time K+1; At time K+1, prediction is performed based on the state values ​​of the first number of particles at time K to obtain the predicted state values ​​of the second number of particles at time K+1; the first number of particles includes the third number of particles at time K-1 and the fourth number of initialized new particles; the sum of the third number and the fourth number is the first number; the state value includes the particle position and the particle velocity; According to the predicted state values ​​of the second number of particles at time K+1 and the occupied grid unit corresponding to the foreground point cloud at time K+1, the occupied grid unit corresponding to the foreground point cloud at time K+1 is updated to obtain the target occupied grid unit at time K+1; the target occupied grid unit includes speed information and position information; the second number of particles are particles in the occupied grid unit corresponding to time K+1; The method of updating the occupied grid unit corresponding to the foreground point cloud at time K+1 according to the predicted state values ​​of the second number of particles at time K+1 and the occupied grid unit corresponding to the foreground point cloud at time K+1 to obtain the target occupied grid unit at time K+1 specifically includes: Determine the occupied grid cells where the first number of particles are located at time K+1 and the occupied grid cells corresponding to the foreground point cloud at time K+1 that overlap with each other; Determining the number of particles in the overlapping occupied grid cells as a second number; Initialize a fifth number of particles; the sum of the second number and the fifth number is the first number; According to the number of the overlapping occupied grid cells, the third number of particles are arranged in the overlapping occupied grid cells; the overlapping occupied grid cells are the target occupied grids.

2. The method according to claim 1, characterized in that The method also includes: Based on the ground plane, the laser point cloud data is divided into preset grids; Calculate the height difference between the maximum height point and the minimum height point in any grid in the grid map to obtain a first height difference; When the first height difference is less than a preset first height threshold, determining any one of the grids as a first grid, and determining the point cloud in the first grid as a suspected ground point; According to all the suspected ground points of the first grid, a ground model is obtained by fitting; Calculate the height difference between each point in the ground model and the ground plane to obtain a second height difference; It is determined that the points at which the second height difference is not less than a preset second height threshold constitute a foreground point cloud.

3. The method according to claim 1, characterized in that The method also includes: Processing the laser point cloud data at the first moment to obtain the foreground point cloud at the first moment; Mapping the foreground point cloud at the first moment to the obstacle occupation grid map to obtain the occupied grid unit corresponding to the foreground point cloud at the first moment; Determine the occupation probability of the foreground point cloud in the occupied grid cell according to the occupied grid cell corresponding to the foreground point cloud at the first moment; Initialize a first number of particles; The first number of particles is arranged in occupied grid cells corresponding to the first moment according to the occupation probability.

4. The method according to claim 1, characterized in that: The method then further comprises: Setting random state values ​​for the third number of particles; According to the state values ​​of the second number of particles and the random state values ​​of the third number of particles, the position information and speed information of each grid in the target occupied grid are obtained.

5. A dynamic occupancy grid estimation device, characterized in that: The device comprises: A processing unit, the processing unit is used to process the laser point cloud data at time K to obtain a foreground point cloud; the foreground point cloud is a non-ground point cloud; A mapping unit, the mapping unit is used to map the foreground point cloud to an obstacle occupation grid map to obtain an occupied grid unit corresponding to the foreground point cloud at time K; A determination unit, the determination unit being used to determine the occupied grid cells corresponding to the foreground point cloud at time K+1 according to the occupied grid cells corresponding to the foreground point cloud at time K; A prediction unit, the prediction unit is used to predict at time K+1 according to the state values ​​of the first number of particles at time K, to obtain the predicted state values ​​of the second number of particles at time K+1; the first number of particles includes the third number of particles at time K-1 and the fourth number of initialized new particles; the sum of the third number and the fourth number is the first number; the state value includes the particle position and the particle speed; An updating unit, the updating unit being used to update the occupied grid unit corresponding to the foreground point cloud at time K+1 according to the predicted state values ​​of the second number of particles at time K+1 and the occupied grid unit corresponding to the foreground point cloud at time K+1, so as to obtain the target occupied grid unit at time K+1; the target occupied grid unit includes speed information and position information; the second number of particles are particles in the occupied grid unit corresponding to time K+1; The updating unit is specifically used for: Determine the occupied grid cells where the first number of particles are located at time K+1 and the occupied grid cells corresponding to the foreground point cloud at time K+1 that overlap with each other; Determine the number of particles in the overlapped occupied grid cells as a second number; Initialize a fifth number of particles; the sum of the second number and the fifth number is the first number; According to the number of the overlapping occupied grid cells, the third number of particles are arranged in the overlapping occupied grid cells; the overlapping occupied grid cells are the target occupied grids.

6. The device according to claim 5, characterized in that The device also includes: A division unit, the division unit is used to divide the laser point cloud data into preset grids based on the ground plane; A calculation unit, the calculation unit is used to calculate the height difference between the maximum height point and the minimum height point in any grid in the grid map to obtain a first height difference; The determining unit is further configured to determine, when the first height difference is less than a preset first height threshold, that any one grid is a first grid, and determine that the point cloud in the first grid is a suspected ground point; A fitting unit, the fitting unit being used to fit a ground model according to all the suspected ground points of the first grid; The calculation unit is further used to calculate the height difference between each point in the ground model and the ground plane to obtain a second height difference; The determining unit is further configured to determine that the points when the second height difference is not less than a preset second height threshold constitute a foreground point cloud.

7. The device according to claim 5, characterized in that The processing unit is also used to process the laser point cloud data at the first moment to obtain the foreground point cloud at the first moment; The mapping unit is further used to map the foreground point cloud at the first moment to the obstacle occupation grid map to obtain the occupied grid unit corresponding to the foreground point cloud at the first moment; The determining unit is further used to determine the occupation probability of the foreground point cloud in the occupied grid cell according to the occupied grid cell corresponding to the foreground point cloud at the first moment; An initialization unit, the initialization unit being used to initialize a first number of particles; A setting unit is used to set the first number of particles in the occupied grid cells corresponding to the first moment according to the occupation probability.

8. The device according to claim 5, characterized in that The setting unit is further used to set random state values ​​for the third number of particles; The determining unit is further configured to obtain position information and speed information of each grid in the target occupied grid according to the state values ​​of the second number of particles and the random state values ​​of the third number of particles.

Citation Information

Patent Citations

  • Boundary detection method and device

    CN110705458A

  • Occupancy grid object determining devices

    US20190049239A1