Distributed co-simulation processing method and related device
By dividing the simulation data according to regions and clipping the communication data in the distributed collaborative simulation system, the problem of low efficiency in the existing technology is solved and the application of the simulation system with high frame rate is realized.
Patent Information
- Application Number
- CN202310200043.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
AI Technical Summary
The existing distributed collaborative simulation system is inefficient under high frame rate requirements, making it difficult for the simulation system to be applied to scenarios with high frame rate requirements, such as autonomous driving simulation systems.
By storing simulation data according to multiple simulation areas and multiple field of view areas, and when communicating between global collaboration nodes and distributed nodes, unnecessary field of view area data is clipped, and only the data necessary for distributed node calculations is transmitted. Avoid relying on high-speed in-memory databases.
It significantly reduces the data communication volume of distributed collaborative simulation, improves the frame rate of the simulation system, realizes an efficient simulation process, and is suitable for simulation systems with high frame rate requirements.
Smart Images

Figure CN118568910A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a distributed collaborative simulation processing method and related devices. Background Art
[0002] With the rapid development of distributed technology, distributed technology is applied in simulation systems. That is, the global coordination node controls multiple distributed nodes through stepping signals to perform distributed collaborative simulation on the simulation system to obtain a simulation system with a certain frame rate.
[0003] In the related technology, the simulation data of the simulation system is generally cached through a high-speed memory database. The global collaborative node sends a stepping signal to multiple distributed nodes. Each distributed node obtains the data to be calculated and the preset dependent data of the current frame from the high-speed memory database for calculation each frame, and the calculation result data is cached in the high-speed memory database.
[0004] However, in the above method, each frame reads the data to be calculated and the preset dependent data from the high-speed memory database, and writes the calculation result data. The amount of data read and written is extremely large, which places extremely high requirements on the input and output throughput, network bandwidth, etc. in the distributed collaborative simulation process, resulting in low efficiency of distributed collaborative simulation, and thus low frame rate of the simulation system, which makes it difficult to apply to simulation systems with high frame rate requirements. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides a distributed collaborative simulation processing method and related devices, which greatly reduce the data communication volume of distributed collaborative simulation, achieve extremely high distributed collaborative simulation efficiency, and improve the frame rate of the simulation system, which can be applied to simulation systems with high frame rate requirements.
[0006] The embodiments of the present application disclose the following technical solutions:
[0007] On the one hand, an embodiment of the present application provides a distributed collaborative simulation processing method, which is executed by distributed nodes, and the simulation data of the simulation system is stored in a global collaborative node according to the correspondence between multiple simulation areas and multiple field of view areas, and one simulation area is divided into multiple field of view areas. The method includes:
[0008] Receive a preset step signal sent by the global coordination node, wherein the preset step signal carries peripheral visual field data of a preset simulation area range that the distributed node is responsible for; the peripheral visual field data includes simulation data of multiple visual field areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas;
[0009] Calculate the simulation data of the object to be calculated within the preset simulation area and the data of the surrounding visual field area according to the preset step signal to obtain the calculation result data within the preset simulation area;
[0010] The inner boundary field of view area data of the preset simulation area range in the calculation result data is sent to the global coordination node; the inner boundary field of view area data includes simulation data of multiple field of view areas at the inner boundary of the preset simulation area range.
[0011] On the other hand, an embodiment of the present application provides a distributed collaborative simulation processing method, which is executed by a global collaborative node, and the simulation data of the simulation system is stored in the global collaborative node according to the correspondence between multiple simulation areas and multiple field of view areas, and one simulation area is divided into multiple field of view areas. The method includes:
[0012] Sending a preset stepping signal to a distributed node, the preset stepping signal carrying peripheral visual area data of a preset simulation area range that the distributed node is responsible for; the peripheral visual area data includes simulation data of multiple visual areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas;
[0013] Receive the inner boundary field of view area data of the preset simulation area range sent by the distributed node; the boundary field of view area data is simulation data of multiple field of view areas at the boundary of the preset simulation area range, obtained by the distributed node calculating the simulation data of the object to be calculated within the preset simulation area range and the surrounding field of view area data according to the preset step signal.
[0014] On the other hand, an embodiment of the present application provides a processing device for distributed collaborative simulation, which is deployed in a distributed node, and simulation data of a simulation system is stored in a global collaborative node according to a correspondence between multiple simulation areas and multiple view areas, and one simulation area is divided into multiple view areas, and the device includes: a first receiving unit, a computing unit, and a first sending unit;
[0015] The first receiving unit is used to receive a preset stepping signal sent by the global coordination node, wherein the preset stepping signal carries peripheral visual field area data of a preset simulation area range that the distributed node is responsible for; the peripheral visual field area data includes simulation data of multiple visual field areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas;
[0016] The calculation unit is used to calculate the simulation data of the object to be calculated within the preset simulation area and the data of the surrounding visual field area according to the preset step signal, so as to obtain the calculation result data within the preset simulation area;
[0017] The first sending unit is used to send the inner boundary field of view area data of the preset simulation area range in the calculation result data to the global coordination node; the inner boundary field of view area data includes simulation data of multiple field of view areas within the boundary of the preset simulation area range.
[0018] On the other hand, an embodiment of the present application provides a processing device for distributed collaborative simulation, which is deployed in a global collaborative node, and simulation data of a simulation system is stored in the global collaborative node according to a correspondence between multiple simulation areas and multiple field of view areas, and one simulation area is divided into multiple field of view areas, and the device includes: a second sending unit and a second receiving unit;
[0019] The second sending unit is used to send a preset step signal to the distributed node, wherein the preset step signal carries peripheral visual area data of a preset simulation area range that the distributed node is responsible for; the peripheral visual area data includes simulation data of multiple visual areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas;
[0020] The second receiving unit is used to receive the inner boundary field of view area data of the preset simulation area range sent by the distributed node; the boundary field of view area data is simulation data of multiple field of view areas at the boundary of the preset simulation area range, obtained by the distributed node calculating the simulation data of the object to be calculated within the preset simulation area range and the surrounding field of view area data according to the preset step signal.
[0021] On the other hand, an embodiment of the present application provides a computer device, the computer device comprising a processor and a memory:
[0022] The memory is used to store a computer program and transmit the computer program to the processor;
[0023] The processor is configured to execute the method described in any one of the preceding aspects according to instructions in the computer program.
[0024] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method described in any one of the aforementioned aspects.
[0025] On the other hand, an embodiment of the present application provides a computer program product, including a computer program, which, when executed on a computer device, enables the computer device to implement the method described in any of the above aspects.
[0026] It can be seen from the above technical solution that the simulation data of the simulation system is stored in the global collaborative node according to the correspondence between multiple simulation areas and multiple visual field areas, wherein one simulation area is divided into multiple visual field areas. First, the global collaborative node sends a preset stepping signal to the distributed node, and the preset stepping signal carries the peripheral visual field area data of the preset simulation area range that the distributed node is responsible for; wherein the peripheral visual field area data includes the simulation data of multiple visual field areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas. Then, the distributed node calculates the simulation data and the peripheral visual field area data of the object to be calculated within the preset simulation area range in response to the preset stepping signal, and obtains the calculation result data of the preset simulation area range. Finally, the distributed node sends the inner boundary visual field area data of the preset simulation area range in the calculation result data to the global collaborative node, and the inner boundary visual field area data includes the simulation data of multiple visual field areas at the inner boundary of the preset simulation area range. It can be seen that this method does not need to rely on a high-speed memory database. The global collaborative node stores the simulation data of the simulation system by dividing one simulation system into multiple simulation areas and one simulation area into multiple field of view areas. Based on this, in the communication process between the global collaborative node and the distributed nodes, the simulation data of the field of view area that is unnecessary for the distributed node calculation in the simulation area is trimmed, and only the simulation data of the field of view area that is necessary for the distributed node calculation in the communication simulation area is communicated, which greatly reduces the data communication volume of the distributed collaborative simulation and achieves extremely high distributed collaborative simulation efficiency to improve the frame rate of the simulation system. It can be applied to simulation systems with high frame rate requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present application or the technical solutions in 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 technical members in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0028] Figure 1 A schematic diagram of a distributed collaborative simulation processing method provided for related technologies;
[0029] Figure 2 A schematic diagram of the system architecture of a distributed collaborative simulation processing method provided in an embodiment of the present application;
[0030] Figure 3 A flowchart of a distributed collaborative simulation processing method provided in an embodiment of the present application;
[0031] Figure 4 A schematic diagram of multiple simulation areas provided in an embodiment of the present application;
[0032] Figure 5 A schematic diagram of a preset simulation area range that a distributed node is responsible for provided in an embodiment of the present application;
[0033] Figure 6 A schematic diagram of multiple viewing areas corresponding to a simulation area provided in an embodiment of the present application;
[0034] Figure 7 A schematic diagram of multiple viewing areas around a preset simulation area range provided in an embodiment of the present application;
[0035] Figure 8 A schematic diagram of multiple viewing areas around another preset simulation area range provided in an embodiment of the present application;
[0036] Fig. 9 A schematic diagram of multiple viewing areas within the boundaries of a preset simulation area provided in an embodiment of the present application;
[0037] Fig.10 A schematic diagram of multiple viewing areas within the boundaries of another preset simulation area provided in an embodiment of the present application;
[0038] Fig.11 A structural diagram of a distributed collaborative simulation processing device provided in an embodiment of the present application;
[0039] Fig.12 A structural diagram of another distributed collaborative simulation processing device provided in an embodiment of the present application;
[0040] Fig.13 A structural diagram of a server provided in an embodiment of the present application;
[0041] Fig.14 A structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The embodiments of the present application are described below in conjunction with the accompanying drawings.
[0043] First, see Figure 1 , Figure 1A schematic diagram of a distributed collaborative simulation processing method provided for related technologies, wherein simulation data of a simulation system is cached in a high-speed memory database, a global collaborative node sends a stepping signal to distributed nodes 1, ... and distributed node N, distributed node 1 obtains data 1 to be calculated and preset dependent data 1 of the current frame from the high-speed memory database for calculation each frame, obtains calculation result data 1 and caches it in the high-speed memory database, ..., distributed node N obtains data N to be calculated and preset dependent data N of the current frame from the high-speed memory database for calculation each frame, obtains calculation result data N and caches it in the high-speed memory database.
[0044] After research, it was found that in the above method, each distributed node in the distributed nodes 1, ... and distributed node N reads the data to be calculated and the preset dependent data from the high-speed memory database per frame, and writes the calculation result data. The amount of data read and written is extremely large, and there are extremely high requirements on the input and output throughput, network bandwidth, etc. in the distributed collaborative simulation process, resulting in low efficiency of distributed collaborative simulation, and thus low frame rate of the simulation system; based on this, the above method is difficult to apply to simulation systems with high frame rate requirements, such as autonomous driving simulation systems.
[0045] The embodiment of the present application provides a processing method and related devices for distributed collaborative simulation. The method does not need to rely on a high-speed memory database. The global collaborative node stores the simulation data of the simulation system by dividing one simulation system into multiple simulation areas and one simulation area into multiple field of view areas. Based on this, during the communication process between the global collaborative node and the distributed node, the simulation data of the field of view area that is unnecessary for implementing the distributed node calculation in the simulation area is trimmed, and only the simulation data of the field of view area that is necessary for implementing the distributed node calculation in the simulation area is communicated, thereby greatly reducing the data communication volume of the distributed collaborative simulation and achieving extremely high distributed collaborative simulation efficiency, so as to improve the frame rate of the simulation system. The method can be applied to simulation systems with high frame rate requirements.
[0046] Next, the system architecture of the distributed collaborative simulation processing method will be introduced. Figure 2 , Figure 2 A system architecture diagram of a distributed collaborative simulation processing method provided in an embodiment of the present application, wherein the system architecture includes a global collaborative node 201 and multiple distributed nodes 202. The global collaborative node 201 and multiple distributed nodes 202 use the distributed collaborative simulation processing method provided in an embodiment of the present application to perform distributed collaborative simulation on the simulation system.
[0047] Among them, the global collaborative node 201 or the distributed node 202 can be a processing device of distributed collaborative simulation with data processing capabilities, such as a terminal or a server; the terminal includes but is not limited to smart phones, tablet computers, laptops, desktop computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, extended reality devices (augmented reality devices, virtual reality devices, mixed reality devices), etc., but is not limited to this. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application is not limited here. For example, the terminal and the server can be connected via a network, which can be a wired or wireless network.
[0048] The global coordination node 201 stores the simulation data of the simulation system according to the correspondence between multiple simulation areas and multiple field of view areas, wherein one simulation area is divided into multiple field of view areas. As an example, the simulation system is "autonomous driving simulation system of city A", the multiple simulation areas are "8×8 simulation areas", and one simulation area is divided into "9×9 field of view areas"; that is, the global coordination node 201 stores the simulation data of "autonomous driving simulation system of city A" according to the correspondence between "8×8 simulation areas" and "8×8×9×9 field of view areas".
[0049] The global collaborative node 201 sends a preset stepping signal to the distributed node 202, and the preset stepping signal carries the peripheral visual field data of the preset simulation area range that the distributed node 202 is responsible for; wherein the peripheral visual field data includes simulation data of multiple visual fields around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among multiple simulation areas. As an example, based on the above example, the preset simulation area range that the distributed node 202 is responsible for is specifically a preset simulation area among "8×8 simulation areas", such as "simulation area A", and the global collaborative node 201 uses the simulation data of multiple visual fields around "simulation area A" as the peripheral visual field data of "simulation area A", and sends a preset stepping signal carrying the peripheral visual field data of "simulation area A" to the distributed node 202.
[0050] The distributed node 202 calculates the simulation data of the object to be calculated and the data of the surrounding visual field area within the preset simulation area according to the preset step signal, and obtains the calculation result data of the preset simulation area. As an example, based on the above example, after the distributed node 202 receives the preset step signal sent by the global collaborative node 201, it calculates the simulation data of the object to be calculated and the data of the surrounding visual field area within the "simulation area A" in response to the preset step signal, and obtains the calculation result data of the "simulation area A".
[0051] The distributed node 202 sends the inner boundary visual area data of the preset simulation area range in the calculation result data to the global collaborative node 201, and the inner boundary visual area data includes the simulation data of multiple visual areas at the inner boundary of the preset simulation area range. As an example, based on the above example, the distributed node 202 uses the simulation data of multiple visual areas at the inner boundary of "simulation area A" in the calculation result data as the inner boundary visual area data of "simulation area A", and sends the inner boundary visual area data of "simulation area A" to the global collaborative node 201; so that the global collaborative node 201 receives the inner boundary visual area data of "simulation area A".
[0052] That is to say, the processing method of distributed collaborative simulation provided in the embodiment of the present application does not need to rely on a high-speed memory database. The global collaborative node stores the simulation data of the simulation system by dividing one simulation system into multiple simulation areas and one simulation area into multiple field of view areas. Based on this, in the communication process between the global collaborative node and the distributed node, the simulation data of the field of view area that is unnecessary for implementing the distributed node calculation in the simulation area is trimmed, and only the simulation data of the field of view area that is necessary for implementing the distributed node calculation in the simulation area is communicated, which greatly reduces the data communication volume of the distributed collaborative simulation and achieves extremely high distributed collaborative simulation efficiency, so as to improve the frame rate of the simulation system, and can be applied to simulation systems with high frame rate requirements.
[0053] The embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology scenarios, artificial intelligence scenarios, smart transportation scenarios, assisted driving scenarios, map scenarios, and in-vehicle scenarios.
[0054] Among them, the smart traffic scene can adopt the Intelligent Traffic System (ITS), also known as the Intelligent Transportation System (ITS). Specifically, it effectively integrates advanced science and technology (information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory, operations research, artificial intelligence, etc.) into transportation, service control and vehicle manufacturing, and strengthens the connection between vehicles, roads and users, thereby forming a comprehensive transportation system that ensures safety, improves efficiency, improves the environment and saves energy.
[0055] One of the development directions of intelligent transportation system is intelligent vehicle infrastructure cooperative system (IVICS), which adopts advanced wireless communication and new generation Internet technologies to implement all-round dynamic real-time information interaction between vehicles and roads, and carry out active vehicle safety control and road cooperative management based on the collection and integration of dynamic traffic information in all time and space, so as to fully realize the effective coordination between people, vehicles and roads, ensure traffic safety, improve traffic efficiency, and thus form a safe, efficient and environmentally friendly road traffic system.
[0056] Next, the distributed collaborative simulation processing method provided by the embodiment of the present application will be described in detail by taking the global collaborative node and the distributed node executing the method provided by the embodiment of the present application as an example and combining with the accompanying drawings. Figure 3 , Figure 3 A signaling diagram of a distributed collaborative simulation processing method provided in an embodiment of the present application, wherein simulation data of a simulation system is stored in a global collaborative node according to a correspondence between multiple simulation areas and multiple view areas, and one simulation area is divided into multiple view areas, and the method includes:
[0057] S301: The global collaborative node sends a preset step signal to the distributed node, and the preset step signal carries the peripheral field of view area data of the preset simulation area range that the distributed node is responsible for; the peripheral field of view area data includes simulation data of multiple field of view areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among multiple simulation areas.
[0058] Because in the related technology, on the basis of caching the simulation data of the simulation system through a high-speed memory database, the global collaborative node sends a stepping signal to multiple distributed nodes, and each distributed node obtains the data to be calculated and the preset dependent data of the current frame from the high-speed memory database for calculation every frame, and the calculation result data is cached in the high-speed memory database. After research, it was found that the amount of data read from the high-speed memory database to the distributed nodes is extremely large, and the amount of data written from the distributed nodes to the high-speed memory database is extremely large. There are extremely high requirements for the input and output throughput, network bandwidth, etc. in the distributed collaborative simulation process, resulting in low efficiency of distributed collaborative simulation, which leads to low frame rate of the simulation system, and it is difficult to apply to simulation systems with high frame rate requirements, such as autonomous driving simulation systems. In addition, this method relies on a high-speed memory database, which leads to a high cost of distributed collaborative simulation.
[0059] Therefore, in the embodiment of the present application, in order to solve the problems brought about by the methods in the above-mentioned related technologies, it is necessary to avoid relying on high-speed memory databases, and to reduce the amount of data read and written per frame by distributed nodes. Considering that when the distributed node obtains the preset dependency data of the current frame per frame to calculate and obtain the calculation result data, the strong dependency data required for the distributed node calculation is not the full amount of preset dependency data, that is, the full amount of preset dependency data includes the strong dependency data required for the distributed node calculation and the weak dependency data that is unnecessary for the distributed node calculation; then a simulation system can be divided into multiple simulation areas, and a simulation area can be divided into multiple field of view areas, without relying on a high-speed memory database, and the global collaborative node stores the simulation data of the simulation system with the corresponding relationship between multiple simulation areas and multiple field of view areas, and the distributed node is responsible for one preset simulation area or multiple preset simulation areas in multiple simulation areas to form a preset simulation area range; in this way, through the association relationship between the preset simulation area range and the multiple field of view areas, in the communication process between the global collaborative node and the distributed node, the unnecessary weak dependency data of the distributed node calculation is cut, and only the strong dependency data required for the distributed node calculation is communicated, so as to greatly reduce the data communication volume of the distributed collaborative simulation.
[0060] In an embodiment of the present application, the global collaborative node only needs to send the strongly dependent data required to implement distributed node calculations to the distributed nodes; that is, the global collaborative node only needs to use the simulation data of multiple field of view areas surrounding the preset simulation area range as the surrounding field of view area data of the preset simulation area range, and carry the number of surrounding field of view areas of the preset simulation area range in the preset step signal, so as to send the preset step signal to the distributed nodes.
[0061] Based on the above content, the premise of executing S301 is to obtain multiple simulation areas and multiple field of view areas for the simulation system. Among them, for multiple simulation areas, they can be obtained through the following two specific implementation methods: one specific implementation method is that when a larger preset area includes a smaller simulation space, the preset space is divided into multiple preset areas according to the preset area range in advance; and the simulation space corresponding to the simulation system has a preset position range, and multiple preset areas that meet the preset position range are determined from multiple preset areas in the preset space as multiple simulation areas; another specific implementation method is to directly divide the simulation space into multiple simulation areas according to the simulation area range.
[0062] Therefore, the present application provides a possible implementation method, the steps of obtaining multiple simulation areas are specifically: according to the preset position range of the simulation space corresponding to the simulation system, multiple simulation areas are obtained from multiple preset areas in the preset space; the multiple preset areas are obtained by dividing the preset space according to the preset area range, and the preset space includes the simulation space; or, the simulation space is divided according to the simulation area range to obtain multiple simulation areas.
[0063] Among them, considering that a simulation system is divided into multiple simulation areas and needs to meet the distributed collaborative simulation of the simulation business of the simulation system through multiple distributed nodes, the simulation area range of each simulation area needs to meet the distributed computing requirements of the simulation business of the simulation system; that is, the simulation area range can be determined and adjusted according to the distributed computing requirements of the simulation business of the simulation system. In addition, in order to avoid the problem of fuzzy boundary affiliation between multiple simulation areas, the simulation area range of each simulation area also needs to be accurately represented by the computer through floating-point numbers.
[0064] As an example, see Figure 4 , Figure 4 A schematic diagram of multiple simulation areas provided for an embodiment of the present application. For example, the preset space is "the entire earth", the preset area range is "preset longitude and latitude range 1", and the simulation system is "autonomous driving simulation system of city A"; the "entire earth" is divided into multiple preset areas according to the "preset longitude and latitude range 1" in advance; through the preset position range of the simulation space corresponding to the "autonomous driving simulation system of city A", multiple preset areas that meet the preset position range are determined from multiple preset areas in the "entire earth", and the multiple simulation areas corresponding to the "autonomous driving simulation system of city A" are "8×8 simulation areas", that is, 64 grid-shaped simulation areas. Alternatively, the simulation space of the "autonomous driving simulation system of city A" is divided according to the "preset longitude and latitude range 1", and the multiple simulation areas corresponding to the "autonomous driving simulation system of city A" are "8×8 simulation areas", that is, 64 grid-shaped simulation areas.
[0065] As an example, based on the above example, see Figure 5 , Figure 5 A schematic diagram of a preset simulation area range that a distributed node is responsible for in an embodiment of the present application. Among them, the preset simulation area range that distributed node 1 is responsible for is specifically one preset simulation area in the "8×8 simulation areas", such as "simulation area 15", that is, a simulation area filled with a dot pattern; the preset simulation area range that distributed node N is responsible for includes two preset simulation areas in the "8×8 simulation areas", such as "simulation area 19" and "simulation area 27", that is, two simulation areas filled with a pure gray pattern.
[0066] For multiple field of view areas corresponding to multiple simulation areas, it is necessary to divide each simulation area into multiple field of view areas according to the field of view area range, so as to obtain multiple field of view areas corresponding to the multiple simulation areas. Therefore, the present application provides a possible implementation method, and the steps of obtaining multiple field of view areas corresponding to multiple simulation areas are specifically: each simulation area in the multiple simulation areas is divided according to the field of view area range, and multiple field of view areas corresponding to the multiple simulation areas are obtained.
[0067] Among them, considering that a simulation area is divided into multiple field of view areas, it is necessary to further subdivide a simulation area into the field of view observation level of the simulation business of the simulation system, then the field of view area range of each field of view area needs to meet the field of view observation requirements of the simulation business of the simulation system; that is, the field of view area range can be determined and adjusted according to the field of view observation requirements of the simulation business of the simulation system. In addition, in order to avoid the problem of boundary ambiguity between multiple field of view areas, the field of view area range of each field of view area also needs to be accurately represented by the computer through floating point numbers.
[0068] As an example, based on the above example, see Figure 6 , Figure 6 A schematic diagram of multiple viewing areas corresponding to one simulation area provided in an embodiment of the present application. For example, the viewing area range is "preset longitude and latitude range 2", "preset longitude and latitude range 2" is 1 / 81 of "preset longitude and latitude range 1", and "simulation area 15" is divided by "preset longitude and latitude range 2", and the multiple viewing areas corresponding to "simulation area 15" are "9×9 viewing areas", that is, 81 viewing areas filled with dot patterns.
[0069] By analogy, the multiple field of view areas corresponding to "simulation area 19" are "9×9 field of view areas", and the multiple field of view areas corresponding to "simulation area 27" are "9×9 field of view areas", that is, the multiple field of view areas corresponding to the preset simulation area range constituted by "simulation area 19" and "simulation area 27" are "162 field of view areas".
[0070] It should be noted that, on the basis that the above-mentioned preset simulation area range includes one preset simulation area or multiple preset simulation areas among multiple simulation areas, when the preset simulation area range includes an independent preset simulation area, the peripheral visual field area data includes the simulation data of multiple visual field areas around the one preset simulation area, and the inner boundary visual field area data includes the simulation data of multiple visual field areas at the inner boundary of the one preset simulation area. When the preset simulation area range includes multiple connected preset simulation areas, the peripheral visual field area data does not include the simulation data of multiple visual field areas around each preset simulation area, but the simulation area after the multiple preset simulation areas are merged is regarded as one simulation area, that is, a merged simulation area; based on this, the peripheral visual field area data includes the simulation data of multiple visual field areas around the merged simulation area, and similarly, the inner boundary visual field area data includes the simulation data of multiple visual field areas at the inner boundary of the merged simulation area.
[0071] As an example, based on the above example, see Figure 7 , see Figure 7 A schematic diagram of multiple visual fields around a preset simulation area range provided in an embodiment of the present application. For distributed node 1, the preset simulation area range is specifically an independent "simulation area 15", and the peripheral visual field data of the "simulation area 15" includes simulation data of 40 visual fields around the "simulation area 15", that is, simulation data of 40 visual fields filled with right-slash patterns. Figure 8 , see Figure 8 A schematic diagram of multiple viewing areas around another preset simulation area range provided in an embodiment of the present application; for distributed node N, the preset simulation area range includes the connected "simulation area 19" and "simulation area 27", and the surrounding viewing area data of the "simulation area 19" and "simulation area 27" include simulation data of 58 viewing areas around the merged simulation area after the "simulation area 19" and "simulation area 27" are merged, that is, simulation data of 58 viewing areas filled with right diagonal lines.
[0072] S302: The distributed node receives a preset step signal sent by the global coordination node.
[0073] In the embodiment of the present application, after executing S301 in which the global coordination node sends a preset step signal to the distributed node, the distributed node may receive the preset step signal sent by the global coordination node.
[0074] The above-mentioned S301-S302 global collaborative nodes only need to send the peripheral field of view area data of the preset simulation area range that the distributed nodes are responsible for to the distributed nodes, that is, the distributed nodes only need to obtain the strong dependency data required for the distributed node calculation; compared with the related technology that the distributed nodes need to obtain the full amount of preset dependency data of the current frame every frame, the weak dependency data that is unnecessary for the distributed node calculation in the full amount of preset dependency data is trimmed, which greatly reduces the amount of data read from the global collaborative nodes to the distributed nodes, thereby greatly reducing the data communication volume of the distributed collaborative simulation.
[0075] S303: The distributed node calculates the simulation data of the object to be calculated within the preset simulation area and the data of the surrounding visual field area according to the preset step signal, and obtains the calculation result data within the preset simulation area.
[0076] In an embodiment of the present application, after executing S302, the distributed node receives the preset step signal sent by the global collaborative node, the distributed node responds to the preset step signal, and calculates the calculation result data of the preset simulation area range based on the simulation data of the object to be calculated within the preset simulation area range, combined with the surrounding field of view area data of the preset simulation area range.
[0077] S304: The distributed node sends the inner boundary field of view area data of the preset simulation area range in the calculation result data to the global coordination node; the inner boundary field of view area data includes simulation data of multiple field of view areas at the boundaries of the preset simulation area range.
[0078] In an embodiment of the present application, after executing S303 distributed node calculation to obtain calculation result data of a preset simulation area range, considering that the calculation result data obtained by the distributed node for each frame is cached into a high-speed memory database, the strongly dependent data required for subsequent calculations of other distributed nodes is not the full amount of calculation result data, that is, the full amount of calculation result data includes the strongly dependent data required for subsequent calculations of other distributed nodes and the weakly dependent data that is unnecessary for subsequent calculations of other distributed nodes; based on this, the distributed node only needs to send the strongly dependent data required for subsequent calculations of other distributed nodes to the global collaborative node, that is, the distributed node only needs to use the simulation data of multiple field of view areas at the boundary of the preset simulation area range in the calculation result data as the inner boundary field of view area data of the preset simulation area range, and send the inner boundary field of view area of the preset simulation area range to the global collaborative node.
[0079] It should be noted that, on the basis that the above-mentioned preset simulation area range includes one preset simulation area or multiple preset simulation areas among multiple simulation areas, when the preset simulation area range includes an independent preset simulation area, the inner boundary field of view area data includes simulation data of multiple field of view areas at the inner boundary of the one preset simulation area. When the preset simulation area range includes multiple connected preset simulation areas, the inner boundary field of view area data does not include simulation data of multiple field of view areas at the inner boundary of each preset simulation area, but the simulation area after the multiple preset simulation areas are merged is regarded as one simulation area, that is, a merged simulation area; based on this, the inner boundary field of view area data includes simulation data of multiple field of view areas at the inner boundary of the merged simulation area.
[0080] As an example, based on the above example, see Fig. 9 , see Fig. 9 A schematic diagram of multiple visual fields at the inner boundary of a preset simulation area provided in an embodiment of the present application. For distributed node 1, the preset simulation area is specifically an independent "simulation area 15", and the visual field data at the inner boundary of the "simulation area 15" includes simulation data of 36 visual fields at the inner boundary of the "simulation area 15", that is, simulation data of 36 visual fields filled with left-slash patterns; in addition, the black origin represents the object to be calculated. See Fig.10 , see Fig.10 A schematic diagram of multiple visual fields at the boundaries of another preset simulation area range provided in an embodiment of the present application. For a distributed node N, the preset simulation area range includes a connected "simulation area 19" and "simulation area 27", and the visual field data at the boundaries of the "simulation area 19" and "simulation area 27" include simulation data of 54 visual field areas at the boundaries of the merged simulation area after the "simulation area 19" and "simulation area 27" are merged, that is, simulation data of 54 visual field areas filled with left-slash patterns; in addition, the black origin represents the object to be calculated.
[0081] S305: The global coordination node receives the boundary view area data sent by the distributed node.
[0082] In an embodiment of the present application, after executing S304 in which the distributed node sends the inner boundary field of view area data of the preset simulation area range in the calculation result data to the global collaborative node, the global collaborative node can receive the boundary field of view area data of the preset simulation area range in the calculation result data sent by the distributed node, so as to update the original boundary field of view area data of the preset simulation area range.
[0083] The above-mentioned S304-S305 distributed nodes only need to send the inner boundary field of view data of the preset simulation area range in the calculation result data to the global collaborative node, that is, the global collaborative node only needs to obtain the strong dependency data required for the subsequent calculation of other distributed nodes; compared with the related technology that the calculation result data obtained by the distributed node for each frame is cached into a high-speed memory database, the weak dependency data that is unnecessary for the subsequent calculation of other distributed nodes in the full amount of calculation result data is trimmed, which greatly reduces the amount of data written from the distributed node to the global collaborative node, thereby greatly reducing the data communication volume of distributed collaborative simulation.
[0084] In addition, in an embodiment of the present application, there may be objects participating in the observation within the preset simulation area that the distributed node is responsible for, that is, preset participating objects, such as observation points or objects, etc. The distributed node also needs to use the multiple field of view areas observed by the preset participating objects within the preset simulation area as the observation field of view area range of the preset participating objects. In this case, the observation field of view area data of the observation field of view area range in the calculation result data needs to be sent to the global collaborative node in order to accurately implement the distributed collaborative simulation of the observation field of view area range of the preset participating objects. Based on this, the distributed node also needs to send the observation field of view area data of the observation field of view area range to the global collaborative node, and the global collaborative node receives the observation field of view area data. Among them, the observation field of view area range of the preset participating object needs to be determined within the preset simulation area range through the preset position information of the preset participating object, and the preset stepping signal sent by the global collaborative node to the distributed node also needs to carry the preset position information of the preset participating object.
[0085] Therefore, the present application provides a possible implementation method, wherein the preset simulation area range also includes the preset participating object, and the preset stepping signal also carries the preset position information of the preset participating object; the method may also include S1: the distributed node determines the observation field of view area range of the preset participating object within the preset simulation area range according to the preset position information; the observation field of view area range includes multiple field of view areas observed by the preset participating object within the preset simulation area range. Correspondingly, S304 may specifically be, for example, as follows: the distributed node sends the inner boundary field of view area data and the observation field of view area data of the observation field of view area range in the calculation result data to the global collaborative node; S305 may specifically be, for example, as follows: the global collaborative node receives the inner boundary field of view area data and the observation field of view area data sent by the distributed node.
[0086] Among them, when S1 is specifically implemented, first, the distributed node uses the preset position information of the preset participating object to set the field of view area that matches the preset position information in the multiple field of view areas within the preset simulation area as the preset field of view area where the preset participating object is located; then, the distributed node uses the preset field of view area and multiple field of view areas around the preset field of view area as the observation field of view area range of the preset participating object. Therefore, the present application provides a possible implementation method, and S1 may include the following S11-S12, for example:
[0087] S11: The distributed node determines a preset visual field area where a preset participating object is located from a plurality of visual field areas within a preset simulation area according to preset position information.
[0088] S12: The distributed node determines the range of the observation field of view according to the preset field of view and multiple field of view areas around the preset field of view.
[0089] As an example, in Figure 7 The preset simulation area range shown is specifically based on an independent "simulation area 15", and the "simulation area 15" also includes a preset participating object as a "vehicle", then the preset stepping signal also carries the preset position information of the "vehicle", that is, (x1, y1); the distributed node determines that the preset field of view of the "vehicle" is the "field of view 25" in the "simulation area 15" that matches (x1, y1) through (x1, y1), and the observation field of view of the "vehicle" includes the "field of view 25" in the "simulation area 15" and 8 field of view areas around the "field of view 25", that is, Fig. 9 Correspondingly, the observation field of view data includes the calculation result data Fig. 9 Simulation data for the field of view with nine filled diagonal grid patterns shown.
[0090] As an example, in Figure 8 The preset simulation area range shown includes a connected "simulation area 19" and "simulation area 27", and the "simulation area 19" and "simulation area 27" also include a preset participating object as a "vehicle", then the preset stepping signal also carries the preset position information of the "vehicle", that is, (x2, y2); the distributed node determines that the preset field of view of the "vehicle" is the "field of view area 25" in the "simulation area 19" that matches (x2, y2) through (x2, y2), and the observation field of view of the "vehicle" includes the "field of view area 25" in the "simulation area 19" and 8 field of view areas around the "field of view area 25", that is, Fig.10 Correspondingly, the observation field of view data includes the calculation result data Fig.10Simulation data for the field of view with nine filled diagonal grid patterns shown.
[0091] In addition, in an embodiment of the present application, the following situation is taken into consideration: if any calculation object among the objects to be calculated within a preset simulation area that a distributed node is responsible for is moved out of the original simulation area after calculation through the last step signal and is added to another preset simulation area that another distributed node is responsible for, then the simulation data of the objects to be calculated within the preset simulation area that the two distributed nodes are respectively responsible for need to be updated.
[0092] One situation refers to that the global collaborative node receives the simulation data of the first computing object after the last step signal, and the first computing object has preset marking data indicating that the first computing object has moved out of the original simulation area range, and the simulation data of the first computing object indicates that the first computing object is newly added to the preset simulation area range. Based on this, in order to make the distributed node clear that the objects to be calculated within the preset simulation area range for which it is responsible need to add the first computing object, the step signal sent by the global collaborative node to the distributed node this time also needs to carry the simulation data of the first computing object, so that the distributed node can add the simulation data of the first computing object to the simulation data of the objects to be calculated within the preset simulation area range to update the simulation data of the objects to be calculated, thereby improving the accuracy of this step signal and improving the accuracy of the calculation result data within the preset simulation area range; correspondingly, when S303 is specifically implemented, the distributed node calculates the updated simulation data of the objects to be calculated and the surrounding visual field area data in response to the preset step signal to obtain the calculation result data within the preset simulation area range.
[0093] Therefore, the present application provides a possible implementation method. When the first computing object has preset mark data indicating that the first computing object has moved out of the original simulation area range, if the simulation data of the first computing object indicates that the first computing object is added to the preset simulation area range, the preset step signal also carries the simulation data of the first computing object; the method may also include S2: adding the simulation data of the first computing object to the simulation data of the object to be calculated, obtaining the updated simulation data of the object to be calculated, and deleting the preset mark data of the first computing object; correspondingly, S303 may specifically be: calculating the updated simulation data of the object to be calculated and the peripheral visual field area data according to the preset step signal to obtain calculation result data.
[0094] Another situation refers to the calculation result data of the distributed node indicating that the second calculation object in the object to be calculated moves out of the preset simulation area range. Based on this, in order to make the global collaborative node clearly know that the second calculation object moves out of the original simulation area range, first, the distributed node needs to mark the second calculation object with preset marking data indicating that the second calculation object moves out of the original simulation area range, and then, the distributed node also needs to send the simulation data of the second calculation object in the calculation result data to the global collaborative node; in addition, the distributed node also needs to delete the simulation data of the second calculation object in the calculation result data from the simulation data of the object to be calculated in the calculation result data, so as to update the simulation data of the object to be calculated in the calculation result data; finally, the global collaborative node can receive the simulation data of the second calculation object in the calculation result data to improve the accuracy of the next step signal sent by the subsequent global collaborative node. Therefore, the present application provides a possible implementation method, and the method may also include the following S3-S5:
[0095] S3: If the calculation result data indicates that the second calculation object among the objects to be calculated moves out of the preset simulation area, mark the second calculation object with preset marking data; the preset marking data indicates that the second calculation object moves out of the original simulation area.
[0096] S4: Sending the simulation data of the second calculation object in the calculation result data to the global coordination node, deleting the simulation data of the second calculation object in the calculation result data, and obtaining the updated simulation data of the object to be calculated in the calculation result data.
[0097] S5: The global coordination node receives the simulation data of the second calculation object in the calculation result data sent by the distributed node.
[0098] In addition, in an embodiment of the present application, considering that the simulation service of the simulation system has the need to report the full amount of data within the preset simulation area that the distributed node is responsible for, in order for the global collaborative node to obtain the full amount of data within the preset simulation area that the distributed node is responsible for, on the basis of the aforementioned S301-S305, the distributed node can send the calculation result data at a low frequency based on the reporting demand for the full amount of data within the preset simulation area, that is, use a first sending frequency that is less than the second sending frequency of the inner boundary field of view data to send the calculation result data to the global collaborative node; the global collaborative node can receive the calculation result data and store the calculation result data in accordance with the correspondence between multiple simulation areas and multiple field of view areas. Similarly, the first receiving frequency of the calculation result data is less than the second receiving frequency of the inner boundary field of view data. Therefore, the present application provides a possible implementation method, and the method may also include the following S6-S8, for example:
[0099] S6: The distributed node sends the calculation result data to the global coordination node at a first sending frequency according to the full data reporting requirement of the preset simulation area; the first sending frequency is lower than the second sending frequency of the inner boundary field of view data.
[0100] S7: The global coordination node receives the calculation result data sent by the distributed node, and the first receiving frequency of the calculation result data is less than the second receiving frequency of the inner boundary field of view area data.
[0101] S8: The global coordination node stores the calculation result data according to the corresponding relationship.
[0102] It can be seen from the above technical solution that the simulation data of the simulation system is stored in the global collaborative node according to the correspondence between multiple simulation areas and multiple visual field areas, wherein one simulation area is divided into multiple visual field areas. First, the global collaborative node sends a preset stepping signal to the distributed node, and the preset stepping signal carries the peripheral visual field area data of the preset simulation area range that the distributed node is responsible for; wherein the peripheral visual field area data includes the simulation data of multiple visual field areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas. Then, the distributed node calculates the simulation data and the peripheral visual field area data of the object to be calculated within the preset simulation area range in response to the preset stepping signal, and obtains the calculation result data of the preset simulation area range. Finally, the distributed node sends the inner boundary visual field area data of the preset simulation area range in the calculation result data to the global collaborative node, and the inner boundary visual field area data includes the simulation data of multiple visual field areas at the inner boundary of the preset simulation area range. It can be seen that this method does not need to rely on a high-speed memory database. The global collaborative node stores the simulation data of the simulation system by dividing one simulation system into multiple simulation areas and one simulation area into multiple field of view areas. Based on this, in the process of communication between the global collaborative node and the distributed node, the simulation data of the field of view area that is unnecessary for distributed node calculation in the simulation area is cut, and only the simulation data of the field of view area necessary for distributed node calculation in the communication simulation area is used, which greatly reduces the data communication volume of distributed collaborative simulation and achieves extremely high distributed collaborative simulation efficiency to improve the frame rate of the simulation system. It can be applied to simulation systems with high frame rate requirements. In addition, this method does not need to rely on a high-speed memory database, which reduces the cost of distributed collaborative simulation.
[0103] Based on the foregoing introduction, the distributed collaborative simulation processing method provided in the embodiment of the present application can be applied to simulation systems with high frame rate requirements, and is mainly applied to large-scale high frame rate simulation systems, such as autonomous driving simulation systems, microscopic traffic simulation systems, virtual city simulation systems, game simulation systems, digital twin simulation systems, metaverse simulation systems, and the like.
[0104] It should be noted that, based on the implementation methods provided in the above aspects, this application can also be further combined to provide more implementation methods.
[0105] Next, based on Figure 2 Corresponding to the processing method of distributed collaborative simulation provided in the embodiment, the embodiment of the present application also provides a processing device for distributed collaborative simulation, see Fig.11 , Fig.11 A structural diagram of a distributed collaborative simulation processing device provided in an embodiment of the present application, wherein the distributed collaborative simulation processing device 1100 is deployed in a distributed node, and simulation data of a simulation system is stored in a global collaborative node according to a correspondence between multiple simulation areas and multiple view areas, and one simulation area is divided into multiple view areas. The distributed collaborative simulation processing device 1100 includes: a first receiving unit 1101, a computing unit 1102, and a first sending unit 1103;
[0106] The first receiving unit 1101 is used to receive a preset stepping signal sent by the global coordination node, where the preset stepping signal carries peripheral visual area data of a preset simulation area range that the distributed node is responsible for; the peripheral visual area data includes simulation data of multiple visual areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among multiple simulation areas;
[0107] A calculation unit 1102 is used to calculate the simulation data of the object to be calculated and the data of the surrounding visual field area within the preset simulation area according to the preset step signal, and obtain the calculation result data within the preset simulation area;
[0108] The first sending unit 1103 is used to send the inner boundary field of view area data of the preset simulation area range in the calculation result data to the global coordination node; the inner boundary field of view area data includes simulation data of multiple field of view areas at the boundary of the preset simulation area range.
[0109] In one possible implementation, when the preset simulation area range includes an independent preset simulation area, the surrounding field of view area data includes simulation data of multiple field of view areas surrounding the preset simulation area, and the inner boundary field of view area data includes simulation data of multiple field of view areas at the inner boundary of the preset simulation area; when the preset simulation area range includes multiple connected preset simulation areas, the surrounding field of view area data includes simulation data of multiple field of view areas surrounding a merged simulation area after the multiple preset simulation areas are merged, and the inner boundary field of view area data includes simulation data of multiple field of view areas at the inner boundary of the merged simulation area.
[0110] In a possible implementation, the preset simulation area range also includes preset participating objects, and the preset stepping signal also carries preset position information of the preset participating objects; the device further includes: a determination unit;
[0111] A determination unit, configured to determine an observation field of view area of a preset participant object within a preset simulation area according to preset position information; the observation field of view area range includes a plurality of field of view areas observed by the preset participant object within the preset simulation area range;
[0112] The first sending unit 1103 is specifically configured to send the inner boundary field of view data and the observation field of view data of the observation field of view range in the calculation result data to the global coordination node.
[0113] In a possible implementation manner, the determining unit is specifically configured to:
[0114] According to the preset position information, determining a preset visual field area where the preset participating object is located from a plurality of visual field areas within the preset simulation area;
[0115] The range of the observation visual field area is determined according to the preset visual field area and a plurality of visual field areas around the preset visual field area.
[0116] In a possible implementation, a simulation area range of each simulation area meets the distributed computing requirements of a simulation service of the simulation system, and a field of view area range of each field of view area meets the field of view observation requirements of the simulation service.
[0117] In a possible implementation, when the first computing object has preset marking data indicating that the first computing object is moved out of the original simulation region range, if the simulation data of the first computing object indicates that the first computing object is newly added to the preset simulation region range, the preset step signal also carries the simulation data of the first computing object; the device further includes: an adding unit;
[0118] an adding unit, configured to add the simulation data of the first calculation object to the simulation data of the object to be calculated, obtain the updated simulation data of the object to be calculated, and delete the preset marking data of the first calculation object;
[0119] The computing unit 1102 is specifically configured to:
[0120] The updated simulation data of the object to be calculated and the peripheral visual field area data are calculated according to the preset step signal to obtain calculation result data.
[0121] In a possible implementation, the device further includes: a marking unit;
[0122] A marking unit, for marking preset marking data on the second calculation object if the calculation result data indicates that the second calculation object among the objects to be calculated moves out of the preset simulation area range; the preset marking data indicates that the second calculation object moves out of the original simulation area range;
[0123] The first sending unit 1103 is further used to send the simulation data of the second calculation object in the calculation result data to the global coordination node, delete the simulation data of the second calculation object in the calculation result data, and obtain the updated simulation data of the object to be calculated in the calculation result data.
[0124] In a possible implementation, the first sending unit 1103 is also used to send calculation result data to the global coordination node at a first sending frequency according to the full data reporting requirements of the preset simulation area; the first sending frequency is less than the second sending frequency of the inner boundary field of view area data.
[0125] It can be seen from the above technical solution that the simulation data of the simulation system is stored in the global collaborative node according to the correspondence between multiple simulation areas and multiple visual field areas, wherein one simulation area is divided into multiple visual field areas. First, the global collaborative node sends a preset stepping signal to the distributed node, and the preset stepping signal carries the peripheral visual field area data of the preset simulation area range that the distributed node is responsible for; wherein the peripheral visual field area data includes the simulation data of multiple visual field areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas. Then, the distributed node calculates the simulation data and the peripheral visual field area data of the object to be calculated within the preset simulation area range in response to the preset stepping signal, and obtains the calculation result data of the preset simulation area range. Finally, the distributed node sends the inner boundary visual field area data of the preset simulation area range in the calculation result data to the global collaborative node, and the inner boundary visual field area data includes the simulation data of multiple visual field areas at the inner boundary of the preset simulation area range. It can be seen that this method does not need to rely on a high-speed memory database. The global collaborative node stores the simulation data of the simulation system by dividing one simulation system into multiple simulation areas and one simulation area into multiple field of view areas. Based on this, in the process of communication between the global collaborative node and the distributed node, the simulation data of the field of view area that is unnecessary for distributed node calculation in the simulation area is cut, and only the simulation data of the field of view area necessary for distributed node calculation in the communication simulation area is used, which greatly reduces the data communication volume of distributed collaborative simulation and achieves extremely high distributed collaborative simulation efficiency to improve the frame rate of the simulation system. It can be applied to simulation systems with high frame rate requirements. In addition, this method does not need to rely on a high-speed memory database, which reduces the cost of distributed collaborative simulation.
[0126] based on Figure 2Corresponding to the processing method of distributed collaborative simulation provided in the embodiment, the embodiment of the present application also provides another processing device of distributed collaborative simulation, see Fig.12 , Fig.12 A structural diagram of another distributed collaborative simulation processing device provided in an embodiment of the present application, wherein the distributed collaborative simulation processing device 1200 is deployed in a global collaborative node, and simulation data of a simulation system is stored in the global collaborative node according to a correspondence between multiple simulation areas and multiple view areas, and one simulation area is divided into multiple view areas. The distributed collaborative simulation processing device 1200 includes: a second sending unit 1201 and a second receiving unit 1202;
[0127] The second sending unit 1201 is used to send a preset step signal to the distributed node, where the preset step signal carries peripheral visual area data of a preset simulation area range that the distributed node is responsible for; the peripheral visual area data includes simulation data of multiple visual areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas;
[0128] The second receiving unit 1202 is used to receive the inner boundary field of view area data of the preset simulation area range sent by the distributed node; the boundary field of view area data is the simulation data of multiple field of view areas at the boundary of the preset simulation area range, which are obtained by the distributed node calculating the simulation data of the object to be calculated within the preset simulation area range and the surrounding field of view area data according to the preset step signal.
[0129] In a possible implementation, the apparatus further includes: a first obtaining unit and a second obtaining unit;
[0130] The first obtaining unit is used to obtain multiple simulation areas from multiple preset areas in the preset space according to the preset position range of the simulation space corresponding to the simulation system; the multiple preset areas are obtained by dividing the preset space according to the preset area range, and the preset space includes the simulation space; or, the simulation space is divided according to the simulation area range to obtain multiple simulation areas.
[0131] The second obtaining unit is used to divide each simulation area among the multiple simulation areas according to the range of the field of view area, and obtain multiple field of view areas corresponding to the multiple simulation areas.
[0132] It can be seen from the above technical solution that the simulation data of the simulation system is stored in the global collaborative node according to the correspondence between multiple simulation areas and multiple visual field areas, wherein one simulation area is divided into multiple visual field areas. First, the global collaborative node sends a preset stepping signal to the distributed node, and the preset stepping signal carries the peripheral visual field area data of the preset simulation area range that the distributed node is responsible for; wherein the peripheral visual field area data includes the simulation data of multiple visual field areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas. Then, the distributed node calculates the simulation data and the peripheral visual field area data of the object to be calculated within the preset simulation area range in response to the preset stepping signal, and obtains the calculation result data of the preset simulation area range. Finally, the distributed node sends the inner boundary visual field area data of the preset simulation area range in the calculation result data to the global collaborative node, and the inner boundary visual field area data includes the simulation data of multiple visual field areas at the inner boundary of the preset simulation area range. It can be seen that this method does not need to rely on a high-speed memory database. The global collaborative node stores the simulation data of the simulation system by dividing one simulation system into multiple simulation areas and one simulation area into multiple field of view areas. Based on this, in the process of communication between the global collaborative node and the distributed node, the simulation data of the field of view area that is unnecessary for distributed node calculation in the simulation area is cut, and only the simulation data of the field of view area necessary for distributed node calculation in the communication simulation area is used, which greatly reduces the data communication volume of distributed collaborative simulation and achieves extremely high distributed collaborative simulation efficiency to improve the frame rate of the simulation system. It can be applied to simulation systems with high frame rate requirements. In addition, this method does not need to rely on a high-speed memory database, which reduces the cost of distributed collaborative simulation.
[0133] The present application also provides a computer device, which may be a server. Fig.13 , Fig.13 A structural diagram of a server provided in an embodiment of the present application, the server 1300 may have relatively large differences due to different configurations or performances, and may include one or more processors, such as a central processing unit (CPU) 1322, and a memory 1332, one or more storage media 1330 (such as one or more mass storage devices) storing application programs 1342 or data 1344. Among them, the memory 1332 and the storage medium 1330 can be short-term storage or permanent storage. The program stored in the storage medium 1330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1322 can be configured to communicate with the storage medium 1330 and execute a series of instruction operations in the storage medium 1330 on the server 1300.
[0134] The server 1300 may also include one or more power supplies 1326, one or more wired or wireless network interfaces 1350, one or more input and output interfaces 1358, and / or one or more operating systems 1341, such as Windows Server 2003, ... TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.
[0135] In this embodiment, the simulation data of the simulation system is stored in the global coordination node according to the correspondence between multiple simulation areas and multiple view areas. One simulation area is divided into multiple view areas. The central processor 1322 in the server 1300 can perform the following steps:
[0136] Receive a preset step signal sent by a global coordination node, the preset step signal carries peripheral visual area data of a preset simulation area range that the distributed node is responsible for; the peripheral visual area data includes simulation data of multiple visual areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among multiple simulation areas;
[0137] Calculate the simulation data of the object to be calculated within the preset simulation area and the data of the surrounding visual field area according to the preset step signal to obtain the calculation result data within the preset simulation area;
[0138] The inner boundary visual area data of the preset simulation area range in the calculation result data is sent to the global coordination node; the inner boundary visual area data includes simulation data of multiple visual areas at the boundaries of the preset simulation area range.
[0139] Or, in this embodiment, the simulation data of the simulation system is stored in the global coordination node according to the correspondence between multiple simulation areas and multiple view areas, and one simulation area is divided into multiple view areas. The central processor 1322 in the server 1300 can perform the following steps:
[0140] Sending a preset stepping signal to the distributed node, the preset stepping signal carries peripheral visual area data of a preset simulation area range that the distributed node is responsible for; the peripheral visual area data includes simulation data of multiple visual areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas;
[0141] Receive the inner boundary field of view area data of the preset simulation area range sent by the distributed node; the boundary field of view area data is the simulation data of multiple field of view areas at the boundary of the preset simulation area range, which are obtained by the distributed node calculating the simulation data of the object to be calculated within the preset simulation area range and the surrounding field of view area data according to the preset step signal.
[0142] The computer device provided in the embodiment of the present application may also be a terminal. Fig.14 , Fig.14 A structural diagram of a terminal provided for an embodiment of the present application. Taking a smartphone as an example, the smartphone includes: a radio frequency (RF) circuit 1410, a memory 1420, an input unit 1430, a display unit 1440, a sensor 1450, an audio circuit 1460, a wireless fidelity (WiFi) module 1470, a processor 1480, and a power supply 1490 and other components. The input unit 1430 may include a touch panel 1431 and other input devices 1432, the display unit 1440 may include a display panel 1441, and the audio circuit 1460 may include a speaker 1461 and a microphone 1462. Those skilled in the art will appreciate that Fig.14 The structure of the smartphone shown in the figure does not constitute a limitation of the smartphone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0143] The memory 1420 can be used to store software programs and modules. The processor 1480 executes various functional applications and data processing of the smartphone by running the software programs and modules stored in the memory 1420. The memory 1420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the smartphone (such as audio data, a phone book, etc.), etc. In addition, the memory 1420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0144] The processor 1480 is the control center of the smartphone, which uses various interfaces and lines to connect various parts of the entire smartphone, and executes various functions of the smartphone and processes data by running or executing software programs and / or modules stored in the memory 1420, and calling data stored in the memory 1420. Optionally, the processor 1480 may include one or more processing units; preferably, the processor 1480 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1480.
[0145] In this embodiment, simulation data of the simulation system is stored in the global coordination node according to the correspondence between multiple simulation areas and multiple field of view areas. One simulation area is divided into multiple field of view areas. The processor 1480 in the smart phone can perform the following steps:
[0146] Receive a preset step signal sent by a global coordination node, the preset step signal carries peripheral visual area data of a preset simulation area range that the distributed node is responsible for; the peripheral visual area data includes simulation data of multiple visual areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among multiple simulation areas;
[0147] Calculate the simulation data of the object to be calculated within the preset simulation area and the data of the surrounding visual field area according to the preset step signal to obtain the calculation result data within the preset simulation area;
[0148] The inner boundary visual area data of the preset simulation area range in the calculation result data is sent to the global coordination node; the inner boundary visual area data includes simulation data of multiple visual areas at the boundaries of the preset simulation area range.
[0149] Or, in this embodiment, the simulation data of the simulation system is stored in the global coordination node according to the correspondence between the multiple simulation areas and the multiple field of view areas, and one simulation area is divided into multiple field of view areas. The processor 1480 in the smart phone can perform the following steps:
[0150] Sending a preset stepping signal to the distributed node, the preset stepping signal carries peripheral visual area data of a preset simulation area range that the distributed node is responsible for; the peripheral visual area data includes simulation data of multiple visual areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas;
[0151] Receive the inner boundary field of view area data of the preset simulation area range sent by the distributed node; the boundary field of view area data is the simulation data of multiple field of view areas at the boundary of the preset simulation area range, which are obtained by the distributed node calculating the simulation data of the object to be calculated within the preset simulation area range and the surrounding field of view area data according to the preset step signal.
[0152] According to one aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to implement the processing method of distributed collaborative simulation described in the aforementioned embodiments.
[0153] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the method provided in various optional implementations of the above-mentioned embodiments.
[0154] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.
[0155] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0156] In the specific implementation of this application, if relevant data such as preset objects, actual interaction data, etc. involve user information, when the above embodiments of this application are applied to specific products or technologies, the user's separate permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0157] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0158] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0159] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0160] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store computer programs.
[0161] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, ordinary technical members in the art should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A distributed collaborative simulation processing method, characterized in that: The method is executed by distributed nodes, and simulation data of the simulation system is stored in a global coordination node according to the correspondence between multiple simulation areas and multiple view areas, and one simulation area is divided into multiple view areas. The method includes: Receive a preset step signal sent by the global coordination node, wherein the preset step signal carries peripheral visual field data of a preset simulation area range that the distributed node is responsible for; the peripheral visual field data includes simulation data of multiple visual field areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas; Calculate the simulation data of the object to be calculated within the preset simulation area and the data of the surrounding visual field area according to the preset step signal to obtain the calculation result data within the preset simulation area; The inner boundary field of view area data of the preset simulation area range in the calculation result data is sent to the global coordination node; the inner boundary field of view area data includes simulation data of multiple field of view areas at the inner boundary of the preset simulation area range.
2. The method according to claim 1, characterized in that When the preset simulation area range includes an independent preset simulation area, the peripheral visual field area data includes simulation data of multiple visual field areas around the preset simulation area, and the inner boundary visual field area data includes simulation data of multiple visual field areas at the inner boundary of the preset simulation area; When the preset simulation area range includes the multiple connected preset simulation areas, the peripheral field of view area data includes simulation data of multiple field of view areas around the merged simulation area after the multiple preset simulation areas are merged, and the inner boundary field of view area data includes simulation data of multiple field of view areas at the inner boundary of the merged simulation area.
3. The method according to claim 1, characterized in that When the object to be calculated includes a preset participating object, the preset step signal also carries preset position information of the preset participating object; the method further includes: According to the preset position information, determining the observation field of view area range of the preset participating object within the preset simulation area range; the observation field of view area range includes a plurality of field of view areas observed by the preset participating object within the preset simulation area range; The sending of the inner boundary field of view area data of the preset simulation area range in the calculation result data to the global coordination node is specifically: The inner boundary field of view area data and the observation field of view area data of the observation field of view area range in the calculation result data are sent to the global coordination node.
4. The method according to claim 3, characterized in that Determining the observation field of view area of the preset participating object within the preset simulation area according to the preset position information includes: According to the preset position information, determining a preset visual field area where the preset participating object is located in a plurality of visual field areas within the preset simulation area; The range of the observation field of view area is determined according to the preset field of view area and a plurality of field of view areas around the preset field of view area.
5. The method according to any one of claims 1 to 4, characterized in that: The simulation area range of each simulation area meets the distributed computing requirements of the simulation service of the simulation system; the field of view area range of each field of view area meets the field of view observation requirements of the simulation service.
6. The method according to any one of claims 1 to 4, characterized in that: When the first computing object has preset marking data indicating that the first computing object is moved out of the original simulation region, if the simulation data of the first computing object indicates that the first computing object is newly added to the preset simulation region, the preset step signal also carries the simulation data of the first computing object; the method further includes: Adding the simulation data of the first calculation object to the simulation data of the object to be calculated to obtain updated simulation data of the object to be calculated, and deleting the preset marking data of the first calculation object; The stepping signal is used to calculate the simulation data of the object to be calculated within the preset simulation area and the data of the surrounding visual field area to obtain the calculation result data within the preset simulation area, specifically: The updated simulation data of the object to be calculated and the peripheral visual field area data are calculated according to the preset step signal to obtain the calculation result data.
7. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: If the calculation result data indicates that a second calculation object among the objects to be calculated moves out of the preset simulation area, marking the second calculation object with preset marking data; the preset marking data indicates that the second calculation object moves out of the original simulation area; The simulation data of the second calculation object in the calculation result data is sent to the global coordination node, and the simulation data of the second calculation object in the calculation result data is deleted to obtain the updated simulation data of the object to be calculated in the calculation result data.
8. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: According to the full data reporting requirement of the preset simulation area range, the calculation result data is sent to the global coordination node at a first sending frequency; the first sending frequency is less than the second sending frequency of the inner boundary field of view area data.
9. A distributed collaborative simulation processing method, characterized in that: The method is executed by a global coordination node, wherein simulation data of the simulation system is stored in the global coordination node according to a correspondence between multiple simulation areas and multiple view areas, and one simulation area is divided into multiple view areas. The method includes: Sending a preset stepping signal to a distributed node, the preset stepping signal carrying peripheral visual area data of a preset simulation area range that the distributed node is responsible for; the peripheral visual area data includes simulation data of multiple visual areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas; Receive the inner boundary field of view area data of the preset simulation area range sent by the distributed node; the boundary field of view area data is simulation data of multiple field of view areas at the boundary of the preset simulation area range, obtained by the distributed node calculating the simulation data of the object to be calculated within the preset simulation area range and the surrounding field of view area data according to the preset step signal.
10. The method according to claim 9, characterized in that The steps of obtaining the multiple simulation areas are specifically as follows: According to a preset position range of the simulation space corresponding to the simulation system, the multiple simulation areas are obtained from multiple preset areas in the preset space; the multiple preset areas are obtained by dividing the preset space according to the preset area range, and the preset space includes the simulation space; Or, the simulation space is divided according to the range of the simulation area to obtain the multiple simulation areas; The steps of obtaining the multiple visual field areas corresponding to the multiple simulation areas are specifically as follows: Each of the multiple simulation areas is divided according to the range of the field of view area to obtain multiple field of view areas corresponding to the multiple simulation areas.
11. A distributed collaborative simulation processing device, characterized in that: Deployed in distributed nodes, simulation data of the simulation system is stored in a global coordination node according to a correspondence between multiple simulation areas and multiple view areas, and one simulation area is divided into multiple view areas. The device includes: a first receiving unit, a computing unit, and a first sending unit; The first receiving unit is used to receive a preset stepping signal sent by the global coordination node, wherein the preset stepping signal carries peripheral visual field area data of a preset simulation area range that the distributed node is responsible for; the peripheral visual field area data includes simulation data of multiple visual field areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas; The calculation unit is used to calculate the simulation data of the object to be calculated within the preset simulation area and the data of the surrounding visual field area according to the preset step signal, so as to obtain the calculation result data within the preset simulation area; The first sending unit is used to send the inner boundary field of view area data of the preset simulation area range in the calculation result data to the global coordination node; the inner boundary field of view area data includes simulation data of multiple field of view areas within the boundary of the preset simulation area range.
12. A distributed collaborative simulation processing device, characterized in that: Deployed in a global coordination node, simulation data of a simulation system is stored in the global coordination node according to a correspondence between a plurality of simulation areas and a plurality of view areas, a simulation area is divided into a plurality of view areas, and the device comprises: a second sending unit and a second receiving unit; The second sending unit is used to send a preset step signal to the distributed node, wherein the preset step signal carries peripheral visual area data of a preset simulation area range that the distributed node is responsible for; the peripheral visual area data includes simulation data of multiple visual areas around the preset simulation area range, and the preset simulation area range includes one preset simulation area or multiple preset simulation areas among the multiple simulation areas; The second receiving unit is used to receive the inner boundary field of view area data of the preset simulation area range sent by the distributed node; the boundary field of view area data is simulation data of multiple field of view areas at the boundary of the preset simulation area range, obtained by the distributed node calculating the simulation data of the object to be calculated within the preset simulation area range and the surrounding field of view area data according to the preset step signal.
13. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store a computer program and transmit the computer program to the processor; The processor is configured to execute the method according to any one of claims 1 to 10 according to the instructions in the computer program.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to implement the method according to any one of claims 1 to 10.
15. A computer program product comprising a computer program, characterized in that When the method is executed on a computer device, the computer device is enabled to execute the method according to any one of claims 1 to 10.
