Test method, device, equipment and storage medium for autonomous driving

By using real environment data to set up test scenarios for virtual vehicles and generate planned trajectories in the autonomous driving system, the problem of total cost optimization in trajectory generation is solved, visualization and cost adjustment of trajectory planning are achieved, and the trajectory planning efficiency of the autonomous driving system is improved. and reliability.

CN112965917BActive Publication Date: 2024-08-27BEIJING VOYAGER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110404324.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-15
Publication Date
2024-08-27
Estimated Expiration
2041-04-15

AI Technical Summary

Technical Problem

Existing autonomous driving systems have difficulty in effectively optimizing the total cost of the trajectory during trajectory generation, and lack intuitive testing methods to adjust the relationship between trajectory and cost.

Method used

By collecting driving data of autonomous vehicles in real environments, setting test scenarios for virtual vehicles, generating planned trajectories and visualizing their driving costs based on multiple factors related to the trajectory, it supports adjusting cost configuration to optimize trajectory planning.

Benefits of technology

It realizes the use of real environment data to test the trajectory planning function, visually presents the planned trajectory and cost information, optimizes the trajectory planning of the autonomous driving system, and improves the reliability of cost configuration and the optimization effect of the trajectory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112965917B
    Figure CN112965917B
Patent Text Reader

Abstract

According to an example embodiment of the present disclosure, a test method, apparatus, device and computer-readable storage medium for autonomous driving are provided. The test method for autonomous driving includes setting at least one test scenario for a virtual vehicle based on driving data of an autonomous driving vehicle in a real environment. Each test scenario includes a driving state of a virtual vehicle and a test environment in which the virtual vehicle is located. The method also includes obtaining configuration information for trajectory planning, the configuration information specifying multiple factors related to the driving cost of the trajectory. The method also includes generating a planned trajectory for a virtual vehicle in at least one test scenario based on the configuration information. The method also includes presenting a first visual representation of the planned trajectory and a second visual representation of the driving cost of the planned trajectory. In this way, it is possible to support the adjustment of a cost configuration related to the cost of the trajectory in the test, thereby optimizing the trajectory planning function of the autonomous driving system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure generally relate to the field of autonomous driving, and more specifically, to a test method, apparatus, device, computer-readable storage medium, and program product for autonomous driving. Background Art

[0002] Autonomous driving is a technology that uses computers to replace human drivers or assist human drivers to perceive the vehicle's surroundings, plan the vehicle's trajectory, and control the vehicle to reach a specified target. In a broad sense, an autonomous driving system usually consists of two parts, namely, a software system and a hardware system. The hardware system includes various sensors for perceiving the environment and actuators for causing the vehicle to perform driving actions. The software system includes various modules for information fusion, path planning, behavioral decision-making, and motion control. An important function of the software system is to generate trajectories for autonomous driving vehicles. Therefore, during the development of the software system, testing is required to enable the software system to generate efficient and safe trajectories. Summary of the invention

[0003] According to an example embodiment of the present disclosure, a testing scheme for autonomous driving is provided.

[0004] In a first aspect of the present disclosure, a testing method for autonomous driving is provided. The method includes setting at least one test scenario for a virtual vehicle based on driving data of an autonomous driving vehicle in a real environment. Each test scenario in at least one test scenario includes a driving state of the virtual vehicle and a test environment in which the virtual vehicle is located. The method also includes obtaining configuration information for trajectory planning, the configuration information specifying a plurality of factors related to the driving cost of the trajectory. The method further includes generating a planned trajectory for the virtual vehicle in at least one test scenario based on the configuration information. The method further includes presenting a first visual representation of the planned trajectory and a second visual representation of the driving cost of the planned trajectory.

[0005] In a second aspect of the present disclosure, a test device for autonomous driving is provided. The device includes a scene setting module, which is configured to set at least one test scene for a virtual vehicle based on the driving data of the autonomous driving vehicle in a real environment, and each test scene in the at least one test scene includes the driving state of the virtual vehicle and the test environment in which the virtual vehicle is located. The device also includes a configuration acquisition module, which is configured to obtain configuration information for trajectory planning, and the configuration information specifies multiple factors related to the driving cost of the trajectory. The device further includes a trajectory generation module, which is configured to generate a planned trajectory for the virtual vehicle in at least one test scene based on the configuration information. The device further includes an information presentation module, which is configured to present a first visual representation of the planned trajectory and a second visual representation of the driving cost of the planned trajectory.

[0006] In a third aspect of the present disclosure, an electronic device is provided, comprising one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to the first aspect of the present disclosure.

[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.

[0008] In a fifth aspect of the present disclosure, a computer program product is provided, comprising computer executable instructions, wherein the computer executable instructions implement the method according to the first aspect of the present disclosure when executed by a processor.

[0009] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0011] Figure 1 A schematic diagram illustrating an example environment in which various embodiments of the present disclosure can be implemented;

[0012] Figure 2 shows an example of a user interface according to some embodiments of the present disclosure;

[0013] Figure 3 A flowchart of a testing method for autonomous driving according to some embodiments of the present disclosure is shown;

[0014] Figure 4 shows an example of a second area of ​​a user interface according to some embodiments of the present disclosure;

[0015] Figure 5 A flowchart showing a method for setting a test scenario according to some embodiments of the present disclosure is shown;

[0016] Figure 6 Another example of a second area of ​​a user interface according to some embodiments of the present disclosure is shown;

[0017] Figure 7 shows yet another example of a user interface according to some embodiments of the present disclosure;

[0018] Figure 8 A schematic block diagram showing a test device for autonomous driving according to some embodiments of the present disclosure; and

[0019] Fig. 9 A block diagram of a computing device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0020] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0021] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0022] As briefly described above, an important function of the software system in the autonomous driving system is to generate trajectories for autonomous vehicles. In trajectory generation, the total cost of the trajectory needs to be considered. The total cost of the trajectory is related to the different behaviors of the autonomous vehicle, and the cost items corresponding to these behaviors constitute the total cost. For example, the cost item corresponding to the trajectory colliding with a pedestrian is A, the cost item corresponding to the trajectory pressing against the lane boundary is B, the cost item corresponding to exceeding the speed limit in the speed limit zone is C, and so on. The total cost of the trajectory is the sum of these cost items. In trajectory generation, the total cost of the planned trajectory can be continuously reduced through iteration. In other words, a trajectory with fewer mistakes, that is, a trajectory with a lower total cost, can be determined as a reasonable trajectory.

[0023] How to set the cost items corresponding to different behaviors is a key issue for trajectory planning. In conventional solutions, cost items are usually set based on experience. This solution is greatly limited by subjective experience, which is not conducive to generating optimized trajectories. In addition, in conventional solutions, it is usually tested directly on the autonomous driving vehicle undergoing road testing, and the relationship between trajectory and cost cannot be intuitively provided to the tester.

[0024] According to an embodiment of the present disclosure, a test scheme for autonomous driving is proposed, which aims to solve one or more of the above-mentioned problems and other potential problems. In this scheme, based on the driving data of the autonomous driving vehicle in a real environment, at least one test scenario is set for a virtual vehicle. Each of the at least one test scenario set includes the driving state of the virtual vehicle and the test environment in which the virtual vehicle is located. Configuration information for trajectory planning is obtained. The configuration information specifies multiple factors related to the driving cost of the trajectory, such as multiple cost items. Based on the configuration information, a planned trajectory is generated for the virtual vehicle in at least one test scenario. A visual representation of the planned trajectory and a visual representation of the driving cost of the planned trajectory are presented.

[0025] According to the test scheme for autonomous driving proposed herein, the trajectory planning function can be tested using driving data in a real environment, and the planned trajectory and related cost information can be visually presented. As a result, it is possible to support the adjustment of the cost configuration related to the cost of the trajectory during the test, so that the calculated cost is more reliable. In this way, the trajectory planning function of the autonomous driving system can be optimized. The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0026] Figure 1 A schematic diagram of an example environment 100 in which multiple embodiments of the present disclosure can be implemented is shown. In general, the example environment 100 includes a real environment 101 and a test environment (not shown) constructed by a computing device 102. The real environment 101 includes pedestrians 112 waiting to cross the road, trees 113 on the side of the road, and a vehicle 111 (also referred to as an "autonomous driving vehicle") deployed with an onboard system 110. The vehicle 111 travels in the real environment 101. Pedestrians 112, trees 113, roads, etc. constitute the external environment in which the vehicle 111 travels. The vehicle 111 can be tested for driving in the real environment 101, or it can actually travel in the real environment 101. It should be understood that Figure 1 The real environment 101 shown in FIG. 1 is merely illustrative and is not intended to limit the scope of the present disclosure.

[0027] The vehicle-mounted system 110 deployed on the vehicle 111 (e.g., the vehicle-mounted terminal or other vehicle-mounted device of the vehicle 111) may include at least a portion of the software system for autonomous driving. For example, the vehicle-mounted system 110 may include various modules (not shown) for information fusion, path planning, behavior decision-making, and motion control. When the vehicle 111 is traveling in the real environment 101, the vehicle-mounted system 110 may generate and record environmental information related to the real environment 101. For example, sensing devices (e.g., laser radar, camera, etc.) installed on the vehicle 111 may sense and collect environmental data, and the vehicle-mounted system 110 may generate environmental information based on the environmental data. Such environmental information may include various information related to the external environment of the vehicle 111 when it is traveling, such as information indicating pedestrians 112, information indicating roads, etc.

[0028] In addition to the environmental information, the vehicle system 110 may also generate and record driving information related to the driving actions of the vehicle 111. The driving information described herein may refer to various information required to reproduce the driving state of the vehicle 111 in the real environment 101. The driving information may include one or more driving actions made by the vehicle 111 over time during driving, the start time and / or end time of one or more driving actions, the track followed by one or more driving actions, the triggering factors of one or more driving actions, etc.

[0029] The vehicle-mounted system 110 may generate and record the driving information 131 in various suitable ways. In some embodiments, for each driving action of the vehicle 111, driving information related to the driving action may be recorded, such as the start time of the driving action, the track followed by the driving action, etc. In such an embodiment, the driving information is recorded according to the driving action.

[0030] The computing device 102 may obtain or store driving information and environment information generated and recorded by the vehicle system 110 as at least a part of driving data 130 of the autonomous driving vehicle in the real environment. The computing device 102 may also obtain or store configuration information 140 for trajectory planning.

[0031] The configuration information 140 specifies at least a plurality of factors related to the travel cost of the trajectory. These factors are, for example, considered as a plurality of cost items constituting the total cost of the trajectory, and therefore may also be referred to herein as "cost items". The configuration information 140 may indicate the weight of each of the plurality of factors and the contribution mode to the total cost. The contribution mode may refer to the mathematical form of the corresponding factor in the calculation of the total cost, such as cubic, quadratic, linear, etc.

[0032] These factors related to driving cost can be divided into four types. The first type of factors are related to the ability of the autonomous vehicle to perform driving actions. In other words, the first type of factors can be kinematic limitations of the autonomous vehicle. As an example, the first type of factors can include but are not limited to maximum speed, maximum forward acceleration, maximum lateral acceleration, range of attitude angles, etc.

[0033] The second type of factors is related to the consumption of the autonomous vehicle performing the driving action. For example, the second type of factors may be the energy that the autonomous vehicle will expend to drive along the trajectory. As an example, the second type of factors may include, but are not limited to, consumption caused by planned forward acceleration, lateral acceleration, angle change, etc.

[0034] The third type of factors is related to driving actions that the autonomous vehicle is prohibited from performing. In other words, the third type of factors may be strong constraints on the behavior of the autonomous vehicle. As an example, the third type of factors may include, but are not limited to, violations of traffic regulations, required road speed limits, boundary restrictions of roads, etc.

[0035] The fourth type of factors is related to the driving actions that the autonomous vehicle is restricted from performing. In other words, the fourth type of factors may be weak constraints on the behavior of the autonomous vehicle. As an example, the fourth type of factors may include, but are not limited to, preferred speed ranges, lane boundaries, comfort requirements, etc.

[0036] In some embodiments, the configuration information 140 may be obtained from the vehicle system 110. In such embodiments, the factors (including weights and contribution methods) specified by the configuration information 140 are used by the vehicle system 110 when generating a trajectory for the vehicle 111. In some embodiments, the configuration information 140 may be generated by any suitable algorithm, or may be specified by a user.

[0037] A trajectory optimizer 120 is deployed at the computing device 102. The trajectory optimizer 120 may provide or draw a user interface 150 via a display unit of the computing device 102. A user, such as a developer of an autonomous driving system, may interact with the trajectory optimizer 120 through the user interface 150, for example, to adjust various cost items.

[0038] Figure 2 An example of a user interface 150 provided by the trajectory optimizer 120 is shown. In general, the user interface 150 may include a first area 210, a second area 220, a third area 230, and a trigger button "Start".

[0039] The first area 210 is used to present a visual representation of the planned trajectory generated by the trajectory optimizer 120 based on the driving data 130 and the configuration information 140. The first area 210 can also present a visual representation of other information related to the planned trajectory (e.g., constraints). The second area 220 is used to present options related to the test scenario and configuration information to the user. To this end, the second area 220 includes a test scenario panel 221 and a configuration information panel 222. The third area 230 is used to present a visual representation of the driving cost of the planned trajectory. For example, the third area 230 can display the contribution of each cost item to the driving cost separately. The trigger button "Start" is used to trigger trajectory generation in response to a user's click. The contents presented by the first area 210, the second area 220, and the third area 230 will be described in detail below.

[0040] Continue to refer Figure 1 . Figure 1 The environment 100 shown in is exemplary only. The trajectory optimizer 120 may be implemented or distributed across multiple computing devices. Alternatively, the trajectory optimizer 120 may receive travel data 130 and configuration information 140 from other devices. The computing device 102 may be any device with computing capabilities. As a non-limiting example, the computing device 102 may be any type of fixed computing device, mobile computing device, or portable computing device, including but not limited to a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a multimedia computer, a mobile phone, etc.; all or part of the components of the computing device 102 may be distributed in the cloud.

[0041] In order to more clearly understand the test solution for autonomous driving provided by the embodiments of the present disclosure, reference will be made to Figure 3 To further describe the embodiments of the present disclosure. Figure 3 FIG. 3 is a flowchart showing an example test method 300 for autonomous driving according to an embodiment of the present disclosure. The method 300 may be performed by Figure 1 For the convenience of discussion, the trajectory optimizer 120 will be combined with Figure 1 Method 300 is described.

[0042] In block 310, the trajectory optimizer 120 sets at least one test scenario for the virtual vehicle based on the driving data 130 of the autonomous driving vehicle in the real environment 101. Each test scenario includes the driving state of the virtual vehicle and the test environment in which the virtual vehicle is located. The driving data 130 may include data of multiple real scenarios. The data of each real scenario may include driving information and environment information in the real scenario, such as reference Figure 1 The data of each real scene can be stored in a file. Such a file is also called a scene file.

[0043] In some embodiments, the at least one test scene set may be a reproduction of a real scene. For example, the trajectory optimizer 120 may read the data of the real scene in the scene file, and use the read data to set the test scene.

[0044] refer to Figure 4 . Figure 4 An example of the second area 220 of the user interface 150 according to some embodiments of the present disclosure is shown. When the test scenario panel 221 is presented, the second area 220 includes a sub-area 410 related to the real scenario, which in turn includes a button "Load real scenario" for the user to select to load the real scenario. In response to the user clicking the button "Load real scenario", the trajectory optimizer 120 can present a directory including one or more scenario files for the user to select. Thus, batch import of scenario files can be supported.

[0045] If it is recognized that the user selects a certain scenario file, the trajectory optimizer 120 can parse the scenario file to obtain data of the real scenario and set the test scenario based on the data. Accordingly, the name of the selected scenario file can be presented in the "Name" column of the table 415. At this time, the "Status" column can display "Not Started" or the like.

[0046] If it is recognized that the user has selected a directory including multiple scenario files, the trajectory optimizer 120 can parse each scenario file under the directory to obtain data of the corresponding real scenario, and set multiple test scenarios based on the parsed data. Accordingly, the names of the various scenario files in the selected directory can be presented in the table 415. At this time, the "Status" column can display "Not Started" or the like.

[0047] In this embodiment, by reproducing the real scene in the real environment, the driving in the real scene can be restored. In this way, debugging can be performed for specific problems in the real scene.

[0048] Alternatively or additionally, in some embodiments, at least one of the test scenarios set may be a simulation scenario. The simulation scenario may be determined by changing the real scenario. In such an embodiment, the test scenario panel 221 may include a sub-area 420 related to the simulation scenario.

[0049] Reference below Figure 5 This embodiment is described below. Figure 5 A flow chart of a method 500 for setting a test scenario according to some embodiments of the present disclosure is shown. The method 500 can be regarded as a specific implementation of block 310.

[0050] At block 510, the trajectory optimizer 120 determines constraints related to the driving environment of the autonomous vehicle from the driving data 130. For example, the trajectory optimizer 120 may determine the constraints from a scenario file selected by a user. The constraints described herein may refer to any conditions or parameters that limit or affect the driving of the autonomous vehicle.

[0051] Constraints can be used to constrain the geometry of the road on which the autonomous vehicle is traveling. For example, such constraints can specify the width of the road, whether there are turns, the angle of the turn (e.g., right-angle turns, S-shaped), etc. Alternatively or additionally, constraints can be used to constrain the speed of vehicles on the road. For example, such constraints can specify the speed limit specified by the road, such as the maximum speed. Alternatively or additionally, constraints can be used to constrain the distance of the autonomous vehicle relative to other vehicles on the road. Such constraints can specify the distance of the autonomous vehicle relative to the vehicle in front, the speed relative to the vehicle in front, etc. For example, such constraints can be adaptive cruise (ACC) parameters.

[0052] At block 520 , the trajectory optimizer 120 changes the constraints based on the user input. For example, the trajectory optimizer 120 may change the geometry of the road, the upper speed limit, the parameters of the ACC, etc. based on the user input.

[0053] In some embodiments, the user input may indicate loading a pre-generated simulation configuration to change a constraint. The pre-generated simulation configuration may specify a strategy for changing one or more constraints. Figure 4 Sub-area 420 may include a button “Load Simulation Configuration” for the user to select to load the simulation configuration. If it is recognized that the button “Load Simulation Configuration” is clicked, the trajectory optimizer 120 may read the pre-generated simulation configuration and change one or more constraints according to the specified strategy. For example, the angle of the turn of the road may be increased according to the strategy.

[0054] Alternatively or additionally, in some embodiments, user input may indicate the generation of a simulation configuration to change the constraints. Figure 4 As shown, sub-area 420 may include a button "Generate Simulation Configuration" for the user to select to generate a simulation configuration. If it is recognized that the button "Generate Simulation Configuration" is clicked, the trajectory optimizer 120 may receive the constraint conditions that the user desires to change from the user. As an example, the trajectory optimizer 120 may receive the user's input in table 425, which specifies the constraint conditions that the user desires to change. For example, the input may specify the ACC parameters to be changed and their values.

[0055] At block 530, the trajectory optimizer 120 sets at least one test scenario based on the changed constraints. The unchanged conditions or parameters may maintain the data in the scenario file. The trajectory optimizer 120 may set the test scenario using the recorded generated simulation configuration and the data in the maintained scenario file.

[0056] In this embodiment, scenarios not included in the real environment can be set by changing one or more constraints. In this way, it is possible to simulate a combination of test scenarios desired by the user. In this way, all possible scenarios can be covered as much as possible. Testing in more scenarios helps to fully optimize the trajectory planning function of the autonomous driving system.

[0057] Continue to refer Figure 3 At block 320, the trajectory optimizer 120 obtains configuration information 140 for trajectory planning. The configuration information 140 specifies a plurality of factors related to the travel cost of the trajectory. These factors may be reference Figure 1 The configuration information 140 may indicate the weight of each of the multiple factors and the contribution to the total cost (e.g., quadratic, linear, sigmoid function, etc.). As an example, the weight of the maximum speed in the first type of factors may be 5000, and the contribution may be quadratic. The weight of comfort in the fourth type of factors may be 25, and the contribution may be linear.

[0058] Configuration information 140 may be read from one or more configuration files. Alternatively or additionally, configuration information 140 may be input or modified by a user. Figure 6 . Figure 6 220 according to some embodiments of the present disclosure. For example, after setting up the test scenario, in response to the user clicking the label of the configuration information panel 222, the trajectory optimizer 120 may present the following Figure 6 Configuration information panel 222 is shown.

[0059] The configuration information panel 222 may include a button “Add Configuration” for the user to select to add configuration information. For example, in response to the button being clicked, the trajectory optimizer 120 may receive the configuration information input by the user in the sub-area 610, such as the weights of various cost items. For another example, in response to the button being clicked, the trajectory optimizer 120 may import a file containing configuration information from the outside.

[0060] Alternatively or additionally, the configuration information panel 222 may include a button "Load Configuration" for the user to select to load configuration information. For example, in response to the button being clicked, the trajectory optimizer 120 may present one or more configuration files to the user for the user to select. Then, the trajectory optimizer 120 may load the configuration file selected by the user and parse the configuration information therein.

[0061] Alternatively or additionally, the configuration information panel 222 may include a button “Modify Configuration” for the user to select to modify the configuration information. For example, in response to the button being clicked, the trajectory optimizer 120 may receive a modification of one or more cost items input by the user in the sub-area 610. For example, the user input may indicate that the weight of the maximum speed is modified from 5000 to 3000. For another example, the user input may indicate that the comfort contribution mode is modified from linear to quadratic.

[0062] Continue to refer Figure 3 At block 330 , the trajectory optimizer 120 generates a planned trajectory for a virtual vehicle in at least one test scenario based on the configuration information 140 . Figure 2 The button “Start” shown is clicked and the trajectory optimizer 120 begins generating planned trajectories for the virtual vehicle in one or more test scenarios.

[0063] The trajectory optimizer 120 may include a trajectory generation module that is the same as or similar to the module for generating trajectories in the vehicle-mounted system 110. In block 330, the trajectory generation module may generate a planned trajectory for the virtual vehicle based on the configuration information 140. In order to utilize the trajectory generation module, the trajectory optimizer 120 may load a configuration related to a trajectory generation model, which may be obtained, for example, from the vehicle-mounted system 110.

[0064] At block 340 , the trajectory optimizer 120 presents a visual representation of the planned trajectory (also referred to as a “first visual representation”) and a visual representation of the travel cost of the planned trajectory (also referred to as a “second visual representation”). The trajectory optimizer 120 may present the first and second visual representations in the user interface 150 in any suitable manner.

[0065] refer to Figure 7 . Figure 7Another example of a user interface 150 according to some embodiments of the present disclosure is shown. After generating a planned trajectory, the trajectory optimizer 120 can present a visual representation 710 of the planned trajectory in the first area 210. Generally, in this example, the visual representation 710 is a line depicting the orientation of the planned path. In addition, the visual representation 710 can also additionally include information such as the speed, acceleration, attitude angle, etc. at each point in the planned trajectory. For example, in response to a user clicking on a point on the visual representation 710, the trajectory optimizer 120 can display the speed, acceleration, attitude angle, etc. at that point.

[0066] Additionally, in some embodiments, the trajectory optimizer 120 may also present a visual representation of other information related to the planned trajectory in the first area 210. Such other information may include time-varying conditions, time-invariant conditions constituting the test scenario, time-varying instructions generated for the test scenario, time-invariant instructions, etc. Figure 7 In the example of FIG. 7 , a visual representation 711 of a boundary of a road and a visual representation 712 of an obstacle on the road are shown.

[0067] After generating the planned trajectory, the trajectory optimizer 120 may present a visual representation of the travel cost of the planned trajectory in the third area 230. The trajectory optimizer 120 may present a visual representation of the total travel cost, as well as a visual representation of multiple factors related to the travel cost (ie, multiple cost items).

[0068] exist Figure 7 In the example of FIG. 1 , the trajectory optimizer 120 displays a graph 730 of the driving cost in the third area 230. The graph 730 may include a curve representing the total driving cost and a curve representing each cost item.

[0069] The trajectory optimizer 120 may present multiple interface elements corresponding to the multiple cost items, and present the contribution of the corresponding cost item to the total trajectory cost in association with each of the multiple interface elements. The contribution described herein may refer to the value of the corresponding cost item for the planned trajectory, or the proportion of the corresponding cost item in the total driving cost.

[0070] exist Figure 7 In the example of , the trajectory optimizer 120 presents an interface element corresponding to the cost item in the sub-area 720 . Figure 7Sub-area 720 is shown in an enlarged scale. Interface elements 701 to 709 correspond to factor A, factor B, factor C, factor D, factor E, factor F, factor G, factor H, and factor I, respectively. In some embodiments, interface elements 701 to 709 may have different colors to more intuitively distinguish different factors. Immediately following the interface elements, the values ​​of the corresponding factors in the planning trajectory are displayed. In this example, the values ​​of factor C and factor G, i.e., the costs generated by factor C and factor G, are 10 and 5, respectively, while the values ​​of the other factors are zero. It should be understood that Figure 7 The values ​​shown for the factors are exemplary only and are not intended to limit the scope of the present disclosure.

[0071] In this way, users (e.g., developers of autonomous driving systems) can intuitively feel the role of different factors in the planned trajectory. After the user clicks on the interface element corresponding to a factor, the factor can also be highlighted.

[0072] In addition, in some embodiments, after generating a planning trajectory for a test scenario, the scenario file used to set the test scenario can be identified accordingly. Figure 4 The “Status” column of table 415 shown in FIG. 4 may display, for example, “Tested” for the element corresponding to the scenario file.

[0073] In some embodiments, the trajectory optimizer 120 may support real-time modification of the configuration information 140. For example, a user may modify one or more factors through the user interface 150, such as modifying the weight, contribution method, or other possible parameters of one or more factors.

[0074] In response to presenting a visual representation of the driving cost, the trajectory optimizer 120 may receive user input. The user input may indicate a factor that the user desires to modify. The trajectory optimizer 120 may adjust at least one of the multiple factors based on the user input. That is, the trajectory optimizer 120 may modify the factor that the user desires to modify according to the user input. Next, the trajectory optimizer 120 may update the planned trajectory generated for the virtual vehicle based on the adjusted factors, and present a visual representation of the difference between the planned trajectory before the update and the updated planned trajectory. In this embodiment, the cost configuration may be changed in real time, and the trajectory may be generated in real time. In this way, the cost configuration may be adjusted efficiently.

[0075] For example, after viewing the contributions of various factors presented to the total driving cost, the user may want to modify a factor, such as its weight, contribution method, or additional parameters. The user can click Figure 6, and input or specify the factors that are desired to be modified. After receiving the user input, the trajectory optimizer 120 can save the modified factors to generate modified configuration information, and generate a new planned trajectory based on the modified configuration information. The trajectory optimizer 120 can present a visual representation of the new planned trajectory in the first area 210. The visual representation can be Figure 7 The visual representation 710 shown is displayed superimposed. In this way, the difference between the two planned trajectories can be intuitively presented to the user.

[0076] Continue to refer Figure 3 If multiple test scenarios are set in block 310 , blocks 320 to 340 may be executed sequentially for the multiple test scenarios. For example, blocks 320 to 340 may be executed sequentially according to the order in which the test scenarios are arranged in table 415 .

[0077] In some embodiments, the method 300 may further include additional steps or boxes. For each test scenario in the plurality of test scenarios, it is determined whether the reference attribute of the planned trajectory generated in box 330 is better than the reference attribute of the real trajectory corresponding to the test scenario. The reference attribute used herein may be any suitable metric for evaluating the quality of the trajectory, such as lateral clearance, change in velocity, change in acceleration, etc. The scope of the present disclosure is not limited in this respect.

[0078] If it is determined that the reference attribute of the planned trajectory is better than the reference attribute of the real trajectory for more than a threshold number of test scenarios among the multiple test scenarios, the planned trajectory can be considered better than the real trajectory. In this case, the trajectory optimizer 120 can output the configuration information used to generate the planned trajectory for generating a trajectory for the autonomous driving vehicle. In other words, such configuration information is a cost configuration with better performance for most test scenarios.

[0079] The above process can be performed for multiple configurations of driving costs, that is, multiple combinations of cost items. This helps to find a cost configuration with good generalization performance. Such a cost configuration can be applied to most autonomous driving scenarios.

[0080] From the above description, it can be seen that according to the embodiments of the present disclosure, the trajectory planning function can be tested using driving data in a real environment, and the planned trajectory and related cost information can be visually presented. This can support the adjustment of the cost configuration in the test to find a more reliable cost configuration solution. This can facilitate the optimization of the trajectory planning function of the autonomous driving system. In addition, it should be understood that Figure 1 , Figure 2 , Figure 4 , Figure 6 and Figure 7The number and shape, relative positions, values, etc. of the interface elements in the illustrated user interface are exemplary and are not intended to limit the scope of the present disclosure.

[0081] Figure 8 FIG. 8 is a schematic block diagram of a test device 800 for autonomous driving according to some embodiments of the present disclosure. The device 800 may be included in Figure 1 For example, the apparatus 800 may be used to implement Figure 1 A trajectory optimizer 120 is shown.

[0082] like Figure 8 As shown, the device 800 includes a scene setting module 810, which is configured to set at least one test scene for a virtual vehicle based on the driving data of the autonomous driving vehicle in a real environment. Each test scene in the at least one test scene includes the driving state of the virtual vehicle and the test environment in which the virtual vehicle is located. The device 800 also includes a configuration acquisition module 820, which is configured to obtain configuration information for trajectory planning, and the configuration information specifies multiple factors related to the driving cost of the trajectory. The device 800 further includes a trajectory generation module 830, which is configured to generate a planned trajectory for the virtual vehicle in at least one test scene based on the configuration information. The device 800 further includes an information presentation module 840, which is configured to present a first visual representation of the planned trajectory and a second visual representation of the driving cost of the planned trajectory.

[0083] In some embodiments, the device 800 also includes: a trajectory evaluation module, configured to determine, for each test scenario in at least one test scenario, whether the reference attributes of the planned trajectory are better than the reference attributes of the real trajectory corresponding to each test scenario; and a configuration output module, configured to output configuration information for generating a trajectory for the autonomous driving vehicle if it is determined that the reference attributes of the planned trajectory are better than the reference attributes of the real trajectory for more than a threshold number of test scenarios in at least one test scenario.

[0084] In some embodiments, the scenario setting module 820 includes: a condition determination module, configured to determine constraints related to the driving environment of the autonomous driving vehicle from driving data; a condition change module, configured to change the constraints based on a first user input; and a condition utilization module, configured to set at least one test scenario based on the changed constraints.

[0085] In some embodiments, the constraints are used to constrain at least one of: the geometry of the road on which the autonomous vehicle is traveling, the speed of vehicles on the road, or the distance of the autonomous vehicle relative to other vehicles on the road.

[0086] In some embodiments, the device 800 also includes: an input receiving module configured to receive a second user input in response to presenting a second visual representation; a factor adjustment module configured to adjust at least one of the multiple factors based on the second user input; a trajectory updating module configured to update the planned trajectory generated for the virtual vehicle based on the adjusted at least one factor; and a difference presentation module configured to present a third visual representation of the difference between the planned trajectory and the updated planned trajectory.

[0087] In some embodiments, the information presentation module 840 includes: an interface element presentation module, configured to present multiple interface elements corresponding to multiple factors; and a numerical presentation module, configured to present the contribution of the corresponding factor to the driving cost of the planned trajectory in association with each of the multiple interface elements.

[0088] In some embodiments, the multiple factors are related to at least one of: the ability of the autonomous vehicle to perform a driving maneuver, the cost of the autonomous vehicle to perform a driving maneuver, a driving maneuver that the autonomous vehicle is prohibited from performing, or a driving maneuver that the autonomous vehicle is restricted from performing.

[0089] Fig. 9 1 shows a schematic block diagram of an example device 900 that can be used to implement an embodiment of the present disclosure. The device 900 can be used to implement Figure 1 The computing device 102 of the present invention. As shown in the figure, the device 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 902 or computer program instructions loaded from a storage unit 908 to a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0090] A number of components in the device 900 are connected to the I / O interface 905, including: an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0091] The processing unit 901 performs the various methods and processes described above, such as any of the processes 300 and 500. For example, in some embodiments, any of the processes 300 and 500 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the CPU 901, one or more steps of any of the processes 300 and 500 described above may be performed. Alternatively, in other embodiments, the CPU 901 may be configured to perform any of the processes 300 and 500 by any other suitable means (e.g., by means of firmware).

[0092] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.

[0093] 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.

[0094] 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.

[0095] The computer program instructions for performing the operation of the present disclosure 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 completely 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 completely 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 customized 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 disclosure.

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

[0097] These computer-readable program instructions can be provided to a processing unit 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 processing unit 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.

[0098] 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.

[0099] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0100] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A testing method for autonomous driving, comprising: Based on driving data of the autonomous driving vehicle in a real environment, determining a constraint condition related to the driving environment of the autonomous driving vehicle from the driving data, changing the constraint condition based on a first user input, and setting at least one test scenario for the virtual vehicle based on the changed constraint condition, each test scenario in the at least one test scenario including a driving state of the virtual vehicle and a test environment in which the virtual vehicle is located; Obtaining configuration information for trajectory planning, the configuration information specifying a plurality of factors related to a driving cost of the trajectory and how each of the plurality of factors contributes to a total cost; the plurality of factors comprising a first type of factors related to the ability of the autonomous driving vehicle to perform a driving action, a second type of factors related to the cost of the autonomous driving vehicle to perform a driving action, a third type of factors related to driving actions that the autonomous driving vehicle is prohibited from performing, and a fourth type of factors related to driving actions that the autonomous driving vehicle is restricted from performing; generating a planned trajectory for the virtual vehicle in the at least one test scenario based on the configuration information; For each test scenario of the at least one test scenario, determining whether the reference attribute of the planned trajectory is better than the reference attribute of the real trajectory corresponding to each test scenario; outputting the configuration information for use in generating a trajectory for an autonomous vehicle if it is determined that the reference property of the planned trajectory is better than the reference property of the real trajectory for more than a threshold number of the test scenarios in the at least one test scenario; as well as presenting a first visual representation of the planned trajectory and a second visual representation of a travel cost of the planned trajectory; receiving a second user input in response to presenting the second visual representation; adjusting at least one of the plurality of factors based on the second user input; updating the planned trajectory generated for the virtual vehicle based on the adjusted at least one factor; A third visual representation of a difference between the planned trajectory and an updated planned trajectory is presented.

2. The method according to claim 1, wherein the constraint condition is used to constrain at least one of the following: the geometry of the road on which the autonomous vehicle is traveling, the speed of vehicles on the road, or The distance of the autonomous vehicle relative to other vehicles on the road.

3. The method of claim 1 , wherein presenting the second visual representation comprises: presenting a plurality of interface elements corresponding to the plurality of factors; as well as In association with each of the plurality of interface elements, a contribution of a corresponding factor to the driving cost of the planned trajectory is presented. The method according to claim 1 , wherein the driving data comprises driving information and environmental information. 5 . The method of claim 1 , wherein the first visual representation includes a line depicting an orientation of a planned path, and a velocity, acceleration, and attitude angle at each point in the planned trajectory.

6. A test device for autonomous driving, comprising: a scenario setting module, configured to determine, based on driving data of the autonomous driving vehicle in a real environment, constraints related to the driving environment of the autonomous driving vehicle from the driving data, change the constraints based on a first user input, and set at least one test scenario for the virtual vehicle based on the changed constraints, each of the at least one test scenario including a driving state of the virtual vehicle and a test environment in which the virtual vehicle is located; a configuration acquisition module, configured to obtain configuration information for trajectory planning, the configuration information specifying a plurality of factors related to the driving cost of the trajectory and a contribution of each of the plurality of factors to the total cost; the plurality of factors comprising a first type of factors related to the ability of the autonomous driving vehicle to perform a driving action, a second type of factors related to the consumption of the autonomous driving vehicle to perform a driving action, a third type of factors related to driving actions that the autonomous driving vehicle is prohibited from performing, and a fourth type of factors related to driving actions that the autonomous driving vehicle is restricted from performing; a trajectory generation module, configured to generate a planned trajectory for the virtual vehicle in the at least one test scenario based on the configuration information; a trajectory evaluation module configured to determine, for each of the at least one test scenario, whether the reference properties of the planned trajectory are better than the reference properties of the real trajectory corresponding to each test scenario; a configuration output module configured to output the configuration information for generating a trajectory for the autonomous driving vehicle if it is determined that the reference attribute of the planned trajectory is better than the reference attribute of the real trajectory for more than a threshold number of test scenarios in the at least one test scenario; as well as an information presentation module configured to present a first visual representation of the planned trajectory and a second visual representation of a travel cost of the planned trajectory; an input receiving module configured to receive a second user input in response to presenting the second visual representation; a factor adjustment module configured to adjust at least one factor of the plurality of factors based on the second user input; a trajectory updating module configured to update the planned trajectory generated for the virtual vehicle based on the adjusted at least one factor; A difference presentation module is configured to present a third visual representation of a difference between the planned trajectory and the updated planned trajectory.

7. The apparatus according to claim 6, wherein the constraint condition is used to constrain at least one of the following: the geometry of the road on which the autonomous vehicle is traveling, the speed of vehicles on the road, or The distance of the autonomous vehicle relative to other vehicles on the road.

8. The device according to claim 6, wherein the information presentation module comprises: An interface element presentation module, configured to present a plurality of interface elements corresponding to the plurality of factors; as well as The numerical value presentation module is configured to present, in association with each of the plurality of interface elements, a contribution of a corresponding factor to the driving cost of the planned trajectory. 9 . The apparatus according to claim 6 , wherein the driving data comprises driving information and environmental information.

10. The apparatus of claim 6, wherein the first visual representation comprises a line depicting an orientation of a planned path, and a velocity, acceleration, and attitude angle at each point in the planned trajectory.

11. An electronic device, comprising: one or more processors; as well as A storage device, used for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.

12. A computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method according to any one of claims 1 to 5.

13. A computer program product comprising computer executable instructions, wherein the computer executable instructions, when executed by a processor, implement the method according to any one of claims 1 to 5.