Data playback method and apparatus, electronic device, and storage medium

By configuring scene data addresses and remapping directories for sensors, targeted publishing of sensor data is achieved, solving the problems of cumbersome operation and poor reliability in the verification of multi-functional modules, and improving the flexibility and reliability of testing.

CN123157618APending Publication Date: 2026-11-24NETEASE LINGDONG (HANGZHOU) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611416925.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-11
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing data playback solutions are cumbersome to operate during multi-functional module verification, requiring manual signal blocking, resulting in poor reliability and insufficient flexibility, making it difficult to simulate scenarios with abnormal signals and changes in local operating conditions.

Method used

Configure scene data addresses for each sensor, establish address mapping relationships through data playback directory and remapping directory to achieve targeted publishing of sensor data, select sensor data to participate in playback and configure data routing targets as needed, avoiding code modification or recompilation.

Benefits of technology

It reduces manual operation costs, minimizes human error, improves the reliability and flexibility of functional module testing, supports rapid configuration of different signal combinations for comparative testing, and expands the coverage of test scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157618A_ABST
    Figure CN123157618A_ABST
Patent Text Reader

Abstract

This application relates to the field of functional verification technology, and discloses a data playback method, apparatus, electronic device, and storage medium. The method includes: acquiring raw scene data collected by various sensors; configuring a corresponding scene data address for the raw scene data of any sensor; determining a data playback directory and a remapping directory corresponding to the target functional module when testing a target functional module; the data playback directory includes the scene data addresses of the target sensors associated with the target functional module, and the remapping directory includes the data input addresses subscribed by the target functional module; establishing an address mapping relationship between the data playback directory and the remapping directory; acquiring a first data frame according to the data playback directory; and publishing the first data frame to the remapping directory corresponding to the data playback directory according to the address mapping relationship. This application utilizes the data playback directory and the remapping directory to achieve targeted data delivery, thereby improving reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of functional verification technology, specifically to data playback methods, apparatus, electronic devices, and storage media. Background Technology

[0002] In the development and testing of intelligent control algorithms, verifying the algorithm's effectiveness is a crucial step. Currently, scenario data playback is generally used to ensure verification efficiency.

[0003] Since the actual verification process usually involves multiple functional modules, but the relevant data playback scheme can only use a specific single module as the verification object; when performing data playback on multiple functional modules, it is necessary to manually block irrelevant signals based on the actual situation, which is cumbersome and may affect reliability due to manual intervention. Summary of the Invention

[0004] In view of this, this application provides a data playback method, apparatus, electronic device, and storage medium to solve the problems of cumbersome operation and poor reliability in the data playback process.

[0005] Firstly, this application provides a data playback method, the method comprising: Acquire raw scene data collected by each sensor; For any of the aforementioned sensors, a corresponding scene data address is configured for the original scene data; the scene data address is used to transmit data frames in the original scene data. When testing a target functional module, determine the data playback directory and remapping directory corresponding to the target functional module; the data playback directory includes the scene data addresses of the target sensors associated with the target functional module, and the remapping directory includes the data input addresses corresponding to each target sensor subscribed to by the target functional module; Establish an address mapping relationship between the data playback directory and the remapping directory; The first data frame is obtained according to the data playback directory; The first data frame is published to the remapping directory corresponding to the data playback directory according to the address mapping relationship.

[0006] Secondly, this application provides a data playback device, the device comprising: The acquisition module is used to acquire the raw scene data collected by each sensor; The configuration module is used to configure a corresponding scene data address for the original scene data for any of the sensors; the scene data address is used to transmit data frames in the original scene data. The processing module is used to determine the data playback directory and remapping directory corresponding to the target functional module when testing the target functional module; the data playback directory includes the scene data addresses of the target sensors associated with the target functional module, and the remapping directory includes the data input addresses corresponding to each target sensor subscribed by the target functional module; and to establish an address mapping relationship between the data playback directory and the remapping directory. The playback module is used to obtain the first data frame according to the data playback directory; The publishing module is used to publish the first data frame to the remapping directory corresponding to the data playback directory according to the address mapping relationship.

[0007] Thirdly, this application provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the data playback method described in the first aspect or any corresponding embodiment.

[0008] Fourthly, this application provides a computer-readable storage medium storing computer instructions for causing a computer to execute the data playback method described in the first aspect or any corresponding embodiment thereof.

[0009] Fifthly, this application provides a computer program product, including computer instructions for causing a computer to execute the data playback method described in the first aspect or any corresponding embodiment thereof.

[0010] The data playback method provided in this application configures scene data addresses for the original scene data of each sensor, and configures a data playback directory on demand based on these scene data addresses. This allows selection of sensor data to participate in playback, and the routing target of the data is defined through a remapping directory. The two work together to achieve targeted distribution of sensor data, enabling the tested functional module to obtain the sensor data it needs. This embodiment uses the data playback directory to determine which data participates in playback, and uses the remapping directory as a data routing table to determine which data input address the playback data is published to. This achieves targeted data delivery. This process does not require code modification or recompilation, reducing manual operation costs and human error, providing reliable data support for functional module algorithm optimization, and improving the reliability of functional module testing. Attached Figure Description

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

[0012] Figure 1 This is a schematic diagram illustrating an application scenario according to an embodiment of this application; Figure 2 This is a schematic flowchart of a first method for data playback according to an embodiment of this application; Figure 3 This is a schematic diagram of a second process for a data playback method according to an embodiment of this application; Figure 4 This is a schematic diagram of a simulation model according to an embodiment of this application; Figure 5 This is a comparative diagram of attitude data according to an embodiment of this application; Figure 6 This is a structural block diagram of a data playback device according to an embodiment of this application; Figure 7 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0013] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, 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, 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.

[0014] It is understood that before using the technical solutions disclosed in the various embodiments of this application, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this application in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0015] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0016] Robots, autonomous vehicles and other intelligent devices need to be configured with a variety of intelligent control algorithms. Verifying the effectiveness of algorithm optimization or bug fixing is a key step in the algorithm development and testing process.

[0017] Traditionally, testing involves reconstructing the operating conditions on-site, a cumbersome and time-consuming process. To improve efficiency, a scenario data replay method is typically used: first, scenario data from the problem site is collected, then the data is re-input into the software module. By comparing the output differences before and after software optimization, the effectiveness of the optimization conclusions can be determined. This replay method relies on real-world scenario data, eliminating the need to repeatedly build physical test environments. This not only significantly reduces testing costs but also accurately reproduces actual operating conditions, resulting in a marked improvement in the accuracy of verification results. It has gradually become the mainstream method for verifying algorithm effectiveness.

[0018] The relevant data playback scheme primarily verifies single modules, typically implementing frame-by-frame playback by sequentially connecting to module interfaces according to timestamp order. If multi-functional module playback is involved, it's necessary to manually mask some signals or construct fault signals, making the process quite cumbersome.

[0019] For example, robot-related functional modules include perception modules, point cloud stitching modules, localization modules, planning modules, and control modules. Different playback data may be needed when verifying different functional modules.

[0020] Focusing solely on a single module for playback results in limited module compatibility. When dealing with multi-module collaborative scenarios, manual signal masking or fault diagnosis signal construction is required, increasing manual operation costs and increasing the risk of errors introduced by manual intervention, thus reducing test reliability. Furthermore, the data playback scheme requires unified operation of all signals, making precise control of specific signals impossible. For example, it struggles to simulate scenarios with abnormal signals or localized changes in operating conditions, limiting test scenario coverage and flexibility.

[0021] As one optional application scenario in the embodiments of this application, such as Figure 1 As shown, application 101 is installed in terminal device 110, and user 130 can interact with application 101 through terminal device 110 and / or access device of terminal device 110.

[0022] For example, application 101 can be arbitrary. For instance, application 101 could be functional verification software or simulation software, etc. Figure 1 In the application scenario shown, if application 101 is active, the terminal device 110 can display the interface 102 of application 101. The interface 102 may include various pages that application 101 can provide, such as interactive pages, settings pages, query pages, etc.

[0023] In some embodiments, terminal device 110 is communicatively connected to server 120 to provide services to application 101. Terminal device 110 may be a mobile terminal, fixed terminal, or portable terminal, including but not limited to mobile phones, desktop computers, laptop computers, multimedia tablets, e-book devices, gaming devices, or any combination thereof, including accessories and peripherals of these devices or any combination thereof. In some embodiments, terminal device 110 may also support any type of interface, and server 120 may be various types of computing systems or servers capable of providing computing power, including but not limited to mainframes, edge computing nodes, and computing devices in cloud environments.

[0024] It should be noted that, Figure 1 This is merely an example of an application scenario and does not limit the scope of protection of this application.

[0025] This application provides a data playback method that configures scene data addresses for the raw scene data of each sensor, configures a data playback directory on demand based on these scene data addresses, and allows selection of sensor data to participate in playback. A remapping directory is used to define the data routing target. These two methods work together to achieve targeted distribution of sensor data, enabling the tested functional module to obtain the sensor data it needs. This embodiment utilizes the data playback directory to determine which data participates in playback and uses the remapping directory as a data routing table to determine which data input address the playback data is published to, achieving targeted data delivery. This process requires no code modification or recompilation, reducing manual operation costs and human error, providing reliable data support for functional module algorithm optimization, and improving the reliability of functional module testing.

[0026] According to an embodiment of this application, a data playback method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0027] This embodiment provides a data playback method that can be used in the aforementioned terminal device. Figure 2 This is a flowchart of a data playback method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps.

[0028] Step S201: Obtain the raw scene data collected by each sensor.

[0029] In this embodiment, intelligent devices such as robots and autonomous vehicles are equipped with multiple sensors, such as lidar, cameras, millimeter-wave radar, and IMU (Inertial Measurement Unit). Accordingly, each sensor can collect corresponding sensor data during operation. This sensor data is relevant data of the scene in which the intelligent device is located, and this sensor data is collected raw and does not require complex processing (for example, no processing at all, or simple filtering, outlier removal, and other preprocessing can be performed). Therefore, the collected sensor data is called raw scene data.

[0030] If a smart device includes data from multiple sensors such as LiDAR, camera, millimeter-wave radar, and IMU, it can collect various raw scene data, including LiDAR data (point cloud data), camera data (image data, video data), millimeter-wave data (also point cloud data), and IMU data.

[0031] Furthermore, smart devices may contain multiple sensors of the same type, each positioned in different locations. For example, cameras and millimeter-wave radars can be placed in different directions such as the front, rear, left, and right of an autonomous vehicle; each joint of a robot can have an independent IMU. Each sensor independently collects corresponding raw scene data. For instance, if a smart device contains four cameras, each camera can collect and generate corresponding raw scene data, and each set of raw scene data can represent the image captured by its respective camera.

[0032] Furthermore, for a particular sensor, multiple raw scene data can be set for it. For example, the raw sensor data collected by the sensor can be converted into different formats or multiple raw scene data for different users. It is also possible to merge raw sensor data collected by multiple sensors into a set of raw scene data, such as stitching data collected by multiple cameras into a panoramic image.

[0033] Step S202: For any sensor, configure a corresponding scene data address for the original scene data; the scene data address is used to transmit data frames in the original scene data.

[0034] In this embodiment, the collected data is processed on a sensor-by-sensor basis. Since sensor data (i.e., original scene data) from each sensor needs to be collected over a period of time during data playback, the original scene data for any sensor consists of multiple data frames, which include data corresponding to each sampling time. Each sampling time corresponds to one frame, so for ease of description, the data from each sampling time is referred to as a "data frame".

[0035] Furthermore, for any sensor, a scene data address is configured for it. This scene data address is used to carry and transmit each data frame in the original scene data so as to enable data addressing.

[0036] The scene data address can be a storage address for the original scene data. Based on this address, each data frame in the original scene data can be retrieved. Subsequently, the data frames at this address can be directly read and transmitted to downstream modules that need to use the original scene data. Alternatively, the scene data address can be an identifier used to publish each data frame in the original scene data. In other words, the scene data address is a topic used by the sensor to publish the original scene data. Downstream modules that subscribe to this topic can obtain the original scene data and achieve data transmission.

[0037] In some examples, this can be implemented using a publish-subscribe messaging middleware based on ROS (Robot Operating System). Each sensor is configured with a corresponding publishing topic, which serves as the scene data address for that sensor. This scene data address can publish various data frames from the original scene data in the form of messages. Specifically, each data frame in the original scene data can be published sequentially. By subscribing to the scene data address (Topic) using the method provided in this embodiment, the published data frames can be obtained.

[0038] Step S203: When testing the target functional module, determine the data playback directory and remapping directory corresponding to the target functional module; the data playback directory includes the scene data addresses of the target sensors associated with the target functional module, and the remapping directory includes the data input addresses corresponding to each target sensor subscribed to by the target functional module.

[0039] For a specific functional module in a smart device, two directories can be configured: a data playback directory and a remapping directory. For ease of description, the functional module currently being tested will be referred to as the target functional module.

[0040] In this embodiment, the data playback directory is a directory used to record the addresses of required data. It acts as a whitelist for data selection, determining which data from the original scene data participates in playback. This data playback directory includes the scene data addresses of the target sensors associated with the target functional module. Specifically, it identifies the target sensors associated with the target functional module; that is, which sensor data the target functional module needs to perform its functions. These sensors can all be considered target sensors. For sensor data that the target functional module does not need, its corresponding scene data addresses will not be configured in the data playback directory. This data playback directory is used to implement message selection, meaning only data located in the data playback directory is selected for data playback.

[0041] Each target functional module typically has an address configured to correspond to its input data, known as the data input address. Furthermore, each sensor has its own corresponding data input address. In the ROS architecture, this data input address is the Topic that the target functional module pre-subscribes to. After publishing sensor data to the data input address, the target functional module that has subscribed to that address can obtain the corresponding sensor data.

[0042] Since the scene data address corresponding to the sensor is generally different from the data input address subscribed to by the target functional module—for example, for the same sensor, the data input addresses configured in the functional modules of different smart devices (such as different robots) may be different—it is possible to obtain the various data input addresses subscribed to by the target functional module to form a corresponding address set, i.e., a remapping directory. Using this remapping directory to define the target Topic name (data input address) for replay data publication, it is possible to determine which Topic the replay data will be published to.

[0043] This remapping directory ensures that the topic name for replay data publication matches the topic name subscribed to by the target functional module, achieving route alignment. Furthermore, this remapping directory allows for flexible configuration of the mapping relationship between the two addresses (i.e., the address mapping relationship described below), catering to various input requirements of functional modules.

[0044] For each functional module, the data playback directory and remapping directory can be pre-configured. When performing functional testing on the functional module, the configured data playback directory and remapping directory can be used directly.

[0045] Step S204: Establish an address mapping relationship between the data playback directory and the remapping directory.

[0046] In this embodiment, remapping the scene data addresses in the data playback directory with the data input addresses in the remapping directory establishes a corresponding address mapping relationship, i.e., a mapping relationship between scene data addresses and the remapping directory. Through this address mapping relationship, the system can query which Topic in the remapping directory each sensor's data frame should be published to, ensuring that data is accurately delivered to the input interface of the target functional module.

[0047] For example, smart devices are equipped with LiDAR, cameras, millimeter-wave radar, and IMU. Correspondingly, the raw scene data specifically includes: LiDAR data, camera data, millimeter-wave data, and IMU data. For example, the scene data addresses (a type of publishing topic) for each raw scene data are as follows: The scene data address for LiDAR data is: " / lidar / point_cloud".

[0048] The scene data addresses for camera data are " / dev / video4 / raw_compressed" and " / dev / video6 / raw_compressed"; these correspond to data acquired by two different cameras, respectively. It can also include panoramic compressed images resulting from stitching / fusion of multiple images, with scene data addresses such as " / stitch_node / raw_compressed".

[0049] The scene data addresses for millimeter wave data (corresponding to four millimeter wave radars): " / mmwave0 / point_cloud", " / mmwave1 / point_cloud", " / mmwave2 / point_cloud", " / mmwave3 / point_cloud".

[0050] The IMU data's scenario data address is " / joint_states".

[0051] In addition, the raw camera data can be processed in a certain way, such as compression, to form new raw scene data, and the corresponding scene data addresses can be configured: " / dev / video4 / compressed", " / dev / video6 / compressed", " / stitch_node / compressed", etc.

[0052] During data playback, if the data in `raw_compressed` is selected and remapping is used, preprocessing modules such as compression can be bypassed, and the raw monocular image data can be directly fed to the downstream functional module under test (e.g., the perception module) to verify the performance of the corresponding functional algorithm (e.g., the perception algorithm) under the raw image input. If the data in `compressed` is selected, the processing results of the preprocessing module are included. This provides flexibility for module-level on-demand bypass testing.

[0053] For a target functional module that only requires camera data, the scene data address corresponding to the camera data can be configured in the data playback directory of that target functional module. For example, the data playback directory may include: " / dev / video4 / raw_compressed"; " / dev / video6 / raw_compressed"; " / stitch_node / raw_compressed".

[0054] Furthermore, the data input addresses (a type of subscription topic) subscribed to by the target functional module are " / dev / video4 / image", " / dev / video6 / image", and " / camera / stitch_img", respectively. Therefore, the address mapping relationship between the data playback directory and the remapping directory can be represented as follows: " / dev / video4 / raw_compressed"→" / dev / video4 / image"; " / dev / video6 / raw_compressed"→" / dev / video6 / image"; " / stitch_node / raw_compressed"→" / camera / stitch_img".

[0055] Step S205: Obtain the first data frame according to the data playback directory.

[0056] If each scene data address in the data playback directory is a storage address, then the data frame (i.e., the first data frame) in the corresponding original scene data can be obtained by reading that scene data address. Alternatively, if the scene data address is a Topic, each sensor can publish data frames to that scene data address in the form of messages; the system subscribes to each Topic in the data playback directory, and thus can obtain the published data frames (i.e., the first data frame).

[0057] In some examples, a data frame cache space can be set up to cache multiple data frames (such as multiple frames of sensor data over a period of time) for later release.

[0058] Step S206: The first data frame is published to the remapping directory corresponding to the data playback directory according to the address mapping relationship.

[0059] In this embodiment, for a first data frame obtained from a certain scene data address, the data input address (a Topic) corresponding to the scene data address can be determined according to the address mapping relationship described above, and then the first data frame is published to the data input address. Since the target functional module has subscribed to the data input address, it can obtain the published data frame, such as the first data frame, and then use the first data frame to perform its own function.

[0060] For different functional modules, their corresponding data playback directories, remapping directories, and address mapping relationships can be configured as needed to achieve customized data playback. For example, for the perception module, the scene data address of the camera data can be added to the perception module's data playback directory, enabling the perception module to obtain camera data and thus check the rationality of its target detection or scene understanding functions, such as whether there are missed detections or false detections. For the localization module, the scene data address of the IMU data can be added to the perception module's data playback directory, enabling the localization module to obtain IMU data and thus verify its pose estimation function (e.g., vehicle pose, robot joint pose, etc.).

[0061] The data playback method provided in this embodiment configures scene data addresses for the original scene data of each sensor, and configures a data playback directory on demand based on these scene data addresses. This allows selection of sensor data to participate in playback, and the remapping directory defines the data routing target. Together, these two methods achieve targeted distribution of sensor data, enabling the tested functional module to obtain the sensor data it needs. This embodiment uses the data playback directory to determine which data participates in playback, and the remapping directory as a data routing table to determine which data input address the playback data is published to. This achieves targeted data delivery without requiring code modification or recompilation, reducing manual operation costs and human error. It provides reliable data support for functional module algorithm optimization and improves the reliability of functional module testing.

[0062] This embodiment provides a data playback method that can be used in the aforementioned terminal device. Figure 3 This is a flowchart of a data playback method according to an embodiment of this application, such as... Figure 3 As shown, the process includes the following steps.

[0063] Step S301: Obtain the raw scene data collected by each sensor.

[0064] Please see details Figure 2 Step S201 of the illustrated embodiment will not be described again here.

[0065] Step S302: For any sensor, configure a corresponding scene data address for the original scene data; the scene data address is used to transmit data frames in the original scene data.

[0066] Please see details Figure 2 Step S202 of the illustrated embodiment will not be described again here.

[0067] Step S303: When testing the target functional module, determine the data playback directory and remapping directory corresponding to the target functional module; the data playback directory includes the scene data addresses of the target sensors associated with the target functional module, and the remapping directory includes the data input addresses corresponding to each target sensor subscribed to by the target functional module.

[0068] Please see details Figure 2 Step S203 of the illustrated embodiment will not be described again here.

[0069] Step S304: Establish an address mapping relationship between the data playback directory and the remapping directory.

[0070] Please see details Figure 2 Step S204 of the illustrated embodiment will not be described again here.

[0071] In some optional implementations, the data playback catalog supports dynamic addition, deletion, and modification without stopping playback or reloading data. Specifically, the method further includes steps a1 to a3.

[0072] Step a1: In response to the add / delete operation for the data playback directory, add or delete scene data addresses in the data playback directory.

[0073] Step a2: If the first scene data address is deleted from the data playback directory, delete the address mapping relationship corresponding to the first scene data address.

[0074] Step a3: With the addition of a second scene data address to the data playback directory, establish an address mapping relationship between the second scene data address and the corresponding data input address.

[0075] In this embodiment, users can input add or delete operations for the data playback directory as needed to add or delete scene data addresses in the data playback directory.

[0076] Specifically, in scenarios such as abnormal data signal acquisition or changes in local operating conditions, the data collected by the sensors of smart devices will change. At this time, abnormal scenarios can be simulated by adding or deleting scene data addresses in the data playback directory. For example, a sensor failure can be simulated by temporarily removing the signal, or a new sensor signal can be added for extended testing.

[0077] In some examples, when simulating a sensor malfunction, the scene data address corresponding to that sensor is used as the first scene data address, and a deletion operation is performed to remove that first scene data address from the data playback directory. Similarly, when adding data from a sensor, the scene data address of that sensor is used as the second scene data address, and an add operation is performed to add the second scene data address to the data playback directory.

[0078] For example, if the camera data also includes sensor data collected by another camera, and its scene data address is " / dev / video7 / raw_compressed"; and if the target functional module can use the data collected by this camera, then the scene data address " / dev / video7 / raw_compressed" can be added as a new entry (i.e., the second scene data address) to the data playback directory, and its address mapping relationship can be configured as: " / dev / video7 / raw_compressed"→" / dev / video7 / image".

[0079] In this embodiment, after triggering an add / delete operation, the user can actively modify the remapping directory. For example, the system can listen for user commands to modify the remapping directory and adjust the current remapping directory in real time, thereby modifying the address mapping relationship. Alternatively, after triggering an add / delete operation, the system can adaptively adjust the remapping directory and modify the address mapping relationship; this embodiment does not limit this approach.

[0080] This embodiment supports adding and deleting data during runtime, and can update the set of signals participating in the playback in real time without reloading data or restarting playback. This allows testers to quickly configure different signal combinations for comparative testing, supports simulated signal anomalies and local operating condition changes, expands the coverage of test scenarios, and improves the flexibility and efficiency of testing.

[0081] Step S305: Obtain the first data frame according to the data playback directory.

[0082] Please see details Figure 2 Step S205 of the illustrated embodiment will not be described again here.

[0083] Step S306: The first data frame is published to the remapping directory corresponding to the data playback directory according to the address mapping relationship.

[0084] Specifically, the above step S306, "publishing the first data frame to the remapping directory corresponding to the data playback directory according to the address mapping relationship", includes the following steps S3061 to S3062.

[0085] Step S3061: If the frequency of the first data frame is inconsistent with the target frequency required by the target functional module, the first data frame is processed according to the target frequency to obtain a second data frame that matches the target frequency.

[0086] In this embodiment, the first data frame is data obtained from the original scene data. The frequency corresponding to this first data frame is the frequency of each data frame in the original scene data, which is also the sampling frequency of the sensor. The data required by the target functional module needs to be released at a certain frequency. For ease of description, the release frequency required by the target functional module is called the target frequency.

[0087] The frequency of the first data frame may or may not match the target frequency. If they match, the first data frame can be published directly according to its timestamp. If they do not match, frequency adjustment is required, i.e., adjusting the publication frequency of the data frame to adapt to the input requirements of the target functional module.

[0088] Specifically, if the frequency of the first data frame is inconsistent with the target frequency (e.g., they are different), then after acquiring the first data frame, a new data frame suitable for the target frequency, namely the second data frame, is generated based on the first data frame. For example, the first data frame with the closest time interval can be used as the second data frame.

[0089] Understandably, since smart devices contain multiple sensors, each sensor signal can correspond to a different target frequency. For example, the frequency of a laser signal is 5Hz, the frequency of a millimeter-wave radar signal is 10Hz, and the frequency of an image signal is 20Hz. Furthermore, each sensor corresponds to a specific data input address, so data can be published according to its respective target frequency for each data input address.

[0090] Optionally, the second data frame is generated by interpolation to minimize data distortion. Step S3061 above, "processing the first data frame according to the target frequency to obtain a second data frame that matches the target frequency," may specifically include steps b1 to b3.

[0091] Step b1: Determine the target timestamp corresponding to the data frame to be published based on the target frequency.

[0092] Step b2: Determine the third data frame; the third data frame is a data frame obtained from the data playback catalog, and the target timestamp is between the timestamp of the first data frame and the timestamp of the third data frame.

[0093] Step b3: Perform interpolation processing based on the first data frame and the third data frame to obtain the second data frame corresponding to the target timestamp.

[0094] In this embodiment, if the frequency of the first data frame is inconsistent with the target frequency, the timestamp corresponding to each data frame that actually needs to be published can be determined based on the target frequency, that is, the target timestamp.

[0095] For example, for the m-th frame to be published (i.e., the m-th data frame), its target timestamp is t. m And can be represented as: t m = t_start + m × (1 / f_target). Where t_start is the start timestamp of the signal segment (determined based on the original sensor data), and f_target is the target frequency.

[0096] Furthermore, during the process of retrieving data frames from the data playback catalog, multiple data frames can be retrieved. For example, in addition to the latest first data frame, previous historical data frames can also be included, and each data frame also has a timestamp. If the current data frame to be published is the m-th data frame, its target timestamp is t. m Therefore, it can be determined at this time that the first data frame is located at the target timestamp t. m The data frames on the left and right sides, one of which is the first data frame and the other is the third data frame. The first data frame and the third data frame can be adjacent data frames.

[0097] By performing interpolation processing, such as linear interpolation, based on the first and third data frames, the second data frame corresponding to the triggering time can be obtained, and the accuracy of the second data frame can be determined.

[0098] For example, the timestamp t1 of the first data frame is 10.2 seconds, and its signal value v1 is 120.0; the timestamp t2 of the third data frame is 10.0 seconds, and its signal value v2 is 100.0. If the target timestamp t m = 10.1 seconds, then a new data frame can be inserted between t1 and t2, and the signal value of the new data frame is v. m Specifically, it can be: v m = v2 + (v1 - v2) ((t m - t2) / (t1- t2))=110.0.

[0099] It is understandable that regardless of whether the target frequency is higher or lower than the sampling frequency of the original sensor data, it can be processed using the interpolation method described above. In special cases, if the target frequency is lower than the sampling frequency, and the sampling frequency is an integer multiple of the target frequency, then the first data frame can be uniformly extracted and published according to the target frequency. In this case, it is equivalent to the target timestamp being equal to t1 or t2.

[0100] In this embodiment, interpolation is used to generate intermediate values ​​that transition smoothly between adjacent data frames, so that the signal output curve remains continuous. This avoids misjudgment or abnormal response of the target functional module due to data jumps, and ensures signal quality and processing accuracy of the target functional module.

[0101] Step S3062: Publish the second data frame to the remapping directory corresponding to the data playback directory.

[0102] Since different target functional modules may have different frequency requirements for input data, directly publishing at the original frame rate may lead to insufficient processing capacity or data shortage. Frequency adaptation processing enables the publishing of appropriate second data frames to the downstream target functional modules at the target frequency. This ensures that the frequency of the playback data matches the requirements of the target functional modules, guaranteeing the smoothness and continuity of the signal output. It also avoids data loss or processing anomalies caused by frequency mismatch, improving the stability and reliability of the data received by the target functional modules.

[0103] In some alternative implementations, the method may further include steps c1 to c2.

[0104] Step c1: Set the release parameters according to the target frequency.

[0105] Step c2: Determine the release time of the data frame based on the release parameters.

[0106] Furthermore, the aforementioned step S3062, "publishing the second data frame to the remapping directory corresponding to the data playback directory," specifically includes: when the current time reaches the publication time corresponding to the second data frame, publishing the second data frame to the remapping directory corresponding to the data playback directory.

[0107] In this embodiment, appropriate publishing parameters can be adaptively set according to the target frequency. These publishing parameters are used to manage the publishing time of data frames. For each data frame to be published, its corresponding publishing time can be determined according to the publishing parameters, and when the current time reaches the publishing time, data is published, that is, the second data frame is published (at this time, the second data frame is the data frame that needs to be published).

[0108] For example, this release parameter can be the number of releases; the higher the target frequency, the more releases are required.

[0109] Alternatively, the target frequency can be the data transmission frequency required by the target functional module, thus corresponding to a specific transmission period. For example, if the target frequency is 20Hz, its transmission period is 50ms, meaning data needs to be transmitted every 50ms. This transmission parameter can also be the transmission period of a data frame; the higher the target frequency, the shorter the transmission period. In this embodiment, a timer / counter is set to determine the timing of data transmission, and the corresponding count value of the timer / counter is configured according to the transmission period. Specifically, the transmission parameter is the count value of the timer / counter.

[0110] When the timer is triggered, it indicates that the corresponding data frame needs to be published to the target functional module. At this time, it can be determined that the current time has reached the publication time corresponding to the second data frame, and then the second data frame is published.

[0111] For example, if the release period is 50ms, then this count value corresponds to 50ms. If the timer is triggered, it means that the count has reached the value corresponding to 50ms, that is, 50ms have passed, so a second data frame needs to be released at this time.

[0112] In this embodiment, the data release frequency is precisely controlled by a counter triggering mechanism, which enables the data frequency released to the target functional module to match the required target frequency and meet the data input requirements of the target functional module.

[0113] Optionally, the method further includes steps c3 to c4.

[0114] Step c3: Obtain the actual frequency of publishing data to the remapping directory.

[0115] Step c4: If the actual frequency does not match the target frequency, adjust the release parameters according to the difference between the actual frequency and the target frequency.

[0116] Because the actual release frequency may deviate from the target frequency due to factors such as system load and I / O latency during the actual release process, this embodiment monitors the actual frequency of the second data frame in real time and compares it with the target frequency. Based on the difference between the two, the count value of the timer counter is dynamically adjusted to form a negative feedback adjustment mechanism, so that the adjusted actual frequency is consistent with the target frequency, for example, the difference between the two is within a preset range.

[0117] Specifically, if the release parameter is the number of releases, then when the actual frequency is higher than the target frequency, the release interval can be increased by decreasing the number of releases (i.e., decreasing the release parameter), thereby reducing the actual release frequency. When the actual frequency is lower than the target frequency, the release interval can be decreased by increasing the number of releases (i.e., increasing the release parameter), thereby increasing the actual release frequency and bringing the actual frequency closer to the target frequency.

[0118] Alternatively, if the release parameter is the release period, then when the actual frequency is higher than the target frequency, the release interval can be increased by increasing the count value of the timer / counter (i.e., increasing the release parameter, for example, by incrementing the count value), thereby reducing the release frequency. This allows the actual frequency of the second data frame to be reduced when it is subsequently released according to the adjusted count value, bringing the actual frequency closer to the target frequency. Conversely, if the actual frequency is lower than the target frequency, the count value is decreased (i.e., the release parameter is decreased) to increase the release frequency.

[0119] In this embodiment, closed-loop frequency control can be achieved by comparing the actual frequency with the target frequency, so that the actual output frequency can converge to the target frequency, ensuring the stability of the frequency during long-term operation. This allows the target functional module to receive data at a stable rhythm, improving the reliability and repeatability of data playback.

[0120] Optionally, in addition to modifying the data playback directory during playback, configuration parameters, such as modifying the signal frequency, can also be dynamically adjusted. Specifically, the method may further include: in response to an adjustment operation for the frequency required by the target functional module, using the adjusted frequency as the target frequency.

[0121] During testing, the input frequency (i.e., target frequency) of the target functional module can be dynamically adjusted to verify its performance at different frequencies or simulate scenarios where the sensor reduces its frequency due to obstruction, insufficient bandwidth, or other reasons. During data playback, testers can actively modify the target frequency of the target functional module without stopping playback or reconfiguring, allowing for real-time application of the new target. This enables testers to quickly switch between different frequency conditions for comparative testing, improving testing flexibility and efficiency, and further expanding the coverage of testing scenarios.

[0122] In some alternative implementations, the method further includes steps d1 to d2.

[0123] Step d1: In response to the data positioning operation, determine the target data frame for the data positioning operation.

[0124] Step d2: According to the target frequency required by the target functional module, repeatedly publish the target data frame to the remapping directory corresponding to the data playback directory.

[0125] In this embodiment, a timestamp freezing function is also provided to reproduce the working conditions at a specific moment.

[0126] Specifically, testers can trigger a data location operation for a specific moment based on actual needs, thereby determining the corresponding data frame for that moment, i.e., the target data frame. This data frame is obtained from the original scene data and has not yet been published. For the target data frame at that moment, it is repeatedly published according to the target frequency required by the target functional module, so that the target functional module can perform the corresponding processing according to the target data frame.

[0127] For example, if the timestamp set for the user data positioning operation is the 6.0th second of the global time, the system can find the data at the 6.0th second in the original sensor data, use it as the target data frame (if there is no data at the 6.0th second, it can be generated by the above interpolation method), and save it to the buffer; subsequently, the target data frame is read from the buffer and repeatedly published in a loop at the configured target frequency.

[0128] It is understandable that, since only the same target data frame needs to be published at this time, there is no need to perform interpolation processing on it, and it can be directly published to the remapping directory.

[0129] In this embodiment, the data frame at the target moment is saved to the buffer using a timestamp freeze function and cyclically published at the target frequency. This allows the target functional module to continuously receive sensor input at the same moment, simulating and maintaining the operating condition at a specific instant. This freeze-frame playback mechanism allows developers or testers to repeatedly observe and analyze the algorithm's behavior under that instantaneous operating condition, especially for reproducing and debugging occasional or transient bugs, which helps improve the efficiency and accuracy of problem localization. Furthermore, repeatedly publishing the target data frame (instead of publishing only a single frame) can prevent the target functional module from mistakenly identifying a sensor malfunction due to a single frame of data.

[0130] In some optional implementations, as shown above, the raw data packets acquired by each sensor can include complete time series of various signals such as LiDAR, millimeter-wave radar, camera, and IMU, which can be stored in sensor data files (such as ROS bag files). By parsing the raw data packets, the individual raw scene data can be determined.

[0131] The original scene data may include pose data. For example, if the target functional module needs to use the pose data, the data playback directory includes the scene data address corresponding to the pose data. At this time, pose alignment can be performed, such as initializing the pose through pose alignment.

[0132] Specifically, the method further includes steps e1 to e2.

[0133] Step e1: In response to the attitude alignment command, obtain the target attitude data from the data frame corresponding to the attitude alignment command.

[0134] Step e2: Align the virtual controlled device with the target attitude data, and then verify the function of the target functional module with the virtual controlled device with the aligned attitude.

[0135] In this embodiment, if attitude data collected by sensors such as IMU is involved, an attitude alignment function can also be provided to keep the initial attitude of the simulation model consistent with that of the actual working condition.

[0136] Specifically, data playback can be used to simulate functional modules to verify their functionality. Some functional modules require verification based on attitude data. In this case, the user's attitude alignment operation can be monitored to obtain the attitude data (target attitude data) from the data frame corresponding to the alignment command. Based on this, the attitude of the simulation model of the intelligent device (i.e., the virtual controlled device) can be set in real time to achieve attitude alignment. After aligning the virtual controlled device, the aligned attitude can be used as the initial attitude for subsequent processing, thereby verifying the functionality of the target functional module.

[0137] Optionally, the process of “performing functional verification of the target functional module based on the virtual controlled device aligned with the attitude” in step e2 above may specifically include the following steps f1 to f2.

[0138] Step f1: The target functional module sends the control signal determined by the input data frame to the virtual controlled device; the input data frame is the data frame obtained by the target functional module according to the subscribed data input address.

[0139] Step f2: Obtain the simulation results of the virtual controlled device based on the control signals, compare the simulation results with the target attitude data, and obtain the functional verification results of the target functional module.

[0140] As shown above, the target functional module can obtain the corresponding input data frame by subscribing to the data input address. This input data frame can specifically be the first data frame mentioned above or a second data frame after frequency adjustment. The target functional module executes its own algorithm based on this input data frame to obtain the control signal used to control the intelligent device. This control signal is then injected into the virtual controlled device in the simulation software, allowing the virtual controlled device to respond to the control signal and obtain the corresponding simulation result. This simulation result specifically represents the attitude of the virtual controlled device after executing the control signal. Furthermore, by comparing the simulation result with the target attitude data, the functional verification result of the target functional module can be obtained; ideally, this attitude should match the attitude corresponding to the target attitude data.

[0141] In some examples, in the scenario of automatic loading of excavators, the planning module (used for motion planning) and control module (used for controlling the excavator joints) of the excavator are verified. This involves simulating a simulation model of the excavator (i.e., a virtual controlled device) in simulation software. A schematic diagram of this simulation model can be shown as follows: Figure 4 As shown, it includes: a swing platform, a boom, an arm, and a bucket.

[0142] For example, if the user-triggered attitude alignment command is timestamped at 6.0 seconds globally, the target attitude data of the excavator at that time is read as follows: boom = -0.19 rad, arm = -0.62 rad, bucket = 2.319 rad, swing = 1.96 rad, representing the rotation angles of each component. Injecting this target attitude data into the simulation model of the simulation software will set the initial attitude of the simulation model to be consistent with this target attitude data.

[0143] During the verification process of the planning module and the control module, the planning module can output the desired joint position based on the original sensor data and provide the desired joint position to the control module, so that the control module can output the corresponding control signal based on the desired joint position. Specifically, it can calculate the control quantity required by each joint actuator based on the error between the desired position and the current actual position, and then map the control quantity into the corresponding control signal, such as a PWM (Pulse Width Modulation) signal.

[0144] The target function module publishes the control signal to the simulation model (which is essentially a dynamic model), so that the simulation model can adjust its attitude according to the control signal. Under normal circumstances (when the control module is correct), the adjusted attitude is the same as the expected joint position output by the planning module.

[0145] Figure 5 A diagram showing the comparison of attitude data is provided. Figure 5 In this context, attitude data is represented by joint angles. For example... Figure 5 As shown, it uses solid lines to represent the actual recorded posture data, such as the IMU data " / joint_states" mentioned above, which specifically includes the joint angles of components such as the boom, forearm, bucket, and slewing. Figure 5 The dashed line represents the expected mining trajectory calculated by the planning algorithm based on perception and positioning information, specifically represented by the expected joint position sequence " / internal_joint_position_command". By comparing the two, it can be determined whether the planned expected trajectory closely resembles the actual operation trajectory. For example, if the deviation between the expected joint position and the actual joint position " / joint_states" (truth reference) decreases after algorithm optimization, it indicates that the closed-loop control effect of the planning module has improved.

[0146] In this embodiment, attitude alignment ensures that the initial state of the simulation is consistent with the actual working condition, avoiding closed-loop divergence or evaluation distortion caused by initial state deviation, thus improving the accuracy and reliability of closed-loop verification and providing more reliable data support for algorithm optimization.

[0147] This embodiment also provides a data playback device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0148] This embodiment provides a data playback device, such as... Figure 6 As shown, the device includes: The acquisition module 601 is used to acquire the raw scene data collected by each sensor; Configuration module 602 is used to configure a corresponding scene data address for the original scene data for any of the sensors; the scene data address is used to transmit data frames in the original scene data; Processing module 603 is used to determine, when testing a target functional module, the data playback directory and the remapping directory corresponding to the target functional module; the data playback directory includes the scene data addresses of the target sensors associated with the target functional module, and the remapping directory includes the data input addresses corresponding to each of the target sensors subscribed to by the target functional module; and to establish an address mapping relationship between the data playback directory and the remapping directory. Playback module 604 is used to obtain the first data frame according to the data playback directory; The publishing module 605 is used to publish the first data frame to the remapping directory corresponding to the data playback directory according to the address mapping relationship.

[0149] In some optional implementations, publishing the first data frame to the remapping directory corresponding to the data playback directory according to the address mapping relationship includes: If the frequency of the first data frame is inconsistent with the target frequency required by the target functional module, the first data frame is processed according to the target frequency to obtain a second data frame that matches the target frequency. The second data frame is published to the remapping directory corresponding to the data playback directory.

[0150] In some optional embodiments, the processing module 603 is further configured to: Set the release parameters according to the target frequency; The release time of the data frame is determined based on the release parameters; The step of publishing the second data frame to the remapping directory corresponding to the data playback directory includes: If the current time reaches the publication time corresponding to the second data frame, the second data frame is published to the remapping directory corresponding to the data playback directory.

[0151] In some optional embodiments, the processing module 603 is further configured to: Obtain the actual frequency of data being published to the remapped directory; If the actual frequency does not match the target frequency, the release parameters are adjusted based on the difference between the actual frequency and the target frequency.

[0152] In some optional implementations, processing the first data frame according to the target frequency to obtain a second data frame matching the target frequency includes: Based on the target frequency, determine the target timestamp corresponding to the data frame to be published; A third data frame is determined; the third data frame is a data frame obtained according to the data playback directory, and the target timestamp is between the timestamp of the first data frame and the timestamp of the third data frame. Interpolation is performed on the first data frame and the third data frame to obtain the second data frame corresponding to the target timestamp.

[0153] In some optional embodiments, the processing module 603 is further configured to: In response to the adjustment operation for the frequency required by the target functional module, the adjusted frequency is taken as the target frequency.

[0154] In some optional embodiments, the processing module 603 is further configured to: In response to add or delete operations on the data playback directory, add or delete scene data addresses in the data playback directory; If the first scene data address is deleted from the data playback directory, the address mapping relationship corresponding to the first scene data address is deleted. When a second scene data address is added to the data playback directory, an address mapping relationship is established between the second scene data address and the corresponding data input address.

[0155] In some optional embodiments, the processing module 603 is further configured to: In response to a data positioning operation, the target data frame of the data positioning operation is determined; According to the target frequency required by the target functional module, the target data frame is repeatedly published to the remapping directory corresponding to the data playback directory.

[0156] In some optional implementations, the raw scene data includes pose data; the processing module 603 is further configured to: In response to an attitude alignment command, target attitude data is obtained from the data frame corresponding to the attitude alignment command; The virtual controlled device is aligned according to the target attitude data, and the target functional module is functionally verified based on the aligned virtual controlled device.

[0157] In some optional implementations, the functional verification of the target functional module by the virtual controlled device aligned with the attitude includes: The target functional module sends the control signal determined by the input data frame to the virtual controlled device; the input data frame is the data frame obtained by the target functional module according to the subscribed data input address. The simulation results obtained by the virtual controlled device based on the control signal are acquired, and the simulation results are compared with the target attitude data to obtain the functional verification results of the target functional module.

[0158] The data playback apparatus provided in this disclosure can execute the data playback method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the various modules and units described above are the same as in the corresponding embodiments described above, and will not be repeated here.

[0159] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0160] The following is a detailed reference. Figure 7 The diagram illustrates a structural schematic suitable for implementing the electronic device described in the embodiments of this application. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 701, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 702 or a program loaded from memory 708 into random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the electronic device. The processor 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0161] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 709. Communication device 709 allows electronic devices to exchange data via wireless or wired communication with other devices. Although Figure 7 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.

[0162] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 709, or installed from memory 708, or installed from ROM 702. When the computer program is executed by processor 701, it performs the functions defined in the data playback method of embodiments of this application.

[0163] Figure 7 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0164] This application also provides a computer-readable storage medium. The methods described in this application can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the data playback method shown in the above embodiments is implemented.

[0165] A portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0166] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.

Claims

1. A data playback method, characterized in that, The method includes: Acquire raw scene data collected by each sensor; For any of the aforementioned sensors, a corresponding scene data address is configured for the original scene data; the scene data address is used to transmit data frames in the original scene data. When testing a target functional module, determine the data playback directory and remapping directory corresponding to the target functional module; the data playback directory includes the scene data addresses of the target sensors associated with the target functional module, and the remapping directory includes the data input addresses corresponding to each target sensor subscribed to by the target functional module; Establish an address mapping relationship between the data playback directory and the remapping directory; The first data frame is obtained according to the data playback directory; The first data frame is published to the remapping directory corresponding to the data playback directory according to the address mapping relationship.

2. The method according to claim 1, characterized in that, The step of publishing the first data frame to the remapping directory corresponding to the data playback directory according to the address mapping relationship includes: If the frequency of the first data frame is inconsistent with the target frequency required by the target functional module, the first data frame is processed according to the target frequency to obtain a second data frame that matches the target frequency. The second data frame is published to the remapping directory corresponding to the data playback directory.

3. The method according to claim 2, characterized in that, The method further includes: Set the release parameters according to the target frequency; The release time of the data frame is determined based on the release parameters; The step of publishing the second data frame to the remapping directory corresponding to the data playback directory includes: If the current time reaches the publication time corresponding to the second data frame, the second data frame is published to the remapping directory corresponding to the data playback directory.

4. The method according to claim 3, characterized in that, The method further includes: Obtain the actual frequency of data being published to the remapped directory; If the actual frequency does not match the target frequency, the release parameters are adjusted based on the difference between the actual frequency and the target frequency.

5. The method according to claim 2, characterized in that, The step of processing the first data frame according to the target frequency to obtain a second data frame that matches the target frequency includes: Based on the target frequency, determine the target timestamp corresponding to the data frame to be published; A third data frame is determined; the third data frame is a data frame obtained according to the data playback directory, and the target timestamp is between the timestamp of the first data frame and the timestamp of the third data frame. Interpolation is performed on the first data frame and the third data frame to obtain the second data frame corresponding to the target timestamp.

6. The method according to claim 2, characterized in that, The method further includes: In response to the adjustment operation for the frequency required by the target functional module, the adjusted frequency is taken as the target frequency.

7. The method according to claim 1, characterized in that, The method further includes: In response to add or delete operations on the data playback directory, add or delete scene data addresses in the data playback directory; If the first scene data address is deleted from the data playback directory, the address mapping relationship corresponding to the first scene data address is deleted. When a second scene data address is added to the data playback directory, an address mapping relationship is established between the second scene data address and the corresponding data input address.

8. The method according to claim 1, characterized in that, The method further includes: In response to a data positioning operation, the target data frame of the data positioning operation is determined; According to the target frequency required by the target functional module, the target data frame is repeatedly published to the remapping directory corresponding to the data playback directory.

9. The method according to claim 1, characterized in that, The original scene data includes posture data; The method further includes: In response to an attitude alignment command, target attitude data is obtained from the data frame corresponding to the attitude alignment command; The virtual controlled device is aligned according to the target attitude data, and the target functional module is functionally verified based on the aligned virtual controlled device.

10. The method according to claim 9, characterized in that, The functional verification of the target functional module by the virtual controlled device aligned with the attitude includes: The target functional module sends the control signal determined by the input data frame to the virtual controlled device; the input data frame is the data frame obtained by the target functional module according to the subscribed data input address. The simulation results obtained by the virtual controlled device based on the control signal are acquired, and the simulation results are compared with the target attitude data to obtain the functional verification results of the target functional module.

11. A data playback device, characterized in that, The device includes: The acquisition module is used to acquire the raw scene data collected by each sensor; The configuration module is used to configure a corresponding scene data address for the original scene data for any of the sensors; the scene data address is used to transmit data frames in the original scene data. The processing module is used to determine the data playback directory and remapping directory corresponding to the target functional module when testing the target functional module; the data playback directory includes the scene data addresses of the target sensors associated with the target functional module, and the remapping directory includes the data input addresses corresponding to each target sensor subscribed by the target functional module; and to establish an address mapping relationship between the data playback directory and the remapping directory. The playback module is used to obtain the first data frame according to the data playback directory; The publishing module is used to publish the first data frame to the remapping directory corresponding to the data playback directory according to the address mapping relationship.

12. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the data playback method of any one of claims 1 to 10 by executing the computer instructions.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the data playback method according to any one of claims 1 to 10.