Method and device for verifying digital twinning animation of assembly line based on topology and interpolation
By constructing a topological relationship diagram and a directed graph of the points, data anomaly detection and compensation were performed, which solved the data anomaly problem in the digital twin system of the power metering verification pipeline. This enabled efficient data processing and accurate synchronization of the virtual scene, and improved the monitoring and decision support capabilities of digital twin technology.
Patent Information
- Application Number
- CN202511679196.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-17
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2045-11-17
AI Technical Summary
Existing digital twin systems for power metering verification lines rely heavily on raw PLC data and lack effective data anomaly filtering and dynamic error correction mechanisms. This results in data being affected by network fluctuations and communication packet loss, leading to chaotic twin scenarios and reduced monitoring and guidance value.
Based on topology and interpolation methods, a point topology graph and a directed graph are constructed, the shortest path is calculated, data anomaly detection, missing data prediction and compensation are performed, effective data is generated, and the animation of moving bodies in the digital twin scene is driven.
It improves the system's response speed and processing accuracy in the event of data anomalies, ensures smooth transitions and accurate positioning of moving objects in virtual scenes, provides smooth visualization effects and reliable physical system state mapping, and enhances the monitoring value of digital twin technology.
Smart Images

Figure CN121143213A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of industrial automation digital twin, and in particular to a digital twin animation method and device for a calibration pipeline based on topology and interpolation, equipment and medium. BACKGROUND
[0002] In the technical field of industrial automation digital twin, the digital twin system of the electric energy measurement calibration pipeline has become a core technical means for realizing real-time mapping of the physical device state, visual monitoring of the production process, and decision support for operation and maintenance. Such a system digitizes the devices (such as rollers and stoppers) and moving bodies (such as trays and turnover boxes) and the running state of the physical calibration pipeline, constructs a virtual twin model highly consistent with the physical scene, and relies on real-time data output by a programmable logic controller (PLC) to drive the twin animation, so as to realize dynamic synchronization between the virtual scene and the physical system, and thus assist the staff in real-time monitoring of the calibration process progress and troubleshooting of device abnormalities, and ensure stable and efficient operation of the pipeline.
[0003] The current digital twin system of the electric energy measurement calibration pipeline highly depends on the original data of the PLC and has weak ability to effectively filter data abnormalities and dynamically correct errors. Limited by inherent defects such as network fluctuations, data acquisition frequency, and device communication packet loss, there is a significant timing misalignment and spatial misplacement between the twin model and the physical device. In the case of large-scale production of the calibration pipeline, the data throughput increases dramatically, the data error rate can reach 10%, and the twin scene presents a chaotic "mode penetration" superposition state, greatly reducing the monitoring and guidance value of the physical system.
[0004] Therefore, there is an urgent need for a digital twin animation method for a calibration pipeline based on topology and interpolation to solve the problem that the current digital twin system of the electric energy measurement calibration pipeline highly depends on the original data of the PLC, lacks effective data abnormality filtering and dynamic error correction mechanism, and data is affected by network fluctuations and communication packet loss. SUMMARY
[0005] To overcome the problems in the related art, the present disclosure provides a digital twin animation method for a calibration pipeline based on topology and interpolation, device, equipment and medium to solve the technical problems that the current digital twin system of the electric energy measurement calibration pipeline highly depends on the original data of the PLC, lacks effective data abnormality filtering and dynamic error correction mechanism, and data is affected by network fluctuations and communication packet loss.
[0006] One or more embodiments of the present specification provide a digital twin animation method for a calibration pipeline based on topology and interpolation, comprising the following steps: Constructing a point topology relationship graph and a directed graph based on the point layout of the calibration pipeline, and calculating the shortest path between points; The received PLC data stream is sequentially subjected to historical data storage, data anomaly detection, missing data prediction and compensation, and interpolation compensation to obtain effective data, which includes original normal data and virtual compensation data. An animation of a moving body in a digital twin scene is driven based on the effective data.
[0007] Preferably, the point layout based on the test flow line constructs a point topology relationship graph and a directed graph, and calculates the shortest path between points, specifically including the following steps: Obtain the adjacency relationship between points from the scene configuration file of the test flow line, and construct a point topology relationship graph based on the adjacency relationship; Combine the point topology relationship graph and the actual movement direction of the flow line to construct a directed graph representing the logical relationship between points before and after; Based on the point topology relationship graph and the directed graph, the Dijkstra algorithm is used to calculate the shortest path between any two points.
[0008] Preferably, the historical data storage specifically includes the following steps: Add a current timestamp to the effective data obtained after processing, and store it as an ordered queue in chronological order; The ordered queue is used for historical state retrieval during data anomaly detection, and the effective data stored in the ordered queue includes original normal PLC data and subsequently generated virtual compensation data.
[0009] Preferably, the data anomaly detection specifically includes the following steps: Listen to the PLC data stream, receive point data, and retrieve the corresponding latest historical point for each moving body code contained in the point data; Based on the current point and the latest historical point, verify the relationship in the point topology relationship graph; Determine the data state according to the verification result and execute the corresponding processing action.
[0010] Preferably, the missing data prediction and compensation specifically includes the following steps: Call the shortest path calculation based on the current point and the latest historical point to obtain the completed path sequence; Based on historical movement time data, use the exponential moving average algorithm to predict the movement time of each segment in the path, and calculate the total path length; Generate a plurality of virtual position data points with timestamps based on the path sequence and the total path length.
[0011] Preferably, the interpolation compensation specifically includes the following steps: According to the virtual start-stop point and the total path duration, the accurate position of each frame is calculated to realize smooth animation. The position of the moving body in the current frame is calculated using a linear interpolation formula.
[0012] Preferably, the animation of the moving body in the digital twin scene based on the effective data specifically includes the following steps: Synchronize the position information and timestamp in the effective data to the animation engine. The animation engine renders the continuous motion animation of the moving body in the digital twin scene according to the time sequence relationship of the effective data.
[0013] One or more embodiments of the present specification provide a kind of based on topology and interpolation verification pipeline digital twin animation device, including path planning module, PLC data processing module and animation driving module; The path planning module is used to construct point topology relationship graph and directed graph based on the point layout of verification pipeline, and the shortest path between points is calculated; The PLC data processing module is used to sequentially execute historical data storage, data anomaly detection, missing data prediction and compensation and interpolation compensation on the received PLC data stream, to obtain effective data, the effective data includes original normal data and virtual compensation data; The animation driving module is used to drive the animation of the moving body in the digital twin scene based on the effective data.
[0014] One or more embodiments of the present specification provide a kind of computer equipment, including memory, processor and computer program stored in the memory and can be run on the processor, when the processor executes the computer program, realize the method for based on topology and interpolation verification pipeline digital twin animation as described above.
[0015] One or more embodiments of the present specification provide a kind of computer readable storage medium, the computer readable storage medium stores computer program, when the processor executes the computer program, realize the steps of the method for based on topology and interpolation verification pipeline digital twin animation as described above.
[0016] The method, device, equipment and medium based on topology and interpolation of the test pipeline digital twin animation provided by the present disclosure have the advantages that the point topology relationship graph and the directed graph are constructed based on the point layout of the test pipeline, and the shortest path between the points is calculated, the topology relationship graph and the directed graph are constructed, the connection relationship of each key point in the pipeline and the legal motion direction of the moving body are determined, the verifiable topology rules are provided for subsequent data anomaly detection, the pre-calculated shortest path provides a quick and accurate reference for trajectory completion when data is lost, and the physical reasonableness of the compensation data is ensured, thereby fundamentally improving the response speed and processing accuracy of the system under the condition of data anomaly; the received PLC data stream is sequentially subjected to historical data storage, data anomaly detection, lost data prediction and compensation, and interpolation compensation, to obtain effective data, the effective data including original normal data and virtual compensation data, the historical data storage provides complete context information for state tracking of the moving body, the data anomaly detection can accurately filter and exclude error data to prevent the error data from polluting the animation effect, the virtual compensation data generated through path completion and time estimation fills the data gap for data loss, avoids the "jump" of the animation, and the interpolation compensation finally converts the discrete position data into continuous frame-level positions, ensures smooth transition of the moving body in the virtual scene, enhances the fault tolerance of the system, and effectively solves the phenomena of animation lag, misplacement and "model penetration" caused by network fluctuations, communication packet loss and the like; the animation of the moving body in the digital twin scene is driven based on the effective data, the high-quality effective data after cleaning, compensation and optimization is used to drive the animation, ensures that the moving body in the virtual scene can reproduce the position and motion state thereof in the physical world in real time and accurately, not only eliminates visual confusion caused by data problems, provides smooth and coherent visualization effects, but also ensures the accuracy and reliability of the digital twin model in mapping the state of the physical system, thereby providing a trusted monitoring interface that can effectively assist decision-making for the operation and maintenance personnel, and fully plays the core value of the digital twin technology. BRIEF DESCRIPTION OF DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the one or more embodiments of the present specification or the prior art, the drawings needed in the embodiment or prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments described in the present specification, and other drawings can also be obtained by those skilled in the art without any creative labor.
[0018] Figure 1 A flowchart of a method for digital twin animation of a test pipeline based on topology and interpolation is provided for one or more embodiments of the present specification. Figure 2A schematic diagram of a digital twin animation device for a verification pipeline based on topology and interpolation, provided for one or more embodiments of this specification; Figure 3 This is a schematic diagram of the structure of a computer device provided for one or more embodiments of this specification. Detailed Implementation
[0019] To enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of this invention.
[0020] The present invention will now be described in detail with reference to specific embodiments and accompanying drawings.
[0021] Method Implementation Examples According to embodiments of the present invention, a method for digital twin animation of a verification pipeline based on topology and interpolation is provided, such as... Figure 1 The diagram shown is a flowchart of the digital twin animation method for a verification pipeline based on topology and interpolation provided in this embodiment. The digital twin animation method for a verification pipeline based on topology and interpolation according to this embodiment includes the following steps: S110. Based on the point layout of the calibration production line, extract the roller section points and stop points from the scene configuration file, analyze and establish the predecessor, successor, and adjacency relationships between each point, construct the point topology graph and directed graph, and use Dijkstra's algorithm to calculate the shortest path between any two points in the graph, providing a basis for predicting the possible path of the pallet when the signal is lost.
[0022] S120. The PLC data stream received in real time via WebSocket is processed sequentially to perform historical data storage, data anomaly detection, lost data prediction and compensation, and interpolation compensation to obtain valid data, which includes original normal data and virtual compensation data.
[0023] S130. Animation of moving objects in a digital twin scene driven by effective data.
[0024] The method provided in this embodiment constructs a topology graph and directed graph based on the point layout of the calibration pipeline, and calculates the shortest path between points. This clarifies the connection relationships of key points in the pipeline and the legal movement directions of the moving bodies, providing verifiable topological rules for subsequent data anomaly detection. The pre-calculated shortest path provides a fast and accurate reference for trajectory completion when data is lost, ensuring the physical rationality of the compensation data. This fundamentally improves the system's response speed and processing accuracy in data anomaly situations. The received PLC data stream is sequentially processed through historical data storage, data anomaly detection, lost data prediction and compensation, and interpolation compensation to obtain valid data. Valid data includes original normal data and virtual compensation data. Historical data storage provides complete contextual information for the state tracking of the moving bodies. Data anomaly detection accurately filters and removes erroneous data, preventing it from polluting the animation effects. Regarding data loss, [the method is described in the original text]. Virtual compensation data generated through path completion and time estimation fills data gaps, avoiding animation "jumps." Final interpolation compensation transforms discrete position data into continuous frame-level positions, ensuring smooth transitions of moving objects in the virtual scene, enhancing the system's fault tolerance, and effectively solving animation stuttering, misalignment, and "clipping" phenomena caused by network fluctuations and packet loss. Based on effective data-driven animation of moving objects in the digital twin scene, using cleaned, compensated, and optimized high-quality effective data ensures that moving objects in the virtual scene can accurately and in real-time reproduce their position and motion state in the physical world. This not only eliminates visual confusion caused by data issues and provides a smooth and coherent visualization effect, but also guarantees the accuracy and reliability of the digital twin model's mapping of the physical system state. This provides maintenance personnel with a reliable monitoring interface that effectively assists decision-making, fully leveraging the core value of digital twin technology.
[0025] In one embodiment, a topological graph and a directed graph are constructed based on the point layout of the calibration pipeline, and the shortest path between points is calculated. This includes the following steps: Obtain the adjacency relationships between each stop and between each point in each roller section from the scenario configuration file of the calibration production line, and construct a point topology graph based on the adjacency relationships.
[0026] By combining the topological relationship diagram of the points and the actual movement direction of the pipeline, a directed graph representing the logical relationship between the points is constructed.
[0027] Based on the topological relationship graph of the points and the directed graph, the Dijkstra algorithm is used to calculate the shortest path between any two points, providing a foundation for subsequent data detection and prediction.
[0028] The method provided in this embodiment extracts the adjacency relationships of points from the configuration file of the calibration production line scenario to construct a topological relationship graph, transforming physical points into digital models with clear spatial relationships, fully reproducing the spatial layout of the equipment, and providing a "digital ruler" for the physical logic judgment of the position of moving objects. Then, combined with the actual movement direction of the production line, a directed graph is constructed, adding movement direction rules and clarifying the range of legal trajectories of moving objects, providing a logical basis for subsequent PLC data anomaly detection, and quickly intercepting data that violates the laws of physical movement. At the same time, the shortest path between any two points is calculated in advance using the Dijkstra algorithm, and the path is transformed into a "pre-reserved resource". When subsequent data is lost, there is no need for temporary computing power calculation, which not only improves the compensation response speed, but also ensures that the compensation path conforms to the actual flow logic, providing a reasonable path benchmark for the generation of virtual compensation data.
[0029] In one embodiment, historical data storage specifically includes the following steps: The processed valid data is timestamped and stored in an ordered queue in chronological order to provide a basis for subsequent data anomaly detection. The ordered queue is used for historical state retrieval during data anomaly detection, and the valid data stored in the ordered queue includes the original normal PLC data and the subsequently generated virtual compensation data.
[0030] The method provided in this embodiment adds timestamps to the original normal PLC data and subsequent virtual compensation data and forms an ordered queue in sequence. This ensures the temporal integrity and traceability of the effective data, and provides a reliable historical state retrieval basis for subsequent data anomaly detection. It ensures that the latest historical position of the moving body can be accurately obtained during detection, and avoids misjudgment or omission of anomalies due to lack of complete historical reference.
[0031] In one embodiment, data anomaly detection specifically includes the following steps: Continuously monitor the PLC data stream. When receiving point data (including device code no and the set of children codes for the pallet or turnover box (hereinafter referred to as: moving body) on it), for each moving body code contained in the point data, retrieve the corresponding latest historical point (P_hist), that is, the previous known point.
[0032] Based on the current location (P_curr) and the latest historical location (P_hist), relationship verification is performed in the location topology graph. The data status is determined based on the verification results, and corresponding processing actions are executed. The specific verification logic is shown in the table below: Table 1 Topological Relationship Verification
[0033] The method provided in this embodiment monitors the PLC data stream in real time, accurately retrieves the latest historical points according to the motion body code, and then verifies the logical rationality of the current point and the historical points by combining the point topology diagram. It can quickly determine whether the data is abnormal and perform corresponding processing. It can effectively intercept erroneous data that violates physical laws and accurately identify data loss, providing a clear basis for subsequent compensation for lost data or removal of erroneous data, thereby reducing the interference of abnormal data on the accuracy of digital twin animation from the source.
[0034] In one embodiment, when "partial data loss" is determined, this process is initiated to generate smooth virtual animation data, predict and compensate for lost data, specifically including the following steps: The completed path sequence is obtained by using the current point P_curr and the latest historical point P_hist to calculate the shortest path. .
[0035] For each sub-path segment on the path (e.g., from A to B), the system queries the two most recent historical data points for that segment (the difference in timestamps) to calculate the actual travel time. Based on the historical travel time data, an exponential moving average algorithm is used for time smoothing prediction. ; Where α is a smoothing factor, for example, 0.7.
[0036] Predict the estimated travel time T_segment for each segment in the path and calculate the total path duration T, which is the sum of the estimated times for each segment.
[0037] Based on the path sequence Path and the total path duration T, generate multiple virtual location data points with timestamps.
[0038] The method provided in this embodiment completes the motion trajectory sequence by calling the shortest path and accurately predicts the movement time of each segment of the path and the total duration by combining the exponential moving average algorithm, thereby generating virtual position data points with timestamps; effectively filling the gaps in PLC data loss, avoiding position jumps in the animation, and ensuring the temporal continuity of the digital twin animation and the physical rationality of the motion trajectory.
[0039] In one embodiment, interpolation compensation specifically includes the following steps: Based on the virtual start and end points (P) start ,P end Given the total path duration T, the precise position of each frame is calculated to achieve smooth animation. During animation playback, for the elapsed time t, the position of the moving body in the current frame is calculated using a linear interpolation formula, as follows: .
[0040] The method provided in this embodiment calculates the precise position of the moving body in each frame using a linear interpolation formula based on the virtual start and end points and the total path duration. This eliminates positional gaps between frames, achieves smooth transitions in the animation of the moving body, and further ensures the visual fluency and positional coherence of the digital twin animation.
[0041] In one embodiment, driving the animation of a moving object in a digital twin scene based on valid data specifically includes the following steps: The location information and timestamps in the valid data are synchronized to the animation engine, which then renders continuous motion animations of the moving objects in the digital twin scene based on the temporal relationship of the valid data.
[0042] The method provided in this embodiment synchronizes valid data containing location information and timestamps to the animation engine. The engine renders continuous animation of the moving body according to the data time sequence relationship, which not only achieves high-precision state synchronization between the digital twin scene and the physical system, but also ensures smooth animation without gaps, fully ensuring the value of digital twin for visual monitoring of physical pipeline.
[0043] The following specific implementation examples further illustrate this point: 1. Topology Graph Construction: Based on the physical layout of the production line, extract the roller section points and stop points, analyze and establish the predecessor, successor, and adjacency relationships between each point, and construct a directed topology graph. Use Dijkstra's algorithm to calculate the shortest path between any two points in the graph, providing a basis for predicting possible pallet paths in the event of signal loss. 2. Data Reception and Distribution: The system receives raw data from the PLC in real time via WebSocket. The data distribution module calls the corresponding roller segment data processing class and stop / block data processing class according to the data type (roller status, stop / block status). 3. Anomaly Detection and Handling (Executed within the Roller Section Data Processing Class): Roller data detection: Determines whether the current roller signal is valid.
[0044] (1) Roller data anomaly detection: If the roller section signal is lost, proceed to step 4; if the roller section signal is normal, proceed to step 6. (2) Gear stop data anomaly detection: There are two types of gear stop data anomalies: signal loss, proceed to step 4; signal error, proceed to step 5. 4. Roller Signal Loss Handling: For lost roller signals, combine the average time data of the roller's historical movement, for example, using the formula... Calculate the predicted movement time, where 'a' is a smoothing factor, and generate a virtual continuous state signal. Compensate for lost state information during the time period using methods such as linear interpolation. Transfer the processed data to step 6. 5. Discard erroneous data, terminate, and do not participate in animation execution; Animation Execution: The animation controller receives the final valid data (including raw normal data, roller data compensated in step 4, and stop data processed in step 5) from the roller processing module and the stop processing module. Using this precise positional information, the animation engine is driven to render the motion animation of the pallet and turnover box in the digital twin scene.
[0045] Device Examples According to embodiments of the present invention, a digital twin animation device for a verification pipeline based on topology and interpolation is provided, such as... Figure 2 The diagram shown is a structural schematic of the digital twin animation device for the verification pipeline based on topology and interpolation provided in this embodiment. The digital twin animation device for the verification pipeline based on topology and interpolation according to this embodiment of the invention includes a path planning module 21, a PLC data processing module 22, and an animation driving module 23.
[0046] The path planning module 21 is used to construct a topological relationship graph and a directed graph based on the point layout of the calibration pipeline, and to calculate the shortest path between points.
[0047] The PLC data processing module 22 is used to sequentially perform historical data storage, data anomaly detection, lost data prediction and compensation, and interpolation compensation on the received PLC data stream to obtain valid data, which includes original normal data and virtual compensation data.
[0048] Animation-driven module 23 is used to drive the animation of moving objects in a digital twin scene based on valid data.
[0049] The device provided in this embodiment constructs a topological relationship diagram and a directed graph based on the point layout of the calibration pipeline through the path planning module 21, and calculates the shortest path between points. This clarifies the connection relationships of key points in the pipeline and the legal movement directions of the moving bodies, providing verifiable topological rules for subsequent data anomaly detection. The pre-calculated shortest path provides a fast and accurate reference for trajectory completion when data is lost, ensuring the physical rationality of the compensation data, thereby fundamentally improving the system's response speed and processing accuracy in data anomaly situations. The PLC data processing module 22 sequentially performs historical data storage, data anomaly detection, lost data prediction and compensation, and interpolation compensation on the received PLC data stream to obtain valid data. Valid data includes original normal data and virtual compensation data. Through historical data storage, complete contextual information is provided for the state tracking of the moving bodies. Data anomaly detection can accurately filter and remove erroneous data, preventing it from polluting the animation effects. Data loss was filled by virtual compensation data generated through path completion and time estimation, preventing animation "jumps". The final interpolation compensation transformed discrete position data into continuous frame-level positions, ensuring a smooth transition of the moving body in the virtual scene, enhancing the system's fault tolerance, and effectively solving animation stuttering, misalignment, and "clipping" phenomena caused by network fluctuations and communication packet loss. The animation driving module 23 drives the animation of the moving body in the digital twin scene based on effective data. By using high-quality effective data that has been cleaned, compensated, and optimized, it ensures that the moving body in the virtual scene can accurately reproduce its position and motion state in the physical world in real time. This not only eliminates visual confusion caused by data problems and provides a smooth and coherent visualization effect, but also ensures the accuracy and reliability of the digital twin model's mapping of the physical system state. This provides maintenance personnel with a reliable monitoring interface that can effectively assist decision-making, fully leveraging the core value of digital twin technology.
[0050] The embodiments of the present invention are device embodiments corresponding to the above method embodiments. The specific operations of each module processing step can be understood with reference to the description of the method embodiments, and will not be repeated here.
[0051] like Figure 3 As shown, the present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements the digital twin animation method for the verification pipeline based on topology and interpolation in the above embodiments, or when the computer program is executed by a processor, it implements the digital twin animation method for the verification pipeline based on topology and interpolation in the above embodiments.
[0052] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0053] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for apparatus or system embodiments, since they are basically similar to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments. The apparatus and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0054] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention, and the contents not described in detail in the specification of the present invention are known to those skilled in the art.
Claims
1. A digital twin animation method for a verification pipeline based on topology and interpolation, characterized in that, Includes the following steps: Based on the point layout of the calibration pipeline, a point topology graph and a directed graph are constructed, and the shortest path between points is calculated. The received PLC data stream is sequentially processed by performing historical data storage, data anomaly detection, lost data prediction and compensation, and interpolation compensation to obtain valid data, which includes original normal data and virtual compensation data. The animation of moving objects in the digital twin scene is driven by the effective data.
2. The verification pipeline digital twin animation method based on topology and interpolation as described in claim 1, characterized in that, The construction of a point topology graph and a directed graph based on the point layout of the calibration pipeline, and the calculation of the shortest path between points, specifically includes the following steps: Obtain the adjacency relationship between each point from the scenario configuration file of the inspection pipeline, and construct a point topology graph based on the adjacency relationship; By combining the topological relationship diagram of the points and the actual movement direction of the pipeline, a directed graph representing the logical relationship between the points is constructed. Based on the topological relationship diagram of the points and the directed graph, Dijkstra's algorithm is used to calculate the shortest path between any two points.
3. The verification pipeline digital twin animation method based on topology and interpolation as described in claim 1, characterized in that, The storage of historical data specifically includes the following steps: Add the current timestamp to the processed valid data and store it in an ordered queue in chronological order. The ordered queue is used for historical state retrieval during data anomaly detection, and the valid data stored in the ordered queue includes the original normal PLC data and the subsequently generated virtual compensation data.
4. The verification pipeline digital twin animation method based on topology and interpolation as described in claim 1, characterized in that, The data anomaly detection specifically includes the following steps: Listen to the PLC data stream, receive point data, and retrieve the latest historical point for the code of each moving body contained in the point data. Based on the current location and the latest historical location, the relationship is verified in the location topology graph; The data status is determined based on the verification results, and corresponding processing actions are performed.
5. The verification pipeline digital twin animation method based on topology and interpolation as described in claim 1, characterized in that, The lost data prediction and compensation specifically includes the following steps: The completed path sequence is obtained by calling the shortest path based on the current location and the latest historical location. Based on historical travel time data, the exponential moving average algorithm is used to predict the travel time of each segment in the path and calculate the total path duration. Based on the path sequence and the total path duration, multiple virtual location data points with timestamps are generated.
6. The digital twin animation method for verification pipeline based on topology and interpolation as described in claim 5, characterized in that, The interpolation compensation specifically includes the following steps: Based on the virtual start and end points and the total duration of the path, the precise position of each frame is calculated to achieve smooth animation; The position of the moving body in the current frame is calculated using a linear interpolation formula.
7. The verification pipeline digital twin animation method based on topology and interpolation as described in claim 1, characterized in that, The animation of moving objects in the digital twin scene based on the effective data specifically includes the following steps: Synchronize the location information and timestamps in the valid data to the animation engine; The animation engine renders continuous motion animations of moving objects in a digital twin scene based on the temporal relationship of valid data.
8. A digital twin animation device for a verification pipeline based on topology and interpolation, characterized in that, It includes a path planning module, a PLC data processing module, and an animation driving module; The path planning module is used to construct a point topology graph and a directed graph based on the point layout of the calibration pipeline, and to calculate the shortest path between points. The PLC data processing module is used to sequentially perform historical data storage, data anomaly detection, lost data prediction and compensation, and interpolation compensation on the received PLC data stream to obtain valid data, which includes original normal data and virtual compensation data. The animation-driven module is used to drive the animation of moving objects in the digital twin scene based on the valid data.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the digital twin animation method for verification pipelines based on topology and interpolation as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the digital twin animation method for the verification pipeline based on topology and interpolation as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Mobile robot path planning method based on known environment
CN106094834A
Method for searching for shortest path between two points in improved Dijkstra algorithm
CN107276896A
Path planning method based on adjacency list
CN114217615A
Digital twinning and AI auxiliary decision-making method and device in production line life cycle management
CN120031679A
Railway project completion delivery data information extraction method based on digital twinning
CN120354479A