JPH08382B2 - How to set the coordinate system of the robot with visual sensor - Google Patents

How to set the coordinate system of the robot with visual sensor

Info

Publication number
JPH08382B2
JPH08382B2 JP62010727A JP1072787A JPH08382B2 JP H08382 B2 JPH08382 B2 JP H08382B2 JP 62010727 A JP62010727 A JP 62010727A JP 1072787 A JP1072787 A JP 1072787A JP H08382 B2 JPH08382 B2 JP H08382B2
Authority
JP
Japan
Prior art keywords
robot
coordinates
visual sensor
camera
visual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62010727A
Other languages
Japanese (ja)
Other versions
JPS63180486A (en
Inventor
俊一 濱本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisan Industry Co Ltd
Original Assignee
Aisan Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisan Industry Co Ltd filed Critical Aisan Industry Co Ltd
Priority to JP62010727A priority Critical patent/JPH08382B2/en
Publication of JPS63180486A publication Critical patent/JPS63180486A/en
Publication of JPH08382B2 publication Critical patent/JPH08382B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Manipulator (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は視覚センサ付ロボツトにおいて、ロボツト
座標とカメラ座標の対応づけをおこなう座標系の設定方
法に関する。
The present invention relates to a method of setting a coordinate system for associating robot coordinates with camera coordinates in a robot with a visual sensor.

(従来の技術) 一般に視覚センサ付ロボツトにおいては、第2図に示
すようにITVなどから成る視覚カメラ1と画像処理装置
2とで視覚センサ3を構成し、対象物4を視覚カメラ1
で撮像してそのビデオ信号を画像処理装置2へ伝送し、
カメラ座標(視覚カメラの撮像面における座標)5にお
ける対象物位置座標(x,y)を算出し、マイコン等から
成るロボツトコントローラ6においてこの座標(x,y)
からロボツト座標7における対象物の位置(X,Y)を算
出し、この位置に対応するハンドリング位置座標(XH,Y
H)にロボツト8のハンド9を移動させて対象物の把持
等をおこなう。なおロボツト座標7とカメラ座標5は平
行、すなわちX軸とx軸、Y軸とy軸はそれぞれ平行で
ある。上記において位置(X,Y)の算出の際にカメラ座
標とロボツト座標の関係式 (X,Y)=f(x,y) を用いるが、この関係式を求める座標系の設定は、従
来次のようにしておこなつていた。
(Prior Art) Generally, in a robot with a visual sensor, as shown in FIG. 2, a visual camera 1 including an ITV and an image processing device 2 constitute a visual sensor 3, and an object 4 is attached to the visual camera 1.
And the video signal is transmitted to the image processing device 2,
The object position coordinates (x, y) in the camera coordinates (coordinates on the imaging plane of the visual camera) 5 are calculated, and the coordinates (x, y) are calculated in the robot controller 6 including a microcomputer.
The position (X, Y) of the object at the robot coordinate 7 is calculated from the position, and the handling position coordinate (X H , Y) corresponding to this position is calculated.
The hand 9 of the robot 8 is moved to ( H ) to grip an object. The robot coordinates 7 and the camera coordinates 5 are parallel to each other, that is, the X axis is parallel to the x axis and the Y axis is parallel to the y axis. In the above, when calculating the position (X, Y), the relational expression (X, Y) = f (x, y) between the camera coordinates and the robot coordinates is used. It was done as follows.

すなわち第2図に示す様に視覚カメラ1の視野10内の
対象物載置面11上の2点A,Bに円板あるいはクロスカー
サを置いて両点の位置を視覚カメラ1で撮像し、画像処
理装置2によりカメラ座標5における位置(xA,yA)、
(xB,yB)をそれぞれ求める。
That is, as shown in FIG. 2, a disk or a crosscursor is placed at two points A and B on the object mounting surface 11 within the visual field 10 of the visual camera 1, and the positions of both points are imaged by the visual camera 1. The position (x A , y A ) at the camera coordinate 5 by the image processing device 2,
Find (x B , y B ), respectively.

一方A,B点のロボツト座標7における位置(XA,YA)、
(XB,YB)をスケール等を用いて実測する。そして上記
各データからカメラ座標とロボツト座標の関係式f(x,
y)を以下の方程式より求めている。
On the other hand, the position (X A , Y A ) in robot coordinate 7 of points A and B,
Measure (X B , Y B ) using a scale. From the above data, the relational expression f (x,
y) is calculated from the following equation.

(発明が解決しようとする問題点) ところが上記の座標系の設定方法においては、点A,B
のロボツト座標7上の位置を実測しなければならないの
で座標系の設定に手間がかかる。
(Problems to be solved by the invention) However, in the above coordinate system setting method, points A and B
Since it is necessary to actually measure the position on the robot coordinate 7 of, the setting of the coordinate system is troublesome.

また上記の設定をおこなつて実際の対象物についてロ
ボツト8による把持をおこなおうとしても、一般に第3
図に示すように対象物4の位置は重心位置Gで計測され
るのに対し、ハンド9による把持位置Cや、ロボツトに
移動指令として与えるハンドリング位置Hは前記重心位
置Gと異なる場合が多く、この場合は対象物の位置(x,
y)から前記関係式により求めた(X,Y)をハンドリング
位置としてロボツトに与えても対象物を把持することは
できない。
In addition, even if the above-mentioned setting is performed and an actual object is gripped by the robot 8, it is generally the third object.
As shown in the figure, the position of the object 4 is measured at the center of gravity position G, whereas the gripping position C by the hand 9 and the handling position H given to the robot as a movement command are often different from the center of gravity position G, In this case, the position of the object (x,
Even if (X, Y) obtained from the above relational expression from y) is given to the robot as a handling position, the object cannot be gripped.

そこで予め対象物の重心位置Gと把持位置Cおよびハ
ンドリング位置Hの寸法関係を求めておき、対象物の重
心位置に相当する(X,Y)の座標値に対して上記ハンド
リング位置Hまでの補正を加えて座標(XH,YH)を求め
ることにより、はじめてロボツトによる把持が可能とな
るのであるが、いちいちこの補正を加えるのは煩雑であ
り、また対象物が変わればこの補正内容も変更せねばな
らず煩雑である。
Therefore, the dimensional relationship between the center of gravity G of the target object, the gripping position C, and the handling position H is obtained in advance, and the correction up to the handling position H with respect to the (X, Y) coordinate value corresponding to the center of gravity of the target object. The robot can be gripped for the first time by calculating the coordinates (X H , Y H ) by adding the It has to be done and it is complicated.

この発明は上記従来の問題点を解決するもので、座標
系の設定を簡単におこなうことができ、また視覚センサ
による対象物の位置からロボツトのハンドリング位置を
直接求めることができる視覚センサ付ロボツトの座標系
の設定方法を提供しようとするものである。
This invention solves the above-mentioned conventional problems, and a robot with a visual sensor that can easily set the coordinate system and can directly determine the handling position of the robot from the position of the object by the visual sensor. It is intended to provide a method of setting the coordinate system.

(問題点を解決するための手段) しかしてこの発明の座標系の設定方法は、視覚センサ
付ロボツトに対象物を把持させた状態で、視覚カメラの
視野内の対象物載置面上に前記対象物を載置し、このと
きのロボツトのロボツト座標上のハンドリング位置(X
HO,YHO)をロボツトコントローラ部で読出すとともに、
視覚センサにより前記ロボツト座標と平行なカメラ座標
上の前記対象物の位置(x0,y0)および対象物の一部の
寸法rを計測して、これに相当する前記対象物の一部の
予め計測してあつた実寸法Rと前記各計測値から、視覚
センサで計測した対象物の任意の位置(x,y)より該対
象物に対するロボツトのハンドリング位置(XH,YH)を
求める関係式を次式の通り設定することを特徴とする視
覚センサ付ロボツトの座標系の設定方法である。
(Means for Solving the Problems) The coordinate system setting method of the present invention, however, has the robot on the object mounting surface within the visual field of the visual camera with the object held by the robot with the visual sensor. An object is placed, and the handling position (X
HO , Y HO ) is read by the robot controller and
The position (x 0 , y 0 ) of the object on the camera coordinates parallel to the robot coordinates and the dimension r of the part of the object are measured by the visual sensor, and the part of the object corresponding to this is measured. The robot handling position (X H , Y H ) with respect to the object is obtained from the arbitrary position (x, y) of the object measured by the visual sensor from the actual dimension R measured in advance and the respective measured values. It is a method of setting the coordinate system of the robot with a visual sensor, characterized in that the relational expression is set as follows.

XH=XHO+k(x−x0) HH=HHO+k(y−y0) ただしk=R/r (作用) この発明の座標系の設定方法においては、対象物をロ
ボツトで把持した状態で実際のロボツト動作時の対象物
載置面上に対象物を置き、このときのロボツト座標上の
ハンドリング位置(XHO,YHO)および視覚カメラの撮像
画面のカメラ座標上の対象物位置(x0,y0)を基準点と
して用いる。
In X H = X HO + k ( x-x 0) H H = H HO + k (y-y 0) provided that k = R / r (working) method for setting the coordinate system of the invention, gripping the object with the robot The object is placed on the object mounting surface during the actual robot operation in this state, and the handling position (X HO , Y HO ) on the robot coordinate and the object on the camera coordinate of the imaging screen of the visual camera at this time. The position (x 0 , y 0 ) is used as a reference point.

そしてロボツト座標上の寸法とカメラ座標上の寸法と
は比例関係にあることを利用して、対象物の一部の予め
計測してあつた実寸Rおよび視覚センサによる計測値r
から両座標間の比例定数kを次式 k=R/r ……(1) により求めれば、任意位置に置いた対象物のカメラ座
標上の位置(x,y)と前記基準点(x0,y0)間の距離に前
記比例定数を乗じることにより、上記(x,y)に対応す
るロボツト座標上のハンドリング位置(XH,YH)と前記
基準点(HHO,YHO)間の距離が下式により求まる。
Then, by utilizing the fact that the dimension on the robot coordinates and the dimension on the camera coordinates are in proportion to each other, the actual size R of a part of the object measured in advance and the measured value r by the visual sensor are measured.
If the proportional constant k between the two coordinates is obtained from the following equation, k = R / r (1), the position (x, y) on the camera coordinates of the object placed at an arbitrary position and the reference point (x 0 , y 0 ) is multiplied by the proportional constant to obtain a distance between the handling position (X H , Y H ) on the robot coordinates corresponding to (x, y) and the reference point (H HO , Y HO ). The distance of is calculated by the following formula.

XH−XHO=k(x−x0) ……(2) YH−YHO=k(y−y0) ……(3) 上式を変形して、ハンドリング位置(XH,YH)は、 XH=XHO+k(x−x0) ……(4) YH=YHO+k(y−y0) ……(5) で求めることができるのである。X H −X HO = k (x−x 0 ) ... (2) Y H −Y HO = k (y−y 0 ) (3) The above formula is modified to change the handling position (X H , Y H) is can be determined by X H = X HO + k ( x-x 0) ...... (4) Y H = Y HO + k (y-y 0) ...... (5).

このようにロボツト座標上の(XH,YH)は直接ハンド
リング位置として算出され、従来法のように対象物の重
心位置とハンドリング位置の関係を求めてその補正をお
こなう必要がないので、演算は簡単に済む。
In this way, (X H , Y H ) on the robot coordinates is directly calculated as the handling position, and it is not necessary to calculate the relationship between the center of gravity of the object and the handling position and to correct it as in the conventional method. Is easy.

また基準点設定時のロボツト座標上の(HHO,YHO)は
いちいちロボツト座標の原点からスケール等により実測
する必要はなく、ロボツトコントローラにより迅速容易
に読出すことができる。
Further, (H HO , Y HO ) on the robot coordinates at the time of setting the reference point does not need to be actually measured from the origin of the robot coordinates by a scale or the like, and can be quickly and easily read by the robot controller.

さらに従来法はロボツト座標上の絶対位置を求めるの
に対し、この発明方法では基準点からのずれ量として位
置を求めるので、実際の対象物ハンドリング領域内に基
準点を設定できることから、位置計測精度を上げること
ができるのである。
Further, while the conventional method obtains the absolute position on the robot coordinates, the method of the present invention obtains the position as the amount of deviation from the reference point, so that the reference point can be set within the actual object handling area. Can be raised.

(実施例) 以下第1図によりこの発明の一実施例を説明する。な
お図中、第2図および第3図と同一部分にはこれらの図
と同一符号を付してある。
(Embodiment) An embodiment of the present invention will be described below with reference to FIG. In the figure, the same parts as those in FIGS. 2 and 3 are designated by the same reference numerals.

先ずロボツト8のハンド9に対象物4を把持させ、こ
の把持状態のままで実際のロボツト動作時の対象物載置
面11上の任意の位置(ただし視覚カメラ1の視野10内)
に対象物4を置き、このときのロボツトのハンドリング
位置(HHO,YHO)をロボツトコントローラ6部で読出
す。
First, the object 9 is held by the hand 9 of the robot 8, and in this gripped state, an arbitrary position on the object mounting surface 11 during the actual robot operation (however, within the visual field 10 of the visual camera 1)
The object 4 is placed on the robot, and the robot handling position (H HO , Y HO ) at this time is read by the robot controller 6.

一方、視覚カメラ1で対象物4を撮像して、画像処理
装置2によりカメラ座標5上の対象物の位置(重心位
置)(x0,y0)および対象物4の一部の寸法r(この実
施例では直径)を算出する。なお第1図における位置
(X0,Y0)は、対象物4のロボツト座標上の重心位置で
あり、後述のようにハンドリング位置の算出には無関係
であるが、参考までに図示してある。
On the other hand, the image of the object 4 is picked up by the visual camera 1, and the position of the object on the camera coordinates 5 (the position of the center of gravity) (x 0 , y 0 ) and the partial size r ( In this embodiment, the diameter) is calculated. The position (X 0 , Y 0 ) in FIG. 1 is the position of the center of gravity of the object 4 on the robot coordinates and is not related to the calculation of the handling position as described later, but is shown for reference. .

そしてロボツトコントローラ6部においては、上記各
数値、および対象物4の前記rに相当する部分を予めス
ケール等で計測しておいてキーボード等で入力された実
寸データRをもとに、先ず次式によりカメラ座標とロボ
ツト座標の数値の比例定数kを求める。
Then, in the robot controller 6 part, first, the following equation is calculated based on the above numerical values and the actual size data R input by the keyboard etc. by previously measuring the part corresponding to r of the object 4 with a scale or the like. Then, the proportional constant k of the numerical values of the camera coordinates and the robot coordinates is obtained.

k=R/r そして第1図に鎖線で示すように、対象物載置面11上
の任意の位置(X,Y)に置かれた対象物4の視覚センサ
3による計測位置(x,y)に対応するハンドリング、置
(XH,YH)を求める関係式として、次式をロボツトコン
トローラ6部に格納する。
k = R / r Then, as shown by the chain line in FIG. 1, the measurement position (x, y) of the object 4 placed on the object placement surface 11 at the arbitrary position (X, Y) by the visual sensor 3 ), The following equation is stored in the robot controller 6 as a relational equation for obtaining the handling (X H , Y H ).

XH=XHO+k(x−x0) YH=YHO+k(y−y0) 以後、対象物4については視覚サンサ3による計測値
(x,y)をもとに上記関係式によりハンドリング位置(X
H,YH)を求めて把持をおこなうのであるが、この(XH,Y
H)は対象物の重心位置や把持位置とは関係なしに直接
ハンドリング位置として算出されるので、従来のような
各位置の補正をおこなうことなく直ちにロボツトによる
把持をおこなうことができる。
X H = X HO + k ( x-x 0) Y H = Y HO + k (y-y 0) Thereafter, measurements visual Sansa 3 for the object 4 (x, y) based on the above relational expression Handling position (X
Grasping is performed by finding ( H , Y H ), and this (X H , Y
H ) is directly calculated as the handling position regardless of the center of gravity of the object or the gripping position, so that the robot can immediately grip the object without correcting each position as in the conventional case.

上記方法と従来法による座標系の設定に要する時間の
実測例をあげると、従来法によると約7分要していた設
定時間が、上記方法により3分に短縮された。
As an example of the actual measurement of the time required for setting the coordinate system by the above method and the conventional method, the setting time, which was about 7 minutes by the conventional method, was shortened to 3 minutes by the above method.

この発明は上記実施例に限定されるものではなく、た
とえば視覚センサおよびロボツトの構成や対象物の形状
等は上記以外としてもよい。
The present invention is not limited to the above embodiments, and for example, the configurations of the visual sensor and the robot, the shape of the object, and the like may be other than those described above.

(発明の効果) 以上説明したようにこの発明によれば、従来の視覚セ
ンサ付ロボツトにおける座標系の設定方法のようなロボ
ツト座標上におけるスケール等を用いての実測は不要と
なり、対象物の一部の予め計測してあつた実寸法および
視覚センサによる計測値と、ロボツトコントローラで読
出しハンドリング位置(XHO,YHO)とから、座標系の設
定を極めて簡単におこなうことができ、また視覚センサ
による対象物の位置からロボツトのハンドリング位置を
直接迅速にかつ精度よく求めることができる。
(Effect of the Invention) As described above, according to the present invention, it is not necessary to perform actual measurement using a scale or the like on the robot coordinates unlike the conventional method of setting the coordinate system in the robot with a visual sensor, and the object The coordinate system can be set very easily from the actual dimensions of the parts measured in advance and the values measured by the visual sensor and the reading handling position (X HO , Y HO ) by the robot controller. The handling position of the robot can be directly and promptly and accurately obtained from the position of the object.

【図面の簡単な説明】[Brief description of drawings]

第1図はこの発明の一実施例を示す機器配置斜視図、第
2図は従来の方法の一例を示す機器配置斜視図、第3図
は同じく対象物把持状態の斜視図である。 1……視覚カメラ、2……画像処理装置、3……視覚セ
ンサ、4……対象物、5……カメラ座標、6……ロボツ
トコントローラ、7……ロボツト座標、8……ロボツ
ト、9……ハンド、10……視野、11……対象物載置面。
FIG. 1 is a perspective view of equipment arrangement showing an embodiment of the present invention, FIG. 2 is a perspective view of equipment arrangement showing an example of a conventional method, and FIG. 1 ... visual camera, 2 ... image processing device, 3 ... visual sensor, 4 ... object, 5 ... camera coordinate, 6 ... robot controller, 7 ... robot coordinate, 8 ... robot, 9 ... … Hand, 10 …… field of view, 11 …… object placement surface.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】視覚センサ付ロボツトに対象物を把持させ
た状態で、視覚カメラの視野内の対象物載置面上に前記
対象物を載置し、このときのロボツトのロボツト座標上
のハンドリング位置(XHO,YHO)をロボツトコントロー
ラ部で読出すとともに、視覚センサにより前記ロボツト
座標と平行なカメラ座標上の前記対象物の位置(x0,
y0)および対象物の一部の寸法rを計測して、これに相
当する前記対象物の一部の予め計測してあつた実寸法R
と前記各計測値から、視覚センサで計測した対象物の任
意の位置(x,y)より該対象物に対するロボツトのハン
ドリング位置(XH,YH)を求める関係式を次式の通り設
定することを特徴とする視覚センサ付ロボツトの座標系
の設定方法。 XH=XHO+k(x−x0) YH=YHO+k(y−y0) ただしk=R/r
1. A robot with a visual sensor holding an object, the object is placed on an object placement surface within the field of view of a visual camera, and handling of the robot on the robot coordinates at this time. The position (X HO , Y HO ) is read by the robot controller, and the position of the object (x 0 , Y 0 , on the camera coordinates parallel to the robot coordinates is detected by the visual sensor).
y 0 ) and a part of the object with a dimension r, and a corresponding part of the part of the object with a premeasured actual size R
From the above measured values and the above-mentioned measured values, the relational expression for obtaining the robot handling position (X H , Y H ) with respect to the object from the arbitrary position (x, y) measured by the visual sensor is set as follows. A method for setting a coordinate system of a robot with a visual sensor, which is characterized by the above. X H = X HO + k ( x-x 0) Y H = Y HO + k (y-y 0) provided that k = R / r
JP62010727A 1987-01-20 1987-01-20 How to set the coordinate system of the robot with visual sensor Expired - Lifetime JPH08382B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62010727A JPH08382B2 (en) 1987-01-20 1987-01-20 How to set the coordinate system of the robot with visual sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62010727A JPH08382B2 (en) 1987-01-20 1987-01-20 How to set the coordinate system of the robot with visual sensor

Publications (2)

Publication Number Publication Date
JPS63180486A JPS63180486A (en) 1988-07-25
JPH08382B2 true JPH08382B2 (en) 1996-01-10

Family

ID=11758321

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62010727A Expired - Lifetime JPH08382B2 (en) 1987-01-20 1987-01-20 How to set the coordinate system of the robot with visual sensor

Country Status (1)

Country Link
JP (1) JPH08382B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2700965B2 (en) * 1991-07-04 1998-01-21 ファナック株式会社 Automatic calibration method
JP4418841B2 (en) * 2008-01-24 2010-02-24 キヤノン株式会社 Working device and calibration method thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58169987U (en) * 1982-05-06 1983-11-12 オムロン株式会社 industrial robot
JPS5958503A (en) * 1982-09-28 1984-04-04 Matsushita Electric Ind Co Ltd Tool offset teaching method for robot
JPS60252914A (en) * 1984-05-30 1985-12-13 Fanuc Ltd Conversion system between visual sensor coordinate information and robot reference coordinate information

Also Published As

Publication number Publication date
JPS63180486A (en) 1988-07-25

Similar Documents

Publication Publication Date Title
JP2020011339A5 (en) Robot system control method, control program, recording medium, control device, robot system, article manufacturing method
US10357879B2 (en) Robot zero-point calibration device and method
CN106920261B (en) A static calibration method for robot hand and eye
US20050273199A1 (en) Robot system
CN113021358B (en) Method and device for calibrating origin of coordinate system of mechanical arm tool and electronic equipment
JP2000241120A (en) Measuring apparatus
JPH0435885A (en) Calibration method for visual sensor
JP3402021B2 (en) Method for detecting relative position and orientation of robot device
JPS6332306A (en) Non-contact three-dimensional automatic dimension measuring method
JP2791275B2 (en) Object position / posture measuring device and component assembly device equipped with the same
JPH03161223A (en) Fitting of work
JP2959043B2 (en) Image processing device
JPH08382B2 (en) How to set the coordinate system of the robot with visual sensor
WO2023053395A1 (en) Position and posture measurement system
JPH05261686A (en) Calibration system for compensation of arm length variation of industrial robot due to temperature change
JPS60263804A (en) Length calibrating method of image measurement
JP3641818B2 (en) Measurement method using total station
JPH04370705A (en) Device for correcting resolution in image processing
JPH0882505A (en) Camera parameter calibration method and object position measurement method
CN110020648A (en) Workpiece measures and localization method
CN113733078A (en) Method for interpreting fine control quantity of mechanical arm and computer-readable storage medium
JP2661118B2 (en) Conversion method of object coordinates and visual coordinates using image processing device
CN115397626A (en) Coordinate system setting system and position and orientation measuring system
JPH08110206A (en) Position and orientation detection method and position and orientation detection device
JP2001153615A (en) Image data distortion correction method and video type extensometer