Simulation scene generation method, device, electronic device and storage medium
By generating a grid map and creating simulation obstacles with matching dimensions in the simulation scene, the problem that the existing technology cannot accurately restore the real driving scene is solved, and the accuracy of simulation tests and the authenticity of the scene are improved.
Patent Information
- Application Number
- CN202410185167.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-19
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-02-19
AI Technical Summary
The existing simulation scenario construction methods cannot completely restore complex and varied situations in the real world, resulting in a gap between the test results and the actual situation, and lack of methods to accurately restore real driving scenarios.
By generating grid maps based on the vehicle's driving data at multiple time points, these maps are used to generate simulation obstacles in the initial simulation scene, so that the simulation obstacle points and obstacle points are the same size, thereby achieving high fit reduction in the simulation scene.
It improves the accuracy of simulation testing, ensures the authenticity of simulation scenarios, and avoids manually building high-cost target simulation scenarios, while solving the problems of single and fixed rules of simulation scenarios.
Smart Images

Figure CN118212379B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing technology, and more specifically, to a simulation scene generation method, device, electronic device and computer-readable storage medium. Background Art
[0002] In the development of autonomous driving technology, virtual simulation testing plays a vital role. By simulating various driving scenarios in a virtual environment, virtual simulation testing can effectively evaluate the performance, safety and reliability of automatic parking algorithms.
[0003] However, the existing simulation scene construction methods are often unable to fully restore the complex and changeable situations in the real world, resulting in a gap between the test results and the actual situation. Therefore, there is an urgent need for a method to accurately restore the complex and changeable driving scenes in the real world to ensure the authenticity of the simulation scenes. Summary of the invention
[0004] The present application proposes a simulation scene generation method, device, electronic device and computer-readable storage medium to improve the above-mentioned defects.
[0005] In a first aspect, an embodiment of the present application provides a simulation scene generation method, the method comprising: generating a grid map corresponding to each time point based on driving data of a vehicle at each time point among multiple time points; the grid map corresponding to the time point includes obstacle points corresponding to target obstacles perceived by the vehicle at the time point; generating simulated obstacles in an initial simulation scene based on the obstacle points in the grid maps corresponding to each of the multiple time points to obtain a target simulation scene; each simulated obstacle includes at least one simulated obstacle point, and the simulated obstacle point has the same size as the obstacle point.
[0006] In a second aspect, an embodiment of the present application further provides a simulation scene generation device, the device comprising:
[0007] A generation module, for generating a grid map corresponding to each time point according to the driving data of the vehicle at each time point among the multiple time points; the grid map corresponding to the time point includes an obstacle point corresponding to the target obstacle perceived by the vehicle at the time point;
[0008] The determination module is used to generate simulated obstacles in the initial simulation scene according to the obstacle points in the grid map corresponding to each of the multiple time points to obtain the target simulation scene; each simulated obstacle includes at least one simulated obstacle point, and the simulated obstacle point has the same size as the obstacle point.
[0009] In a third aspect, an embodiment of the present application further provides an electronic device, characterized in that it comprises: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by one or more processors, and the one or more programs are configured to execute the above method.
[0010] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the above method.
[0011] In a fifth aspect, an embodiment of the present application further provides a computer program product, comprising a computer program / instructions, characterized in that when the computer program / instructions are executed by a processor, the processor is caused to execute the above method.
[0012] The present application provides a simulation scene generation method, device, electronic device and computer-readable storage medium. In the present application, according to the driving data of the vehicle at each time point in multiple time points, a grid map corresponding to each time point is generated. According to the obstacle points included in the grid maps corresponding to the multiple time points, a simulated obstacle is generated in the initial simulation scene. The simulated obstacle includes at least one simulated obstacle point, and the size of the simulated obstacle point is the same as that of the obstacle point, so that the obstacle point is restored one-to-one through the simulated obstacle point in the simulation scene, so that the simulated obstacle indicated by the simulated obstacle point in the simulation scene has a high degree of fit with the real target obstacle, and the purpose of accurately restoring the target obstacle by the simulated obstacle is achieved, the authenticity of the simulation scene is guaranteed, and the accuracy of the simulation test is improved. At the same time, the simulation scene is generated according to the time data, avoiding the high cost of manually constructing the target simulation scene, and solving the problem of single simulation scene and fixed rules.
[0013] Other features and advantages of the embodiments of the present application will be described in the subsequent description, and partly become apparent from the description, or can be understood by practicing the embodiments of the present application. The purposes and other advantages of the embodiments of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0015] Figure 1A flow chart of a simulation scene generation method proposed according to an embodiment of the present application is shown.
[0016] Figure 2 A flowchart of a simulation scene generation method proposed according to another embodiment of the present application is shown.
[0017] Figure 3 A schematic diagram of a grid map in an embodiment of the present application is shown.
[0018] Figure 4 Shows Figure 3 Schematic diagram of the preprocessed raster map corresponding to the medium raster map.
[0019] Figure 5 A flowchart of a simulation scene generation method proposed according to another embodiment of the present application is shown.
[0020] Figure 6 A schematic diagram of a simulation test process in an embodiment of the present application is shown.
[0021] Figure 7 A structural block diagram of a simulation scene generation device proposed in an embodiment of the present application is shown.
[0022] Figure 8 A schematic diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0023] In order to make those skilled in the art better understand the present application scheme, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. The components of the embodiment of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiment of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiment of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0024] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0025] See also Figure 1 , Figure 1A flow chart of a simulation scene generation method proposed in one embodiment of the present application is shown, which is used in an electronic device. The method includes:
[0026] S101. Generate a grid map corresponding to each time point according to driving data of a vehicle at each time point among a plurality of time points.
[0027] The grid map corresponding to the time point includes the obstacle point corresponding to the target obstacle perceived by the vehicle at the time point. The target obstacle can be an irregular object, a suspended object, etc. The multiple time points can be any multiple time points in the vehicle's driving process. The time intervals between the multiple time points are the same, which can be 1s, 2s, etc., and can be set according to needs.
[0028] The driving data at each time point refers to the data collected by the vehicle's sensors, obstacle information, road information, and the vehicle's own posture data, etc. The sensors include millimeter wave radar, laser radar, camera, and global positioning system GPS / inertial measurement unit IMU, etc. The obstacle information may include the size, posture, and position of the obstacle, etc. The road information includes lane length, width information, number of lanes, etc. The vehicle's own posture data includes vehicle speed, acceleration, and steering wheel deflection angle, etc. After the vehicle collects the driving data, it uploads the driving data to the electronic device, and the electronic device determines the grid map. Among them, the electronic device can be a cloud platform, or it can upload the driving data to a database after collecting the driving data, and the electronic device obtains the driving data from the database.
[0029] Among them, the grid map is a grid-based map representation method, in which the map area is divided into uniform grid cells, and specific attribute information is assigned to each grid cell, such as obstacles, roads, etc., and each grid cell represents a certain spatial range. For example, a grid map can be a 25×15m two-dimensional plane, and 25×15m is divided into multiple 0.1×0.1m grid cells, that is, the size of each obstacle point is 0.1×0.1m.
[0030] An obstacle point refers to a grid cell whose attribute information indicates that the grid cell is an obstacle. The attribute information of the grid cell can be represented by a grayscale value of the grid cell. For example, the grayscale value of an obstacle point is 100, and the grayscale value of a non-obstacle point is 0.
[0031] In some embodiments, according to the obstacle information and road information collected at each time point, corresponding attribute information is assigned to each grid in the initial grid map to obtain a grid map. The initial grid map can be understood as a blank map divided into multiple grid cells, and the road information includes lane length, width information, number of lanes, and coordinate origin.
[0032] In some implementations, the coordinate origin in the road information can be obtained as the coordinate origin of the grid map, and the grid in the initial grid map is assigned corresponding attribute information according to the positional relationship between the obstacle information collected at each time point and other information in the road information except the coordinate origin and the coordinate origin, so as to obtain the grid map. For example, the gray value of the grid unit corresponding to the obstacle information in the grid map, that is, the obstacle point, is adjusted to 100, the gray value of the grid unit corresponding to the road information in the grid map is adjusted to 50, and the gray value of the grid unit corresponding to the non-obstacle point and non-road information is 0.
[0033] In some embodiments, S101 may include: obtaining driving data of the vehicle at each time point among multiple time points, preprocessing the driving data at each time point, and generating a grid map corresponding to each time point according to the preprocessed driving data at each time point. Among them, the preprocessing may be filtering processing, denoising processing, etc. The filtering processing is used to remove noise and interference in the driving data while retaining the characteristics of the driving data as much as possible, and the noise and interference are removed by the filter. The filter includes a low-pass filter, a high-pass filter, a band-pass filter, and a band-stop filter. The denoising processing is used to reduce the impact of noise on the driving data to restore or extract more accurate and pure driving data, including smoothing filtering, median filtering, adaptive filtering, etc.
[0034] S102: Generate simulated obstacles in the initial simulation scene according to the obstacle points in the grid map corresponding to each of the multiple time points to obtain a target simulation scene.
[0035] Each simulated obstacle includes at least one simulated obstacle point, and the simulated obstacle point has the same size as the obstacle point. The initial simulation scene is the scene corresponding to parking in the simulation tool. The simulation tool can be a simulation software, such as ScenarioStudio, Aimsun, etc. Scenario Studio provides a visual editing interface and rich functions, which can easily create complex traffic scenes and automated driving tasks; Aimsun provides powerful modeling tools and real-time simulation functions, which can simulate complex traffic scenes and vehicle behaviors.
[0036] Among them, the target simulation scene also includes at least the vehicle's initial posture information and the vehicle's driving rules. The vehicle's initial posture information includes the vehicle's position, pitch angle, roll angle, heading angle, etc. The vehicle's initial posture information is extracted from the driving data of the first time point among multiple time points. The vehicle's driving rules include traffic light response, yield rules, lane change logic, etc.
[0037] In some embodiments, after obtaining the target simulation scene, an obstacle attribute is configured for each simulated obstacle in the target simulation scene, and the obstacle attribute indicates whether the simulated obstacle is visible in the target simulation scene. The obstacle attribute can be stable visible, jump visible, and invisible, and jump visible means that the obstacle is sometimes visible and sometimes invisible when the target simulation scene is used for simulation testing.
[0038] In the actual processing process, after obtaining the driving data of the vehicle at a time point, a corresponding grid map can be generated according to the driving data at this time point, and then simulated obstacle points corresponding to the obstacle points included in the grid map are generated in the initial simulation scene according to the grid map, and then the corresponding grid map is generated according to the driving data corresponding to the next time point after this time point, and simulated obstacle points corresponding to the obstacle points included in the grid map are generated in the initial simulation scene according to the grid map. In this way, simulated obstacle points corresponding to the obstacle points included in the grid map corresponding to multiple time points are generated in the initial simulation scene map, that is, simulated obstacles corresponding to the target obstacles perceived at multiple time points, and the target simulation scene is obtained.
[0039] In this embodiment, according to the driving data of the vehicle at each time point in multiple time points, a grid map corresponding to each time point is generated, and according to the obstacle points included in the grid maps corresponding to the multiple time points, a simulated obstacle is generated in the initial simulation scene, and the simulated obstacle includes at least one simulated obstacle point, and the size of the simulated obstacle point is the same as that of the obstacle point, so that the obstacle point is restored one-to-one through the simulated obstacle point in the simulation scene, so that the simulated obstacle indicated by the simulated obstacle point in the simulation scene has a high degree of fit with the real target obstacle, and the purpose of accurately restoring the target obstacle by the simulated obstacle is achieved, and the authenticity of the simulation scene is guaranteed, thereby improving the accuracy of the simulation test. At the same time, generating a simulation scene according to time data avoids the high cost of manually constructing a target simulation scene, and solves the problem of a single simulation scene and fixed rules.
[0040] In one embodiment, if Figure 2 As shown, S102 may include:
[0041] S201 , performing internal corrosion processing on an obstacle point area constituted by obstacle points in a grid map corresponding to each of the multiple time points, to obtain a pre-processed grid map corresponding to each of the multiple time points.
[0042] Among them, the obstacle point area corresponds to the target obstacle one by one, the obstacle point area is composed of at least one obstacle point, and the corrosion processing is to modify the attribute information of at least one obstacle point in the obstacle point area in the raster map to indicate that there is no obstacle there, for example, the grayscale value of some obstacle points in the obstacle point area is modified to 0.
[0043] In some embodiments, S201 may include: removing target obstacle points in the grid maps corresponding to each of the multiple time points to obtain preprocessed grid maps corresponding to each of the multiple time points; the target obstacle point refers to an obstacle point in the obstacle point area that only contacts the obstacle points included in the obstacle point area.
[0044] like Figure 3 As shown, Figure 3 is the grid map corresponding to a certain point in time, Figure 3 The middle gray area is the obstacle point area formed by the obstacle points. Figure 4 for Figure 3 The preprocessed grid map corresponding to the medium grid map, Figure 4 The obstacle point corresponding to the middle stripe area is the target obstacle point.
[0045] If there are no obstacle points in the obstacle point area that only touch the obstacle points included in the obstacle point area, there is no need to perform internal corrosion processing on the grid map.
[0046] S202: Generate simulated obstacles in the initial simulation scene according to the obstacle points in the pre-processed grid map corresponding to each of the multiple time points to obtain a target simulation scene.
[0047] The simulated obstacle consisting of simulated obstacle points corresponding to the obstacle points included in the preprocessed grid map corresponds to the target obstacle one by one, but the number of simulated obstacle points included in the simulated obstacle is less than the number of target obstacle points included in the target obstacle.
[0048] In this embodiment, an internal corrosion process is performed on an obstacle point area composed of obstacle points in a grid map corresponding to each of the multiple time points to obtain a preprocessed grid map corresponding to each of the multiple time points. The internal corrosion process eliminates obstacle points inside the obstacle point area that have no effect on the simulation test and retains peripheral obstacle points. Then, corresponding simulated obstacle points are generated according to the obstacle points included in the preprocessed grid map, so that the simulated obstacle composed of the simulated obstacle points can restore the target obstacle while improving the generation efficiency of the simulation scene and ensuring the availability of the simulated obstacle.
[0049] In one embodiment, if Figure 5 As shown, the method also includes:
[0050] S301. Acquire initial parking space information corresponding to a target parking space sensed by a vehicle at a first time point among multiple time points and other parking space information corresponding to the target parking space sensed by the vehicle at other time points.
[0051] Among them, the other time points are time points other than the first time point among the multiple time points, and there is at least one other time point.
[0052] Among them, the initial parking space information and other parking space information refer to the information collected by the vehicle's sensors, including millimeter-wave radar, lidar, camera, global positioning system GPS / inertial measurement unit IMU, etc. The initial parking space information and other parking space information include parking space depth, parking space width, heading angle, etc. The target parking space can be a longitudinal parking space or a transverse parking space, and there is no restriction here.
[0053] S302: Determine the area map corresponding to each grid map in the electronic map.
[0054] In some embodiments, S302 may include: preprocessing the grid map of each time point to obtain an intermediate grid map, the intermediate grid map being consistent with the format and coordinate system of the electronic map; extracting target features from the intermediate grid map; inputting the intermediate grid map and / or target features into a matching algorithm, and matching the area map corresponding to the grid map corresponding to each time point in the electronic map.
[0055] The preprocessing of the raster map here may be cleaning, converting, etc. of the raster map, and the target features may be edge obstacle points, textures of the raster map, etc. The raster map also includes grid cells that can indicate road information, and the road information includes at least lane length, width information, number of lanes, and coordinate origins. The grid cells corresponding to the road information may also be used as target features. Cleaning is used to remove noise, stains, or other unnecessary elements in the raster map, and the cleaning method may be filtering, median filtering, morphological processing, regional growing, etc., and conversion is used to convert the raster map from one format or coordinate system to another format or coordinate system.
[0056] Among them, the matching algorithm can be feature-based matching, probability-based matching, etc. Feature-based matching is to compare the target features in the intermediate grid map with the features extracted from the electronic map, and determine that the regional map where the features of the electronic map with a relatively high similarity to the target features are located is the regional map corresponding to the intermediate grid map. Probability-based matching is to establish a probability model, perform probability calculation and matching on the intermediate grid map and the electronic map, and determine that the regional map in the electronic map with a relatively high probability of matching with the intermediate grid map is the regional map corresponding to the intermediate grid map.
[0057] After obtaining the regional map, you can also evaluate the matching results of the regional map matched to the raster map to check the matching accuracy and reliability. If the matching result does not meet the requirements, preprocess the raster map or adjust the matching algorithm to re-match the regional map corresponding to the raster map.
[0058] In this embodiment, the regional map can be matched with the grid map to detect whether the regional map has changed. After the regional map has changed, such as adding new buildings, road reconstruction, etc., the regional map can be updated according to the grid map to improve the accuracy of the regional map.
[0059] S303: adjusting each area map in the electronic map according to the initial parking space information corresponding to the target parking space and other parking space information, and obtaining an adjusted electronic map as a simulation map.
[0060] After the initial vehicle information of the target parking space is obtained, the target parking space in each area map of the electronic map is adjusted according to the initial vehicle information, so that the accuracy of the target parking space in the simulation map is higher.
[0061] In this embodiment, the accuracy of the target parking space in the electronic map is improved by adjusting the corresponding target parking space in the electronic map through the initial parking space information of the target parking space collected by the vehicle during the parking process, and a simulation map is generated based on the adjusted electronic map, thereby ensuring the consistency between the simulation map and the actual map in the simulation test and improving the authenticity of the simulation map.
[0062] In the actual processing process, after obtaining the other parking space information of the first other time point, the target parking space that has been adjusted according to the initial parking space information is adjusted again according to the parking space information of the target parking space in the other parking space information. After each subsequent parking space information of the target parking space at another time point is obtained, the target parking space adjusted last time is adjusted again until the target parking space is adjusted according to the other parking space information of multiple other time points, and the adjusted area map is obtained as the simulation map.
[0063] In the actual processing process, if there are other parking spaces other than the target parking space in the other parking space information obtained at a certain time point, when the target parking space is adjusted later, the other parking spaces can be adjusted synchronously. For example, if the parking space information qc11 of the other parking space qc1 is detected from the third time point to the fifth time point, the parking space information qc11 of the other parking space qc1 obtained at the third time point can be adjusted by the parking space information qc22 of the other parking space qc1 obtained at the fourth time point to obtain the parking space information qc33 of the other parking space at the fourth time point, and the parking space information qc44 of the other parking space qc1 obtained at the fourth time point can be adjusted by the parking space information qc44 of the other parking space qc1 obtained at the fifth time point to obtain the parking space information qc66 of the other parking space at the fifth time point.
[0064] In some implementations, S303 may include: obtaining a simulation scene file according to a target simulation scene; obtaining a simulation map file according to a simulation map; and performing a simulation test according to the simulation scene file and the simulation map file.
[0065] After obtaining the target simulation scene, export the simulation scene file from the simulation tool. The simulation scene file is an OpenScenar io format file. After obtaining the simulation scene file, use software that supports opening OpenScenar io format files to debug and modify the simulation scene file to obtain the final simulation scene file that can be input into the simulation engine. Among them, the target simulation scene can be the adjusted target simulation scene obtained after configuring the obstacle attributes of the simulated obstacles, or it can be the target simulation scene without configuring the obstacle attributes of the simulated obstacles. If it is the latter, the subsequent configuration of the obstacle attributes of the simulated obstacles only needs to be configured in the simulation scene file.
[0066] After obtaining the simulation map, set the map parameters to match the parameters in the simulation scene. The map parameters can be traffic signs, etc., and export the simulation map file from the simulation tool. The simulation map file is an OpenOpenDRIVE format file. After obtaining the simulation map file, use software that supports opening OpenOpenDRIVE format files to debug and modify the simulation map file to obtain the final simulation map file that can be input into the simulation engine.
[0067] The parameters and objects in the obtained simulation scene file and simulation map file can be modified.
[0068] Finally, the obtained simulation scene files and simulation map files are input into the simulation system for simulation testing.
[0069] like Figure 6As shown, first, the vehicle collects raw data during driving and sends the collected raw data to the database. The database sends the raw data to the electronic device in YAML (YAML Ai n't Markup Language) format. The electronic device parses the raw data, parses the initial posture information of the vehicle at the first time point in the raw data, and the grid map and parking space information at each time point. According to the initial posture information, grid map and parking space information obtained by the analysis, the target simulation scene and simulation map are determined, and the simulation scene file and simulation map file are generated. The simulation scene file and simulation map file are input into the simulation system. The simulation system parses the simulation scene file and simulation map file, and the parsed map and scene are input into the simulation engine, and the lighting, shadow, texture, special effects, etc. of the scene and map are rendered by the rendering engine to obtain the final simulation data. The simulation data is sent to the vehicle through the Data Distribution Service (DDS) and the Robot Operating System (ROS) to simulate and test the automatic parking planning algorithm of the vehicle.
[0070] The simulation system also includes an adapter for converting the data format and communication protocol of the simulation model into the format and protocol supported by the external component or system, so that the simulation model can perform effective data interaction and communication with other systems.
[0071] In this embodiment, since the simulation scene files and the simulation map files are generated based on the information perceived by the vehicle, simulation tests are performed through the simulation scene files and the simulation map files to achieve simulation of various actual parking scenes, thereby greatly improving the efficiency and accuracy of the simulation tests.
[0072] See attached Figure 7 , Figure 7 The structure block diagram of a simulation scene generation device proposed in one embodiment of the present application is shown. For electronic equipment, the device 600 includes:
[0073] A generating module 601 is used to generate a grid map corresponding to each time point according to the driving data of the vehicle at each time point among the multiple time points; the grid map corresponding to the time point includes an obstacle point corresponding to the target obstacle perceived by the vehicle at the time point;
[0074] The determination module 602 is used to generate simulated obstacles in the initial simulation scene according to the obstacle points in the grid map corresponding to each of the multiple time points to obtain a target simulation scene; each simulated obstacle includes at least one simulated obstacle point, and the simulated obstacle point has the same size as the obstacle point.
[0075] Optionally, the determination module 602 is also used to perform internal corrosion processing on the obstacle point area constituted by the obstacle points in the grid map corresponding to each of the multiple time points to obtain the preprocessed grid maps corresponding to each of the multiple time points; the obstacle point area corresponds one-to-one to the target obstacle; according to the obstacle points in the preprocessed grid map corresponding to each of the multiple time points, simulated obstacles are generated in the initial simulation scene to obtain the target simulation scene.
[0076] Optionally, the determination module 602 is further used to remove target obstacle points in the grid maps corresponding to the multiple time points to obtain preprocessed grid maps corresponding to the multiple time points; the target obstacle point refers to an obstacle point in the obstacle point area that only contacts the obstacle points included in the obstacle point area.
[0077] Optionally, the determination module 602 is further configured to configure an obstacle attribute for each simulated obstacle in the target simulation scene, where the obstacle attribute indicates whether the simulated obstacle is visible in the target simulation scene.
[0078] Optionally, the determination module 602 is also used to obtain initial parking space information corresponding to the target parking space perceived by the vehicle at a first time point among multiple time points and other parking space information corresponding to the target parking space perceived by the vehicle at other time points, where the other time points are time points other than the first time point among the multiple time points; determine the regional map corresponding to each grid map in the electronic map; adjust each regional map in the electronic map according to the initial parking space information and other parking space information corresponding to the target parking space, and obtain the adjusted electronic map as a simulation map.
[0079] Optionally, the determination module 602 is further configured to obtain a simulation scene file according to the target simulation scene; obtain a simulation map file according to the simulation map; and perform simulation testing according to the simulation scene file and the simulation map file.
[0080] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0081] In addition, each function in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules.
[0082] Please refer to Figure 8, which shows a structural block diagram of an electronic device provided according to an embodiment of the present application. The electronic device 720 can be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, and a vehicle. The electronic device 720 in the present application may include one or more of the following components: a processor 721, a memory 722, and one or more applications. One or more applications may be stored in the memory 722 and configured to be executed by one or more processors 721, and one or more programs are configured to execute the method described in the aforementioned method embodiment.
[0083] The processor 721 may include one or more processing cores. The processor 721 uses various interfaces and lines to connect the various parts of the entire electronic device 720, and executes various functions and processes data of the electronic device 720 by running or executing instructions, programs, code sets or instruction sets stored in the memory 722, and calling data stored in the memory 722. Optionally, the processor 721 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 721 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 721, but may be implemented separately through a communication chip.
[0084] The memory 722 may include a random access memory (RAM) or a read-only memory (ROM). The memory 722 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 722 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 720 during use.
[0085] In addition, each function in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules.
[0086] On the other hand, the present application also provides a computer-readable storage medium, in which program code is stored. The program code can be called by a processor to execute the method described in the above method embodiment.
[0087] The computer readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a cluster of ROMs. Optionally, the computer readable storage medium comprises a non-transitory computer-readable storage medium. The computer readable storage medium has storage space for program codes that execute any of the method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code can be compressed, for example, in an appropriate form.
[0088] On the other hand, the present application also provides a computer program product, which includes a computer program / instruction, and the computer program / instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method in any of the above embodiments.
[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A simulation scene generation method, characterized in that: The method comprises: Generate a grid map corresponding to each time point according to driving data of the vehicle at each time point among a plurality of time points; the grid map corresponding to the time point includes an obstacle point corresponding to a target obstacle sensed by the vehicle at the time point; Generate simulated obstacles in the initial simulation scene according to the obstacle points in the grid map corresponding to each of the multiple time points to obtain a target simulation scene; each of the simulated obstacles includes at least one simulated obstacle point, and the simulated obstacle point has the same size as the obstacle point; the initial simulation scene is a scene corresponding to parking in the simulation tool; Acquire initial parking space information corresponding to the target parking space sensed by the vehicle at a first time point among the multiple time points and other parking space information corresponding to the target parking space sensed by the vehicle at other time points, wherein the other time points are time points other than the first time point among the multiple time points; Determining in the electronic map the area map corresponding to each of the grid maps; According to the initial parking space information corresponding to the target parking space and the other parking space information, each area map in the electronic map is adjusted to obtain an adjusted electronic map as a simulation map.
2. The method according to claim 1, characterized in that Generating simulated obstacles in the initial simulation scene according to the obstacle points in the grid map corresponding to each of the plurality of time points to obtain a target simulation scene includes: Performing internal corrosion processing on an obstacle point region formed by obstacle points in a grid map corresponding to each of the multiple time points to obtain a pre-processed grid map corresponding to each of the multiple time points; the obstacle point region corresponds to the target obstacle one by one; According to the obstacle points in the preprocessed grid map corresponding to each of the plurality of time points, simulated obstacles are generated in the initial simulation scene to obtain a target simulation scene.
3. The method according to claim 2, characterized in that The step of performing internal corrosion processing on the obstacle point area formed by the obstacle points in the grid maps corresponding to the multiple time points to obtain the pre-processed grid maps corresponding to the multiple time points includes: The target obstacle points in the grid maps corresponding to the multiple time points are removed to obtain the preprocessed grid maps corresponding to the multiple time points; the target obstacle points refer to the obstacle points in the obstacle point area that only touch the obstacle points included in the obstacle point area.
4. The method according to claim 1, characterized in that: After obtaining the target simulation scenario, the method further includes: An obstacle attribute is configured for each of the simulated obstacles in the target simulation scene, where the obstacle attribute indicates whether the simulated obstacle is visible in the target simulation scene.
5. The method according to claim 1, characterized in that The method further comprises: According to the target simulation scenario, a simulation scenario file is obtained; According to the simulation map, a simulation map file is obtained; A simulation test is performed according to the simulation scene file and the simulation map file.
6. A simulation scene generation device, characterized in that: The device comprises: A generating module, configured to generate a grid map corresponding to each time point according to driving data of the vehicle at each time point among a plurality of time points; the grid map corresponding to the time point includes an obstacle point corresponding to a target obstacle sensed by the vehicle at the time point; A determination module, configured to generate simulated obstacles in an initial simulation scene according to obstacle points in a grid map corresponding to each of the plurality of time points, so as to obtain a target simulation scene; each of the simulated obstacles includes at least one simulated obstacle point, and the simulated obstacle point has the same size as the obstacle point; the initial simulation scene is a scene corresponding to parking in the simulation tool; The determination module is further used to obtain initial parking space information corresponding to the target parking space sensed by the vehicle at a first time point among the multiple time points and other parking space information corresponding to the target parking space sensed by the vehicle at other time points, wherein the other time points are time points other than the first time point among the multiple time points; determine the regional map corresponding to each of the grid maps in the electronic map; and adjust each regional map in the electronic map according to the initial parking space information corresponding to the target parking space and the other parking space information to obtain the adjusted electronic map as the simulation map.
7. An electronic device, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1-5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the method according to any one of claims 1 to 5.
9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
A method and apparatus for rendering a scene in a vehicle autopilot simulator
CN109101690A
Road fence detection method, device and equipment and storage medium
CN111310663A
Automatic parking test method and device, storage medium and equipment
CN115755869A
Virtual scene generation method and device
CN116740295A
Vehicle travelable area detection method, related device and storage medium
CN117372995A
