CN116049995B - Special mechanism collision prediction method based on virtual prototype in interstage separation test - Google Patents
Special mechanism collision prediction method based on virtual prototype in interstage separation test Download PDFInfo
- Publication number
- CN116049995B CN116049995B CN202310245488.3A CN202310245488A CN116049995B CN 116049995 B CN116049995 B CN 116049995B CN 202310245488 A CN202310245488 A CN 202310245488A CN 116049995 B CN116049995 B CN 116049995B
- Authority
- CN
- China
- Prior art keywords
- triangular
- detected
- model
- virtual prototype
- collision
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000007246 mechanism Effects 0.000 title claims abstract description 140
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000001612 separation test Methods 0.000 title claims abstract description 35
- 230000033001 locomotion Effects 0.000 claims abstract description 53
- 238000005516 engineering process Methods 0.000 claims abstract description 9
- 239000007921 spray Substances 0.000 claims description 32
- 230000001133 acceleration Effects 0.000 claims description 12
- 238000013507 mapping Methods 0.000 claims description 7
- BSYNRYMUTXBXSQ-UHFFFAOYSA-N Aspirin Chemical compound CC(=O)OC1=CC=CC=C1C(O)=O BSYNRYMUTXBXSQ-UHFFFAOYSA-N 0.000 claims description 6
- 241000405070 Percophidae Species 0.000 claims description 6
- 238000006243 chemical reaction Methods 0.000 claims description 6
- 230000011218 segmentation Effects 0.000 claims description 6
- 238000012360 testing method Methods 0.000 abstract description 16
- 238000000926 separation method Methods 0.000 abstract description 10
- 238000004364 calculation method Methods 0.000 abstract description 8
- 230000008569 process Effects 0.000 abstract description 6
- 238000004891 communication Methods 0.000 abstract description 3
- 238000001514 detection method Methods 0.000 description 8
- 230000004075 alteration Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007123 defense Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/15—Vehicle, aircraft or watercraft design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/20—Finite element generation, e.g. wire-frame surface description, tesselation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/003—Navigation within 3D models or images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
- G06T7/85—Stereo camera calibration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2210/00—Indexing scheme for image generation or computer graphics
- G06T2210/21—Collision detection, intersection
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T90/00—Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computer Graphics (AREA)
- Evolutionary Computation (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- Computational Mathematics (AREA)
- Aviation & Aerospace Engineering (AREA)
- Automation & Control Theory (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention belongs to the field of aerospace and discloses a special mechanism collision prediction method based on a virtual prototype in an interstage separation test. The special mechanism collision prediction method establishes a three-dimensional digital model of a test section, a mechanism and a separator, and is used for predicting collision prediction in the test process; a virtual machine system which is independent of a control system and better in graphic calculation is established, the virtual machine system communicates through a high-speed communication protocol, and PLC resources can be occupied less when collision prediction is carried out; the real-time display is carried out through the OpenGL or DirectX technology of the computer, so that a user can monitor the whole motion process in real time and even manually intervene in collision prediction; when the triangular patch primitives are intersected and calculated, only triangular patches with the triangular patch speed direction being the same as the normal direction of the triangular patches are detected, so that the efficiency is improved. The collision prediction method of the special mechanism can be used for carrying out real-time collision prediction with high precision, and the safety of interstage separation is improved.
Description
Technical Field
The invention belongs to the field of aerospace, and particularly relates to a special mechanism collision prediction method based on a virtual prototype in an interstage separation test.
Background
The aircraft has complex aerodynamic phenomenon in the process of separating the multiple bodies, and the stress among the multiple bodies is very complex, so that the multiple bodies generate complex flight tracks, and if the separated gesture positions are unreasonable, the multiple bodies are easily separated and then meet to generate serious separation accidents. In order to obtain a reliable separation track, the separation track of the multi-body of each separation stage of the aircraft needs to be simulated more truly through a wind tunnel test so as to guide the structure of the aircraft and design a separation strategy.
The virtual prototype technology is a simulation method which utilizes a high-precision three-dimensional model established based on a physical model and establishes a mapping relation corresponding to the position of a driving joint of an actual mechanism. The virtual prototype technology has the characteristics of real-time and system bidirectional interaction and real-time feedback, and is widely applied to the aerospace, national defense industry and other fields.
In performing the interstage separation test, the trajectory of the interstage separation mechanism is calculated in real time by the system based on real-time aerodynamic data, and the trajectory of the interstage separation is not known until the test is performed. The space in the test section of the wind tunnel is narrow, and the mechanism and various devices of the test section of the wind tunnel have collision risks. The collision prediction which is mature at present often adopts a bounding box form, and the method has low precision on an aircraft model with a complex appearance. In view of the fact that sub-millimeter-scale spacing is possible between interstage separations, conventional bounding box collision prediction methods are not applicable.
Currently, development of a special mechanism collision prediction method based on a virtual prototype in an interstage separation test is urgently needed
Disclosure of Invention
The invention aims to provide a special mechanism collision prediction method based on a virtual prototype in an interstage separation test, which overcomes the defects of the prior art.
The invention discloses a special mechanism collision prediction method based on a virtual prototype in an interstage separation test, which comprises the following steps of:
s10, establishing a virtual prototype three-dimensional model according to a mechanism to be detected;
the virtual prototype three-dimensional model comprises a mechanism model to be detected and a spray pipe model; the mechanism model to be detected comprises a yaw mechanism model, a pitch mechanism model and a roll mechanism model;
s20, setting each driving joint in the mechanism model to be detected as a position input variable;
s30, acquiring a position input variable, and establishing a mapping relation between a mechanism model to be detected and the positions of all driving joints in the mechanism to be detected;
s40, calibrating the three-dimensional model of the virtual prototype according to a calibration standard, namely calibrating the virtual machine system;
s50, carrying out an interstage separation test on the mechanism to be detected, and synchronizing the motions of the mechanism to be detected and the virtual prototype three-dimensional model in real time;
s60, carrying out frame segmentation on the motion of the mechanism to be detected and the virtual prototype three-dimensional model, and predicting the pose and the speed of the nth frame of the virtual prototype three-dimensional model according to the motion position, the speed and the acceleration of the current frame of the virtual prototype three-dimensional model;
s70, predicting collision conditions of a mechanism model to be detected and a spray pipe model in an nth frame in the future by using a primitive intersection method;
s80, returning the collision condition of the nth frame in the future to a motion control system of the mechanism to be detected, and making a motion decision of the mechanism to be detected.
Further, the mechanism model to be detected and the spray pipe model are wrapped by triangular patches.
Further, the calibration standard of the three-dimensional model of the virtual prototype is as follows: the initial pose of the mechanism to be detected and the initial pose of the virtual prototype three-dimensional model are completely consistent, and the relative pose of each driving joint of the mechanism to be detected and the virtual prototype three-dimensional model are completely consistent.
Further, the standard for performing frame segmentation on the motion of the mechanism to be detected and the virtual prototype three-dimensional model is as follows: the three-dimensional model of the virtual prototype predicts the pose and the speed of the nth frame of the three-dimensional model of the virtual prototype according to the motion position, the speed and the acceleration of the current frame, and the time required for obtaining the pose and the speed of the nth frame of the three-dimensional model of the virtual prototype is less than the time for one frame of motion of a mechanism to be detected.
Further, the motion acceleration of the virtual prototype three-dimensional model is set to be a constant value.
Further, the virtual prototype three-dimensional model is displayed through an open graphics library OpenGL or DirectX based technology.
Further, the motion decision includes: if collision is predicted, gradually reducing the speed of the mechanism to zero; if no collision is predicted, the mechanism continues to move according to the planned track.
Further, the step of predicting the collision condition of the mechanism model to be detected and the spray pipe model in the nth frame in the future by using the primitive intersection method includes:
s71, recording two triangular patches to be detected asT 1 AndT 2 the method comprises the steps of carrying out a first treatment on the surface of the Which is a kind ofMiddle triangular surface patchT 1 Belongs to a mechanism model to be detected, triangular surface patchT 2 Belongs to a spray pipe model;
triangular face plateT 1 Is defined by three vertexes、/>、The method comprises the steps of carrying out a first treatment on the surface of the Triangular face plateT 2 Is +.>、/>、; wherein ,/>Is vertex->Coordinates of (c); />Is vertex->Coordinates of (c);is vertex->Coordinates of (c); />Is vertex->Coordinates of (c); />Is vertex->Coordinates of (c); />Is vertex->Coordinates of (c);
s72, calculating parametersParameter->Parameters and parametersThe method comprises the following steps: />
S73, judging parametersParameter->Parameters and parametersWhether the same number is not 0, if so, the triangular surface patchT 1 And triangular dough pieceT 2 No intersection occurs in the n-th frame in the future, otherwise, step S74 is entered;
s74, judging parametersParameter->Parameters and parametersIf the numbers are the same and are 0, the step S75 is carried out, otherwise, the step S76 is carried out;
s75, triangular dough pieceT 1 And triangular dough pieceT 2 The vertex coordinates of (2) are converted into two-dimensional coordinates to obtain、、/>、/>、/>、/>;
By triangular patchesT 1 Any one of the edges of (a)Establish the linear parameter equation ax+by+c=0 and fit the triangular patchesT 1 And triangular dough pieceT 2 Substituting the two-dimensional vertex coordinates of the two-dimensional vertex into a linear parameter equation to obtain:
if the parameters areParameter->Parameters are the same as the number and are the same as the parameters->Different numbers, triangular dough pieceT 1 And triangular dough pieceT 2 No intersection occurs in the future nth frame, otherwise, the triangular patchT 1 And triangular dough pieceT 2 Crossing in the future nth frame;
s76, in the triangular dough sheetT 1 On which a coordinate system O is established 1 X 1 Y 1 And putting triangular dough sheetT 1 And triangular dough pieceT 2 Conversion of vertex coordinates to coordinate System O 1 X 1 Y 1 In (a) and (b); judging straight lineStraight line->Straight line->With O 1 X 1 Y 1 Intersection point P of planes 1 Intersection point P 2 Intersection point P 3 In (c) whether there is a triangle>Inside and at triangle->Intersection on one side, if yes, triangular surface patchT 1 And triangular dough pieceT 2 Crossing in the future nth frame, otherwise, proceeding to step S77; />
S77, in triangular dough pieceT 2 On which a coordinate system O is established 2 X 2 Y 2 And putting triangular dough sheetT 1 And triangular dough pieceT 2 Conversion of vertex coordinates to coordinate System O 2 X 2 Y 2 In (a) and (b); judging straight lineStraight line->Straight line->With O 2 X 2 Y 2 Intersection point P of planes 4 Intersection point P 5 Intersection point P 6 In (c) whether there is a triangle>Inside and at triangle->Intersection on one side, if yes, triangular surface patchT 1 And triangular dough pieceT 2 Intersecting in the future nth frame, if not, then triangular patchesT 1 And triangular dough pieceT 2 No intersection occurs in the future nth frame;
s78, updating the triangular dough piece to be detectedT 1 And triangular dough pieceT 2 And returning to the step 1) until determining whether each triangular patch to be detected in the mechanism model to be detected and all triangular patches to be detected of the spray pipe model intersect in the future nth frame, and further judging whether the mechanism model to be detected and the spray pipe model collide in the future nth frame.
Further, the collision prediction includes: if a certain triangular patch to be detected exists in the mechanism model to be detected and the nozzle model, the mechanism model to be detected and the nozzle model collide in the future nth frame;
if all triangular patches in the mechanism model to be detected and the spray pipe model are not intersected in the future nth frame, the mechanism model to be detected and the spray pipe model are not collided in the future nth frame.
Further, the triangular patches to be detected comprise triangular patches with the same speed direction as the normal direction.
The special mechanism collision prediction method based on the virtual prototype in the interstage separation test has the following characteristics: establishing a high-precision three-dimensional model in the virtual machine according to requirements, and wrapping by using triangular patches; establishing a mapping relation between each driving joint position in the virtual prototype and each driving joint position of the actual mechanism; calibrating a virtual machine system; an interstage separation test was performed. Cutting the mechanism motion into a plurality of frame motions in 1 second by taking a frame as a unit, and synchronizing each frame motion of the actual model and the virtual prototype model in real time; in the virtual prototype, according to the motion position and the speed of the previous frame, predicting acceleration data to obtain pose and speed data of the next frame; obtaining the pose condition of the predicted frame according to the intersecting calculation of the graphic elements, and obtaining the collision condition of a mechanism and a model under the predicted frame; and the virtual prototype returns collision information of the predicted frame to the motion control system to carry out motion decision.
In short, the special mechanism collision prediction method based on the virtual prototype in the interstage separation test establishes a high-precision three-dimensional digital model of the whole test section, mechanism and separator, and is used for predicting the collision prediction in the test process; a virtual machine system which is independent of a control system and better in graphic calculation is established, the virtual machine system communicates through a high-speed communication protocol, and PLC resources can be occupied less when collision prediction is carried out; the method is characterized in that the method is displayed in real time through a computer OpenGL or DirectX technology, so that a user can monitor the whole motion process in real time and even perform human intervention collision prediction; when the triangular patch primitives are intersected and calculated, only triangular patches with the triangular patch speed direction being the same as the normal direction of the triangular patches are detected, so that the collision prediction accuracy is ensured, and meanwhile, the efficiency is improved. The special mechanism collision prediction method based on the virtual prototype in the interstage separation test can perform real-time collision prediction with high precision, and improves the safety of the whole interstage separation.
Drawings
FIG. 1 is a flow chart of a collision prediction method for a virtual prototype-based agency collision prediction in an interstage separation test of the present invention;
FIG. 2a is a physical model used in the virtual prototype-based method for predicting the collision of a special mechanism in the interstage separation test of the invention;
FIG. 2b is a schematic view of a three-dimensional digital model built in a virtual prototype of the virtual prototype-based method for predicting a collision of a special mechanism in an interstage separation test of the present invention;
FIG. 3a is a schematic view of the normal direction and the movement direction (first movement direction) of a triangle established by the virtual prototype-based mechanism collision prediction method in the interstage separation test of the present invention;
FIG. 3b is a schematic view of the normal direction and the movement direction (second movement direction) of a triangle established by the virtual prototype-based mechanism collision prediction method in the interstage separation test of the present invention;
FIG. 3c is a schematic view of the normal direction and the movement direction (third movement direction) of a triangle established by the virtual prototype-based mechanism collision prediction method in the interstage separation test of the present invention;
fig. 4 is a schematic diagram of the intersection calculation of the triangle on the opposite sides in the collision prediction method of the special mechanism based on the virtual prototype in the interstage separation test of the invention.
In the figure, 1. A spray pipe in a wind tunnel test; 2. a physical model in a wind tunnel test; 3. an actuator; 4. a mechanism model to be detected; 5. and (5) a spray pipe model.
Description of the embodiments
The present invention is further described below with reference to examples, but it should not be construed that the scope of the above subject matter of the present invention is limited to the following examples. Various substitutions and alterations are made according to the ordinary skill and familiar means of the art without departing from the technical spirit of the invention, and all such substitutions and alterations are intended to be included in the scope of the invention.
Example 1
As shown in fig. 1, the method for predicting the collision of the special mechanism based on the virtual prototype in the interstage separation test of the embodiment comprises the following steps:
s10, establishing a virtual prototype three-dimensional model according to a mechanism to be detected; the virtual prototype three-dimensional model comprises a mechanism model 4 to be detected and a spray pipe model 5; the mechanism model 4 to be detected comprises a yaw mechanism model, a pitch mechanism model and a roll mechanism model;
the mechanism model 4 to be detected and the spray pipe model 5 are wrapped by triangular patches.
The virtual prototype three-dimensional model is displayed through an open graphics library OpenGL or DirectX based technology.
S20, setting each driving joint in the mechanism model 4 to be detected as a position input variable;
s30, acquiring a position input variable, and establishing a mapping relation between a mechanism to be detected model 4 and the positions of all driving joints in the mechanism to be detected;
s40, calibrating the three-dimensional model of the virtual prototype, namely calibrating a virtual machine system;
the standard for completing the calibration of the three-dimensional model of the virtual prototype comprises the following steps: the initial pose of the mechanism to be detected is completely consistent with that of the virtual prototype three-dimensional model, and the relative pose of each driving joint of the mechanism to be detected is completely consistent with that of the virtual prototype three-dimensional model;
s50, carrying out an interstage separation test on the mechanism to be detected, and synchronizing the motions of the mechanism to be detected and the virtual prototype three-dimensional model in real time;
s60, carrying out frame segmentation on the motion of the mechanism to be detected and the virtual prototype three-dimensional model, and predicting the pose and the speed of the nth frame of the virtual prototype three-dimensional model in the future through C++ software according to the motion position, the speed and the acceleration of the current frame of the virtual prototype three-dimensional model; the C++ software stores a program for predicting the pose and the speed in advance;
the frame segmentation criteria for the motion of the mechanism to be detected and the virtual prototype three-dimensional model include: the three-dimensional model of the virtual prototype predicts that the time required for obtaining the pose and the speed of the future nth frame of the three-dimensional model of the virtual prototype is less than the time required for one frame of motion of a mechanism to be detected according to the motion position, the speed and the acceleration of the current frame;
setting the motion acceleration of the three-dimensional model of the virtual prototype as a constant value;
s70, predicting the collision condition of the mechanism model 4 to be detected and the spray pipe model 5 in the nth frame in the future by using a primitive intersection method;
the step of predicting the collision condition of the mechanism model 4 to be detected and the spray pipe model 5 in the nth frame in the future by using the primitive intersection method comprises the following steps:
s71, recording two triangular patches to be detected asT 1 AndT 2 the method comprises the steps of carrying out a first treatment on the surface of the Wherein, triangular dough pieceT 1 Belonging to waiting forDetecting mechanism model 4, triangular dough pieceT 2 Belonging to the nozzle model 5;
triangular face plateT 1 Is defined by three vertexes、/>、The method comprises the steps of carrying out a first treatment on the surface of the Triangular face plateT 2 Is +.>、/>、; wherein ,/>Is vertex->Coordinates of (c); />Is vertex->Coordinates of (c);is vertex->Coordinates of (c); />Is vertex->Coordinates of (c); />Is vertex->Coordinates of (c); />Is vertex->Coordinates of (c);
s72, calculating parametersParameter->Parameters and parametersThe method comprises the following steps:
s73, judging parametersParameter->Parameters and parametersWhether the same number is not 0, if so, the triangular surface patchT 1 And triangular dough pieceT 2 No intersection occurs in the n-th frame in the future, otherwise, step S74 is entered;
s74, judging parametersParameter->Parameters and parametersIf the numbers are the same and are 0, the step S75 is carried out, otherwise, the step S76 is carried out;
s75, triangular dough pieceT 1 And triangular dough pieceT 2 The vertex coordinates of (2) are converted into two-dimensional coordinates to obtain、、/>、/>、/>、/>;/>
By triangular patchesT 1 Any one of the edges of (a)Establish the linear parameter equation ax+by+c=0 and fit the triangular patchesT 1 And triangular dough pieceT 2 Substituting the two-dimensional vertex coordinates of the two-dimensional vertex into a linear parameter equation to obtain:
if the parameters areParameter->Parameters are the same as the number and are the same as the parameters->Different numbers, triangular dough pieceT 1 And triangular dough pieceT 2 No intersection occurs in the future nth frame, otherwise, the triangular patchT 1 And triangular dough pieceT 2 Crossing in the future nth frame;
s76, in the triangular dough sheetT 1 On which a coordinate system O is established 1 X 1 Y 1 And putting triangular dough sheetT 1 And triangular dough pieceT 2 Conversion of vertex coordinates to coordinate System O 1 X 1 Y 1 In (a) and (b); judging straight lineStraight line->Straight line->With O 1 X 1 Y 1 Intersection point P of planes 1 Intersection point P 2 Intersection point P 3 In (c) whether there is a triangle>Inside and at triangle->Intersection on one side, if yes, triangular surface patchT 1 And triangular dough pieceT 2 Crossing in the future nth frame, otherwise, proceeding to step S77;
s77, in triangular dough pieceT 2 On which a coordinate system O is established 2 X 2 Y 2 And putting triangular dough sheetT 1 And triangular dough pieceT 2 Conversion of vertex coordinates to coordinate System O 2 X 2 Y 2 In (a) and (b); judging straight lineStraight line->Straight line->With O 2 X 2 Y 2 Intersection point P of planes 4 Intersection point P 5 Intersection point P 6 In (c) whether there is a triangle>Inside and at triangle->Intersection on one side, if yes, triangular surface patchT 1 And triangular dough pieceT 2 Intersecting in the future nth frame, if not, then triangular patchesT 1 And triangular dough pieceT 2 No intersection occurs in the future nth frame;
s78, updating the triangular dough piece to be detectedT 1 And triangular dough pieceT 2 Returning to the step 1) until determining whether each triangular patch to be detected in the mechanism model 4 to be detected and all triangular patches to be detected of the spray pipe model 5 intersect in the future nth frame, and further judging whether the mechanism model 4 to be detected and the spray pipe model 5 collide in the future nth frame;
s79, if a certain triangular patch to be detected exists in the mechanism model 4 to be detected and a certain triangular patch to be detected of the spray pipe model 5 are intersected in the future nth frame, the mechanism model 4 to be detected and the spray pipe model 5 collide in the future nth frame;
if each triangular patch in the mechanism model 4 to be detected and all triangular patches of the spray pipe model 5 do not intersect in the future nth frame, the mechanism model 4 to be detected and the spray pipe model 5 do not collide in the future nth frame.
The triangular patches to be detected comprise triangular patches with the same speed direction as the normal direction.
S80, returning the collision condition of the nth frame in the future to a motion control system of the mechanism to be detected, and making a motion decision of the mechanism to be detected.
The motion decision comprises: if collision is predicted, gradually reducing the speed of the mechanism to zero; if no collision is predicted, the mechanism continues to move according to the planned track.
Example 2
The special mechanism collision prediction method based on the virtual prototype in the interstage separation test of the embodiment is a simplified method, and specifically comprises the following steps:
s10, accurately establishing a wind tunnel test section, a mechanism and a three-dimensional digital model of a test model in the virtual prototype, and setting each driving joint in the mechanism as a position input variable.
In step S10, the critical model outline may be enlarged by a certain threshold to perform three-dimensional accurate modeling, and the final three-dimensional digital model is wrapped with triangular patches, taking into account the threshold for collision prediction between different components.
S20, establishing mapping relations between the positions of all driving joints in the virtual prototype and the positions of all driving joints of the actual mechanism.
S30, calibrating the virtual machine system.
In step S30, the purpose of the calibration is to ensure that the relative pose between the models in the real model and in the virtual prototype model at the initial moment is completely consistent.
S40, performing an interstage separation test. And cutting the mechanism motion into a plurality of frame motions in 1 second by taking the frame as a unit, and synchronizing each frame motion of the actual model and the virtual prototype model in real time.
In step S40, when frame slicing is performed, the communication capability of the field device and the calculation speed of the virtual prototype should be considered, so as to ensure that the total time for the virtual prototype to process a frame and predict the next frame is less than the time for the mechanism to actually operate a frame.
S50, in the virtual prototype, the pose and speed data of the last n frames are obtained according to the motion position, the speed and the acceleration of the last frame.
In step S50, a constant acceleration assumption is used for motion prediction at the next time in the entire frame.
S60, according to the position and pose conditions of the predicted frame obtained through the intersecting calculation of the graphic elements, the collision conditions of the mechanism and the model under the predicted frame are obtained.
In step S60, in order to improve the detection efficiency, only triangular patches having the same triangular patch speed direction as the normal direction thereof are detected in the triangular patch primitive intersection calculation.
S70, the virtual prototype returns collision information of the predicted frame to the motion control system to carry out motion decision.
Example 3
The embodiment is used for describing in detail the primitive intersection method in the special mechanism collision prediction method based on the virtual prototype in the interstage separation test, and specifically comprises the following steps:
fig. 2a is a phantom in a wind tunnel. In fig. 2a, 1 is a nozzle in a wind tunnel test, in this example an obstacle to the operation of the mechanism; and 2, a physical model in a wind tunnel test is mounted at the tail end of the executing mechanism 3. The tail end of the actuator 3 has six degrees of freedom, and three rotations of yaw, pitch and roll are realized in the three directions of X, Y and Z in an aviation coordinate system. Fig. 2b is a virtual prototype model based on the physical model of fig. 2a, taking into account the threshold requirements of collision prediction, and in fig. 2b, the yaw, pitch, roll mechanism and mechanism to be detected model 4 of a possible collision are wrapped in a triangular patch, and also the nozzle model 5 is wrapped in a triangular patch. The display technology of the virtual prototype adopts an open graphics library OpenGL or DirectX technology.
Before wind tunnel test, a one-to-one mapping relationship between the joint information (X movement, axis 1, axis 2, pitch, yaw and roll) of the physical model and the corresponding joint in the virtual prototype is established. And then calibrating the system, namely ensuring that the initial pose of the physical model and the initial pose of the virtual prototype are completely consistent, and ensuring that the relative pose of each part is completely consistent. When wind tunnel test is carried out, the pose and the speed of the physical model and the virtual prototype model are synchronized in real time according to a certain frame rate, and the time for synchronizing one frame is smaller than the time for predicting one frame by collision. Assuming that the time of a frame is deltat, assuming uniform motion when the position and the speed of the frame are obtained, obtaining the pose of the nth frame (such as the 5 th frame) later, then calculating the positions and the speeds of all triangular patch vertexes on the model to be detected, and then carrying out collision detection according to the predicted pose. In order to reduce the detection effort, before collision detection, all triangular patches to be detected are classified into three types as shown in fig. 3a, 3b and 3c, and the triangular patches in fig. 3b have an obtuse angle between the moving direction and the normal direction, so that collision risk does not occur, and therefore, such triangular patches are omitted in the detection of this frame, and only the triangular patches shown in fig. 3a and 3c are detected. The detection mode is to detect all triangular patches which are consistent with fig. 3a and 3c on the yaw, pitch and roll mechanisms and the mechanism to be detected model 4 and all triangular patches of the spray pipe model 5 one by one. The detection algorithm for each pair of triangular patches is as follows:
assume that the two triangles to be detected areT 1 AndT 2, wherein T 1 Is defined by three vertexes、、/>;T 2 Is +.>、/>、;
The following determinant operation is defined:
if the three determinant are of the same sign and are not 0, then this is illustratedT 1 AndT 2 no intersection occurs;
if the three determinant is 0, the description and coplanarity are changed to the intersection judgment of the two-dimensional triangle, and the following can be realizedT 1 AndT 2 the point coordinates of (2) are converted into two-dimensional coordinates, and can be arbitrarily found in the two-dimensional coordinate system, and the point coordinates are assumed to be at the momentT 1 AndT 2 two-dimensional coordinate values of (a) are respectively、/>、/>、/>、/>、/>. To be used forT 1 Is->A linear parameter equation ax+by+c=0 is established. Will beT 1 Is the third point of (2)T 2 Is brought into this equation:
if forT 1 Is provided with three sidesThe same number and->In the case of different numbers, thenT 1 AndT 2 no intersection occurs, whereas there is an intersection.
If not, then the description is thatT 1 AndT 2 different surfaces, wherein a certain triangle intersects with a plane determined by another triangle, a coordinate system is established on the certain triangle, and coordinate values of the two triangles are converted into the coordinate system.
As shown in fig. 4, a judgment is made,/>,/>Determined straight line and O 1 X 1 Y 1 Three intersection points P of planes 1 、P 2 、P 3 (if there is no intersection point, it is defined to intersect at infinity) whether there is a certain intersection point P i Belongs to triangle->Is a closure of triangle ++>Is provided. If present, the two triangles intersect. If not, a local coordinate system will be established on the other triangle, and the above is repeated. If neither calculation exists, then the two triangles do not intersect.
After the detection of all the triangular surface patches is finished, if the condition that two triangles intersect exists, the feedback is that collision occurs; if the condition that two triangles intersect does not exist for all the triangular patch pairs, no collision occurs in feedback. And then waiting for data of the next frame to perform collision prediction.
Claims (9)
1. The special mechanism collision prediction method based on the virtual prototype in the interstage separation test is characterized by comprising the following steps of:
s10, establishing a virtual prototype three-dimensional model according to a mechanism to be detected;
the virtual prototype three-dimensional model comprises a mechanism model to be detected (4) and a spray pipe model (5); the mechanism model to be detected (4) comprises a yaw mechanism model, a pitch mechanism model and a roll mechanism model;
s20, setting each driving joint in a mechanism model (4) to be detected as a position input variable;
s30, acquiring a position input variable, and establishing a mapping relation between a mechanism to be detected model (4) and the positions of all driving joints in the mechanism to be detected;
s40, calibrating the three-dimensional model of the virtual prototype according to a calibration standard, namely calibrating the virtual machine system;
s50, carrying out an interstage separation test on the mechanism to be detected, and synchronizing the motions of the mechanism to be detected and the virtual prototype three-dimensional model in real time;
s60, carrying out frame segmentation on the motion of the mechanism to be detected and the virtual prototype three-dimensional model, and predicting the pose and the speed of the nth frame of the virtual prototype three-dimensional model according to the motion position, the speed and the acceleration of the current frame of the virtual prototype three-dimensional model;
s70, predicting collision conditions of a mechanism model (4) to be detected and a spray pipe model (5) of an nth frame in the future by using a primitive intersection method; the method comprises the following steps:
s71, recording two triangular patches to be detected asT 1 AndT 2 the method comprises the steps of carrying out a first treatment on the surface of the Wherein, triangular dough pieceT 1 Belongs to a mechanism model (4) to be detected, and a triangular surface patchT 2 Belongs to a spray pipe model (5);
triangular face plateT 1 Is defined by three vertexes、/>、/>The method comprises the steps of carrying out a first treatment on the surface of the Triangular face plateT 2 Is +.>、/>、/>; wherein ,is vertex->Coordinates of (c); />Is vertex->Coordinates of (c); />Is vertex->Coordinates of (c); />Is vertex->Coordinates of (c); />Is vertex->Coordinates of (c); />Is the vertexCoordinates of (c);
S73, judging parametersParameter->、/>Whether the same number is not 0, if so, the triangular surface patchT 1 And triangular dough pieceT 2 No intersection occurs in the n-th frame in the future, otherwise, step S74 is entered;
s74, judging parametersParameter->、/>If the numbers are the same and are 0, the step S75 is carried out, otherwise, the step S76 is carried out;
s75, triangular dough pieceT 1 And triangular dough pieceT 2 The vertex coordinates of (2) are converted into two-dimensional coordinates to obtain、、/>、/>、/>、/>;
By triangular patchesT 1 Any one of the edges of (a)Establish the linear parameter equation ax+by+c=0 and fit the triangular patchesT 1 And triangular dough pieceT 2 Substituting the two-dimensional vertex coordinates of the two-dimensional vertex into a linear parameter equation to obtain:
if the parameters areParameter->Parameters are the same as the number and are the same as the parameters->Different numbers, triangular dough pieceT 1 And triangleDough sheetT 2 No intersection occurs in the future nth frame, otherwise, the triangular patchT 1 And triangular dough pieceT 2 Crossing in the future nth frame;
s76, in the triangular dough sheetT 1 On which a coordinate system O is established 1 X 1 Y 1 And putting triangular dough sheetT 1 And triangular dough pieceT 2 Conversion of vertex coordinates to coordinate System O 1 X 1 Y 1 In (a) and (b); judging straight lineStraight line->Straight line->With O 1 X 1 Y 1 Intersection point P of planes 1 Intersection point P 2 Intersection point P 3 In (c) whether there is a triangle>Inside and at triangle->Intersection on one side, if yes, triangular surface patchT 1 And triangular dough pieceT 2 Crossing in the future nth frame, otherwise, proceeding to step S77;
s77, in triangular dough pieceT 2 On which a coordinate system O is established 2 X 2 Y 2 And putting triangular dough sheetT 1 And triangular dough pieceT 2 Conversion of vertex coordinates to coordinate System O 2 X 2 Y 2 In (a) and (b); judging straight lineStraight line->Straight line/>With O 2 X 2 Y 2 Intersection point P of planes 4 Intersection point P 5 Intersection point P 6 In (c) whether there is a triangle>Inside and at triangle->Intersection on one side, if yes, triangular surface patchT 1 And triangular dough pieceT 2 Intersecting in the future nth frame, if not, then triangular patchesT 1 And triangular dough pieceT 2 No intersection occurs in the future nth frame;
s78, updating the triangular dough piece to be detectedT 1 And triangular dough pieceT 2 Returning to the step S71 until determining whether each triangular patch to be detected in the mechanism model to be detected (4) and all triangular patches to be detected in the spray pipe model (5) intersect in the future nth frame, and further judging whether the mechanism model to be detected (4) and the spray pipe model (5) collide in the future nth frame;
s80, returning the collision condition of the nth frame in the future to a motion control system of the mechanism to be detected, and making a motion decision of the mechanism to be detected.
2. The special mechanism collision prediction method based on the virtual prototype in the interstage separation test according to claim 1, wherein the mechanism model (4) to be detected and the spray pipe model (5) are wrapped by triangular patches.
3. The special mechanism collision prediction method based on the virtual prototype in the interstage separation test according to claim 1, wherein the calibration standard of the virtual prototype three-dimensional model is: the initial pose of the mechanism to be detected and the initial pose of the virtual prototype three-dimensional model are completely consistent, and the relative pose of each driving joint of the mechanism to be detected and the virtual prototype three-dimensional model are completely consistent.
4. The special mechanism collision prediction method based on the virtual prototype in the interstage separation test according to claim 1, wherein the standard for performing frame segmentation on the motion of the mechanism to be detected and the virtual prototype three-dimensional model is as follows: the three-dimensional model of the virtual prototype predicts the pose and the speed of the nth frame of the three-dimensional model of the virtual prototype according to the motion position, the speed and the acceleration of the current frame, and the time required for obtaining the pose and the speed of the nth frame of the three-dimensional model of the virtual prototype is less than the time for one frame of motion of a mechanism to be detected.
5. The method for predicting the collision of a special mechanism based on a virtual prototype in an interstage separation test according to claim 1, wherein the motion acceleration of the three-dimensional model of the virtual prototype is set to a constant value.
6. The virtual prototype-based special mechanism collision prediction method in the inter-stage separation test according to claim 1, wherein the virtual prototype three-dimensional model is displayed by an open graphics library OpenGL or DirectX technology.
7. The virtual prototype-based method for predicting a collision of a special mechanism in an interstage separation test according to claim 1, wherein said motion decision comprises: if collision is predicted, gradually reducing the speed of the mechanism to zero; if no collision is predicted, the mechanism continues to move according to the planned track.
8. The method for predicting the collision of the special mechanism based on the virtual prototype in the interstage separation test according to claim 1, wherein the predicting the collision condition comprises: if a certain triangular patch to be detected exists in the mechanism model to be detected (4) and the triangular patch to be detected of the spray pipe model (5) are intersected in the future nth frame, the mechanism model to be detected (4) collides with the spray pipe model (5) in the future nth frame;
if all triangular patches in the mechanism model (4) to be detected and the spray pipe model (5) are not intersected in the future nth frame, the mechanism model (4) to be detected and the spray pipe model (5) are not collided in the future nth frame.
9. The method for predicting the collision of a special mechanism based on a virtual prototype in an interstage separation test according to claim 1, wherein the triangular patches to be detected comprise triangular patches with the same speed direction as the normal direction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310245488.3A CN116049995B (en) | 2023-03-15 | 2023-03-15 | Special mechanism collision prediction method based on virtual prototype in interstage separation test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310245488.3A CN116049995B (en) | 2023-03-15 | 2023-03-15 | Special mechanism collision prediction method based on virtual prototype in interstage separation test |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116049995A CN116049995A (en) | 2023-05-02 |
CN116049995B true CN116049995B (en) | 2023-06-02 |
Family
ID=86133378
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310245488.3A Active CN116049995B (en) | 2023-03-15 | 2023-03-15 | Special mechanism collision prediction method based on virtual prototype in interstage separation test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116049995B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117710449B (en) * | 2024-02-05 | 2024-04-16 | 中国空气动力研究与发展中心高速空气动力研究所 | NUMA-based real-time pose video measurement assembly line model optimization method |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108052703A (en) * | 2017-11-22 | 2018-05-18 | 南京航空航天大学 | Fast Collision Detection Algorithm based on hybrid hierarchy bounding box |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9898388B2 (en) * | 2014-05-23 | 2018-02-20 | Mentor Graphics Corporation | Non-intrusive software verification |
EP3040797B1 (en) * | 2014-12-31 | 2020-10-28 | Dassault Systèmes | Simulating the machining of a workpiece |
-
2023
- 2023-03-15 CN CN202310245488.3A patent/CN116049995B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108052703A (en) * | 2017-11-22 | 2018-05-18 | 南京航空航天大学 | Fast Collision Detection Algorithm based on hybrid hierarchy bounding box |
Non-Patent Citations (4)
Title |
---|
Virtual prototyping simulation of minitype universal docking mechanism based on ADAMS;Yangtao Yu等;2011 International Conference on Electronic & Mechanical Engineering and Information Technology;第3848-3851页 * |
基于ADAMS的飞行器级间分离动力学分析;孙乐园等;科技创新导报(第24期);第49-50页 * |
基于虚拟样机的级间分离***仿真;张耀磊等;计算机仿 真;第23卷(第12期);第43-45,73页 * |
高马赫数多体分离试验技术研究与应用;林敬周等;推进技术;第41卷(第4期);第925-933页 * |
Also Published As
Publication number | Publication date |
---|---|
CN116049995A (en) | 2023-05-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
USRE48940E1 (en) | Simulation of the machining of a workpiece | |
CN102528555B (en) | Geometry and mechanics integrated optimization information processing method of interference-free tool path on complex curved surface | |
CN107972034B (en) | Complex workpiece trajectory planning simulation system based on ROS platform | |
CN116049995B (en) | Special mechanism collision prediction method based on virtual prototype in interstage separation test | |
KR20160082481A (en) | Simulating the machining of a workpiece | |
CN102426424B (en) | Visual emulation method of near-space flying vehicle based on distributed framework | |
CN106041928A (en) | Robot job task generation method based on workpiece model | |
CN101973032A (en) | Off-line programming system and method of optical visual sensor with linear structure for welding robot | |
CN112405541B (en) | Laser 3D precision cutting double-robot cooperative operation method | |
CN105096381A (en) | Collision detecting method using moving three-dimension ship models in navigation channel | |
Liu et al. | Optimal path planning for automated dimensional inspection of free-form surfaces | |
JP5666013B2 (en) | Method and system for determining surface defects in a model of an object | |
CN110147649A (en) | A kind of analogy method and device of plate process | |
CN114012726B (en) | Method for detecting collision of spaceflight mechanical arm | |
CN103810313B (en) | A kind of STL model is to the conversion method of space parted pattern | |
CN112785668A (en) | Animation three-dimensional character action track fusion system | |
CN113761646A (en) | Method for determining dynamic response of aircraft in mobile wind field environment | |
CN111210520A (en) | Reverse forming method and system for physical model | |
Du et al. | Industrial robot digital twin system motion simulation and collision detection | |
CN108492371B (en) | Three-dimensional building model dynamic visualization method for fire | |
CN102393827A (en) | Flexible scene continuous collision detection method based on continuous normal cone remover | |
CN112090619B (en) | Off-line simulation machining method and system for spraying robot of high-speed rail car body | |
CN113836745B (en) | Simulation system and method for intelligent inspection device | |
CN112287455B (en) | Complex aircraft configuration pneumatic load batch extraction method | |
JPH0471083A (en) | Method for displaying object locus in three-dimensional space |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |