Vehicle driving simulation method, device, electronic equipment and storage medium
Through the joint simulation method of heterogeneous vehicle simulation software, the problem that traditional single software simulation is difficult to achieve high precision and depth is solved, and a more accurate and in-depth vehicle driving simulation effect is achieved.
Patent Information
- Application Number
- CN202411909846.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-08
AI Technical Summary
Traditional vehicle driving simulation methods are limited to a single software, making it difficult to achieve sufficient accuracy and depth in complex and changeable vehicle driving scenarios, resulting in poor simulation results.
The joint simulation of vehicle driving is realized through heterogeneous vehicle simulation software. The specific method is that the first vehicle simulation software calls the communication module to send control instructions to the second vehicle simulation software, and simulates the vehicle dynamic model based on these instructions.
Through joint simulation, the accuracy and depth of vehicle driving simulation are significantly improved and the simulation effect is improved.
Smart Images

Figure CN119783527A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer processing technology, and in particular to a vehicle driving simulation method, device, electronic equipment and storage medium. Background Art
[0002] Traditional vehicle driving simulation is usually limited to a single vehicle simulation software, in which the vehicle driving model, road environment and traffic conditions are simulated and calculated. This single software simulation method often fails to achieve sufficient accuracy and depth when facing complex and changeable vehicle driving scenarios, resulting in poor simulation results. Therefore, a vehicle driving simulation method is proposed to achieve joint simulation of vehicle driving through heterogeneous vehicle simulation software. Summary of the invention
[0003] The present invention provides a vehicle driving simulation method, device, electronic equipment and storage medium to achieve joint simulation of vehicle driving through heterogeneous vehicle simulation software.
[0004] According to one aspect of the present invention, a vehicle driving simulation method is provided, the method comprising:
[0005] Calling the first communication module through the first vehicle simulation software, sending the first vehicle control instruction generated by the first vehicle simulation software to the second vehicle simulation software, wherein the second vehicle simulation software includes a second communication module that is communicatively connected to the first communication module;
[0006] The first vehicle control instruction is received through the second communication module of the second vehicle simulation software, and vehicle driving simulation processing is performed on the vehicle dynamics model in the second vehicle simulation software based on the first vehicle control instruction.
[0007] Optionally, before sending the first vehicle control instruction generated by the first vehicle simulation software to the second vehicle simulation software, the method also includes: receiving vehicle simulation task information through the second vehicle simulation software, and sending the vehicle simulation task information to the first communication module through the second communication module; generating a first vehicle control instruction based on the vehicle simulation task information by calling the first vehicle simulation software of the first communication module.
[0008] Optionally, after performing vehicle driving simulation processing on the vehicle dynamics model in the second vehicle simulation software based on the first vehicle control instruction, the method further includes: generating a control feedback result corresponding to the first vehicle control instruction through the second vehicle simulation software, and sending the control feedback result to the first vehicle simulation software that calls the first communication module through the second communication module; generating a second vehicle control instruction corresponding to the control feedback result based on the control feedback result through the first vehicle simulation software, and sending the second vehicle control instruction to the second vehicle simulation software through the first communication module, so that the second vehicle simulation software performs vehicle driving simulation processing on the vehicle dynamics model based on the second vehicle control instruction.
[0009] Optionally, the method further includes: sending a network communication connection request to the first communication module through the second communication module, so as to establish a network communication connection between the first communication module and the second communication module based on a preset communication protocol.
[0010] Optionally, the method also includes: when the vehicle dynamics model in the second vehicle simulation software completes a preset vehicle simulation task, sending a network communication disconnection request to the first communication module through the second communication module to disconnect the network communication connection between the first communication module and the second communication module.
[0011] Optionally, the first communication module includes a first communication connection establishment interface, a first data sending interface, a first data receiving interface and a first communication connection disconnection interface; the second communication module includes a second communication connection establishment interface, a second data sending interface, a second data receiving interface and a second communication connection disconnection interface.
[0012] Optionally, the second vehicle simulation software is a secondary developed Carmaker software, and the first vehicle simulation software is a vehicle control simulation software that performs joint simulation with the secondary developed Carmaker software.
[0013] According to another aspect of the present invention, a vehicle driving simulation device is provided. The device comprises:
[0014] A simulation software communication module, used for calling a first communication module through a first vehicle simulation software, and sending a first vehicle control instruction generated by the first vehicle simulation software to a second vehicle simulation software, wherein the second vehicle simulation software includes a second communication module that is communicatively connected to the first communication module;
[0015] The vehicle driving simulation module is used to receive the first vehicle control instruction through the second communication module of the second vehicle simulation software, and perform vehicle driving simulation processing on the vehicle dynamics model in the second vehicle simulation software based on the first vehicle control instruction.
[0016] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0017] at least one processor; and
[0018] a memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the vehicle driving simulation method described in any embodiment of the present invention.
[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the vehicle driving simulation method described in any embodiment of the present invention when executed.
[0021] The technical solution of the embodiment of the present invention is to call the first communication module through the first vehicle simulation software, send the first vehicle control instruction generated by the first vehicle simulation software to the second vehicle simulation software, wherein the second vehicle simulation software includes a second communication module that is communicatively connected to the first communication module; receive the first vehicle control instruction through the second communication module of the second vehicle simulation software, and perform vehicle driving simulation processing on the vehicle dynamics model in the second vehicle simulation software based on the first vehicle control instruction. Compared with the related art that performs vehicle driving simulation through a single vehicle simulation software, resulting in poor simulation effect, the technical solution of the embodiment of the present invention realizes the joint simulation of vehicle driving through heterogeneous vehicle simulation software, effectively improving the simulation effect of vehicle driving.
[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 A schematic diagram of a flow chart of a vehicle driving simulation method provided by an embodiment of the present invention;
[0025] Figure 2 A vehicle driving simulation architecture diagram applicable to a vehicle driving simulation method provided in an embodiment of the present invention;
[0026] Figure 3 A schematic diagram of the structure of a vehicle driving simulation device provided by an embodiment of the present invention;
[0027] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0031] Figure 1 The present invention provides a flow chart of a vehicle driving simulation method. This embodiment is applicable to the case of simulating the driving of a vehicle. The method can be executed by a vehicle driving simulation device. The vehicle driving simulation device can be implemented in the form of hardware and / or software. The vehicle driving simulation device can be configured in an electronic device such as a computer or a server. Figure 1 As shown, the method of this embodiment includes:
[0032] S110, calling a first communication module through a first vehicle simulation software, and sending a first vehicle control instruction generated by the first vehicle simulation software to a second vehicle simulation software, wherein the second vehicle simulation software includes a second communication module that is communicatively connected to the first communication module.
[0033] Among them, the first vehicle simulation software can be a vehicle control simulation software. The second vehicle simulation software can be a vehicle dynamics simulation software. In an embodiment of the present invention, the first vehicle simulation software and the second vehicle simulation software can be heterogeneous vehicle simulation software. In an embodiment of the present invention, the first communication module can be used to provide the first vehicle simulation software with a function of network communication with the second vehicle simulation software, so that the first vehicle simulation software and the second vehicle simulation software can perform vehicle joint simulation. The first communication module can be a function written in C language. The second communication module can be a network communication module embedded in the second vehicle simulation software for communicating with the first communication module. In an embodiment of the present invention, the communication protocol of the first communication module can be a TCP / IP communication protocol. The communication protocol of the second communication module can be a TCP / IP communication protocol. In other words, the second vehicle simulation software and the first vehicle simulation software can communicate through the second communication module and the first communication module based on the TCP / IP communication protocol. The first vehicle control instruction can be understood as an instruction generated by the first vehicle simulation software for performing vehicle driving simulation control on the vehicle simulation model in the second vehicle simulation software.
[0034] In an embodiment of the present invention, the second vehicle simulation software may be a secondary developed Carmaker software. In the related art, the parameters cannot be modified in a fine-grained manner using the Carmaker software during vehicle driving simulation, resulting in the inability to accurately simulate the operation of the vehicle under various working conditions. In an embodiment of the present invention, the secondary developed Carmaker software may have the function of communicating with other vehicle control simulation software, so as to perform refined joint simulation of vehicle driving through other vehicle control simulation software. The first vehicle simulation software may be a vehicle control simulation software for joint simulation with the secondary developed Carmaker software. Exemplarily, the first vehicle simulation software may be Sysplorer software. The first communication module may support the deployment of Sysplorer software in the Modelica modeling environment in which it runs to transmit data with the second communication module of the secondary developed Carmaker software.
[0035] Specifically, when it is detected that the first vehicle simulation software generates a first vehicle control instruction, the first communication module can be called by the first vehicle simulation software to send the first vehicle control instruction generated by the first vehicle simulation software to the second communication module, so that the second vehicle simulation software receives the first vehicle control instruction through the second communication module.
[0036] In an embodiment of the present invention, the first communication module may include a first communication connection establishment interface, a first data transmission interface, a first data reception interface, and a first communication connection disconnection interface. The first communication connection establishment interface may be used to establish a communication connection with the second communication module to receive data sent by the second vehicle simulation software. The first data transmission interface may be used to send data to the second communication module. The first data reception interface may be used to receive data sent by the second communication module. The first communication connection disconnection interface may be used to disconnect the communication connection with the second communication module.
[0037] The second communication module may include a second communication connection establishment interface, a second data transmission interface, a second data reception interface and a second communication connection disconnection interface. The second communication connection establishment interface may be used to establish a communication connection with the first communication module to receive data sent by the first vehicle simulation software. The second data transmission interface may be used to send data to the first vehicle simulation software. The second data reception interface may be used to receive data sent by the first vehicle simulation software. The second communication connection disconnection interface may be used to disconnect the communication connection with the first vehicle simulation software.
[0038] In an embodiment of the present invention, before sending the first vehicle control instruction generated by the first vehicle simulation software to the second vehicle simulation software, the method may also include: receiving vehicle simulation task information through the second vehicle simulation software, and sending the vehicle simulation task information to the first communication module through the second communication module; generating a first vehicle control instruction based on the vehicle simulation task information by calling the first vehicle simulation software of the first communication module.
[0039] The vehicle simulation task information may be preset task information for performing joint simulation using the first vehicle simulation software and the second vehicle simulation software. Exemplarily, the preset vehicle simulation task information may include at least one of task information such as parking, acceleration, and deceleration.
[0040] Specifically, before sending the first vehicle control instruction generated by the first vehicle simulation software to the second vehicle simulation software, the vehicle simulation task information can be received by the second vehicle simulation software, and the vehicle simulation task information can be sent to the first communication module through the second communication module. After the first communication module receives the vehicle simulation task information, the first vehicle simulation software of the first communication module can be called to generate the first vehicle control instruction based on the vehicle simulation task information.
[0041] On the basis of the above embodiment, the method may further include: sending a network communication connection request to the first communication module through the second communication module to establish a network communication connection between the first communication module and the second communication module based on a preset communication protocol. The network connection request can be understood as a request initiated by the second communication module to establish a network connection with the first communication module. The network connection request can be understood as a request initiated by the second communication module to establish a network connection with the first communication module.
[0042] Specifically, in response to the event that the second vehicle simulation software receives the vehicle simulation task information, the second vehicle simulation software generates a network communication connection request, so that the second communication module can send the network communication connection request to the first communication module to establish a network communication connection between the first communication module and the second communication module based on a preset communication protocol.
[0043] S120. Receive the first vehicle control instruction through the second communication module of the second vehicle simulation software, and perform vehicle driving simulation processing on the vehicle dynamics model in the second vehicle simulation software based on the first vehicle control instruction.
[0044] The vehicle dynamics model can be understood as a vehicle model constructed using the second vehicle simulation software. The vehicle dynamics model can at least include models such as a road model, a vehicle model, a driver model, and a sensor model. It can be understood that before performing vehicle driving simulation processing on the vehicle dynamics model in the second vehicle simulation software, the second vehicle simulation software can also be used to construct a road model, etc.
[0045] Specifically, the first vehicle control instruction can be received through the second communication module of the second vehicle simulation software. Then, the vehicle driving simulation processing can be performed on the vehicle dynamics model in the second vehicle simulation software according to the first vehicle control instruction. On the basis of the above embodiment, after the vehicle driving simulation processing is performed on the vehicle dynamics model in the second vehicle simulation software based on the first vehicle control instruction, the method can also include: generating a control feedback result corresponding to the first vehicle control instruction through the second vehicle simulation software, and sending the control feedback result to the first vehicle simulation software that calls the first communication module through the second communication module. Then, the second vehicle control instruction corresponding to the control feedback result can be generated through the first vehicle simulation software based on the control feedback result, and the second vehicle control instruction can be sent to the second vehicle simulation software through the first communication module, so that the second vehicle simulation software performs vehicle driving simulation processing on the vehicle dynamics model based on the second vehicle control instruction, thereby realizing data transmission between the first vehicle simulation software and the second vehicle simulation software.
[0046] Based on the above embodiment, the method may also include: when the vehicle dynamics model in the second vehicle simulation software completes the preset vehicle simulation task, a network communication disconnection request can be sent to the first communication module through the second communication module to disconnect the network communication connection between the first communication module and the second communication module.
[0047] The technical solution of the embodiment of the present invention can send the current driving condition of the vehicle dynamics model to the first vehicle simulation software through the second vehicle simulation software. Then, the first vehicle simulation software can generate the next control instruction according to the current driving condition of the vehicle dynamics model in the second vehicle simulation software to update the current driving condition of the vehicle dynamics model, and repeat the step of sending the current driving condition of the vehicle dynamics model to the first vehicle simulation software through the second vehicle simulation software. The technical solution of the embodiment of the present invention can jointly simulate the preset simulation task information received by the second vehicle simulation software in steps by using the first vehicle simulation software and the second vehicle simulation software, thereby realizing the fine-grained simulation driving of the vehicle dynamics model in the second vehicle simulation software through the first vehicle simulation software.
[0048] The technical solution of the embodiment of the present invention is to call the first communication module through the first vehicle simulation software, send the first vehicle control instruction generated by the first vehicle simulation software to the second vehicle simulation software, wherein the second vehicle simulation software includes a second communication module that is communicatively connected to the first communication module; receive the first vehicle control instruction through the second communication module of the second vehicle simulation software, and perform vehicle driving simulation processing on the vehicle dynamics model in the second vehicle simulation software based on the first vehicle control instruction. Compared with the related art that performs vehicle driving simulation through a single vehicle simulation software, resulting in poor simulation effect, the technical solution of the embodiment of the present invention realizes the joint simulation of vehicle driving through heterogeneous vehicle simulation software, effectively improving the simulation effect of vehicle driving.
[0049] The embodiment of the present invention provides an optional embodiment of a vehicle driving simulation method, such as Figure 2 As shown, the first vehicle simulation software may be a secondary developed Carmaker software. The second vehicle simulation software may be a Sysplorer software. The Carmaker software may be used to construct a Carmaker vehicle dynamics model; the Carmaker vehicle dynamics model may include at least a road model, a vehicle model, a driver model, a sensor model and other models, which are used to simulate the driving conditions of the vehicle under various working conditions, and perform various scenario simulations according to the user's input parameters. In an embodiment of the invention, the steps of performing vehicle driving simulation based on the secondary developed Carmaker software and Sysplorer software may include:
[0050] Step 1: First, a C communication interface based on TCP / IP protocol can be encapsulated, and then the C communication function can be encapsulated based on Modelica language to obtain a Modelica communication function, that is, a Modelica communication function that can be called by the second simulation software.
[0051] In the embodiment of the present invention, the C communication interface based on the TCP / IP protocol is encapsulated, and specifically, the establishment of the TCP / IP communication connection, the closing of the communication connection and the data transmission can be realized based on the Windows system API. It should be noted that the programming language of the Sysplorer software is the Modelica language. The modeling environment of the Sysplorer software is the Modelica modeling environment.
[0052] In the embodiment of the present invention, the C communication interface based on TCP / IP encapsulation can be used to establish network communication between the server and the client, and the ability to send and receive data and end communication by serializing and deserializing data. This process allows the communication library to only rely on the system library and runtime, and has good ease of use and lightweight size.
[0053] Step 2: Carmaker software can be redeveloped to obtain the redeveloped Carmaker software. In the embodiment of the present invention, the redeveloped Carmaker software has the ability to communicate data with Sysplorer software through Modelica communication functions.
[0054] In an embodiment of the present invention, a method of obtaining a secondary developed Carmaker software can be used to customize the solver project of the Carmaker software. Specifically, a communication establishment request function can be called in the initialization part of the Carmaker solver, and a data receiving interface can be called at the beginning of each step of the Carmaker calculation, and before receiving the data, it can continue to block until the data is received, so as to synchronize the calculation progress between the software, and the data sending interface can be called at the end of each step of the calculation, and the connection closing function can be called after the simulation is completed. After the project is compiled after the customization is completed, a solver executable program can be generated. After that, the initial solver program can be switched to a customized executable program in the Carmaker software and applied, that is, the secondary developed Carmaker software is obtained. In an embodiment of the present invention, Carmaker can provide a C-based solver project, and the customized solver developed secondary on the basis of this project has the ability to communicate data with a specified TCP / IP server program, and can receive and send specified data according to user configuration items to participate in joint simulation operations.
[0055] Step 3: The Modelica communication function can be called through the Sysplorer software to use the C communication interface based on the TCP / IP protocol to exchange data and conduct joint simulation with the Carmaker solver, that is, to control the Carmaker vehicle dynamics model in the Carmaker software. In other words, the second vehicle simulation software can exchange data with the first vehicle simulation software through the second communication module and the first communication module to achieve joint simulation.
[0056] In an embodiment of the present invention, before communication is established, the Carmaker software can send a communication establishment request to the Modelica modeling environment when the solver is initialized. After communication is established, the Carmaker software and the Sysplorer software can be sent to the other end in binary form by serialization, and then deserialized into data at the other end to participate in the operation. Finally, the simulation ends and the connection is closed. The whole process encapsulates four interfaces of establishing communication, sending data, receiving data and closing the connection.
[0057] Compared with the related art that uses a single vehicle simulation software to perform vehicle driving simulation, resulting in poor simulation effect, the technical solution of the embodiment of the present invention realizes the joint simulation of vehicle driving through heterogeneous vehicle simulation software, effectively improving the simulation effect of vehicle driving.
[0058] Figure 3 The structure diagram of a vehicle driving simulation device provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, the device includes: a simulation software communication module 310 and a vehicle driving simulation module 320.
[0059] Among them, the simulation software communication module 310 is used to call the first communication module through the first vehicle simulation software, and send the first vehicle control instruction generated by the first vehicle simulation software to the second vehicle simulation software, wherein the second vehicle simulation software includes a second communication module that is communicatively connected to the first communication module; the vehicle driving simulation module 320 is used to receive the first vehicle control instruction through the second communication module of the second vehicle simulation software, and perform vehicle driving simulation processing on the vehicle dynamics model in the second vehicle simulation software based on the first vehicle control instruction.
[0060] The technical solution of the embodiment of the present invention is to call the first communication module through the first vehicle simulation software through the simulation software communication module, and send the first vehicle control instruction generated by the first vehicle simulation software to the second vehicle simulation software, wherein the second vehicle simulation software includes a second communication module that is communicatively connected to the first communication module; receive the first vehicle control instruction through the second communication module of the second vehicle simulation software through the vehicle driving simulation module, and perform vehicle driving simulation processing on the vehicle dynamics model in the second vehicle simulation software based on the first vehicle control instruction. Compared with the related art that performs vehicle driving simulation through a single vehicle simulation software, resulting in poor simulation effect, the technical solution of the embodiment of the present invention realizes the joint simulation of vehicle driving through heterogeneous vehicle simulation software, and effectively improves the simulation effect of vehicle driving.
[0061] Optionally, the device further includes a control instruction generation module, wherein the control instruction generation module is used to, before sending the first vehicle control instruction generated by the first vehicle simulation software to the second vehicle simulation software, receive vehicle simulation task information through the second vehicle simulation software, and send the vehicle simulation task information to the first communication module through the second communication module; and generate the first vehicle control instruction based on the vehicle simulation task information by calling the first vehicle simulation software of the first communication module.
[0062] Optionally, the device further includes a control feedback processing module. The control feedback processing module is used to generate a control feedback result corresponding to the first vehicle control instruction through the second vehicle simulation software after the vehicle dynamics model in the second vehicle simulation software is subjected to vehicle driving simulation processing based on the first vehicle control instruction, and send the control feedback result to the first vehicle simulation software that calls the first communication module through the second communication module; generate a second vehicle control instruction corresponding to the control feedback result based on the control feedback result through the first vehicle simulation software, and send the second vehicle control instruction to the second vehicle simulation software through the first communication module, so that the second vehicle simulation software performs vehicle driving simulation processing on the vehicle dynamics model based on the second vehicle control instruction.
[0063] Optionally, the device further comprises a communication establishing module, wherein the communication establishing module is configured to send a network communication connection request to the first communication module through the second communication module, so as to establish a network communication connection between the first communication module and the second communication module based on a preset communication protocol.
[0064] Optionally, the device includes a communication disconnection module, wherein the communication disconnection module is used to send a network communication disconnection request to the first communication module through the second communication module to disconnect the network communication connection between the first communication module and the second communication module when the vehicle dynamics model in the second vehicle simulation software completes a preset vehicle simulation task.
[0065] Optionally, the first communication module includes a first communication connection establishment interface, a first data sending interface, a first data receiving interface and a first communication connection disconnection interface; the second communication module includes a second communication connection establishment interface, a second data sending interface, a second data receiving interface and a second communication connection disconnection interface.
[0066] Optionally, the second vehicle simulation software is a secondary developed Carmaker software, and the first vehicle simulation software is a vehicle control simulation software that performs joint simulation with the secondary developed Carmaker software.
[0067] The vehicle driving simulation device provided in the embodiment of the present invention can execute the vehicle driving simulation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0068] It is worth noting that the various units and modules included in the above-mentioned vehicle driving simulation device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.
[0069] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0070] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0071] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0072] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a vehicle driving simulation method.
[0073] In some embodiments, the vehicle driving simulation method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the vehicle driving simulation method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the vehicle driving simulation method in any other appropriate manner (for example, by means of firmware).
[0074] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0075] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0076] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0077] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0078] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0079] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0080] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0081] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A vehicle driving simulation method, characterized in that: The method comprises: Calling the first communication module through the first vehicle simulation software, sending the first vehicle control instruction generated by the first vehicle simulation software to the second vehicle simulation software, wherein the second vehicle simulation software includes a second communication module that is communicatively connected to the first communication module; The first vehicle control instruction is received through the second communication module of the second vehicle simulation software, and vehicle driving simulation processing is performed on the vehicle dynamics model in the second vehicle simulation software based on the first vehicle control instruction.
2. The method according to claim 1, characterized in that: Before sending the first vehicle control instruction generated by the first vehicle simulation software to the second vehicle simulation software, the method further includes: receiving vehicle simulation task information through the second vehicle simulation software, and sending the vehicle simulation task information to the first communication module through the second communication module; A first vehicle control instruction is generated based on the vehicle simulation task information by calling the first vehicle simulation software of the first communication module.
3. The method according to claim 1, characterized in that After performing vehicle driving simulation processing on the vehicle dynamics model in the second vehicle simulation software based on the first vehicle control instruction, the method further includes: Generate a control feedback result corresponding to the first vehicle control instruction through the second vehicle simulation software, and send the control feedback result to the first vehicle simulation software that calls the first communication module through the second communication module; A second vehicle control instruction corresponding to the control feedback result is generated by the first vehicle simulation software based on the control feedback result, and the second vehicle control instruction is sent to the second vehicle simulation software through the first communication module, so that the second vehicle simulation software performs vehicle driving simulation processing on the vehicle dynamics model based on the second vehicle control instruction.
4. The method according to claim 2, characterized in that: The method further comprises: A network communication connection request is sent to the first communication module through the second communication module to establish a network communication connection between the first communication module and the second communication module based on a preset communication protocol.
5. The method according to claim 1, characterized in that The method further comprises: When the vehicle dynamics model in the second vehicle simulation software completes the preset vehicle simulation task, a network communication disconnection request is sent to the first communication module through the second communication module to disconnect the network communication connection between the first communication module and the second communication module.
6. The method according to claim 1, characterized in that The first communication module includes a first communication connection establishment interface, a first data sending interface, a first data receiving interface and a first communication connection disconnection interface; the second communication module includes a second communication connection establishment interface, a second data sending interface, a second data receiving interface and a second communication connection disconnection interface.
7. The method according to claim 1, characterized in that The second vehicle simulation software is a secondary developed Carmaker software, and the first vehicle simulation software is a vehicle control simulation software that performs joint simulation with the secondary developed Carmaker software.
8. A vehicle driving simulation device, characterized in that: include: A simulation software communication module, used for calling a first communication module through a first vehicle simulation software, and sending a first vehicle control instruction generated by the first vehicle simulation software to a second vehicle simulation software, wherein the second vehicle simulation software includes a second communication module that is communicatively connected to the first communication module; The vehicle driving simulation module is used to receive the first vehicle control instruction through the second communication module of the second vehicle simulation software, and perform vehicle driving simulation processing on the vehicle dynamics model in the second vehicle simulation software based on the first vehicle control instruction.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the vehicle driving simulation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the vehicle driving simulation method according to any one of claims 1 to 7 when executed.