JP4743699B2 - POSITION CONTROL DEVICE, POSITION CONTROL METHOD, AND POSITION CONTROL PROGRAM - Google Patents
POSITION CONTROL DEVICE, POSITION CONTROL METHOD, AND POSITION CONTROL PROGRAM Download PDFInfo
- Publication number
- JP4743699B2 JP4743699B2 JP2005325277A JP2005325277A JP4743699B2 JP 4743699 B2 JP4743699 B2 JP 4743699B2 JP 2005325277 A JP2005325277 A JP 2005325277A JP 2005325277 A JP2005325277 A JP 2005325277A JP 4743699 B2 JP4743699 B2 JP 4743699B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- length
- target
- error
- data format
- 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
Links
Images
Landscapes
- Manipulator (AREA)
Description
本発明は、関節を介して複数のリンクを連結したリンク機構の所定部位、例えば、先端部を目標3次元位置及び目標方向に制御する位置制御装置、位置制御方法及び位置制御プログラムに関する。 The present invention relates to a position control device, a position control method, and a position control program for controlling a predetermined portion of a link mechanism in which a plurality of links are connected via joints, for example, a tip portion in a target three-dimensional position and a target direction.
従来のロボットアームの制御方式としては、スレーブアームと同じ軸構成等を有するマスターアームを操作者が操作してスレーブアームを制御するマスターアーム方式、操作者の腕と手の主要部(各関節)にセンサを装着して操作者の腕と手の関節の動きを検出してロボットアームを制御するモーションキャプチャー方式、操作者の手首・手の甲等に付けた3次元位置方向センサにより操作者の手首・手の甲の3次元位置及び方向を検出し、このデータを用いてアーム(リンク)の各関節角度を求める逆変換を行ってロボットアームを制御する逆変換方式等の種々の方式がある。 As a conventional robot arm control method, a master arm method in which an operator operates a master arm having the same axis configuration as the slave arm to control the slave arm, and the main part of the operator's arm and hand (each joint) A motion capture system that controls the robot arm by detecting movements of the operator's arm and hand joints by attaching a sensor to the operator's wrist, and a 3D position / direction sensor attached to the operator's wrist, back of the hand, etc. There are various methods such as a reverse conversion method for detecting the three-dimensional position and direction of the back of the hand and performing reverse conversion to obtain each joint angle of the arm (link) using this data to control the robot arm.
上記のマスターアーム方式では、操作者側には、制御されるスレーブアームだけでなく、マスターアームが必要となり、システムが重装備になる。また、モーションキャプチャー方式では、操作者の腕と手の複数箇所にセンサを装着する必要があり、操作者にとって煩わしいものとなる。 In the above master arm system, not only the slave arm to be controlled but also the master arm is required on the operator side, and the system becomes heavy equipment. In addition, in the motion capture method, it is necessary to attach sensors to a plurality of locations of the operator's arm and hand, which is troublesome for the operator.
一方、逆変換方式では、操作者は手の甲等に1個のセンサのみを装着するだけで済み、操作者にとって煩わしさがないが、操作者の手首の位置と方向データから各関節角度を求める逆変換が必要となる。この逆変換では、人の腕のような高い自由度(6自由度以上)を持つ軸構成における各関節角度を求める必要があるため、逆変換が非線形連立方程式となり、複雑な計算となる。 On the other hand, in the reverse conversion method, the operator only has to install one sensor on the back of the hand and the like, and there is no trouble for the operator. However, the inverse of obtaining each joint angle from the wrist position and direction data of the operator. Conversion is required. In this inverse transformation, since it is necessary to obtain each joint angle in a shaft configuration having a high degree of freedom (6 degrees of freedom or more) like a human arm, the inverse transformation becomes a nonlinear simultaneous equation and is a complicated calculation.
このため、本願発明者は、逆変換が非線形連立方程式とならず、単純且つ少ない演算量で厳密解を求めることができるロボットアーム・ハンドの操作方法を提案した(特許文献1参照)。この操作方法では、ロボットアームの操作者の手首に付けたセンサにより検出された3次元位置及び方向からアームの各関節角度を求めるために、浮動小数点演算を用いた誤差有り演算を用いている。この浮動小数点フォーマットを用いた実数表現は、非常に小さな数から大きな数まで表現でき、計算効率がよいという優れた特徴があるため、逆変換のような実数の数値計算に適している。
しかしながら、上記の浮動小数点演算を用いた数値制御では、以下のような問題がある。
(1)浮動小数点演算では、数値演算誤差が発生し、且つその蓄積が起こるため、演算結果に大きな誤差が含まれる場合があり、ロボットアームの先端位置が大幅にずれる場合がある。
(2)上記の数値演算誤差とその蓄積のために、当初想定していなかった状態が発生し、結果として制御が破綻してロボットアーム動作が暴走する状況が発生する。
(3)上記のロボットアーム動作の暴走を防止するためには、暴走対策を施す必要があり、制御が複雑化する。
However, the numerical control using the floating point arithmetic has the following problems.
(1) In floating point calculations, numerical calculation errors occur and accumulate, so that the calculation results may include large errors, and the tip position of the robot arm may be significantly displaced.
(2) Due to the above numerical calculation error and its accumulation, a state that was not initially assumed occurs, and as a result, a situation occurs in which the control is broken and the robot arm operation runs out of control.
(3) In order to prevent the robot arm operation from running out of control, it is necessary to take measures against the runaway, which complicates the control.
本発明の目的は、リンク機構の制御動作を安定化及び高信頼化することができるとともに、リンク機構を高精度に制御することができる位置制御装置、位置制御方法及び位置制御プログラムを提供することである。 An object of the present invention is to provide a position control device, a position control method, and a position control program capable of stabilizing and improving the control operation of a link mechanism and controlling the link mechanism with high accuracy. It is.
本発明に係る位置制御装置は、関節を介して複数のリンクを連結したリンク機構の所定部位を目標3次元位置及び目標方向に制御する位置制御装置であって、リンク機構の所定部位の目標3次元位置データ及び目標方向データからなる目標データをP、リンク機構の各関節角度をθとし、目標データPから関節角度θを求める解法処理に使用されるデータを固定長数値データ形式から可変長整数データ形式へ変換する変換手段と、上記解法処理において、変換手段により変換された可変長整数データ形式のデータを用いて、除算を除く加減算及び乗算からなる無誤差演算を実行する無誤差演算手段とを備え、前記変換手段は、前記無誤差演算手段の演算結果を可変長整数データ形式から固定長数値データ形式へ変換し、前記解法処理において、前記変換手段により変換された固定長数値データ形式の演算結果を用いて1回のみの除算を含む固定長数値演算を実行することにより固定長数値データ形式の関節角度θを求める誤差演算手段をさらに備えるものである。 A position control device according to the present invention is a position control device that controls a predetermined portion of a link mechanism in which a plurality of links are connected via joints in a target three-dimensional position and a target direction, and includes a target 3 of the predetermined portion of the link mechanism. The target data consisting of the dimension position data and the target direction data is P, each joint angle of the link mechanism is θ, and the data used for the solution processing for obtaining the joint angle θ from the target data P is a variable length integer from the fixed length numerical data format. A conversion means for converting to a data format; and an error-free calculation means for executing an error-free calculation including addition / subtraction and multiplication excluding division using the data in the variable-length integer data format converted by the conversion means in the solution processing. The conversion means converts the calculation result of the error-free calculation means from a variable-length integer data format to a fixed-length numeric data format, and in the solution processing, Error calculation means for obtaining a joint angle θ in fixed-length numerical data format by executing fixed-length numerical calculation including only one division using the calculation result in fixed-length numerical data format converted by the conversion means It is to be prepared .
本発明に係る位置制御装置では、目標データPから関節角度θを求める解法処理において、この解法処理に使用されるデータが固定長数値データ形式から可変長整数データ形式へ変換され、変換された可変長整数データ形式のデータを用いて、除算を除く加算、減算及び乗算からなる無誤差演算が実行される。この無誤差演算においては、数値演算誤差が発生せず、その蓄積もないため、リンク機構の制御動作を安定化及び高信頼化することができるとともに、リンク機構を高精度に制御することができる。 In the position control device according to the present invention, in the solution processing for obtaining the joint angle θ from the target data P, the data used for the solution processing is converted from the fixed-length numeric data format to the variable-length integer data format, and the converted variable Using data in the long integer data format, an error-free operation including addition, subtraction, and multiplication excluding division is executed. In this error-free calculation, no numerical calculation error occurs and no accumulation occurs, so that the control operation of the link mechanism can be stabilized and highly reliable, and the link mechanism can be controlled with high accuracy. .
この場合、目標データPから関節角度θを求める解法処理において、可変長整数データ形式の係数データを用いて、除算を除く加算、減算及び乗算からなる無誤差演算が実行された後、この演算結果が可変長整数データ形式から固定長数値データ形式へ変換され、変換された固定長数値データ形式の演算結果を用いて1回のみの除算を含む固定長数値演算が実行され、固定長数値データ形式の関節角度θが算出されるので、上記解法処理において、数値演算誤差の発生を多くとも1回の除算によるものだけに制限して数値演算誤差を非常に小さくすることができるとともに、その蓄積を防止することができる。 In this case, in the solution processing for obtaining the joint angle θ from the target data P, error-free operations including addition, subtraction, and multiplication excluding division are performed using coefficient data in the variable-length integer data format, and then the calculation result Is converted from a variable-length integer data format to a fixed-length numeric data format, and a fixed-length numeric operation including only one division is executed using the operation result of the converted fixed-length numeric data format. Since the joint angle θ is calculated, in the above-described solution processing, the numerical calculation error can be limited to at most one division and the numerical calculation error can be made extremely small. Can be prevented.
無誤差演算手段は、θi=θ’i+Δθi(i=1,…,n)(ここで、θiは関節iの求める関節角度、θ’iは微小時間Δt前の関節iの関節角度、Δθiは微小時間Δt経過後の関節iの微小関節角度変化量、nは求める関節角度θの数)とし、n元連立一次方程式AΔθ=B(ここで、Aはその要素aij(i=1,…,n、j=1,…,n)がリンク機構のリンク長及び微小時間Δt前の関節iの関節角度θ’iにより決定される係数行列、Bはその要素bi(i=1,…,n)が目標データP及び微小時間Δt前の位置方向データP’により決定されるベクトル)をAnΔθ=Bn(ここで、Anは対角要素an+1 ii(i=1,…,n)以外が0となる対角行列、Bnは要素bn+1 i(i=1,…,n)のベクトル)に変形したときの係数データan+1 ii及び係数データbn+1 iを、除算を除く加算、減算及び乗算からなる無誤差演算を用いて求め、変換手段は、無誤差演算手段により求められた係数データan+1 ii及び係数データbn+1 iを可変長整数データ形式から固定長数値データ形式へ変換し、誤差演算手段は、変換手段により変換された固定長数値データ形式の係数データan+1 ii及び係数データbn+1 iを用いて、θi=θ’i+bn+1 i/an+1 ii(i=1,…,n)を固定長数値演算により求めることが好ましい。
The error-free computing means is θ i = θ ′ i + Δθ i (i = 1,..., N) (where θ i is the joint angle obtained by the joint i, θ ′ i is the joint of the joint i before the minute time Δt) The angle, Δθ i is the minute joint angle change amount of the joint i after the minute time Δt has elapsed, n is the number of joint angles θ to be obtained, and n-ary simultaneous linear equations AΔθ = B (where A is the element a ij ( i = 1,..., n, j = 1,..., n) is a coefficient matrix determined by the link length of the link mechanism and the joint angle θ ′ i of the joint i before the minute time Δt, and B is its element b i ( i = 1, ..., a vector) n) is determined by the target data P and minute time Δt before the position-direction data P 'AnΔθ = Bn (where, an is
この場合、目標データPから関節角度θを求める解法処理において、θi=θ’i+bn+1 i/an+1 ii以外の演算を、除算を除く加算、減算及び乗算からなる無誤差演算により実行するとともに、数値演算誤差の発生を多くともθi=θ’i+bn+1 i/an+1 iiにおける1回の除算だけに制限しているので、関節角度θを高精度に求めることができる。 In this case, in the solution processing for obtaining the joint angle θ from the target data P, operations other than θ i = θ ′ i + b n + 1 i / a n + 1 ii are executed by error-free operations including addition, subtraction and multiplication excluding division. In addition, since the occurrence of numerical calculation errors is limited to at most one division in θ i = θ ′ i + b n + 1 i / a n + 1 ii , the joint angle θ can be obtained with high accuracy.
上記位置制御装置は、操作者の所定部位の3次元位置及び方向を検出する検出手段をさらに備え、検出手段により検出された3次元位置及び方向をリンク機構の所定部位の目標3次元位置データ及び目標方向データとして用いて、リンク機構の所定部位を目標3次元位置及び目標方向に制御することが好ましい。 The position control device further includes detection means for detecting the three-dimensional position and direction of the predetermined part of the operator, and the target three-dimensional position data of the predetermined part of the link mechanism is detected from the three-dimensional position and direction detected by the detection means. It is preferable to control the predetermined part of the link mechanism to the target three-dimensional position and the target direction using the target direction data.
この場合、リンク機構の所定部位を操作者の所定部位の動きに応じた目標3次元位置及び目標方向に高精度に制御することができる。 In this case, the predetermined part of the link mechanism can be controlled with high accuracy in the target three-dimensional position and the target direction according to the movement of the predetermined part of the operator.
本発明に係る位置制御方法は、関節を介して複数のリンクを連結したリンク機構の所定部位を目標3次元位置及び目標方向に制御するロボットアーム制御方法であって、リンク機構の所定部位の目標3次元位置データ及び目標方向データからなる目標データをP、リンク機構の各関節角度をθとし、目標データPから関節角度θを求める解法処理に使用されるデータを固定長数値データ形式から可変長整数データ形式へ変換する変換ステップと、上記解法処理において、変換された可変長整数データ形式のデータを用いて、除算を除く加算、減算及び乗算からなる無誤差演算を実行する無誤差演算ステップとを含み、前記変換ステップは、前記無誤差演算ステップにおける演算結果を可変長整数データ形式から固定長数値データ形式へ変換するステップを含み、前記解法処理において、前記変換ステップにおいて変換された固定長数値データ形式の演算結果を用いて1回のみの除算を含む固定長数値演算を実行することにより固定長数値データ形式の関節角度θを求める誤差演算ステップをさらに含むものである。 A position control method according to the present invention is a robot arm control method for controlling a predetermined part of a link mechanism in which a plurality of links are connected via joints to a target three-dimensional position and a target direction, and the target of the predetermined part of the link mechanism The target data consisting of three-dimensional position data and target direction data is P, each joint angle of the link mechanism is θ, and the data used for the solution processing for obtaining the joint angle θ from the target data P is variable length from the fixed length numerical data format. A conversion step for converting to an integer data format, and an error-free calculation step for performing error-free operations including addition, subtraction, and multiplication except division using the data in the variable-length integer data format converted in the above-described solution processing, only including, the converting step converts the calculation result in the no-error calculating step from the variable length integer data format to a fixed-length numeric data format A fixed-length numeric data format joint by performing a fixed-length numeric operation including only one division using the calculation result in the fixed-length numeric data format converted in the conversion step in the solution processing It further includes an error calculation step for obtaining the angle θ .
本発明に係る位置制御プログラムは、関節を介して複数のリンクを連結したリンク機構の所定部位を目標3次元位置及び目標方向に制御するための位置制御プログラムであって、リンク機構の所定部位の目標3次元位置データ及び目標方向データからなる目標データをP、リンク機構の各関節角度をθとし、目標データPから関節角度θを求める解法処理に使用されるデータを固定長数値データ形式から可変長整数データ形式へ変換する変換手段と、上記解法処理において、変換手段により変換された可変長整数データ形式の係数データを用いて、除算を除く加算、減算及び乗算からなる無誤差演算を実行する無誤差演算手段としてコンピュータを機能させ、前記変換手段は、前記無誤差演算手段の演算結果を可変長整数データ形式から固定長数値データ形式へ変換し、前記解法処理において、前記変換手段により変換された固定長数値データ形式の演算結果を用いて1回のみの除算を含む固定長数値演算を実行することにより固定長数値データ形式の関節角度θを求める誤差演算手段として前記コンピュータをさらに機能させるものである。 A position control program according to the present invention is a position control program for controlling a predetermined part of a link mechanism in which a plurality of links are connected via a joint to a target three-dimensional position and a target direction, The target data consisting of the target three-dimensional position data and the target direction data is P, each joint angle of the link mechanism is θ, and the data used for the solution processing for obtaining the joint angle θ from the target data P is variable from the fixed-length numerical data format. A conversion means for converting to a long integer data format, and in the above solution processing, using the coefficient data in the variable length integer data format converted by the conversion means, an error-free operation including addition, subtraction and multiplication excluding division is executed. The computer functions as error-free computing means, and the converting means converts the computation result of the error-free computing means from a variable-length integer data format to a fixed length. Fixed-length numeric data by converting to a numeric data format and executing fixed-length numeric operations including only one division using the calculation results in the fixed-length numeric data format converted by the conversion means in the solution processing The computer is further caused to function as an error calculation means for obtaining a joint angle θ of a form .
本発明によれば、目標データPから関節角度θを求める解法処理において、可変長整数データ形式のデータを用いて、除算を除く加算、減算及び乗算からなる無誤差演算が実行され、この無誤差演算においては、数値演算誤差が発生せず、その蓄積もないため、リンク機構の制御動作を安定化及び高信頼化することができるとともに、リンク機構を高精度に制御することができる。 According to the present invention, in the solution processing for obtaining the joint angle θ from the target data P, error-free operations including addition, subtraction, and multiplication excluding division are executed using data in the variable-length integer data format. In calculation, no numerical calculation error occurs and no accumulation occurs, so that the control operation of the link mechanism can be stabilized and highly reliable, and the link mechanism can be controlled with high accuracy.
以下、本発明の一実施の形態による位置制御装置の一例であるロボットアーム制御装置をいたロボットアーム制御システムについて図面を参照しながら説明する。 Hereinafter, a robot arm control system including a robot arm control device which is an example of a position control device according to an embodiment of the present invention will be described with reference to the drawings.
図1は、本発明の一実施の形態によるロボットアーム制御装置を用いたロボットアーム制御システムの構成を示すブロック図である。図1に示すロボットアーム制御システムは、ロボットアーム制御装置1、ロボットアーム部2、3次元操作グローブ3、3次元位置方向センサ4及び3次元ディスプレイ5を備える。
FIG. 1 is a block diagram showing a configuration of a robot arm control system using a robot arm control device according to an embodiment of the present invention. The robot arm control system shown in FIG. 1 includes a robot
ロボットアーム部2は、一対のロボットアーム21及びハンド22、胴体部23並びにカメラ部24を備え、人の上半身(頭部を除く)と同程度の大きさと自由度とを有し、両腕と両手の機能を実現している。
The
ロボットアーム21は、肩、肘及び手首に関節を有し、これらの関節を介してリンクとなる上腕21a及び前腕21bが連結されたリンク機構(マニプレータ)であり、人の腕と同程度の大きさ及び自由度を有する。ハンド22は、人の手と同程度の大きさと自由度を有する触覚付きの5本指ロボットハンドであり、前腕21bの先端に取り付けられる。ハンド22には触覚センサ(図示省略)が設けられており、物をつかんだ時の触覚(圧力)がロボットアーム制御装置1を介して3次元操作グローブ3へ伝達される。
The
なお、図示を省略しているが、ロボットアーム21及びハンド22は、その内部にモータ等の駆動源を有し、この駆動源により任意の角度に駆動される。また、本実施の形態では、ロボットアーム21を人の腕に模倣させ、ハンド22を人の手指に模倣させているが、ロボットアーム及びハンドの構成は、この例に特に限定されず、ハンド22の指の数を増減させる等の種々の変更が可能である。また、リンク機構の関節数及びリンク数も、上記の例に特に限定されず、種々の変更が可能である。
Although not shown, the
カメラ部24は、3次元カメラ(ステレオカメラ)等から構成され、ロボットアーム制御装置1を介して、撮影した画像を3次元ディスプレイ5へ出力する。3次元ディスプレイ5は、カメラ部24により撮影された画像を表示し、操作者Mに提示する。なお、撮影された画像の提示方法は、この例に特に限定されず、3次元ディスプレイに替えて、操作者Mに装着させたヘッドマウントディスプレイに表示させる等の種々の変更が可能である。
The
3次元操作グローブ3は、公知の3次元操作用データグローブから構成され、操作者Mの両手にそれぞれ装着される。3次元操作グローブ3は、操作者Mの手の甲及び指の動き(関節角度)を検出し、検出した関節角度データをロボットアーム制御装置1へ出力する。3次元操作グローブ3の手首の位置には、3次元位置方向センサ4が取り付けられ、3次元位置方向センサ4は、前腕21bの先端部の目標3次元位置及び目標方向として、操作者Mの手首の3次元位置及び方向を検出し、検出した3次元位置データ及び方向データをロボットアーム制御装置1へ出力する。
The three-dimensional operation glove 3 is composed of a known three-dimensional operation data glove, and is attached to both hands of the operator M. The three-dimensional operation glove 3 detects the back of the hand of the operator M and the movement of the finger (joint angle), and outputs the detected joint angle data to the robot
なお、目標3次元位置及び目標方向を検出又は入力する方法は、上記の例に特に限定されず、データグローブ又はデータスーツ等から操作者の所定部位の3次元位置及び方向を検出したり、ハプティクス・デバイス等を用いて入力したりしてもよい。 Note that the method for detecting or inputting the target three-dimensional position and target direction is not particularly limited to the above example, and the three-dimensional position and direction of a predetermined part of the operator can be detected from a data glove, a data suit, or the like. -You may input using a device etc.
ロボットアーム制御装置1は、操作者Mの両手に装着された3次元操作グローブ3及び3次元位置方向センサ4からの検出結果を基に、ロボットアーム21及びハンド22の各関節角度を算出する。ハンド22に関しては、3次元操作グローブ3が手の甲の曲がり(手首の)角度及び指の関節角度を検出し、ロボットアーム制御装置1は、これらの角度データに基づいてハンド22を制御する。
The robot
一方、ロボットアーム21に関しては、操作者Mの手首に装着した3次元位置方向センサ4から操作者Mの手首の三次元位置及びその方向、すなわち、ロボットアーム21の先端部の目標3次元位置及び目標方向が得られるだけである。このため、ロボットアーム21の先端部の目標3次元位置データ及び目標方向データから、ロボットアーム21の各関節角度を計算する必要がある。このように、ロボットアーム21の先端部の3次元位置及び方向からロボットアーム21の各関節角度を計算することを逆変換と呼び、これとは逆に、ロボットアーム21の各関節角度からロボットアーム21の先端部の3次元位置及び方向を計算することを順変換と呼ぶことにする。
On the other hand, with respect to the
図2は、図1に示すロボットアーム制御装置1の構成を示すブロック図である。図2に示すように、ロボットアーム制御装置1は、外部インターフェース部11、浮動小数点データ記憶部12、データ変換処理部13、可変長整数データ記憶部14、誤差有制御処理部15及び無誤差制御処理部16を備える。誤差有制御処理部15は、座標変換処理部15a及び浮動小数点演算部15bを備え、無誤差制御処理部16は、方程式解法処理部16a及び可変長整数演算部16bを備える。
FIG. 2 is a block diagram showing a configuration of the robot
ロボットアーム制御装置1は、CPU(中央演算処理装置)、ROM(リードオンリメモリ)、RAM(ランダムアクセスメモリ)、外部記憶装置、記録媒体駆動装置、入力装置、表示装置、外部機器インターフェース等を備えるコンピュータから構成することができる。この場合、後述するロボットアーム制御処理(位置制御処理)を実行するためのロボットアーム制御プログラム(位置制御プログラム)を、CPU等を用いて実行することにより、外部インターフェース部11、浮動小数点データ記憶部12、データ変換処理部13、可変長整数データ記憶部14、誤差有制御処理部15及び無誤差制御処理部16としてコンピュータを機能させることができる。なお、ロボットアーム制御装置1の構成は、この例に特に限定されず、上記の各機能の一部又は全部を専用のハードウエアから構成する等の種々の変更が可能である。
The robot
外部インターフェース部11は、3次元位置方向センサ4から3次元位置データ及び方向データを取得して浮動小数点データ記憶部12に格納する。また、外部インターフェース部11は、ロボットアーム制御処理により求められた関節角度を浮動小数点データ記憶部12から読み出してロボットアーム部2へ出力し、ロボットアーム21の各関節角度がロボットアーム制御処理により求められた関節角度に制御される。
The
浮動小数点データ記憶部12は、誤差有制御処理部15において処理される種々のデータを浮動小数点データ形式で記憶し、可変長整数データ記憶部14は、無誤差制御処理部16において処理される種々のデータを可変長整数データ形式で記憶する。
The floating point
図3は、浮動小数点データ及び可変長整数データのデータ構成の一例を示す図である。図3の(a)に示すように、固定長数値データの一例である浮動小数点データは、符号部、指数部及び仮数部から構成され、このようなデータ形式で浮動小数点データ記憶部12に格納される。また、図3の(b)に示すように、可変長整数データは、語長部、符号部、及び数値部(整数表現)から構成され、このようなデータ形式で可変長整数データ記憶部14に格納される。
FIG. 3 is a diagram illustrating an example of the data configuration of floating point data and variable-length integer data. As shown in FIG. 3A, floating-point data, which is an example of fixed-length numeric data, includes a sign part, an exponent part, and a mantissa part, and is stored in the floating-point
データ変換処理部13は、浮動小数点データ記憶部12から浮動小数点データを読み出し、読み出した浮動小数点データを可変長整数データへ変換し、変換した可変長整数データを可変長整数データ記憶部14に格納する。また、データ変換処理部13は、可変長整数データ記憶部14から可変長整数データを読み出し、読み出した可変長整数データを浮動小数点データへ変換し、変換した浮動小数点データを浮動小数点データ記憶部12に格納する。
The data
なお、本発明に用いられる固定長数値データは、上記の例に特に限定されず、例えば、固定長整数データを用いることもできる。図3の(c)に示すように、固定長整数データは、符号部及び数値部(整数表現)から構成され、この固定長整数データ形式も、固定長であるため、誤差(数値のオーバーフロー及びそのまるめによる誤差)が発生し、本発明を同様に適用することができる。 The fixed-length numerical data used in the present invention is not particularly limited to the above example, and, for example, fixed-length integer data can be used. As shown in FIG. 3C, the fixed-length integer data is composed of a sign part and a numerical part (integer representation). Since this fixed-length integer data format is also a fixed length, an error (numeric overflow and An error due to rounding occurs, and the present invention can be applied similarly.
例えば、3次元位置方向センサ4が出力する値(角度)が、−255〜+255等の整数値であり、ロボットアーム21の関節を動作させるモータに対する出力(回転角度)も、−1000〜+1000パルス等の整数値である場合、浮動小数点データ記憶部12を固定長数値データ記憶部に変更し、固定長整数データ形式で各データを格納するようにしてもよい。また、固定長整数データ形式でデータを取り扱う場合、浮動小数点演算部15bを固定長整数演算部に変更し、固定長整数演算部により固定長整数演算を実行するようにしてもよい。
For example, the value (angle) output by the three-dimensional position /
誤差有制御処理部15は、ロボットアーム部2のロボットアーム21及びハンド22の制御処理のうち、固定長数値演算の一例である浮動小数点演算を用いた誤差有制御処理を実行する。座標変換処理部15aは、浮動小数点データ記憶部12から浮動小数点データを読み出し、浮動小数点演算部15bを用いて座標変換処理等(sin、cos演算)を浮動小数点演算で実行し、演算結果を浮動小数点データ記憶部12に格納する。浮動小数点演算部15bは、加算器、減算器、乗算器及び除算器としての機能を有し、浮動小数点演算を用いて、加算、減算、乗算及び除算を実行する。
The control unit with
無誤差制御処理部16は、ロボットアーム部2のロボットアーム21及びハンド22の制御処理のうち、可変長整数演算を用いた無誤差制御処理を実行する。方程式解法処理部16aは、可変長整数データ記憶部14から可変長整数データを読み出し、制御方程式の求解等を可変長整数演算部16bを用いて可変長整数演算で実行し、演算結果を可変長整数データ記憶部14に格納する。可変長整数演算部16bは、加算器、減算器及び乗算器としての機能を有し、可変長整数演算を用いて、加算、減算及び乗算を無誤差で実行する。
The error-free
ここで、本実施の形態の制御対象となるロボットアーム21について詳細に説明する。図4は、図1に示すロボットアーム部2における右側のロボットアーム21の構成を示す模式図であり、図5は、図1に示す右側のロボットアーム21の座標系を説明するための図である。なお、左側のロボットアーム21も、図4及び図5に示す右側のロボットアーム21と同様に構成されているので、詳細な説明は省略する。
Here, the
図4に示すように、グローバル座標系の原点Oを上腕21aの右肩(第1関節)に、グローバル座標系のX座標軸を胴体部23(図1参照)の正面方向に沿って床面と平行方向に、グローバル座標系のY座標軸を右肩から左肩方向に、グローバル座標系のZ座標軸を床面から天井への垂直方向にそれぞれ設定する。また、ロボットアーム21の上腕21aの長さをe1、前腕21bの長さをe2とし、上腕21aの肩関節のうち第1関節(Y軸回り)の関節角度θ1、第2関節(X軸回り)の関節角度θ2、第3関節(Z軸回り)の関節角度θ3とし、上腕21aと前腕21bとの間の第4関節(Y軸回り)の関節角度θ4、第5関節(Z軸回り)の関節角度θ5とし、前腕21bとハンド22との間の第6関節(Y軸回り)の関節角度θ6とする。
As shown in FIG. 4, the origin O of the global coordinate system is on the right shoulder (first joint) of the
このとき、前腕21bの先端位置・方向Psすなわち操作者Mの手首に装着した3次元位置方向センサ4が示すグローバル座標に対する変換行列をH0sとすると、以下の式(1)のように表現することができる。
In this case, when the transformation matrix for the global coordinates indicated by the 3-dimensional position-
ここで、図5に示すように、3次元位置方向センサ4の3次元位置はPs(xs,ys,zs)、3次元位置方向センサ4の方向を表すX軸方向の単位ベクトルはdxs(uxs,vxs,wxs)、Y軸方向の単位ベクトルはdys(uys,vys,wys)、Z軸方向の単位ベクトルはdzs(uzs,vzs,wzs)となる。これらの値はすべて、3次元位置方向センサ4から取得されるので、既知となる。一方、H0sの各要素は、各アーム(上腕21a及び前腕21b)の軸の長さe1,e2と各関節角度θ1,θ2,θ3,θ4,θ5を用いて、以下のように表現することができる。
Here, as shown in FIG. 5, the three-dimensional position of the three-dimensional position /
ここで、Cn=cos(θn)、Sn=sin(θn)(n=1,…,5)であり、関節角度θnは、アーム動作により刻々と変化するので、時間tの関数となり、θn’を微小時間Δt前の関節角度(直前の関節角度)とし、微小時間Δt経過後における微小関節角度変化量をΔθnとすると、以下のように表現することができる。
θn=θn’+Δθn (6)
ここで、微小時間Δt前の関節角度値θn’は既知であり、微小時間Δtは制御時間間隔である。
Here, C n = cos (θ n ), S n = sin (θ n ) (n = 1,..., 5), and the joint angle θ n changes every moment due to the arm operation. Assuming that θ n ′ is the joint angle before the minute time Δt (the previous joint angle) and the minute joint angle change amount after the minute time Δt has elapsed is Δθ n , it can be expressed as follows.
θ n = θ n '+ Δθ n (6)
Here, the joint angle value θ n ′ before the minute time Δt is known, and the minute time Δt is a control time interval.
上記の前提を基に、以下のように近似することができる。なお、下記式では、(Δθ)2は微小であるので、(Δθ)2以上の高次項は無視できるとした。
sin(θ)=sin(θ’+Δθ)≒sin(θ’)+(sin(θ’))’Δθ=sin(θ’)+cos(θ’)Δθ (7a)
cos(θ)=cos(θ’+Δθ)≒cos(θ’)+(cos(θ’))’Δθ=cos(θ’)−sin(θ’)Δθ (7b)
上記の式(7a)、(7b)を式(2)〜(5)へ代入すると、以下となる。なお、ここでも、Δθ1Δθ2等の高次のΔθは微小であり、無視できるとした。
Based on the above assumptions, it can be approximated as follows. In the following expression, (Δθ) 2 is very small, and therefore higher-order terms of (Δθ) 2 or more can be ignored.
sin (θ) = sin (θ ′ + Δθ) ≈sin (θ ′) + (sin (θ ′)) ′ Δθ = sin (θ ′) + cos (θ ′) Δθ (7a)
cos (θ) = cos (θ ′ + Δθ) ≈cos (θ ′) + (cos (θ ′)) ′ Δθ = cos (θ ′) − sin (θ ′) Δθ (7b)
Substituting the above equations (7a) and (7b) into equations (2) to (5) yields the following. In this case as well, high-order Δθ such as Δθ 1 Δθ 2 is very small and can be ignored.
上記各式より、式(1)は、以下のように表現することができる。 From the above equations, equation (1) can be expressed as follows.
そこで、Δθ1,Δθ2,Δθ3,Δθ4,Δθ5は、以下の5元連立一次方程式の解として求めることができる。 Therefore, Δθ 1 , Δθ 2 , Δθ 3 , Δθ 4 , and Δθ 5 can be obtained as solutions of the following five-way simultaneous linear equations.
また、上式の左辺の行列の各要素を係数aij(i=1,…,5、j=1,…,5)、右辺のベクトルの各要素を係数bi(i=1,…,5)で表すと、以下のように表現することができる。 Further, each element of the matrix on the left side of the above expression is a coefficient a ij (i = 1,..., 5, j = 1,..., 5), and each element of the vector on the right side is a coefficient b i (i = 1,. When expressed in 5), it can be expressed as follows.
上記の5元連立一次方程式の解法では、加減乗除算が繰り返されるために、浮動小数点演算を用いた数値計算では、数値演算誤差とその蓄積のために解の誤差が大きくなり、連立方程式の解を求める処理が演算誤差のために暴走及び破綻することが多々ある。このように解の誤差が大きくなること、及び連立方程式の解を求める処理が暴走及び破綻することは、ロボットアームが人に危害を加える恐れがあるため、ロボットアームの制御においては許されない。また、除算を使用する場合、数値計算に計算精度の低下等の様々な悪影響を及ぼすことはもちろんのこと、無誤差演算自体を行うことはできない。 In the solution of the above five-way simultaneous linear equations, addition / subtraction / multiplication / division is repeated. Therefore, in numerical calculation using floating point arithmetic, the numerical calculation error and the error due to its accumulation increase. In many cases, the process for obtaining a runaway and failure occurs due to a calculation error. Such an increase in the error of the solution and the runaway and failure of the processing for finding the solution of the simultaneous equations are not allowed in the control of the robot arm because the robot arm may cause harm to humans. In addition, when division is used, error-free calculation itself cannot be performed as well as various adverse effects such as a decrease in calculation accuracy in numerical calculations.
このため、本実施の形態では、ガウス・ジョルダンの消去法を基本にし、最後の1回を除いて除算が発生しない無誤差連立一次方程式解法処理を考案し、式(15)の解法に誤差を発生させない無誤差演算を用い、各関節角度θ1,θ2,θ3,θ4,θ5を以下のようにして求めている。 Therefore, in this embodiment, based on the Gauss-Jordan elimination method, an error-free simultaneous linear equation solving process that does not generate division except for the last one is devised, and an error is introduced into the solution of equation (15). Using the error-free calculation that does not occur, the joint angles θ 1 , θ 2 , θ 3 , θ 4 , and θ 5 are obtained as follows.
まず、式(15)の係数aij(i=1,…,5、j=1,…,5)及び係数bi(i=1,…,5)を用いて、k=1,…,5として、下記の式を繰り返し演算することにより係数a6 ij及び係数b6 iを求める。
ak+1 ij=ak ij (i=k) (16a)
ak+1 ij=ak ijak kk−ak kjak ik (i≠k) (16b)
bk+1 i=bk i (i=k) (16c)
bk+1 i=bk iak kk−bk kak ik (i≠k) (16d)
上記の係数a6 ij及び係数b6 iにより、式(15)は以下の形式となる。
First, k = 1,..., Using coefficients a ij (i = 1,..., 5, j = 1,..., 5) and coefficients b i (i = 1,. 5, the coefficient a 6 ij and the coefficient b 6 i are obtained by repeatedly calculating the following equation.
a k + 1 ij = a k ij (i = k) (16a)
a k + 1 ij = a k ij a k kk −a k kj a k ik (i ≠ k) (16b)
b k + 1 i = b k i (i = k) (16c)
b k + 1 i = b k i a k kk -b k k a k ik (i ≠ k) (16d)
With the coefficient a 6 ij and the coefficient b 6 i , the expression (15) is in the following form.
上記のように、式(17)の左辺の係数行列は、対角要素以外が0となる対角行列となる。上記の演算までは、除算を使用する必要がないため、本実施の形態では、式(15)の連立一次方程式の解法処理のうち上記の演算までの処理を、無誤差制御処理部16による無誤差演算を用いて実行し、ここまでの演算を無誤差で行っている。
As described above, the coefficient matrix on the left side of Expression (17) is a diagonal matrix in which the elements other than the diagonal elements are zero. Since it is not necessary to use division until the above calculation, in the present embodiment, the processing up to the above calculation in the solution processing of the simultaneous linear equations of Equation (15) is performed by the error-free
次に、各関節角度θ1,θ2,θ3,θ4,θ5は、以下の式により求めることができる。 Next, the joint angles θ 1 , θ 2 , θ 3 , θ 4 , and θ 5 can be obtained by the following equations.
上記の式(18)の演算だけは、除算が回避できないために、本実施の形態では、誤差有制御処理部15による浮動小数点演算を用いて実行している。この浮動小数点演算により誤差が発生するが、この処理は最終処理であり、且つ1回の除算を行うだけであるため、除算に充分な精度が確保されていれば、誤差が問題になることはなく、誤差の蓄積も起こらない。なお、手首の角度θ6は、3次元操作グローブ3により直接取得することができるので、上記の無誤差連立一次方程式解法処理からは求めていない。
In the present embodiment, only the calculation of the above equation (18) cannot be avoided, and therefore, in the present embodiment, the calculation is performed using the floating point calculation by the control unit with
ロボットアーム制御装置1は、上記の無誤差連立一次方程式解法処理(目標データPから関節角度θを求める解法処理)を以下のようにして実行している。
The robot
外部インターフェース部11は、ロボットアームの21の先端部の目標3次元位置(3次元位置方向センサ4の3次元位置Ps)及び目標方向(X、Y、Z軸方向の単位ベクトルdxs、dys、dzs)からなる目標データPを3次元位置方向センサ4から取得し、浮動小数点データ記憶部12に浮動小数点データ形式で記憶させる。このとき、浮動小数点データ記憶部12には、微小時間Δt前の位置方向データP’及び微小時間Δt前の関節角度データθ’iが記憶されており、また、上腕21aの長さe1、前腕21bの長さe2等の初期値は予め記憶されているものとする。
The
ここで、上記の微小時間Δt前の位置方向データP’は、微小時間Δt前の目標データではなく、微小時間Δt前の実際の3次元位置データ及び方向データであり、微小時間Δt前の関節角度データθ’iもアームの実際の関節角度である。これは、後述するように、P’、θ’及びPからΔθを求め(線形近似後、連立一次方程式を無誤差で解く)、そして、θ=θ’+Δθからθを求めており、ここで(線形)近似しているため、このθから求めた実際の位置方向データは目標データと一致せず、次の時刻の計算では、微小時間Δt前の目標データ等ではなく、微小時間Δt前の実際の3次元位置データ及び方向データ、並びに微小時間Δt前の実際の関節角度データを用いているためである。 Here, the position direction data P ′ before the minute time Δt is not the target data before the minute time Δt but the actual three-dimensional position data and direction data before the minute time Δt, and the joint before the minute time Δt. The angle data θ ′ i is also the actual joint angle of the arm. As will be described later, Δθ is obtained from P ′, θ ′ and P (after linear approximation, the simultaneous linear equations are solved without error), and θ is obtained from θ = θ ′ + Δθ. Since (linear) approximation is performed, the actual position / direction data obtained from θ does not match the target data, and the next time calculation is not the target data before the minute time Δt but the minute data Δt before. This is because actual three-dimensional position data and direction data, and actual joint angle data before a minute time Δt are used.
座標変換処理部15aは、浮動小数点データ記憶部12から微小時間Δt前の関節角度θ’i、上腕21aの長さe1、前腕21bの長さe2を読み出し、浮動小数点演算部15bを用いて浮動小数点演算を実行することにより式(15)の係数データaijを算出し、浮動小数点データ記憶部12に記憶させる。また、座標変換処理部15aは、浮動小数点データ記憶部12から目標データP及び微小時間Δt前の位置方向データP’を読み出し、浮動小数点演算部15bを用いて浮動小数点演算を実行することにより式(15)の係数データbiを算出し、浮動小数点データ記憶部12に記憶させる。
Coordinate
データ変換処理部13は、浮動小数点データ記憶部12から係数aij及び係数biを順次読み出し、浮動小数点データ形式から可変長整数データ形式に変換した係数aij及び係数biを、係数a1 ij及び係数b1 iとして可変長整数データ記憶部14に格納する。
The data
方程式解法処理部16aは、可変長整数データ記憶部14から係数a1 ij及び係数b1 iを読み出し、可変長整数演算部16bを用いて可変長整数演算(無誤差演算)を実行することにより、式(16a)乃至(16d)を用いて係数ak+1 ij及びbk+1 iを順次算出し、最終的に係数a6 ij及びb6 iを可変長整数データ記憶部14に格納する。
The equation
データ変換処理部13は、可変長整数データ記憶部14から係数a6 ii及び係数b6 iを順次読み出し、可変長整数データ形式から浮動小数点データ形式に変換した係数a6 ii及び係数b6 iを浮動小数点データ記憶部12に格納する。
The data
座標変換処理部15aは、浮動小数点データ記憶部12から係数a6 ii及び係数b6 iを順次読み出し、浮動小数点演算部15bを用いて浮動小数点演算の除算を1回だけ実行することにより、微小関節角度変化量Δθi=b6 i/a6 iiを算出し、浮動小数点データ記憶部12に格納する。そして、座標変換処理部15aは、浮動小数点データ記憶部12から直前の関節角度値θ’i及び微小関節角度変化量Δθiを順次読み出し、浮動小数点演算部15bを用いて浮動小数点演算を実行することにより式(18)を用いて関節角度θiを算出し、浮動小数点データ記憶部12に格納する。
The coordinate
外部インターフェース部11は、浮動小数点データ記憶部12から関節角度θiを読み出してロボットアーム部2へ出力する。ロボットアーム部2は、ロボットアーム21の各関節角度が関節角度θiとなるようにロボットアーム21を動作させる。
The
上記の制御動作により、操作者Mは、3次元ディスプレイ5を用いて、カメラ部24により撮影された画像を見ながら、両手に装着した3次元操作グローブ3を用いて、ロボットアーム21及びハンド22を操作し、操作者Mの腕と手の動きとがロボットアーム21及びハンド22により忠実に再現される。
By the above control operation, the operator M uses the 3D operation glove 3 attached to both hands while viewing the image taken by the
本実施の形態では、データ変換処理部13が変換手段の一例に相当し、無誤差制御処理部16(方程式解法処理部16a及び可変長整数演算部16b)が無誤差演算手段の一例に相当し、誤差有制御処理部15(座標変換処理部15a及び浮動小数点演算部15b)が誤差演算手段の一例に相当する。
In the present embodiment, the data
次に、上記のように構成されたロボットアーム制御装置1によるロボットアーム制御処理について説明する。図6は、図1に示すロボットアーム制御装置1によるロボットアーム制御処理を説明するためのフローチャートである。
Next, robot arm control processing by the robot
図6に示すように、まず、ステップS11において、外部インターフェース部11は、3次元位置方向センサ4から3次元位置データPs(xs,ys,zs)、X軸方向の単位ベクトルdxs(uxs,vxs,wxs)、Y軸方向の単位ベクトルdys(uys,vys,wys)、及びZ軸方向の単位ベクトルdzs(uzs,vzs,wzs)を取得して浮動小数点データ記憶部12に格納する。
As shown in FIG. 6, first, in step S11, the
次に、ステップS12において、座標変換処理部15aは、浮動小数点データ記憶部12から3次元位置データPs(xs,ys,zs)等を順次読み出し、浮動小数点演算部15bを用いて、式(15)の係数aij(i=1,…,5、j=1,…,5)及び係数bi(i=1,…,5)を求め、浮動小数点データ記憶部12に格納する。
Next, in step S12, the coordinate
次に、ステップS13において、データ変換処理部13は、浮動小数点データ記憶部12から係数aij及び係数biを順次読み出し、浮動小数点データ形式から可変長整数データ形式に変換した係数aij及び係数biを、係数a1 ij及び係数b1 iとして可変長整数データ記憶部14に格納する。
Next, in step S13, the data
なお、上記のステップS12及びS13では、浮動小数点演算を用いて3次元位置データPs(xs,ys,zs)等から係数aij及び係数biを求めた後に、可変長整数データへフォーマット変換したが、この例に特に限定されず、データ変換処理部13により3次元位置データPs(xs,ys,zs)、X軸方向の単位ベクトルdxs(uxs,vxs,wxs)、Y軸方向の単位ベクトルdys(uys,vys,wys)、及びZ軸方向の単位ベクトルdzs(uzs,vzs,wzs)を浮動小数点データから可変長整数データに変換し、その後、方程式解法処理部16aにより可変長整数データの3次元位置データPs(xs,ys,zs)等から可変長整数データの係数aij及び係数biを求めるようにしてもよい。
In steps S12 and S13, variable length integer data is obtained after the coefficients a ij and the coefficients b i are obtained from the three-dimensional position data P s (x s , y s , z s ) and the like using floating point arithmetic. However, the present invention is not particularly limited to this example, and the data
次に、ステップS14〜S16において、方程式解法処理部16aは、初期設定として、k=1、i=1、j=1に設定する。次に、ステップS17において、方程式解法処理部16aは、可変長整数データ記憶部14から係数ak ij,ak kk,ak kj,ak ikを読み出し、可変長整数演算部16bを用いて、i=kの場合はak+1 ij=ak ijに設定し、i≠kの場合はak+1 ij=ak ijak kk−ak kjak ikを算出し、係数ak+1 ijを可変長整数データ記憶部14に格納する。
Next, in steps S14 to S16, the equation
次に、ステップS18において、方程式解法処理部16aは、j<5であるか否かを判断し、j<5の場合、ステップS27においてjを1だけインクリメントしてステップS17以降の処理を継続し、j<5でない(j=5)場合、ステップS19へ処理を移行する。
Next, in step S18, the equation
j<5でない場合、ステップS19において、方程式解法処理部16aは、可変長整数データ記憶部14から係数bk i,ak kk,bk k,ak ikを読み出し、可変長整数演算部16bを用いて、i=kの場合はbk+1 i=bk iに設定し、i≠kの場合はbk+1 i=bk iak kk−bk kak ikを算出し、係数bk+1 iを可変長整数データ記憶部14に格納する。
If j <5 is not satisfied, in step S19, the equation
次に、ステップS20において、方程式解法処理部16aは、i<5であるか否かを判断し、i<5の場合、ステップS26においてiを1だけインクリメントしてステップS16以降の処理を継続し、i<5でない(i=5)場合、ステップS21へ処理を移行する。
Next, in step S20, the equation
i<5でない場合、ステップS21において、方程式解法処理部16aは、k<5であるか否かを判断し、k<5の場合、ステップS25においてkを1だけインクリメントしてステップS15以降の処理を継続し、k<5でない(k=5)場合、ステップS22へ処理を移行する。このように、ステップS14〜S21及びS25〜S27までの処理が無誤差演算を用いて実行される。
If i <5 is not satisfied, the equation solving
次に、ステップS22において、データ変換処理部13は、可変長整数データ記憶部14から係数a6 ii及び係数b6 i(i=1,…,5)を順次読み出し、可変長整数データ形式から浮動小数点データ形式に変換し、変換した係数a6 ii及び係数b6 iを浮動小数点データ記憶部12に格納する。
Next, in step S22, the data
次に、ステップS23において、座標変換処理部15aは、浮動小数点データ記憶部12から係数a6 ii及び係数b6 i(i=1,…,5)を順次読み出し、浮動小数点演算部15bを用いて、微小関節角度変化量Δθi=b6 i/a6 ii(i=1,…,5)を算出し、浮動小数点データ記憶部12に格納する。
Next, in step S23, the coordinate
次に、ステップS24において、座標変換処理部15aは、浮動小数点データ記憶部12から直前の関節角度値θ’i及び微小関節角度変化量Δθi(i=1,…,5)を順次読み出し、浮動小数点演算部15bを用いて、式(18)に従って関節角度θi=θ’i+Δθi(i=1,…,5)を算出し、浮動小数点データ記憶部12に格納する。このとき、外部インターフェース部11は、浮動小数点データ記憶部12から関節角度θ1,θ2,θ3,θ4,θ5を読み出してロボットアーム部2へ出力する。
Next, in step S24, the coordinate
ロボットアーム部2は、ロボットアーム21の各関節角度が関節角度θ1,θ2,θ3,θ4,θ5となるようにロボットアーム21を動作させる。なお、手首の関節角度θ6は、3次元操作グローブ3から直接取得することができるので、3次元操作グローブ3により検出された関節角度θ6がロボットアーム制御装置1を介してロボットアーム部2へ出力され、ロボットアーム部2は、ロボットアーム21の手首の関節角度が関節角度θ6となるようにロボットアーム21を動作させる。上記の処理が制御時間間隔ごとに繰り返され、ロボットアーム21の先端位置が操作者Mの手首の位置に応じて正確に制御される。
The
上記の処理により、本実施の形態では、ロボットアーム制御処理において用いられる逆変換制御演算(連立一次方程式解法)に使用される数値を可変長の整数により表現するとともに、除算を実行することなく(最後の除算を除く)、加算、減算及び乗算のみを用いた無誤差演算処理を実行し、制御演算誤差をなくすことができる。 By the above processing, in this embodiment, the numerical value used for the inverse transformation control calculation (simultaneous linear equation solving) used in the robot arm control processing is expressed by a variable-length integer, and division is not performed ( Error-free arithmetic processing using only addition, subtraction, and multiplication can be executed (except for the last division), and control arithmetic errors can be eliminated.
この結果、ロボットアーム21の先端部を高精度に制御することができるとともに、制御処理の破綻をなくしてロボットアーム21の動作の暴走等をなくすことができ、ロボットアーム21の動作の安定化及び高信頼化を図ることができる。また、ロボットアーム21の暴走防止対策等が不要となるので、ロボットアーム制御装置1の構成を単純化することができ、装置の低コスト化を実現することができる。
As a result, the tip of the
なお、本実施の形態では、操作者の手首の位置及び方向を検出し、これらを目標位置及び目標方向として制御したが、本発明による制御例は、この例に特に限定されず、3次元操作グローブ3、3次元位置方向センサ4及び3次元ディスプレイ5を省略し、テーチングを行うことにより浮動小数点データ記憶部12に記憶した目標位置及び目標方向となるようにロボットアーム21を制御する等の他の制御例にも適用可能である。また、ロボットアーム21を制御対象としたが、この例に特に限定されず、ハンド22を制御対象にする等の種々の変更が可能である。
In this embodiment, the position and direction of the wrist of the operator are detected and controlled as the target position and target direction. However, the control example according to the present invention is not particularly limited to this example, and the three-dimensional operation is performed. Other than the globe 3, the three-dimensional position /
1 ロボットアーム制御装置
2 ロボットアーム部
3 3次元操作グローブ
4 3次元位置方向センサ
5 3次元ディスプレイ
11 外部インターフェース部
12 浮動小数点データ記憶部
13 データ変換処理部
14 可変長整数データ記憶部
15 誤差有制御処理部
15a 座標変換処理部
15b 浮動小数点演算部
16 無誤差制御処理部
16a 方程式解法処理部
16b 可変長整数演算部
21 ロボットアーム
21a 上腕
21b 前腕
22 ハンド
23 胴体部
24 カメラ部
DESCRIPTION OF
Claims (5)
リンク機構の所定部位の目標3次元位置データ及び目標方向データからなる目標データをP、リンク機構の各関節角度をθとし、目標データPから関節角度θを求める解法処理に使用されるデータを固定長数値データ形式から可変長整数データ形式へ変換する変換手段と、
前記解法処理において、前記変換手段により変換された可変長整数データ形式のデータを用いて、除算を除く加算、減算及び乗算からなる無誤差演算を実行する無誤差演算手段とを備え、
前記変換手段は、前記無誤差演算手段の演算結果を可変長整数データ形式から固定長数値データ形式へ変換し、
前記解法処理において、前記変換手段により変換された固定長数値データ形式の演算結果を用いて1回のみの除算を含む固定長数値演算を実行することにより固定長数値データ形式の関節角度θを求める誤差演算手段をさらに備えることを特徴とする位置制御装置。 A position control device that controls a predetermined part of a link mechanism in which a plurality of links are connected via a joint in a target three-dimensional position and a target direction,
The target data consisting of target three-dimensional position data and target direction data of a predetermined part of the link mechanism is P, each joint angle of the link mechanism is θ, and the data used for the solution processing for obtaining the joint angle θ from the target data P is fixed. Conversion means for converting from a long numeric data format to a variable-length integer data format;
In the solution processing, using the data in the variable-length integer data format converted by the conversion means, comprising error-free calculation means for executing error-free calculation including addition, subtraction, and multiplication excluding division ,
The converting means converts the calculation result of the error-free calculating means from a variable-length integer data format to a fixed-length numeric data format,
In the solution processing, the joint angle θ in the fixed-length numeric data format is obtained by executing a fixed-length numeric calculation including only one division using the calculation result in the fixed-length numeric data format converted by the conversion means. A position control device further comprising error calculation means .
前記変換手段は、前記無誤差演算手段により求められた係数データan+1 ii及び係数データbn+1 iを可変長整数データ形式から固定長数値データ形式へ変換し、
前記誤差演算手段は、前記変換手段により変換された固定長数値データ形式の係数データan+1 ii及び係数データbn+1 iを用いて、θi=θ’i+bn+1 i/an+1 ii(i=1,…,n)を固定長数値演算により求めることを特徴とする請求項1記載の位置制御装置。 The error-free computing means is: θ i = θ ′ i + Δθ i (i = 1,..., N) (where θ i is the joint angle obtained by the joint i, θ ′ i is the joint i before the minute time Δt) The joint angle, Δθ i is a minute joint angle change amount of the joint i after the minute time Δt has elapsed, n is the number of joint angles θ to be obtained, and n-ary simultaneous linear equations AΔθ = B (where A is an element a ij (I = 1,..., N, j = 1,..., N) is a coefficient matrix determined by the link length of the link mechanism and the joint angle θ ′ i of the joint i before the minute time Δt, and B is an element b i (i = 1, ..., n ) is a vector) which is determined by the target data P and minute time Δt before the position-direction data P 'AnΔθ = Bn (where, an is diagonal element a n + 1 ii (i = 1 , ..., n) except becomes zero diagonal matrix, Bn elements b n + 1 i (i = 1, ..., n) varying in vector) of The coefficient data a n + 1 ii and coefficient data b n + 1 i when the, determined using summing except division, the error free operation consisting of subtraction and multiplication,
The conversion means converts the coefficient data a n + 1 ii and coefficient data b n + 1 i obtained by the error-free calculating means from a variable-length integer data format to a fixed-length numeric data format,
The error calculation means uses the coefficient data an + 1 ii and coefficient data bn + 1 i in the fixed-length numerical data format converted by the conversion means, and θ i = θ ′ i + b n + 1 i / a n + 1 ii (i = 1, ..., n) position control device according to claim 1, wherein the determination by the fixed length numerical operations to.
前記検出手段により検出された3次元位置及び方向を前記リンク機構の所定部位の目標3次元位置データ及び目標方向データとして用いて、前記リンク機構の所定部位を目標3次元位置及び目標方向に制御することを特徴とする請求項1又は2に記載の位置制御装置。 It further comprises detection means for detecting the three-dimensional position and direction of the predetermined part of the operator,
Using the three-dimensional position and direction detected by the detection means as target three-dimensional position data and target direction data of the predetermined part of the link mechanism, the predetermined part of the link mechanism is controlled to the target three-dimensional position and target direction. The position control device according to claim 1 or 2 , wherein
前記リンク機構の所定部位の目標3次元位置データ及び目標方向データからなる目標データをP、前記リンク機構の各関節角度をθとし、目標データPから関節角度θを求める解法処理に使用されるデータを固定長数値データ形式から可変長整数データ形式へ変換する変換ステップと、
前記解法処理において、変換された可変長整数データ形式の係数データを用いて、除算を除く加算、減算及び乗算からなる無誤差演算を実行する無誤差演算ステップとを含み、
前記変換ステップは、前記無誤差演算ステップにおける演算結果を可変長整数データ形式から固定長数値データ形式へ変換するステップを含み、
前記解法処理において、前記変換ステップにおいて変換された固定長数値データ形式の演算結果を用いて1回のみの除算を含む固定長数値演算を実行することにより固定長数値データ形式の関節角度θを求める誤差演算ステップをさらに含むことを特徴とする位置制御方法。 A robot arm control method for controlling a predetermined part of a link mechanism in which a plurality of links are connected via a joint to a target three-dimensional position and a target direction,
Data used for the solution processing for determining the joint angle θ from the target data P, where P is target data composed of target three-dimensional position data and target direction data of a predetermined part of the link mechanism, and θ is each joint angle of the link mechanism. A conversion step for converting from a fixed-length numeric data format to a variable-length integer data format;
In the solution process, using the coefficient data of the converted variable-length integer data format, seen including adding, a non-error calculation step of performing a non-error calculation consisting of subtraction and multiplication, except for division,
The conversion step includes a step of converting the calculation result in the error-free calculation step from a variable-length integer data format to a fixed-length numeric data format,
In the solution processing, the joint angle θ in the fixed-length numeric data format is obtained by executing a fixed-length numeric calculation including only one division using the calculation result in the fixed-length numeric data format converted in the conversion step. A position control method further comprising an error calculation step .
前記リンク機構の所定部位の目標3次元位置データ及び目標方向データからなる目標データをP、前記リンク機構の各関節角度をθとし、目標データPから関節角度θを求める解法処理に使用されるデータを固定長数値データ形式から可変長整数データ形式へ変換する変換手段と、
前記解法処理において、前記変換手段により変換された可変長整数データ形式の係数データを用いて、除算を除く加算、減算及び乗算からなる無誤差演算を実行する無誤差演算手段としてコンピュータを機能させ、
前記変換手段は、前記無誤差演算手段の演算結果を可変長整数データ形式から固定長数値データ形式へ変換し、
前記解法処理において、前記変換手段により変換された固定長数値データ形式の演算結果を用いて1回のみの除算を含む固定長数値演算を実行することにより固定長数値データ形式の関節角度θを求める誤差演算手段として前記コンピュータをさらに機能させることを特徴とする位置制御プログラム。 A position control program for controlling a predetermined part of a link mechanism in which a plurality of links are connected via a joint to a target three-dimensional position and a target direction,
Data used for the solution processing for determining the joint angle θ from the target data P, where P is target data composed of target three-dimensional position data and target direction data of a predetermined part of the link mechanism, and θ is each joint angle of the link mechanism. Means for converting from a fixed-length numeric data format to a variable-length integer data format;
In the solution processing, using the coefficient data in the variable-length integer data format converted by the conversion means, the computer functions as error-free calculation means for performing error-free calculation including addition, subtraction, and multiplication excluding division ,
The converting means converts the calculation result of the error-free calculating means from a variable-length integer data format to a fixed-length numeric data format,
In the solution processing, the joint angle θ in the fixed-length numeric data format is obtained by executing a fixed-length numeric calculation including only one division using the calculation result in the fixed-length numeric data format converted by the conversion means. A position control program for causing the computer to further function as error calculation means .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005325277A JP4743699B2 (en) | 2005-06-03 | 2005-11-09 | POSITION CONTROL DEVICE, POSITION CONTROL METHOD, AND POSITION CONTROL PROGRAM |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005164567 | 2005-06-03 | ||
JP2005164567 | 2005-06-03 | ||
JP2005325277A JP4743699B2 (en) | 2005-06-03 | 2005-11-09 | POSITION CONTROL DEVICE, POSITION CONTROL METHOD, AND POSITION CONTROL PROGRAM |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007007837A JP2007007837A (en) | 2007-01-18 |
JP4743699B2 true JP4743699B2 (en) | 2011-08-10 |
Family
ID=37746956
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005325277A Expired - Fee Related JP4743699B2 (en) | 2005-06-03 | 2005-11-09 | POSITION CONTROL DEVICE, POSITION CONTROL METHOD, AND POSITION CONTROL PROGRAM |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4743699B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4743700B2 (en) * | 2005-11-09 | 2011-08-10 | 株式会社国際電気通信基礎技術研究所 | Control device, control method, and control program |
JP5465129B2 (en) * | 2010-08-16 | 2014-04-09 | 本田技研工業株式会社 | Robot and behavior control system |
JP7088591B1 (en) * | 2022-03-30 | 2022-06-21 | 株式会社Share-RIZ | Exterior wall repair device and exterior wall repair method |
JP7109845B1 (en) | 2022-03-30 | 2022-08-01 | 株式会社Share-RIZ | Exterior wall repair device and exterior wall repair method |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005046931A (en) * | 2003-07-30 | 2005-02-24 | National Institute Of Information & Communication Technology | Robot arm-hand operation control method and robot arm-hand operation control system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61122707A (en) * | 1984-11-20 | 1986-06-10 | Matsushita Electric Ind Co Ltd | Locus control method of robot |
-
2005
- 2005-11-09 JP JP2005325277A patent/JP4743699B2/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005046931A (en) * | 2003-07-30 | 2005-02-24 | National Institute Of Information & Communication Technology | Robot arm-hand operation control method and robot arm-hand operation control system |
Also Published As
Publication number | Publication date |
---|---|
JP2007007837A (en) | 2007-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7273880B2 (en) | Virtual object driving method, device, electronic device and readable storage medium | |
CN108874119B (en) | System and method for tracking arm movement to generate input for a computer system | |
US9785249B1 (en) | Systems and methods for tracking motion and gesture of heads and eyes | |
EP3707584B1 (en) | Method for tracking hand pose and electronic device thereof | |
US11498216B2 (en) | Remote control manipulator system and control device | |
JP5444209B2 (en) | Frame mapping and force feedback method, apparatus and system | |
US9381642B2 (en) | Wearable robot assisting manual tasks | |
US11370117B2 (en) | Collision handling by a robot | |
US8648797B2 (en) | Information input/output device, information input/output method and computer program | |
JP6380828B2 (en) | Robot, robot system, control device, and control method | |
JP5349478B2 (en) | Inverse kinematics | |
JP6700726B2 (en) | Robot controller, robot control method, robot control system, and computer program | |
US10884487B2 (en) | Position based energy minimizing function | |
JP4743699B2 (en) | POSITION CONTROL DEVICE, POSITION CONTROL METHOD, AND POSITION CONTROL PROGRAM | |
JP3742879B2 (en) | Robot arm / hand operation control method, robot arm / hand operation control system | |
Maycock et al. | Robust tracking of human hand postures for robot teaching | |
US11093037B2 (en) | Computer-implemented method, system and computer program product for simulating the behaviour of a hand that interacts with objects in a virtual environment | |
Baldi et al. | Using inertial and magnetic sensors for hand tracking and rendering in wearable haptics | |
JP2014014902A (en) | Control system, program and control method for mechanical device | |
JP4743700B2 (en) | Control device, control method, and control program | |
JP2008217260A (en) | Force feedback apparatus | |
Wakamatsu et al. | Dynamic modeling of linear object deformation based on differential geometry coordinates | |
Pérez et al. | FPGA-based visual control system using dynamic perceptibility | |
US20230131269A1 (en) | Continuum robot control system and control method, and program | |
Kobayashi et al. | Motion capture with inertial measurement units for hand/arm robot teleoperation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080327 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110125 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110214 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20110412 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110502 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140520 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |