Content-cutting scenario simulation test method and device
Patent Information
- Application Number
- CN202310824226.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-06
- Publication Date
- 2026-09-11
- Estimated Expiration
- 2043-07-06
AI Technical Summary
然而,在构建多场景集多引擎平台生态时,很可能会造成场景提供方的场景数据泄露,从而造成知识产权损失
[0048]This invention provides a content-segmented scene simulation testing method and apparatus. Compared with the method where the scene provider directly sends the complete scene data to the engine for calculation, this method can segment the scene script file corresponding to the specific scene to obtain at least two segmented scene files. The scene script file includes events and their corresponding triggering conditions and triggering actions. Then, the first segmented scene file of the at least two segmented scene files is sent to the first engine for simulation calculation, and the first running status parameter fed back by the first engine when the simulation calculation is completed is received. Then, according to the first running status parameter, the initial running conditions corresponding to the second segmented scene file of the at least two segmented scene files are updated, and the second segmented scene file and its corresponding initial running conditions are sent to the second engine for simulation calculation. The process of updating the initial running conditions and distributing the segmented scene files is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation calculation, thus completing the simulation test. Therefore, this invention, by segmenting the scene script file and distributing the segmented scene files to different engine providers for simulation calculations, ensures that each engine provider can only obtain partial scene data and cannot piece together complete scene data. This avoids data leakage for scene providers and protects their intellectual property rights.
Smart Images

Figure CN116882160B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of autonomous driving simulation technology, and more specifically, to a content-segmented scene simulation testing method and apparatus. Background Technology
[0002] Currently, to address the fragmentation issue of scenario libraries, it is necessary to establish a multi-scenario set, multi-engine simulation and testing service platform. Based on this platform, an ecosystem should be built, connecting with ecosystem partners who provide engines, scenario sets, and evaluation tools. However, building a multi-scenario set, multi-engine platform ecosystem may lead to the leakage of scenario data from scenario providers, resulting in intellectual property losses. Summary of the Invention
[0003] This invention provides a content-segmented scene simulation testing method and apparatus, which mainly avoids the leakage of scene data from scene providers, thereby protecting the intellectual property rights of scene providers.
[0004] According to a first aspect of the present invention, a content-segmented scene simulation testing method is provided, applied to a scene provider, comprising:
[0005] Obtain specific scenarios that meet the user's simulation testing needs;
[0006] The scene script file corresponding to the specific scene is segmented to obtain at least two segmented scene files, wherein the scene script file includes events and their corresponding triggering conditions and triggering actions;
[0007] Send the first segmented scene file from the at least two segmented scene files to the first engine for simulation calculation;
[0008] Receive the first running status parameters fed back from the first engine end when the simulation operation ends;
[0009] Based on the first running status parameter, update the initial running conditions corresponding to the second segmented scene file in the at least two segmented scene files;
[0010] The second segmented scene file and its corresponding initial running conditions are sent to the second engine for simulation calculation.
[0011] The process of updating the initial running conditions and distributing the segmented scene files is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation calculation, thus completing the simulation test.
[0012] According to a second aspect of the present invention, another content-segmented scene simulation testing method is provided, applied to a first engine, comprising:
[0013] The receiving scenario provider sends a first segmented scenario file from at least two segmented scenario files, wherein the scenario provider is used to segment the scenario script file corresponding to the specific scenario that meets the user's simulation test requirements to obtain the at least two segmented scenario files, wherein the scenario script file includes events and their corresponding triggering conditions and triggering actions;
[0014] The simulation is performed based on the first segmented scene file, and the first running status parameter at the end of the simulation is fed back to the scene provider. The scene provider is also used to update the initial running conditions corresponding to the second segmented scene file in the at least two segmented scene files according to the first running status parameter, and send the second segmented scene file and its corresponding initial running conditions to the second engine for simulation. The process of updating the initial running conditions and distributing the segmented scene files is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation, thus completing the simulation test.
[0015] According to a third aspect of the present invention, a content-segmented scene simulation testing device is provided, comprising:
[0016] The acquisition unit is used to acquire specific scenarios that meet the user's simulation testing requirements.
[0017] The segmentation unit is used to segment the scene script file corresponding to the specific scene to obtain at least two segmented scene files, wherein the scene script file includes events and their corresponding triggering conditions and triggering actions;
[0018] The sending unit is used to send the first segmented scene file from the at least two segmented scene files to the first engine end for simulation calculation;
[0019] The receiving unit is used to receive the first running status parameter fed back by the first engine end when the simulation operation ends;
[0020] The update unit is used to update the initial running conditions corresponding to the second segmented scene file in the at least two segmented scene files according to the first running state parameters;
[0021] The sending unit is also used to send the second segmented scene file and its corresponding initial running conditions to the second engine end for simulation calculation;
[0022] The sending unit is also used to repeat the process of updating the initial running conditions and distributing the segmented scene files until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation calculation to complete the simulation test.
[0023] According to a fourth aspect of the present invention, another content-segmented scene simulation testing apparatus is provided, comprising:
[0024] The receiving unit is used to receive a first segmented scene file from at least two segmented scene files sent by the scene provider. The scene provider is used to segment the scene script file corresponding to the specific scene that meets the user's simulation test requirements to obtain the at least two segmented scene files. The scene script file includes events and their corresponding triggering conditions and triggering actions.
[0025] The simulation unit is used to perform simulation calculations based on the first segmented scene file and feed back the first running status parameters at the end of the simulation calculation to the scene provider. The scene provider is also used to update the initial running conditions corresponding to the second segmented scene file among the at least two segmented scene files based on the first running status parameters, and send the second segmented scene file and its corresponding initial running conditions to the second engine for simulation calculation. The process of updating the initial running conditions and distributing the segmented scene files is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation calculation, thus completing the simulation test.
[0026] According to a fifth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, performs the following steps:
[0027] Obtain specific scenarios that meet the user's simulation testing needs;
[0028] The scene script file corresponding to the specific scene is segmented to obtain at least two segmented scene files, wherein the scene script file includes events and their corresponding triggering conditions and triggering actions;
[0029] Send the first segmented scene file from the at least two segmented scene files to the first engine for simulation calculation;
[0030] Receive the first running status parameters fed back from the first engine end when the simulation operation ends;
[0031] Based on the first running status parameter, update the initial running conditions corresponding to the second segmented scene file in the at least two segmented scene files;
[0032] The second segmented scene file and its corresponding initial running conditions are sent to the second engine for simulation calculation.
[0033] The process of updating the initial running conditions and distributing the segmented scene files is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation calculation, thus completing the simulation test.
[0034] According to a sixth aspect of the present invention, another computer-readable storage medium is provided, having a computer program stored thereon that, when executed by a processor, performs the following steps:
[0035] The receiving scenario provider sends a first segmented scenario file from at least two segmented scenario files, wherein the scenario provider is used to segment the scenario script file corresponding to the specific scenario that meets the user's simulation test requirements to obtain the at least two segmented scenario files, wherein the scenario script file includes events and their corresponding triggering conditions and triggering actions;
[0036] The simulation is performed based on the first segmented scene file, and the first running status parameter at the end of the simulation is fed back to the scene provider. The scene provider is also used to update the initial running conditions corresponding to the second segmented scene file in the at least two segmented scene files according to the first running status parameter, and send the second segmented scene file and its corresponding initial running conditions to the second engine for simulation. The process of updating the initial running conditions and distributing the segmented scene files is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation, thus completing the simulation test.
[0037] According to a seventh aspect of the present invention, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to perform the following steps:
[0038] Obtain specific scenarios that meet the user's simulation testing needs;
[0039] The scene script file corresponding to the specific scene is segmented to obtain at least two segmented scene files, wherein the scene script file includes events and their corresponding triggering conditions and triggering actions;
[0040] Send the first segmented scene file from the at least two segmented scene files to the first engine for simulation calculation;
[0041] Receive the first running status parameters fed back from the first engine end when the simulation operation ends;
[0042] Based on the first running status parameter, update the initial running conditions corresponding to the second segmented scene file in the at least two segmented scene files;
[0043] The second segmented scene file and its corresponding initial running conditions are sent to the second engine for simulation calculation.
[0044] The process of updating the initial running conditions and distributing the segmented scene files is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation calculation, thus completing the simulation test.
[0045] According to an eighth aspect of the present invention, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to perform the following steps:
[0046] The receiving scenario provider sends a first segmented scenario file from at least two segmented scenario files, wherein the scenario provider is used to segment the scenario script file corresponding to the specific scenario that meets the user's simulation test requirements to obtain the at least two segmented scenario files, wherein the scenario script file includes events and their corresponding triggering conditions and triggering actions;
[0047] The simulation is performed based on the first segmented scene file, and the first running status parameter at the end of the simulation is fed back to the scene provider. The scene provider is also used to update the initial running conditions corresponding to the second segmented scene file in the at least two segmented scene files according to the first running status parameter, and send the second segmented scene file and its corresponding initial running conditions to the second engine for simulation. The process of updating the initial running conditions and distributing the segmented scene files is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation, thus completing the simulation test.
[0048] This invention provides a content-segmented scene simulation testing method and apparatus. Compared with the method where the scene provider directly sends the complete scene data to the engine for calculation, this method can segment the scene script file corresponding to the specific scene to obtain at least two segmented scene files. The scene script file includes events and their corresponding triggering conditions and triggering actions. Then, the first segmented scene file of the at least two segmented scene files is sent to the first engine for simulation calculation, and the first running status parameter fed back by the first engine when the simulation calculation is completed is received. Then, according to the first running status parameter, the initial running conditions corresponding to the second segmented scene file of the at least two segmented scene files are updated, and the second segmented scene file and its corresponding initial running conditions are sent to the second engine for simulation calculation. The process of updating the initial running conditions and distributing the segmented scene files is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation calculation, thus completing the simulation test. Therefore, this invention, by segmenting the scene script file and distributing the segmented scene files to different engine providers for simulation calculations, ensures that each engine provider can only obtain partial scene data and cannot piece together complete scene data. This avoids data leakage for scene providers and protects their intellectual property rights. Attached Figure Description
[0049] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 This diagram illustrates a content-segmented scene simulation testing method according to an embodiment of the present invention.
[0051] Figure 2 This invention provides a schematic diagram of another content-segmented scene simulation testing method according to an embodiment of the present invention.
[0052] Figure 3 This diagram illustrates the structure of a content-segmented scene simulation testing device according to an embodiment of the present invention.
[0053] Figure 4 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention is shown;
[0054] Figure 5This invention provides a schematic diagram of another content-segmented scene simulation testing device.
[0055] Figure 6 A schematic diagram of the physical structure of another electronic device provided in an embodiment of the present invention is shown. Detailed Implementation
[0056] 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, and 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.
[0057] It should be noted that the terms "comprising" and "having," and any variations thereof, in the embodiments and drawings of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0058] Currently, when building a multi-scenario, multi-engine platform ecosystem, there is a high risk of scenario data leakage from scenario providers, resulting in intellectual property losses.
[0059] To address the aforementioned issues, embodiments of the present invention provide a content-segmented scene simulation testing method, applied to the scene provider, such as... Figure 1 As shown, the method includes:
[0060] Step 101: Obtain the specific scenario that meets the user's simulation testing needs.
[0061] The simulation testing requirements include vehicle information, environmental information, and logical scenario generalization settings. The logical scenario generalization settings include parameter step size and scenario curve distribution.
[0062] The embodiments of the present invention are mainly applicable to scenarios in which the segmented scene files are distributed to different engine ends for processing, so as to realize the protection of scene provider resources.
[0063] In this embodiment of the invention, the simulation process participants include the platform provider, the scenario provider, the engine provider, and the user. The user can initiate a test request through the platform. The platform forwards the relevant information to the corresponding scenario provider based on the test request. The scenario provider collects the simulation test requirements specified by the user, such as vehicle information, environmental information, and logical scenario generalization settings. Vehicle information includes vehicle type, such as sedan or truck; environmental information includes rainy weather, snowy weather, and normal weather conditions; and logical scenario generalization settings include parameter step size and scenario curve distribution.
[0064] Furthermore, after obtaining the simulation test requirements, the scenario provider can generalize the corresponding logical scenario into a specific scenario based on these requirements. Specifically, step 101 includes: obtaining the user-specified simulation test requirements; determining the parameter step size and scenario curve distribution during the scenario generalization process based on the logical scenario generalization settings in the simulation test requirements; and generalizing the corresponding logical scenario into a specific scenario based on the parameter step size, the scenario curve distribution, and the vehicle and environmental information in the simulation test requirements.
[0065] For example, based on vehicle and environmental information, a logical scenario of a sedan driving at high speed under normal weather conditions is selected, with a speed step size of 10. The number of scenarios within a specific speed range can be determined using the scenario curve distribution. During scenario generalization, this speed step size and scenario curve distribution can be used to generalize the logical scenario into specific scenarios where the sedan's speed is 90-100 km / h, 100-110 km / h, and 110-120 km / h, respectively. These generalized specific scenarios can be used to test the performance of the autonomous driving system, such as regulatory compliance, economy, comfort, functionality, and safety.
[0066] Step 102: Segment the scene script file corresponding to the specific scene to obtain at least two segmented scene files.
[0067] The scene script file includes events and their corresponding triggering conditions and triggering actions. The number of scene files is at least two, and the number of engine-side files is at least two.
[0068] In this embodiment of the invention, a generalized scene description specification can be used to describe each generalized specific scene. The general scene description specification includes a static description of a general road network, entities, and scene scripts. The static description of the general road network includes obstacles and traffic facilities, etc. Entities include road users such as vehicles and pedestrians. The scene script file is the core of a scene, which answers the basic questions of "who" does "when" and "what" in the scene. Each scene script file contains an initialization element (Init) and one or more scene content Story elements.
[0069] Furthermore, the `Init` element defines the initial conditions of the scene, such as the initial positions and speeds of entities. Taking lane changing and overtaking as an example, it initializes the positions of the two vehicles on the road and their respective speeds. The `Story` element defines the content that will occur in this scene, including the `Act` action set. The `Act` action set answers questions such as when the event occurs in the scene's timeline and includes `ManeuverGroup` and `StartTrigger`. The `ManeuverGroup` contained in the action set can only be executed if the `startTrigger` is true. Furthermore, `StartTrigger` specifies when the action group begins to trigger; for example, triggering the lane changing and overtaking action group at the very beginning of the simulation. The `ManeuverGroup` action group defines a sequence of operations, answering the question of which entity instance (who) is assigned to the `Maneuver` operation as an actor in the scene.
[0070] Among them, Actors define "who" is performing the operation; Maneuver defines "what" is being done. A lane-changing and overtaking operation can be imagined to involve at least two "events" occurring: first, overtaking by using another lane, and then returning to the original lane. Specifically, Event 1, changing lanes to the left: Action, used to create or modify the dynamic elements of the scene. This is the core of a scene's true "change"; only when a specific action occurs do the scene's dynamic elements change. StartTrigger starts the trigger, which executes the Action when the condition is "true." In this example, the "changing lanes to the left" action is only triggered when the distance between the following car and the preceding car is less than 30m. Similarly, Event 2, changing lanes to the right.
[0071] Therefore, through the above-mentioned generalized scenario description specification, the generalized specific scenario can be defined. The scenario script file of the specific scenario contains events and their corresponding triggering conditions and triggering actions. In order to avoid the scenario provider sending the complete scenario data to the engine for simulation calculation and causing data leakage, the embodiments of the present invention can divide the scenario script file according to the events contained in the scenario script file, as well as the triggering conditions and triggering actions corresponding to the events, to obtain at least two segmented scenario files. The first segmented scenario file and the second segmented scenario file also include the corresponding events and their corresponding triggering conditions and triggering actions.
[0072] For example, based on the events contained in the scene script file, as well as the corresponding triggering conditions and actions, the scene script file can be divided into a first segmented scene file and a second segmented scene file. Specifically, if two engine providers are involved, the scene script file can be divided into two equal parts, namely the first segmented scene file and the second segmented scene file. Alternatively, the segmentation ratio can be adjusted according to actual business needs, such as dividing 1 / 3 of the scene script file into the first segmented scene file and dividing 2 / 3 of the scene script file into the second segmented scene file. This embodiment of the invention does not impose a specific limitation on the segmentation ratio of the first segmented scene file and the second segmented scene file.
[0073] It should be noted that if N engine providers are involved, the scene script file can be split into N parts, and the N split scene files can be sent to the N engine providers for processing respectively.
[0074] Furthermore, when performing file splitting, if an event has a clear triggering condition and is related to timing logic, the splitting can be performed directly at that event; if an event does not have a clear triggering condition and its triggering time is related to other factors, the splitting cannot be performed directly at that event.
[0075] Step 103: Send the first segmented scene file from the at least two segmented scene files to the first engine.
[0076] The first engine is used to perform simulation calculations based on the first segmented scene file and to feed back the running status parameters at the end of the simulation calculations to the scene provider.
[0077] In this embodiment of the invention, to prevent the engine provider from obtaining the complete scene data from the scene provider, the segmented scene files can be distributed to different engine providers for processing. Specifically, the scene provider can first distribute the first segmented scene file to the first engine provider for simulation calculation. During the simulation calculation, if the first engine provider determines that an event meets the corresponding triggering conditions, it will execute the triggering action.
[0078] Step 104: Receive the first running status parameters fed back by the first engine end when the simulation operation ends.
[0079] The first operating status parameter can be the vehicle's location information, speed, etc.
[0080] In this embodiment of the invention, the first engine will perform simulation calculations based on the first segmented scene file and feed back the running status parameters at the end of the simulation calculations to the scene provider. For example, the first engine will feed back the vehicle position information and vehicle speed information at the end of the simulation calculations to the scene provider.
[0081] Step 105: Update the initial running conditions corresponding to the second segmented scene file in the at least two segmented scene files according to the first running state parameters.
[0082] In this embodiment of the invention, after receiving the first running state parameter when the simulation operation of the first engine ends, the scene provider will update the initial running conditions of the second segmented scene file based on the first running state parameter, for example, update the initial vehicle speed and initial vehicle position of the second segmented scene file.
[0083] Step 106: Send the second segmented scene file and its corresponding initial running conditions to the second engine for simulation calculation.
[0084] The second engine is used to perform simulation calculations based on the second segmented scene file and its corresponding initial running conditions to complete the simulation test.
[0085] In this embodiment of the invention, after determining the initial running conditions corresponding to the second segmented scene file, the scene provider can send the second segmented scene file and the initial running conditions to the second engine for simulation calculation. Specifically, when performing simulation calculation, if the second engine determines that an event meets the corresponding triggering conditions, it will execute the triggering action.
[0086] Step 107: Repeat the process of updating the initial running conditions and distributing the segmented scene files until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation calculation, thus completing the simulation test.
[0087] In this embodiment of the invention, the second engine will continue to feed back the second running status parameters to the scene provider when the simulation operation ends. Based on the second running status parameters, the scene provider will update the initial running conditions of the third segmented scene file in at least two segmented scene files, and send the third segmented scene file and its corresponding initial running conditions to the third engine for simulation operation. The above process is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation operation to complete the simulation test.
[0088] This invention provides a content-segmented scene simulation testing method. By segmenting the scene script file and distributing the segmented scene files to different engine providers for simulation calculations, it ensures that each engine provider can only obtain partial scene data and cannot piece together complete scene data. This avoids data leakage for scene providers and protects their intellectual property rights.
[0089] Furthermore, this embodiment of the invention provides another content-segmented scene simulation testing method, applied to the first engine side, such as... Figure 2 As shown, the method includes:
[0090] Step 201: Receive the first segmented scene file from at least two segmented scene files sent by the scene provider.
[0091] The scenario provider is used to segment the scenario script file corresponding to the specific scenario that meets the user's simulation test requirements, and obtain at least two segmented scenario files. The scenario script file includes events and their corresponding triggering conditions and triggering actions.
[0092] In this embodiment of the invention, to prevent the engine provider from obtaining complete scene data, the scene provider can split the scene script file of a specific scene into at least two split scene files, and allocate these at least two split scene files to different engine providers for execution, thus ensuring that no engine provider can obtain complete scene data. Specifically, when allocating files, the first split scene file can be sent to the first engine provider first. After receiving the first split scene file, the first engine provider begins simulation calculations.
[0093] Step 202: Perform simulation calculations based on the first segmented scene file, and feed back the first running status parameters at the end of the simulation calculations to the scene provider.
[0094] The scenario provider is further configured to update the initial running conditions corresponding to the second segmented scenario file in the at least two segmented scenario files according to the first running state parameters when the simulation operation of the first engine ends, and send the second segmented scenario file and its corresponding initial running conditions to the second engine for simulation operation. The process of updating the initial running conditions and distributing the segmented scenario files is repeated until the last segmented scenario file and its corresponding initial running conditions are sent to the last engine for simulation operation, thereby completing the simulation test.
[0095] In an embodiment of the present invention, if the first engine determines that the triggering conditions of an event are met during the simulation calculation, it will execute the corresponding triggering action. For this process, the method includes: performing simulation calculations based on the first segmented scene file to obtain the running state parameters during the simulation calculation; determining whether the events involved in the first segmented scene file meet the corresponding triggering conditions based on the running state parameters during the simulation calculation; and executing the triggering action corresponding to the event if the event meets the corresponding triggering conditions.
[0096] For example, the first engine will calculate the distance between the two vehicles in real time based on their position information. If the distance between the two vehicles is greater than a preset distance, it means that the triggering condition for a lane change and overtaking event is met, and the first engine will control the following vehicle to perform the lane change and overtaking action. Conversely, if the calculated distance between the two vehicles is less than or equal to the preset distance, it means that the triggering condition for a lane change and overtaking event is not met, and the first engine will not perform the lane change and overtaking action.
[0097] Furthermore, at the end of the simulation operation, the first engine will feed back the running status parameters at the end of the simulation operation to the scene provider. The scene provider will update the initial conditions of the second segmented scene file based on the running status parameters at the end of the simulation operation, and send the updated initial conditions and the second segmented scene file together to the second engine. The second engine will then continue to perform the simulation operation. The simulation operation process of the second engine is the same as that of the first engine, and it also needs to determine the triggering conditions. This embodiment of the invention will not be described in detail here.
[0098] The scenario provider will repeat the process of updating the initial running conditions and distributing the segmented scenario files until the last segmented scenario file and its corresponding initial running conditions are sent to the last engine for simulation calculation, thus completing the simulation test.
[0099] In one optional embodiment of this disclosure, determining whether the events involved in the first segmented scene file meet the corresponding triggering conditions based on the running state parameters during the simulation operation includes: determining the entity state or scene value in the specific scene based on the running state parameters during the simulation operation; and determining whether the events involved in the first segmented scene file meet the corresponding triggering conditions based on the entity state or scene value.
[0100] Specifically, the scene script file summarizes a series of meaningful actions, and triggers control these actions. Therefore, triggers play a crucial role in how the scene evolves. In complex scenes, a single trigger may require a whole set of relationships between conditions. There are two control methods for conditions: byEntityCondition and byValueCondition. The former uses the state of an entity in the scene as the decision condition, while the latter uses a value in the scene as the decision condition.
[0101] For example, the entity's state is used as the trigger condition. The entity condition byEntityCondition selects the distance condition DistanceCondition, such as the trigger condition being that the positional distance between the front vehicle and the rear vehicle is less than 30m.
[0102] In one optional embodiment of this disclosure, feeding back the first running status parameters at the end of the simulation operation to the scene provider includes: packaging and sending the first running status parameters at the end of the simulation operation to the scene provider using a scene simulation snapshot method.
[0103] Specifically, when the simulation operation ends, the first engine will package the first running state parameters at the end of the simulation operation into a simulation snapshot and send it to the scene provider. The scene provider can obtain the first running state parameters at the end of the simulation operation based on the scene simulation snapshot provided by the first engine.
[0104] Another content-segmented scene simulation testing method provided in this embodiment of the invention segments the scene script file and distributes the segmented scene files to different engine providers for simulation calculations. This ensures that each engine provider can only obtain a portion of the scene data and cannot piece together the complete scene data, thereby avoiding data leakage of the scene provider and protecting the scene provider's intellectual property rights.
[0105] Furthermore, as Figure 1 In a specific implementation, this invention provides a content-segmented scene simulation testing device, such as... Figure 3 As shown, the device includes: an acquisition unit 31, a segmentation unit 32, a sending unit 33, a receiving unit 34, and an update unit 35.
[0106] The acquisition unit 31 can be used to acquire specific scenarios that meet the user's simulation testing needs.
[0107] The segmentation unit 32 can be used to segment the scene script file corresponding to the specific scene to obtain at least two segmented scene files, wherein the scene script file includes events and their corresponding triggering conditions and triggering actions.
[0108] The sending unit 33 can be used to send the first segmented scene file of the at least two segmented scene files to the first engine end for simulation calculation.
[0109] The receiving unit 34 can be used to receive the first running status parameters fed back by the first engine when the simulation operation ends.
[0110] The update unit 35 can be used to update the initial running conditions corresponding to the second segmented scene file in the at least two segmented scene files according to the first running state parameters.
[0111] The sending unit 33 can also be used to send the second segmented scene file and its corresponding initial running conditions to the second engine for simulation calculation.
[0112] The sending unit 33 can also be used to repeat the process of updating the initial running conditions and distributing the segmented scene files until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation calculation to complete the simulation test.
[0113] In specific application scenarios, the acquisition unit 31 includes: an acquisition module, a determination module, and a generalization module.
[0114] The acquisition module can be used to acquire the simulation test requirements specified by the user.
[0115] The determining module can be used to determine the parameter step size and scene curve distribution in the scene generalization process based on the logical scene generalization setting information in the simulation test requirements.
[0116] The generalization module can be used to generalize the corresponding logical scenario into a specific scenario based on the parameter step size, the scenario curve distribution, and the vehicle and environmental information in the simulation test requirements.
[0117] In a specific application scenario, the segmentation unit 32 can be used to segment the scene script file according to the events contained in the scene script file, as well as the triggering conditions and triggering actions corresponding to the events, to obtain at least two segmented scene files.
[0118] It should be noted that other corresponding descriptions of the functional modules involved in the content-segmented scene simulation testing device provided in this embodiment of the invention can be found in [reference]. Figure 1 The corresponding description of the method shown will not be repeated here.
[0119] Based on the above, Figure 1 Correspondingly, this embodiment of the invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the following steps: obtaining a specific scenario that meets the user's simulation testing requirements; segmenting the scenario script file corresponding to the specific scenario to obtain at least two segmented scenario files, wherein the scenario script file includes events and their corresponding triggering conditions and triggering actions; sending the first segmented scenario file from the at least two segmented scenario files to a first engine for simulation calculation; receiving a first running status parameter from the first engine indicating the end of the simulation calculation; updating the initial running conditions corresponding to the second segmented scenario file from the at least two segmented scenario files according to the first running status parameter; sending the second segmented scenario file and its corresponding initial running conditions to a second engine for simulation calculation; repeating the process of updating the initial running conditions and distributing the segmented scenario files until the last segmented scenario file and its corresponding initial running conditions are sent to the last engine for simulation calculation, thus completing the simulation test.
[0120] Based on the above, Figure 1 The method shown and as Figure 3 The embodiment of the device shown in the invention also provides a physical structural diagram of an electronic device, such as... Figure 4As shown, the electronic device includes: a processor 51, a memory 52, and a computer program stored in the memory 52 and executable on the processor. Both the memory 52 and the processor 51 are mounted on a bus 53. When the processor 51 executes the program, it performs the following steps: acquiring a specific scenario that meets the user's simulation testing requirements; segmenting the scenario script file corresponding to the specific scenario to obtain at least two segmented scenario files, wherein the scenario script file includes events and their corresponding triggering conditions and triggering actions; sending the first segmented scenario file from the at least two segmented scenario files to a first engine for simulation calculation; receiving a first running status parameter from the first engine indicating the end of the simulation calculation; updating the initial running conditions corresponding to the second segmented scenario file from the at least two segmented scenario files based on the first running status parameter; sending the second segmented scenario file and its corresponding initial running conditions to a second engine for simulation calculation; repeating the initial running condition update process and the segmented scenario file distribution process until the last segmented scenario file and its corresponding initial running conditions are sent to the last engine for simulation calculation, thus completing the simulation test.
[0121] Furthermore, as Figure 2 In a specific implementation, this invention provides another vehicle joining control device for intelligent connected vehicle fleets, such as... Figure 5 As shown, the device includes a receiving unit 41 and a simulation unit 42.
[0122] The receiving unit 41 can be used to receive a first segmented scene file from at least two segmented scene files sent by the scene provider. The scene provider is used to segment the scene script file corresponding to the specific scene that meets the user's simulation test requirements to obtain the at least two segmented scene files. The scene script file includes events and their corresponding triggering conditions and triggering actions.
[0123] The simulation unit 42 can be used to perform simulation calculations based on the first segmented scene file, and feed back the first running status parameters when the simulation calculation ends to the scene provider. The scene provider is also used to update the initial running conditions corresponding to the second segmented scene file in the at least two segmented scene files based on the first running status parameters, and send the second segmented scene file and its corresponding initial running conditions to the second engine for simulation calculation. The process of updating the initial running conditions and distributing the segmented scene files is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation calculation, thus completing the simulation test.
[0124] In specific application scenarios, the simulation unit 42 includes: a simulation module, a judgment module, and an execution module.
[0125] The simulation module can be used to perform simulation calculations based on the first segmented scene file to obtain the running status parameters during the simulation calculation process.
[0126] The determination module can be used to determine whether the events involved in the first segmented scene file meet the corresponding triggering conditions based on the running status parameters during the simulation operation.
[0127] The execution module can be used to execute the triggering action corresponding to the event if the event meets the corresponding triggering conditions.
[0128] Furthermore, the determination module can be specifically used to determine the entity state or scene value in the specific scenario based on the running state parameters during the simulation operation; and to determine whether the events involved in the first segmented scene file meet the corresponding triggering conditions based on the entity state or scene value.
[0129] In specific application scenarios, the simulation unit 42 can be used to package and send the first running state parameters at the end of the simulation operation to the scenario provider by taking a snapshot of the scenario simulation.
[0130] It should be noted that other corresponding descriptions of the functional modules involved in the content-segmented scene simulation testing device provided in this embodiment of the invention can be found in [reference]. Figure 2 The corresponding description of the method shown will not be repeated here.
[0131] Based on the above, Figure 2 Correspondingly, this embodiment of the invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the following steps: receiving a first segmented scene file from at least two segmented scene files sent by a scene provider, wherein the scene provider is used to segment a scene script file corresponding to a specific scene that meets the user's simulation test requirements to obtain the at least two segmented scene files, wherein the scene script file includes events and their corresponding triggering conditions and triggering actions; performing simulation calculations based on the first segmented scene file, and feeding back a first running state parameter at the end of the simulation calculation to the scene provider, wherein the scene provider is further used to update the initial running conditions corresponding to the second segmented scene file from the at least two segmented scene files based on the first running state parameter, and sending the second segmented scene file and its corresponding initial running conditions to the second engine end for simulation calculations, repeating the process of updating the initial running conditions and distributing the segmented scene files until the last segmented scene file and its corresponding initial running conditions are sent to the last engine end for simulation calculations, thus completing the simulation test.
[0132] Based on the above, Figure 2 The method shown and as Figure 5 The embodiment of the device shown in the invention also provides a physical structural diagram of an electronic device, such as... Figure 6 As shown, the electronic device includes: a processor 61, a memory 62, and a computer program stored in the memory 62 and executable on the processor. Both the memory 62 and the processor 61 are mounted on a bus 63. When the processor 61 executes the program, it performs the following steps: receiving a first segmented scene file from at least two segmented scene files sent by a scene provider. The scene provider is used to segment a scene script file corresponding to a specific scene that meets the user's simulation testing requirements to obtain the at least two segmented scene files. The scene script file includes events and their corresponding triggering conditions and triggering actions. The device performs simulation calculations based on the first segmented scene file and feeds back a first running state parameter at the end of the simulation calculation to the scene provider. The scene provider is also used to update the initial running conditions corresponding to the second segmented scene file from the at least two segmented scene files based on the first running state parameter, and sends the second segmented scene file and its corresponding initial running conditions to the second engine for simulation calculation. This process of updating the initial running conditions and distributing the segmented scene files is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation calculation, thus completing the simulation test.
[0133] This invention, by segmenting the scene script file and distributing the segmented scene files to different engine providers for simulation calculations, ensures that each engine provider only receives partial scene data and cannot piece together complete scene data. This avoids data leakage for scene providers and protects their intellectual property rights.
[0134] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of one embodiment, and the modules or processes shown in the drawings are not necessarily essential for implementing the present invention.
[0135] Those skilled in the art will understand that the modules in the apparatus of the embodiments can be distributed in the apparatus of the embodiments as described in the embodiments, or they can be located in one or more devices different from this embodiment with corresponding changes. The modules of the above embodiments can be combined into one module, or they can be further divided into multiple sub-modules.
[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions 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 invention.
Claims
1. A content-segmented scenario simulation testing method, characterized in that, Applications on the scenario provider side include: Obtain specific scenarios that meet the user's simulation testing needs; The scene script file corresponding to the specific scene is segmented to obtain at least two segmented scene files, wherein the scene script file includes events and their corresponding triggering conditions and triggering actions; Send the first segmented scene file from the at least two segmented scene files to the first engine for simulation calculation; Receive the first running status parameters fed back from the first engine end when the simulation operation ends; Based on the first running status parameter, update the initial running conditions corresponding to the second segmented scene file in the at least two segmented scene files; The second segmented scene file and its corresponding initial running conditions are sent to the second engine for simulation calculation. The process of updating the initial running conditions and distributing the segmented scene files is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation calculation, thus completing the simulation test.
2. The method according to claim 1, characterized in that, The specific scenarios for obtaining the user's simulation testing requirements include: Obtain the simulation test requirements specified by the user; Based on the logical scenario generalization settings information in the simulation test requirements, determine the parameter step size and scenario curve distribution during the scenario generalization process; Based on the parameter step size and the scene curve distribution, as well as the vehicle and environmental information in the simulation test requirements, the corresponding logical scene is generalized into a specific scene.
3. The method according to claim 1, characterized in that, The process of segmenting the scene script file corresponding to the specific scene to obtain at least two segmented scene files includes: Based on the events contained in the scene script file, as well as the corresponding triggering conditions and triggering actions, the scene script file is segmented to obtain at least two segmented scene files.
4. A content-segmented scenario simulation testing method, characterized in that, Applied to the first engine side, including: The receiving scenario provider sends a first segmented scenario file from at least two segmented scenario files, wherein the scenario provider is used to segment the scenario script file corresponding to the specific scenario that meets the user's simulation test requirements to obtain the at least two segmented scenario files, wherein the scenario script file includes events and their corresponding triggering conditions and triggering actions; The simulation is performed based on the first segmented scene file, and the first running status parameter at the end of the simulation is fed back to the scene provider. The scene provider is also used to update the initial running conditions corresponding to the second segmented scene file in the at least two segmented scene files according to the first running status parameter, and send the second segmented scene file and its corresponding initial running conditions to the second engine for simulation. The process of updating the initial running conditions and distributing the segmented scene files is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation, thus completing the simulation test.
5. The method according to claim 4, characterized in that, The simulation calculation based on the first segmented scene file includes: The simulation calculation is performed based on the first segmented scene file to obtain the running state parameters during the simulation calculation process; Based on the running status parameters during the simulation operation, determine whether the events involved in the first segmented scene file meet the corresponding triggering conditions; If the event meets the corresponding triggering conditions, then the triggering action corresponding to the event is executed.
6. The method according to claim 5, characterized in that, The step of determining whether the events involved in the first segmented scene file meet the corresponding triggering conditions based on the running state parameters during the simulation operation includes: Based on the running state parameters during the simulation calculation process, the entity state or scene value in the specific scenario is determined; Based on the entity state or scene value, determine whether the events involved in the first segmented scene file meet the corresponding triggering conditions.
7. The method according to claim 4, characterized in that, The step of feeding back the first running state parameters at the end of the simulation calculation to the scene provider includes: The scenario simulation snapshot method is used to package and send the first running state parameters when the simulation operation ends to the scenario provider.
8. A content-segmented scene simulation testing device, applied to a scene provider and / or a first engine, characterized in that: When applied to the scenario provider, it includes: The acquisition unit is used to acquire specific scenarios that meet the user's simulation testing requirements. The segmentation unit is used to segment the scene script file corresponding to the specific scene to obtain at least two segmented scene files, wherein the scene script file includes events and their corresponding triggering conditions and triggering actions; The sending unit is used to send the first segmented scene file from the at least two segmented scene files to the first engine end for simulation calculation; The receiving unit is used to receive the first running status parameter fed back by the first engine end when the simulation operation ends; The update unit is used to update the initial running conditions corresponding to the second segmented scene file in the at least two segmented scene files according to the first running state parameters; The sending unit is also used to send the second segmented scene file and its corresponding initial running conditions to the second engine end for simulation calculation; The sending unit is also used to repeat the process of updating the initial running conditions and distributing the segmented scene files until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation calculation to complete the simulation test. And / or, When applied to the first engine, it includes: The receiving unit is used to receive a first segmented scene file from at least two segmented scene files sent by the scene provider. The scene provider is used to segment the scene script file corresponding to the specific scene that meets the user's simulation test requirements to obtain the at least two segmented scene files. The scene script file includes events and their corresponding triggering conditions and triggering actions. The simulation unit is used to perform simulation calculations based on the first segmented scene file and feed back the first running status parameters at the end of the simulation calculation to the scene provider. The scene provider is also used to update the initial running conditions corresponding to the second segmented scene file in the at least two segmented scene files based on the first running status parameters, and send the second segmented scene file and its corresponding initial running conditions to the second engine for simulation calculation. The process of updating the initial running conditions and distributing the segmented scene files is repeated until the last segmented scene file and its corresponding initial running conditions are sent to the last engine for simulation calculation, thus completing the simulation test.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the computer program is executed by the processor, it implements the content-segmented scene simulation testing method applied to the scene providing end as described in any one of claims 1 to 3; and / or, when the computer program is executed by the processor, it implements the content-segmented scene simulation testing method applied to the first engine end as described in any one of claims 4 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the content-segmented scene simulation testing method applied to the scene providing end as described in any one of claims 1 to 3; and / or, when the computer program is executed by the processor, it implements the content-segmented scene simulation testing method applied to the first engine end as described in any one of claims 4 to 7.