CN112685289A - Scene generation method, and scene-based model in-loop test method and system - Google Patents

Scene generation method, and scene-based model in-loop test method and system Download PDF

Info

Publication number
CN112685289A
CN112685289A CN202011448739.0A CN202011448739A CN112685289A CN 112685289 A CN112685289 A CN 112685289A CN 202011448739 A CN202011448739 A CN 202011448739A CN 112685289 A CN112685289 A CN 112685289A
Authority
CN
China
Prior art keywords
scene
test
scenario
model
elements
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011448739.0A
Other languages
Chinese (zh)
Inventor
黄云亮
赵帅
郑继虎
杜志彬
胡耘浩
宝鹤鹏
翟洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Automotive Technology and Research Center Co Ltd
Automotive Data of China Tianjin Co Ltd
Original Assignee
China Automotive Technology and Research Center Co Ltd
Automotive Data of China Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Automotive Technology and Research Center Co Ltd, Automotive Data of China Tianjin Co Ltd filed Critical China Automotive Technology and Research Center Co Ltd
Priority to CN202011448739.0A priority Critical patent/CN112685289A/en
Publication of CN112685289A publication Critical patent/CN112685289A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本申请实施例公开了一种场景的生成方法、基于场景的模型在环测试方法和系统,涉及自动驾驶仿真测试技术领域。其中,方法包括:通过组合场景要素得到多个功能场景,并确定所述功能场景中的指定场景要素;从真实交通场景数据中提取指定场景要素,并统计所述指定场景要素的取值分布;将所述取值分布赋值给功能场景中对应的指定场景要素,得到多个逻辑场景;对各所述逻辑场景中指定场景要素的取值分布进行采样,生成多个取值样本;将所述多个取值样本替换对应的取值分布,生成多个测试场景。本实施例生成的测试场景覆盖面广泛,实现了测试用例的自动化设置与执行,规范评价指标和流程,提高测试效率,保证模型功能的有效验证。

Figure 202011448739

The embodiments of the present application disclose a scenario generation method, a scenario-based model-in-the-loop testing method and system, and relate to the technical field of automatic driving simulation testing. Wherein, the method includes: obtaining a plurality of functional scenes by combining scene elements, and determining specified scene elements in the functional scenes; extracting specified scene elements from real traffic scene data, and counting the value distribution of the specified scene elements; assigning the value distribution to the corresponding designated scene elements in the functional scene to obtain a plurality of logical scenarios; sampling the value distribution of the designated scene elements in each of the logical scenarios to generate a plurality of value samples; Multiple value samples replace the corresponding value distribution to generate multiple test scenarios. The test scenarios generated in this embodiment cover a wide range, realize automatic setting and execution of test cases, standardize evaluation indicators and processes, improve test efficiency, and ensure effective verification of model functions.

Figure 202011448739

Description

Scene generation method, and scene-based model in-loop test method and system
Technical Field
The embodiment of the application relates to an automatic driving simulation test technology, in particular to a scene generation method, a scene-based model in-loop test method and a scene-based model in-loop test system.
Background
With the improvement of the automatic driving level, the conventional automobile-oriented test tool and test method cannot meet the requirement of the automatic driving automobile test. The scene-based virtual test method has great technical advantages in the aspects of test efficiency, test cost and the like, and is an important means for test and verification of the future automatic driving automobile.
Model in the Loop (MIL) is a simulation mode performed in the initial stage of the development stage and the modeling stage when the Model in the Loop is used for developing the embedded system by using Model driving. When the model is used for carrying out simulation test on the automatic driving in a loop mode, the problems that a test scene is single, coverage is not wide, evaluation indexes and processes are not standard, a test case is manually set, workload is large, and test efficiency is low exist, and effective verification of functions cannot be guaranteed finally.
Disclosure of Invention
The embodiment of the application provides a scene generation method, a scene-based model in-loop test method and a scene-based model in-loop test system, so as to ensure effective verification of the functions of the model.
In a first aspect, an embodiment of the present application provides a method for generating a scene, including:
obtaining a plurality of functional scenes by combining scene elements, and determining specified scene elements in the functional scenes; the scene elements comprise static elements, dynamic elements and weather elements;
extracting appointed scene elements from real traffic scene data, and counting the value distribution of the appointed scene elements;
assigning the value distribution to corresponding appointed scene elements in a functional scene to obtain a plurality of logic scenes;
sampling the value distribution of the specified scene elements in each logic scene to generate a plurality of value samples;
and replacing the corresponding value distribution with the plurality of value samples to generate a plurality of test scenes.
In a second aspect, an embodiment of the present application further provides a method for testing a model in a ring based on a scene, including:
starting the test operation of a scene test case;
loading a corresponding logic scene, a value sample of an appointed scene element and a model evaluation index applicable to the logic scene through the scene test case;
assigning the value sample of the appointed scene element to the corresponding appointed scene element in the logic scene to generate a test scene; controlling the model to be tested to test in the test scene, and reading test data;
comparing the model evaluation index with the test data through the scene test case to obtain and output a test result;
and starting the test operation of the next scene test case until the test of all the scene test cases is completed.
In a third aspect, an embodiment of the present application further provides a model in-loop test system based on a scene, including: the system comprises a test module, a scene building module and a model to be tested;
the test module is used for starting the test operation of a scene test case; loading a model evaluation index applicable to a corresponding logic scene and a value sample of an appointed scene element through the scene test case, and loading the logic scene from the scene building module; assigning the value sample of the appointed scene element to the corresponding appointed scene element in the logic scene to generate a test scene; controlling the model to be tested to test in the test scene, and reading test data; comparing the model evaluation index with the test data through the scene test case to obtain and output a test result; starting the test operation of the next scene test case until the test of all the scene test cases is completed;
the model to be tested is used for testing in the test scene and transmitting test data to the test module;
the scene building module comprises a plurality of logic scenes.
In the embodiment, the value sample of the specified scene element is assigned to the corresponding specified scene element in the logic scene to generate the test scene, so that the probability distribution of the original scene element can be truly reflected by the parameters in the test scene, and a plurality of test scenes can be automatically generated in batch to realize the full coverage of the scene; moreover, the embodiment provides a model-in-loop test method for sequentially and automatically starting and executing a plurality of scene test cases, manual intervention is not needed, and the test efficiency is effectively improved; the execution process of each scene test case comprises three parts of scene generation, test and comparison, wherein model evaluation indexes are integrated into the scene test cases, the evaluation indexes and the flow are standardized, the test efficiency is improved, and the effective verification of the functions of the model is ensured.
Drawings
Fig. 1a is a schematic flowchart of a scene generation method according to an embodiment of the present invention;
FIG. 1b is a schematic diagram of a cut-in scenario in a test scenario provided by an embodiment of the present invention;
FIG. 2 is a flowchart of a scenario-based model-in-loop testing method according to an embodiment of the present invention;
FIG. 3a is a schematic structural diagram of a model-in-loop test system based on a scene according to an embodiment of the present invention;
FIG. 3b is an interaction diagram of a scenario-based model-in-the-loop test system according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a display effect of a test scenario according to an embodiment of the present invention;
FIG. 5 is a graphical representation of test results provided by an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
The embodiment of the application provides a scene generation method, a flowchart of which is shown in fig. 1a, and which is applicable to a situation of generating a scene for an unmanned test. With reference to fig. 1a, the method provided in this embodiment specifically includes:
s110, obtaining a plurality of functional scenes by combining scene elements, and determining appointed scene elements in the functional scenes; the scene elements include a static element, a dynamic element, and a weather element.
Specifically, all possible elements and combinations of the scenes are defined first, and a plurality of functional scenes are constructed according to a combination method. Optionally, the dynamic elements include, but are not limited to, uniform speed, acceleration, deceleration, cut-in, cut-out, and traverse of the moving object. Static elements include, but are not limited to, road type, number of lanes, lane width, road surface condition, straight lanes, curves, ramps, object lane division patterns, line types, traffic sign conditions, special areas. The weather elements comprise sunny days, rain, snow and fog, visibility, daytime, night and backlight.
The specified scene element is an element that has a significant influence on the model test, and may be all or part of the above elements.
And S120, extracting the appointed scene elements from the real traffic scene data, and counting the value distribution of the appointed scene elements.
The test scene is established on the basis of the real traffic scene, and data of the real traffic scene, such as a track, a speed and the like, needs to be acquired.
Optionally, scene marking and screening are performed on real traffic scene data to obtain different real scenes; and extracting appointed scene elements according to real traffic scene data under different scenes. And after the appointed scene elements are extracted from the real traffic scene data, carrying out data processing on the appointed scene elements to obtain value distribution. The value distribution comprises a value range and a distribution mode, the distribution mode comprises average distribution and normal distribution, and the normal distribution comprises a mean and a variance value.
And S130, assigning the value distribution to corresponding appointed scene elements in the functional scene to obtain a plurality of logic scenes.
And S140, sampling the value distribution of the specified scene elements in each logic scene to generate a plurality of value samples.
After assignment, the value of a designated scene element is a group of data, but the group of data is derived from real traffic scene data and has certain one-sidedness. Therefore, the value distribution of the designated scene elements in each logic scene also needs to be sampled, and the sampling method can be a Monte Carlo method, so that a plurality of value samples are obtained, the probability distribution of the original scene elements can be truly reflected, and the full coverage of the scene is realized.
S150, replacing the corresponding value distribution with the plurality of value samples to generate a plurality of test scenes.
Optionally, a plurality of logical scenes may be stored in the scene library, and a plurality of value samples may be stored in the data table. And when the subsequent automatic test is carried out, the value sample can be read from the data table and assigned to the corresponding appointed scene element in the logic scene, and a test scene is generated.
Optionally, a plurality of test scenarios may also be integrally stored in the scenario library and participate in any scenario-based model-in-loop test method.
According to the method, through large-scale real traffic scene data extraction, scene labeling and scene screening, a scene library which is suitable for different automatic driving system tests and can represent traffic characteristics of typical areas in China can be obtained, and based on multi-dimensional analysis (types and ranges of elements) and Monte Carlo sampling of scene elements, a large number of random test samples can be obtained, and meanwhile, real reflection of the test scene on probability distribution of original scene elements can be guaranteed. Fig. 1b is a schematic diagram of a cut-in scenario in a test scenario provided in an embodiment of the present invention.
In the embodiment, a plurality of functional scenes are obtained in a scene element combination mode, and then a plurality of logic scenes are obtained by combining the value distribution of the appointed scene elements in the real traffic scene data, so that the scene coverage is initially expanded; and further sampling the value distribution of the specified scene elements in each logic scene to generate a plurality of value samples, replacing the corresponding value distribution with the plurality of value samples to generate a plurality of test scenes, namely further expanding the scene coverage by a sampling mode and ensuring the effective verification of the model function.
In the above-described embodiments and the following-described embodiments, the logical scene includes at least one of a standard regulation scene, a natural driving scene, a dangerous scene, a corner scene, and a combination scene. Optionally, the logical scenes generated by the method provided in fig. 1a are natural driving scenes and dangerous scenes.
Specifically, the standard regulation scenario is a scenario built according to the standard regulation. Dangerous scenes mainly cover three major scenes of severe weather environment, complex road traffic and typical traffic accidents. The corner scene refers to a scene containing special corners in a logic scene, such as a scene with animals appearing in a high-speed kilometer, a raised ground, a roadside parking, a giant billboard above a road and the like.
The combined scene is obtained by counting, analyzing and combining scene elements in a standard regulation scene, a natural driving scene, a dangerous scene and a corner scene. Standard and regulation scenes, natural driving scenes, dangerous scenes, corner scenes and combined scenes can be stored in a scene library, and element values are stored in a data table; or may be stored as a whole in the scenario library as a test scenario.
In this embodiment, the scene element values of the standard regulation scene, the natural driving scene, the dangerous scene, the corner scene, and the combination scene may be a plurality of values satisfying one distribution, such as the natural driving scene in the above embodiment; or may be a fixed value, such as a standard regulatory scenario; but also a few values specified, such as a combined scene. And assigning the scene element values to corresponding scene elements to generate corresponding test scenes.
In a specific embodiment, a scene library is constructed according to advanced driver assistance function regulatory standards and functional requirements. Element extraction and statistics are carried out based on real traffic scene data, an ACC (Adaptive Cruise Control) and AEB (automatic Braking system) scene library is constructed, and a total of 212 test scenes including 45 standard and regulation scenes, 86 natural driving scenes, 40 dangerous scenes and corner scenes, 41 combined scenes and the like are covered. An example scenario is as follows:
TABLE 1 test scenarios
Figure BDA0002831551490000071
Fig. 2 is a flowchart of a scenario-based model-in-loop test method provided in an embodiment of the present invention, which is suitable for performing an in-loop test on a model to be tested in different test scenarios. As shown in fig. 2, the method specifically includes the following steps:
s210, starting the test operation of a scene test case.
A scenario test case is used for executing a test operation in a test scenario. The test scenario includes a logical scenario and values of specified scenario elements therein.
Optionally, the logic scenarios in the test cases in different scenarios are different; or when the test cases in different scenes adopt the same logic scene, the value samples of the designated scene elements are not completely the same, so that the test cases in different scenes can test different logic scenes, or test different value samples, and realize multi-level test.
S220, loading a corresponding logic scene, a value sample of the appointed scene element and a model evaluation index applicable to the logic scene through the scene test case.
Optionally, loading a logic scene corresponding to the scene test case identifier from a scene library through the scene test case; loading the value sample of the appointed scene element from a data table through the scene test case; the value sample of the specified scene element corresponds to the scene test case identifier; and loading the model evaluation index corresponding to the scene test case identifier from a model evaluation index library through the scene test case.
The scene test case identification is used for uniquely identifying one scene test case. Specifically, the logic scene is stored in the scene library in advance, and the corresponding relationship between the logic scene and the scene test case identifier is established in the scene library. The data table stores value samples of the appointed scene elements in each logic scene, and the value samples correspond to the scene test case identifications. And storing the model evaluation indexes into a model evaluation index library in advance, and establishing a corresponding relation between the model evaluation indexes and the scene test case identifications in the model evaluation index library. Illustratively, according to the regulatory standard requirements and the ACC and AEB functional requirements, a functional test passing model evaluation index is formulated, and the following are exemplified:
TABLE 2 evaluation index of model
Figure BDA0002831551490000091
When the scenario test case is executed, a logic scenario corresponding to the self identification is loaded from a scenario library. Then, the value sample of the corresponding designated scene element is loaded from the data table. And loading corresponding model evaluation indexes from the model evaluation index library so as to combine the logic scene, the test specification, the indexes and the element values.
S230, assigning the value sample of the appointed scene element to the corresponding appointed scene element in the logic scene to generate a test scene; and controlling the model to be tested to test in the test scene, and reading test data.
Optionally, replacing the value distribution of the corresponding specified scene element in the logic scene with the value sample of the specified scene element through the scene test case to generate a test scene; the value distribution of the specified scene elements is obtained by counting the specified scene elements in the real traffic scene data, and the value sample of the specified scene elements is obtained by sampling the value distribution of the specified scene elements. For details, reference is made to the description of the above embodiments, which are not repeated herein.
It is worth noting that the alternative embodiment is applicable to the logical scenario generated by the method provided in fig. 1 a. However, the values of the designated scene elements in some logic scenarios (such as standard and regulatory scenarios, combination scenarios, and the like) may be fixed values or designated values, and these values may be stored in the data table in advance to prepare for generating the test scenario.
And then, controlling the model to be tested to test in the test scene through the scene test case. Optionally, the test of the model to be tested is performed in the scene building module, which will be described in the following embodiments. The model to be tested is an advanced assistant driving function model, such as an adaptive cruise control algorithm model, so that an in-loop automatic test method of the advanced assistant driving function model based on a scene is realized, the progress of system functions from concept to realization is accelerated, and the integrity and the accuracy of system function logic are ensured. The test types include but are not limited to various tests such as functional tests, calibration tests, bus communication tests, diagnostic tests, fault injection and the like, and automation thereof.
And S240, comparing the model evaluation index with the test data through the scene test case to obtain a test result and outputting the test result.
And storing and processing the test result through the scene test case, and quantitatively analyzing and comparing the model evaluation index and the test data through the script to obtain the test result. And checking and confirming the related key points through the configuration script, and automatically outputting the test result in a test report form.
And S250, starting the test operation of the test case of the next scene until the test of all the test cases of the scenes is finished.
Optionally, before starting the test operation of the scenario test case, the method further includes: creating a main project and a plurality of sub projects; the main project is used for controlling the starting of each sub project, and controlling the starting of the next sub project after monitoring that one sub project obtains a test result and outputs the test result; and each sub-project is used for executing the test operation of the test case of the corresponding scene. And realizing the sequential and automatic execution of the test cases of each scene by a mode of establishing a double-layer project.
Fig. 3a is a schematic structural diagram of a model-in-loop test system based on a scene according to an embodiment of the present invention, including: the system comprises a test module, a scene building module and a model to be tested.
The test module is used for executing the scene-based model-in-loop test method provided by each embodiment, and specifically, starting the test operation of a scene test case; loading a model evaluation index applicable to a corresponding logic scene and a value sample of an appointed scene element through the scene test case, and loading the logic scene from the scene building module; assigning the value sample of the appointed scene element to the corresponding appointed scene element in the logic scene to generate a test scene; controlling the model to be tested to test in the test scene, and reading test data; comparing the model evaluation index with the test data through the scene test case to obtain and output a test result; and starting the test operation of the next scene test case until the test of all the scene test cases is completed.
The model to be tested is used for testing in the test scene and transmitting test data to the test module. Illustratively, the adaptive cruise control algorithm model includes a safe distance model, a desired acceleration model, a braking model, and an acceleration model. The safe distance model formula is as follows:
Figure BDA0002831551490000111
in the formula v1Is the velocity of the main vehicle, v2To the front vehicle speed, amaxAt maximum acceleration, tdFor driver reaction time, d1The distance between the two vehicles after stopping. Because of the too large safety distance during braking, the parking distance can be set to be small, here 2 m.
From the safe distance model, the calculation formula for the expected acceleration can be derived as follows:
aexp=k1(S-D)+k2vrel-k3a1;(2)
wherein S is the actual inter-vehicle distance of the two vehicles; d is a safe distance; a is1The actual acceleration of the rear vehicle; k is a radical of1,k2,k3Is a feedback coefficient; v. ofrelThe relative speed of the two vehicles.
When the vehicle brakes, the self-cruise control system can calculate a required acceleration signal according to the expected acceleration, the acceleration signal is input to a vehicle execution mechanism to generate a braking force signal, and the vehicle braking force signal is fed back to a tested vehicle model to perform deceleration braking.
When the vehicle accelerates, the self-cruise control system can calculate a required acceleration signal according to the expected acceleration, the acceleration signal is input to a vehicle execution mechanism to generate an accelerator pedal opening degree signal, and the accelerator pedal opening degree signal is fed back to a tested vehicle model to accelerate the vehicle.
The scene building module comprises a plurality of logic scenes. Optionally, the scene building module includes a vehicle dynamics model, a sensor model, and a scene library including a plurality of logical scenes; the plurality of logic scenes are obtained by assigning the value distribution of the appointed scene elements to the corresponding appointed scene elements in the functional scenes, and the value distribution of the appointed scene elements is obtained by counting the appointed scene elements in the real traffic scene data. The functional scene is obtained by combining scene elements.
Fig. 3b is an interaction diagram of the scene-based model-in-loop test system according to the embodiment of the present invention. The test module is used for controlling simulation in a test scene, and specifically sending the tested vehicle model, the initial state of the tested vehicle model and the test scene to the scene building module. The scene building module is used for receiving the initial state of the tested vehicle model and the test scene from the test module to build a traffic scene, and receiving control parameters and road surface information from the tested model; providing the control parameters to the vehicle dynamics model and the road surface information to the sensor model; and in the traffic scene, obtaining test data of the tested vehicle model based on the sensor model and the vehicle dynamics model, and transmitting the test data to the model to be tested.
The model to be tested is used for forwarding the test data to the test module and returning the control parameters based on the test data.
The test module is also used for recording the test data so as to compare the test data with the model evaluation index; and the method is also used for controlling the parameters of the model to be tested and the simulation progress.
In the following, the operation process of the scenario-based model in the ring test system is described in detail by using a specific example.
The TEST module can be an automatic integrated TEST ECU-TEST tool, and a corresponding relation between a logic scene, a value sample, a model evaluation index and a scene TEST case is established in the ECU-TEST tool in a dragging mode. The scene building module may be a vehicle dynamics simulation platform (e.g., CarSim). The model to be tested runs in a simulation platform environment Simulink. The ECU-TEST tool, the vehicle dynamics simulation platform and the simulation platform environment are integrated and interacted to form a model-in-loop TEST system based on a scene.
The preparation work is as follows: 1) a plurality of logic scenes are built through an ECU-TEST tool and stored in a scene library, value samples of appointed scene elements in the logic scenes are stored in a data table, and model evaluation indexes are stored in a model evaluation index library. And creating sub-projects corresponding to the main project and the test cases of each scene. 2) And establishing the 212 test scene models through a vehicle dynamics simulation platform to construct static, dynamic and weather elements required by each scene test. Fig. 4 shows a display effect diagram of a test scenario. 3) And carrying out vehicle dynamics modeling and constructing a sensor model through a vehicle dynamics simulation platform. 4) A model to be tested and an executing mechanism model adapted to the model to be tested are constructed through Simulink, and a detailed description is given to the adaptive cruise control algorithm model described in the above embodiment. 5) The method comprises the steps of integrating a model to be tested with a vehicle dynamic model (a vehicle longitudinal dynamic model), an actuating mechanism model (a braking and throttle control system and a main vehicle dynamic system) and a sensor model (a radar system), and specifically developing a scene interface of a Simulink algorithm model and a CarSim vehicle. And respectively building a vehicle longitudinal dynamic model of the main vehicle and the front vehicle in the CarSim. The radar system transmits detected rear vehicle information and front vehicle information to the following distance control system, the control system calculates expected acceleration of the main vehicle according to the safety distance model, the expected acceleration is input to the longitudinal vehicle dynamics model after being adjusted by the PID controller, the longitudinal vehicle dynamics model outputs expected braking pressure and throttle opening degree based on the acceleration, the expected braking pressure and throttle opening degree are transmitted to the braking and throttle control system, and the system outputs corresponding braking force and throttle opening degree to the main vehicle dynamics system to perform braking and acceleration control, so that self-adaptive cruise function of the main vehicle is realized.
And when the scene test is required to be carried out on the model to be tested, running the main project so as to call and execute each sub-project one by one through the main project. In the execution process of the sub-engineering, loading a logic scene corresponding to a scene test case identifier from a scene library, loading a value sample of the specified scene element from a data table, loading a model evaluation index corresponding to the scene test case identifier from a model evaluation index library, and generating a test scene.
Assuming that a test scene is a low-speed test of a target vehicle, the main vehicle approaches the low-speed target vehicle, the ACC function starts to respond, decelerates and follows the target vehicle to run, and a value sample of a designated scene element in a scene test case is shown in Table 3.
TABLE 3 specifying value samples for scene elements
Figure BDA0002831551490000141
Figure BDA0002831551490000151
The test specification of the test scenario includes: the initial speed of the main vehicle and the speed of the target vehicle are respectively changed, and applicable model evaluation indexes are as follows:
TABLE 4 evaluation index of model
Figure BDA0002831551490000152
Then, CarSim is called to realize vehicle motion calculation, the CarSim completes scene rendering, virtual sensor simulation, simulation calculation and combined simulation with a model to be tested in Simulink, and the ECU-TEST is responsible for capturing and recording TEST data in the simulation process, comparing and analyzing the TEST data, and displaying the obtained TEST result in a chart form. The embodiment performs normative regulation on the simulation test process, including analyzing test requirements, customizing a test scheme, writing test cases, modifying a simulation test environment, and the like. And according to the model evaluation index, automatic evaluation of a test result, automatic generation/output of a test report and the like are realized through the construction of an automatic tool such as script compiling and the like. The test data will cover critical data records such as vehicle speed, distance changes, acceleration and deceleration signals, etc. Table 3 shows part of the test data.
TABLE 5 test data
Figure BDA0002831551490000153
Figure BDA0002831551490000161
And the ECU-TEST automatically completes the calculation of 12 groups of TEST cases, and the TEST result shows that the TEST cases fail, wherein the 9 th TEST case fails.
As shown in FIG. 5, the test result is checked and analyzed, and it can be seen that the vehicle speed of the host vehicle appears in an acceleration interval for a period of time after steady-state following, the vehicle speed of the host vehicle is required to be equal to the target vehicle speed (24m/s) during steady-state following, and when the vehicle speed of the host vehicle is inconsistent with the target vehicle speed, the test case fails, and the direction is indicated for algorithm model optimization.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (10)

1.一种场景的生成方法,其特征在于,包括:1. a method for generating a scene, comprising: 通过组合场景要素得到多个功能场景,并确定所述功能场景中的指定场景要素;所述场景要素包括静态要素、动态要素和天气要素;A plurality of functional scenarios are obtained by combining scenario elements, and specified scenario elements in the functional scenarios are determined; the scenario elements include static elements, dynamic elements and weather elements; 从真实交通场景数据中提取指定场景要素,并统计所述指定场景要素的取值分布;Extract the specified scene elements from the real traffic scene data, and count the value distribution of the specified scene elements; 将所述取值分布赋值给功能场景中对应的指定场景要素,得到多个逻辑场景;assigning the value distribution to the corresponding designated scene elements in the functional scene to obtain a plurality of logical scenes; 对各所述逻辑场景中指定场景要素的取值分布进行采样,生成多个取值样本;sampling the value distribution of the specified scene elements in each of the logical scenarios to generate a plurality of value samples; 将所述多个取值样本替换对应的取值分布,生成多个测试场景。The multiple value samples are replaced with corresponding value distributions to generate multiple test scenarios. 2.一种基于场景的模型在环测试方法,其特征在于,包括:2. a scene-based model-in-the-loop testing method, characterized in that, comprising: 启动一场景测试用例的测试操作;Start the test operation of a scenario test case; 通过所述场景测试用例加载对应的逻辑场景、指定场景要素的取值样本以及所述逻辑场景适用的模型评价指标;Load the corresponding logical scenario, the value sample of the specified scenario element, and the model evaluation index applicable to the logical scenario through the scenario test case; 将所述指定场景要素的取值样本赋值给所述逻辑场景中对应指定场景要素,生成测试场景;并控制待测模型在所述测试场景中进行测试,读取测试数据;assigning the value samples of the specified scene elements to the corresponding specified scene elements in the logic scene to generate a test scene; and controlling the model to be tested to perform a test in the test scene, and read the test data; 通过所述场景测试用例比较所述模型评价指标和所述测试数据,得到测试结果并输出;Comparing the model evaluation index and the test data through the scenario test case to obtain and output the test result; 启动下一场景测试用例的测试操作,直到所有场景测试用例测试完成。Start the test operation of the next scenario test case until all scenario test case tests are completed. 3.根据权利要求2所述的方法,其特征在于,所述将所述指定场景要素的取值样本赋值给所述逻辑场景中对应指定场景要素,生成测试场景,包括:3. The method according to claim 2, wherein the assigning the value samples of the specified scene elements to the corresponding specified scene elements in the logical scene to generate a test scene, comprising: 通过所述场景测试用例将所述指定场景要素的取值样本替换所述逻辑场景中对应指定场景要素的取值分布,生成测试场景;Replacing the value distribution of the specified scene element in the logical scene with the value sample of the specified scene element by using the scene test case to generate a test scene; 其中,所述指定场景要素的取值分布通过对真实交通场景数据中的指定场景要素进行统计得到,所述指定场景要素的取值样本通过对指定场景要素的取值分布进行采样得到。The value distribution of the specified scene elements is obtained by counting the specified scene elements in the real traffic scene data, and the value samples of the specified scene elements are obtained by sampling the value distribution of the specified scene elements. 4.根据权利要求2所述的方法,其特征在于,所述通过所述场景测试用例加载对应的逻辑场景、指定场景要素的取值样本以及所述逻辑场景适用的模型评价指标,包括:4. The method according to claim 2, wherein the loading of the corresponding logical scenario, the value sample of the specified scenario element and the model evaluation index applicable to the logical scenario through the scenario test case comprises: 通过所述场景测试用例从场景库中加载与场景测试用例标识对应的逻辑场景;Load the logical scene corresponding to the scene test case identifier from the scene library through the scene test case; 通过所述场景测试用例从数据表中加载所述指定场景要素的取值样本;所述指定场景要素的取值样本与所述场景测试用例标识对应;Load the value sample of the specified scene element from the data table through the scene test case; the value sample of the specified scene element corresponds to the scene test case identifier; 通过所述场景测试用例从模型评价指标库中加载与所述场景测试用例标识对应的模型评价指标。The model evaluation index corresponding to the scene test case identifier is loaded from the model evaluation index library through the scene test case. 5.根据权利要求2所述的方法,其特征在于,不同场景测试用例中的逻辑场景不同;或者,5. The method according to claim 2, wherein the logical scenarios in the test cases of different scenarios are different; or, 不同场景测试用例采用同一逻辑场景时,指定场景要素的取值样本不完全相同。When the test cases of different scenarios use the same logical scenario, the value samples of the specified scenario elements are not exactly the same. 6.根据权利要求2所述的方法,其特征在于,在所述启动一场景测试用例的测试操作之前,还包括:6. The method according to claim 2, wherein before the test operation of starting a scenario test case, further comprising: 创建主工程和多个子工程;Create a main project and multiple sub-projects; 所述主工程用于控制各所述子工程启动,以及监控到一子工程得到测试结果并输出后,控制下一子工程启动;The main project is used to control the startup of each of the sub-projects, and to control the startup of the next sub-project after monitoring a sub-project to obtain test results and output them; 各所述子工程用于执行对应场景测试用例的测试操作。Each of the sub-projects is used to execute the test operation of the corresponding scenario test case. 7.根据权利要求2所述的方法,其特征在于,所述逻辑场景包括标准法规场景、自然驾驶场景、危险场景、边角场景和组合场景中的至少一种。7 . The method of claim 2 , wherein the logical scenarios include at least one of a standard regulation scenario, a natural driving scenario, a dangerous scenario, a corner scenario, and a combined scenario. 8 . 8.一种基于场景的模型在环测试系统,其特征在于,包括:测试模块、场景搭建模块和待测模型;8. A scenario-based model-in-the-loop testing system, comprising: a testing module, a scenario building module and a model to be tested; 所述测试模块用于启动一场景测试用例的测试操作;通过所述场景测试用例加载对应逻辑场景适用的模型评价指标、指定场景要素的取值样本,并从所述场景搭建模块中加载所述逻辑场景;将所述指定场景要素的取值样本赋值给所述逻辑场景中对应指定场景要素,生成测试场景;并控制待测模型在所述测试场景中进行测试,读取测试数据;通过所述场景测试用例比较所述模型评价指标和所述测试数据,得到测试结果并输出;启动下一场景测试用例的测试操作,直到所有场景测试用例测试完成;The test module is used to start the test operation of a scene test case; load the model evaluation index applicable to the corresponding logical scene and the value sample of the specified scene element through the scene test case, and load the scene construction module from the scene building module. logical scenario; assign the value samples of the designated scenario elements to the corresponding designated scenario elements in the logical scenario to generate a test scenario; and control the model to be tested to test in the test scenario, and read the test data; The scenario test case compares the model evaluation index and the test data, obtains the test result and outputs it; starts the test operation of the next scenario test case, until all the scenario test case tests are completed; 所述待测模型用于在所述测试场景中进行测试,向所述测试模块传输测试数据;The model to be tested is used to test in the test scenario, and transmit test data to the test module; 所述场景搭建模块包括多个逻辑场景。The scenario building module includes a plurality of logical scenarios. 9.根据权利要求8所述的系统,其特征在于,所述场景搭建模块包括车辆动力学模型、传感器模型和包括多个逻辑场景的场景库;9. The system according to claim 8, wherein the scene building module comprises a vehicle dynamics model, a sensor model and a scene library including a plurality of logical scenes; 其中,所述多个逻辑场景通过将指定场景要素的取值分布赋值给功能场景中对应的指定场景要素得到,所述指定场景要素的取值分布通过对真实交通场景数据中的指定场景要素进行统计得到;所述功能场景通过组合场景要素得到。Wherein, the multiple logical scenarios are obtained by assigning the value distribution of the specified scene elements to the corresponding specified scene elements in the functional scene, and the value distribution of the specified scene elements is obtained by calculating the value distribution of the specified scene elements in the real traffic scene data. Statistics are obtained; the functional scene is obtained by combining scene elements. 10.根据权利要求9所述的系统,其特征在于,10. The system of claim 9, wherein: 所述场景搭建模块用于从所述测试模块接收被测车辆模型的初始状态和所述测试场景进行交通场景搭建,并从所述待测模型接收控制参数和路面信息;The scene construction module is configured to receive the initial state of the vehicle model under test and the test scene from the test module to construct a traffic scene, and receive control parameters and road surface information from the model under test; 将所述控制参数提供给所述车辆动力学模型,将所述路面信息提供给所述传感器模型;在所述交通场景中,基于所述传感器模型、车辆动力学模型,得到所述被测车辆模型的测试数据,并传输至所述待测模型;The control parameters are provided to the vehicle dynamics model, and the road surface information is provided to the sensor model; in the traffic scene, the tested vehicle is obtained based on the sensor model and the vehicle dynamics model The test data of the model is transmitted to the model to be tested; 所述待测模型用于将所述测试数据转发至所述测试模块,并基于所述测试数据返回所述控制参数;The model to be tested is used to forward the test data to the test module, and return the control parameters based on the test data; 其中,所述待测模型为高级辅助驾驶功能模型。The model to be tested is an advanced assisted driving function model.
CN202011448739.0A 2020-12-11 2020-12-11 Scene generation method, and scene-based model in-loop test method and system Pending CN112685289A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011448739.0A CN112685289A (en) 2020-12-11 2020-12-11 Scene generation method, and scene-based model in-loop test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011448739.0A CN112685289A (en) 2020-12-11 2020-12-11 Scene generation method, and scene-based model in-loop test method and system

Publications (1)

Publication Number Publication Date
CN112685289A true CN112685289A (en) 2021-04-20

Family

ID=75448457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011448739.0A Pending CN112685289A (en) 2020-12-11 2020-12-11 Scene generation method, and scene-based model in-loop test method and system

Country Status (1)

Country Link
CN (1) CN112685289A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268244A (en) * 2021-05-13 2021-08-17 际络科技(上海)有限公司 Script generation method and device of automatic driving scene library and electronic equipment
CN113408141A (en) * 2021-07-02 2021-09-17 阿波罗智联(北京)科技有限公司 Automatic driving test method and device and electronic equipment
CN113419942A (en) * 2021-04-30 2021-09-21 吉林大学 Automatic driving safety evaluation method based on natural driving data
CN113918475A (en) * 2021-12-15 2022-01-11 腾讯科技(深圳)有限公司 Test processing method, device, computer equipment and storage medium
CN114117740A (en) * 2021-10-29 2022-03-01 际络科技(上海)有限公司 Simulation test scene generation method and device based on automatic driving
CN114356757A (en) * 2021-12-22 2022-04-15 重庆长安汽车股份有限公司 Test condition configuration method based on limited automatic driving simulation scene
CN114354219A (en) * 2022-01-07 2022-04-15 苏州挚途科技有限公司 Test method and device for automatic driving vehicle
CN114371015A (en) * 2022-01-04 2022-04-19 一汽解放汽车有限公司 Automatic driving test method, device, computer equipment and storage medium
CN114428738A (en) * 2022-01-24 2022-05-03 驭势科技(北京)有限公司 Virtual test scene processing method, management platform, device, equipment and medium
CN115598996A (en) * 2022-10-19 2023-01-13 苏州挚途科技有限公司(Cn) Unmanned simulation system
CN116358902A (en) * 2023-06-02 2023-06-30 中国第一汽车股份有限公司 Vehicle function testing method and device, electronic equipment and storage medium
CN116719748A (en) * 2023-08-10 2023-09-08 中国船级社 A scene generation method, device and medium for a ship system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102017009971A1 (en) * 2017-10-26 2019-05-02 Daimler Ag A method of testing a lane keeping assistance system for a vehicle
CN110263381A (en) * 2019-05-27 2019-09-20 南京航空航天大学 A kind of automatic driving vehicle test emulation scene generating method
CN110794810A (en) * 2019-11-06 2020-02-14 安徽瑞泰智能装备有限公司 Method for carrying out integrated test on intelligent driving vehicle
CN111143197A (en) * 2019-12-05 2020-05-12 苏州智加科技有限公司 Automatic driving test case generation method, device, equipment and storage medium
CN111178402A (en) * 2019-12-13 2020-05-19 赛迪检测认证中心有限公司 Scene classification method and device for road test of automatic driving vehicle
CN111797001A (en) * 2020-05-27 2020-10-20 中汽数据有限公司 A Construction Method of Autonomous Driving Simulation Test Model Based on SCANeR
CN111797003A (en) * 2020-05-27 2020-10-20 中汽数据有限公司 A method of building virtual test scene based on VTD software
CN112036001A (en) * 2020-07-01 2020-12-04 长安大学 Automatic driving test scenario construction method, device, device and readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102017009971A1 (en) * 2017-10-26 2019-05-02 Daimler Ag A method of testing a lane keeping assistance system for a vehicle
CN110263381A (en) * 2019-05-27 2019-09-20 南京航空航天大学 A kind of automatic driving vehicle test emulation scene generating method
CN110794810A (en) * 2019-11-06 2020-02-14 安徽瑞泰智能装备有限公司 Method for carrying out integrated test on intelligent driving vehicle
CN111143197A (en) * 2019-12-05 2020-05-12 苏州智加科技有限公司 Automatic driving test case generation method, device, equipment and storage medium
CN111178402A (en) * 2019-12-13 2020-05-19 赛迪检测认证中心有限公司 Scene classification method and device for road test of automatic driving vehicle
CN111797001A (en) * 2020-05-27 2020-10-20 中汽数据有限公司 A Construction Method of Autonomous Driving Simulation Test Model Based on SCANeR
CN111797003A (en) * 2020-05-27 2020-10-20 中汽数据有限公司 A method of building virtual test scene based on VTD software
CN112036001A (en) * 2020-07-01 2020-12-04 长安大学 Automatic driving test scenario construction method, device, device and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张剑锋;马玲;李广召;: "自动驾驶运动控制算法的模型在环测试", 汽车工程师, no. 01 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419942A (en) * 2021-04-30 2021-09-21 吉林大学 Automatic driving safety evaluation method based on natural driving data
CN113268244A (en) * 2021-05-13 2021-08-17 际络科技(上海)有限公司 Script generation method and device of automatic driving scene library and electronic equipment
CN113408141B (en) * 2021-07-02 2024-04-26 阿波罗智联(北京)科技有限公司 Automatic driving test method and device and electronic equipment
CN113408141A (en) * 2021-07-02 2021-09-17 阿波罗智联(北京)科技有限公司 Automatic driving test method and device and electronic equipment
CN114117740A (en) * 2021-10-29 2022-03-01 际络科技(上海)有限公司 Simulation test scene generation method and device based on automatic driving
CN113918475A (en) * 2021-12-15 2022-01-11 腾讯科技(深圳)有限公司 Test processing method, device, computer equipment and storage medium
CN114356757A (en) * 2021-12-22 2022-04-15 重庆长安汽车股份有限公司 Test condition configuration method based on limited automatic driving simulation scene
CN114371015A (en) * 2022-01-04 2022-04-19 一汽解放汽车有限公司 Automatic driving test method, device, computer equipment and storage medium
CN114371015B (en) * 2022-01-04 2024-06-04 一汽解放汽车有限公司 Automatic driving test method, automatic driving test device, computer equipment and storage medium
CN114354219A (en) * 2022-01-07 2022-04-15 苏州挚途科技有限公司 Test method and device for automatic driving vehicle
CN114428738A (en) * 2022-01-24 2022-05-03 驭势科技(北京)有限公司 Virtual test scene processing method, management platform, device, equipment and medium
CN115598996A (en) * 2022-10-19 2023-01-13 苏州挚途科技有限公司(Cn) Unmanned simulation system
CN116358902B (en) * 2023-06-02 2023-08-22 中国第一汽车股份有限公司 Vehicle function testing method and device, electronic equipment and storage medium
CN116358902A (en) * 2023-06-02 2023-06-30 中国第一汽车股份有限公司 Vehicle function testing method and device, electronic equipment and storage medium
CN116719748A (en) * 2023-08-10 2023-09-08 中国船级社 A scene generation method, device and medium for a ship system
CN116719748B (en) * 2023-08-10 2024-02-20 中国船级社 Scene generation method, device and medium of ship system

Similar Documents

Publication Publication Date Title
CN112685289A (en) Scene generation method, and scene-based model in-loop test method and system
CN114354219B (en) Testing method and device for autonomous driving vehicle
CN113665574B (en) Prediction of lane changing duration and anthropomorphic trajectory planning method for intelligent vehicles
CN113343461A (en) Simulation method and device for automatic driving vehicle, electronic equipment and storage medium
CN113484851B (en) Simulation test system and method for vehicle-mounted laser radar and complete vehicle in-loop test system
CN111723458B (en) Automatic generation method for simulation test scene of automatic driving decision planning system
CN114326443B (en) MIL simulation test method and system for ADAS and readable storage medium
CN109726426A (en) A kind of Vehicular automatic driving virtual environment building method
CN111983934B (en) A method and system for generating test cases for unmanned vehicle simulation
CN115099051A (en) Automatic driving simulation test scene generation method and device, vehicle and storage medium
CN113777952A (en) Automatic driving simulation test method for interactive mapping of real vehicle and virtual vehicle
CN116580271A (en) Evaluation method, device, equipment and storage medium for perception fusion algorithm
CN114690134A (en) Fidelity testing method for millimeter wave radar model and readable storage medium
CN113962107A (en) Method and device for simulating driving road section, electronic equipment and storage medium
CN119336633A (en) Generalization method and system for autonomous driving simulation test cases
CN114280562A (en) Radar simulation test method and computer readable storage medium implementing the method
CN116438434A (en) Computer-aided method and apparatus for predicting vehicle speed based on probability
CN118708489A (en) Automatic driving simulation evaluation method, device, electronic device and storage medium
CN115755865B (en) A commercial vehicle assisted driving hardware-in-the-loop testing system and method
US20250085431A1 (en) Method for optimizing the environment sensing for a driving assistance system by means of an additional reference sensor system
CN116432392A (en) Automatic driving simulation test method and test device
CN110134024A (en) The construction method of distinctive mark object in Vehicular automatic driving virtual environment
CN115129027A (en) Automatic evaluation method and device for intelligent driving
JP2024512563A (en) How to evaluate software for vehicle controls
Cheng et al. An Indoor Rapid Testing Platform for Autonomous Vehicles Using Vehicle-in-the-Loop Simulation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210420

RJ01 Rejection of invention patent application after publication