A method, device, equipment and storage medium for simulating information

By updating the time deviation in the simulation information, the complexity and instability problems in obtaining simulation timestamps in the existing technology are solved, the accuracy and flexibility of the simulation are improved, time continuity and intelligent processing are ensured, and various needs.

CN114091170BActive Publication Date: 2024-09-27GUANGZHOU WERIDE TECH LTD CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111166441.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2024-09-27
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

Existing simulation technology introduces complexity and instability when obtaining and processing simulation timestamps, which affects the accuracy of simulation. Especially when problems occur at the sending and receiving ends of the simulation time, it will directly affect the accuracy of the simulation. sex.

Method used

By obtaining the difference between the simulation start timestamp of the simulation information and the current timestamp, the time deviation is updated into the simulation information, ensuring that the simulation system processes information under the current timestamp, improving the accuracy and authenticity of the simulation, and The time offset is continuously updated during loop playback to avoid time reversal problems.

Benefits of technology

It improves the accuracy and authenticity of simulation, reduces the complexity of the simulation system, ensures time continuity, enhances the flexibility and intelligence of simulation, and meets diverse usage needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114091170B
    Figure CN114091170B
Patent Text Reader

Abstract

The present application discloses a simulation information simulation method, device, equipment and storage medium, the method comprising: obtaining a simulation start timestamp of the simulation information and a current timestamp of the simulation system; obtaining a time deviation according to the difference between the simulation start timestamp and the current timestamp; and updating the time deviation to the simulation information when the simulation system plays the simulation information. The present application enables the simulation system to process the simulation information as information received at the current timestamp of the simulation system, thereby improving the accuracy and authenticity of the simulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to a simulation information simulation method, device, equipment and storage medium. Background Art

[0002] In order to realize the vehicle's autonomous driving system, simulation testing is an indispensable link. Considering factors such as time, resources, and safety, it is usually necessary to conduct some software simulation tests in a non-real vehicle environment before road testing to maximize the significance of road testing.

[0003] The existing simulation technology is generally implemented in the following way: using the information recorded in the drive test (ie, simulation information) and replaying it using simulation time to simulate the scene at that time.

[0004] If you want to use simulation time, the simulation system needs to obtain the current timestamp in different ways. This introduces additional complexity and instability into the simulation system. Moreover, in general, in a simulation environment, the simulation system needs to rely on the simulation time in the simulation information to obtain the current timestamp. Therefore, when simulating, it is usually necessary to introduce a simulation time module specifically for reading and playing simulation time. The simulation system needs to receive messages from the simulation time module and use the data in the message as the current timestamp. However, this introduces a new technical defect, namely: once there is a problem with the sending and receiving end of the simulation time, it will directly affect the accuracy of the simulation. Summary of the invention

[0005] To this end, the technical problem solved by the embodiments of the present application is to provide a simulation information simulation method, device, equipment and storage medium, which enables the simulation system to process the simulation information as information received at the current timestamp of the simulation system, thereby improving the accuracy and authenticity of the simulation.

[0006] In order to solve the above technical problems, the technical solutions adopted in this application are as follows:

[0007] On the one hand, an embodiment of the present application provides a simulation information simulation method, including:

[0008] Get the simulation start timestamp of the simulation information and the current timestamp of the simulation system;

[0009] The time deviation is obtained based on the difference between the simulation start timestamp and the current timestamp;

[0010] When the simulation system plays the simulation information, the time deviation is updated to the simulation information.

[0011] Further, updating the time deviation to the simulation information when the simulation system plays the simulation information includes:

[0012] The time deviation is updated to the corresponding simulation information in a corresponding manner according to the type of the simulation information.

[0013] Preferably, the simulation information is original format information; the simulation system includes a player; when the simulation system plays the simulation information, the time deviation is updated to the simulation information, including:

[0014] Store the time deviation in the player;

[0015] The time offset is applied to the original format information when the player plays the original format information.

[0016] Preferably, the simulation information is compressed format information; the simulation system includes a player and a decoder; when the simulation system plays the simulation information, the time deviation is updated to the simulation information, including:

[0017] Store the time deviation in the player;

[0018] Sending the time offset from the player to the decoder;

[0019] decompressing the compressed format information into original format information in the decompressor;

[0020] The time offset is applied to the original format information when the decoder plays the original format information.

[0021] More preferably, the sending of the time deviation from the player to the decoder comprises:

[0022] The latest time offset is sent from the player to the decoder periodically.

[0023] More preferably, the sending of the time deviation from the player to the decoder comprises:

[0024] When the time offset is updated, the latest time offset is sent from the player to the decoder.

[0025] More preferably, the simulation system updates the time deviation to the simulation information when playing the simulation information, and further comprises:

[0026] Play compressed format information on the player.

[0027] Furthermore, the simulation information simulation method also includes:

[0028] When the simulation system plays the simulation information in a loop, the time deviation is updated again according to the difference between the simulation start timestamp and the current timestamp.

[0029] On the other hand, an embodiment of the present application provides a simulation information simulation device, including:

[0030] A first acquisition module is used to acquire a simulation start timestamp of simulation information and a current timestamp of a simulation system;

[0031] A second acquisition module is used to obtain a time deviation according to a difference between a simulation start timestamp and a current timestamp;

[0032] The processing module is used to update the time deviation to the simulation information when the simulation system plays the simulation information.

[0033] On the other hand, an embodiment of the present application provides a device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the steps of any one of the above-mentioned simulation information simulation methods when executing the computer program.

[0034] On the other hand, an embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned simulation information simulation methods are performed.

[0035] In summary, compared with the prior art, the technical solution provided in the embodiment of the present application has at least the following beneficial effects:

[0036] 1. At the beginning of the simulation (i.e., when the simulation system plays the simulation information), the embodiment of the present application updates the simulation information with the time deviation obtained based on the simulation start timestamp of the simulation information and the current timestamp of the simulation system, so that the simulation system can process the simulation information as information received at the current timestamp of the simulation system, thereby improving the accuracy and authenticity of the simulation.

[0037] 2. The embodiment of the present application can update the time deviation to the corresponding simulation information in a corresponding manner according to the type of simulation information. On the one hand, it can make the simulation more intelligent, and on the other hand, it can also meet the user's demand for diversified use of simulation functions.

[0038] 3. In the embodiment of the present application, when the simulation system plays the simulation information in a loop, the time deviation is updated again according to the difference between the simulation start timestamp and the current timestamp, so that the simulation system can continue to receive time-continuous simulation information, thereby improving the flexibility of the simulation. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a flowchart of a simulation information simulation method provided by the first exemplary embodiment of the present application.

[0040] Figure 2It is a flowchart of a simulation information simulation method provided by the second exemplary embodiment of the present application.

[0041] Figure 3 It is a structural diagram of a simulation information simulation device provided by the fourth exemplary embodiment of the present application.

[0042] Figure 4 It is a schematic diagram of the structure of the device provided by the fifth exemplary embodiment of the present application. DETAILED DESCRIPTION

[0043] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, those skilled in the art may make modifications to the present embodiment without any creative contribution as needed, but such modifications are protected by the patent law as long as they are within the scope of the claims of the present application.

[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] The term "comprise" and any variations thereof in the specification and claims of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising 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 these processes, methods, products or apparatuses.

[0046] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0047] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0048] Figure 1 A simulation information simulation method provided by the first exemplary embodiment of the present application includes:

[0049] Get the simulation start timestamp of the simulation information and the current timestamp of the simulation system;

[0050] The time deviation is obtained based on the difference between the simulation start timestamp and the current timestamp;

[0051] When the simulation system plays the simulation information, the time deviation is updated to the simulation information.

[0052] At the beginning of the simulation (i.e., when the simulation system plays the simulation information), the embodiment of the present application updates the simulation information with the time deviation obtained according to the simulation start timestamp of the simulation information and the current timestamp of the simulation system, so that the simulation system can process the simulation information as the information received at the current timestamp of the simulation system. This not only improves the accuracy and authenticity of the simulation, but also reduces the complexity of the simulation system. At the same time, the simulation system does not need to make special processing for the simulation environment, and does not need to worry about the problem of unstable simulation time input.

[0053] Figure 2 The second exemplary embodiment of the present application provides a simulation information simulation method, which is further improved on the basis of the first exemplary embodiment, and the specific improvements are as follows:

[0054] The step of updating the time deviation to the simulation information when the simulation system plays the simulation information comprises:

[0055] The time deviation is updated to the corresponding simulation information in a corresponding manner according to the type of the simulation information.

[0056] The second exemplary embodiment of the present application updates the time deviation to the corresponding simulation information in a corresponding manner according to the type of simulation information. On the one hand, it can make the simulation more intelligent, and on the other hand, it can also meet the user's demand for diversified use of simulation functions.

[0057] The following is a detailed description of how to update the time deviation to the corresponding simulation information in different ways for different types of simulation information:

[0058] Specifically, the simulation information is original format information; the simulation system includes a player; when the simulation system plays the simulation information, the time deviation is updated to the simulation information, including:

[0059] Store the time deviation in the player;

[0060] The time offset is applied to the original format information when the player plays the original format information.

[0061] It should be noted that the application of the time deviation to the original format information when the player plays the original format information specifically refers to directly adding the time deviation to the simulation start timestamp of the original format information and applying it to the original format information when the player plays the original format information, so that the simulation system can process the original format information as information received at the current timestamp.

[0062] Specifically, the simulation information is compressed format information; the simulation system includes a player and a decoder; when the simulation system plays the simulation information, the time deviation is updated to the simulation information, including:

[0063] Store the time deviation in the player;

[0064] Sending the time offset from the player to the decoder;

[0065] decompressing the compressed format information into original format information in the decompressor;

[0066] The time offset is applied to the original format information when the decoder plays the original format information.

[0067] It should be noted that the decompressor includes a decompression module and a playback module; the decompression module is used to decompress the compressed format information into the original format information, and the playback module is used to play the original format information.

[0068] It should be noted that the application of the time deviation to the original format information when the decoder plays the original format information specifically refers to directly adding the time deviation to the simulation start timestamp of the original format information and applying it to the original format information when the decoder plays the original format information, so that the simulation system can process the original format information as information received at the current timestamp.

[0069] When the simulation information is in compressed format and the simulation system includes a player and a decoder, as an improvement to the embodiment of the present application, the step of sending the time deviation from the player to the decoder includes:

[0070] The latest time deviation is sent from the player to the decoder regularly, thus effectively ensuring the accuracy and authenticity of the simulation.

[0071] The term "regular" refers to a period with equal time intervals, which may be 1 hour, 2 hours or other time intervals. The user may set a specific time interval according to actual usage needs, and should not be limited to the time interval described in the embodiment of the present application.

[0072] Alternatively, the sending of the time offset from the player to the decoder comprises:

[0073] When the time deviation is updated, the latest time deviation is sent from the player to the decoder, which can also achieve the purpose of ensuring the accuracy and authenticity of the simulation.

[0074] Moreover, compared with periodically sending the latest time deviation from the player to the decoder, sending the latest time deviation from the player to the decoder when the time deviation is updated can more effectively ensure the real-time performance of the simulation.

[0075] When the simulation information is in compressed format and the simulation system includes a player and a decoder, as another improvement of the embodiment of the present application, the simulation system updates the time deviation to the simulation information when playing the simulation information, and further includes:

[0076] The compressed format information is played on the player. The compressed format information played by the player is used as reference information and is synchronously compared with the original format information played by the decoder to further ensure the accuracy and authenticity of the simulation results, so that the accuracy and authenticity of the simulation structure reaches more than 95%.

[0077] The inventors also discovered another technical problem in the process of implementing the embodiments of the present application: when the simulation system needs to play the simulation information in a loop, it will face the problem of time reversal at the moment of the loop. The autonomous driving software is very sensitive to time, and time reversal will be regarded as a serious error in the system. In order to solve this problem, the prior art approach is to reset the status of all software modules at the same time at the moment of the loop. However, this approach will also make it impossible to simulate the operation of the software for a long time.

[0078] In order to solve the other technical problem, the third exemplary embodiment of the present application provides a simulation information simulation method, which is further improved on the basis of all the above embodiments, and the specific improvements are as follows:

[0079] The simulation information simulation method also includes:

[0080] When the simulation system plays the simulation information in a loop, the time deviation is updated again according to the difference between the simulation start timestamp and the current timestamp.

[0081] In the embodiment of the present application, when the simulation system plays the simulation information in a loop, the time deviation is updated again according to the difference between the simulation start timestamp and the current timestamp, so that the simulation system can continue to receive simulation information that is continuous in time. That is, it can simulate a simulation environment that is theoretically continuous and infinite in length through simulation information of limited time, thus avoiding the problem of time reversal and improving the flexibility of the simulation.

[0082] It should be noted that in all the above embodiments of the present application involving the player, when the player is implemented using software, there is a risk of freezing or delay, which may cause the time deviation to fluctuate. In order to solve the technical problem of time deviation fluctuation, as a further improvement of all the above embodiments of the present application involving the player, the time deviation is applied to the original format information when the player plays the original format information, specifically: when the player plays the original format information, the time deviation is applied to the original format information using the time synchronization algorithm NTP or PTP.

[0083] Figure 3 A simulation information simulation device is provided by the fourth exemplary embodiment of the present application. The simulation device corresponds one-to-one to the simulation method in the above embodiment. The simulation device includes:

[0084] A first acquisition module is used to acquire a simulation start timestamp of simulation information and a current timestamp of a simulation system;

[0085] A second acquisition module is used to obtain a time deviation according to a difference between a simulation start timestamp and a current timestamp;

[0086] The processing module is used to update the time deviation to the simulation information when the simulation system plays the simulation information.

[0087] Each module of the above-mentioned simulation device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0088] Figure 4 It is a device provided by the fifth exemplary embodiment of the present application, and the device may be a server. The device includes a processor, a memory and a communication interface connected via a system bus. Among them, the processor of the device is used to provide computing and control capabilities. The memory of the device can be implemented by any type of volatile or non-volatile storage device or a combination thereof, and the volatile or non-volatile storage device includes but is not limited to: a disk, an optical disk, an EEPROM, an EPROM, an SRAM, a ROM, a magnetic storage device, a flash memory, and a PROM. The memory of the device provides an environment for the operation of the operating system and computer programs stored therein. The communication interface of the device is a network interface, and the network interface is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the steps of the simulation information simulation method described in the above embodiment are implemented.

[0089] In another embodiment of the present application, a storage medium is provided, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the simulation information simulation method described in the above embodiment are implemented. The storage medium includes but is not limited to: ROM, RAM, CD-ROM, magnetic disk, and floppy disk.

[0090] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device described in the present application is divided into different functional units or modules to complete all or part of the functions described above.

[0091] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A simulation information simulation method, characterized in that: include: Get the simulation start timestamp of the simulation information and the current timestamp of the simulation system; The time deviation is obtained based on the difference between the simulation start timestamp and the current timestamp; When the simulation system plays the simulation information, the time deviation is updated to the corresponding simulation information in a corresponding manner according to the type of the simulation information; When the simulation information is original format information and the simulation system includes a player, the time deviation is stored in the player, and the time deviation is applied to the original format information when the player plays the original format information.

2. The method for simulating information according to claim 1, characterized in that: The simulation information is compressed format information; the simulation system includes a player and a decoder; when the simulation system plays the simulation information, the time deviation is updated to the simulation information, including: Store the time deviation in the player; Sending the time offset from the player to the decoder; decompressing the compressed format information into original format information in the decompressor; The time offset is applied to the original format information when the decoder plays the original format information.

3. The method for simulating simulation information according to claim 2, characterized in that: The sending of the time deviation from the player to the decoder comprises: The latest time offset is sent from the player to the decoder periodically.

4. The method for simulating simulation information according to claim 2, characterized in that: The sending of the time deviation from the player to the decoder comprises: When the time offset is updated, the latest time offset is sent from the player to the decoder.

5. The method for simulating simulation information according to claim 2, characterized in that: The simulation system updates the time deviation to the simulation information when playing the simulation information, and also includes: Play compressed format information on the player.

6. The method for simulating simulation information according to any one of claims 1 to 5, characterized in that: Also includes: When the simulation system plays the simulation information in a loop, the time deviation is updated again according to the difference between the simulation start timestamp and the current timestamp.

7. A simulation information simulation device, characterized in that: include: A first acquisition module is used to acquire a simulation start timestamp of simulation information and a current timestamp of a simulation system; A second acquisition module is used to obtain a time deviation according to a difference between a simulation start timestamp and a current timestamp; A processing module is used to update the time deviation to the corresponding simulation information in a corresponding manner according to the type of the simulation information when the simulation system plays the simulation information; when the simulation information is original format information and the simulation system includes a player, the time deviation is stored in the player, and the time deviation is applied to the original format information when the player plays the original format information.

8. A device, characterized in that The method comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the steps of the simulation information simulation method as described in any one of claims 1 to 6 when executing the computer program.

9. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the simulation information simulation method according to any one of claims 1 to 6 are implemented.