A method for initializing an autonomous driving simulation task and related equipment

By compiling autonomous driving simulation tasks and creating local cache addresses, identifying and downloading reusable basic files, constructing resource files, and creating symbolic links, the problem of repeatedly downloading basic data in autonomous driving simulation tasks is solved, thus improving simulation efficiency.

CN116594738BActive Publication Date: 2026-11-24GUANGZHOU WERIDE TECH LTD CO
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310802701.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2026-11-24
Estimated Expiration
2043-06-30

AI Technical Summary

Technical Problem

Existing autonomous driving simulation tasks require downloading a large amount of basic data during the initialization process, resulting in excessively long simulation time. Furthermore, the reused data needs to be downloaded every time a simulation task is initialized, which reduces simulation efficiency.

Method used

By acquiring autonomous driving simulation tasks and compiling them into a list of nested key-value files, a local cache address is created and attached to the simulation container address. Reusable basic files to be downloaded are identified and downloaded to the cache address. Resource files are built and symbolic links are created to avoid duplicate downloads.

Benefits of technology

It improves the simulation efficiency of autonomous driving simulation tasks, reduces the repeated download time of reusable basic files, and increases the running speed of simulation tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116594738B_ABST
    Figure CN116594738B_ABST
Patent Text Reader

Abstract

This application discloses an initialization method and related equipment for an autonomous driving simulation task. The method includes: compiling the autonomous driving simulation task to obtain a list of nested key-value files; creating a local cache address and attaching the local cache address to the container address of the simulation task; when the simulation task is initialized, determining the files to be downloaded based on the existing reusable basic files under the local cache address and the file names of each file in the file list, and downloading them to the local cache address; and creating symbolic links between the resource directory and resource files of the simulation task under the container address to complete the simulation task initialization. It is evident that deploying the local cache address under the simulation container address ensures that reusable basic files only need to be downloaded once and can be directly called subsequently, eliminating the need to download them every time a simulation task is initialized. This saves time from repeatedly downloading the same reusable basic files and improves the simulation efficiency of the autonomous driving simulation task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of autonomous driving technology, and more specifically, to an initialization method and related equipment for an autonomous driving simulation task. Background Technology

[0002] With the development of intelligent technologies, autonomous driving has been extensively researched and gradually put into real-world applications. Due to the extremely high safety requirements of autonomous driving, multiple tests are necessary during the development phase of autonomous vehicles, with daily simulation analysis of the test data. Simulation platforms receive a large number of simulation tasks daily, and the sheer volume of simulations results in significantly increased simulation time. Therefore, it is crucial to focus on improving simulation efficiency and simplifying repetitive processes.

[0003] Currently, during the initialization of simulation tasks, a lot of basic data, such as files with the suffixes ".so" and ".lib", needs to be downloaded to the specified container pod directory. Each download of basic data consumes simulation time, and a lot of reusable data is still downloaded every time a simulation task is initialized, resulting in a large amount of simulation time being wasted and the simulation efficiency of autonomous driving simulation tasks being low. Summary of the Invention

[0004] In view of the above problems, this application is proposed to provide an initialization method and related equipment for autonomous driving simulation tasks, so as to improve the simulation operation efficiency of autonomous driving simulation tasks.

[0005] To achieve the above objectives, the following specific solutions are proposed:

[0006] An initialization method for an autonomous driving simulation task includes:

[0007] Obtain an autonomous driving simulation task and compile the autonomous driving simulation task to obtain a list of key-value nested files, the list of key-value nested files including the filenames of each reusable base file used to simulate the autonomous driving simulation task;

[0008] Create a local cache address and attach the local cache address to the simulation container address that simulates the autonomous driving simulation task;

[0009] When the autonomous driving simulation task is initialized, based on the existing reusable basic files and the file names of each key-value pair nested file list under the local cache address, each reusable basic file to be downloaded is determined and downloaded to the local cache address.

[0010] When each reusable base file corresponding to each filename in the nested key-value file list exists under the local cache address, a resource file composed of each reusable base file is constructed.

[0011] Under the address of the simulation container, a symbolic link is created between the resource directory of the autonomous driving simulation task and the resource file to complete the initialization of the autonomous driving simulation task, so that the autonomous driving simulation task can use the resource data under the resource directory to perform simulation in the simulation container.

[0012] Optionally, based on the filenames of the existing reusable base files and key-value pair nested file list under the local cache address, each reusable base file to be downloaded is determined, including:

[0013] For each filename in the nested key-value file list, if the reusable base file does not exist in the local cache address, then the reusable base file is determined to be the reusable base file to be downloaded.

[0014] Combine each reusable base file to be downloaded to obtain individual reusable base files to be downloaded.

[0015] Optionally, the list of nested key-value files may also include download status information for each reusable base file;

[0016] After downloading the reusable basic file to be downloaded to the local cache address, the method further includes:

[0017] Based on each newly added reusable base file to be downloaded under the local cache address, update the download status information corresponding to the reusable base file to be downloaded in the key-value pair nested file list to obtain the updated key-value pair nested file list.

[0018] Optionally, the method further includes:

[0019] For each filename in the nested key-value file list, if the reusable base file exists at the local cache address, then the reusable base file is determined to be a reusable base file that does not need to be downloaded.

[0020] Optionally, each reusable base file's filename has a corresponding MD5 value;

[0021] Based on the existing reusable base files and key-value pair nested file list under the local cache address, each reusable base file to be downloaded is determined, including:

[0022] For each filename in the nested key-value file list, if there is no filename MD5 value that matches the MD5 value among the existing reusable base files under the local cache address, then the reusable base file corresponding to the filename with the MD5 value is determined to be the reusable base file to be downloaded.

[0023] Combine each reusable base file to be downloaded to obtain individual reusable base files to be downloaded.

[0024] Optionally, the autonomous driving simulation task is compiled to obtain a list of nested key-value files, including:

[0025] The autonomous driving simulation task is compiled to determine the reusable basic file information for simulating the autonomous driving simulation task;

[0026] Based on the information of each reusable base file, construct a list of nested key-value pairs.

[0027] An initialization device for an autonomous driving simulation task, comprising:

[0028] The compilation unit is used to acquire an autonomous driving simulation task and compile the autonomous driving simulation task to obtain a list of key-value nested files, wherein the list of key-value nested files includes the filenames of each reusable base file used to simulate the autonomous driving simulation task.

[0029] The address attaching unit is used to create a local cache address and attach the local cache address to the simulation container address that simulates the autonomous driving simulation task.

[0030] The reusable file download unit is used to determine each reusable basic file to be downloaded based on the file names of each existing reusable basic file and key-value pair nested file list under the local cache address when the autonomous driving simulation task is initialized, and download each reusable basic file to be downloaded to the local cache address.

[0031] The resource file construction unit is used to construct a resource file composed of each reusable basic file when each reusable basic file corresponding to each file name in the nested file list of key-value pairs exists under the local cache address.

[0032] The symbolic link unit is used to create a symbolic link between the resource directory for simulating the autonomous driving simulation task and the resource file at the address of the simulation container, thereby completing the initialization of the autonomous driving simulation task so that the autonomous driving simulation task can use the resource data in the resource directory to perform simulation in the simulation container.

[0033] Optionally, the multiplexed file download unit includes:

[0034] The file to be downloaded determination unit is used to determine the reusable basic file to be downloaded if there is no reusable basic file under the local cache address for each file name corresponding to the reusable basic file in the nested file list of key-value pairs.

[0035] The first unit of file combination is used to combine each reusable basic file to be downloaded to obtain each reusable basic file to be downloaded.

[0036] Optionally, the list of nested key-value files may also include download status information for each reusable base file;

[0037] The device also includes:

[0038] The file list update unit is used to update the download status information corresponding to each newly added reusable basic file to be downloaded in the key-value pair nested file list after downloading the reusable basic file to be downloaded to the local cache address, so as to obtain the updated key-value pair nested file list.

[0039] Optionally, each reusable base file's filename has a corresponding MD5 value;

[0040] The reused file download unit includes:

[0041] The MD5 value matching unit is used to determine the reusable basic file corresponding to the file name of each file name in the nested key-value file list as the reusable basic file to be downloaded if there is no file name MD5 value that matches the MD5 value among the existing reusable basic files under the local cache address.

[0042] The second unit of file combination is used to combine each reusable base file to be downloaded to obtain each reusable base file to be downloaded.

[0043] Optionally, the compilation unit includes:

[0044] The first compilation subunit is used to compile the autonomous driving simulation task and determine the reusable basic file information of the autonomous driving simulation task.

[0045] The second compilation subunit is used to construct a list of nested key-value files based on information from each reusable base file.

[0046] An initialization device for an autonomous driving simulation task, comprising a memory and a processor;

[0047] The memory is used to store programs;

[0048] The processor is used to execute the program to implement the various steps of the initialization method for the autonomous driving simulation task as described above.

[0049] A storage medium storing a computer program, which, when executed by a processor, implements the steps of the initialization method for the autonomous driving simulation task as described above.

[0050] By employing the above technical solution, this application obtains an autonomous driving simulation task and compiles it to obtain a key-value pair nested file list. This list includes the filenames of various reusable basic files used to simulate the autonomous driving simulation task. A local cache address is created and linked to the simulation container address for simulating the autonomous driving simulation task. When the autonomous driving simulation task is initialized, based on the existing reusable basic files under the local cache address and the filenames in the key-value pair nested file list, each reusable basic file to be downloaded is determined and downloaded to the local cache address. When all reusable basic files corresponding to the filenames in the key-value pair nested file list exist under the local cache address, a resource file composed of these reusable basic files is constructed. A soft link is created between the resource directory for simulating the autonomous driving simulation task and the resource file under the simulation container address, completing the initialization of the autonomous driving simulation task. This allows the autonomous driving simulation task to perform simulation within the simulation container using the resource data in the resource directory. Therefore, deploying the local cache address under the simulation container address allows reusable basic files to be downloaded only once and then directly called upon in subsequent tasks, eliminating the need to download them every time a simulation task is initialized. This saves time from repeatedly downloading the same reusable basic files and improves the simulation efficiency of autonomous driving simulation tasks. Attached Figure Description

[0051] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0052] Figure 1 This is a schematic diagram of a process for initializing an autonomous driving simulation task according to an embodiment of this application;

[0053] Figure 2 A schematic diagram of a device structure for initializing an autonomous driving simulation task provided in an embodiment of this application;

[0054] Figure 3 This is a schematic diagram of the structure of a device for initializing an autonomous driving simulation task, provided in an embodiment of this application. Detailed Implementation

[0055] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0056] The proposed solution can be implemented based on a terminal with data processing capabilities, such as a computer, server, or cloud application.

[0057] Next, combined Figure 1 The initialization method for the autonomous driving simulation task of this application may include the following steps:

[0058] Step S110: Obtain the autonomous driving simulation task and compile the autonomous driving simulation task to obtain a list of key-value pair nested files.

[0059] Specifically, during the compilation of autonomous driving simulation tasks, the simulation resources required for the autonomous driving simulation tasks can be integrated into a list of nested key-value pairs, which can be a meta.json file.

[0060] The list of nested key-value files can include the filenames of various reusable base files used for simulating autonomous driving simulation tasks.

[0061] Step S120: Create a local cache address and attach the local cache address to the simulation container address of the simulated autonomous driving simulation task.

[0062] Specifically, the local cache address can be the location for storing cold data in the environment. Reusable basic files can be stored at this cache address, and storing files at this cache address will not consume platform storage resources.

[0063] Furthermore, if the autonomous driving simulation task needs to be deployed to multiple simulation containers for distributed simulation, multiple local cache addresses can be created, and at least one local cache address can be attached to the simulation container address of each simulation container.

[0064] Step S130: When the autonomous driving simulation task is initialized, based on the existing reusable basic files and the filenames of the key-value pair nested file list under the local cache address, determine each reusable basic file to be downloaded, and download each reusable basic file to be downloaded to the local cache address.

[0065] Understandably, autonomous driving simulation tasks require necessary resource files during simulation, which contain a large number of reusable basic files. Therefore, during the initialization of the autonomous driving simulation task, it is necessary to compare the existing reusable basic files in the local cache address with the filenames of each key-value pair nested file list to determine the reusable basic files to be downloaded and download them from the remote location to the local cache address.

[0066] Step S140: When each reusable base file corresponding to each filename in the key-value pair nested file list exists under the local cache address, construct a resource file composed of each reusable base file.

[0067] Specifically, resource files can include all reusable basic files used in the autonomous driving simulation task during the simulation.

[0068] Step S150: Under the simulation container address, create a symbolic link between the resource directory and resource files of the autonomous driving simulation task to complete the initialization of the autonomous driving simulation task, so that the autonomous driving simulation task can use the resource data under the resource directory for simulation in the simulation container.

[0069] Understandably, when it is found that all the reusable basic files required for the autonomous driving simulation task exist in the local cache address, it means that the autonomous driving simulation task can be simulated. Then, the resource directory and resource files of the autonomous driving simulation task can be symbolically linked to complete the initialization of the autonomous driving simulation task. After that, the autonomous driving simulation task in the simulation container can use the resource data in the resource directory to perform simulation.

[0070] Furthermore, since all the reusable basic files required for the autonomous driving simulation task are stored in the local cache address, when subsequent autonomous driving simulation tasks need to use the reusable basic files that already exist in the local cache address, there is no need to download the files from the remote end again; the required reusable basic files can be directly called from the local cache address.

[0071] The autonomous driving simulation task initialization method provided in this embodiment obtains the autonomous driving simulation task and compiles it to obtain a key-value pair nested file list. The key-value pair nested file list includes the filenames of various reusable basic files used to simulate the autonomous driving simulation task. A local cache address is created and linked to the simulation container address of the autonomous driving simulation task. When the autonomous driving simulation task is initialized, based on the existing reusable basic files under the local cache address and the filenames of each key-value pair nested file list, each reusable basic file to be downloaded is determined and downloaded to the local cache address. When each reusable basic file corresponding to each filename in the key-value pair nested file list exists under the local cache address, a resource file composed of each reusable basic file is constructed. Under the simulation container address, a soft link is made between the resource directory of the autonomous driving simulation task and the resource file, completing the initialization of the autonomous driving simulation task. This allows the autonomous driving simulation task to perform simulation in the simulation container using the resource data under the resource directory. Therefore, deploying the local cache address under the simulation container address allows reusable basic files to be downloaded only once and then directly called upon in subsequent tasks, eliminating the need to download them every time a simulation task is initialized. This saves time from repeatedly downloading the same reusable basic files and improves the simulation efficiency of autonomous driving simulation tasks.

[0072] In some embodiments of this application, the process of determining each reusable basic file to be downloaded based on each filename of the existing reusable basic file and the key-value pair nested file list under the local cache address, as mentioned in the above embodiments, is described. This process may include:

[0073] S1. For each filename in the nested key-value file list, if there is no reusable base file in the local cache address, then determine that the reusable base file is the reusable base file to be downloaded.

[0074] Specifically, each filename in the nested key-value file list is compared one by one with the reusable base file under the local cache address. If there is no reusable base file that matches the filename, then the reusable base file can be determined as the reusable base file that needs to be downloaded from the remote end. All reusable base files to be downloaded are determined in this way.

[0075] In addition, for each filename in the key-value pair nested file list, if the reusable base file exists in the local cache address, then the reusable base file is determined to be a reusable base file that does not need to be downloaded.

[0076] Understandably, for reusable base files that do not require downloading, a skip process can be performed, eliminating the need to re-download the reusable base file from the remote end.

[0077] S2. Combine each reusable base file to be downloaded to obtain individual reusable base files to be downloaded.

[0078] Understandably, by searching for the missing reusable basic files in the local cache address at once and combining these reusable basic files to obtain each reusable basic file to be downloaded, batch downloading is facilitated and the number of downloads is reduced.

[0079] The initialization method for autonomous driving simulation tasks provided in this embodiment compares each filename in the nested key-value file list with reusable base files in the local cache address to determine the reusable base files that need to be downloaded and those that do not need to be downloaded, thereby making the location of the reusable base files to be downloaded more accurate.

[0080] In some embodiments of this application, to facilitate comparison between reusable base files under the local cache address and the list of nested key-value files, the list of nested key-value files may also include download status information of each reusable base file. Specifically, when the reusable base file corresponding to the filename in the list of nested key-value files has been downloaded, it can be marked as downloaded; otherwise, it can be marked as not downloaded.

[0081] Based on this, the initialization method for autonomous driving simulation tasks provided in this application, in the process of updating the key-value pair nested file list after downloading the reusable basic file to be downloaded to the local cache address as mentioned in the above embodiments, may include:

[0082] Based on each newly added reusable base file to be downloaded under the local cache address, update the download status information corresponding to the reusable base file to be downloaded in the key-value pair nested file list to obtain the updated key-value pair nested file list.

[0083] Specifically, after the reusable base files required for the autonomous driving simulation task are downloaded to the local cache address, the download status information corresponding to that reusable base file in the key-value pair nested file list can be updated to "downloaded". Since the download status information corresponding to the reusable base files in the key-value pair nested file list has been updated, the key-value pair nested file list can be updated to the updated key-value pair nested file list.

[0084] In some embodiments of this application, the filename of each reusable base file in the key-value pair nested file list can be mapped to an MD5 value for matching and replacement. Therefore, each reusable base file filename has a corresponding MD5 value. Based on this, the process of determining each reusable base file to be downloaded based on the existing reusable base files under the local cache address and each filename in the key-value pair nested file list, as mentioned in the above embodiments, is described. This process may include:

[0085] S1. For each filename in the nested key-value file list, if there is no matching filename MD5 value among the existing reusable base files in the local cache address, then the reusable base file corresponding to the filename with the matching MD5 value is determined to be the reusable base file to be downloaded.

[0086] Understandably, the MD5 value is a unique corresponding value for each reusable base file. Each reusable base file can be matched one-to-one with its MD5 value, which can avoid matching errors caused by the same filename of reusable base files during the matching process, and improve the matching success rate between the list of nested key-value pairs and reusable base files under the local cache address.

[0087] S2. Combine each reusable base file to be downloaded to obtain individual reusable base files to be downloaded.

[0088] The initialization method for autonomous driving simulation tasks provided in this embodiment compares the MD5 value of each filename in the key-value pair nested file list with the reusable base file under the local cache address. This avoids matching errors caused by identical filenames of reusable base files during the matching process, thereby improving the matching success rate between the key-value pair nested file list and the reusable base file under the local cache address.

[0089] In some embodiments of this application, the process of compiling an autonomous driving simulation task to obtain a list of nested key-value pairs, as mentioned in the above embodiments, is described. This process may include:

[0090] S1. Compile the autonomous driving simulation task and determine the reusable basic file information of each autonomous driving simulation task.

[0091] The information for each reusable base file may include file information for each reusable base file required for the autonomous driving simulation task, specifically including the file name, file content, and file type of the reusable base file.

[0092] S2. Based on the information of each reusable basic file, construct a list of nested key-value pairs.

[0093] Specifically, you can select the filename from each reusable base file information and use the filenames from each reusable base file information to build a list of nested key-value pairs. Alternatively, you can generate MD5 values ​​based on the filenames from each reusable base file information and use the filenames from each reusable base file information and their corresponding MD5 values ​​to build a list of nested key-value pairs.

[0094] The apparatus for initializing an autonomous driving simulation task provided in the embodiments of this application will be described below. The apparatus for initializing an autonomous driving simulation task described below can be referred to in correspondence with the method for initializing an autonomous driving simulation task described above.

[0095] See Figure 2 , Figure 2 This is a schematic diagram of a device structure for initializing an autonomous driving simulation task, as disclosed in an embodiment of this application.

[0096] like Figure 2 As shown, the device may include:

[0097] The compilation unit 11 is used to acquire an autonomous driving simulation task and compile the autonomous driving simulation task to obtain a list of key-value nested files. The list of key-value nested files includes the filenames of each reusable basic file used to simulate the autonomous driving simulation task.

[0098] Address attachment unit 12 is used to create a local cache address and attach the local cache address to the simulation container address that simulates the autonomous driving simulation task.

[0099] The reusable file download unit 13 is used to determine each reusable basic file to be downloaded based on the file names of each existing reusable basic file and key-value pair nested file list under the local cache address when the autonomous driving simulation task is initialized, and download each reusable basic file to be downloaded to the local cache address.

[0100] The resource file construction unit 14 is used to construct a resource file composed of each reusable basic file when each reusable basic file corresponding to each file name in the nested file list of key-value pairs exists under the local cache address.

[0101] The soft link unit 15 is used to create a soft link between the resource directory for simulating the autonomous driving simulation task and the resource file at the address of the simulation container, thereby completing the initialization of the autonomous driving simulation task so that the autonomous driving simulation task can use the resource data in the resource directory to perform simulation in the simulation container.

[0102] Optionally, the multiplexed file download unit includes:

[0103] The file to be downloaded determination unit is used to determine the reusable basic file to be downloaded if there is no reusable basic file under the local cache address for each file name corresponding to the reusable basic file in the nested file list of key-value pairs.

[0104] The first unit of file combination is used to combine each reusable basic file to be downloaded to obtain each reusable basic file to be downloaded.

[0105] Optionally, the list of nested key-value files may also include download status information for each reusable base file;

[0106] The device also includes:

[0107] The file list update unit is used to update the download status information corresponding to each newly added reusable basic file to be downloaded in the key-value pair nested file list after downloading the reusable basic file to be downloaded to the local cache address, so as to obtain the updated key-value pair nested file list.

[0108] Optionally, each reusable base file's filename has a corresponding MD5 value;

[0109] The reused file download unit includes:

[0110] The MD5 value matching unit is used to determine the reusable basic file corresponding to the file name of each file name in the nested key-value file list as the reusable basic file to be downloaded if there is no file name MD5 value that matches the MD5 value among the existing reusable basic files under the local cache address.

[0111] The second unit of file combination is used to combine each reusable base file to be downloaded to obtain each reusable base file to be downloaded.

[0112] Optionally, the compilation unit includes:

[0113] The first compilation subunit is used to compile the autonomous driving simulation task and determine the reusable basic file information of the autonomous driving simulation task.

[0114] The second compilation subunit is used to construct a list of nested key-value files based on information from each reusable base file.

[0115] The apparatus for initializing autonomous driving simulation tasks provided in this application embodiment can be applied to devices for initializing autonomous driving simulation tasks, such as terminals like mobile phones and computers. Optionally, Figure 3 The diagram shows the hardware structure of the device for initializing an autonomous driving simulation task. (Refer to...) Figure 3 The hardware structure of the device for initializing the autonomous driving simulation task may include: at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4.

[0116] In this embodiment of the application, the number of processor 1, communication interface 2, memory 3, and communication bus 4 is at least one, and processor 1, communication interface 2, and memory 3 communicate with each other through communication bus 4;

[0117] Processor 1 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.

[0118] Memory 3 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device;

[0119] The memory stores a program, which the processor can call. The program is used for:

[0120] Obtain an autonomous driving simulation task and compile the autonomous driving simulation task to obtain a list of key-value nested files, the list of key-value nested files including the filenames of each reusable base file used to simulate the autonomous driving simulation task;

[0121] Create a local cache address and attach the local cache address to the simulation container address that simulates the autonomous driving simulation task;

[0122] When the autonomous driving simulation task is initialized, based on the existing reusable basic files and the file names of each key-value pair nested file list under the local cache address, each reusable basic file to be downloaded is determined and downloaded to the local cache address.

[0123] When each reusable base file corresponding to each filename in the nested key-value file list exists under the local cache address, a resource file composed of each reusable base file is constructed.

[0124] Under the address of the simulation container, a symbolic link is created between the resource directory of the autonomous driving simulation task and the resource file to complete the initialization of the autonomous driving simulation task, so that the autonomous driving simulation task can use the resource data under the resource directory to perform simulation in the simulation container.

[0125] Optionally, the refined and extended functions of the program can be found in the description above.

[0126] This application embodiment also provides a storage medium that can store a program suitable for execution by a processor, the program being used for:

[0127] Obtain an autonomous driving simulation task and compile the autonomous driving simulation task to obtain a list of key-value nested files, the list of key-value nested files including the filenames of each reusable base file used to simulate the autonomous driving simulation task;

[0128] Create a local cache address and attach the local cache address to the simulation container address that simulates the autonomous driving simulation task;

[0129] When the autonomous driving simulation task is initialized, based on the existing reusable basic files and the file names of each key-value pair nested file list under the local cache address, each reusable basic file to be downloaded is determined and downloaded to the local cache address.

[0130] When each reusable base file corresponding to each filename in the nested key-value file list exists under the local cache address, a resource file composed of each reusable base file is constructed.

[0131] Under the address of the simulation container, a symbolic link is created between the resource directory of the autonomous driving simulation task and the resource file to complete the initialization of the autonomous driving simulation task, so that the autonomous driving simulation task can use the resource data under the resource directory to perform simulation in the simulation container.

[0132] Optionally, the refined and extended functions of the program can be found in the description above.

[0133] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0134] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.

[0135] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for initializing an autonomous driving simulation task, characterized in that, include: Obtain an autonomous driving simulation task and compile the autonomous driving simulation task to obtain a list of key-value nested files, the list of key-value nested files including the filenames of each reusable base file used to simulate the autonomous driving simulation task; Create a local cache address and attach the local cache address to the simulation container address that simulates the autonomous driving simulation task; When the autonomous driving simulation task is initialized, based on the existing reusable basic files and the file names of each key-value pair nested file list under the local cache address, each reusable basic file to be downloaded is determined and downloaded to the local cache address. When each reusable base file corresponding to each filename in the nested key-value file list exists under the local cache address, a resource file composed of each reusable base file is constructed. Under the address of the simulation container, a symbolic link is created between the resource directory of the autonomous driving simulation task and the resource file to complete the initialization of the autonomous driving simulation task, so that the autonomous driving simulation task can use the resource data under the resource directory to perform simulation in the simulation container.

2. The method of claim 1, wherein, Based on the existing reusable base files and key-value pair nested file list under the local cache address, each reusable base file to be downloaded is determined, including: For each filename in the nested key-value file list, if the reusable base file does not exist in the local cache address, then the reusable base file is determined to be the reusable base file to be downloaded. Combine each reusable base file to be downloaded to obtain individual reusable base files to be downloaded.

3. The method of claim 2, wherein, The list of nested key-value pairs also includes download status information for each reusable base file; After downloading the reusable basic file to be downloaded to the local cache address, the method further includes: Based on each newly added reusable base file to be downloaded under the local cache address, update the download status information corresponding to the reusable base file to be downloaded in the key-value pair nested file list to obtain the updated key-value pair nested file list.

4. The method of claim 2, wherein, Also includes: For each filename in the nested key-value file list, if the reusable base file exists at the local cache address, then the reusable base file is determined to be a reusable base file that does not need to be downloaded.

5. The method of claim 1, wherein, Each reusable base file has a corresponding MD5 value in its filename; Based on the existing reusable base files and key-value pair nested file list under the local cache address, each reusable base file to be downloaded is determined, including: For each filename in the nested key-value file list, if there is no filename MD5 value that matches the MD5 value among the existing reusable base files under the local cache address, then the reusable base file corresponding to the filename with the MD5 value is determined to be the reusable base file to be downloaded. Combine each reusable base file to be downloaded to obtain individual reusable base files to be downloaded.

6. The method according to any one of claims 1 to 5, characterized in that, The autonomous driving simulation task is compiled to obtain a list of nested key-value files, including: The autonomous driving simulation task is compiled to determine the reusable basic file information for simulating the autonomous driving simulation task; Based on the information of each reusable base file, construct a list of nested key-value pairs.

7. An apparatus for initializing an autonomous driving simulation task, comprising: include: The compilation unit is used to acquire an autonomous driving simulation task and compile the autonomous driving simulation task to obtain a list of key-value nested files, wherein the list of key-value nested files includes the filenames of each reusable base file used to simulate the autonomous driving simulation task. The address attaching unit is used to create a local cache address and attach the local cache address to the simulation container address that simulates the autonomous driving simulation task. The reusable file download unit is used to determine each reusable basic file to be downloaded based on the file names of each existing reusable basic file and key-value pair nested file list under the local cache address when the autonomous driving simulation task is initialized, and download each reusable basic file to be downloaded to the local cache address. The resource file construction unit is used to construct a resource file composed of each reusable basic file when each reusable basic file corresponding to each file name in the nested file list of key-value pairs exists under the local cache address. The symbolic link unit is used to create a symbolic link between the resource directory for simulating the autonomous driving simulation task and the resource file at the address of the simulation container, thereby completing the initialization of the autonomous driving simulation task so that the autonomous driving simulation task can use the resource data in the resource directory to perform simulation in the simulation container.

8. The apparatus of claim 7, wherein, The reused file download unit includes: The file to be downloaded determination unit is used to determine the reusable basic file to be downloaded if there is no reusable basic file under the local cache address for each file name corresponding to the reusable basic file in the nested file list of key-value pairs. The file combination unit is used to combine each reusable basic file to be downloaded to obtain various reusable basic files to be downloaded.

9. An apparatus for initializing an autonomous driving simulation task, comprising: Including memory and processor; The memory is used to store programs; The processor is configured to execute the program to implement the steps of the initialization method for the autonomous driving simulation task as described in any one of claims 1-6.

10. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the initialization method for the autonomous driving simulation task as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Cross-platform simulation system suitable for multiple graphic interfaces

    CN115983047A

  • Task scheduling system and method for automatic driving cloud simulation

    CN116302430A