The object space apparatus for detecting position and posture
Technical field
The present invention relates to a kind of accurate self-operated measuring unit, particularly relate to a kind of object space apparatus for detecting position and posture that carries out the object pose detection by robot, video camera, sonac, computing machine.
Background technology
Along with development of science and technology, robot has obtained application more and more widely, and for example assembling is automatically welded automatically, sprayed paint, the inspection of mechanical component etc.In these were used, the detection of testee pose was the prerequisite that realizes the testee operation.Conventional detection generally all is to utilize binocular vision to realize, but the data volume that this method need be handled is very big, the image matching algorithm in the binocular vision, and also perfect not to the utmost, error is bigger.
Summary of the invention
In order to overcome the deficiency of said method, the present invention proposes a kind of method of new inspected object pose, can only need to gather single sub-picture by video camera and the sonac that is contained in robots arm's end, processing through computing machine just can realize the detection to the testee pose.
A kind of object space apparatus for detecting position and posture of the present invention, form by the video camera that is contained in the robot end and sonac, computing machine, also relating to an object pose detection system is stored in the computing machine, video camera and sonac are installed in the end of robot arm, video camera and sonac are linked to each other with the ultrasound information capture card with image pick-up card in the computing machine by data line, and robot is linked to each other with computing machine by control bus.
Described pick-up unit, its video camera and the sonac fixing position that is arranged in parallel changes differently according to robot construction, be fixed on the end that robot picks up the object parts.
Described pick-up unit detects required information acquisition unit by single camera and single sonac constituent posture.
Described pick-up unit, the pose of object to be detected only need be gathered a sub-picture, by the direction of the point on the Image Acquisition object of camera acquisition and the video camera line of centres, is obtained the length of this line by sonac.
Described pick-up unit, a sub-picture of camera acquisition testee, and passed in the computing machine by video and data line by to treatment of picture, can obtain any 1 P on the object to the projection vector of video camera center O
Direction, measure by sonac then
Length, thereby can determine the coordinate of a P in camera coordinate system OXYZ, this coordinate can finally be transformed in the basis coordinates system of robot.Image coordinate by point is obtained its ideal coordinates, and corresponding point overlap with the line at video camera center on the point of this ideal coordinates correspondence and the line at video camera center and the object.
Described pick-up unit, sonac can adopt laser sensor.
Described pick-up unit is characterized in that: video camera and sonac also can parallel to the layout and installation at the end of bowl portion of robot.
The position of spatial point generally needs two width of cloth images, determines with the intersection point of two projection lines.The method that the present invention proposes then can add the position that ultrasonic (or laser) range finding can be determined spatial point with piece image.
Compare with binocular vision, the present invention has fundamentally avoided because caused uncertainty of images match and error.After the image coordinate of spatial point was determined, its coordinate in camera coordinate system can just can obtain by simple calculating.Binocular vision then will be carried out images match earlier, and then asks the intersection point of projection line.Obviously the present invention has significantly reduced calculated amount, has improved detection speed.
Description of drawings
Fig. 1 is a structural representation of the present invention.
Fig. 2 is that the direction synoptic diagram of determining projection vector produces.
Fig. 3 is a length synoptic diagram of determining projection vector.
Among the figure: 1. video camera 2. sonacs 3. testees 4. worktable 5. robots 6. computing machines, 7. data lines, 8. control buss, 9. planes of delineation
Embodiment
The present invention is further illustrated below in conjunction with drawings and Examples.
See also shown in Figure 1, object space apparatus for detecting position and posture of the present invention, form by the video camera that is contained in the robot end and sonac, computing machine and the object pose detection system that is stored in the computing machine, single camera and single sonac are installed in the end of robot arm, video camera and sonac are linked to each other with the ultrasound information capture card with image pick-up card in the computing machine by data line, and robot is linked to each other with computing machine by control bus.
In the present invention,
testee 3 is placed on the
worktable 4, gathers a sub-picture by
video camera 1, this image is transferred in the
computing machine 6 by video and
ultrasound data line 7, and by the operation control software of storage in the
computing machine 6 it is handled.For example, set 1 P on
testee 3,1 P on the object will measure its coordinate in camera coordinate system OXYZ, needs to determine projection vector
Direction and length.Consider the distortion that camera lens causes, by the image coordinate P of a P
uCan obtain its ideal image coordinate (distortion that the distortion of compensation camera lens causes) P
i, because
Length known (being the camera lens focal distance f) so just can obtain
Direction in camera coordinate system,
Direction be exactly with
Direction (as shown in Figure 2).By the motion of
control robot 5, make the true origin of
sonac 2 move to the O point, axis with
Overlap, the measured value of
sonac 2 is exactly so
Length.Like this, the coordinate of some P in
video camera 1 coordinate system just can obtain, and can finally be converted into the coordinate in 5 basis coordinates system of robot.Can record the project objects center of gravity with this method is the coordinate in space in
robot 5 basis coordinates, just the position coordinates of object.Be without loss of generality, can represent the attitude of object with the attitude of the major axis of project objects.The volume coordinate of this two end points can record with said process, just can further calculate the attitude of this axis in basis coordinates system of robot.The position of object and attitude are just decided fully like this.
For example, for the workpiece that is placed on the worktable, establishing its focus point is C, then can record
With the angle of each between centers of camera coordinate system be: with the X-axis angle be 68.2694 °, with the Y-axis angle be 60.4186 °, with Z axle clamp angle be 38.1027 °, record
Length be 42.2019mm, its coordinate in camera coordinate system is X=5.6250mm so, Y=20.8333mm, Z=33.2089mm, the coordinate of measured workpiece in basis coordinates system of robot is X=27.7815mm, Y=98.6157mm, Z=34.5791mm.The attitude angle of measured workpiece in robot basis coordinates system is: with the X-axis angle be 62.6605 °, with the Y-axis angle be 74.6356 °, with Z axle clamp angle be 32.0197 °.
The method that the present invention proposes can add the position that ultrasonic (or laser) range finding can be determined spatial point with piece image.
Compare with binocular vision, the present invention has fundamentally avoided because caused uncertainty of images match and error.After the image coordinate of spatial point was determined, its coordinate in camera coordinate system can just can obtain by simple calculating.Binocular vision then will be carried out images match earlier, and then asks the intersection point of projection line.Obviously the present invention has significantly reduced calculated amount, has improved detection speed.