CN116050006A - Wrench tool operation space inspection method and system - Google Patents
Wrench tool operation space inspection method and system Download PDFInfo
- Publication number
- CN116050006A CN116050006A CN202211513637.1A CN202211513637A CN116050006A CN 116050006 A CN116050006 A CN 116050006A CN 202211513637 A CN202211513637 A CN 202211513637A CN 116050006 A CN116050006 A CN 116050006A
- Authority
- CN
- China
- Prior art keywords
- wrench
- contour
- tool
- points
- wrench tool
- 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.)
- Pending
Links
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/17—Mechanical parametric or variational design
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/10—Numerical modelling
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Geometry (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Computational Mathematics (AREA)
- Computer Graphics (AREA)
- Software Systems (AREA)
- Numerical Control (AREA)
Abstract
The invention provides a method for checking the operation space of a wrench tool, which comprises the following steps: opening a digital model assembly; acquiring wrench tool data in response to performing the bolt installation check; traversing the bolts and the nuts to obtain a position matrix of the bolts and the nuts; calculating a virtual wrench tool; rotating the virtual wrench tools by taking the nuts as central shafts, and recording contour points of each group of rotating virtual wrench tools; obtaining the outlines of all parts, and calculating outline points of rectangular outlines of all parts; judging whether the rectangular outline of the part and the rectangular outline of the wrench interfere or not; judging whether the movable range is interfered; and displaying the checking result. An inspection system is also provided; the invention creates a new inspection method and solves the problems that the original old mode is manually checked by naked eyes, is designed by experience, is manually identified and evaluated, and needs to spend a great deal of time and energy. The product design is convenient for production, and the design quality of the product is improved.
Description
Technical Field
The invention relates to the field of computer science, in particular to a method and a system for checking the operation space of a wrench tool.
Background
In the design of digital products, bolts are often used to fasten two or more parts or components together into a single unit. The bolt design is common connected mode, and the usage is extensive, and the product design is accomplished the back, and the bolt need be installed and is detected, and the installation of bolt is screwed with socket wrench usually, in digital model product design, is the step that does not have the design socket wrench, during the installation detection, need judge whether the position of the nut with bolt complex satisfies socket wrench rotatory space, guarantees the product and can normally assemble after the production, and the installation inspection of bolt is important link, is product quality management and control.
In the prior art, when the engineer is doing digital product design, use the bolt to fasten and connect, after the product design is accomplished, rely on the design experience of engineer to judge the bolt assembly of product, judge whether the bolt installation can place socket wrench tool and install, when product simple structure, this kind of mode can satisfy the requirement, when the product is more complicated, under the condition that bolt quantity is many, the installation tool operation space of the unable all verification bolt of design engineer design appears in the production, bolt installation difficulty, socket wrench spatial position is not enough scheduling problem. In the current product design, the method for checking the socket spanner of the bolt installation tool has no systematic method, so that the problem of bolt installation can occur in the production of the product.
Disclosure of Invention
The invention aims to solve the defects in the prior art, and provides a method and a system for checking the operation space of a wrench tool.
In order to achieve the above purpose, the invention adopts the following technical scheme:
a method for inspecting the operating space of a wrench tool, comprising the steps of:
s1: opening a digital model assembly;
opening a digital model assembly by using three-dimensional design software;
s2: acquiring wrench tool data in response to performing the bolt installation check;
the wrench tool data are geometric data of a digital model wrench, and the geometric data are rectangular outline data;
s3: traversing the bolts and the nuts to obtain a position matrix of the bolts and the nuts;
s4: calculating a virtual wrench tool;
the virtual wrench tool is used for constructing a rectangular outline of the wrench tool at the position of the nut according to the position of the nut;
s5: rotating the virtual wrench tools by taking the nuts as central shafts, and recording contour points of each group of rotating virtual wrench tools;
s6: obtaining the outlines of all parts, and calculating outline points of rectangular outlines of all parts;
s7: judging whether the rectangular outline of the part and the rectangular outline of the wrench interfere or not;
s8: judging whether the movable range is interfered;
s9: and displaying the checking result.
Preferably, the wrench tool includes a wrench that calculates one rectangular profile data and a socket wrench that calculates two rectangular profiles from a vertical shape.
Preferably, step S5 specifically includes:
the virtual wrench tool is a wrench, 8 contour points of the wrench are rotated by taking a nut as a central shaft, the wrench is rotated by 10 degrees from a starting position, 8 contour points of a group of virtual wrenches are recorded, the wrench is rotated by 360 degrees, and 36 groups of virtual wrench contour points are recorded; the virtual spanner tool is a socket spanner, the nut is used as a central shaft, 8 contour points of two contours of the socket spanner are synchronously rotated respectively, the rotation is 10 degrees from the initial position, 16 contour points of one group of socket spanner are recorded, the socket spanner is rotated for 360 degrees, and 36 groups of socket spanner contour points are recorded.
Preferably, calculating the contour point of the virtual wrench tool rotation according to the coordinate point rotation formula P "=p' =ru (θ); wherein P' is the contour point of the virtual wrench tool, and Ru (θ) isθ is the rotation angle, and a, b, c are values in a vector u (a, b, c) of the central axis of the nut obtained through the API interface.
Preferably, step S2 includes:
s21: loading a spanner tool model;
loading a spanner tool digital model from a configured path position through an API provided by three-dimensional design software, and simultaneously obtaining a handle of the spanner tool model;
s22: acquiring the outline of a wrench tool, and acquiring the maximum point and the minimum point of the outline;
s23: calculating rectangular profile data of the wrench tool;
according to the obtained maximum point and minimum point, setting 8 points of the contour as P0 to P7, and obtaining according to a contour calculation formula
P0(P0x,P0y,P0z)=(Xmin,Ymin,Zmin)
P1(P1x,P1y,P1z)=(Xmax,Ymin,Zmin)
P2(P2x,P2y,P2z)=(Xmax,Ymax,Zmin)
P3(P3x,P3y,P3z)=(Xmin,Ymax,Zmin)
P4(P4x,P4y,P4z)=(Xmin,Ymin,Zmax)
P5(P5x,P5y,P5z)=(Xmax,Ymin,Zmax)
P6(P6x,P6y,P6z)=(Xmax,Ymax,Zmax)
P7(P7x,P7y,P7z)=(Xmin,Ymax,Zmax);
The method of calculating the contour points of the rectangular contour of all the parts in step S6 is the same as S23, and 8 points of the rectangular contour of the parts, A0 to A7, are calculated.
Preferably, step S7 is to circularly calculate the rectangular outline of the part and the rectangular outline of the wrench tool according to the rectangular outline of all the parts obtained in step S6 and the rectangular outline of the 36 groups of wrench tools calculated in step S5, and determine whether there is interference; the rectangular outline of the part is set as an A outline, and the rectangular outline of the wrench tool is set as a P outline;
the specific judging method comprises the following steps:
s71: calculating whether the P profile is in the A profile or not, and judging whether the P profile is interfered or not;
s72: calculating whether the A contour is in the P contour or not, and judging whether the A contour is interfered or not;
s73: connecting P contour points, projecting 8 points of the A contour onto the surface of the P contour, judging whether the A contour and the P contour intersect or not, and judging whether interference exists or not;
s74: and connecting the points of the A contour, projecting 8 points of the P contour onto the surface of the A contour, judging whether the P contour and the A contour intersect, and judging whether interference exists.
Preferably, in step S8, according to the 36 sets of interference results calculated in step S7, the continuous 6 sets of interference results are a movable range, 36 movable ranges are obtained, and if all the interference is detected in the 36 movable ranges, the nut has collision risk when using the wrench tool, the risk is prompted to install the nut, the design needs to be modified again, and if one movable range does not interfere, the wrench tool can be used, and the design is reasonable.
A wrench tool operation space inspection system comprises a wrench tool module, a bolt and nut module, a calculation module, a display module, an API function and a bolt installation inspection instruction; the method is characterized in that: the calculation module comprises a virtual wrench tool calculation module, a wrench tool movement contour point calculation module, a part contour calculation module, a calculation interference module and a judgment module;
the virtual spanner tool calculating module is used for circulating the positions of all nuts and constructing a rectangular outline of the spanner tool on the positions of the nuts;
the wrench tool motion profile point calculating module is used for calculating and recording profile points of a group of virtual wrenches by rotating 10 degrees from a starting position, rotating the wrenches by 360 degrees and recording 36 groups of virtual wrench tool profile points;
the part contour calculation module is used for traversing all parts to obtain handles of all parts, obtaining the contour of the parts through an API provided by three-dimensional design software, and calculating the rectangular contour of the parts;
the calculation interference module is used for circularly calculating whether the rectangular outline of the part and the rectangular outline of the 36 groups of wrenches interfere or not;
the judging module is used for dividing the movable range, judging whether all the movable ranges have interference according to the interference result calculated by the interference calculating module, and judging whether the spanner tool is available.
Compared with the prior art, the invention has the beneficial effects that: (1) The invention creates a new inspection method, solves the problems that the original old mode is inspected by naked eyes, is designed empirically, has no inspection flow of mounting tools, needs to be identified and evaluated manually, and needs to spend a great deal of time and energy. (2) According to the invention, the profile of the wrench tool is calculated, the profile is rotated for 360 degrees by taking the axis of the nut as the center, the movement profile of the socket wrench is obtained, the profile with 10 degrees as the interval is circularly calculated and checked with other model profiles to obtain 36 interference results, 36 movable ranges are obtained according to the continuous 6 groups of interference results as one movable range, whether the 36 movable ranges are interfered is detected, the purpose of setting the 36 movable ranges is that the wrench tool is in the movable range in the using process, if the movable range is not available, the wrench tool cannot be installed, and one of the 36 movable ranges is proved to be available if the wrench tool is not interfered. Whether the wrench tool is available or not is judged by designing the movable range, whether the wrench tool is available or not can be accurately and correctly judged, the movable range judgment is more comprehensive, and the probability of misjudgment is reduced; the method system creates a new checking method for checking and judging whether the spanner tool is available, thereby judging whether the positions of the bolts and nuts on the design model are available, improving the quality of product design, and the design is carried out empirically without checking by naked eyes like the old mode. (3) The invention can realize the inspection of two spanner tools, and ensures that the selected use of the spanner tools in the installation is considered in the design process by detecting two different spanner tools, so that the risk of collision is avoided; the bolt mounting position after the production of the product is ensured to be more reasonable, the design is more perfect, the bolt mounting device is suitable for the mounting of different spanner tools, the use requirements of different spanner tools of clients are met, and the satisfaction degree of the clients is improved.
Drawings
FIG. 1 is a flow chart showing the steps of embodiment 1 of the present invention;
FIG. 2 is a schematic view of a rectangular outline structure of a wrench according to embodiment 1 of the present invention;
FIG. 3 is a schematic view of a rectangular outline structure of a socket wrench according to embodiment 1 of the present invention;
fig. 4 is a schematic structural diagram of a virtual wrench constructed at a nut in embodiment 1 of the present invention;
fig. 5 is a schematic structural diagram of a virtual socket wrench constructed at a nut in embodiment 1 of the present invention;
FIG. 6 is a schematic diagram of the movement profile of the virtual wrench at the nut of embodiment 1;
FIG. 7 is a schematic view of the movement profile of a virtual socket wrench at a nut in accordance with embodiment 1 of the present invention;
FIG. 8 is a schematic view of the XY plane with points in the outline of example 1 of the present invention;
FIG. 9 is a schematic YZ plan view of the point in outline of example 1 of the present invention;
FIG. 10 is a schematic view of calculation of the projection point P0' in embodiment 1 of the present invention;
FIG. 11 is a schematic diagram showing the intersection of the P profile and the A profile in embodiment 1;
fig. 12 is a schematic diagram showing calculation and derivation of a rotation matrix according to embodiment 1 of the present invention.
Detailed Description
For a further understanding of the objects, construction, features, and functions of the invention, reference should be made to the following detailed description of the preferred embodiments.
Example 1
A method for inspecting the operating space of a wrench tool, comprising the steps of:
s1: opening a digital model assembly;
opening a digital model assembly by using three-dimensional design software;
the three-dimensional design software is digital product modeling design software;
the digital model assembly is a digital product design model designed by engineers and comprises a part model, a component model and a final assembly model;
s2: acquiring wrench tool data in response to performing the bolt installation check;
the wrench tool data are geometric data of a digital model wrench, the geometric data used by the method are dot matrix rectangular outline data, the outline data are represented by minimum points and maximum points, and 8 points of the rectangular outline are calculated through the minimum points and the maximum points. The wrench tool comprises a wrench and a socket wrench, wherein the wrench can calculate rectangular outline data, and the socket wrench can calculate two rectangular outline data according to the vertical shape;
the method specifically comprises the following steps:
s21: loading a spanner tool model;
through the API provided by the three-dimensional design software, the digital model of the wrench tool is loaded from the path position of the appointed configuration in the background, and meanwhile, the handle of the wrench tool model is obtained. The digital model of the wrench tool is not displayed on an interface and is only stored in a memory opened by three-dimensional design software.
The handle is an identifier for identifying objects or items, and can be used for describing frames, files and the like, the data type of the handle is a 16-bit unsigned integer, and after the handle is obtained through the API, other functions can use the handle to refer to corresponding objects.
S22: acquiring the outline of a wrench tool, and acquiring the maximum point and the minimum point of the outline;
according to the handle of the wrench tool, obtaining the profile of the wrench tool, obtaining the maximum point and the minimum point of the profile, setting the profile of the wrench tool as P, obtaining profile data as Pmax, pmin and coordinates as (Xmax, ymax, zmax), (Xmin, ymin, zmin).
S23: calculating rectangular profile data of the wrench tool;
the rectangular profile data includes 8 points of the profile; according to the obtained maximum point and minimum point, setting 8 points of the contour as P0 to P7, and obtaining according to a contour calculation formula
P0(P0x,P0y,P0z)=(Xmin,Ymin,Zmin)
P1(P1x,P1y,P1z)=(Xmax,Ymin,Zmin)
P2(P2x,P2y,P2z)=(Xmax,Ymax,Zmin)
P3(P3x,P3y,P3z)=(Xmin,Ymax,Zmin)
P4(P4x,P4y,P4z)=(Xmin,Ymin,Zmax)
P5(P5x,P5y,P5z)=(Xmax,Ymin,Zmax)
P6(P6x,P6y,P6z)=(Xmax,Ymax,Zmax)
P7(P7x,P7y,P7z)=(Xmin,Ymax,Zmax);
S3: traversing the bolts and the nuts to obtain a position matrix of the bolts and the nuts;
collecting all bolts and nuts in a digital product design model in a name mode through an API provided by three-dimensional design software, and storing variables, wherein the bolts or nuts comprise names, identification IDs and the like, and the identification ID of each bolt or nut is unique; acquiring a position matrix of each bolt and a position matrix of each nut through an API provided by three-dimensional design software, wherein the position matrix refers to the vector values and the XYZ coordinate values of the bolts or the nuts in an assembly coordinate system, the position matrix of each bolt is constructed, and the position matrix of each nut is a 4X 3-order matrix; for example, the nut has a position matrix ofWherein each row of the matrix from top to bottom represents an X vector, a Y vector, a Z vector and a position coordinate value.
The bolt and the nut are used for fastening materials of two connecting pieces of a product.
S4: calculating a virtual wrench tool;
circulating the nuts, respectively calculating 8 points of the contour of the wrench tool according to the position matrix of the nuts, and obtaining the rectangular contour of the wrench tool at the position of the nuts;
the virtual wrench constructs a rectangular outline of a wrench tool on the position of the nut according to the position of the nut;
the method specifically comprises the following steps:
according to the position matrix of the nut obtained in the step S3, cycling the nut to construct a matrix M of the nut, wherein the matrix M of the nut is 4× formed by complementing the position matrix of the nut with 0Matrix of 4:/>
XYZ of 8 points of the rectangular outline of the wrench tool is complemented with 0 to a 4X 1 matrix, e.g
And calculating P 'according to a coordinate point conversion formula P' =M×P, and calculating to obtain the positions of 8 points of the rectangular outline of the wrench tool on the nut to construct the virtual wrench tool.
The conventional calculation and deduction formula is as follows:
x'=x*m00+y*m01+z*m02+w*m03
y'=x*m10+y*m11+z*m12+w*m13
z'=x*m20+y*m21+z*m22+w*m23
w'=x*m30+y*m31+z*m32+w*m33
And calculating positions of 8 contour points of the wrench on the nut to construct the virtual wrench.
S5: rotating the virtual wrench tool by taking the nut as a central shaft, and recording the outline points of each group of virtual wrenches which rotate; the virtual wrench tool is a wrench, 8 contour points of the wrench are rotated by taking a nut as a central shaft, the wrench is rotated by 10 degrees from a starting position, 8 contour points of a group of virtual wrenches are recorded, the wrench is rotated by 360 degrees, and 36 groups of virtual wrench contour points are recorded.
The virtual spanner tool is a socket spanner, the nut is used as a central shaft, 8 contour points of two contours of the socket spanner are synchronously rotated respectively, the rotation is 10 degrees from a starting position, 16 contour points of one group of socket spanner are recorded, the socket spanner is rotated for 360 degrees, and 36 groups of socket spanner contour points are recorded. Through detecting two kinds of different spanner tools, the spanner tools are selected to be used in the design and in the installation, the bolt installation position after the production of products is guaranteed to be more reasonable, the installation of the spanner tools is suitable, the use requirements of different spanner tools of customers are met, and the satisfaction of the customers is improved.
The calculation and deduction formula of the rotation matrix around the central axis is specifically as follows:
let the vector of the central axis of the nut be u (a, b, c) and let the rotation angle be θ;
step 1: rotating the rotation axis u around the x-axis to the plane xoz
The rotation is a common rotation around the x-axis, the angle is beta, the vector w is formed on the plane xoz after the rotation, the beta is equal to the included angle between the vector u and the z-axis formed by projecting u on the plane yoz in the figure, and the matrix is rotated according to the rotation around the x-axisTo correlate the matrix with a known value u (a, b, c), the length of the vector u is required, where u (0, b, c) is +.>Wherein->The rotation matrix about the x-axis is denoted Rx (β):
step 2: the value of vector w is calculated as a unit vector which is rotated by u about the x-axis so that x does not change to a and rotated to the xoz plane so that y is 0 and rotation does not cause a change in length, the z-component is readily calculated as
Then
Then the result of step 1, i.e. vector w, is rotated by- α (clockwise negative) around Y, according to the rotation matrix around Y
the matrix rotated around y is then noted as: ry (- α):
step 3: rotating θ about the z-axis rotates the matrix about the z-axis, denoted RZ (θ) from the rotation matrix about the z-axis:
step 4: the inverse process of step 2 is performed, and because the rotation matrix is an orthogonal matrix, the inverse matrix is equal to the transposed matrix, so that only the transposed matrix of step 2 is needed to obtain Ry (α) =ry (- α) T
Step 5: the reverse of step 1 is performed, with the same thing that step 1 transposes Rx (- β) =rx (γ) T :
Step 6: the result of rotation about the arbitrary unit vector u is Ru (θ):
ru (θ) =rx (- β) Ry (α) Rz (θ) Ry (- α) Rx (β) results are:
and calculating the outline point of the virtual wrench tool rotation according to a coordinate point rotation formula P '=P'. Times.Ru (theta).
S6: obtaining the outlines of all parts, and calculating outline points of rectangular outlines of all parts;
s61: traversing all parts through the API provided by the three-dimensional design software to obtain handles of all parts, and obtaining the contours of the parts through the API provided by the three-dimensional design software.
Let the contour of the part be A, obtain the maximum point and minimum point of the contour, let the acquired contour data be Amax, amin, coordinates (xmax, ymax, zmax), (xmin, ymin, zmin).
S62: calculating rectangular outline data of the part;
the calculation method is the same as the calculation of the rectangular profile data of the wrench tool in step S23, and 8 points (A0 to A7) of the profile a are calculated.
A0(A0x,A0y,A0z)=(xmin,ymin,zmin)
A1(A1x,A1y,A1z)=(xmax,ymin,zmin)
A2(A2x,A2y,A2z)=(xmax,ymax,zmin)
A3(A3x,A3y,A3z)=(xmin,ymax,zmin)
A4(A4x,A4y,A4z)=(xmin,ymin,zmax)
A5(A5x,A5y,A5z)=(xmax,ymin,zmax)
A6(A6x,A6y,A6z)=(xmax,ymax,zmax)
A7(A7x,A7y,A7z)=(xmin,ymax,zmax);
S7: judging whether the rectangular outline of the part and the rectangular outline of the wrench interfere or not;
and (3) according to the rectangular outlines of all the parts obtained in the step (S6) and the rectangular outlines of the 36 groups of wrenches calculated in the step (S5), circularly calculating the rectangular outlines of the parts and the rectangular outlines of the wrenches, and judging whether interference exists.
The specific judging method is as follows:
s71: calculating whether the P profile is in the A profile or not, and judging whether the P profile is interfered or not;
the maximum point of P is the point P6 (P6 x, P6y, P6 z), the minimum point of P is the point P0 (P0 x, P0y, P0 z) A, the minimum point of P is the point A0 (A0 x, A0y, A0 z), the maximum point is the point A6 (A6 x, A6y, A6 z), in the XY plane, the maximum point of P is greater than the minimum point of A and less than the maximum point of A, namely P6x > A0x and P6x < A6x, P6y > A0y and P6y < A6y, in the YZ plane, the maximum point of P is greater than the minimum point of A and less than the maximum point of A, namely P6z > A0z and P6z < A6z, when the conditions are all satisfied, the maximum point of P is in the contour A, the P contour is judged to be in the contour A, and the P contour is interfered with the A contour is concluded. Similarly, in the XY plane, the minimum point of P is greater than the minimum point of A and less than the maximum point of A, namely P0x > A0x and P0x < A6x, P0y > A0y and P0y < A6y, and in the YZ plane, the minimum point of P is greater than the minimum point of A and less than the maximum point of A, namely P0z > A0z and P0z < A6z, when the conditions are satisfied, the minimum point of P is in the profile A, the P profile is judged to be in the A profile, and the conclusion that the P profile interferes with the A profile is drawn.
S72: calculating whether the A contour is in the P contour or not, and judging whether the A contour is interfered or not;
in the XY plane, the maximum point of A is greater than the minimum point of P and less than the maximum point of P, namely A6x > P0x and A6x < P6x, A6y > P0y and A6y < P6y, and in the YZ plane, the maximum point of A is greater than the minimum point of P and less than the maximum point of P, namely A6z > P0z and A6z < P6z, when the conditions are satisfied, the maximum point of A is in the profile P, the A profile is judged to be in the P profile, and the conclusion that the A profile interferes with the P profile is drawn. Similarly, in the XY plane, the minimum point of A is greater than the minimum point of P and less than the maximum point of P, namely A0x > P0x and A0x < P6x, A0y > P0y and A0y < P6y, in the YZ plane, the minimum point of A is greater than the minimum point of P and less than the maximum point of P, namely A0z > P0z and A0z < P6z, when the conditions are satisfied, the minimum point of A is in the profile P, the A profile is judged to be in the P profile, and the A profile is concluded to interfere with the P profile.
S73: connecting P contour points, projecting 8 points of the A contour onto the surface of the P contour, judging whether the A contour and the P contour intersect or not, and judging whether interference exists or not;
connecting P contour points, setting 6 surfaces of the P contour, namely P surface 0123, P surface 4567, P surface 1562, P surface 0473, P surface 0154 and P surface 3267, respectively, and calculating 8 points of the A contour to be projected onto the P surface 0123 of the P contour to obtain points A0 ', A1', A2 ', A3', A4 ', A5', A6 'and A7';
it is then determined whether the proxels are in two contours: in the XY plane, the A0 'point is greater than the minimum point of P and less than the maximum point of P, namely A0' x > P0x and A0 'x < P6x, A0' y > P0y and A0 'y < P6y, A0' point is greater than the minimum point of A and less than the maximum point of A, namely A0 'x > A0x and A0' x < A6x, A0 'y > A0y and A0' y < A6y, in the YZ plane, A0 'is greater than the minimum point of P and less than the maximum point of P, namely A0' z > P0z and A0 'z < P6z, A0' is greater than the minimum point of A and less than the maximum point of A, namely A0 'z > A0z and A0' z < A6z, and when the conditions are satisfied, the A contour and the P contour intersect, and the P contour interfere. According to the same method, the points A1 ', A2 ', A3 ', A4 ', A5 ', A6 ', A7 ' are circularly calculated, and the intersection of the A profile and the P profile is judged. According to the same method, 8 points of the A contour are respectively projected to a P surface 4567, a P surface 1562, a P surface 0473, a P surface 0154 and a P surface 3267 of the P contour, 8 projection points are respectively obtained, whether the projection points are in the two contours or not is calculated, and whether the A contour is intersected with the P contour is judged;
s74: connecting the points of the A contour, projecting 8 points of the P contour onto the surface of the A contour, judging whether the P contour and the A contour intersect, and judging whether interference exists;
connecting the points of the A contour, setting 6 surfaces of the A contour as an A surface 0123, an A surface 4567, an A surface 1562, an A surface 0473, an A surface 0154 and an A surface 3267 respectively, calculating 8 points of the P contour and projecting the 8 points to the A surface 0123 of the A contour to obtain P0 ', P1', P2 ', P3', P4 ', P5', P6 'and P7' points, and judging whether the points are in the contour or not: in the XY plane, the P0 ' point is greater than the minimum point of P and less than the maximum point of P, namely P0 ' x > P0x and P0 ' x < P6x, P0 ' y > P0y and P0 ' y < P6y, and P0 ' point is greater than the minimum point of A and less than the maximum point of A, namely P0 ' x > A0x and P0 ' x < A6x, P0 ' y > A0y and P0 ' y < A6y, in the YZ plane, P0 ' is greater than the minimum point of P and less than the maximum point of P, namely P0 ' z > P0z < P6z, P0 ' is greater than the minimum point of A and less than the maximum point of A, namely P0 ' z > A0z and P0 ' z < A6z, and when the conditions are satisfied, the P profile and the A profile are judged to intersect. According to the same method, the points P1 ', P2 ', P3 ', P4 ', P5 ', P6 ', P7 ' are circularly calculated, and the intersection of the P profile and the A profile is judged. According to the same method, 8 points of the P contour are respectively projected to an A surface 4567, an A surface 1562, an A surface 0473, an A surface 0154 and an A surface 3267 of the A contour, 8 projection points are respectively obtained, whether the projection points are in the two contours or not is calculated, the intersection of the P contour and the A contour is judged, and the interference of the P contour and the A contour is judged.
The specific calculation formula of the projection of the points to the outline is as follows: let P0 point be P0 (x 4, y4, z 4), A0123 point be A1 (x 1, y1, z 1), A2 (x 2, y2, z 2), A3 (x 3, y3, z 3); the coordinates of the projection point P0 'are P0' (xp, yp, zp); 1) First calculate the vector
2) From the vector vertical relationship:
3) Let the plane equation be:
Ax+By+Cz+1=O
then there are:
and (3) solving to obtain:
p0' is on A-plane 0123, then:
axp + Byp + Czp +1=0 equation 3
4) Simultaneous (equation 1) (equation 2) (equation 3) constitutes a ternary system of first-order equations:
and (3) solving to obtain:
the projection point P0 ' is calculated, and the projection points P1 ' -P7 ' are calculated according to the same method.
S8: judging whether the movable range is interfered;
according to the 36 groups of interference results calculated in the step S7, the continuous 6 groups of interference results are a movable range, 1 group to 6 groups are set to be a movable range, 2 groups to 7 groups are set to be a movable range … … group to 1 group to be a movable range, 36 movable ranges are obtained, the interference of 36 movable ranges is detected, and a conclusion is drawn that the nut has collision risk when using a spanner tool, the nut is prompted to be provided with risk, the design needs to be modified again, and the design scheme is perfected. All nuts were cycled and a determination was made as to whether the 36 ranges of motion for each nut interfered. The purpose of setting 36 movable ranges is to indicate the movable range of the wrench tool in the use process, if the movable range is not available, the wrench tool cannot be installed, and one of the 36 movable ranges has no interference, so that the wrench tool can be used. The wrench tool is judged to be available through designing the movable range, whether the wrench tool is available can be accurately and correctly judged, and the movable range judgment is more comprehensive.
S9: displaying the checking result;
according to the API provided by the three-dimensional software, the identification IDs of nuts with 36 movable ranges judged to be interfered are obtained and displayed on a screen, and the positions of the problematic nuts are conveniently searched in the model by virtue of the identification IDs, so that subsequent engineers can conveniently modify the nuts, the efficiency of the engineers is improved, and the quality of industrial design products is improved.
Example 2
A wrench tool operation space inspection system comprises a wrench tool module, a bolt and nut module, a calculation module, a display module, an API function and a bolt installation inspection instruction;
the wrench tool obtaining module is used for obtaining geometric data of a wrench tool, specifically obtaining the minimum point and the maximum point of the outline of the wrench tool, and calculating 8 points of the rectangular outline of the wrench tool through the minimum point and the maximum point;
the bolt and nut acquisition module is used for collecting all bolts and nuts in a name mode, storing the bolts and nuts by using variables, and acquiring a position matrix of each bolt and nut through an API provided by three-dimensional design software;
the calculation module is used for circulating all nuts, calculating whether the movable range of the wrench tool and the contour of the part are all interfered, and judging whether the wrench tool is available;
the display module is used for acquiring and displaying the identification ID of the corresponding nut under the condition that the movable range of the wrench tool and the contour of the part are all interfered;
the API function is a data interface which is provided by three-dimensional design software and can be used for carrying out data communication, instruction execution and data transmission with the spanner tool operation space inspection system;
the bolt installation checking instruction is an instruction set of a one-key execution spanner tool data acquisition module, a bolt acquisition module, a nut acquisition module, a calculation module and a display module;
the calculation module comprises a virtual wrench tool calculation module, a wrench tool movement contour point calculation module, a part contour calculation module, a calculation interference module and a judgment module;
the virtual spanner tool calculating module is used for circulating the positions of all nuts and constructing a rectangular outline of the spanner tool on the positions of the nuts;
the module for calculating the movement contour points of the wrench tool is used for calculating the contour points of a group of virtual wrenches and recording, starting from the initial position, rotating 10 degrees, rotating the wrenches by 360 degrees and recording 36 groups of virtual wrench tool contour points.
The part contour calculation module is used for traversing all parts to obtain handles of all parts, obtaining the contour of the parts through an API provided by three-dimensional design software, and calculating the rectangular contour of the parts;
the calculation interference module is used for circularly calculating whether the rectangular outline of the part and the rectangular outline of the 36 groups of wrenches interfere or not.
The judging module is used for dividing the movable range, judging whether all the movable ranges are interfered according to the interference result calculated by the interference calculating module, further obtaining a conclusion, judging that the nut has collision risk when the wrench tool is used if the nut is interfered, and enabling the wrench tool to be unavailable if one movable range is not interfered.
When the wrench tool operation space inspection system is used, a design engineer opens a digital model for assembly by using three-dimensional design software, executes a bolt installation inspection instruction, a program obtains outline data of a wrench tool, traverses nuts matched with all bolts through an API provided by the three-dimensional design software, calculates the outline of a socket wrench at the actual position of the nuts, rotates 360 degrees by taking the axis of the nut as the center according to the outline, obtains the movement outline of the socket wrench, circularly calculates the outline and other model outline interference inspection at intervals of 10 degrees to obtain 36 interference results, judges that the nut has tool installation obstruction in the installation process when one interference exists between the outline of the socket wrench and the model, and needs to recheck, completes installation inspection at a design end, identifies installation risks in advance, performs inspection actions through simple operation, and completes production installation simulation work.
The method system of the invention creates a new inspection method, solves the problems that the original old mode is inspected by naked eyes, is designed empirically, has no inspection flow of mounting tools, is identified and evaluated manually, and needs a great deal of time and effort.
The invention has been described with respect to the above-described embodiments, however, the above-described embodiments are merely examples of practicing the invention. It should be noted that the disclosed embodiments do not limit the scope of the invention. On the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention.
Claims (8)
1. A method for checking the operation space of a wrench tool is characterized in that: the method comprises the following steps:
s1: opening a digital model assembly;
opening a digital model assembly by using three-dimensional design software;
s2: acquiring wrench tool data in response to performing the bolt installation check;
the wrench tool data are geometric data of a digital model wrench, and the geometric data are rectangular outline data;
s3: traversing the bolts and the nuts to obtain a position matrix of the bolts and the nuts;
s4: calculating a virtual wrench tool;
the virtual wrench tool is used for constructing a rectangular outline of the wrench tool at the position of the nut according to the position of the nut;
s5: rotating the virtual wrench tools by taking the nuts as central shafts, and recording contour points of each group of rotating virtual wrench tools;
s6: obtaining the outlines of all parts, and calculating outline points of rectangular outlines of all parts;
s7: judging whether the rectangular outline of the part and the rectangular outline of the wrench interfere or not;
s8: judging whether the movable range is interfered;
s9: and displaying the checking result.
2. A method of checking the operating space of a wrench tool according to claim 1, wherein: the wrench tool includes a wrench that calculates one rectangular profile data and a socket wrench that calculates two rectangular profiles based on a vertical shape.
3. A wrench tool operating space inspection method according to claim 2, wherein: the step S5 specifically comprises the following steps:
the virtual wrench tool is a wrench, 8 contour points of the wrench are rotated by taking a nut as a central shaft, the wrench is rotated by 10 degrees from a starting position, 8 contour points of a group of virtual wrenches are recorded, the wrench is rotated by 360 degrees, and 36 groups of virtual wrench contour points are recorded;
the virtual spanner tool is a socket spanner, the nut is used as a central shaft, 8 contour points of two contours of the socket spanner are synchronously rotated respectively, the rotation is 10 degrees from the initial position, 16 contour points of one group of socket spanner are recorded, the socket spanner is rotated for 360 degrees, and 36 groups of socket spanner contour points are recorded.
4. A wrench tool operating space inspection method according to claim 3, wherein: rotating formula P "=p' according to coordinate pointCalculating the outline point of the rotation of the virtual wrench tool; where P' is the profile point of the virtual wrench tool,is->θ is a rotation angle, and a, b, c are values in a vector u (a, b, c) of the central axis of the nut obtained through the API interface.
5. A method of checking the operating space of a wrench tool according to claim 1, wherein: the step S2 comprises the following steps:
s21: loading a spanner tool model;
loading a spanner tool digital model from a configured path position through an API provided by three-dimensional design software, and simultaneously obtaining a handle of the spanner tool model;
s22: acquiring the outline of a wrench tool, and acquiring the maximum point and the minimum point of the outline;
s23: calculating rectangular profile data of the wrench tool;
according to the obtained maximum point and minimum point, setting 8 points of the contour as P0 to P7, and obtaining according to a contour calculation formula
P0(P0x, P0y, P0z) = (Xmin,Ymin,Zmin)
P1(P1x, P1y, P1z) = (Xmax,Ymin,Zmin)
P2(P2x, P2y, P2z) = (Xmax,Ymax,Zmin)
P3(P3x, P3y, P3z) = (Xmin,Ymax,Zmin)
P4(P4x, P4y, P4z) = (Xmin,Ymin,Zmax)
P5(P5x, P5y, P5z) = (Xmax,Ymin,Zmax)
P6(P6x, P6y, P6z) = (Xmax,Ymax,Zmax)
P7(P7x, P7y, P7z) = (Xmin,Ymax,Zmax);
The method for calculating the contour points of the rectangular contours of all the parts in the step S6 is the same as that in the step S23, and 8 points A0-A7 of the rectangular contours of the parts are calculated.
6. A method of checking the operating space of a wrench tool according to claim 5, wherein: step S7, according to the rectangular outlines of all the parts obtained in the step S6 and the rectangular outlines of the 36 groups of wrench tools calculated in the step S5, circularly calculating the rectangular outlines of the parts and the rectangular outlines of the wrench tools, and judging whether interference exists or not; the rectangular outline of the part is set as an A outline, and the rectangular outline of the wrench tool is set as a P outline;
the specific judging method comprises the following steps:
s71: calculating whether the P profile is in the A profile or not, and judging whether the P profile is interfered or not;
s72: calculating whether the A contour is in the P contour or not, and judging whether the A contour is interfered or not;
s73: connecting P contour points, projecting 8 points of the A contour onto the surface of the P contour, judging whether the A contour and the P contour intersect or not, and judging whether interference exists or not;
s74: and connecting the points of the A contour, projecting 8 points of the P contour onto the surface of the A contour, judging whether the P contour and the A contour intersect, and judging whether interference exists.
7. A method of checking the operating space of a wrench tool as claimed in claim 6, wherein: step S8 is to obtain 36 movable ranges according to 36 groups of interference results calculated in step S7, wherein the continuous 6 groups of interference results are one movable range, the 36 movable ranges are detected to have interference, if the 36 movable ranges have interference, the nut has collision risk when using a wrench tool, the risk of nut installation is prompted, the design needs to be modified again, and if one movable range does not have interference, the wrench tool can be used, and the design is reasonable.
8. The wrench tool operation space inspection system according to claim 1, comprising a wrench tool module, a bolt and nut module, a calculation module, a display module, an API function, and a bolt installation inspection instruction; the method is characterized in that: the calculation module comprises a virtual wrench tool calculation module, a wrench tool movement contour point calculation module, a part contour calculation module, a calculation interference module and a judgment module;
the virtual spanner tool calculating module is used for circulating the positions of all nuts and constructing a rectangular outline of the spanner tool on the positions of the nuts;
the wrench tool motion profile point calculating module is used for calculating and recording profile points of a group of virtual wrenches by rotating 10 degrees from a starting position, rotating the wrenches by 360 degrees and recording 36 groups of virtual wrench tool profile points;
the part contour calculation module is used for traversing all parts to obtain handles of all parts, obtaining the contour of the parts through an API provided by three-dimensional design software, and calculating the rectangular contour of the parts;
the calculation interference module is used for circularly calculating whether the rectangular outline of the part and the rectangular outline of the 36 groups of wrenches interfere or not;
the judging module is used for dividing the movable range, judging whether all the movable ranges have interference according to the interference result calculated by the interference calculating module, and judging whether the spanner tool is available.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211513637.1A CN116050006A (en) | 2022-11-29 | 2022-11-29 | Wrench tool operation space inspection method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211513637.1A CN116050006A (en) | 2022-11-29 | 2022-11-29 | Wrench tool operation space inspection method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116050006A true CN116050006A (en) | 2023-05-02 |
Family
ID=86121041
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211513637.1A Pending CN116050006A (en) | 2022-11-29 | 2022-11-29 | Wrench tool operation space inspection method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116050006A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116989717A (en) * | 2023-09-26 | 2023-11-03 | 玛斯特轻量化科技(天津)有限公司 | Product interference detection method and device |
-
2022
- 2022-11-29 CN CN202211513637.1A patent/CN116050006A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116989717A (en) * | 2023-09-26 | 2023-11-03 | 玛斯特轻量化科技(天津)有限公司 | Product interference detection method and device |
CN116989717B (en) * | 2023-09-26 | 2024-01-12 | 玛斯特轻量化科技(天津)有限公司 | Product interference detection method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Zhuang et al. | Simultaneous robot/world and tool/flange calibration by solving homogeneous transformation equations of the form AX= YB | |
US10401844B2 (en) | Simulator, simulation method, and simulation program | |
CN116050006A (en) | Wrench tool operation space inspection method and system | |
CN110370298B (en) | Automatic planning method for welding robot track | |
CN109767416B (en) | Positioning system and method for mechanical equipment | |
CN105180962B (en) | A kind of cooperating robot's basis coordinates system scaling method based on the spot projection of space two | |
CN114299104B (en) | Automobile spraying track generation method based on multiple 3D (three-dimensional) vision | |
CN105573143A (en) | Inverse kinematics solving method for 6-DOF (degree of freedom) industrial robot | |
Wang et al. | A plane projection based method for base frame calibration of cooperative manipulators | |
Rodrigues et al. | Robot trajectory planning using OLP and structured light 3D machine vision | |
CN113305847B (en) | Building 3D printing mobile mechanical arm station planning method and system | |
US6597967B2 (en) | System and method for planning a tool path along a contoured surface | |
CN106447781B (en) | It is a kind of based on Minkowski and towards the collision checking method of automatic assembling | |
Dong et al. | Off-line programming of Spot-weld Robot for Car-body in White Based on Robcad | |
Li et al. | Extended octree for cutting force prediction | |
Chen et al. | Transformative industrial robot programming in surface manufacturing | |
CN115982798A (en) | Method and system for checking screwdriver operation space | |
CN111168683B (en) | Robot path interference detection method, device, medium and equipment | |
Morimoto et al. | A GPU based algorithm for determining the optimal cutting direction in deep mold machining | |
Shih et al. | Grinding complex workpiece surface based on cyber-physical robotic systems | |
KR20130015426A (en) | Car body shop construction method that take advantage of 3d plant construction amount of work simulation | |
JP2751206B2 (en) | Numerical control processing method | |
JP2021084218A (en) | Information presentation device, information presentation method, and information presentation program | |
JP2518177B2 (en) | Mutual interference check method for robots | |
JP2518178B2 (en) | Program display method for checking mutual interference of robots |
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 |