Automatic driving vehicle in-loop test method and system and automatic driving vehicle

By detecting the status information of autonomous vehicles, automatically determining and playing virtual scenes, combined with real closed site testing, it solves the testing problems of autonomous vehicles in various scenarios, improves test efficiency and safety, and reduces costs.

CN118730557APending Publication Date: 2024-10-01BEIJING SANKUAI ONLINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310323286.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

It is difficult to achieve safe, efficient and reliable testing of autonomous vehicles under various road traffic conditions and application scenarios. The existing technology lacks effective environmental testing methods and systems, resulting in low testing efficiency and high cost.

Method used

By detecting the status information of autonomous vehicles, determining the trigger type and reference position of the target virtual scene based on the status information, automatically playing and switching virtual scenes, achieving seamless virtual scene migration and automatic triggering, combined with real closed site testing, to build a digital twin Drive test system.

Benefits of technology

It improves the efficiency and safety of autonomous vehicle testing, reduces testing costs, enables driving testing in any scenario, and avoids restrictions on virtual scenes caused by map changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118730557A_ABST
    Figure CN118730557A_ABST
Patent Text Reader

Abstract

The invention discloses an in-loop test method and system for an autonomous vehicle and the autonomous vehicle, and the method comprises the steps: detecting the state information of the autonomous vehicle, the state information at least comprising position information and reference line information; the trigger type of a target virtual scene is determined according to the state information of the autonomous vehicle, and the trigger type at least comprises straight driving trigger, left turning trigger, right turning trigger and intersection passing trigger; determining a reference position of the target virtual scene according to a preset reference position generation mode; determining the target virtual scene according to the trigger type of the target virtual scene and a preset set of virtual scenes corresponding to each trigger type; playing the target virtual scene according to the reference position of the target virtual scene under the condition that the current virtual scene is played and the state information of the vehicle meets the scene switching condition; and testing the autonomous vehicle according to the target virtual scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and more specifically, to an in-the-loop testing method and system for an autonomous driving vehicle and an autonomous driving vehicle. Background Art

[0002] To ensure that autonomous driving vehicles can operate safely, efficiently and reliably under various road traffic conditions and application scenarios, they need to be tested comprehensively, systematically and rigorously during their research and development and mass production. Summary of the invention

[0003] An object of the present invention is to provide a new technical solution for in-the-loop testing of autonomous vehicles.

[0004] According to a first aspect of the present invention, a method for in-the-loop testing of an autonomous driving vehicle is provided, the method comprising:

[0005] Detecting state information of the autonomous driving vehicle, wherein the state information includes at least position information and reference line information;

[0006] Determining a trigger type of a target virtual scene according to the state information of the autonomous driving vehicle, wherein the trigger type includes at least a straight-ahead trigger, a left-turn trigger, a right-turn trigger, and an intersection-passing trigger;

[0007] Determining a reference position of the target virtual scene according to a preset reference position generation mode;

[0008] Determine the target virtual scene according to the trigger type of the target virtual scene and a set of virtual scenes corresponding to each trigger type that is preset;

[0009] When the current virtual scene is played and the state information of the vehicle meets the scene switching condition, playing the target virtual scene according to the reference position of the target virtual scene;

[0010] The autonomous driving vehicle is tested according to the target virtual scene.

[0011] Optionally, before detecting the state information of the autonomous driving vehicle, the method further includes:

[0012] Obtain multiple virtual scenes sent by the cloud server;

[0013] The multiple virtual scenes are classified according to the trigger types of the multiple virtual scenes to obtain a set of virtual scenes corresponding to each trigger type.

[0014] Optionally, the virtual scenes corresponding to each trigger type are stored in the collection queue of virtual scenes.

[0015] The step of determining the target virtual scene according to the trigger type of the target virtual scene and a set of virtual scenes corresponding to each trigger type that is preset includes:

[0016] Determine a target queue corresponding to the trigger type of the target virtual scene according to the trigger type of the target virtual scene and a set of virtual scenes corresponding to each trigger type that is preset;

[0017] Determine the first scene in the target queue as the target virtual scene;

[0018] Move the first scene in the target queue to the end of the target queue.

[0019] Optionally, determining the trigger type of the target virtual scene according to the state information of the autonomous driving vehicle includes:

[0020] Determining driving information of the autonomous driving vehicle according to the reference line information, wherein the driving information of the autonomous driving vehicle at least includes going straight, turning left, turning right, and passing an intersection;

[0021] The trigger type of the target virtual scene is determined according to the driving information of the vehicle.

[0022] Optionally, determining the reference position of the target virtual scene according to a preset reference position generation mode includes:

[0023] When the reference position generation mode is a random mode, the reference position of the target virtual scene is randomly generated.

[0024] Optionally, determining the reference position of the target virtual scene according to a preset reference position generation mode includes:

[0025] When the reference position generation mode is a fixed mode, a preset target position is determined as a reference position of the target virtual scene.

[0026] Optionally, determining the reference position of the target virtual scene according to a preset reference position generation mode includes:

[0027] When the reference position generation mode is a trigger mode, determining the driving information of the automatic driving vehicle according to the reference line information;

[0028] The reference position of the target virtual scene is determined according to the driving information of the autonomous driving vehicle and the position information of the autonomous driving vehicle.

[0029] Optionally, determining the target virtual scene according to the trigger type of the target virtual scene and a preset set of virtual scenes corresponding to each trigger type includes:

[0030] Obtaining the preset priority corresponding to each trigger type;

[0031] According to the priority corresponding to each trigger type, a virtual scene is selected from a set of virtual scenes corresponding to trigger types with high priority as the target virtual scene.

[0032] According to a second aspect of the present invention, there is provided an autonomous driving vehicle in-the-loop testing system, comprising:

[0033] A detection module, used to detect state information of the autonomous driving vehicle, wherein the state information includes at least position information and reference line information;

[0034] A first determination module is used to determine the trigger type of the target virtual scene according to the state information of the autonomous driving vehicle, wherein the trigger type includes at least a straight-ahead trigger, a left-turn trigger, a right-turn trigger, and a crossing-intersection trigger;

[0035] A second determination module, used to determine the reference position of the target virtual scene according to a preset reference position generation mode;

[0036] A third determination module, configured to determine the target virtual scene according to the trigger type of the target virtual scene and a set of virtual scenes corresponding to each trigger type that is preset;

[0037] A playing module, configured to play the target virtual scene according to a reference position of the target virtual scene when the current virtual scene has been played and the state information of the vehicle meets the scene switching condition;

[0038] A testing module is used to test the autonomous driving vehicle according to the target virtual scene.

[0039] According to a third aspect of the present invention, there is provided an autonomous driving vehicle, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the autonomous driving vehicle in-the-loop testing method as described in the first aspect of the present invention are implemented.

[0040] According to one embodiment of the present invention, the present invention classifies virtual scenes according to the trigger type of virtual scenes in advance, detects the state information of the autonomous driving vehicle, determines the target virtual scene and the reference position of the target virtual scene according to the state information of the autonomous driving vehicle, and plays the target virtual scene when the state information of the autonomous driving vehicle meets the scene switching condition, which can automatically trigger various virtual scenes during the autonomous driving vehicle test process, without the need for the user to manually switch scenes, thereby improving the test efficiency. In addition, the test of the autonomous driving vehicle is no longer limited to the map. When the map is changed, the virtual scene can still be used in the new map, realizing the seamless migration of the virtual scene. At the same time, the present invention allows the autonomous driving vehicle to drive in a real closed open space, and tests the autonomous driving vehicle according to the virtual scene, constructs a set of digital twin road test system by combining virtual and real, and achieves rich road test effects by testing the real vehicle in the closed test field. Compared with the real road test method, testing in a closed field has higher safety, and the driving conditions of the autonomous driving vehicle in any scene can be tested by combining virtual and real, which greatly reduces the test cost of the autonomous driving vehicle.

[0041] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.

[0043] Figure 1 It is a flowchart of the in-loop testing method of the autonomous driving vehicle in an embodiment of the present application.

[0044] Figure 2 It is a schematic diagram of the reference line in the virtual map in the embodiment of the present application.

[0045] Figure 3 It is a schematic diagram of the reference position in the virtual map in the embodiment of the present application.

[0046] Figure 4 It is a schematic diagram of scene playback in an embodiment of the present application.

[0047] Figure 5 It is a schematic diagram of the target queue in an embodiment of the present application.

[0048] Figure 6 It is a schematic diagram of an in-the-loop test system for an autonomous driving vehicle in an embodiment of the present application.

[0049] Figure 7 It is a schematic diagram of an autonomous driving vehicle in an embodiment of the present application. DETAILED DESCRIPTION

[0050] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.

[0051] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

[0052] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0053] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0054] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0055] It should be noted that all actions to obtain signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located, and with the authorization given by the corresponding device / account owner.

[0056] First, the application scenario of the technical solution of this application is introduced. This application proposes an in-loop testing method for an autonomous driving vehicle. The autonomous driving vehicle is a real vehicle in the real world, and the autonomous driving vehicle is driving in an open space in the real world. And a virtual map will be created, and the size of the virtual map can refer to the size of the open space. A virtual vehicle corresponding to the autonomous driving vehicle is generated in the virtual map. While the autonomous driving vehicle is driving, the virtual vehicle also moves simultaneously in the virtual map. Various scenes can be set in the virtual map to test the corresponding functions of the autonomous driving vehicle. For example, an obstacle is set, and the obstacle avoidance function of the autonomous driving vehicle is tested through the obstacle.

[0057] like Figure 1 As shown, the present application proposes an in-loop testing method for an autonomous driving vehicle, and the method includes steps 1100-1600.

[0058] Step 1100: Detect status information of the autonomous driving vehicle, wherein the status information includes at least position information and reference line information.

[0059] The reference line information may indicate the route information that the autonomous driving vehicle will travel. The reference line may be the route that the autonomous driving vehicle plans to travel along, and the autonomous driving vehicle travels along the route. The reference line information may indicate that the autonomous driving vehicle will go straight, turn left, turn right, or pass through an intersection, etc. within a certain period of time in the future.

[0060] like Figure 2 In the virtual map shown, there is a reference line in front of the autonomous vehicle that indicates the vehicle's driving path, and the vehicle is driving along the reference line. The reference line indicates that the vehicle is about to turn left.

[0061] Step 1200: Determine the trigger type of the target virtual scene based on the state information of the autonomous driving vehicle, wherein the trigger type includes at least a straight-ahead trigger, a left-turn trigger, a right-turn trigger, and an intersection-passing trigger.

[0062] In the present invention, the virtual scene is the basic unit for interaction and verification in the virtual world. A virtual world can accommodate hundreds of virtual scenes. A virtual scene contains one or more meta-scenes. The meta-scene is the smallest unit of the virtual world. For example, the meta-scene can be the movement trajectory of an obstacle or the triggering rule of a traffic light. A virtual scene can be a restoration of the vehicle interaction scenario in the real world. For example, a virtual scene is a vehicle passing through the entrance of a community, so the virtual scene can include multiple meta-scenes such as the trajectory of pedestrians at the entrance of the community and obstacles at the entrance of the community.

[0063] Each scenario has a corresponding trigger type. A scenario can be triggered when a vehicle reaches a fixed location, such as a scenario where a vehicle picks up a pedestrian. This scenario includes a pedestrian. When the vehicle reaches the pedestrian's location, it is triggered and the pedestrian is loaded into the virtual map. A scenario can also be triggered when a vehicle turns left or right. For example, in a scenario, a vehicle encounters a vehicle coming from the opposite direction when turning left. When the vehicle turns left, the scenario is triggered and the vehicle coming from the opposite direction is loaded into the virtual map. A scenario can also be triggered when a vehicle passes an intersection, such as a traffic light scenario. When a vehicle reaches an intersection, the traffic light scenario is triggered and a traffic light is loaded at the intersection. Then the vehicle decides whether to continue driving or stop based on the traffic light information. The trigger type of the scenario can also be other types.

[0064] Going straight can mean going straight without going through an intersection or going straight through an intersection. Figure 2 As shown in the figure, the vehicle first goes straight and then turns left while driving along the reference line. Here, the vehicle goes straight without passing through the intersection. Figure 2 Going straight at the intersection shown, this type of vehicle's straight movement means going straight through the intersection.

[0065] Turning left can be done without going through an intersection or at an intersection. Figure 2 As shown in the figure, the vehicle turns left while driving along the reference line. The left turn of the vehicle here is restricted by the shape of the road. The vehicle does not pass the intersection. The left turn of the vehicle here is a left turn without passing the intersection. Figure 2 If a vehicle turns left at the intersection shown in FIG. 1 , then the left turn of such a vehicle is a left turn at the intersection. Similarly, a right turn can be a right turn without passing through the intersection, or a right turn through the intersection.

[0066] The target virtual scene is the next virtual scene that needs to be played after the current virtual scene is played. The trigger type of the target virtual scene can be determined according to the reference line information of the vehicle. For example, if the reference line information of the vehicle is straight, then the trigger type of the target virtual scene is straight trigger. For another example, if the reference line information of the vehicle is left turn, then the trigger type of the target virtual scene is left turn trigger. Figure 3 As shown, the reference line information of the vehicle is left turn, so the trigger type of the target virtual scene is left turn trigger.

[0067] In one implementation, step 1200 includes steps 1210 - 1220 .

[0068] Step 1210: Determine the driving information of the autonomous driving vehicle based on the reference line information, wherein the driving information of the autonomous driving vehicle at least includes going straight, turning left, turning right, and passing through an intersection.

[0069] The reference line information can indicate the route information that the autonomous driving vehicle will travel. Based on the reference line information, it can be determined whether the vehicle will go straight or turn. Figure 2 As shown, through Figure 2 The reference line information shown indicates that the vehicle is about to turn left.

[0070] Step 1220: Determine the trigger type of the target virtual scene according to the driving information of the vehicle.

[0071] The corresponding trigger type is determined according to the driving information of the vehicle, and the trigger type is determined as the trigger type of the target virtual scene. For example, if the driving information of the vehicle is straight driving, the corresponding trigger type is straight driving trigger. For another example, if the driving information of the vehicle is left turning driving, the corresponding trigger type is left turning trigger.

[0072] Step 1300: Determine the reference position of the target virtual scene according to a preset reference position generation mode.

[0073] The reference position of a scene refers to the position of the virtual scene when it is loaded into the virtual map. For example, if the reference position of a virtual scene is in the upper left area of ​​the virtual map, then when the virtual scene is loaded into the virtual map, the virtual scene is also in the upper left area of ​​the virtual map. For another example, if the reference position of a virtual scene is in the lower right area of ​​the virtual map, then when the virtual scene is loaded into the virtual map, the virtual scene is also in the lower right area of ​​the virtual map.

[0074] There are multiple reference position generation modes pre-set. For example, the reference position generation mode can be a random mode. When the reference position generation mode is a random mode, the reference position of the target virtual scene is randomly generated. For a virtual scene that is completely independent of the state information of the autonomous driving vehicle, it can be triggered at any position. For this type of scene, the reference position can be randomly generated.

[0075] When the reference position generation mode is the fixed mode, the preset target position is determined as the reference position of the target virtual scene.

[0076] In one embodiment, when the reference position generation mode is the trigger mode, the driving information of the autonomous driving vehicle is determined according to the reference line information. The reference position of the target virtual scene is determined according to the driving information of the autonomous driving vehicle and the position information of the autonomous driving vehicle.

[0077] If the reference position generation mode is the trigger mode, the scene will be automatically triggered as the autonomous vehicle drives. The relative distance between the reference position and the current position of the vehicle can be preset. If the autonomous vehicle's driving information is straight driving, the reference position of the target virtual scene is set in front of the autonomous vehicle, and the distance between the reference position of the target virtual scene and the autonomous vehicle is the preset relative distance. If the autonomous vehicle's driving information is left turn driving, the reference position of the target virtual scene is set at the left turn position.

[0078] Step 1400: Determine the target virtual scene according to the trigger type of the target virtual scene and a set of virtual scenes corresponding to each trigger type that is preset.

[0079] The virtual scenes are classified in advance according to the trigger type of the virtual scenes. The virtual scenes with the same trigger type are stored in the same set. After the trigger type of the target virtual scene is obtained, a virtual scene is selected from the set of virtual scenes corresponding to the trigger type of the target virtual scene as the target virtual scene.

[0080] Step 1500: When the current virtual scene is played and the status information of the vehicle meets the scene switching condition, the target virtual scene is played according to the reference position of the target virtual scene.

[0081] Playing a virtual scene means loading the virtual scene into a virtual map and allowing each meta-scene in the virtual scene to move in a pre-set manner. For example, a virtual scene includes moving pedestrians and fixed obstacles, and the pedestrian's moving route is pre-set. When playing the virtual scene, first load the pedestrians and obstacles at the initial position, then let the pedestrian move in the pre-set moving route, and the virtual scene is played when the pedestrian has finished moving in the pre-set moving route.

[0082] If the current virtual scene is played, it means that the test of the autonomous driving vehicle in the current virtual scene has been completed, and then the next virtual scene can be played to carry out the next test task. The scene switching condition can be that the vehicle reaches the reference position of the target virtual scene. The vehicle status information can also include the speed of the vehicle, and the scene switching condition can also be that the speed of the vehicle reaches a preset speed.

[0083] like Figure 3 and Figure 4 As shown, when the vehicle reaches the reference position, the target virtual scene is triggered and a new vehicle is loaded into the virtual map.

[0084] Step 1600: Test the autonomous driving vehicle according to the target virtual scene.

[0085] During the playback of the target virtual scene, the interaction between each meta-scene in the target virtual scene and the autonomous vehicle is tested. For example, if the target virtual scene contains multiple moving pedestrians and fixed obstacles, the obstacle avoidance function of the autonomous vehicle can be tested. For example, in an ideal situation, a virtual world contains 1,000 virtual scenes. During the operation of the autonomous vehicle, each virtual scene is dynamically triggered until the test task is completed, and the operation status and test results of each virtual scene are given.

[0086] The present invention classifies virtual scenes according to the trigger type of virtual scenes in advance, detects the state information of the autonomous driving vehicle, determines the target virtual scene and the reference position of the target virtual scene according to the state information of the autonomous driving vehicle, and plays the target virtual scene when the state information of the autonomous driving vehicle meets the scene switching conditions. It can automatically trigger various virtual scenes during the autonomous driving vehicle test process, and does not require the user to manually switch scenes, thereby improving the test efficiency. In addition, the test of the autonomous driving vehicle is no longer limited to the map. When the map is changed, the virtual scene can still be used in the new map, realizing the seamless migration of the virtual scene. At the same time, the present invention allows the autonomous driving vehicle to drive in a real closed open space, and tests the autonomous driving vehicle according to the virtual scene, constructs a set of digital twin road test system by combining virtual and real, and achieves rich road test effects by testing the real vehicle in the closed test field. Compared with the real road test method, testing in a closed field has higher safety, and the driving conditions of the autonomous driving vehicle in any scene can be tested by combining virtual and real, which greatly reduces the test cost of the autonomous driving vehicle.

[0087] In this embodiment, before step 1100, the method further includes steps 2100-2200.

[0088] Step 2100: Obtain multiple virtual scenes sent by the cloud server.

[0089] A virtual world can include multiple virtual scenes. The cloud server can send all virtual scenes in a virtual world to the vehicle at once. Each time a scene is sent from the cloud server to the vehicle, the virtual world is switched.

[0090] Step 2200: Classify the multiple virtual scenes according to the trigger types of the multiple virtual scenes to obtain a set of virtual scenes corresponding to each trigger type.

[0091] After acquiring multiple virtual scenes, the vehicle classifies the virtual scenes according to the trigger types of the virtual scenes.

[0092] In this embodiment, the virtual scene is sent by the cloud server. The user only needs to continuously enrich the scene library, so that a variety of virtual worlds can be automatically constructed using the scene library, thereby reducing the maintenance cost of the virtual world.

[0093] In this embodiment, the virtual scenes corresponding to each trigger type are stored in the collection queue of virtual scenes. Step 1400 includes steps 1410-1430.

[0094] Step 1410: Determine a target queue corresponding to the trigger type of the target virtual scene according to the trigger type of the target virtual scene and a preset set of virtual scenes corresponding to each trigger type.

[0095] The set of virtual scenes corresponding to each trigger type is a queue. Each trigger type of a virtual scene corresponds to a queue, and all virtual scenes of the trigger type are added to the corresponding queue. Each virtual scene can be added to the queue in a specified order. Alternatively, each virtual scene can be added to the queue in a random order.

[0096] After obtaining the trigger type of the target virtual scene, find the corresponding target queue. For example, the straight trigger corresponds to the first queue, the left turn trigger corresponds to the second queue, and the right turn trigger corresponds to the third queue. If the trigger type of the target virtual scene is the left turn trigger, then the target queue is the second queue.

[0097] Step 1420: Determine the first virtual scene in the target queue as the target virtual scene.

[0098] The virtual scene at the head of the target queue is the first virtual scene in the target queue. Figure 5 As shown, scene 1 is the first virtual scene in the target queue, so scene 1 is determined as the target virtual scene.

[0099] Step 1430: Move the first virtual scene in the target queue to the end of the target queue.

[0100] After the first virtual scene in the target queue is determined as the target virtual scene, the virtual scene is moved to the end of the target queue. Figure 5 As shown, the target queue includes n scenes. After scene 1 is determined as the target virtual scene, scenes 2 to n are moved forward one position in the target queue, and scene 1 is set at the end of the target queue. When a virtual scene needs to be taken out from the queue next time, scene 2 is taken out.

[0101] This embodiment stores virtual scenes of the same trigger type in a queue, and when a virtual scene is needed, the first virtual scene in the queue is taken out, so that the virtual scene can be obtained conveniently. After the first virtual scene is taken out from the queue, the virtual scene is moved to the end of the queue, and the virtual scene is taken out from the head of the queue the next time, so that duplicate virtual scenes are avoided, and all virtual scenes in the queue can be tested in sequence, so that duplicate tests are avoided and test efficiency is improved.

[0102] In this embodiment, step 1400 includes steps 1440-1450.

[0103] Step 1440: Obtain the preset priority corresponding to each trigger type.

[0104] Step 1450: According to the priority corresponding to each trigger type, select a virtual scene from a set of virtual scenes corresponding to a trigger type with a high priority as the target virtual scene.

[0105] The priority of each trigger type is preset. For example, the intersection trigger includes left turn intersection trigger, straight through intersection trigger, and right turn intersection trigger, and the priorities of the above three intersection trigger types decrease in sequence. When the trigger type is intersection trigger, a virtual scene is selected as the target virtual scene from the virtual scene set corresponding to the left turn intersection trigger.

[0106] For another example, the priority of fixed position trigger is higher than that of intersection trigger. Fixed position trigger means triggering a scene at a fixed position. Intersection trigger means that it can be triggered when the vehicle passes any intersection. For example, there are intersection 1, intersection 2 and intersection 3. Scene 1 is fixedly triggered at intersection 1, and scene 2 is fixedly triggered at intersection 2. The trigger type of scene 3 is intersection trigger, so scene 3 can be triggered when the vehicle passes intersection 1 and intersection 2. In this case, since the priority of fixed position trigger is higher than intersection trigger, scene 1 is triggered when the vehicle passes intersection 1, scene 2 is triggered when the vehicle passes intersection 2, and scene 3 is triggered when the vehicle passes intersection 3, ensuring that all scenes are tested and improving test efficiency. If scene 3 is triggered when the vehicle passes intersection 1, scene 1 will not be triggered when the vehicle passes intersection 3, resulting in no test of scene 1, and the test task cannot be completed, affecting test efficiency.

[0107] like Figure 6 As shown, this embodiment introduces an autonomous driving vehicle in-loop testing system 600, the system comprising:

[0108] A detection module 601 is used to detect state information of the autonomous driving vehicle, wherein the state information includes at least position information and reference line information;

[0109] A first determination module 602 is used to determine a trigger type of a target virtual scene according to the state information of the autonomous driving vehicle, wherein the trigger type includes at least a straight-ahead trigger, a left-turn trigger, a right-turn trigger, and a crossing-intersection trigger;

[0110] A second determination module 603 is used to determine the reference position of the target virtual scene according to a preset reference position generation mode;

[0111] A third determination module 604 is used to determine the target virtual scene according to the trigger type of the target virtual scene and a set of virtual scenes corresponding to each trigger type that is preset;

[0112] The playing module 605 is used to play the target virtual scene according to the reference position of the target virtual scene when the current virtual scene is played and the state information of the vehicle meets the scene switching condition;

[0113] The testing module 606 is used to test the autonomous driving vehicle according to the target virtual scene.

[0114] The present invention classifies virtual scenes according to the trigger type of virtual scenes in advance, detects the state information of the autonomous driving vehicle, determines the target virtual scene and the reference position of the target virtual scene according to the state information of the autonomous driving vehicle, and plays the target virtual scene when the state information of the autonomous driving vehicle meets the scene switching conditions. It can automatically trigger various virtual scenes during the autonomous driving vehicle test process, and does not require the user to manually switch scenes, thereby improving the test efficiency. In addition, the test of the autonomous driving vehicle is no longer limited to the map. When the map is changed, the virtual scene can still be used in the new map, realizing the seamless migration of the virtual scene. At the same time, the present invention allows the autonomous driving vehicle to drive in a real closed open space, and tests the autonomous driving vehicle according to the virtual scene, constructs a set of digital twin road test system by combining virtual and real, and achieves rich road test effects by testing the real vehicle in the closed test field. Compared with the real road test method, testing in a closed field has higher safety, and the driving conditions of the autonomous driving vehicle in any scene can be tested by combining virtual and real, which greatly reduces the test cost of the autonomous driving vehicle.

[0115] Optionally, the system further comprises:

[0116] An acquisition module is used to acquire multiple virtual scenes sent by a cloud server;

[0117] The classification module is used to classify the multiple virtual scenes according to the trigger types of the multiple virtual scenes to obtain a set of virtual scenes corresponding to each trigger type.

[0118] Optionally, the set of virtual scenes corresponding to each trigger type is a queue, and each queue stores virtual scenes with the same trigger type;

[0119] The third determination module is specifically used for:

[0120] Determine a target queue corresponding to the trigger type of the target virtual scene according to the trigger type of the target virtual scene and a set of virtual scenes corresponding to each trigger type that is preset;

[0121] Determine the first scene in the target queue as the target virtual scene;

[0122] Move the first scene in the target queue to the end of the target queue.

[0123] Optionally, the first determining module is specifically configured to:

[0124] Determining driving information of the autonomous driving vehicle according to the reference line information, wherein the driving information of the autonomous driving vehicle at least includes going straight, turning left, turning right, and passing an intersection;

[0125] The trigger type of the target virtual scene is determined according to the driving information of the vehicle.

[0126] Optionally, the second determining module is specifically configured to:

[0127] When the reference position generation mode is a random mode, the reference position of the target virtual scene is randomly generated.

[0128] Optionally, the second determining module is specifically configured to:

[0129] When the reference position generation mode is a fixed mode, a preset target position is determined as a reference position of the target virtual scene.

[0130] Optionally, the second determining module is specifically configured to:

[0131] When the reference position generation mode is the trigger mode, the driving information of the autonomous driving vehicle is determined according to the reference line information, wherein the driving information of the autonomous driving vehicle at least includes going straight, turning left, turning right, and passing an intersection;

[0132] The reference position of the target virtual scene is determined according to the driving information of the autonomous driving vehicle and the position information of the autonomous driving vehicle.

[0133] The third determination module is specifically used for:

[0134] Obtaining the preset priority corresponding to each trigger type;

[0135] According to the priority corresponding to each trigger type, a virtual scene is selected from a set of virtual scenes corresponding to trigger types with high priority as the target virtual scene.

[0136] like Figure 7As shown, this embodiment introduces an autonomous driving vehicle 700, including a processor 701 and a memory 702, wherein the memory 701 stores programs or instructions that can be run on the processor 702, and when the programs or instructions are executed by the processor 702, the steps of the autonomous driving vehicle in-the-loop testing method as described in any embodiment of the present invention are implemented.

[0137] This embodiment introduces a storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the in-the-loop testing method for an autonomous driving vehicle as described in any embodiment of the present invention are implemented.

[0138] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.

[0139] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0140] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0141] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.

[0142] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.

[0143] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0144] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0145] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.

[0146] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.

Claims

1. A method for in-the-loop testing of an autonomous driving vehicle, characterized in that: The method comprises: Detecting state information of the autonomous driving vehicle, wherein the state information includes at least position information and reference line information; Determining a trigger type of a target virtual scene according to the state information of the autonomous driving vehicle, wherein the trigger type includes at least a straight-ahead trigger, a left-turn trigger, a right-turn trigger, and an intersection-passing trigger; Determining a reference position of the target virtual scene according to a preset reference position generation mode; Determining the target virtual scene according to the trigger type of the target virtual scene and a set of pre-set virtual scenes corresponding to each trigger type; When the current virtual scene is finished playing and the state information of the vehicle meets the scene switching condition, playing the target virtual scene according to the reference position of the target virtual scene; The autonomous driving vehicle is tested according to the target virtual scene.

2. The method according to claim 1, characterized in that The virtual scenes corresponding to each trigger type are stored in the collection queue of virtual scenes having the same trigger type; The determining the target virtual scene according to the trigger type of the target virtual scene and a preset set of virtual scenes corresponding to each trigger type includes: Determining a target queue corresponding to the trigger type of the target virtual scene according to the trigger type of the target virtual scene and a preset set of virtual scenes corresponding to each trigger type; Determine the first scene in the target queue as the target virtual scene; Move the first scene in the target queue to the end of the target queue.

3. The method according to claim 1, characterized in that The determining the trigger type of the target virtual scene according to the state information of the autonomous driving vehicle includes: Determining driving information of the autonomous driving vehicle according to the reference line information, wherein the driving information of the autonomous driving vehicle at least includes going straight, turning left, turning right, and passing through an intersection; The trigger type of the target virtual scene is determined according to the driving information of the vehicle.

4. The method according to claim 1, wherein The determining the reference position of the target virtual scene according to a preset reference position generation mode includes: When the reference position generation mode is a random mode, the reference position of the target virtual scene is randomly generated.

5. The method according to claim 1, wherein The determining the reference position of the target virtual scene according to a preset reference position generation mode includes: In a case where the reference position generation mode is a fixed mode, a preset target position is determined as a reference position of the target virtual scene.

6. The method according to claim 1, wherein The determining the reference position of the target virtual scene according to a preset reference position generation mode includes: When the reference position generation mode is a trigger mode, determining the driving information of the autonomous driving vehicle according to the reference line information; The reference position of the target virtual scene is determined based on the driving information of the autonomous driving vehicle and the position information of the autonomous driving vehicle.

7. The method according to claim 1, characterized in that The determining the target virtual scene according to the trigger type of the target virtual scene and a preset set of virtual scenes corresponding to each trigger type includes: Obtaining the preset priority corresponding to each trigger type; According to the priority corresponding to each trigger type, a virtual scene is selected from a set of virtual scenes corresponding to trigger types with high priority as the target virtual scene.

8. The method according to claim 1, characterized in that Before detecting the state information of the autonomous driving vehicle, the method further includes: Obtain multiple virtual scenes sent by the cloud server; The multiple virtual scenes are classified according to their trigger types to obtain a set of virtual scenes corresponding to each trigger type.

9. An autonomous driving vehicle in-the-loop testing system, characterized in that: include: a detection module, configured to detect state information of the autonomous driving vehicle, wherein the state information includes at least position information and reference line information; A first determination module is configured to determine a trigger type of a target virtual scene based on the state information of the autonomous driving vehicle, wherein the trigger type includes at least a straight-ahead trigger, a left-turn trigger, a right-turn trigger, and an intersection-passing trigger; A second determining module is used to determine the reference position of the target virtual scene according to a preset reference position generation mode; A third determining module is configured to determine the target virtual scene according to the trigger type of the target virtual scene and a preset set of virtual scenes corresponding to each trigger type; A playing module, configured to play the target virtual scene according to a reference position of the target virtual scene when the current virtual scene is played and the state information of the vehicle meets the scene switching condition; A testing module is used to test the autonomous driving measurement according to the target virtual scene.

10. An autonomous driving vehicle, characterized in that: It includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the autonomous driving vehicle in-the-loop testing method as described in any one of claims 1 to 8 are implemented.