An automatic driving data recording method, device, equipment and storage medium

By creating a configuration file to configure the recording program, the flexibility issue of autonomous driving data recording was solved, enabling the recording of autonomous driving data in multiple formats and providing data support for algorithm updates and iterations.

CN116301637BActive Publication Date: 2026-11-20GUANGZHOU WERIDE TECH LTD CO
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310285539.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2026-11-20
Estimated Expiration
2043-03-22

AI Technical Summary

Technical Problem

Existing technologies are insufficient for flexibly configuring data recording during autonomous driving, and cannot effectively support the updating and iteration of autonomous driving algorithms.

Method used

By creating a configuration file, you can configure the recording topic, write buffer size, output directory, splitting time, and disk preparation script location of the recording program. Then, start the recording program and load the configuration file to achieve flexible configuration of the recording program.

Benefits of technology

Without modifying the recording program code, flexible configuration of recorded autonomous driving data was achieved, providing data support for the updating and iteration of autonomous driving algorithms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116301637B_ABST
    Figure CN116301637B_ABST
Patent Text Reader

Abstract

The application discloses an automatic driving data recording method and device, equipment and a storage medium. The method comprises the following steps: creating a configuration file according to an automatic driving scene; the configuration items of the configuration file comprise a recording topic, a write cache size, an output directory, a split time and a disk preparation script position; starting a recording program and loading the configuration file; configuring the recording program according to the configuration items of the configuration file; and starting to record automatic driving data. The automatic driving data collection is realized through the recording program, flexible configuration can be realized to record the automatic driving data, and data guarantee is provided for the update iteration of an automatic driving algorithm.
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 in particular to an autonomous driving data recording method, apparatus, device, and storage medium. Background Technology

[0002] Autonomous driving programs generate a large amount of data during operation. This data is transferred between different modules or broadcast for monitoring via subscription when needed. In order to save necessary data and support data collection for problematic scenarios in autonomous driving road tests, a method for recording autonomous driving data is required. Summary of the Invention

[0003] This application provides an autonomous driving data recording method, apparatus, device, and storage medium, which are used to collect autonomous driving data through a recording program. The recording of autonomous driving data can be flexibly configured to provide data support for the updating and iteration of autonomous driving algorithms.

[0004] In view of the above, the first aspect of this application provides a method for recording autonomous driving data, comprising:

[0005] A configuration file is created based on the autonomous driving scenario. The configuration items of the configuration file include recording topic, write cache size, output directory, splitting time, and disk preparation script location.

[0006] The recording program is started, and the configuration file is loaded;

[0007] Configure the recording program according to the configuration items in the configuration file;

[0008] Start recording autonomous driving data.

[0009] Optionally, the configuration items in the configuration file may also include:

[0010] Whether to monitor the running status of the recording program.

[0011] Optionally, the configuration items in the configuration file may also include:

[0012] Whether to start the cleanup sub-thread and the location of the cleanup program.

[0013] Optionally, the method further includes:

[0014] If the configuration file includes monitoring the running status of the recording program, then the running status of the recording program is reported to the monitoring module of the autonomous driving system.

[0015] Optionally, the method further includes:

[0016] If the configuration file includes the location for starting the cleanup sub-thread and the cleanup program, then the cleanup sub-thread is started to monitor the disk space size. When the disk space size is lower than a preset threshold, the cleanup program is called according to the location of the cleanup program to perform disk cleanup.

[0017] Optionally, the method further includes:

[0018] Obtain the return code of the cleanup sub-thread and report the relevant error to the monitoring module of the autonomous driving system.

[0019] Optionally, configuring the recording program according to the configuration items in the configuration file includes:

[0020] Configure the recording topic, write buffer size, output directory, and splitting time of the recording program according to the configuration items in the configuration file;

[0021] Run the disk preparation script according to the location of the disk preparation script in the configuration file to determine whether the output directory exists on the disk and whether the recording program has disk write permissions.

[0022] Optionally, the step of running the disk preparation script according to the location of the disk preparation script in the configuration file, and determining whether the output directory exists on the disk and whether the recording program has disk write permissions, includes:

[0023] Run the disk preparation script corresponding to the location of the disk preparation script in the configuration file, and obtain the output directory of the recording program;

[0024] Check if the output directory exists on the disk. If it does, check if the recording program has write permissions to the output directory.

[0025] If so, create a folder in the output directory.

[0026] A second aspect of this application provides an autonomous driving data recording device, comprising:

[0027] A creation unit is used to create a configuration file based on the autonomous driving scenario. The configuration items of the configuration file include recording topic, write cache size, output directory, splitting time, and disk preparation script location.

[0028] A startup unit is used to start the recording program and load the configuration file;

[0029] A configuration unit is used to configure the recording program according to the configuration items in the configuration file;

[0030] The recording unit is used to initiate the recording of autonomous driving data.

[0031] A third aspect of this application provides an autonomous driving data recording device, the device including a processor and a memory;

[0032] The memory is used to store program code and transmit the program code to the processor;

[0033] The processor is used to execute any one of the autonomous driving data recording methods described in the first aspect according to the instructions in the program code.

[0034] A fourth aspect of this application provides a computer-readable storage medium for storing program code that, when executed by a processor, implements the autonomous driving data recording method described in any of the first aspects.

[0035] As can be seen from the above technical solutions, this application has the following advantages:

[0036] This application provides a method for recording autonomous driving data, including: creating a configuration file according to an autonomous driving scenario, wherein the configuration items of the configuration file include recording topic, write cache size, output directory, splitting time, and disk preparation script location; starting the recording program and loading the configuration file; configuring the recording program according to the configuration items of the configuration file; and starting to record autonomous driving data.

[0037] In this application, without modifying the recording program code, it is only necessary to create configuration files according to different scenarios. After starting the recording program, the configuration files are loaded, and the recording program is simply configured according to the configuration items in the configuration files. This allows the recording program to record autonomous driving data according to the configuration files. It can record autonomous driving data generated by the autonomous driving program in various forms according to flexible configuration, providing data assurance for the update and iteration of autonomous driving algorithms. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1 A flowchart illustrating an autonomous driving data recording method provided in this application embodiment;

[0040] Figure 2 This is a schematic diagram of an autonomous driving data recording device provided in an embodiment of this application. Detailed Implementation

[0041] This application provides an autonomous driving data recording method, apparatus, device, and storage medium, which are used to collect autonomous driving data through a recording program. The recording of autonomous driving data can be flexibly configured to provide data support for the updating and iteration of autonomous driving algorithms.

[0042] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0043] For easier understanding, please refer to Figure 1 This application provides an autonomous driving data recording method, including:

[0044] Step 101: Create a configuration file based on the autonomous driving scenario. The configuration items of the configuration file include recording topic, write cache size, output directory, splitting time, and disk preparation script location.

[0045] In this embodiment, a C++-based software application (adv_recorder) is used as the recording program to record autonomous driving data. The necessary configuration items are extracted according to the autonomous driving scenario, and a configuration file is created for the recording program. This allows the autonomous driving data generated by the autonomous driving program to be recorded in various forms according to flexible configuration, for subsequent sampling and analysis.

[0046] In this embodiment of the application, the configuration items of the configuration file created for the recording program may include:

[0047] Recording Topics: Topics are semantic categories of messages. A list of recording topics can be created, which defines what topics will be written to the output file of the recording program. These topics are transmitted or broadcast between various modules of autonomous vehicles, such as vehicle positioning and obstacle detection.

[0048] Write buffer size: The size of the write buffer of the recording program;

[0049] Output directory: The output directory when the recording program writes output files to the disk;

[0050] Output filename regular expression: The naming rules for the output files written by the recording program;

[0051] Segmentation time: Whether the output file is segmented, and the specific segmentation time (e.g., segmenting once every half hour), to avoid generating a very large output file. This parameter is passed to the recording program at startup.

[0052] Disk preparation script location: The location of the disk preparation script that is executed before recording to prepare the disk for recording.

[0053] Furthermore, the configuration items of the configuration file in this embodiment may also include:

[0054] Whether to monitor the recording program's running status: An autonomous driving system has a monitoring module. This configuration option affects whether the current running status of the recording program is reported to it. You can choose whether to monitor the recording program's running status based on its importance. If the health of the current recording program will affect the safety monitoring of the autonomous driving system (i.e., the current recording program is important), then you choose to monitor its running status. If the health of the current recording program will not affect the safety monitoring of the autonomous driving system (i.e., the current recording program is not important), then you choose not to monitor its running status. Running status includes "Started," "Running," and "Terminated."

[0055] Enable the cleanup sub-thread: Configure whether the current recording program needs to monitor the disk space it uses and clean up old files when necessary.

[0056] Location of the cleanup program: The location of the cleanup program used by the cleanup sub-thread. When the configuration requires starting the cleanup sub-thread, the location of the cleanup program needs to be configured in the configuration file beforehand. This way, after loading the configuration file, the cleanup program can be invoked based on its location to perform disk cleanup, ensuring the safety of disk space.

[0057] Step 102: Start the recording program and load the configuration file.

[0058] After configuring the configuration file, start the recording program on the vehicle side, load the configuration file, read the contents of the configuration file, and parse it.

[0059] Step 103: Configure the recording program according to the configuration items in the configuration file.

[0060] After parsing the configuration file, the recording program is configured according to the configuration items in the configuration file. Specifically, the recording topic, write buffer size, output directory, and splitting time of the recording program are configured according to the configuration items in the configuration file; the disk preparation script is run according to the location of the disk preparation script in the configuration file to determine whether the output directory exists on the disk and whether the recording program has disk write permissions.

[0061] Specifically, the disk preparation script is run according to the location of the disk preparation script in the configuration file to determine whether the disk has an output directory and whether the recording program has disk write permissions.

[0062] Run the disk preparation script corresponding to the location of the disk preparation script in the configuration file, and obtain the output directory of the recording program;

[0063] Check if the output directory exists on the disk. If it does, check if the recording program has write permissions to the output directory.

[0064] If so, create a folder in the output directory.

[0065] After configuring the recording topic, write buffer size, output directory, output filename regular expression, and splitting time according to the configuration file, run the disk preparation script corresponding to the disk preparation script location in the configuration file to obtain the output directory of the recording program; then check if the output directory exists on the disk. If the output directory exists on the disk, further check if the recording program has write permissions to the output directory. If the recording program has write permissions to the output directory, create the folder required by the recording program in the output directory. When creating the folder, name the folder according to the output filename regular expression.

[0066] Furthermore, if the configuration file includes monitoring the recording program's running status, then the recording program's running status will be reported to the autonomous driving system's monitoring module. It's understandable that the recording program's running status reporting begins as soon as it starts. Monitoring the recording program's running status helps prevent any impact on the health of the autonomous driving system.

[0067] Furthermore, if the configuration file includes the location to start the cleanup sub-thread and the cleanup program, then after disk preparation is complete, the cleanup sub-thread will be started to monitor the disk space. When the disk space is lower than a preset threshold, the cleanup program will be invoked according to its location to perform disk cleanup. During cleanup, priority can be given to deleting files that were created the oldest, files that have not been accessed for the longest time, or files with the least access frequency. By starting the cleanup sub-thread to monitor the disk space and invoking the cleanup program to perform disk space cleanup, the safety of disk space is ensured, avoiding impact on the normal operation of the autonomous driving program.

[0068] Step 104: Start recording autonomous driving data.

[0069] After configuring the recording program, start recording autonomous driving data. During the recording process, obtain the return code of the cleanup sub-thread; for example, 0 indicates successful cleanup, 1 indicates high disk usage, and 2 indicates a cleanup program error. Continuously check the return codes of the cleanup sub-thread and report relevant errors to the monitoring module of the autonomous driving system for timely handling to avoid affecting the safety of the autonomous driving system.

[0070] In this embodiment, without modifying the recording program code, it is only necessary to create configuration files according to different scenarios. After starting the recording program, the configuration files are loaded, and the recording program is simply configured according to the configuration items in the configuration files. This allows the recording program to record autonomous driving data according to the configuration files. It can record autonomous driving data generated by the autonomous driving program in various forms according to flexible configuration, providing data assurance for the update and iteration of autonomous driving algorithms.

[0071] The above is an embodiment of an autonomous driving data recording method provided by this application. The following is an embodiment of an autonomous driving data recording device provided by this application.

[0072] Please refer to Figure 2 This application provides an autonomous driving data recording device, comprising:

[0073] The creation unit is used to create configuration files based on autonomous driving scenarios. The configuration items of the configuration file include recording topic, write cache size, output directory, splitting time, and disk preparation script location.

[0074] The startup unit is used to start the recording program and load the configuration file.

[0075] The configuration unit is used to configure the recording program according to the configuration items in the configuration file;

[0076] The recording unit is used to initiate the recording of autonomous driving data.

[0077] In this embodiment, a C++-based software application (adv_recorder) is used as the recording program to record autonomous driving data. Necessary configuration items are extracted based on the autonomous driving scenario, and a configuration file is created for the recording program through a creation unit. This allows for flexible configuration to record autonomous driving data generated by the autonomous driving program in various formats for subsequent sampling and analysis. The configuration items in the configuration file may include recording topic, write buffer size, output directory, output filename regular expression, splitting time, and disk preparation script location, etc.

[0078] As a further improvement, the configuration options in the configuration file also include:

[0079] Whether to monitor the running status of the recording program.

[0080] The autonomous driving system includes a monitoring module. This configuration option affects whether the current recording program's running status is reported to it. The decision to monitor the recording program's running status depends on its importance. If the health of the current recording program affects the safety monitoring of the autonomous driving system (i.e., the current recording program is important), then monitoring its running status is selected. If the health of the current recording program does not affect the safety monitoring of the autonomous driving system (i.e., the current recording program is not important), then not monitoring its running status is selected. Running status includes "Started," "Running," and "Terminated."

[0081] As a further improvement, the configuration options in the configuration file also include:

[0082] Whether to start the cleanup sub-thread and the location of the cleanup program.

[0083] Configure whether the current recording program should monitor the disk space it uses and clean up old files when necessary. When configuring to start a cleanup sub-thread, the location of the cleanup program needs to be configured in the configuration file beforehand. This way, after loading the configuration file, the cleanup program can be invoked based on its location to perform disk cleanup, ensuring the safety of disk space.

[0084] After creating the configuration file, the creation unit starts the recording program on the vehicle side, loads the configuration file, reads its contents, and parses them. The configuration unit configures the recording program according to the configuration items in the configuration file.

[0085] As a further improvement, the configuration unit is specifically used for:

[0086] Configure the recording topic, write buffer size, output directory, and splitting time of the recording program according to the configuration items in the configuration file;

[0087] Run the disk preparation script according to the location of the disk preparation script in the configuration file to determine whether the disk has an output directory and whether the recording program has disk write permissions.

[0088] The configuration unit sets the recording topic, write buffer size, output directory, output filename regular expression, and splitting time according to the configuration file. It then runs the disk preparation script based on the location specified in the configuration file to determine if the output directory exists on the disk and whether the recording program has write permissions. Specifically, the configuration unit runs the disk preparation script corresponding to the location specified in the configuration file, obtains the recording program's output directory, checks if the output directory exists on the disk, and if so, checks if the recording program has write permissions to it; if so, it creates a folder in the output directory.

[0089] As a further improvement, the device also includes:

[0090] The first reporting unit is used to report the running status of the recording program to the monitoring module of the autonomous driving system if the configuration file includes the running status of the recording program.

[0091] The first reporting unit begins reporting the recording program's operational status as soon as the startup unit initiates the recording program. This monitoring of the recording program's operational status helps prevent any impact on the health of the autonomous driving program.

[0092] As a further improvement, the device also includes:

[0093] The cleanup unit, if specified in the configuration file, initiates a cleanup sub-thread to monitor disk space. When disk space falls below a preset threshold, it invokes the appropriate cleanup program based on its location to perform disk cleanup. During cleanup, priority can be given to deleting files created the oldest, files that haven't been accessed for the longest time, or files accessed least frequently. By monitoring disk space through the cleanup sub-thread and invoking the cleanup program, disk space security is ensured, preventing disruption to the normal operation of the autonomous driving program.

[0094] As a further improvement, the device also includes:

[0095] The second reporting unit is used to obtain the return code of the cleanup sub-thread and report the relevant errors to the monitoring module of the autonomous driving system.

[0096] After configuring the recording program, the recording unit starts recording autonomous driving data. During the recording process, the second reporting unit obtains the return code of the cleanup sub-thread. For example, 0 indicates successful cleanup, 1 indicates high disk usage, and 2 indicates an error in the cleanup program. The second reporting unit continuously checks the return code of the cleanup sub-thread and reports relevant errors to the monitoring module of the autonomous driving system for timely handling to avoid affecting the safety of the autonomous driving system.

[0097] In this embodiment, without modifying the recording program code, it is only necessary to create configuration files according to different scenarios. After starting the recording program, the configuration files are loaded, and the recording program is simply configured according to the configuration items in the configuration files. This allows the recording program to record autonomous driving data according to the configuration files. It can record autonomous driving data generated by the autonomous driving program in various forms according to flexible configuration, providing data assurance for the update and iteration of autonomous driving algorithms.

[0098] This application embodiment also provides an autonomous driving data recording device, the device including a processor and a memory;

[0099] The memory is used to store program code and transfer the program code to the processor;

[0100] The processor is used to execute the autonomous driving data recording method in the foregoing method embodiments according to the instructions in the program code.

[0101] This application also provides a computer-readable storage medium for storing program code, which, when executed by a processor, implements the autonomous driving data recording method in the aforementioned method embodiments.

[0102] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described apparatus and unit can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0103] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0104] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0105] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0106] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0107] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0108] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for executing all or part of the steps of the methods described in the various embodiments of this application through a computer device (which may be a personal computer, server, or network device, etc.). The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.

[0109] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for recording autonomous driving data, characterized in that, include: A configuration file is created based on the autonomous driving scenario. The configuration items of the configuration file include recording topic, write cache size, output directory, splitting time, and disk preparation script location. Start the recording program and load the configuration file; Configure the recording program according to the configuration items in the configuration file, including: Configure the recording topic, write cache size, output directory, and splitting time of the recording program according to the configuration items in the configuration file; run the disk preparation script corresponding to the disk preparation script position in the configuration file to obtain the output directory of the recording program; check whether the output directory exists on the disk; if it exists, check whether the recording program has write permissions to the output directory; if it does, create a folder in the output directory. Start recording autonomous driving data.

2. The autonomous driving data recording method according to claim 1, characterized in that, The configuration items in the configuration file also include: Whether to monitor the running status of the recording program.

3. The autonomous driving data recording method according to claim 1, characterized in that, The configuration items in the configuration file also include: Whether to start the cleanup sub-thread and the location of the cleanup program.

4. The autonomous driving data recording method according to claim 2, characterized in that, The method further includes: If the configuration file includes monitoring the running status of the recording program, then the running status of the recording program is reported to the monitoring module of the autonomous driving system.

5. The autonomous driving data recording method according to claim 3, characterized in that, The method further includes: If the configuration file includes the location for starting the cleanup sub-thread and the cleanup program, then the cleanup sub-thread is started to monitor the disk space size. When the disk space size is lower than a preset threshold, the cleanup program is called according to the location of the cleanup program to perform disk cleanup.

6. The autonomous driving data recording method according to claim 5, characterized in that, The method further includes: Obtain the return code of the cleanup sub-thread and report the relevant error to the monitoring module of the autonomous driving system.

7. An autonomous driving data recording device, characterized in that, include: A creation unit is used to create a configuration file based on the autonomous driving scenario. The configuration items of the configuration file include recording topic, write cache size, output directory, splitting time, and disk preparation script location. A startup unit is used to start the recording program and load the configuration file; A configuration unit, used to configure the recording program according to the configuration items of the configuration file, includes: Configure the recording topic, write cache size, output directory, and splitting time of the recording program according to the configuration items in the configuration file; run the disk preparation script corresponding to the disk preparation script position in the configuration file to obtain the output directory of the recording program; check whether the output directory exists on the disk; if it exists, check whether the recording program has write permissions to the output directory; if it does, create a folder in the output directory. The recording unit is used to initiate the recording of autonomous driving data.

8. An autonomous driving data recording device, characterized in that, The device includes a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the autonomous driving data recording method according to any one of claims 1-6 according to the instructions in the program code.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store program code, which, when executed by a processor, implements the autonomous driving data recording method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Data acquisition method and device

    CN115617825A