Simulation system and method for device under test, and field device, electronic device and medium
By using the simulation system in flexible production, collecting on-site image information to generate an environment model and running the simulation model, the challenge of rapid testing and seamless connection of new equipment is solved, equipment simulation efficiency and design accuracy are improved, and costs are reduced.
Patent Information
- Application Number
- PCT/CN2023/083164
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-22
- Publication Date
- 2024-09-26
AI Technical Summary
In flexible production, there are challenges in how to quickly and effectively test and seamlessly connect new equipment to complex field environments, especially without disturbing other production units, and the inconsistency between virtual debugging and real environmental conditions increases equipment design time. and cost.
Through a simulation system of the equipment under test, the on-site equipment is used to collect image information to generate a field environment model, and the simulation model of the equipment under test is arranged in the model, the simulation model is run, and displayed in the visual interface to ensure that the simulation model is consistent with the operation model. State synchronization closely connects the real world and the virtual world to achieve environment perception and process simulation.
It improves the simulation efficiency of the equipment under test, reduces the number of design iterations, ensures the synchronization between the simulation model and the field environment, enhances the verification ability of the equipment in real scenarios, and reduces design costs.
Smart Images

Figure CN2023083164_26092024_PF_FP
Abstract
Description
Simulation system, method, field equipment, electronic equipment and medium for device under test Technical Field
[0001] The present invention relates to the field of simulation technology, in particular to a simulation system, method, field equipment, electronic equipment and medium for a device under test. Background Art
[0002] In flexible production, the trend is to increase the efficiency of production units (such as factories) by adding more intelligent automated equipment. Producers need to continuously update and adjust production equipment to adapt to new businesses, new products, new equipment, and new production plans. However, the on-site environment of production units is complex and ever-changing. How to quickly and effectively test new production equipment in the field and how to seamlessly integrate it into the on-site environment without disrupting other production units are all challenges.
[0003] Currently, virtual commissioning technology and hardware-in-the-loop (HIL) testing methods are being used to accelerate the transition of new equipment from design to production. However, virtual simulations may not match real-world operating conditions, increasing the design time and cost of new equipment.
[0004] Summary of the Invention
[0005] The embodiments of the present invention provide a simulation system, method, field equipment, electronic equipment and medium for a device under test.
[0006] In a first aspect, a simulation system for a device under test is provided. The system includes a field device and a simulation device, wherein:
[0007] The on-site equipment is used to collect image information of the on-site environment;
[0008] The simulation device is used to generate a scene environment model based on the image information, arrange a simulation model of the device to be tested in the scene environment model, and run the simulation model;
[0009] The field device is further used to display a real-time picture of the field environment in a visual interface, and to display the simulation model in the real-time picture, wherein the displayed simulation model is synchronized with the simulation model running in the simulation device.
[0010] In a second aspect, a field device for simulating a device under test is provided. The field device includes:
[0011] Environmental acquisition module, used to collect image information of the on-site environment;
[0012] an anchor point processing module, configured to mark an anchor point in the image information, and position a simulation model displayed based on the anchor point in a real-time image of the scene environment, wherein the simulation model is executed in a scene environment model included in a simulation device, and the scene environment model is generated based on the image information;
[0013] The visualization module is used to provide a visualization interface for displaying the real-time picture, wherein the simulation model displayed in the real-time picture keeps the state synchronized with the simulation model running in the simulation device.
[0014] In a third aspect, a simulation method for a device under test is provided. The method includes:
[0015] Collect image information of the on-site environment;
[0016] generating a scene environment model based on the image information;
[0017] Arranging a simulation model of the device to be tested in the field environment model;
[0018] running the simulation model;
[0019] Displaying a real-time picture of the on-site environment in a visual interface;
[0020] The simulation model is displayed in the real-time screen, wherein the displayed simulation model is synchronized with the simulation model running in the simulation device.
[0021] In a fourth aspect, an electronic device is provided. The electronic device includes:
[0022] processor;
[0023] a memory for storing executable instructions of the processor;
[0024] The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the simulation method of the device under test as described in any one of the above items.
[0025] In a fifth aspect, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the above-mentioned simulation method for the device under test is implemented.
[0026] In a sixth aspect, a computer program product is provided, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the above-mentioned method for simulating a device under test.
[0027] It can be seen that in the embodiment of the present invention, a field environment model is generated based on the image information of the field environment, a simulation model of the device to be tested is arranged and run in the field environment model, and the simulation model with synchronized status is displayed in the real-time picture on the field side, thereby making full use of the environmental perception capability and process simulation capability, closely connecting the real world and the virtual world, and verifying the status of the device to be tested in a simulation manner in a real scene environment, thereby improving the simulation efficiency of the device to be tested. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, so that those skilled in the art will understand the above and other features and advantages of the present invention more clearly. In the accompanying drawings:
[0029] FIG1 is a first exemplary structural diagram of a simulation system for a device under test according to an embodiment of the present invention.
[0030] FIG2 is a second exemplary structural diagram of a simulation system for a device under test according to an embodiment of the present invention.
[0031] FIG3 is a module diagram of a simulation system for a device under test according to an embodiment of the present invention.
[0032] FIG4 is a schematic image of a live environment according to an embodiment of the present invention.
[0033] FIG5 is a schematic diagram of arranging a simulation model in a field environment model according to an embodiment of the present invention.
[0034] FIG6 is a schematic diagram of a visualization interface in a field device according to an embodiment of the present invention.
[0035] FIG7 is a schematic diagram of a conflict detection alarm according to an embodiment of the present invention.
[0036] FIG8 is an exemplary flow chart of a simulation method for a device under test according to an embodiment of the present invention.
[0037] FIG. 9 is a structural diagram of an electronic device according to an embodiment of the present invention.
[0038] The accompanying drawings are numerals as follows: DETAILED DESCRIPTION
[0039] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is further described in detail with reference to the following examples.
[0040] For the sake of brevity and intuitiveness in description, the solution of the present invention is explained below by describing several representative implementations. A large number of details in the implementations are only used to help understand the solution of the present invention. However, it is obvious that the technical solution of the present invention may not be limited to these details when implemented. In order to avoid unnecessarily obscuring the solution of the present invention, some implementations are not described in detail, but only a framework is given. Hereinafter, "including" means "including but not limited to", and "according to..." means "at least according to..., but not limited to only according to...". Due to the language habits of Chinese, when the number of a component is not specifically specified below, it means that the component can be one or more, or can be understood as at least one.
[0041] In this embodiment, field devices with environmental awareness and object anchoring capabilities interact with simulation tools for the device under test (DUT). This allows on-site manufacturing engineers and process design engineers to collaborate, seamlessly connecting the real and virtual worlds. Furthermore, by verifying the DUT's state through simulation in a real-world scenario, the number of DUT design iterations can be reduced, improving DUT simulation efficiency.
[0042] FIG1 is a first exemplary structural diagram of a simulation system for a device under test according to an embodiment of the present invention.
[0043] In Figure 1, the simulation system for the device under test (DUT) includes a field device 101 and a simulation device 102. Field device 101 is used to capture image information of the field environment; simulation device 102 is used to generate a field environment model based on the image information, place a simulation model of the DUT within the field environment model, and run the simulation model. Field device 101 is also used to display a real-time image of the field environment in a visualization interface, and to display the simulation model within the real-time image. The displayed simulation model is synchronized with the simulation model running in the simulation device.
[0044] The field environment of field device 101 may be the field environment of a production unit where the device under test will be deployed. A production unit refers to any unit that engages in production and business activities, including industry, mining, commerce, and trade. Specifically, a production unit may be a manufacturing group, a manufacturing plant, a production workshop, or an assembly line, etc.
[0045] The field device 101 collects image information of the field environment (such as point cloud data, video stream or RGBD image, etc.) through its own sensors (such as depth camera, infrared sensor, lidar or inertial sensor, etc.). The field device 101 can be implemented as a mobile terminal, personal digital assistant or personal computer, or other mobile smart device. The field device 101 sends the collected image information of the field environment to the simulation device 102. For example, the field device 101 can send the image information of the field environment to the simulation device 102 via a wired connection or a wireless connection. Optionally, the field device 101 can send the image information of the field environment to the simulation device 102 via a third-party device (such as a server).
[0046] The simulation device 102 generates a scene environment model based on the image information sent by the scene device 101. The scene environment model can be implemented as a three-dimensional point cloud model or a three-dimensional computer-aided design model of the scene environment, etc.
[0047] For example, the image information sent by field device 101 is scan data obtained by capturing the three-dimensional field environment using a two-dimensional laser sensor within field device 101. Simulation device 102 converts the scan data into a three-dimensional laser point cloud matrix in Cartesian coordinate space. It then compresses the three-dimensional laser point cloud matrix using a uniform sampling method to generate three-dimensional laser point cloud data. It then constructs a triangulated mesh from the three-dimensional laser point cloud data to create a field environment model.
[0048] For another example, a field device 101 equipped with a Time of Flight (ToF) camera can be used to collect RDB-D data (i.e., image information) of the field environment. The simulation device 102 then uses a Truncated Signed Distance Function (TSDF) based on the RDB-D data to reconstruct a 3D point cloud model of the field environment.
[0049] The simulation device 102 includes a modeling tool for generating a simulation model of the device under test. For example, the modeling tool can be implemented as a simulation tool for generating a mechanism model of the device under test or an artificial intelligence (AI) tool for generating an artificial intelligence (AI) simulation model of the device under test.
[0050] A mechanistic model of a device under test (DUT), also known as a white-box model of the DUT, is a precise mathematical model describing the DUT, based on the object within the DUT, the internal mechanisms of the production process, or the transfer mechanism of material flow. It can be a mathematical model of the object or process derived from mass balance equations, energy balance equations, momentum balance equations, phase balance equations, certain physical property equations, chemical reaction laws, and so on. Mechanistic model parameters are easily adjustable, making the resulting model highly adaptable.
[0051] Unlike the mechanism modeling method, the artificial intelligence tool generates a simulation model of the device under test in an artificial intelligence manner. For example, the artificial intelligence tool can include various types of neural network models, and obtain the simulation model of the device under test by training the neural network model. For example, the neural network model can be implemented as a feedforward neural network (FFNN) model or a feedback neural network model. Among them, the feedforward neural network model can include: convolutional neural network (CNN) model, fully connected neural network (FCN) model and generative adversarial network (GAN) model, etc. The feedback neural network can include: recurrent neural network (RNN) model, long short-term memory network (LSTM) model, Hopfield network model and Boltzmann machine, etc.
[0052] Preferably, the simulation device 102 further analyzes the on-site environment model to determine the constraints of the on-site environment on the device to be tested. Moreover, the simulation device 102 generates a simulation model of the device to be tested based on the constraints. For example, it is assumed that the device to be tested is a robotic arm. The simulation device 102 analyzes the on-site environment model and finds that the rotation angle of the robotic arm cannot be greater than 90 degrees, otherwise it will conflict with other devices in the on-site environment. Therefore, the constraint condition of the device to be tested is: the rotation angle of the robotic arm cannot be greater than 90 degrees. In the simulation model of the robotic arm established based on the constraint condition, it is limited that the rotation angle of the robotic arm cannot be greater than 90 degrees. It can be seen that the on-site environment model of the embodiment of the present invention can participate in the modeling process of the simulation model of the device to be tested. Therefore, the simulation model of the device to be tested is more adapted to the on-site environment, thereby improving the modeling accuracy of the simulation model of the device to be tested.
[0053] The above exemplary descriptions describe typical methods of generating a simulation model of a device under test and a field environment model. Those skilled in the art will appreciate that such descriptions are merely exemplary and are not intended to limit the scope of protection of the embodiments of the present invention.
[0054] Simulation device 102 calls simulation engine to run simulation model. After simulation model is run, simulation model can generate and output state parameters. Simulation device 102 can send state parameters to field device 101 via wired connection or wireless connection. Alternatively, simulation device 102 can send state parameters to field device 101 via third-party device (such as, server). Field device 101 shows the real-time picture of field environment in its own visual interface, shows simulation model in real-time picture, and wherein the simulation model shown keeps state synchronization with the simulation model running in the simulation device. Field device 101 can obtain the simulation model as display object in simulation device 102. Alternatively, simulation device 102 can send simulation model to third-party device (such as server). Then, field device 101 can obtain simulation model from server.
[0055] The state parameters of the simulation model running in the simulation device 102 are sent to the field device 101, so that the field device 101 displays the simulation model that meets the state parameters in the real-time picture. Optionally, the simulation device 102 can send the state parameters of the simulation model to the field device 101 via a third-party device (e.g., a server). For example, the process design engineer at the simulation device 102 issues a simulation instruction to control the robot arm in the simulation model running in the simulation device 102 to rotate 90 degrees. The robot arm displayed in the real-time picture of the field device 101 should correspondingly rotate 90 degrees synchronously. Therefore, the on-site manufacturing engineer at the field device 101 can determine whether the device under test is working properly by observing whether the robot arm displayed in the real-time picture rotates 90 degrees synchronously. Therefore, through the mutual cooperation of the process design engineer and the on-site manufacturing engineer, the device under test can be virtually tested.
[0056] In one embodiment, the field device 101 displays a simulation model superimposed on a real-time image. For example, the field device 101 can be implemented as a VR device that superimposes a simulation model on a real-time image using virtual reality (VR), an AR device that superimposes a simulation model on a real-time image using augmented reality (AR), or a MR device that superimposes a simulation model on a real-time image using mixed reality (MR). By superimposing virtual simulation content on a real-world environment, field engineers can gain a more intuitive understanding of the process design of the device under test through an impressive immersive experience.
[0057] To achieve a more realistic simulation effect, the relative position of the simulation model displayed in the field device 101 in the real-time image is further kept consistent with the relative position of the simulation model in the simulation device 102 in the field environment model. This position consistency can be achieved by setting a spatial anchor point for position tracking.
[0058] In one embodiment, the field device 101 is used to mark anchor points in the image information; the simulation device 102 is used to position the simulation model in the field environment model based on the anchor points; the field device 101 is used to position the simulation model based on the anchor points in the real-time image. For example, based on the trigger operation of the user on the human-computer interaction interface of the field device 101, the characteristic points of the environment are marked in the image information as anchor points for spatial positioning. The field device 101 can send the image information containing the anchor points to the simulation device 102. For example, the field device 101 can send the image information containing the anchor points to the simulation device 102 via a wired connection or a wireless connection. Optionally, the field device 101 can send the image information containing the anchor points to the simulation device 102 via a third-party device (e.g., a server).
[0059] The simulation device 102 arranges the simulation model in the field environment model based on the anchor point. The specific deployment location of the simulation model in the field environment model may depend on the deployment location of the device under test in the field environment. The simulation device 102 calls a simulation engine to run the simulation model. After the simulation model is run, the simulation model can generate and output state parameters. The simulation device 102 can send the state parameters to the field device 101 via a wired connection or a wireless connection. Alternatively, the simulation device 102 can send the state parameters to the field device 101 via a third-party device (e.g., a server).
[0060] Field device 101 displays a real-time image of the field environment in its own visualization interface, and displays a simulation model positioned based on the anchor point in the real-time image (the positioning position in the real-time image is consistent with the positioning position of the simulation model in simulation device 102). The displayed simulation model maintains state synchronization with the simulation model running in the simulation device. Therefore, the displayed simulation model and the simulation model running in the simulation device can maintain both state synchronization and consistent positioning.
[0061] In actual production, the on-site environment of a production unit may undergo various changes (e.g., adding or removing workstations, adding or removing workpieces, etc.). The real-time image of the on-site environment is often inconsistent with the image information used in the modeling process of the on-site environment model. Therefore, the simulation model running in the simulation device 102 may conflict with the real-time on-site environment of the production unit. This embodiment of the present invention further integrates the operation function of the simulation model into the on-site device 101 to overcome this potential conflict.
[0062] In one embodiment, the simulation device 102 is configured to execute a first function library included in a simulation model to generate a first state parameter; the field device 101 is configured to display the simulation model based on the first state parameter; and the field device 101 is configured to execute a second function library included in the simulation model. When the execution result of the second function library is detected to meet an alarm condition, an alarm message is issued to the simulation device. For example, the first function library may include at least one of the following: power consumption calculation of the device under test; and motion control of the device under test (e.g., speed control, direction control, etc.).
[0063] In one embodiment, the second function library includes a conflict detection function; the field device 101 is configured to send an alarm message to the simulation device 102 when a conflict between the simulation model and the field environment is detected based on the conflict detection function. The field device 101 can send the alarm message to the simulation device 102 via a wired or wireless connection. Alternatively, the field device 101 can send the status parameter to the simulation device 102 via a third-party device (e.g., a server).
[0064] Figure 2 is a second exemplary structural diagram of a simulation system for a device under test according to an embodiment of the present invention. Compared to the simulation system shown in Figure 1 , Figure 2 further includes a server 103 positioned between field device 101 and simulation device 102. Server 103 is used to exchange at least one of the following information between field device 101 and simulation device 102: image information of the field environment; a simulation model; status parameters of the simulation model running in the simulation device; alarm messages, and so on.
[0065] Preferably, the simulation system of the device under test of Figures 1 and 2 can be applied to flexible production to quickly test (such as update and adjust) production equipment (i.e., the device under test) in flexible production, so as to adapt to new businesses, new products, new equipment and new production plans.
[0066] Fig. 3 is a block diagram of a simulation system for a device under test according to an embodiment of the present invention. A server 103 is arranged between a field device 101 and a simulation device 102.
[0067] Field device 101 includes an environment acquisition module 201 for acquiring image information of the field environment; an anchor point processing module 202 for marking anchor points in the image information; and a visualization module 203 for providing a visualization interface. Furthermore, anchor point processing module 202 is configured to position the simulation model based on the anchor points within the real-time image. Furthermore, visualization module 203 is configured to provide a visualization interface that displays the simulation model based on first state parameters generated by the simulation device executing a first function library included in the simulation model.
[0068] The field device 101 also includes: an auxiliary process simulation module 205, which is used to run the second function library contained in the simulation model, wherein when it is detected that the running result of the second function library meets the alarm condition, an alarm message is generated; a human-computer interaction module 204, which is used to send an alarm message to the simulation device 102.
[0069] The simulation device 102 includes an environment modeling module 401, a process simulation design module 402, and a simulation engine 403. The environment modeling module 401 is used to generate a field environment model based on the image information sent by the field device 101. The process simulation design module 402 is used to generate a simulation model of the device under test and arrange the simulation model within the field environment model based on anchor points in the image information. The simulation engine 403 is used to run the simulation model.
[0070] Server 103 includes a database 301 and a communication module 302. Database 301 is used to store image information, simulation models, and field environment models of the field environment. Communication module 302 can transmit image information, simulation models, field environment models, alarm messages, or status data of the simulation model between simulation device 102 and field device 101 for visualization.
[0071] Based on the system architecture shown in Figure 3, the following describes the simulation process of the device under test, thereby achieving remote virtual debugging of the in-loop environment verification. The remote virtual debugging process of the device under test includes:
[0072] (1): On-site environmental data acquisition and 3D point cloud reconstruction
[0073] A field manufacturing engineer 10 in a field environment uses a field device 101 (for example, implemented as a mobile device) with an environment acquisition module 201 to obtain real-world environment data (i.e., image information), and then creates spatial anchors for position tracking in the environment data, and uploads the environment data and the anchors to a server 103, where the anchors can be set by the field manufacturing engineer 10.
[0074] For example, the on-site manufacturing engineer 10 uses an MR device to scan the environment to obtain environmental data, and sets spatial anchors to record specific locations in the real world. During the setting of the spatial anchors: the on-site manufacturing engineer 10 walks around the workplace in the on-site environment to enable the MR device to capture environmental data. Through the human-computer interaction module 204 in the MR device, the on-site manufacturing engineer 10 creates one or more virtual spatial anchors in the current view of the environmental data. The environmental data, anchor point positions, and corresponding environmental feature points are stored in the server 103 for use in later stages. For the detection and description of anchor points, the Binary Robust Invariant Scalable Keypoint Algorithm (BRISK) or the Features of Accelerated Segmented Testing (FAST) algorithm, etc., can be used.
[0075] (2): Environmental modeling and production process design and simulation
[0076] The process design engineer 11 uses the process simulation system in the simulation device 102 to create a simulation model of the DUT. Furthermore, the process design engineer 11 downloads environmental data and anchor points from the server 103 via the simulation device 102. The environmental data is used for three-dimensional modeling of the on-site environment. The process design engineer 11 uses the anchor points as reference points for the placement of the simulation model of the DUT within the on-site environment model. The simulation device 102 uploads the simulation model and the on-site environment model to the server 103 for remote virtual commissioning of the DUT.
[0077] (3): Remote virtual debugging of the loop environment
[0078] On-site manufacturing engineer 10 and process design engineer 11 begin to collaborate to remotely simulate the device under test in real time. The specific steps include:
[0079] (3.1): Establish a connection between the field device 101 and the simulation device 102. The field device 101 connects to the server 103 to download a simulation project, which includes the simulation model and spatial anchor points of the device under test. The simulation device 102 connects to the server 103 and loads the same simulation project.
[0080] (3.2): Use anchor points to map the virtual world spatial data in simulation device 102 to the real world displayed in field device 101. This includes using anchor points as reference coordinates to position the simulation model within the field environment model. By synchronizing the anchor points, the simulation model is mapped to the corresponding spatial location in the real world displayed in field device 101.
[0081] (3.3): Synchronization of simulation objects. Field device 101 can synchronize environmental data to server 103 in real time. The environmental modeling module 401 of simulation device 102 can synchronize environmental data to the environmental model, thereby updating the field environmental model. In addition to environmental data, simulation device 102 can also synchronize state parameters of the device under test (e.g., velocity, acceleration, or rotation angle, etc.) to server 103. Server 103 then transmits these state parameters to field device 101 in real time, enabling visualization of the simulation process.
[0082] It can be seen that the rapid response and verification in remote collaboration significantly improves work efficiency. In addition, the on-site manufacturing engineer 10 and the process design engineer 11 realize remote virtual debugging.
[0083] The following describes the embodiments of the present invention by taking the on-site environment as a workpiece picking production line and the device to be tested as a robotic arm as an example.
[0084] Figure 4 is a schematic image of a live environment according to an embodiment of the present invention. Image 20 includes workpieces 23, 24, and 25 on an operating table in the live environment. The coordinate origin of image 20 is 21. An anchor point 22 is included in image 20.
[0085] FIG5 is a schematic diagram of arranging a simulation model in a field environment model according to an embodiment of the present invention. FIG5 shows a field environment model 30 established based on image 20. It can be seen that the field environment model 30 also includes workpieces 23, 24, and 25. Moreover, the coordinate origin of the field environment model is consistent with the coordinate origin of image 20. With anchor point 22 as a reference point, a simulation model 26 of a robotic arm is arranged in the field environment model 30. After running the first function library of the simulation model 26 (for example, including speed control function, direction control function, grasping function, etc.), the robotic arm can pick up the workpiece on the operating table in the field environment model 30.
[0086] FIG6 is a schematic diagram of a visualization interface in a field device according to an embodiment of the present invention. A real-time image 40 of the field environment includes workpieces 23, 24, and 25 on an operating table in the field environment. The coordinate origin of the real-time image is consistent with the coordinate origin of the image 20. With the anchor point 22 as a reference point, a simulation model 26 whose operating status is consistent with the simulation model arranged in the field environment model is superimposed and displayed in the real-time image 40. The real-time image 40 of the field environment further includes an obstacle 27 that is not included in the field environment model 30. In the field device, a collision detection function contained in the second function library of the simulation model 26 can be loaded and run to prevent the simulation model 26 from colliding with the obstacle 27.
[0087] Figure 7 is a schematic diagram of a collision detection alarm according to an embodiment of the present invention. When a collision is detected between the trajectory of simulation model 26 and obstacle 27, collision area 29 is highlighted and an alarm message is generated. The field device sends the alarm message to the simulation device, prompting the simulation device to update its field environment model.
[0088] FIG8 is an exemplary flow chart of a method for simulating a device under test according to an embodiment of the present invention. As shown in FIG8 , the method includes:
[0089] Step 801: Collect image information of the on-site environment.
[0090] Step 802: Generate a scene environment model based on the image information.
[0091] Step 803: Arrange a simulation model of the device under test in the on-site environment model.
[0092] Step 804: Run the simulation model.
[0093] Step 805: Display the real-time picture of the on-site environment in the visualization interface.
[0094] Step 806: Display the simulation model in the real-time screen, wherein the displayed simulation model is synchronized with the simulation model running in the simulation device.
[0095] In one embodiment, the method includes: running a first function library included in a simulation model to generate a first state parameter; displaying the simulation model based on the first state parameter; running a second function library included in the simulation model, wherein when it is detected that the running result of the second function library meets the alarm condition, an alarm message is sent to the simulation device.
[0096] The embodiment of the present invention further provides an electronic device having a processor-memory architecture for simulating a device under test. FIG9 is a structural diagram of an electronic device according to an embodiment of the present invention.
[0097] As shown in Figure 9, the electronic device 900 includes a processor 901, a memory 902, and a computer program stored in the memory 902 and executable on the processor 901. When the computer program is executed by the processor 901, any of the above simulation methods for the device under test is implemented. Among them, the memory 902 can be specifically implemented as a variety of storage media such as an electrically erasable programmable read-only memory (EEPROM), a flash memory (Flash memory), and a programmable read-only memory (PROM). The processor 901 can be implemented to include one or more central processing units (CPUs) or one or more field programmable gate arrays (FPGAs), wherein the field programmable gate arrays integrate one or more CPU cores. Specifically, the CPU or CPU core can be implemented as a CPU, an MCU, or a DSP, and so on.
[0098] It should be noted that not all steps and modules in the above processes and structure diagrams are required; certain steps or modules may be omitted based on actual needs. The order in which the steps are executed is not fixed and may be adjusted as needed. The division of modules is merely for the purpose of describing the functional divisions employed. In actual implementation, a module may be implemented by multiple modules, and the functions of multiple modules may be implemented by the same module. These modules may be located in the same device or in different devices.
[0099] The hardware modules in each embodiment can be implemented mechanically or electronically. For example, a hardware module may include a specially designed permanent circuit or logic device (such as a dedicated processor, such as an FPGA or ASIC) for performing a specific operation. The hardware module may also include a programmable logic device or circuit (such as a general-purpose processor or other programmable processor) temporarily configured by software to perform a specific operation. As for whether to implement the hardware module mechanically, or using a dedicated permanent circuit, or using a temporarily configured circuit (such as configured by software), it can be decided based on cost and time considerations.
[0100] The above are only preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A simulation system for a device under test, characterized in that: The invention comprises a field device (101) and a simulation device (102), wherein: The field device (101) is used to collect image information of the field environment; The simulation device (102) is used to generate a scene environment model based on the image information, arrange a simulation model of the device to be tested in the scene environment model, and run the simulation model; The field device (101) is further used to display a real-time picture of the field environment in a visual interface, and to display the simulation model in the real-time picture, wherein the displayed simulation model is synchronized with the simulation model running in the simulation device.
2. The system according to claim 1, characterized in that The field device (101) is used to mark an anchor point in the image information; The simulation device (102) is used to locate the simulation model in the scene environment model based on the anchor point; The field device (101) is used for positioning the simulation model based on the anchor point in the real-time picture.
3. The system according to claim 1 or 2, characterized in that: Also includes: A server (103) arranged between the field device (101) and the simulation device (102); The server (103) is used to interact at least one of the following between the field device (101) and the simulation device (102): The image information; the simulation model; the state parameters of the simulation model; the alarm message.
4. The system according to claim 1 or 2, characterized in that: The simulation device (102) is used to run a first function library included in the simulation model to generate a first state parameter; The field device (101) is used to display the simulation model based on the first state parameter; and to run a second function library included in the simulation model, wherein when it is detected that the running result of the second function library meets the alarm condition, an alarm message is sent to the simulation device (102).
5. The system according to claim 4, characterized in that The second function library includes a conflict detection function; The field device (101) is used to send an alarm message to the simulation device (102) when it is detected based on the conflict detection function that the displayed simulation model conflicts with the field environment in the real-time picture.
6. The system according to claim 2, characterized in that The field device (101) comprises: An environment acquisition module (201), used for acquiring image information of the on-site environment; An anchor point processing module (202), used for marking anchor points in the image information, and positioning the simulation model based on the anchor points in the real-time picture; A visualization module (203) is used to provide the visualization interface.
7. The system according to claim 6, characterized in that The visualization module (203) is used to display the simulation model in the visualization interface based on a first state parameter, wherein the first state parameter is generated by the simulation device (102) running a first function library included in the simulation model; The field device (101) comprises: an auxiliary process simulation module (205), configured to run a second function library included in the simulation model, wherein when it is detected that the running result of the second function library meets the alarm condition, an alarm message is generated; A human-computer interaction module (204) is used to send the alarm message to the simulation device (102).
8. A field device for simulating a device under test, characterized in that: include: An environment acquisition module (201), used for acquiring image information of the on-site environment; An anchor point processing module (202), used for marking an anchor point in the image information, positioning a simulation model displayed based on the anchor point in a real-time picture of the scene environment, wherein the simulation model is run in a scene environment model included in a simulation device, and the scene environment model is generated based on the image information; A visualization module (203) is used to provide a visualization interface for displaying the real-time picture, wherein the simulation model displayed in the real-time picture keeps a state synchronized with the simulation model running in the simulation device.
9. The field device according to claim 8, characterized in that The visualization module (203) is used to display the simulation model based on a first state parameter, wherein the first state parameter is generated by the simulation device running a first function library included in the simulation model; The field equipment includes: an auxiliary process simulation module (205), configured to run a second function library included in the simulation model, wherein when it is detected that the running result of the second function library meets the alarm condition, an alarm message is generated; The human-computer interaction module (204) is used to send the alarm message to the simulation device.
10. A simulation method for a device under test, characterized in that: include: Collecting (801) image information of the on-site environment; Generate (802) a scene environment model based on the image information; Arranging (803) a simulation model of the device to be tested in the field environment model; running (804) the simulation model; Displaying (805) a real-time picture of the on-site environment in a visual interface; The simulation model is displayed (806) in the real-time screen, wherein the displayed simulation model is synchronized with the simulation model running in the simulation device.
11. The method according to claim 10, characterized in that include: Running a first function library included in the simulation model to generate a first state parameter; Displaying the simulation model in the real-time picture based on the first state parameter; A second function library included in the simulation model is run, wherein when it is detected that the running result of the second function library meets the alarm condition, an alarm message is sent to the simulation device.
12. An electronic device, characterized in that: include: Processor (901); A memory (902), used for storing executable instructions of the processor (901); The processor (901) is used to read the executable instructions from the memory (902), and execute the executable instructions to implement the simulation method of the device under test according to any one of claims 10-11.
13. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the simulation method of the device under test described in any one of claims 10-11 is implemented.
14. A computer program product, characterized in that The method comprises a computer program, and when the computer program is executed by a processor, the simulation method of the device under test according to any one of claims 10 to 11 is implemented.
Citation Information
Patent Citations
Complex equipment operation in-place simulation system based on augmented reality
CN110047150A
Three-dimensional simulation method and system based on virtual reality
CN111192354A
Simulation system and test method for augmented reality man-machine interface, and medium
CN113268044A
System and method for carrying out and visually displaying simulations in an augmented reality
US20070088526A1
Augmented reality-based machining precision evaluation method and device
WO2022261962A1
Cited By
Simulation method and system for idle-push station-crossing work of shield tunneling machine based on mixed reality technology
CN120562131A
