DEVICE AND METHOD FOR AUTOMATICALLY MILKING COWS

Abstract: The invention relates to a sensor device for use, for example, in an automatic milking device and, in particular, for detecting the positions of the teats of an animal which is to be milked. The sensor device comprises a number of radiation sources which generate non-divergent radiation beams which have different positions and/or directions which are known in the control unit. The reflections from the irradiated object are detected using detectors, and there are means for distinguishing between the reflections from the various radiation sources, so that the control unit is able to establish the position of the object.

Description: Device and method for automatically milking cows The invention relates to a sensor device according to the preamble of Claim 1. A sensor device of this nature is known from EP 0,455,305, which shows a sensor which can rotate about a vertical axis and which generates horizontally directed laser beams which, by means of the rotation of the sensor, cover the horizontal plane. The position of the object to be detected is determined by recording the direction of the laser beam and the distance from the object to the sensor in the control unit. The drawback of the known device is that the position of the object is highly dependent on the direction of the laser beam, which therefore has to be determined with a high level of accuracy, and this is difficult to achieve. Also, the means of measuring the distance between the sensor and the object are relatively expensive. The object of the invention is to eliminate the abovementioned drawbacks, and to this end the sensor device is designed in accordance with the characterizing part of Claim 1. In this way, the sensor device is provided with simple radiation sources and detectors for determining the position of the object reliably and inexpensively. According to a refinement, the sensor device is designed according to the characterizing part of Claim 2. This makes it easy to distinguish between the various radiation sources. According to one embodiment, the sensor device is designed according to Claim 3. This provides a further distinction between the various radiation sources, with the result that if appropriate it is also possible for a plurality of sources to be activated simultaneously. According to one embodiment, the sensor device is designed according to Claim 4. In this way, the position of the object can be established with greater accuracy. According to one improved embodiment, the sensor device is designed according to Claim 5. In this way, it is simple to detect two or more objects in the operating area. According to a further refinement, the sensor device is designed according to Claim 6. Positioning the radiation sources next to one another in a sensor unit makes them easy to position with accuracy. According to a further refinement, the sensor device is designed according to Claim 7. This makes activation and switching of the radiation sources easier and avoids thick cables with many different cores leading from the control unit to the radiation sources . The invention also comprises a milking device according to the preamble of Claim 8. A milking device of this nature is known from the document referred to above. Using the abovementioned sensor device in accordance with the characterizing part of Claim 6 results in an accurate and operationally reliable device. According to one embodiment, the milking device is designed according to Claim 9. In this way, the teats can be located in a simple manner. According to one embodiment, the milking device is designed according to the characterizing part of Claim 10. In this way, it is simple to detect the position of all the teats of the udder simultaneously. The invention also comprises a sensor unit according to Claim 11. A sensor unit of this nature is compact and easy to install, and it is possible to generate a large detection field without the need for a large signal cable leading to the sensor unit. The invention will be explained below with reference to a drawing showing a number of exemplary embodiments, in which: Figure 1 shows a diagrammatic plan view of a milking stall with an automatic milking device, Figure 2a shows a diagrammatic plan view of a first embodiment of a sensor system as used in Figure 1, Figure 2b diagrammatically shows how the sensor system shown in Figure 2a operated, Figure 3a shows a diagrammatic plan view of a second embodiment of a sensor system as used in Figure 1, Figure 3b diagrammatically shows how the sensor system shown in Figure 3a operates, Figure 4a shows a diagrammatic plan view of a third embodiment of a sensor system as used in Figure 1, Figure 4b diagrammatically shows how the sensor system shown in Figure 4a operates, Figure 5a shows a diagrammatic plan view of a fourth embodiment of a sensor system as used in Figure 1, Figure 5b diagrammatically shows how the sensor system shown in Figure 5a operates, Figure 5c shows a diagrammatic side view of the sensor system of Figure 5a, Figure 5d shows a detailed view of the sensor unit of the sensor system of Figure 5a. Wherever possible, the various figures use identical reference numerals for identical components. Figure 1 shows a milking stall 2 which is surrounded on three sides by a fixed fence 4 and on the fourth side has an entry gate 11 and an exit gate 3, which are attached to a fixed fence 4. In the milking stall 2, there is a feed trough 6 which, by means of a slide mechanism 5, can be displaced in the longitudinal direction of the milking stall 2 and by mean of which the length of the milking stall 2 is adapted in a known way to the length of an animal which is to be milked, such as a cow 1. If appropriate, there may be identification means (not shown) for establishing the identify of cow 1. The cow 1 can enter the milking stall 2 via the entry gate 11, where it can be milked. For this purpose, a milking rack 10 is moved beneath its udder and milking cups 12 are automatically attached to the teats of the udder. For this attachment of the milking cups 12 to the teats, use is made of a manipulator 8 which can be displaced along a rail 7 in the longitudinal direction of the milking stall 2. The milking rack 10 is attached to the manipulator 8 by means of a manipulator arm 9. The milking cups 12 are connected in a known way to milking equipment (not shown) . As is diagrammatically depicted, the various components of the installation are controlled by a control system C. The milking stall 2 shown may be used on its own, or else there may be a plurality of milking stalls 2 positioned one behind the other. In this case, each milking stall 2 may have its own manipulator 8, as shown here, or else each milking stall 2 may, in a known way, have a milking rack 10 which can be moved by a common manipulator 8 which alternately attaches the milking cups 12 of the various milking racks 10 in the various milking stalls 2 to the teats of the udders of various cows. Figures 2a and 2b show a first embodiment of a sensor system which measures the position of the teats, which position can be calculated with respect to the milking stall 2 or with respect to the milking rack 10. This is possible because the position of the milking cups 12 with respect to the milking stall 2 is known in the control unit C via encoders which are present in the manipulator 8. A first radiation-sensitive detector 13 and a second radiation-sensitive detector 15 are positioned on the centre axis of the milking rack 10. The direction of sensitivity of the detectors 13 and 15 is oriented towards the long side, remote from the entry gate 11, of the milking stall 2. On this long side, a light strip 16 is arranged outside the fixed fence 4, which light strip comprises a large number of infrared radiation sources 17 which are located at a short distance from one another, for example with a gap of from 5 to 8 mm between them. The radiation sources are designed in such a way that the time for which radiation is emitted may be extremely short. The radiation from the infrared sources 17 can be detected by the detectors 13 and 15. This sensor system operates as follows. The radiation sources 17 are successively activated and then emit a divergent beam of infrared radiation for a short time. The first detector 13 and the second detector 15 establish which of the illuminating radiation sources 17 are visible. This is established for each radiation source 17 in the control system C. Preferably, the radiation sources 17, which may be designed as Light-Emitting Diodes, or LEDs, emit infrared light which is invisible to the cow which is to be milked. Other electromagnetic radiation is also possible . In the situation depicted in Figure 2b, the presence of a teat T means that the radiation sources pl5 and plβ will not be detected by the first detector 13, and the radiation sources p4 and p5 will not be detected by the second detector 15. In the control unit C, the position of the detectors 13 and 15, via the position measurement by means of encoders in the manipulator 8, and the position of the radiation sources pl-pl8 are known, so that the position of the teat T can be calculated. The time for which the radiation sources (LEDs) light up may be from a few microseconds to a few milliseconds. For a duration of 1 millisecond, a detection cycle using 100 radiation sources lasts from 0.1 to 0.2 sec. The detection frequency with which the position of the teat T can be established may then be 5-10 Hz, which is generally sufficient to follow the movements of the cow 1. If necessary, the duration of radiation per radiation source can be shortened further, so that the detection frequency can be increased without problems. In one embodiment, each LED emits a pulse sequence of 33 microseconds on, 33 microseconds off, 33 microseconds on and then off, with a subsequent LED starting 200 microseconds after the first LED has started. The LED is recognized as the radiation source as a result of the pulse sequence and is not confused with ambient sources. Once the position of the teat T is known, a sensor 14 which is sensitive all the way round is positioned centrally beneath the udder, and the position of the teats with respect to one another is established in a known way, so that all the positions of the teats are known in the control unit C and the milking cups 12 can be attached in a known way. In the exemplary embodiment shown, the two radiation-sensitive detectors 13 and 15 are mounted at a fixed position on the milking rack 10. It is also possible, instead of having two detectors 13 and 15, to use one detector which is moved alternately to two different positions, either by positioning a carriage on the milking rack 10 or by displacing the milking rack 10. In a preferred embodiment, the light strip 6 is vertically adjustable in a manner which is known, for example by being attached to a carriage and by coupling the vertical adjustment of the light strip 6 to that of the milking rack 10 and the manipulator 8, so that the detection field between the light strip 16 and the detectors 13 and 15 is always more or less horizontal. Figures 3a and 3b show a second embodiment of a sensor system for detecting a teat T. The sensor system comprises a first light strip 18 which is mounted on the milking rack 10 and on which there are radiation sources which emit non-divergent beams of electromagnetic radiation towards the rear side of the animal which is to be milked. This radiation is generated, for example, in a laser source. The radiation sources may then be laser LEDs which emit infrared or visible light. The beams al-a9 which are located next to one another in the horizontal plane are parallel to one another and perpendicular to the light strip 18. A first radiation-sensitive detector 19, which is able to detect radiation reflected from an object, is positioned beneath, above or in the vicinity of the light strip 18. Along the side of the milking stall 2, there is a light strip 20 having, for example, laser light sources which are able to generate non-divergent, parallel beams of electromagnetic radiation bl-b8 which are located next to one another. In the vicinity of the light strip 20, there is a second radiation-sensitive detector 21. The laser beams which are fitted in the light strip 18 generate radiation beams al-a9 which lie in a single plane and, in that plane, intersect the radiation beams bl-b8 which are generated by the laser sources in the light strip 20. For detection of the teat T, this detection plane is horizontal, as a result of the vertical movement of the light strip 20 being coupled to the vertical movement of the light strip 18. By means of the control system C, the laser sources in the light strips 18 and 20 are activated successively. On activation of each laser source separately, the radiation-sensitive detectors 19 and 21 are used to check whether the radiation beam is reflected, and this is recorded in the memory of the control unit C. In the situation shown in Figure 3b, the radiation beams a6 and b5 are reflected. Since the position and direction of the radiation beams is known in the control unit C, it is possible to calculate the position of the teat T. The time for which each radiation source emits radiation may be very short, for example a few tens of microseconds, so that it is possible to achieve a high detection frequency. In the exemplary embodiment, the light strip 20 is positioned outside the fixed fence 4 of the milking stall 2. However, it is also possible for the light strip 20 to be mounted in a known way on the milking rack 10, resulting in a smaller detection field. The light strip 20 is attached to a carriage and is vertically adjustable, the height always being kept equal to that of the light strip 18, so that the radiation beams are always active in one detection plane. The height adjustment may be coupled to the height of the milking rack 10 mechanically or via an electronic control unit. A sensor 14 which is sensitive all the way around is attached to the milking rack 10, so that after the position of the teat T has been determined, the positions of all the teats can be established in the manner described above and the milking cups can be attached. In the exemplary embodiment, the radiation sources act in succession and are distinguished from one another in this way as a result of this being recorded in the control unit C. This distinction can also be established differently, for example as a result of each radiation source emitting radiation with a characterizing code or frequency. The code may then comprise a pulse train of characterizing frequency or duration, and the radiation beam with this code is identified by the detectors as coming from a particular radiation source. Moreover, each radiation source may additionally also generate a code in order to distinguish the radiation from ambient radiation. Figures 4a and 4b show a third embodiment of a sensor system for detecting a teat. A first sensor 22 and a second sensor 23 are arranged on the milking rack 10. Each sensor 22 or 23 emits a beam of laser radiation in a horizontal plane, which radiation covers a segment of a circle with an angle α. The common part of the circle segments is the detection area. In each sensor 22 and 23, there is a detector for detecting reflection of the radiation emitted by the sensor. There are also means for establishing the time which elapsed between transmission and reception of the radiation, for example by measuring the phase difference between the transmitted and received radiation. As a result, it is possible, using the sensors 22 or 23, to successively establish a distance rl or r2, respectively, to the teat T, so that it is possible to calculate the position of the teat T. Then, with the aid of the sensor 14 which is sensitive all the way around, it is possible, in the way described above, to calculate the positions of the other teats as well. In exemplary embodiments shown, milking rack 10 is moved by the manipulator 8, which is coupled thereto. The various sensors and detectors may in this case be attached to the milking rack 10 or the manipulator 8. If the manipulator 8 is able to operate more than one milking stall 2, the sensors and detectors are preferably attached to the manipulator 8. In the exemplary embodiments shown, use is made of a first sensor system for detecting a teat T and a second sensor system with a sensor 14 which is sensitive all the way around for establishing the position of the teats with respect to one another. However, it is also possible, in particular with the sensor systems according to the first and second exemplary embodiments, to establish the positions of all four teats directly. For this purpose, it is possible, for example, to position two light strips at right angles to one another on the milking rack 10, if appropriate with detectors on both long sides and possibly also the rear side of the milking stall 2. It is also possible to arrange light strips along both long sides of the milking stall 2, in which case the detectors positioned on the milking rack 10 are able to detect all the way around. One of these designs of the sensor system is shown in the fourth exemplary embodiment which is shown in Figures 5a and 5b. On the centre axis in the longitudinal direction of the milking rack 10, there is a central light strip 24 which is able to emit electromagnetic radiation, which is generated by radiation sources, in non-divergent radiation beams towards both sides of the milking stall 2, over the milking cups 12. On the front of the milking rack 10, a light strip 27 is arranged on both sides of the milking rack 10, the radiation from which light strip, generated by separate radiation sources, is directed towards the rear and which is able to emit non- divergent radiation beams over the milking cups 12. In the centre of the milking rack 10, on each side of the central light strip 24, there is a detector 25 which is directed towards the rear and a detector 26 which is directed towards the front. A longitudinal detector 28 is arranged beneath each light strip 27. The light strips 24 and 27 and the detectors 25, 26 and 28 are connected to the control unit C. Figure 5b shows how the sensor system operates, it being possible to calculate the positions of the teats Tl, T2, T3 and T4. The light strips 24 and 27 emit radiation beams Bl, B2, B3 and B4 which lie in a single plane. The radiation is generated by radiation sources, such as for example laser LEDs, which successively emit narrow, non-divergent beams of electromagnetic radiation (such as for example infrared light) . If a radiation beam comes into contact with a teat, the light is reflected from the teat. This reflection is detected by one or two of the detectors 25, 26 and 28. By analysis of these detections in the control unit C, it is possible to determine whether the detected reflection is from a front teat T3 or T4 or rear teat Tl or T2. Since the radiation source from which the reflected light emanates is known, it is possible for the position of the teats to be determined accurately. The radiation source from which the reflected radiation emanates can be determined in two ways, i.e. due to the fact that the radiation sources are activated successively and/or due to the fact that a radiation source emits coded radiation, for example by emitting a pulse train with characterizing properties. If appropriate, the radiation sources of the left-hand and the right-hand side of the milking rack 10 are considered separately. If this results in undesirable reflection, all radiation sources are identified separately. Figures 5c and 5d show that the light strips 24 and 27 are composed of sensor units 29 which are each provided with laser LEDs 30 with a distance P between them. The distance P is, for example, 5-8 mm. The way in which the exemplary embodiment shown operates is as follows. By means of the manipulator 8, the milking rack 10 is positioned beneath the belly of the cow 1. The light strips 27 and the detectors 28 are activated, and the position of the teats with respect to the milking rack 10 is established. After the centre axis of the milking rack 10 has been positioned centrally between the teats, the milking rack 10 is moved towards the rear. Then, the light strips 24 and the detectors 25 and 26 are activated, so that the positions of all the teats can be established in the manner described above. Then, the milking cups 12 are attached. For detection of the teats, it is important for the level of the teats to be established. This is achieved in a known way by moving the sensor system upwards and stopping this movement as soon as two or four teats are detected. This may be carried out both when the milking rack is being centred beneath the udder and, if necessary, again when the positions of all four teats are being detected. In addition to the embodiment of the milking device shown, in which the milking cups 12 are supported on a milking rack 10 before they are positioned around the teats of the udder, it is also possible to use the sensors in a similar way in a device in which the milking cups 12, before they are attached, are stored in a rack positioned along the milking stall 2. The milking cups 12 are then taken out of the rack one by one by a manipulator and are attached to a teat. It is then possible, if appropriate, to attach a sensor system as described above, for example a system in which non-divergent radiation beams intersect one another in a detection plane, to the manipulator which attaches the milking cup 12 to the teat. This plane may be horizontal, as described in the context of the embodiments shown in Figures 3a and 3b and Figures 5a and 5b. The beams may also be positioned and directed in such a manner that, for example, a conical and upwardly directed detection plane with intersecting radiation beams is formed. This solution makes it possible to approach the udder from below when the milking cups 12 are being attached. The dimensions of the detection plane are preferably selected in such a manner that if appropriate a plurality of teats can be detected simultaneously, so that it is possible to establish in the control unit C which of the teats is detected at a particular moment. In another embodiment, the position of the animal to be milked is detected in a known way, with the result that the general position of the teats is known in the control unit on the basis of the identity of the animal to be milked, and the sensor device is used for accurate positioning of a milking cup 12 around a teat. If appropriate, the exemplary embodiments described above may be adapted by using components or structures from one embodiment in a different embodiment .

Claims: Claims 1. Sensor device for determining the position and possibly the size of an object, such as for example the position of a teat (T; Tl, T2, T3, T4) of an animal (1) which is to be milked, comprising a radiation source (18, 20; 24, 27, 30) for generating a non-divergent radiation beam, such as laser radiation, a detector (13, 15; 19, 21; 25, 26, 28) for detecting the reflection of the radiation beam from the object (T; Tl, T2, T3, T4) which is present in the operating area, and a control unit (C) for using the direction of the radiation beam and the detected reflection to calculate the position, and possibly the size, of the object, characterized in that the sensor device comprises a number of radiation sources (30), the radiation beams from which have different positions and/or directions which are known in the control unit, and means are provided for establishing the radiation source associated with a detected reflection. 2. Sensor device according to Claim 1, characterized in that the means for establishing the radiation source comprise switching means which activate the radiation sources (30) successively. 3. Sensor device according to Claim 1 or 2, characterized in that the means for establishing the radiation source comprise means for generating characterizing radiation, such as pulse-width modulated radiation with a pulse train of characterizing form. 4. Sensor device according to Claim 1, 2 or 3, characterized in that there are at least two detectors (13, 15; 19, 21; 25, 26, 28) for detecting reflections. 5. Sensor device according to one of Claims 1-4, characterized in that two or more interacting detectors (25, 26) cover different parts of the operating area. 6. Sensor device according to one of the preceding claims, characterized in that the radiation sources (30) are mounted in a line next to one another in sensor units (29) , the radiation beams optionally being parallel . 7. Sensor device according to Claim 6, characterized in that each sensor unit (29) comprises switching means for successively activating the radiation sources (30) mounted in the sensor unit (29) . 8. Milking device for automatically milking animals (1), comprising a milking stall (2), milking cups (12), a manipulator (8) for placing the milking cups (12) around the teats (T; Tl, T2, T3, T4) of an udder of a cow, a sensor device for determining the position of the teats and a control unit (C) for controlling the device, characterized in that the sensor device is designed according to one of the preceding claims. 9. Milking device according to Claim 8, characterized in that the radiation sources (30) emit beams which intersect one another and lie in one plane, which plane is moveable with respect to the milking stall (2). 10. Milking device according to Claim 8 or 9, in which the milking cups (12), before they are attached, are supported by a milking rack (10) which is to be positioned beneath the udder, characterized in that radiation sources (30) are arranged on the centre of the milking rack (10), which radiation sources are directed towards each side of the milking stall (2) and interact, inter alia, with two detectors (25, 26) , which each cover different parts of the area , above the milking rack (10) . 11. Sensor unit (29) for use in a device according to one of the preceding claims, provided with a number of radiation sources (30) which are positioned in a line next to one another, characterized in that the radiation sources generate non-divergent, parallel radiation beams, and the sensor unit (29) is provided with switching means for activating the radiation sources (30) successively.

Inventors: DESSING JACOBUS PETRUS MARIA, OOSTERLING PIETER ADRIAAN, DESSING, JACOBUS, PETRUS, MARIA, OOSTERLING, PIETER, ADRIAAN
Applicants: DESSING JACOBUS PETRUS MARIA, OOSTERLING PIETER ADRIAAN, PROLION BV, DESSING, JACOBUS, PETRUS, MARIA, OOSTERLING, PIETER, ADRIAAN, PROLION B.V.
Application year: 1999
Main classification: A01J5
IPC codes: A01J5, G01B11, G01S5, G01S17