This invention relates to a process for gripping an object with a robot arm equipped with a camera.
The camera takes images of the object to be reached and its environment during the movements of the arm and guides it to the object. A computer is used to locate the object and determine its position with respect to the end of the arm using the images, to calculate the command to be sent to the arm to bring the end to the object to be gripped, and to transmit this command to the arm. The gripping instrument at the end of the arm is closed at the end of the arm movement to grip the object. The commands may be recalculated progressively as the arm moves and new images are taken into consideration.
It is know that certain positional information of the objects in the field of a camera may be deduced from the position of their representation on the image if the parameters of the camera are known, such as the focal length, the shutter angle, or the distortion. This information is however incomplete as a point of the image is associated to a straight projection line of the environment, in any point of which the surface of the object examined may be situated. There are however processes where retro-projection calculations made using additional information provide the position of the object positioned in front of a camera by the positions of points determined from the object in the image: if the computer knows the relatives positions of these points on the object, it can determine the distance and orientation of the object with respect to the camera in addition to its direction. In practice, marker points are used on the object consisting of reflective or coloured stickers whose relative positions on the object are known. By identifying these points and determining their position on the image, the processing computer deduces the distance and the orientation of the object with respect to the camera, in addition to its direction, provided by the projection lines leading to the marker points. These processes are quite efficient but do not concern the gripping of everyday objects for which it cannot be conceived to mark them up; and they fail when unfavourable orientations of the object hide the marker points.
Another common process consists of learning the position of the object, which is indicated by the operator to the computer. The camera permits the position of the object to be adjusted progressively as it becomes detached from the background of the image during the approach of the arm. This process is however very sensitive to errors, the object generally cannot be reached when its position has not been clearly indicated, or if it has moved during the process.
The purpose of the invention is to improve the locating of the object to be gripped during the movement of the arm and the camera. In a chain of images comprising at least two images from the camera, the points are selected using an algorithm in which each of the images, the movements between the selected points of each of the images and the points selected from at least one of the other said images are calculated and polled, one of the movements, polled a majority of times, is selected and attributed to points belonging to the object, and the coordinates of the said points belonging to the object are calculated according to the selected movement and a measured movement of the camera between the images between which the selected movement is observed.
There is therefore no longer a learning process of the position of the object, nor marking, nor even identification of the object or details of it, At most and just possibly simple designation of the object on the initial image, after which the arm moves towards it without any further intervention by the operator.
Certain characteristics of the invention will become clearer upon reading the detailed description of the following figures:
and
One important application of the invention is assistance to handicapped persons. Robot arms whose command only requires very limited physical capacities already exist to help them, but the difficulties mentioned above to command them often mean that they are slow to accomplish their tasks correctly. We have illustrated, in
The camera 2 takes an image of the environment situated in front of it, which is represented on the left of
The locating process according to the invention is applied. It comprises the selection of a certain number of points on the image 7. Known techniques include the use of Moravec detectors, Harris and Stephens detectors, and the SUSAN filter. They often include an analysis of the image 7 permitting its specific features to be distinguished, such as the edges of the elements its represents, according to the sharp variations in light from one point of the image to another. The points selected may be for example the angles of the separation lines between the elements. It should be pointed out that the selection of the points does not depend on the operator but on the programme alone, and that the operator is not informed of this; however, the operator can limit the selection of the points for this first image 7 to the regions including the image of the object 8 and the surrounding area, by specifying for example a frame 9 outside of which the points selected are discarded. The points finally selected are noted with a letter A followed by a numerical index 1, 2, etc.
A first movement of the arm 1 is made, and the camera 2 takes another image 10 in which the image of the object has the reference 11. The algorithm for selecting the points is used again and provides a new selection of points, noted with the letter B and a numerical index. For the clarity of the explanation, the old image of the object 8 will be shown superimposed, even though it is invisible on this image 10.
The next step consists of polling the movements between the positions of the points A on the old image 7 taken by the camera 2 and the positions of the points B on this image 10. These movements are noted Δjk between the point Aj and the point Bk. All of the A points and all of the B points are thus paired by a movement, except just to retain only the movements compatible with an epipolar constraint which depends on the movement of the camera 2 between the shooting of images 7 and 10: we only try to pair to an A point the B points present in a zone where we expect this A point to be now situated according to the movement of the camera 2 what can be estimated according to the relationship of the horizontal and vertical movements of the camera 2 (en X and Y) in the plane of the images, which permits the direction of movement of the image of the object to be estimated on the images taken by neglecting the B points present elsewhere and in particular those which are too far away or in incorrect directions on the image 10.
The use of polar coordinates to estimate the movements thus permits the successive selection according to the angles of the Δjk movements on the images, then another selection according to the Δjk values.
Another means of avoiding exhaustive pairings between all of the A and B points would consist of using relaxation methods or pairings obtained by random sampling.
The Δjk movements between all of the A points and all of the B points in the exhaustive limits calculated are then polled and those whose values are almost identical are grouped together.
We then search for the Δm value of the most frequent movement for the Δjk in a tolerance Xa (
We can distinguish the relationship:
Δm=TpΔp
where Δm and Tp are expressed in mm, Δp is the movement in pixels of the object between the two images (without dimensions) and Tp represents the size of a pixel on the image of the camera 2. We can thus calculate the coordinates of the object 4:
Z=F(D/(ΔpTp)−1)
Where
Z is the focal length of the camera 2 at the surface of the object 4;
F is the focal length of the lens (in mm);
D is the movement of the camera 2 between the taking of two images (in mm);
Tp is the size of a pixel of the CCD sensor (in mm).
We can then deduce the other coordinates of the object 4:
X=XpTp(Z+F)/F and
Y=YpTp(Z+F)/F, where
X is the abscissa of the object in the camera indicator (in mm);
Y is the ordinate of the object in the camera indicator (in mm);
Xp is the abscissa of the object in the image (in pixels, therefore without dimension);
Yp is the ordinate of the object in the image (in pixels, therefore without dimension);
The method may be applied to chains of three or more images. Each image has characteristic points that may be paired with a point or no points of the previous image and the following image. If a point can be found by pairing on all of the images of a chain, it is more likely that it truly belongs to the object 4, which increases the reliability of the method.
The invention can still be used if the object 4 is moved slightly during the process. It is found in an unexpected position in the image taken after the movement and its position is then recalculated.
The process is used by a programme contained in the computer 6 which is also part of the invention. This programme comprises all of the means necessary to use the images of the camera 2 and drive the arm 1 by means of necessary digital processing and coding of the information.
Number | Date | Country | Kind |
---|---|---|---|
04 51452 | Jul 2004 | FR | national |