Model dynamic response method and system based on OSG three-dimensional engine

The OSG-based method and system address security and interactivity issues in 3D digital twin systems by enabling secure, complex human-computer interaction and device simulation, enhancing training and maintenance in hydropower stations.

CN119105674APending Publication Date: 2024-12-10NANJING HEHAI NANZI HYDROPOWER AUTOMATION
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410882545.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

Current 3D digital twin systems for hydropower stations rely heavily on commercial engines like UE and Unity, posing security risks and failing to meet complex human-computer interactivity requirements, with insufficient simulation of operating conditions and dynamic responses.

Method used

A model dynamic response method and system based on the OSG three-dimensional engine, utilizing a callback mechanism to generate and process action signals, enabling complex human-computer interaction and simulating device operations through OSG callback functions.

Benefits of technology

The system achieves secure and complex human-computer interaction, simulating operating conditions and device responses without reliance on commercial engines, enhancing training and maintenance efficiency for hydropower stations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105674A_ABST
    Figure CN119105674A_ABST
Patent Text Reader

Abstract

The invention discloses a model dynamic response method and system based on an OSG three-dimensional engine. The method comprises the steps that an operation signal is generated in response to tool operation or equipment operation; generating a device change signal in response to the external computing module; sending an action message in the operation signal to a corresponding response operation node; sending the equipment change signal to a corresponding response operation node; responding to the action message or the equipment change signal through a Callback callback mechanism, analyzing the action message or processing the equipment change signal, and respectively generating corresponding action units; the action units corresponding to the related step actions and information are stored in corresponding response operation node action structure libraries; and adding the action units into the action event queue to wait for instantiation processing, and monitoring and processing the action units in the action event queue in real time through an osg callback function. Complex response of man-machine interaction can be completed, so that response actions and picture presentation of different three-dimensional models are completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional model interaction, and in particular to a model dynamic response method and system based on an OSG three-dimensional engine. Background Art

[0002] As a renewable and clean energy, hydropower has received more and more attention. However, as the scale of hydropower stations becomes larger and more complex, the operation and maintenance tasks of hydropower stations become heavier, and a large number of technicians are needed to maintain and manage their power stations. Obviously, it is necessary to strengthen the training and assessment mechanism of hydropower stations to ensure the safe operation of the power stations. Developing a mature three-dimensional digital twin system that can fully simulate the operating conditions and operation processes of all equipment in hydropower stations and realize online operation assessment of personnel will become the main way to solve the problems of technician training and daily maintenance in hydropower stations.

[0003] At present, 3D-related virtual reality technology and digital twin technology are the main trends. Most of the 3D digital twin systems of hydropower stations under development support 3D interaction and have reached a high level of design in 3D environment rendering, equipment condition simulation, human-computer interaction, etc. However, there are some serious problems, mainly including the following two aspects: 1. The system relies too much on commercial engines such as UE and Unity to realize its 3D interaction function, which poses a security risk. The development process involves a large amount of model drawing, and the confidentiality level of detailed information of equipment such as hydropower stations is very high. The security of related system development is a top priority. If it relies too much on foreign commercial engines, there will not only be security risks, but also technical risks in the future. 2. The user operation mode and the dynamic response mode of the model are too simple, which is not enough to support the authenticity, intuitiveness, interactivity and other requirements required by the 3D digital twin system. Although the current mainstream 3D interactive system or digital twin system supports 3D display, it basically uses 3D images as the background and displays data through 2D image tables, which cannot simulate complex human-computer interaction operations.

[0004] Therefore, it is urgent to design a response method and system to meet the complex human-computer interaction operation function, simulate the operating conditions of different equipment according to the signal, and realize the digital-analog response function of different models. Summary of the invention

[0005] In view of the above existing problems, the present invention is proposed.

[0006] Therefore, the present invention provides a model dynamic response method and system based on the OSG three-dimensional engine to solve the problem that the current system over-relies on commercial engines such as UE and Unity to realize its three-dimensional interactive function, but cannot meet the complex human-computer interactivity requirements, cannot simulate the operating conditions of different devices according to signals, and realize the digital-analog response functions of different models.

[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0008] In a first aspect, the present invention provides a model dynamic response method based on an OSG three-dimensional engine, comprising: generating an operation signal in response to a tool operation or a device operation;

[0009] generating a device change signal in response to an external computing module;

[0010] In response to the action activation instruction, sending the action message in the operation signal to the corresponding response operation node;

[0011] In response to the device control instruction, the device change signal is sent to the corresponding response operation node;

[0012] Responding to the action message or device change signal through the Callback mechanism, parsing the action message or processing the device change signal, and generating corresponding action units respectively;

[0013] The action units corresponding to the relevant step-by-step actions and information are saved in the corresponding response operation node action structure library;

[0014] The action unit is added to the action event queue to wait for instantiation processing, and the action units in the action event queue are monitored and processed in real time through the OSG callback function.

[0015] As a preferred solution of the model dynamic response method based on the OSG three-dimensional engine described in the present invention, wherein: generating an operation signal in response to a tool operation, the process includes:

[0016] In response to the selected designated tool, sending a designated tool selection command to the node manager to complete the tool query, and if the query is successful, pushing the designated tool into the cache;

[0017] In response to a signal that the tool query and selection are successful, operating the target device through the selected tool;

[0018] In response to the operation command, the device query is initiated to the node manager again. If the query is successful, the target device is pushed into the cache;

[0019] In response to the menu activation command, sending a tool operation command through a tool operation option of the menu;

[0020] In response to the tool operation command, a query is performed on the relevant tool operation, and if a match is found, an action message is generated.

[0021] As a preferred solution of the model dynamic response method based on the OSG three-dimensional engine described in the present invention, wherein: generating an operation signal in response to a device operation, the process includes:

[0022] In response to the selected target device operation information, query the corresponding device, and if the query is successful, generate relevant operation information of the device;

[0023] In response to the relevant operation information of the device, generating a device operation menu;

[0024] In response to the menu operation command, an action message is generated.

[0025] 4. The model dynamic response method based on the OSG three-dimensional engine as claimed in claim 3 is characterized in that, in response to the external computing module generating a device change signal, the process includes:

[0026] If it is a device control operation, a remote control command or a remote adjustment control command is sent to the mathematical model of the simulation machine;

[0027] The remote control command or remote adjustment control command includes the equipment point number and its measured value;

[0028] The mathematical model of the simulator analyzes the remote control or remote adjustment control and generates a device change signal.

[0029] As a preferred solution of the model dynamic response method based on the OSG three-dimensional engine described in the present invention, the processing of the device change signal includes:

[0030] Match the device point number in the device change signal with the point number of the response operation node, and update the corresponding measured value;

[0031] When a change in the measured value is detected, a specific action mode is generated in combination with the action parameters, and the action mode is quantized to form an action unit.

[0032] As a preferred solution of the model dynamic response method based on the OSG three-dimensional engine described in the present invention, wherein: the equipment change signal includes a telesignaling signal and a telemetry signal;

[0033] The telemetry signal corresponds to a remote control instruction;

[0034] The telemetry signal corresponds to a remote adjustment control instruction.

[0035] As a preferred solution of the model dynamic response method based on OSG three-dimensional engine described in the present invention, it also includes:

[0036] The response operation node is searched and located through the node visitor Visitor, and an external call is implemented through the accept interface function;

[0037] When Visitor is called, Visitor will save the node information that calls it and pass it to the apply member function, and finally implement the access operation to the calling node information in the apply member function.

[0038] In a second aspect, the present invention provides a model dynamic response system based on an OSG three-dimensional engine, comprising:

[0039] A first generating module, used for generating an action message in response to a tool operation or a device operation;

[0040] a second generating module, configured to generate a device change signal in response to the external computing module;

[0041] A first sending module, configured to send the action message to a corresponding response operation node in response to an action activation instruction;

[0042] A second sending module, configured to send the device change signal to a corresponding response operation node in response to the device control instruction;

[0043] The parsing and processing module is used to respond to the action message or the device change signal through the osg::NodeCallback callback mechanism, parse the action message or process the device change signal, and generate corresponding action units respectively;

[0044] A saving module is used to save the action units corresponding to the relevant step-by-step actions and information into the corresponding response operation node action structure library;

[0045] The instantiation module is used to add the action unit to the action event queue to wait for instantiation processing, and monitor and process the action units in the action event queue in real time through the osg callback function.

[0046] In a third aspect, the present invention provides a computing device, comprising:

[0047] Memory and processor;

[0048] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the model dynamic response method based on the OSG three-dimensional engine are implemented.

[0049] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the model dynamic response method based on the OSG three-dimensional engine.

[0050] Compared with the prior art, the present invention has the following beneficial effects: the present invention completes the complex response of human-computer interaction through the callback mechanism designed based on the OSG engine, and completes different three-dimensional model response actions and screen presentations through the callback mechanism and the classification of different response nodes corresponding to different response modes, which can directly connect the development process with the user to avoid third-party systems, and can meet the complex human-computer interaction operation functions, and simulate the operating conditions of different devices according to the signal to realize the digital-analog response functions of different models. Without the help of commercial engines such as UE and Unity3D, complex human-computer interaction and digital-analog response are realized, allowing operation and maintenance personnel to be familiar with the operation and operation procedures of the on-site scene equipment through a remote computer, achieving the expected effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0052] Figure 1 It is a schematic diagram of the overall process of a model dynamic response method based on an OSG three-dimensional engine according to an embodiment of the present invention;

[0053] Figure 2 A schematic diagram of the overall process framework of a model dynamic response method based on an OSG three-dimensional engine according to an embodiment of the present invention;

[0054] Figure 3 A schematic diagram of the timing of tool operations in a model dynamic response method based on an OSG three-dimensional engine according to an embodiment of the present invention;

[0055] Figure 4 A schematic diagram of the timing sequence of device operation flow in a model dynamic response method based on an OSG three-dimensional engine according to an embodiment of the present invention;

[0056] Figure 5 A schematic diagram of the device change signal communication process in the model dynamic response method based on the OSG three-dimensional engine according to an embodiment of the present invention;

[0057] Figure 6 This is a schematic diagram of the inheritance relationship of the main OSG callback classes in the model dynamic response method based on the OSG three-dimensional engine described in an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0059] Example 1

[0060] Reference Figure 1-Figure 6 , which is an embodiment of the present invention, provides a model dynamic response method based on OSG three-dimensional engine.

[0061] It should be noted that OSG is a high-performance open source 3D graphics engine, which is released free of charge based on the modified LGPL agreement and is currently widely used in virtual simulation, virtual reality, scientific computing, aerospace, artificial intelligence, games and other fields. It uses OpenGL as the underlying platform and is written in C++. It has a good architecture and rich extensions and can run on most operating systems on the market. Its functional features include paging support for large-scale scenes, multi-threading, multi-reality rendering, particle and shadow effects, support for various file formats, and encapsulation of languages ​​such as JAVA, Perl, and Python.

[0062] For example, in the three-dimensional digital twin system of a hydropower station, in order to adapt to the complex and changeable actual application conditions and high-level security requirements, a powerful OSG high-level engine is needed as the underlying tool for system development. This engine has the characteristics of open source, cross-platform, object-oriented, high-level encapsulation, and security.

[0063] The overall process and framework are as follows Figure 1 and Figure 2 As shown, specifically:

[0064] S100: generating an operation signal in response to a tool operation or a device operation;

[0065] In an embodiment of the present application, in response to a tool operation, an operation signal is generated, and the process includes:

[0066] In response to the selected designated tool, sending a designated tool selection command to the node manager to complete the tool query, and if the query is successful, pushing the designated tool into the cache;

[0067] In response to a signal that the tool query and selection are successful, operating the target device through the selected tool;

[0068] In response to the operation command, the device query is initiated to the node manager again. If the query is successful, the target device is pushed into the cache;

[0069] In response to the menu activation command, sending a tool operation command through a tool operation option of the menu;

[0070] In response to the tool operation command, a query is performed on the relevant tool operation, and if a match is found, an action message is generated.

[0071] For example, Figure 3 As shown, the above solution can be applied as follows:

[0072] The selection operation of the specified tool is completed through a keyboard or mouse button. The event receiver sends the tool selection command to the node manager to complete the tool query. After the node manager finds the tool, it pushes the tool object into the cache and feeds back the query result to the user interface. After the tool is successfully selected, the operator uses the selected tool to operate the target device through a keyboard key. After receiving the device operation command, the event receiver again initiates a device query command to the node manager. After the node manager finds the device, it also pushes the device object into the cache. At this point, the relevant information of the tool and its operating device is captured by the system. Next, the menu activation command is sent to the operation menu manager. The operator can send the tool operation command through the tool operation option of the menu. Finally, the interactive action query interface queries and matches the relevant tool operations. If a match is found, an action message is generated and the corresponding action message is sent to the target node to complete a series of dynamic display effects.

[0073] In an embodiment of the present application, in response to a device operation, an operation signal is generated, and the process includes:

[0074] In response to the selected target device operation information, query the corresponding device, and if the query is successful, generate relevant operation information of the device;

[0075] In response to the relevant operation information of the device, generating a device operation menu;

[0076] In response to the menu operation command, an action message is generated.

[0077] It should be noted that device operation refers to direct operation of the device without the aid of tools.

[0078] For example, the above device operation process mainly includes two parts: initiating device operation action and issuing control commands. The operation sequence diagram when applied is as follows: Figure 4 As shown:

[0079] The selection work is completed directly on the target device through a certain button. After the peripheral event receiver receives the device operation information and finds the corresponding device object in the memory, it sends the relevant operation information of the device to the operation menu generator, which then generates the relevant device operation menu according to the type of device, operation method and other information and displays it on the interface. Finally, the operator completes various control operations on the device through menu options, generates menu operation commands, generates action messages, and sends them to the communication module to realize external communication.

[0080] S200: Figure 4 , generating a device change signal in response to an external computing module;

[0081] In an embodiment of the present application, in response to an external computing module generating a device change signal, the process includes:

[0082] If it is a device control operation, a remote control command or a remote adjustment control command is sent to the mathematical model of the simulation machine;

[0083] Remote control instructions or remote adjustment control instructions include the equipment point number and its measured value;

[0084] The mathematical model of the simulator analyzes the remote control instructions or remote adjustment control instructions to generate equipment change signals.

[0085] For example, the equipment point number parameters are shown in 1:

[0086] Table 1 Equipment point number parameter table

[0087]

[0088] It should be noted that the above-mentioned S100 and S200 solutions divide the dynamic response trigger signals into two categories, namely, the operation signals in the process of human-computer interaction and the device change signals generated by the external computing module.

[0089] Specifically, the operation signal is realized through the pre-configured action message. The model operation action is relatively fixed. This type of dynamic effect is mainly used to show the entire dynamic process of personnel tool operation or equipment operation. The equipment change signal is generated by the simulation machine mathematical model according to the bus control logic, such as the switch opening and closing signal, the unit speed change signal, the water level height signal, etc.

[0090] S300: In response to the action activation instruction, the action message in the operation signal is sent to the corresponding response operation node;

[0091] S400: In response to the device control instruction, send a device change signal to a corresponding response operation node;

[0092] In the embodiment of the present application, it also includes:

[0093] The node visitor Visitor is used to locate the response operation node, and the accept interface function is used to implement external calls.

[0094] When Visitor is called, Visitor will save the node information that calls it and pass it to the apply member function, and finally implement the access operation to the calling node information in the apply member function.

[0095] It should be noted that the model needs to be frequently clicked, grabbed, searched, etc. during human-computer operation. How to quickly locate the target model in a huge scene tree is an important issue. The visitor node access is not only the access to the node itself, but also the recursive access to all child nodes in the node enclosing sphere through the traverse method. In addition, the visitor that meets the actual requirements can also be completed by derivation and overloading to achieve access operations such as node search, picking, modification, etc.

[0096] S500: Responding to the action message or the device change signal through the callback mechanism, parsing the action message or processing the device change signal, and generating corresponding action units respectively;

[0097] It should be noted that the callback mechanism is mainly used to control signal responses, such as trigger signals from external devices such as mouse and keyboard, device data change signals, etc. The callback mechanism can specify that a function be started when a certain signal occurs, thereby realizing the signal capture and processing function.

[0098] Specifically, the Callback mechanism is used to read model callbacks, draw model callbacks, update model callbacks, and event processing callbacks, and provide corresponding operation interfaces. During development, you only need to inherit the required callback class and overload the corresponding interface function to complete the required functions.

[0099] For example, the callback type can be mainly implemented based on the three callback classes osg::NodeCallback, osgGA::GUIEventHandler, and osgGA::CameraManipulator, such as Figure 6 shown.

[0100] Among them, osg::NodeCallback is the model update callback class, which is automatically called when each frame of the model is rendered. It can realize the model digital-analog response function and is used to simulate the actual operating conditions of the equipment; osgGA::GUIE ventHandle is the event processing callback class, which is derived from osg::NodeCallback. On the basis of the update callback, it adds the peripheral event processing interface handle function. By calling the handle function, different peripheral events are processed, thereby realizing the mouse and keyboard operation function of the system; osgGA::CameraManip ulator is derived from the GUIEventHandle event processing callback class. On the basis of the event callback, this callback class adds a public interface for viewport matrix operations; the system roaming function is realized through the CameraManipulator callback class.

[0101] It should also be noted that the action message is parsed to generate the corresponding action unit, where, illustratively, the parsing can be performed through the parameter CString act as the action message string, the program parses the string, saves different types of actions and related parameters in the action structure unit act_struc, and finally adds act_struc to the action queue m_act_list to wait for subsequent instantiation processing.

[0102] In the embodiments of the present application, Figure 5 , process the device change signal, including:

[0103] Match the device point number in the device change signal with the point number of the response operation node, and update the corresponding measured value;

[0104] When a change in the measured value is detected, a specific action mode is generated in combination with the action parameters, and the action mode is quantified to form an action unit.

[0105] In the embodiment of the present application, the equipment change signal includes a telesignaling signal and a telemetry signal;

[0106] The telesignal signal corresponds to the remote control command;

[0107] The telemetry signal corresponds to the remote control instruction.

[0108] Specifically, the telesignal signal controls the opening and closing action, and the telemetering signal controls the value change action.

[0109] It should be noted that this type of signal action is more fixed and has a higher action frequency than an operation action.

[0110] Correspondingly, the response operation node can also be divided into telesignaling model and telemetry model.

[0111] Exemplarily, they can be divided into types as shown in Table 2.

[0112] Table 2 Model signal response classification table

[0113]

[0114] It should be noted that the response operation node has independent point number parameters and action parameters, where the point number parameters are used to achieve information interaction with the external simulation machine system; the action parameters specify the action mode of the device under different measurement states. With model classification, point number parameters, and action parameters, when the measurement value of the model corresponding to the point number changes, the system will combine the action parameters of the model to derive the corresponding action mode, and then quantify the action into action units.

[0115] S600: Save the action units corresponding to the relevant step-by-step actions and information into the corresponding response operation node action structure library;

[0116] Specifically, each step-by-step action and information in the related step-by-step actions corresponds to an action unit;

[0117] S700: Add the action unit to the action event queue to wait for instantiation processing, and monitor and process the action units in the action event queue in real time through the OSG callback function.

[0118] Specifically, the OSG callback function is used to monitor and process the action units in the action event queue in real time, including:

[0119] The callback function periodically checks whether there are new action units in the current event queue;

[0120] If the queue is not empty, the action unit of the current node is processed.

[0121] It should be noted that the action structure library is the final information module of a specific action. It specifies all the information to implement a specific action and is the basic unit of action processing, including action types, action parameters and parameter descriptions.

[0122] Exemplarily, the action types may include TEXTURE_SET texture setting action, Particle_SET particle effect setting action, WATER_SET water surface adding action, MARK_SET tag setting action, and so on.

[0123] It should be noted that the above step numbers do not limit the specific implementation order or implementation combination. For example, S100 and S200 can be responded to and generated at the same time; or, S100, S300, S500 and S600 can be implemented in combination.

[0124] Example 2

[0125] The above is a schematic scheme of a model dynamic response method based on an OSG three-dimensional engine in this embodiment. It should be noted that the technical solution of the system for dynamic response of a model based on an OSG three-dimensional engine based on an improved recurrent neural network and the technical solution of the model dynamic response method based on an OSG three-dimensional engine are of the same concept. For details not described in detail in the technical solution of the system for dynamic response of a model based on an OSG three-dimensional engine based on an improved recurrent neural network in this embodiment, please refer to the description of the technical solution of the model dynamic response method based on an OSG three-dimensional engine.

[0126] The model dynamic response system based on the OSG three-dimensional engine based on the improved recurrent neural network in this embodiment includes:

[0127] A first generating module, used for generating an action message in response to a tool operation or a device operation;

[0128] a second generating module, configured to generate a device change signal in response to the external computing module;

[0129] A first sending module, configured to send an action message to a corresponding response operation node in response to an action activation instruction;

[0130] A second sending module, configured to send a device change signal to a corresponding response operation node in response to the device control instruction;

[0131] The parsing and processing module is used to respond to the action message or the device change signal through the osg::NodeCallback callback mechanism, parse the action message or process the device change signal, and generate corresponding action units respectively;

[0132] A saving module is used to save the action units corresponding to the relevant step-by-step actions and information into the corresponding response operation node action structure library;

[0133] The instantiation module is used to add the action unit to the action event queue to wait for instantiation processing, and monitor and process the action units in the action event queue in real time through the osg callback function.

[0134] This embodiment also provides a computing device, which is applicable to the case of dynamic response of a model based on an OSG three-dimensional engine based on an improved recurrent neural network, including:

[0135] Memory and processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the model dynamic response method based on the OSG three-dimensional engine as proposed in the above embodiment.

[0136] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the method for realizing dynamic response of a model based on an OSG three-dimensional engine as proposed in the above embodiment is implemented.

[0137] The storage medium proposed in this embodiment and the method for implementing dynamic response of a model based on an OSG three-dimensional engine proposed in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be found in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0138] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ReadOnly, Memory, ROM), random access memory (RandomAccess Memory, RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform the methods of various embodiments of the present invention.

[0139] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A model dynamic response method based on OSG three-dimensional engine, characterized in that: include: generating an operation signal in response to a tool operation or an equipment operation; generating a device change signal in response to an external computing module; In response to the action activation instruction, sending the action message in the operation signal to the corresponding response operation node; In response to the device control instruction, the device change signal is sent to the corresponding response operation node; Responding to the action message or device change signal through the Callback mechanism, parsing the action message or processing the device change signal, and generating corresponding action units respectively; The action units corresponding to the relevant step-by-step actions and information are saved in the corresponding response operation node action structure library; The action unit is added to the action event queue to wait for instantiation processing, and the action units in the action event queue are monitored and processed in real time through the OSG callback function.

2. The model dynamic response method based on the OSG three-dimensional engine according to claim 1, characterized in that: In response to the tool operation, an operation signal is generated, the process comprising: In response to the selected designated tool, sending a designated tool selection command to the node manager to complete the tool query, and if the query is successful, pushing the designated tool into the cache; In response to a signal that the tool query and selection are successful, operating the target device through the selected tool; In response to the operation command, the device query is initiated to the node manager again. If the query is successful, the target device is pushed into the cache; In response to the menu activation command, sending a tool operation command through a tool operation option of the menu; In response to the tool operation command, a query is performed on the relevant tool operation, and if a match is found, an action message is generated.

3. The model dynamic response method based on the OSG three-dimensional engine according to claim 1 or 2, characterized in that: In response to the device operation, an operation signal is generated, the process comprising: In response to the selected target device operation information, query the corresponding device, and if the query is successful, generate relevant operation information of the device; In response to the relevant operation information of the device, generating a device operation menu; In response to the menu operation command, an action message is generated.

4. The model dynamic response method based on the OSG three-dimensional engine as claimed in claim 3, characterized in that: In response to an external computing module generating a device change signal, the process includes: If it is a device control operation, a remote control command or a remote adjustment control command is sent to the mathematical model of the simulation machine; The remote control command or remote adjustment control command includes the equipment point number and its measured value; The mathematical model of the simulator analyzes the remote control or remote adjustment control and generates a device change signal.

5. The model dynamic response method based on OSG three-dimensional engine as claimed in claim 4, characterized in that: The processing of the device change signal includes: Match the device point number in the device change signal with the point number of the response operation node, and update the corresponding measured value; When a change in the measured value is detected, a specific action mode is generated in combination with the action parameters, and the action mode is quantized to form an action unit.

6. The model dynamic response method based on the OSG three-dimensional engine as claimed in claim 5, characterized in that: The equipment change signal includes a telesignal signal and a telemetering signal; The telemetry signal corresponds to a remote control instruction; The telemetry signal corresponds to a remote adjustment control instruction.

7. The model dynamic response method based on OSG three-dimensional engine as claimed in claim 6, characterized in that: Also includes: The response operation node is searched and located through the node visitor Visitor, and an external call is implemented through the accept interface function; When Visitor is called, Visitor will save the node information that calls it and pass it to the apply member function, and finally implement the access operation to the calling node information in the apply member function.

8. A system using the model dynamic response method based on OSG three-dimensional engine as claimed in claim 1, characterized in that: include: A first generating module, used for generating an action message in response to a tool operation or a device operation; a second generating module, configured to generate a device change signal in response to the external computing module; A first sending module, configured to send the action message to a corresponding response operation node in response to an action activation instruction; A second sending module, configured to send the device change signal to a corresponding response operation node in response to the device control instruction; The parsing and processing module is used to respond to the action message or the device change signal through the osg::NodeCallback callback mechanism, parse the action message or process the device change signal, and generate corresponding action units respectively; A saving module is used to save the action units corresponding to the relevant step-by-step actions and information into the corresponding response operation node action structure library; The instantiation module is used to add the action unit to the action event queue to wait for instantiation processing, and monitor and process the action units in the action event queue in real time through the osg callback function.

9. An electronic device, comprising: Memory and processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the model dynamic response method based on the OSG three-dimensional engine as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the model dynamic response method based on the OSG three-dimensional engine as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Digital lake three-dimensional visualized simulation method and simulation platform based on OSG

    CN103559739A

  • Method for constructing dynamic three-dimensional models capable of cooperative motion

    CN110471367A

  • Hydraulic power plant three-dimensional scene simulation system and method based on virtual reality technology

    CN110489894A

  • Three-dimensional visualization intelligent simulation system for hydropower station and training method thereof

    CN113673100A

  • Source end maintenance method and system suitable for centralized control station equipment monitoring system

    CN115439269A