Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
HANDLING OF TEAT CUPS
Document Type and Number:
WIPO Patent Application WO/2010/060693
Kind Code:
A1
Abstract:
Teat cups (C1, C2) are fetched from a teat cup magazine by means of a gripper means (140), which is carried on a robotic arm (150). The gripper means (140) grips and removes teat cups (C1, C2) from the teat cup magazine. The gripper means (140) also holds at least one teat cup (C1, C2) during transport thereof towards an udder (U) where an animal's teats (T1, T2, T3, T4) are located. A positioning means (130) determines position estimates representing at least one spatial characteristic of the udder (U). Based on the position estimates, the robotic arm (150) and the gripper means (140) are controlled to attach the teat cups (C1, C2) to the teats (T1; T3). The position estimates also constitutes a basis for controlling the robotic arm (150) and the gripper means (140) to remove teat cups (C1, C2) from the teat cup magazine in such a manner that a teat-receiving end of each of the at least one teat cup (C1, C2) attains a horizontal level (zc1, zC2) in the gripper means (140) which horizontal level (zc1, zc2) is adapted to the at least one spatial characteristic of the udder (U).

Inventors:
HALLSTROEM ANDERS (SE)
Application Number:
PCT/EP2009/063679
Publication Date:
June 03, 2010
Filing Date:
October 19, 2009
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
DELAVAL HOLDING AB (SE)
HALLSTROEM ANDERS (SE)
International Classes:
A01J5/017
Domestic Patent References:
WO2007050012A12007-05-03
WO2005122753A12005-12-29
WO2003055297A12003-07-10
WO2000008921A12000-02-24
WO2000013491A12000-03-16
Foreign References:
EP1100314A12001-05-23
EP1211928A12002-06-12
SU1777728A11992-11-30
RU2143800C12000-01-10
Attorney, Agent or Firm:
VANDOUSSELAERE, Francine et al. (Box 39, Tumba, SE)
Download PDF:
Claims:
Claims

1 . An arrangement for attaching teat cups (C1 , C2, C3, C4) to the teats (T1 , T2, T3, T4) of a milking animal (A), each teat cup having a teat-receiving end configured to receive one teat of the animal (A), the arrangement comprising: a teat cup magazine (120) configured to store teat cups (C1 , C2, C3, C4), a gripper means (140) configured to grip and remove teat cups from the teat cup magazine (120) and hold at least one teat cup (C1 , C2) during transport thereof towards an udder (U) where the teats (T1 , T2, T3, T4) are located, a robotic arm (150) carrying the gripper means (140) and configured to transport the gripper means (140) between the teat cup magazine (120) and the teats (T1 , T2, T3, T4), a positioning means (130) configured to determine position estimates representing at least one spatial characteristic of the udder (U), and a control means (1 10) configured to, based on the position estimates, control the robotic arm (150) and the gripper means (140) to attach the teat cups (C1 , C2, C3, C4) to the teats (T1 , T2, T3, T4), characterized in that the control means (1 10) is configured to receive the position estimates and in response thereto control the robotic arm (150) and the gripper means (140) to remove teat cups (C1 , C2, C3, C4) from the teat cup magazine (120) in such a manner that the teat-receiving end of each of the at least one teat cup (C1 , C2) attains a horizontal level (zci , zC2) in the gripper means (140) which horizontal level (zci , Zc2) is adapted to the at least one spatial characteristic of the udder (U).

2. The arrangement according to claim 1 , wherein the at least one spatial characteristic of the udder (U) includes at least one of: a respective position estimate (X1 , y-i , Z1 ; X2, Y2, z2; X3, y3, Z3; x4, y4, z4) for a tip, a center point, and/or a root of each of the teats (T1 , T2, T3, T4), a respective estimate of a three-dimensional angle (oc-i , a2, (X3, (X4) to the horizontal plane for each of the teats (T1 , T2, T3, T4), a respective length estimate (L1 , L2, L3, L4) for each of the teats (T1 , T2, T3, T4), and a respective thickness estimate for each of the teats (T1 ,

T2, T3, T4).

3. The arrangement according to any one of claims 1 or 2, wherein the gripper means (140) is configured to simultaneously hold at least two teat cups (C1 , C2) during transport thereof towards the udder (U), the positioning means (130) is configured to determine a respective position estimate (X1 , V1 , Z1 ; x2, y2, z2; x3, y3, z3; x4, y4, z4) for a tip of each of the teats (T1 , T2, T3, T4), and the control means (1 10) configured to receive the position estimates (X1 , y^ , Z1 ; X2, y2, z2; X3, ys, z3; X4, y4, Z4) and in response thereto control the gripper means (140) to grip the at least two teat cups (C1 , C2) in such a manner that the teat-receiving ends thereof attain a first horizontal level relationship (zc1 , zC2) in the gripper means (140), which first horizontal level relationship (zc1 , zC2) is adapted to a second horizontal level relationship (Z1 , Z3) between the position estimates for the tips of the teats (T1 , T3) to which the at least two teat cups (C1 , C2) are to be attached.

4. The arrangement according to claim 3, wherein the first horizontal level relationship (zc1 , zC2) is further adapted to select an order in which the at least two teat cups (C1 , C2) are to be attached to the teats (T1 , T3) based on the second horizontal level relationship (Z1 , Z3), and the control means (1 10) is configured to select the first horizontal level relationship (zc1 , zC2) such that a transit time between removing the at least two teat cups (C1 , C2) from the teat cup magazine (120) to attaching a last teat cup (C2) of the at least two teat cups (C1 , C2) to its intended teat (T3) of the teats (T1 , T3) is expected to become minimal.

5. The arrangement according to any one of the claims 3 or 4, wherein: the positioning means (130) is configured to generate posi- tion data representing a respective length estimate (L1 , l_2, L3, L4) of the teats (T1 , T2, T3, T4), and the control means (1 10) is configured to receive the position data and select the first horizontal level relationship (zCi , Zc2) based on a relative length of the teats such that the teat- receiving end of a teat cup (C1 ) which is to be attached to a comparatively short teat (T1 ) attains a relatively high horizontal level (zci) in the gripper means (140) and the teat-receiving end of a teat cup (C2) which is to be attached to a comparatively long teat (T3) attains a relatively low horizontal level (zC2) in the gripper means (140).

6. The arrangement according to any one of the claims 3 to 5, wherein the control means (1 10) is configured to select the first horizontal level relationship (zCi , zC2) based on the position estimates such that an estimated risk is minimized that a movement of the robotic arm (150) becomes restricted by the at least one spatial characteristic of the udder (U) when moving the gripper means (140) to attach the at least two teat cups (C1 , C2) to the teats (T1 , T3).

7. The arrangement according to any one of the preceding claims, comprising a database (S), and wherein the control means (1 10) is configured to store the position estimates in the database (S), such that the position estimates in respect of a particular animal (A) can be retrieved in connection with subsequent milking of the same animal (A).

8. A milking installation (10) configured to automatically extract milk from at least one animal (A), characterized in that the installation (10) comprises at least one arrangement according to any one of the preceding claims.

9. A method of attaching cups (C1 , C2, C3, C4) to the teats (T1 , T2, T3, T4) of a milking animal (A), each teat cup having a teat-receiving end configured to receive one teat of the animal (A), the method comprising: controlling a gripper means (140) to grip and remove teat cups from a teat cup magazine (120) in which the teat cups (C1 , C2, C3, C4) are stored, controlling the gripper means (140) to hold at least one teat cup (C1 , C2) during transport thereof towards an udder (U) where the teats (T1 , T2, T3, T4) are located, controlling a robotic arm (150) carrying the gripper means (140) to transport the gripper means (140) between the teat cup magazine (120) and the teats (T1 , T2, T3, T4), receiving position estimates representing at least one spatial characteristic of the udder (U), and controlling the robotic arm (150) and the gripper means (140) to attach the teat cups (C1 , C2, C3, C4) to the teats (T1 , T2, T3, T4) based on the position estimates, characterized by receiving the position estimates, and in response thereto controlling the robotic arm (150) and the gripper means (140) to remove teat cups (C1 , C2, C3, C4) from the teat cup magazine (120) in such a manner that the teat-receiving end of each of the at least one teat cup (C1 , C2) attains a horizontal level (zci , zC2) in the gripper means (140) which horizontal level (zci > zC2) is adapted to the at least one spatial characteristic of the udder (U).

10. The method according to claim 9, wherein the at least one spatial characteristic of the udder (U) includes at least one of: a respective position estimate (X1 , y-i , Z1 ; x2, y2, z2; X3, y3, Z3; x4, y4, z4) for a tip, a center point, and/or a root of each of the teats (T1 , T2, T3, T4), a respective estimate of a three-dimensional angle ((X1 , cc2, (X3, (X4) to the horizontal plane for each of the teats (T1 , T2, T3, T4), a respective length estimate (L1 , L2, L3, L4) for each of the teats (T1 , T2, T3, T4), and a respective thickness estimate for each of the teats (T1 ,

T2, T3, T4).

1 1 . The method according to any one of the claim 9 or 10, wherein the gripper means (140) is configured to simultaneously hold at least two teat cups (C1 , C2) during transport thereof to- wards the udder (U), the positioning estimates represent a respective position estimate (X1 , yi , Z1 ; X2, y2, Z2; X3, y3, z3; X4, y4, Z4) for a tip of each of the teats (T1 , T2, T3, T4), and the method comprises: receiving the position estimates (X1 , y-i , Z1 ; X2, y2, Z2; X3, y3, z3; x4, y4, Z4) and in response thereto controlling the gripper means (140) to grip the at least two teat cups (C1 , C2) in such a manner that the teat-receiving ends thereof attain a first horizontal level relationship (zCi , zC2) in the gripper means (140), which first horizontal level relationship (zci , zC2) is adapted to a second horizontal level relationship (Z1 , z3) between the position estimates for the tips of the teats (T1 , T3) to which the at least two teat cups (C1 , C2) are to be attached.

12. The method according to claim 1 1 , wherein method com- prises: selecting an order in which the at least two teat cups (C1 , C2) are to be attached to the teats (T1 , T3) based on the second horizontal level relationship, and selecting the first horizontal level relationship (zc1 , zC2) such that a transit time between removing the at least two teat cups (C1 , C2) from the teat cup magazine (120) to attaching a last teat cup (C2) of the at least two teat cups (C1 , C2) to its intended teat (T3) of the teats (T1 , T3) is expected to become minimal.

13. The method according to any one of the claims 1 1 or 12, wherein the position estimates represent a respective length estimate (L1 , L2, L3, L4) of the teats (T1 , T2, T3, T4), and the method comprises selecting the first horizontal level relationship (zci , Zc2) based on a relative length of the teats (T1 , T2, T3, T4) such that the teat-receiving end of a teat cup (C1 ) which is to be attached to a comparatively short teat (T1 ) attains a relatively high horizontal level (zCi) in the gripper means (140), and the teat-receiving end of a teat cup (C2) which is to be attached to a comparatively long teat (T3) attains a relatively low horizontal level (zC2) in the gripper means (140).

14. The method according to any one of the claims 1 1 to 13, comprising selecting the first horizontal level relationship (zCi , zC2) based on the spatial data such that an estimated risk is minimized that a movement of the robotic arm (150) becomes restricted by the at least one spatial characteristic of the udder (U) when moving the gripper means (140) to attach the at least two teat cups (C1 , C2) to the teats (T1 , T3).

15. The method according to any one of the claims 9 to 14, comprising storing the position estimates in a database (S) in such a manner that the position estimates in respect of a particular animal (A) can be retrieved in connection with subsequent milking of the same animal (A).

16. A computer program loadable into the internal memory (M) of a computer, comprising software for controlling the steps of any one of claims 9 to 15 when the program is run on the computer.

17. A computer readable medium (M) having a program recorded thereon, where the program is to make a computer control the steps of any one of claims 9 to 15 when the program is loaded into the computer.

Description:
Handling of Teat Cups

THE BACKGROUND OF THE INVENTION AND PRIOR ART

The present invention relates generally to automatic milking of animals. More particularly the invention relates to an arrange- ment for attaching teat cups to the teats of an animal according to the preamble of claim 1 and a milking installation according to claim 8. Moreover, the invention relates to a method according to the preamble of claim 9, a computer program according to claim 16 and a computer readable medium according to claim 17. The technical solutions for automatic milk extraction are becoming increasingly efficient and sophisticated. For example, today's milking robots allow a completely automatic milking procedure. Among other things, such a procedure involves automatic attachment of the teat cups. The prior art includes various ex- amples of solutions for enabling and effecting this step.

EP 1 21 1 928 discloses a solution wherein the teat tip positions are estimated by means of light sources and image capturing means. The teat cups are then attached in response to the position estimates. US-2007/0215052 discloses a teat location system for automatic milking installations. The system includes a light projection source and a camera capable of returning time-of-flight (TOF) information along with intensity information in two dimensions. Thus, three-dimensional data can be generated which represents ima- ged teats. Based thereon the teat cups can be attached in a relatively straightforward manner. WO 2005/122753 reveals a gripper device capable of gripping and simultaneously holding two or more teat cups. By employing such a gripper device the average number of movements between the teat cup magazine and the animal's udder can be redu- ced, and thus the total attachment time can be shortened.

EP 1 100 314 shows a milking apparatus having a movable arm for moving teat cups towards the animal to be milked. Here, while being moved by the arm, the teat entrance end of at least one teat cup is located at a different level than the teat entrance end of a further one of the teat cups. Hence, the teat cups can be attached in a simple and reliable manner. Reattachment of any inadvertently detached teat cups is also facilitated thereby.

Although the above solutions may each have its specific qualities and advantages, there is still room to further improve the auto- matic attachment of teat cups. For example, as indicated above, for time efficiency it is desirable to reduce the number of times the robotic arm must move between the teat cup magazine and the udder. Therefore, grippers capable of carrying multiple teat cups are generally attractive. However, the anatomic characte- ristics of the udder and/or the teats may be such that if two or more teat cups are moved towards the udder in a multi-teat cup gripper, subsequent individual attachment of the teat cups is problematic because in this process the positioning means' view of the teats becomes obstructed and/or the udder and/or at least one teat interferes with the movement of the robotic arm carrying the gripper, the gripper and/or any other object mounted on the arm (e.g. an imaging means). Therefore, multi-grippers may be difficult/inefficient to employ, and sometimes even be excluded. It is also desirable to avoid the complex structure of a multi-teat cup carrier wherein the level of each teat cup is individually controllable. Moreover, the manner in which single-teat cup grippers are employed for teat cup attachment is sometimes sub-optimal from an efficiency point-of-view. SUMMARY OF THE INVENTION

The object of the present invention is to alleviate the above problems and thus offer a more efficient, reliable and flexible solution for automatically attaching teat cups to milking animals ir- respective of their udder and/or teat anatomy.

According to one aspect of the invention, the object is achieved by the initially described arrangement, wherein the control means is configured to receive the position estimates. In response thereto, the control means is configured to control the robotic arm and the gripper means to remove teat cups from the teat cup magazine in such a manner that the teat-receiving end of each of the at least one teat cup attains a horizontal level in the gripper means, which horizontal level is adapted to the at least one spatial characteristic of the udder. This arrangement is advantageous because thereby a subsequent attachment procedure for the animal in question can be made very efficient in terms of success rate as well as the time required.

According to one preferred embodiment of this aspect of the in- vention, the spatial characteristics of the udder registered by the positioning means include one or more of: a respective position estimate for a tip, a center point, and/or a root of each of the teats; a respective estimate of a three-dimensional angle to the horizontal plane for each of the teats, a respective length esti- mate for each of the teats and a respective thickness estimate for each of the teats. Consequently, the teat cups can be arranged in the gripper means in a manner that is highly adapted to the animal's udder characteristics.

According to another preferred embodiment of this aspect of the invention, the gripper means is configured to simultaneously hold at least two teat cups during transport thereof towards the udder. The control means is further configured to control the gripper means to grip the at least two teat cups in such a manner that the teat-receiving ends thereof attain a first horizontal level relationship in the gripper means. The first horizontal level relationship is adapted to a second horizontal level relationship between the position estimates for the tips of the teats to which the at least two teat cups are to be attached. Hence, multiple teat cups can be picked up so that they are optimally arranged in the gripper means with respect to the udder characteristics of the animal in question, and the teat cups can be attached very efficiently. According to yet another preferred embodiment of this aspect of the invention, the first horizontal level relationship is further adapted to select an order in which the at least two teat cups are to be attached to the teats based on the second horizontal level relationship. The control means is here configured to se- lect the first horizontal level relationship, such that a transit time between removing the at least two teat cups from the teat cup magazine to attaching a last teat cup of the at least two teat cups to its intended teat is expected to become minimal. Hence, the teat-cup-attachment process can be made highly efficient. According to still another preferred embodiment of this aspect of the invention, the positioning means is configured to generate position data representing a respective length estimate of the teats. The control means is configured to receive the position data and select the first horizontal level relationship based on a relative length of the teats, such that the teat-receiving end of a teat cup which is to be attached to a comparatively short teat attains a relatively high horizontal level in the gripper means and the teat-receiving end of a teat cup which is to be attached to a comparatively long teat attains a relatively low horizontal level in the gripper means. Consequently, the attachment procedure is further improved.

According to a further preferred embodiment of this aspect of the invention, the control means is configured to select the first horizontal level relationship based on the position estimates, such that an estimated risk is minimized that a movement of the robotic arm becomes restricted by the at least one spatial characteristic of the udder when moving the gripper means to attach the at least two teat cups to the teats. Thus, problematic udders can be specifically addressed.

According to yet another preferred embodiment of this aspect of the invention, the arrangement includes a database, and wherein the control means is configured to store the position estimates in the database. Thus, the position estimates in respect of a particular animal can be retrieved in connection with subsequent milking of the same animal, and high efficiency can be attained.

According to another aspect of the invention, the object is achieved by a milking installation configured to automatically extract milk from at least one animal, wherein the installation includes the above-described arrangement.

According to another aspect of the invention, the object is achieved by the initially described method, wherein the method comprises receiving the position estimates, and in response thereto, controlling the robotic arm and the gripper means to remove teat cups from the teat cup magazine in such a manner that the teat- receiving end of each of the at least one teat cup attains a horizontal level in the gripper means which horizontal level is adapted to the at least one spatial characteristic of the udder. The advantages of this method , as well as the preferred embodi- ments thereof, are apparent from the discussion hereinabove with reference to the proposed arrangement.

According to a further aspect of the invention, the object is achieved by a computer program, which is loadable into the internal memory of a computer, and includes software for controlling the above proposed method when the program is run on a computer.

According to another aspect of the invention, the object is achieved by a computer readable medium, having a program recorded thereon, where the program is to control a computer to perform the above-proposed method.

Further advantages, advantageous features and applications of the present invention will be apparent from the following description and the dependent claims.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention is now to be explained more closely by means of preferred embodiments, which are disclosed as examples, and with reference to the attached drawings.

Figure 1 schematically shows a milking installation accor- ding to one embodiment of the invention;

Figure 2 shows a schematic view of a teat cup magazine and a robotic arm according to one embodiment of the invention;

Figure 3 exemplifies an udder and shows spatial coordina- tes for the tips of its teats;

Figures 4a-c show examples of multi-grippers according to embodiments of the invention, and illustrates how the teat cups therein may be arranged at different horizontal levels; Figure 5 exemplifies an udder and illustrates anatomic parameters thereof, which may be employed according to embodiments of the invention in order to determine an appropriate horizontal level relationship between the teat cups in the gripper means; Figure 6 shows a first example of how the robotic arm and the gripper means may attach teat cups to a milking animal according to an embodiment of the invention;

Figure 7 shows a second example of how the robotic arm and the gripper means may attach teat cups to a milking animal according to an embodiment of the invention; and

Figure 8 illustrates, by means of a flow diagram, the general method according to the invention.

DESCRIPTION OF PREFERRED EMBODIMENTS OF THE IN- VENTION

We refer initially to Figure 1 , which schematically shows a milking installation 10 configured to automatically extract milk from at least one milking animal , for instance a cow. To this aim, the installation 10 includes at least one milking machine (not shown). However, a teat cup magazine 120 is represented, which holds a number of teat cups, say four. The teat cups, in turn, are connected to the milking machine via one or more milk hoses (not shown). Of course, during milk extraction, the teat cups are also connected to the teats of the animal being milked. Figure 1 exemplifies a rotary-parlor type of milking installation 10. Nevertheless, the invention is of course applicable to all kinds of installations where teat cups are to be fetched from a teat cup magazine 120.

A robotic arm 150 carries a gripper means 140 configured to grip and remove teat cups from the teat cup magazine 120. The gripper means 140 is configured to hold at least one teat cup during transport thereof towards an udder of the animal to be milked. According to preferred embodiments of the invention, however, the gripper means 140 is configured to simultaneously hold two or more teat cups. The robotic arm 150 is preferably further configured to attach the teat cups to the animal to be milked and release the teat cups from the gripper means 140. Moreover, after that the milking has been completed, the gripper means 140 may be configured to return the teat cups to the teat cup magazine 120. Alternatively, other means may be used for this task (e.g. pneumatic or vacuum cylinders).

A control means 1 10 is configured to control the robotic arm 150 and the gripper means 140. Preferably, the control means 1 10 includes, or is associated with, a computer readable medium M, e.g. in the form of a memory module, such that the control means 1 10 has access to the contents of this medium M. Furthermore, a program is recorded in the computer readable medium M, and the program is adapted to make the data processor 1 10 control the process to be described below when the program is run on the processor 1 10.

Turning now to Figure 2, we see a more detailed view of the teat cup magazine 120, a set of teat cups C1 , C2, C3 and C4 respectively, the gripper means 140 according to one embodiment of the invention and a distal part of the robotic arm 150. To enable attachment of the teat cups C1 , C2, C3 and C4 each teat cup has a teat-receiving end. The teat cup magazine 120 is configured to store the set of teat cups C1 , C2, C3 and C4 during a non-milking state. In Figure 2, the teat cups C1 , C2, C3 and C4 are stored hanging in the teat cup magazine 120 with the teat-receiving ends pointing downwards. Naturally, any other orientation of the teat cups C1 , C2, C3 and C4 in the teat cup magazine 120 is equally well conceivable according to the invention. However, the teat cup positioning shown in Figure 2 is advantageous, since it facilitates cleaning of the teat cups C1 , C2, C3 and C4, and reduces the risk that dirt and other unwanted objects enter into the teat cups C1 , C2, C3 and C4. As mentioned above, the gripper means 140 is configured to grip and remove teat cups from the teat cup magazine 120. In the embodiment illustrated in Figure 2, the gripper means 140 is also configured to simultaneously hold two teat cups, e.g. C1 and C2, during transport thereof towards the animal to be mil- ked. The gripper means 140 may employ different techniques to grip and hold the teat cups. For example, the teat cups C1 , C2, C3 and C4 may contain a magnetic material, and the gripper means 140 may include an electromagnetic means configured to attract and seize the teat cups under the influence of a magnetic field. Alternatively, or as a complement, the gripper means 140 may include suction means and/or friction based claws. The gripper means 140 is normally also associated with a switch and/or sensor circuitry adapted to determine when the gripper means 140 has attained an adequate grip of a given teat cup. If the gripper means 140 includes an electromagnetic gripper means, an electric and/or magnetic parameter correlated with the properties of a magnetic field can be used to determine whether or not the gripper means 140 has gripped the teat cup properly.

Although the gripper means 140 may be configured to simulta- neously hold two or more teat cups (such as C1 and C2 in Figure 2), the gripper means 140 is adapted to grip and remove each teat cup separately from the teat cup magazine 120. Preferably, the gripper means 140 is likewise adapted to release the teat cups separately after having been attached to the intended teats. The robotic arm 150 carries the gripper means 140, and is configured to transport the gripper means 140 between the teat cup magazine 120 and the teats to which the teat cups C1 , C2, C3 and C4 are to be attached.

If, as is the case in Figure 2, the teat cup magazine 120 stores the teat cups C1 , C2, C3 and C4 oriented with their teat-receiving ends pointing in a non-upward direction, the robotic arm 150 must turn each teat cup such that its teat-receiving end points upward before the teat cup reaches the teat to which the teat cup is to be attached. For example, this may be performed by rotating the distal part of the robotic arm 150 around its own axis.

Figure 2 additionally shows a positioning means 130, which is configured to determine position estimates representing at least one spatial characteristic of an udder where the teats are loca- ted to which the teat cups are to be attached . For example the spatial characteristics of the udder may include a respective position estimate for a tip, a center point, and/or a root of each teat. Additionally, or alternatively, the spatial characteristics may include a respective estimate of a three-dimensional angle to the horizontal plane for each of the teats. Moreover, alternatively, or as a complement thereto, the spatial characteristics may include a respective length estimate for the teats and/or a respective thickness estimate for each of the teats. Further de- tails concerning the spatial characteristics of the udder will be discussed below with reference to Figures 3, 5, 6 and 7.

In order to determine the spatial characteristics of the udder, the positioning means 130 registers reflected wireless energy. For instance, the positioning means 130 may therefore include one or more of laser source(s) and laser detector(s), imaging devi- ce(s) (of conventional and/or of the above-mentioned TOF type), radar(s) and sonar(s). The positioning means 130 is preferably arranged on the robotic arm 150. However, alternatively, the positioning means 130 may be separated from the robotic arm 150, and for example be located on stand in proximity to the expected udder position. A stationary positioning means 130 is advantageous because it allows position estimates to be registered already when the animal enters the milking box. Nevertheless, one advantage with arranging the positioning means 130 on the robotic arm 150 is that the positioning means 130 may be used in a straightforward manner also to control the robotic arm 150 and its gripper means 140 towards the relevant teat cups in the teat cup magazine 120. Moreover, it is possible to avoid occlusion by moving the positioning means 130 to different view- points.

Figure 3 shows an exemplifying udder U to whose teats T1 , T2, T3 and T4 respectively the teat cups C1 , C2, C3 and C4 are to be attached. The tip of each teat T1 , T2, T3 and T4 has a particular spatial coordinate (X 1 , y Λ , Z 1 ), (x 2 , y 2 , z 2 ), (x 3 , y3, Z3) and (x 4 , y 4 , z 4 ) respectively in a coordinate system X, Y, Z. According to one embodiment of the invention, the positioning means 130 is configured to determine a respective estimate of the teat tip positions (X 1 , y u Z 1 ), (x 2 , y 2 , z 2 ), (x 3 , y 3 , Z 3 ) and (x 4 , y 4 , Z 4 ). Thus, these position estimates may be included in the represen- tation of the spatial characteristics of the udder U. As mentioned above, the positioning means 130 is configured to determine position estimates of various other spatial characteristics of the udder U. Irrespective of which specific parameters are included in the spatial characteristics of the udder U, it is preferable to update the position estimates repeatedly in order to improve the data quality and to enable adaption to any changes in the spatial characteristics of the udder U. Additionally, it is advantageous if the control means 1 10 is configured to store the respective udder characteristics of each animal in a database S, such that the data can be retrieved in connection with subsequent milking of the same animal. As a result, the efficiency of the teat-cup attachment can be further improved.

The control means 1 10, in turn, is configured to control the robotic arm 150 and the gripper means 140 to remove a number of the teat cups C1 , C2, C3 and C4 from the teat cup magazine 120, receive the position estimates (X 1 , y-, , Z 1 ), (x 2 , y 2 , z 2 ), (x 3 , y 3 , Z 3 ) and (x 4 , y 4 , Z 4 ), and in response thereto control the robotic arm 150 and the gripper means 140 to attach the teat cups to each teat in a given set of the udder's U teats, say T1 and T3. Hence, based on information describing the morphology of the udder U, the control means 1 10 controls the gripper means 140 to grip at least one teat cup. As mentioned above, in each go, the gripper means 140 may either transport a single teat cup, or simultaneously carry multiple teat cups between the teat cup magazine 120 and the udder U. Also in case the gripper means 140 carries a single teat cup to the udder U for attachment, the udder morphology may determine what constitutes an appropriate level to grip the teat cup relative to its teat-receiving end. For example, in order to avoid hitting the udder U and/or its teat, when gripping a first teat cup to be attached to a first teat, a spatial relationship between the first teat and at least one second teat may influence the horizontal level at which the first teat cup shall be gripped relative to its teat-receiving end, even if the teat cup(s) to be attached to the at least one second teat will be fetched from the teat cup magazine 120 at a later stage. Referring further to Figure 4a, according to one embodiment of the invention, the control means 1 10 is specifically configured to control the gripper means 140 to grip two teat cups, say C1 and C2, in such a manner that the teat-receiving ends thereof attain a first horizontal level relationship in the gripper means 140. Figure 4a shows that the teat-receiving end of a first teat cup C1 has a first horizontal level z C i and that the teat-receiving end of a second teat cup C2 has a second horizontal level z C2 - As can be seen, the first level z C i is above the second level z C2> and the teat-receiving ends of the teat cups C1 and C2 point upwards. Of course, if the teat cup magazine 120 stores the teat cups C1 and C2 with their teat-receiving ends pointing downwards, the relationship between z C i and z C2 is the opposite when gripper means 140 grips the teat cups C1 and C2 and removes them from the teat cup magazine 120. In any case, the first horizontal level relationship between the first and second levels z C i and Zc 2 respectively is adapted to a second horizontal level relationship between the position estimates for the tips of the teats T1 and T3 to which the teat cups C1 and C2 are to be attached. In this example, the teat T1 is estimated to be positioned at a first horizontal level Z 1 and the teat T3 is estimated to be positioned at a second horizontal level Z 3 that is somewhat below the first horizontal level Z 1 . Prima facie, this renders the arrangement of the teat cups C1 and C2 in the gripper means 140 adapted to the teats T1 and T3, if the first teat cup C1 is to be attached to the teat T1 , the second teat cup C2 is attached to the teat T3, and the first teat cup C1 is attached before the second teat cup C2. According to one embodiment of the invention, the first horizontal level relationship is adapted to the order in which the teat cups C1 and C2 in the gripper means 140 are to be attached to designated teats, i.e. in this example T1 and T3. The control means 1 10 selects the first horizontal level relationship, such that a transit time between removing the teat cups C1 and C2 from the teat cup magazine 120 to attaching a last teat cup, here C2, to its intended teat, here T3, is expected to become minimal. However, as will be discussed below with reference to Figures 5 6 and 7, if additional information is known about the udder U and/or its teats T1 and T3 and/or if the direction in which the gripper means 140 approaches the udder U is different, or is va- riable, another relationship between the levels z C i and z C2 and/ or the order in which the teat cups C1 and C2 are attached may prove to be superior.

Figures 4b and 4c show gripper means 140 according to embodiments of the invention, which gripper means 140 are configu- red to simultaneously carry three and four teat cups respectively. Analogous to the discussion above with reference to Figure 4a, each gripper means 140 is configured to grip the teat cups in such a manner that the teat-receiving ends thereof attain a first horizontal level relationship in the gripper means 140, which first horizontal level relationship is adapted to a second horizontal level relationship between the position estimates for the tips of the teats to which the teat cups are to be attached. In Figure 4b this means that the teat-receiving end of a first teat cup C1 is located at a first horizontal level z C i , the teat-receiving end of a second teat cup C2 is located at a second horizontal level z C2 and the teat-receiving end of a third teat cup C3 is located at a third horizontal level z C3 ; and in Figure 4c the teat-receiving end of a first teat cup C1 is located at a first horizontal level z C i , the teat-receiving end of a second teat cup C2 is located at a second horizontal level z C2 , the teat-receiving end of a third teat cup C3 is located at a third horizontal level z C3 and the teat- receiving end of a fourth teat cup C4 is located at a third horizontal level z C4 .

As can be seen, each teat cup C1 , C2, C3 or C4 can be positio- ned in the gripper means 140 at arbitrary horizontal level in a range, which is essentially equal to the extension of the teat cup shell.

Figure 5 shows an example of an udder U having teats T1 , T2, T3 and T4. A first teat T1 has a first length L1 and a first three- dimensional angle cci to the horizontal plane; a second teat T2 has a second length L2 and a second three-dimensional angle (X 2 to the horizontal plane; a third teat T3 has a third length L3 and a third three-dimensional angle α 3 to the horizontal plane; and a fourth teat T4 has a fourth length L4 and a fourth three-dimensional angle α 4 to the horizontal plane. Although not explicitly shown in Figure 5, each teat T1 , T2, T3 and T4 also has a respective thickness (or average diameter), which may influence the teat cup attachment. Hence, the thicknesses, the lengths L1 , L2, L3, L4, the angles cci , α 2 , α 3 and α 4 are parameters that designate spatial characteristics of the udder U, and these parameters in turn, determine how a set of teat cups should be attached to the teats T1 , T2, T3 and T4 respectively via a gripper means 140. According to one embodiment of the invention , the positioning means 130 is configured to generate position data representing the respective lengths L1 , L2, L3 and L4 of the teats T1 , T2, T3 and T4. The control means 1 10 is configured to receive this position data, and based thereon select the first horizontal level re- lationship, such that the teat-receiving end of a teat cup which is to be attached to a comparatively short teat attains a relatively high horizontal level in the gripper means 140 and the teat-receiving end of a teat cup which is to be attached to a comparatively long teat attains a relatively low horizontal level in the gripper means 140. In particular, it is desirable to position the teat cup at a relatively high horizontal level in the gripper means 140 when attaching a teat cup to a relatively short teat because thereby the risk of hitting the udder U with the positioning means 130 during the attachment procedure decreases. Assuming that a first teat cup C1 is to be attached to the first teat T1 and that a second teat cup C2 is to be attached to the third teat T3, this means that in the example illustrated in Figure 5 the teat-receiving end of the first teat cup C1 is arranged at a relatively high level z C i in the gripper means 140 and the second teat cup C2 is arranged at a relatively low level z C2 in the grip- per means 140. Normally, it is also advantageous if the most elevated teat cup (i.e. here C1 ) is attached first.

However, if for example the difference between the levels z C i and Zc 2 is comparatively small, and the udder anatomy is such that the positioning means 130 risks interfering with the udder U, it may instead be preferable to attach the teat cups C1 and C2 in a different order.

Therefore, according to one embodiment of the invention, the positioning means 130 is configured to register data represen- ting at least one spatial characteristic of the udder U in addition to the above-mentioned data, e.g. the udder's U extension at various levels in front of, behind, on the sides of and/or between the teats T1 , T2, T3 and T4. The control means 1 10 is configured to receive the spatial data and based thereon select the first horizontal level relationship, such that an estimated risk is minimized that a movement of the robotic arm 150 becomes restricted by the at least one spatial characteristic of the udder U when moving the gripper means 140 to attach the teat cups to teats thereof. Naturally, the movement of the robotic arm 150 may be restricted due to various reasons, for example because of the geometric properties of the arm itself, or any device attached thereto (or even the teat cups) are such that these structures interfere with the udder U and/or with at least one of the teats T1 , T2, T3 or T4. The three-dimensional angles Oc 1 , α 2 , α 3 and α 4 for the teats T1 , T2, T3 and T4 respectively may also influence the first horizontal level relationship and the most suitable attachment order. For example, if the tips of two or more teats are located at essentially the same horizontal level, it is normally advantageous to at- tach a teat cup to the most inclined teat first. Namely, if this teat becomes further tilted when attaching teat cups to the other teats, there is an increased risk for attachment failure (e.g. involving folding the teat inside the teat cup) regarding the teat. Figure 6 shows how the robotic arm 150 and the gripper means 140 may be used to attach a pair of teat cups C1 and C2 to designated teats of a milking animal A according to one embodiment of the invention. Here, the robotic arm 150 approaches the animal A from the side in front of the hind legs HL and HR and behind the front legs FL and FR, i.e. as is the case for the milking installation shown in Figure 1 .

Generally, in such a case, in order to minimize the risk of milk hose entanglement, it is advantageous to attach teat cups to the rear teats first. Thus, when the robotic arm 150 approaches the animal A for the first time, a first teat cup C1 may be attached to a first teat T1 and a second teat cup C2 may be attached to a second teat T2. Then, in a second round, a third teat cup may be attached to a third teat T3 and a fourth teat cup may be at- tached to a fourth teat T4 in a front row of the udder U. However, as discussed above, any other attachment order may prove more efficient depending on the anatomic characteristics of the udder U and its teats T1 , T2, T3 and T4.

Figure 7 shows an embodiment of the invention where the robo- tic arm 150 instead approaches the animal A from behind, i.e. between the hind legs HL and HR. Here, the attachment order for the teat cups C1 and C2 may be determined entirely based on the anatomic characteristics of the udder U and its teats T1 , T2, T3 and T4 of the animal A in question as described above. In order to sum up, we will now describe the general method according to the invention with reference to the flow diagram in Figure 8.

A first step 810 checks whether or not the control means has received any position estimates in respect of the udder to whose teats teat cups are to be attached. If no such estimates have been received, the procedure loops back and stays in step 810. If an automatic procedure is available for teaching the system relevant teat positions, such a procedure may be employed to acquire the position estimates in step 810. In any case, when position estimates have been received, the procedure continues to step 820, which determines at least one spatial characteristic of the udder. Then, a step 830 controls the gripper means to grip at least one teat cup in such a manner that the teat- receiving end of each teat cup attains a horizontal level in the gripper means, which level is adapted to the at least one spatial characteristic of the udder to whose teats the at least one teat cup is to be attached. Subsequently, a step 840 controls the robotic arm to move towards the animal's udder while carrying the at least one teat cup, and controls the gripper means in such a manner that each teat cup in the gripper means is attached to a designated teat of the udder in a given order. Preferably, during this process, the positioning means continues to produce updated position estimates for the teat tips, and further preferably also for other relevant anatomic features of the udder.

Finally, after having attached each teat cup carried by the griper means, a step 850 checks if further teat cups are to be attached. If so, the procedure loops back to step 830 and otherwise the procedure ends. Generally, if attachment and subsequent milking is considered to have been completed successfully, updated position estimates are preferably stored in the database S.

All of the process steps, as well as any sub-sequence of steps, described with reference to Figure 8 above may be controlled by means of a programmed computer apparatus. Moreover, although the embodiments of the invention described above with reference to the drawings comprise computer apparatus and processes performed in computer apparatus, the invention thus also extends to computer programs, particularly computer programs on or in a carrier, adapted for putting the invention into practice. The program may be in the form of source code, object code, a code intermediate source and object code such as in partially compiled form, or in any other form suitable for use in the implementation of the process according to the invention. The program may either be a part of an operating system, or be a separate application. The carrier may be any entity or device capable of carrying the program. For example, the carrier may comprise a storage medium, such as a Flash memory, a ROM (Read Only Memory), for example a DVD (Digital Video/Versatile Disk), a CD (Compact Disc) or a semiconductor ROM, an EP- ROM (Erasable Programmable Read-Only Memory), an EEPROM (Electrically Erasable Programmable Read-Only Memory), or a magnetic recording medium, for example a floppy disc or hard disc. Further, the carrier may be a transmissible carrier such as an electrical or optical signal which may be conveyed via electrical or optical cable or by radio or by other means. When the program is embodied in a signal which may be conveyed directly by a cable or other device or means, the carrier may be constituted by such cable or device or means. Alternatively, the carrier may be an integrated circuit in which the program is embedded, the integrated circuit being adapted for performing, or for use in the performance of, the relevant processes. Although the invention primarily is intended to be utilized in connection with cow milking, the invention is equally well adapted for testing milking machines for any other kind of mammals, such as goats, sheep or buffaloes.

The term "comprises/comprising" when used in this specification is taken to specify the presence of stated features, integers, steps or components. However, the term does not preclude the presence or addition of one or more additional features, integers, steps or components or groups thereof.

The reference to any prior art in this specification is not, and should not be taken as, an acknowledgement or any suggestion that the referenced prior art forms part of the common general knowledge in Australia, or any other country.

The invention is not restricted to the described embodiments in the figures, but may be varied freely within the scope of the claims.