Vehicle fault simulation test system, method, device and computer program product
The vehicle fault simulation test system constructs an initial simulation scenario and injects fault information, controls the front-view camera to simulate the fault scenario, and conducts automatic driving function testing. This solves the problem of low accuracy of test results in the existing technology and improves the test accuracy.
Patent Information
- Application Number
- CN202410831852.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-25
AI Technical Summary
The accuracy of test results of vehicle function scenario testing methods in the existing technology is low, especially when simulating front-view camera failure scenarios. Real vehicle testing is costly and inefficient, and hardware-in-the-loop testing cannot perform large-volume fault injection scenario testing.
Use a vehicle fault simulation test system, build an initial simulation test scenario through simulation software, use a fault injection board to add fault information to the scene data, control the front-view camera to present the target simulation test scenario, conduct automatic driving function testing, obtain test data and conduct Functional safety analysis to determine functional safety level.
The accuracy of the vehicle function scenario test results is improved, the vehicle function scenario test is implemented through the video fault injection method, and the problem of low test result accuracy in the existing technology is solved.
Smart Images

Figure CN118760120A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle function testing, and in particular to a vehicle fault simulation testing system, method, device, and computer program product. Background Art
[0002] With the continuous development of automobile intelligence, autonomous driving technology has become a development trend in the automotive industry, and the development of automobile autonomous driving functions has gradually become diversified, complex, and intelligent. However, the current autonomous driving system is fragile and still cannot have the absolute safe driving capability in all weather and all scenarios. Therefore, how to deal with the potential safety hazards in the process of autonomous driving has become a major challenge on the road to the full popularization and application of autonomous driving technology.
[0003] At present, in the process of developing the functions of intelligent driving car systems, the main methods for verifying the safety of autonomous driving vehicles are simulation tests and real vehicle tests during the development process. Simulation tests have become the mainstream means of autonomous driving function testing due to their diverse test scenarios and low test costs. In order to improve the safety of advanced autonomous driving functions, artificial faults can be introduced during the simulation of autonomous driving scenarios to verify the robustness of the autonomous driving system in specific scenarios, and then verify whether the current development results meet the designed functional safety specifications.
[0004] As a sensor for realizing automatic emergency braking, advanced cruise control, intelligent speed limit recognition, lane keeping assist and other automatic driving functions in the automatic driving system, the front-view camera can input scene information into each controller for perception, decision-making and control. Then, by performing fault processing on the perception signal (such as front-view camera breakage, occlusion, dust accumulation, and strong light), the video fault injection scenario can be simulated during testing. Currently, the front-view camera fault injection scenario test mainly uses real vehicle testing and hardware-in-the-loop testing methods, but real vehicle testing is costly, risky, and inefficient, and cannot be used for large-scale fault injection scenario testing. Hardware-in-the-loop testing uses simulated vehicle actuators, and cannot provide feedback on the actual vehicle performance during testing. In addition, hardware-in-the-loop testing is more suitable for testing vehicle logic scenarios, and is not suitable for testing functional scenarios such as camera fault injection.
[0005] From the above analysis, it can be seen that there is currently no effective solution to the problem of low accuracy of test results of the vehicle function scenario testing method adopted by the above-mentioned prior art. Summary of the invention
[0006] Embodiments of the present invention provide a vehicle fault simulation test system, method, device, and computer program product to at least solve the technical problem of low test result accuracy of the vehicle function scenario test method adopted in the prior art.
[0007] According to one aspect of an embodiment of the present invention, a vehicle fault simulation test system is provided, comprising:
[0008] Simulation software is used to construct an initial simulation test scenario of the vehicle to be tested; a fault injection board is used to add fault information to at least part of the scenario data of the initial simulation test scenario to obtain a target simulation test scenario; a control device is used to control the front-view camera of the vehicle to be tested to present the target simulation test scenario, so as to test the autonomous driving function to be tested of the vehicle to be tested under the target simulation test scenario to obtain test data, wherein the test data is used to determine the functional safety level of the autonomous driving function to be tested; an analysis device is used to perform functional safety analysis on the test data to obtain the functional safety level.
[0009] According to another aspect of an embodiment of the present invention, a vehicle fault simulation test method is provided, comprising:
[0010] Construct an initial simulation test scenario for the vehicle to be tested; add fault information to at least part of the scenario data of the initial simulation test scenario to obtain a target simulation test scenario; control the front-view camera of the vehicle to be tested to present the target simulation test scenario, so as to test the autonomous driving function to be tested of the vehicle to be tested under the target simulation test scenario to obtain test data, wherein the test data is used to determine the functional safety level of the autonomous driving function to be tested; perform functional safety analysis on the test data to obtain the functional safety level.
[0011] Optionally, the initial simulation test scene includes at least a vehicle model, a sensor model and an environment model, and constructing the initial simulation test scene of the vehicle to be tested includes: collecting initial vehicle data and initial environment data of the vehicle to be tested, wherein the initial vehicle data includes at least: an initial vehicle position, a sensor position and a vehicle body data; establishing a scene coordinate system according to the initial vehicle position; in the scene coordinate system, constructing a vehicle model according to the vehicle body data, and at the same time constructing a sensor model according to the sensor position, and constructing an environment model according to the initial environment data.
[0012] Optionally, fault information is added to at least part of the scene data of the initial simulation test scene to obtain a target simulation test scene, including: determining the autonomous driving function to be tested of the vehicle to be tested; according to the autonomous driving function to be tested, fault information is added to at least part of the scene data to obtain a target simulation test scene corresponding to the autonomous driving function to be tested, wherein the fault information is determined by the test requirements of the autonomous driving function to be tested.
[0013] Optionally, the test data includes at least multiple types of response data of the autonomous driving function to be tested, and the autonomous driving function to be tested of the vehicle to be tested is tested in a target simulation test scenario, and the test data obtained includes: obtaining scene perception data of the vehicle to be tested for the target simulation test scenario; planning and decision-making based on the scene perception data, and generating control instructions for the autonomous driving function to be tested; executing the control instructions to control the vehicle to be tested to turn on the autonomous driving function to be tested; and during the operation of the autonomous driving function to be tested, obtaining multiple types of response data by collecting through multiple sensors.
[0014] Optionally, performing a functional safety analysis on the test data to obtain a functional safety level includes: scoring any type of response data according to a preset scoring table corresponding to any type of response data to obtain multiple scoring values; performing a weighted sum calculation on the multiple scoring values to obtain a target scoring value; and determining the functional safety level corresponding to the target scoring value based on a functional safety level mapping table.
[0015] Optionally, the above-mentioned vehicle fault simulation test method also includes: in response to the functional safety level being lower than a preset level limit, generating target prompt information according to the test data; and providing a functional safety prompt based on the target prompt information.
[0016] Optionally, the response data at least includes posture data of the vehicle to be tested, and the above-mentioned vehicle fault simulation test method also includes: updating the initial simulation test scene using the posture data.
[0017] According to another aspect of an embodiment of the present invention, a vehicle fault simulation test device is provided, comprising:
[0018] A construction module is used to construct an initial simulation test scenario of the vehicle to be tested; a processing module is used to perform fault processing on the initial simulation test scenario to obtain a target simulation test scenario; a testing module is used to control the front-view camera of the vehicle to be tested to present the target simulation test scenario, so as to test the autonomous driving function to be tested of the vehicle to be tested under the target simulation test scenario to obtain test data, wherein the test data is used to determine the functional safety level of the autonomous driving function to be tested; an analysis module is used to perform functional safety analysis on the test data to obtain the functional safety level.
[0019] Optionally, the initial simulation test scene includes at least a vehicle model, a sensor model and an environment model, and the above-mentioned construction module is also used to: collect initial vehicle data and initial environment data of the vehicle to be tested, wherein the initial vehicle data includes at least: initial vehicle position, sensor position and vehicle body data; establish a scene coordinate system according to the initial vehicle position; in the scene coordinate system, construct a vehicle model according to the vehicle body data, and at the same time construct a sensor model according to the sensor position, and construct an environment model according to the initial environment data.
[0020] Optionally, the above-mentioned processing module is also used to: determine the autonomous driving function to be tested of the vehicle to be tested; according to the autonomous driving function to be tested, add fault information to at least part of the scene data to obtain a target simulation test scene corresponding to the autonomous driving function to be tested, wherein the fault information is determined by the test requirements of the autonomous driving function to be tested.
[0021] Optionally, the test data includes at least multiple types of response data of the autonomous driving function to be tested, and the above-mentioned test module is also used to: obtain scene perception data of the vehicle to be tested for the target simulation test scene; plan and make decisions based on the scene perception data, and generate control instructions for the autonomous driving function to be tested; execute control instructions to control the vehicle to be tested to turn on the autonomous driving function to be tested; during the operation of the autonomous driving function to be tested, multiple types of response data are collected through multiple sensors.
[0022] Optionally, the above-mentioned analysis module is also used to: score any type of response data according to a preset scoring table corresponding to any type of response data to obtain multiple scoring values; perform weighted sum calculation on the multiple scoring values to obtain a target scoring value; and determine the functional safety level corresponding to the target scoring value based on the functional safety level mapping table.
[0023] Optionally, the above-mentioned vehicle fault simulation test device also includes: a prompt module, which is used to generate target prompt information according to test data in response to the functional safety level being lower than a preset level limit; and provide functional safety prompts based on the target prompt information.
[0024] Optionally, the response data at least includes posture data of the vehicle to be tested, and the above-mentioned vehicle fault simulation test device also includes: an updating module, which is used to update the initial simulation test scene using the posture data.
[0025] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, any one of the aforementioned vehicle fault simulation test methods is implemented.
[0026] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the aforementioned vehicle fault simulation test methods.
[0027] According to another aspect of an embodiment of the present invention, a vehicle is provided, comprising an on-board memory and an on-board processor, wherein a computer program is stored in the on-board memory, and the on-board processor is configured to run the computer program to execute any one of the aforementioned vehicle fault simulation test methods.
[0028] In an embodiment of the present invention, an initial simulation test scene of the vehicle to be tested is first constructed; fault information is added to at least part of the scene data of the initial simulation test scene to obtain a target simulation test scene; the front-view camera of the vehicle to be tested is controlled to present the target simulation test scene, so as to test the autonomous driving function to be tested of the vehicle to be tested under the target simulation test scene to obtain test data, wherein the test data is used to determine the functional safety level of the autonomous driving function to be tested; functional safety analysis is performed on the test data to obtain the functional safety level. By using a fault injection board to perform fault processing on the initial simulation test scene constructed by the simulation software, a target simulation test scene corresponding to the autonomous driving function to be tested is obtained, and then the target simulation test scene is injected into the front-view camera of the vehicle to be tested in the form of a video, so as to use the target simulation test scene to simulate the fault scene when the real vehicle is driving to test the autonomous driving function of the vehicle, thereby achieving the purpose of testing the vehicle function scene by means of video fault injection, thereby achieving the technical effect of improving the accuracy of the vehicle function scene test results, and thus solving the technical problem of low test result accuracy of the vehicle function scene test method adopted in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0030] Figure 1 is a hardware structure block diagram of an optional vehicle terminal for a vehicle fault simulation test method according to an embodiment of the present invention;
[0031] Figure 2 is a schematic diagram of a vehicle fault simulation test system according to an embodiment of the present invention;
[0032] Figure 3 is a flow chart of a vehicle fault simulation test method according to an embodiment of the present invention;
[0033] Figure 4 is a schematic diagram of an optional vehicle fault simulation test scenario according to an embodiment of the present invention;
[0034] Figure 5 is a schematic diagram of another optional vehicle fault simulation test scenario according to an embodiment of the present invention;
[0035] Figure 6 is a schematic diagram of another optional vehicle fault simulation test scenario according to an embodiment of the present invention;
[0036] Figure 7 It is a structural block diagram of a vehicle fault simulation test device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0039] According to an embodiment of the present invention, a method embodiment of a vehicle fault simulation test method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0040] Figure 1 is a hardware structure block diagram of a vehicle terminal for a vehicle fault simulation test method according to an embodiment of the present invention, such as Figure 1As shown, the vehicle terminal (or mobile device) may include one or more processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor (Microcontroller Unit, MCU) or a programmable logic device (FieldProgrammable Gate Array, FPGA)), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display device 110, an input and output device 108 (i.e., an IO device), a Universal Serial Bus (USB) port (which may be included as one of the ports of a computer bus, not shown in the figure), a network interface (not shown in the figure), a power supply (not shown in the figure) and / or a camera (not shown in the figure). It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the vehicle terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0041] It should be noted that the one or more processors 102 and / or other data processing circuits may be embodied in whole or in part as software, hardware, firmware or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be integrated in whole or in part into any of the other components in the vehicle terminal (or mobile device).
[0042] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the vehicle fault simulation test method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the above-mentioned vehicle fault simulation test method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the vehicle terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0043] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the vehicle terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0044] Under the above operating environment, the embodiment of the present invention provides the following Figure 2 The vehicle fault simulation test system shown in FIG. Figure 2 As shown, the system includes:
[0045] The simulation software 201 is used to construct an initial simulation test scenario of the vehicle to be tested; the fault injection board 202 is used to add fault information to at least part of the scene data of the initial simulation test scenario to obtain a target simulation test scenario; a control device including a controller 203, a host computer 204, a vehicle actuator 205, etc. is used to control the front-view camera of the vehicle to be tested to present the target simulation test scenario, so as to test the autonomous driving function to be tested of the vehicle to be tested under the target simulation test scenario to obtain test data, wherein the test data is used to determine the functional safety level of the autonomous driving function to be tested; an analysis device (not shown in the figure) is used to perform functional safety analysis on the test data to obtain the functional safety level.
[0046] Based on the above vehicle fault simulation test system, the embodiment of the present invention also provides Figure 3 The vehicle fault simulation test method shown in FIG. Figure 3 As shown, the method includes the following implementation steps:
[0047] Step S301, constructing an initial simulation test scenario for the vehicle to be tested;
[0048] Step S302, adding fault information to at least part of the scenario data of the initial simulation test scenario to obtain a target simulation test scenario;
[0049] Step S303, controlling the front camera of the vehicle to be tested to present a target simulation test scene, so as to test the autonomous driving function to be tested of the vehicle to be tested under the target simulation test scene, and obtain test data, wherein the test data is used to determine the functional safety level of the autonomous driving function to be tested;
[0050] Step S304: Perform functional safety analysis on the test data to obtain a functional safety level.
[0051] like Figure 2As shown, first, the simulation software 201 of the vehicle constructs an initial simulation test scene of the vehicle to be tested. Then, the simulation software 201 provides the initial simulation test scene to the fault injection board 202 in the form of a simulated video stream. The fault injection board 202 adds fault information to the scene data in the initial simulation test scene according to the currently tested autonomous driving function (i.e., the autonomous driving function to be tested), thereby using the target simulation fault scene to simulate the fault test scene required by the autonomous driving function to be tested. Further, the fault injection board 202 provides the target simulation test scene to the front-view camera 206. It should be noted here that the fault injection board 202 can provide the scene perception data converted from the target simulation test scene to the front-view camera 206, and the front-view camera 206 can provide the scene perception data to the vehicle to be tested for perception, so as to present the target simulation test scene to the vehicle to be tested, thereby testing the autonomous driving function to be tested of the vehicle to be tested, so as to analyze the functional safety of the autonomous driving function to be tested of the vehicle to be tested.
[0052] In an embodiment of the present invention, an initial simulation test scene of the vehicle to be tested is first constructed; fault information is added to at least part of the scene data of the initial simulation test scene to obtain a target simulation test scene; the front-view camera of the vehicle to be tested is controlled to present the target simulation test scene, so as to test the autonomous driving function to be tested of the vehicle to be tested under the target simulation test scene to obtain test data, wherein the test data is used to determine the functional safety level of the autonomous driving function to be tested; functional safety analysis is performed on the test data to obtain the functional safety level. By using a fault injection board to perform fault processing on the initial simulation test scene constructed by the simulation software, a target simulation test scene corresponding to the autonomous driving function to be tested is obtained, and then the target simulation test scene is injected into the front-view camera of the vehicle to be tested in the form of a video, so as to use the target simulation test scene to simulate the fault scene when the real vehicle is driving to test the autonomous driving function of the vehicle, thereby achieving the purpose of testing the vehicle function scene by means of video fault injection, thereby achieving the technical effect of improving the accuracy of the vehicle function scene test results, and thus solving the technical problem of low test result accuracy of the vehicle function scene test method adopted in the prior art.
[0053] The above method of the embodiment of the present invention is further introduced below.
[0054] In an optional embodiment, in step S301, the initial simulation test scenario includes at least a vehicle model, a sensor model, and an environment model, and constructing the initial simulation test scenario of the vehicle to be tested includes:
[0055] Step S311, collecting initial vehicle data and initial environment data of the vehicle to be tested, wherein the initial vehicle data at least includes: initial vehicle position, sensor position and vehicle body data;
[0056] Step S312, establishing a scene coordinate system according to the initial vehicle position;
[0057] Step S313: In the scene coordinate system, a vehicle model is constructed according to the vehicle body data, a sensor model is constructed according to the sensor position, and an environment model is constructed according to the initial environment data.
[0058] As an optional implementation, the ground projection point of the midpoint of the rear axle of the vehicle can be determined according to the initial vehicle position, and the scene coordinate system can be established with the ground projection point as the origin. The vehicle model can be constructed according to the body data such as the body size of the vehicle to be tested, and the corresponding sensor model can be constructed according to the coordinates of each sensor relative to the ground projection point (i.e., the sensor position), and the environment model can be constructed according to the initial environment data such as the roads, traffic signs, light intensity, pedestrians, obstacles, etc. around the vehicle to be tested, so as to construct the initial simulation test scene. In addition, as in the Figure 2 As shown, the data management software can be debugged in the host computer 204 to configure the input / output channels, data recording and host communication of the controller 203. At the same time, the global positioning system conversion model can be used to calibrate the position of the vehicle to be tested and convert the world geodetic coordinate system into a Cartesian coordinate system.
[0059] In an optional embodiment, in step S302, performing fault processing on the initial simulation test scenario to obtain a target simulation test scenario includes:
[0060] Step S321, determining the automatic driving function to be tested of the vehicle to be tested;
[0061] Step S322: Add fault information to at least part of the scene data according to the autonomous driving function to be tested, and obtain a target simulation test scene corresponding to the autonomous driving function to be tested, wherein the fault information is determined by the test requirements of the autonomous driving function to be tested.
[0062] The autonomous driving functions of the vehicle to be tested may include, but are not limited to: automatic emergency braking function, automatic cruise function, intelligent speed limit recognition function, and lane keeping assist function.
[0063] As an optional implementation, assuming that the autonomous driving function to be tested is an automatic emergency braking function, the fault test scenario corresponding to the automatic emergency braking function (i.e., the target simulation test scenario) may include but is not limited to: the front view camera is broken, the front view camera is blocked, the front view camera is dusty (such as Figure 4 As shown), strong light (such as Figure 5 as shown), "ghost peeking" (such as Figure 6 shown).
[0064] As another optional implementation, when the autonomous driving function to be tested is the automatic emergency braking function and the target simulation test scenario is a "ghost peeking" scenario, the fault injection board can adjust the relative positions of the vehicle to be tested and the pedestrians in the initial simulation test scenario, so that when the vehicle to be tested reaches a certain speed, the pedestrians suddenly break into the blind spot in front of the vehicle to be tested.
[0065] In an optional embodiment, in step S303, the test data includes at least multiple types of response data of the autonomous driving function to be tested, and the autonomous driving function to be tested of the vehicle to be tested is tested in a target simulation test scenario, and the obtained test data includes:
[0066] Step S331, obtaining scene perception data of the vehicle to be tested for the target simulation test scene;
[0067] Step S332, planning and decision-making are performed according to the scene perception data to generate control instructions for the autonomous driving function to be tested;
[0068] Step S333, executing the control instruction to control the vehicle to be tested to start the automatic driving function to be tested;
[0069] Step S334: During the operation of the autonomous driving function to be tested, multiple types of response data are collected through multiple sensors.
[0070] Still Figure 2 As shown, after the target simulation test scene is constructed, the target simulation test scene is injected into the vehicle to be tested through the front-view camera 206 to perform in-loop field testing on the vehicle to be tested. The autonomous driving function perception sensors (such as visual sensors, distance sensors, radar sensors) of the vehicle to be tested can perceive the target simulation test scene, and send the obtained scene perception data to the controller 203. The controller 203 plans and makes decisions based on the scene perception data, determines the autonomous driving function to be activated, and generates control instructions corresponding to the autonomous driving function to be activated. Furthermore, the vehicle actuator 205 executes the control instructions to realize the functional response of the vehicle to the target simulation test scene.
[0071] Still Figure 2 As shown, further, in the functional response process, on the one hand, the driver of the vehicle under test completes the driving control according to the current driving state of the vehicle under test, and on the other hand, the automatic driving system of the vehicle under test turns on the automatic driving function corresponding to the control instruction, so that the automatic driving system directly controls the motion state of the vehicle under test and changes the vehicle's posture data.
[0072] It should be noted that the controller 203 can record the entire process data during the test of the autonomous driving function to be tested, especially before and after the response of the autonomous driving function to be tested, and record the data changes of the vehicle to be tested, so as to obtain test data.
[0073] The above-mentioned multiple sensors may include but are not limited to: braking system sensors, distance sensors, and inertial sensors. Among them, the braking system sensor can be used to collect the position changes and brake pressure changes of the brake pedal of the vehicle to be tested before and after the autonomous driving function to be tested responds. The distance sensor can be used to collect the distance between the vehicle to be tested and the obstacles and pedestrians in front before and after the autonomous driving function to be tested responds. The inertial sensor can be used to collect the acceleration changes and direction changes of the vehicle to be tested before and after the autonomous driving function to be tested responds.
[0074] In an optional embodiment, in step S304, functional safety analysis is performed on the test data to obtain a functional safety level including:
[0075] Step S341, scoring any type of response data according to a preset scoring table corresponding to any type of response data to obtain multiple scoring values;
[0076] Step S342, performing weighted sum calculation on multiple scoring values to obtain a target scoring value;
[0077] Step S343: determining the functional safety level corresponding to the target score value based on the functional safety level mapping table.
[0078] As an optional implementation, when the autonomous driving function to be tested is an automatic emergency braking function and the target simulation test scenario is a "ghost peeking" scenario, the collected multi-type response data may include the braking time and braking distance of the vehicle to be tested, the braking time refers to the time required for the vehicle to be tested to stop completely from the start of braking, and the aforementioned braking distance refers to the distance traveled by the vehicle to be tested from the start of braking to the complete stop of the vehicle. Further, the safety integrity level (Automotive Safety Integrity Level, ASIL) of the automatic emergency braking function can be evaluated based on the multi-type response. For example, multiple time intervals can be pre-divided and the braking time score corresponding to each time interval can be determined, and multiple distance intervals can be pre-divided and the braking distance score corresponding to each distance interval can be determined, and then the braking time score and the braking distance score are weighted and calculated to obtain the target score of the automatic emergency braking function, and then the target score is mapped to the corresponding functional safety level.
[0079] It should be noted that the ASIL levels from low to high are: A, B, C, and D.
[0080] In an optional embodiment, the vehicle fault simulation test method further includes:
[0081] Step S305, in response to the functional safety level being lower than the preset level limit, generating target prompt information according to the test data;
[0082] Step S306: providing a functional safety prompt based on the target prompt information.
[0083] As an optional implementation, when the test determines that the current functional safety level of the autonomous driving function to be tested is low (e.g., lower than Class B), for the driving safety of the vehicle to be tested, target prompt information including the functional safety level can be generated based on the test data to prompt the vehicle user that there is an autonomous driving function that affects driving safety.
[0084] In an optional embodiment, the response data at least includes posture data of the vehicle to be tested, and the vehicle fault simulation test method further includes:
[0085] Step S307, using the posture data to update the initial simulation test scene.
[0086] The above-mentioned posture data may include but are not limited to: position data (the current position coordinates of the vehicle to be tested), attitude data (the current direction and angle of the vehicle to be tested), speed data (linear speed and angular speed of the vehicle to be tested), acceleration data (linear acceleration and angular acceleration), and path data (the path that the vehicle to be tested has passed, the current path, and the path to be passed).
[0087] In an embodiment of the present invention, an initial simulation test scene of the vehicle to be tested is first constructed; fault information is added to at least part of the scene data of the initial simulation test scene to obtain a target simulation test scene; the front-view camera of the vehicle to be tested is controlled to present the target simulation test scene, so as to test the autonomous driving function to be tested of the vehicle to be tested under the target simulation test scene to obtain test data, wherein the test data is used to determine the functional safety level of the autonomous driving function to be tested; functional safety analysis is performed on the test data to obtain the functional safety level. By using a fault injection board to perform fault processing on the initial simulation test scene constructed by the simulation software, a target simulation test scene corresponding to the autonomous driving function to be tested is obtained, and then the target simulation test scene is injected into the front-view camera of the vehicle to be tested in the form of a video, so as to use the target simulation test scene to simulate the fault scene when the real vehicle is driving to test the autonomous driving function of the vehicle, thereby achieving the purpose of testing the vehicle function scene by means of video fault injection, thereby achieving the technical effect of improving the accuracy of the vehicle function scene test results, and thus solving the technical problem of low test result accuracy of the vehicle function scene test method adopted in the prior art.
[0088] In the present embodiment, a vehicle fault simulation test device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, a "module" is a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0089] Figure 7 is a structural block diagram of a vehicle fault simulation test device according to an embodiment of the present invention. Figure 7 As shown, the device comprises:
[0090] A construction module 701 is used to construct an initial simulation test scenario of the vehicle to be tested;
[0091] A processing module 702 is used to perform fault processing on the initial simulation test scenario to obtain a target simulation test scenario;
[0092] The test module 703 is used to control the front camera of the vehicle to be tested to present a target simulation test scene, so as to test the autonomous driving function to be tested of the vehicle to be tested under the target simulation test scene to obtain test data, wherein the test data is used to determine the functional safety level of the autonomous driving function to be tested;
[0093] The analysis module 704 is used to perform functional safety analysis on the test data to obtain a functional safety level.
[0094] Optionally, the initial simulation test scene includes at least a vehicle model, a sensor model and an environment model, and the above-mentioned construction module 701 is also used to: collect initial vehicle data and initial environment data of the vehicle to be tested, wherein the initial vehicle data includes at least: initial vehicle position, sensor position and vehicle body data; establish a scene coordinate system according to the initial vehicle position; in the scene coordinate system, construct a vehicle model according to the vehicle body data, and at the same time construct a sensor model according to the sensor position, and construct an environment model according to the initial environment data.
[0095] Optionally, the above-mentioned processing module 702 is also used to: determine the autonomous driving function to be tested of the vehicle to be tested; according to the autonomous driving function to be tested, add fault information to at least part of the scene data to obtain a target simulation test scene corresponding to the autonomous driving function to be tested, wherein the fault information is determined by the test requirements of the autonomous driving function to be tested.
[0096] Optionally, the test data includes at least multiple types of response data of the autonomous driving function to be tested, and the above-mentioned test module 703 is also used to: obtain scene perception data of the vehicle to be tested for the target simulation test scene; plan and make decisions based on the scene perception data, and generate control instructions for the autonomous driving function to be tested; execute the control instructions to control the vehicle to be tested to start the autonomous driving function to be tested; during the operation of the autonomous driving function to be tested, multiple types of response data are collected through multiple sensors.
[0097] Optionally, the above-mentioned analysis module 704 is also used to: score any type of response data according to a preset scoring table corresponding to any type of response data to obtain multiple scoring values; perform weighted sum calculation on the multiple scoring values to obtain a target scoring value; and determine the functional safety level corresponding to the target scoring value based on the functional safety level mapping table.
[0098] Optionally, the above-mentioned vehicle fault simulation test device also includes: a prompt module 705 (not shown in the figure), which is used to generate target prompt information according to test data in response to the functional safety level being lower than a preset level limit; and to provide functional safety prompts based on the target prompt information.
[0099] Optionally, the response data at least includes posture data of the vehicle to be tested, and the above-mentioned vehicle fault simulation test device also includes: an updating module 706 (not shown in the figure), which is used to update the initial simulation test scene using the posture data.
[0100] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0101] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, any one of the aforementioned vehicle fault simulation test methods is implemented.
[0102] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the aforementioned vehicle fault simulation test methods.
[0103] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0104] Step S1, constructing an initial simulation test scenario for the vehicle to be tested;
[0105] Step S2, adding fault information to at least part of the scenario data of the initial simulation test scenario to obtain a target simulation test scenario;
[0106] Step S3, controlling the front camera of the vehicle to be tested to present a target simulation test scene, so as to test the autonomous driving function to be tested of the vehicle to be tested under the target simulation test scene, and obtain test data, wherein the test data is used to determine the functional safety level of the autonomous driving function to be tested;
[0107] Step S4, performing functional safety analysis on the test data to obtain a functional safety level.
[0108] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0109] According to another aspect of an embodiment of the present invention, a vehicle is provided, comprising an on-board memory and an on-board processor, wherein a computer program is stored in the on-board memory, and the on-board processor is configured to run the computer program to execute any one of the aforementioned vehicle fault simulation test methods.
[0110] Optionally, in this embodiment, the vehicle-mounted processor may be configured to perform the following steps through a computer program:
[0111] Step S1, constructing an initial simulation test scenario for the vehicle to be tested;
[0112] Step S2, adding fault information to at least part of the scenario data of the initial simulation test scenario to obtain a target simulation test scenario;
[0113] Step S3, controlling the front camera of the vehicle to be tested to present a target simulation test scene, so as to test the autonomous driving function to be tested of the vehicle to be tested under the target simulation test scene, and obtain test data, wherein the test data is used to determine the functional safety level of the autonomous driving function to be tested;
[0114] Step S4, performing functional safety analysis on the test data to obtain a functional safety level.
[0115] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiment and its optional implementation modes, and this embodiment will not be described in detail here.
[0116] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0117] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0118] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0119] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0120] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0121] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk or optical disk, etc., various media that can store program codes.
[0122] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A vehicle fault simulation test system, It is characterized in that include: Simulation software, used to build initial simulation test scenarios for the vehicle under test; A fault injection board, used for adding fault information to at least part of the scenario data of the initial simulation test scenario to obtain a target simulation test scenario; A control device, used for controlling the front-view camera of the vehicle to be tested to present the target simulation test scene, so as to test the autonomous driving function to be tested of the vehicle to be tested under the target simulation test scene to obtain test data, wherein the test data is used to determine the functional safety level of the autonomous driving function to be tested; The analysis device is used to perform functional safety analysis on the test data to obtain the functional safety level.
2. A vehicle fault simulation test method, It is characterized in that include: Construct the initial simulation test scenario of the vehicle to be tested; Adding fault information to at least part of the scenario data of the initial simulation test scenario to obtain a target simulation test scenario; Controlling the front-view camera of the vehicle to be tested to present the target simulation test scene, so as to test the autonomous driving function to be tested of the vehicle to be tested under the target simulation test scene to obtain test data, wherein the test data is used to determine the functional safety level of the autonomous driving function to be tested; Performing functional safety analysis on the test data to obtain the functional safety level.
3. The vehicle fault simulation test method according to claim 2, It is characterized in that The initial simulation test scenario at least includes a vehicle model, a sensor model and an environment model. Constructing the initial simulation test scenario of the vehicle to be tested includes: Collecting initial vehicle data and initial environment data of the vehicle to be tested, wherein the initial vehicle data at least includes: initial vehicle position, sensor position and vehicle body data; Establishing a scene coordinate system according to the initial vehicle position; In the scene coordinate system, the vehicle model is constructed according to the vehicle body data, the sensor model is constructed according to the sensor position, and the environment model is constructed according to the initial environment data.
4. The vehicle fault simulation test method according to claim 3, It is characterized in that Adding fault information to at least part of the scenario data of the initial simulation test scenario to obtain the target simulation test scenario includes: Determining the autonomous driving function to be tested of the vehicle to be tested; According to the autonomous driving function to be tested, the fault information is added to at least part of the scenario data to obtain the target simulation test scenario corresponding to the autonomous driving function to be tested, wherein the fault information is determined by the test requirements of the autonomous driving function to be tested.
5. The vehicle fault simulation test method according to claim 4, It is characterized in that The test data at least includes multiple types of response data of the autonomous driving function to be tested, and the autonomous driving function to be tested of the vehicle to be tested is tested under the target simulation test scenario, and the test data obtained includes: Acquiring scene perception data of the vehicle to be tested for the target simulation test scene; Perform planning and decision-making according to the scene perception data, and generate control instructions for the autonomous driving function to be tested; Executing the control instruction to control the vehicle to be tested to start the automatic driving function to be tested; During the operation of the autonomous driving function to be tested, the multiple types of response data are collected by multiple sensors.
6. The vehicle fault simulation test method according to claim 5, It is characterized in that Performing functional safety analysis on the test data to obtain the functional safety level includes: Scoring any type of response data according to a preset scoring table corresponding to any type of response data to obtain multiple scoring values; Performing weighted sum calculation on the multiple scoring values to obtain a target scoring value; The functional safety level corresponding to the target score value is determined based on a functional safety level mapping table.
7. The vehicle fault simulation test method according to claim 6, It is characterized in that The vehicle fault simulation test method further comprises: In response to the functional safety level being lower than a preset level limit, generating target prompt information according to the test data; A functional safety prompt is performed based on the target prompt information.
8. The vehicle fault simulation test method according to claim 5, It is characterized in that The response data at least includes the posture data of the vehicle to be tested, and the vehicle fault simulation test method further includes: The initial simulation test scene is updated using the pose data.
9. A vehicle fault simulation test device, It is characterized in that include: A construction module, used to construct an initial simulation test scenario of the vehicle to be tested; A processing module, used for performing fault processing on the initial simulation test scenario to obtain a target simulation test scenario; a test module, used for controlling the front-view camera of the vehicle to be tested to present the target simulation test scene, so as to test the autonomous driving function to be tested of the vehicle to be tested under the target simulation test scene to obtain test data, wherein the test data is used to determine the functional safety level of the autonomous driving function to be tested; The analysis module is used to perform functional safety analysis on the test data to obtain the functional safety level.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the vehicle fault simulation test method according to any one of claims 2 to 8 is implemented.
11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the vehicle fault simulation test method of any one of claims 2 to 8.
12. A vehicle, It is characterized in that It comprises an on-board memory and an on-board processor, wherein the on-board memory stores a computer program, and the on-board processor is configured to run the computer program to execute the vehicle fault simulation test method of any one of claims 2 to 8.
Citation Information
Patent Citations
Dynamic vehicle detection method
CN112084937A
Platform and method for vehicle expected function safety simulation test and storage medium
CN113515105A
Obstacle tracking method and device based on self-vehicle coordinate system, vehicle and medium
CN115981330A
Safety assessment method for autonomous vehicle, storage medium and electronic equipment
CN116109188A
Automatic driving takeover strategy test evaluation method and device, storage medium and vehicle
CN117891231A
Cited By
Automatic driving perception system reliability test method based on fault injection
CN119469233A
