Automatic driving traffic event test method and device
Through the automated traffic event testing method, simulated trajectory data is generated and input into the autonomous driving algorithm for simulation, and electronic fences are automatically generated, which solves the safety and efficiency problems of autonomous driving roadside traffic event testing in the existing technology and realizes traffic in multiple scenarios. Efficient simulation triggering and early warning analysis of events reduce the time and cost of manual investment.
Patent Information
- Application Number
- CN202411009091.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-01
Smart Images

Figure CN118736836A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of testing-related technologies, and in particular to an autonomous driving traffic incident testing method, electronic equipment, storage medium and computer program product. Background Art
[0002] With the development of the autonomous driving industry, the testing of roadside perception algorithms based on autonomous driving to drive vehicles into limited areas to trigger traffic incidents and issue warnings is becoming increasingly important.
[0003] In the existing technology, for the test of roadside traffic incident warning for autonomous driving, firstly, the electronic fence area is drawn manually using an electronic fence drawing tool, such as QGIS, and then the electronic fence is deployed and the alarm event triggering threshold is configured. Then, the real value car is manually run to trigger various traffic events, such as speeding, low speed, lane change and other traffic events. After the warning is triggered, the event warning and event audit verification are carried out by manually processing the log or by secondary development of the warning platform. Among them, QGIS (Quantum GIS) is an open source geographic information system software, which is mainly used for geographic data management, analysis and visualization. It provides a powerful geographic data management function and supports multiple geographic data formats, such as Shapefile, GeoJSON, KML, etc. QGIS also supports multi-dimensional analysis of geographic information data, such as spatial statistics, geographic information visualization, etc. QGIS can also export geographic data into images in various formats, such as JPEG, PNG, etc., for use in web pages or other applications.
[0004] The existing testing methods are aimed at analyzing multiple deployment intersections, road sections and other scenarios. Firstly, it is not safe for manual driving to trigger traffic events. Secondly, it is also relatively complicated to draw, visualize and deploy multiple electronic fences. In addition, a large amount of human resource costs are required for the analysis and verification of warning events. Therefore, how to safely perform simulated triggering tests of traffic events based on this method, how to efficiently and quickly draw electronic fences in multiple scenarios and configure and deploy them, and how to increase the speed of analyzing and testing warning events are hot issues that technicians in this field are currently concerned about. Summary of the invention
[0005] Based on this, it is necessary to provide an autonomous driving traffic incident testing method, electronic device, storage medium and computer program product to address the technical problems of the prior art.
[0006] The present invention provides an automatic driving traffic incident testing method, comprising:
[0007] Get the traffic event type selected by the user;
[0008] Acquiring initial trajectory parameters, and generating simulated trajectory data for simulating the driving trajectory of the vehicle according to the traffic event type and the initial trajectory parameters;
[0009] Inputting the simulated trajectory data into the automatic driving algorithm to be tested, and using the automatic driving algorithm to be tested to simulate the driving process of the vehicle;
[0010] A traffic event triggered by the driving process is acquired and the traffic event is judged.
[0011] Furthermore, it also includes: generating a corresponding threshold trigger condition according to the traffic event type.
[0012] Furthermore, generating simulated trajectory data for simulating the driving trajectory of the vehicle according to the traffic event type and the initial trajectory parameters includes:
[0013] According to the threshold trigger condition, simulated trajectory data for simulating a driving trajectory of a vehicle triggering the threshold trigger condition is generated.
[0014] Furthermore, before inputting the simulated trajectory data into the autonomous driving algorithm to be tested, the method further includes:
[0015] The user's selection of an electronic fence is obtained, and an electronic fence is generated, where the electronic fence is used to define a test area.
[0016] Furthermore, the obtaining of the user's selection of the electronic fence and generating the electronic fence includes:
[0017] The deployment points marked by the user on the map are obtained, and an electronic fence is generated according to the deployment points.
[0018] Further, the acquiring of the deployment point marked by the user on the map and generating the electronic fence according to the deployment point includes:
[0019] Acquire a starting position and / or a destination position of the initial parameters of the trajectory, and generate a map according to the starting position and / or the destination position;
[0020] The deployment point marked by the user on the map is obtained, and an electronic fence is generated according to the deployment point.
[0021] Furthermore, the obtaining of traffic events triggered by the driving process and judging the traffic events includes:
[0022] Obtain traffic events triggered during driving;
[0023] If the location where the traffic event occurs is outside the electronic fence, then the traffic event is judged to be wrong;
[0024] If the location where the traffic event occurs is within the electronic fence, the traffic event is judged according to the type of the traffic event.
[0025] The present invention provides an electronic device, comprising:
[0026] at least one processor; and,
[0027] a memory communicatively connected to at least one of the processors; wherein,
[0028] The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute the autonomous driving traffic event testing method as described above.
[0029] The present invention provides a storage medium, which stores computer instructions. When a computer executes the computer instructions, it is used to execute all steps of the autonomous driving traffic event testing method as described above.
[0030] The present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the automatic driving traffic event testing method as described above.
[0031] The present invention automatically generates simulated trajectory data for simulating the driving trajectory of the vehicle according to the type of traffic event selected by the user, and inputs the data into the autonomous driving algorithm to be tested. The driving process of the vehicle is simulated by the autonomous driving algorithm to be tested, and the traffic events triggered by the driving process are obtained and judged, so as to use automated testing to cover the entire testing process from triggering warning of the perception event to warning detection and subsequent positioning and investigation. In this way, the simulated triggering of multiple traffic event types in multiple road scenes on the roadside can be achieved safely and efficiently, and the human resource cost of manually investing too much time to observe whether the warning event is triggered and whether the event triggering is correct can be greatly reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is a workflow diagram of an automatic driving traffic incident testing method according to an embodiment of the present invention;
[0033] Figure 2 This is a workflow diagram of an automatic driving traffic incident testing method according to another embodiment of the present invention;
[0034] Figure 3 A working flow chart of a method for testing traffic incidents of an automatic driving according to the best embodiment of the present invention;
[0035] Figure 4 The figure is a schematic diagram of the hardware structure of an electronic device of the present invention. DETAILED DESCRIPTION
[0036] The specific embodiments of the present invention are further described below in conjunction with the accompanying drawings. The same components are represented by the same reference numerals. It should be noted that the words "front", "rear", "left", "right", "upper" and "lower" used in the following description refer to directions in the accompanying drawings, and the words "inner" and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.
[0037] like Figure 1 The figure shows a workflow diagram of an automatic driving traffic incident testing method according to an embodiment of the present invention, including:
[0038] Step S101, obtaining the traffic event type selected by the user;
[0039] Step S102, obtaining initial trajectory parameters, and generating simulated trajectory data for simulating the driving trajectory of the vehicle according to the traffic event type and the initial trajectory parameters;
[0040] Step S103, inputting the simulated trajectory data into the automatic driving algorithm to be tested, and using the automatic driving algorithm to be tested to simulate the driving process of the vehicle;
[0041] Step S104, obtaining traffic events triggered by the driving process and judging the traffic events.
[0042] Specifically, the present invention can be applied to electronic devices with processing capabilities, such as computers.
[0043] As the iteration speed of autonomous driving algorithms increases, it is necessary to cooperate with automated testing tools to complete a large number of traffic events (also known as traffic perception events) testing work. The autonomous driving traffic event testing method of the present invention can be executed through the automated traffic event testing tool to achieve automatic testing of autonomous driving.
[0044] First, step S101 is executed to obtain the traffic event type selected by the user.
[0045] Specifically, the traffic event type is selected using the automated traffic event testing tool. For example, the automated traffic event testing tool provides multiple traffic event type options for the user to select. After the user selects and confirms, step S101 is triggered to obtain the traffic event type selected by the user.
[0046] Among them, traffic incidents refer to abnormal situations occurring with vehicles, pedestrians, etc. on traffic roads, including but not limited to speeding, underspeed, sudden lane changes, and vehicle congestion.
[0047] Among them, traffic event types include but are not limited to: abnormal parking detection, road congestion detection, pedestrian intrusion detection, non-motor vehicle intrusion detection, vehicle reverse detection, solid line lane change detection, speeding detection, low speed detection, etc. In addition, you can also customize and add multiple types of traffic event types to achieve customized traffic event test detection and automated test processing.
[0048] Then, step S102 is executed to obtain initial trajectory parameters, and generate simulated trajectory data for simulating the driving trajectory of the vehicle according to the traffic event type and the initial trajectory parameters.
[0049] Specifically, the automated traffic event test tool is used to simulate the vehicle's driving trajectory data as simulated trajectory data according to the traffic event type and the different initial trajectory parameters. The initial trajectory parameters include but are not limited to: the center point of the road, the starting position, the end position, the starting speed, etc. The simulated trajectory data includes but is not limited to: basic trajectory data information such as vehicle latitude and longitude, speed, and heading angle. According to the starting position and the end position, the route can be determined using the existing route generation, and then the simulated trajectory data is generated based on the parameters such as the starting speed.
[0050] Step S103: input the simulated trajectory data into the autonomous driving algorithm to be tested, and use the autonomous driving algorithm to be tested to simulate the driving process of the vehicle.
[0051] Specifically, the simulated trajectory data is input into the autonomous driving algorithm to be tested, and then the simulated vehicle uses the autonomous driving algorithm to be tested to perform autonomous driving. The autonomous driving algorithm to be tested drives along the route trajectory indicated by the simulated trajectory data.
[0052] Finally, step S104 is executed to obtain the traffic events triggered by the driving process and to judge the traffic events.
[0053] During driving, traffic events triggered by the autonomous driving algorithm to be tested are collected, and it is determined whether the traffic events meet the traffic event type selected by the user. For example, when the user selects a high-speed event scenario, if the traffic event output by the autonomous driving algorithm to be tested is a traffic event under the high-speed event scenario, the traffic event is judged to be correct, otherwise the traffic event is judged to be incorrect. By collecting correct and incorrect traffic events and displaying them to the user, the analysis of traffic events is completed.
[0054] Preferably, after a traffic event is triggered, the time of occurrence of the traffic event, the event type, and the trajectory data, whether the traffic event is triggered correctly, and the program running log are automatically sent to notify, so as to achieve the effect of early warning when the traffic event is triggered. For example, the time of occurrence of the traffic event, the event type, and the trajectory data, whether the traffic event is triggered correctly, and the program running log can be automatically sent in the form of DingTalk. Based on the overall data information sent, subsequent problem location and troubleshooting can be further performed. If the traffic event is triggered inaccurately, subsequent problem location and troubleshooting operations can be performed based on the sent log.
[0055] The present invention automatically generates simulated trajectory data for simulating the driving trajectory of the vehicle according to the type of traffic event selected by the user, and inputs the data into the autonomous driving algorithm to be tested. The driving process of the vehicle is simulated by the autonomous driving algorithm to be tested, and the traffic events triggered by the driving process are obtained and judged, so as to use automated testing to cover the entire testing process from triggering warning of the perception event to warning detection and subsequent positioning and investigation. In this way, the simulated triggering of multiple traffic event types in multiple road scenes on the roadside can be achieved safely and efficiently, and the human resource cost of manually investing too much time to observe whether the warning event is triggered and whether the event triggering is correct can be greatly reduced.
[0056] like Figure 2 The flowchart of a method for testing traffic incidents of an autonomous driving system in another embodiment of the present invention is shown, including:
[0057] Step S201, obtaining the traffic event type selected by the user.
[0058] Step S202: Generate a corresponding threshold trigger condition according to the traffic event type.
[0059] Step S203, obtaining initial trajectory parameters, and generating simulated trajectory data for simulating the driving trajectory of the vehicle triggering the threshold trigger condition according to the threshold trigger condition.
[0060] Step S204, obtaining the user's selection of the electronic fence and generating the electronic fence, wherein the electronic fence is used to define the test area.
[0061] In one embodiment, obtaining the user's selection of the electronic fence and generating the electronic fence includes:
[0062] The deployment points marked by the user on the map are obtained, and an electronic fence is generated according to the deployment points.
[0063] In one embodiment, the step of obtaining a deployment point identified by a user on a map and generating an electronic fence according to the deployment point includes:
[0064] Acquire a starting position and / or a destination position of the initial parameters of the trajectory, and generate a map according to the starting position and / or the destination position;
[0065] The deployment point marked by the user on the map is obtained, and an electronic fence is generated according to the deployment point.
[0066] Step S205: input the simulated trajectory data into the automatic driving algorithm to be tested, and use the automatic driving algorithm to be tested to simulate the driving process of the vehicle.
[0067] Step S206, obtaining traffic events triggered by the driving process;
[0068] If the location where the traffic event occurs is outside the electronic fence, then the traffic event is judged to be wrong;
[0069] If the location where the traffic event occurs is within the electronic fence, the traffic event is judged according to the type of the traffic event.
[0070] Specifically, step S201 is first executed to obtain the traffic event type selected by the user.
[0071] Specifically, firstly, the automated traffic event testing tool for executing the automatic driving traffic event testing method of the present invention is used to allow the user to select the traffic event type, and then the traffic event type selected by the user is obtained. Then, step S202 is executed to generate a corresponding threshold trigger condition according to the traffic event type.
[0072] Specifically, traffic event parameter configuration is performed according to different traffic event types to perform traffic event trigger simulation. The threshold trigger condition is the condition for triggering a traffic event corresponding to the traffic event type. The threshold trigger condition can be that the corresponding traffic event is triggered when the vehicle parameters reach the trigger threshold. For example, in a high-speed event scenario, a speed of 5m / s is configured as the threshold trigger condition, and in a low-speed event scenario, a speed of 1m / s is configured as the threshold trigger condition.
[0073] Then, step S203 is executed to obtain initial trajectory parameters, and based on the threshold trigger condition, simulated trajectory data for simulating the driving trajectory of the vehicle triggering the threshold trigger condition is generated.
[0074] Specifically, the automated traffic event test tool is used to simulate the vehicle's driving trajectory data according to the event type and configuration parameters (i.e., trajectory initialization parameters, different traffic events will have their own default trajectory initialization parameters), such as selecting the high-speed event type, configuring the simulation data field (i.e., the configuration parameters initialized by different traffic events), and generating simulated dynamic trajectory data generated according to the different types of traffic events and the initialized configuration parameters as the generated field. The generated data field includes basic trajectory data information such as vehicle latitude and longitude, speed, and heading angle. Then, these generated trajectory data are used to simulate dynamic trajectories.
[0075] Then, in step S204, the user's selection of the electronic fence is obtained, and the electronic fence is generated, where the electronic fence is used to define the test area.
[0076] In one embodiment, obtaining the user's selection of the electronic fence and generating the electronic fence includes:
[0077] The deployment points marked by the user on the map are obtained, and an electronic fence is generated according to the deployment points.
[0078] Specifically, the selection interface of the electronic fence is displayed on the automated traffic incident test tool. The electronic fence selected by the user on the automated traffic incident test tool is obtained. For example, a high-precision map is displayed on the automated traffic incident test tool, and the user can directly configure the deployment point address on the high-precision map. The user can directly enter the geographic coordinates of the deployment point location, or directly click on the high-precision map to determine the deployment point location. Then, the automated traffic incident test tool connects the deployment point locations to form an electronic fence.
[0079] This embodiment allows the user to automatically generate and deploy an event electronic fence by clicking a few points, which can help the user to quickly deploy the electronic fence.
[0080] In one embodiment, the step of obtaining a deployment point identified by a user on a map and generating an electronic fence according to the deployment point includes:
[0081] Acquire a starting position and / or a destination position of the initial parameters of the trajectory, and generate a map according to the starting position and / or the destination position;
[0082] The deployment point marked by the user on the map is obtained, and an electronic fence is generated according to the deployment point.
[0083] Specifically, an automated traffic event testing tool may be used to select an event type and draw an electronic fence triggered by the event, and a map may be generated based on the starting position and / or the destination position of the trajectory provided by the user.
[0084] In some embodiments, generating a map according to the starting location and / or the destination location includes:
[0085] Generate a map with the starting location as the center and within a preset range; or
[0086] Generate a map with the destination as the center and within a preset range; or
[0087] Generate a map from the starting location to the destination location.
[0088] Then, combined with high-precision maps, the lanes of the roads on the map are accurately displayed. In the automated traffic event test tool, users can directly configure the deployment point address on the displayed map or click on a few deployment points on the map. Then the automated traffic event test tool connects the deployment point locations to automatically generate and deploy the event electronic fence. It can also perform visual management of the drawn fences and display multiple types of fences. Because different traffic events correspond to different electronic fences, the multiple types of fences here refer to the ability to display the corresponding different electronic fences uniformly on the road area map based on the selection of multiple traffic event types, and to distinguish the fence areas with different colors. It is used to flexibly manage the visual management of electronic fences, and can also modify and delete different types of fences.
[0089] This embodiment generates and displays a map according to the starting position and / or the destination position of the track to help the user quickly determine the electronic fence area.
[0090] Then, step S205 is executed to input the simulated trajectory data into the automatic driving algorithm to be tested, and the driving process of the vehicle is simulated using the automatic driving algorithm to be tested.
[0091] Specifically, the autonomous driving algorithm to be tested is used to control the autonomous driving of the vehicle. In order to test the autonomous driving algorithm to be tested, this embodiment simulates the autonomous driving algorithm to be tested, inputs the simulated trajectory data into the autonomous driving algorithm to be tested, and the autonomous driving algorithm to be tested generates data for controlling the vehicle to travel along the simulated trajectory data, thereby realizing the simulation of the vehicle driving process.
[0092] As an example, the simulation process of an autonomous driving algorithm includes:
[0093] (1) Generate a simulated trajectory data file based on the selected traffic event type and the initialized traffic configuration parameters. The generated data file contains information such as the timestamp, longitude and latitude, speed, heading angle, and identification type of the vehicle trajectory.
[0094] (2) The generated trajectory data is used for simulation. The simulation algorithm first determines the satellite map area display based on the center point through ArcGIS (a general term for a series of geographic information system (GIS) software developed by Esri), and then parses the electronic fence pixels and draws them into the track layer (TrackLayer, a layer used to display trajectories on the map). Then, when parsing the original file data, the target display model is first determined based on the recognition type, such as displaying a human model for a person and a car model for a car. Then, the model symbol (Symbol, a graphic element used to represent a specific object or feature on a map) and the trajectory data are drawn in the trackLayer layer frame by frame with a timestamp, forming a dynamic trajectory display effect.
[0095] Then, step S206 is executed to obtain the traffic event triggered by the driving process;
[0096] If the location where the traffic event occurs is outside the electronic fence, then the traffic event is judged to be wrong;
[0097] If the location where the traffic event occurs is within the electronic fence, the traffic event is judged according to the type of the traffic event.
[0098] Specifically, after the event threshold is configured and the electronic fence is deployed successfully, the traffic event detection will be carried out directly, and the traffic event will be triggered according to the simulated dynamic trajectory data. After the event is triggered, the tool can be used to automatically display the event warning and analyze the warning event. Among them, the event warning display shows all traffic events, including traffic events that are triggered correctly and traffic events that are triggered incorrectly. Warning events refer to traffic events that are perceived as errors and are warned.
[0099] The electronic fence is used to limit the test area, and the vehicle trajectory indicated by the simulated trajectory data may only be partially within the electronic fence. Therefore, outside the electronic fence, the autonomous driving algorithm to be tested should not trigger a traffic event. Therefore, if the location of the traffic event is outside the electronic fence, the traffic event is judged to be incorrect. Within the electronic fence, if a traffic event occurs, the traffic event is judged based on the type of traffic event to determine whether the traffic event generated by the autonomous driving algorithm to be tested is correct. Different traffic event types should generate different traffic events. According to the type of traffic event that the user wants to test, there will be a corresponding traffic event. Therefore, the traffic event can be judged according to the traffic event type. If it meets the type of traffic event that the user wants to test, the traffic event is judged to be correct, otherwise the traffic event is judged to be incorrect.
[0100] The autonomous driving traffic event testing method of this embodiment improves the safety of traffic event triggering, from the need for manual real-life vehicle triggering of multiple scenarios to the use of automated traffic event testing tools to simulate and generate vehicle driving trajectory data in the form of an interface. At the same time, it improves the convenience and efficiency of drawing and deploying multiple traffic event electronic fences, from the previous need to use third-party tools to draw multiple electronic fences and manually deploy them to the use of automated traffic event testing tools to visualize the drawing and management of electronic fences and real-time deployment, reducing the complexity of deployment and the complexity of drawing fences. Finally, it improves the efficiency of event warning processing and analysis, from the previous need for manual processing and analysis of traffic events to the use of automated traffic event testing tools to uniformly review and analyze the triggered traffic warning events, and to display them accordingly in the form of statistical data and visualization.
[0101] It should be understood that the order of execution of the steps in the above embodiment does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention. For example, step S202 and step S204 can be executed sequentially, or after the user selects the type of traffic event, step S202 can be executed in parallel to generate the corresponding threshold trigger condition and step S204 to obtain the user's selection of the electronic fence and generate the electronic fence.
[0102] like Figure 3 The flowchart of a method for testing traffic incidents of an automatic driving system according to a preferred embodiment of the present invention is shown as follows:
[0103] Step S301, the automated traffic event testing tool obtains a selection of a traffic event type;
[0104] Step S302, simulating the dynamic trajectory data of an automated vehicle according to the type of traffic event;
[0105] Step S303, configuring the automatic trigger threshold according to the traffic event type;
[0106] Step S304, drawing an event electronic fence according to the traffic event type and automatically deploying it;
[0107] Step S305, traffic incident triggers warning;
[0108] Step S306: automatic detection and fault analysis of traffic warning events.
[0109] This embodiment realizes the combined drawing and deployment of various traffic event fences through an automated traffic event testing tool, and can realize automatic simulation of various types of traffic events according to the configuration event parameter file of the configuration parameters. After the warning is triggered, different types of traffic event warning displays and traffic event review and analysis can be performed through automated tools.
[0110] like Figure 4 The figure shows a hardware structure diagram of an electronic device of the present invention, including:
[0111] at least one processor 401; and,
[0112] A memory 402 is communicatively connected to at least one of the processors 401; wherein,
[0113] The memory 402 stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute the autonomous driving traffic event testing method as described above.
[0114] Figure 4 A processor 401 is taken as an example.
[0115] The electronic device may further include: an input device 403 and a display device 404 .
[0116] The processor 401, the memory 402, the input device 403 and the display device 404 may be connected via a bus or other means, and the figure takes the connection via a bus as an example.
[0117] The memory 402 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the autonomous driving traffic incident test method in the embodiment of the present application, for example, Figure 1 , Figure 2 The processor 401 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 402, that is, the automatic driving traffic event testing method in the above embodiment is implemented.
[0118] The memory 402 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required by at least one function; the data storage area may store data created according to the use of the autonomous driving traffic incident test method, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 402 may optionally include a memory remotely arranged relative to the processor 401, and these remote memories may be connected to a device for executing the autonomous driving traffic incident test method 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.
[0119] The input device 403 can receive input user clicks and generate signal inputs related to user settings and function controls of the autonomous driving traffic event test method. The display device 404 can include display devices such as display screens.
[0120] The one or more modules are stored in the memory 402, and when executed by the one or more processors 401, the automatic driving traffic event testing method in any of the above method embodiments is executed.
[0121] The present invention automatically generates simulated trajectory data for simulating the driving trajectory of the vehicle according to the type of traffic event selected by the user, and inputs the data into the autonomous driving algorithm to be tested. The driving process of the vehicle is simulated by the autonomous driving algorithm to be tested, and the traffic events triggered by the driving process are obtained and judged, so as to use automated testing to cover the entire testing process from triggering warning of the perception event to warning detection and subsequent positioning and investigation. In this way, the simulated triggering of multiple traffic event types in multiple road scenes on the roadside can be achieved safely and efficiently, and the human resource cost of manually investing too much time to observe whether the warning event is triggered and whether the event triggering is correct can be greatly reduced.
[0122] An embodiment of the present invention provides a storage medium, which stores computer instructions. When a computer executes the computer instructions, it is used to execute all steps of the autonomous driving traffic event testing method as described above.
[0123] In the context of the present disclosure, a storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. The storage medium may be a machine-readable signal medium or a machine-readable storage medium. Alternatively, the storage medium may be a non-temporary computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (Compact Disc ROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0124] An embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the autonomous driving traffic event testing method as described above.
[0125] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A method for testing traffic incidents in an autonomous driving system, characterized in that: include: Get the traffic event type selected by the user; Acquiring initial trajectory parameters, and generating simulated trajectory data for simulating the driving trajectory of the vehicle according to the traffic event type and the initial trajectory parameters; Inputting the simulated trajectory data into the automatic driving algorithm to be tested, and using the automatic driving algorithm to be tested to simulate the driving process of the vehicle; A traffic event triggered by the driving process is acquired and the traffic event is judged.
2. The method for testing traffic incidents of automatic driving according to claim 1, characterized in that: Also includes: According to the traffic event type, a corresponding threshold trigger condition is generated.
3. The automatic driving traffic incident testing method according to claim 2, characterized in that: The step of generating simulated trajectory data for simulating the driving trajectory of the vehicle according to the traffic event type and the initial trajectory parameters includes: According to the threshold trigger condition, simulated trajectory data for simulating a driving trajectory of a vehicle triggering the threshold trigger condition is generated.
4. The method for testing traffic incidents of automatic driving according to claim 1, characterized in that: Before inputting the simulated trajectory data into the automatic driving algorithm to be tested, the method further includes: The user's selection of an electronic fence is obtained, and an electronic fence is generated, where the electronic fence is used to define a test area.
5. The method for testing traffic incidents of automatic driving according to claim 4, characterized in that: The step of obtaining the user's selection of the electronic fence and generating the electronic fence includes: The deployment points marked by the user on the map are obtained, and an electronic fence is generated according to the deployment points.
6. The method for testing traffic incidents of automatic driving according to claim 5, characterized in that: The acquiring of the deployment point marked by the user on the map and generating the electronic fence according to the deployment point includes: Acquire a starting position and / or a destination position of the initial parameters of the trajectory, and generate a map according to the starting position and / or the destination position; The deployment point marked by the user on the map is obtained, and an electronic fence is generated according to the deployment point.
7. The method for testing traffic incidents of an automatic driving vehicle according to claim 4, characterized in that: The obtaining of a traffic event triggered by the driving process and judging the traffic event includes: Obtain traffic events triggered during the driving process; If the location where the traffic event occurs is outside the electronic fence, then the traffic event is judged to be wrong; If the location where the traffic event occurs is within the electronic fence, the traffic event is judged according to the type of the traffic event.
8. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to at least one of the processors; wherein, The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute the autonomous driving traffic event testing method as described in any one of claims 1 to 7.
9. A storage medium, characterized in that: The storage medium stores computer instructions, which, when executed by a computer, are used to execute all steps of the autonomous driving traffic incident testing method as described in any one of claims 1 to 7.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the autonomous driving traffic incident testing method as described in any one of claims 1 to 7 is implemented.
