A simulation scenario testing method, apparatus, device, and storage medium
By using mock testing technology to switch scenarios in real time during simulation testing, the problem of low simulation testing efficiency caused by the inability to switch scenarios in real time in existing technologies is solved, thus achieving efficient simulation testing.
Patent Information
- Application Number
- CN202310063618.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-31
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2043-01-31
AI Technical Summary
Existing technologies cannot switch scenarios in real time during simulation testing, resulting in insufficient simulation testing efficiency.
The mock testing technology is used to generate virtual test scenarios. The mock test scenarios are switched in real time through test scenario switching commands, and the target mock scenario model is loaded for simulation testing.
It enables real-time scene switching during simulation testing, improving simulation testing efficiency.
Smart Images

Figure CN116305529B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of simulation testing technology, and in particular to a simulation scenario testing method, apparatus, device and storage medium. Background Technology
[0002] To ensure the effectiveness of simulation testing, scenario simulation data for various scenarios is often prepared beforehand. During simulation testing, different scenario simulation data are called to achieve simulation testing under different scenarios. However, when switching to different scenario simulation data, it is not possible to switch the scenario simulation data in real time. It is often necessary to wait until the current simulation test is completed before switching to other scenario simulation data, and the simulation test process needs to be re-executed, which brings many inconveniences to simulation testing. Summary of the Invention
[0003] This invention provides a simulation scenario testing method, apparatus, device, and storage medium, which can switch the simulation test scenario in real time while performing simulation testing on the current scenario, thereby improving the efficiency of simulation testing.
[0004] In a first aspect, embodiments of the present invention provide a simulation scenario testing method, the method comprising:
[0005] During the simulation test of the current mock test scenario of the target test vehicle, the next mock test scenario of the target test vehicle is determined based on the test scenario switching instruction;
[0006] Load the target mock scene model of the next mock test scenario, and perform simulation tests on the target test vehicle based on the target mock scene model to obtain target simulation scene test data.
[0007] Secondly, embodiments of the present invention provide a simulation scene testing device, the device comprising:
[0008] The mock test scenario switching module is used to determine the next mock test scenario for the target test vehicle based on the test scenario switching command during the simulation test of the current mock test scenario of the target test vehicle.
[0009] The mock scene simulation test module is used to load the target mock scene model of the next mock test scene, and perform simulation tests on the target test vehicle based on the target mock scene model to obtain target simulation scene test data.
[0010] Thirdly, embodiments of the present invention provide a computer device, the computer device comprising:
[0011] One or more processors;
[0012] Memory, used to store one or more programs;
[0013] When the one or more programs are executed by the one or more processors, the one or more processors implement the simulation scenario testing method described in any embodiment.
[0014] Fourthly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the simulation scenario testing method described in any embodiment.
[0015] The technical solution provided by this invention determines the next mock test scenario for the target test vehicle based on a test scenario switching command during the simulation test of the current mock test scenario. It then loads the target mock scenario model for the next mock test scenario and performs simulation testing on the target test vehicle based on the target mock scenario model to obtain target simulation scenario test data. This invention solves the problem of insufficient simulation testing efficiency caused by the inability to switch simulation test scenarios in real time during the simulation test of the current scenario. It allows for real-time switching of simulation test scenarios during the simulation test of the current scenario, thereby improving simulation testing efficiency. Attached Figure Description
[0016] Figure 1 This is a flowchart of a simulation scenario testing method provided in an embodiment of the present invention;
[0017] Figure 2 This is a flowchart of a simulation scenario testing method provided in an embodiment of the present invention;
[0018] Figure 3 This is a flowchart of a mock scene model training method provided in an embodiment of the present invention;
[0019] Figure 4 This is a flowchart of a mock scene model training process provided by an embodiment of the present invention;
[0020] Figure 5 This is a flowchart of a mock scene model training process provided by an embodiment of the present invention;
[0021] Figure 6 This is a schematic diagram of the structure of a simulation scene testing device provided in an embodiment of the present invention;
[0022] Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0024] Figure 1 This is a flowchart of a simulation scenario testing method provided by an embodiment of the present invention. The embodiment of the present invention can be applied to scenarios for simulating vehicle testing. The method can be executed by a simulation scenario testing device, which can be implemented by software and / or hardware.
[0025] like Figure 1 As shown, the simulation scenario testing method includes the following steps:
[0026] S110. During the simulation test of the current mock test scenario of the target test vehicle, the next mock test scenario of the target test vehicle is determined based on the test scenario switching instruction.
[0027] The target test vehicle can be any vehicle that requires simulation testing, such as a sweeper or a sedan. Furthermore, the test scenarios can include various types. For example, weather factors can be used as a classification standard for test scenarios, including rainy day test scenarios, sunny day test scenarios, and foggy day test scenarios; alternatively, road congestion levels can be used as a classification standard, including long congested road sections, short congested road sections, and uncongested road sections. No specific type of test scenario is limited here.
[0028] In existing technologies, when simulating a test scenario, switching test scenarios requires stopping the simulation test for one scenario and then applying scenario data from another. The simulation test process then needs to restart, causing significant inconvenience. To address this issue, mock testing technology can be introduced. By mimicking the scenario data of the original test scenario, a virtual test scenario, or mock test scenario, can be generated. Mock testing is a software testing method that facilitates testing by generating virtual objects of objects that are difficult to construct or obtain. Therefore, mock testing technology can be used to generate virtual test scenarios, aiding in the simulation test process. When simulating test scenario A, switching to test scenario B can be achieved in real-time by calling the mock test scenario of test scenario B. After switching to the mock test scenario of test scenario B, the simulation test can continue without restarting the simulation test process, significantly improving the efficiency of simulation testing.
[0029] The current mock test scenario is the mock test scenario in which vehicle simulation testing is being performed. For example, when simulating a target test vehicle based on a rainy day mock test scenario, then the rainy day test scenario is the current mock test scenario. The next mock test scenario is the mock test scenario that follows the current mock test scenario. Specifically, the next mock test scenario for the target test vehicle can be determined based on a test scenario switching command. This test scenario switching command can be an instruction to switch the mock test scenario. For example, when a user issues a test scenario switching command through a preset human-machine interface, the next mock test scenario for the target test vehicle can be determined based on this command.
[0030] S120. Load the target mock scene model of the next mock test scenario, and perform simulation testing on the target test vehicle based on the target mock scene model to obtain target simulation scene test data.
[0031] The target mock scenario model can be a model used to simulate and reconstruct the next mock test scenario. After determining the next mock test scenario, the target mock scenario model can be loaded, and simulation tests can be performed on the target test vehicle based on the target mock scenario model to obtain target simulation scenario test data. The target simulation scenario test data can include simulation scenario test data obtained by the target test vehicle under both the current mock test scenario and the next mock test scenario.
[0032] The technical solution provided by this invention determines the next mock test scenario for the target test vehicle based on a test scenario switching command during the simulation test of the current mock test scenario. It then loads the target mock scenario model for the next mock test scenario and performs simulation testing on the target test vehicle based on the target mock scenario model to obtain target simulation scenario test data. This invention solves the problem of insufficient simulation testing efficiency caused by the inability to switch simulation test scenarios in real time during the simulation test of the current scenario. It allows for real-time switching of simulation test scenarios during the simulation test of the current scenario, thus improving simulation testing efficiency.
[0033] Figure 2 This is a flowchart of a simulation scenario testing method provided by an embodiment of the present invention. The embodiment of the present invention can be applied to scenarios for simulating vehicle testing. Based on the above embodiments, this embodiment further explains how to determine the next mock test scenario for the target test vehicle based on the test scenario switching instruction. This device can be implemented by software and / or hardware and integrated into a computer device with application development capabilities.
[0034] like Figure 2 As shown, the simulation scenario testing method includes the following steps:
[0035] S210. During the simulation test of the current mock test scenario of the target test vehicle, when any scene tag other than the scene tag of the current mock test scenario is selected in the preset mock test scenario list of the preset vehicle simulation test display and interaction interface, a test scenario switching instruction is obtained.
[0036] The target test vehicle can be any vehicle that requires simulation testing, such as a sweeper or a sedan. Furthermore, the test scenarios can include various types. For example, weather factors can be used as a classification standard for test scenarios, including rainy day test scenarios, sunny day test scenarios, and foggy day test scenarios; alternatively, road congestion levels can be used as a classification standard, including long congested road sections, short congested road sections, and uncongested road sections. No specific type of test scenario is limited here.
[0037] In existing technologies, when simulating a test scenario, switching test scenarios requires stopping the simulation test for one scenario and then applying scenario data from another. The simulation test process then needs to restart, causing significant inconvenience. To address this issue, mock testing technology can be introduced. By mimicking the scenario data of the original test scenario, a virtual test scenario, or mock test scenario, can be generated. Mock testing is a software testing method that facilitates testing by generating virtual objects of objects that are difficult to construct or obtain. Therefore, mock testing technology can be used to generate virtual test scenarios, aiding in the simulation test process. When simulating test scenario A, switching to test scenario B can be achieved in real-time by calling the mock test scenario of test scenario B. After switching to the mock test scenario of test scenario B, the simulation test can continue without restarting the simulation test process, significantly improving the efficiency of simulation testing.
[0038] The current mock test scenario is the mock test scenario in which vehicle simulation testing is being performed. For example, when simulating a target test vehicle based on a rainy day mock test scenario, then the rainy day test scenario is the current mock test scenario.
[0039] Furthermore, the preset vehicle simulation test display and interactive interface can be a preset interface for displaying mock test scenarios. At the same time, users can also perform interactive operations on this interface to switch mock test scenarios.
[0040] The preset mock test scenario list can be a list containing various mock test scenarios. Users can select the mock test scenario they want to switch to from the preset mock test scenario list. The test scenario switching command can be a command to switch mock test scenarios. When any scenario tag other than the scenario tag of the current mock test scenario is selected in the preset mock test scenario list of the preset vehicle simulation test display and interactive interface, the test scenario switching command is triggered, and then the current mock test scenario is switched to the mock test scenario corresponding to the selected scenario tag.
[0041] S220. The mock test scenario corresponding to the selected scenario label is determined as the next mock test scenario for the target test vehicle.
[0042] The next mock test scenario is the mock test scenario that follows the current mock test scenario. Specifically, when a user selects a scenario tag in the list of preset mock test scenarios, the mock test scenario corresponding to the selected scenario tag can be set as the next mock test scenario for the target test vehicle, which means that the target test vehicle will be simulated and tested based on the next mock test scenario.
[0043] S230. Load the target mock scene model of the next mock test scenario, and perform simulation testing on the target test vehicle based on the target mock scene model to obtain target simulation scene test data.
[0044] The target mock scenario model can be a model used to simulate and reconstruct the next mock test scenario. After determining the next mock test scenario, the target mock scenario model can be loaded, and simulation tests can be performed on the target test vehicle based on the target mock scenario model to obtain target simulation scenario test data. The target simulation scenario test data can include simulation scenario test data obtained by the target test vehicle under both the current mock test scenario and the next mock test scenario.
[0045] The technical solution provided by this invention, during the simulation testing of the current mock test scenario of the target test vehicle, when any scene tag other than the scene tag of the current mock test scenario is selected in the preset mock test scenario list of the preset vehicle simulation test display and interactive interface, a test scenario switching instruction is obtained; the mock test scenario corresponding to the selected scene tag is determined as the next mock test scenario for the target test vehicle; the target mock scenario model of the next mock test scenario is loaded, and the target test vehicle is simulated based on the target mock scenario model to obtain target simulation scenario test data. The technical solution of this invention solves the problem of insufficient simulation testing efficiency caused by the inability to switch simulation test scenarios in real time when simulating the current scenario in the prior art. It allows for real-time switching of simulation test scenarios during the simulation testing of the current scenario, improving simulation testing efficiency.
[0046] Figure 3 This is a flowchart of a simulation scenario testing method provided by an embodiment of the present invention. The embodiment of the present invention can be applied to scenarios for simulating vehicle testing. Based on the above embodiments, this embodiment further explains how to train the target mock scenario model and how to apply the trained target mock scenario model to the simulation test. The device can be implemented by software and / or hardware and integrated into a computer device with application development capabilities.
[0047] like Figure 3 As shown, the simulation scenario testing method includes the following steps:
[0048] S310. Obtain the preset scenario data of the preset test scenario, and fill the general mock scenario model based on the preset scenario data to obtain the initial mock scenario model of the preset test scenario.
[0049] Among them, the preset test scenario can be a preset type of test scenario. For example, using weather factors as the classification standard for preset test scenarios, the preset test scenarios can include test scenarios of rainy day, sunny day, foggy day, etc. Furthermore, the preset scenario data can be real scene data collected within the preset test scenario. For example, when using weather factors as the classification standard for preset test scenarios, the preset scenario data can include data such as light intensity, humidity, and temperature.
[0050] A general mock scenario model can be applicable to simulating various test scenarios. By filling the general mock scenario model with preset scenario data for a given test scenario, an initial mock scenario model simulating that preset test scenario can be obtained. Specifically, each scenario data point from the preset scenario data can be filled into the respective scenario data slots in the general mock scenario model, thus completing the filling process of the general initial mock scenario model. The initial mock scenario model is the initial mock scenario model simulating the preset test scenario. Because the initial mock scenario model is merely an initial model obtained by filling in the preset scenario data, it is necessary to further determine whether it can adequately represent the preset test scenario. If it cannot adequately represent the preset test scenario, further optimization of the initial mock scenario model is required.
[0051] In one optional implementation, the simulated scene data can be compared with preset scene data to obtain a scene data comparison result; the simulated scene data can then be adjusted based on the scene data comparison result.
[0052] Simulation scenario data can be scenario data from the initial mock scenario model that simulates a preset test scenario. By comparing the simulation scenario data with the preset scenario data, it can be determined whether the step of filling the general mock scenario model based on the preset scenario data has been executed accurately. For example, when the simulation scenario data differs from the preset scenario data, the simulation scenario data can be adjusted according to the preset scenario data to make it consistent with the preset scenario data; when the simulation scenario data is the same as the preset scenario data, it indicates that the above filling step has been executed accurately, and no adjustment to the simulation scenario data is needed.
[0053] S320. Based on the initial mock scene model, perform simulation testing on the target test vehicle to obtain mock scene model test data.
[0054] Among them, the mock scene model test data can be the simulation test results obtained by the target test vehicle under the initial mock scene model. By conducting simulation tests on the target test vehicle based on the initial mock scene model, the results of the simulation test can be used to judge whether the initial mock scene model can well represent the preset test scenario.
[0055] S330. Adjust the initial mock scene model according to the mock scene model test data to obtain the target mock scene model.
[0056] This involves comparing mock scene model test data with reference scene test standard data to obtain scene test comparison results; and adjusting the simulation scene data in the initial mock scene model based on the scene test comparison results.
[0057] For example, when the difference between preset indicator items in the scenario test comparison results exceeds the reference test indicator standard threshold, the simulation scenario data in the initial mock scenario model is adjusted. The reference test indicator standard threshold can be a reference threshold set to determine whether the mock scenario model test data meets the simulation test standard. When the difference between preset indicator items in the scenario test comparison results exceeds the reference test indicator standard threshold, it indicates that the mock scenario model test data does not meet the simulation test standard. This may be because the initial mock scenario model cannot adequately represent the preset test scenario. Therefore, the simulation scenario data in the initial mock scenario model can be adjusted. For example, the simulation scenario data in the initial mock scenario model can be adjusted by strengthening the preset indicator data in the simulation scenario data or optimizing the simulation scenario data recording algorithm. After adjusting the initial mock scenario model based on the mock scenario model test data, a mock scenario model that better represents the preset test scenario, i.e., the target mock scenario model, can be obtained.
[0058] For example, Figure 4 This is a flowchart illustrating a process for training a mock scene model, as provided in an embodiment of the present invention. Figure 4As shown, the training workflow for mock scene models includes: filling a general mock scene model with preset scene data to obtain an initial mock scene model, and labeling each initial mock scene model; then switching to different initial mock scene models to perform simulation tests and obtain simulation test results; and finally adjusting the initial mock scene model according to the simulation test results to obtain the target mock scene model.
[0059] Optionally, the mock scenario model test data can be the simulation test results obtained by the target test vehicle under multiple initial mock scenario models during a single simulation test. Therefore, multiple segments of mock scenario model test sub-data in the mock scenario model test data can be compared with the corresponding reference scenario test standard sub-data. For example, during a simulation test, simulation test is performed based on the initial mock scenario model B1 in time period A1, resulting in mock scenario model test sub-data C1; simulation test is performed based on the initial mock scenario model B2 in time period A1, resulting in mock scenario model test sub-data C2; and simulation test is performed based on the initial mock scenario model B3 in time period A3, resulting in mock scenario model test sub-data C3. Subsequently, the mock scene model test sub-data C1 can be compared with the reference scene test standard sub-data within time period A1 of the reference scene test standard data D1 corresponding to the initial mock scene model B1; similarly, the mock scene model test sub-data C2 can be compared with the reference scene test standard data within time period A2 of the reference scene test standard data D2 corresponding to the initial mock scene model B2; and the mock scene model test sub-data C3 can be compared with the reference scene test standard data within time period A3 of the reference scene test standard data D3 corresponding to the initial mock scene model B3. By comparing multiple segments of mock scene model test sub-data with their corresponding reference scene test standard sub-data, we can verify whether each initial mock scene model can accurately represent the preset test scene, and we can also verify whether accurate simulation testing can still be performed after real-time switching of the initial mock scene model, further improving the accuracy and effectiveness of the target mock scene model.
[0060] Furthermore, the mock scene model label information can be determined based on the preset scene label information of the preset scene data; the correspondence between the mock scene model label information and the scene labels can be determined based on the correspondence between the target mock scene model and the mock test scene. For example, when the preset scene data is data from a rainy day test scene, the target mock scene model obtained based on this preset scene data is a model simulating a rainy day test scene; when the mock test scene is a rainy day test scene, the correspondence between the target mock scene model and this mock test scene is determined.
[0061] For example, Figure 5 This is a flowchart illustrating a process for training a mock scene model, as provided in an embodiment of the present invention. Figure 5 As shown, the training workflow for mock scene models is as follows: A general mock scene model is populated with preset scene data for each preset test scenario to obtain multiple initial mock scene models; each initial mock scene model is labeled to determine its label; during the simulation test of the current initial mock scene model, the model is switched to the next initial mock scene model based on its label, and the simulation test continues to obtain mock scene model test data; subsequently, it is determined whether the mock scene model test data meets the scene test standards. When the mock scene model test data meets the scene test standards, the initial mock scene model is used as the target mock scene model; when the mock scene model test data does not meet the scene test standards, the initial mock scene model is adjusted through analysis and summarization, and then the adjusted initial mock scene model continues to undergo simulation testing.
[0062] In one optional implementation, the simulation scene data in the initial mock scene model can be adjusted based on a simulation scene data adjustment command. This command can be issued by the user through a preset vehicle simulation test display and interactive interface. Upon receiving the command, the user can adjust the simulation scene data according to the information in the command, thereby enabling manual intervention in the training of the mock scene model and improving the speed and accuracy of the training.
[0063] S340. During the simulation test of the current mock test scenario of the target test vehicle, if any scene tag other than the scene tag of the current mock test scenario is selected in the preset mock test scenario list of the preset vehicle simulation test display and interaction interface, the next mock test scenario is determined.
[0064] The target test vehicle can be any vehicle that needs to be simulated, such as a sweeper truck, a car, or similar vehicle. The current mock test scenario is the mock test scenario in which the vehicle simulation test is being performed. For example, when simulating the target test vehicle based on a rainy day mock test scenario, then the rainy day test scenario is the current mock test scenario.
[0065] The preset vehicle simulation test display and interactive interface can be a pre-defined interface for displaying mock test scenarios. Users can also interact with this interface to switch between mock test scenarios. The preset mock test scenario list can be a pre-defined list containing various mock test scenarios. Users can select the desired mock test scenario from the preset mock test scenario list. When any scenario tag other than the current mock test scenario's scenario tag is selected in the preset mock test scenario list of the preset vehicle simulation test display and interactive interface, the mock test scenario corresponding to the selected scenario tag will be designated as the next mock test scenario.
[0066] S350. Load the target mock scene model of the next mock test scenario, and perform simulation testing on the target test vehicle based on the target mock scene model to obtain target simulation scene test data.
[0067] The target mock scenario model can be a model used to simulate and reconstruct the next mock test scenario. After determining the next mock test scenario, the target mock scenario model can be loaded, and simulation tests can be performed on the target test vehicle based on the target mock scenario model to obtain target simulation scenario test data. The target simulation scenario test data can be the sum of the simulation scenario test data obtained by the target test vehicle in the current mock test scenario and the next mock test scenario. The target simulation scenario test data can include the simulation scenario test data obtained by the target test vehicle in both the current and next mock test scenarios.
[0068] The technical solution provided by this invention involves obtaining preset scenario data for a preset test scenario, and filling a general mock scenario model with the preset scenario data to obtain an initial mock scenario model for the preset test scenario; performing simulation testing on a target test vehicle based on the initial mock scenario model to obtain mock scenario model test data; adjusting the initial mock scenario model according to the mock scenario model test data to obtain a target mock scenario model; during the simulation testing of the current mock test scenario of the target test vehicle, if any scenario tag other than the scenario tag of the current mock test scenario is selected in the preset mock test scenario list of the preset vehicle simulation test display and interaction interface, the next mock test scenario is determined; loading the target mock scenario model of the next mock test scenario, and performing simulation testing on the target test vehicle based on the target mock scenario model to obtain target simulation scenario test data. The technical solution of this invention obtains a target mock scene model that can be switched in real time by training a general mock scene model. The trained target mock scene model is then applied to simulation testing, which solves the problem that the existing technology cannot switch the simulation test scene in real time when simulating the current scene, resulting in insufficient simulation test efficiency. When simulating the current scene, the simulation test scene can be switched in real time, thus improving the simulation test efficiency.
[0069] Figure 6 This is a schematic diagram of the structure of a simulation scenario testing device provided in an embodiment of the present invention. The embodiment of the present invention can be applied to scenarios for simulating vehicle testing. The device can be implemented by software and / or hardware and integrated into a computer device with application development capabilities.
[0070] like Figure 6 As shown, the simulation scene testing device includes: a mock test scene switching module 510 and a mock scene simulation test module 520.
[0071] The mock test scenario switching module 510 is used to determine the next mock test scenario for the target test vehicle based on the test scenario switching instruction during the simulation test of the current mock test scenario of the target test vehicle; the mock scenario simulation test module 520 is used to load the target mock scenario model of the next mock test scenario and perform simulation test on the target test vehicle based on the target mock scenario model to obtain the target simulation scenario test data.
[0072] The technical solution provided by this invention determines the next mock test scenario for the target test vehicle based on a test scenario switching command during the simulation test of the current mock test scenario. It then loads the target mock scenario model for the next mock test scenario and performs simulation testing on the target test vehicle based on the target mock scenario model to obtain target simulation scenario test data. This invention solves the problem of insufficient simulation testing efficiency caused by the inability to switch simulation test scenarios in real time during the simulation test of the current scenario. It allows for real-time switching of simulation test scenarios during the simulation test of the current scenario, thus improving simulation testing efficiency.
[0073] In one optional implementation, the mock test scenario switching module 510 is specifically used to: obtain a test scenario switching instruction when any scenario tag other than the scenario tag of the current mock test scenario is selected in the preset mock test scenario list of the preset vehicle simulation test display and interaction interface; and determine the mock test scenario corresponding to the selected scenario tag as the next mock test scenario for the target test vehicle.
[0074] In one optional implementation, the simulation scenario testing device further includes: a mock scenario model training module, used to: acquire preset scenario data of a preset test scenario, and fill in a general mock scenario model based on the preset scenario data to obtain an initial mock scenario model of the preset test scenario; perform simulation testing on a target test vehicle based on the initial mock scenario model to obtain mock scenario model test data; and adjust the initial mock scenario model according to the mock scenario model test data to obtain a target mock scenario model.
[0075] In one optional implementation, the mock scene model training module is further configured to: compare the mock scene model test data with the reference scene test standard data to obtain the scene test comparison results; and adjust the simulation scene data in the initial mock scene model according to the scene test comparison results.
[0076] In one optional implementation, the mock scene model training module is specifically used to: adjust the simulation scene data in the initial mock scene model when the difference between preset indicator items in the scene test comparison results is greater than the standard threshold of the reference test indicator item.
[0077] In one optional implementation, the mock scene model training module is further used to: compare the simulated scene data with preset scene data to obtain a scene data comparison result; and adjust the simulated scene data according to the scene data comparison result.
[0078] In an optional implementation, the mock scene model training module is further configured to: determine the mock scene model label information of the mock scene model based on the preset scene label information of the preset scene data; and determine the correspondence between the mock scene model label information and the scene label based on the correspondence between the mock scene model label information and the scene label.
[0079] The simulation scene testing device provided in this embodiment of the invention can execute the simulation scene testing method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0080] Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Figure 7 A block diagram of an exemplary computer device 12 suitable for implementing embodiments of the present invention is shown. Figure 7 The computer device 12 shown is merely an example and should not be construed as limiting the functionality or scope of the embodiments of the present invention. The computer device 12 can be any terminal device with computing capabilities and can be configured within a simulation scenario testing device.
[0081] like Figure 7 As shown, the computer device 12 is represented in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and a bus 18 connecting different system components (including system memory 28 and processing unit 16).
[0082] Bus 18 can be one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0083] Computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0084] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (…). Figure 7 Not shown; usually referred to as a "hard drive"). Although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0085] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of the present invention.
[0086] Computer device 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with the computer device 12, and / or with any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 22. Furthermore, computer device 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be understood that, although... Figure 6 As not shown, it can be used in conjunction with computer device 12 with other hardware and / or software modules, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0087] Processing unit 16 executes various functional applications and data processing by running programs stored in system memory 28, such as implementing the simulation scene testing method provided in this embodiment, which includes:
[0088] During the simulation test of the current mock test scenario of the target test vehicle, the next mock test scenario of the target test vehicle is determined based on the test scenario switching instruction;
[0089] Load the target mock scene model of the next mock test scenario, and perform simulation tests on the target test vehicle based on the target mock scene model to obtain target simulation scene test data.
[0090] This embodiment provides a computer-readable storage medium storing a computer program thereon. When executed by a processor, the program implements the simulation scenario testing method provided in any embodiment of the present invention, including:
[0091] During the simulation test of the current mock test scenario of the target test vehicle, the next mock test scenario of the target test vehicle is determined based on the test scenario switching instruction;
[0092] Load the target mock scene model of the next mock test scenario, and perform simulation tests on the target test vehicle based on the target mock scene model to obtain target simulation scene test data.
[0093] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0094] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0095] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0096] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0097] Those skilled in the art will understand that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby allowing them to be stored in a storage device for execution by a computing device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0098] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.
Claims
1. A simulation scenario testing method, characterized in that, The method comprises: In the simulation test process of the current mock test scene of the target test vehicle, based on the test scene switching instruction, the next mock test scene of the target test vehicle is determined; Load the target mock scene model of the next mock test scene, and perform simulation test on the target test vehicle based on the target mock scene model to obtain target simulation scene test data; The training process of the target mock scene model comprises: Obtain preset scene data of a preset test scene, and fill the general mock scene model based on the preset scene data to obtain an initial mock scene model of the preset test scene; Perform simulation test on the target test vehicle based on the initial mock scene model to obtain mock scene model test data; Compare the mock scene model test data with reference scene test standard data to obtain a scene test comparison result; Adjust the simulation scene data in the initial mock scene model according to the scene test comparison result to obtain the target mock scene model; The training process of the target mock scene model further comprises: Compare the simulation scene data with the preset scene data to obtain a scene data comparison result; Adjust the simulation scene data according to the scene data comparison result.
2. The method of claim 1, wherein, The determination of the next mock test scene of the target test vehicle based on the test scene switching instruction comprises: When any scene label except the scene label of the current mock test scene in the preset mock test scene list of the preset vehicle simulation test display and interaction interface is selected, the test scene switching instruction is obtained; The selected mock test scene corresponding to the scene label is determined as the next mock test scene of the target test vehicle.
3. The method of claim 1, wherein, The adjustment of the simulation scene data in the initial mock scene model according to the scene test comparison result comprises: When the index item difference of a preset index item in the scene test comparison result is greater than a reference test index item standard threshold, the simulation scene data in the initial mock scene model is adjusted.
4. The method of claim 1, wherein, The training process of the target mock scene model further comprises: Adjust the simulation scene data in the initial mock scene model based on a simulation scene data adjustment instruction.
5. A simulation scenario testing apparatus characterized by comprising: The device comprises: A mock test scene switching module configured to determine the next mock test scene of the target test vehicle based on a test scene switching instruction in the simulation test process of the current mock test scene of the target test vehicle; A mock scene simulation test module configured to load the target mock scene model of the next mock test scene, and perform simulation test on the target test vehicle based on the target mock scene model to obtain target simulation scene test data; The mock scene model training module is configured to: acquire preset scene data of a preset test scene, and fill a general mock scene model based on the preset scene data to obtain an initial mock scene model of the preset test scene; perform simulation testing on a target test vehicle based on the initial mock scene model to obtain mock scene model test data; compare the mock scene model test data with reference scene test standard data to obtain a scene test comparison result; and adjust simulation scene data in the initial mock scene model according to the scene test comparison result to obtain a target mock scene model. The simulation scene data is compared with the preset scene data to obtain a scene data comparison result, and the simulation scene data is adjusted according to the scene data comparison result.
6. A computer device, comprising: The computer device includes: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the simulation scene test method as claimed in any one of claims 1-4.
7. A computer-readable storage medium having stored thereon a computer program, characterized in that The program is executed by the processor to implement the simulation scene test method as claimed in any one of claims 1-4.
Citation Information
Patent Citations
Virtual simulation test method and device applied to intelligent driving
CN111767630A
Simulation test method, device and equipment for automatic driving and storage medium
CN113093569A
Quick scene switching method and system based on VR simulation scene
CN114372383A
Reliability determination method and device of automatic driving system, equipment and medium
CN114444208A