A method and device for generating a simulation environment

By determining the perceptual blind spots in the two-dimensional simulation map in the path planning model and using the noise simulation model, the "God's perspective" problem of the two-dimensional simulation map in the three-dimensional simulation environment is solved, and the authenticity and effect of the model training are improved.

CN112712595BActive Publication Date: 2024-10-29BEIJING SANKUAI ONLINE TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202110069350.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-19
Publication Date
2024-10-29
Estimated Expiration
2041-01-19

AI Technical Summary

Technical Problem

In the existing technology, the two-dimensional simulation map extracted from the three-dimensional simulation environment has a "God's perspective" problem, which causes the path planning model to obtain too much accurate information, the simulation environment and the actual environment are greatly different, and the model training effect is poor.

Method used

By obtaining three-dimensional simulation environment data, the perceptual blind spots in the two-dimensional simulation map are determined, and input into the pre-trained noise simulation model to generate a two-dimensional simulation map that conforms to the preset noise distribution, so that the path planning model can be trained.

Benefits of technology

The generated two-dimensional noise simulation map is more in line with the real situation, including sensor blind spots and fitted noise, which improves the training efficiency and effect of the path planning model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112712595B_ABST
    Figure CN112712595B_ABST
Patent Text Reader

Abstract

This specification discloses a method and device for generating a simulation environment, first determining the perception blind area in a two-dimensional simulation map according to the attributes of obstacles in a three-dimensional simulation environment and the position and posture of an unmanned driving device in the three-dimensional simulation environment, and then inputting the two-dimensional simulation map data containing the perception blind area into a pre-trained noise simulation model to obtain a two-dimensional noise simulation map that conforms to a preset noise distribution. Since the two-dimensional noise simulation map contains both the knowledge of the sensor blind area and the fitted noise, it is more in line with the two-dimensional map generated based on the perception data in real life, providing a better environment for training the path planning model, thereby improving the efficiency and effect of model training.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and more particularly to a method and device for generating a simulation environment. Background Art

[0002] At present, driverless technology has become increasingly mature. In driverless technology, path planning based on perception data is a very important part. Generally, in order to improve efficiency, the path planning model is usually trained in a simulation environment first, so whether the simulation environment is realistic enough is very important.

[0003] In the prior art, a simulation environment usually used for path planning is to extract a two-dimensional simulation map including the boundaries of various obstacles on the basis of a three-dimensional simulation environment, and use the simulation map to train a path planning model.

[0004] However, the two-dimensional simulation map extracted from the three-dimensional simulation environment has the problem of "God's perspective", which causes the path planning model to obtain too much accurate information, resulting in a large difference between the simulation environment and the actual environment, and poor model training effect. Summary of the invention

[0005] The embodiments of this specification provide a method and device for generating a simulation environment to partially solve the problems existing in the above-mentioned prior art.

[0006] The embodiments of this specification adopt the following technical solutions:

[0007] This specification provides a method for generating a simulation environment, including:

[0008] Acquire three-dimensional simulation environment data, wherein the three-dimensional simulation environment data at least includes attributes of each obstacle, wherein the attributes at least include position and shape;

[0009] Determining two-dimensional simulation map data corresponding to the three-dimensional simulation environment data, wherein the two-dimensional simulation map data includes boundary information of each obstacle;

[0010] When training the path planning model according to the two-dimensional simulation map data, determining the perception blind area in the two-dimensional simulation map according to the posture of the unmanned driving device in the three-dimensional simulation environment and the attributes of each obstacle in the three-dimensional simulation environment data;

[0011] A first perception map is determined based on the two-dimensional simulation map data and the perception blind area, and a pre-trained noise simulation model is input to determine a two-dimensional simulation map that meets the preset noise distribution as a second perception map. The path planning model performs path planning based on the second perception map.

[0012] Optionally, determining the perception blind area in the two-dimensional simulation map according to the position and posture of the unmanned driving device in the three-dimensional simulation environment and the attributes of each obstacle in the three-dimensional simulation environment data specifically includes:

[0013] Determining the position and posture of a sensor of the unmanned driving device according to the position and posture of the unmanned driving device in the three-dimensional simulation environment;

[0014] Determine the position and shape of each obstacle according to the attributes of each obstacle in the three-dimensional simulation environment data;

[0015] According to the position and posture of the sensor, the position and posture and shape of each obstacle, and according to preset physical occlusion rules, the perception blind area of ​​the sensor is determined in the two-dimensional simulation map.

[0016] Optionally, according to the position and posture of the sensor, the position and posture and shape of each obstacle, and according to a preset physical occlusion rule, determining the perception blind area of ​​the sensor in the two-dimensional simulation map specifically includes:

[0017] Taking the position and posture of the sensor, the attributes of each obstacle, and the three-dimensional simulation environment data as input, and inputting into a pre-trained blind spot determination model, the perception blind spot of the sensor in the two-dimensional simulation map is obtained;

[0018] The blind spot determination model is trained by the following method:

[0019] Determine a number of three-dimensional simulation environment data including obstacles and sensors as training samples;

[0020] For each training sample, in the three-dimensional simulation environment data of the training sample, according to the position and posture of the sensor and the three-dimensional model of each obstacle, determine the environment point cloud sensed by the sensor;

[0021] According to the projection of the environmental point cloud on the map and the two-dimensional simulation map corresponding to the three-dimensional simulation environment of the training sample, a perception blind area is determined as a label of the training sample;

[0022] The blind area determination model is trained according to the determined training samples and the annotations of each training sample.

[0023] Optionally, the noise simulation model is composed of a first network and a second network, the first network is composed of an encoder-decoder, and the second network is composed of a generation subnetwork-discrimination subnetwork;

[0024] The noise simulation model is trained using the following method:

[0025] Obtaining raw sensory data collected from the actual environment;

[0026] Determining a two-dimensional perception map based on the original perception data;

[0027] Inputting the two-dimensional perception map into the encoding layer of the first network to obtain encoded data;

[0028] Input the encoded data into the decoding layer of the first network, and use the obtained decoding result as a latent vector;

[0029] Inputting the latent vector into a generating subnetwork of the second network to obtain a generated two-dimensional perception map containing noise;

[0030] Inputting the two-dimensional perception map containing noise into the identification subnetwork of the second network to obtain the identification result output by the identification network layer;

[0031] The loss is determined according to at least one of the regular loss term of the encoded data distribution, the distribution loss term of the latent variable and the loss term of the identification result, and the noise simulation model is trained with the minimum loss as the optimization goal.

[0032] Optionally, determining a regularization loss term of the encoded data distribution specifically includes:

[0033] The distribution of the encoded data obtained by encoding the two-dimensional perception map according to the encoding layer is used as the posterior distribution, and the information entropy is determined according to the prior distribution of the encoded data as the regularization loss term of the encoded data distribution.

[0034] Optionally, determining the distribution loss term of the latent variable specifically includes:

[0035] For each layer of the identification subnetwork, determining a first identification result of the two-dimensional perception map output by the layer after the two-dimensional perception map is input into the identification subnetwork;

[0036] Determine a second identification result of the two-dimensional perception map containing noise output by the layer according to the two-dimensional perception map containing noise generated after the generation sub-network restores the latent variable;

[0037] According to the distribution difference between the first identification result and the second identification result output by each layer, the distribution loss term of the latent variable is determined;

[0038] The distribution of the first identification result and the second identification result both conform to a preset normal distribution diagram.

[0039] Optionally, determining the loss item of the identification result specifically includes:

[0040] The loss term of the identification result is determined according to the identification result of the two-dimensional perception map output by the identification subnetwork, the identification result of the two-dimensional perception map containing noise output by the identification subnetwork, and the identification result of the latent variable output by the identification subnetwork.

[0041] This specification provides a device for generating a simulation environment, comprising:

[0042] An acquisition module is used to acquire three-dimensional simulation environment data, wherein the three-dimensional simulation environment data at least includes attributes of each obstacle, wherein the attributes at least include posture and shape;

[0043] A determination module, which determines two-dimensional simulation map data corresponding to the three-dimensional simulation environment data, wherein the two-dimensional simulation map data contains boundary information of each obstacle;

[0044] a blind spot generation module, which, when training a path planning model according to the two-dimensional simulation map data, determines a perception blind spot in the two-dimensional simulation map according to the position and posture of the unmanned driving device in the three-dimensional simulation environment and the attributes of each obstacle in the three-dimensional simulation environment data;

[0045] The noise generation module determines a first perception map based on the two-dimensional simulation map data and the perception blind area, and inputs a pre-trained noise simulation model to determine a two-dimensional simulation map that meets the preset noise distribution as a second perception map. The path planning model performs path planning based on the second perception map.

[0046] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method for generating a simulation environment is implemented.

[0047] The present specification provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for generating a simulation environment when executing the program.

[0048] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:

[0049] When generating a simulation environment for planning a path, the embodiments of this specification first determine the perception blind spots in the two-dimensional simulation map based on the attributes of obstacles in the three-dimensional simulation environment and the position and posture of the unmanned driving device in the three-dimensional simulation environment, and then input the two-dimensional simulation map data containing the perception blind spots into a pre-trained noise simulation model to obtain a two-dimensional noise simulation map that conforms to the preset noise distribution. Since the two-dimensional noise simulation map contains both the knowledge of the sensor blind spots and the fitted noise, it is more in line with the two-dimensional map generated based on the perception data in real life, providing a better environment for training the path planning model, thereby improving the efficiency and effect of model training. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0051] Figure 1 A schematic diagram of a process for generating a simulation environment provided in an embodiment of this specification;

[0052] Figure 2 A schematic diagram of a three-dimensional simulation environment provided for this specification;

[0053] Figure 3 A schematic diagram of the two-dimensional simulation map data provided in this manual;

[0054] Figures 4a to 4c A schematic diagram of the perception blind area provided for this manual;

[0055] Figure 5 A flowchart of a training blind area determination model provided in an embodiment of this specification;

[0056] Figure 6 A schematic diagram of the structure of a device for generating a simulation environment provided in an embodiment of this specification;

[0057] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0059] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0060] Figure 1 The schematic diagram of the process of generating a simulation environment provided in the embodiment of this specification includes:

[0061] S100: Acquire three-dimensional simulation environment data, wherein the three-dimensional simulation environment data at least includes attributes of each obstacle, and the attributes at least include posture and shape.

[0062] In one or more embodiments of this specification, since the simulation environment is mainly used for offline training models, that is, training models in a non-realistic environment, the simulation environment is usually generated by a server as needed. Similarly, in this specification, the process of generating the simulation environment can also be executed by the server. Of course, the server is a separate device or a system composed of multiple devices, which is not limited by this specification.

[0063] Specifically, the server may first determine the three-dimensional simulation environment data generated by modeling or other methods. Of course, the three-dimensional simulation environment data must at least include obstacle data. In addition, since the simulation environment generated by this specification can be used to train the path planning model, the three-dimensional simulation environment data may also include road information, such as Figure 2 shown.

[0064] Figure 2 The schematic diagram of the three-dimensional simulation environment provided in this specification shows that the three-dimensional simulation environment includes a road and several obstacles on the road. The obstacles can be static obstacles, such as street lights, signal lights, roadblocks, etc., or dynamic obstacles, such as vehicles, pedestrians, etc.

[0065] In addition, since the sensor's perception blind area is related to the sensor's own posture and the position and shape of the obstacle, the three-dimensional simulation environment data may also include the attributes of each obstacle, which at least include the posture and shape of the target object. In this way, the perception blind area that should appear when the sensor is in different positions can be determined based on the three-dimensional simulation environment data.

[0066] Furthermore, in this specification, the three-dimensional simulation environment data is used to model in three-dimensional space to obtain a three-dimensional simulation environment, that is, Figure 2The three-dimensional simulation environment shown in the figure. Therefore, in order to make the generated simulation environment more realistic, the three-dimensional simulation environment data can be obtained by collecting data from actual scenes. For example, point clouds of several different types of roads and point clouds of several different types of obstacles are collected in advance, and three-dimensional models of roads and obstacles are generated based on the collected point clouds. Then, when three-dimensional simulation environment data is needed later, various three-dimensional models can be combined by random combination or manual setting to obtain several three-dimensional environment data.

[0067] Of course, the three-dimensional simulation environment data can also be created in a three-dimensional space. The specific method of obtaining the three-dimensional simulation environment data can be set as needed, and this specification does not impose any limitation.

[0068] S102: Determine two-dimensional simulation map data corresponding to the three-dimensional simulation environment data, wherein the two-dimensional simulation map data includes boundary information of each obstacle.

[0069] In one or more embodiments of the present specification, since path planning does not require three-dimensional data but only requires two-dimensional map data of a plane, path planning is usually performed based on two-dimensional data. Therefore, in order to meet the actual application scenarios of the path planning model, in one or more embodiments of the present specification, after obtaining the three-dimensional simulation environment data, the server can also determine the corresponding two-dimensional simulation map data. In addition, since the three-dimensional simulation environment data contains the attributes of the obstacles, when the two-dimensional simulation map data is obtained, the two-dimensional simulation map data contains the boundary information of each obstacle.

[0070] Specifically, the server can model in the three-dimensional space according to the three-dimensional simulation environment data, and then determine the projection of each obstacle in the three-dimensional space on the ground to obtain two-dimensional simulation map data including the boundaries of each obstacle, such as Figure 3 shown.

[0071] Figure 3 This is a schematic diagram of the two-dimensional simulated map data provided in this specification, in which the road boundaries and the boundaries of various obstacles can be seen.

[0072] It should be noted that at this time, the server still obtains a map with a "ground perspective", but at this time, since the position of the virtual unmanned vehicle entering the simulation environment is still uncertain, it is impossible to determine information such as the sensor's perception blind spot.

[0073] S104: When training a path planning model based on the two-dimensional simulation map data, determining a perception blind spot in the two-dimensional simulation map according to the posture of the unmanned driving device in the three-dimensional simulation environment and the attributes of each obstacle in the three-dimensional simulation environment data.

[0074] In one or more embodiments of the present specification, when it is necessary to train a path planning model based on the two-dimensional simulation map data, the server can determine the perception blind spots of the sensors of the unmanned driving device in the two-dimensional simulation map based on the position of the unmanned driving device in the three-dimensional simulation environment and the attributes of each obstacle in the three-dimensional simulation environment data.

[0075] When training a path planning model, the initial position of the virtual unmanned driving device and the destination of the virtual unmanned driving device are set first. The unmanned driving device uses the global information of the two-dimensional simulation map as the data perceived by the sensor to perform data planning.

[0076] Therefore, generally, when performing path planning, only a two-dimensional simulation map is needed. However, in the embodiment provided in this specification, since it is necessary to simulate the sensor's perception blind spot, and the perception blind spot described in step S100 is determined by the properties of the obstacle and the sensor's posture, when performing path planning in this specification, it is necessary to first determine the posture of the unmanned driving device in the three-dimensional simulation environment corresponding to the two-dimensional simulation map. The posture is determined based on the set initial position and orientation of the unmanned vehicle at the beginning of the path planning training, and when the unmanned driving device is subsequently driving along the planned path, the posture of the unmanned driving device needs to be re-determined at different times.

[0077] Simply put, as the unmanned driving device continues to travel along the planned path, the obstacles that can be perceived are not exactly the same, and the blind spots generated are also not exactly the same. It is necessary to redefine the perception blind spots at each different moment based on the position and posture of the unmanned driving device at that moment.

[0078] Secondly, in the three-dimensional simulation environment, the position and posture of the sensor of the unmanned driving device is determined according to the position and posture of the unmanned driving device in the three-dimensional simulation environment.

[0079] Finally, according to the position and posture of the sensor, the position and posture and shape of each obstacle, and according to a preset physical occlusion rule, the perception blind area of ​​the sensor is determined in the two-dimensional simulation map.

[0080] Specifically, the physical blocking rule can be set based on experience. For example, assuming that the height of a general sensor is 2m, the area and shape of the blind spot are determined based on the height of the obstacle and the vertical width in the sensor collection direction. The greater the difference between the height of the obstacle and the height of the sensor, the larger the area of ​​the blind spot. The greater the vertical width of the obstacle in the sensor collection direction, the larger the area of ​​the blind spot. The shape of the blind spot can be pre-set, such as an inverted trapezoid, a rectangle, etc.

[0081] Figure 4a This is a schematic diagram of the perception blind area provided in this manual. Figure 4a is based on Figure 3 The two-dimensional simulation map shows the position of the sensor and the determined blind spots.

[0082] In addition, in this specification, in addition to being caused by occlusion, the perception blind area can also be determined according to a preset perception range. That is, with the sensor as the center, the boundary of the obstacle that the sensor can perceive is determined according to a preset radius. Of course, the direction of sensor perception can also be preset, and the perception blind area will be further expanded. Of course, the perception blind area caused by the above-mentioned occlusion and the perception blind area caused by the perception range can be used in combination to determine a more refined perception blind area.

[0083] Figure 4b The schematic diagram of the perception blind area provided for this manual shows that the boundaries of obstacles within a preset radius centered on the sensor are determined, and the rest of the map is regarded as the perception blind area. Figure 4c This further increases the restriction on the perception direction. Of course, the above-mentioned multiple ways of determining the perception blind area can be used in combination, that is, a comprehensive perception blind area can be determined according to multiple physical occlusion rules.

[0084] S106: inputting a pre-trained noise simulation model according to the two-dimensional simulation map data and the perception blind area, determining a two-dimensional noise simulation map that meets a preset noise distribution, and the path planning model performs path planning based on the two-dimensional noise simulation map.

[0085] In this specification, since in actual scenarios, the data perceived by the sensor always contains errors and interference, i.e., noise, the server can further learn the noise to add the calculated noise to the perception blind area obtained in step S104, so that the generated simulation environment data is more accurate.

[0086] Generally, there are multiple sources of noise, including, for example, sensor errors (such as one or more sensors used by unmanned driving equipment to perceive the environment, such as cameras, radars, speedometers, accelerometers, gyroscopes, etc.), system errors, external parameter influences (such as the shape of the unmanned driving equipment, sensor orientation, external lighting, etc.), and vehicle jitter (such as jitter of the unmanned driving equipment caused by speed, operating power, stability, etc.).

[0087] Specifically, in this specification, the noise simulation model may be composed of a first network and a second network, the first network is composed of an encoder-decoder, and the second network is composed of a generation subnetwork-identification subnetwork. Specifically, the first network may be a variational autoencoder (VAE), and the second network may be a generative adversarial network (GAN).

[0088] In this specification, the noise simulation model is trained in the following manner:

[0089] First, obtain the original perception data collected from the actual environment.

[0090] In this specification, in order to enable the trained noise simulation model to output noise similar to the noise actually collected, the server can obtain the original perception data collected by the sensor from the actual environment, wherein the sensor can be of the same type as the sensor used by the subsequent unmanned driving equipment.

[0091] Since the noise of different types of sensors may have different distributions, in order to make the noise simulation model more effective, the server can also train a noise simulation model corresponding to each type of sensor. For the convenience of description, this application only takes the training of one noise simulation model as an example. Of course, the noise simulation models corresponding to multiple types of sensors can be trained according to the same process.

[0092] Secondly, a two-dimensional perception map is determined based on the original perception data.

[0093] The server may determine the two-dimensional perception map corresponding to the original perception data as a training sample in the same manner as step S102.

[0094] Again, the two-dimensional perception map is input into the encoding layer of the first network to obtain encoded data.

[0095] Then, the encoded data is input into the decoding layer of the first network, and the obtained decoding result is used as the latent vector.

[0096] The above two steps are the process of inputting the two-dimensional perceptual map as a training sample into the encoder and decoder of the VAE model to obtain the output result. However, since the VAE model and the GAN model are combined together in this specification, the training process is also joint training. Therefore, the result output by the decoder is not the output of the conventional VAE model, but the data of the perceptual map generated by the GAN model generation network.

[0097] Afterwards, the latent vector is input into the generation subnetwork of the second network to obtain a generated two-dimensional perception map containing noise.

[0098] Afterwards, the two-dimensional perception map containing noise is input into the identification subnetwork of the second network to obtain the identification result output by the identification network layer.

[0099] The above two steps are the process of inputting the hidden variables output by the VAE model decoder into the generation subnetwork and the identification subnetwork respectively to obtain the identification results.

[0100] Finally, the loss is determined according to at least one of the regular loss term of the encoded data distribution, the distribution loss term of the latent variable, and the loss term of the identification result, and the noise simulation model is trained with the minimum loss as the optimization goal.

[0101] In this specification, since it is a joint training, the server can determine the loss according to at least one of the regular loss term of the encoded data distribution, the distribution loss term of the latent variable, and the loss term of the identification result. The loss formula is specifically expressed as: Among them, L prior represents the regularized loss term that encodes the data distribution, represents the distribution loss term of the latent variable, L GAN Represents the loss term of the identification result.

[0102] Among them, L prior Same as the regularization term in the traditional VAE model, expressed as L prior =D KL (q(z|x)‖p(z)), where D KL represents the KL divergence, x represents the input two-dimensional perceptual map, z~Enc(x)=q(z|x) is the result of the encoder encoding the two-dimensional perceptual map, so L prior It is the distribution of the encoded data obtained by encoding the two-dimensional perceptual map according to the encoding layer as the posterior distribution, and the information entropy (ie, KL divergence) determined according to the prior distribution of the encoded data.

[0103] In order to adjust the pixel distribution loss term in the loss of the traditional VAE model, since it is no longer based solely on the VAE model output noise, and the result of the VAE model output needs to enter the generative adversarial network for learning, the pixel distribution loss term can be determined using the output result of the identification subnetwork. Of course, at this time, this item is no longer a pixel distribution loss item, but a loss item for the distribution of identification results.

[0104] Specifically, Among them, p(Dis l(x)|z) means the distribution complies with the constraints of the normal distribution graph Among them, Dis l (x) and They represent the first layer of the identification subnetwork, the identification results of the two-dimensional perception map, and the identification results of the latent variables, respectively. l (x)∈[0,1], that is, the mean and difference of the normal distribution map are determined according to the two identification results, respectively. That is, for each layer of the identification subnetwork, after the two-dimensional perception map is input into the identification subnetwork, the first identification result of the two-dimensional perception map output by the layer is determined, and the two-dimensional perception map containing noise is generated after the hidden variable is restored by the generation subnetwork, and the second identification result of the two-dimensional perception map containing noise output by the layer is determined, and the distribution loss term of the hidden variable is determined according to the distribution difference between the first identification result and the second identification result output by each layer.

[0105] L GAN This is the loss of the traditional GAN ​​network, which can be expressed as GAN =log(Dis l (x))+log(1-Dis l (Gen(z))) represents, where Gen(z) is the two-dimensional perceptual map containing noise output by the generative subnetwork, Dis l (x) is the identification result of the identification sub-network on the two-dimensional perception map.

[0106] Furthermore, in this specification, in order to increase the learning effect of the loss of the GAN network on the VAE model, the L GAN We can also add VAE loss term, then the formula can be L GAN =log(Dis l (x))+log(1-Dis l (Gen(z)))+log(1-Dis l (Dec(Enc(x)))), Dis l (Dec(Enc(x))) represents the identification result of the latent variable output by the decoder. That is, the server determines the loss term of the identification result according to the identification result of the two-dimensional perceptual map output by the identification subnetwork, the identification result of the two-dimensional perceptual map containing noise output by the identification subnetwork, and the identification result of the latent variable output by the identification subnetwork.

[0107] pass Figure 1The process of generating a simulation environment shown in the figure first determines the perception blind area in the two-dimensional simulation map according to the attributes of obstacles in the three-dimensional simulation environment and the position and posture of the unmanned driving device in the three-dimensional simulation environment, and then inputs the two-dimensional simulation map data containing the perception blind area into the pre-trained noise simulation model to obtain a two-dimensional noise simulation map that conforms to the preset noise distribution. Since the two-dimensional noise simulation map contains both the knowledge of the sensor blind area and the fitted noise, it is more in line with the two-dimensional map generated based on the perception data in real life, providing a better environment for training the path planning model, thereby improving the efficiency and effect of model training.

[0108] Furthermore, in this specification, the server may also determine the perception blind area of ​​the sensor in the two-dimensional simulation map through a pre-trained blind area determination model. Specifically, the server may input the position and posture of the sensor, the position and posture and shape of each obstacle into the pre-trained blind area determination model to obtain a two-dimensional simulation map containing the perception blind area output by the blind area determination model.

[0109] Among them, the blind area determination model is trained by the following method: Figure 5 :

[0110] S200: Determine a plurality of three-dimensional simulation environment data including obstacles and sensors as training samples.

[0111] The server can obtain a number of three-dimensional simulation environment data including obstacles and sensors as training samples by adding unmanned driving equipment at different positions of a number of three-dimensional simulation environment data.

[0112] S202: For each training sample, in the three-dimensional simulation environment data of the training sample, according to the position and posture of the sensor and the three-dimensional model of each obstacle, determine the environment point cloud sensed by the sensor.

[0113] In this specification, after determining the training samples, the server also needs to determine the labels of each training sample. Therefore, the server can perform data modeling based on the three-dimensional simulation environment data for each training sample to obtain a three-dimensional model of each obstacle and a three-dimensional space including the sensor posture. Then, based on the sensor posture and the three-dimensional model of each obstacle, the server determines the environmental point cloud perceived by the sensor.

[0114] S204 determines the perception blind area as a label for the training sample according to the projection of the environment point cloud on the map and the two-dimensional simulation map corresponding to the three-dimensional simulation environment of the training sample.

[0115] In this specification, for each training sample, the server can determine the projection of the environmental point cloud on the ground based on the environmental point cloud perceived by the sensor as the boundary of the obstacle in the two-dimensional simulation map. Then, the perception blind area can be determined based on the two-dimensional simulation map corresponding to the three-dimensional simulation environment of the training sample and the determined boundary of the perceptible obstacle as the annotation of the training sample.

[0116] S206: Training the blind area determination model according to the determined training samples and the annotations of each training sample.

[0117] In this specification, the aforementioned steps S200 to S206 are equivalent to the stage of generating training samples, and after the training samples are generated, the server can train the blind spot determination model according to the training samples and their annotations. The blind spot determination model can be a neural network model, and this specification does not limit the specific model used.

[0118] The above is a method for generating a simulation environment provided in an embodiment of this specification. Based on the same idea, this specification also provides corresponding devices, storage media and electronic devices.

[0119] Figure 6 A schematic diagram of a structure of a simulation environment generation provided in an embodiment of this specification, wherein the device comprises:

[0120] An acquisition module 300 is used to acquire three-dimensional simulation environment data, wherein the three-dimensional simulation environment data at least includes attributes of each obstacle, wherein the attributes at least include a posture and a shape;

[0121] A determination module 302 determines two-dimensional simulation map data corresponding to the three-dimensional simulation environment data, wherein the two-dimensional simulation map data includes boundary information of each obstacle;

[0122] The blind spot generating module 304 determines the perception blind spot in the two-dimensional simulation map according to the position and posture of the unmanned driving device in the three-dimensional simulation environment and the attributes of each obstacle in the three-dimensional simulation environment data when training the path planning model according to the two-dimensional simulation map data;

[0123] The noise generation module 306 determines a first perception map based on the two-dimensional simulation map data and the perception blind area, and inputs a pre-trained noise simulation model to determine a two-dimensional simulation map that meets the preset noise distribution as a second perception map. The path planning model performs path planning based on the second perception map.

[0124] Optionally, the blind spot generation module 304 determines the posture of the sensor of the unmanned driving device according to the posture of the unmanned driving device in the three-dimensional simulation environment, determines the posture and shape of each obstacle according to the attributes of each obstacle in the three-dimensional simulation environment data, and determines the perception blind spot of the sensor in the two-dimensional simulation map according to the posture of the sensor, the posture and shape of each obstacle and preset physical occlusion rules.

[0125] Optionally, the blind spot generation module 304 takes the position and posture of the sensor, the attributes of each obstacle and the three-dimensional simulation environment data as inputs to a pre-trained blind spot determination model to obtain the perception blind spot of the sensor in the two-dimensional simulation map.

[0126] The device also includes:

[0127] The training module 308 determines several three-dimensional simulation environment data including obstacles and sensors as training samples. For each training sample, in the three-dimensional simulation environment data of the training sample, the environment point cloud perceived by the sensor is determined according to the posture of the sensor and the three-dimensional model of each obstacle. According to the projection of the environment point cloud on the map and the two-dimensional simulation map corresponding to the three-dimensional simulation environment of the training sample, the perception blind spot is determined as the annotation of the training sample. According to the determined training samples and the annotation of each training sample, the blind spot determination model is trained.

[0128] Optionally, the noise simulation model is composed of a first network and a second network, the first network is composed of an encoder-decoder, and the second network is composed of a generation subnetwork-awareness subnetwork.

[0129] The training module 308 obtains original perception data collected from the actual environment, determines a two-dimensional perception map based on the original perception data, inputs the two-dimensional perception map into the encoding layer of the first network to obtain encoded data, inputs the encoded data into the decoding layer of the first network, uses the obtained decoding result as a latent vector, inputs the latent vector into the generation subnetwork of the second network to obtain a generated two-dimensional perception map containing noise, inputs the two-dimensional perception map containing noise into the identification subnetwork of the second network to obtain an identification result output by the identification network layer, determines the loss based on at least one of the regular loss term of the encoded data distribution, the distribution loss term of the latent variables and the loss term of the identification result, and trains the noise simulation model with the minimum loss as the optimization goal.

[0130] Optionally, the training module 308 uses the distribution of the encoded data obtained by encoding the two-dimensional perceptual map according to the encoding layer as the posterior distribution, and determines the information entropy according to the prior distribution of the encoded data as the regularization loss term of the encoded data distribution.

[0131] Optionally, the training module 308 determines, for each layer of the identification subnetwork, a first identification result of the two-dimensional perception map output by the layer after the two-dimensional perception map is input into the identification subnetwork, and determines a second identification result of the two-dimensional perception map output by the layer containing noise according to the two-dimensional perception map containing noise generated after the hidden variable is restored by the generation subnetwork, and determines a distribution loss term of the hidden variable according to the distribution difference between the first identification result and the second identification result output by each layer, wherein the distribution of the first identification result and the second identification result both conform to a preset normal distribution diagram

[0132] Optionally, the training module 308 determines the loss term of the identification result according to the identification result of the two-dimensional perception map output by the identification subnetwork, the identification result of the two-dimensional perception map containing noise output by the identification subnetwork, and the identification result of the latent variable output by the identification subnetwork.

[0133] The present specification also provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, it can be used to execute the method for generating a simulation environment provided above.

[0134] Based on the above-mentioned method for generating a simulation environment, the embodiment of this specification also provides Figure 7 The structural diagram of the electronic device shown in FIG. Figure 7 At the hardware level, the unmanned equipment includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the above-mentioned method for generating a simulation environment.

[0135] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0136] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0137] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0138] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0139] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0140] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0141] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0142] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0144] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0145] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0146] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0147] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0148] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0149] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0150] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0151] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A method for generating a simulation environment, characterized in that: include: Acquire three-dimensional simulation environment data, wherein the three-dimensional simulation environment data at least includes attributes of each obstacle, wherein the attributes at least include position and shape; Determining two-dimensional simulation map data corresponding to the three-dimensional simulation environment data, wherein the two-dimensional simulation map data includes boundary information of each obstacle; When training the path planning model according to the two-dimensional simulation map data, determining the perception blind area in the two-dimensional simulation map according to the posture of the unmanned driving device in the three-dimensional simulation environment and the attributes of each obstacle in the three-dimensional simulation environment data; According to the two-dimensional simulation map data and the perception blind area, a pre-trained noise simulation model is input to determine a two-dimensional noise simulation map that meets the preset noise distribution, and the path planning model performs path planning based on the two-dimensional noise simulation map; The noise simulation model is composed of a first network and a second network, the first network is composed of an encoder-decoder, and the second network is composed of a generation subnetwork-awareness subnetwork; The noise simulation model is trained using the following method: Obtaining raw sensory data collected from the actual environment; Determining a two-dimensional perception map based on the original perception data; Inputting the two-dimensional perception map into the encoding layer of the first network to obtain encoded data; Input the encoded data into the decoding layer of the first network, and use the obtained decoding result as a latent vector; Inputting the latent vector into a generating subnetwork of the second network to obtain a generated two-dimensional perception map containing noise; Inputting the two-dimensional perception map containing noise into the identification subnetwork of the second network to obtain an identification result output by the identification subnetwork; The loss is determined according to at least one of the regular loss term of the encoded data distribution, the distribution loss term of the latent vector, and the loss term of the identification result, and the noise simulation model is trained with the minimum loss as the optimization goal.

2. The method according to claim 1, characterized in that Determining the perception blind area in the two-dimensional simulation map according to the position and posture of the unmanned driving device in the three-dimensional simulation environment and the attributes of each obstacle in the three-dimensional simulation environment data specifically includes: Determining the position and posture of a sensor of the unmanned driving device according to the position and posture of the unmanned driving device in the three-dimensional simulation environment; Determine the position and shape of each obstacle according to the attributes of each obstacle in the three-dimensional simulation environment data; According to the position and posture of the sensor, the position and posture and shape of each obstacle, and according to preset physical occlusion rules, the perception blind area of ​​the sensor is determined in the two-dimensional simulation map.

3. The method according to claim 2, characterized in that According to the position and posture of the sensor, the position and posture and shape of each obstacle, and according to a preset physical occlusion rule, the perception blind area of ​​the sensor is determined in the two-dimensional simulation map, specifically including: Taking the position and posture of the sensor, the attributes of each obstacle, and the three-dimensional simulation environment data as input, and inputting into a pre-trained blind spot determination model, the perception blind spot of the sensor in the two-dimensional simulation map is obtained; The blind spot determination model is trained by the following method: Determine a number of three-dimensional simulation environment data including obstacles and sensors as training samples; For each training sample, in the three-dimensional simulation environment data of the training sample, according to the position and posture of the sensor and the three-dimensional model of each obstacle, determine the environment point cloud sensed by the sensor; According to the projection of the environmental point cloud on the map and the two-dimensional simulation map corresponding to the three-dimensional simulation environment of the training sample, a perception blind area is determined as a label of the training sample; The blind area determination model is trained according to the determined training samples and the annotations of each training sample.

4. The method according to claim 1, characterized in that Determining the regularization loss term of the encoded data distribution specifically includes: The distribution of the encoded data obtained by encoding the two-dimensional perception map according to the encoding layer is used as the posterior distribution, and the information entropy is determined according to the prior distribution of the encoded data as the regularization loss term of the encoded data distribution.

5. The method according to claim 1, characterized in that Determining the distribution loss term of the latent vector specifically includes: For each layer of the identification subnetwork, determining a first identification result of the two-dimensional perception map output by the layer after the two-dimensional perception map is input into the identification subnetwork; Determine a second identification result of the two-dimensional perceptual map containing noise output by the layer according to the two-dimensional perceptual map containing noise generated after the generation sub-network restores the latent vector; Determine the distribution loss term of the latent vector according to the distribution difference between the first identification result and the second identification result output by each layer; The distribution of the first identification result and the second identification result both conform to a preset normal distribution diagram.

6. The method according to claim 1, characterized in that Determine the loss item of the identification result, specifically including: The loss term of the identification result is determined according to the identification result of the two-dimensional perceptual map output by the identification subnetwork, the identification result of the two-dimensional perceptual map containing noise output by the identification subnetwork, and the identification result of the latent vector output by the identification subnetwork.

7. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method and device for generating simulation test environment

    CN110414098A

  • Method and device for determining three-dimensional map

    CN111161424A

  • Mapping method and device based on multi-line laser radar, medium and equipment

    CN111578932A

  • Simulation method and device, electronic equipment and storage medium

    CN111753424A

  • Grid map generation method and device, mobile smart equipment and storage medium

    CN112102151A