JP3123859B2 - Robot position / posture recognition device - Google Patents

Robot position / posture recognition device

Info

Publication number
JP3123859B2
JP3123859B2 JP05169828A JP16982893A JP3123859B2 JP 3123859 B2 JP3123859 B2 JP 3123859B2 JP 05169828 A JP05169828 A JP 05169828A JP 16982893 A JP16982893 A JP 16982893A JP 3123859 B2 JP3123859 B2 JP 3123859B2
Authority
JP
Japan
Prior art keywords
arm
signal
robot
detection circuit
detection
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 - Fee Related
Application number
JP05169828A
Other languages
Japanese (ja)
Other versions
JPH071368A (en
Inventor
洋和 渡辺
晴弘 常田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nidec Sankyo Corp
Original Assignee
Nidec Sankyo Corp
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 Nidec Sankyo Corp filed Critical Nidec Sankyo Corp
Priority to JP05169828A priority Critical patent/JP3123859B2/en
Publication of JPH071368A publication Critical patent/JPH071368A/en
Application granted granted Critical
Publication of JP3123859B2 publication Critical patent/JP3123859B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Manipulator (AREA)
  • Control Of Position Or Direction (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明はロボットに関する。更に
詳述すると、本発明はロボットの位置・姿勢を認識する
方法及びその装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a robot. More specifically, the present invention relates to a method and apparatus for recognizing the position and orientation of a robot.

【0002】[0002]

【従来の技術】一般にロボットには多種の型式のものが
提供されているが、いずれの型式のロボットでもロボー
トアーム先端の位置、姿勢を認識することは、ロボット
を駆動制御する上で非常に重要である。
2. Description of the Related Art Generally, various types of robots are provided. However, in any type of robot, recognizing the position and posture of the tip of the robot arm is very difficult in controlling the driving of the robot. is important.

【0003】従来、ロボットの位置、姿勢を認識する方
法としては、(1)センサもパターン認識能力もないも
の、(2)センサはあるがパターン認識能力のないも
の、(3)センサとパターン認識能力のあるものに大別
される。各方法は、それぞれ利点と欠点があり、その使
用の目的に応じて使い分けられているが、コンピュータ
の発達により、比較的安価にかつ確実に位置の推定がで
きる上記(1)の方法がよく採用されている。
Conventionally, methods for recognizing the position and posture of a robot include (1) a method having neither a sensor nor pattern recognition ability, (2) a method having a sensor but no pattern recognition ability, and (3) a sensor and pattern recognition. They are roughly divided into those with the ability. Each method has advantages and disadvantages, and is used properly depending on the purpose of use. However, with the development of computers, the above method (1), which can estimate the position relatively inexpensively and reliably, is often adopted. Have been.

【0004】これは、初期位置を与えておき、その後は
モータ等の回転数から現在の位置を推定する方法であっ
て、具体的にはモータの回転数をエンコーダで検出して
コンピュータ内に取り込み、コンピュータにより予め与
えられていた初期位置及びエンコーダからの検出パルス
を基に所定の計算をしてロボットの位置を推定するもの
である。
This is a method in which an initial position is given, and then the current position is estimated from the rotation speed of a motor or the like. Specifically, the rotation speed of the motor is detected by an encoder and taken into a computer. The position of the robot is estimated by performing a predetermined calculation on the basis of the initial position given in advance by the computer and the detection pulse from the encoder.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上述し
た従来のロボットの位置・姿勢認識方法にあっては、コ
ンピュータの計算周期毎にしか位置認識が行えなかった
ため、位置認識を行う際にはロボットアームを低速に移
動させたり、場合によってはロボットアームを停止させ
る必要があり、認識に時間がかかり過ぎるという欠点が
あった。
However, in the above-described conventional method for recognizing the position and posture of a robot, the position can be recognized only at each calculation cycle of the computer. It is necessary to move the robot at a low speed or stop the robot arm in some cases, and there is a disadvantage that it takes too much time for recognition.

【0006】本発明は、上述した従来技術の欠点を解消
し、位置、姿勢認識を短時間におこなうことができる
ボットの位置・姿勢認識装置を提供することを目的とす
る。
SUMMARY OF THE INVENTION An object of the present invention is to provide a robot position / posture recognizing apparatus which can solve the above-mentioned disadvantages of the prior art and can perform position / posture recognition in a short time.

【0007】[0007]

【0008】[0008]

【課題を解決するための手段】かかる目的を達成するた
め、請求項1記載のロボットの位置・姿勢認識装置は、
アームの角度を検出して検出信号を出力するセンサと、
該センサからの検出信号を位相検出して検波信号を得る
位相検出回路、前記位相検出回路からの検波信号を可逆
計数する可逆カウンタ、ロボットアームの先端に設けら
れた視覚認識装置がロボット制御装置の計算周期とは関
係なく実際に撮像を行う撮像タイミングで発生するシャ
ッター閉信号により形成される位置認識信号により前記
可逆カウンタの計数値をセットするレジスタからなる検
出回路と、各アーム毎の検出回路における可逆カウンタ
の計数値を読み込みその計数値からアームの移動量を算
出するとともに、前記各アーム毎の検出回路におけるレ
ジスタにセットされた値を読み込みそのセット値及び撮
像データから得られるデータとロボットの座標系との関
係を求める演算処理装置とを備えるようにしている。
In order to achieve the above object, a robot position / posture recognition apparatus according to claim 1 is provided.
A sensor that detects the angle of the arm and outputs a detection signal,
A phase detection circuit that detects a phase of a detection signal from the sensor to obtain a detection signal, a reversible counter that reversibly counts the detection signal from the phase detection circuit, and a visual recognition device provided at the tip of the robot arm is a robot control device. Sharps that occur at the timing of actual imaging regardless of the calculation cycle
A detection circuit consisting of a register for setting the count value of the reversible counter based on a position recognition signal formed by a shutter close signal, and reading the count value of the reversible counter in the detection circuit for each arm to determine the amount of movement of the arm from the count value. And an arithmetic processing unit that reads a value set in a register in a detection circuit of each arm and obtains a relationship between the set value and data obtained from imaging data and a coordinate system of the robot. .

【0009】さらに、請求項2記載の発明に係るロボッ
トの位置・姿勢認識装置は、アームの角度を検出して検
出信号を出力するセンサと、前記センサからの検出信号
を位相検出して検波信号を得る位相検出回路、前記位相
検出回路からの検波信号を可逆計数する可逆カウンタ、
ロボットアームの先端に設けられた視覚認識装置がロボ
ット制御装置の計算周期とは関係なく実際に撮像を行う
撮像タイミングで発生するシャッター閉信号により形成
される認識信号により前記可逆カウンタの計数値をセッ
トするレジスタ、撮像タイミングで発生する認識信号に
よりセット状態になる判定信号保持部からなる検出回路
と、各アーム毎の検出回路における可逆カウンタの計数
値を読み込みその計数値からアームの移動量を算出する
とともに、前記判定信号保持部がセット状態のときに前
記レジスタにセットされた値を読み込み、そのセット値
及び撮像データから得られるデータとロボットの座標系
との関係を求める演算処理装置とを備えるようにしてい
る。
A robot position / posture recognition apparatus according to a second aspect of the present invention includes a sensor for detecting an angle of an arm and outputting a detection signal, and a detection signal for detecting a phase of the detection signal from the sensor. Phase detection circuit, a reversible counter for reversibly counting the detection signal from the phase detection circuit,
The visual recognition device provided at the end of the robot arm actually forms an image regardless of the calculation cycle of the robot controller.
A detection circuit including a register for setting the count value of the reversible counter based on the recognition signal to be detected, a determination signal holding unit that is set to a set state by a recognition signal generated at an imaging timing, and a count value of the reversible counter in the detection circuit for each arm Is read from the count value, the amount of movement of the arm is calculated, and the value set in the register is read when the determination signal holding unit is in the set state, and the data obtained from the set value and the imaging data and the coordinates of the robot are read. And an arithmetic processing unit for obtaining a relationship with the system.

【0010】[0010]

【0011】[0011]

【作用】 請求項記載の発明では、一つのセンサに対し
て、上記位相検出回路と、上記可逆カウンタと、上記レ
ジスタとからなる検出回路を設け、かつ各センサに対し
てそれぞれ検出回路を設け、かつ前記各検出回路におけ
る可逆カウンタの計数値を演算処理装置が読み込みその
計数値からアームの移動量を算出する。また、演算処理
装置は、前記各検出回路におけるレジスタにセットされ
た値を読み込みそのセット値及び撮像データとから得ら
れるデータとロボットの座標系との関係を求めることが
できる。
[Action] In the present invention of claim 1, wherein, for one single sensor, arranged and the phase detection circuit, and said reversible counter is provided with a detection circuit consisting of the register, and each detection circuit for each sensor The arithmetic processing unit reads the count value of the reversible counter in each of the detection circuits, and calculates the amount of movement of the arm from the count value. Further, the arithmetic processing unit can read a value set in a register in each of the detection circuits, and obtain a relationship between data obtained from the set value and the imaging data and a coordinate system of the robot.

【0012】請求項記載の発明では、請求項記載の
発明における検出回路に、判定信号保持部を付加し、認
識信号が入力されたことをセットしておいて、演算処理
装置に認識信号が入力されたことを知らせるようにした
ものである。これにより、演算処理装置とは同期しない
認識信号でも確実に各レジスタのセット値及び撮像デー
タから得られるデータとロボットの座標系との関係を求
めることができる。
According to a second aspect of the present invention, a determination signal holding unit is added to the detection circuit according to the first aspect of the present invention, and it is set that the recognition signal has been input, and the recognition signal is sent to the arithmetic processing unit. Is input to inform the user of the input. This makes it possible to reliably determine the relationship between the set value of each register and the data obtained from the imaging data and the coordinate system of the robot even with a recognition signal that is not synchronized with the arithmetic processing device.

【0013】[0013]

【実施例】以下、本発明の構成を図面に示す実施例に基
づいて詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The construction of the present invention will be described below in detail with reference to the embodiments shown in the drawings.

【0014】図1に本発明のロボットの位置・姿勢認識
方法の実施例を実現する装置の一例を示す。該図におい
て、符号1はスカラ形ロボットである。スカラ形ロボッ
ト1は、主に、ベース2、第1アーム3、第2アーム
4、第1モータ5、第1減速機5A、第2モータ6、第
2減速機6A、第3モータ7、第4モータ8、第3減速
機8Aを備えている。また、ベース2には第1アーム3
が回動可能に固定されており、この第1アーム3の先端
には第2アーム4が回動可能に固定されている。ベース
2には、第1モータ5及び第4モータ8が固定されてい
る。第1モータ5は、減速機5Aを介して第1アーム3
を回転させるようになっている。第4モータ8は、プリ
ー9a,9bに掛け渡されたベルト10aと、プリー9
c,9dに掛け渡されたベルト10bとにより、スプラ
インシャフト先端把持部11aを所望角度だけ回転させ
られるようになっている。第2モータ6は第1アーム3
に固定されており、第2モータ6で第2アーム4を回転
できるようになっている。第2モータ6の先端内部には
第3モータ7が内蔵固定されており、第3モータ7はプ
リー12a,12bに掛け渡されたベルト13によりボ
ールネジ14を回転させることにより、スプラインシャ
フト11bを図示上下動できるようになっている。ま
た、第1モータ5、第2モータ6、第3モータ7、及び
第4モータ8には、エンコーダ15、16、17及び1
8がそれぞれ設けられており、各エンコーダ15、1
6、17及び18は各モータ5、6、7及び8の回転数
を検出できるようになっている。これらエンコーダ1
5、16は、第1アーム3及び第2アーム4の角度を検
出するセンサとして使用される。もちろん、エンコーダ
17はスプラインシャフト先端把持部11aの上下動の
距離を、エンコーダ18はスプラインシャフト先端把持
部11aの角度を測定するセンサとして使用される。
FIG. 1 shows an example of an apparatus for realizing an embodiment of a method for recognizing the position and orientation of a robot according to the present invention. In the figure, reference numeral 1 denotes a scalar robot. The SCARA robot 1 mainly includes a base 2, a first arm 3, a second arm 4, a first motor 5, a first reduction gear 5A, a second motor 6, a second reduction gear 6A, a third motor 7, A four motor 8 and a third reduction gear 8A are provided. The base 2 has a first arm 3
Is rotatably fixed, and a second arm 4 is rotatably fixed to the end of the first arm 3. A first motor 5 and a fourth motor 8 are fixed to the base 2. The first motor 5 is connected to the first arm 3 via a speed reducer 5A.
Is to be rotated. The fourth motor 8 includes a belt 10a stretched around pulleys 9a and 9b,
The spline shaft tip grasping portion 11a can be rotated by a desired angle by the belt 10b stretched around c and 9d. The second motor 6 is the first arm 3
, And the second arm 4 can be rotated by the second motor 6. A third motor 7 is fixed inside the tip end of the second motor 6, and the spline shaft 11b is illustrated by rotating a ball screw 14 by a belt 13 stretched over pulleys 12a and 12b. It can be moved up and down. The first motor 5, the second motor 6, the third motor 7, and the fourth motor 8 include encoders 15, 16, 17, and 1 respectively.
8 are provided, and each encoder 15, 1
The motors 6, 17, and 18 can detect the rotation speeds of the motors 5, 6, 7, and 8, respectively. These encoders 1
Reference numerals 5 and 16 are used as sensors for detecting the angles of the first arm 3 and the second arm 4. Of course, the encoder 17 is used as a sensor for measuring the vertical movement distance of the spline shaft tip gripper 11a, and the encoder 18 is used as a sensor for measuring the angle of the spline shaft tip gripper 11a.

【0015】このスカラ形ロボット1はロボット制御装
置20に電気的に接続されており、ロボット制御装置2
0の制御下に、各モータ5、6、7及び8を回転させ、
かつ各エンコーダ15、16、17及び18からの検出
信号で各モータ5、6、7及び8の回転を駆動制御する
とともに、第2アーム4の先端位置を推定できるように
なっている。
The SCARA type robot 1 is electrically connected to a robot controller 20 and a robot controller 2
Under the control of 0, the motors 5, 6, 7 and 8 are rotated,
In addition, the rotation of each of the motors 5, 6, 7, and 8 is controlled by the detection signals from the encoders 15, 16, 17, and 18, and the tip position of the second arm 4 can be estimated.

【0016】ロボット制御装置20は、各種の演算処理
や各種の制御を実行する演算処理装置(CPU)21
と、バス22と、メモリー23と、サーボモータコント
ロールインターフェース24a,24b,24c,24
dと、検出回路25a,25b,25c,25dとを備
えている。CPU21には、バス22を介してメモリー
23と、サーボモータコントロールインターフェース2
4a,24b,24c,24dとが接続されるととも
に、検出回路25a,25b,25c,25dが接続さ
れている。サーボモータコントロールインターフェース
24a,24b,24c及び24dは、図示しないが、
各モータ5,6,7及び8に電気的にそれぞれ接続され
ており、各モータ5,6,7及び8の回転をCPU21
の指令に基づいて回転駆動制御する。検出回路25a,
25b,25c及び25dは、全て同一回路構成となっ
ているので、検出回路25aのみの構成について説明す
る。検出回路25aは、エンコーダ15からの検出信号
SA,SBを取り込み、これを検波して検波信号Sa,
Sbの内の一つを出力できる位相検出回路251と、位
相検出回路251からの検波信号Sa,Sbの内の一つ
を差引計数する可逆カウンタ252と、この可逆カウン
タ252の計数値をCPU21に読み込ませるスリース
テートバッファ253と、位置認識信号SCが入力され
たときに前記位置認識信号SCの微分信号Scを形成す
る微分回路254と、この微分信号Scが入力されたと
きに、その入力時点の可逆カウンタ252の計数値をセ
ットするレジスタ255と、このレジスタ255のセッ
ト値をCPU21に読み込ませるスリーステートバッフ
ァ256と、微分信号Scが入力されるとセットされC
PU21によりリセットされる判定信号保持部257と
から構成されている。
The robot controller 20 includes an arithmetic processing unit (CPU) 21 for executing various arithmetic processes and various controls.
, Bus 22, memory 23, servo motor control interfaces 24a, 24b, 24c, 24
d and detection circuits 25a, 25b, 25c, and 25d. The CPU 21 has a memory 23 via a bus 22 and a servo motor control interface 2.
4a, 24b, 24c, and 24d are connected, and detection circuits 25a, 25b, 25c, and 25d are connected. Servo motor control interfaces 24a, 24b, 24c and 24d are not shown,
The motors 5, 6, 7, and 8 are electrically connected to each other, and the rotation of each motor 5, 6, 7, and 8 is controlled by the CPU 21.
The rotational drive is controlled based on the instruction. The detection circuit 25a,
Since 25b, 25c, and 25d all have the same circuit configuration, only the configuration of the detection circuit 25a will be described. The detection circuit 25a takes in the detection signals SA and SB from the encoder 15 and detects them to detect the detection signals Sa and SB.
A phase detection circuit 251 capable of outputting one of Sb, a reversible counter 252 for subtracting and counting one of the detection signals Sa and Sb from the phase detection circuit 251, and a count value of the reversible counter 252 to the CPU 21; A three-state buffer 253 to be read, a differentiating circuit 254 for forming a differential signal Sc of the position recognition signal SC when the position recognition signal SC is input, and a differential circuit Sc at the time of input when the differential signal Sc is input. A register 255 for setting the count value of the reversible counter 252, a three-state buffer 256 for reading the set value of the register 255 into the CPU 21, and a register C which is set when the differential signal Sc is input.
And a determination signal holding unit 257 that is reset by the PU 21.

【0017】図2に、ロボット制御装置20の検出回路
25aの具体的構成の一例を示す。この図は、特に、ス
リーステートバッファ253,256、微分回路254
及び判定信号保持部257の構成例について説明してい
る。
FIG. 2 shows an example of a specific configuration of the detection circuit 25a of the robot controller 20. This diagram shows, in particular, the three-state buffers 253 and 256 and the differentiating circuit 254.
The configuration example of the determination signal holding unit 257 has been described.

【0018】位相検出回路251は、エンコーダ15か
らの検出信号SA,SB及びクロックφ0 を取り込み、
検波信号Sa又はSbを可逆カウンタ252に供給でき
るようになっている。可逆カウンタ252は、検波信号
Sa又はSbを計数する回路である。可逆カウンタ25
2の出力は、スリーステートバッファ253及びレジス
タ255に供給されるようになっている。スリーステー
トバッファ253は、CPU21からバス22を介して
与えられるリード信号R0 によって動作し、可逆カウン
タ252の計数値出力をバス22のデータバスに供給す
る。これにより、CPU21は、可逆カウンタ252の
計数値を取り込むことができる。
The phase detection circuit 251 takes in the detection signals SA and SB from the encoder 15 and the clock φ 0 ,
The detection signal Sa or Sb can be supplied to the reversible counter 252. The reversible counter 252 is a circuit that counts the detection signal Sa or Sb. Reversible counter 25
2 is supplied to the three-state buffer 253 and the register 255. The three-state buffer 253 is operated by a read signal R 0 given from the CPU 21 via the bus 22, and supplies the count value output of the reversible counter 252 to the data bus of the bus 22. Thus, the CPU 21 can capture the count value of the reversible counter 252.

【0019】位置認識信号SCは、微分回路254に入
力される。微分回路254は、二つのD型フリップフロ
ップFF1 ,FF2 と、一つのナンド回路NAとを備
え、位置認識信号SCをフリップフロップFF1 のD入
力端子に入力し、フリップフロップFF1 出力端子
258をフリップフロップFF2 のD入力端子に接続
し、フリップフロップFF1 ,FF2 のクロック端子に
クロックφ 1 を与え、フリップフロップFF 1 の出力端
子258、クリップフロップFF 2 の反転出力端子25
からの信号をナンド回路NAの両入力端子に供給し、
ナンド回路NAの出力端子から、微分信号Scを得るよ
うになっている。この微分信号Scは、レジスタ255
と、判定信号保持部257に入力されるようになってい
る。
The position recognition signal SC is input to a differentiating circuit 254. Differentiating circuit 254 includes two D-type flip-flop FF 1, FF 2, and a single NAND circuit NA, enter the position identification signals SC to the D input terminal of the flip-flop FF 1, the flip-flop FF 1 Q Output terminal
Connect 258 to the D input terminal of the flip-flop FF 2, clocked phi 1 to the clock terminal of the flip-flop FF 1, FF 2, the output of the flip-flop FF 1
Child 258, the inverting output terminal of the clip flop FF 2 25
9 is supplied to both input terminals of the NAND circuit NA,
The differential signal Sc is obtained from the output terminal of the NAND circuit NA. This differential signal Sc is stored in the register 255
Is input to the determination signal holding unit 257.

【0020】レジスタ255は、微分信号Scが入力さ
れた時点の可逆カウンタ252の計数値をセットし、こ
れをスリーステートバッファ256に供給している。ス
リーステートバッファ256は、CPU21からバス2
2を介して与えられるリード信号R1 により動作し、レ
ジスタ255の値をバス22のデータバスに供給できる
ようになっている。
The register 255 sets the count value of the reversible counter 252 at the time when the differential signal Sc is input, and supplies this to the three-state buffer 256. The three-state buffer 256 is connected to the bus 2 from the CPU 21.
It operates in response to a read signal R 1 provided through the bus 2, and can supply the value of the register 255 to the data bus of the bus 22.

【0021】また、判定信号保持部257は、フリップ
フロップFF3 と、アンド回路ADと、バッファBFと
を備え、微分信号ScがフリップフロップFF3 に入力
されると、フリップフロップFF3 がセットされ、アン
ド回路ADからの出力信号があるとリセットされるよう
になっている。フリップフロップFF3 の出力端子はバ
ッファBFを介してバス22のデータバスに接続されて
おり、このバッファBFはCPU21からのリード信号
2 により動作して、フリップフロップFF3の出力信
号をバス22のデータバスに供給できるようになってい
る。また、このバッファBFの出力はアンド回路ADの
一方の入力端子に供給されており、またCPU21から
バス22を介して与えられるライト信号W0 はアンド回
路ADの他方の入力端子に供給されている。そして、ア
ンド回路ADは、バッファBFの出力と、ライト信号W
0 との双方が論理積されたときに、クリア信号をフリッ
プフロップFF3のクリア端子に供給できるようになっ
ている。
Further, the determination signal holding unit 257 includes a flip-flop FF 3, and an AND circuit AD, a buffer BF, the differential signal Sc is inputted to the flip-flop FF 3, is set flip-flop FF 3 , Is reset when there is an output signal from the AND circuit AD. The output terminal of the flip-flop FF 3 is connected to the data bus of the bus 22 through a buffer BF, this buffer BF is operated by the read signal R 2 from the CPU 21, the output signal of the flip-flop FF 3 bus 22 Data bus. The output of the buffer BF is supplied to one input terminal of the AND circuit AD, also write signal W 0 supplied through the bus 22 from the CPU21 is supplied to the other input terminal of the AND circuit AD . The AND circuit AD outputs the output of the buffer BF and the write signal W
When both the 0 is logical, so as to supply a clear signal to the clear terminal of the flip-flop FF 3.

【0022】図3に上記位相検出回路251の具体的構
成の一例を示す。該図において、位相検出回路251
は、四つのフリップフロップFF21,FF22,FF23
FF24と、反転入力端子を少なくとも一つを有する四つ
のアンド回路AD21,AD22,AD23,AD24と、二つ
のオア回路OR21,OR22とを備えている。
FIG. 3 shows an example of a specific configuration of the phase detection circuit 251. In the figure, the phase detection circuit 251
Includes four flip-flops FF 21, FF 22, FF 23 ,
And FF 24, and four AND circuits AD 21, AD 22, AD 23 , AD 24 having at least one inverting input terminal, and a two OR circuit OR 21, OR 22.

【0023】エンコーダからの信号SAは、フリップフ
ロップFF21のD入力端子に入力し、フリップフロップ
FF21の出力端子をフリップフロップFF22のD入力端
子に接続し、フリップフロップFF21,FF22のクロッ
ク端子にクロックφ0 を与えられるようになっている。
フリップフロップFF21の出力端子からの信号は、アン
ド回路AD21,AD24,AD27,AD28の入力端子に供
給するとともに、アンド回路AD22,AD23,AD25
AD26の反転入力端子に供給できるようになっている。
フリップフロップFF22の出力端子からの信号は、アン
ド回路AD21,AD22,AD25,AD27の入力端子に供
給するとともに、アンド回路AD23,AD24,AD26
AD27の反転入力端子に供給できるようになっている。
エンコーダからの信号SBは、フリップフロップFF23
のD入力端子に入力し、フリップフロップFF23の出力
端子をフリップフロップFF24のD入力端子に接続し、
フリップフロップFF23,FF24のクロック端子にクロ
ックφ0 を与えられるようになっている。フリップフロ
ップFF23の出力端子からの信号は、アンド回路A
23,AD24,AD25,AD28の入力端子に供給すると
ともに、アンド回路AD21,AD22,AD26,AD27
反転入力端子に供給できるようになっている。フリップ
フロップFF24の出力端子からの信号は、アンド回路A
21,AD24,AD25,AD26の入力端子に供給すると
ともに、アンド回路AD22,AD23,AD27,AD28
反転入力端子に供給できるようになっている。アンド回
路AD21,AD22,AD23,AD24の出力端子はオア回
路OR21の入力端子に接続されており、このオア回路O
21は各入力端子に入力された信号の論理積がとられる
と検波信号Saが出力端子から出力されるようになって
いる。アンド回路AD25,AD26,AD27,AD28の出
力端子はオア回路OR22の入力端子に接続されており、
このオア回路OR22は各入力端子に入力された信号の論
理積がとられると検波信号Saが出力端子から出力され
るようになっている。
The signal SA from the encoder is input to the D input terminal of the flip-flop FF 21, connects the output terminal of the flip-flop FF 21 to the D input terminal of the flip-flop FF 22, the flip-flop FF 21, FF 22 The clock φ 0 can be supplied to the clock terminal.
Signal from the output terminal of the flip-flop FF 21 supplies to the input terminal of the AND circuit AD 21, AD 24, AD 27 , AD 28, the AND circuit AD 22, AD 23, AD 25 ,
AD 26 can be supplied to the inverting input terminal.
Together with the signal from the output terminal of the flip-flop FF 22 is supplied to an input terminal of the AND circuit AD 21, AD 22, AD 25 , AD 27, the AND circuit AD 23, AD 24, AD 26 ,
AD 27 can be supplied to the inverting input terminal.
The signal SB from the encoder is supplied to the flip-flop FF 23
And the output terminal of the flip-flop FF 23 is connected to the D input terminal of the flip-flop FF 24 ,
The clock φ 0 is supplied to the clock terminals of the flip-flops FF 23 and FF 24 . Signal from the output terminal of the flip-flop FF 23 is the AND circuit A
Supplies to the input terminal of the D 23, AD 24, AD 25 , AD 28, can be supplied to the inverting input terminal of the AND circuit AD 21, AD 22, AD 26 , AD 27. Signal from the output terminal of the flip-flop FF 24 is the AND circuit A
Supplies to the input terminal of the D 21, AD 24, AD 25 , AD 26, can be supplied to the inverting input terminal of the AND circuit AD 22, AD 23, AD 27 , AD 28. The output terminals of the AND circuits AD 21 , AD 22 , AD 23 , and AD 24 are connected to the input terminal of the OR circuit OR 21.
R 21 is adapted to the detection signal Sa and the logical product of the signals input to the input terminal is taken is output from the output terminal. The output terminals of the AND circuits AD 25 , AD 26 , AD 27 , and AD 28 are connected to the input terminals of the OR circuit OR 22 ,
The OR circuit OR 22 is adapted to the detection signal Sa and the logical product of the signals input to the input terminal is taken is output from the output terminal.

【0024】図4にロボットの位置・姿勢認識方法を説
明するための説明図を示す。尚、図4はロボット1を上
から見たものである。ベース2には第1アーム3が回動
可能に固定されており、この固定点を原点O1 として当
該原点O1 を通ってX軸とY軸とがとられている。ま
た、第1アーム3には第2アーム4が回動可能に固定さ
れており、この固定点を移動点O2 とする。そして、第
1アーム3の長さを原点O1 と移動点O2 との間の長さ
1 とし、第2アーム4の長さを移動点O2 と移動点O
3 との間の長さL2 とし、かつスプラインシャフト先端
把持部11aに固定した腕11cの先端に取付けたカメ
ラ30と移動点O2までの距離をL2’とする。また、ワ
ーク35のX軸、Y軸に対する位置をXt、Ytとし、
かつカメラ30の座標におけるカメラ30とワーク35
との位置関係をXc、Ycとする。
FIG. 4 is an explanatory diagram for explaining a method of recognizing the position and posture of the robot. FIG. 4 shows the robot 1 viewed from above. The base 2 has a first arm 3 is rotatably fixed, through the origin O 1 and the X-axis and Y-axis are taken this fixed point as the origin O 1. Further, the first arm 3 and second arm 4 is rotatably fixed to the fixed point and the moving point O 2. Then, the length of the first arm 3 and the length L 1 between the origin O 1 and the mobile point O 2, moving point the length of the second arm 4 and the moving point O 2 O
3 and the length L 2 between, and the distance between the camera 30 attached to the tip of the arm 11c fixed to the spline shaft distal clasps 11a to move point O 2 and L 2 '. The positions of the work 35 with respect to the X axis and the Y axis are Xt and Yt, respectively.
And the camera 30 and the workpiece 35 at the coordinates of the camera 30
And Xc and Yc.

【0025】上述したようなロボットの位置・姿勢認識
装置の作用を図1ないし図4を基に図5及び図6を参照
しながら以下に説明する。なお、図5はCPU21の処
理フローである。また、図6は位相検出回路251のタ
イミングチャートであり、横軸に時間を、縦軸に各信号
をそれぞれ示している。また、この実施例では、カメラ
30は、本来、移動点O3 を中心として回動可能であ
り、かつXY平面に対して直交座標系方向に移動可能で
あるが、説明を簡単にするためにカメラ30は第2アー
ム4に固定した状態で説明することにする。したがっ
て、ロボット制御装置20には、エンコーダ15及びエ
ンコーダ16からの各検出信号SA,SBを処理するも
のとする。
The operation of the above-described robot position / posture recognition apparatus will be described below with reference to FIGS. 1 to 4 and FIGS. 5 and 6. FIG. 5 is a processing flow of the CPU 21. FIG. 6 is a timing chart of the phase detection circuit 251. The horizontal axis indicates time, and the vertical axis indicates each signal. Further, in this embodiment, the camera 30 is essentially a rotatable about the moving point O 3, and it is movable in the orthogonal coordinate system direction to the XY plane, in order to simplify the description The camera 30 will be described as being fixed to the second arm 4. Therefore, the robot control device 20 processes the detection signals SA and SB from the encoder 15 and the encoder 16.

【0026】まず、ロボット制御装置20のCPU21
からの指令に基づき、サーボモータコントロールインタ
ーフェース24a及び24bは、第1モータ5及び第2
モータ6を回転駆動する。これにより、第1モータ5が
回転して第1減速機5Aを介して第1アーム3を第1モ
ータ5の回転方向に応じた方向に移動させる。また、第
2モータ6が回転して第2減速機6Aを介して第2アー
ム4を第2モータ6の回転方向に応じた方向に移動させ
る。これら第1モータ5及び第2モータ6の回転数及び
回転方向はエンコーダ15及びエンコーダ16により検
出される。エンコーダ15からの検出信号SA,SB
は、検出回路25aに入力される。また、エンコーダ1
6からの検出信号SA,SBは、検出回路25bに入力
される。
First, the CPU 21 of the robot controller 20
, The servo motor control interfaces 24a and 24b connect the first motor 5 and the second
The motor 6 is driven to rotate. As a result, the first motor 5 rotates to move the first arm 3 via the first reduction gear 5A in a direction corresponding to the rotation direction of the first motor 5. Further, the second motor 6 rotates to move the second arm 4 in a direction corresponding to the rotation direction of the second motor 6 via the second reduction gear 6A. The rotation speed and the rotation direction of the first motor 5 and the second motor 6 are detected by the encoder 15 and the encoder 16. Detection signals SA and SB from encoder 15
Is input to the detection circuit 25a. Also, encoder 1
6 are input to the detection circuit 25b.

【0027】この検出信号SA,SBは、検出回路25
aの位相検出回路251により位相検出される。すなわ
ち、図6に示すように、クロックφ0 が位相検出回路2
51の各フリップフロップFF21,FF22, FF23,F
24のクロック端子に入力されているときに、期間Tp
において図示のようなタイミングの検出信号SA,SB
が入力されると、フリップフロップFF21,FF22,
23,FF24、アンド回路AD21〜AD28の作用により
オア回路OR21から検波信号Saが得られ、また、期間
Tmにおいて図示のようなタイミングの検出信号SA,
SBが入力されると、フリップフロップFF21,FF
22, FF23,FF24、アンド回路AD21〜AD28の作用
によりオア回路OR22から検波信号Sbが得られる(図
6)。
The detection signals SA and SB are supplied to the detection circuit 25
The phase is detected by the phase detection circuit 251 of FIG. That is, as shown in FIG. 6, the clock phi 0 is the phase detector circuit 2
Each flip-flop FF 21 of 51, FF 22, FF 23, F
When it is input to the clock terminal of the F 24, the period Tp
, The detection signals SA, SB at the timings as shown
When it is inputted, the flip-flop FF 21, FF 22, F
F 23, FF 24, the AND circuit AD 21 acts detection signal Sa is obtained from the OR circuit OR 21 by the to AD 28, The detection signal SA of the timing as shown in the period Tm,
When SB is input, flip-flops FF 21 , FF 21
22, FF 23, FF 24, the detection signal Sb is obtained from the OR circuit OR 22 by the action of the AND circuit AD 21 to AD 28 (FIG. 6).

【0028】このような検波信号Sa,Sbは、可逆カ
ウンタ252に入力される。可逆カウンタ252では、
例えば検波信号Saが入力されたときに加算し、検波信
号Sbが入力されたときに減算する。
The detection signals Sa and Sb are input to the reversible counter 252. In the reversible counter 252,
For example, the addition is performed when the detection signal Sa is input, and the addition is performed when the detection signal Sb is input.

【0029】同様に、エンコーダ16からの検出信号S
A,SBは、検出回路25bにおいて、検出回路25a
と同様に処理される。
Similarly, the detection signal S from the encoder 16
A and SB are detected by the detection circuit 25a in the detection circuit 25b.
Is processed in the same way as

【0030】ここで、CPU21はタイマー割込みがか
かると、図5に示すフローチャートの処理に移行する。
CPU21は、まず、検出回路25a、25bの可逆カ
ウンタ252の値を読む処理をする(ステップ50
1)。これは、CPU21が、まず、n=1としてリー
ド信号R0 をバス22を介してスリーステートバッファ
253aに与えると、スリーステートバッファ253a
がアクティブになって、可逆カウンタ252aの計数値
Rnをバス22のデータバスに乗せるので、CPU21
はこれを(計数値Rn)読み込むことで読み込み処理が
終了する。次に、CPU21は、n=2としてリード信
号R1 をバス22を介してスリーステートバッファ(図
示せず)に与えると、スリーステートバッファがアクテ
ィブになって、可逆カウンタ(図示せず)の計数値R2
をバス22のデータバスに乗せるので、CPU21はこ
れを(計数値R2 )読み込むことで読み込み処理が終了
する。このように、必要な外部データを読み込む処理が
終了すると、次に計算処理に移行する。
Here, when a timer interrupt occurs, the CPU 21 shifts to the processing of the flowchart shown in FIG.
First, the CPU 21 reads the value of the reversible counter 252 of the detection circuits 25a and 25b (step 50).
1). This is because the CPU 21 first supplies the read signal R0 to the three-state buffer 253a via the bus 22 with n = 1, and the three-state buffer 253a
Becomes active and puts the count value Rn of the reversible counter 252a on the data bus of the bus 22, so that the CPU 21
Is read (count value Rn), and the reading process ends. Then, CPU 21, given a read signal R 1 as n = 2 in the three-state buffer through the bus 22 (not shown), the three-state buffer is activated, a total of reversible counter (not shown) Number R 2
Is loaded on the data bus of the bus 22, so that the CPU 21 reads this (count value R 2 ), thereby completing the reading process. As described above, when the process of reading necessary external data is completed, the process proceeds to a calculation process.

【0031】つぎに、CPU21は、第1アーム3の移
動量の変化分だけ取り出す処理を実行する(ステップ5
02)。これは、今回読み込んだ計数値R1 からメモリ
ー23に記憶されている前回の可逆カウンタ252の計
数値Z1 を差引き、その演算結果をD1 とすることによ
り、第1アーム3の移動量(変化分)が求まる。同様
に、D2 =R2 −Z2 の計算をすることにより、第2ア
ーム4の移動量(変化分)が求まる。
Next, the CPU 21 executes a process of taking out a change in the amount of movement of the first arm 3 (step 5).
02). The movement amount of the first arm 3 is calculated by subtracting the previous count value Z 1 of the reversible counter 252 stored in the memory 23 from the currently read count value R 1 , and calculating the result as D 1. (Change) is obtained. Similarly, by calculating D 2 = R 2 −Z 2 , the movement amount (change amount) of the second arm 4 is obtained.

【0032】ついで、CPU21は、移動量を求める処
理をする(ステップ503)。まず、メモリー23の領
域P1に記憶されているデータに演算結果D1を加算する
(P1 =P1 +D1 )。同様に、P2 =P2 +D2 の計
算をする。これにより、P1及びP2 を求めることがで
きる。
Next, the CPU 21 performs a process for obtaining the movement amount (step 503). First, the operation result to the data stored in the area P 1 memory 23 adds D 1 (P 1 = P 1 + D 1). Similarly, the calculation of P 2 = P 2 + D 2 is performed. Thereby, P 1 and P 2 can be obtained.

【0033】その後、CPU21は、今回読み込んだ計
数値R1 、R2 をZ1 、Z2 としてメモリー23の各エ
リアに記憶させる(ステップ504)。
Thereafter, the CPU 21 stores the currently read count values R 1 and R 2 as Z 1 and Z 2 in each area of the memory 23 (step 504).

【0034】この処理が終了すると、次に、CPU21
は、第1アーム3の角度θ1 及び第2アーム4と第1ア
ーム3のなす角度θ2 を算出する処理を実行する(ステ
ップ505)。これは、第1減速機5Aの減速比jaか
らθ1 =P1 /jaの計算をすることにより第1アーム
3のX軸になす角度θ1 を求めるとともに、第2減速機
6Aの減速比jbからθ2 =P2 /jaの計算をするこ
とにより第2アーム4が第1アーム3に対してなす角度
θ1 を求めている。
When this processing is completed, the CPU 21
Performs a process of calculating the angle theta 1 and the second arm 4 of the first arm 3 the angle theta 2 of the first arm 3 (step 505). This is because the angle θ 1 formed by the first arm 3 with respect to the X axis is obtained by calculating θ 1 = P 1 / ja from the reduction ratio ja of the first reduction gear 5A, and the reduction ratio of the second reduction gear 6A. By calculating θ 2 = P 2 / ja from jb, the angle θ 1 formed by the second arm 4 with respect to the first arm 3 is obtained.

【0035】このようにして各角度θ1 、θ2 が算出さ
れたら、CPU21は、次の数式1を使用して第2アー
ム4の先端の移動点O3 の位置の計算をする(ステップ
506)。
When the angles θ 1 and θ 2 have been calculated in this way, the CPU 21 calculates the position of the moving point O 3 of the tip of the second arm 4 using the following equation (step 506). ).

【0036】[0036]

【数1】 このようにしてX,Yを算出した後に、CPU21は、
判定信号保持部257の状態を読みにゆく(ステップ5
07)。これは、CPU21からバス22を介してバッ
ファBFにリード信号R2 を与えることにより、バッフ
ァBFをアクティブ状態にし、フリップフロップFF2
の出力端子の信号をバス22のデータバスを介してCP
U21に取り込むことにより得られる。この時点では、
フリップフロップFF3 の値が論理“0”であるので
(ステップ507;N)、CPU21はタイマールーチ
ンを抜けて、他の処理に移行する。
(Equation 1) After calculating X and Y in this way, the CPU 21
The state of the determination signal holding unit 257 is read (step 5).
07). This is because the buffer BF is activated by applying a read signal R 2 to the buffer BF from the CPU 21 via the bus 22, and the flip-flop FF 2
Of the output terminal of CP via the data bus of bus 22
It is obtained by taking it into U21. At this point,
Since the value of the flip-flop FF 3 is a logic "0" (step 507; N), CPU 21 is exits the timer routine proceeds to other processing.

【0037】上述のような処理をタイマーからの指令に
より一定時間毎に処理することにより、第1アーム3及
び第2アーム4のおおまかな位置、姿勢を求めることが
できる。
By performing the above-described processing at regular intervals in accordance with a command from a timer, the approximate position and posture of the first arm 3 and the second arm 4 can be obtained.

【0038】ここで、第1アーム3及び第2アーム4の
大まかな位置、姿勢が規定された領域(カメラ30によ
る撮像可能な領域)に入った時点で、CPU21はカメ
ラ30に対してシャッター閉の指令を出力する。このシ
ャッター閉の指令によりカメラ30のシャッターが閉じ
ると同時に、シャッター閉信号により位置認識信号SC
が形成される。この位置認識信号SCは、検出回路25
a,25b,25c,25dに入力される。例えば、検
出回路25aにおいて、微分回路254では、二つのフ
リップフロップFF1 ,FF2 の各クロック端子に常時
クロックφ1 が供給されており、位置認識信号SCがフ
リップフロップFF1 に入力されると、二つのフリップ
フロップFF1 ,FF2 とナンド回路NAの作用により
位置認識信号SCの立ち上がり部分が微分されてナンド
回路NAの出力端子から微分信号Scが出力される。こ
の微分信号Scがレジスタ255に供給されると、レジ
スタ255は可逆カウンタ252のその時点の計数値を
セットする。これにより、レジスタ255には、その時
点の値を保持したままとなる。
At this point, the CPU 21 closes the shutter of the camera 30 when the first arm 3 and the second arm 4 enter an area where the rough position and posture are roughly defined (an area where the camera 30 can capture an image). Is output. At the same time that the shutter of the camera 30 is closed by the shutter close command, the position recognition signal SC is obtained by the shutter close signal.
Is formed. This position recognition signal SC is supplied to the detection circuit 25
a, 25b, 25c and 25d. For example, in the detection circuit 25a, the differential circuit 254, always clock phi 1 to the respective clock terminals of the two flip-flops FF 1, FF 2 are supplied, the position identification signals SC are input to the flip-flop FF 1 The rising portion of the position recognition signal SC is differentiated by the operation of the two flip-flops FF 1 and FF 2 and the NAND circuit NA, and the differentiated signal Sc is output from the output terminal of the NAND circuit NA. When the differential signal Sc is supplied to the register 255, the register 255 sets the current count value of the reversible counter 252. As a result, the value at that time is held in the register 255.

【0039】一方、微分信号Scは判定信号保持部25
7にも供給される。判定信号保持部257では、微分信
号Scが入力されると、フリップフロップFF3 がセッ
トされることになる。
On the other hand, the differential signal Sc is stored in the judgment signal
7 as well. The decision signal holding unit 257, the differential signal Sc is input, so that the flip-flop FF 3 is set.

【0040】このような状態でタイマー割込みがかかる
と、CPU21は、図5に示すフローチャートを上述の
ように処理し(ステップ501〜506)、ついでフリ
ップフロップFF3 の出力が論理“1”になっているか
を判定する(ステップ507)。すなわち、CPU21
は、判定信号保持部257のバッファBFにリード信号
2 を与え、バッファBFをアクティブにしてフリップ
フロップFF3 の内容をバス22を介してCPU21に
読み込む。この場合にフリップフロップFF3がセット
されているから、フリップフロップFF3 の出力端子の
データは論理“1”となっているので(ステップ50
7;Y)、CPU21は、検出回路25aのレジスタ2
55の値C1 と、検出回路25bのレジスタの値C2
を読み込むとともに、先に処理したステップ501〜5
06で得たデータを使用して数式2及び数式3の計算を
する(ステップ508)。
[0040] When the timer interrupt is applied in this state, CPU 21 processes a flowchart shown in FIG. 5 as described above (step 501 through 506), then the output of the flip-flop FF 3 becomes logic "1" Is determined (step 507). That is, the CPU 21
Gives a read signal R 2 in the buffer BF of the determination signal holding unit 257, it reads the contents of the flip-flop FF 3 in CPU21 through the bus 22 and activates the buffer BF. Since the flip-flop FF 3 is set in this case, the data output terminal of the flip-flop FF 3 is a logic "1" (step 50
7; Y), the CPU 21 operates the register 2 of the detection circuit 25a.
Reads in the value C 1 of 55, and a value C 2 of the register of the detection circuit 25b, Step treated previously 501-5
Formulas 2 and 3 are calculated using the data obtained in step 06 (step 508).

【0041】[0041]

【数2】 (Equation 2)

【数3】 このようにしてX’,Y’を求めることができる。その
後に、CPU21はバス22を介して判定信号保持部2
57のアンド回路ADにラント信号W0 を出力すると、
アンド回路ADで論理積がとられてフリップフロップF
3 をリセットする(ステップ508)。
(Equation 3) In this way, X 'and Y' can be obtained. After that, the CPU 21 sends the determination signal holding unit 2 via the bus 22.
When the runt signal W 0 is output to the AND circuit AD 57,
AND operation is performed by the AND circuit AD, and the flip-flop F
The F 3 is reset (step 508).

【0042】このように、例えば画像データによりロボ
ット1が把持するべき位置が画像の座標系内で求まった
場合、メインルーチンにデータ取得を知らせるため、ハ
ンドシェークビットの操作を行う(ステップ509)。
そして、CPU21は、数式4を使用してカメラ座標の
位置、姿勢の情報をロボット座標に変換する。
As described above, for example, when the position to be held by the robot 1 is determined in the coordinate system of the image from the image data, the handshake bit is operated to notify the main routine of the data acquisition (step 509).
Then, the CPU 21 converts the information of the position and the posture of the camera coordinates into the robot coordinates by using Expression 4.

【0043】[0043]

【数4】 上述したように数式4により演算することでロボット1
の把持位置を算出することができる。したがって、本実
施例では、撮像点上を通過するだけで撮像から目標位置
の算出をおこなうことが可能なため、作業が高速化でき
る。
(Equation 4) As described above, the robot 1
Can be calculated. Therefore, in the present embodiment, since the target position can be calculated from the imaging simply by passing over the imaging point, the operation can be speeded up.

【0044】なお、上記実施例では、位置認識信号SC
が入力されたことを確実に検知するため、判定信号保持
部257を設け、位置認識信号SCが入力されたときに
判定信号保持部257をセットしておき、CPU21の
タイマー割込み時の処理フローの処理で判定信号保持部
257のセット/リセットを判定し、その後の処理を実
行しているが、CPU21側でシャッター閉指令(撮像
指令)を出したことが分かっているので、それを基にレ
ジスタ255の値を読みにゆくようにしてもよい。この
ように構成する場合には、判定信号保持部257は不要
となる。
In the above embodiment, the position recognition signal SC
In order to reliably detect the input of the position recognition signal SC, a determination signal holding unit 257 is provided, and when the position recognition signal SC is input, the determination signal holding unit 257 is set. In the processing, the setting / resetting of the determination signal holding unit 257 is determined, and the subsequent processing is executed. However, since it is known that the CPU 21 has issued the shutter close command (imaging command), the register is set based on the command. The value of 255 may be read. In the case of such a configuration, the determination signal holding unit 257 becomes unnecessary.

【0045】図7に本発明の応用例を示す。この応用例
は、ロボット1のスプラインシャフト11bの先端側に
レーザセンサ40を固定してワーク35までの距離を測
定できるようにしたものであり、スプラインシャフト1
1bが下降してワーク35との間で一定の距離に達した
ところで、位置認識信号SCを出力できるようにしたも
のである。
FIG. 7 shows an application example of the present invention. In this application example, the laser sensor 40 is fixed to the tip side of the spline shaft 11b of the robot 1 so that the distance to the workpiece 35 can be measured.
When 1b descends and reaches a certain distance from the work 35, the position recognition signal SC can be output.

【0046】即ち、レーザセンサ40にはセンサ処理装
置41が接続されている。このセンサ処理装置41は、
レーザセンサ40を駆動するとともに、レーザセンサ4
0からの検出信号を処理してレーザセンサ40とワーク
35との距離を、デジタルデータあるいは距離に応じた
距離検出電圧信号VL として出力できるようになってい
る。センサ処理装置41からの距離検出電圧信号V
L は、コンパレータ42の一方の入力端子に入力され
る。コンパレータ42の他方の入力端子は、比較用電圧
REF を形成する可変抵抗機43の可変端子に接続され
ている。可変抵抗機43は、比較用電圧VREF を可変で
きる。また、コンパレータ42は、比較用電圧VREF
り大きな距離検出電圧信号VL が入力されたときにはそ
の出力端子から“H”を出力し、前記以外の距離検出電
圧信号VL が入力されたときにはその出力端子から
“L”を出力するようになっている。
That is, a sensor processing device 41 is connected to the laser sensor 40. This sensor processing device 41
While driving the laser sensor 40, the laser sensor 4
By processing the detection signal from 0, the distance between the laser sensor 40 and the work 35 can be output as digital data or a distance detection voltage signal VL corresponding to the distance. Distance detection voltage signal V from sensor processing device 41
L is input to one input terminal of the comparator 42. The other input terminal of the comparator 42 is connected to a variable terminal of a variable resistor 43 forming a comparison voltage VREF . The variable resistor 43 can change the comparison voltage V REF . Further, the comparator 42 outputs “H” from its output terminal when a distance detection voltage signal VL larger than the comparison voltage V REF is input, and outputs the “H” when a distance detection voltage signal VL other than the above is input. "L" is output from the output terminal.

【0047】いま、レーザセンサ40とワーク35が一
定の距離だけ近づいたときに、センサ処理装置41から
一定距離に応じた距離検出電圧信号VL が出力される。
この距離検出電圧信号VL がコンパレータ42の一方の
入力端子に入力されると、予め設定しておいた比較用電
圧VREF より大きくなるため、コンパレータ42の出力
端子から“H”が出力される。このコンパレータ42の
出力端子から出力された“H”は、位置認識信号SCと
して検出回路25a,25b,25c,25dに入力さ
れる。これにより、各検出回路25a,25b,25
c,25dのレジスタ255には、その時点の可逆カウ
ンタ252の値がセットされる。また、各検出回路25
a,25b,25c,25dの判定信号保持部257
は、“1”にセットされることになる。したがって、移
動前に判定信号保持部257をリセットしておけば、上
記ロボット1を移動中に正確な位置が認識できることに
なる。
When the laser sensor 40 and the work 35 approach each other by a certain distance, the sensor processing device 41 outputs a distance detection voltage signal VL corresponding to the certain distance.
When the distance detection voltage signal VL is input to one input terminal of the comparator 42, the voltage becomes higher than a preset comparison voltage VREF , so that "H" is output from the output terminal of the comparator 42. . "H" output from the output terminal of the comparator 42 is input to the detection circuits 25a, 25b, 25c, and 25d as the position recognition signal SC. Thereby, each detection circuit 25a, 25b, 25
The values of the reversible counter 252 at that time are set in the registers 255 of c and 25d. Further, each detection circuit 25
a, 25b, 25c, 25d determination signal holding unit 257
Is set to "1". Therefore, if the determination signal holding unit 257 is reset before the movement, the accurate position can be recognized while the robot 1 is moving.

【0048】もし、レーザセンサ40によりワーク35
の位置が認識されなかった場合には、センサ処理装置4
1から距離検出電圧信号VL は比較用電圧VREF より低
いため、コンパレータ42の出力(位置認識信号SC)
は“L”のままであり、第1アーム3及び第2アーム4
の移動完了後も判定信号保持部257はクリアされたま
まとなる。したがって、第1アーム3及び第2アーム4
の予定移動範囲を過ぎてもなお各検出回路25a,25
b,25c,25dの判定信号保持部257がリセット
状態であったときに、CPU21がこれらを読み取るこ
とにより、認識に異常があったことを知ることができ
る。なお、この応用例の場合には、位置認識信号SCが
入力されたことを保持しておくため、判定信号保持部2
57を必ず設けておく必要がある。
If the work 35 is detected by the laser sensor 40,
Is not recognized, the sensor processing device 4
Since the distance detection voltage signal VL from 1 is lower than the comparison voltage VREF , the output of the comparator 42 (position recognition signal SC)
Remains at “L”, and the first arm 3 and the second arm 4
After the completion of the movement, the determination signal holding unit 257 remains cleared. Therefore, the first arm 3 and the second arm 4
Of each detection circuit 25a, 25
When the determination signal holding units 257 of b, 25c, and 25d are in the reset state, the CPU 21 reads these, so that it is possible to know that the recognition is abnormal. In the case of this application example, in order to hold that the position recognition signal SC has been input, the determination signal holding unit 2
57 must be provided.

【0049】[0049]

【0050】[0050]

【発明の効果】 以上の説明より明らかなように、 請求項
記載の発明によれば、一つのセンサに対して、位相検
出回路、可逆カウンタ、レジスタからなる検出回路を設
け、かつ各センサに対してそれぞれ検出回路を設け、か
つ前記各検出回路における可逆カウンタの計数値を演算
処理装置が読み込みその計数値からアームの移動量を算
出し、かつ撮像タイミングの可逆カウンタの計数値をレ
ジスタにセットし、そのセット値及び撮像データから得
られるデータとロボットの座標系との関係とを求めるよ
うにしたので、ロボットを停止させることなくロボット
の位置、姿勢を精度良くかつ高速に求めることが可能な
ロボットの位置・姿勢認識装置を得ることができる。
As is apparent from the above description, the claims
According to the invention 1, wherein, for one single sensor, the phase detection circuit, the reversible counter is provided with a detection circuit comprising a register, and providing respective detector for each sensor, and the reversible counter in the detection circuits The arithmetic processing unit reads the count value of (1), calculates the amount of movement of the arm from the count value, and sets the count value of the reversible counter of the imaging timing in a register. The data obtained from the set value and the imaging data and the coordinates of the robot Since the relationship with the system is obtained, it is possible to obtain a robot position / posture recognition device capable of accurately and quickly obtaining the position and posture of the robot without stopping the robot.

【0051】さらに、請求項記載の発明では、請求項
記載の発明における検出回路に、判定信号保持部を付
加し、認識信号が入力されたことをセットしておいて、
演算処理装置に認識信号が入力されたことを知らせるよ
うにしたので、演算処理装置とは同期しない認識信号で
も確実に各レジスタのセット値を演算処理装置に取り込
むことができる。
Further, according to the second aspect of the present invention,
A detection signal holding unit is added to the detection circuit according to the first aspect of the invention, and it is set that a recognition signal has been input.
Since the recognition signal is input to the arithmetic processing unit, the set value of each register can be reliably taken into the arithmetic processing unit even with a recognition signal that is not synchronized with the arithmetic processing unit.

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

【図1】本発明のロボットの位置・姿勢認識方法を実現
するロボットの位置・姿勢認識装置の実施例を示すブロ
ック図である。
FIG. 1 is a block diagram showing an embodiment of a robot position / posture recognition apparatus for realizing a robot position / posture recognition method according to the present invention.

【図2】同ロボットの位置・姿勢認識装置の具体的構成
例を示すブロック図である。
FIG. 2 is a block diagram showing a specific configuration example of a position / posture recognition device of the robot.

【図3】同位相検出回路の具体的構成例を示す回路図で
ある。
FIG. 3 is a circuit diagram showing a specific configuration example of the phase detection circuit.

【図4】同ロボットの位置・姿勢認識方法を説明するた
めの説明図である。
FIG. 4 is an explanatory diagram for explaining a position / posture recognition method of the robot.

【図5】同ロボットの位置・姿勢認識装置の動作を示す
フローチャートである。
FIG. 5 is a flowchart showing an operation of the position / posture recognition device of the robot.

【図6】同位相検出回路の動作を説明するためのタイミ
ングチャートである。
FIG. 6 is a timing chart for explaining the operation of the phase detection circuit.

【図7】同応用例を示すブロック図である。FIG. 7 is a block diagram showing the application example.

【符号の説明】[Explanation of symbols]

1 ロボット 2 ベース 3 第1アーム 4 第2アーム 5 第1モータ 6 第2モータ 7 第3モータ 8 第4モータ 15 エンコーダ(センサ) 16 エンコーダ(センサ) 17 エンコーダ(センサ) 18 エンコーダ(センサ) 20 ロボット制御装置 21 演算処理装置(CPU) 25a,25b,25c,25d 検出回路 251 位相検出回路 252 可逆カウンタ 255 レジスタ 257 判定信号保持部 Reference Signs List 1 robot 2 base 3 first arm 4 second arm 5 first motor 6 second motor 7 third motor 8 fourth motor 15 encoder (sensor) 16 encoder (sensor) 17 encoder (sensor) 18 encoder (sensor) 20 robot Control device 21 Arithmetic processing unit (CPU) 25a, 25b, 25c, 25d Detection circuit 251 Phase detection circuit 252 Reversible counter 255 Register 257 Judgment signal holding unit

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) B25J 13/08 B25J 13/00 G05B 19/19 G05D 3/12 Continuation of the front page (58) Field surveyed (Int. Cl. 7 , DB name) B25J 13/08 B25J 13/00 G05B 19/19 G05D 3/12

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 アームの角度を検出して検出信号を出力
するセンサと、該センサからの検出信号を位相検出して
検波信号を得る位相検出回路、前記位相検出回路からの
検波信号を可逆計数する可逆カウンタ、ロボットアーム
の先端に設けられた視覚認識装置がロボット制御装置の
計算周期とは関係なく実際に撮像を行う撮像タイミング
で発生するシャッター閉信号により形成される位置認識
信号により前記可逆カウンタの計数値をセットするレジ
スタからなる検出回路と、各アーム毎の検出回路におけ
る可逆カウンタの計数値を読み込みその計数値からアー
ムの移動量を算出するとともに、前記各アーム毎の検出
回路におけるレジスタにセットされた値を読み込みその
セット値及び撮像データから得られるデータとロボット
の座標系との関係を求める演算処理装置とを備えたこと
を特徴とするロボットの位置・姿勢認識装置。
1. A sensor that detects an angle of an arm and outputs a detection signal, a phase detection circuit that detects a phase of the detection signal from the sensor to obtain a detection signal, and a reversible count of the detection signal from the phase detection circuit. A reversible counter, a visual recognition device provided at the tip of the robot arm, the reversible counter based on a position recognition signal formed by a shutter closing signal generated at an imaging timing that actually performs imaging regardless of the calculation cycle of the robot controller. A detection circuit consisting of a register for setting the count value of each arm, and reading the count value of a reversible counter in the detection circuit for each arm, calculating the amount of movement of the arm from the count value, and setting a register in the detection circuit for each arm. The set values are read and the relationship between the set values and the data obtained from the imaging data and the robot coordinate system is read. A position / posture recognition device for a robot, comprising:
【請求項2】 アームの角度を検出して検出信号を出力
するセンサと、該センサからの検出信号を位相検出して
検波信号を得る位相検出回路、前記位相検出回路からの
検波信号を可逆計数する可逆カウンタ、ロボットアーム
の先端に設けられた視覚認識装置がロボット制御装置の
計算周期とは関係なく実際に撮像を行う撮像タイミング
で発生するシャッター閉信号により形成される認識信号
により前記可逆カウンタの計数値をセットするレジス
タ、撮像タイミングで発生する認識信号によりセット状
態になる判定信号保持部からなる検出回路と、各アーム
毎の検出回路における可逆カウンタの計数値を読み込み
その計数値からアームの移動量を算出するとともに、前
記判定信号保持部がセット状態のときに前記レジスタに
セットされた値を読み込み、そのセット値及び撮像デー
タから得られるデータとロボットの座標系との関係を求
める演算処理装置とを備えたことを特徴とするロボット
の位置・姿勢認識装置。
2. A sensor for detecting an angle of an arm and outputting a detection signal, a phase detection circuit for detecting a phase of the detection signal from the sensor to obtain a detection signal, and reversibly counting the detection signal from the phase detection circuit. The reversible counter, a visual recognition device provided at the tip of the robot arm, performs the actual imaging independently of the calculation cycle of the robot control device. A detection circuit including a register for setting a count value, a determination signal holding unit that is set by a recognition signal generated at an imaging timing, and reading a count value of a reversible counter in a detection circuit for each arm, and moving the arm from the count value. Calculate the amount and read the value set in the register when the judgment signal holding unit is in the set state. A position and posture recognition device for a robot, comprising: a calculation processing device for determining a relationship between data obtained from the set value and the imaging data and a coordinate system of the robot.
JP05169828A 1993-06-17 1993-06-17 Robot position / posture recognition device Expired - Fee Related JP3123859B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05169828A JP3123859B2 (en) 1993-06-17 1993-06-17 Robot position / posture recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05169828A JP3123859B2 (en) 1993-06-17 1993-06-17 Robot position / posture recognition device

Publications (2)

Publication Number Publication Date
JPH071368A JPH071368A (en) 1995-01-06
JP3123859B2 true JP3123859B2 (en) 2001-01-15

Family

ID=15893669

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05169828A Expired - Fee Related JP3123859B2 (en) 1993-06-17 1993-06-17 Robot position / posture recognition device

Country Status (1)

Country Link
JP (1) JP3123859B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7421940B2 (en) 2020-01-31 2024-01-25 株式会社吉野工業所 Application container

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0798406A (en) * 1994-04-28 1995-04-11 Seikosha Co Ltd Production of color filter
JP5803155B2 (en) * 2011-03-04 2015-11-04 セイコーエプソン株式会社 Robot position detection device and robot system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7421940B2 (en) 2020-01-31 2024-01-25 株式会社吉野工業所 Application container

Also Published As

Publication number Publication date
JPH071368A (en) 1995-01-06

Similar Documents

Publication Publication Date Title
CN106363460B (en) Working piece positioning device for positioning workpiece
CN106272416A (en) Feel based on power and the robot slender axles Fine Boring system and method for vision
EP0060563A1 (en) Industrial articulated robot linear interpolation control device
Pititeeraphab et al. Robot-arm control system using LEAP motion controller
JP2004195621A (en) Three-dimensional measuring device
CN105930775B (en) Facial orientation recognition methods based on sensitivity parameter
WO2021117479A1 (en) Information processing device, method, and program
JPS58208807A (en) Teaching device of robot
JP3123859B2 (en) Robot position / posture recognition device
CN110891741A (en) Control of a robot cell
JP4303411B2 (en) Tracking method and tracking system
WO1999007200A2 (en) System for continuous motion digitalprobe routing
JP2875941B2 (en) Robot program creation support system
JPH0423015A (en) Control system for recognition of object
JPS62199383A (en) Control system of robot
JP2522390B2 (en) How to check the operating status in position control
JPS61159391A (en) Method of controlling industrial robot
JPH04148307A (en) Detecting method for working force for force control robot
KR100224862B1 (en) Apparatus and method for callibration of robot arm
JPS63245507A (en) Manipulator driving device
JPH0346272B2 (en)
JPH04119405A (en) Position and rotation angle detector, its indicating tool, and robot operation teaching device using the tool
JP2650036B2 (en) Calculation method of center coordinates of long hole or square hole by 3D measurement robot
JPH04123205A (en) Initial position detector for target to be controlled
JP2000242407A (en) Method and device for inputting data

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees