The present invention concerns a method for scanning the surface of a workpiece and a related apparatus.
Numerous methods for scanning are known, in which a mechanical probe is fixed on a machine spindle which traverses the surface of a workpiece in straight lines over each possible direction (x,y,z). After each line is completed the machine spindle moves the probe to a new position displaced from the completed line and repeats the movement along a parallel line.
One major drawback of these methods known from the art is that they are relatively slow for scanning complex forms, since the whole machine needs to be moved backwards and forwards while covering the whole scanning area of the surface. Furthermore, the accelerations and decelerations of the machine can introduce inaccuracies in the measurement process because of the strong inertia forces due to the large mass of the pieces in charge of positioning the surface detecting device. As a result, elastic deformations induced by inertia forces can affect negatively the measures.
In order to minimize the inertia effects and thus guarantee better precision results, constant speed scanning apparatus have been introduced, as in EP1489377. These scanning apparatus are yet not suited for non rectilinear movements.
Other scanning apparatus involving rotating movements of a probe are also known. Such scanning methods are, in contrast, very well suited for surfaces with spherical or cylindrical forms, but not for plane surfaces. U.S. Pat. No. 5,895,442 describes an example of such a probe allowing for constant speed scanning along cylindrical or spherical surfaces thanks to stored corrective values.
EP0402440 discloses a scanning apparatus which copes more efficiently with surfaces dealing with more complex profiles. The apparatus allows for additional degrees of freedom in rotation on top of the linear movements according to the conventional (x,y,z) axes. The probe consists of a stylus that is mounted on a head of a measuring machine, whereby the head includes shafts that can rotate about two orthogonal axes. The orientation of the stylus can take any direction so that the tip keeps the contact with the surface to be scanned. This way, the scanning can be carried out more efficiently along curved paths while the inertia effects are minimized thanks to the light weight of the stylus. However, this apparatus does not take into account cinematic effects to evaluate the deflecting forces applied on the probe, so that the precision is not optimal. Furthermore, those cinematic effects amplify the abrasion on the tip of the probe due to friction forces applied along the scanning path.
The aim of the present invention is to overcome the limitations of the solutions known from the prior of the art.
According to the invention, these aims are achieved by means of a method for scanning a surface of a workpiece 1 at a constant scanning speed /va/ using a scanning probe 2 mounted on a support 3 on a coordinate measuring machine (CMM) 4. The CMM contains a first set of actuators 6, 7, 8 to move the support according to three linear axis (x,y,z), and the support 3 contains a second set of actuators 14, 17 for actuating the movement of the scanning probe 2 relative to said support 3. The CMM including a controller 33 coupled to the sets of actuators 6, 7, 8,14, 17.
This method comprises the steps of:
(i) determine a value for the scanning speed;
(ii) operate the sets actuators 6, 7, 8,14, 17 to position the probe tip 25 in contact with the surface 1;
(iii) operate the first set of actuators 6, 7, 8 to move the support 3 along a determined trajectory 36;
(iv) operate the second set of actuators 14, 17 to produce, simultaneously with the relative movement of the support 3 with respect to the surface, movements of the scanning probe 2 relative to the support 3.
The controller 33 adjusts the actuation of both sets of drive means 6, 7, 8,14, 17 along a scanning path 37 in order to maintain the scanning speed equal to the determined value /va/ on at least segments 40 of the scanning path 37.
This invention fulfils the need in the measuring field of a scanning apparatus that can scan all types of surfaces efficiently, e.g. through oscillatory movements, while maintaining a very accurate precision during the whole measurement process, possibly over the whole scanning path. The feature of a constant scanning speed also improves the lifetime of the probes by reducing the overheating due to greater friction forces in acceleration phases.
Another benefit of the disclosed scanning apparatus is a simple sampling process in order to provide an even distribution of discrete points whose coordinates need to be measured on a surface along the scanning path. Indeed the points will be equally spread along the scanning path by simply setting regular time intervals for the sampling.
The invention will be better understood with the aid of the description of an embodiment given by way of example and illustrated by the figures, in which:
A coordinate measuring machine 4 is disclosed in
According to the circumstances, the CMM could be equipped with several kind of measuring probes, including, for example, but not exclusively:
a contact probe, as represented in
a laser probe (not represented) in which the probe shines one or more laser beams on the surface, and gives the distance along the light paths;
an optical probe, based on a micro imaging device or machine vision system.
The following description will be made with special reference to the first case of a touch-type probe 2, which is brought by the CMM 4 in contact relationship to the points of the surface 1 whose coordinate are to be measured, along a scanning path. This is not, however an essential feature. In the case of a non-contact probe, the method of the invention would equally be applicable, by aligning the probe with those points of the surface whose coordinates are t be measured. Generally the invention includes the steps of bringing the measuring probe, with the CMM, in a measuring relationship with points of the surface whose coordinates are to be measured, along a scanning path that is followed at constant speed.
In the following, the directions “vertical” and “horizontal” are used with reference to the conventional orientation f a CMM, as illustrated on
Support 3 is movable in any linear direction (X, Y, Z) thanks to a first set of drive means represented schematically, in
Since most of the components of the support 3 are quite heavy, the trajectory 36 followed by the support 3, shown further on
In contrast to support 3 the probe 2 is made of light material. While the support 3 is positioned to determine roughly an area to scan and moved along a preferably straight trajectory 36, the probe 2 is meant to make the scanning more efficient in providing more reference points and coordinate measures over the surface 1. In order to do so, the probe 2 can be moved transversally to the instantaneous direction of the rectilinear trajectory 36 with rotating movements relatively to the support 3. These rotary movements can be oscillatory movements, for example. They are actuated by a second set of drive means 14, 17, whose goal can be on one hand to determine angular speeds ω1, ω2 according to a corresponding axis, but can also on the other hand be to apply a torque T1, T2 allowing to keep the contact with the surface 1 while doing it. The tip of the probe 25, preferably spherical, can thus be maintained in contact with the scanned surface 1, while the scanning is performed at a constant speed Vs that is defined later in this document. The contact force F between the tip of the probe 25 and the surface to scan 1 is defined as the opposite of the reaction applied by the surface on the probe tip 25. This contact force also illustrated on
The probe head 24 is designed so that the probe 2 can also freely rotate around another axis, whereby this second axis is orthogonal to the first axis (Z in this example) but its direction in the plane depends on the position of the central shaft. The second actuator 17 actuates the rotational movements along this second axis, and is preferably also an electric motor. The derived angular speed of the rotational movements according to this axis is also referred to as ω2.
In this example we assume, for the sake of simplicity, that the two axes of motors 14, 17 meet in one point in space 20, even if it is not necessarily always the case. The skilled person would be able to see that our derivations and the methods of the invention apply equally to the general case. This point 20 is the centre of both rotational movements and represents possibly the centre of a Galilean reference system when the support 3 is moved at a constant rectilinear speed. The length of the probe 23 allows to determine the position of the contact point between the tip of the probe 25 and the intersection of the two axes 20, and thus in turn to derive the absolute coordinates of the contact point, since the coordinates of the point 20 along the trajectory 36 are known, as explained further in
In order to keep the magnitude of the speed vector 26 at the level of the probe tip 25 constant, the sum of the two composing speed vectors, namely the speed vector v of the support on one hand, and the relative speed vector vr of the relative movement of the probe tip 25 with respect to the support on the other hand, must provide, by vector composition, a constant value or, or at least a value constant within a given approximation range, so that the accelerations are small and the friction forces do not wear away the tip of the probe 25 too quickly, while the inertia forces also remain negligible. The centre of the coordinate reference system for the relative movements of the probe is chosen as the point 20 of
In the case of a plane surface as shown in
x
r
=−R·cos(α(t)) 1)
y
r
=R·sin(α(t))
and the corresponding horizontal components vrx and vry of the relative speed vector vr by:
v
rx
=R·sin(α(t))·{dot over (α)}(t) 2)
v
ry
=R·cos(α(t))·{dot over (α)}(t)
We have taken, for simplicity, a path 36 for the head 3 parallel to the X axis the translation speed of the head 3. In this case, which is straightforward to generalize, the motion of the head 3 is fully described by its x coordinate xh(t) and by the relative velocity v(t)=dxh/dt. The absolute speed va of the measure point 90 with respect to the object under measurement has then components:
v
ax
=v(t)+R·sin(α(t))·{dot over (α)}(t) 3)
v
ay
=R·cos(α(t))·{dot over (α)}(t)
Requiring constant absolute speed of the contact point /va/=K introduces a relationship between xh(t) and α(t)
{dot over (x)}
h(t)=√{dot over (α)}{dot over (α)}2−R sin(α){dot over (α)} 4)
where the right-handed part is fully known. Equation (4) is a separate-variables ordinary differential equation for xh(t) that can be easily integrated numerically, for any given set of parameters R, K, α(t), provided that the inequality
K≧|R cos(α){dot over (α)}| 5)
is satisfied, otherwise equation (4) has no real solutions. This corresponds to the fact that the value K must be sufficiently large to accommodate the speed imposed by the angular swing of the probe.
It can be observed that equation (4) could provide, in some cases, solutions in which v(t)=dxh/dt changes sign, which would correspond to a back-and-forth motion of the machine head 3. In many cases, however, it would be advantageous to chose the value of K, in relation to the amplitude and speed of oscillation in α, in order to obtain a motion of the head always in the same sense, to reduce oscillations and errors.
The controller of the CMM can therefore calculate, in real time or prior to the scanning, a path for the probe head 3, along which the translation speed is not strictly constant, but given by equation (4) above. In this way the measured tip 25 of the probe 2 will scan a series of points on the surface along a curvilinear path 37, resulting from the composition of the motion of the head 3 and of the probe 2, along which the measure point 90, corresponding to the point of contact in the case of a contact probe, moves with constant velocity /va/=K.
It is of course not possible to impose a rigorous constant speed with infinite precision. The real speed of the point 90 will, in real cases, be affected by some error, due to the limitation of the machine and of the computing algorithm. In this case, the CMM can be programmed in such a way as to maintain the speed /va/ constant within some defined tolerance.
In some cases, particularly in presence of rapid swings of the probe 2, equation (4) could yield an expression for xh(t) that exceeds the dynamic limits of the CMM. It may be possible, for example, that the constancy of velocity can not be guaranteed in proximity of the inversion points in the oscillation of the probe 2. According to another aspect of the invention the CMM can be programmed to deal with such limitations. For example the speed may be kept constant in an area 41, or in selected segments 40 of the scanning path, in which the dynamic limitations of the CMM are not exceeded, and allowed to vary outside this area or these segments.
According to this preferred embodiment of the invention, it is possible to easily sample coordinates 44 regularly along the segments of the scanning path 40 on the scanning speed /va/ is constant. The time intervals simply need to be chosen equal so that the coordinates 44 sampled are equally spread along the scanning path 37. With this scanning method, it is hence easy to obtain an efficient distribution of the points to be measured in choosing adequately the values for the boundary and the sampling time interval Δt. The coordinates measured 44 can be stored in the memory of the controller on the fly.
In a preferred embodiment of the invention, not only the speed is maintained constant but also the deflecting force F applied to the tip of the probe 2 so that the coordinates measured along the scanning path 37 are as accurate as possible. To this end, while the angular speed 16 ω1 is maintained constant on segments of the scanning path 37 by the first motor 14, the second motor 17 is set to a constant torque T2. Although the following variant embodiment is not described, it would also be possible to maintain the torque T1 of the first motor 14 constant and the angular speed ω2 19 of the second motor 17 constant. This possibility is suited for surfaces with a different orientation relative to the rotation axis of the probe.
Although this feature is not illustrated by any of the figures, it could be possible to put an accelerometer into the probe 2 so that the speed can be measured and compared the value that the invention strives to maintain at a constant level. This feedback feature could nevertheless be provided regardless from the correction features disclosed in this document.
The example above shows how the CMM can be programmed in order to follow a scanning path with the tip 25 of the probe (or, alternatively, measure a point 90 with a non-contact probe) while keeping a constant absolute scanning speed /va/=K. It is clear that the invention can be extended to scanning along a path with a variable scanning speed following a predetermined speed profile /va/=va(t).
Although the previous example dealt with a quite simple case, the method of the invention can be extended to a complex path on a general surface in three dimensions.
According to a preferred three-dimensional embodiment of the invention, the parameters of the CMM axes, that is the position of X, Y, Z, α, θ axes is precalculated, or calculated in real time, using inverse-kinematics transformations, in order to follow a scanning path 37 on a generic three-dimensional object, which is followed at constant speed /va/=K or, according to a variant, following a predetermined speed profile /va/=va(t).
We assume that the CMM status is determined by the value of the positions of all its degrees of freedom. In the case of the machine represented in
In general, particularly when the machine considered includes rotational degrees of freedom, the forward kinematics is not an injective correspondence, that is, one same position of the measure point can be obtained by several combinations of machine parameters. In this case, the FK transformation is not strictly invertible in a mathematical sense. It is however possible to calculate, for a given position of the measure point 90, a combination, among the several possible, of the parameters X, Y, Z, α, Θ providing such measure point. This is indicated as an inverse kinematics operation or, in short, IK.
Several methods are known to perform reverse kinematics transformation, according to the properties of the machine. While direct inversion methods are known, inverse kinematics can often be regarded and implemented as a minimization problem, in the sense that an IK transformation is equivalent to finding a combination of machine parameters minimizing a distance between the probe tip and a desired target position. This is often advantageous when the displacements are small and a close solution is available as a starting point, and when a movement can be decomposed in a series of small consecutive displacement, as it will be the case further on.
The inherent ambiguity of inverse kinematics transformation can be useful, in that it allows imposing additional constraints to the solution. In the case of the CMM of the invention, for example, it would be possible to use an inverse kinematics calculation that not only brings the measuring probe to a selected measure point, but also maintains a constant inclination of the probe 2 with respect to the surface of the workpiece. In a minimization implementation, this can be obtained by adding a penalty factor to the minimized function, to take into account the orientation of the probe.
The control on the orientation of the probe is advantageous, because the measurement errors are dependent on the probe angle, both in contact probe and in non-contact probes. If an optical probe is used, for example, it is advantageous to have the optical beam orthogonal to the surface under measure.
According to a variant of the present invention, the CMM controller has a representation of a scanning path 37 which is to be followed by the probe 2. This could be an external input, for example a path provided by the operator or by a higher controller, or it could be generating internally by the controller, according to the circumstances. The scan path 37 is a full three-dimensional curve, corresponding to the profile of the piece to be measured.
As shown in
Each segment 61 corresponds to a starting point and a target point to reach. The CMM brings the probe 2 in the position of the starting point P0 of the first segment, which corresponds to a certain starting set of axes parameters (X0, Y0, Z0, α0, Θ0). The controller obtains, by an IK operation, a set of parameters (X1, Y1, Z1, α1, Θ1) corresponding to the end point P1of the same segment. The controller generates then instructions for the actuators of the CMM to modify the axes parameters from (X0, Y0, Z0, α0, Θ0) to (X1, Y1, Z1, α1, Θ1) in a determined time interval Δt. Consequently the probe 2 moves from P0 to P1 in the time Δt. The method then repeats to points P2, P3 and so on.
Thanks to the method of the invention as exemplified above, the probe 2 scans the path 37 with a constant velocity /va/=Δl/Δt. The method allows the probe to follow a complex three-dimensional path, respecting the shape of the object under measurement, at constant speed. the skilled person could also extend the method to the case of non-uniform segments, by adapting the time intervals accordingly, or to obtain a generic speed profile /va/=va(t).
Preferably, the IK transformation imposes some additional desirable constraints, for example the inclination of the probe with respect to the workpiece's surface can be kept constant along the path 37. Also, the minimization algorithm can be adapted to prefer movement of the rotational axes over those of the linear axes, in order to minimize vibrations and errors.
While the probe 2 scans the path 37, the controller of the CMM also samples the coordinates of the measure points 60. This can be done for example in correspondence of the points P0, P1, . . . or at other positions along the path 37. If the sample is done at constant rate in time, the resulting measured points will also be uniformly distributed along the path 37.
According to a preferred variant of the invention, the method is carried out in real-time during the scan. The CMM controller calculates the IK transformations and generates the instructions for the actuator during the actual movement. This allows adapting the path 37 in order to follow deviations from a nominal profile, as derived from the coordinates of the sampled points 60. According to other variants, however, the movements could be fully or partly pre-calculated.
The inverse kinematics approach for adjusting the speed is also suited to make instantaneous corrections of the speed when the measured coordinates 44 do not match the theoretical coordinates 60 on the scanning path 37. Indeed, since the speed is derived from a difference in coordinates—origin and the target coordinates—and since the instantaneous coordinates are always known while scanning, the computation of the speed its adjustment to any desired value can be done easily and accurately on the fly, as long as the measured coordinates are themselves accurate.
If the CMM is equipped with a contact scanning probe 2, the deflection of the probe must be kept within very narrow limits in order to guarantee a reliable measure. In a typical case, the useful deflection range of the probe 2 is of about 1 mm, or less. Such precise knowledge a priori is not always possible. In many situations (for example in a quality control step of a production line) the CMM task is to scan precisely objects which may be affected by a large amount of inaccuracy.
In order to make sure that the coordinates are always provided with enough accuracy, it possible to modify in real time the scanning path 37 according to a compensation vector derived from the coordinates of points 60 already measured, and from the output of the deflection sensor in the probe. In this way the scan path 37 is constantly adapted, for any individual workpiece and dynamically along the scan, to maintain the deflection as constant as possible. If the transitions between the individual steps P0, P1, . . . are computed in real time, the system will still be able to follow the path at constant velocity /va/. Since constancy of deflection also means constancy of the contact force, the method of the invention also provides, when applied to a contact scanning probe, a constant contact force along a three-dimensional scan path 37 which is followed at constant speed or according to a chosen speed profile.
As seen previously, the IK transformation may, in some cases, result in impossible instructions, for example movements that go beyond the physical speed or acceleration limits of the CMM. In this case, the chosen path 37 can not be followed entirely at constant speed. The CMM can be programmed to cope with such a situation, for example by generating an error to raise the attention of an operator, calling a condition-handling procedure, or release the constraint of constant speed, until the algorithm is able to converge again.
Number | Date | Country | Kind |
---|---|---|---|
2007106415.8 | Apr 2007 | EP | regional |