JPH0146275B2 - - Google Patents

Info

Publication number
JPH0146275B2
JPH0146275B2 JP23421783A JP23421783A JPH0146275B2 JP H0146275 B2 JPH0146275 B2 JP H0146275B2 JP 23421783 A JP23421783 A JP 23421783A JP 23421783 A JP23421783 A JP 23421783A JP H0146275 B2 JPH0146275 B2 JP H0146275B2
Authority
JP
Japan
Prior art keywords
sensor
tangent
distance
point
plane
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP23421783A
Other languages
Japanese (ja)
Other versions
JPS60127986A (en
Inventor
Norihisa Myake
Jusuke 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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP23421783A priority Critical patent/JPS60127986A/en
Publication of JPS60127986A publication Critical patent/JPS60127986A/en
Publication of JPH0146275B2 publication Critical patent/JPH0146275B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Manipulator (AREA)
  • Control Of Position Or Direction (AREA)
  • Length Measuring Devices With Unspecified Measuring Means (AREA)
  • Machine Tool Sensing Apparatuses (AREA)
  • Machine Tool Copy Controls (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、工業用ロボツト等の作業機械のなら
い制御方法および装置に係り、特に、ならい動作
の対象物の曲率が変化しても常に円滑なならい動
作を行うに好適なならい制御方法および装置に関
する。
[Detailed explanation of the invention] [In industrial use field] The present invention is always smooth even if the curvature of the object of the outbreak changes, especially for the control method and device of working machinery such as Robotto for industrial industries. The present invention relates to a tracing control method and device suitable for performing contouring operations.

〔従来の技術〕[Conventional technology]

従来から行われているならい制御方式は、なら
い動作の基本となる動作方向(以下、「基本動作
方向」という)を常に一定に保ち、これと直角な
方向の対象物の凹凸をセンサにより検出し、その
凹凸の形状に応じて作業機械に取付けられた作業
工具またはセンサを上記センサの検出方向に駆動
し、対象物形状にならわせる方式である。この場
合、対象物の形状の接線方向がセンサの検出方向
と一致するかほぼ一致する個所においては、なら
い動作が不可能となる欠点があつた。また、この
方式では、対象物に対する作業工具やセンサの姿
勢と対象物に沿つた動作速度とを一定に保つこと
が困難であるという欠点かあつた。この欠点は、
例えば塗装ロボツトでは、塗装むらを生じる原因
となる。
The conventional tracing control method keeps the basic movement direction of the tracing operation (hereinafter referred to as the "basic movement direction") constant, and uses sensors to detect irregularities on the object in a direction perpendicular to this direction. In this method, a working tool or a sensor attached to a working machine is driven in the detection direction of the sensor according to the shape of the unevenness, and is made to follow the shape of the object. In this case, there was a drawback that the tracing operation was impossible at a location where the tangential direction of the shape of the object coincided with or almost coincided with the detection direction of the sensor. Furthermore, this method has the disadvantage that it is difficult to maintain constant the posture of the power tool or sensor relative to the object and the speed of movement along the object. This drawback is
For example, in painting robots, this can cause uneven painting.

これらの欠点を解消する方策として、出願人は
既に特開昭55−18376号および特開昭58−34781号
に記載の方法を提案している。これらの方法で
は、センサの検出結果として得られる対象物の接
線方向情報に着目し、ならい動作の基本動作方向
を上記接線方向に一致させるように逐時変更する
という新しい考え方が導入されている。
As a measure to overcome these drawbacks, the applicant has already proposed methods described in Japanese Patent Application Laid-Open Nos. 55-18376 and 58-34781. These methods introduce a new concept of focusing on information on the tangential direction of the object obtained as a detection result of the sensor, and changing the basic motion direction of the tracing motion from time to time so that it matches the tangential direction.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかし、この方式は、対象物の接線方向の変化
量すなわち対象物表面の曲率を一定タイミングま
たはならい動作移動距離ごとに検出し、その検出
ごとにならい動作の方向を変更するものであつ
て、対象物表面の曲率そのものまでも考慮したも
のではなかつた。言い換えると、上記提案の方法
は、対象物表面の曲率にかかわらず、一定長さ
ΔLの線分で対象物表面形状を折れ線近似するこ
とに相当するならい制御方法であつた。
However, this method detects the amount of change in the tangential direction of the object, that is, the curvature of the object's surface, at a fixed timing or every distance traveled by the tracing motion, and changes the direction of the tracing motion each time it is detected. Even the curvature of the object's surface itself was not taken into consideration. In other words, the method proposed above is a tracing control method equivalent to approximating the object surface shape with a line segment of constant length ΔL, regardless of the curvature of the object surface.

ところが、対象物表面の形状を折れ線近似する
にあたり常に同一長さの線分を用いると、対象物
表面の曲率半径が小さい個所すなわち対象物表面
の接線方向の変化が激しい個所においては、なら
い動作方向と実際の接線方向との誤差が大きくな
るという問題が依然として残つている。
However, if line segments of the same length are always used when approximating the shape of the object surface with a polygonal line, the direction of the profiling movement will change in areas where the radius of curvature of the object surface is small, that is, in areas where the tangential direction of the object surface changes drastically. There still remains the problem that the error between the angle and the actual tangential direction becomes large.

また、このように対象物表面の接線方向の変化
が激しい部分においてもゆるやかな部分において
も、一定移動距離ごとに曲率を検出すると、はな
はだしい場合はならい動作中に対象物がセンサの
検出範囲を外れてしまい、ならい動作の継続に必
要なセンサ出力が得られなくなつたり、センサと
対象物との干渉のおそれがあるなど大きな問題が
残つていた。
In addition, if the curvature is detected every fixed distance of movement, whether in areas where the tangential direction of the object surface changes rapidly or slowly, if the curvature is extremely changed, the object may move out of the detection range of the sensor during the movement. As a result, major problems remained, such as not being able to obtain the sensor output necessary to continue the tracing operation, and the risk of interference between the sensor and the object.

本発明の目的は、対象物表面の接線方向の変化
量すなわち対象物表面の曲率がならい動作中に大
きく変化しても、これに適切に対処しながらなら
い動作を円滑に継続できるならい制御方法および
装置を提供することである。
An object of the present invention is to provide a tracing control method and method capable of smoothly continuing the tracing operation while appropriately coping with the change in the amount of change in the tangential direction of the object surface, that is, the curvature of the object surface, during the tracing operation. The purpose is to provide equipment.

[課題を解決するための手段] 本発明は、上記目的を達成するために、移動体
の先端に取付けられ対象物との相対距離を検出す
るセンサを対象物近傍で指定面内の接線の指定方
向に設定移動距離だけ移動させ、センサと対象物
との相対距離および移動体の3次元空間内の位置
に基づき対象物の位置およびこの対象物の位置に
おける指定面内の接線を演算し、その接線の指定
方向の延長上で前記設定移動距離だけ離れた点に
次の動作目標点を設定し、センサをその動作目標
点に向かつて移動させるならい制御方法におい
て、前記接線方向の変化量に応じて前記設定移動
距離を変更するならい制御方法を提案するもので
ある。
[Means for Solving the Problems] In order to achieve the above object, the present invention uses a sensor attached to the tip of a moving object to detect the relative distance to the object to specify a tangent in a specified plane near the object. The position of the object and the tangent in the specified plane at the position of this object are calculated based on the relative distance between the sensor and the object and the position of the moving object in the three-dimensional space. In a tracing control method in which the next operation target point is set at a point separated by the set movement distance on the extension of the tangential line in the designated direction, and the sensor is moved toward the operation target point, This paper proposes a tracing control method for changing the set moving distance.

前記指定面と交わる面内に前記センサを複数個
設け、これらセンサの出力に基づき3次元形状の
対象物の前記交わる面内における法線方向を演算
し、前記3次元形状の対象物上の点における接平
面の法線を求め、この法線に対して一定の角度以
内となるように前記センサの方向を規制すること
もできる。
A plurality of the sensors are provided in a plane that intersects with the designated plane, and based on the outputs of these sensors, the normal direction of the three-dimensional object in the intersecting plane is calculated, and a point on the three-dimensional object is calculated. It is also possible to determine the normal line of the tangential plane at and regulate the direction of the sensor so that it is within a certain angle with respect to this normal line.

前記センサは、前記接線に対する法線方向に正
確に向いている必要はなく、距離測定に所定値以
上の誤差を招かない範囲で一定の角度を保ちつつ
移動するようにしてもよい。
The sensor does not need to be oriented exactly in the direction normal to the tangent line, and may be moved while maintaining a constant angle within a range that does not cause an error of more than a predetermined value in distance measurement.

本発明は、また、移動体の先端に取付けられ対
象物との相対距離を検出するセンサを対象物近傍
で接線方向に設定移動距離だけ移動させる駆動手
段と、前記センサと対象物との相対距離および移
動体の3次元空間内の位置に基づき対象物の位置
およびこの対象物の位置における指定面内の接線
を求め前記駆動手段に動作目標点を出力する第1
演算手段と、前記移動前後の位置における接線方
向の変化量に応じて前記設定移動距離を変更し前
記第1演算手段に出力する第2演算手段とを含む
ならい制御装置を提案するものである。
The present invention also provides a driving means for moving a sensor attached to the tip of a moving body to detect a relative distance to a target object by a set travel distance in a tangential direction near the target object, and a relative distance between the sensor and the target object. and a first step that calculates the position of the object and the tangent in the designated plane at the position of the object based on the position of the moving object in the three-dimensional space and outputs the target operation point to the driving means.
A profiling control device is proposed that includes a calculation means and a second calculation means that changes the set moving distance according to the amount of change in the tangential direction at the position before and after the movement and outputs it to the first calculation means.

[作用] 本発明においては、センサを対象物表面の接線
方向に設定移動距離だけ移動させる際に、移動前
後の接線方向の変化量が所定値を超えて増加する
に従い、前記動作目標点を設定する距離を前記設
定移動距離よりも短く変更するので、接線の方向
が徐々に変わる比較的なだらかな対象物表面は勿
論のこと、接線の方向の変化量が大きいすなわち
曲率半径が小さいコーナ部等においても、常に安
定して正確なならい制御が可能となる。
[Operation] In the present invention, when the sensor is moved by a set movement distance in the tangential direction of the object surface, the operation target point is set as the amount of change in the tangential direction before and after the movement increases beyond a predetermined value. Since the distance to be moved is changed to be shorter than the set travel distance, it can be used not only on a relatively gentle object surface where the direction of the tangent changes gradually, but also on corners where the amount of change in the direction of the tangent is large, that is, the radius of curvature is small. Also, stable and accurate tracing control is always possible.

また、このならい動作の指定面と交わる(例え
ば直交する)面内に複数のセンサを配置し、これ
らセンサの出力に基づき3次元形状の対象物の前
記交わる面内における法線方向を演算し、前記3
次元形状の対象物上の点における接平面の法線を
求め、この法線に対して一定の角度以内となるよ
うに前記センサの方向を規制すると、前記交わる
面方向にも曲面となつている3次元対象物のなら
い動作がより正確になされる。
Further, a plurality of sensors are arranged in a plane that intersects (for example, perpendicularly intersects) with the specified plane of this tracing operation, and based on the outputs of these sensors, the normal direction of the three-dimensional object in the intersecting plane is calculated, Said 3
If the normal to the tangential plane at a point on the dimensional object is determined and the direction of the sensor is regulated to be within a certain angle with respect to this normal, the surface will also be curved in the direction of the intersecting surface. Tracing the three-dimensional object can be performed more accurately.

〔実施例〕〔Example〕

以下、図面を参照して本発明の実施例を具体的
に説明する。
Embodiments of the present invention will be specifically described below with reference to the drawings.

第1図は、本発明によるならい制御装置の一実
施例を備えた作業機械として、曲面Wの形状を計
測するロボツト1を示す斜視図である。ロボツト
1は、油圧シリンダ2により第1コラム3の上を
水平方向(以下「X軸方向」という)に往復移動
する第1移動体4と、第1移動体4上に直立に設
けられた第2コラム5に沿つて油圧シリンダ6に
より上下方向(以下「Z軸方向」という)に移動
する第2移動体7と、第2移動体7に取付けられ
油圧シリンダ8によりX軸と直交する水平方向
(以下「Y軸方向」という)に往復移動する第3
移動体9と、第3移動体9の先端に取り付けられ
た手首機構10とからなる。
FIG. 1 is a perspective view showing a robot 1 for measuring the shape of a curved surface W as a working machine equipped with an embodiment of a contouring control device according to the present invention. The robot 1 includes a first moving body 4 that reciprocates in the horizontal direction (hereinafter referred to as "X-axis direction") on a first column 3 by a hydraulic cylinder 2, and a first moving body 4 that is installed upright on the first moving body 4. 2. A second moving body 7 that moves in the vertical direction (hereinafter referred to as "Z-axis direction") along the second column 5 by a hydraulic cylinder 6, and a horizontal direction perpendicular to the X-axis by a hydraulic cylinder 8 attached to the second moving body 7. (hereinafter referred to as the “Y-axis direction”)
It consists of a moving body 9 and a wrist mechanism 10 attached to the tip of the third moving body 9.

手首機構10は第3移動体9に固定された垂直
軸11のまわりに回転する振りブロツク12と、
振りブロツク12に取付けられ水平軸13のまわ
りに回転する曲げブロツク14とからなる。
The wrist mechanism 10 includes a swinging block 12 that rotates around a vertical shaft 11 fixed to the third moving body 9;
A bending block 14 is attached to a swinging block 12 and rotates about a horizontal axis 13.

曲げブロツク14には、作業対象物との近接距
離を検出する渦電流式センサ21が取付けられ、
その主軸線210が水平軸13と常に直交するよ
うになつている。曲げブロツク14にはまた、セ
ンサ21と同一型式のセンサ22がセンサ21と
平行に軸間距離Lsをもつて配置されている。セ
ンサ22は、センサ21の主軸線210が水平と
なるように曲げブロツク14を駆動して位置決め
した場合、センサ21の上方に位置するように配
置されている。
An eddy current sensor 21 is attached to the bending block 14 to detect the proximity distance to the workpiece.
Its main axis 210 is always perpendicular to the horizontal axis 13. Also on the bending block 14, a sensor 22 of the same type as the sensor 21 is arranged parallel to the sensor 21 with an interaxial distance Ls. The sensor 22 is located above the sensor 21 when the bending block 14 is driven and positioned so that the main axis 210 of the sensor 21 is horizontal.

第2図は、第1図のならい制御装置およびロボ
ツト1の制御系のブロツク図である。マイクロコ
ンピユータ等からなる制御用計算機51からの位
置指令は、インターフエース52においてロボツ
ト1の各軸にふり分けられ、各軸の位置決め装置
53〜57に送り出される。例えばX軸の位置決
め装置53に送られた位置指令は、減算回路53
1が位置検出器534から得られたロボツト1の
X軸の現在位置との差を算出する際に用いられ、
その算出結果はサーボ回路532に送られる。サ
ーボ回路532の出力は、油圧サーボ弁や油圧シ
リンダ2などからなるロボツトX軸機構533を
駆動させる。X軸機構533の位置は位置検出器
534により検出され、減算回路531に送られ
ると共に、計算機51にも読み込まれる。
FIG. 2 is a block diagram of the profiling control device and the control system of the robot 1 shown in FIG. Position commands from a control computer 51, such as a microcomputer, are distributed to each axis of the robot 1 at an interface 52, and sent to positioning devices 53-57 for each axis. For example, the position command sent to the X-axis positioning device 53 is transmitted to the subtraction circuit 53.
1 is used when calculating the difference from the current position of the robot 1 on the X axis obtained from the position detector 534,
The calculation result is sent to the servo circuit 532. The output of the servo circuit 532 drives a robot X-axis mechanism 533 consisting of a hydraulic servo valve, hydraulic cylinder 2, and the like. The position of the X-axis mechanism 533 is detected by a position detector 534, sent to the subtraction circuit 531, and also read into the computer 51.

また、センサ21,22の信号はセンサインタ
ーフエース58により線形化して増幅され、計算
機51に読み込まれる。
Further, the signals from the sensors 21 and 22 are linearized and amplified by the sensor interface 58, and then read into the computer 51.

次に、第3図〜第10図を用いて、本発明のな
らい制御装置のならい制御アルゴリズムを説明す
る。ここでは説明を容易にするために、ならい動
作は水平面内で行われるものとし、第3図〜第5
図においては水平面内での制御方法の原理を、第
6図〜第10図においては垂直平面内での制御方
法の原理を示しているが、ならい動作は水平面内
に限定されるものではなく、任意の平面内更には
曲面内において実行できるということはいうまで
もない。
Next, the profile control algorithm of the profile control device of the present invention will be explained using FIGS. 3 to 10. Here, for ease of explanation, it is assumed that the tracing operation is performed in a horizontal plane, and Figures 3 to 5.
Although the figure shows the principle of the control method in the horizontal plane, and FIGS. 6 to 10 show the principle of the control method in the vertical plane, the tracing operation is not limited to the horizontal plane. It goes without saying that it can be carried out within any plane or even within a curved surface.

なお、以下の説明では、ロボツト1の手先に取
付けられたセンサ21の主軸210上で、センサ
21の先端から距離Ssだけ離れた点Pをロボツ
トの手先位置とし、この手先位置に着目して動作
を説明する。また、センサ21の検出可能な近接
距離の最小値をSnioとし同じく最大値をSnaxとす
れば、Snio<Ss<Snaxなるように距離Ssを選び、
この距離Ssをセンサ21の標準検出距離と呼ぶ
ものとする。通常、距離SsはSnioとSnaxとの平均
値をとればよい。
In the following explanation, a point P on the main shaft 210 of the sensor 21 attached to the hand of the robot 1, which is a distance Ss away from the tip of the sensor 21, is taken as the hand position of the robot, and the robot's hand position is focused on the operation. Explain. Further, if the minimum value of the detectable proximity distance of the sensor 21 is S nio and the maximum value is S nax , select the distance Ss so that S nio < Ss < S nax ,
This distance Ss shall be referred to as the standard detection distance of the sensor 21. Normally, the distance Ss may be determined by taking the average value of S nio and S nax .

ロボツト1の手先位置Pの座標(XP、YP、ZP
を、ロボツト1の基台に固定された座標系により
表わせば、X、Y、Z軸の移動量をx、y、z、
また、Y軸方向から測つた手首振りブロツク12
の回転量をα、水平面から測つた手首曲げブロツ
ク14の回転量をβとし、垂直軸11と水平軸1
3の軸間距離をlA、水平軸13からセンサ21先
端までの距離をlPとすると、 XP=x−{lA+(lP+Ss) cosβ}sinα YP=y+{lA+(lP+Ss) cosβ}cosα] ZP=z+(lP+Ss)sinβ ……(1) と表わすことができる。
Coordinates of the hand position P of robot 1 (X P , Y P , Z P )
If expressed in a coordinate system fixed to the base of the robot 1, the amount of movement on the X, Y, and Z axes can be expressed as x, y, z,
In addition, wrist swing block 12 measured from the Y-axis direction
α is the amount of rotation of the wrist bending block 14 measured from the horizontal plane, and β is the amount of rotation of the wrist bending block 14 measured from the horizontal plane.
3 , the distance between the axes is l A , and the distance from the horizontal axis 13 to the tip of the sensor 21 is l P. (l P +Ss) cosβ}cosα] Z P = z + (l P +Ss) sinβ ...(1).

まず、第3図〜第5図により水平面内でのなら
い制御について説明する。ロボツト1は最初にワ
ークWのならい開始点Q0の近傍に位置決めされ
ている。このとき、操作者が点Q0におけるワー
クWの接線とほぼ直角方向となるように、センサ
21を予め位置決めしておく。ロボツト1はここ
から動作を開始し、センサ21の出力がSsとな
つたところで一旦動作を停止する。このときのロ
ボツト1の手先位置PはQ0点と一致している。
First, tracing control in a horizontal plane will be explained with reference to FIGS. 3 to 5. The robot 1 is initially positioned near the tracing start point Q0 of the workpiece W. At this time, the operator positions the sensor 21 in advance so that it is substantially perpendicular to the tangent to the workpiece W at the point Q0 . The robot 1 starts its operation from this point, and once the output of the sensor 21 reaches Ss, it stops its operation. At this time, the hand position P of the robot 1 coincides with the Q0 point.

ならい動作は、センサ21の主軸線210と直
角方向すなわちワークWのおおよその接線方向に
ロボツト1を駆動することにより、開始される。
動作を開始し、移動距離L0となつた時のロボツ
トの手先点をR1とすると、ロボツトの手先がR1
点に到達した時点で再度センサ21のデータを入
力する。このときの測定距離をS1とすれば、ワー
クW上の点Q1の座標(X1、Y1、Z1)は、ロボツ
ト各軸の移動量x1、y1、z1、α1、β1を用いて X1=x1−{lA+(lP+S1) cosβ1}sinα1 Y1=y1+{lA+(lP+S1) cosβ1}cosβ1] Z1=z1+(lP+S1)sinβ1 ……(2) として求められる。
The tracing operation is started by driving the robot 1 in a direction perpendicular to the main axis 210 of the sensor 21, that is, in a direction roughly tangential to the workpiece W.
If the robot's hand point is R 1 when it starts moving and reaches the moving distance L 0 , then the robot's hand point is R 1.
When the point is reached, the data from the sensor 21 is input again. If the measurement distance at this time is S 1 , the coordinates (X 1 , Y 1 , Z 1 ) of point Q 1 on the workpiece W are the movement amount of each axis of the robot x 1 , y 1 , z 1 , α 1 , using β 1 , X 1 = x 1 − {l A + (l P + S 1 ) cosβ 1 } sinα 1 Y 1 = y 1 + {l A + (l P + S 1 ) cosβ 1 } cosβ 1 ] Z 1 = z 1 + (l P + S 1 ) sinβ 1 ...(2).

なお、以下では上記移動距離L0を基準サンプ
リング距離と呼ぶことにする。また、点Q0から
点R1への基準サンプリング距離L0分のロボツト
1の動きは、これらの点間を結ぶ直線上に微細な
距離ごとの中間点を設け、これらの点の座標に対
応するロボツト1各軸の位置を順次指令し、直線
上を手先Pが一定速度で移動するように制御す
る。以下の説明においても、ロボツト1の動きま
たはロボツト1を駆動するという表現は、上記の
ような直線上の一定速度での動作またはそれらの
組合わせ動作を意味する。
Note that, hereinafter, the moving distance L 0 will be referred to as a reference sampling distance. In addition, the movement of the robot 1 from point Q 0 to point R 1 over a standard sampling distance L 0 is determined by setting intermediate points at each minute distance on the straight line connecting these points, and corresponding to the coordinates of these points. The position of each axis of the robot 1 is sequentially commanded, and the hand P is controlled to move at a constant speed on a straight line. In the following description as well, the expressions ``movement of the robot 1'' or ``driving the robot 1'' refer to movement in a straight line at a constant speed as described above, or a combination thereof.

さて、ロボツト1が点R1に到着した時点で、
(2)式によりワークW上の点Q1が明らかとなる。
そこでワークWの近似的な接線が点Q0と点Q1
を結ぶ直線として決まる。なお、このときの接線
の傾きは点Q0、点Q1の座標から容易に求められ
る。
Now, when robot 1 arrives at point R1 ,
The point Q 1 on the workpiece W becomes clear from equation (2).
Therefore, the approximate tangent to the workpiece W is determined as the straight line connecting the point Q 0 and the point Q 1 . Note that the slope of the tangent at this time can be easily determined from the coordinates of point Q 0 and point Q 1 .

いま、ロボツト1のX軸正方向から測つた角度
を用いて接線の傾きをθ1と表わせば、Q0点の座
標を(X0、Y0、Z0)として、角度θ1は次のよう
になる。
Now, if we express the slope of the tangent line as θ 1 using the angle measured from the positive direction of the X-axis of robot 1, then if the coordinates of point Q 0 are (X 0 , Y 0 , Z 0 ), the angle θ 1 is as follows. It becomes like this.

θ1=tan-1Y1−Y0/X1−X0;X0≠X1のとき =0 ;X0=X1のとき 本発明の制御方式は、このようにして得られた
接線の延長上にならい動作の目標点を設定しなが
ら動作していくことが基本となつている。すなわ
ち、点Q0、点Q1とを結ぶ直線の延長上に、点Q1
から距離L0の点R2を定め、これを目標として次
のサンプリング区間のならい動作が行われる。
θ 1 = tan -1 Y 1 −Y 0 /X 1 −X 0 ; When X 0 ≠ X 1 = 0 ; When X 0 = The basic idea is to move while setting a target point for the movement following the extension of the above. In other words, on the extension of the straight line connecting point Q 0 and point Q 1 , point Q 1
A point R 2 at a distance L 0 from the point R 2 is determined, and the tracing operation for the next sampling section is performed with this as the target.

なお、この場合、センサ21によるワークWの
位置測定のために、センサ21が点R2において
直線Q0R2と直角になるように駆動する。ここで
は、手首振りブロツク12の回転角αを用いてセ
ンサ21の姿勢を示し、例えばR2点における姿
勢をα2と表す。
In this case, in order to measure the position of the work W by the sensor 21, the sensor 21 is driven to be perpendicular to the straight line Q 0 R 2 at the point R 2 . Here, the rotation angle α of the wrist swing block 12 is used to indicate the attitude of the sensor 21, and for example, the attitude at point R2 is expressed as α2 .

ロボツトの手先が点R2に到達した時点でセン
サ21の出力を測定し、これをS2とすれば、(2)式
と同様にR2点におけるロボツト1の各軸の位置
をx2、y2、z2、α2、β2とすると、ワークW上の点
Q2の座標(X2、Y2、Z2)は、 X2=x2−{lA+(lP+S2) cosβ2}sinα2 Y2=y2+{lA+(lP+S2) cosβ2}cosβ2] Z2=z2+(lP+S2)sinβ2 ……(3) と表せられる。直線Q1Q2の傾きθ2は θ2=tan-1Y2−Y1/X2−X1;X2≠X1のとき =0 ;X2=X1のとき である。
If the output of the sensor 21 is measured when the robot's hand reaches point R 2 and this is set as S 2 , the position of each axis of the robot 1 at point R 2 is x 2 , as in equation (2), Let y 2 , z 2 , α 2 , β 2 be the point on the work W
The coordinates of Q 2 ( X 2 , Y 2 , Z 2 ) are : +S 2 ) cosβ 2 }cosβ 2 ] Z 2 =z 2 + (l P +S 2 ) sinβ 2 ...(3) The slope θ 2 of the straight line Q 1 Q 2 is θ 2 =tan −1 Y 2 −Y 1 /X 2 −X 1 ; when X 2 ≠X 1 = 0; when X 2 = X 1 .

近似的な接線は直線Q0Q1から直線Q1Q2に変化
し、その傾きはθ1からθ2となつた。この傾きの変
化は、実はワーク表面形状の曲率を表わしてい
る。すなわち、接線方向の変化量は曲率半径に対
応している。
The approximate tangent changed from the straight line Q 0 Q 1 to the straight line Q 1 Q 2 , and its slope changed from θ 1 to θ 2 . This change in slope actually represents the curvature of the workpiece surface shape. That is, the amount of change in the tangential direction corresponds to the radius of curvature.

本発明のならい動作は、ワーク表面の曲線を接
線により折れ線近似している。したがつて、同一
の精度で曲線を折れ線近似するためには、曲線半
径が小さいところでは、折れ線の長さを短くする
必要がある。すなわち、近似的なに得られた接線
の延長上に、サンプリング距離Lだけ離れた点を
ならい動作の動作目標点とするが、このサンプリ
ング距離Lを上記接線の傾きの変化量に応じて変
更する必要がある。
In the tracing operation of the present invention, the curve of the workpiece surface is approximated by a polygonal line using tangents. Therefore, in order to approximate a curve to a polygonal line with the same accuracy, it is necessary to shorten the length of the polygonal line where the radius of the curve is small. That is, a point on the extension of the approximated tangent line, separated by a sampling distance L, is set as the movement target point of the tracing movement, but this sampling distance L is changed according to the amount of change in the slope of the tangent line. There is a need.

ここでは、接線の傾きの変化θ2−θ1の値に応じ
て、上記サンプリング距離Lを次のように変化さ
せる。
Here, the sampling distance L is changed as follows depending on the value of change θ 2 −θ 1 in the slope of the tangent.

Δθ=θ2−θ1 とし、サンプリング距離Lを L=ΔS0/tanΔθ;|Δθ| ≧Δθcのとき L=L0 ;|Δθ|<Δθcのとき ……(4) とする。ここで、ΔS0、L0、Δθcは定数であり、
L0は基準サンプリング距離、ΔS0はSs−Sminと
Smax−Ssのうちの小さい方よりも小さい値とす
る。一般的には(4)の連続性から、ΔS0
L0tanΔθcとする方が良い。また、Δθcはならい
精度の所要値から定める。
Let Δθ=θ 2 −θ 1 , and let the sampling distance L be L=ΔS 0 /tanΔθ; when |Δθ| ≧Δθc, L=L 0 ; when |Δθ|<Δθc... (4). Here, ΔS 0 , L 0 , and Δθc are constants,
L 0 is the reference sampling distance, ΔS 0 is Ss−Smin
The value shall be smaller than the smaller of Smax−Ss. Generally, from the continuity of (4), ΔS 0 =
It is better to set L 0 tanΔθc. Further, Δθc is determined from the required value of tracing accuracy.

このようにして次のサンプリング距離Lを決
め、ならい目標点を定める。目標点R3の決定は
(4)式により求めたLをL3とし、直線Q1Q2の延長
上にQ2から距離L3だけ離れた点として決定する。
点R3にロボツト1が到達すれば、点R3において
センサ21の出力からワーク上の点Q3の位置を
求め、今度は点Q2とQ3を結ぶ直線の延長上に次
の目標点R4を定める。直線Q2Q3の傾きをθ3とす
れば、R4点における目標センサ姿勢を直線Q2Q3
に直角な姿勢とするための手首振りブロツク12
の回転角α4が得られる。このような処理を繰返し
ながら、ならい動作を行うのが、本発明の制御方
法の特徴である。
In this way, the next sampling distance L is determined, and the tracing target point is determined. Determination of target point R3 is
The L obtained by equation (4) is defined as L 3 , and is determined as a point on the extension of the straight line Q 1 Q 2 that is a distance L 3 from Q 2 .
When the robot 1 reaches point R3 , the position of point Q3 on the workpiece is determined from the output of the sensor 21 at point R3 , and the next target point is found on the extension of the straight line connecting points Q2 and Q3 . Define R 4 . If the slope of the straight line Q 2 Q 3 is θ 3 , the target sensor posture at the R 4 points is the straight line Q 2 Q 3
Wrist swing block 12 to maintain a posture perpendicular to
The rotation angle α 4 is obtained. A feature of the control method of the present invention is that the tracing operation is performed while repeating such processing.

これを一般化すると、第4図のようになる。い
ま、点Ri+1にロボツト1の手先が到達している時
点において、直線Qi-1Qiの傾きをθiとし、このと
きのセンサ姿勢をαi+1とする。点Ri+1においてワ
ークW上の位置を測定し、センサ21の出力Si+1
からワークW上の点Qi+1の座標を求め、直線Qi
Qi+1の傾きθi+1を決定する。これより、 Δθi+1=θi+1−θi が得られる。一方、点Q1、Ri+1間の距離すなわち
前回のサンプリング距離をLi+1とすれば、Li+1
距離間に接線の傾きがΔθi+1変化したから、基準
サンプリング距離L0間の接線の傾き変化Δθ* i+1は、
曲率半径を一定と仮定して近似的に Δθ* i+1=2sin-1(L0/Li+1sinΔθi+1/2) ……(5) となる。そこで、次のサンプリング距離Li+2を、
(4)式にならつて Li+2=ΔS0/tanΔθ* i+1;|Δθ* i+1|≧Δθcのとき ……(6) Li+2=L0 ;|Δθ* i+1|<Δθcのとき として、次の区間のならい動作目標点Ri+2を直線
QiQi+1の延長上、点Qi+1から距離Li+2だけ離れた
点に設定し、かつRi+2においてセンサ姿勢が直線
QiQi+1と直角な姿勢となるような角度αi+2に設定
し、ならい動作を続ける。(6)式の関係を第5図に
示す。
If this is generalized, it will become as shown in Figure 4. Now, when the hand of the robot 1 has reached the point R i+1 , the slope of the straight line Q i-1 Q i is set to θ i , and the sensor attitude at this time is set to α i+1 . The position on the workpiece W is measured at point R i+1 , and the output S i+1 of the sensor 21 is
Find the coordinates of the point Q i+1 on the workpiece W from the line Q i
Determine the slope θ i+ 1 of Q i+ 1. From this, Δθ i+1i+1 −θ i is obtained. On the other hand, if the distance between points Q 1 and R i+1 , that is, the previous sampling distance, is L i+1 , the slope of the tangent has changed by Δθ i + 1 between the distance L i+1, so the standard sampling distance is The change in the slope of the tangent between L 0 Δθ * i+1 is
Assuming that the radius of curvature is constant, approximately Δθ * i+1 =2sin -1 (L 0 /L i+1 sinΔθ i+1 /2) ...(5). Therefore, the next sampling distance L i+2 is
Following equation (4), when L i+2 = ΔS 0 /tanΔθ * i+1 ; |Δθ * i+1 | ≧Δθc...(6) L i+2 = L 0 ; |Δθ * i+ 1 When |<Δθc, set the target point R i+2 of the next section on a straight line.
Due to the extension of Q i Q i+1 , set the point at a distance L i+2 from point Q i+1 , and the sensor attitude is straight at R i+2.
Set the angle α i+2 so that the posture is perpendicular to Q i Q i+1 , and continue the tracing motion. The relationship of equation (6) is shown in Figure 5.

次に、第6図〜第10図により、本発明の垂直
面内での姿勢制御について説明する。まず、第6
図に示すように、ロボツト1はワークWのならい
開始点Q0の近傍に位置決めされており、センサ
21,22は、点Q0におけるワークWの垂直面
内での接線とほぼ直角方向となるように、操作者
により予めセツトされる。ロボツト1はここから
動作を開始し、センサ21,22の出力がともに
一致するように姿勢を制御して、一旦動作を停止
する。なお、姿勢制御にあたつては、ロボツト1
の手先P点の位置が変化しないように(1)式に基づ
いてロボツト1の各軸を駆動する。また、このと
きのセンサ21の主軸211の傾きを水平面から
の仰角βで表わしてこれをβ0とし、ワーク表面の
接線の傾きを鉛直面からの角度φで表わしてQ0
点での傾きをφ0とする。このときはφ0=β0であ
る。ここでは、前述した水平面内におけるならい
制御方法から、センサ21の出力はSsとなるよ
うに制御される。したがつて、センサ21,22
の出力はともにSsとなつている。
Next, posture control in a vertical plane according to the present invention will be explained with reference to FIGS. 6 to 10. First, the 6th
As shown in the figure, the robot 1 is positioned near the tracing start point Q 0 of the workpiece W, and the sensors 21 and 22 are in a direction almost perpendicular to the tangent in the vertical plane of the workpiece W at the point Q 0 . This is set in advance by the operator. The robot 1 starts its operation from this point, controls its posture so that the outputs of the sensors 21 and 22 match, and then temporarily stops its operation. In addition, for posture control, robot 1
Each axis of the robot 1 is driven based on equation (1) so that the position of point P of the hand does not change. Also, the inclination of the main axis 211 of the sensor 21 at this time is expressed as an elevation angle β from the horizontal plane, which is defined as β 0 , and the inclination of the tangent to the workpiece surface is expressed as an angle φ from the vertical plane, Q 0
Let the slope at the point be φ 0 . At this time, φ 00 . Here, the output of the sensor 21 is controlled to be Ss using the above-described profile control method in the horizontal plane. Therefore, the sensors 21, 22
Both outputs are Ss.

ならい動作が開始され、水平方向のならいが進
作して行くに従つて、センサ21,22の出力が
変化する。水平移動距離が第7図に示すように
L0′となつたところを点R1′とし、センサ21の出
力からワーク上の点Q1′の位置を求める。2つの
センサ21,22の出力をそれぞれSA1、SB1とす
れば、Q1′点におけるワークWの接線の傾きφ1は、
2つのセンサ21,22間の軸間距離Lsを用い
て表わすと、 φ1=φ0+tan-1SB1−SA1/Ls ……(7) となる。ここで、2つのセンサ21,22の出力
差をΔSH1=SB1−SA1とおき、tan-1ΔSH1/Ls=Δφ1と おく。
The tracing operation is started, and as the horizontal tracing progresses, the outputs of the sensors 21 and 22 change. The horizontal movement distance is as shown in Figure 7.
The point where L 0 ' is reached is defined as point R 1 ', and the position of point Q 1 ' on the workpiece is determined from the output of the sensor 21. If the outputs of the two sensors 21 and 22 are S A1 and S B1 , respectively, then the slope φ 1 of the tangent to the workpiece W at point Q 1 ' is as follows:
When expressed using the center distance Ls between the two sensors 21 and 22, φ 10 +tan −1 S B1 −S A1 /Ls (7). Here, the output difference between the two sensors 21 and 22 is set as ΔS H1 =S B1 -S A1 , and tan -1 ΔS H1 /Ls = Δφ 1 .

なお、以下の説明においては上記水平方向のな
らい動作距離L0′を基準姿勢サンプリング距離と
呼ぶことにする。
In the following description, the horizontal tracing movement distance L 0 ' will be referred to as the reference posture sampling distance.

さて、ロボツト1が点R1′に到着した時点では
センサ仰角はβ0である。次に、ならい動作を継続
する。いま、垂直面内のワーク表面曲率変化も、
前回のならい動作区間の曲率変化とほぼ同じであ
るとすれば、点Q1′からならい動作距離L′だけ移
動した点で、センサ21,22の出力差はΔSH1
になると予想される。垂直面内のならい姿勢制御
とは、このような予想にもとづいて次の姿勢サン
プリング距離L′を選択決定することである。ここ
では、 L′=Δφc×L0′/Δφ1;|Δφ1|≧Δφcのとき L′=L0′;|Δφ1|<Δφcのとき ……(8) となるように、すなわちセンサ出力差から求めた
姿勢サンプリング距離間の角度変化の値に反比例
させて、次の姿勢サンプリング距離L′を定める。
Now, when the robot 1 arrives at point R 1 ', the sensor elevation angle is β 0 . Next, continue the tracing motion. Now, the change in workpiece surface curvature in the vertical plane is also
Assuming that the change in curvature is almost the same as that of the previous tracing operation section, the output difference between the sensors 21 and 22 at the point moved by the tracing operation distance L' from point Q1 ' is ΔS H1
It is expected that Tracing attitude control in the vertical plane means selecting and determining the next attitude sampling distance L' based on such predictions. Here, L′=Δφc×L 0 ′/Δφ 1 ; When |Δφ 1 |≧Δφc, L′=L 0 ′; |Δφ 1 |When <Δφc...(8) In other words, the sensor The next posture sampling distance L' is determined in inverse proportion to the value of the angle change between the posture sampling distances determined from the output difference.

ここに、Δφcは定数であり、1/2tan-1 Smax−Smin/Lsまたはtan-1Smax−Smin/2Lsよりも 小さくなるようにその値を定める。 Here, Δφc is a constant, and its value is determined to be smaller than 1/2tan −1 Smax−Smin/Ls or tan −1 Smax−Smin/2Ls.

このようにして次の姿勢サンプリング距離L′を
決め、次の姿勢サンプリング点R2′を定める。
R2′点は、(8)式により求めた距離L′をL2′として、
水平方向のならい動作の接線上にとつた道のりが
L2′になる点として決定する。こうしてロボツト
1が第8図に示すように点R2′に到達すれば、2
つのセンサデータを再度読み込み、垂直面内での
ワークWの傾きφ2及びセンサ仰角β2(=φ2)を計
算し、次の姿勢サンプリング点R3′を求め、R3′点
に到着したときにセンサ仰角がβ2となるようにな
らい動作を行う。このような処理を繰返して行く
ことが、本発明のもう一つの特徴である。
In this way, the next attitude sampling distance L' is determined, and the next attitude sampling point R 2 ' is determined.
The R 2 ′ point is calculated using the distance L ′ obtained by equation (8) as L 2 ′.
The path taken on the tangent of the horizontal tracing motion is
Determine the point where L 2 ′. In this way, when robot 1 reaches point R 2 ' as shown in FIG.
2 sensor data is read again, the inclination φ 2 of the workpiece W in the vertical plane and the sensor elevation angle β 2 (=φ 2 ) are calculated, the next posture sampling point R 3 ′ is determined, and the next posture sampling point R 3 ′ is reached. Sometimes, the movement is performed so that the sensor elevation angle becomes β 2 . Another feature of the present invention is that such processing is repeated.

これを一般化すると、第9図のようになる。点
R1′にロボツト1の手先が到着している時点にお
いて、ワークWの表面の垂直面内接線の傾きを
φ1とすれば、この傾φ1は φi=φi-1+tan-1ΔSHi/Ls=φi-1+Δφi ……(9) である。ΔSHi=SBi−SAiであり、センサ姿勢の仰
角はβi-1=φi-1となつている。また、点Q′i-1から
点R1′までの水平方向ならい動作における接線上
にとつた道のりをLi′とすれば、この道のりが
L0′である場合の垂直面内ワーク接線の傾きφi *
は、曲率の変化が均一であると仮定して、近似的
に φi *=φi-1+L0′/L1′・Δφi ……(10) となる。よつて Δφi *=φi *−φi-1=L0/Li′・Δφi……(11) とおけば、次の姿勢サンプリング区間の道のり
L′i+1は、(8)式にならつて、 L′i+1=Δφc×L0′/Δφi * =Δφc×Li′/Δφi ;|Δφi *|≧Δφcのとき L′i+1=L0′ ;|Δφi *|<Δφcのとき ……(12) として求めることができる。これにより、次の姿
勢サンプリング点R′i+1の位置が得られる。そこ
で点R′i+1において、センサ仰角βiがβi=φiとなる
ように設定し、ならい動作の姿勢制御を行なう。
(12)式の関係を第10図に示す。
If this is generalized, it will become as shown in Fig. 9. point
If the slope of the tangent in the vertical plane of the surface of the workpiece W is φ 1 at the time when the hand of the robot 1 has arrived at R 1 ′, then this slope φ 1 is φ ii-1 + tan -1 ΔS Hi /Ls=φ i-1 +Δφ i ...(9). ΔS Hi =S Bi −S Ai , and the elevation angle of the sensor attitude is β i-1i-1 . Also, if the path taken on the tangent line in the horizontal tracing motion from point Q′ i-1 to point R 1 ′ is L i ′, then this path is
The slope of the workpiece tangent in the vertical plane when L 0 ′ is φ i *
Assuming that the change in curvature is uniform, approximately φ i * = φ i-1 + L 0 ′/L 1 ′・Δφ i ……(10). Therefore, if we set Δφ i * = φ i * −φ i-1 = L 0 /L i ′・Δφ i ……(11), the path of the next posture sampling section is
Following equation (8), L′ i+1 is L when L′ i+1 =Δφc×L 0 ′/Δφ i * =Δφc×L i ′/Δφ i ; |Δφ i * |≧Δφc ′ i+1 =L 0 ′ ; |Δφ i * | < Δφc ...(12) It can be obtained as follows. As a result, the position of the next posture sampling point R′ i+1 is obtained. Therefore, at point R′ i+1 , the sensor elevation angle β i is set so that β ii , and posture control of the tracing operation is performed.
The relationship of equation (12) is shown in FIG.

なお、上記実施例では、ならい動作方向の接線
決定のためのサンプリング距離Liの決定にあた
り、一般式として(5)式、(6)式を用いたがΔθiが微
小角度であるとすれば、近似的に(5)式は Δθ* i+1≒L0/Li・Δθi+1 ……(13) と簡略化してもよく、さらに(6)式においても、 Li+2≒ΔS0/Δθ* i+1 ;|Δθ* i+1|≧Δφc Li+2≒L0 ;|Δθ* i+1|<Δθc ……(14) と、tanΔθi+1≒Δθi+1の関係を用いて簡略化する
などの方法が考えられる。
In addition, in the above embodiment, formulas (5) and (6) were used as general formulas to determine the sampling distance L i for determining the tangent line of the tracing motion direction, but if Δθ i is a small angle, then , approximately, equation (5) can be simplified as Δθ * i+1 ≒L 0 /L i・Δθ i+1 ...(13), and furthermore, in equation (6), L i+2 ≒ ΔS 0 /Δθ * i+1 ; |Δθ * i+1 |≧Δφc L i+2 ≒L 0 ; |Δθ * i+1 |<Δθc ...(14) and tanΔθ i+1 ≒Δθ i+ One possible method is to simplify using the relationship 1 .

これらの式(13)、(14)において、Δθ* i+1
Δφ* iなどを計算しないで、Δθi+1、Δφiの値から直
接的に求める簡略化も考えられる。例えば、前区
間のサンプリング距離をLiとして、 Li+1=Li−kΔθi/Δθc 同様に前区間の姿勢サンプリング距離をL′iとし
て L′i+1=L′i−k′Δθi/Δθc を求めることなどは、k、k′を定数とした大まか
な線型近似であるが、これらによつても従来方式
よりはきめの細かい制御が可能であり、一つの簡
略法として有効である。さらに、(6)式において、
|Δθ* i+1|の値にかかわらずLi+2=ΔS0/tanΔθ* i
+1とし、また(2)式において、|Δφ* i|の値にかか
わらずL′i+1=Δφc・L′0/Δφi *とするような方法
であつてもよい。
In these equations (13) and (14), Δθ * i+1 ,
It is also conceivable to simplify the equation by directly finding the values of Δθ i+1 and Δφ i without calculating Δφ * i , etc. For example, if the sampling distance of the previous section is L i , L i+1 = L i −kΔθ i /Δθc Similarly, if the posture sampling distance of the previous section is L′ i , L′ i+1 = L′ i −k′Δθ Determining i /Δθc is a rough linear approximation with k and k′ as constants, but these also allow finer control than conventional methods and are effective as a simplified method. be. Furthermore, in equation (6),
Regardless of the value of |Δθ * i+1 |, L i+2 =ΔS 0 /tanΔθ * i
+1 , and in equation (2), L′ i+1 =Δφc·L′ 0 /Δφ i * regardless of the value of |Δφ * i |.

前記実施例においては、水平方向のならい動作
のならい動作方向決定のための接線演算を行うサ
ンプリング距離と、垂直面内での姿勢決定のため
の姿勢サンプリング距離とをそれぞれLi、L′iのよ
うに区別して示したが、これらはLi、Li′のうち
の小さい方を両者に共通したサンプリング距離と
して選び、センサ21,22のデータを読み出す
回数を削減することも可能である。また、例えば
垂直面内での姿勢を制御することが、作業の仕様
から見てそれほど重要でない場合は、水平方向の
サンプリング距離のみを前述の方法によつて決定
し、これに合わせて垂直面内での姿勢制御のため
の計算を行つたり、あるいは逆の選択方法をとる
などの方法を用いてもよい。
In the embodiment described above, the sampling distance for performing the tangent calculation for determining the tracing motion direction of the horizontal tracing motion and the posture sampling distance for determining the posture in the vertical plane are defined as L i and L′ i, respectively. Although these are shown separately, it is also possible to select the smaller of Li and Li ' as a common sampling distance for both, thereby reducing the number of times data from the sensors 21 and 22 is read. For example, if controlling the posture in the vertical plane is not so important from the work specifications, only the sampling distance in the horizontal direction can be determined using the method described above, and the sampling distance in the vertical plane can be determined accordingly. You may also use a method such as performing calculations for attitude control at , or using a reverse selection method.

さらに、前述の実施例においては、水平面内に
おけるならい動作と、垂直面内における姿勢制御
の例を示したが、ならい動作は水平面内に限定さ
れるものではなく、任意の平面または曲面内にお
いて行うものであつても、本発明は有効である。
ただし、ならい動作を行う平面または曲面内に、
2本のセンサ21,22が同時に含まれないよう
にセンサを配置する必要がある。このために、ロ
ボツト1の手先にセンサ21,22をセンサ21
の主軸まわりに回転させるためのサーボ機構など
を追加する方法をとつてもよい。
Furthermore, in the above-mentioned embodiment, an example of a tracing motion in a horizontal plane and an attitude control in a vertical plane was shown, but the tracing motion is not limited to a horizontal plane, but can be performed in any plane or curved surface. The present invention is effective even if the
However, within the plane or curved surface where the tracing operation is performed,
It is necessary to arrange the sensors so that the two sensors 21 and 22 are not included at the same time. For this purpose, sensors 21 and 22 are installed at the hands of the robot 1.
It is also possible to add a servo mechanism or the like for rotation around the main axis.

上記実施例では、ロボツト1は直角座標形のロ
ボツトを例示しているが、多関節形、極座標形な
どのロボツトであつてもよく、またはレール上を
走行する走行台車などのような作業機械であつて
もよい。
In the above embodiment, the robot 1 is a rectangular coordinate type robot, but it may also be a multi-joint type robot, a polar coordinate type robot, or a working machine such as a traveling trolley that runs on rails. It's okay to be hot.

また、センサとして非接触式の近接距離センサ
を用いた例を示したが、センサとしては、ポテン
シヨメータ等をばねにより付勢した触針式セン
サ、超音波式距離センサ、レーザ光や赤外光など
によるスポツト光やスリツト光などをワーク表面
に照射しこれをイメージセンサやテレビカメラな
どでとらえて距離を検出する方式のセンサ、また
は画像処理によりワーク表面の位置を検出する方
式のセンサなど、種々の形式のセンサも用いるこ
とができる。
In addition, although we have shown an example of using a non-contact proximity distance sensor as a sensor, other sensors include a stylus sensor with a potentiometer etc. biased by a spring, an ultrasonic distance sensor, a laser beam or infrared sensor. Sensors that detect the distance by illuminating the work surface with spot light or slit light, which is captured by an image sensor or television camera, or sensors that detect the position of the work surface through image processing. Various types of sensors can also be used.

また、前述の実施例においては、センサ21,
22の主軸210,220がワークWの表面に対
して常に垂直となる例を示したが、センサの姿勢
はワークの表面に対して一定の角度をなしても良
く、必ずしも完全に垂直な方向から距離検出を行
う必要はない。また、このようにセンサが一定の
姿勢を持つていても、本発明のならい動作制御は
有効である。
Further, in the above-described embodiment, the sensor 21,
Although the example in which the main axes 210 and 220 of No. 22 are always perpendicular to the surface of the workpiece W has been shown, the attitude of the sensor may be at a fixed angle with respect to the surface of the workpiece, and is not necessarily completely perpendicular to the surface of the workpiece. There is no need to perform distance detection. Further, even if the sensor has a fixed posture as described above, the tracing operation control of the present invention is effective.

以上、本発明の一実施例と、そのいくつかの変
形例について述べたが、本発明によれば、曲率が
複雑に変化する対象物に対して、その曲率に応じ
てならい動作のサンプリング距離を変えながらな
らい動作を行うため、曲率半径の小さいワーク部
分についても、その曲率半径の値に対応した円滑
かつ高精度のならい動作を実現できる。また、接
線の傾きが変化しなくとも、(6)式、(12)式に見られ
るように、サンプリング距離の最大値をそれぞれ
L0、L0′としているが、これはならい動作におい
て、一定の長さ以下の折れ線により対象物を近似
するものであり、曲率半径が大きい個所において
も、このようなならい制御により、きめの細かい
高精度のならい動作が可能である。一方、常に微
小距離ごとに接線計算を行う従来の方式では、そ
の接線計算の精度に対するセンサの計測精度の誤
差をまぬがれず誤差が蓄積されるのに対し、本発
明の方法では安定したならい動作制御が可能であ
る。
An embodiment of the present invention and some variations thereof have been described above. According to the present invention, for an object whose curvature changes in a complicated manner, the sampling distance of the tracing operation is determined according to the curvature. Since the tracing operation is performed while changing the radius of curvature, smooth and highly accurate tracing operations corresponding to the value of the radius of curvature can be achieved even for workpiece parts with a small radius of curvature. In addition, even if the slope of the tangent line does not change, the maximum value of the sampling distance can be calculated as shown in equations (6) and (12).
L 0 and L 0 ′, which approximates the object with a polygonal line of a certain length or less during the tracing operation, and even in areas with a large radius of curvature, this type of tracing control makes it possible to improve the texture. Fine, high-precision tracing operations are possible. On the other hand, with the conventional method that always calculates tangents for every minute distance, errors accumulate due to errors in the measurement accuracy of the sensor relative to the accuracy of tangent calculations, whereas the method of the present invention provides stable tracing motion control. is possible.

前述の実施例においては、その機能として、な
らい動作面内における接線検出およびならい動作
面と異なる面内(実施例では垂直面内)における
接線検出の2つが含まれているが、これらのうち
のならい動作平面内における機能のみを実現する
ものであつても、本発明の範囲内にあり、本発明
の簡略化例として十分実用になるものである。
In the above-mentioned embodiment, the functions include two functions: tangent detection within the tracing operation plane and tangent detection in a plane different from the tracing operation plane (in the embodiment, perpendicular plane). Even if the function is realized only within the tracing motion plane, it is still within the scope of the present invention and can be put into practical use as a simplified example of the present invention.

上記各実施例においては、それぞれの演算式か
らなる制御アルゴリズムを第3図計算機51のソ
フトウエアとして具体化してもよいし、専用の電
子回路を付加して演算処理時間を短縮することも
できる。
In each of the embodiments described above, the control algorithm consisting of each calculation formula may be implemented as software of the computer 51 in FIG. 3, or a dedicated electronic circuit may be added to shorten the calculation processing time.

前述の各実施例においては、作業工具を図示し
ていないが、例えば塗布用弾性体、塗装ガン、溶
接トーチ、グラインダ、シーリング工具などの作
業工具をロボツトの手先に配置し、これら工具の
作業点位置をロボツト1の手先位置Pと一致させ
るか、手先位置Pに対して一定の位置関係を持つ
ように配置し、工具の作業点位置をロボツト1の
手先位置とみなして演算制御すると、作業工具に
よる自動ならい作業が可能である。もちろん、作
業工具を特に備えず、センサによる検出データか
らワークWの形状を計算し、計測用ロボツトとし
て用いる用途に、または、このようにしてワーク
Wの形状をワーク上に沿つた点群の位置データと
して求め、産業用ロボツトにおけるテイーチング
作業に代え、このならい動作結果として得られた
動作経路に沿いプレイバツク動作制御によりロボ
ツトに作業を行わせる自動テイーチング方法に本
方法を応用することも可能である。
Although the working tools are not shown in each of the above-mentioned embodiments, working tools such as a coating elastic body, a painting gun, a welding torch, a grinder, and a sealing tool are arranged at the hands of the robot, and the working points of these tools are If the position of the tool is made to match the hand position P of the robot 1, or if it is arranged so that it has a certain positional relationship with the hand position P, and the work point position of the tool is calculated and controlled as the hand position of the robot 1, the work tool Automatic tracing work is possible. Of course, it is possible to calculate the shape of the workpiece W from the data detected by the sensor and use it as a measurement robot without having a working tool, or in this way, the shape of the workpiece W can be calculated from the position of the point cloud along the workpiece. It is also possible to apply this method to an automatic teaching method in which the robot performs a task by playback motion control along the motion path obtained as a result of the tracing motion, instead of obtaining the data as data and teaching the industrial robot.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、指定面内方向ではセンサの移
動前後の出力から接線方向を検出するので、セン
サがひとつで済み、曲率が急激に変化する部分を
含めて、複雑な3次元形状を有する対象物を正確
にならい制御でき、対象物の最初の微小部分につ
いてならい動作を行なわせれば、そのならい動作
で得られた対象物の形状に関する情報に基づいて
形状を予測しながら自動的に測定するロボツトに
よる形状ならい制御方法が得られる。
According to the present invention, since the tangential direction is detected from the outputs before and after movement of the sensor in the specified in-plane direction, only one sensor is required, and the object has a complex three-dimensional shape, including a portion where the curvature changes rapidly. A robot that can accurately trace and control an object, and if it performs a tracing operation on the first minute part of the object, it can automatically measure and predict the shape of the object based on the information about the shape of the object obtained through the tracing operation. A shape tracing control method can be obtained.

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

第1図は本発明のならい制御装置の一実施例を
備えた作業機械としてのロボツトの一具体例を示
す斜視図、第2図は第1図ならい制御装置および
ロボツトの制御系の構成の一例を示すブロツク
図、第3図は第1図実施例における水平面内のな
らい動作制御方法を示す図、第4図は第3図方法
を一般化して示す図、第5図は本発明のならいサ
ンプリング距離Li+1の選択にあたつて用いる
tanΔθi *とLi+1の関係を示す図、第6図〜第8図
は第1図実施例における垂直面内の姿勢制御方法
を示す図、第9図は第6図〜第8図方法を一般化
して示す図、第10図は同じく姿勢サンプリング
距離L′i+1の選択に用いるΔφi *とL′i+1との関係を
示す図である。 W…対象物、P…ロボツトの手先位置、1…ロ
ボツト、21,22,31,32,41,42…
センサ、51…制御用計算機、58…センサ用イ
ンターフエース。
Fig. 1 is a perspective view showing a specific example of a robot as a working machine equipped with an embodiment of the profiling control device of the present invention, and Fig. 2 is an example of the configuration of the profiling control device and robot control system shown in Fig. 1. FIG. 3 is a diagram showing the method of controlling the tracing motion in the horizontal plane in the embodiment of FIG. 1, FIG. 4 is a generalized diagram of the method shown in FIG. 3, and FIG. Used when selecting distance L i+1
A diagram showing the relationship between tanΔθ i * and L i+1 , FIGS. 6 to 8 are diagrams showing the posture control method in the vertical plane in the embodiment of FIG. 1, and FIG. FIG. 10, which is a diagram generalizing the method, is a diagram showing the relationship between Δφ i * and L' i+1, which are also used to select the posture sampling distance L' i+ 1 . W...Object, P...Robot hand position, 1...Robot, 21, 22, 31, 32, 41, 42...
Sensor, 51...Control computer, 58...Sensor interface.

Claims (1)

【特許請求の範囲】 1 移動体の先端に取付けられ対象物表面との相
対距離を検出するセンサを指定面内における対象
物表面の接線に沿つて指定方向に設定移動距離だ
け移動させ、センサと対象物表面との相対距離お
よび移動体の3次元空間内の位置に基づいて対象
物表面の位置を求め、 前記設定移動距離両端に対応する対象物表面の
位置から当該対象物表面の指定面内における接線
を演算し直し、当該接線の指定方向の延長上で前
記設定移動距離だけ離れた点に次の動作目標点を
設定し、センサを当該動作目標点に向けて移動さ
せるならい制御方法において、 演算し直した接線とその前に演算された接線と
の方向の変化量に応じて前記設定移動距離を変更
することを特徴とするならい制御方法。 2 特許請求の範囲第1項に記載のならい制御方
法において、 前記指定面と交わる面内に前記センサを複数個
設け、当該センサの出力に基づき3次元形状の対
象物表面の前記交わる面内における法線方向を演
算し、前記3次元形状の対象物表面の法線に対し
て一定の角度以内となるように前記センサの方向
を規制することを特徴とするならい制御方法。 3 特許請求の範囲第1項に記載のならい制御方
法において、 前記センサの姿勢を前記指定面内における前記
接線に対して一定の角度となるように規制するこ
とを特徴とするならい制御方法。 4 移動体の先端に取付けられ対象物表面との相
対距離を検出するセンサと、 前記移動体を制御して前記センサを指定面内に
おける対象物表面の接線に沿つて動作目標点まで
移動させる制御手段と、 前記センサと対象物表面との相対距離および移
動体の3次元空間内の位置に基づき動作目標点に
対応した対象物表面の位置を求め、相続く2つの
動作目標点に対応する対象物表面の位置から指定
面内における対象物表面の接線を求め、当該接線
の指定方向の延長上で設定移動距離だけ離れた点
を次の動作目標点に設定して前記制御手段に出力
する第1演算手段と、 新たに演算する接線とその前に演算された接線
との方向の変化量に応じて前記設定移動距離を変
更し前記第1演算手段に出力する第2演算手段と を含むならい制御装置。
[Claims] 1. A sensor attached to the tip of a moving body that detects the relative distance to the object surface is moved in a specified direction along a tangent to the object surface within a specified plane by a set moving distance, and the sensor The position of the object surface is determined based on the relative distance to the object surface and the position of the moving body in three-dimensional space, and the position within the designated plane of the object surface is determined from the position of the object surface corresponding to both ends of the set movement distance. In the tracing control method, the tangent line is recalculated, the next operation target point is set at a point separated by the set movement distance on the extension of the tangent line in the specified direction, and the sensor is moved toward the operation target point, A tracing control method characterized in that the set moving distance is changed according to the amount of change in direction between the recalculated tangent and the previously calculated tangent. 2. In the tracing control method according to claim 1, a plurality of the sensors are provided in a plane that intersects with the designated plane, and based on the outputs of the sensors, the surface of the three-dimensional object is controlled in the plane that intersects with the specified plane. A tracing control method comprising calculating a normal direction and regulating the direction of the sensor so that the direction is within a certain angle with respect to the normal to the surface of the three-dimensional object. 3. The tracing control method according to claim 1, characterized in that the attitude of the sensor is regulated to be at a constant angle with respect to the tangent in the specified plane. 4. A sensor attached to the tip of a moving object to detect the relative distance to the object surface; and a control for controlling the moving object to move the sensor along a tangent to the object surface within a specified plane to an operation target point. means, determining the position of the object surface corresponding to the movement target point based on the relative distance between the sensor and the object surface and the position of the moving object in the three-dimensional space; A tangent to the object surface within the specified plane is determined from the position of the object surface, and a point separated by a set travel distance on an extension of the tangent in the specified direction is set as the next operation target point and outputted to the control means. and a second calculation means that changes the set travel distance according to the amount of change in direction between a newly calculated tangent and a previously calculated tangent and outputs it to the first calculation means. Control device.
JP23421783A 1983-12-14 1983-12-14 Method and device for controlling profiling Granted JPS60127986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23421783A JPS60127986A (en) 1983-12-14 1983-12-14 Method and device for controlling profiling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23421783A JPS60127986A (en) 1983-12-14 1983-12-14 Method and device for controlling profiling

Publications (2)

Publication Number Publication Date
JPS60127986A JPS60127986A (en) 1985-07-08
JPH0146275B2 true JPH0146275B2 (en) 1989-10-06

Family

ID=16967529

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23421783A Granted JPS60127986A (en) 1983-12-14 1983-12-14 Method and device for controlling profiling

Country Status (1)

Country Link
JP (1) JPS60127986A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004294247A (en) * 2003-03-26 2004-10-21 Jfe Steel Kk Section steel material cross-section size measuring instrument and its method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19712029A1 (en) * 1997-03-21 1998-09-24 Zeiss Carl Fa Method for controlling coordinate measuring machines according to target data
GB0508273D0 (en) * 2005-04-25 2005-06-01 Renishaw Plc Method for scanning the surface of a workpiece
DE102006049957A1 (en) * 2006-10-19 2008-04-24 Abb Ag System and method for calibration of a handling device
JP5089428B2 (en) * 2008-02-21 2012-12-05 株式会社ミツトヨ Scanning measuring device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004294247A (en) * 2003-03-26 2004-10-21 Jfe Steel Kk Section steel material cross-section size measuring instrument and its method

Also Published As

Publication number Publication date
JPS60127986A (en) 1985-07-08

Similar Documents

Publication Publication Date Title
US4831232A (en) Industrial robot equipment capable of automatically terminating operation at a desired sensed location
Baeten et al. Hybrid vision/force control at corners in planar robotic-contour following
JPS59353B2 (en) gripping device
JP2787891B2 (en) Automatic teaching device for laser robot
EP0494314B1 (en) Non-contact copy control device
JPH0146275B2 (en)
JPH09183087A (en) Working robot device
JPH0146276B2 (en)
JPH01109058A (en) Contactless copy controller
WO1992011974A1 (en) Non-contact digitizing method
JPH04115854A (en) Noncontact profile control unit
JPS5834781A (en) Method of controlling form profiling by robot
JPS5946758B2 (en) Operation control method for automatic working machines
JP2654206B2 (en) Touch-up method
JPH09267282A (en) Work object position detector of multiarticulated robot
JP3166316B2 (en) Teaching and control method of playback type robot
JPH07195287A (en) Contact type position transducer of force control robot
JPH052455B2 (en)
JPH03110087A (en) Follow-up control method for three-dimensional laser beam machine
JP2604838B2 (en) Industrial robot control method
JPH01114907A (en) Teaching device for three-dimensional robot
JP2936442B2 (en) 3D laser processing machine
JPH077303B2 (en) Robot teaching method
JPH06297369A (en) Intelligent robot
JPS61188095A (en) Position controller in industrial robot