Consider the detection method and system in the detection path that false boss and part soma relate to
Technical field
The present invention relates to a kind of online measuring techniques, more particularly to do to aircraft structure false boss and part body
The method for relating to inspection, when carrying out on-line checking primarily directed to the part status after Flight Structures NC Machining processing finishing,
It realizes that measuring head and the interference of false boss, measuring head and part body are evaded, belongs to the field CAD/CAM/CAPP.
Background technique
For heavy parts such as aircraft structure, big with size, structure is complicated, and difficulty of processing is larger, required precision
The features such as height, the process-cycle is longer.Simultaneously as aircraft structure clamping is difficult, it is easily deformed, it can be to after Finishing Parts Machining
State-detection bring very big difficulty and detection error, in order to reduce detection error, the detection efficiency of part is improved, for number
The detection of aircraft structure in control processing, using the method for on-line checking.
On-line checking path is after test point generation, according to the position of test point, measured surface in measurement point
Normal direction, detection order generate the process in detection path.In order to reduce idle stroke, shorten detection time, to the basic of detection path
It is required that being: the detection path of generation is as short as possible, and does not collide in the detection process.
For large-scale aircraft structure, parts fixation mode is different, and characterization processes are complicated.Such as typical Airplane frame class
Part uses multiple types false boss clamping, and detection project is related to profile tolerance, hole location and depth of parallelism etc. up to more than ten kinds,
There are special detection knowledge and requirement.In this way when part carries out on-line checking, it is easy to measuring head and part body sheet occur
Body and interference and collision with false boss.There is no good when carrying out detection path planning for Many researchers at present
Influence of the false boss for detection path is solved, however in actual detection to the interference checking of measuring head and false boss
It is to have to take into account that.
Summary of the invention
An object of the present invention, which is that, carries out part in Flight Structures NC Machining processing large-scale at present
Line has that measuring head and false boss or part body interfere collision when detecting, it is convex to provide a kind of consideration technique
The detection method in the detection path that platform and part soma relate to, when effectively avoiding on-line checking the problem of interference and collision, in turn
Obtain the detection path without interference.
Technical solution is: a kind of detection method for detecting path for considering false boss and part soma and relating to, including following
Step:
Step 1: part body and false boss are read, test point all in piece test feature is automatically generated;
Step 2: needing to carry out the interference checking of false boss Yu part body between two adjacent detection features, if
It interferes, then executes interference and evade, determine the detection path between detection feature;
Step 3: for each detection feature, when carrying out the planning of feature itself grade, the two neighboring test point in feature
Between need to carry out the interference checking of false boss, if interfering, execute interference and evade, so that it is determined that the detection in feature
Path;
Step 4: repeating the above steps, and traverses all detection feature and test point, until completing the rule in entire path
It draws.
Preferably, the detection paths planning method further includes step 5, which is the detection to actually obtaining
Path carries out postpositive disposal, detects NC program to generate, and is transmitted to numerically-controlled machine tool and carries out on-line checking.
Preferably, further comprising the steps of before the step 2:
Step 2 A1: under the support of Process knowledge database, detection work step grade planning is completed;
Step 2 A2: for each detection work step, to it includes all detection features carry out detection feature level rule
When drawing, need to carry out the interference checking of false boss Yu part body between two adjacent detection features, if interfering,
It executes interference to evade, determines the detection path between detection feature.
Preferably, the step 1 include it is following step by step:
Read the process modeling of part;The process modeling of part is imported under CAM environment;
Read the model of false boss;The false boss model of part is imported under CAM environment;
The feature recognition result listing file of part is read, feature recognition result list is the knot of piece test feature identification
Fruit has recorded all detection characteristic informations of part;Muscle position feature, the high feature of muscle, muscle thickness feature, hole location feature including part and
Contour feature etc. generates the test point information needed for part respectively detects in feature.
Preferably, further including step 2 A0 before the step 2 A1, step 2 A0 is the model based on false boss,
Obtain the side list of false boss.
Preferably, it is described obtain the list of false boss side be user clicking it is in need progress interference checking work
Behind the top surface of skill boss, the body topology of boss where obtaining each top surface respectively obtains all face lists according to body topology;It makes
The outer normal direction of all face central points on each boss, and calculate separately out the outer normal direction of boss end face center point and remaining each face of boss
Angle between the outer normal direction of central point;If angle is greater than 179 degree or less than 1 degree, illustrating the face not is the side of boss, is needed
The face is rejected;The face and boss top surface rejected are removed, remaining face is exactly the side of boss, is all stored in the side of boss
In list.
Preferably, under the support of Process knowledge database, determining detection process MP in the step 2 A1, being detected
Work step grade path planning;The detection work step grade path planning is the detection path for the detection work step for determining that part is all,
Line detection path can be regarded as several detection work step ordered sets, and detect what work step was determined by characterization processes completely, can
To be expressed as one-dimensional vector: MP={ MS1, MS2 ... MSi ..., MSn }, in formula, MSi is i-th of detection work step, and n is to detect work
Walk number.Under the support of characterization processes knowledge base, detection work step grade planning is carried out.
Preferably, the detection feature level path planning is the inspection for determining all detection features of each work step of part
Path is surveyed, to improve detection efficiency, it is first determined the detection ordering of feature is detected, with all spies of the complete detection work step of sequence detection
The most short detection path for being target, determining between detection feature of path summation is levied, detection work step is determined by detection feature completely
, can indicate one-dimensional vector: MS={ MF1, MF2 ... MFi ..., MFm }, in formula, MFi is i-th of detection feature, and m is to examine
Survey Characteristic Number.Under the support of characterization processes knowledge base, detection feature level planning is carried out;It is described to carry out detection feature level path
When planning, the specific method of false boss and part body interference checking, creation connection are carried out between two neighboring detection feature
Detection feature MFi (i=1,2 ... m-1) on termination detection point Pi, E be connected with detection ordering detection feature MFi+1 (i=1,
2 ... m-1) on originate test point Pi+1, directed line segment a Pi, EPi+1, S of S;Directed line segment Pi, EPi+1, S and part
Body Volume and false boss side Cells creation intersection, if Pi, EPi+1,Or Pi, EPi+1,Then illustrate that measuring head is interfered with part body or measuring head is interfered with false boss;Along Pi,
The direction EPi+1, S, first face intersected with part body or false boss side is as beginning face Face1, the last one phase
For cross surface as terminal surface Face2, highest face is FaceTop;The biasing surface FaceTopOffset for creating highest face, if top surface
The machining allowance of FaceTop is dmm, and the outer normal direction put on the face isSurvey bulb diameter is D, then the biasing surface in highest face can indicate
ForConsider that practical gauge head movement cannot be pasted with FaceTopOffset
It closes, reply FaceTopOffset is modified, and corrected range is amm (generally a=D/4), and gauge head is axiallyThenIt will test point Pi, E and Pi+1, S projects to the biasing surface in highest face
On FaceTopOffset, subpoint Pi, E ' and Pi+1 are obtained, S ', then directed line segment Pi, E ' Pi+1, S ' are that gauge head is actual
Movement routine.
Preferably, the feature itself grade path planning is the planning for carrying out actually detected detection ordering in feature,
Detection for plane searches for the measurement point nearest from the point as first measurement point, measurement first from gauge head start position
It after complete, search for and puts nearest measurement point from this, successively measured all measurement points.Due to that may have boss in plane,
When determining next measurement point, need to consider the collision problem of gauge head, can establish previous measurement point bias point and latter survey
The directed line segment for measuring the bias point of point carries out interference checking to false boss, avoids collision, and then determines on feature own layer
The Actual path of gauge head is planned.Detection for circular hole, since to be generally distributed across same level symmetrical for the test point of circular hole
Four positions on, therefore, first from gauge head start position, search for the measurement point nearest from the point as first measurement point,
After having measured, along clockwise direction or counterclockwise detecting to remaining test point, and then complete feature itself return
Turn the Actual path planning of gauge head on face;When progress feature itself the grade path planning, between two neighboring test point into
The specific method of row false boss interference checking, will test feature MFi (i=1,2 ... m) on all test points respectively along each
Outer normal bias distance amm from place face;Select i-th (i=1,2,3 ... n-1) a test point bias point and with it most
The bias point of close i+1 (i=1,2,3 ... n-1) a test point, it is oriented to create one for connecting this two bias points
Line segment PiPi+1;Directed line segment PiPi+1 intersects with false boss side Cells creation, ifThen illustrate
Measuring head is interfered with false boss;Along the direction PiPi+1, first face intersected with false boss side, which is used as, to be started
Face Face1, for the last one intersection as terminal surface Face2, false boss top surface is FaceTop;Create the inclined of boss top surface
Face FaceTopOffset is set, if the outer normal direction put on the FaceTop of top surface isSurvey bulb diameter is D, then the biasing surface of boss top surface
It is represented byConsider that practical gauge head movement cannot be pasted with FaceTopOffset
It closes, reply FaceTopOffset is modified, and corrected range is amm (generally a=D/4), and gauge head is axiallyThenIt will test the biasing surface that point Pi and Pi+1 projects to false boss
On FaceTopOffset, subpoint Pi ' and Pi+1 ' are obtained, then directed line segment Pi ' Pi+1 ' is the actual mobile road of gauge head
Diameter.
The second object of the present invention is to provide a kind of detection system in detection path that consideration false boss is related to part soma
System.
Technical solution is: a kind of detection system for detecting path for considering false boss and part soma and relating to, comprising: detection
Device, display;The output end of the detection device and the input terminal of display connect.
Compared with prior art, the beneficial effects of the present invention are:
When effective solution of the present invention large complicated aircraft structure on-line checking measuring head and false boss or
The problem of part body itself interferes collision has obtained the detection path without interference, has improved the efficiency and matter of detection
Amount, ensure that the safety of on-line checking, and then ensure that the processing quality of part.
The present invention can effectively avoid measuring head and the interference of false boss and part body during on-line checking from touching
Problem is hit, will can greatly improve the precision of the efficiency and detection of detection in this way, obtains one without interference and collision
Path is detected, and generates NC program through postpositive disposal, numerically-controlled machine tool is transmitted to, to carry out on-line checking.
The invention avoids the interference and collision problems of measuring head during on-line checking and false boss or part body.
The present invention has high efficiency, and method proposed by the present invention uses easily, after carrying out interference checking, measurement
Head does not need to lift to the position of security plane, it is only necessary to lift to certain altitude, and according between detection feature and feature from
The method of this hierarchical path planning of body grade can make total detection path most short, substantially reduce detection time, improve inspection
Survey efficiency.
The present invention has safety, can finally obtain a detection path reasonable, safety, without interference, and raw
At corresponding detection path NC program.
Detailed description of the invention
Fig. 1 is flow chart of the present invention;
Fig. 2 is the structural schematic diagram of part used in the present invention;
When Fig. 3 is that the present invention plan between detection feature, movement routine and part body between adjacent two detections feature
Interference checking method schematic diagram;
When Fig. 4 is that the present invention carries out the planning of feature itself grade, movement routine and false boss between adjacent two test point
Interference checking method schematic diagram;
Fig. 5 be part on-line checking of the present invention path carry out false boss interference checking before detection path profile;
Fig. 6 is the detection path profile after the interference checking of part on-line checking of the present invention path progress false boss;
Fig. 7 is plane monitoring-network path of the present invention schematic diagram;
Wherein, it 1 indicates to carry out the on-line checking track before false boss interference checking, 2,5 indicate part body, and 4 indicate
The on-line checking track after false boss interference checking is carried out, 3,6 indicate that false boss, P1, P2, P3, P4 indicate in plane
Test point, 7,8,9,10,11 indicate gauge heads movement routine on this plane.
Specific embodiment
The present invention will be further described with reference to the accompanying drawings.
As shown in figs. 1-7, a kind of detection method for detecting path for considering false boss and part soma and relating to, including it is following
Step:
1, the process modeling of part is read;The process modeling of part is imported under CAM environment.
2, the model of false boss is read;The false boss model of part is imported under CAM environment.
3, the feature recognition result listing file of part is read, feature recognition result list is the identification of piece test feature
As a result, having recorded all detection characteristic informations of part;Muscle position feature, the high feature of muscle, muscle thickness feature, hole location feature including part
With contour feature etc., the test point information needed for part respectively detects in feature is generated.
4, based on the model of false boss, the side list of false boss is obtained.
In this step, obtain the list of false boss side be user clicking it is in need progress interference checking technique it is convex
Behind the top surface of platform, the body topology of boss where obtaining each top surface respectively obtains all face lists according to body topology;It makes each
The outer normal direction of all face central points on boss, and calculate separately out the outer normal direction of boss end face center point and remaining each face center of boss
Angle between the outer normal direction of point;If angle is greater than 179 degree or less than 1 degree, illustrating the face not is the side of boss, need by
It rejects in the face;The face and boss top surface rejected are removed, remaining face is exactly the side of boss, is all stored in the side list of boss
In.
5, it under the support of Process knowledge database, determines detection process MP, carries out detection work step grade path planning;
In this step, detection work step grade path planning is the detection path for the detection work step for determining that part is all, online
Detection path can be regarded as several detection work step ordered sets, and detect what work step was determined by characterization processes completely, can be with
Be expressed as one-dimensional vector: MP={ MS1, MS2 ... MSi ..., MSn }, in formula, MSi is i-th of detection work step, and n is to detect work step
Number.Under the support of characterization processes knowledge base, detection work step grade planning is carried out.
6, taking detection work step MSi, (i=1,2 ... n) (wherein n is the dimension for detecting process MP), carry out detection feature level
The detection ordering of detection feature is determined in planning;
In this step, feature level path planning is detected, is the detection for determining all detection features of each work step of part
Path, to improve detection efficiency, it is first determined the detection ordering of feature is detected, with all features of the complete detection work step of sequence detection
The most short detection path for being target, determining between detection feature of path summation, detects what work step was determined by detection feature completely,
Can indicate one-dimensional vector: MS={ MF1, MF2 ... MFi ..., MFm }, in formula, MFi is i-th of detection feature, and m is detection spy
Levy number.Under the support of characterization processes knowledge base, detection feature level planning is carried out.
When carrying out detection feature level path planning, false boss and part soma are carried out between two neighboring detection feature
Relate to the specific method of inspection, termination detection point Pi, E and detection ordering in creation connecting detection feature MFi (i=1,2 ... m-1)
Test point Pi+1, directed line segment a Pi, EPi+1, S of S are originated on connected detection feature MFi+1 (i=1,2 ... m-1);
Directed line segment Pi, EPi+1, S intersect with part body Volume and false boss side Cells creation, if Pi, EPi+1, S
Volume or Pi, EPi+1, S ∩ Cells, then illustrate measuring head interfered with part body or measuring head and technique it is convex
Platform is interfered;Along Pi, EPi+1, the direction S, first face intersected with part body or false boss side, which is used as, to be started
Face Face1, for the last one intersection as terminal surface Face2, highest face is FaceTop;Create the biasing surface in highest face
FaceTopOffset, if the machining allowance of top surface FaceTop is dmm, the outer normal direction put on the face is that survey bulb diameter is D, then
The biasing surface in highest face is represented by PlaneTopOffset=FaceTop+ (d+D/2);Consider that practical gauge head movement cannot be with
FaceTopOffset fitting, reply FaceTopOff set are modified, and corrected range is amm (generally a=D/4), gauge head
Axially it is, then FaceTopOff set=PlaneTopOffset+a;It will test point Pi, E and Pi+1, S projects to highest face
On biasing surface FaceTopOffset, subpoint Pi, E ' and Pi+1 are obtained, S ', then directed line segment Pi, E ' Pi+1, S ' are gauge head
Actual movement routine.
7, taken out from detection work step MSi (i=1,2 ... n) the adjacent two detection feature MFi of detection ordering (i=1,
2 ... m-1) and MFi+1 (i=1,2 ... m-1) (the wherein detection characteristic that m is the MSi), create connecting detection feature MFi
It is originated on the detection feature MFi+1 (i=1,2 ... m-1) that termination detection point is connected with detection ordering on (i=1,2 ... m-1)
One directed line segment of test point;The directed line segment is intersected with part body and the creation of false boss side.If creation intersection is lost
It loses, then illustrates that measuring head did not both collide with part body, also do not collide, i.e., do not interfere with false boss,
The directed line segment is exactly the practical movement routine of measuring head at this time;If creation intersect successfully, illustrate measuring head and part body or
Interference and collision has occurred in person's false boss, needs to carry out interference checking, completes the planning in detection feature level path.
Known to the result intersected from creation directed line segment Pi, EPi+1, S shown in Fig. 3 with part body Volume: Pi, EPi+
1, SVolume, then illustrate that measuring head is interfered with part body.At this point, EPi+1, the direction S will intersect with part body along Pi
First face as beginning face Face1, for the last one intersection as terminal surface Face2, highest face is FaceTop;Then
The biasing surface FaceTopOffset in highest face is created, if the machining allowance of top surface FaceTop is dmm, the outer normal direction put on the face
For survey bulb diameter is D, then the biasing surface in highest face is represented by PlaneTopOffset=FaceTop+ (d+D/2);Consider real
Border gauge head movement cannot be bonded with FaceTopOffset, and reply FaceTopOffset is modified, and corrected range is amm (one
As be a=D/4), gauge head is axially, then FaceTopOffset=PlaneTopOffset+a;It will test point Pi, E and Pi+ again
1, S projects on the biasing surface FaceTopOffset in highest face, obtains subpoint Pi, E ' and Pi+1, S ', then directed line segment Pi,
E ' Pi+1, S ' are the actual movement routine of gauge head;
8, it is inclined to will test outer normal direction of all test points on feature MFi (i=1,2 ... m) respectively along respective place face
Distance amm is set, nearest test point with a distance from measuring head is set to starting test point, since the bias point of starting test point,
The bias point for finding next test point nearest therewith, creates the directed line segment for connecting this two bias points, and should
Directed line segment intersects with the creation of the side of false boss.If creation intersection failure, illustrates that measuring head is not sent out with false boss
Raw interference and collision, i.e., do not interfere, the directed line segment is exactly the practical movement routine of measuring head at this time;If creation intersects
Function then illustrates that interference and collision has occurred in measuring head and false boss, needs to carry out interference checking;Complete feature itself grade path
Planning, determines the detection path in feature.
In this step, feature itself grade path planning is the planning for carrying out actually detected detection ordering in feature, for
The detection of plane is searched for the measurement point nearest from the point as first measurement point, has been measured first from gauge head start position
Afterwards, it searches for and puts nearest measurement point from this, successively measured all measurement points.Due to that may have boss in plane, true
When fixed next measurement point, needs to consider the collision problem of gauge head, can establish the bias point and latter measurement of previous measurement point
The directed line segment of the bias point of point carries out interference checking to false boss, avoids collision, and then determines and survey on feature own layer
The Actual path planning of head.Detection for circular hole, since to be generally distributed across same level symmetrical for the test point of circular hole
On four positions, therefore, first from gauge head start position, the measurement point nearest from the point is searched for as first measurement point, is surveyed
After having measured, along clockwise direction or counterclockwise detecting to remaining test point, and then complete feature itself revolution
The Actual path planning of gauge head on face.
In this step, when carrying out feature itself grade path planning, it is dry that false boss is carried out between two neighboring test point
The specific method for relating to inspection, will test feature MFi (i=1,2 ... m) on all test points respectively along the outer of respective place face
Normal bias distance amm;Select the bias point and the i+1 (i=nearest with it of i-th (i=1,2,3 ... n-1) a test point
1,2,3 ... n-1) a test point bias point, create a directed line segment PiPi+1 for connecting this two bias points;Have
Intersect to line segment PiPi+1 with false boss side Cells creation, if PiPi+1 ∩ Cells, illustrates that measuring head is convex with technique
Platform is interfered;Along the direction PiPi+1, first face intersecting with false boss side as beginning face Face1, last
For a intersection as terminal surface Face2, false boss top surface is FaceTop;Create the biasing surface of boss top surface
FaceTopOffset, if the outer normal direction put on the FaceTop of top surface is, survey bulb diameter is D, then the biasing surface of boss top surface can table
It is shown as PlaneTopOffset=FaceTop+D/2;Consider that practical gauge head movement cannot be bonded with FaceTopOffset, copes with
FaceTopOffset is modified, and corrected range is amm (generally a=D/4), and gauge head is axially, then FaceTopOffset
=PlaneTopOffset+a;It will test point Pi and Pi+1 to project on the biasing surface FaceTopOffset of false boss, obtain
Subpoint Pi ' and Pi+1 ', then directed line segment Pi ' Pi+1 ' is the actual movement routine of gauge head.
From the bias point of i-th (i=1,2,3 ... n-1) a test point of creation connection shown in Fig. 4 and with its nearest the
One directed line segment PiPi+1 of the bias point of i+1 (i=1,2,3 ... n-1) a test point;By directed line segment PiPi+1 and work
Skill boss side surfaces Cells creation intersection, intersects result are as follows: PiPi+1 ∩ Cells then illustrates that measuring head and false boss occur
Interference.At this point, along the direction PiPi+1, first face intersecting with false boss side as beginning face Face1, the last one
For intersection as terminal surface Face2, false boss top surface is FaceTop;Then the biasing surface of boss top surface is created
FaceTopOffset, if the outer normal direction put on the FaceTop of top surface is, survey bulb diameter is D, then the biasing surface of boss top surface can table
It is shown as PlaneTopOffset=FaceTop+D/2;Consider that practical gauge head movement cannot be bonded with FaceTopOffset, copes with
FaceTopOffset is modified, and corrected range is amm (generally a=D/4), and gauge head is axially, then FaceTopOffset
=PlaneTopOffset+a;It will test point Pi and Pi+1 again to project on the biasing surface FaceTopOffset of false boss, obtain
To subpoint Pi ' and Pi+1 ', then directed line segment Pi ' Pi+1 ' is the actual movement routine of gauge head.
From figure 5 it can be seen that at false boss, detecting track and boss side surfaces due to there is no carry out interference checking
Intersected, that is to say, that interference and collision has occurred in measuring head and false boss.
From fig. 6 it can be seen that at false boss, it is convex that detection track avoids technique due to having carried out interference checking
Platform, that is to say, that measuring head, which is avoided, interferes collision with false boss, has obtained the detection track of correct safety.
It can be seen from figure 7 that the detection for plane searches for the survey nearest from the point first from gauge head start position
Amount point is used as first measurement point P1, after having measured, searches for and puts nearest measurement point P2 from this, has successively measured all surveys
Measure point P3 and P4.Due to there is boss in plane between P1 and P2, need to consider the collision problem of gauge head, according to false boss
The method of interference checking carries out interference and evades, and avoids collision, obtains the detection path of no interference.
9, step 6-8 is repeated, until the planning in entire piece test path is completed, to obtain correct, safe detection
Path;
10, postpositive disposal generates corresponding detection path NC program, numerically-controlled machine tool is transmitted to, to carry out on-line checking.