JP2011128114A - Method, apparatus for measuring tool dimension and robot having the same - Google Patents

Method, apparatus for measuring tool dimension and robot having the same Download PDF

Info

Publication number
JP2011128114A
JP2011128114A JP2009289370A JP2009289370A JP2011128114A JP 2011128114 A JP2011128114 A JP 2011128114A JP 2009289370 A JP2009289370 A JP 2009289370A JP 2009289370 A JP2009289370 A JP 2009289370A JP 2011128114 A JP2011128114 A JP 2011128114A
Authority
JP
Japan
Prior art keywords
tool
reference point
mounting portion
camera
registered
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.)
Pending
Application number
JP2009289370A
Other languages
Japanese (ja)
Inventor
Akiyoshi Saiki
昭義 才木
Tomohiro Takagi
智宏 高木
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.)
Kawasaki Heavy Industries Ltd
Original Assignee
Kawasaki Heavy Industries 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 Kawasaki Heavy Industries Ltd filed Critical Kawasaki Heavy Industries Ltd
Priority to JP2009289370A priority Critical patent/JP2011128114A/en
Publication of JP2011128114A publication Critical patent/JP2011128114A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To measure the dimensions of a tool mounted on a tool mount portion of a robot. <P>SOLUTION: A method is for measuring a tool reference point T, relative to a tool mount portion 10g of a robot 10, and repeatedly implements such an operation of the robot 10 that the tool mount portion rotates around an predetermined rotational center line passing through any position relative to the tool mount portion 10g, under such a state that a camera 14 photographs the actual tool reference point T. Each time the tool mount portion 10g is rotated, a traveling amount on a camera photographing image of the actual tool reference point T moved by the rotation. Moreover, each time the rotation of the tool mount portion 10g is completed, any position and/or predetermined rotational center line is changed. As a result of these, any position at which the traveling amount on the camera photographic image of the actual tool reference point T moved by the rotation of the tool mount portion 10g becoming substantially zero is identified, and the identified predetermined position is taken as a tool reference point T relative to the tool mount portion 10g. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、ツールを取り付けるツール取付け部を備えるロボットの制御装置に登録される、ツール取付け部に対するツール基準点の位置を計測するツール寸法の計測方法、その装置、および該装置を備えるロボットに関する。   The present invention relates to a tool dimension measuring method for measuring the position of a tool reference point with respect to a tool mounting portion, a device therefor, and a robot including the device, which are registered in a robot control device including a tool mounting portion for mounting a tool.

従来より、溶接ガンやスプレーガンなどのツールを、ツール取付け部(例えば、ツールの基準端面が接触するツール取付け面)に取付けてワークに対して作業を実施するロボットが使用されている。このようなツールを用いて作業を実施する場合、ツールの寸法値がロボットの制御装置に登録されている。   2. Description of the Related Art Conventionally, a robot that uses a tool such as a welding gun or a spray gun to attach to a tool attachment portion (for example, a tool attachment surface that comes into contact with a reference end surface of the tool) and performs work on a workpiece has been used. When work is performed using such a tool, the dimension value of the tool is registered in the control device of the robot.

例えば、ツールの寸法値として、ツール取付け面に対するツールの基準点、例えば溶接ガンの先端点が、ロボットの制御装置に登録されている。   For example, as a tool dimension value, a reference point of the tool with respect to the tool mounting surface, for example, a tip point of a welding gun is registered in the control device of the robot.

具体的には、例えば、ツール取付け面に予め定義されている座標系におけるツールの先端点の座標値がロボットの制御装置に登録されている。この座標値に基づいて、ロボットは、ツールの先端点をワークに対して正確に位置合わせする。   Specifically, for example, the coordinate value of the tip point of the tool in the coordinate system defined in advance on the tool mounting surface is registered in the control device of the robot. Based on this coordinate value, the robot accurately aligns the tip of the tool with respect to the workpiece.

当然ながら、ツールの先端点を正確に位置合わせするためには、登録されているツールの寸法値が正しい(実際のツール寸法値との誤差がゼロである)ことが前提である。そうでなければ、例えば、図12に示すように、ロボットが、ツールの登録寸法値に基づいて認識しているツールの先端点が直線に移動するように動作しても、ツールの実際の先端点の軌跡が直線にならないことがある。   Of course, in order to accurately align the tip of the tool, it is assumed that the registered tool dimension value is correct (the error from the actual tool dimension value is zero). Otherwise, as shown in FIG. 12, for example, even if the robot moves so that the tip point of the tool recognized based on the registered dimension value of the tool moves in a straight line, the actual tip of the tool The locus of a point may not be a straight line.

この対処として、正しいツールの寸法値を得ることができる、ツール寸法値を計測する方法がいくつか知られている。   As a countermeasure, several methods for measuring a tool dimension value that can obtain a correct tool dimension value are known.

例えば、特許文献1に記載するツール寸法値の計測方法は、カメラを使用しており、カメラの撮影画像上におけるツール先端点の位置に基づいて、ツールの寸法値を計測する。   For example, the measurement method of the tool dimension value described in Patent Document 1 uses a camera, and measures the dimension value of the tool based on the position of the tool tip point on the captured image of the camera.

具体的には、まず、ツール先端点がカメラの撮影画像に映るようなツール取付け面の複数の初期姿勢を用意(定義)する。初期姿勢毎に、撮影画像に映るツール先端点が該撮影画像の所定箇所(例えば画像中心)に移動するために必要な、ツール取付け面の平行移動量を算出する。そして、初期姿勢毎に、算出した平行移動量に基づいてロボットを動作させてツール取付け面を平行移動し、平行移動後のツール取付け面の位置を取得する。これにより、ツール先端点が撮影画像の所定箇所に映る、ツール取付け面の異なる複数の位置姿勢データが得られる。この異なる複数の位置姿勢データに基づくとともに、ツールの先端点がツール取付け面に対して不動であることから、ツール取付け面に対するツールの先端点の位置を算出する。   Specifically, first, a plurality of initial postures of the tool mounting surface are prepared (defined) such that the tool tip point is reflected in a captured image of the camera. For each initial posture, a parallel movement amount of the tool mounting surface necessary for the tool tip point shown in the photographed image to move to a predetermined location (for example, the image center) of the photographed image is calculated. Then, for each initial posture, the robot is operated based on the calculated parallel movement amount to translate the tool attachment surface, and the position of the tool attachment surface after the parallel movement is acquired. As a result, a plurality of position and orientation data with different tool attachment surfaces, in which the tool tip point is reflected at a predetermined position of the captured image, can be obtained. Based on the plurality of different position and orientation data, and since the tip point of the tool is not moved with respect to the tool mounting surface, the position of the tip point of the tool with respect to the tool mounting surface is calculated.

この方法は、原理的には、ツール先端点を固定ピンの先端に接触させてツール取付け面に対するツール先端点の位置を算出する3点タッチアップまたは6点タッチアップの方法と同じである。ただし、ツール先端点が物理的な接触を受けない点で、特許文献1に記載する方法が有利である。   In principle, this method is the same as the three-point touch-up or six-point touch-up method in which the tool tip point is brought into contact with the tip of the fixing pin to calculate the position of the tool tip point with respect to the tool mounting surface. However, the method described in Patent Document 1 is advantageous in that the tool tip point does not receive physical contact.

特開2005−300230号公報JP-A-2005-300230

しかしながら、特許文献1に記載の方法は、カメラの撮影画像上においてツール先端点が該撮影画像の所定箇所に移動するようなロボットの制御量(ツール取付け面の平行移動量)を算出するため、ロボットに対するカメラの視線方向が特定されている必要がある。したがって、カメラの設置位置が変わる度にカメラの視線方向を特定する必要がある。   However, the method described in Patent Document 1 calculates a control amount of the robot (a parallel movement amount of the tool mounting surface) such that the tool tip point moves to a predetermined position of the captured image on the captured image of the camera. The viewing direction of the camera with respect to the robot needs to be specified. Therefore, it is necessary to specify the viewing direction of the camera every time the installation position of the camera changes.

これに対処するために、カメラの視線方向を一定に定めた状態で、ロボットに対して一定の位置に該カメラを固定することが考えられる。ところが、この場合、ツールの寸法測定の正確性を確保するために、カメラの視線方向が一定に定めた状態で維持されていることを、ツール寸法値を計測する前に確認しなければならない。   In order to cope with this, it is conceivable to fix the camera at a fixed position with respect to the robot in a state in which the viewing direction of the camera is fixed. However, in this case, in order to ensure the accuracy of the tool dimension measurement, it must be confirmed before measuring the tool dimension value that the camera's line-of-sight direction is maintained in a fixed state.

そこで、本発明は、ロボットに対するカメラの視線方向を特定することなく、カメラの撮影画像に基づいて、ロボットの制御装置に登録される、ツールの寸法値、具体的にはツール取付け部に対するツールの基準点の位置を計測することを課題とする。   Therefore, the present invention does not specify the line-of-sight direction of the camera with respect to the robot, and is based on the photographed image of the camera and is registered in the robot control device, specifically, the tool dimension value, specifically the tool mounting portion with respect to the tool mounting portion. The problem is to measure the position of the reference point.

上述の課題を解決するために、本願の請求項1に記載の発明は、
ツールを取付けるツール取付け部を備えるロボットの制御装置に登録される、ツール取付け部に対するツールの基準点の位置を計測するツール寸法の計測方法であって、
カメラが実際のツール基準点を撮影した状態で、ツール取付け部に対する任意の位置を通過する任意の回転中心線を中心として該ツール取付け部が回転するようなロボットの動作を繰り返し実行する第1の工程と、
ツール取付け部が回転する度にその回転によって移動した実際のツール基準点のカメラの撮影画像上における移動量を計測する第2の工程と、
ツール取付け部の回転が終了する度に上記任意の位置および/または上記任意の回転中心線を変更する第3の工程とを繰り返し実行することにより、
ツール取付け部の回転によって移動する実際のツール基準点のカメラ撮影画像上における移動量が略ゼロになる任意の位置を特定し、
特定した任意の位置をツール取付け部に対するツール基準点の位置とすることを特徴とする。
In order to solve the above-mentioned problem, the invention according to claim 1 of the present application is
A tool dimension measuring method for measuring a position of a reference point of a tool with respect to a tool mounting portion, which is registered in a robot control device having a tool mounting portion for mounting a tool,
In a state where the camera has photographed an actual tool reference point, a robot operation is repeatedly executed such that the tool attachment portion rotates about an arbitrary rotation center line passing through an arbitrary position with respect to the tool attachment portion. Process,
A second step of measuring the amount of movement of the actual tool reference point moved by the rotation on the captured image of the camera each time the tool mounting portion rotates;
By repeatedly executing the third step of changing the arbitrary position and / or the arbitrary rotation center line every time the rotation of the tool attachment portion is completed,
Specify an arbitrary position where the movement amount on the camera image of the actual tool reference point that moves due to the rotation of the tool mounting part becomes substantially zero,
The specified arbitrary position is set as the position of the tool reference point with respect to the tool mounting portion.

また、請求項2に記載の発明は、
ツールを取付けるツール取付け部を備えるロボットの制御装置に登録される、ツール取付け部に対するツールの基準点の位置を計測するツール寸法の計測方法であって、
ツール取付け部に対する予め設定された設定位置および上記設定位置に対して所定の位置関係の少なくとも1つの位置それぞれについて、当該位置を通過する所定方向に延びる回転中心線を中心として所定角度回転させる第1の工程と、
上記設定位置および上記少なくとも1つの位置それぞれについて、上記第1の工程の実行によって移動した実際のツール基準点のカメラ撮影画像上における移動量を計測する第2の工程と、
上記第2の工程で計測された移動量が最小の位置を新たな設定位置とする第3の工程と、
上記所定の位置関係を、上記設定位置に至る方向が変更されるようにおよび/または上記設定方向までの距離が漸減するように変更する第4の工程とを、
上記第2の工程で計測される移動量が略ゼロになる位置が特定されるまで繰り返し実行し、特定された位置をツール取付け部に対するツール基準点の位置とすることを特徴とする。
The invention according to claim 2
A tool dimension measuring method for measuring a position of a reference point of a tool with respect to a tool mounting portion, which is registered in a robot control device having a tool mounting portion for mounting a tool,
A first setting for rotating a predetermined angle about a rotation center line extending in a predetermined direction passing through the position with respect to each of at least one position having a predetermined positional relationship with respect to the setting position and a predetermined setting position with respect to the tool mounting portion And the process of
A second step of measuring an amount of movement of the actual tool reference point moved by execution of the first step on the camera-captured image for each of the set position and the at least one position;
A third step in which the position with the smallest amount of movement measured in the second step is set as a new set position;
Changing the predetermined positional relationship so that the direction to the set position is changed and / or the distance to the set direction is gradually reduced;
It is repeatedly performed until the position where the movement amount measured in the second step is substantially zero is specified, and the specified position is set as the position of the tool reference point with respect to the tool mounting portion.

さらに、請求項3に記載の発明は、
ツールを取付けるツール取付け部を備えるロボットの制御装置に登録される、ツール取付け部に対するツールの基準点の位置を計測するツール寸法の計測方法であって、
制御装置に登録されているツール基準点の位置を通過する第1の回転中心線を中心としてツール取付け部を所定角度回転させる第1の工程と、
上記第1の工程の実行によって移動した実際のツール基準点のカメラ撮影画像上における第1の移動量を計測する第2の工程と、
制御装置に登録されているツール基準点の位置から予め設定された設定方向に予め設定された設定距離離れた位置を通過する、第1の回転中心線と平行な第2の回転中心線を中心としてツール取付け部を上記所定角度回転させる第3の工程と、
上記第3の工程の実行によって移動した実際のツール基準点のカメラ撮影画像上における第2の移動量を計測する第4の工程と、
制御装置に登録されているツール基準点の位置から上記設定方向の反対方向に上記設定距離離れた位置を通過する、第1の回転中心線と平行な第3の回転中心線を中心としてツール取付け部を上記所定角度回転させる第5の工程と、
上記第5の工程の実行によって移動した実際のツール基準点のカメラの撮影画像上における第3の移動量を計測する第6の工程と、
第1〜第3の移動量において第2の移動量が最小のときは、制御装置に登録されているツール基準点の位置を上記設定方向に上記設定距離離れた位置に変更し、
第1〜第3の移動量において第3の移動量が最小のときは、制御装置に登録されているツール基準点の位置を上記設定方向の反対方向に上記設定距離離れた位置に変更する第7の工程と、
上記設定方向を変更するおよび/または上記設定距離を漸減する第8の工程とを、繰り返し実行し、
上記第2、第4、または第6の工程のいずれかの工程で計測される移動量が略ゼロになると、第1〜第8の工程の繰り返し実行を終了することを特徴とする。
Furthermore, the invention described in claim 3
A tool dimension measuring method for measuring a position of a reference point of a tool with respect to a tool mounting portion, which is registered in a robot control device having a tool mounting portion for mounting a tool,
A first step of rotating the tool mounting portion by a predetermined angle around a first rotation center line passing through the position of the tool reference point registered in the control device;
A second step of measuring a first movement amount on the camera-captured image of the actual tool reference point moved by the execution of the first step;
Centered on a second rotation center line parallel to the first rotation center line passing through a position set in advance in a preset setting direction from the position of the tool reference point registered in the control device As a third step of rotating the tool mounting portion by the predetermined angle;
A fourth step of measuring a second movement amount on the camera-captured image of the actual tool reference point moved by the execution of the third step;
Tool attachment centered on a third rotation center line parallel to the first rotation center line passing through a position away from the set reference distance in the opposite direction of the setting direction from the position of the tool reference point registered in the control device A fifth step of rotating the portion by the predetermined angle;
A sixth step of measuring a third movement amount of the actual tool reference point moved by the execution of the fifth step on the captured image of the camera;
When the second movement amount is the smallest among the first to third movement amounts, the position of the tool reference point registered in the control device is changed to a position away from the set distance in the setting direction,
When the third movement amount is the smallest among the first to third movement amounts, the position of the tool reference point registered in the control device is changed to a position away from the set distance in the direction opposite to the set direction. 7 steps,
And repeatedly executing the eighth step of changing the setting direction and / or gradually decreasing the setting distance,
When the movement amount measured in any one of the second, fourth, and sixth steps becomes substantially zero, the repeated execution of the first to eighth steps is terminated.

加えて、請求項4に記載の発明は、
第1、第2、および第3の軸を有する直交座標系を予め定義し、
第1の工程が初めて実行される前に、
上記第1の軸方向にツール取付け部を平行移動させて発生する、実際のツール基準点のカメラの撮影画像上における第1の移動ベクトルと、
上記第2の軸方向にツール取付け部を平行移動させて発生する、実際のツール基準点のカメラの撮影画像上における第2の移動ベクトルと、
制御装置に登録されているツール基準点の位置を通過して上記第3の軸と平行な回転中心線を中心としてツール取付け部を回転させて発生する、実際のツール基準点のカメラの撮影画像上における第3の移動ベクトルと、
制御装置に登録されているツール基準点の位置を通過して上記第1の軸と平行な回転中心線を中心としてツール取付け部を回転させて発生する、実際のツール基準点のカメラの撮影画像上における第4の移動ベクトルと、
上記第2の軸方向にツール取付け部を平行移動させて発生する、実際のツール基準点のカメラの撮影画像上における第5の移動ベクトルと、
上記第3の軸方向にツール取付け部を平行移動させて発生する、実際のツール基準点のカメラの撮影画像上における第6の移動ベクトルと、
上記第1の軸方向にツール取付け部を平行移動させて発生する、実際のツール基準点のカメラの撮影画像上における第7の移動ベクトルと、
制御装置に登録されているツール基準点の位置を通過して上記第2の軸と平行な回転中心線を中心としてツール取付け部を回転させて発生する、実際のツール基準点のカメラの撮影画像上における第8の移動ベクトルと、
上記第3の軸方向にツール取付け部を平行移動させて発生する、実際のツール基準点のカメラの撮影画像上における第9の移動ベクトルとに基づいて、
制御装置に登録されているツール基準点と実際のツール基準点との誤差を求め、
求めた誤差に基づいて、制御装置に登録されているツール基準点の位置を修正することを特徴とする。
In addition, the invention according to claim 4
Predefine an orthogonal coordinate system having first, second and third axes;
Before the first step is performed for the first time,
A first movement vector on the captured image of the camera of the actual tool reference point, generated by translating the tool mounting portion in the first axial direction;
A second movement vector on the photographed image of the camera of the actual tool reference point generated by translating the tool mounting portion in the second axial direction;
An image taken by the camera of the actual tool reference point generated by rotating the tool mounting portion around the rotation center line parallel to the third axis passing through the position of the tool reference point registered in the control device A third movement vector above,
An image taken by the camera of the actual tool reference point generated by rotating the tool mounting portion around the rotation center line parallel to the first axis through the position of the tool reference point registered in the control device A fourth motion vector above,
A fifth movement vector on the captured image of the camera of the actual tool reference point, generated by translating the tool mounting portion in the second axial direction;
A sixth movement vector on the captured image of the camera of the actual tool reference point, generated by translating the tool mounting portion in the third axial direction;
A seventh movement vector on the captured image of the camera of the actual tool reference point, which is generated by translating the tool mounting portion in the first axial direction;
An image taken by the camera of the actual tool reference point generated by rotating the tool mounting portion around the rotation center line parallel to the second axis through the position of the tool reference point registered in the control device An eighth movement vector above,
Based on the ninth movement vector on the captured image of the camera of the actual tool reference point generated by translating the tool mounting portion in the third axial direction,
Find the error between the tool reference point registered in the controller and the actual tool reference point.
Based on the obtained error, the position of the tool reference point registered in the control device is corrected.

加えてまた、請求項5に記載の発明は、
ツールを取付けるツール取付け部を備えるロボットの制御装置に登録される、ツール取付け部に対するツールの基準点の位置を計測するツール寸法の計測装置であって、
ロボットの周辺に配置されて実際のツール基準点を撮影するカメラと、
カメラと制御装置とを介して、ツール取付け部に対するツール基準点の位置を計測する計測手段とを有し、
計測手段は、
ツール取付け部に対する任意の位置を通過する任意の回転中心線を中心として該ツール取付け部が回転するようなロボットの動作を制御装置に繰り返し実行させ、
ツール取付け部が回転する度にその回転によって移動した実際のツール基準点のカメラの撮影画像上における移動量を計測し、且つ、
ツール取付け部の回転が終了する度に上記任意の位置および/または上記任意の回転中心線を変更することを繰り返し実行することにより、
ツール取付け部の回転によって移動する実際のツール基準点のカメラ撮影画像上における移動量が略ゼロになる任意の位置を特定し、
特定した任意の位置をツール取付け部に対するツール基準点の位置として制御装置に登録することを特徴とする。
In addition, the invention according to claim 5
A tool size measuring device for measuring the position of a reference point of a tool with respect to the tool mounting portion, which is registered in a robot control device having a tool mounting portion for mounting a tool,
A camera that is placed around the robot and captures the actual tool reference point;
Measuring means for measuring the position of the tool reference point with respect to the tool mounting portion via the camera and the control device;
Measuring means
Causing the control device to repeatedly execute the operation of the robot such that the tool attachment portion rotates around an arbitrary rotation center line passing through an arbitrary position with respect to the tool attachment portion;
Measure the amount of movement of the actual tool reference point moved by the rotation on the captured image of the camera each time the tool mounting portion rotates, and
By repeatedly executing the arbitrary position and / or the arbitrary rotation center line every time the rotation of the tool attachment portion is completed,
Specify an arbitrary position where the movement amount on the camera image of the actual tool reference point that moves due to the rotation of the tool mounting part becomes substantially zero,
The specified arbitrary position is registered in the control device as the position of the tool reference point with respect to the tool mounting portion.

さらに加えて、請求項6に記載の発明は、
ツールを取付けるツール取付け部と制御装置とを備え、ツール取付け部に対するツールの基準点の位置が制御装置に登録されるロボットであって、
上述のツール寸法の計測装置を備えていることを特徴とする。
In addition, the invention according to claim 6
A robot having a tool mounting portion for attaching a tool and a control device, the position of the reference point of the tool with respect to the tool mounting portion being registered in the control device;
The above-described tool dimension measuring device is provided.

本発明によれば、任意の位置を通過する任意の回転中心線を中心としてツール取付け部を回転動作させたときに、カメラの撮影画像上においてツールの基準点が移動しなければ(移動量がゼロであれば)、任意の位置と実際のツールの基準点の位置とが一致しているということに基づいて、ツール取付け部に対するツールの基準点の位置が計測(特定)される。このように、ツールの基準点の撮影画像上における移動量を用いるので、ロボットに対するカメラの視線方向を特定することなく、ツールの寸法値、具体的にはツール取付け部に対するツールの基準点の位置を計測することができる。   According to the present invention, when the tool mounting portion is rotated around an arbitrary rotation center line passing through an arbitrary position, the tool reference point does not move on the captured image of the camera (the movement amount is If zero), the position of the tool reference point relative to the tool mount is measured (specified) based on the fact that the arbitrary position matches the actual tool reference point position. In this way, since the amount of movement of the reference point of the tool on the captured image is used, the dimension value of the tool, specifically the position of the reference point of the tool with respect to the tool mounting portion, without specifying the direction of the line of sight of the camera with respect to the robot Can be measured.

本発明の第1の実施形態に係る、ツールの寸法を計測するシステムを概略的に示す図である。1 is a diagram schematically showing a system for measuring a dimension of a tool according to a first embodiment of the present invention. FIG. ツール寸法値を説明するための図である。It is a figure for demonstrating a tool dimension value. 本発明の第1の実施形態に係るツール寸法値計測方法を概念的に説明するための図である。It is a figure for demonstrating notionally the tool dimension value measuring method which concerns on the 1st Embodiment of this invention. 本発明の第1の実施形態に係るツール寸法値計測方法を説明するための図である。It is a figure for demonstrating the tool dimension value measuring method which concerns on the 1st Embodiment of this invention. 本発明の第1の実施形態に係るツール寸法値計測方法を説明するための別の図である。It is another figure for demonstrating the tool dimension value measuring method which concerns on the 1st Embodiment of this invention. 本発明の第1の実施形態に係るツール寸法値計測方法を説明するためのさらに別の図である。It is another figure for demonstrating the tool dimension value measuring method which concerns on the 1st Embodiment of this invention. 本発明の第1の実施形態に係るツール寸法値計測方法の流れを示すフローチャートの図である。It is a figure of the flowchart which shows the flow of the tool dimension value measuring method which concerns on the 1st Embodiment of this invention. 図7に示すステップS150の詳細を示すフローチャートの図である。FIG. 8 is a flowchart showing details of step S150 shown in FIG. 位置変更量決定テーブルを示す図である。It is a figure which shows a position change amount determination table. 回転動作決定テーブルを示す図である。It is a figure which shows a rotation operation determination table. ベクトルの線形写像を利用した、本発明の第2の実施形態に係るツール寸法値計測方法を説明するための図である。It is a figure for demonstrating the tool dimension value measuring method based on the 2nd Embodiment of this invention using the linear mapping of a vector. 実際のツール先端点とロボットの制御装置に登録されているツール先端点との間に誤差がある場合に起こる問題を説明するための図である。It is a figure for demonstrating the problem which arises when there exists an error between an actual tool front-end | tip point and the tool front-end | tip point registered into the control apparatus of the robot.

(第1の実施形態)
図1は、本発明の第1の実施形態の一例に係る、ツールの寸法値を計測するシステムを概略的に示している。
(First embodiment)
FIG. 1 schematically shows a system for measuring a dimension value of a tool according to an example of the first embodiment of the present invention.

図1に示すロボット10は、例えば6つの関節10a〜10fを備えたアーム型のロボットである。また、ロボット10は、その自由端に、例えば溶接ガンやスプレーガンなどのツール12が取付け可能なツール取付け部(ツール取付け面)10gを備えている。   The robot 10 shown in FIG. 1 is an arm type robot having, for example, six joints 10a to 10f. Further, the robot 10 includes a tool attachment portion (tool attachment surface) 10g to which a tool 12 such as a welding gun or a spray gun can be attached at the free end.

さらに、ロボット10は、6つの関節10a〜10fそれぞれを駆動する複数のモータ(図示せず)を制御する制御装置10hを備えている。この制御装置10hが6つのモータを制御することにより、ツール取付け面10gは様々な位置に様々な姿勢で配置される。これにより、ツール取付け面10gに取付けられているツール12が様々な位置に様々の姿勢で配置される。   Furthermore, the robot 10 includes a control device 10h that controls a plurality of motors (not shown) that drive each of the six joints 10a to 10f. The control device 10h controls the six motors so that the tool mounting surface 10g is arranged at various positions and in various postures. Thereby, the tool 12 attached to the tool attachment surface 10g is arrange | positioned with various attitude | positions in various positions.

また、制御装置10hには、ツール12の寸法値が登録されている。ツール12の寸法値は、図2に示すように、例えば、ツール取付け面10gに定義されているメカニカルインターフェイス座標系ΣMに基づいた値にされている。   The dimension value of the tool 12 is registered in the control device 10h. As shown in FIG. 2, the dimension value of the tool 12 is a value based on the mechanical interface coordinate system ΣM defined on the tool mounting surface 10g, for example.

具体的には、例えば、メカニカルインターフェイス座標系ΣMは、図2に示すように、ツール取付け面10gの中心と原点Omとが一致した状態で、且つツール取付け面10gの法線方向がZm軸方向に一致した状態で、ツール取付け面10gに定義されている。ツール12の寸法値として、ツール12の基準点(先端点)Tのメカニカルインターフェイス座標系ΣMにおける位置Pm(座標)が制御装置10hに登録されている。登録は、例えば、ユーザによってロボット10のティーチペンダント(図示せず)を介して実行される。   Specifically, for example, in the mechanical interface coordinate system ΣM, as shown in FIG. 2, the center of the tool mounting surface 10g and the origin Om coincide with each other, and the normal direction of the tool mounting surface 10g is the Zm-axis direction. Is defined on the tool mounting surface 10g. As the dimension value of the tool 12, the position Pm (coordinate) of the reference point (tip point) T of the tool 12 in the mechanical interface coordinate system ΣM is registered in the control device 10h. The registration is executed by the user via a teach pendant (not shown) of the robot 10, for example.

ロボット10の制御装置10hは、登録されているツール12の先端点Tの位置Pm(座標)に基づいて、ツール12の先端点Tを空間上の様々な位置に配置する。当然ながら、ツール12の先端点Tを所定の位置(例えばワークに対する所定の位置)に配置するためには、制御装置10hに登録されているツール12の先端点Tの位置Pmが正しいことが前提である。   The control device 10h of the robot 10 arranges the tip point T of the tool 12 at various positions in space based on the registered position Pm (coordinates) of the tip point T of the tool 12. Naturally, in order to place the tip point T of the tool 12 at a predetermined position (for example, a predetermined position with respect to the workpiece), it is assumed that the position Pm of the tip point T of the tool 12 registered in the control device 10h is correct. It is.

ロボット10の制御装置10hに登録されているツール12の先端点Tの位置Pmを正しい値にするための手段として、カメラ14と、コンピュータ16とが設けられている。   A camera 14 and a computer 16 are provided as means for setting the position Pm of the tip point T of the tool 12 registered in the control device 10h of the robot 10 to a correct value.

カメラ14は、例えばデジタルカメラであって、ツール12の先端点Tが撮影可能なロボット10の周辺位置に配置されている。また、カメラ14は、コンピュータ16に制御されてツール12の先端点Tを撮影するように、また撮影画像をデータとしてコンピュータ16に送信するように構成されている。   The camera 14 is a digital camera, for example, and is arranged at a peripheral position of the robot 10 where the tip point T of the tool 12 can be photographed. The camera 14 is controlled by the computer 16 so as to capture the tip point T of the tool 12 and transmit the captured image as data to the computer 16.

コンピュータ16は、カメラ14から取得した撮影画像上において、ツール12の先端点Tの位置を特定できるように構成されている。例えば、画像解析によって撮影画像の中からツール12の先端点Tを識別し、撮影画像に定義されている画像座標系ΣCにおけるツール12の先端点Tの位置(座標)を特定する。   The computer 16 is configured to be able to specify the position of the tip point T of the tool 12 on the captured image acquired from the camera 14. For example, the tip point T of the tool 12 is identified from the photographed image by image analysis, and the position (coordinate) of the tip point T of the tool 12 in the image coordinate system ΣC defined in the photographed image is specified.

なお、より正確に画像解析ができるように、ツール12の先端点Tに光源を設けてもよい。これにより、撮影画像内のツール12の先端点Tをより正確に識別することができる。また、代わりとして、ツール12の所定位置に光源を取付け、その光源取付け位置をツール12の基準点としてもよい。   A light source may be provided at the tip T of the tool 12 so that image analysis can be performed more accurately. Thereby, the tip point T of the tool 12 in the captured image can be identified more accurately. Alternatively, a light source may be attached to a predetermined position of the tool 12 and the light source attachment position may be used as the reference point of the tool 12.

また、コンピュータ16は、ツール12の先端点Tの画像座標系ΣCにおける移動量を計測(算出)できるように構成されている。具体的には、ロボット10のツール取付け面10gが回転する前後においてツール12の先端点Tを撮影し、各撮影画像に映るツール12の先端点Tの画像座標系ΣCにおける位置(座標)を特定する。そして、特定した各撮影画像の先端点Tの位置(座標)に基づいて、ツール取付け面10gの回転によって移動したツール12の先端点の画像座標系ΣCにおける移動量を算出する。   Further, the computer 16 is configured to measure (calculate) the amount of movement of the tip point T of the tool 12 in the image coordinate system ΣC. Specifically, the tip point T of the tool 12 is photographed before and after the tool mounting surface 10g of the robot 10 rotates, and the position (coordinates) in the image coordinate system ΣC of the tip point T of the tool 12 reflected in each photographed image is specified. To do. Then, based on the position (coordinates) of the tip point T of each identified captured image, the amount of movement in the image coordinate system ΣC of the tip point of the tool 12 moved by the rotation of the tool mounting surface 10g is calculated.

さらに、コンピュータ16は、ロボット10の制御装置10hに、ロボット10を制御する制御信号を出力するように構成されている。さらにまた、コンピュータ16は、制御装置10hに登録されているツール12の先端点Tの位置Pmを登録変更できるように構成されている。   Further, the computer 16 is configured to output a control signal for controlling the robot 10 to the control device 10 h of the robot 10. Furthermore, the computer 16 is configured to be able to change the registration of the position Pm of the tip point T of the tool 12 registered in the control device 10h.

ここからは、このようなカメラ14とコンピュータ16とを用い、ツール12の寸法値として、ツール12の先端点Tのメカニカルインターフェイス座標系ΣMにおける正しい位置Pmを計測(特定)する方法について説明する。   Hereafter, a method for measuring (specifying) a correct position Pm in the mechanical interface coordinate system ΣM of the tip point T of the tool 12 as a dimension value of the tool 12 using such a camera 14 and the computer 16 will be described.

まず、ツール12の先端Tの正しい位置Pmを求める方法を概念的に説明する。なお、説明にあたり、ここからは、ツール取付け面10gに対する(メカニカルインターフェイス座標系ΣMにおける)ツール12の先端点Tの実際の位置を「Pmr」とする(以下、「実際位置Pmr」と称する)。また、ロボット10の制御装置10hに登録されている、ツール取付け面10gに対する(メカニカルインターフェイス座標系ΣMにおける)ツール12の先端点Tの位置を「Pms」とする(以下、「登録位置Pms」と称する)。   First, a method for obtaining the correct position Pm of the tip T of the tool 12 will be conceptually described. In the following description, the actual position of the tip point T of the tool 12 (in the mechanical interface coordinate system ΣM) with respect to the tool mounting surface 10g is referred to as “Pmr” (hereinafter referred to as “actual position Pmr”). The position of the tip point T of the tool 12 (in the mechanical interface coordinate system ΣM) registered in the control device 10h of the robot 10 with respect to the tool mounting surface 10g is defined as “Pms” (hereinafter referred to as “registered position Pms”). Called).

図3はカメラ14の撮影画像を示しており、ツール12の先端点Tが撮影画像に映っている。図3(A)に示す撮影画像には、実際位置Pmrと登録位置Pmsとが距離Lmaだけずれている状態のツール12の先端点Tが映っている。一方、図3(B)に示す撮影画像には、実際位置Pmrと登録位置Pmsとが距離Lmb(<Lma)だけずれている状態のツール12の先端点Tが映っている。   FIG. 3 shows a photographed image of the camera 14, and the tip point T of the tool 12 is shown in the photographed image. In the captured image shown in FIG. 3A, the tip point T of the tool 12 in a state where the actual position Pmr and the registered position Pms are shifted by the distance Lma is shown. On the other hand, the captured image shown in FIG. 3B shows the tip point T of the tool 12 in a state where the actual position Pmr and the registered position Pms are shifted by a distance Lmb (<Lma).

ツール取付け面10gが登録位置Pmsを通過する任意の回転中心線を中心として角度θだけ回転動作すると(そのようにロボット10が動作すると)、ツール12の先端点Tは、ロボット10が設置されている空間においても、また画像座標系ΣCにおいても移動する(移動前のツール12を二点鎖線で示す)。なお、図3に示すθ’は、角度θに対応する撮影画像上における角度である。   When the tool mounting surface 10g rotates about an arbitrary rotation center line passing through the registration position Pms by an angle θ (when the robot 10 moves in this way), the tip point T of the tool 12 is set at the tip point T of the tool 12. And the image coordinate system ΣC (the tool 12 before the movement is indicated by a two-dot chain line). Note that θ ′ shown in FIG. 3 is an angle on the captured image corresponding to the angle θ.

図3(A)と図3(B)とに示すように、ツール12の先端点Tの画像座標系ΣCにおける移動量ΔScは、当然ながら実際位置Pmrと登録位置Pmsとの間の距離が短くなればなるほど、小さくなる。   As shown in FIGS. 3 (A) and 3 (B), the movement amount ΔSc of the tip point T of the tool 12 in the image coordinate system ΣC naturally has a short distance between the actual position Pmr and the registered position Pms. The smaller it is, the smaller it becomes.

このことから、登録位置Pmsを通過する任意の回転中心線を中心としてツール取付け面10gを回転動作させたときに、画像座標系ΣCにおいてツール12の先端点Tが移動しなければ(移動量ΔScがゼロであれば)、登録位置Pmsと実際位置Pmrとが一致していると言える。本発明は、この考えに基づいている。   From this, when the tool attachment surface 10g is rotated about an arbitrary rotation center line passing through the registration position Pms, the tip point T of the tool 12 does not move in the image coordinate system ΣC (movement amount ΔSc). If it is zero), it can be said that the registered position Pms and the actual position Pmr match. The present invention is based on this idea.

この考えに基づく、ツール12の寸法値、すなわちメカニカルインターフェイス座標系ΣMにおける実際位置Pmr(実際位置Pmrの座標)を求める具体的な方法について、図4および図5を参照しながら説明する。   A specific method for obtaining the dimension value of the tool 12, that is, the actual position Pmr (the coordinates of the actual position Pmr) in the mechanical interface coordinate system ΣM based on this idea will be described with reference to FIGS.

図4(A)は、登録位置Pms(座標(xms,yms,zms))が、実際位置Pmr(座標は未知)に対してずれている状態の一例を示している。この状態から後述の4つのプロセスを順に繰り返し実行することにより、メカニカルインターフェイス座標系ΣMにおける実際位置Pmrの座標を求める。   FIG. 4A shows an example of a state where the registered position Pms (coordinates (xms, yms, zms)) is deviated from the actual position Pmr (coordinates are unknown). From this state, the coordinates of the actual position Pmr in the mechanical interface coordinate system ΣM are obtained by repeatedly executing the following four processes in order.

(第1のプロセス)
まず、第1のプロセスとして、コンピュータ16は、図4(B)に示すように、登録位置Pms(座標(xms,yms,zms))から設定方向に設定距離離れた位置(座標(xms+Δxms,yms+Δyms,zms+Δzms))を仮の登録位置Pms1として設定する。なお、設定方向および設定距離は、予めコンピュータ16の記憶装置に記憶されており、座標変化量Δxms,Δyms,Δzmsとして記憶されている。また、「仮の登録位置」は、後に新しい登録位置としてロボット10の制御装置10hに登録される可能性がある位置である。
(First process)
First, as a first process, as shown in FIG. 4 (B), the computer 16 moves the position (coordinates (xms + Δxms, yms + Δyms) away from the registered position Pms (coordinates (xms, yms, zms)) in the setting direction. , Zms + Δzms)) is set as the temporary registration position Pms1. The setting direction and the setting distance are stored in advance in a storage device of the computer 16 and stored as coordinate change amounts Δxms, Δyms, Δzms. The “temporary registration position” is a position that may be registered later in the control device 10h of the robot 10 as a new registration position.

また、図4(C)に示すように、登録位置Pms(座標(xms,yms,zms))から設定方向と反対方向に設定距離離れた位置(座標(xms−Δxms,yms−Δyms,zms−Δzms))を仮の登録位置Pms2として設定する。すなわち、仮登録位置Pms1とPms2は、登録位置Pmsを挟んで、且つ登録位置Pmsから同一の距離離れて対向している。   Further, as shown in FIG. 4C, a position (coordinates (xms−Δxms, yms−Δyms, zms−) that is a set distance away from the registered position Pms (coordinates (xms, yms, zms)) in the direction opposite to the set direction. Δzms)) is set as the provisional registration position Pms2. In other words, the temporary registration positions Pms1 and Pms2 face each other with the registration position Pms in between and the same distance from the registration position Pms.

(第2のプロセス)
次に、第2のプロセスとして、登録位置Pms、仮登録位置Pms1,Pms2それぞれについて、実際位置Pmrとの整合(一致)の程度を評価する。すなわち、登録位置Pms,仮登録位置Pms1,Pms2の中から、実際位置Pmrに最も近いものを選出する。
(Second process)
Next, as a second process, the degree of matching (coincidence) with the actual position Pmr is evaluated for each of the registration position Pms and the temporary registration positions Pms1 and Pms2. That is, the one closest to the actual position Pmr is selected from the registered positions Pms and temporary registered positions Pms1, Pms2.

登録位置Pms,仮登録位置Pms1,Pms2それぞれについて、実際位置Pmrとの整合の程度を評価する方法を説明する。   A method for evaluating the degree of matching with the actual position Pmr for each of the registration position Pms and the provisional registration positions Pms1 and Pms2 will be described.

まず、登録位置Pms、仮登録位置Pms1,Pms2それぞれについて、その位置(座標)を通過する回転中心線を中心としてツール取付け面10gを回転動作させ、それによって移動したツール12の先端点Tの画像座標系ΣCにおける移動量を計測(算出)する。   First, for each of the registration position Pms and the temporary registration positions Pms1 and Pms2, the tool attachment surface 10g is rotated about the rotation center line passing through the positions (coordinates), and the image of the tip point T of the tool 12 moved thereby. The movement amount in the coordinate system ΣC is measured (calculated).

具体的には、登録位置Pms、仮登録位置Pms1,Pms2それぞれについて、ツール取付け面10gにメカニカルインターフェイス座標系ΣMのXm軸と平行な回転中心線を中心とする角度θの回転動作(第1の回転動作)を実行させる。そして、その第1の回転動作によって移動したツール12の先端点Tの画像座標系ΣCにおけるXc軸方向の移動量ΔXcとYc軸方向の移動量ΔYcとを計測(算出)する。   Specifically, for each of the registration position Pms and the provisional registration positions Pms1, Pms2, the tool mounting surface 10g is rotated at an angle θ about the rotation center line parallel to the Xm axis of the mechanical interface coordinate system ΣM (first Rotation operation) is executed. Then, the movement amount ΔXc in the Xc axis direction and the movement amount ΔYc in the Yc axis direction in the image coordinate system ΣC of the tip point T of the tool 12 moved by the first rotation operation are measured (calculated).

これと同様に、登録位置Pms、仮登録位置Pms1,Pms2それぞれについて、ツール取付け面10gに、Xm軸と平行な回転中心線を中心とする角度(−θ)の回転動作(第2の回転動作)、Ym軸と平行な回転中心線を中心とする角度θの回転動作(第3の回転動作)、Ym軸と平行な回転中心線を中心とする角度(−θ)の回転動作(第4の回転動作)、Zm軸と平行な回転中心線を中心とする角度θの回転動作(第5の回転動作)、およびZm軸と平行な回転中心線を中心とする角度(−θ)の回転動作(第6の回転動作)を実行させ、第2〜第6の回転動作それぞれによって移動したツール12の先端点Tの画像座標系ΣCにおけるXc軸方向の移動量ΔXcとYc軸方向の移動量ΔYcとを計測(算出)する。   Similarly, for each of the registration position Pms and the temporary registration positions Pms1 and Pms2, the tool mounting surface 10g is rotated at an angle (−θ) about a rotation center line parallel to the Xm axis (second rotation operation). ), Rotation operation at an angle θ centered on a rotation center line parallel to the Ym axis (third rotation operation), rotation operation at an angle (−θ) centered on a rotation center line parallel to the Ym axis (fourth rotation operation) Rotation operation), rotation operation at an angle θ about a rotation center line parallel to the Zm axis (fifth rotation operation), and rotation at an angle (−θ) about a rotation center line parallel to the Zm axis. The movement amount ΔXc in the Xc-axis direction and the movement amount in the Yc-axis direction in the image coordinate system ΣC of the tip point T of the tool 12 that is moved by the second to sixth rotation operations by performing the operation (sixth rotation operation). ΔYc is measured (calculated).

例えば、第3の回転動作の場合、図5(A)に示すように、コンピュータ16は、登録位置Pmsを通過する、メカニカルインターフェイス座標系ΣMのYm軸と平行な回転中心線Cym0を設定する。また、図5(B)に示すように、仮登録位置Pms1を通過する、回転中心線Cym0と平行な回転中心線Cym1を設定する。さらに、図5(C)に示すように、仮登録位置Pms2を通過する、回転中心線Cym1と平行な回転中心線Cym2を設定する。   For example, in the case of the third rotation operation, as shown in FIG. 5A, the computer 16 sets a rotation center line Cym0 that passes through the registration position Pms and is parallel to the Ym axis of the mechanical interface coordinate system ΣM. Further, as shown in FIG. 5B, a rotation center line Cym1 that passes through the temporary registration position Pms1 and is parallel to the rotation center line Cym0 is set. Further, as shown in FIG. 5C, a rotation center line Cym2 that passes through the temporary registration position Pms2 and is parallel to the rotation center line Cym1 is set.

次に、図5(A)〜(C)に示すように、コンピュータ16は、登録位置Pms、仮登録位置Pms1,Pms2それぞれについて、ロボット10を、それぞれに設定した回転中心線を中心として所定の角度θだけツール取付け面10gが回転動作するように制御する。   Next, as shown in FIGS. 5A to 5C, the computer 16 determines the robot 10 for each of the registration position Pms and the temporary registration positions Pms1 and Pms2 with a predetermined center of rotation center line. The tool mounting surface 10g is controlled to rotate by the angle θ.

なお、ここからは、ツール12の先端点Tの画像座標系ΣCにおける移動量ΔxcとΔycを、これらは回転中心(登録位置Pms,仮登録位置Pms1,Pms2)と回転動作(第1〜第6の回転動作)とによって変わる値であるので、数式1および数式2に示すように、登録位置パラメータPms(i)と、回転動作パラメータR(j)の関数として表記する。

Figure 2011128114
Figure 2011128114
From here, the movement amounts Δxc and Δyc of the tip point T of the tool 12 in the image coordinate system ΣC are the rotation center (registered position Pms, temporary registered positions Pms1, Pms2) and the rotation operation (first to sixth). Therefore, it is expressed as a function of the registration position parameter Pms (i) and the rotation operation parameter R (j) as shown in Equation 1 and Equation 2.
Figure 2011128114
Figure 2011128114

なお、数式1および数式2に示す登録位置パラメータPms(i)は、Pms(0)が登録位置Pms、Pms(1)が仮登録位置Pms1、Pms(2)が仮登録位置Pms2に対応している。回転動作パラメータR(j)は、R(1)が第1の回転動作、R(2)が第2の回転動作、R(3)が第3の回転動作、R(4)が第4の回転動作、R(5)が第5の回転動作、R(6)が第6の回転動作に対応している。   The registration position parameters Pms (i) shown in Expression 1 and Expression 2 correspond to Pms (0) corresponding to the registration position Pms, Pms (1) corresponding to the temporary registration position Pms1, and Pms (2) corresponding to the temporary registration position Pms2. Yes. The rotation operation parameter R (j) includes R (1) as the first rotation operation, R (2) as the second rotation operation, R (3) as the third rotation operation, and R (4) as the fourth rotation operation. The rotation operation, R (5) corresponds to the fifth rotation operation, and R (6) corresponds to the sixth rotation operation.

続いて、コンピュータ16は、ツール12の先端点Tの画像座標系ΣCにおける移動量の分散値を求める。具体的には、登録位置Pms、仮登録位置Pms1,Pms2それぞれについて、画像座標系ΣCのXc軸方向の移動量Δxc(Pms(i),R(j))の分散値Vxc(Pms(i))を求める(数式3)。また、Yc軸方向の移動量Δyc(Pms(i),R(j))の分散値Vyc(Pms(i))を求める(数式4)。

Figure 2011128114
Figure 2011128114
Subsequently, the computer 16 obtains a variance value of the movement amount of the tip point T of the tool 12 in the image coordinate system ΣC. Specifically, for each of the registration position Pms and the temporary registration positions Pms1 and Pms2, the variance value Vxc (Pms (i)) of the movement amount Δxc (Pms (i), R (j)) in the Xc axis direction of the image coordinate system ΣC. ) Is obtained (Formula 3). Further, a dispersion value Vyc (Pms (i)) of the movement amount Δyc (Pms (i), R (j)) in the Yc axis direction is obtained (Formula 4).
Figure 2011128114
Figure 2011128114

なお、数式1および数式2においてΔxcm(Pms(i))は、移動量Δxc(Pms(i),R(j))の平均である。また、Δycm(Pms(i))は、移動量Δyc(Pms(i),R(j))の平均である。   In Equations 1 and 2, Δxcm (Pms (i)) is an average of the movement amount Δxc (Pms (i), R (j)). Δycm (Pms (i)) is an average of the movement amount Δyc (Pms (i), R (j)).

分散値Vxc(Pms(i)),Vyc(Pms(i))を求めると、コンピュータ16は、登録位置Pms、仮登録位置Pms1,Pms2それぞれについて、実際位置Pmrとの整合の程度を示す整合評価値M(Pms(i))を求める。整合評価値M(Pms(i))は、数式5に示すように、分散値Vxc(Pms(i))とVyc(Pms(i))との和に定義されている。

Figure 2011128114
When the variance values Vxc (Pms (i)) and Vyc (Pms (i)) are obtained, the computer 16 performs the matching evaluation indicating the degree of matching with the actual position Pmr for each of the registered position Pms and the temporary registered positions Pms1 and Pms2. A value M (Pms (i)) is obtained. The matching evaluation value M (Pms (i)) is defined as the sum of the variance values Vxc (Pms (i)) and Vyc (Pms (i)) as shown in Equation 5.
Figure 2011128114

この整合評価値M(Pms(i))は、上述したようにツール12の先端点Tの画像座標系ΣCにおける移動量Δxc(Pms(i),R(j))の分散値Vxc(Pms(i))と、移動量Δyc(Pms(i),R(j))の分散値Vyc(Pms(i))の和であるため、この値が小さいほど、位置Pms(i)が実際位置Pmrに近いことを示す。   This matching evaluation value M (Pms (i)) is the variance value Vxc (Pms (Pms (Pms (i))) of the movement amount Δxc (Pms (i), R (j)) in the image coordinate system ΣC of the tip point T of the tool 12 as described above. i)) and the variance value Vyc (Pms (i)) of the movement amount Δyc (Pms (i), R (j)), the smaller this value, the more the position Pms (i) becomes the actual position Pmr. It is close to.

したがって、コンピュータ16は、実際位置Pmrに最も近いものとして、整合評価値M(Pms(i))が最も小さい位置Pms(i)を選出する。   Therefore, the computer 16 selects the position Pms (i) having the smallest matching evaluation value M (Pms (i)) as the closest to the actual position Pmr.

(第3のプロセス)
続いて、第3のプロセスとして、コンピュータ16は、第2のプロセスで選出した位置Pms(i)を、ロボット10の制御装置10hに登録する(制御装置10hに登録されているPmsがPms(i)にされる)。
(Third process)
Subsequently, as a third process, the computer 16 registers the position Pms (i) selected in the second process in the control device 10h of the robot 10 (Pms registered in the control device 10h is Pms (i). )).

(第4のプロセス)
さらに続いて、コンピュータ16は、第4のプロセスとして、第1のプロセスで仮登録位置Pms1,Pms2を設定するにあたって使用した設定方向を変更するおよび/または設定距離を漸減する、すなわち座標変更量Δxms,Δyms,Δzmsの少なくとも1つの値を漸減する。
(Fourth process)
Subsequently, as a fourth process, the computer 16 changes the setting direction used in setting the temporary registration positions Pms1, Pms2 in the first process and / or gradually decreases the setting distance, that is, the coordinate change amount Δxms. , Δyms, Δzms are gradually decreased.

例えば、座標変化量ΔymsとΔzmsとをゼロに維持した状態で、Δxmsを設定値(予め設定されている値)から、第3のプロセスが終了する度に漸減する。次に、座標変化量Δxmsがゼロになると、今度はΔxmsとΔzmsとをゼロに維持した状態で、Δymsを設定値から、第3のプロセスが終了する度に漸減する。続いて、座標変化量出Δymsがゼロになると、今度はΔxmsとΔymsとをゼロに維持した状態で、Δzmsを設定値から、第3のプロセスが終了する度にゼロになるまで漸減する。   For example, in a state where the coordinate change amounts Δyms and Δzms are maintained at zero, Δxms is gradually decreased from the set value (preset value) every time the third process is completed. Next, when the coordinate change amount Δxms becomes zero, Δyms is gradually decreased from the set value every time the third process is completed while Δxms and Δzms are maintained at zero. Subsequently, when the coordinate change output Δyms becomes zero, Δzms is gradually decreased from the set value to zero every time the third process is completed while maintaining Δxms and Δyms at zero.

そして、コンピュータ16は、これらの第1のプロセスから第4のプロセスを1サイクルとし、そのサイクルを繰り返し実行する。それを、ツール12の先端点Tの画像座標系ΣCにおけるXc軸方向の移動量ΔxcとYc軸方向の移動量Δycとが略ゼロ(例えばゼロに近い所定値、0.1)になるまで実行する。これにより、ロボット10の制御装置10hに登録されているツール12の先端点Tの登録位置Pmsは、サイクルを繰り返し実行する度に、実際位置Pmrに近づき(誤差が修正され)、最終的には略一致する。   Then, the computer 16 sets the first to fourth processes as one cycle, and repeatedly executes the cycle. This is executed until the movement amount Δxc in the Xc axis direction and the movement amount Δyc in the Yc axis direction in the image coordinate system ΣC of the tip point T of the tool 12 become substantially zero (for example, a predetermined value close to zero, 0.1). To do. As a result, the registration position Pms of the tip point T of the tool 12 registered in the control device 10h of the robot 10 approaches the actual position Pmr (error is corrected) every time the cycle is repeatedly executed, and finally, It almost agrees.

このことを、図6を参照しながら説明する。図6(A)に示すように、登録位置Pmsを挟んで仮登録位置Pms1,Pms2が設定される(第1のプロセス)。登録位置Pms、仮登録位置Pms1,Pms2の中、最も実際位置Pmrに近い(最も整合評価値Mが小さい)仮登録位置Pms1が選出され(第2のプロセス)、新しい登録位置としてロボット10の制御装置10hに登録される(第3のプロセス)。そして、座標変更量Δxms,Δyms,Δzmsの少なくとも1つの値を漸減し(第4のプロセス)、1つのサイクルが終了する。   This will be described with reference to FIG. As shown in FIG. 6A, temporary registration positions Pms1, Pms2 are set across the registration position Pms (first process). Among the registered positions Pms and temporary registered positions Pms1, Pms2, the temporary registered position Pms1 closest to the actual position Pmr (the smallest matching evaluation value M) is selected (second process), and the robot 10 is controlled as a new registered position. Registered in the apparatus 10h (third process). Then, at least one value of the coordinate change amounts Δxms, Δyms, Δzms is gradually decreased (fourth process), and one cycle is completed.

続いて、図6(B)に示すように、登録位置Pms(元は、図6(A)に示す仮登録位置Pms1)を挟んで仮登録位置Pms1,Pms2が設定される。このとき、仮登録位置Pms1,Pms2の登録位置Pmsからの距離(すなわち誤差)は、第4のプロセスの実行によって図6(A)のときに比べて短くなっている。また、仮登録位置Pms1,Pms2の登録位置Pmsからの方向も、第4のプロセスの実行によって図6(A)のときに比べて変更されている。登録位置Pms、仮登録位置Pms1,Pms2の中、最も実際位置Pmrに近い(最も整合評価値Mが小さい)仮登録位置Pms1が、新しい登録位置としてロボット10の制御装置10hに登録される。そして、座標変更量Δxms,Δyms,Δzmsの少なくとも1つの値を漸減し、1つのサイクルが終了する。   Subsequently, as shown in FIG. 6B, temporary registration positions Pms1 and Pms2 are set across the registration position Pms (originally the temporary registration position Pms1 shown in FIG. 6A). At this time, the distance (that is, error) of the temporary registration positions Pms1, Pms2 from the registration position Pms is shorter than that in FIG. 6A due to the execution of the fourth process. Further, the directions of the temporary registration positions Pms1, Pms2 from the registration position Pms are also changed compared to the case of FIG. 6A by the execution of the fourth process. Of the registered positions Pms and temporary registered positions Pms1, Pms2, the temporary registered position Pms1 that is closest to the actual position Pmr (the smallest matching evaluation value M) is registered in the control device 10h of the robot 10 as a new registered position. Then, at least one value of the coordinate change amounts Δxms, Δyms, Δzms is gradually decreased, and one cycle is completed.

このようなサイクルを繰り返すと、図6(A)と図6(D)とを比較してわかるように、登録位置Pmsは、1サイクル終了する度に、実際位置Pmrに向かって接近していく(登録位置Pmsと実際位置Pmrとの間の誤差が小さくなる)。このようにして、登録位置Pmsは、サイクルを繰り返し実行する度に、実際位置Pmrに近づき、最終的には略一致する(誤差が略ゼロになる)。これにより、ロボット10の制御装置10hにはツール12の先端点Tの正しい位置(座標)が登録される。   When such a cycle is repeated, as shown in a comparison between FIG. 6A and FIG. 6D, the registered position Pms approaches the actual position Pmr every time one cycle ends. (The error between the registered position Pms and the actual position Pmr is reduced). In this way, the registered position Pms approaches the actual position Pmr each time the cycle is repeatedly executed, and finally substantially coincides (the error becomes substantially zero). As a result, the correct position (coordinates) of the tip point T of the tool 12 is registered in the control device 10h of the robot 10.

なお、登録位置Pmsの整合評価値Mが最小である場合、第4のプロセスにおいて、座標変化量Δxms,Δyms,Δzmsの少なくとも1つを漸減するよりは、大きく減少させる方が好ましい。   When the alignment evaluation value M of the registration position Pms is the minimum, it is preferable to greatly reduce at least one of the coordinate change amounts Δxms, Δyms, and Δzms in the fourth process, rather than gradually decreasing it.

これは、登録位置Pmsの整合評価値Mが最小のときは、登録位置Pmsが、仮登録位置Pms1,Pms2に比べて、実際位置Pmrに近いことを示しているからである。したがって、この状態から登録位置Pmsを実際位置Pmrにより早く一致させるためには、座標変化量Δxms,Δyms,Δzmsの少なくとも1つを大きく減少させるのが好ましい。   This is because the registration position Pms is closer to the actual position Pmr than the temporary registration positions Pms1 and Pms2 when the matching evaluation value M of the registration position Pms is minimum. Therefore, in order to quickly match the registered position Pms with the actual position Pmr from this state, it is preferable to greatly reduce at least one of the coordinate change amounts Δxms, Δyms, Δzms.

ここからは、より具体的でツール12の先端点Tのメカニカルインターフェイス座標系ΣMにおける正しい位置(座標)の算出方法の流れについて説明する。すなわち、コンピュータ16の具体的な動作の流れについて説明する。説明は、図7および図8のフローチャートを参照しながら行う。   From here, the flow of the calculation method of the correct position (coordinates) in the mechanical interface coordinate system ΣM of the tip point T of the tool 12 will be described more specifically. That is, a specific operation flow of the computer 16 will be described. The description will be given with reference to the flowcharts of FIGS.

まず、図7に示すように、コンピュータ16は、ステップS100において、パラメータkをゼロにリセットする。   First, as shown in FIG. 7, the computer 16 resets the parameter k to zero in step S100.

次に、ステップS110において、コンピュータ16は、パラメータkをインクリメントする(1増分する)。   Next, in step S110, the computer 16 increments the parameter k (increments by 1).

続いて、ステップS120において、コンピュータ16は、ロボット10の制御装置10hからツール12の先端点Tの登録位置Pmsを取得する。   Subsequently, in step S <b> 120, the computer 16 acquires the registration position Pms of the tip point T of the tool 12 from the control device 10 h of the robot 10.

ステップS130において、コンピュータ16は、図9に示す位置変更量決定テーブルから位置変更量ΔPms(k)を取得する。位置変更量決定テーブルは、データとして予め作成されてコンピュータ16の記憶装置に記憶されている。なお、具体的には、図9に示すように、位置変更量ΔPms(k)に対応する、座標変更量Δxms,Δyms,Δzmsを取得する。   In step S130, the computer 16 acquires the position change amount ΔPms (k) from the position change amount determination table shown in FIG. The position change amount determination table is created in advance as data and stored in the storage device of the computer 16. Specifically, as shown in FIG. 9, coordinate change amounts Δxms, Δyms, Δzms corresponding to the position change amount ΔPms (k) are acquired.

ステップS140において、コンピュータ16は、ステップS120で取得した登録位置Pmsを位置Pms(0)と設定する。また、登録位置PmsからステップS130で取得した位置変更量ΔPms(k)だけ移動した位置を位置Pms(1)と設定する。さらに、登録位置Pmsから位置変更量(−ΔPms(k))だけ移動した位置を位置Pms(2)と設定する。   In step S140, the computer 16 sets the registered position Pms acquired in step S120 as a position Pms (0). Also, a position moved from the registered position Pms by the position change amount ΔPms (k) acquired in step S130 is set as a position Pms (1). Further, a position moved by a position change amount (−ΔPms (k)) from the registered position Pms is set as a position Pms (2).

ステップS150において、コンピュータ16は、位置Pms(0)、Pms(1)、Pms(2)の整合評価値M(Pms(0))、M(Pms(1))、M(Pms(2))を算出する。その算出の流れを、図8に示すフローチャートを参照しながら説明する。   In step S150, the computer 16 matches the position evaluation values M (Pms (0)), M (Pms (1)), and M (Pms (2)) at the positions Pms (0), Pms (1), and Pms (2). Is calculated. The calculation flow will be described with reference to the flowchart shown in FIG.

まず、図8に示すように、ステップS300において、コンピュータ16は、パラメータiを(−1)にする。   First, as shown in FIG. 8, in step S300, the computer 16 sets the parameter i to (−1).

次に、ステップS310において、コンピュータ16は、パラメータiをインクリメントする。   Next, in step S310, the computer 16 increments the parameter i.

続いて、ステップS320において、コンピュータ16は、ロボット10の制御装置10hに登録されているツール12の先端点Tの位置を、位置Pms(i)に登録変更する。   Subsequently, in step S320, the computer 16 changes the registration of the position of the tip point T of the tool 12 registered in the control device 10h of the robot 10 to the position Pms (i).

ステップS330において、コンピュータ16は、カメラ14にツール12の先端点Tを撮影させ、その撮影画像に基づいて、ツール12の先端点Tの画像座標系ΣCにおける座標(xc(0),yc(0))を特定する。   In step S330, the computer 16 causes the camera 14 to photograph the tip point T of the tool 12, and based on the photographed image, coordinates (xc (0), yc (0)) of the tip point T of the tool 12 in the image coordinate system ΣC. )) Is specified.

ステップS340において、コンピュータ16は、パラメータjをゼロにリセットする。   In step S340, the computer 16 resets the parameter j to zero.

ステップS350において、コンピュータ16は、パラメータjをインクリメントする。   In step S350, the computer 16 increments the parameter j.

ステップS360において、コンピュータ16は、ロボット10を制御することにより、現在制御装置10hに登録されている位置Pms(i)を中心とする回転動作R(j)でツール取付け面10gを回転動作させる。回転動作R(j)は、データとして予め作成されてコンピュータ16の記憶装置に記憶されている、図10に示すような回転動作決定テーブルに基づいて決定される。   In step S360, the computer 16 controls the robot 10 to rotate the tool mounting surface 10g with the rotation operation R (j) around the position Pms (i) currently registered in the control device 10h. The rotational motion R (j) is determined based on a rotational motion determination table as shown in FIG. 10 that is created in advance as data and stored in the storage device of the computer 16.

ステップS370において、コンピュータ16は、ステップS360で実行された回転動作R(j)後のツール12の先端点Tをカメラ14に撮影させ、その撮影画像に基づいて、ツール12の先端点Tの画像座標系ΣCにおける座標(xc(j),yc(j))を特定する。   In step S370, the computer 16 causes the camera 14 to photograph the tip point T of the tool 12 after the rotation operation R (j) executed in step S360, and based on the photographed image, an image of the tip point T of the tool 12 is obtained. The coordinates (xc (j), yc (j)) in the coordinate system ΣC are specified.

ステップS380において、コンピュータ16は、ステップS330で特定した、すなわちステップS360で回転動作R(j)を実行する前のツール先端点Tの座標(xc(0),yc(0))と、ステップS370で特定した、すなわち回転動作R(j)後のツール12の先端点Tの座標(xc(j),yc(j))とに基づいて、回転動作R(j)によって移動したツール12の先端点Tの画像座標系ΣCにおける移動量Δxc(Pms(i),R(j)),Δyc(Pms(i),R(j))を算出する。   In step S380, the computer 16 determines the coordinates (xc (0), yc (0)) of the tool tip point T identified in step S330, that is, before executing the rotation operation R (j) in step S360, and step S370. That is, the tip of the tool 12 moved by the rotation operation R (j) based on the coordinates (xc (j), yc (j)) of the tip point T of the tool 12 after the rotation operation R (j). The movement amounts Δxc (Pms (i), R (j)) and Δyc (Pms (i), R (j)) of the point T in the image coordinate system ΣC are calculated.

ステップS390において、コンピュータ16は、ロボット10を制御することにより、ツール取付け面10gを、回転動作R(j)の実行前の状態に戻す(ステップS360の実行前に戻す)。   In step S390, the computer 16 controls the robot 10 to return the tool mounting surface 10g to the state before execution of the rotation operation R (j) (return to before execution of step S360).

ステップS400において、コンピュータ16は、パラメータjが6であるか否かを判定する。すなわち、位置Pms(i)を中心とする6つの回転動作R(1)〜R(6)全ての実行が完了したか否かを判定する。パラメータjが6である場合は、ステップS410に進む。そうでない場合は、ステップS350に戻る。   In step S400, the computer 16 determines whether or not the parameter j is six. That is, it is determined whether or not the execution of all six rotation operations R (1) to R (6) centered on the position Pms (i) is completed. If the parameter j is 6, the process proceeds to step S410. Otherwise, the process returns to step S350.

ステップS410において、コンピュータ16は、ツール12の先端点Tの画像座標系ΣCにおける移動量Δxc(Pms(i),R(j))の平均値Δxcm(Pms(i))を算出する。   In step S410, the computer 16 calculates an average value Δxcm (Pms (i)) of the movement amount Δxc (Pms (i), R (j)) of the tip point T of the tool 12 in the image coordinate system ΣC.

ステップS420において、コンピュータ16は、ツール12の先端点Tの画像座標系ΣCにおける移動量Δyc(Pms(i),R(j))の平均値Δycm(Pms(i))を算出する。   In step S420, the computer 16 calculates the average value Δycm (Pms (i)) of the movement amount Δyc (Pms (i), R (j)) of the tip point T of the tool 12 in the image coordinate system ΣC.

ステップS430において、コンピュータ16は、ステップS410で算出した平均値Δxcm(Pms(i))を用いて、ツール12の先端点Tの画像座標系ΣCにおける移動量Δxc(Pms(i),R(j))の分散値Vxc(Pms(i))を算出する(数式3参照)。   In step S430, the computer 16 uses the average value Δxcm (Pms (i)) calculated in step S410 to move the movement amount Δxc (Pms (i), R (j) of the tip point T of the tool 12 in the image coordinate system ΣC. )) Variance value Vxc (Pms (i)) is calculated (see Equation 3).

ステップS440において、コンピュータ16は、ステップS420で算出した平均値Δycm(Pms(i))を用いて、ツール12の先端点Tの画像座標系ΣCにおける移動量Δyc(Pms(i),R(j))の分散値Vyc(Pms(i))を算出する(数式4参照)。   In step S440, the computer 16 uses the average value Δycm (Pms (i)) calculated in step S420 to move the amount Δyc (Pms (i), R (j) of the tip point T of the tool 12 in the image coordinate system ΣC. )) Variance value Vyc (Pms (i)) is calculated (see Equation 4).

ステップS450において、コンピュータ16は、ステップS430で算出した分散値Vxc(Pms(i))とステップS440で算出した分散値Vyc(Pms(i)とから、整合評価値M(Pms(i))を算出する(数式5参照)。   In step S450, the computer 16 calculates a matching evaluation value M (Pms (i)) from the variance value Vxc (Pms (i)) calculated in step S430 and the variance value Vyc (Pms (i) calculated in step S440. Calculate (see Formula 5).

ステップS460において、コンピュータ16は、パラメータiが2であるか否かを判定する。すなわち、位置Pms(0),Pms(1),Pms(2)それぞれについて整合評価値が算出されたか否かを判定する。パラメータiが2の場合は、整合評価値の算出を終了し、図7に示すステップS160に進む。そうでない場合はステップS310に戻り、整合評価値の算出を継続する。   In step S460, the computer 16 determines whether or not the parameter i is 2. That is, it is determined whether or not a consistency evaluation value has been calculated for each of the positions Pms (0), Pms (1), and Pms (2). If the parameter i is 2, the calculation of the consistency evaluation value is terminated, and the process proceeds to step S160 shown in FIG. Otherwise, the process returns to step S310 and the calculation of the consistency evaluation value is continued.

図7に戻り、ステップS160において、コンピュータ16は、ステップS150で算出した整合評価値M(Pms(0)),M(Pms(1)),M(Pms(2))の大小を比較する。整合評価値M(Pms(1))が最小であるときは、ステップS170に進む。そうでない場合は、ステップS180に進む。   Returning to FIG. 7, in step S160, the computer 16 compares the magnitudes of the matching evaluation values M (Pms (0)), M (Pms (1)), and M (Pms (2)) calculated in step S150. When the matching evaluation value M (Pms (1)) is the minimum, the process proceeds to step S170. Otherwise, the process proceeds to step S180.

ステップS170において、コンピュータ16は、ロボットの10の制御装置10hに登録されているツール12の先端点Tの位置を、位置Pms(1)に登録変更する。そして、ステップS200に進む。   In step S170, the computer 16 changes the registration of the position of the tip point T of the tool 12 registered in the control device 10h of the robot 10 to the position Pms (1). Then, the process proceeds to step S200.

一方、ステップS160で整合評価値M(Pms(1))が最小ではないと判定された場合、ステップS180において、コンピュータ16は、整合評価値M(Pms(2))が最小であるか否かを判定する。整合評価値M(Pms(2))が最小であるときは、ステップS190に進む。そうでない場合はステップS200に進む。   On the other hand, if it is determined in step S160 that the matching evaluation value M (Pms (1)) is not minimum, in step S180, the computer 16 determines whether or not the matching evaluation value M (Pms (2)) is minimum. Determine. When the matching evaluation value M (Pms (2)) is the minimum, the process proceeds to step S190. Otherwise, the process proceeds to step S200.

ステップS190において、コンピュータ16は、ロボットの10の制御装置10hに登録されているツール12の先端点Tの位置を、位置Pms(2)に登録変更する。そして、ステップS200に進む。   In step S190, the computer 16 changes the registration of the position of the tip point T of the tool 12 registered in the control device 10h of the robot 10 to the position Pms (2). Then, the process proceeds to step S200.

ステップS200において、パラメータkが48であるか否か、すなわち図9に示すテーブル上の座標変更量Δxms,Δyms,Δzmsの値全てを使用したか否かを確認する。パラメータkが48であるときは、ツール12の先端点Tの正しい位置の算出を終了する。そうでない場合は、ステップS110に戻る。   In step S200, it is confirmed whether or not the parameter k is 48, that is, whether or not all the values of the coordinate change amounts Δxms, Δyms, and Δzms on the table shown in FIG. 9 have been used. When the parameter k is 48, the calculation of the correct position of the tip point T of the tool 12 is terminated. Otherwise, the process returns to step S110.

本実施形態によれば、任意の位置を通過する任意の回転中心線を中心としてツール取付け面10gを回転動作させたときに、カメラ14の撮影画像上においてツール12の基準点Tが移動しなければ(移動量がゼロであれば)、任意の位置と実際のツールの基準点の位置とが一致しているということに基づいて、ツール取付け面10gに対する(メカニカルインターフェイス座標系ΣMにおける)ツール12の先端点Tの位置(座標)が計測(特定)される。このように、ツール12の基準点Tの撮影画像上における移動量(Δxc,Δyc)を用いるので、ロボット10に対するカメラ14の視線方向を特定することなく、ツール12の寸法値、具体的にはツール取付け面10gに対するツール12の先端点Tの位置(座標)を計測することができる。   According to the present embodiment, when the tool mounting surface 10g is rotated about an arbitrary rotation center line passing through an arbitrary position, the reference point T of the tool 12 must move on the captured image of the camera 14. If the amount of movement is zero, the tool 12 (in the mechanical interface coordinate system ΣM) with respect to the tool mounting surface 10g is based on the fact that the arbitrary position matches the position of the actual tool reference point. The position (coordinates) of the tip point T is measured (specified). Thus, since the movement amount (Δxc, Δyc) of the reference point T of the tool 12 on the captured image is used, the dimension value of the tool 12, specifically, without specifying the line-of-sight direction of the camera 14 with respect to the robot 10. The position (coordinates) of the tip point T of the tool 12 with respect to the tool mounting surface 10g can be measured.

(第2の実施形態)
本実施形態は、上述の第1の実施形態とほぼ同じであって、第1の実施形態の改良形態である。第1の実施形態の場合、ツール12の先端点Tの実際位置Pmrと登録位置Pmsとの間の距離が長くなればなるほど(誤差が大きいほど)、実際位置Pmrと登録位置Pmsとの一致に時間がかかる(実際位置Pmrの算出に時間がかかる)。本実施形態はこれに対処するものである。
(Second Embodiment)
This embodiment is substantially the same as the first embodiment described above, and is an improved form of the first embodiment. In the case of the first embodiment, the longer the distance between the actual position Pmr of the tip point T of the tool 12 and the registered position Pms (the greater the error), the more the actual position Pmr matches the registered position Pms. It takes time (it takes time to calculate the actual position Pmr). The present embodiment addresses this.

基本的には、本実施形態は、ロボット10の制御装置10hに登録されているツール12の先端点Tの登録位置Pmsを概ね実際位置Pmrに近い値にした後、第1の実施形態と同様に、実際位置Pmrの座標を求めるものである。それ以外は、第1の実施形態と同じである。したがって、ここからは、ロボット10の制御装置10hに登録されているツール12の先端点Tの登録位置Pmsを概ね実際位置Pmrに近い値にする方法について説明する。   Basically, the present embodiment is similar to the first embodiment after the registered position Pms of the tip point T of the tool 12 registered in the control device 10h of the robot 10 is set to a value substantially close to the actual position Pmr. In addition, the coordinates of the actual position Pmr are obtained. The rest is the same as in the first embodiment. Therefore, a method for setting the registered position Pms of the tip point T of the tool 12 registered in the control device 10h of the robot 10 to a value substantially close to the actual position Pmr will be described below.

ロボット10の制御装置10hに登録されているツール12の先端点Tの登録位置Pmsを概ね実際位置Pmrに近い値にするために、ベクトルの線形写像を利用する。   In order to set the registered position Pms of the tip point T of the tool 12 registered in the control device 10h of the robot 10 to a value substantially close to the actual position Pmr, a vector linear mapping is used.

ベクトルの線形写像を利用する方法を概念的に説明する。   A method of using a linear mapping of vectors will be conceptually described.

まず図11に示すように、メカニカルインターフェイス座標系ΣMのZm軸と直交して、登録位置Pmsを含む仮想平面Pvを考える。また、仮想平面Pv上の実際位置Pmrの投影位置をPmr’(以下、「投影実際位置Pmr’」と称する)とする。   First, as shown in FIG. 11, consider a virtual plane Pv that includes a registered position Pms perpendicular to the Zm axis of the mechanical interface coordinate system ΣM. Further, the projection position of the actual position Pmr on the virtual plane Pv is assumed to be Pmr ′ (hereinafter referred to as “projection actual position Pmr ′”).

メカニカルインターフェイス座標系ΣMのXm軸方向に距離Lだけツール取付け面10gを平行移動させたときの、投影実際位置Pmr’の仮想平面Pv上における移動ベクトルをUとし、ツール12の先端点Tの画像座標系ΣCにおける移動ベクトルをUc(請求の範囲に記載の「第1の移動ベクトル」に対応)とする。   An image of the tip point T of the tool 12 with U as the movement vector on the virtual plane Pv of the actual projection position Pmr 'when the tool mounting surface 10g is translated by a distance L in the Xm-axis direction of the mechanical interface coordinate system ΣM. Let the movement vector in the coordinate system ΣC be Uc (corresponding to the “first movement vector” recited in the claims).

また、Ym軸方向に距離Lだけツール取付け面10gを平行移動させたときの、投影実際位置Pmr’の仮想平面Pv上における移動ベクトルをVとし、ツール12の先端点Tの画像座標系ΣCにおける移動ベクトルVc(請求の範囲に記載の「第2の移動ベクトル」に対応)とする。   In addition, the movement vector on the virtual plane Pv of the projection actual position Pmr ′ when the tool mounting surface 10g is translated by the distance L in the Ym-axis direction is V, and the image coordinate system ΣC of the tip point T of the tool 12 in the image coordinate system ΣC. The movement vector Vc (corresponding to the “second movement vector” recited in the claims).

さらに、登録位置Pmsを通過してZm軸と平行な回転中心線を中心として角度αだけツール取付け面10gを回転させたときの、投影実際位置Pmr’の仮想平面Pv上の移動ベクトルをWとし、ツール12の先端点Tの画像座標系ΣCにおける移動ベクトルをWc(請求の範囲に記載の「第3の移動ベクトル」に対応)とする。   Further, W is a movement vector on the virtual plane Pv of the actual projection position Pmr ′ when the tool mounting surface 10g is rotated by an angle α about the rotation center line parallel to the Zm axis through the registered position Pms. The movement vector of the tip point T of the tool 12 in the image coordinate system ΣC is Wc (corresponding to the “third movement vector” described in the claims).

さらにまた、登録位置Pmsを始点とし、投影実際位置Pmr’を終点とするベクトルRを定義する。   Furthermore, a vector R having a registered position Pms as a start point and a projection actual position Pmr 'as an end point is defined.

メカニカルインターフェイス座標系ΣMにおける、登録位置Pmsと実際位置Pmrとの間のXm軸方向の誤差をxme、Ym軸方向の誤差をymeとすると、仮想平面PvがZm軸と直交していることから、仮想平面Pv上のベクトルRは、数式6に示すように表現できる。

Figure 2011128114
In the mechanical interface coordinate system ΣM, if the error in the Xm-axis direction between the registered position Pms and the actual position Pmr is xme, and the error in the Ym-axis direction is yme, the virtual plane Pv is orthogonal to the Zm axis. The vector R on the virtual plane Pv can be expressed as shown in Equation 6.
Figure 2011128114

また、図11にも示すように、ベクトルUとベクトルVは直交するので、ベクトルWは、数式7に示すように、g倍したベクトルUとh倍したベクトルVの和とみなすことができる。

Figure 2011128114
Also, as shown in FIG. 11, since the vector U and the vector V are orthogonal, the vector W can be regarded as the sum of the vector U multiplied by g and the vector V multiplied by h, as shown in Equation 7.
Figure 2011128114

さらに、角度αがゼロに近ければ(α≒0)、数式8に示すように、ベクトルWの大きさは、ベクトルRの大きさのsinα倍と近似できる。

Figure 2011128114
Furthermore, if the angle α is close to zero (α≈0), the magnitude of the vector W can be approximated as sin α times the magnitude of the vector R, as shown in Equation 8.
Figure 2011128114

さらにまた、角度αがゼロに近ければ(α≒0)、ベクトルRとベクトルWは直交しているとみなすことができる。すなわち、ベクトルWはベクトルRを90度回転させたものとみなすことができる。したがって、このことと数式8を考慮すると、ベクトルWは、ベクトルRをsinα倍して90度(π)回転させたものとみなすことができ、数式9に示すように表現できる。

Figure 2011128114
Furthermore, if the angle α is close to zero (α≈0), the vector R and the vector W can be regarded as being orthogonal. That is, the vector W can be regarded as a vector R rotated 90 degrees. Therefore, considering this and Equation 8, the vector W can be regarded as a vector R multiplied by sin α and rotated by 90 degrees (π), and can be expressed as shown in Equation 9.
Figure 2011128114

数式7および数式9より、数式10および数式11が成り立つ。

Figure 2011128114
Figure 2011128114
From Equation 7 and Equation 9, Equation 10 and Equation 11 hold.
Figure 2011128114
Figure 2011128114

数式10および11の中、パラメータLとαは、既知である(「L」はツール取付け面10gをXm軸方向またはYm軸方向に平行移動させたときの移動量であって、「α」はZm軸を中心として回転させたときの回転量である)。したがって、登録位置Pmsと実際位置Pmrとの誤差xme,ymeを求めるためには、パラメータg,hの値を求めればよい。   In Equations 10 and 11, the parameters L and α are known (“L” is the amount of movement when the tool mounting surface 10 g is translated in the Xm-axis direction or Ym-axis direction, and “α” is This is the amount of rotation when rotating around the Zm axis). Accordingly, in order to obtain the errors xme and yme between the registered position Pms and the actual position Pmr, the values of the parameters g and h may be obtained.

このパラメータg,hの値を求めるために、ベクトルの線形写像を利用する。   In order to obtain the values of the parameters g and h, a linear mapping of vectors is used.

図11に示すように、撮影画像上のベクトルUc,Vc,Wcは、仮想平面Pv上のベクトルU,V,Wの線形写像であるので、数式12〜14の関係が成り立つ。行列Aは正方行列である。

Figure 2011128114
Figure 2011128114
Figure 2011128114
As shown in FIG. 11, the vectors Uc, Vc, and Wc on the photographed image are linear mappings of the vectors U, V, and W on the virtual plane Pv, and thus the relationships of Expressions 12 to 14 are established. The matrix A is a square matrix.
Figure 2011128114
Figure 2011128114
Figure 2011128114

行列Aが正方行列であることから、ベクトルWcは、数式15に示すように、ベクトルUc,Vcで示すことができる。

Figure 2011128114
Since the matrix A is a square matrix, the vector Wc can be represented by vectors Uc and Vc as shown in Equation 15.
Figure 2011128114

ここで、ベクトルWcのXc成分をWxc、Yc成分をWycとする。また、ベクトルUcのXc成分をUxc、Yc成分をUycとする。さらに、ベクトルVcのXc成分をVxc、Yc成分をVycとする。すると、数式15は、数式16に示すように表現できる。

Figure 2011128114
Here, the Xc component of the vector Wc is Wxc and the Yc component is Wyc. The Xc component of the vector Uc is Uxc and the Yc component is Uyc. Further, the Xc component of the vector Vc is Vxc, and the Yc component is Vyc. Then, Equation 15 can be expressed as shown in Equation 16.
Figure 2011128114

数式16を式変形すると、数式17が得られる。

Figure 2011128114
When Formula 16 is transformed, Formula 17 is obtained.
Figure 2011128114

この数式17から、パラメータg,hの値を求めることができる。そして、求めたパラメータg,hの値を数式10,11に代入すれば、メカニカルインターフェイス座標系における登録位置Pmsと実際位置Pmrの誤差xme,ymeを求めることができる。   From Equation 17, the values of the parameters g and h can be obtained. Then, by substituting the values of the obtained parameters g and h into Expressions 10 and 11, errors xme and yme between the registered position Pms and the actual position Pmr in the mechanical interface coordinate system can be obtained.

なお、ベクトルUcのXc成分UxcとYc成分Uycは、ツール取付け面10gをメカニカルインターフェイス座標系ΣMのXm軸方向にLだけ平行移動したときのツール12の先端点Tの画像座標系ΣCにおけるXc軸方向、Yc軸方向の移動量であるので、該平行移動の前後においてカメラ14によって撮影された撮影画像に基づいて算出することができる。   The Xc component Uxc and Yc component Uyc of the vector Uc are the Xc axis in the image coordinate system ΣC of the tip point T of the tool 12 when the tool mounting surface 10g is translated by L in the Xm axis direction of the mechanical interface coordinate system ΣM. Direction and the amount of movement in the Yc-axis direction, and can be calculated based on the captured images captured by the camera 14 before and after the parallel movement.

同様に、ベクトルVcのXc成分VxcとYc成分Vycは、ツール取付け面10gをYm軸方向にLだけ平行移動したときのツール12の先端点Tの画像座標系ΣCにおけるXc軸方向、Yc軸方向の移動量であるので、該平行移動の前後においてカメラ14によって撮影された撮影画像に基づいて算出することができる。   Similarly, the Xc component Vxc and the Yc component Vyc of the vector Vc are the Xc axis direction and the Yc axis direction in the image coordinate system ΣC of the tip point T of the tool 12 when the tool mounting surface 10g is translated by L in the Ym axis direction. Therefore, it can be calculated based on the captured images captured by the camera 14 before and after the parallel movement.

さらに同様に、ベクトルWcのXc成分WxcとYc成分Wycは、ツール取付け面10gをZm軸を中心として角度αだけ回転させたときのツール12の先端点Tの画像座標系ΣCにおけるXc軸方向、Yc軸方向の移動量であるので、該回転の前後においてカメラ14によって撮影された撮影画像に基づいて算出することができる。   Similarly, the Xc component Wxc and the Yc component Wyc of the vector Wc are the Xc axis direction in the image coordinate system ΣC of the tip point T of the tool 12 when the tool mounting surface 10g is rotated about the Zm axis by an angle α, Since it is the amount of movement in the Yc axis direction, it can be calculated based on the captured images captured by the camera 14 before and after the rotation.

まとめると、メカニカルインターフェイス座標系ΣMのXm軸方向に距離Lだけツール取付け面10gを平行移動させることにより、ツール12の先端点Tの画像座標系ΣCにおける移動ベクトルUcを発生させる。また、Ym軸方向に距離Lだけツール取付け面10gを平行移動させることにより、ツール12の先端点Tの画像座標系ΣCにおける移動ベクトルVcを発生させる。さらに、登録位置Pmsを通過してZm軸と平行な回転中心線を中心として角度αだけツール取付け面10gを回転させることにより、ツール12の先端点Tの画像座標系ΣCにおける移動ベクトルWcを発生させる。この3つの移動ベクトルUc,Vc,Wcに基づいて、メカニカルインターフェイス座標系ΣMにおける登録位置Pmsと実際位置Pmrの誤差xme,ymeを求める。   In summary, the translation vector Uc in the image coordinate system ΣC of the tip point T of the tool 12 is generated by translating the tool mounting surface 10g by the distance L in the Xm-axis direction of the mechanical interface coordinate system ΣM. Further, by moving the tool mounting surface 10g in parallel in the Ym-axis direction by the distance L, a movement vector Vc in the image coordinate system ΣC of the tip point T of the tool 12 is generated. Further, the movement vector Wc in the image coordinate system ΣC of the tip point T of the tool 12 is generated by rotating the tool mounting surface 10g by an angle α around the rotation center line parallel to the Zm axis through the registered position Pms. Let Based on these three movement vectors Uc, Vc and Wc, errors xme and yme between the registered position Pms and the actual position Pmr in the mechanical interface coordinate system ΣM are obtained.

同様に、登録位置Pmsを通過してXm軸と平行な回転中心線を中心として角度αだけツール取付け面10gを回転させることにより、ツール12の先端点Tの画像座標系ΣCにおける移動ベクトル(請求の範囲に記載の「第4の移動ベクトル」に対応)を発生させる。また、Ym軸方向に距離Lだけツール取付け面10gを平行移動させることにより、ツール12の先端点Tの画像座標系ΣCにおける移動ベクトル(請求の範囲に記載の「第5の移動ベクトル」に対応)を発生させる。さらに、Zm軸方向に距離Lだけツール取付け面10gを平行移動させることにより、ツール12の先端点Tの画像座標系ΣCにおける移動ベクトル(請求の範囲に記載の「第6の移動ベクトル」に対応)を発生させる。この3つの移動ベクトルに基づいて、メカニカルインターフェイス座標系ΣMにおける登録位置Pmsと実際位置Pmrの誤差yme,zme(登録位置Pmsと実際位置Pmrのメカニカルインターフェイス座標系ΣMにおけるZm軸方向の誤差)を求める。   Similarly, by rotating the tool attachment surface 10g by an angle α around the rotation center line parallel to the Xm axis through the registered position Pms, a movement vector (invoice) in the image coordinate system ΣC of the tip point T of the tool 12 (Corresponding to the “fourth movement vector” described in the above). Further, by translating the tool mounting surface 10g by a distance L in the Ym-axis direction, the movement vector (corresponding to the “fifth movement vector” described in the claims) of the tip point T of the tool 12 in the image coordinate system ΣC. ). Further, by moving the tool mounting surface 10g in the Zm-axis direction by a distance L, the movement vector in the image coordinate system ΣC of the tip point T of the tool 12 (corresponding to the “sixth movement vector” recited in the claims) ). Based on these three movement vectors, errors yme and zme between the registered position Pms and the actual position Pmr in the mechanical interface coordinate system ΣM (the errors in the Zm axis direction between the registered position Pms and the actual position Pmr in the mechanical interface coordinate system ΣM) are obtained. .

さらに同様に、Xm軸方向に距離Lだけツール取付け面10gを平行移動させることにより、ツール12の先端点Tの画像座標系ΣCにおける移動ベクトル(請求の範囲に記載の「第7の移動ベクトル」に対応)を発生させる。また、登録位置Pmsを通過してYm軸と平行な回転中心線を中心として角度αだけツール取付け面10gを回転させることにより、ツール12の先端点Tの画像座標系ΣCにおける移動ベクトル(請求の範囲に記載の「第8の移動ベクトル」に対応)を発生させる。さらに、Zm軸方向に距離Lだけツール取付け面10gを平行移動させることにより、ツール12の先端点Tの画像座標系ΣCにおける移動ベクトル(請求の範囲に記載の「第9の移動ベクトル」に対応)を発生させる。この3つの移動ベクトルに基づいて、メカニカルインターフェイス座標系ΣMにおける登録位置Pmsと実際位置Pmrの誤差xme,zmeを求める。   Similarly, by moving the tool mounting surface 10g in parallel in the Xm-axis direction by a distance L, a movement vector in the image coordinate system ΣC of the tip point T of the tool 12 (“seventh movement vector” described in the claims) To respond). Further, by rotating the tool mounting surface 10g by an angle α around the rotation center line parallel to the Ym axis through the registered position Pms, the movement vector (in claim) of the tip point T of the tool 12 in the image coordinate system ΣC. Corresponding to the “eighth movement vector” described in the range. Further, by moving the tool mounting surface 10g in the Zm-axis direction by a distance L, the movement vector in the image coordinate system ΣC of the tip point T of the tool 12 (corresponding to the “ninth movement vector” recited in the claims) ). Based on these three movement vectors, errors xme and zme between the registered position Pms and the actual position Pmr in the mechanical interface coordinate system ΣM are obtained.

撮影画像上におけるツール12の先端点Tの9つの移動ベクトルに基づくと、上述するように、Xm軸方向の誤差xme、Ym軸方向の誤差yme、Zm軸方向の誤差zmeそれぞれについて、2つずつ値が算出される。この場合、2つの値から、真の誤差の値に近い方を選ぶ。具体的には、それぞれの値を求める際に使用した数式17内の右辺の正方行列

Figure 2011128114
の行列式D(数式18)の絶対値が大きい方を選択する。これは、この行列式Dが大きい方が高精度にパラメータg,hの値を求めることができるからである。
Figure 2011128114
Based on the nine movement vectors of the tip point T of the tool 12 on the photographed image, as described above, two each for the error xme in the Xm-axis direction, the error yme in the Ym-axis direction, and the error zme in the Zm-axis direction. A value is calculated. In this case, the one closer to the true error value is selected from the two values. Specifically, a square matrix on the right side in Equation 17 used to calculate each value.
Figure 2011128114
The one with the larger absolute value of the determinant D (formula 18) is selected. This is because the values of the parameters g and h can be obtained with higher accuracy when the determinant D is larger.
Figure 2011128114

行列式Dに基づく選択により、Xm軸方向の誤差xme、Ym軸方向の誤差yme、Zm軸方向の誤差zmeそれぞれについて1つずつ値が決定されると、その値に基づいて、ロボット10の制御装置10hに登録されている登録位置Pmsが、実際位置Pmrに概ね近い値に修正される。   When one value is determined for each of the error xme in the Xm-axis direction, the error yme in the Ym-axis direction, and the error zme in the Zm-axis direction by selection based on the determinant D, the control of the robot 10 is performed based on the values. The registered position Pms registered in the device 10h is corrected to a value substantially close to the actual position Pmr.

なお、このようにベクトルの線形写像を利用すれば、メカニカルインターフェイス座標系ΣMにおける登録位置Pmsと実際位置Pmrの誤差xme,yme,zmeを求めることができる。しかしながら、その求めた誤差xme,yme,zmeの値は、上述したように角度αをゼロと近似していることなどから、その値は正確な誤差の値ではなく、概ねの値である。   If the vector linear mapping is used in this way, errors xme, yme, zme between the registered position Pms and the actual position Pmr in the mechanical interface coordinate system ΣM can be obtained. However, the values of the obtained errors xme, yme, and zme are approximate values rather than accurate error values because the angle α is approximated to zero as described above.

本実施形態によれば、ロボット10の制御装置10hに登録されているツール12の先端点Tの登録位置Pmsを、実際位置Pmrに概ね近い値にした後、第1の実施形態と同様に、ツール12の寸法値、具体的にはツール取付け面10gに対するツール12の先端点Tの位置(座標)を計測(算出)する。したがって、ツール12の先端点Tの実際位置Pmrと登録位置Pmsとの間の距離が長い場合(誤差が大きい場合)、登録位置Pmsが実際位置Pmrに一致するまでの時間を短縮することができる(実際位置Pmrの特定時間が短縮される)。   According to the present embodiment, after the registration position Pms of the tip point T of the tool 12 registered in the control device 10h of the robot 10 is set to a value substantially close to the actual position Pmr, the same as in the first embodiment, The dimension value of the tool 12, specifically, the position (coordinates) of the tip point T of the tool 12 with respect to the tool mounting surface 10g is measured (calculated). Therefore, when the distance between the actual position Pmr of the tip point T of the tool 12 and the registered position Pms is long (when the error is large), the time until the registered position Pms matches the actual position Pmr can be shortened. (The specific time of the actual position Pmr is shortened).

以上、上述の実施形態を挙げて本発明を説明したが、本発明はこれに限定されない。   Although the present invention has been described with reference to the above-described embodiment, the present invention is not limited to this.

例えば、上述の実施形態の場合、第2のプロセスにおいて、登録位置Pms、仮登録位置Pms1,Pms2それぞれの整合評価値Mを算出するとき、登録位置Pms、仮登録位置Pms1,Pms2それぞれについて、図10のテーブルに示すようなツール取付け面10gに対する6つの回転動作が実行される。しかしながら、本発明は、整合評価値Mを算出するにあたり、ツール取付け面10gに対して実行する回転動作は6つに限らない。   For example, in the case of the above-described embodiment, when the alignment evaluation values M of the registration position Pms and the temporary registration positions Pms1 and Pms2 are calculated in the second process, the registration positions Pms and the temporary registration positions Pms1 and Pms2 Six rotation operations with respect to the tool mounting surface 10g as shown in Table 10 are performed. However, according to the present invention, when calculating the alignment evaluation value M, the number of rotation operations performed on the tool mounting surface 10g is not limited to six.

高い信頼性を備える整合評価値Mを算出するためには、登録位置Pms、仮登録位置Pms1,Pms2それぞれについて、ツール取付け面10gに対して異なる複数の回転動作を実行するのが好ましい(それにより、整合評価値Mの算出に必要な、ツール12の先端点Tの撮影画像上における移動量のデータを多く取得することができる)。しかし、その分、ツール取付け面10gに対するツール12の先端点Tの実際位置の計測(特定)に時間がかかる。   In order to calculate the alignment evaluation value M with high reliability, it is preferable to execute a plurality of different rotational operations on the tool mounting surface 10g for each of the registration position Pms and the temporary registration positions Pms1 and Pms2 (thereby A large amount of movement amount data on the captured image of the tip point T of the tool 12 necessary for calculating the alignment evaluation value M can be acquired). However, it takes time to measure (specify) the actual position of the tip point T of the tool 12 with respect to the tool mounting surface 10g.

ツール12の先端点Tの実際位置の特定にかかる時間を短縮したい場合、登録位置Pms、仮登録位置Pms1,Pms2それぞれについて、ツール取付け面10gに対して実行する回転動作を3つにしてもよい。例えば、メカニカルインターフェイス座標系ΣMのXm軸と平行な回転中心線を中心として角度θ回転する回転動作、Ym軸と平行な回転中心線を中心として角度θ回転する回転動作、およびZm軸と平行な回転中心線を中心として角度θ回転する回転動作の3つとしてもよい。このことに関して言えば、原理的には、整合評価値Mは、1つの回転中心線を中心として一方側に角度θ回転する回転動作をツール取付け面10gに対して実行すれば、算出することは可能である。   When it is desired to shorten the time required for specifying the actual position of the tip point T of the tool 12, three rotation operations may be performed on the tool mounting surface 10g for each of the registration position Pms and the temporary registration positions Pms1 and Pms2. . For example, a rotation operation that rotates an angle θ around a rotation center line parallel to the Xm axis of the mechanical interface coordinate system ΣM, a rotation operation that rotates an angle θ around a rotation center line parallel to the Ym axis, and a rotation parallel to the Zm axis Three rotation operations that rotate the angle θ about the rotation center line may be employed. In this regard, in principle, the alignment evaluation value M can be calculated by performing a rotation operation on the tool mounting surface 10g that rotates the angle θ toward one side about one rotation center line. Is possible.

また、上述の実施形態の場合、第2のプロセスにおいて、整合評価値Mを算出するにあたり、ツール取付け面10gを回転させるときの回転中心線は、図5に示すように登録位置Pms,仮登録位置Pms1,Pms2それぞれを通過する、メカニカルインターフェイス座標系ΣMのXm軸、Ym軸、Zm軸と平行な回転中心線である。しかし、仮登録位置は2つに限らない。   In the case of the above-described embodiment, in calculating the alignment evaluation value M in the second process, the rotation center line when rotating the tool attachment surface 10g is the registration position Pms, temporary registration as shown in FIG. This is a rotation center line parallel to the Xm axis, Ym axis, and Zm axis of the mechanical interface coordinate system ΣM that passes through each of the positions Pms1 and Pms2. However, the temporary registration position is not limited to two.

本発明において、整合評価値Mを算出するにあたり、ツール取付け面10gを回転させるときの回転中心線は、原理的には、ツール取付け面10gに対する予め設定された設定位置(座標が既知の位置であって、例えば、上述の登録位置Pms)および該設定位置に対して所定の位置関係の少なくとも1つの位置それぞれを通過する任意の回転中心線である。   In the present invention, in calculating the alignment evaluation value M, the rotation center line when rotating the tool mounting surface 10g is, in principle, a preset set position with respect to the tool mounting surface 10g (coordinate is a known position). Thus, for example, the above-mentioned registered position Pms) and an arbitrary rotation center line passing through at least one position having a predetermined positional relationship with respect to the set position.

すなわち、広義的には、本発明は、以下に示すようなものと言える。ツール取付け面10gに対する予め設定された設定位置および該設定位置に対して所定の位置関係の少なくとも1つの位置それぞれについて、当該位置を通過する所定方向に延びる回転中心線を中心として所定角度回転させる(工程A)。また、設定位置および上記少なくとも1つの位置それぞれについて、工程Aの実行によって移動した実際のツール基準点のカメラ撮影画像上における移動量を計測する(工程B)。そして、工程Bで計測された移動量が最小の位置を新たな設定位置とし(工程C)、上記所定の位置関係を、設定位置に至る方向が変更されるようにおよび/または設定方向までの距離が漸減するように変更する(工程D)。そして、これらの工程A〜Dを、工程Bで計測される移動量が略ゼロになる位置が特定されるまで繰り返し実行し、特定された位置をツール取付け部に対するツール基準点の位置とする。   That is, in a broad sense, the present invention can be said to be as follows. Each of the preset setting position with respect to the tool mounting surface 10g and at least one position having a predetermined positional relationship with respect to the setting position is rotated by a predetermined angle around a rotation center line extending in a predetermined direction passing through the position ( Step A). Further, for each of the set position and the at least one position, the amount of movement of the actual tool reference point moved by the execution of step A on the camera-captured image is measured (step B). Then, the position where the movement amount measured in the process B is the minimum is set as a new setting position (process C), and the predetermined positional relationship is changed so that the direction to the setting position is changed and / or up to the setting direction. Change so that the distance gradually decreases (step D). Then, these steps A to D are repeatedly executed until the position where the movement amount measured in the step B is substantially zero is specified, and the specified position is set as the position of the tool reference point with respect to the tool mounting portion.

さらに言えば、整合評価値Mを算出しなくても、以下のような方法で、ツール取付け面10gに対するツール12の先端点Tの実際位置の計測(特定)は可能である。   Furthermore, even if the alignment evaluation value M is not calculated, the actual position of the tip point T of the tool 12 with respect to the tool mounting surface 10g can be measured (specified) by the following method.

例えば、カメラ14が実際のツール12の基準点Tを撮影した状態で、ツール取付け面10gに対する任意の位置を通過する任意の回転中心線を中心として該ツール取付け面10gが回転するようなロボット10の動作を繰り返し実行する(工程A’)。また、ツール取付け面10gが回転する度にその回転によって移動したツール12の実際の基準点Tの撮影画像上における移動量を計測する(工程B’)。さらに、ツール取付け面10gの回転が終了する度に任意の位置および/または任意の回転中心線を変更する(工程C’)。これらの工程A’〜C’により、ツール取付け面10gの回転によって移動するツール12の実際の基準点Tの撮影画像上における移動量が略ゼロになる任意の位置を特定し、特定した任意の位置をツール取付け面10gに対するツール12の基準点Tの位置とする。   For example, the robot 10 in which the tool attachment surface 10g rotates about an arbitrary rotation center line passing through an arbitrary position with respect to the tool attachment surface 10g in a state where the camera 14 has photographed the reference point T of the actual tool 12. These operations are repeatedly executed (step A ′). Further, every time the tool mounting surface 10g rotates, the amount of movement of the actual reference point T of the tool 12 moved by the rotation on the photographed image is measured (step B '). Further, every time the rotation of the tool mounting surface 10g is completed, an arbitrary position and / or an arbitrary rotation center line is changed (step C '). By these steps A ′ to C ′, an arbitrary position where the movement amount of the actual reference point T of the tool 12 moving by the rotation of the tool mounting surface 10g on the photographed image becomes substantially zero is specified, and the specified arbitrary The position is the position of the reference point T of the tool 12 with respect to the tool mounting surface 10g.

これは、本発明に係る最も原理的な、ツール取付け面10gに対するツール12の先端点Tの実際位置の計測(特定)方法である。しかしながら、上述するように任意の位置を通過する任意の回転中心線の場合、回転中心線とその回転中心線が通過する位置とをランダムに決定すれば、ツール取付け面10gに対するツール12の基準点Tの実際位置の特定に極端に時間がかかる可能性がある。   This is the most basic method for measuring (specifying) the actual position of the tip T of the tool 12 with respect to the tool mounting surface 10g according to the present invention. However, in the case of an arbitrary rotation center line passing through an arbitrary position as described above, if the rotation center line and the position through which the rotation center line passes are determined randomly, the reference point of the tool 12 with respect to the tool mounting surface 10g. It may take an extremely long time to identify the actual position of T.

この対処として、上述の実施形態は、回転中心線を、メカニカルインターフェイス座標系ΣMのXm軸、Ym軸、Zm軸に平行な回転中心線に限定している。また、回転中心線が通過する位置を、登録位置Pmsと、該登録位置Pmsから設定方向に設定距離離れた仮登録位置Pms1と,該登録位置Pmsから設定方向の反対方向に設定距離離れた仮登録位置Pms2とに限定している。言い換えると、上述の実施形態は、任意の位置を通過する任意の回転中心線の決定方法を規定していると言える。   As a countermeasure, the above-described embodiment limits the rotation center line to the rotation center lines parallel to the Xm axis, the Ym axis, and the Zm axis of the mechanical interface coordinate system ΣM. Further, the position through which the rotation center line passes is the registration position Pms, the temporary registration position Pms1 that is a set distance away from the registration position Pms in the setting direction, and the temporary position that is a set distance away from the registration position Pms in the opposite direction of the setting direction. The registration position is limited to Pms2. In other words, it can be said that the above-described embodiment defines a method for determining an arbitrary rotation center line passing through an arbitrary position.

10 ロボット
10g ツール取付け部(ツール取付け面)
12 ツール
14 カメラ
T ツールの基準点(先端点)
10 Robot 10g Tool mounting part (Tool mounting surface)
12 Tool 14 Camera T Tool reference point (tip point)

Claims (6)

ツールを取付けるツール取付け部を備えるロボットの制御装置に登録される、ツール取付け部に対するツールの基準点の位置を計測するツール寸法の計測方法であって、
カメラが実際のツール基準点を撮影した状態で、ツール取付け部に対する任意の位置を通過する任意の回転中心線を中心として該ツール取付け部が回転するようなロボットの動作を繰り返し実行する第1の工程と、
ツール取付け部が回転する度にその回転によって移動した実際のツール基準点のカメラの撮影画像上における移動量を計測する第2の工程と、
ツール取付け部の回転が終了する度に上記任意の位置および/または上記任意の回転中心線を変更する第3の工程とを繰り返し実行することにより、
ツール取付け部の回転によって移動する実際のツール基準点のカメラ撮影画像上における移動量が略ゼロになる任意の位置を特定し、
特定した任意の位置をツール取付け部に対するツール基準点の位置とすることを特徴とするツール寸法の計測方法。
A tool dimension measuring method for measuring a position of a reference point of a tool with respect to a tool mounting portion, which is registered in a robot control device having a tool mounting portion for mounting a tool,
In a state where the camera has photographed an actual tool reference point, a robot operation is repeatedly executed such that the tool attachment portion rotates about an arbitrary rotation center line passing through an arbitrary position with respect to the tool attachment portion. Process,
A second step of measuring the amount of movement of the actual tool reference point moved by the rotation on the captured image of the camera each time the tool mounting portion rotates;
By repeatedly executing the third step of changing the arbitrary position and / or the arbitrary rotation center line every time the rotation of the tool attachment portion is completed,
Specify an arbitrary position where the movement amount on the camera image of the actual tool reference point that moves due to the rotation of the tool mounting part becomes substantially zero,
A method for measuring a tool dimension, characterized in that a specified arbitrary position is a position of a tool reference point with respect to a tool mounting portion.
ツールを取付けるツール取付け部を備えるロボットの制御装置に登録される、ツール取付け部に対するツールの基準点の位置を計測するツール寸法の計測方法であって、
ツール取付け部に対する予め設定された設定位置および上記設定位置に対して所定の位置関係の少なくとも1つの位置それぞれについて、当該位置を通過する所定方向に延びる回転中心線を中心として所定角度回転させる第1の工程と、
上記設定位置および上記少なくとも1つの位置それぞれについて、上記第1の工程の実行によって移動した実際のツール基準点のカメラ撮影画像上における移動量を計測する第2の工程と、
上記第2の工程で計測された移動量が最小の位置を新たな設定位置とする第3の工程と、
上記所定の位置関係を、上記設定位置に至る方向が変更されるようにおよび/または上記設定方向までの距離が漸減するように変更する第4の工程とを、
上記第2の工程で計測される移動量が略ゼロになる位置が特定されるまで繰り返し実行し、特定された位置をツール取付け部に対するツール基準点の位置とすることを特徴とするツール寸法の計測方法。
A tool dimension measuring method for measuring a position of a reference point of a tool with respect to a tool mounting portion, which is registered in a robot control device having a tool mounting portion for mounting a tool,
A first setting for rotating a predetermined angle about a rotation center line extending in a predetermined direction passing through the position with respect to each of at least one position having a predetermined positional relationship with respect to the setting position and a predetermined setting position with respect to the tool mounting portion And the process of
A second step of measuring an amount of movement of the actual tool reference point moved by execution of the first step on the camera-captured image for each of the set position and the at least one position;
A third step in which the position with the smallest amount of movement measured in the second step is set as a new set position;
Changing the predetermined positional relationship so that the direction to the set position is changed and / or the distance to the set direction is gradually reduced;
It is repeatedly executed until the position where the movement amount measured in the second step is substantially zero is specified, and the specified position is set as the position of the tool reference point with respect to the tool mounting portion. Measurement method.
ツールを取付けるツール取付け部を備えるロボットの制御装置に登録される、ツール取付け部に対するツールの基準点の位置を計測するツール寸法の計測方法であって、
制御装置に登録されているツール基準点の位置を通過する第1の回転中心線を中心としてツール取付け部を所定角度回転させる第1の工程と、
上記第1の工程の実行によって移動した実際のツール基準点のカメラ撮影画像上における第1の移動量を計測する第2の工程と、
制御装置に登録されているツール基準点の位置から予め設定された設定方向に予め設定された設定距離離れた位置を通過する、第1の回転中心線と平行な第2の回転中心線を中心としてツール取付け部を上記所定角度回転させる第3の工程と、
上記第3の工程の実行によって移動した実際のツール基準点のカメラ撮影画像上における第2の移動量を計測する第4の工程と、
制御装置に登録されているツール基準点の位置から上記設定方向の反対方向に上記設定距離離れた位置を通過する、第1の回転中心線と平行な第3の回転中心線を中心としてツール取付け部を上記所定角度回転させる第5の工程と、
上記第5の工程の実行によって移動した実際のツール基準点のカメラの撮影画像上における第3の移動量を計測する第6の工程と、
第1〜第3の移動量において第2の移動量が最小のときは、制御装置に登録されているツール基準点の位置を上記設定方向に上記設定距離離れた位置に変更し、
第1〜第3の移動量において第3の移動量が最小のときは、制御装置に登録されているツール基準点の位置を上記設定方向の反対方向に上記設定距離離れた位置に変更する第7の工程と、
上記設定方向を変更するおよび/または上記設定距離を漸減する第8の工程とを、繰り返し実行し、
上記第2、第4、または第6の工程のいずれかの工程で計測される移動量が略ゼロになると、第1〜第8の工程の繰り返し実行を終了することを特徴とするツール寸法の計測方法。
A tool dimension measuring method for measuring a position of a reference point of a tool with respect to a tool mounting portion, which is registered in a robot control device having a tool mounting portion for mounting a tool,
A first step of rotating the tool mounting portion by a predetermined angle around a first rotation center line passing through the position of the tool reference point registered in the control device;
A second step of measuring a first movement amount on the camera-captured image of the actual tool reference point moved by the execution of the first step;
Centered on a second rotation center line parallel to the first rotation center line passing through a position set in advance in a preset setting direction from the position of the tool reference point registered in the control device As a third step of rotating the tool mounting portion by the predetermined angle;
A fourth step of measuring a second movement amount on the camera-captured image of the actual tool reference point moved by the execution of the third step;
Tool attachment centered on a third rotation center line parallel to the first rotation center line passing through a position away from the set reference distance in the opposite direction of the setting direction from the position of the tool reference point registered in the control device A fifth step of rotating the portion by the predetermined angle;
A sixth step of measuring a third movement amount of the actual tool reference point moved by the execution of the fifth step on the captured image of the camera;
When the second movement amount is the smallest among the first to third movement amounts, the position of the tool reference point registered in the control device is changed to a position away from the set distance in the setting direction,
When the third movement amount is the smallest among the first to third movement amounts, the position of the tool reference point registered in the control device is changed to a position away from the set distance in the direction opposite to the set direction. 7 steps,
And repeatedly executing the eighth step of changing the setting direction and / or gradually decreasing the setting distance,
When the movement amount measured in any one of the second, fourth, and sixth steps becomes substantially zero, the repeated execution of the first to eighth steps is terminated. Measurement method.
第1、第2、および第3の軸を有する直交座標系を予め定義し、
第1の工程が初めて実行される前に、
上記第1の軸方向にツール取付け部を平行移動させて発生する、実際のツール基準点のカメラの撮影画像上における第1の移動ベクトルと、
上記第2の軸方向にツール取付け部を平行移動させて発生する、実際のツール基準点のカメラの撮影画像上における第2の移動ベクトルと、
制御装置に登録されているツール基準点の位置を通過して上記第3の軸と平行な回転中心線を中心としてツール取付け部を回転させて発生する、実際のツール基準点のカメラの撮影画像上における第3の移動ベクトルと、
制御装置に登録されているツール基準点の位置を通過して上記第1の軸と平行な回転中心線を中心としてツール取付け部を回転させて発生する、実際のツール基準点のカメラの撮影画像上における第4の移動ベクトルと、
上記第2の軸方向にツール取付け部を平行移動させて発生する、実際のツール基準点のカメラの撮影画像上における第5の移動ベクトルと、
上記第3の軸方向にツール取付け部を平行移動させて発生する、実際のツール基準点のカメラの撮影画像上における第6の移動ベクトルと、
上記第1の軸方向にツール取付け部を平行移動させて発生する、実際のツール基準点のカメラの撮影画像上における第7の移動ベクトルと、
制御装置に登録されているツール基準点の位置を通過して上記第2の軸と平行な回転中心線を中心としてツール取付け部を回転させて発生する、実際のツール基準点のカメラの撮影画像上における第8の移動ベクトルと、
上記第3の軸方向にツール取付け部を平行移動させて発生する、実際のツール基準点のカメラの撮影画像上における第9の移動ベクトルとに基づいて、
制御装置に登録されているツール基準点と実際のツール基準点との誤差を求め、
求めた誤差に基づいて、制御装置に登録されているツール基準点の位置を修正することを特徴とする請求項1から3のいずれか1項に記載のツール寸法の計測方法。
Predefine an orthogonal coordinate system having first, second and third axes;
Before the first step is performed for the first time,
A first movement vector on the captured image of the camera of the actual tool reference point, generated by translating the tool mounting portion in the first axial direction;
A second movement vector on the photographed image of the camera of the actual tool reference point generated by translating the tool mounting portion in the second axial direction;
An image taken by the camera of the actual tool reference point generated by rotating the tool mounting portion around the rotation center line parallel to the third axis passing through the position of the tool reference point registered in the control device A third movement vector above,
An image taken by the camera of the actual tool reference point generated by rotating the tool mounting portion around the rotation center line parallel to the first axis through the position of the tool reference point registered in the control device A fourth motion vector above,
A fifth movement vector on the captured image of the camera of the actual tool reference point, generated by translating the tool mounting portion in the second axial direction;
A sixth movement vector on the captured image of the camera of the actual tool reference point, generated by translating the tool mounting portion in the third axial direction;
A seventh movement vector on the captured image of the camera of the actual tool reference point, which is generated by translating the tool mounting portion in the first axial direction;
An image taken by the camera of the actual tool reference point generated by rotating the tool mounting portion around the rotation center line parallel to the second axis through the position of the tool reference point registered in the control device An eighth movement vector above,
Based on the ninth movement vector on the captured image of the camera of the actual tool reference point generated by translating the tool mounting portion in the third axial direction,
Find the error between the tool reference point registered in the controller and the actual tool reference point.
The tool dimension measuring method according to any one of claims 1 to 3, wherein the position of the tool reference point registered in the control device is corrected based on the obtained error.
ツールを取付けるツール取付け部を備えるロボットの制御装置に登録される、ツール取付け部に対するツールの基準点の位置を計測するツール寸法の計測装置であって、
ロボットの周辺に配置されて実際のツール基準点を撮影するカメラと、
カメラと制御装置とを介して、ツール取付け部に対するツール基準点の位置を計測する計測手段とを有し、
計測手段は、
ツール取付け部に対する任意の位置を通過する任意の回転中心線を中心として該ツール取付け部が回転するようなロボットの動作を制御装置に繰り返し実行させ、
ツール取付け部が回転する度にその回転によって移動した実際のツール基準点のカメラの撮影画像上における移動量を計測し、且つ、
ツール取付け部の回転が終了する度に上記任意の位置および/または上記任意の回転中心線を変更することを繰り返し実行することにより、
ツール取付け部の回転によって移動する実際のツール基準点のカメラ撮影画像上における移動量が略ゼロになる任意の位置を特定し、
特定した任意の位置をツール取付け部に対するツール基準点の位置として制御装置に登録することを特徴とするツール寸法の計測装置。
A tool size measuring device for measuring the position of a reference point of a tool with respect to the tool mounting portion, which is registered in a robot control device having a tool mounting portion for mounting a tool,
A camera that is placed around the robot and captures the actual tool reference point;
Measuring means for measuring the position of the tool reference point with respect to the tool mounting portion via the camera and the control device;
Measuring means
Causing the control device to repeatedly execute the operation of the robot such that the tool attachment portion rotates around an arbitrary rotation center line passing through an arbitrary position with respect to the tool attachment portion;
Measure the amount of movement of the actual tool reference point moved by the rotation on the captured image of the camera each time the tool mounting portion rotates, and
By repeatedly executing the arbitrary position and / or the arbitrary rotation center line every time the rotation of the tool attachment portion is completed,
Specify an arbitrary position where the movement amount on the camera image of the actual tool reference point that moves due to the rotation of the tool mounting part becomes substantially zero,
An apparatus for measuring a tool dimension, wherein an arbitrary specified position is registered in a control device as a position of a tool reference point with respect to a tool mounting portion.
ツールを取付けるツール取付け部と制御装置とを備え、ツール取付け部に対するツールの基準点の位置が制御装置に登録されるロボットであって、
請求項5に記載のツール寸法の計測装置を備えていることを特徴とするロボット。
A robot having a tool mounting portion for attaching a tool and a control device, the position of the reference point of the tool with respect to the tool mounting portion being registered in the control device;
A robot comprising the tool dimension measuring device according to claim 5.
JP2009289370A 2009-12-21 2009-12-21 Method, apparatus for measuring tool dimension and robot having the same Pending JP2011128114A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009289370A JP2011128114A (en) 2009-12-21 2009-12-21 Method, apparatus for measuring tool dimension and robot having the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009289370A JP2011128114A (en) 2009-12-21 2009-12-21 Method, apparatus for measuring tool dimension and robot having the same

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2014048881A Division JP5782538B2 (en) 2014-03-12 2014-03-12 Method for measuring tool reference point position with respect to tool mounting portion, measuring device for tool reference point position with respect to tool mounting portion, and robot including the measuring device

Publications (1)

Publication Number Publication Date
JP2011128114A true JP2011128114A (en) 2011-06-30

Family

ID=44290843

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009289370A Pending JP2011128114A (en) 2009-12-21 2009-12-21 Method, apparatus for measuring tool dimension and robot having the same

Country Status (1)

Country Link
JP (1) JP2011128114A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63251182A (en) * 1987-04-08 1988-10-18 株式会社日立製作所 Method of detecting position of bevel of working-line start end
JPS642104A (en) * 1987-06-25 1989-01-06 Nkk Corp Method for correcting positioning error of robot
JPS6487173A (en) * 1988-04-02 1989-03-31 Fujitsu Ltd Method of positioning joint mechanism
JPH05116080A (en) * 1991-10-29 1993-05-14 Fanuc Ltd Tool tip position adjusting method
JP2010240804A (en) * 2009-04-09 2010-10-28 Ihi Corp Tool center point adjusting method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63251182A (en) * 1987-04-08 1988-10-18 株式会社日立製作所 Method of detecting position of bevel of working-line start end
JPS642104A (en) * 1987-06-25 1989-01-06 Nkk Corp Method for correcting positioning error of robot
JPS6487173A (en) * 1988-04-02 1989-03-31 Fujitsu Ltd Method of positioning joint mechanism
JPH05116080A (en) * 1991-10-29 1993-05-14 Fanuc Ltd Tool tip position adjusting method
JP2010240804A (en) * 2009-04-09 2010-10-28 Ihi Corp Tool center point adjusting method

Similar Documents

Publication Publication Date Title
JP5949242B2 (en) Robot system, robot, robot control apparatus, robot control method, and robot control program
US10551821B2 (en) Robot, robot control apparatus and robot system
JP6429473B2 (en) Robot system, robot system calibration method, program, and computer-readable recording medium
CN107428009B (en) Method for commissioning an industrial robot, industrial robot system and control system using the method
JP6427972B2 (en) Robot, robot system and control device
JP5365379B2 (en) Robot system and robot system calibration method
JP6855492B2 (en) Robot system, robot system control device, and robot system control method
JP2020011339A (en) Robot system control method and robot system
TW201618913A (en) Robot and robot system
JP2005300230A (en) Measuring instrument
JP2016185572A (en) Robot, robot control device, and robot system
JP2013036988A (en) Information processing apparatus and information processing method
JP2015136770A (en) Data creation system of visual sensor, and detection simulation system
JP6565175B2 (en) Robot and robot system
JP6885856B2 (en) Robot system and calibration method
JP6855491B2 (en) Robot system, robot system control device, and robot system control method
JP7427370B2 (en) Imaging device, image processing device, image processing method, calibration method for imaging device, robot device, method for manufacturing articles using robot device, control program, and recording medium
JP2016159406A (en) Robot control device, robot control method and robot system
JP2016182648A (en) Robot, robot control device and robot system
JP5782538B2 (en) Method for measuring tool reference point position with respect to tool mounting portion, measuring device for tool reference point position with respect to tool mounting portion, and robot including the measuring device
JP2016203282A (en) Robot with mechanism for changing end effector attitude
WO2022025059A1 (en) Robot system
JP2011128114A (en) Method, apparatus for measuring tool dimension and robot having the same
JP2018031701A (en) Calibration method and calibration device
WO2022172471A1 (en) Assistance system, image processing device, assistance method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120907

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130711

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130820

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20131217