Physical collision monitoring and feedback method and equipment based on digital twin engine, and storage medium
By using a digital twin engine in the physical collision monitoring and feedback system, real-time collision detection and feedback of physical entities is achieved, the problem of imperfect feedback mechanism in the existing technology is solved, and the accuracy and response speed of collision monitoring and feedback are improved.
Patent Information
- Application Number
- CN202510457588.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-14
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2045-04-14
AI Technical Summary
In the collision monitoring and feedback of physical entities, the feedback mechanism is incomplete and cannot feedback the collision detection results to the control system in real time and accurately, resulting in the control system being unable to respond to collision events in a timely manner.
The physical collision monitoring and feedback method based on the digital twin engine is adopted. By conducting preliminary collision detection of the physical entity to be detected, the preliminary collision object is determined, and the hybrid hierarchical bounding box hierarchy tree in the digital twin model is traversed, layer by layer whether the node intersects with the bounding box of the physical entity to be detected, the collision detection results are synchronized in real time and feedback to the control system.
It improves the immediacy and accuracy of monitoring and feedback of physical collisions, ensures that the state in the virtual environment is consistent with the physical entity, and adjusts the operating status of the physical entity in a timely manner to avoid collisions.
Smart Images

Figure CN120012524A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a physical collision monitoring and feedback method, device and storage medium based on a digital twin engine. Background Art
[0002] At present, in terms of collision monitoring and feedback of physical entities, traditional collision detection systems mainly rely on physical sensors to collect data in real time and combine them with algorithms for collision detection. However, due to the imperfect feedback mechanism of the current collision detection system, it is impossible to accurately feed back the collision detection results to the control system of the physical entity in real time, resulting in the control system being unable to respond to collision events in a timely manner.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of this application is to provide a physical collision monitoring and feedback method, device and computer-readable storage medium based on a digital twin engine, aiming to solve the technical problem of how to improve the immediacy of physical collision monitoring and feedback.
[0005] To achieve the above objectives, the present application proposes a physical collision monitoring and feedback method based on a digital twin engine, and the physical collision monitoring and feedback method based on a digital twin engine includes: Perform preliminary collision detection on the model physical entities in the digital twin model based on the physical entities to be detected, and determine the preliminary collision objects; Traversing the mixed hierarchical bounding box hierarchy tree of the preliminary collision object in the digital twin model, checking layer by layer whether each node intersects with the bounding box of the physical entity to be detected, and determining the leaf nodes of the mixed hierarchical bounding box hierarchy tree where the intersection occurs; For the leaf node that intersects with the bounding box of the physical entity to be detected, the collision detection result is determined by geometric calculation and synchronized to the digital twin model in real time; The collision detection result is fed back to a control system of the physical entity to be detected to adjust the operating state of the physical entity to be detected.
[0006] In one embodiment, the step of performing preliminary collision detection on the model physical entity in the digital twin model based on the physical entity to be detected and determining the preliminary collision object includes: By using three-dimensional modeling tools and physical simulation software, the digital twin model of the physical system where the model physical entity is located is constructed and integrated into the digital twin engine to simulate the overall operating state of the physical system; The operating status data of the physical system is collected in real time, and the collected operating status data is transmitted to the digital twin model to ensure that the data in the digital twin model is synchronized with the operating status data in the physical system.
[0007] In one embodiment, before the step of traversing the mixed hierarchical bounding box hierarchy tree of the preliminary collision object in the digital twin model, checking layer by layer whether each node intersects with the bounding box of the physical entity to be detected, and determining the leaf node of the mixed hierarchical bounding box hierarchy tree where the intersection occurs, the step includes: The hybrid hierarchical bounding box hierarchy tree is constructed according to the geometric characteristics of the physical entities of each model in the digital twin model.
[0008] In one embodiment, the step of constructing the mixed hierarchical bounding box hierarchy tree according to the geometric characteristics of each model physical entity in the digital twin model includes: Constructing the hybrid hierarchical bounding box hierarchy tree using a top-down approach, starting with the bounding box of the digital twin model as the root node of the hybrid hierarchical bounding box hierarchy tree; Recursively divide the root node to form at least one child node, each of which represents a sub-area of the digital twin model; According to the geometric characteristics of each of the physical entities in the sub-region, a corresponding bounding box type is selected to construct a bounding box for the sub-region corresponding to each of the child nodes; If the complexity of the child node reaches a preset complexity threshold, it is determined that the construction of the mixed hierarchical bounding box hierarchy tree is completed.
[0009] In one embodiment, the step of constructing the hybrid hierarchical bounding box hierarchy tree according to the geometric characteristics of each model physical entity in the digital twin model further includes: A bounding box hierarchy tree is constructed using a bottom-up approach, starting from the basic geometric elements of the digital twin model, and a bounding box is constructed for each of the basic geometric elements as a leaf node of the hybrid hierarchical bounding box hierarchy tree; Recursively merge the adjacent leaf nodes into parent nodes, each of which represents a sub-area of the digital twin model; According to the geometric characteristics of each physical entity of the model in the sub-region, a corresponding bounding box type is selected to construct a bounding box for the sub-region corresponding to each parent node; If the leaf nodes are merged into one root node, it is determined that the construction of the mixed hierarchical bounding box hierarchy tree is completed.
[0010] In one embodiment, for the leaf node intersecting with the bounding box of the physical entity to be detected, the step of determining the collision detection result by geometric calculation and synchronizing it to the digital twin model in real time includes: Extracting basic primitives from the intersecting leaf nodes and the physical entity to be detected; Performing an intersection test on the basic graphic elements through an intersection test algorithm to determine whether the basic graphic elements intersect; If the basic graphic elements intersect, the intersection point, intersection depth and intersection normal of the basic graphic elements are determined by geometric calculation as the geometric calculation result; According to the geometric calculation result, it is determined whether a collision occurs, the collision detection result is determined, and the collision detection result is synchronized to the digital twin model in real time.
[0011] In one embodiment, before the step of feeding back the collision detection result to the control system of the physical entity to be detected to adjust the operating state of the physical entity to be detected, the step includes: According to the system characteristics and control requirements, select the corresponding control algorithm and tune the parameters of the control algorithm to obtain the best control effect; Formulate a feedback control strategy based on the collision detection results and the control algorithm, and integrate it into the digital twin engine; Combining the feedback control strategy with the control system of the physical entity to be detected to form a closed-loop control loop; Based on the closed-loop control circuit, if a collision event is detected, the step of feeding back the collision detection result to the control system of the physical entity to be detected to adjust the operating state of the physical entity to be detected is performed.
[0012] In one embodiment, the step of feeding back the collision detection result to a control system of the physical entity to be detected to adjust the operating state of the physical entity to be detected includes: Determining collision event information and collision result information as collision related information according to the collision detection result; Comparing and analyzing the collision-related information with the data in the digital twin model; generating feedback content based on the results of the comparative analysis; The feedback content is fed back to the control system of the physical entity to be detected to adjust the operating state of the physical entity to be detected.
[0013] In addition, to achieve the above-mentioned objectives, the present application also proposes a physical collision monitoring and feedback device based on a digital twin engine, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the physical collision monitoring and feedback method based on the digital twin engine as described above.
[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the physical collision monitoring and feedback method based on the digital twin engine as described above are implemented.
[0015] The present application provides a physical collision monitoring and feedback method based on a digital twin engine. The present application performs preliminary collision detection on the model physical entity in the digital twin model based on the physical entity to be detected, and determines the preliminary collision object; based on the preliminary collision object, traverses the mixed hierarchical bounding box hierarchy tree of the preliminary collision object in the digital twin model, checks each node layer by layer whether it intersects with the bounding box of the physical entity to be detected, and determines the leaf node of the mixed hierarchical bounding box hierarchy tree where the intersection occurs; for the leaf node that intersects with the bounding box of the physical entity to be detected, the collision detection result is determined by geometric calculation, and synchronized to the digital twin model in real time; the collision detection result is fed back to the control system of the physical entity to be detected to adjust the running state of the physical entity to be detected. The present application screens out the physical entities that may collide through preliminary collision detection, avoids detailed detection of all physical entities, and improves the efficiency of collision detection. By constructing a mixed hierarchical bounding box hierarchy tree, the complex physical entity model is simplified into a series of bounding boxes, so that collision detection can be carried out step by step at different levels, thereby improving the detection speed while ensuring accuracy. Once a collision is detected, the specific location and situation of the collision are determined through geometric calculations and synchronized to the digital twin model in real time, ensuring that the state in the virtual environment is consistent with the physical entity for further decision-making, and the collision detection results are fed back to the control system of the physical entity in a timely manner to adjust the operating state of the physical entity according to the collision situation. This application achieves the technical effect of improving the accuracy of monitoring and feedback of physical collisions. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] Figure 1 A flow chart of the first embodiment of the physical collision monitoring and feedback method based on the digital twin engine of the present application; Figure 2 A flow chart of the second embodiment of the physical collision monitoring and feedback method based on the digital twin engine of the present application; Figure 3 A flow chart of the third embodiment of the physical collision monitoring and feedback method based on the digital twin engine of the present application; Figure 4 A flow chart of a fourth embodiment of a physical collision monitoring and feedback method based on a digital twin engine of the present application; Figure 5 The overall process diagram provided for the physical collision monitoring and feedback method based on the digital twin engine of this application; Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the physical collision monitoring and feedback method based on the digital twin engine in the embodiment of the present application.
[0019] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0020] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0021] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0022] The main solutions of the embodiments of this application are: At present, in terms of collision monitoring and feedback of physical entities, traditional collision detection systems mainly rely on physical sensors to collect data in real time and combine them with algorithms for collision detection. However, due to the imperfect feedback mechanism of the current collision detection system, it is impossible to accurately feed back the collision detection results to the control system of the physical entity in real time, resulting in the control system being unable to respond to collision events in a timely manner.
[0023] This application uses preliminary collision detection to screen out physical entities that may collide, avoiding detailed detection of all physical entities and improving the efficiency of collision detection. By constructing a mixed hierarchical bounding box hierarchy tree, the complex physical entity model is simplified into a series of bounding boxes, so that collision detection can be carried out step by step at different levels, thereby improving the detection speed while ensuring accuracy. Once a collision is detected, the specific location and situation of the collision are determined through geometric calculations and synchronized to the digital twin model in real time, ensuring that the state in the virtual environment is consistent with the physical entity for further decision-making, and the collision detection results are promptly fed back to the control system of the physical entity to adjust the operating state of the physical entity according to the collision situation.
[0024] It should be noted that the execution subject of this embodiment can be a physical collision monitoring and feedback system based on a digital twin engine, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a control device of a physical collision monitoring and feedback system based on a digital twin engine that can realize the above functions, etc. This embodiment does not specifically limit this. The following takes the physical collision monitoring and feedback system based on a digital twin engine as an example of the execution subject to illustrate this embodiment and the following embodiments.
[0025] Embodiment 1 Based on this, this application proposes a physical collision monitoring and feedback method based on a digital twin engine in the first embodiment, please refer to Figure 1 , the physical collision monitoring and feedback method based on the digital twin engine includes: Step S10: Perform preliminary collision detection on the model physical entity in the digital twin model based on the physical entity to be detected to determine the preliminary collision object.
[0026] Using digital twin technology, the behavior of the physical entity to be detected in the virtual environment is simulated, and through preliminary collision detection, objects that may collide with the physical entity to be detected are quickly screened out, reducing the computational burden of subsequent fine detection and improving the efficiency of overall collision detection.
[0027] In this embodiment, the physical entity to be detected is an object that actually exists in the physical world and whose collision risk is to be monitored in the digital twin model, including drones, robots, etc. The model physical entity in the digital twin model is an object in the actual physical world, which is represented by the digital twin model in the virtual environment. Preliminary collision detection is a process of using a collider to quickly determine which physical entities may collide with each other. It is based on simple geometric shapes and boundary conditions, does not involve complex physical calculations, has low computational cost, but relatively low accuracy.
[0028] Optionally, the triggering conditions for performing preliminary collision detection include but are not limited to the following: The preliminary collision detection is triggered periodically according to the preset time interval.
[0029] According to the position relationship trigger, when the physical entity to be detected enters the preset area of the digital twin model, the preliminary collision detection is triggered; or, when the relative distance between the physical entity to be detected and the model physical entity in the digital twin model is less than the distance threshold, the preliminary collision detection is triggered.
[0030] The preliminary collision detection is triggered by user interface operation or input command.
[0031] As an optional implementation, a collision detector is configured for the model physical entity in the digital twin model, the motion trajectory of the physical entity to be detected is simulated through the digital twin model, the collision detector is used to perform preliminary collision detection on the physical entity to be detected and other physical entities in the digital twin model, and the colliding object pairs are recorded as preliminary collision physical entities.
[0032] It should be noted that the collision detector is a component used to detect collisions in the virtual reality engine. It defines the collision boundaries of objects and is used to quickly detect potential collisions between objects. Collider types include cube colliders, sphere colliders, capsule colliders, etc. The virtual reality engine is used to create and manage objects and interactions in the virtual environment. It contains a built-in physics engine that can simulate movement and collisions in the physical world, including Unity3D, Unreal Engine, etc.
[0033] Optionally, configure a collider for the model physics entity in the virtual reality engine, set the shape and size of the collider to match the actual shape and boundary of the model physics entity, ensure that the collider is correctly associated with the model physics entity, and can respond to collision events.
[0034] Step S20, traverse the mixed hierarchical bounding box hierarchy tree of the preliminary collision object in the digital twin model, check layer by layer whether each node intersects with the bounding box of the physical entity to be detected, and determine the leaf nodes of the mixed hierarchical bounding box hierarchy tree where the intersection occurs.
[0035] On the basis of preliminary collision detection, the accuracy and efficiency of collision detection are further improved. Through the step-by-step detection of the hierarchical tree structure, areas where collision is unlikely to occur can be quickly excluded, and resources can be concentrated for more refined collision detection, thereby reducing computing costs and improving the real-time performance and accuracy of the system.
[0036] In this embodiment, the preliminary collision object is a model physical entity that may collide with the physical entity to be detected, which is quickly screened out by the built-in collider of the virtual reality engine in the preliminary collision detection. The hybrid hierarchical bounding box hierarchical tree is a hierarchical tree structure that combines multiple bounding box types for efficient collision detection. Each node of the hierarchical tree contains a bounding box, and the hierarchical tree can be constructed by recursive partitioning or merging. The root node is the top-level node of the hierarchical tree, which contains the bounding box of the entire digital twin model. The collision detection of the root node can quickly exclude a large range of non-collision areas. The leaf node is the bottom-level node of the hierarchical tree, which contains the bounding box of the smallest unit of the digital twin model. The collision detection of the leaf node can perform more refined collision detection. Intersection is when two bounding boxes overlap or touch in space, which means that the physical entities they represent may have collided. Step-by-step detection is a process starting from the root node and gradually detecting each node downward to determine whether the nodes intersect.
[0037] As an optional implementation, construct the bounding box of the physical entity to be detected, and obtain the mixed-level bounding box hierarchy tree corresponding to the preliminary collision object. Starting from the root node, traverse each node of the hierarchy tree to determine whether the root node of the mixed-level bounding box hierarchy tree intersects with the bounding box of the physical entity to be detected. If the root node does not intersect, the preliminary collision object cannot collide and can be directly excluded. If the root node intersects, recursively detect its child nodes. For each child node, determine whether it intersects with the bounding box of the physical entity to be detected. If a child node does not intersect, its child node does not need to be detected. For the intersecting leaf nodes, further more refined collision detection is performed.
[0038] As an optional implementation method for obtaining a mixed hierarchical bounding box hierarchy tree, a corresponding mixed hierarchical bounding box hierarchy tree is constructed based on the preliminary collision object, starting with the bounding box of the entire model as the root node of the hierarchy tree, and dividing the root node into multiple child nodes, each child node representing a sub-area of the model. According to the geometric characteristics of the object, the bounding box type is selected to construct a bounding box for each child node, and when the complexity of the child node is lower than the complexity threshold, the recursive division is stopped. The adjacent leaf nodes are merged into a parent node, and a bounding box is constructed for the parent node based on the geometric characteristics of the object. A complete hierarchical tree structure is constructed through recursive division and merging.
[0039] As another optional implementation of obtaining the mixed-level bounding box hierarchy tree, the corresponding constructed mixed-level bounding box hierarchy tree is directly obtained according to the preliminary collision object.
[0040] Step S30: For the leaf node that intersects with the bounding box of the physical entity to be detected, the collision detection result is determined through geometric calculation and synchronized to the digital twin model in real time.
[0041] For leaf nodes that intersect with the bounding box of the physical entity to be detected, precise geometric calculations are performed to determine the specific collision information. This information is synchronized to the digital twin model in real time to ensure that the virtual model is consistent with the state of the physical entity, thereby improving the response speed of the system.
[0042] In this embodiment, geometric calculation is to calculate the specific intersection between two geometric shapes by mathematical methods to determine whether a collision occurs and the specific information of the collision, including the collision position, collision force, collision normal, etc. The collision detection result is obtained through geometric calculation on whether a collision occurs between physical entities and the specific circumstances of the collision, which may include detailed information such as collision time, collision position, collision object, collision depth, collision normal, collision speed, collision force, etc. The digital twin model is an accurate representation of a physical entity in a virtual space, including geometric shapes, physical properties, dynamic parameters, etc., which are used to simulate the behavior and state of physical entities. Real-time synchronization refers to updating the collision detection results to the digital twin model immediately to ensure that the state between the model and the physical entity remains consistent.
[0043] As an optional implementation, when traversing the mixed hierarchical bounding box hierarchy tree, a more sophisticated geometric calculation is performed when a leaf node intersecting with the bounding box of the physical entity to be detected is found. Basic primitives are extracted from the intersecting leaf nodes, and intersection detection of the basic primitives is performed to determine the specific intersection between the basic primitives. Based on the result of the geometric calculation, it is determined whether a collision occurs, and the collision detection result is output.
[0044] As an optional implementation of the intersection test, triangular faces are extracted from the intersecting leaf nodes, and the triangular faces of the physical entity to be detected are extracted, and the intersection detection of the two triangular faces is performed. If the two intersect, the intersection point, intersection depth, intersection normal and other information are calculated to further determine the collision position, collision force, collision normal and other information of the collision detection result.
[0045] As an optional implementation of intersection detection of two triangular facets, for two triangular facets, the cross product of the normal and the edge is selected as the separation axis, and the vertices of the two triangular facets are projected onto each separation axis. If the projections do not overlap on a certain separation axis, the two triangular facets do not intersect; if the projections overlap on all separation axes, the two triangular facets intersect.
[0046] As another optional implementation of the intersection detection of two triangular facets, for two triangular facets, their Minkowski sum is calculated, and it is determined whether the Minkowski sum contains the origin. If the origin is contained, the two triangular facets intersect.
[0047] As an optional implementation of the intersection test, extract the triangles from the intersecting leaf nodes, extract the HOLE bounding volume of the physical entity to be detected, and obtain the polygonal boundary of the HOLE bounding volume. Determine whether each edge of the triangle intersects with each edge of the polygon, and determine whether each vertex of the triangle is inside the polygon. If any edge of the triangle intersects with the edge of the polygon, or any vertex of the triangle is inside the polygon, the triangle intersects with the HOLE bounding volume. If the two intersect, calculate the intersection point, intersection depth, intersection normal and other information to further determine the collision position, collision force, collision normal and other information of the collision detection result.
[0048] Optionally, step S30 includes: Step S31, extracting basic primitives from the intersecting leaf nodes and the physical entity to be detected.
[0049] It should be noted that the leaf node is the bottom node of the hierarchical tree, which contains the bounding box of the smallest unit of the model. The basic primitive is the smallest unit that constitutes the geometric shape of the physical entity, including triangles, line segments, points, etc.
[0050] Exemplarily, triangular facets are extracted from the intersecting leaf nodes, and the HOLE bounding volume of the physical entity to be detected is extracted.
[0051] Step S32: performing an intersection test on the basic graphic elements through an intersection test algorithm to determine whether the basic graphic elements intersect.
[0052] It should be noted that the intersection test algorithm is an algorithm used to determine whether two geometric shapes intersect, including the separating axis theorem, Minkowski sum, geometric projection method, etc.
[0053] As an optional implementation, for two basic primitives, the cross product of the normal and the edge is selected as the separating axis, and the vertices of the two basic primitives are projected onto each separating axis. If the projections on one of the separating axes do not overlap, the two basic primitives do not intersect; if the projections on all the separating axes overlap, the two basic primitives intersect.
[0054] As another optional implementation, for two basic primitives, their Minkowski sum is calculated to determine whether the Minkowski sum contains the origin. If the origin is contained, the two basic primitives intersect.
[0055] As another optional implementation, for two basic primitives, multiple projection axes including the cross product of normals and edges are selected, and the vertices of the geometric shapes of the two basic primitives are projected onto each projection axis. If the projections of the geometric shapes on one of the projection axes do not overlap, the two basic primitives do not intersect; if the projections of the geometric shapes on all projection axes overlap, the two basic primitives intersect.
[0056] Step S33: If the basic graphic elements intersect, the intersection point, intersection depth and intersection normal of the basic graphic elements are determined through geometric calculation as the geometric calculation result.
[0057] It should be noted that geometric calculation is to calculate the specific intersection between two geometric shapes through mathematical methods, including intersection points, intersection depth and intersection normal. The intersection point is the intersection or contact point between two primitives when they intersect, which is used to determine the location of the collision. The intersection depth is the degree of penetration or overlap of two intersecting primitives at the intersection point, which is used to calculate the strength and depth of the collision. The intersection normal is the vector perpendicular to the intersection plane at the intersection point, which is used to determine the direction and angle of the collision.
[0058] Exemplarily, the coordinates of the intersection point are calculated by a mathematical method of linear interpolation, the intersection depth is calculated using a vector projection method, and the intersection normal is calculated using a vector cross product method.
[0059] Step S34: determine whether a collision occurs based on the geometric calculation result, determine the collision detection result, and synchronize the collision detection result to the digital twin model in real time.
[0060] For example, based on the geometric calculation results, it is determined whether two basic primitives collide. If the intersection point, intersection depth, and intersection normal are all valid, a collision is considered to have occurred. The collision detection results are generated and synchronized to the digital twin model in real time to ensure that the virtual model is consistent with the physical entity.
[0061] Optionally, generating collision detection results includes: using the system's time function to obtain the current time as the collision time; determining the specific location where the collision occurred based on the coordinates of the intersection point determined in the geometric calculation as the collision location; recording the identifications of the objects involved in the collision as the collision objects; determining the collision depth based on the calculated depth of intersection of the two objects; determining the collision normal based on the calculated intersection normal; obtaining the speed from the physical components of the object as the collision speed; and calculating the collision force based on the mass and speed of the collision objects.
[0062] Step S40 , feeding back the collision detection result to the control system of the physical entity to be detected, so as to adjust the operating state of the physical entity to be detected.
[0063] Through real-time collision detection and feedback, the control system can timely adjust the operating status of the physical entity to be detected to ensure that the physical entity to be detected can safely and effectively avoid collision during operation, thereby preventing potential damage, injury or accidents.
[0064] In this embodiment, the physical entity to be detected refers to an object that exists in the real world and has a physical form and mobility, including robots, autonomous vehicles, robotic arms, drones, etc. The control system is a system responsible for monitoring and controlling the behavior of the physical entity to be detected, including sensors, actuators, and controllers, and adjusts the movement and state of the physical entity to be detected according to preset logic or algorithms. The operating state is the current state of the physical entity to be detected, including position, speed, acceleration, force, etc.
[0065] As an optional implementation, after the collision detection algorithm is triggered, the interface of the control system is directly called to transmit the collision detection result.
[0066] As another optional implementation, the collision detection result is converted into a data packet and sent to a server of the control system through a network.
[0067] Optionally, after receiving the data packet, the server of the control system parses the data and calls corresponding control logic.
[0068] Furthermore, the operating state of the physical entity to be detected is adjusted according to the collision detection result through the control system of the physical entity to be detected.
[0069] Optionally, through the control system of the physical entity to be detected, the speed of the object is adjusted according to the collision force; the direction of the object is adjusted according to the collision normal; and a reverse force is applied at the collision point according to the collision force.
[0070] Exemplarily, through the control system of the physical entity to be detected, the speed of the object is reduced according to the collision force, and a vector proportional to the collision force is subtracted from the speed vector of the object; the speed vector of the object is reflected according to the collision normal, the reflection vector of the speed vector on the collision normal is calculated, and the speed of the object is set to the reflection vector; a force opposite to the collision force is applied at the collision point, and a reverse force is applied at the collision point using the force application function of the physics engine.
[0071] Optionally, step S40 includes: Step S41, determining collision event information and collision result information as collision related information according to the collision detection result.
[0072] The purpose of collecting relevant information about collision events is to fully understand the details of the collision, including the time, location, objects involved, depth, normal direction, speed and force of the collision, so as to evaluate the impact of the collision on the state of the physical entity, which will help with subsequent decision-making and control adjustments.
[0073] In this embodiment, the collision detection result is the result output by the collision detection algorithm, including whether a collision occurs and relevant information about the collision. A collision event is an event in which a collision occurs between two or more physical entities. The collision event information includes the time of the collision, the position in the physical space, the physical properties of the collision parties such as mass, velocity, acceleration, and the severity of the collision. The collision result information is the state change of the physical entity after the collision, such as the degree of damage, the change in motion state, etc.
[0074] Exemplarily, based on the collision detection results, relevant information of the collision event in the collision detection results is collected, including the specific time of the collision obtained using the system's time function; the specific location of the collision obtained through the intersection point; the identification of the objects involved in the collision; the depth of the collision obtained based on the depth of the intersection, and then the severity of the collision; the normal direction of the collision point obtained through vector calculation; the speed of the object at the time of collision obtained from the physical component; the force of the collision calculated based on the mass and speed of the object, etc.
[0075] Step S42: Compare and analyze the collision-related information with the data in the digital twin model.
[0076] Compare and analyze the collected collision information with the data in the digital twin model, evaluate the impact of the collision on the state of the physical entity, and determine whether the collision will cause damage to the physical entity, performance degradation or other adverse effects, thereby providing a basis for subsequent control adjustments.
[0077] It should be noted that comparative analysis is to compare the actual collision information with the expected data in the model to analyze the differences.
[0078] As an optional implementation, relevant data such as expected position, speed, force, etc. are extracted from the digital twin model, the collected collision information is compared with the data in the model, and the impact of the collision on the state of the physical entity is evaluated based on the comparison results.
[0079] Exemplarily, the actual collision information is compared with the data in the digital twin model, including comparing the actual collision position with the expected position in the digital twin model to evaluate the position deviation; comparing the actual collision speed with the expected speed in the digital twin model to evaluate the speed change; comparing the actual collision force with the expected force in the digital twin model to evaluate the force difference; comparing the actual collision depth with the expected depth in the digital twin model to evaluate the depth difference; comparing the actual collision normal with the expected normal in the digital twin model to evaluate the direction change.
[0080] Exemplarily, the specific impact of the collision on the state of the physical entity is evaluated, including: if the collision force exceeds a force threshold or the collision depth exceeds a depth threshold, it indicates that the surface or internal structure of the physical entity is damaged; if the collision causes a significant slowdown in speed or an increase in position deviation, the performance of the physical entity is degraded; based on the collision position and normal direction, the safety impact of the collision on the operator or the surrounding environment is evaluated.
[0081] Step S43: generating feedback content based on the result of the comparative analysis.
[0082] In this embodiment, the feedback content is specific information generated based on the comparative analysis results, including collision event information, collision result information, warnings and optimization suggestions, etc. The collision event information includes the time of the collision, the position in the physical space, the physical properties of the collision parties such as mass, speed, acceleration, and the severity of the collision, etc. The collision result information is the state change of the physical entity after the collision, including the degree of damage, the change of motion state, etc., and the impact of the state change on the overall performance or safety of the system. Warnings and optimization suggestions are warning information provided to users or systems based on the collision monitoring results, as well as suggestions such as optimizing the physical entity design, operation strategy or maintenance plan, so as to reduce the occurrence of future collision events or reduce their impact.
[0083] Exemplarily, based on the evaluation result, a control instruction for adjusting the speed, direction or force is generated, and the control instruction is formatted into an instruction executable by the control system of the physical entity to be detected.
[0084] Step S44: feeding back the feedback content to the control system of the physical entity to be detected to adjust the operating state of the physical entity to be detected.
[0085] In this embodiment, the control system of the physical entity to be detected is a system for controlling the behavior of the physical entity to be detected, including a sensor, an actuator, and a controller.
[0086] As an optional implementation, the interface of the control system is directly called to transmit the control instruction.
[0087] As another optional implementation, the feedback content is converted into a data packet and sent to a server of the control system through a network.
[0088] This embodiment provides a physical collision monitoring and feedback method based on a digital twin engine. This embodiment first screens out physical entities that may collide through preliminary collision detection, avoiding detailed detection of all physical entities and improving the efficiency of collision detection. By constructing a mixed hierarchical bounding box hierarchy tree, the complex physical entity model is simplified into a series of bounding boxes, so that collision detection can be performed step by step at different levels, thereby improving the detection speed while ensuring accuracy. Once a collision is detected, the specific location and situation of the collision are determined through geometric calculations and synchronized to the digital twin model in real time, ensuring that the state in the virtual environment is consistent with the physical entity for further decision-making, and the collision detection results are promptly fed back to the control system of the physical entity to adjust the operating state of the physical entity according to the collision situation.
[0089] Based on Example 1, Example 2 of the present application proposes a physical collision monitoring and feedback method based on a digital twin engine, referring to Figure 2 , before step S10, including: Step S50, constructing the digital twin model of the physical system where the model physical entity is located through three-dimensional modeling tools and physical simulation software, and integrating it into the digital twin engine to simulate the overall operating status of the physical system.
[0090] The digital twin model of the physical system is used to simulate the overall operating state of the physical system, including the movement, force, position change, etc. of the model's physical entities, so as to analyze the physical system in a virtual environment and improve the performance of the system.
[0091] It should be noted that 3D modeling tools are software tools used to create 3D models, including AutoCAD, SolidWorks, Blender, etc., which can accurately represent the geometry and structure of physical entities. Physical simulation software is software used to simulate the behavior of physical systems, including ANSYS, ABAQUS, ADAMS, etc., which can simulate the mechanical, thermal, fluid dynamics and other characteristics of physical entities. The digital twin model is an accurate representation of the physical entity in the virtual space, including geometric shape, physical properties, dynamic parameters, etc., which is used to simulate the behavior and state of the physical entity. The digital twin engine is a platform for managing and running digital twin models, including model integration, simulation, analysis and other functions. The digital twin engine includes a digital twin model, a real-time data acquisition system, a collision monitoring algorithm and a feedback control strategy.
[0092] As an optional implementation, select a 3D modeling tool and physical simulation software according to the complexity and requirements of the physical system. Use the 3D modeling tool to create a 3D model of the physical entity based on the geometric shape, structural details, etc. of the physical entity. Set the physical properties and dynamic parameters for the model in the physical simulation software. Import the created 3D model and the set physical properties and dynamic parameters into the digital twin engine.
[0093] Optionally, the model is integrated and configured in the digital twin engine to ensure that the interfaces and data formats between the sub-models are consistent, so as to achieve interaction and association between the sub-models in the digital twin engine.
[0094] Step S60, collecting the operating status data of the physical system in real time, and transmitting the collected operating status data to the digital twin model to ensure that the data in the digital twin model is synchronized with the operating status data in the physical system.
[0095] The operating status data of the physical system is collected in real time and transmitted to the digital twin model to maintain the consistency between the virtual model and the actual physical system status. The digital twin model can reflect the operating status of the physical system in real time, provide accurate data support for system monitoring, analysis and control, and improve the response speed of the system.
[0096] It should be noted that the operating status data is the data that describes the operating status of the physical system, including position, speed, acceleration, force, temperature, etc. Data synchronization is to update the operating status data of the actual physical system to the digital twin model in real time to ensure that the model is consistent with the actual system status.
[0097] Optionally, sensors are selected according to the characteristics and requirements of the physical system, including position sensors, force sensors, acceleration sensors, temperature sensors, etc. Sensors are deployed at key locations of the physical system to comprehensively collect the system's operating status data. Key locations include the connection points of mechanical parts, force points, and various key points on the motion trajectory.
[0098] As an optional implementation, a data acquisition device is used to collect sensor data in real time and preprocess the collected data. Data transmission protocols such as TCP / IP, UDP, and Modbus are used to transmit the collected operating status data to the digital twin model through the data interface. The operating status data is updated synchronously in real time in the digital twin model to ensure that the model is consistent with the actual physical system state.
[0099] This embodiment provides a physical collision monitoring and feedback method based on a digital twin engine. This embodiment first reflects the state of the physical system in real time through a digital twin model, which helps to find faults and problems in a timely manner, so as to take corresponding measures for optimization. Through the simulation analysis of the digital twin model, the possible future collision of the physical system can be predicted. Based on the prediction results, the operation strategy of the physical system can be optimized to improve the efficiency and performance of the system.
[0100] Based on Example 1, Example 3 of the present application proposes a physical collision monitoring and feedback method based on a digital twin engine, referring to Figure 3 , before step S20, including: Step S70, constructing the hybrid hierarchical bounding box hierarchy tree according to the geometric characteristics of the physical entities of each model in the digital twin model.
[0101] By decomposing the geometric characteristics of the model's physical entities into bounding boxes at different levels, the possible intersecting areas can be quickly screened out during the collision detection process, reducing unnecessary calculations, thereby improving the real-time performance and accuracy of the system.
[0102] In this embodiment, the digital twin model is an accurate representation of the physical entity in the virtual space, including geometric shape, physical properties, dynamic parameters, etc., which is used to simulate the behavior and state of the physical entity. Geometric properties are the geometric shape and structural characteristics of the model physical entity, including size, shape, surface features, etc. The hybrid hierarchical bounding box hierarchical tree is a hierarchical tree structure that combines multiple bounding box types for efficient collision detection. Each node of the hierarchical tree contains a bounding box, and the hierarchical tree can be constructed by recursive partitioning or merging to improve the efficiency of collision detection.
[0103] As an optional implementation, the geometric data of the model's physical entity is extracted from the digital twin model, and the appropriate bounding box type is selected according to the geometric characteristics of the model's physical entity, and a hybrid hierarchical bounding box hierarchy tree is constructed using a top-down method or a bottom-up method.
[0104] In this embodiment, the bounding box types include AABB (axis-aligned bounding box), OBB (directional bounding box), and k-DOPs (k-discrete directional bounding box). The axis-aligned bounding box is a rectangular box aligned with the coordinate axis, which is simple to calculate but not tight enough. The directional bounding box is a rectangular box that can be in any direction, which is tighter but complex to calculate. The k-discrete directional bounding box is a bounding box defined by projections in multiple directions, which can strike a balance between tightness and computational cost.
[0105] Optionally, step S70 includes: Step A10, constructing the hybrid hierarchical bounding box hierarchy tree using a top-down approach, starting with the bounding box of the digital twin model as the root node of the hybrid hierarchical bounding box hierarchy tree.
[0106] Exemplarily, since the axis-aligned bounding box has low computational cost and is suitable for fast screening of large-scale collisions, the axis-aligned bounding box is used as the root node.
[0107] Step A20, recursively divide the root node to form at least one child node, each of which represents a sub-area of the digital twin model.
[0108] It should be noted that a child node is a node formed by recursively dividing the root node, and the child node can be further divided into smaller child nodes. The child nodes form a clear hierarchical structure in the hierarchical tree. The root node is at the top of the tree, while the leaf nodes are at the bottom of the tree. Each node is connected to its child nodes through a pointer, forming a top-down tree structure.
[0109] Exemplarily, the middle layer may use k-discrete directional bounding boxes, and the bottom layer may use directional bounding boxes.
[0110] Step A30: According to the geometric characteristics of each physical entity of the model in the sub-region, a corresponding bounding box type is selected to construct a bounding box for the sub-region corresponding to each child node.
[0111] In this embodiment, for different sub-regions corresponding to different nodes, a suitable bounding box is constructed for each sub-region through a hybrid hierarchical bounding box algorithm, and a corresponding bounding box type is selected according to the geometric characteristics of the physical entity of the model in each sub-region.
[0112] Step A40: If the complexity of the child node reaches a preset complexity threshold, it is determined that the construction of the mixed hierarchical bounding box hierarchy tree is completed.
[0113] It should be noted that the preset complexity threshold is a complexity standard pre-set according to system performance requirements and collision detection accuracy requirements, and is the complexity of the virtual model corresponding to the physical entity of the model in the entire digital twin model.
[0114] Optionally, the number of geometric elements contained in the child node and the complexity of the geometric shape are calculated to determine the complexity of the child node.
[0115] Optionally, step S70 further includes: Step B10, constructing a bounding box hierarchy tree using a bottom-up approach, starting from the basic geometric elements of the digital twin model, and constructing a bounding box for each of the basic geometric elements as a leaf node of the hybrid hierarchical bounding box hierarchy tree.
[0116] For example, all basic geometric elements are extracted from the digital twin model, and a bounding box is constructed for each basic geometric element. For a point, a tiny bounding box centered on the point can be constructed; for an edge, a slender bounding box containing the entire edge can be constructed; for a triangular patch, a planar bounding box containing the entire patch can be constructed. The bounding box of each basic geometric element is used as a leaf node of the hybrid hierarchical bounding box hierarchy tree. The leaf node is the starting point for the construction of the hierarchical tree, and the subsequent hierarchical structure will be integrated based on these leaf nodes.
[0117] Step B20, recursively merge the adjacent leaf nodes into parent nodes, each of which represents a sub-area of the digital twin model.
[0118] Exemplarily, according to the spatial position and shape characteristics of the geometric elements, a merging strategy for adjacent leaf nodes is determined, and leaf nodes with similar spatial positions and shapes are merged into one parent node.
[0119] Step B30: According to the geometric characteristics of each physical entity of the model in the sub-region, a corresponding bounding box type is selected to construct a bounding box for the sub-region corresponding to each parent node.
[0120] Exemplarily, the geometric properties of the physical entity are analyzed, and for a regular-shaped object, an axis-aligned bounding box is selected; for an irregular-shaped object, a directional bounding box or a k-discrete directional bounding box is selected. Using the selected bounding box type, a bounding box is constructed for the parent node.
[0121] Step B40: If the leaf nodes are merged into one root node, it is determined that the construction of the mixed hierarchical bounding box hierarchy tree is completed.
[0122] Exemplarily, during the construction of the hierarchical tree, the merging status of all leaf nodes is continuously checked, and when all leaf nodes are merged into one root node, it is confirmed that the construction of the hierarchical tree is completed.
[0123] Optionally, the constructed hierarchical tree is optimized, including adjusting the node division method, optimizing the calculation of the bounding box, etc., to improve the performance and efficiency of the hierarchical tree.
[0124] This embodiment provides a physical collision monitoring and feedback method based on a digital twin engine. This embodiment decomposes the geometric characteristics of the physical entity into bounding boxes of different levels and constructs a mixed hierarchical bounding box hierarchy tree. The hierarchy tree can efficiently handle collision detection problems, simplify the collision detection process, and improve the efficiency and accuracy of collision detection.
[0125] Based on Example 1, Example 4 of the present application proposes a physical collision monitoring and feedback method based on a digital twin engine, referring to Figure 4 , before step S40, including: Step S80, selecting a corresponding control algorithm according to the characteristics of the physical entity to be detected and the control requirements, and optimizing the parameters of the control algorithm to obtain the best control effect.
[0126] Select appropriate control algorithms and perform parameter tuning to ensure that the system can respond quickly and accurately based on the collision detection results, thereby effectively adjusting the operating state of the physical entity, avoiding or mitigating the impact of collisions, and improving the safety and stability of the system.
[0127] It should be noted that the characteristics of the physical entity to be detected are the inherent properties and behavioral characteristics of the physical entity to be detected, including inertia, damping, nonlinearity, etc. The control algorithm is an algorithm used to control the behavior of the physical entity to be detected, including PID (proportional-integral-derivative control), sliding mode control, fuzzy control, etc.
[0128] As an optional implementation, through PID control parameter tuning, the control law of PID control parameters is "u(t)=Kp[e(t)+1 / Ti∫e(t)dt+Td*de(t) / dt]", where Kp is the proportional coefficient, Ti is the integral time constant, and Td is the differential time constant. By gradually increasing the proportional coefficient value, observing the system response to find a suitable balance point; gradually reducing the integral time constant value, observing the system response to find a suitable balance point; by gradually increasing the differential time constant value, observing the system response to find a suitable balance point. Among them, the proportional coefficient is used to adjust the response speed of the deviation. The larger the proportional coefficient, the faster the system responds, but too large a proportional coefficient will cause system oscillation. The integral time constant is used to eliminate the static error of the system. The smaller the integral time constant, the stronger the integral effect, but too small an integral time constant will cause the system to overshoot. The differential time constant is used to predict the change trend of the deviation in advance and perform advance control. The larger the differential time constant, the faster the system responds to the deviation change, but too large a differential time constant will cause system instability.
[0129] Exemplarily, according to the system response curve, first set a smaller Kp value, gradually increase it until the system oscillates, and then slightly reduce the Kp value to allow the system to reach a stable state; after the proportional coefficient is determined, gradually reduce the Ti value and observe the system response until a suitable balance point is found; after the proportional and integral coefficients are determined, gradually increase the Td value and observe the system response until the system is neither too sensitive nor too slow.
[0130] Optionally, for a linear, time-invariant controlled object, the Ziegler-Nichols method is used to determine the parameters of the PID controller by analyzing the step response of the controlled object.
[0131] Optionally, for nonlinear, time-varying controlled objects, the Cohen-Coon method based on the process response curve is used to tune the PID parameters.
[0132] Optionally, for PID parameter optimization of complex systems, a genetic algorithm is used to search for the optimal solution of the PID parameters by simulating the biological evolution process.
[0133] As another optional implementation, the sliding mode is designed by tuning the PID control parameters to meet the arrival conditions, existence conditions and stability conditions; the control gain is adjusted according to the system characteristics and control requirements to obtain the best control effect; and the jitter phenomenon in the sliding mode control is reduced by using methods such as filter design and inverter linearization.
[0134] Step S90: formulate a feedback control strategy based on the collision detection result and the control algorithm, and integrate it into the digital twin engine.
[0135] Develop a feedback control strategy and integrate it into the digital twin engine, implement the control logic of the physical entity to be detected in the digital twin engine, and ensure that when a collision event is detected, the corresponding control instructions can be quickly generated according to the control algorithm and collision detection results to adjust the operating status of the physical entity.
[0136] It should be noted that the feedback control strategy is a control logic and rules formulated based on the collision detection results to adjust the operating state of the system.
[0137] As an optional implementation method, a specific feedback control strategy is formulated based on the collision detection results and control algorithm. If a collision event is detected, a corresponding speed adjustment, direction adjustment or force application control strategy is formulated according to the strength and direction of the collision. The feedback control strategy is integrated into the digital twin engine and combined with the digital twin model.
[0138] Optionally, the parameters and trigger conditions of the control strategy are configured in the digital twin engine to ensure that the control strategy can be automatically executed based on the real-time data and collision detection results.
[0139] Step S100: combining the feedback control strategy with the control system of the physical entity to be detected to form a closed-loop control circuit.
[0140] It should be noted that the closed-loop control loop is a control system that combines a feedback control strategy with the control system of the physical entity to be detected, and can automatically adjust the control instructions according to feedback information to form a closed control cycle.
[0141] Exemplarily, the feedback control strategy in the digital twin engine is connected to the control system of the physical entity to be detected through a data interface, and the parameters and trigger conditions of the control loop are configured in the control system of the physical entity to be detected to ensure that the control strategy can be based on real-time data and collision detection results.
[0142] Step S110 , based on the closed-loop control circuit, if a collision event is detected, the step of feeding back the collision detection result to the control system of the physical entity to be detected to adjust the operating state of the physical entity to be detected is executed.
[0143] Exemplarily, the operating status of the physical entity to be detected is monitored in real time in the digital twin model. When a collision event is detected, the feedback mechanism is immediately triggered, and the collision detection result is fed back to the control system of the physical entity to be detected through a closed-loop control loop. According to the feedback collision detection result and the preset feedback control strategy, the operating status of the physical entity to be detected is automatically adjusted.
[0144] Optionally, the operating status and control effect of the physical entity to be detected are continuously monitored, and the control strategy is optimized and adjusted according to the actual operating conditions to improve the response speed and stability of the system.
[0145] This embodiment provides a physical collision monitoring and feedback method based on a digital twin engine. This embodiment first maximizes the performance of the control system through parameter tuning, which helps to reduce the response time of the system and improve the stability and accuracy of the system. By combining the collision detection results with the control algorithm, the control strategy is adjusted in real time to deal with potential or existing collision events. The real-time feedback mechanism of the closed-loop control loop can significantly improve the response speed and accuracy of the control system. By feeding back the collision detection results to the control system of the physical entity to be detected, the operating state of the physical entity to be detected can be quickly adjusted to avoid or reduce the damage caused by the collision.
[0146] For example, in order to help understand the implementation process of the physical collision monitoring and feedback method based on the digital twin engine obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 5 , Figure 5 A schematic diagram of the overall process of a physical collision monitoring and feedback method based on a digital twin engine is provided, specifically: Utilize the Mesh component of virtual reality engines such as Unity3D to obtain the geometric information of all physical entities. Based on the obtained geometric information, build digital twin models of all physical entities in the digital twin engine. Ensure that the model physical entities in the digital twin model are highly consistent with the physical entities in terms of geometric dimensions, physical properties, etc., providing a basis for collision monitoring.
[0147] Furthermore, according to the shape and characteristics of the physical entity of the model, the appropriate bounding box type is selected, such as axis-aligned bounding box AABB, directional bounding box OBB, discrete directional bounding box k-DOPs, etc. A top-down or bottom-up method is used to build a hybrid hierarchical bounding box hierarchy tree to ensure that each node can accurately represent the geometric characteristics of the physical entity of the model. The top-down method starts from the full set and recursively divides to form child nodes; the bottom-up method starts from the basic geometric elements and recursively merges to form parent nodes. During the construction process, different types of bounding boxes are reasonably matched according to the geometric characteristics of the object and the requirements of collision detection.
[0148] Furthermore, a preliminary collision detection is performed on the physical entity to be detected through the collider of the virtual reality engine, and the model physical entities that may collide with it are quickly screened, and the physical entity to be detected and the model physical entity that collides with it are regarded as collision entities.
[0149] Perform more accurate collision detection on the collision entities identified in the preliminary detection, traverse the mixed hierarchical bounding box hierarchy tree, determine whether the root node and leaf node intersect with the bounding box of the physical entity to be detected, and perform step-by-step detection. If they do not intersect, the two collision entities have not collided; otherwise, enter the accurate detection stage.
[0150] Perform intersection detection of basic graphics elements on the leaf nodes where intersection occurs, determine the collision detection results through geometric calculations, output the collision detection results, and synchronize them to the digital twin model in real time.
[0151] Optionally, after each detection, if it is determined that the collision entities have not collided, a model separation step is performed to prepare for the next collision detection.
[0152] Furthermore, after the collision result is output, a feedback control strategy is formulated according to the collision detection result and the control algorithm, and the feedback control strategy is combined with the control system of the physical entity to be detected to form a closed-loop control loop. Through the closed-loop control loop, if a collision event is detected, the collision detection result is fed back to the control system of the physical entity to be detected to adjust the operating state of the physical entity to be detected.
[0153] In summary, the physical collision monitoring and feedback method based on the digital twin engine can realize real-time monitoring and accurate judgment of the collision state of the physical entity to be detected, and output the collision detection results to formulate and execute feedback control strategies, thereby improving the stability of the system.
[0154] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the physical collision monitoring and feedback method based on the digital twin engine of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0155] The present application provides a physical collision monitoring and feedback device based on a digital twin engine, and the physical collision monitoring and feedback device based on the digital twin engine includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the physical collision monitoring and feedback method based on the digital twin engine in the above-mentioned embodiment one.
[0156] Reference below Figure 6 , which shows a schematic diagram of the structure of a physical collision monitoring and feedback device based on a digital twin engine suitable for implementing an embodiment of the present application. The physical collision monitoring and feedback device based on a digital twin engine in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The physical collision monitoring and feedback device based on the digital twin engine shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0157] like Figure 6As shown, the physical collision monitoring and feedback device based on the digital twin engine may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM, Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM, Random Access Memory) 1004. In the random access memory 1004, various programs and data required for the operation of the physical collision monitoring and feedback device based on the digital twin engine are also stored. The processing device 1001, the read-only memory 1002 and the random access memory 1004 are connected to each other through a bus 1005. The input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the physical collision monitoring and feedback device based on the digital twin engine to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a physical collision monitoring and feedback device based on the digital twin engine with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0158] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0159] The physical collision monitoring and feedback device based on the digital twin engine provided by the present application adopts the physical collision monitoring and feedback method based on the digital twin engine in the above-mentioned embodiment, which can solve the technical problem of how to improve the accuracy of physical collision monitoring and feedback. Compared with the prior art, the beneficial effects of the physical collision monitoring and feedback device based on the digital twin engine provided by the present application are the same as the beneficial effects of the physical collision monitoring and feedback method based on the digital twin engine provided by the above-mentioned embodiment, and the other technical features of the physical collision monitoring and feedback device based on the digital twin engine are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0160] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0161] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0162] The present application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the physical collision monitoring and feedback method based on the digital twin engine in the above-mentioned embodiment.
[0163] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM, Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM, CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, radio frequencies (RF, Radio Frequency), etc., or any suitable combination of the above.
[0164] The above-mentioned computer-readable storage medium may be included in the physical collision monitoring and feedback device based on the digital twin engine; or it may exist independently without being assembled into the physical collision monitoring and feedback device based on the digital twin engine.
[0165] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the physical collision monitoring and feedback device based on the digital twin engine, the physical collision monitoring and feedback device based on the digital twin engine can be written in one or more programming languages or a combination thereof to perform computer program codes for the operation of the present application. The programming languages include object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0166] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0167] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0168] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned physical collision monitoring and feedback method based on the digital twin engine, and can solve the technical problem of how to improve the accuracy of physical collision monitoring and feedback. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the physical collision monitoring and feedback method based on the digital twin engine provided in the above-mentioned embodiment, and will not be repeated here.
[0169] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A physical collision monitoring and feedback method based on a digital twin engine, characterized in that: The physical collision monitoring and feedback method based on the digital twin engine includes: Perform preliminary collision detection on the model physical entities in the digital twin model based on the physical entities to be detected, and determine the preliminary collision objects; Traversing the mixed hierarchical bounding box hierarchy tree of the preliminary collision object in the digital twin model, checking layer by layer whether each node intersects with the bounding box of the physical entity to be detected, and determining the leaf nodes of the mixed hierarchical bounding box hierarchy tree where the intersection occurs; For the leaf node that intersects with the bounding box of the physical entity to be detected, the collision detection result is determined by geometric calculation and synchronized to the digital twin model in real time; The collision detection result is fed back to a control system of the physical entity to be detected to adjust the operating state of the physical entity to be detected.
2. The physical collision monitoring and feedback method based on the digital twin engine according to claim 1, characterized in that: The step of performing preliminary collision detection on the model physical entity in the digital twin model based on the physical entity to be detected and determining the preliminary collision object includes: By using three-dimensional modeling tools and physical simulation software, the digital twin model of the physical system where the model physical entity is located is constructed and integrated into the digital twin engine to simulate the overall operating state of the physical system; The operating status data of the physical system is collected in real time, and the collected operating status data is transmitted to the digital twin model to ensure that the data in the digital twin model is synchronized with the operating status data in the physical system.
3. The physical collision monitoring and feedback method based on the digital twin engine according to claim 1, characterized in that: Before the step of traversing the mixed hierarchical bounding box hierarchy tree of the preliminary collision object in the digital twin model, checking layer by layer whether each node intersects with the bounding box of the physical entity to be detected, and determining the leaf node of the mixed hierarchical bounding box hierarchy tree where the intersection occurs, the step includes: The hybrid hierarchical bounding box hierarchy tree is constructed according to the geometric characteristics of the physical entities of each model in the digital twin model.
4. The physical collision monitoring and feedback method based on the digital twin engine according to claim 3, characterized in that: The step of constructing the mixed hierarchical bounding box hierarchy tree according to the geometric characteristics of each model physical entity in the digital twin model includes: Constructing the hybrid hierarchical bounding box hierarchy tree using a top-down approach, starting with the bounding box of the digital twin model as the root node of the hybrid hierarchical bounding box hierarchy tree; Recursively divide the root node to form at least one child node, each of which represents a sub-area of the digital twin model; According to the geometric characteristics of each physical entity of the model in the sub-region, selecting a corresponding bounding box type to construct a bounding box for the sub-region corresponding to each child node; If the complexity of the child node reaches a preset complexity threshold, it is determined that the construction of the mixed hierarchical bounding box hierarchy tree is completed.
5. The physical collision monitoring and feedback method based on the digital twin engine according to claim 3, characterized in that: The step of constructing the mixed hierarchical bounding box hierarchy tree according to the geometric characteristics of each model physical entity in the digital twin model also includes: A bounding box hierarchy tree is constructed using a bottom-up approach, starting from the basic geometric elements of the digital twin model, and a bounding box is constructed for each of the basic geometric elements as a leaf node of the hybrid hierarchical bounding box hierarchy tree; Recursively merge the adjacent leaf nodes into parent nodes, each of which represents a sub-area of the digital twin model; According to the geometric characteristics of each physical entity of the model in the sub-region, a corresponding bounding box type is selected to construct a bounding box for the sub-region corresponding to each parent node; If the leaf nodes are merged into one root node, it is determined that the construction of the mixed hierarchical bounding box hierarchy tree is completed.
6. The physical collision monitoring and feedback method based on the digital twin engine according to claim 1, characterized in that: The step of determining the collision detection result by geometric calculation for the leaf node intersecting with the bounding box of the physical entity to be detected, and synchronizing it to the digital twin model in real time includes: Extracting basic primitives from the intersecting leaf nodes and the physical entity to be detected; Performing an intersection test on the basic graphic elements through an intersection test algorithm to determine whether the basic graphic elements intersect; If the basic graphic elements intersect, the intersection point, intersection depth and intersection normal of the basic graphic elements are determined by geometric calculation as the geometric calculation result; According to the geometric calculation result, it is determined whether a collision occurs, the collision detection result is determined, and the collision detection result is synchronized to the digital twin model in real time.
7. The physical collision monitoring and feedback method based on the digital twin engine according to claim 1, characterized in that: Before the step of feeding back the collision detection result to the control system of the physical entity to be detected to adjust the operating state of the physical entity to be detected, the method includes: According to the characteristics of the physical entity to be detected and the control requirements, a corresponding control algorithm is selected, and the parameters of the control algorithm are tuned to obtain the best control effect; Formulate a feedback control strategy based on the collision detection results and the control algorithm, and integrate it into the digital twin engine; Combining the feedback control strategy with the control system of the physical entity to be detected to form a closed-loop control loop; Based on the closed-loop control circuit, if a collision event is detected, the step of feeding back the collision detection result to the control system of the physical entity to be detected to adjust the operating state of the physical entity to be detected is performed.
8. The physical collision monitoring and feedback method based on the digital twin engine according to claim 1, characterized in that: The step of feeding back the collision detection result to the control system of the physical entity to be detected to adjust the operating state of the physical entity to be detected includes: Determining collision event information and collision result information as collision related information according to the collision detection result; Comparing and analyzing the collision-related information with the data in the digital twin model; generating feedback content based on the results of the comparative analysis; The feedback content is fed back to the control system of the physical entity to be detected to adjust the operating state of the physical entity to be detected.
9. A physical collision monitoring and feedback device based on a digital twin engine, characterized in that: The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the physical collision monitoring and feedback method based on a digital twin engine as described in any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the physical collision monitoring and feedback method based on a digital twin engine as described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Multi-axis numerical control machine tool safety production prediction and early warning method based on digital twinning
CN117252901A
Cited By
Machine tool collision early warning method and system based on data analysis
CN120572391A
Human-computer interaction method, device and equipment based on aircraft unstructured grid and storage medium
CN120973241A