COORDINATE POSITIONING APPARATUS AND METHOD OF OPERATION

20200049498 ยท 2020-02-13

Assignee

Inventors

Cpc classification

International classification

Abstract

A method of calibrating a contact probe having a deflectable stylus and configured to provide at least one signal which is indicative of the extent of deflection of the stylus, the contact probe being mounted on a coordinate positioning machine which facilitates reorientation of the contact probe about at least one axis. The method includes: taking measurement data obtained with the contact probe positioned at a plurality of different orientations about the at least one axis; and determining from the measurement data at least one gain variation model which models any apparent variation in the gain of the at least one probe signal dependent on the orientation of the contact probe about the at least one axis.

Claims

1. A method of calibrating a contact probe having a deflectable stylus and configured to provide at least one signal which is indicative of the extent of deflection of the stylus, the contact probe being mounted on a coordinate positioning machine which facilitates reorientation of the contact probe about at least one axis, comprising: taking measurement data obtained with the contact probe positioned at a plurality of different orientations about the at least one axis; and determining from the measurement data at least one gain variation model which models any apparent variation in the gain of the at least one probe signal dependent on the orientation of the contact probe about the at least one axis.

2. A method as claimed in claim 1, in which said measurement data is obtained at a plurality of different stylus deflections for at least one orientation about the at least one axis.

3. A method as claimed in claim 2, in which for a plurality of said different orientations, measurement data is obtained at a plurality of different stylus deflections.

4. A method as claimed in claim 1, in which the contact probe is configured to provide at least first and second probe signals, and in which the at least one gain variation model models any apparent variation in the gains of the at least first and second probe signals dependent on the orientation of the contact probe about said at least one axis.

5. A method as claimed in claim 1, in which the coordinate positioning machine facilitates reorientation of the contact probe about at least two axes, and in which the method comprises: taking measurement data obtained with the contact probe positioned at a plurality of different orientations about the at least two axes; and determining from the measurement data, at least one gain variation model which models any apparent variation in the gain of the at least one probe signal dependent on the orientation of the contact probe about the at least two axes.

6. A method as claimed in claim 1, in which said measurement data comprises a first set of measurement data obtained at a first orientation about the at least one axis, and at least one second set of measurement data obtained at a second orientation about the at least one axis, in which the at least one second set of measurement data is less comprehensive than the first set of measurement data.

7. A method as claimed in claim 6, comprising using at least the at least one second set of measurement data to determine how the gain of the one or more probe signals appears to vary depending on the orientation of the contact probe about the at least one axes.

8. A method as claimed claim 1, further comprising determining an orientation-independent probe signal conversion model.

9. A method as claimed in claim 8, in which the at least one gain variation model is configured for correcting conversions made using the orientation-independent probe signal conversion model.

10. A method as claimed in claim 1, comprising subsequently using the contact probe to measure an artefact and using the at least one gain variation model to transform the probe's at least one probe signal into a spatial measurement value.

11. A method as claimed in claim 1, in which the coordinate positioning machine comprises a continuous scanning articulated head which provides said at least one axis, and in which said articulated head is mounted on a movement structure which facilitates translational movement of the head.

12. A method as claimed in claim 1, in which the at least one gain variation model comprises at least one matrix, at least one function, and/or at least one look-up table.

13. A method as claimed in claim 1, comprising determining at least a first gain variation model which models apparent symmetric variations in the gain of the at least one probe signal dependent on the orientation of the contact probe about the at least one axis, and a second gain variation model which models apparent asymmetric variations in the gain of the at least one probe signal dependent on the orientation of the contact probe about the at least one axis.

14. A method of transforming at least one probe signal from a contact probe into a spatial measurement value, the contact probe having a deflectable stylus and in which the at least one probe signal is indicative of the extent of deflection of the stylus, in which the contact probe is mounted on an articulated continuous scanning head of coordinate positioning machine which facilitates reorientation of the contact probe about at least one axis during the collection of measurements using the contact probe, comprising: converting the probe signal into a spatial value using at least one probe signal gain variation correction factor which is dependent on the orientation of the contact probe about the at least one axis.

15. A method of calibrating a contact probe having a deflectable stylus configured to provide at least one signal, which is indicative of the extent of deflection of the stylus, the contact probe being mounted on a coordinate positioning machine which facilitates reorientation of the contact probe about at least one axis, comprising: determining a common probe signal conversion model for transforming probe signals into spatial measurement values from measurement data obtained with the contact probe positioned at a plurality of different orientations about the at least one axis.

Description

[0036] Embodiments of the invention will now be described, by way of example only, with reference to the following drawings, in which:

[0037] FIG. 1 shows a schematic isometric view of a coordinate measuring machine on which a contact probe is mounted;

[0038] FIGS. 2a and 2b schematically illustrate the variation in probe signal for a given stylus deflection dependent on orientation about an axis;

[0039] FIG. 3 illustrates an example process for calibrating a contact analogue probe according to the present invention;

[0040] FIG. 4 illustrates an example process for determining a probe signal conversion model;

[0041] FIG. 5 illustrates an example process for determining a model for modelling any apparent variation in the gain of the probe signals depending on orientation about an axis;

[0042] FIG. 6 illustrates an example process in which the model according to the invention can be used;

[0043] FIGS. 7a and 7b schematically illustrate a contact analogue probe measuring a calibration artefact in accordance with steps 202 to 206 of FIG. 4;

[0044] FIG. 8a shows a chart schematically illustrating the C.sub.X, C.sub.Y positions at which measurement readings were taken;

[0045] FIG. 8b shows, the probe's stylus deflection signals (p, q) recorded at each of the measurement points identified in FIG. 8a when A=0 and B=0;

[0046] FIG. 8c shows, the probe's stylus deflection signals (p, q) recorded at each of the measurement points identified in FIG. 8a when A=0 and B=90;

[0047] FIG. 9 illustrates the measured diameter of the calibration sphere against stylus deflection for different nominal A head angles and different stylus deflections;

[0048] FIG. 10a schematically illustrates a plot of how the probe signal gain varies for the A-axis angles 30, 45, 60 and 90;

[0049] FIG. 10b schematically illustrates how the probe signal gain might vary with A-axis and B-axis angles;

[0050] FIG. 11 schematically illustrates a scan of the calibration sphere taking place at a nominal A-axis angle of 30 (and a nominal B-axis angle of 0);

[0051] FIG. 12 schematically illustrates a scan of the calibration sphere taking place at a nominal A-axis angle of 90 (and a nominal B-axis angle of0);

[0052] FIG. 13 provides an example function for converting probe signals into a deflected tip position in the coordinate measuring machine's coordinate system; and

[0053] FIG. 14 provides another example function for converting probe signals into a deflected tip position.

[0054] Referring to FIG. 1 there is shown a positioning apparatus 1 comprising a movement structure in the form of a coordinate measuring machine (CMM) 2.

[0055] The CMM 2 comprises a base 10, supporting a frame 12 which in turn holds a quill 14. Motors (not shown) are provided to move the quill 14 along the three mutually orthogonal axes C.sub.X, C.sub.Y and C.sub.Z. The quill 14 holds an articulated head 16, which in this embodiment is a continuous scanning articulating head, such as the REVO articulated head available from Renishaw plc. As will be understood, a continuous scanning head enables orientation of a device mounted on it at substantially any angle about at least one axis and are often described as providing a near infinite number of angular orientations. Also, the orientation of the measurement device about an axis of a continuous scanning head can be changed during measurement (e.g. for a contact probe, whilst the contact probe is in contact with an object being inspected and acquiring measurement information such as stylus deflection signals). In contrast, an indexing head has a discrete number of defined (indexed) positions at which the measurement device mounted on it can be locked. With an indexing head, the orientation of the measurement device can be changed, but not during the acquisition of measurement data.

[0056] The articulated head 16 has a base portion 20 attached to the quill 14, an intermediate portion 22 and a probe retaining portion 24. The base portion 20 comprises a first motor (not shown) for rotating the intermediate portion 22 about a first rotational axis B. The intermediate portion 22 comprises a second motor (not shown) for rotating the probe retaining portion 24 about a second rotational axis A that is substantially perpendicular to the first rotational axis. Although not shown, bearings may also be provided between the moveable parts of the articulated head 16. Further, although not shown, measurement encoders may be provided for measuring the relative positions of the base 10, frame 12, quill 14 and the parts of the articulated head 16 so that the position of the measurement probe 4 relative to a workpiece 8 located on the base 10 can be determined. As will be understood, such measurements can be used to determine the undeflected stylus tip 9 position which is used in functions described in more detail below.

[0057] A probe 4 is mounted on the quill 14 (in this embodiment via the articulated head 16). In the described embodiment, the probe 4 is a contact probe (e.g. a so called analogue/scanning probe). It comprises a probe body 5 and a deflectable stylus 7 (having a contact tip 9). In the embodiment described the probe 4 is removably mounted (e.g. using a kinematic mount) on the probe retaining portion 24. In the embodiment described the probe 4 can be held by the probe retaining portion 24 by the use of corresponding magnets (not shown) provided on or in the probe body 5 and probe retaining portion 24. The probe 4 could be automatically mountable/removable, e.g. from/to a probe storage rack (not shown) located in the CMM's movement volume.

[0058] The articulated head 16 allows the probe 4 to be rotated relative to the quill 14. In particular, in the embodiment described it enables the probe 4 to be positioned about two rotational degrees of freedom relative to the quill 14. The combination of the two rotational degrees of freedom provided by the articulated head 16 and the three linear (C.sub.X, C.sub.Y, C.sub.Z) axes of translation of the CMM 2 allows the probe 4 to be moved/positioned in five degrees of freedom.

[0059] The positioning apparatus 1 also comprises a controller 26 for controlling the operation of the CMM 2 (either manually, e.g. via an input device such as joystick 6, or automatically, e.g. under the control of an inspection program). A display device 18 can be provided for aiding user interaction with the controller 26. The controller 26 could, for example, be a dedicated electronic control system and/or may comprise a personal computer.

[0060] In the current embodiment, the probe is a so-called tip sensing probe, in which deflections of the stylus tip are directly detected. Examples of such a probe are described in U.S. Pat. No. 6,633,051 and U.S. Pat. No. 7,847,955, the contents of which are incorporated by this reference. As described in those documents, tip sensing probes can, for example, be implemented by having an optical transducer system comprising a light source which produces a beam of light directed (e.g. internally of the stylus) toward the tip of the stylus, and a detector positioned to receive the beam and to produce a signal indicative of the lateral displacement of the stylus tip. A reflector element, such as a mirror or retro-reflecting device can be positioned at or toward the end of the stylus proximal the stylus tip (e.g. at or close to the stylus tip), for reflecting the beam back toward one or more sensors (e.g. which could be located in the probe body or at the end of the stylus proximal the probe body). Tip sensing probes are less susceptible to errors caused by inadvertent bending of the probe stylus (e.g. due to weight/sag/gravity/inertia) since any such bending will be sensed. Nevertheless, as will be understood, the invention is applicable to other types of probe, including non-tip sensing probes. In such cases other known factors such as droop may have to be factored in if necessary, using known techniques.

[0061] It should be noted that FIG. 1 provides only a top level description of a CMM 2. A more complete description of such apparatus can be found elsewhere; for example, see EP0402440 the entire content of which is incorporated herein by this reference.

[0062] During measurement of the workpiece 8 the contact tip 9 of the probe 4 is brought into contact with the workpiece 8 by motion of the CMM's X, Y, Z axes (i.e. C.sub.X, C.sub.Y, C.sub.Z) and/or by rotation of the articulated head about the A and/or B axes. This causes the probe's stylus 7 and tip 9 to deflect. One or more transducers (not shown, but in this embodiment they are in the probe body 5) sense this deflection away from its rest position and provide one or more signals indicative of the extent of deflection. For example, voltage signals could be provided. In this embodiment, three separate signals are provided (e.g. p, q, r) which are responsive to deflections in different directions, e.g. approximately, but not necessarily, mutually orthogonal directions. As will be understood, the outputs from the probe will generally not be aligned with the CMM's coordinate system. As will also be understood, the signals may or may not be linearly proportional to deflection.

[0063] To make use of the probe signals (p, q, r), they need to be converted into spatial measurement values. This involves using a transformation model. In the present embodiment, this comprises transforming/converting the probe signals (p, q, r) into spatial measurements representative of the deflection of the probe in the probe's local coordinate system (P.sub.X, P.sub.Y, P.sub.Z). As will be understood, the outputs from the probe may not be aligned with the probe's local coordinate system, and may not even be orthogonal to each other. As will also be understood, the probe's local coordinate system (P.sub.X, P.sub.Y, P.sub.Z) is independent from the CMM's coordinate system (C.sub.X, C.sub.Y, C.sub.Z) and since the probe can be rotated about the rotational axes, the probe's local coordinate system rotates with it. Accordingly, if desired, the measurement values can be rotated into the CMM's 2 coordinate system (C.sub.X, C.sub.Y, C.sub.Z) so as to enable a determination of the deflected stylus tip 9 position in the CMM's 2 coordinate system C.sub.X, C.sub.Y, C.sub.Z space.

[0064] For example, the deflected tip position in the CMM's coordinate system could be determined as shown in Equation (1) below:

[00001] ( Tx Ty Tz ) = ( Ux Uy Uz ) + ( Dx Dy Dz ) ( 1 )

[0065] where (T.sub.X, T.sub.Y, T.sub.Z) is the deflected tip position, (U.sub.X, U.sub.Y, U.sub.Z) is the undeflected tip position of the probe (known from the system and head geometry), and (D.sub.X, D.sub.Y, D.sub.Z) is the determined stylus deflection, which is described in more detail below. All these values are in the CMM's coordinate system (C.sub.X, C.sub.Y, C.sub.Z).

[0066] The stylus deflection in the CMM's coordinate system (D.sub.X, D.sub.Y, D.sub.Z) can be determined as shown in Equation (2) below:

[00002] ( D x D y D z ) = ( cos .Math. .Math. B - sin .Math. .Math. B 0 sin .Math. .Math. B cos .Math. .Math. B 0 0 0 1 ) .Math. ( 1 0 0 0 cos .Math. .Math. A sin .Math. .Math. A 0 - sin .Math. .Math. A cos .Math. .Math. A ) .Math. ( P x P y P z ) ( 2 )

[0067] where (P.sub.X, P.sub.Y, P.sub.Z) is the determined stylus deflection in the probe's local coordinate system, which is described in more detail below. The other two matrices shown in Equation 2 rotate the determined stylus deflection into the CMM's coordinate system based on the angle of the probe about the A and B axes.

[0068] As is currently known, it is necessary to transform/convert the probe's signals p, q, r to determine the stylus deflection in the probe's local coordinate system (P.sub.X, P.sub.Y, P.sub.Z), for example, using a transformation model such as that shown in Equation (3):

[00003] ( P x P y P z ) = ( k P x .Math. 1 k P x .Math. 2 k P x .Math. 3 k P y .Math. 1 k P y .Math. 2 k P y .Math. 3 k P z .Math. 1 k P z .Math. 2 k P z .Math. 3 ) .Math. ( p q r ) ( 3 )

[0069] Where k.sub.Px1, k.sub.Py1, etc are constants determined from a standard, known calibration routine performed at a particular head angle (e.g. as described in WO2006/114603). This is a linear transformation model, but as will be understood this need not necessarily be the case, and for example a non-linear transformation model could be used.

[0070] However, as mentioned above, it has been found that the relationship between the probe signals (p, q, r) and the deflection of the stylus tip varies depending on the orientation of the probe about the A and B axes. The variation has been found to exist even with rotation about a vertical axis (e.g. the B axis in this embodiment), and even when the probe is directed straight down.

[0071] This anomaly (that is, the variation in the relationship between the stylus deflection signals (p, q, r) and the deflection of the stylus tip) is illustrated in FIGS. 2a and 2b. In FIG. 2a, the probe 4 is positioned at a first angular orientation about the articulated head's A and B axes, for example, A=0 and B=0. The stylus tip is then caused to deflect by 1 mm in the probe's P.sub.X dimension, which in the example shown is, at that point, aligned with the CMM's C.sub.X dimension. This deflection can be achieved by moving the CMM's quill 14 (and hence the articulated head 16 and probe 4) along the CMM's C.sub.X dimension by 1 mm, so as to drive the stylus tip 9 perpendicularly into a workpiece. Accordingly, the stylus tip 9 deflects by an amount equal to the extent of the CMM motion, i.e. 1 mm. As shown, this gives rise to the probe signals of p=1V, q=0.1V and r=0.05V. Small q and r readings can be due to imperfections in the probe set up (e.g. slight misalignment of the transducer(s) with the stylus) or due to the probe being configured such that p, q and r are not perfectly aligned with the probe's P.sub.X, P.sub.Y and P.sub.Z coordinate system.

[0072] The probe is then rotated by 90 about the B axis (see FIG. 2b), and then the same steps are repeated. That is, stylus tip 9 is caused to deflect by 1 mm in the probe's P.sub.X dimension, which, at that point is now aligned with the CMM's C.sub.Y dimension. This can be achieved by moving the CMM's quill 14 (and hence the articulated head 16 and probe 4) along the CMM's C.sub.Y dimension by 1 mm so as to drive the stylus tip 9 perpendicularly into a workpiece. As shown, this gives rise to the stylus deflection signals of p=0.9V, q=0.07V and r=0.04V (V=volt).

[0073] As shown, for the same stylus deflection, in the same probe dimension, different stylus deflection signals are provided (i.e. a different p, q and/or r output is experienced). This means that 1V output by p does not relate to the same amount of deflection in the probe's P.sub.X dimension for all orientations.

[0074] Another way of illustrating this anomaly is as follows. For a first orientation (e.g. A=0 and B=0) drive the stylus tip 9 perpendicularly into a workpiece by moving the quill along a first axis (e.g. along the C.sub.X axis) until a threshold p signal level is output (e.g. p=1V), and record the distance travelled by the quill along the C.sub.X axis between the initial point of contact and the point at which the threshold signal was achieved. Then, the probe is rotated to a new orientation (e.g. A=0 and B=90) and the process is repeated again, although this time by motion of the quill along the C.sub.Y axis. Our inventors have identified that the distance travelled by the quill before the threshold p signal level (p=1V) is reached varies depending on the orientation. Accordingly, for example, the distance travelled in the C.sub.X dimension (and hence the stylus deflection in the probe's P.sub.X dimension when B=0) before p=1 V could be 1 mm, whereas the distance travelled in the C.sub.Y dimension (and hence the stylus deflection in the probe's P.sub.X dimension when B=90) before p=1 V could be 1.1 mm.

[0075] Either way, as will be understood, there appears to be an error in the probe signal, dependent on probe orientation, which will make its way through to the spatial measurements obtained from those probe signals. Such apparent probe errors will result in errors in spatial measurements obtained therefrom.

[0076] Although the above example illustrates the variation in the apparent stylus deflection behaviour with regard to the B axis position, it has been found that variation in the apparent stylus deflection behaviour can also vary with the A axis position as well.

[0077] Therefore, in addition to transforming/converting the probe signals (p, q, r) into spatial measurements representative of the deflection of the probe in the probe's local coordinate system (P.sub.X, P.sub.Y, P.sub.Z) (and optionally rotating the result into the CMM's 2 coordinate system (C.sub.X, C.sub.Y, C.sub.Z)), the method of the present embodiment also corrects for the variation in the relationship between the probe signals (p, q, r) and the deflection of the stylus tip based on the orientation of the probe.

[0078] It is suspected that such variation is predominantly due to the stiffness characteristics of the apparatus, e.g. the CMM 2 and/or articulated head 16. When a force is applied to the stylus tip 9, the stylus 7 will deflect with respect to the probe body 5, which will be detected by the probe's transducer. However, there will also be some untransduced deflection of the articulated head 16 and/or CMM 2 structure that will depend on the direction and magnitude of the applied force. This untransduced deflection is indistinguishable from an equivalent error in the stylus deflection measurements.

[0079] An example technique for overcoming this error will be explained with reference to FIGS. 3 to 14. The technique involves determining, and generating a model for modelling, the variation in the relationship between the one or more probe signals and the deflection of the stylus away from its rest/zero force position. In this particular example, the model is incorporated into an overarching transformation model (which is used to transform/convert the probe signals into dimensional measurement values) so as to thereby compensate for differences in the relationship between stylus deflection signal(s) and deflection of the stylus at different orientations about the articulated heads axes.

[0080] FIG. 3 provides a top level flow-chart for a process 100 of determining such a transformation model for a probe 4. The method begins at the optional step 102 of nulling the probe 4. This is a standard well known process for analogue/scanning probes whereby the probe's transducer signals are measured when the probe is in free space (i.e. when the stylus is in a rest/undeflected position).

[0081] At step 103, a calibration artefact 30 located in the CMM's measurement volume is found by taking some measurements of it using the probe 4. At this stage a default transformation model can be used to convert the probe's signals into position measurements.

[0082] At step 104, a probe signal conversion model is found. This is explained in more detail with reference to FIG. 4.

[0083] Then, at step 106, a correction model which describes how the relationship between the probe signal and the stylus deflection varies with the articulated head angle is determined. This is explained in more detail with reference to FIG. 5.

[0084] The probe signal conversion model determined at step 104 and the correction model determined at step 106 (which, for the purposes of the invention, together can be referred to as a transformation model) can then subsequently be used in order to convert stylus deflection signals into accurate spatial measurement values, for example as described in more detail below with reference to FIG. 6.

[0085] With reference to FIG. 4, an example process 200 for finding the probe signal conversion model is shown. The process begins at step 202 at which an article, in this case the calibration artefact 30, is measured at a first articulated head angle (e.g. in this embodiment, A=0 and B=0). In this embodiment, the measurement operation at step 202 comprises performing a scan (e.g. around the equator 34) of the calibration artefact's sphere 32 (see FIG. 7a), by translationally moving the quill 14 in a circle around the sphere 32 with the stylus tip biased against the sphere 32. This scan is repeated with a different stylus deflection (different measuring force). Also, scans could be performed in multiple scan directions, e.g. as described in WO02/073128.

[0086] The measurement operation at step 202 also comprises taking point measurements (e.g. four point measurements) spaced around the sphere, e.g. at points 36 indicated in FIG. 7a. Each of the point measurements comprise pushing the stylus tip 9 perpendicularly into the sphere 32 so as to cause stylus deflection signals to be obtained over a range of stylus deflections, e.g. nominally between 50 m (microns) and 200 m (microns).

[0087] Example results of the measurements obtained at step 202 are schematically illustrated in FIGS. 8a, 8b and 8c. FIG. 8a shows a chart schematically illustrating the C.sub.X, C.sub.Y positions at which measurement readings were taken. Each dot represents the position at which one measurement reading was taken. As can be seen, the scans involved moving the quill 14 of the CMM 2 in a circle, and the touch points (highlighted by regions 36 on FIG. 8a) involved moving the quill 14 into and away from the sphere 32 in a nominally straight line. The chart of FIG. 8a is valid for both B=0 and B=90.

[0088] FIG. 8b shows, the probe's stylus deflection signals (p, q) recorded at each of the measurement points identified in FIG. 8a when A=0 and B=0. Since the quill 14 of the CMM 2 was moved in a circle, and since the profile of the sphere's equator 34 is circular, it would be expected that the profile of the probe's p signals plotted against its q signals would also be circular. However, as shown in FIG. 8b, the profile of p against q is elliptical, and in this case the major axis extends along the p axis. This is due to an apparent difference in the probe signal behaviour for p and q (for example, in this case, and as shown, p appears to be more responsive to/provides a bigger signal for a given deflection than q).

[0089] At step 204, it is then determined if measurements are required at a different head angle. In this embodiment, measurements are to be obtained at two different head angles, although measurements can be obtained at more head angles (and any combination of A and B angles can be used). Accordingly, at step 206 the articulated head 16 is operated so as to reorient the probe to a second articulated head angle (e.g. in this embodiment, A=0, B=90). Step 202 is then repeated such that the measurements described above (e.g. the two scans and four point measurements) are repeated at the second articulated head angle (illustrated in FIG. 7b). As mentioned above, the chart of FIG. 8a is equally applicable for illustrating the C.sub.X, C.sub.Y positions of the quill 14 at the points at which measurements are taken during the scans and point measurements.

[0090] FIG. 8c shows the probe's stylus deflection signals (p, q) recorded at each of the measurement points identified in FIG. 8a when A=0 and B=90. As can be seen, the profile of p against q is elliptical like that shown in FIG. 8b, but as can be seen compared to FIG. 8b, the major axis has been rotated by 90 (and in this case the major axis extends along the q axis in FIG. 8c). As illustrated, unlike the situation when A and B=0, in this case q appears to be more responsive to/provides a bigger signal for a given deflection than p.

[0091] Accordingly, it can be seen that there is what appears to be an error in the measurements obtained by the probe. The probe signal behaviour appears to differ depending on the orientation of the probe. In other words, there appears to be a variation in the gain of the probe signal depending on orientation. However, as can also be seen, since the error does not rotate with the probe, it can be deduced that the error likely arises from the structure of the machine.

[0092] At step 204, it is then determined that no further measurements are required at this stage and so the process proceeds to step 208. At step 208, a least squares best fit optimisation process is used to determine the probe signal conversion model. For example, with reference to Equation (4) below, the undeflected tip positions U.sub.x, U.sub.y, U.sub.z positions are known, the probe's signals p, q, r are known, the head angles A and B are known, and it is known that the stylus tip positions T.sub.x, T.sub.y, T.sub.z should all lie on the surface of the sphere. Accordingly, an optimisation process (e.g. an iterative process), such as a least squares best fit optimisation process, can be used to deduce the values of the blank 33 matrix shown in Equation (4) below which would result in the measurements obtained with B=0 and B=90 to lie as close as possible to the surface of the sphere.

[00004] ( Tx Ty Tz ) = ( Ux Uy Uz ) + ( cos .Math. .Math. B - sin .Math. .Math. B 0 sin .Math. .Math. B cos .Math. .Math. B 0 0 0 1 ) .Math. ( 1 0 0 0 cos .Math. .Math. A sin .Math. .Math. A 0 - sin .Math. .Math. A cos .Math. .Math. A ) .Math. ( .Math. .Math. .Math. ) .Math. ( p q r ) ( 4 )

[0093] That matrix can then be used as the probe signal conversion model. An example matrix could be for instance similar to that shown in Equation (3) above, e.g.:

[00005] ( k P x .Math. 1 k P x .Math. 2 k P x .Math. 3 k P y .Math. 1 k P y .Math. 2 k P y .Math. 3 k P z .Math. 1 k P z .Math. 2 k P z .Math. 3 )

[0094] However, in this case, since the probe signal conversion model is determined from measurements obtained at a number of different orientations, the probe signal conversion model could be described as an averaged, amalgamated, consolidated or optimised probe signal conversion model (whereas in Equation (3) the matrix would have been determined from measurements obtained at just one head orientation). Optionally, the probe signal conversion model could be described as a common probe signal conversion model since it is determined from, and subsequently used as a common conversion model for, a plurality of different orientations. As will be understood, this probe signal conversion model is an example of an orientation-independent signal conversion model. It does not take the orientation of the probe about any of the axes as input parameters.

[0095] As will be understood, by taking measurements at appropriate different head angles, CMM effects can be averaged to zero in the probe coordinate system.

[0096] As will be understood, the order in which measurements are taken is not important for the present invention. For example, rather than performing all measurements at the first articulated head angle and then performing all the measurements at the second articulated head angle, the obtaining of the measurements at the first and second articulated head angles (or all if there are more than two head angles) could be interleaved.

[0097] Furthermore, it is not necessary for the same measurements to be obtained at each of the different articulated head angles. For example, it might be that data for four different articulated head angles is to be obtained (e.g. A=0 and B=0, 45, 90 and 135) and rather than performing the scan measurements for each articulated head angle, it is possible that scan measurements are performed for only two of the four articulated head angles (whilst, for example, point measurements are still performed for all four articulated head angles).

[0098] As will be understood, other types of measurements can be obtained instead of or as well as those described above. For example, spiral scans of the surface of the calibration artefact could be performed. Also, although in the described embodiments measurements are obtained at different stylus deflections/forces, it is not necessary for measurements to be obtained at different stylus deflections/probe forces. For example, there could be just one scan performed at each head angle. In this case, the form of the gain could be assumed, for example to be linear and to cross through 0, or for example to have an assumed non-linear form. This would enable some errors to be identified, although it wouldn't be possible to be confident that probe signal gain errors are mapped out. Alternatively, measurements at multiple stylus deflections/probe forces could be obtained at some (e.g. one) head angle, but not other head angles.

[0099] With reference to FIG. 5, an example process 300 for determining a correction model describing the variation in the relationship between the probe signal and the stylus deflection dependent on head angle is shown. The process begins at step 302 by operating the CMM 2 to scan the calibration sphere 32 (with a given head angle) at a number of different stylus deflections. For example, this could comprise scanning a circle about the surface of the sphere 32 at a given nominal A head angle e.g. A=30 (see FIG. 11). In this embodiment, the scan is performed by rotating the probe about the articulated head's rotational axes. As shown, due to the sphere 30 and stylus tip 9 having a radius, the probe needs to be rotated about the A axis and so A is not actually at 30. However, the angle about the A axis at which a line 38 extending between the point of rotation of the articulated head and the centre of the circle 40 about which the scan takes place is 30, and so A is described as being nominally at 30. As will also be understood, the amount by which the probe is shown as being rotated about A is grossly exaggerated in the drawing due to the relative scales of the probe and calibration artefact. Furthermore, as will be understood, rather than the scans being performed by rotating the probe about one or more of the articulated head's axes, the scans could be performed by translationally moving the quill 14 using the CMM's X, Y and Z axes. In this case, the head's A axis could truly be at 30.

[0100] The same scan is performed at at least two different stylus deflections (e.g. two different probe forces), and in this case is performed at four different stylus deflections. As will be understood, this need not necessarily be the case. For example, the measurement could be performed at just one stylus deflection. This is especially the case, for instance, if future measurements were only to be obtained at that stylus deflection and/or if an assumption can be made about the variation in the gain (e.g. a linear variation back to zero).

[0101] At step 304 it is then determined if measurements are required at a different head angle. In this embodiment, measurements are to be obtained at four different nominal A axis angles (30, 45, 60 and 90; see FIG. 12 for A=90). Accordingly, at step 306 the articulated head 16 is operated so as to reorient the probe to the next nominal A axis head angle. Step 302 is then repeated as above for the new nominal head angle. This loop continues until at step 304 it is determined that no further measurements at different head angles are needed.

[0102] Control of the process 300 then proceeds to step 308 at which it is determined how the stylus deflection signal gain appears to vary with head angle. Step 308 (for which an example method is explained below in more detail) could be schematically summarised as: i) extracting a metric (such as measured diameter, radius, ellipticity) from each scan; ii) determine how that metric varies with stylus deflection/force; iii) and then determine how the slope of that variation (determined in ii) varies with head angle.

[0103] For example, using the matrix of Equation (4), the probe signals obtained during the scans of the process of FIG. 5 are converted into position measurements. The position measurements from each scan are then analysed to determine the measured diameter of the sphere 32. This is done for each stylus deflection at each head angle. For illustrative purposes, the measured diameter of the sphere against stylus deflection for different nominal A head angles and different stylus deflections is shown in FIG. 9. As can be seen, in this example, for any given head angle, the measured diameter of the sphere 32 increases with stylus deflection. As will be understood, the gradient of each line fitted to the points represents the apparent probe signal gain for each head angle. As illustrated, each head angle has a different gradient and therefore a different apparent gain. This illustrates that the gain of the probe signal appears to vary with head angle. In other words, as illustrated by this example, the relationship between the probe signals and the extent of deflection of the stylus varies with head angle.

[0104] FIG. 10a schematically shows a plot of the gradient/gain values for the A head angles 30, 45, 60 and 90. The apparent gain variation can be represented by a function. For example, the apparent gain variation dependent on the angle of the head about the A axis could be modelled by the function set out in Equation (5) below:


G.sub.xy=k.sub.1+k.sub.2 sin(A)+k.sub.3 cos(A) (5)

where k.sub.1, k2 and k3 are constants chosen to fit to the measured gains (e.g. so that the function describes the line shown in FIG. 10a which is fitted to the measured gains).

[0105] This could then be incorporated into a matrix which could be used during measurement to compensate for the apparent variation in the gain. For example, Equation (6) below illustrates an example transformation model which in addition to the transformation model shown in Equation (3) includes a matrix which models, and can be used to compensate for, the apparent variation in the gain of the probe signals at different head angles:

[00006] ( P x P y P z ) = ( 1 - G xy 0 0 0 1 - G xy 0 0 0 1 ) .Math. ( k P x .Math. 1 k P x .Math. 2 k P x .Math. 3 k P y .Math. 1 k P y .Math. 2 k P y .Math. 3 k P z .Math. 1 k P z .Math. 2 k P z .Math. 3 ) .Math. ( p q r ) ( 6 )

[0106] As will be understood, in contrast to G.sub.xy being a function, it could instead be a look-up table. Accordingly, the apparent gain variation could be modelled by a look-up table. If necessary, interpolation of the look-up table could be used to populate/determine values not directly measured.

[0107] For ease of reference, Equation (1) in expanded form to incorporate the above described matrix which models the apparent gain variation so as to compensate for variations in the relationship between the probe signals and deflection of the stylus at different head angles is illustrated in FIG. 13. FIG. 13 also breaks down and labels the various matrices to explain what their purpose is for so as to aid understanding.

[0108] In the above described embodiments, the gain is assumed to be linear (and so for example straight lines are shown as fitted to the points in FIG. 9). However, as will be understood, this need not necessarily be the case and the gain could be non-linear (in which case the lines fitted to the points can be curved).

[0109] The function of Equation (5) is only truly representative for the B angle at which the scans taken at different A angles were measured. It is possible to assume that the apparent gain variation dependent on the A angle, is the same at all B angles, or it is possible to predict how the apparent gain variation varies with B angle. However, if it is preferred that an assumption/prediction is not made, then it is possible to consider and model for variation about B angle too. In this case, the process of FIGS. 5, 11, 12 as described above can be repeated for different (nominal) B angles, whereby the gain for different A and B angles is found. FIG. 10b schematically illustrates how the gradient/gain might vary with A and B angle, with the dots representing the determined gains for different A and B angles. This variation can be represented by a function. For example, the apparent gain variation dependent on the A and B angles could be modelled by the function set out in Equation (7) below:


G.sub.xy=k.sub.A1+k.sub.A2 sin(A)+k.sub.A3 cos(A) (7)

where:


k.sub.A1=k.sub.B11+k.sub.B12 sin(2B)+k.sub.B13 cos(2B)


k.sub.A2=k.sub.B21 +k.sub.B22 sin(2B)+k.sub.B23 cos(2B)


k.sub.A3=k.sub.B31 +k.sub.B32 sin(2B)+k.sub.B33 cos(2B)

and where k.sub.Bij are constants chosen to fit to the measured gains (e.g. a function which describes the surface shown in FIG. 10b which is fitted to the measured gains).

[0110] As will be understood, the above G.sub.xy functions are only example functions. As will be understood, other functions could be used.

[0111] The above technique assumes that the apparent gain variation is symmetrical (e.g. in P.sub.x and P.sub.y). The method could be extended to include a model which describes any apparent asymmetry in the gain variation (e.g. any asymmetry in P.sub.x and P.sub.y). For example, if there is asymmetry, the scans will not be circular. For example, they could be approximately elliptical and in which case it could be advantageous to try to model the elliptical nature of the apparent gain variation. Accordingly, instead of simply determining diameter, the ellipticity of the scans can be determined and modelled. FIG. 14 shows that an additional matrix can be used to correct for any apparent asymmetrical (e.g. elliptical) gain variation.

[0112] In this case, as well as determining diameter (or radius) of the scans for a number of stylus deflections, and determining how that varies with stylus deflection, other metrics can also be determined. For example, the metric could be the elliptical shape of the scan (which could be described by parameters), and in a similar way to the above embodiment it will be necessary to determine how the elliptical shape varies with deflection, and the slope of that variation can be used to determine the elliptical gains E.sub.c E.sub.s (of the asymmetric gain variation model shown in FIG. 14) at the given head angle.

[0113] The variation of E.sub.c E.sub.s with head angle can be modelled as before. Accordingly, as will be understood, E.sub.c and E.sub.s of the asymmetric gain variation model shown in FIG. 14 can each be a function which has the head angles A and/or B as inputs/variables. For example, E.sub.c and E.sub.s could comprise functions as set out in Equations (8) and (9) below:


Ec=c.sub.A1+c.sub.A2 sin(A)+c.sub.A3 cos(A) (8)

where:


c.sub.A1=c.sub.B11+c.sub.B12 sin(2B)+c.sub.B13 cos(2B)


c.sub.A2=c.sub.B21+c.sub.B22 sin(2B)+c.sub.B23 cos(2B)


c.sub.A3=c.sub.B31+c.sub.B32 sin(2B)+c.sub.B33 cos(2B)

and


Es=s.sub.A1+s.sub.A2 sin(A) +s.sub.A3COS(A) (9)

where:


s.sub.A1=s.sub.B11+s.sub.B12 sin(2B)+s.sub.B13 cos(2B)


s.sub.A2=s.sub.B21+s.sub.B22 sin(2B)+s.sub.B23 cos(2B)


s.sub.A3=s.sub.B31+s.sub.B32 sin(2B)+s.sub.B33 cos(2B)

and where c.sub.Bij and s.sub.Bij are constants chosen to fit to the measured variation in elliptical gains.

[0114] As will be understood, other shaped variations could be present (e.g. such that the variation is not strictly elliptical), in which case slightly different models might be required.

[0115] As will be understood, the gain variation model of FIG. 13, and the asymmetric and symmetric gain variation models of FIG. 14 could be described as being orientation-dependent probe signal conversion models. They take the orientation of the contact analogue probe about at least one axis (and in this case both axes) of the articulated head as input parameters.

[0116] FIG. 6 illustrates an example process 400 of how the gain variation model can be used in practice during subsequent collection of measurements points using the contact analogue probe 4. The process begins at step 402 during which the object 8 and/or the contact analogue probe 4 are moved so as to bring the stylus 7 (in particular the stylus tip 9) into contact with the object, thereby causing the stylus to deflect. The contact analogue probe provides signal(s) (in this case, p, q, r signals) in response to the deflection, the level of the signal(s) being indicative of the extent of deflection. As will be understood, the signal(s) can be digital or analogue in form. At step 404 the common probe signal conversion model is used to convert the signals into spatial measurements in the probe's coordinate system (P.sub.x, P.sub.y, P.sub.z). At step 406, the probe signal gain variation model is used to apply a gain variation correction factor dependent on the orientation of the contact analogue probe about the A and B axes of the articulated head. Accordingly, this involves feeding into the model the angle about the A and B axes that the contact analogue probe was oriented at the point the probe signal was provided. This then gives a spatial measurement in the probe's coordinate system (P.sub.x, P.sub.y, P.sub.z) which has been compensated for apparent variations in the gain of the probe signals. At step 408, the spatial measurements are then rotated into the CMM's coordinate system (e.g. using the matrices shown in FIGS. 13 and 14). This can then be added to the undeflected tip position (which can be known from the system and head geometry, and for example deduced from linear position encoders mounted on the CMM's X, Y and Z axes and rotary position encoders mounted on the articulated head so that the position and orientation of the articulated head can be determined).

[0117] Accordingly, in embodiments in which measurements are obtained by scanning the contact analogue probe along the surface of the object, and during which the orientation of the contact analogue probe 4 is continuously changed about one or more of the axes of the articulated probe head, the gain correction factor applied by the gain variation model continuously changes depending on the angle of the one or more axes (e.g. continuously changes with the continuous change in orientation about the axes).

[0118] The above embodiments are explained by way of having separate matrices for the initial probe signal conversion (the common probe signal conversion model) and the (asymmetric and symmetric) gain variation model, but as will be understood this need not necessarily the case and they could be provided by one common matrix. As also explained above, rather than using one or more matrices, a function or lookup table could be used instead.

[0119] In the above described embodiment, a common probe signal conversion model is determined from measurements obtained at a number of different orientations. As will be understood, this common probe signal conversion model could be used in its own right, without the additional gain variation models. Doing so can be advantageous over just determining a probe signal conversion model from measurements obtained at just one orientation and then assuming that the same probe signal conversion model applies to the other orientations (and merely rotating the spatial measurement values into the CMM's coordinate systems), since variations in behaviour can be smoothed/averaged out.

[0120] The above described embodiments correct for P.sub.x and P.sub.y. As will be understood, the same technique can be used to correct for P.sub.z. In this case, measurements along the probes P.sub.z axis can be taken (e.g. by touching the calibration artefact with the probe end-on) at different stylus deflections.

[0121] In the described embodiment, the coordinate positioning machine is a serial CMM (i.e. in which the three linear degrees of freedom is provided by three independent, orthogonal axes of motion). However, as will be understood, the invention can also be used to control the movement of other types of coordinate positioning machines, such as parallel CMMs, robot arms or the like. The invention can also be used with not just dedicated CMMs, but also with other types of coordinate positioning machines such as machine tools. Furthermore, as will be understood, the invention is also suitable for use with Cartesian and non-Cartesian positioning machines, such as polar and spherical coordinate positioning machines.