Detection method based on the high precision arrangements for automotive doors of robot combining camera calibration
Technical field
The present invention relates to a kind of detection method of automobile cubing, the invention particularly relates to a kind of detection method of the high precision arrangements for automotive doors based on the calibration of robot combining camera.
Background technology
Auto parts must detect it before the entrucking after punching press or injection moulding are come out, and carry out by means of cubing and detect Chang Bixu.Cubing (Checking Fixture) is just causing the great attention of more and more enterprises as the important auxiliary products of die industry.Production from self needs and its higher added value, many mould enterprises with it as an important developing direction.The correlation technique of cubing as a kind of new technology, is also just introduced by increasing mould enterprise.
The automobile cubing is by detection architecture location structure, clamping structure, supporting construction, base, and other slave parts constitute.Existing design is according to concrete part, according to inspection requirements, one by one, design corresponding structure progressively, and then is assembled together, and finally realizes the exploitation of cubing.This is a complicacy and loaded down with trivial details process, and each design all will start anew, and is difficult to reuse previous design achievement; Can not directly bring utilization to expert's mature experience; Cause duplication of labour amount big, design loaded down with trivial details, to the exploitation designer require problems such as height.
At present, machine vision metrology has obtained development apace, makes vision sensor make the exploitation of cubing that great development arranged to the measurement of putting on the part through robot movement, has improved the flexibility of cubing design.Present detection method that adopts usually based on this technology moves through the computer-controlled robot then and measures each measured point for camera is contained on robot end's the flange, directly obtains the D coordinates value of measured point through coordinate transform.Yet, commercial now most of industrial robots, its positional precision is directly measured for robot and bring bigger error than the low one magnitude of its repeatable accuracy.
Summary of the invention
The objective of the invention is to overcome the deficiency of prior art; Provide a kind of and need not locate workpiece; Eliminate the positioning error that the location workpiece brings, improved the detection method of the high precision arrangements for automotive doors of calibrating based on the robot combining camera of flexibility and the automaticity of cubing simultaneously.
The detection method of the high precision arrangements for automotive doors based on the calibration of robot combining camera of the present invention, it may further comprise the steps:
(1) the standard car door is positioned at a fixed position; Set a plurality of measured points at the edge of standard car door and tested car door and near the standard car door, set a plurality of gauge points, set up the stereoscopic vision measuring system and demarcate the three dimensional space coordinate of the inside and outside parameter of first and second cameras and described a plurality of gauge points;
(2) computer-controlled robot move to the measured point near, write down the three dimensional space coordinate of robot of this moment, near the image of a plurality of gauge points first camera is taken; Through the three dimensional space coordinate of definite first camera of three dimensional space coordinate conversion,, calculate the coordinates system of second camera and the relation of workpiece coordinate system then through first camera and the second camera external position parameter;
(3) computer starting second camera is taken first measured point, by the three dimensional space coordinate of stereo vision sensor three-dimensional measurement model solution first measured point in workpiece coordinate system;
(4) repeat the mensuration that all three dimensional space coordinate of standard car door measured point in workpiece coordinate system are accomplished in described step (2)-(3);
(5) the standard car door is changed; Tested car door is fixed on the position of standard car door, measures the three dimensional space coordinate in workpiece coordinate system of a plurality of measured points on the tested vehicle door edge according to step (2)-(4) with the same trajectories of the mensuration of a plurality of gauge points of accomplishing standard car door mobile robot successively then;
(6) measurement data to a plurality of measured points at the edge of standard car door and tested car door compares, to judge the whether accords with production requirement of tested car door.
Adopt the beneficial effect of the inventive method to be: through around part, pasting a series of gauge points; (sensor coordinate system is exactly a coordinate system of oneself definition for camera measurement markers point location camera through the robot end and sensor (sensor is by camera and laser constitution) coordinate system; Calculate for ease; General sensor coordinate system and first camera coordinates system overlap); Control computer starts the measured point on the another one camera shooting part then; And then calculate the measured point the coordinate of workpiece coordinate system (can sensor coordinate system is unified to workpiece coordinate system) through coordinate transform like this completion eliminated the error that robot causes, can measuring accuracy be brought up to 0.1mm through experiment showed, the method.Employing has improved the flexibility of cubing greatly based on the robotic vision measuring system, and through a camera Calibration, another one camera photographic images improves measuring accuracy and automaticity.
Description of drawings
Fig. 1 is the mensuration fundamental diagram that adopts the detection method examination criteria car door of the high precision arrangements for automotive doors based on robot combining camera calibration of the present invention;
Fig. 2 adopts the detection method of the high precision arrangements for automotive doors based on robot combining camera calibration of the present invention to detect the mensuration fundamental diagram of tested car door.
Embodiment
Below in conjunction with concrete embodiment, and, the present invention is done further explanation with reference to accompanying drawing:
Detection method based on the high precision arrangements for automotive doors of robot combining camera calibration; At first the standard car door is positioned at a fixed position; Set a plurality of measured points (like A, B) at the edge of standard car door and tested car door and near the standard car door, set a plurality of gauge points that (method confirmed of standard car door and tested car door measured point can be to paste a gauge point in the same position of standard car door and tested car door earlier; Every then separated 3cm CW is pasted a series of measured points in vehicle door edge); (the stereoscopic vision measuring system is set up and can be edited referring to Zhang Guangjun: " photoelectricity test technology " to set up the stereoscopic vision measuring system; China Measuring Press, 2008,304-307) and demarcate the inner parameter of first and second cameras and the three dimensional space coordinate of external parameter and described a plurality of gauge points; The inside calibrating parameters of first and second cameras comprises that (effective focal length f, the Δ x that comprehensively distorts, Δ y, image planes center (Cx, Cy)) and external parameter comprise (translation and rotation matrix have reflected that the three-dimensional world coordinate is tied to the transformational relation of camera coordinate system).The standard car door can adopt " 3-2-1 " positioning principle to fix.Mensuration of at first carrying out the standard car door as shown in Figure 1: the computer-controlled robot move to the measured point near; Write down the three dimensional space coordinate of the robot of this moment; First camera is taken the image of the many gauge points (these gauge points had been demarcated well with three coordinate machine or transit etc., and their coordinates under world coordinate system are known) before experiment; Confirm the three dimensional space coordinate of first camera through the three dimensional space coordinate conversion; Then through first camera and the second camera external position parameter; (being connected between first camera and second camera is rigidly connected to calculate the coordinates system of second camera and the relation of workpiece coordinate system (workpiece coordinate system is a near coordinate system that oneself defines the workpiece); Transformational relation between the camera coordinates system of first camera and the camera coordinates system of second camera can be demarcated in advance; Workpiece coordinate system is the coordinate system that is based upon on the workpiece, and the relation between workpiece coordinate system and the world coordinate system can be advanced rower calmly in experiment, has known the three dimensional space coordinate of first camera above; Just can be transformed into the three dimensional space coordinate of first camera under the world coordinate system through the good relation of prior demarcation; Then the three-dimensional coordinate under the world coordinate system is being transformed under the workpiece coordinate system, like this, just can calculating the relation between first camera and the workpiece coordinate system); Computer starting second camera is taken first measured point, by the three dimensional space coordinate of stereo vision sensor three-dimensional measurement model solution first measured point in workpiece coordinate system; Repeat above-mentioned steps and accomplish the mensuration of all three dimensional space coordinate of standard car door measured point in workpiece coordinate system.The three dimensional space coordinate of first camera confirms that method can be according to the projection model and the calibrating parameters of video camera; Respectively to the image calibration that distorts; The three dimensional space coordinate that goes out camera 1 by stereo vision sensor three-dimensional measurement model solution again (is edited referring to Zhang Guangjun: " photoelectricity test technology "; China Measuring Press, 2008,304-307).Mensuration of carrying out tested car door as shown in Figure 2 then: the standard car door is changed; Tested car door is fixed on the position of standard car door; With the mensuration of a plurality of gauge points of accomplishing the standard car door, measure the coordinate of a plurality of measured points in workpiece coordinate system on the tested vehicle door edge then with same trajectories mobile robot successively and according to the assay method of standard car door.Measurement data to a plurality of measured points at the edge of standard car door and tested car door compares at last, to judge the whether accords with production requirement of tested car door.
Robot 1 in the inventive method can adopt IRB 2400/10 product of ABB (Asea Brown Boveri Ltd) company, can certainly adopt other existing robot.After the robot calibration, on the artificial panel of robot, can demonstrate the coordinate of robot end's flange, this coordinate can be input to the computing machine the inside from robot through serial ports.The end of robot 1 in the methods of the invention links to each other with precise guide rail 6 through robot flange 2, on described precise guide rail, is fixed with first camera 3 and second camera 4.Among Fig. 15 is the standard car door, and 5 among Fig. 2 is tested car door.
Embodiment 1
(1) the standard car door is positioned at a fixed position; Set a plurality of measured points at the edge of standard car door and tested car door and near the standard car door, set a plurality of gauge points, set up the stereoscopic vision measuring system and demarcate the three dimensional space coordinate of the inside and outside parameter of first and second cameras and described a plurality of gauge points;
(2) computer-controlled robot move to the measured point near, write down the three dimensional space coordinate of robot of this moment, near the image of a plurality of gauge points first camera is taken; Through the three dimensional space coordinate of definite first camera of three dimensional space coordinate conversion,, calculate the coordinates system of second camera and the relation of workpiece coordinate system then through first camera and the second camera external position parameter;
(3) computer starting second camera is taken first measured point, by the three dimensional space coordinate of stereo vision sensor three-dimensional measurement model solution first measured point in workpiece coordinate system;
(4) repeat the mensuration that all three dimensional space coordinate of standard car door measured point in workpiece coordinate system are accomplished in described step (2)-(3);
(5) the standard car door is changed; Tested car door is fixed on the position of standard car door, measures the three dimensional space coordinate in workpiece coordinate system of a plurality of measured points on the tested vehicle door edge according to step (2)-(4) with the same trajectories of the mensuration of a plurality of gauge points of accomplishing standard car door mobile robot successively then;
The three-dimensional coordinate of standard car door measured point is (x
A, y
A, z
A); The three-dimensional coordinate of tested car door be (x '
A, y '
A, z '
A); The coordinate of more tested car door and standard car door measured point, coordinate figure does not just meet production requirement with original coordinate figure is different.