Vehicle dynamics simulation method, device and electronic equipment

By connecting external vehicle dynamic modules to the simulation system, the problem of insufficient professional level in dynamic simulation of the simulation system is solved, and the efficiency and accuracy of full-process simulation tests are improved, and professional module access is supported and rapid advancement is carried out. Simulation test.

CN117852246BActive Publication Date: 2024-12-06GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311596690.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-27
Publication Date
2024-12-06
Estimated Expiration
2043-11-27

AI Technical Summary

Technical Problem

The existing simulation systems are difficult to reach professional level in dynamic simulation, and cannot directly use the built-in vehicle dynamic model, resulting in large amounts of adaptation and testing verification work, affecting the simulation testing efficiency.

Method used

By defining the interface, the external vehicle dynamics module is connected to the simulation system, initialization, reset, interaction and end processing is realized, simulation results are obtained, and real and effective full-process simulation test is achieved.

Benefits of technology

It improves the efficiency and accuracy of simulation testing, lowers the threshold for simulation testing, supports professional and personalized vehicle dynamic module access, and quickly promotes real and effective simulation testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117852246B_ABST
    Figure CN117852246B_ABST
Patent Text Reader

Abstract

The present application provides a vehicle dynamics simulation method, device, electronic device, computer-readable storage medium and computer program product; the method includes: in response to an instruction to start a simulation task, initializing the vehicle dynamics module through an initialization interface; resetting the scene of the vehicle dynamics module according to the scene in the simulation task through a reset interface; performing simulation interaction processing with the vehicle dynamics module in the scene through an interaction interface; ending the simulation interaction processing through an end interface, and obtaining the simulation results of the vehicle dynamics module during the simulation interaction processing. Through the present application, an external vehicle dynamics module can be connected to the simulation system through a defined interface to achieve a true and effective full-process simulation test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to vehicle technology, and in particular to a vehicle dynamics simulation method, device, electronic device, computer-readable storage medium, and computer program product. Background Art

[0002] The intelligent driving function of a vehicle requires a lot of testing to meet the expected requirements. Simulation testing based on a simulation system (or simulator) is the main technical route for testing intelligent driving functions. It can achieve a virtual mileage of millions or even tens of millions of kilometers per day, improving the testing efficiency and development iteration speed of intelligent driving functions.

[0003] Dynamics simulation is an essential core capability of simulation systems. However, it is usually difficult for simulation systems to reach a professional level in dynamics simulation. If the vehicle dynamics model that comes with the simulation system is directly used, there may be a lot of adaptation or test verification work, which is difficult to use directly and is not conducive to the rapid promotion of real and effective simulation tests. In this regard, relevant technologies have not provided an effective solution. Summary of the invention

[0004] The present application provides a vehicle dynamics simulation method, device, electronic device, computer-readable storage medium and computer program product, which can enable an external vehicle dynamics module to access a simulation system through a defined interface to achieve a true and effective full-process simulation test.

[0005] The technical solution of this application is implemented as follows:

[0006] The present application provides a vehicle dynamics simulation method, which is applied to a simulation system, and the method comprises:

[0007] In response to an instruction to start a simulation task, initializing a vehicle dynamics module through an initialization interface;

[0008] Performing scene reset processing on the vehicle dynamics module according to the scene in the simulation task through a reset interface;

[0009] Performing simulation interaction processing with the vehicle dynamics module in the scenario through an interactive interface;

[0010] The simulation interaction process is ended through the end interface, and the simulation result of the vehicle dynamics module during the simulation interaction process is obtained.

[0011] The present application provides a vehicle dynamics simulation device, which is applied to a simulation system, and the device comprises:

[0012] An initialization module, used for initializing the vehicle dynamics module through an initialization interface in response to an instruction to start a simulation task;

[0013] A reset module, used for performing scene reset processing on the vehicle dynamics module according to the scene in the simulation task through a reset interface;

[0014] An interaction module, used for performing simulation interaction processing with the vehicle dynamics module in the scenario through an interaction interface;

[0015] The end module is used to end the simulation interaction process through the end interface and obtain the simulation result of the vehicle dynamics module during the simulation interaction process.

[0016] The present application provides an electronic device, including:

[0017] A memory for storing executable instructions;

[0018] The processor is used to implement the vehicle dynamics simulation method provided in the present application when executing the executable instructions stored in the memory.

[0019] The present application provides a computer-readable storage medium storing executable instructions for causing a processor to execute the vehicle dynamics simulation method provided by the present application.

[0020] The present application provides a computer program product, which includes executable instructions for causing a processor to execute and implement the vehicle dynamics simulation method provided by the present application.

[0021] This application has the following beneficial effects:

[0022] The present application performs initialization processing on the vehicle dynamics module through an initialization interface, performs scene reset processing on the vehicle dynamics module through a reset interface, performs simulation interaction processing with the vehicle dynamics module in the scene through an interaction interface, and ends the simulation interaction processing and obtains the simulation results of the vehicle dynamics module through an end interface. In summary, the present application enables an external vehicle dynamics module (such as a vehicle dynamics module provided by a vehicle manufacturer) to access the simulation system through a predefined interface, thereby jointly performing simulation tasks and realizing a true and effective full-process simulation test. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0024] Figure 1 is a schematic diagram of the architecture of a vehicle dynamics simulation system provided in an embodiment of the present application;

[0025] Figure 2 It is a structural diagram of a server provided in an embodiment of the present application;

[0026] Figure 3A is a flow chart of a vehicle dynamics simulation method provided by an embodiment of the present application;

[0027] Figure 3B is another flow chart of the vehicle dynamics simulation method provided by an embodiment of the present application;

[0028] Figure 3C is another flow chart of the vehicle dynamics simulation method provided by an embodiment of the present application;

[0029] Figure 4 It is another flowchart of the vehicle dynamics simulation method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0031] In the following description, reference is made to "some embodiments", which describes a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. In the following description, reference is made to the term "multiple" to mean at least two.

[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0033] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0034] 1) Simulation system: also called simulator, used to build virtual scenes to simulate the road environment in the real world and perform simulation tests of various functions.

[0035] 2) Simulation task: a task used to implement simulation testing of specific functions. The simulation system implements simulation testing by executing simulation tasks.

[0036] 3) Vehicle dynamics module: used to implement the internal logic of the vehicle dynamics model. It is worth noting that the vehicle dynamics module involved in the embodiment of the present application is not built into the simulation system, but is externally connected.

[0037] 4) In response to: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.

[0038] 5) Application Programming Interface (API): some predefined functions, or agreements that connect different components of a software system. The purpose is to provide application and developer access to a set of routines based on certain software or hardware, so that developers do not need to access the source code or understand the details of the internal working mechanism. In the embodiments of the present application, the interface involved may refer to the API interface.

[0039] The embodiments of the present application provide a vehicle dynamics simulation method, device, electronic device, computer-readable storage medium, and computer program product, which can enable an external vehicle dynamics module to access a simulation system through a defined interface to achieve a true and effective full-process simulation test. The following describes an exemplary application of the electronic device provided by the embodiments of the present application. The electronic device provided by the embodiments of the present application can be implemented as various types of terminal devices or as a server.

[0040] See also Figure 1 , Figure 1 It is a schematic diagram of the architecture of the vehicle dynamics simulation system 100 provided in an embodiment of the present application. The terminal device 400 is connected to the server 200 via the network 300, wherein the network 300 may be a wide area network or a local area network, or a combination of the two.

[0041] In some embodiments, taking the electronic device as a terminal device as an example, the vehicle dynamics simulation method provided in the embodiment of the present application can be implemented by the terminal device. For example, the terminal device 400 deployed with the simulation system can be a terminal device used by a user (such as a simulation engineer). When the terminal device 400 receives an instruction to start a simulation task, it initializes the vehicle dynamics module through the initialization interface; resets the scene of the vehicle dynamics module according to the scene in the simulation task through the reset interface; performs simulation interaction processing with the vehicle dynamics module in the scene through the interactive interface; ends the simulation interaction processing through the end interface, and obtains the simulation results of the vehicle dynamics module during the simulation interaction processing. For the obtained simulation results, the terminal device 400 can display them so that the user knows. It is worth noting that the vehicle dynamics module can be pre-acquired and stored locally by the terminal device 400. In the above manner, vehicle dynamics simulation can be implemented locally on the terminal device 400, improving the privacy and data security of the simulation process.

[0042] In some embodiments, taking the electronic device as a server as an example, the vehicle dynamics simulation method provided in the embodiments of the present application can be implemented by the server. For example, when the server 200 deployed with the simulation system receives the instruction to start the simulation task, it initializes the vehicle dynamics module through the initialization interface; resets the scene of the vehicle dynamics module according to the scene in the simulation task through the reset interface; performs simulation interaction processing with the vehicle dynamics module in the scene through the interaction interface; ends the simulation interaction processing through the end interface, and obtains the simulation results of the vehicle dynamics module during the simulation interaction processing. The above method can realize cloud-based simulation. On this basis, with the help of the computing power of the server 200, high-concurrency simulation in the cloud can be further realized, that is, the server 200 executes multiple simulation tasks at the same time, thereby improving the efficiency of simulation testing.

[0043] In some embodiments, the vehicle dynamics simulation method provided in the embodiments of the present application can be implemented by a terminal device and a server in collaboration. For example, when the terminal device 400 receives an instruction to start a simulation task, it sends the instruction to start the simulation task to the server 200 deployed with the simulation system, so that the server 200 performs a series of operations in response to the instruction to start the simulation task to obtain a simulation result. The server 200 can send the obtained simulation result to the terminal device 400 so that the terminal device 400 displays it, so that the user using the terminal device 400 can know it.

[0044] In some embodiments, the terminal device 400 or the server 200 can implement the vehicle dynamics simulation method provided in the embodiments of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (APP, Application), that is, a program that needs to be installed in the operating system to run; it can also be a small program, that is, a program that can be run only by downloading it to a browser environment; it can also be a small program that can be embedded in any APP. In short, the above-mentioned computer program can be an application, module or plug-in in any form.

[0045] In some embodiments, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal device 400 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, a smart watch, etc., but is not limited thereto. The terminal device and the server may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.

[0046] For example, the electronic device is used as a server. Figure 2 , Figure 2 is a schematic diagram of the structure of the server 200 provided in an embodiment of the present application, Figure 2 The server 200 shown includes: at least one processor 210, a memory 250 and at least one network interface 220. The various components in the server 200 are coupled together via a bus system 240. It is understood that the bus system 240 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 240 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 240 is not described in detail. Figure 2 Various buses are labeled as bus system 240 .

[0047] The processor 210 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0048] The memory 250 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 250 may optionally include one or more storage devices that are physically remote from the processor 210.

[0049] The memory 250 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 250 described in the embodiments of the present application is intended to include any suitable type of memory.

[0050] In some embodiments, memory 250 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0051] Operating system 251, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0052] A network communication module 252, used to reach other computing devices via one or more (wired or wireless) network interfaces 220, exemplary network interfaces 220 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB);

[0053] In some embodiments, the vehicle dynamics simulation device provided in the embodiments of the present application can be implemented in a software manner. Figure 2 The vehicle dynamics simulation device 255 stored in the memory 250 is shown, which can be software in the form of a program and a plug-in, etc., including the following software modules: an initialization module 2551, a reset module 2552, an interaction module 2553, and an end module 2554. These modules are logical, and therefore can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.

[0054] The vehicle dynamics simulation method provided by the embodiment of the present application will be described in combination with the exemplary application and implementation of the electronic device provided by the embodiment of the present application. The electronic device is deployed with a simulation system, and the vehicle dynamics simulation method provided by the embodiment of the present application is implemented by the simulation system.

[0055] See also Figure 3A , Figure 3Ais a flow chart of the vehicle dynamics simulation method provided by the embodiment of the present application, which will be combined with Figure 3A The steps shown are explained.

[0056] In step 101 , in response to an instruction to start a simulation task, the vehicle dynamics module is initialized through an initialization interface.

[0057] Here, when receiving the instruction to start the simulation task, the simulation task is executed. Considering that it is usually difficult for the simulation system to reach a professional level in dynamics simulation, and the simulation system is often oriented to multiple vehicle manufacturers, it is impossible to meet the professional and personalized requirements of different vehicle manufacturers in dynamics simulation. Therefore, in the embodiment of the present application, the simulation task is jointly executed by the simulation system and the external vehicle dynamics module, wherein the external vehicle dynamics module refers to a vehicle dynamics module that is not provided by the simulation system.

[0058] The vehicle dynamics module is used to implement the internal logic of the vehicle dynamics model, that is, the vehicle dynamics module is a module built on the basis of the vehicle dynamics model and used to access the simulation system. The embodiment of the present application does not limit the type of vehicle dynamics model. For example, considering the characteristics of the vehicles produced by vehicle manufacturers, they usually have vehicle dynamics models that have been used for a long time or built by themselves. Therefore, the vehicle dynamics module can be constructed according to the vehicle dynamics model of the vehicle manufacturer itself.

[0059] In the embodiment of the present application, the simulation task includes four stages: initialization, reset, interaction, and end. A standardized interface is defined for each stage, so that the vehicle dynamics module is called through the standardized interface to perform corresponding processing. In the initialization stage, the simulation system performs initialization processing on the vehicle dynamics module through the defined initialization interface, for example, the vehicle dynamics module can be controlled to load a specific configuration file to implement initialization processing.

[0060] In some embodiments, when there are multiple simulation tasks to be started, the simulation system can perform one initialization process on the vehicle dynamics module through the initialization interface. That is, the vehicle dynamics module can be used for multiple simulation tasks after one initialization process, or the initialization phase of multiple simulation tasks can be considered to be shared. In this way, it is possible to avoid the waste of resources caused by repeated initialization processes.

[0061] In some embodiments, before initializing the vehicle dynamics module through the initialization interface, the vehicle dynamics simulation method also includes: displaying multiple versions; wherein each version corresponds to a vehicle dynamics module; in response to a selection operation for the multiple versions, using the vehicle dynamics module corresponding to the selected version for the simulation task.

[0062] Since the vehicle dynamics module is connected to the simulation system through a defined interface, the embodiment of the present application can support the selection of the connected vehicle dynamics module. For example, multiple versions can be displayed, wherein each version corresponds to a vehicle dynamics module, and different versions correspond to different vehicle dynamics modules. Displaying a certain version can refer to displaying the identifier of the version (such as the version number).

[0063] When a selection operation for multiple versions is received, the vehicle dynamics module corresponding to the selected version is used for the simulation task, that is, the vehicle dynamics module corresponding to the selected version is connected to the simulation system to implement the simulation test. In the above manner, the user can select a vehicle dynamics module from multiple vehicle dynamics modules to implement the simulation test, thereby improving the freedom and flexibility of the simulation test.

[0064] On this basis, each version may correspond to a configuration file in addition to a vehicle dynamics module. When a selection operation for multiple versions is received, the configuration file and the vehicle dynamics module corresponding to the selected version are used for the simulation task. Among them, the configuration file corresponding to the selected version is used to initialize the vehicle dynamics module corresponding to the selected version. In this way, the degree of freedom and flexibility of the simulation test can be further improved.

[0065] In some embodiments, the above-mentioned initialization process of the vehicle dynamics module through the initialization interface can be implemented in the following manner: performing any one of the following processes: sending the configuration file to the vehicle dynamics module through the initialization interface so that the vehicle dynamics module loads the configuration file; sending the path of the configuration file to the vehicle dynamics module through the initialization interface so that the vehicle dynamics module obtains and loads the configuration file according to the path of the configuration file.

[0066] Here, in the initialization phase, the simulation system can directly send the configuration file to the vehicle dynamics module through the initialization interface so that the vehicle dynamics module loads the configuration file; or the simulation system can send the path of the configuration file to the vehicle dynamics module through the initialization interface so that the vehicle dynamics module obtains and loads the configuration file according to the path of the configuration file. The latter situation is suitable for scenarios where the configuration file capacity is large and it is inconvenient to send it directly. Among them, the configuration file or the path of the configuration file can be stored locally in the simulation system or other storage locations for the simulation system to obtain.

[0067] In step 102, a scene reset process is performed on the vehicle dynamics module according to the scene in the simulation task through a reset interface.

[0068] Here, the scene refers to a virtual scene obtained by simulating the road environment in the real world. The scene needs to reference a map, which includes several static elements, such as roads and road signs; while the scene adds several dynamic elements, such as vehicles, pedestrians, obstacles, etc., to the map.

[0069] There is a one-to-one relationship between simulation tasks and scenarios, that is, each simulation task includes a scenario. For each simulation task, the simulation system performs scenario reset processing on the vehicle dynamics module according to the scenario in the simulation task through the defined reset interface, wherein the scenario reset processing may refer to sending information related to the scenario in the simulation task to the vehicle dynamics module, so that the vehicle dynamics module subsequently performs dynamics calculation processing according to the information related to the scenario.

[0070] In some embodiments, when there are multiple simulation tasks started, the above-mentioned scene reset processing of the vehicle dynamics module through the reset interface according to the scene in the simulation task can be achieved in the following way: the scene reset processing of the vehicle dynamics module is performed separately according to the scenes in multiple simulation tasks through the reset interface.

[0071] For example, when there are multiple simulation tasks started, the simulation system performs scene reset processing on the vehicle dynamics module according to the scenes in the multiple simulation tasks through the reset interface. It is worth noting that the scene reset processing implemented according to different simulation tasks can be executed simultaneously (or concurrently); for the vehicle dynamics module, the scene reset processing processes implemented according to different simulation tasks do not conflict with each other, that is, multiple scenes can be reset simultaneously in the vehicle dynamics module. In the above manner, it is possible to ensure that the reset phase of multiple simulation tasks is completed smoothly, and concurrent execution can also be achieved, thereby improving the efficiency of the scene reset processing as a whole.

[0072] In step 103, simulation interaction processing is performed in the scene with the vehicle dynamics module through an interactive interface.

[0073] In the interactive stage, the simulation system performs simulation interaction processing with the vehicle dynamics module in the scene through the defined interactive interface. The simulation interaction processing involves both the simulation system and the vehicle dynamics module. For example, during the simulation interaction processing, the simulation system calculates the vehicle dynamics information in the scene and sends it to the vehicle dynamics module through the interactive interface; the vehicle dynamics module performs dynamic calculation processing based on the vehicle dynamics information in the scene, and sends the calculation results to the simulation system through the interactive interface. In this way, the driving process of the vehicle in the real world is simulated through simulation interaction processing.

[0074] In some embodiments, when there are multiple simulation tasks started, the above-mentioned simulation interaction processing in the scene through the interactive interface and the vehicle dynamics module can be implemented in the following way: the simulation interaction processing is performed in multiple scenes respectively through the interactive interface and the vehicle dynamics module.

[0075] Similarly, when there are multiple simulation tasks started, the simulation system performs simulation interaction processing in multiple scenes through the interactive interface and the vehicle dynamics module. It is worth noting that the simulation interaction processing in different scenes can be executed simultaneously (or concurrently); for the vehicle dynamics module, the simulation interaction processing processes in different scenes do not conflict with each other. Through the above method, it can ensure that the interaction phase of multiple simulation tasks is completed smoothly, and concurrent execution can also be achieved, thereby improving the efficiency of simulation interaction processing as a whole.

[0076] In step 104, the simulation interaction process is ended through the end interface, and the simulation result of the vehicle dynamics module during the simulation interaction process is obtained.

[0077] In the end stage, the simulation system ends the simulation interaction process through the end interface. In addition, the simulation system also obtains the simulation results of the vehicle dynamics module during the simulation interaction process through the end interface. The simulation results can be regarded as the test results of the functional test to be implemented by the simulation task. The embodiment of the present application does not limit the type of simulation results, which can be set according to the actual application scenario. For example, it can include several indicators for evaluating the simulation test effect, such as whether the vehicle has pressed the solid line, whether it is speeding, etc.

[0078] In some embodiments, when the end condition is met, the simulation interaction process can be ended through the end interface, and the simulation results of the vehicle dynamics module during the simulation interaction process can be obtained. The end condition can be set according to the actual application scenario, such as the duration of the simulation interaction process reaches a duration threshold.

[0079] In some embodiments, when there are multiple simulation tasks started, the simulation interaction processing in multiple scenarios can be ended simultaneously through the end interface, and the simulation results of the vehicle dynamics module in the simulation interaction processing in the multiple scenarios (i.e., the simulation results of multiple simulation tasks) can be obtained. That is, the end stage of multiple simulation tasks can be shared, achieving unified end, and improving the unity and orderliness of simulation testing.

[0080] In some embodiments, after terminating the simulation interaction process through the end interface and obtaining the simulation result of the vehicle dynamics module during the simulation interaction process, the vehicle dynamics simulation method further includes: performing notification processing according to the simulation result.

[0081] Here, the simulation system can notify a specific user (such as a simulation engineer) of the simulation results so that the user can determine whether the tested function meets the requirements based on the simulation results. The embodiment of the present application does not limit the notification method, for example, the simulation results can be directly displayed, or the simulation results can be sent to the mobile terminal held by the user in the form of an email or text message.

[0082] In some embodiments, the data involved in the embodiments of the present application can be stored in a target storage location, and the simulation system or the vehicle dynamics module can obtain the required data from the target storage location. For example, the simulation system can obtain map-related data, scene-related data, and algorithm data (such as algorithms for calculating vehicle dynamics information) from the target storage location; the vehicle dynamics module can obtain configuration files from the target storage location. In the above manner, the convenience and accuracy of data acquisition can be improved. On this basis, the vehicle dynamics module itself can also be stored in the target storage location in the form of a file, and can be obtained when a simulation test is required; the access module itself can also be stored in the target storage location in the form of a file, and can be obtained when a simulation test is required. The access module will be explained later. Among them, the type of the target storage location is not limited, for example, it can be a shared object storage directory, a database, or a blockchain.

[0083] like Figure 3A As shown, the embodiment of the present application standardizes the way in which the vehicle dynamics module is connected to the simulation system, as well as the stages of the simulation test, through the defined initialization interface, reset interface, interaction interface, and end interface. Any vehicle dynamics module can be connected to the simulation system through the above-defined interfaces, so as to jointly perform simulation tasks and realize a true and effective full-process simulation test. At the same time, the embodiment of the present application does not rely on the vehicle dynamics model of the simulation system. In actual application scenarios, a professional and personalized vehicle dynamics module can be connected to the simulation system, so as to quickly promote a true and effective simulation test.

[0084] In some embodiments, see Figure 3B , Figure 3B is a flow chart of a vehicle dynamics simulation method provided in an embodiment of the present application, Figure 3A The illustrated step 103 can be implemented through steps 201 to 203 , which will be described in conjunction with each step.

[0085] In step 201 , in the i-th cycle, vehicle dynamics information is calculated based on scene vehicle information in the scene.

[0086] The simulation interaction process includes multiple cycles. For ease of understanding, the i-th cycle is taken as an example for explanation, where i is an integer greater than 0.

[0087] In the i-th cycle, the simulation system calculates vehicle dynamics information based on scene vehicle information in the scene, wherein the scene vehicle information represents the current state of the vehicle in the scene, for example, the scene vehicle information may include at least one of the information such as position, speed and heading angle; the vehicle dynamics information represents relevant information for controlling the movement of the vehicle, for example, the vehicle dynamics information may include at least one of the information such as acceleration, throttle opening, brake master cylinder pressure, steering wheel angle, steering wheel torque, maximum vehicle speed, gear position and remaining parking distance.

[0088] The process of calculating vehicle dynamics information based on scene vehicle information in the scene is to simulate how to control the movement of the vehicle in real-world road conditions. The embodiment of the present application does not limit the specific calculation method. For example, the calculation can be completed through the algorithm module built into the simulation system.

[0089] It is worth noting that in the first cycle (i.e., i=1), the scene vehicle information used in step 201 is preset in the scene; in each cycle after the first cycle (i.e., i>1), the scene vehicle information used in step 201 is obtained through dynamic calculation in the previous cycle (i.e., the i-1th cycle).

[0090] In step 202, in the i-th cycle, the vehicle dynamics information is sent to the vehicle dynamics module through the interactive interface, so that the vehicle dynamics module performs dynamics calculation processing according to the scene vehicle information and the vehicle dynamics information to obtain new scene vehicle information.

[0091] In the i-th cycle, the simulation system sends the calculated vehicle dynamics information to the vehicle dynamics module through the interactive interface; the vehicle dynamics module performs dynamics calculation processing based on the scene vehicle information and the vehicle dynamics information to obtain new scene vehicle information. The process of dynamics calculation processing is to calculate the future state of the vehicle after the vehicle is controlled to move according to the control strategy (vehicle dynamics information). The embodiment of the present application does not limit the method of dynamics calculation processing.

[0092] It is worth noting that in the first cycle (i.e., i=1), the scene vehicle information on which the dynamic calculation processing depends is preset in the scene; in each cycle after the first cycle (i.e., i>1), the scene vehicle information on which the dynamic calculation processing depends is obtained through dynamic calculation processing in the previous cycle (i.e., the i-1th cycle).

[0093] In some embodiments, before resetting the scene of the vehicle dynamics module according to the scene in the simulation task through the reset interface, the vehicle dynamics simulation method also includes: loading the scene in the simulation task; the above-mentioned resetting the scene of the vehicle dynamics module according to the scene in the simulation task through the reset interface can be achieved in this way, including: sending the scene vehicle information in the loaded scene to the vehicle dynamics module through the reset interface.

[0094] Since the dynamics calculation processing implemented by the vehicle dynamics module in the interactive stage needs to rely on the scene vehicle information preset in the scene, the simulation system can load the scene in the simulation task in the reset stage, and send the scene vehicle information in the loaded scene (i.e., the scene vehicle information preset in the scene) to the vehicle dynamics module through the reset interface, so that the vehicle dynamics module can successfully implement the dynamics calculation processing. It is worth noting that when the simulation system loads the scene in the simulation task, it also needs to load the map that the scene depends on.

[0095] In some embodiments, the sending of the vehicle dynamics information to the vehicle dynamics module through the interactive interface can be achieved in the following manner: the vehicle dynamics information subscribed to by the configuration file is sent to the vehicle dynamics module through the interactive interface; wherein the configuration file is used to initialize the vehicle dynamics module.

[0096] Here, the type of information that the vehicle dynamics information needs to include can be set in advance in the configuration file, that is, the vehicle dynamics information is subscribed through the configuration file. In this way, after calculating the vehicle dynamics information according to the scene vehicle information in the scene, the simulation system sends the vehicle dynamics information subscribed by the configuration file to the vehicle dynamics module through the interactive interface, wherein the subscribed vehicle dynamics information may be the same as the calculated vehicle dynamics information, or may be a subset of the calculated vehicle dynamics information, depending on the dynamics calculation algorithm. In the above manner, the vehicle dynamics information can be subscribed according to the specific vehicle dynamics module and the dynamics calculation algorithm, ensuring the accuracy of the vehicle dynamics information obtained by the vehicle dynamics module, and avoiding the situation where the vehicle dynamics information obtained by the vehicle dynamics module is redundant or missing.

[0097] In some embodiments, before sending the vehicle dynamics information to the vehicle dynamics module through the interactive interface, the vehicle dynamics simulation method also includes: registering an elevation query function in the vehicle dynamics module, so that the vehicle dynamics module performs elevation query processing through the elevation query function, and performs dynamic calculation processing based on the queried elevation, scene vehicle information and vehicle dynamics information to obtain new scene vehicle information.

[0098] Here, the dynamic calculation processing also depends on the elevation information in the map, wherein the elevation refers to the vertical height of a point relative to a given reference plane (such as a foundation or the ground). Therefore, before the vehicle dynamics information is sent to the vehicle dynamics module through the interactive interface (such as in the reset phase), the elevation query function can be registered in the vehicle dynamics module, for example, the elevation query function is registered in the vehicle dynamics module through the registration interface of the elevation callback function, wherein the elevation query capability implemented by the elevation query function can be provided by a third-party map service, and this is not limited. In this way, in the interactive phase, the vehicle dynamics module can perform elevation query processing through the registered elevation query function to obtain the elevation of all or part of the points in the map, and perform dynamic calculation processing based on the queried elevation, scene vehicle information and vehicle dynamics information to obtain new scene vehicle information. In addition to outputting the elevation, the elevation query function can also output parameters such as partial derivatives and friction coefficients, which can also be used for dynamic calculation processing. In the above manner, the vehicle dynamics module can use the elevation query capability, thereby improving the accuracy of the dynamic calculation processing. It is worth noting that the terrain information within the set range around the vehicle can be calculated through the elevation query function, and then the elevation of the specific location point in the terrain information can be calculated in combination with actual needs. For example, when the map is large (such as the map range is greater than the range threshold), the amount of data and calculation of the road information is large, which may affect the real-time performance of the simulation. In order to ensure the accuracy of the elevation while not affecting the system performance, the terrain information within the set range around the vehicle (referring to the vehicle to be simulated) can be calculated through the elevation query function, and then the elevation of the specific location point in the terrain information can be calculated in combination with actual needs. The set range is such as 200 meters × 200 meters, and there is no limit to this. In this way, the efficiency of elevation query can be improved while ensuring the accuracy of dynamic calculation processing, while reducing the occupation of computing resources.

[0099] In step 203, in the i-th cycle, new scene vehicle information is obtained through the interactive interface, and the (i+1)-th cycle is entered according to the new scene vehicle information.

[0100] In the i-th cycle, the simulation system obtains new scene vehicle information obtained by the vehicle dynamics module through dynamic calculation through the interactive interface, and enters the i+1-th cycle according to the new scene vehicle information until the preset end condition is met.

[0101] like Figure 3B As shown, in the simulation interaction processing of the embodiment of the present application, the simulation system calculates the vehicle dynamics information, and the vehicle dynamics module calculates the new scene vehicle information through dynamic calculation processing. Through the cyclic interaction between the simulation system and the vehicle dynamics module, the process of continuous driving of the vehicle in the real world is simulated, which can improve the effectiveness and accuracy of the simulation test.

[0102] In some embodiments, see Figure 3C , Figure 3C is a flow chart of a vehicle dynamics simulation method provided in an embodiment of the present application, Figure 3A The illustrated step 101 may be updated to step 301 . In step 301 , in response to an instruction to start a simulation task, an access module is called through an initialization interface so that the access module performs initialization processing on the vehicle dynamics module.

[0103] Here, the initialization interface, reset interface, interaction interface and end interface can be provided by the access module, and the access module is used to perform corresponding processing on the vehicle dynamics module through the interface provided by the vehicle dynamics module when the interface provided by itself is called by the simulation system. That is, the access module can be regarded as a bridge between the simulation system and the vehicle dynamics module. In this way, the vehicle dynamics module can be connected to the simulation system without making a lot of modifications to the vehicle dynamics module, which can reduce the difficulty of connecting the vehicle dynamics module to the simulation system, thereby lowering the threshold of simulation testing.

[0104] On this basis, the initialization phase, reset phase, interaction phase and end phase of the simulation task are respectively described. First, when receiving the instruction to start the simulation task, the initialization phase is entered. In the initialization phase, the simulation system calls the access module through the initialization interface so that the access module initializes the vehicle dynamics module. For example, the simulation system can forward the configuration file to the vehicle dynamics module through the access module so that the vehicle dynamics module loads the configuration file, thereby realizing the initialization process; for another example, the simulation system can forward the path of the configuration file to the vehicle dynamics module through the access module so that the vehicle dynamics module obtains and loads the configuration file according to the path of the configuration file, thereby realizing the initialization process.

[0105] exist Figure 3C middle, Figure 3A The illustrated step 102 may be updated to step 302 , in which the access module is called through the reset interface so that the access module performs scene reset processing on the vehicle dynamics module according to the scene in the simulation task.

[0106] For example, in the reset phase, the simulation system calls the access module through the reset interface so that the access module sends information related to the scene in the simulation task (such as scene vehicle information) to the vehicle dynamics module, so that the vehicle dynamics module can subsequently perform dynamic calculations based on the scene-related information.

[0107] exist Figure 3C middle, Figure 3AThe illustrated step 103 may be updated to step 303 , in which the access module is called through the interactive interface to perform simulation interaction processing with the vehicle dynamics module in the scene through the access module.

[0108] For example, in the interactive phase, the simulation system calls the access module through the interactive interface, so that the access module is used as a transfer station for the simulation interaction between the simulation system and the vehicle dynamics module. That is, in this case, the simulation interaction process involves the simulation system, the access module and the vehicle dynamics module.

[0109] For example, the simulation interaction process may include multiple loops, and the following processes are performed in the i-th loop: the simulation system calculates the vehicle dynamics information based on the scene vehicle information in the scene; the simulation system sends the vehicle dynamics information to the access module through the interaction interface; the access module sends the vehicle dynamics information to the vehicle dynamics module; the vehicle dynamics module performs dynamic calculations based on the scene vehicle information and the vehicle dynamics information to obtain new scene vehicle information; the vehicle dynamics module sends the new scene vehicle information to the access module; the access module sends the new scene vehicle information to the simulation system through the interaction interface; the simulation system enters the i+1th loop based on the new scene vehicle information.

[0110] exist Figure 3C middle, Figure 3A The illustrated step 104 may be updated to step 304. In step 304, the access module is called through the end interface so that the access module ends the simulation interaction process and obtains the simulation result of the vehicle dynamics module during the simulation interaction process through the access module.

[0111] For example, in the end phase, the simulation system calls the access module through the end interface. When the access module is called, it ends the simulation interaction process, obtains the simulation results of the vehicle dynamics module during the simulation interaction process, and sends the simulation results to the simulation system through the end interface.

[0112] In some embodiments, the access module and the vehicle dynamics module can be packaged into a target module. For the simulation system (or the user of the simulation system), it is only necessary to call the target module through the initialization interface, reset interface, interaction interface and end interface to implement the simulation test, without having to understand the internal details of the target module. In this way, the threshold requirements for simulation testing can be lowered and ease of use can be improved.

[0113] In some embodiments, before initializing the vehicle dynamics module through the initialization interface, the vehicle dynamics simulation method also includes: displaying multiple versions; wherein each version corresponds to a configuration file, an access module and a vehicle dynamics module; wherein the configuration file is used to initialize the vehicle dynamics module; in response to a selection operation for multiple versions, the configuration file, the access module and the vehicle dynamics module corresponding to the selected version are used for the simulation task.

[0114] Here, the selection of configuration files, access modules and vehicle dynamics modules can be supported. For example, multiple versions can be displayed, wherein each version corresponds to a configuration file, an access module and a vehicle dynamics module. For different versions, at least part of the corresponding configuration files, access modules and vehicle dynamics modules is different, for example, version 1 and version 2 correspond to different configuration files. When a selection operation for multiple versions is received, the configuration file, access module and vehicle dynamics module corresponding to the selected version are used for the simulation task, that is, the vehicle dynamics module corresponding to the selected version is connected to the simulation system, the configuration file corresponding to the selected version is used to initialize the vehicle dynamics module corresponding to the selected version, and the access module corresponding to the selected version is used as a transfer station between the simulation system and the vehicle dynamics module corresponding to the selected version. In the above manner, the flexibility and freedom of the simulation test can be improved, that is, the user can freely select the version for simulation testing, and at the same time, iterative updates of the version can also be supported.

[0115] like Figure 3C As shown, in the embodiment of the present application, an access module is established between the simulation system and the vehicle dynamics module, and information transfer between the simulation system and the vehicle dynamics module is realized through the access module, so that simulation testing can be realized without making a lot of modifications to the vehicle dynamics module, which can reduce the difficulty and threshold of simulation testing.

[0116] The following will illustrate an exemplary application of the embodiment of the present application in an actual application scenario. The embodiment of the present application is aimed at the simulation test scenario of the intelligent driving function, and can flexibly and effectively integrate the vehicle manufacturer's vehicle dynamics model into the cloud-based simulation system, quickly realize the effective reuse of dynamics capabilities, and ensure the accuracy requirements of the simulation test. For ease of understanding, the following is provided: Figure 4 The vehicle dynamics simulation method shown in the figure is a flow chart, which will be combined with Figure 4 Provide explanation.

[0117] 1. Dynamic integration method.

[0118] Here, the dynamic integration of the simulation system is realized through the vehicle dynamics module and the access module. Among them, the vehicle dynamics module is used to realize the internal logic of the vehicle dynamics model, and the vehicle dynamics module can be compiled into a .so dynamic library form; the access module is connected to the simulation system by inheriting the class (inheriting the class defined in the simulation system) and exposing the Init initialization function (corresponding to the initialization interface above), the Reset reset function (corresponding to the reset interface above), the Step interaction function (corresponding to the interaction interface above) and the Stop end function (corresponding to the end interface above). At the same time, the access module will call the method exposed by the vehicle dynamics module, that is, the access module can be regarded as a bridge between the simulation system and the vehicle dynamics module. In some embodiments, the access module and the vehicle dynamics module can be packaged into a target module, so that for the simulation system, there is no need to pay attention to the internal details of the target module, and only the simulation test needs to be realized through the defined interface.

[0119] The four external interfaces correspond to the four stages of high-concurrency simulation in the cloud (i.e., simulation test including multiple simulation tasks). The interfaces are universal and flexible. The simulation system implements high-concurrency simulation by calling the corresponding external interfaces (functions) at different stages of the simulation. Among them, the Init initialization function is called when starting the simulation task, the Reset reset function is called each time the scene is switched (loaded), the Step interaction function is called each time the simulation interaction is processed in the scene, and the Stop end function is called when the scene ends. The following will explain the four stages of high-concurrency simulation in the cloud.

[0120] 1) Initialization phase.

[0121] Here, upon receiving an instruction to start a parallel simulation task (i.e., start multiple simulation tasks at the same time), the cloud scheduling system creates a container, and the simulation engine starts a process in the container to initialize the simulation system, wherein the simulation engine refers to the simulation operation and control software responsible for time advancement, scheduling operation, simulation control, and data storage in the simulation system, and the operations performed by the simulation system involved in the embodiments of the present application may be triggered by the simulation engine. It is worth noting that the simulation system can obtain map-related data, scene-related data, and algorithm data (referring to the algorithm used to calculate vehicle dynamics information) from the shared object storage directory to initialize the simulation system.

[0122] The simulation system calls the Init initialization function of the access module, so that the access module performs corresponding initialization operations through the InitHelper object passed in by the simulation system (i.e., the Helper object defined in the Init initialization function, the same applies below), such as obtaining the configuration file or the path of the configuration file, wherein the configuration file may include the simulation frame rate, the topic to be published, the topic to be subscribed, the vehicle model name, the dynamic control mode, etc., and the subscribed topic may be the subscribed vehicle dynamics information. The access module initializes the vehicle dynamics module according to the acquired data, for example, sending the path of the configuration file (such as the configuration file path with the vehicle model name) to the vehicle dynamics module, so that the vehicle dynamics module obtains the configuration file from the object storage directory according to the path, and loads the configuration file, thereby completing the initialization process; or, the access module may also directly send the configuration file to the vehicle dynamics module, so that the vehicle dynamics module loads the configuration file.

[0123] 2) Reset phase (corresponding to Figure 4 ).

[0124] The simulation system loads the map and the scene that depends on the map, and calls the Reset function of the access module, so that the access module obtains the initial scene vehicle information in the scene loaded by the simulation system through the ResetHelper object, for example, the scene vehicle information includes the initial position, initial speed, and initial heading angle of the vehicle. Then, the access module sends the scene vehicle information obtained through the ResetHelper object to the vehicle dynamics module, so that the vehicle dynamics module performs an internal reset (i.e., scene reset processing) according to the scene vehicle information.

[0125] During the reset phase, the simulation system also registers the elevation query function in the vehicle dynamics module through the elevation callback function.

[0126] 3) Interaction phase (corresponding to Figure 4 ) in the simulation interaction loop.

[0127] The simulation system calls the Step interaction function of the access module so that the access module obtains the subscribed vehicle dynamics information through the StepHelper object, such as acceleration, throttle opening, brake master cylinder pressure, steering wheel angle, steering wheel torque, maximum vehicle speed, gear position, remaining parking distance, etc., and sends the vehicle dynamics information to the vehicle dynamics module.

[0128] The vehicle dynamics module first initiates an elevation query through an elevation query function to query the elevations of some or all points in the map. Then, the vehicle dynamics module performs dynamics calculation processing based on the elevation query result, scene vehicle information, and vehicle dynamics information to obtain a calculation result (i.e., new scene vehicle information), wherein the vehicle dynamics module can implement dynamics calculation processing based on the internal dynamics calculation function.

[0129] The access module obtains the calculation results of the vehicle dynamics module and sends the calculation results to the simulation system through the StepHelper object.

[0130] 4) Ending stage.

[0131] When the scenario ends, the simulation system calls the Stop function of the access module to end the simulation interaction processing and send the simulation results to the simulation system. The simulation system can display the simulation results for the convenience of simulation engineers. The simulation results can include indicators that need to be tested, such as whether the vehicle has crossed the line, whether the vehicle has exceeded the speed limit, etc. "Scene end" means that the simulation interaction processing in all scenarios has ended.

[0132] 2. Elevation registration and query.

[0133] The engineering file of the access module may include a registration interface for the elevation callback function provided by a third-party map service. The simulation system registers the elevation query function in the vehicle dynamics module through this registration interface. Thus, the elevation query function is called to call the elevation query capability provided by the third-party map service. The input of the elevation query function may be the coordinates (x, y) of a point in the inertial system, and the output includes the elevation z of the point in the inertial system, the partial derivatives dzdy and dzdx in the inertial system, and the friction coefficient mu.

[0134] When the map is large, the amount of data and calculation of road information is very large, which may affect the real-time performance of the simulation. In order to ensure the accuracy of elevation query while not affecting system performance, the elevation query function can calculate the terrain information within a certain range (such as 200 meters * 200 meters) around the vehicle through high-precision map files and simulation map software development kit (SDK), and then calculate the elevation of specific location points in the terrain information based on actual needs.

[0135] 3. Version management.

[0136] In the embodiment of the present application, version management can be performed in the simulation system to support simulation engineers in selecting configuration files, access modules, and vehicle dynamics modules for simulation testing. Version management involves the following key points:

[0137] 1) To ensure the completeness of each version, each version has complete configuration files, dynamic libraries and engineering files. The dynamic library refers to the vehicle dynamics module represented in the form of files, and the engineering file refers to the access module represented in the form of files.

[0138] 2) The version number can be set to X.YY.ZZZ, where X (one or more digits) is a major version number, indicating that the dynamic library has a major update, or even incompatible with previous versions; YY (two digits, starting from 1, there can be 99 versions) indicates that the dynamic library involves minor code adjustments or bug fixes; ZZZ (three digits, starting from 1, there can be 999 versions) indicates that the code has not been updated, only configuration file adjustments are involved. The larger the version number, the newer the version.

[0139] 3) A third party (such as a vehicle manufacturer) that provides a vehicle dynamics model can edit the configuration file and upload it to a shared object storage directory to generate a new version. The generated new version must comply with the above version management principles (i.e., the ZZZ in the version number is self-incrementing), and the content of the version includes the edited configuration file, dynamic library, and project file.

[0140] 4) When a third party that provides the vehicle dynamics model updates the configuration file, it needs to be updated synchronously to the object storage directory to generate a new version.

[0141] 5) The simulation system can display multiple versions in the object storage directory, and the simulation engineer can select one of the versions for simulation testing. When displaying, the multiple versions can be sorted in descending order of version number before displaying.

[0142] Through the embodiments of the present application, at least the following technical effects can be achieved:

[0143] 1) By designing flexible external interfaces, it can adapt to the needs of different vehicle models and different control algorithms, and improve the scalability and compatibility of the system.

[0144] 2) By formulating standardized engineering document development processes and standards, the errors in the compilation and operation of the vehicle dynamics model can be reduced, and the stability and reliability of the vehicle dynamics model can be improved.

[0145] 3) By adopting accurate elevation registration technology, the accuracy and reliability of elevation control and simulation testing can be improved to meet the needs of practical applications.

[0146] 4) By managing versions and listing multiple versions for selection, the flexibility and freedom of simulation testing can be improved, and simulation testing can be made easier to use; at the same time, it can also support version updates and iterations.

[0147] The following is a description of an exemplary structure of a vehicle dynamics simulation device 255 provided in an embodiment of the present application implemented as a software module. In some embodiments, for example, Figure 2 As shown, the software modules stored in the vehicle dynamics simulation device 255 of the memory 250 may include: an initialization module 2551, which is used to initialize the vehicle dynamics module through the initialization interface in response to an instruction to start the simulation task; a reset module 2552, which is used to reset the scene of the vehicle dynamics module according to the scene in the simulation task through the reset interface; an interaction module 2553, which is used to perform simulation interaction processing with the vehicle dynamics module in the scene through the interaction interface; and an end module 2554, which is used to end the simulation interaction processing through the end interface and obtain the simulation result of the vehicle dynamics module during the simulation interaction processing.

[0148] In some embodiments, the interaction module 2553 is also used to perform the following processing in each cycle of the simulation interaction process: calculate the vehicle dynamics information based on the scene vehicle information in the scene; send the vehicle dynamics information to the vehicle dynamics module through the interaction interface, so that the vehicle dynamics module performs dynamic calculation processing based on the scene vehicle information and the vehicle dynamics information to obtain new scene vehicle information; obtain the new scene vehicle information through the interaction interface, and enter the next cycle based on the new scene vehicle information.

[0149] In some embodiments, the reset module 2552 is further used to: load the scene in the simulation task; and send the scene vehicle information in the loaded scene to the vehicle dynamics module through the reset interface.

[0150] In some embodiments, the vehicle dynamics simulation device 255 also includes an elevation registration module, which is used to: register an elevation query function in the vehicle dynamics module so that the vehicle dynamics module performs elevation query processing through the elevation query function, and performs dynamic calculation processing based on the queried elevation, scene vehicle information and vehicle dynamics information to obtain new scene vehicle information.

[0151] In some embodiments, the initialization module 2551 is further used to perform any of the following processing: sending the configuration file to the vehicle dynamics module through the initialization interface so that the vehicle dynamics module loads the configuration file; sending the path of the configuration file to the vehicle dynamics module through the initialization interface so that the vehicle dynamics module obtains and loads the configuration file according to the path of the configuration file.

[0152] In some embodiments, the initialization interface, the reset interface, the interaction interface, and the end interface are provided by an access module, and the access module is used to perform corresponding processing on the vehicle dynamics module when the provided interface is called.

[0153] In some embodiments, the vehicle dynamics simulation device 255 also includes a version management module, which is used to: display multiple versions; wherein each version corresponds to a configuration file, an access module and a vehicle dynamics module; wherein the configuration file is used to initialize the vehicle dynamics module; in response to a selection operation for multiple versions, the configuration file, the access module and the vehicle dynamics module corresponding to the selected version are used for the simulation task.

[0154] The embodiment of the present application provides a computer program product or a computer program, which includes executable instructions stored in a computer-readable storage medium. A processor of an electronic device reads the executable instructions from the computer-readable storage medium, and the processor executes the executable instructions, so that the electronic device executes the vehicle dynamics simulation method described in the embodiment of the present application.

[0155] An embodiment of the present application provides a computer-readable storage medium storing executable instructions, wherein executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the vehicle dynamics simulation method provided by the embodiment of the present application.

[0156] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.

[0157] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0158] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0159] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0160] The above are only embodiments of the present application and are not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A vehicle dynamics simulation method, characterized in that: Applied to a simulation system, the method comprises: In response to an instruction to start a simulation task, multiple versions are displayed; wherein each version corresponds to a configuration file, an access module, and a vehicle dynamics module; the access module is used to perform corresponding processing on the vehicle dynamics module when the provided interface is called; In response to a selection operation on the multiple versions, a configuration file, an access module, and a vehicle dynamics module corresponding to the selected version are used for the simulation task; Initializing the vehicle dynamics module corresponding to the selected version according to the configuration file corresponding to the selected version through the initialization interface; wherein the vehicle dynamics module corresponding to the selected version is externally connected to the simulation system; Performing scene reset processing on the vehicle dynamics module corresponding to the selected version according to the scene in the simulation task through the reset interface; Performing simulation interaction processing in the scenario with the vehicle dynamics module corresponding to the selected version through an interactive interface; End the simulation interaction process through the end interface, and obtain the simulation result of the vehicle dynamics module corresponding to the selected version during the simulation interaction process; wherein the initialization interface, the reset interface, the interaction interface and the end interface are provided by the access module corresponding to the selected version; In each cycle of the simulation interaction process, the following processes are performed: The simulation system calculates vehicle dynamics information based on scene vehicle information in the scene; Sending the vehicle dynamics information to the vehicle dynamics module corresponding to the selected version through the interactive interface, so that the vehicle dynamics module corresponding to the selected version performs dynamics calculation processing according to the scene vehicle information and the vehicle dynamics information to obtain new scene vehicle information; The simulation system obtains the new scene vehicle information through the interactive interface and enters the next cycle according to the new scene vehicle information.

2. The method according to claim 1, characterized in that: Before performing scene reset processing on the vehicle dynamics module corresponding to the selected version according to the scene in the simulation task through the reset interface, the method further includes: Loading the scene in the simulation task; The resetting interface performs scene resetting processing on the vehicle dynamics module corresponding to the selected version according to the scene in the simulation task, including: The scene vehicle information in the loaded scene is sent to the vehicle dynamics module corresponding to the selected version through the reset interface.

3. The method according to claim 1, characterized in that The method further comprises: An elevation query function is registered in the vehicle dynamics module corresponding to the selected version, so that the vehicle dynamics module corresponding to the selected version performs elevation query processing through the elevation query function, and performs dynamic calculation processing based on the queried elevation, the scene vehicle information and the vehicle dynamics information to obtain new scene vehicle information.

4. The method according to claim 1, characterized in that: The initialization process of the vehicle dynamics module corresponding to the selected version according to the configuration file corresponding to the selected version through the initialization interface includes: Perform any of the following: Sending the configuration file corresponding to the selected version to the vehicle dynamics module corresponding to the selected version through the initialization interface, so that the vehicle dynamics module corresponding to the selected version loads the configuration file corresponding to the selected version; The path of the configuration file corresponding to the selected version is sent to the vehicle dynamics module corresponding to the selected version through the initialization interface, so that the vehicle dynamics module corresponding to the selected version obtains and loads the configuration file corresponding to the selected version according to the path of the configuration file corresponding to the selected version.

5. A vehicle dynamics simulation device, characterized in that: Applied to a simulation system, the device comprises: A version management module, for displaying multiple versions in response to an instruction to start a simulation task; wherein each version corresponds to a configuration file, an access module and a vehicle dynamics module; the access module is used to perform corresponding processing on the vehicle dynamics module when the provided interface is called; The version management module is further configured to, in response to a selection operation on the multiple versions, use a configuration file, an access module, and a vehicle dynamics module corresponding to the selected version for the simulation task; An initialization module, used to initialize the vehicle dynamics module corresponding to the selected version according to the configuration file corresponding to the selected version through an initialization interface; wherein the vehicle dynamics module corresponding to the selected version is externally connected to the simulation system; A reset module, used for performing scene reset processing on the vehicle dynamics module corresponding to the selected version according to the scene in the simulation task through a reset interface; An interaction module, used for performing simulation interaction processing with a vehicle dynamics module corresponding to the selected version in the scenario through an interaction interface; An end module, used to end the simulation interaction process through an end interface, and obtain the simulation result of the vehicle dynamics module corresponding to the selected version during the simulation interaction process; wherein the initialization interface, the reset interface, the interaction interface and the end interface are provided by the access module corresponding to the selected version; In each cycle of the simulation interaction process, the following processes are performed: The simulation system calculates vehicle dynamics information based on scene vehicle information in the scene; Sending the vehicle dynamics information to the vehicle dynamics module corresponding to the selected version through the interactive interface, so that the vehicle dynamics module corresponding to the selected version performs dynamics calculation processing according to the scene vehicle information and the vehicle dynamics information to obtain new scene vehicle information; The simulation system obtains the new scene vehicle information through the interactive interface and enters the next cycle according to the new scene vehicle information.

6. An electronic device, characterized in that: include: A memory for storing executable instructions; A processor is used to implement the vehicle dynamics simulation method according to any one of claims 1 to 4 when executing the executable instructions stored in the memory.

7. A computer-readable storage medium, characterized in that: Executable instructions are stored, and when executed by a processor, the vehicle dynamics simulation method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Data processing method and device

    CN107526623A

  • Kinetic model access method and device

    CN111199084A

  • Automatic driving test device and method and storage medium

    CN117009159A