Simulation data display method and device
By introducing Unity3D software into the simulation software for 3D display, the problem of unintuitive display of existing simulation software results is solved, and a higher user experience and simulation results visualization effect is achieved.
Patent Information
- Application Number
- CN202411829194.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-02-14
AI Technical Summary
The simulation results of existing simulation software are displayed in the form of digital data or two-dimensional curves, which lacks intuitiveness and richness, resulting in a low user experience.
By starting the process of vehicle simulation software and Unity3D software, TCP communication is used to send vehicle simulation data to Unity3D software for 3D display.
Improve the visualization effect of simulation results, making it more intuitive and rich, thereby enhancing the user experience.
Smart Images

Figure CN119442368A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a method and device for displaying simulation data. Background Art
[0002] In the process of automobile design, through simulation technology, designers can simulate and test automobile models in a computer virtual environment. This can avoid various problems that may occur in the actual production process and reduce the overall development and manufacturing costs. In addition, more accurate data can be obtained at each design stage, thereby avoiding technical risks, reducing unnecessary rework and material waste. It is also possible to understand the impact of related variables to optimize automobile performance and quality. It can also enable designers to discover problems and make adjustments in the early stages of design, avoiding a large number of modifications in the subsequent stages. This can not only shorten the design cycle, but also improve design efficiency.
[0003] At present, the simulation results of simulation software are mostly displayed in the form of digital data or two-dimensional curves, which are not intuitive and rich enough, and the visualization effect is poor, resulting in a low user experience. Summary of the invention
[0004] The present application provides a simulation data display method to improve the visualization effect of simulation results and thus enhance user experience. The present application also provides a simulation data display device.
[0005] In a first aspect, the present application provides a simulation data display method, comprising:
[0006] Starting a first process, wherein the first process is used to run vehicle simulation software;
[0007] Using the first process, combined with the input vehicle simulation variables, to perform simulation to obtain vehicle simulation data;
[0008] Starting a second process, where the second process is used to run Unity3D software, and the first process and the second process communicate with each other via TCP;
[0009] The vehicle simulation data obtained by the first process is sent to the second process, and the vehicle simulation data is displayed in 3D using the second process.
[0010] Optionally, the vehicle simulation variables include: at least one of: vehicle driving control input information, vehicle parameter information, environmental condition information and vehicle initial state information, and the vehicle simulation data includes: vehicle state information, vehicle tire force information and vehicle kinematic and dynamic parameter information.
[0011] The vehicle simulation data is displayed in 3D, including:
[0012] The vehicle state information, vehicle tire force information, and vehicle kinematic and dynamic parameter information of the simulated vehicle are displayed in 3D on the Unity3D software.
[0013] Optionally, the method further includes:
[0014] Get the window handle of Unity3D software;
[0015] Embedding the Unity3D software into the vehicle simulation software according to the window handle;
[0016] In the case where the Unity3D software is embedded in the vehicle simulation software, starting the second process includes:
[0017] The second process is started using the vehicle simulation software running in the first process.
[0018] Optionally, the method further includes:
[0019] Acquiring user operation information on an interface for 3D display on the Unity3D software, wherein the operation information is used to instruct a simulated vehicle in the interface to move or rotate;
[0020] According to the operation information, the position or angle of the simulated vehicle in the interface is adjusted.
[0021] Optionally, the method further includes:
[0022] Using the first process, combined with the input target vehicle simulation variables, simulation is performed to obtain target vehicle simulation data;
[0023] The target vehicle simulation data obtained by the first process is sent to the second process, and the interface is updated by using the second process in combination with the target vehicle simulation data.
[0024] In a second aspect, the present application further provides a simulation data display device, the device comprising:
[0025] A first starting unit, used to start a first process, wherein the first process is used to run vehicle simulation software;
[0026] An obtaining unit, configured to use the first process to perform simulation in combination with the input vehicle simulation variables to obtain vehicle simulation data;
[0027] A second starting unit, used for starting a second process, where the second process is used for running Unity3D software, and the first process and the second process communicate with each other via TCP;
[0028] The display unit is used to send the vehicle simulation data obtained by the first process to the second process, and use the second process to display the vehicle simulation data in 3D.
[0029] Optionally, the vehicle simulation variables include: at least one of: vehicle driving control input information, vehicle parameter information, environmental condition information and vehicle initial state information, and the vehicle simulation data includes: vehicle state information, vehicle tire force information and vehicle kinematic and dynamic parameter information.
[0030] The display unit is specifically used for:
[0031] The vehicle state information, vehicle tire force information, and vehicle kinematic and dynamic parameter information of the simulated vehicle are displayed in 3D on the Unity3D software.
[0032] Optionally, the device further comprises:
[0033] A first acquisition unit is used to acquire a window handle of the Unity3D software;
[0034] An embedding unit, used for embedding the Unity3D software into the vehicle simulation software according to the window handle;
[0035] When the Unity3D software is embedded in the vehicle simulation software, the second starting unit is specifically used for:
[0036] The second process is started using the vehicle simulation software running in the first process.
[0037] Optionally, the device further comprises:
[0038] A second acquisition unit is used to acquire user operation information on an interface for 3D display on the Unity3D software, wherein the operation information is used to instruct the simulated vehicle in the interface to move or rotate;
[0039] The adjustment unit is used to adjust the position or angle of the simulated vehicle in the interface according to the operation information.
[0040] Optionally, the device further comprises:
[0041] A second obtaining unit, configured to use the first process to perform simulation in combination with an input target vehicle simulation variable to obtain target vehicle simulation data;
[0042] An updating unit is used to send the target vehicle simulation data obtained by the first process to the second process, and use the second process to update the interface in combination with the target vehicle simulation data.
[0043] In a third aspect, an embodiment of the present application provides a device, comprising a memory and a processor, wherein the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the method described in the first aspect above.
[0044] In a fourth aspect, an embodiment of the present application provides a computer storage medium, in which a code is stored. When the code is executed, a device executing the code implements the method described in the first aspect above.
[0045] Compared with the prior art, this application has the following beneficial effects:
[0046] The first process is started, wherein the first process is used to run the vehicle simulation software, and the first process is used to simulate in combination with the input vehicle simulation variables to obtain vehicle simulation data, and the second process is started, and the second process is used to run the Unity3D software. The first process and the second process communicate via TCP, and the vehicle simulation data obtained by the first process is sent to the second process, and the vehicle simulation data is displayed in 3D using the second process. Since the vehicle simulation data obtained by the vehicle simulation software can be sent to the Unity3D software, and then the Unity3D software displays the vehicle simulation data in 3D, the 3D display will be more intuitive and rich than the digital data or two-dimensional curve display in the prior art, and the visualization effect of the simulation results will be improved, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 A flowchart of a simulation data display method provided in an embodiment of the present application;
[0049] Figure 2 A schematic diagram of a 3D display provided in an embodiment of the present application;
[0050] Figure 3 A schematic diagram of another 3D display provided in an embodiment of the present application;
[0051] Figure 4 A schematic structural diagram of a specific implementation of the simulation data display device provided in this application. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0053] It should be noted that the simulation data display method and device provided in the present application are used in the field of data processing. The above is only an example and does not limit the application field of the method and device provided in the present application.
[0054] In the process of automobile design, through simulation technology, designers can simulate and test automobile models in a computer virtual environment. This can avoid various problems that may occur in the actual production process and reduce the overall development and manufacturing costs. In addition, more accurate data can be obtained at each design stage, thereby avoiding technical risks, reducing unnecessary rework and material waste. It is also possible to understand the impact of related variables to optimize automobile performance and quality. It can also enable designers to discover problems and make adjustments in the early stages of design, avoiding a large number of modifications in the subsequent stages. This can not only shorten the design cycle, but also improve design efficiency.
[0055] At present, the simulation results of simulation software are mostly displayed in the form of digital data or two-dimensional curves, which are not intuitive and rich enough, and the visualization effect is poor, resulting in a low user experience.
[0056] In view of this, the present application provides a simulation data display method, including: starting a first process, wherein the first process is used to run vehicle simulation software, using the first process to simulate in combination with input vehicle simulation variables to obtain vehicle simulation data, starting a second process, the second process is used to run Unity3D software, the first process and the second process communicate via TCP, the vehicle simulation data obtained by the first process is sent to the second process, and the vehicle simulation data is displayed in 3D using the second process. Since the vehicle simulation data obtained by the vehicle simulation software can be sent to the Unity3D software, and then the Unity3D software displays the vehicle simulation data in 3D, in this way, the 3D display will be more intuitive and rich than the digital data or two-dimensional curve display in the prior art, and the visualization effect of the simulation results will be improved, thereby improving the user experience.
[0057] The method provided in the embodiment of the present application can be executed by software on a terminal device, which can be, for example, a mobile phone, a tablet computer, a computer, or the like.
[0058] In order to make the technical personnel in this field better understand the present application, the present application is further described in detail below in combination with the drawings and specific implementation methods. The method provided in the present application embodiment is described below by taking the first device as an example.
[0059] Figure 1 A flowchart of a simulation data display method provided in an embodiment of the present application. Figure 1 As shown, the method includes:
[0060] S101: Start the first process.
[0061] The first device starts a first process, and the first process is used to run vehicle simulation software. For example, the vehicle simulation software may be GCVdyn software, which may support functions such as vehicle dynamics performance modeling, handling stability working condition simulation, post-processing, and embedded simulation. GCVdyn can realize functions such as the construction of a vehicle dynamics performance evaluation system, target function decomposition, and virtual testing of dynamic characteristics of an assembly system.
[0062] S102: Utilizing the first process and combining the input vehicle simulation variables to perform simulation to obtain vehicle simulation data.
[0063] The first device can use the first process to perform simulation in combination with the input vehicle simulation variables to obtain vehicle simulation data.
[0064] Exemplarily, the vehicle simulation variables may include at least one of vehicle driving control input information, vehicle parameter information, environmental condition information, and vehicle initial state information.
[0065] The vehicle driving control input information may include basic inputs of driver operations such as steering wheel input, throttle input and brake input. The vehicle parameter information may include: the dynamic parameters of the vehicle, such as vehicle mass, tire characteristics and suspension system parameters. Environmental condition information may include, for example, environmental factors such as road conditions (friction coefficient and slope, etc.), wind speed and temperature. The vehicle initial state information may include, for example, kinematic state quantities such as the initial position, speed and acceleration of the vehicle. In addition, the vehicle simulation variables may also include the driving torque and wheel steering angle of the vehicle, etc. Those skilled in the art may set them according to actual needs, and no unnecessary limitations are made here.
[0066] The simulation parameters of the vehicle may include vehicle state information, vehicle tire force information, and vehicle kinematic and dynamic parameter information.
[0067] Vehicle status information may include the vehicle's speed, acceleration, position, and posture (e.g., yaw rate, roll angle), etc. Vehicle tire force information may include longitudinal force, lateral force, and vertical force, etc. Vehicle kinematic and dynamic parameter information may include: the vehicle's wheel angle, speed, and acceleration, etc.
[0068] S103: Start the second process.
[0069] The second device can start a second process, and the second process is used to run Unity3D software. The first process and the second process can communicate through TCP, wherein the Transmission Control Protocol (TCP) is a connection-oriented, reliable, byte stream-based transport layer communication protocol. It should be noted that before running the Unity3D software, the second process can first build Unity3D, for example, set the rendering pipeline of the project (for example, it can include a built-in rendering pipeline, a universal rendering pipeline, and a high-definition rendering pipeline, etc.), import vehicle models, road scene models, TCP communication plug-ins, and script templates, etc.
[0070] In some possible implementations, the first device can obtain the window handle of the Unity3D software, and embed the Unity3D software into the vehicle simulation software according to the window handle. When the Unity3D software is embedded in the vehicle simulation software, the second process can be started using the vehicle simulation software running in the first process.
[0071] Exemplarily, the first device can open the GCVdyn 3D animation display page, which is a QWidget window used to embed the UI of the Unity3D program. Use the QProcess class to start the executable file of Unity3D in the GCVdyn program. Use the Windows API function FindWindow to obtain the window handle of the Unity3D program. Use the Windows APISetParent function to set the parent window of the window corresponding to the window handle of Unity3D to the 3D animation page QWidget of the GCVdyn program, thereby embedding the UI of the Unity3D program into GCVdyn. Then GCVdyn establishes TCP communication with the Unity3D software as a TCP server. Embedding the Unity3D software into the vehicle simulation software can provide a more comprehensive, realistic and efficient simulation environment, which helps to improve the quality and efficiency of the simulation.
[0072] S104: Send the vehicle simulation data obtained by the first process to the second process, and use the second process to perform 3D display on the vehicle simulation data.
[0073] The first device can send the vehicle simulation data obtained by the first process to the second process, and use the second process to display the vehicle simulation data in 3D. Figure 2 as well as Figure 3 shown. Figure 2 Some vehicle simulation data may be included.
[0074] In some possible implementations, the first device may obtain user operation information on an interface for 3D display on Unity3D software, wherein the operation information is used to indicate the interface (such as Figure 2 The simulated vehicle in the interface shown in the figure is moved or rotated, and then the position or angle of the simulated vehicle in the interface is adjusted according to the operation information (the angle here refers to the angle from which the user observes the vehicle). For example, according to the operation information, the simulated vehicle is moved from Figure 2 Adjust the angle shown in Figure 3 The angle shown is used so that relevant personnel can observe the display interface more intuitively and clearly.
[0075] In some possible implementations, after the vehicle simulation data is displayed in 3D, the first device can obtain the input target vehicle simulation variable, use the first process to simulate in combination with the input target vehicle simulation variable, obtain the target vehicle simulation data, send the target vehicle simulation data obtained by the first process to the second process, and use the second process to update the interface in combination with the target vehicle simulation data. In this way, the 3D display interface can be updated in real time according to the vehicle simulation variable input by the user.
[0076] The first process is started, wherein the first process is used to run the vehicle simulation software, and the first process is used to simulate in combination with the input vehicle simulation variables to obtain vehicle simulation data, and the second process is started, and the second process is used to run the Unity3D software. The first process and the second process communicate via TCP, and the vehicle simulation data obtained by the first process is sent to the second process, and the vehicle simulation data is displayed in 3D using the second process. Since the vehicle simulation data obtained by the vehicle simulation software can be sent to the Unity3D software, and then the Unity3D software displays the vehicle simulation data in 3D, the 3D display will be more intuitive and rich than the digital data or two-dimensional curve display in the prior art, and the visualization effect of the simulation results will be improved, thereby improving the user experience.
[0077] The above are some specific implementations of the simulation data display method provided in the embodiments of the present application. Based on this, the present application also provides a corresponding device. The device provided in the embodiments of the present application will be introduced from the perspective of functional modularization. The device and the simulation data display method described above can be referenced to each other.
[0078] Figure 4The structural block diagram of the simulation data display device provided by the embodiment of the present invention is referred to as the specific implementation mode 2. Figure 4 The device may include:
[0079] A first starting unit 400, used to start a first process, wherein the first process is used to run vehicle simulation software;
[0080] An obtaining unit 410 is used to perform simulation using the first process in combination with the input vehicle simulation variables to obtain vehicle simulation data;
[0081] A second starting unit 420 is used to start a second process, where the second process is used to run Unity3D software, and the first process and the second process communicate with each other via TCP;
[0082] The display unit 430 is used to send the vehicle simulation data obtained by the first process to the second process, and use the second process to perform 3D display on the vehicle simulation data.
[0083] Optionally, the vehicle simulation variables include: at least one of: vehicle driving control input information, vehicle parameter information, environmental condition information and vehicle initial state information, and the vehicle simulation data includes: vehicle state information, vehicle tire force information and vehicle kinematic and dynamic parameter information.
[0084] The display unit is specifically used for:
[0085] The vehicle state information, vehicle tire force information, and vehicle kinematic and dynamic parameter information of the simulated vehicle are displayed in 3D on the Unity3D software.
[0086] Optionally, the device further comprises:
[0087] A first acquisition unit is used to acquire a window handle of the Unity3D software;
[0088] An embedding unit, used for embedding the Unity3D software into the vehicle simulation software according to the window handle;
[0089] When the Unity3D software is embedded in the vehicle simulation software, the second starting unit is specifically used for:
[0090] The second process is started using the vehicle simulation software running in the first process.
[0091] Optionally, the device further comprises:
[0092] A second acquisition unit is used to acquire user operation information on an interface for 3D display on the Unity3D software, wherein the operation information is used to instruct the simulated vehicle in the interface to move or rotate;
[0093] The adjustment unit is used to adjust the position or angle of the simulated vehicle in the interface according to the operation information.
[0094] Optionally, the device further comprises:
[0095] A second obtaining unit, configured to use the first process to perform simulation in combination with an input target vehicle simulation variable to obtain target vehicle simulation data;
[0096] An updating unit is used to send the target vehicle simulation data obtained by the first process to the second process, and use the second process to update the interface in combination with the target vehicle simulation data.
[0097] The embodiments of the present application also provide corresponding devices and computer storage media for implementing the solutions provided by the embodiments of the present application.
[0098] The device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the method described in any embodiment of the present application.
[0099] The computer storage medium stores codes, and when the codes are executed, a device executing the codes implements the method described in any embodiment of the present application.
[0100] The "first" and "second" in the names such as "first" and "second" (if any) mentioned in the embodiments of the present application are only used as name identifiers and do not represent the first or second in order.
[0101] Through the description of the above implementation methods, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.
[0102] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0103] The above description is merely an exemplary embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A simulation data display method, characterized in that: include: Starting a first process, wherein the first process is used to run vehicle simulation software; Using the first process, combined with the input vehicle simulation variables, to perform simulation to obtain vehicle simulation data; Starting a second process, where the second process is used to run Unity3D software, and the first process and the second process communicate with each other via TCP; The vehicle simulation data obtained by the first process is sent to the second process, and the vehicle simulation data is displayed in 3D using the second process.
2. The method according to claim 1, characterized in that The vehicle simulation variables include: at least one of vehicle driving control input information, vehicle parameter information, environmental condition information and vehicle initial state information; the vehicle simulation data include: vehicle state information, vehicle tire force information and vehicle kinematic and dynamic parameter information; The vehicle simulation data is displayed in 3D, including: The vehicle state information, vehicle tire force information, and vehicle kinematic and dynamic parameter information of the simulated vehicle are displayed in 3D on the Unity3D software.
3. The method according to claim 1, characterized in that The method further comprises: Get the window handle of Unity3D software; Embedding the Unity3D software into the vehicle simulation software according to the window handle; In the case where the Unity3D software is embedded in the vehicle simulation software, starting the second process includes: The second process is started using the vehicle simulation software running in the first process.
4. The method according to claim 1, characterized in that: The method further comprises: Acquiring user operation information on an interface for 3D display on the Unity3D software, wherein the operation information is used to instruct a simulated vehicle in the interface to move or rotate; According to the operation information, the position or angle of the simulated vehicle in the interface is adjusted.
5. The method according to claim 4, characterized in that The method further comprises: Using the first process, combined with the input target vehicle simulation variables, simulation is performed to obtain target vehicle simulation data; The target vehicle simulation data obtained by the first process is sent to the second process, and the interface is updated by using the second process in combination with the target vehicle simulation data.
6. A simulation data display device, characterized in that: include: A first starting unit, used to start a first process, wherein the first process is used to run vehicle simulation software; An obtaining unit, configured to use the first process to perform simulation in combination with the input vehicle simulation variables to obtain vehicle simulation data; A second starting unit, used for starting a second process, where the second process is used for running Unity3D software, and the first process and the second process communicate with each other via TCP; The display unit is used to send the vehicle simulation data obtained by the first process to the second process, and use the second process to display the vehicle simulation data in 3D.
7. The device according to claim 6, characterized in that The vehicle simulation variables include: at least one of vehicle driving control input information, vehicle parameter information, environmental condition information and vehicle initial state information; the vehicle simulation data include: vehicle state information, vehicle tire force information and vehicle kinematic and dynamic parameter information; The display unit is specifically used for: The vehicle state information, vehicle tire force information, and vehicle kinematic and dynamic parameter information of the simulated vehicle are displayed in 3D on the Unity3D software.
8. The device according to claim 6, characterized in that The device also includes: A first acquisition unit is used to acquire a window handle of the Unity3D software; An embedding unit, used for embedding the Unity3D software into the vehicle simulation software according to the window handle; When the Unity3D software is embedded in the vehicle simulation software, the second starting unit is specifically used for: The second process is started using the vehicle simulation software running in the first process.
9. The device according to claim 6, characterized in that The device also includes: A second acquisition unit is used to acquire user operation information on an interface for 3D display on the Unity3D software, wherein the operation information is used to instruct the simulated vehicle in the interface to move or rotate; The adjustment unit is used to adjust the position or angle of the simulated vehicle in the interface according to the operation information.
10. The device according to claim 9, characterized in that The device also includes: A second obtaining unit, configured to use the first process to perform simulation in combination with an input target vehicle simulation variable to obtain target vehicle simulation data; An updating unit is used to send the target vehicle simulation data obtained by the first process to the second process, and use the second process to update the interface in combination with the target vehicle simulation data.