JP2007007796A - Walking robot - Google Patents

Walking robot Download PDF

Info

Publication number
JP2007007796A
JP2007007796A JP2005193272A JP2005193272A JP2007007796A JP 2007007796 A JP2007007796 A JP 2007007796A JP 2005193272 A JP2005193272 A JP 2005193272A JP 2005193272 A JP2005193272 A JP 2005193272A JP 2007007796 A JP2007007796 A JP 2007007796A
Authority
JP
Japan
Prior art keywords
acceleration
sensor
robot
trunk
acceleration sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005193272A
Other languages
Japanese (ja)
Inventor
Hisayoshi Sugihara
久義 杉原
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.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2005193272A priority Critical patent/JP2007007796A/en
Publication of JP2007007796A publication Critical patent/JP2007007796A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To set an offset value for canceling a bias value contained in output of an acceleration sensor fixed to the trunk of a robot including a plurality of links. <P>SOLUTION: A robot body 100 is caused to take a predetermined static attitude. In that state, the output of the acceleration sensor fixed to the trunk and the output of an attitude angle sensor for detecting the attitude angle to the vertical direction of the acceleration sensor are read. The acceleration detecting direction of the acceleration sensor is calculated from the attitude angle. The component of the gravity acceleration vector in that direction is calculated. The component of the calculated gravity acceleration vector is subtracted from the value of the taken acceleration sensor. The value of subtraction is taken as an offset value to the bias value. In controlling the robot, when the output value of the acceleration sensor is taken, the offset value is subtracted from the taken value to be used for control. It is possible to use an accurate acceleration value within the roboto control device. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、体幹と脚リンク群を備える歩行ロボットの制御技術に関する。詳しくは、体幹に固定された加速度センサが出力する加速度を利用して、その姿勢を変化させるロボットの制御技術に関する。   The present invention relates to a control technology for a walking robot having a trunk and a leg link group. More specifically, the present invention relates to a robot control technique that changes the posture using acceleration output from an acceleration sensor fixed to the trunk.

体幹と脚リンク群を有する歩行ロボット(以下単にロボットと称する)が開発されている。このロボットは体幹と脚リンク群の相対的姿勢を変化させることによって歩行する。
体幹に加速度センサを固定し、体幹に生じる加速度を検出し、加速度センサから出力される加速度を利用して、体幹と脚リンク群の姿勢を変化させる歩行ロボットが開発されている。体幹の位置や姿勢を意図したものに制御するためには、加速度センサによって体幹に作用する加速度を正確に取得しなければならない。
A walking robot (hereinafter simply referred to as a robot) having a trunk and a leg link group has been developed. This robot walks by changing the relative posture of the trunk and leg links.
A walking robot has been developed in which an acceleration sensor is fixed to the trunk, the acceleration generated in the trunk is detected, and the posture of the trunk and the leg link group is changed using the acceleration output from the acceleration sensor. In order to control the position and posture of the trunk to the intended one, the acceleration acting on the trunk must be accurately acquired by the acceleration sensor.

特許文献1に、加速度センサを体幹に固定したロボットが開示されている。この技術では、体幹に固定した加速度センサの出力に基づいて、体幹が横になった状態にあるのか縦になった状態にあるのかを判断する。   Patent Document 1 discloses a robot in which an acceleration sensor is fixed to a trunk. In this technique, based on the output of the acceleration sensor fixed to the trunk, it is determined whether the trunk is in a lying state or a longitudinal state.

特開平11−156765号公報(段落0039)Japanese Patent Laid-Open No. 11-156765 (paragraph 0039)

体幹が横になった状態にあるのか縦になった状態にあるのかを判断する程度であれば、加速度センサの出力値に多少の誤差があっても制御に影響はない。しかしながら、体幹の位置や姿勢を意図したものに制御するためには、体幹に作用する加速度の方向とその大きさを正確に取得しなければならない。   As long as it is sufficient to determine whether the trunk is in a horizontal state or a vertical state, even if there is a slight error in the output value of the acceleration sensor, the control is not affected. However, in order to control the position and posture of the trunk so as to be intended, it is necessary to accurately acquire the direction and magnitude of acceleration acting on the trunk.

加速度センサは、電圧や電流や静電容量といった電気量で出力する。そこで、加速度センサは、電気量を加速度に換算する関係を必要とする。例えば出力電圧が1mVであるから10mm/secの加速度であり、2mVであるから20mm/secの加速度であるという換算関係を必要とする。この換算関係は、加速度センサ毎に予め算出されている。
予め換算関係が判明している加速度センサをロボットに搭載してみると、予め計測しておいた換算関係からずれてしまう事象が頻繁に発生することがわかってきた。例えば、上記の関係であることが判明している加速度センサをロボットに搭載してみると、10mm/secの加速度であるときに1.2mVが出力され、20mm/secの加速度であるときに2.2mVが出力されるといった事象が頻発する。
予め判明している換算関係からずれる事象を研究した結果、電気量と加速度の間に成立するゲイン(比例定数)がずれることよりも、電気量に存在するバイアス値がずれることの影響が大きいことがわかってきた。上記に例示した場合では、ロボットに搭載すると、加速度センサの出力電圧が0.2 mVだけ高くなり、そのまま換算すると実際の加速度よりも2mm/secだけ大きな加速度を検出してしまうことが判明してきた。
ずれが発生する原因としては、例えば、加速度センサに加える駆動電圧が、換算関係を測定したときの電圧からずれることが考えられる。また、センサ出力をデジタル信号に変換するADコンバータが換算関係を測定したときのADコンバータと異なることが原因のひとつとして考えられる。いずれにしても加速度センサが出力する電気量に存在するバイアス値が換算関係を測定したときの値からずれる現象がよく発生する。
The acceleration sensor outputs an electrical quantity such as voltage, current, or capacitance. Therefore, the acceleration sensor requires a relationship for converting the amount of electricity into acceleration. For example, since the output voltage is 1 mV, an acceleration of 10 mm / sec 2 is required, and since the output voltage is 2 mV, a conversion relationship of 20 mm / sec 2 is required. This conversion relationship is calculated in advance for each acceleration sensor.
It has been found that when an acceleration sensor whose conversion relationship is known in advance is mounted on the robot, an event that deviates from the conversion relationship measured in advance frequently occurs. For example, when an acceleration sensor that has been found to have the above relationship is mounted on a robot, 1.2 mV is output when the acceleration is 10 mm / sec 2 and the acceleration is 20 mm / sec 2. Events such as 2.2mV are frequent.
As a result of investigating an event that deviates from the conversion relationship that has been clarified in advance, the effect of deviation of the bias value existing in the electric quantity is greater than the deviation of the gain (proportional constant) established between the electric quantity and acceleration. I understand. In the case illustrated above, it has been found that when mounted on a robot, the output voltage of the acceleration sensor is increased by 0.2 mV, and if converted as it is, an acceleration larger by 2 mm / sec 2 than the actual acceleration is detected.
As a cause of the deviation, for example, it is conceivable that the drive voltage applied to the acceleration sensor deviates from the voltage when the conversion relationship is measured. Another possible cause is that the AD converter that converts the sensor output into a digital signal is different from the AD converter when the conversion relationship is measured. In any case, a phenomenon in which the bias value existing in the electric quantity output from the acceleration sensor deviates from the value when the conversion relationship is measured often occurs.

そこで、加速度センサをロボットに搭載した後に、加速度センサが出力する電気量を加速度に換算するための換算関係を改めで計測し直す必要がある。
通常の加速度センサは特定の方向に生じている加速度成分を検出する。以後本明細書では、加速度センサが加速度成分を検出する際の「特定の方向」を加速度検出方向と称する。加速度センサをロボットに搭載した後に、前記換算関係を計測するためには、ロボットに搭載した加速度センサの加速度検出方向を正確に特定する必要がある。また加速度センサから本来得られるべき加速度の真の大きさも正確に特定する必要がある。即ち前記換算関係を計測するためには、加速度検出方向と、その方向に実際に生じている加速度の真の大きさをともに正確に特定する必要がある。両者が特定できないことには、換算関係を確立することができない。
ロボットは、体幹の姿勢角を指令するデータを用い、その指令データに一致するように体幹の姿勢角を変化させる。従って、体幹の姿勢角は、指令値に等しいはずである。体幹の姿勢角が判明すれば、体幹に固定されている加速度センサの加速度検出方向も特定できるはずである。
従来は、体幹の姿勢角を指令するデータから加速度センサの加速度検出方向を算出している。しかしながら、脚リンク群の剛性(脚部各関節の角度偏差も含む剛性)を高くすることは困難であり、体幹の姿勢角が指令値からずれることが避けられない。加速度センサの加速度検出方向を、体幹の姿勢角の指令値から算出する限り、加速度センサの加速度検出方向を正確に特定することはできない。さらにその加速度センサから本来得られるべき加速度の真の大きさも特定することができない。よって加速度センサの出力値と加速度の間に成立する換算関係を正確に特定することができない。
本発明は、加速度センサをロボットに搭載した後に、加速度センサが出力する電気量を加速度に換算するための換算関係を改めて計測し直すことによって、正確な換算関係に修正できる技術を提案する。
Therefore, after the acceleration sensor is mounted on the robot, it is necessary to measure again the conversion relationship for converting the amount of electricity output from the acceleration sensor into acceleration.
A normal acceleration sensor detects an acceleration component generated in a specific direction. Hereinafter, in this specification, the “specific direction” when the acceleration sensor detects the acceleration component is referred to as an acceleration detection direction. In order to measure the conversion relationship after the acceleration sensor is mounted on the robot, it is necessary to accurately specify the acceleration detection direction of the acceleration sensor mounted on the robot. It is also necessary to accurately specify the true magnitude of acceleration that should be originally obtained from the acceleration sensor. That is, in order to measure the conversion relationship, it is necessary to accurately specify both the acceleration detection direction and the true magnitude of the acceleration actually generated in that direction. If both cannot be specified, a conversion relationship cannot be established.
The robot uses data for commanding the posture angle of the trunk, and changes the posture angle of the trunk so as to match the command data. Therefore, the posture angle of the trunk should be equal to the command value. If the posture angle of the trunk is known, the acceleration detection direction of the acceleration sensor fixed to the trunk should be specified.
Conventionally, the acceleration detection direction of the acceleration sensor is calculated from data that commands the posture angle of the trunk. However, it is difficult to increase the rigidity of the leg link group (the rigidity including the angle deviation of each leg joint), and it is inevitable that the posture angle of the trunk deviates from the command value. As long as the acceleration detection direction of the acceleration sensor is calculated from the command value of the posture angle of the trunk, the acceleration detection direction of the acceleration sensor cannot be accurately specified. Furthermore, the true magnitude of the acceleration that should be originally obtained from the acceleration sensor cannot be specified. Therefore, the conversion relation established between the output value of the acceleration sensor and the acceleration cannot be accurately specified.
The present invention proposes a technique that can be corrected to an accurate conversion relationship by measuring again the conversion relationship for converting the amount of electricity output from the acceleration sensor into acceleration after the acceleration sensor is mounted on the robot.

本発明の換算関係の修正技術では、ロボットを静止させ、ロボットの運動に起因して生じる加速度をゼロとする。すなわち、重力加速度だけが作用する環境を実現し、実際に生じている加速度を既知量とできる環境を整える。
また本発明では、姿勢角センサを利用し、加速度センサの加速度検出方向が鉛直方向に対してなす姿勢角を直接に検出する。
このことによって加速度検出方向が特定できる。さらに鉛直方向には9.8m/sec2の重力加速度が作用している。従って加速度センサの加速度検出方向に作用している真の加速度の大きさは重力加速度の加速度選出方向成分となる。加速度センサから得るべき加速度の真の大きさも重力加速度の加速度選出方向成分として得られる。即ち加速度センサの加速度検出方向が鉛直方向に対してなす姿勢角を直接に検出することによって、加速度検出方向と、その方向に実際に生じている加速度の真の大きさをともに正確に特定することができる。
加速度検出方向が既知となり、加速度検出方向に生じている加速度の真の大きさが既知となり、その時の加速度センサの出力値が既知となっても、それだけでは、加速度センサが出力する電気量を加速度に換算するための換算関係を特定することができない。電気量に存在するバイアス値が変動したのか、電気量と加速度の間に成立するゲインが変動したのかが特定できないからである。
本発明では、実際的にはゲインの変動を考慮する必要はなく、バイアス値の変動を考慮すれば、実用上は十分に正確な換算関係に修正できるという知見を活用する。
In the conversion relationship correction technique of the present invention, the robot is stopped, and the acceleration caused by the movement of the robot is set to zero. In other words, an environment in which only gravitational acceleration acts is realized, and an environment in which the actual acceleration can be set to a known amount is prepared.
In the present invention, a posture angle sensor is used to directly detect a posture angle formed by the acceleration detection direction of the acceleration sensor with respect to the vertical direction.
As a result, the acceleration detection direction can be specified. Furthermore, a gravitational acceleration of 9.8 m / sec 2 acts in the vertical direction. Therefore, the magnitude of the true acceleration acting in the acceleration detection direction of the acceleration sensor becomes the acceleration selection direction component of the gravitational acceleration. The true magnitude of the acceleration to be obtained from the acceleration sensor is also obtained as the acceleration selection direction component of the gravitational acceleration. That is, by directly detecting the posture angle that the acceleration detection direction of the acceleration sensor makes with respect to the vertical direction, both the acceleration detection direction and the true magnitude of the acceleration actually generated in that direction can be accurately specified. Can do.
Even if the acceleration detection direction is known, the true magnitude of the acceleration generated in the acceleration detection direction is known, and the output value of the acceleration sensor at that time is already known, the amount of electricity output by the acceleration sensor can It is not possible to specify the conversion relationship for converting to. This is because it cannot be determined whether the bias value existing in the electric quantity has changed or whether the gain established between the electric quantity and the acceleration has changed.
In the present invention, it is not actually necessary to consider the fluctuation of the gain, and the knowledge that the conversion relationship can be corrected to a sufficiently accurate practical value by taking the fluctuation of the bias value into consideration is utilized.

本発明は、体幹と脚リンク群を備え、体幹に生じる加速度を検出することによって、体幹と脚リンク群の姿勢を変化させる歩行ロボットに具現化することができる。
本発明の歩行ロボットは、体幹に固定され、特定の方向(以下、加速度検出方向という)に生じている加速度成分を検出する加速度センサと、加速度センサに直接的または間接的に固定されているとともに加速度検出方向が鉛直方向に対してなす姿勢角を検出する姿勢角センサと、ロボットが所定の静止姿勢に静止している間に、加速度センサが出力する電気量と姿勢角センサが出力する姿勢角を取得する手段と、前記取得手段で取得した電気量を既知の関係で換算して加速度に換算する手段と、前記取得手段で取得した姿勢角から加速度検出方向の重力加速度成分を算出する手段と、前記換算手段で換算した加速度から前記算出手段で算出した重力加速度成分を減算した値を、加速度センサが出力する電気量を前記換算手段で換算した加速度から減算するオフセット値に記憶する手段を備えている。
The present invention can be embodied in a walking robot that includes a trunk and a leg link group and detects the acceleration generated in the trunk and changes the posture of the trunk and the leg link group.
The walking robot of the present invention is fixed to the trunk and is directly or indirectly fixed to the acceleration sensor for detecting an acceleration component generated in a specific direction (hereinafter referred to as acceleration detection direction). At the same time, a posture angle sensor that detects the posture angle that the acceleration detection direction makes with respect to the vertical direction, and the amount of electricity that the acceleration sensor outputs and the posture that the posture angle sensor outputs while the robot is stationary in a predetermined stationary posture Means for obtaining an angle; means for converting the amount of electricity obtained by the obtaining means into a known relationship and converting the acceleration; and means for calculating a gravitational acceleration component in an acceleration detection direction from an attitude angle obtained by the obtaining means And an acceleration obtained by subtracting the gravitational acceleration component calculated by the calculation means from the acceleration converted by the conversion means and converting the electric quantity output by the acceleration sensor by the conversion means. And a means for storing the offset value is subtracted from.

本発明では、ロボットを所定の静止姿勢に静止させ、ロボットの運動に起因して生じる加速度はゼロであり、重力加速度だけが作用する測定環境を実現する。
本発明では、ロボットの体幹に固定された加速度センサに直接的または間接的に固定されている姿勢角センサを利用して、加速度センサの加速度検出方向が鉛直方向に対してなす姿勢角を検出する。なお、「間接的に固定される」とは同一の部材に対して加速度センサと姿勢角センサが固定されており、その位置関係がロボットに組み込む前に(事前に)既知であるという意味である。
以上によって、加速度センサが検出しているはずの加速度の大きさを既知量とすることができる。
本発明の加速度センサは、加速度センサが出力する電気量を予め測定されている換算関係を利用して加速度に換算する。このとき、加速度センサが検出している加速度の真の大きさと、換算された加速度の間に、ずれが生じることが多い。
本発明では、そのずれが、加速度センサが出力する電気量と加速度の間に成立するゲインが変動したためではなく、電気量に加わるバイアス値が変動したものとする。その場合には、予め測定されている換算関係自体を作り直す必要がなく、予め測定されている換算関係を利用して換算した加速度から、バイアス値の変動による分を増減修正すればよいという考え方を採用する。
本発明では、加速度センサが出力する電気量を予め計測しておいた既知の換算関係で換算した加速度から、実際の加速度(重力加速度成分)を減算することによって、増減修正することによって真の加速度に修正するオフセット値を求め、これを記憶し、それを以後の換算結果に利用する。
本発明によると、加速度センサが出力する電気量を予め計測しておいた換算関係で加速度に換算し、次いでオフセット値を減算することによって、方向と大きさがともに正確である加速度を検出することを可能となる。
In the present invention, the robot is stopped in a predetermined stationary posture, and the acceleration caused by the movement of the robot is zero, and a measurement environment in which only the gravitational acceleration acts is realized.
In the present invention, a posture angle formed by the acceleration detection direction of the acceleration sensor with respect to the vertical direction is detected by using a posture angle sensor fixed directly or indirectly to the acceleration sensor fixed to the trunk of the robot. To do. Note that “indirectly fixed” means that the acceleration sensor and the attitude angle sensor are fixed to the same member, and the positional relationship is known (in advance) before being incorporated into the robot. .
As described above, the magnitude of the acceleration that should be detected by the acceleration sensor can be set to a known amount.
The acceleration sensor of the present invention converts the amount of electricity output from the acceleration sensor into acceleration using a conversion relationship measured in advance. At this time, there is often a difference between the true magnitude of the acceleration detected by the acceleration sensor and the converted acceleration.
In the present invention, it is assumed that the deviation is not because the gain established between the electric quantity output by the acceleration sensor and the acceleration fluctuates, but the bias value applied to the electric quantity fluctuates. In that case, there is no need to re-create the pre-measured conversion relationship itself, and the idea that it is sufficient to increase / decrease the amount due to the fluctuation of the bias value from the acceleration converted using the pre-measured conversion relationship. adopt.
In the present invention, the true acceleration is obtained by subtracting the actual acceleration (gravity acceleration component) from the acceleration converted by a known conversion relationship in which the amount of electricity output from the acceleration sensor is measured in advance, thereby correcting the increase / decrease. The offset value to be corrected is obtained, stored, and used for the subsequent conversion result.
According to the present invention, the amount of electricity output from the acceleration sensor is converted into acceleration according to a conversion relationship that has been measured in advance, and then the acceleration that is accurate in both direction and size is detected by subtracting the offset value. Is possible.

ロボットには、前記加速度センサが複数備えられており、これらの加速度センサには、体幹の上下方向に加速度検出方向が定められた第1の加速度センサと、体幹の前後方向に加速度検出方向が定められた第2の加速度センサが含まれていることが好ましい。これらの加速度センサにより、歩行中のロボットを側方から観測したときの体幹の姿勢を意図したものに調整することが可能となる。
この場合、各々の加速度センサに対して各々のオフセット値を求め、各々の加速度センサに対して各々のオフセット値を記憶していることが好ましい。
上記によると、ロボットの上下方向に生じる加速度と前後方向に生じる加速度の双方を正確に検出することができる。
The robot includes a plurality of acceleration sensors. The acceleration sensors include a first acceleration sensor in which an acceleration detection direction is defined in the vertical direction of the trunk and an acceleration detection direction in the longitudinal direction of the trunk. It is preferable that a second acceleration sensor for which is defined is included. With these acceleration sensors, it becomes possible to adjust the posture of the trunk when the walking robot is observed from the side to the intended one.
In this case, it is preferable to obtain each offset value for each acceleration sensor and store each offset value for each acceleration sensor.
Based on the above, it is possible to accurately detect both the acceleration generated in the vertical direction of the robot and the acceleration generated in the front-rear direction.

同様に、ロボットが、体幹の上下方向に加速度検出方向が定められた第1の加速度センサと、体幹の左右方向に加速度検出方向が定められた第2の加速度センサが含まれていてもよい。これらの加速度センサにより、歩行中のロボットを正面から観測したときの体幹の姿勢を意図したものに調整することが可能となる。
この場合も、各々の加速度センサに対して各々のオフセット値を求め、各々の加速度センサに対して各々のオフセット値を記憶していることが好ましい。
上記によると、ロボットの上下方向に生じる加速度と左右方向に生じる加速度の双方を正確に検出することができる。
Similarly, even if the robot includes a first acceleration sensor whose acceleration detection direction is defined in the vertical direction of the trunk and a second acceleration sensor whose acceleration detection direction is defined in the horizontal direction of the trunk. Good. With these acceleration sensors, it is possible to adjust the trunk posture when the walking robot is observed from the front.
Also in this case, it is preferable to obtain each offset value for each acceleration sensor and store each offset value for each acceleration sensor.
Based on the above, it is possible to accurately detect both the acceleration generated in the vertical direction and the acceleration generated in the horizontal direction of the robot.

もちろん、ロボットが、体幹の上下方向に加速度検出方向が定められた第1の加速度センサと、体幹の前後方向に加速度検出方向が定められた第2の加速度センサと、体幹の左右方向に加速度検出方向が定められた第3の加速度センサが含まれていてもよい。この場合は、歩行中のロボットをいずれの方向から観測しても、体幹の姿勢を意図したものに調整することが可能となる。
この場合も、各々の加速度センサに対して各々のオフセット値を求め、各々の加速度センサに対して各々のオフセット値を記憶していることが好ましい。
上記によると、ロボットの上下方向に生じる加速度と前後後方に生じる加速度と左右方向に生じる加速度のいずれをも正確に検出することができる。
Of course, the robot has a first acceleration sensor whose acceleration detection direction is defined in the vertical direction of the trunk, a second acceleration sensor whose acceleration detection direction is defined in the longitudinal direction of the trunk, and the horizontal direction of the trunk. May include a third acceleration sensor in which an acceleration detection direction is determined. In this case, even if the walking robot is observed from any direction, it is possible to adjust the trunk posture to the intended one.
Also in this case, it is preferable to obtain each offset value for each acceleration sensor and store each offset value for each acceleration sensor.
According to the above, it is possible to accurately detect any acceleration generated in the vertical direction of the robot, acceleration generated in the front / rear direction, and acceleration generated in the left / right direction.

加速度センサで本当に検出したいのは、ロボットの運動であり、運動に起因して生じる加速度である。そのためには、ロボットの動作中に、加速度センサが出力する電気量と姿勢角センサが出力する姿勢角を取得する手段と、その取得手段で取得した姿勢角から取得タイミングにおける加速度検出方向の重力加速度成分を算出する手段と、その取得手段で取得した電気量を前記既知の関係で換算した加速度から、前記の取得タイミングにおける加速度検出方向の重力加速度成分と前記したオフセット値を減算する手段を備えていればよい。
上記の場合、オフセット値を減算するために正確な加速度が検出され、加速度検出方向の重力加速度成分を減算するために重力加速度の影響を排除することができる。ロボットの運動に起因して生じる加速度のみを正確に検出することができる。
What the acceleration sensor really wants to detect is the motion of the robot, and the acceleration caused by the motion. For that purpose, during the operation of the robot, means for acquiring the electrical quantity output by the acceleration sensor and the attitude angle output by the attitude angle sensor, and the gravitational acceleration in the acceleration detection direction at the acquisition timing from the attitude angle acquired by the acquisition means Means for calculating a component, and means for subtracting the gravitational acceleration component in the acceleration detection direction at the acquisition timing and the offset value from the acceleration obtained by converting the amount of electricity acquired by the acquisition unit according to the known relationship. Just do it.
In the above case, accurate acceleration is detected to subtract the offset value, and the influence of gravitational acceleration can be eliminated to subtract the gravitational acceleration component in the acceleration detection direction. Only the acceleration caused by the movement of the robot can be accurately detected.

上記技術を利用すると、加速度センサの出力を利用してロボットを制御する場合に、重力加速度を考慮しない制御ロジックを採用することが可能となる。制御ロジックを簡略化することができる。
特にロボットのコンプライアンス制御では、ロボットがバランスを失いかけた場合、ロボットがバランスを回復する側に体幹の位置を修正する制御を行う。このとき、重力加速度成分を除外した加速度が検出できれば、ロボットの動作に起因する加速度のみを考慮した制御ロジックを構築すればよい。コンプライアンス制御ロジックを簡略化することができる。
When the above technique is used, it is possible to employ a control logic that does not take gravity acceleration into account when controlling the robot using the output of the acceleration sensor. The control logic can be simplified.
Particularly in the robot compliance control, when the robot is about to lose balance, control is performed to correct the position of the trunk so that the robot recovers the balance. At this time, if an acceleration excluding the gravitational acceleration component can be detected, a control logic that considers only the acceleration caused by the operation of the robot may be constructed. Compliance control logic can be simplified.

加速度センサと姿勢角センサは一体化したユニットに構成することが好ましい。この場合、ユニット内部に加速度センサと角速度センサを内蔵し、それらの出力値に基づいて、加速度検出方向が鉛直方向に対してなす姿勢角を演算する手段を備えていることが好ましい。
加速度センサと姿勢角センサが一つのユニットに構成されているために、姿勢角センサが、加速度検出方向が鉛直方向に対してなす姿勢角の正確な値を出力することが可能となる。さらにセンサユニットに内蔵された加速度センサと角速度センサの出力値をユニットの内部で演算して姿勢角を求めるように構成することで、体幹に固定する前に姿勢角センサの校正と加速度センサの校正とを同時に正確に行うことができる。
The acceleration sensor and the attitude angle sensor are preferably configured as an integrated unit. In this case, it is preferable that the unit includes an acceleration sensor and an angular velocity sensor, and includes means for calculating a posture angle that the acceleration detection direction forms with respect to the vertical direction based on the output values thereof.
Since the acceleration sensor and the posture angle sensor are configured in one unit, the posture angle sensor can output an accurate value of the posture angle that the acceleration detection direction forms with respect to the vertical direction. Furthermore, by calculating the output values of the acceleration sensor and angular velocity sensor built in the sensor unit to obtain the posture angle inside the unit, calibration of the posture angle sensor and acceleration sensor are fixed before fixing to the trunk. Calibration can be performed accurately at the same time.

本願発明によれば、加速度センサをロボットの体幹に固定した状態で、加速度センサの出力値を加速度に換算する際に加わる、バイアス値による誤差をキャンセルするために必要なオフセット値を、正確に設定することができる。   According to the present invention, in the state where the acceleration sensor is fixed to the trunk of the robot, the offset value necessary for canceling the error due to the bias value, which is added when the output value of the acceleration sensor is converted into the acceleration, is accurately calculated. Can be set.

実施例の主要な特徴を列記する。
(第1形態) ロボットを所定の静止姿勢に保持する際、本来の加速度フィードバック制御はオフとしておくことが好ましい。加速度センサの出力値に関係なくロボットを所定の静止姿勢に保持することができるからである。加速度フィードバック制御を行うと場合によってはロボットが微妙に振動することがある。フィードバック回路をオフしておくことで加速度センサに余計な加速度成分が加わることを防止することができる。
(第3形態) 所定の静止姿勢は、体幹の上下方向が歩行面に対して垂直な姿勢となる静止姿勢(いわゆる直立姿勢)が好ましい。体幹が歩行面に対して垂直となった姿勢でオフセット値を設定することで、加速度センサから取得した加速度の値からオフセット値を減算した値が最も正確となるのがオフセット値設定時の姿勢、すなわち直立姿勢のときとなる。加速度フィードバック制御時に歩容データとして体幹が歩行面に対して垂直となるような姿勢を与えたときに、ロボットの実際の姿勢もその歩容データに極めて近い姿勢となるよう制御することが可能となる。
(第3形態) 加速度センサの姿勢角を検出する検出手段として、加速度センサに傾斜角センサを固定することも好ましい。
The main features of the examples are listed.
(First Mode) When the robot is held in a predetermined stationary posture, it is preferable to turn off the original acceleration feedback control. This is because the robot can be held in a predetermined stationary posture regardless of the output value of the acceleration sensor. When acceleration feedback control is performed, the robot may vibrate slightly in some cases. By turning off the feedback circuit, it is possible to prevent an unnecessary acceleration component from being added to the acceleration sensor.
(Third embodiment) The predetermined stationary posture is preferably a stationary posture (so-called upright posture) in which the vertical direction of the trunk is perpendicular to the walking surface. By setting the offset value in a posture in which the trunk is perpendicular to the walking surface, the value obtained by subtracting the offset value from the acceleration value acquired from the acceleration sensor is the most accurate posture at the time of offset value setting. That is, it becomes the time of an upright posture. When giving a posture that causes the trunk to be perpendicular to the walking surface as gait data during acceleration feedback control, the actual posture of the robot can be controlled to be very close to the gait data. It becomes.
(3rd form) It is also preferable to fix an inclination-angle sensor to an acceleration sensor as a detection means to detect the attitude | position angle of an acceleration sensor.

図面を参照して実施例を詳細に説明する。
まず図7により、加速度センサの出力をロボット制御装置が取り込む際にバイアス値の存在による、ロボット100の姿勢変化について例示する。
図7(A)はロボット100が直立姿勢をとったときの側面図である。符号80は体幹を示す。符号110は脚リンク群を示す。体幹80には加速度センサ30が基準点Pに固定されている。加速度センサの加速度検出方向は図8(A)に示すX軸の方向とする。
Embodiments will be described in detail with reference to the drawings.
First, FIG. 7 illustrates the posture change of the robot 100 due to the presence of a bias value when the robot control apparatus takes in the output of the acceleration sensor.
FIG. 7A is a side view when the robot 100 takes an upright posture. Reference numeral 80 denotes a trunk. Reference numeral 110 denotes a leg link group. The acceleration sensor 30 is fixed at the reference point P on the trunk 80. The acceleration detection direction of the acceleration sensor is the X-axis direction shown in FIG.

今、ロボット100はX軸方向にコンプライアンス制御されている。即ちロボット100の体幹80の基準点Pは仮想的な壁200と仮想的なバネ202及び仮想的なダンパ204で連結されている。仮想的な壁200と仮想的なバネ202及び仮想的なダンパ204はあくまで仮想的な存在であってロボット100の制御ロジック内で構築されたものである。この体幹80は、体幹80に外力が加わると仮想的なバネ202と仮想的なダンパ204の作用によってX軸方向に振動する(但しダンパ204の減衰力が大きければ振動しない)。そして仮想的なダンパ204の減衰力により、所定時間後に仮想的なバネ204による復元力と外力とが釣り合う位置で体幹80は静止する。上記のように体幹80は、外見上、仮想的な壁200と仮想的なバネ202及び仮想的なダンパ204で連結されつつ動作しているかのように制御される。   Now, the robot 100 is compliance-controlled in the X-axis direction. That is, the reference point P of the trunk 80 of the robot 100 is connected to the virtual wall 200 by the virtual spring 202 and the virtual damper 204. The virtual wall 200, the virtual spring 202, and the virtual damper 204 are only virtual existences and are constructed in the control logic of the robot 100. When an external force is applied to the trunk 80, the trunk 80 vibrates in the X-axis direction by the action of the virtual spring 202 and the virtual damper 204 (however, the trunk 80 does not vibrate if the damping force of the damper 204 is large). Then, due to the damping force of the virtual damper 204, the trunk 80 stops at a position where the restoring force of the virtual spring 204 balances with the external force after a predetermined time. As described above, the trunk 80 is controlled as if it is operating while being connected by the virtual wall 200, the virtual spring 202, and the virtual damper 204.

図8(A)は外力が作用していない状態のロボット100の姿勢を示している。仮想的なバネ202の自然長はLである。従って体幹80は仮想的なバネ202からも力を受けていないものとして静止状態に制御されている。   FIG. 8A shows the posture of the robot 100 in a state where no external force is applied. The natural length of the virtual spring 202 is L. Therefore, the trunk 80 is controlled to be in a stationary state on the assumption that no force is received from the virtual spring 202.

ここでロボット100が静止状態であれば本来加速度センサ30からの出力はゼロであるべきである。ところが前述したオフセット値が既知のオフセット値からずれていると、ロボット100の制御装置が加速度センサ30からの出力を取り込む際に、ずれたバイアス値の存在により、X軸方向の加速度がゼロでなくdGXであると換算されてしまう。ロボット100の制御装置は体幹リンク80のX軸方向に加速度dGXが作用しているものとして制御が実行される。今、体幹80の質量をMとする。制御装置内では加速度dGXにより体幹80にM×dGXの外力が作用しているものと判断する。この外力(M×dGX)を図7に符号210で示す。そこで制御装置内のコンプライアンス制御ロジックでは、この外力と仮想的なバネ202の復元力が釣り合うように体幹80のX軸方向の位置を制御する。具体的には仮想的なバネ202のバネ定数をKとすると復元力(K×dL)の大きさが外力(M×dGX)の大きさと釣り合うように長さdLを決定する。そして長さdLだけ体幹80をX軸方向に移動させる。このときのロボット100の姿勢を図7(B)に示す。体幹80はX軸方向にdLだけ移動した位置に制御される。体幹80をX軸方向にdLだけ移動させるために、図7(B)に示す脚リンク群110bの姿勢となるようにその各関節の角度が制御される。
このときコンプライアンス制御ロジック内では、外力(M×dGX)(図7に矢印210で示す)と仮想的なバネ202の復元力(K×dL)(図7(B)に矢印220で示す)が釣り合っているものと判断されている。ところが加速度dGXは実際に体幹80に作用している加速度ではなく、加速度センサ30の出力を取り込む際のずれたバイアス値の存在により発生したものである。結果体幹80にはなんら外力が作用していないにも関わらずその姿勢がずれてしまう。特に静止しているときのロボット100の姿勢がずれると見かけ上そのずれがはっきり認識できる。ずれたバイアス値の存在はロボットの姿勢制御に与える影響は大きい。
ずれたバイアス値をキャンセルするオフセット値が正確に求まっていれば上記例のようなロボットの姿勢のずれは発生しない。バイアス値をキャンセルするオフセット値を求めることは重要である。
Here, if the robot 100 is stationary, the output from the acceleration sensor 30 should be zero. However, if the offset value deviates from the known offset value, the acceleration in the X-axis direction is not zero due to the presence of the deviated bias value when the control device of the robot 100 takes in the output from the acceleration sensor 30. It will be converted to dGX. The control device of the robot 100 is controlled assuming that the acceleration dGX is acting in the X-axis direction of the trunk link 80. Now, let M be the mass of the trunk 80. In the control device, it is determined that an external force of M × dGX is acting on the trunk 80 due to the acceleration dGX. This external force (M × dGX) is indicated by reference numeral 210 in FIG. Therefore, the compliance control logic in the control device controls the position of the trunk 80 in the X-axis direction so that the external force and the restoring force of the virtual spring 202 are balanced. Specifically, when the spring constant of the virtual spring 202 is K, the length dL is determined so that the magnitude of the restoring force (K × dL) is balanced with the magnitude of the external force (M × dGX). Then, the trunk 80 is moved in the X-axis direction by the length dL. The posture of the robot 100 at this time is shown in FIG. The trunk 80 is controlled to a position moved by dL in the X-axis direction. In order to move the trunk 80 by dL in the X-axis direction, the angles of the joints are controlled so that the posture of the leg link group 110b shown in FIG.
At this time, in the compliance control logic, an external force (M × dGX) (indicated by an arrow 210 in FIG. 7) and a restoring force (K × dL) of a virtual spring 202 (indicated by an arrow 220 in FIG. 7B) are generated. It is judged that it is balanced. However, the acceleration dGX is not an acceleration actually acting on the trunk 80 but is generated due to the presence of a bias value that is shifted when the output of the acceleration sensor 30 is taken. As a result, the posture is shifted although no external force is applied to the trunk 80. In particular, if the posture of the robot 100 deviates when it is stationary, it can be clearly recognized. The existence of a bias value that is deviated greatly affects the posture control of the robot.
If the offset value for canceling the shifted bias value is accurately obtained, the robot posture shift as in the above example does not occur. It is important to obtain an offset value that cancels the bias value.

なお、図7(B)に示した姿勢ではロボットは前方へ倒れる可能性があるように見える。図7(B)はバイアス値のずれを説明するためにロボットの姿勢の変化を誇張して描いたもので、実際にロボットが倒れる可能性は少ない。また、仮想的な壁200と仮想的なバネ202及び仮想的なダンパ204は実在するものではなくコンプライアンス制御ロジック内で演算上のものであるが図7にはわかりやすいように実線で描いた。
また体幹80が図7(B)に示すようにX軸方向前方へ移動するには脚リンク群の姿勢が図7(B)の符号110bで示すように変化する。その際に脚リンク群110の幾何学的拘束条件から体幹80は鉛直下方へずれるが図7ではそのずれは無視して描いてある。
In the posture shown in FIG. 7B, it seems that the robot may fall forward. FIG. 7B is an exaggerated illustration of the change in the posture of the robot in order to explain the deviation of the bias value, and there is little possibility that the robot will actually fall. Further, the virtual wall 200, the virtual spring 202, and the virtual damper 204 are not actual but are computational in the compliance control logic, but are drawn with solid lines in FIG. 7 for easy understanding.
Further, in order for the trunk 80 to move forward in the X-axis direction as shown in FIG. 7B, the posture of the leg link group changes as indicated by reference numeral 110b in FIG. 7B. At that time, the trunk 80 is shifted vertically downward from the geometric constraint condition of the leg link group 110, but in FIG.

次に図1から図4を用いて本発明の実施例によるロボットの制御を説明する。
図1は本実施例のロボット制御装置10とロボット本体100のブロック図である。ロボット制御部10とロボット本体100を合わせたものが「ロボット」である。ロボット制御装置10には、ロボットへ指示する歩容データ20(ロボット本体100の各所に設けられている基準点の目標位置の経時的データ)が入力される加速度演算部22を備える。この加速度演算部22は、歩容データ20からロボット各所の基準点の目標加速度を算出する。減算部23では、加速度演算部22で算出されたロボット本体100の各基準点の目標加速度から、ロボット本体100に設置された加速度センサ30から得られるロボット本体100の基準点の加速度が減算される。減算部23で減算されるロボット本体100の基準点の加速度は、加速度センサ30から取得した加速度からオフセット値を減算し、さらに重力成分を除去した加速度である。オフセット値および、重力成分の除去については後述する。
ロボット制御部10はまた、減算部23で算出された加速度が入力されるフィードバック制御部24を備える。フィードバック制御部24では、図7でロボット100の姿勢変化について例示した際に説明したコンプライアンス制御が実行される。そしてフィードバック制御部24からはコンプライアンス制御ロジックにより求められたロボットの各基準点のサンプリング毎の目標位置が出力される。
さらにフィードバック制御部24の出力をロボット各関節に備えられたアクチュエータ28(以下、関節アクチュエータと称す)へ指示する目標関節角度に変換する目標値変換部26を備える。変換された関節アクチュエータへ指示する目標関節角度は、各関節のアクチュエータ28に送られ、ロボット本体100が動作する。
ロボット制御装置10はまた、ロボット本体100の体幹に固定された加速度センサ30から出力される電気量を加速度に換算する換算部31を備える。換算部31は加速度センサ30が出力する電気量に対してゲイン(比例定数)を乗じ、バイアス値を加える。このときのゲインとバイアス値は、加速度センサ30をロボットに固定する前に校正した際に測定された値である。
ロボット制御装置10はさらに、換算部31から出力される加速度と、姿勢角センサ32の値から加速度のオフセット値を設定するオフセット設定部34と、設定されたオフセット値を記憶するオフセット記憶部36を備える。記憶されたオフセット値は減算部37において、加速度フィードバック制御の際に、換算部31から出力される体幹の加速度から減算される。この減算処理により、加速度センサ30が出力する校正時のバイアス値からずれたバイアス値を含む電気量を換算部31で変換した加速度から、ずれたバイアス分の加速度を除去した加速度(ロボット100に生じる真の加速度)を得ることができる。そして加速度制御フィードバック制御を容易にするため、オフセット値(ずれたバイアス分の加速度)を減算したロボットに生じる真の加速度値から重力加速度成分を除去する重力加速度成分除去部38を備える。
なおスイッチ40および42は、オフセット値を設定するときとロボットを実際に制御するときに応じて制御回路を切り替えるためのスイッチである。
Next, the control of the robot according to the embodiment of the present invention will be described with reference to FIGS.
FIG. 1 is a block diagram of a robot control apparatus 10 and a robot body 100 according to the present embodiment. A combination of the robot controller 10 and the robot body 100 is a “robot”. The robot control device 10 includes an acceleration calculation unit 22 to which gait data 20 (temporal data of target positions of reference points provided at various locations on the robot body 100) for instructing the robot is input. The acceleration calculation unit 22 calculates target accelerations at reference points at various locations of the robot from the gait data 20. In the subtracting unit 23, the acceleration at the reference point of the robot main body 100 obtained from the acceleration sensor 30 installed in the robot main body 100 is subtracted from the target acceleration of each reference point of the robot main body 100 calculated by the acceleration calculating unit 22. . The acceleration at the reference point of the robot body 100 subtracted by the subtracting unit 23 is an acceleration obtained by subtracting the offset value from the acceleration acquired from the acceleration sensor 30 and further removing the gravity component. The removal of the offset value and the gravity component will be described later.
The robot control unit 10 also includes a feedback control unit 24 to which the acceleration calculated by the subtraction unit 23 is input. In the feedback control unit 24, the compliance control described when the posture change of the robot 100 is illustrated in FIG. 7 is executed. The feedback control unit 24 outputs a target position for each sampling of each reference point of the robot obtained by the compliance control logic.
Furthermore, a target value conversion unit 26 is provided that converts the output of the feedback control unit 24 into a target joint angle that instructs an actuator 28 (hereinafter referred to as a joint actuator) provided in each joint of the robot. The converted target joint angle instructed to the joint actuator is sent to the actuator 28 of each joint, and the robot body 100 operates.
The robot control device 10 also includes a conversion unit 31 that converts the amount of electricity output from the acceleration sensor 30 fixed to the trunk of the robot body 100 into acceleration. The conversion unit 31 multiplies the amount of electricity output from the acceleration sensor 30 by a gain (proportional constant) and adds a bias value. The gain and bias value at this time are values measured when the acceleration sensor 30 is calibrated before being fixed to the robot.
The robot control device 10 further includes an offset setting unit 34 that sets an acceleration offset value from the acceleration output from the conversion unit 31 and the value of the attitude angle sensor 32, and an offset storage unit 36 that stores the set offset value. Prepare. The stored offset value is subtracted from the trunk acceleration output from the conversion unit 31 in the acceleration feedback control in the subtraction unit 37. By this subtraction processing, an acceleration (generated in the robot 100) is obtained by removing the acceleration corresponding to the shifted bias from the acceleration converted by the conversion unit 31 including the bias value shifted from the bias value at the time of calibration output from the acceleration sensor 30. True acceleration). In order to facilitate acceleration control feedback control, a gravitational acceleration component removing unit 38 is provided that removes the gravitational acceleration component from the true acceleration value generated in the robot obtained by subtracting the offset value (acceleration for the shifted bias).
The switches 40 and 42 are switches for switching the control circuit in accordance with the setting of the offset value and the actual control of the robot.

次にロボット制御装置10の主要な構成要素について説明を加える。
歩容データ20には、ロボットの各所に設定された基準点の経時的な目標位置のデータが記述されている。加速度演算部22ではこの経時的な目標位置データからロボットの基準点の目標加速度が算出される。
一方ロボットに生じている加速度は加速度センサ30で検出される。加速度センサ30が出力する電気量が変換部31で加速度に変換され、減算部37でオフセット値が減算される(この時点で真の加速度の値となる)。減算部37でオフセット値が減算された値から、さらに重力加速度成分除去部38で重力加速度成分が除去される(この時点でロボットの動作によって生じる真の加速度の値となる)。
減算部23は、加速度演算部22で算出された目標加速度から、ロボットの動作によって生じている真の加速度を減算し、目標加速度からの偏差をフィードバック制御部24へ送る。このフィードバック制御部24内には前述したコンプライアンス制御ロジックの他にPID制御ロジックなどの制御回路が組まれている。フィードバック制御部24からはロボットの基準点のサンプリング毎の目標位置が出力される。この出力は目標値変換部26に入力され、各関節アクチュエータのサンプリング毎の目標関節角度に変換されロボット本体100の各関節アクチュエータ28が駆動される。
Next, a description will be given of main components of the robot control apparatus 10.
The gait data 20 describes data of target positions over time of reference points set in various places of the robot. The acceleration calculation unit 22 calculates the target acceleration of the reference point of the robot from the target position data with time.
On the other hand, the acceleration generated in the robot is detected by the acceleration sensor 30. The amount of electricity output from the acceleration sensor 30 is converted into acceleration by the conversion unit 31, and the offset value is subtracted by the subtraction unit 37 (at this time, the value becomes the true acceleration value). From the value obtained by subtracting the offset value by the subtracting unit 37, the gravitational acceleration component removing unit 38 further removes the gravitational acceleration component (this is the true acceleration value generated by the robot operation at this point).
The subtracting unit 23 subtracts the true acceleration generated by the operation of the robot from the target acceleration calculated by the acceleration calculating unit 22 and sends a deviation from the target acceleration to the feedback control unit 24. In addition to the above-described compliance control logic, a control circuit such as a PID control logic is built in the feedback control unit 24. The feedback control unit 24 outputs a target position for each sampling of the reference point of the robot. This output is input to the target value conversion unit 26, converted into a target joint angle for each sampling of each joint actuator, and each joint actuator 28 of the robot body 100 is driven.

ロボット本体100に備えられた加速度センサ30は体幹に固定されている。加速度センサ30の例としては、体幹上下方向、前後方向、体側方向の加速度を検出できるよう3軸の加速度センサもしくは3軸ごとに独立した1軸加速度センサが3個用いられる。姿勢角センサ32は、加速度センサ30の鉛直方向に対する姿勢角を検出する。姿勢角センサ32は加速度センサ30に直接的または間接的に固定されている。ここで間接的に固定される、とは同一の部材に対して加速度センサと姿勢角センサが固定されており、その位置関係がロボットに組み込む前に既知であるという意味である。
傾斜角センサとしては、鉛直方向に対する姿勢角を直接検出する傾斜角センサを用いることができる。また、加速度センサと角速度センサを内蔵するセンサユニットであって、それら2種類のセンサの出力値に基づいて、加速度検出方向が鉛直方向に対してなす姿勢角をセンサユニット内部で演算して出力するものであってもよい。
The acceleration sensor 30 provided in the robot body 100 is fixed to the trunk. As an example of the acceleration sensor 30, three triaxial acceleration sensors or three independent single axis acceleration sensors for each of the three axes are used so that accelerations in the trunk vertical direction, front-rear direction, and body side direction can be detected. The attitude angle sensor 32 detects the attitude angle of the acceleration sensor 30 with respect to the vertical direction. The attitude angle sensor 32 is fixed directly or indirectly to the acceleration sensor 30. Here, indirectly fixed means that the acceleration sensor and the attitude angle sensor are fixed to the same member, and the positional relationship is known before being incorporated into the robot.
As the inclination angle sensor, an inclination angle sensor that directly detects a posture angle with respect to the vertical direction can be used. In addition, the sensor unit includes an acceleration sensor and an angular velocity sensor, and based on the output values of these two types of sensors, the attitude angle formed by the acceleration detection direction with respect to the vertical direction is calculated and output inside the sensor unit. It may be a thing.

加速度センサ30の出力値は、電圧や電流などの電気量である。この電気量を加速度に変換するのが換算部31である。加速度センサ30自体はロボットに組み込む前に校正されているので換算値は既知である。例えば加速度センサ30の出力が電圧値で、1.0[V]の出力が9.8[m/sec]に相当する場合は、加速度センサ30からの出力値に対する換算定数は9.8[m/sec/V]である。換算部31では、加速度センサ30の出力する電気量に対して上述した既知の換算定数を乗じて加速度の単位に変換して出力する。 The output value of the acceleration sensor 30 is an electric quantity such as voltage or current. The conversion unit 31 converts this amount of electricity into acceleration. Since the acceleration sensor 30 itself is calibrated before being incorporated into the robot, the conversion value is known. For example, when the output of the acceleration sensor 30 is a voltage value and the output of 1.0 [V] corresponds to 9.8 [m / sec 2 ], the conversion constant for the output value from the acceleration sensor 30 is 9.8 [m / sec 2 / V. ]. The conversion unit 31 multiplies the amount of electricity output from the acceleration sensor 30 by the known conversion constant described above to convert it into a unit of acceleration and outputs it.

加速度センサ30のオフセット値を設定する場合は、スイッチ40を接続状態に、スイッチ42を切断状態とする。そして加速度センサ30の出力と姿勢角センサ32の出力からオフセット設定部34でオフセット値が設定される。設定されたオフセット値はオフセット記憶部36に記憶される。ここでスイッチ42を切断状態としてフィードバック回路を切り離すのは、制御系の安定性の問題からロボットが振動しないようにするためである。   When setting the offset value of the acceleration sensor 30, the switch 40 is set to the connected state and the switch 42 is set to the disconnected state. The offset setting unit 34 sets an offset value from the output of the acceleration sensor 30 and the output of the attitude angle sensor 32. The set offset value is stored in the offset storage unit 36. The reason why the feedback circuit is disconnected with the switch 42 in a disconnected state is to prevent the robot from vibrating due to the stability problem of the control system.

オフセット値を設定した後は、スイッチ40を切断状態に、スイッチ42を接続状態とする。オフセット値を設定した後はオフセット設定部34を実行する必要はなく、またロボット制御時には加速度フィードバックが必要となるからである。   After setting the offset value, the switch 40 is disconnected and the switch 42 is connected. This is because it is not necessary to execute the offset setting unit 34 after setting the offset value, and acceleration feedback is required during robot control.

重力加速度成分除去部38は、特にロボットにコンプライアンス制御を行わせるときに有効である。コンプライアンス制御では、ロボットに外力が加えられた際、その外力によってロボットが見かけ上マス/ダンパ系、あるいはバネ/マス/ダンパ系として運動するよう制御するものである。そこで加速度センサ30の出力値から重力加速度成分を除去することでフィードバック制御部24内においては重力加速度を無視してロボットに加えられた外力だけを考慮した制御系を構成すればよいことになる。従ってフィードバック制御ロジックを簡略化できる。   The gravitational acceleration component removing unit 38 is particularly effective when causing the robot to perform compliance control. In compliance control, when an external force is applied to the robot, control is performed so that the robot apparently moves as a mass / damper system or a spring / mass / damper system by the external force. Therefore, by removing the gravitational acceleration component from the output value of the acceleration sensor 30, a control system in which only the external force applied to the robot is considered in the feedback control unit 24 while ignoring the gravitational acceleration. Therefore, the feedback control logic can be simplified.

なお、ロボット制御装置10が加速度センサ30の出力の取得する際にセンサの出力値に誤差(バイアス値)が加わる。この誤差は、センサ校正時には現れなかった誤差である。その要因は例えばセンサ校正時とロボット制御装置が備えるA/Dコンバータの違いなどによる。   When the robot controller 10 acquires the output of the acceleration sensor 30, an error (bias value) is added to the output value of the sensor. This error is an error that did not appear during sensor calibration. The cause is, for example, due to the difference between the A / D converter provided in the robot controller and the sensor calibration.

次に図2に基づいてオフセット設定部34内部の各モジュールについて説明する。
加速度検出方向算出部56では、姿勢角センサ32から入力された姿勢角データ50に基づいて加速度センサ30の加速度検出方向を算出する。加速度センサ30の鉛直方向に対する姿勢角は、加速度センサの所定方向に固定された基準線と、鉛直方向のなす角度で表される。所定方向に固定された基準線が、加速度検出方向に一致しているなら、姿勢角そのものが加速度センサ30の加速度検出方向に相当する。また所定方向に固定された基準線が、加速度検出方向に一致していないなら、基準線と加速度検出方向の位置関係と姿勢角から加速度センサ30の加速度検出方向を算出できる。次に重力加速度ベクトル成分算出部58では、重力加速度のうち、加速度センサ30の加速度検出の方向の成分を算出する。そして加速度検出方向算出部56で求めた鉛直方向に対する加速度検出方向の、重力加速度の成分を算出する。
オフセット算出部60には、変換部31によって加速度センサ30から出力された電気量から変換された加速度のデータ52が入力される。このオフセット算出部60で、取得した加速度のデータ52から算出された重力加速度の加速度検出方向の成分を減算してオフセット値が設定される。設定されたオフセト値はオフセット記憶部36に記憶される。
Next, each module in the offset setting unit 34 will be described with reference to FIG.
The acceleration detection direction calculation unit 56 calculates the acceleration detection direction of the acceleration sensor 30 based on the attitude angle data 50 input from the attitude angle sensor 32. The attitude angle of the acceleration sensor 30 with respect to the vertical direction is represented by an angle formed between the reference line fixed in a predetermined direction of the acceleration sensor and the vertical direction. If the reference line fixed in the predetermined direction coincides with the acceleration detection direction, the posture angle itself corresponds to the acceleration detection direction of the acceleration sensor 30. If the reference line fixed in the predetermined direction does not coincide with the acceleration detection direction, the acceleration detection direction of the acceleration sensor 30 can be calculated from the positional relationship between the reference line and the acceleration detection direction and the posture angle. Next, the gravitational acceleration vector component calculation unit 58 calculates a component in the acceleration detection direction of the acceleration sensor 30 from the gravitational acceleration. Then, a gravitational acceleration component in the acceleration detection direction with respect to the vertical direction obtained by the acceleration detection direction calculation unit 56 is calculated.
The offset calculation unit 60 receives acceleration data 52 converted from the amount of electricity output from the acceleration sensor 30 by the conversion unit 31. In the offset calculation unit 60, an offset value is set by subtracting the acceleration detection direction component of the gravitational acceleration calculated from the acquired acceleration data 52. The set offset value is stored in the offset storage unit 36.

上記装置では、姿勢角センサ32によって加速度センサ30の鉛直方向に対する姿勢角を直接検出するので、体幹がどのような姿勢であってもかまわない。
この加速度センサ30の姿勢角を基準にして、鉛直方向に対する加速度センサ30の加速度検出方向および重力加速度の方向を求めることができる。これにより加速度センサ30の出力を取得した値から重力加速度の加速度検出方向成分を減算することが可能となる。またロボットには所定の静止姿勢を保持させているので重力加速度以外にロボットには加速度は作用していない。従って加速度センサ30の出力を加速度に変換した値から重力加速度の加速度検出方向成分を減算したものがバイアス値による誤差(以下、この加速度の単位での誤差を取得誤差と称す)となる。この取得誤差をオフセット値として設定し、ロボット制御時には加速度センサ30から取得した電気量を変換部31で変換した加速度の値からこのオフセット値を減算することで、加速度センサの出力をロボット制御装置10に取り込む際に加わった取得誤差を相殺することが可能となる。
In the above apparatus, since the posture angle sensor 32 directly detects the posture angle of the acceleration sensor 30 with respect to the vertical direction, the trunk may have any posture.
With reference to the posture angle of the acceleration sensor 30, the acceleration detection direction of the acceleration sensor 30 and the direction of gravitational acceleration with respect to the vertical direction can be obtained. Thereby, it is possible to subtract the acceleration detection direction component of the gravitational acceleration from the value obtained from the output of the acceleration sensor 30. In addition, since the robot holds a predetermined stationary posture, no acceleration acts on the robot other than gravitational acceleration. Accordingly, a value obtained by subtracting the acceleration detection direction component of the gravitational acceleration from a value obtained by converting the output of the acceleration sensor 30 into an acceleration is an error due to a bias value (hereinafter, an error in units of acceleration is referred to as an acquisition error). This acquisition error is set as an offset value, and at the time of robot control, the output of the acceleration sensor is subtracted from the acceleration value obtained by subtracting the offset value from the acceleration value obtained by converting the electric quantity acquired from the acceleration sensor 30 by the conversion unit 31. It is possible to cancel the acquisition error added when importing into the.

次に図3のフローチャート図によりオフセット値設定処理の流れを説明する。まずステップS100でロボット本体100に対して所定の静止姿勢を保持するよう目標位置の指令値(歩容データ)が出力される。この指令値は図1では符号20で示した線で表されている。所定の静止姿勢は任意の姿勢でよいが、ロボット制御中、体幹は歩行面に対して垂直な姿勢と保持するよう制御されることが多い。例えばいわゆる直立姿勢である。そこで体幹の上下方向が歩行面に対して垂直な姿勢となる静止姿勢が好ましい。体幹が歩行面に対して垂直となった姿勢でオフセット値を設定することで、加速度センサから取得した加速度の値からオフセット値を減算した値が最も正確となるのがオフセット値設定時の姿勢、すなわち直立姿勢のときとなる。加速度フィードバック制御時に歩容データとして体幹が歩行面に対して垂直となるような姿勢を与えたときに、ロボットの実際の姿勢もその歩容データに極めて近い姿勢となるよう制御することが可能となる。   Next, the flow of the offset value setting process will be described with reference to the flowchart of FIG. First, in step S100, a command value (gait data) of the target position is output so as to maintain a predetermined stationary posture with respect to the robot body 100. This command value is represented by a line indicated by reference numeral 20 in FIG. The predetermined stationary posture may be an arbitrary posture, but during the robot control, the trunk is often controlled to be held in a posture perpendicular to the walking surface. For example, a so-called upright posture. Therefore, a stationary posture in which the vertical direction of the trunk is a posture perpendicular to the walking surface is preferable. By setting the offset value in a posture in which the trunk is perpendicular to the walking surface, the value obtained by subtracting the offset value from the acceleration value acquired from the acceleration sensor is the most accurate posture at the time of offset value setting. That is, it becomes the time of an upright posture. When giving a posture that causes the trunk to be perpendicular to the walking surface as gait data during acceleration feedback control, the actual posture of the robot can be controlled to be very close to the gait data. It becomes.

次にステップS102では、姿勢角センサ32の出力および加速度センサ30の出力値を取得する。このときセンサからの出力にノイズなどの高周波成分が含まれる場合はローパスフィルタを通すことも好ましい。
次にステップS104では加速度センサ30から取得した電気量を加速度の単位に換算する換算定数を乗じる。こうして加速度センサ30から出力された値は加速度の次元で扱うことが可能となる。
次にステップS106では、加速度センサ30の加速度検出方向を算出する。この処理はステップS102で取得した姿勢角データ(加速度センサの鉛直方向に対する姿勢角)における加速度センサの基準線と加速度検出方向との位置関係からから算出することができる。
次にステップS108では、重力加速度のうち、加速度検出方向の成分を算出する。重力加速度は鉛直下方を向くベクトルであり、また加速度検出方向もステップS106で算出されているのでこれらより重力加速度の加速度検出方向の成分を算出することができる。
次にステップS110では、ステップS106で換算された加速度の値からステップS108で算出された値を減算する。減算した結果がオフセット値となる。最後にステップS112で算出されたオフセット値をオフセット記憶部36に記憶する。こうして加速度センサ30のオフセット値が設定される。
Next, in step S102, the output of the attitude angle sensor 32 and the output value of the acceleration sensor 30 are acquired. At this time, when a high-frequency component such as noise is included in the output from the sensor, it is also preferable to pass through a low-pass filter.
Next, in step S104, the electric quantity acquired from the acceleration sensor 30 is multiplied by a conversion constant for converting the unit of acceleration. Thus, the value output from the acceleration sensor 30 can be handled in the dimension of acceleration.
Next, in step S106, the acceleration detection direction of the acceleration sensor 30 is calculated. This process can be calculated from the positional relationship between the reference line of the acceleration sensor and the acceleration detection direction in the attitude angle data (attitude angle with respect to the vertical direction of the acceleration sensor) acquired in step S102.
Next, in step S108, a component in the acceleration detection direction of the gravitational acceleration is calculated. Since the gravitational acceleration is a vector pointing vertically downward, and the acceleration detection direction is also calculated in step S106, the component of the gravitational acceleration in the acceleration detection direction can be calculated from these.
Next, in step S110, the value calculated in step S108 is subtracted from the acceleration value converted in step S106. The result of subtraction is the offset value. Finally, the offset value calculated in step S112 is stored in the offset storage unit 36. Thus, the offset value of the acceleration sensor 30 is set.

姿勢角センサ32が出力する姿勢角に対してもロボットの制御装置に取り込む際にバイアス(誤差)が付加される可能性はある。しかし制御装置への取り込み時に付加される、加速度に対する誤差と姿勢角に対する誤差の要因が同じであるならば、取り込んだ姿勢角を正確な値であると仮定して加速度の誤差を特定することには物理的に有益な意味がある。加速度と姿勢角では動力学的次元が異なるからである。加速度を2回積分した値が位置となる。従ってロボットに生じる加速度を検出し、検出された加速度を制御装置に取り込んでロボットの運動を推定するとき、制御装置に取り込む際に加速度の値に加わる誤差は、2回の積分により累積されて位置に反映される。一方姿勢角はそれ以上積分することはないので制御装置に取り込まれる際に加わった誤差はそのままである。2回の積分により累積される誤差は、姿勢角の次元(即ち位置の次元)で加わる誤差よりも大きくなる。換言すれば位置の次元で加わる誤差は加速度の次元で加わる誤差と比較して、ロボットの運動に与える影響は小さい。影響の小さい誤差を含む値(姿勢角)に基づいて影響の大きい誤差を含む値(加速度)を修正すれば、影響の大きい誤差を含む値(加速度)の誤差は小さくすることができる。   There is a possibility that a bias (error) is added to the posture angle output from the posture angle sensor 32 when the posture angle is taken into the robot controller. However, if the error factor for acceleration and the error for posture angle added at the time of loading into the control device are the same, it is assumed that the captured posture angle is an accurate value and the error in acceleration is specified. Has a physically beneficial meaning. This is because the dynamic dimension differs between acceleration and attitude angle. The value obtained by integrating the acceleration twice is the position. Therefore, when the acceleration generated in the robot is detected and the detected acceleration is taken into the control device to estimate the movement of the robot, the error added to the acceleration value at the time of taking in the control device is accumulated by the two integrations to obtain the position. It is reflected in. On the other hand, since the attitude angle is not integrated any more, the error added when it is taken into the control device remains as it is. The error accumulated by the two integrations is larger than the error added in the posture angle dimension (that is, the position dimension). In other words, the error added in the position dimension has a smaller effect on the robot motion than the error added in the acceleration dimension. If the value (acceleration) including the error having a large influence is corrected based on the value including the error (attitude angle) including the error having a small influence, the error of the value (acceleration) including the error having a large influence can be reduced.

また、加速度センサ30が複数あるときは図3のフローチャートの処理を各加速度センサごとに繰り返す。加速度センサ30は体幹の上下方向を向く第1の加速度センサと体幹の前後方向に向く第2の加速度センサを備えていることが好ましい。特に第2のセンサは、ロボットが歩行する際に、ロボットの前後方向の加速度を検出するのに適している。ロボットが前後方向バランスを失わずに歩行するには、ロボットの前後方向の加速度を直接検知する方が有利だからである。
さらに一つの加速度センサ30に対して、ロボットに複数の静止姿勢を保持させ図3の処理を繰り返す。そして複数の静止姿勢に対して求まったオフセット値を平均化して最終的なオフセット値とすることも好適である。
When there are a plurality of acceleration sensors 30, the process of the flowchart of FIG. 3 is repeated for each acceleration sensor. The acceleration sensor 30 preferably includes a first acceleration sensor that faces in the vertical direction of the trunk and a second acceleration sensor that faces in the longitudinal direction of the trunk. In particular, the second sensor is suitable for detecting the longitudinal acceleration of the robot when the robot walks. This is because it is more advantageous to directly detect the longitudinal acceleration of the robot in order for the robot to walk without losing the longitudinal balance.
Further, with respect to one acceleration sensor 30, the robot holds a plurality of stationary postures and repeats the process of FIG. It is also preferable to average the offset values obtained for a plurality of stationary postures to obtain a final offset value.

次に図4を用いてオフセット値設定の具体例を示す。図4にはロボット本体100の体幹80のみを示し、他のリンク部品は省略してある。体幹80には加速度センサ30が点線に示すように取り付けられている。説明を簡単にするため、2次元平面におけるオフセット値の設定方法について説明する。また以後は加速度センサ30の出力である電気量から加速度に変換された後の値を加速度センサ30からの出力値として扱って説明する。
体幹80には加速度センサ30が点線に示すように取り付けられている。ここで加速度センサ30の中心を原点とし、X,Z軸を図4に示す座標系を仮定する。なお、X軸は体幹前方を向き、Z軸は体幹下方に向いている。ここで重力加速度は符号gで表してある。従ってgが示す矢印の方向が鉛直下方となる。このとき加速度センサ30の姿勢角は符号82で示す角度となる。この姿勢角は姿勢角センサから取得される。なお今は2次元平面内に限定しているので加速度センサ30の姿勢角は角度82のみで決定される。また加速度センサ30の加速度検出方向はX軸の方向である。この場合、重力加速度のX軸成分、すなわち加速度検出方向成分はベクトルgの大きさに、角度82の正弦を乗じた値となる。図4に符号84に示す矢印が重力加速度の加速度検出方向成分である。このとき、加速度センサ30の出力値が符号86で示す矢印であったとする。ロボットには静止姿勢を保持させているので体幹80には重力加速度以外の加速度は生じていない。従って加速度センサ30の出力値86から重力加速度の加速度検出方向成分84を減じた値、即ち図4に88で示す矢印の大きさがバイアス値に対する加速度の単位でのオフセット値として設定される。以上は2次元平面に限定して説明したが3次元空間状でも同様にオフセット値を設定することができる。
Next, a specific example of offset value setting will be described with reference to FIG. FIG. 4 shows only the trunk 80 of the robot main body 100, and other link parts are omitted. The acceleration sensor 30 is attached to the trunk 80 as shown by the dotted line. In order to simplify the description, a method for setting an offset value in a two-dimensional plane will be described. Further, hereinafter, a value after being converted from an electric quantity, which is an output of the acceleration sensor 30, into an acceleration will be described as an output value from the acceleration sensor 30.
The acceleration sensor 30 is attached to the trunk 80 as shown by the dotted line. Here, it is assumed that the center of the acceleration sensor 30 is the origin, and the coordinate system shown in FIG. The X axis faces the trunk front, and the Z axis faces the trunk downward. Here, the gravitational acceleration is represented by the symbol g. Therefore, the direction of the arrow indicated by g is vertically downward. At this time, the attitude angle of the acceleration sensor 30 is an angle indicated by reference numeral 82. This posture angle is acquired from a posture angle sensor. Note that the posture angle of the acceleration sensor 30 is determined only by the angle 82 since it is currently limited to a two-dimensional plane. The acceleration detection direction of the acceleration sensor 30 is the X-axis direction. In this case, the X-axis component of the gravitational acceleration, that is, the acceleration detection direction component, is a value obtained by multiplying the magnitude of the vector g by the sine of the angle 82. An arrow indicated by reference numeral 84 in FIG. 4 is an acceleration detection direction component of gravitational acceleration. At this time, it is assumed that the output value of the acceleration sensor 30 is an arrow indicated by reference numeral 86. Since the robot holds a static posture, no acceleration other than gravitational acceleration is generated in the trunk 80. Accordingly, a value obtained by subtracting the acceleration detection direction component 84 of the gravitational acceleration from the output value 86 of the acceleration sensor 30, that is, the size of the arrow indicated by 88 in FIG. 4 is set as an offset value in units of acceleration with respect to the bias value. Although the above description is limited to a two-dimensional plane, an offset value can be set similarly in a three-dimensional space.

なお、オフセット値を算出する間、ロボットを任意の静止姿勢とさせるが、この静止姿勢として、直立姿勢で静止させておくことも好ましい。ロボットは動作の前後の静止期間、あるいは直進歩行中など、体幹の上下方向を鉛直方向に向けている場合が多い。従ってそのような姿勢においてオフセット値を算出することによって、動作中によく取る姿勢のときにオフセット値を減じた値がより正確となるようにすることができる。
また、図1のブロック図では加速度センサ30と、姿勢角センサ32は独立のものとして描いた。姿勢角センサとしては例えば傾斜角センサ等がある。また加速度センサ30と姿勢角センサ32を合わせたユニットとして、加速度センサと角速度センサを一つの筐体に収め、鉛直方向に対する姿勢角は加速度センサと角速度センサの出力から算出して出力するものを用いてもよい。
While the offset value is calculated, the robot is in an arbitrary stationary posture. It is also preferable that the robot is stationary in an upright posture as this stationary posture. Robots often have their trunks oriented vertically, such as during stationary periods before and after movement, or during straight forward movements. Therefore, by calculating the offset value in such a posture, the value obtained by subtracting the offset value in the posture often taken during the operation can be made more accurate.
In the block diagram of FIG. 1, the acceleration sensor 30 and the attitude angle sensor 32 are depicted as independent. An example of the attitude angle sensor is an inclination angle sensor. In addition, as a unit combining the acceleration sensor 30 and the attitude angle sensor 32, an acceleration sensor and an angular velocity sensor are housed in one housing, and an attitude angle with respect to the vertical direction is calculated and output from the outputs of the acceleration sensor and the angular velocity sensor. May be.

次に図5および図6を用いて、オフセット値設定後のロボットの制御について説明する。この制御はロボットに取り付けられた加速度センサの値からオフセット値と重力加速度成分を除去した値を用いてロボットに加速度フィードバック制御を行うものである。   Next, the control of the robot after setting the offset value will be described with reference to FIGS. This control performs acceleration feedback control on the robot using a value obtained by removing the offset value and the gravitational acceleration component from the value of the acceleration sensor attached to the robot.

図5はロボット制御中に行われる、加速度フィードバックループ中の重力加速度成分除去の流れを示すフローチャート図である。図5とともに図1を参照しながら処理の流れを説明する。以下の処理は図1の重力成分除去部38で処理される。
ステップS102bでは、ロボット動作中の各サンプリング周期毎にロボット本体100に備えられた加速度センサ30と姿勢角センサ32の出力値を取得する。なお、ステップS102bでは加速度センサの出力する電気量に対して既知の換算定数を乗じる処理も行う。従ってステップS102b以降では加速度センサからの出力は加速度の次元を有する物理量として扱う。次にステップS106bでは加速度センサの加速度検出方向を算出する。ステップS108bでは重力加速度のうち、加速度検出方向の成分を算出する。ステップS110bでは加速度センサ30の出力からステップS108bで算出された重力加速度の加速度検出方向成分を減算する。ここまでの処理において、サンプリング毎に各ステップで行われる処理は図3のフローチャートに示した処理と同じである。具体的にはステップS102bの処理は図3のステップS102およびS104の処理と、ステップS106bはステップS106と、ステップS108bはステップS108と、ステップS110bはステップS110と同じ処理を行っている。
FIG. 5 is a flowchart showing a flow of gravity acceleration component removal in the acceleration feedback loop performed during robot control. The flow of processing will be described with reference to FIG. 1 together with FIG. The following processing is processed by the gravity component removal unit 38 of FIG.
In step S102b, output values of the acceleration sensor 30 and the attitude angle sensor 32 provided in the robot main body 100 are acquired for each sampling period during the robot operation. In step S102b, a process of multiplying the amount of electricity output from the acceleration sensor by a known conversion constant is also performed. Therefore, after step S102b, the output from the acceleration sensor is treated as a physical quantity having a dimension of acceleration. In step S106b, the acceleration detection direction of the acceleration sensor is calculated. In step S108b, a component in the acceleration detection direction of the gravitational acceleration is calculated. In step S110b, the acceleration detection direction component of the gravitational acceleration calculated in step S108b is subtracted from the output of the acceleration sensor 30. In the processing so far, the processing performed at each step for each sampling is the same as the processing shown in the flowchart of FIG. Specifically, the process of step S102b is the same as the process of steps S102 and S104 of FIG. 3, step S106b is the same as step S106, step S108b is the same as step S108, and step S110b is the same as the process of step S110.

ここで、ステップS110bの加速度センサ30の出力値から重力加速度の加速度検出方向成分を減算する処理が重力加速度成分を除去する処理である。
最後にステップS114では、オフセット記憶部36に記憶されているオフセット値を重力加速度成分が除去された後の加速度センサ出力値から減算する。こうして得られた結果が重力加速度成分除去部38の出力となる。そして図1に示すように加速度演算部22から出力される加速度目標値とともにフィードバックループを形成する。
Here, the process of subtracting the acceleration detection direction component of the gravitational acceleration from the output value of the acceleration sensor 30 in step S110b is the process of removing the gravitational acceleration component.
Finally, in step S114, the offset value stored in the offset storage unit 36 is subtracted from the acceleration sensor output value after the gravitational acceleration component is removed. The result thus obtained becomes the output of the gravitational acceleration component removing unit 38. Then, as shown in FIG. 1, a feedback loop is formed together with the acceleration target value output from the acceleration calculation unit 22.

次に図6を用いて重力加速度成分の除去の処理を例示する。図4と同様に2次元平面に限定して説明する。
今、所定のサンプリング時点(所定のタイミング時点)において、体幹80には矢印98で示す加速度が生じているものとする。このときX軸方向を加速度検出方向とする加速度センサ30の出力値は96で示す矢印であるとする。このセンサ出力値96には重力加速度gと体幹80に加わっている加速度ベクトル98の加速度検出方向成分が含まれる。また同時にセンサ誤差(オフセット値)も含まれる。従って加速度センサ30の出力値96から、重力加速度gの加速度検出方向成分とオフセット値を減算すれば体幹80に加わっている加速度の加速度検出方向成分だけが取り出せる。このことを図6の矢印を用いて説明すると以下の通りとなる。
体幹80の姿勢角は符号92で示す角度である。従って重力加速度gの加速度検出方向成分は94となる。また体幹80に加わった加速度98の加速度検出方向成分は98aに示す矢印となる。矢印98aは理解を容易にするためにX軸上ではなくX軸に対して平行移動させて示した。この98aと同じ大きさのベクトルとして矢印98bをX軸上に描いた。また矢印88の大きさは図4で例示した加速度センサ30のオフセット値の大きさである。即ち加速度センサ30の出力96は、重力加速度gの加速度検出方向成分94、オフセット値88、および体幹80に加わっている加速度ベクトル98の加速度検出方向成分98bが加算されたものである。従って加速度センサ30の出力値96から重力加速度gの加速度検出方向成分94とオフセット値88を減算すれば、体幹80に加わっている加速度ベクトル98の加速度検出方向成分98bを求めることができる。
Next, the process of removing the gravitational acceleration component will be illustrated using FIG. Similar to FIG. 4, the description will be limited to a two-dimensional plane.
Now, it is assumed that an acceleration indicated by an arrow 98 is generated in the trunk 80 at a predetermined sampling time (predetermined timing). At this time, the output value of the acceleration sensor 30 with the X axis direction as the acceleration detection direction is an arrow indicated by 96. The sensor output value 96 includes a gravitational acceleration g and an acceleration detection direction component of the acceleration vector 98 applied to the trunk 80. At the same time, sensor error (offset value) is also included. Therefore, by subtracting the acceleration detection direction component of the gravitational acceleration g and the offset value from the output value 96 of the acceleration sensor 30, only the acceleration detection direction component of the acceleration applied to the trunk 80 can be extracted. This will be described below using the arrows in FIG.
The posture angle of the trunk 80 is an angle indicated by reference numeral 92. Therefore, the acceleration detection direction component of the gravitational acceleration g is 94. Further, the acceleration detection direction component of the acceleration 98 applied to the trunk 80 is an arrow indicated by 98a. The arrow 98a is shown not translated on the X axis but moved parallel to the X axis for easy understanding. An arrow 98b is drawn on the X axis as a vector having the same size as this 98a. Moreover, the magnitude | size of the arrow 88 is a magnitude | size of the offset value of the acceleration sensor 30 illustrated in FIG. That is, the output 96 of the acceleration sensor 30 is obtained by adding the acceleration detection direction component 94 of the gravitational acceleration g, the offset value 88, and the acceleration detection direction component 98b of the acceleration vector 98 applied to the trunk 80. Therefore, by subtracting the acceleration detection direction component 94 of the gravitational acceleration g and the offset value 88 from the output value 96 of the acceleration sensor 30, the acceleration detection direction component 98b of the acceleration vector 98 applied to the trunk 80 can be obtained.

こうして加速度センサ30から出力される電気量のバイアス値により生じる誤差に対するオフセット値と、重力加速度の加速度検出方向成分を減算することで重力加速度以外に体幹80に加わっている加速度の正確な値を求めることが可能となる。
この加速度値を用いてロボットを制御することで、バイアス値をキャンセルした、正確な加速度値でかつ簡単な加速度フィードバック制御系によりロボットを制御することができる。
以上の実施例では加速度センサが一つの場合を例示したが加速度センサが複数あっても同様の処理を適用することが可能である。
Thus, by subtracting the offset value for the error caused by the bias value of the electric quantity output from the acceleration sensor 30 and the acceleration detection direction component of the gravitational acceleration, an accurate value of the acceleration applied to the trunk 80 in addition to the gravitational acceleration is obtained. It can be obtained.
By controlling the robot using this acceleration value, the robot can be controlled by a simple acceleration feedback control system with an accurate acceleration value with the bias value canceled.
In the above embodiment, the case where there is one acceleration sensor is illustrated, but the same processing can be applied even when there are a plurality of acceleration sensors.

なお上記実施例では加速度センサの加速度検出方向を特定するために加速度センサに直接的または間接的に固定されている姿勢角センサを利用した。ここで「間接的に固定される」とは同一の部材に対して加速度センサと姿勢角センサが固定されており、その位置関係がロボットに組み込む前に(事前に)既知であるという意味である。体幹の姿勢を特定するためには脚リンク群の各関節に備えられたエンコーダの値と脚の各リンクの形状からいわゆる順変換によって体幹の姿勢を求めることもできる。しかしながらエンコーダの値にも誤差が含まれる。さらには複数の関節がリンクを介して直列に連結された脚リンク群の構造から順変換を行うと各エンコーダの誤差が累積する。さらに順変換にはリンク自体の剛性は考慮されない。以上の理由からエンコーダの値に基づいて体幹の姿勢角、さらには加速度センサの加速度検出方向を特定するよりも、姿勢角センサから加速度センサの加速度検出方向を特定する際の精度の方が顕著に高精度となる。姿勢角センサを用いることにより加速度センサのオフセット値を高精度に求めることが可能となる。   In the above embodiment, an attitude angle sensor fixed directly or indirectly to the acceleration sensor is used to specify the acceleration detection direction of the acceleration sensor. Here, “indirectly fixed” means that the acceleration sensor and the attitude angle sensor are fixed to the same member, and the positional relationship is known (in advance) before being incorporated into the robot. . In order to specify the posture of the trunk, the posture of the trunk can also be obtained by so-called forward conversion from the value of the encoder provided in each joint of the leg link group and the shape of each link of the leg. However, the encoder value also includes errors. Furthermore, if forward conversion is performed from the structure of a leg link group in which a plurality of joints are connected in series via a link, errors of the encoders accumulate. Further, the rigidity of the link itself is not considered in the forward conversion. For the above reasons, the accuracy in identifying the acceleration detection direction of the acceleration sensor from the posture angle sensor is more prominent than specifying the posture angle of the trunk and the acceleration detection direction of the acceleration sensor based on the encoder value. High accuracy. By using the attitude angle sensor, the offset value of the acceleration sensor can be obtained with high accuracy.

また上記実施例では加速度センサの加速度検出方向(請求項に記載の「特定の方向」に相当する)として体幹の前後方向を例とした。しかし加速度検出方向は体幹の前後方向に限られるものではない。さらに加速度検出方向もひとつに限られるものではない。
ロボットには、前記加速度センサが複数備えられており、これらの加速度センサには、体幹の上下方向に加速度検出方向が定められた第1の加速度センサと、体幹の前後方向に加速度検出方向が定められた第2の加速度センサが含まれていてもよい。夫々の加速度センサに対してオフセット値を求めて記憶する。記憶したオフセット値を用いてロボットを制御する。これにより、歩行中のロボットを側方から観測したときの体幹の姿勢を意図したものに調整することが可能となる。
同様に、ロボットが、体幹の上下方向に加速度検出方向が定められた第1の加速度センサと、体幹の左右方向に加速度検出方向が定められた第2の加速度センサが含まれていてもよい。これらの加速度センサのオフセット値を求めて記憶する。記憶されたオフセット値を用いてロボットを制御することにより、歩行中のロボットを正面から観測したときの体幹の姿勢を意図したものに調整することが可能となる。
もちろん、ロボットが、体幹の上下方向に加速度検出方向が定められた第1の加速度センサと、体幹の前後方向に加速度検出方向が定められた第2の加速度センサと、体幹の左右方向に加速度検出方向が定められた第3の加速度センサが含まれていても同様の効果を奏することができる。
In the above embodiment, the front-rear direction of the trunk is taken as an example as the acceleration detection direction of the acceleration sensor (corresponding to the “specific direction” recited in the claims). However, the acceleration detection direction is not limited to the longitudinal direction of the trunk. Furthermore, the acceleration detection direction is not limited to one.
The robot includes a plurality of acceleration sensors. The acceleration sensors include a first acceleration sensor in which an acceleration detection direction is defined in the vertical direction of the trunk and an acceleration detection direction in the longitudinal direction of the trunk. May be included. An offset value is obtained and stored for each acceleration sensor. The robot is controlled using the stored offset value. This makes it possible to adjust the trunk posture when the walking robot is observed from the side to the intended posture.
Similarly, even if the robot includes a first acceleration sensor whose acceleration detection direction is defined in the vertical direction of the trunk and a second acceleration sensor whose acceleration detection direction is defined in the horizontal direction of the trunk. Good. The offset values of these acceleration sensors are obtained and stored. By controlling the robot using the stored offset value, it becomes possible to adjust the trunk posture when the walking robot is observed from the front.
Of course, the robot has a first acceleration sensor whose acceleration detection direction is defined in the vertical direction of the trunk, a second acceleration sensor whose acceleration detection direction is defined in the longitudinal direction of the trunk, and the horizontal direction of the trunk. Even if the third acceleration sensor in which the acceleration detection direction is determined is included, the same effect can be obtained.

以上、本発明の具体例を詳細に説明したが、これらは例示に過ぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には、以上に例示した具体例を様々に変形、変更したものが含まれる。
また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成し得るものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。
Specific examples of the present invention have been described in detail above, but these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and changes of the specific examples illustrated above.
The technical elements described in this specification or the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technology exemplified in this specification or the drawings can achieve a plurality of objects at the same time, and has technical usefulness by achieving one of the objects.

ロボット制御装置のブロック図である。It is a block diagram of a robot controller. オフセット設定部内のブロック図である。It is a block diagram in an offset setting part. オフセット設定処理のフローチャート図である。It is a flowchart figure of an offset setting process. オフセット設定処理の様子を例示した図である。It is the figure which illustrated the mode of offset setting processing. 重力加速度成分除去処理のフローチャート図である。It is a flowchart figure of a gravity acceleration component removal process. 重力加速度成分除去処理の様子を例示する図である。It is a figure which illustrates the mode of a gravity acceleration component removal process. オフセット値がある場合のロボットの姿勢の変化を例示する図である。It is a figure which illustrates the change of the posture of a robot when there is an offset value.

符号の説明Explanation of symbols

10:ロボット制御装置
22:加速度演算部
23、37:減算部
24:フィードバック制御部
26:目標値変換部
28:関節アクチュエータ
30:加速度センサ
31:換算部
32:姿勢角センサ
34:オフセット設定部
36:オフセット記憶部
38:重力加速度成分除去部
40、42:スイッチ
56:加速度検出方向算出部
58:重力加速度ベクトル成分算出部
60:オフセット算出部
100:ロボット
g、G:重力加速度ベクトル
10: Robot control device 22: Acceleration calculation unit 23, 37: Subtraction unit 24: Feedback control unit 26: Target value conversion unit 28: Joint actuator 30: Acceleration sensor 31: Conversion unit 32: Attitude angle sensor 34: Offset setting unit 36 : Offset storage unit 38: Gravity acceleration component removal unit 40, 42: Switch 56: Acceleration detection direction calculation unit 58: Gravity acceleration vector component calculation unit 60: Offset calculation unit 100: Robot g, G: Gravity acceleration vector

Claims (4)

体幹と脚リンク群を備え、体幹に生じる加速度を検出することによって、体幹と脚リンク群の姿勢を変化させる歩行ロボットであり、
体幹に固定され、特定の方向(以下、加速度検出方向という)に生じている加速度成分を検出する加速度センサと、
加速度センサに直接的または間接的に固定され、前記加速度検出方向が鉛直方向に対してなす姿勢角を検出する姿勢角センサと、
ロボットが所定静止姿勢に静止している間に、加速度センサが出力する電気量と、姿勢角センサが出力する姿勢角を取得する手段と、
前記取得手段で取得した電気量を、既知の関係で換算して加速度に換算する手段と、
前記取得手段で取得した姿勢角から、加速度検出方向の重力加速度成分を算出する手段と、
前記換算手段で換算した加速度から前記算出手段で算出した重力加速度成分を減算した値を、加速度センサが出力する電気量を前記換算手段で換算した加速度から減算するオフセット値に記憶する手段と、
を有することを特徴とする歩行ロボット。
A walking robot that includes a trunk and a leg link group, and detects the acceleration generated in the trunk, thereby changing the posture of the trunk and leg link group.
An acceleration sensor that is fixed to the trunk and detects an acceleration component generated in a specific direction (hereinafter referred to as an acceleration detection direction);
An attitude angle sensor that is directly or indirectly fixed to an acceleration sensor and detects an attitude angle that the acceleration detection direction forms with respect to a vertical direction;
Means for obtaining an electrical quantity output by the acceleration sensor and a posture angle output by the posture angle sensor while the robot is stationary in a predetermined stationary posture;
Means for converting the amount of electricity acquired by the acquisition means into a known relationship and converting to acceleration;
Means for calculating a gravitational acceleration component in the acceleration detection direction from the posture angle acquired by the acquisition means;
Means for storing a value obtained by subtracting the gravitational acceleration component calculated by the calculation means from the acceleration converted by the conversion means, as an offset value for subtracting the electric quantity output by the acceleration sensor from the acceleration converted by the conversion means;
A walking robot characterized by comprising:
前記加速度センサが複数備えられており、これらの加速度センサには、体幹の上下方向に加速度検出方向が定められた第1の加速度センサと、体幹の前後方向に加速度検出方向が定められた第2の加速度センサが含まれており、これらのセンサに対応するオフセット値を記憶していることを特徴とする請求項1に記載の歩行ロボット。   A plurality of the acceleration sensors are provided, and in these acceleration sensors, a first acceleration sensor in which an acceleration detection direction is defined in the vertical direction of the trunk and an acceleration detection direction in the longitudinal direction of the trunk are defined. The walking robot according to claim 1, wherein second walking sensors are included, and offset values corresponding to these sensors are stored. ロボットの動作中に、前記加速度センサが出力する電気量と前記姿勢角センサが出力する姿勢角を取得する手段と、
前記取得手段で取得した姿勢角から、取得タイミングにおける加速度検出方向の重力加速度成分を算出する手段と、
前記取得手段で取得した電気量を前記既知の関係で換算した加速度から、前記取得タイミングにおける加速度検出方向の重力加速度成分と前記オフセット値を減算する手段と、
をさらに有していることを特徴とする請求項1又は2に記載の歩行ロボット。
Means for acquiring an electrical quantity output by the acceleration sensor and a posture angle output by the posture angle sensor during operation of the robot;
Means for calculating the gravitational acceleration component in the acceleration detection direction at the acquisition timing from the posture angle acquired by the acquisition means;
Means for subtracting the gravitational acceleration component in the acceleration detection direction at the acquisition timing and the offset value from the acceleration obtained by converting the amount of electricity acquired by the acquisition unit according to the known relationship;
The walking robot according to claim 1, further comprising:
前記加速度センサと前記姿勢角センサは一体化したユニットに構成され、
前記姿勢角センサは、ユニット内部に内蔵された加速度センサと、ユニット内部に内蔵された角速度センサと、それらの出力値に基づいて、加速度検出方向が鉛直方向に対してなす姿勢角を演算する手段を有することを特徴とする請求項1から3のいずれか1項に記載の歩行ロボット。
The acceleration sensor and the attitude angle sensor are configured as an integrated unit,
The posture angle sensor is an acceleration sensor built in the unit, an angular velocity sensor built in the unit, and a means for calculating a posture angle formed by the acceleration detection direction with respect to the vertical direction based on output values thereof. The walking robot according to claim 1, further comprising:
JP2005193272A 2005-07-01 2005-07-01 Walking robot Pending JP2007007796A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005193272A JP2007007796A (en) 2005-07-01 2005-07-01 Walking robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005193272A JP2007007796A (en) 2005-07-01 2005-07-01 Walking robot

Publications (1)

Publication Number Publication Date
JP2007007796A true JP2007007796A (en) 2007-01-18

Family

ID=37746918

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005193272A Pending JP2007007796A (en) 2005-07-01 2005-07-01 Walking robot

Country Status (1)

Country Link
JP (1) JP2007007796A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100922494B1 (en) 2007-07-19 2009-10-20 삼성전자주식회사 Method for measuring pose of a mobile robot and method and apparatus for measuring position of the mobile robot using the method
JP4860697B2 (en) * 2005-08-01 2012-01-25 トヨタ自動車株式会社 Acceleration sensor correction apparatus and acceleration sensor output value correction method
JP2012196749A (en) * 2011-03-23 2012-10-18 Seiko Epson Corp Robot device
JP2014128868A (en) * 2012-12-27 2014-07-10 Hyundai Motor Company Co Ltd Method for controlling gait of robot
JP2015036657A (en) * 2013-08-14 2015-02-23 セイコーエプソン株式会社 Bias calculation method and bias calculation device
CN114161402A (en) * 2021-12-17 2022-03-11 深圳市优必选科技股份有限公司 Robot stability control method, model construction method and device and robot

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08297033A (en) * 1995-04-27 1996-11-12 Omron Corp Navigation system
JPH09292248A (en) * 1996-04-30 1997-11-11 Matsushita Electric Ind Co Ltd Navigation system
JP2002277266A (en) * 2001-03-19 2002-09-25 Matsushita Electric Ind Co Ltd Navigation apparatus
WO2003090981A1 (en) * 2002-04-26 2003-11-06 Honda Giken Kogyo Kabushiki Kaisha System for estimating attitude of leg type moving robot itself
JP2004354214A (en) * 2003-05-29 2004-12-16 Sony Corp Acceleration detection device and acceleration detection method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08297033A (en) * 1995-04-27 1996-11-12 Omron Corp Navigation system
JPH09292248A (en) * 1996-04-30 1997-11-11 Matsushita Electric Ind Co Ltd Navigation system
JP2002277266A (en) * 2001-03-19 2002-09-25 Matsushita Electric Ind Co Ltd Navigation apparatus
WO2003090981A1 (en) * 2002-04-26 2003-11-06 Honda Giken Kogyo Kabushiki Kaisha System for estimating attitude of leg type moving robot itself
JP2004354214A (en) * 2003-05-29 2004-12-16 Sony Corp Acceleration detection device and acceleration detection method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4860697B2 (en) * 2005-08-01 2012-01-25 トヨタ自動車株式会社 Acceleration sensor correction apparatus and acceleration sensor output value correction method
KR100922494B1 (en) 2007-07-19 2009-10-20 삼성전자주식회사 Method for measuring pose of a mobile robot and method and apparatus for measuring position of the mobile robot using the method
JP2012196749A (en) * 2011-03-23 2012-10-18 Seiko Epson Corp Robot device
JP2014128868A (en) * 2012-12-27 2014-07-10 Hyundai Motor Company Co Ltd Method for controlling gait of robot
DE102013111210B4 (en) 2012-12-27 2020-06-10 Hyundai Motor Company Robot gear control method
JP2015036657A (en) * 2013-08-14 2015-02-23 セイコーエプソン株式会社 Bias calculation method and bias calculation device
CN114161402A (en) * 2021-12-17 2022-03-11 深圳市优必选科技股份有限公司 Robot stability control method, model construction method and device and robot
CN114161402B (en) * 2021-12-17 2023-11-10 深圳市优必选科技股份有限公司 Robot stability control method, model construction method, device and robot

Similar Documents

Publication Publication Date Title
JP2007007796A (en) Walking robot
US7835878B2 (en) Travel angle detection system for mobile object
EP1770362B1 (en) Angular velocity measuring device and leg-moving robot
Flayols et al. Experimental evaluation of simple estimators for humanoid robots
US11077553B2 (en) Robot and offset correction device for force sensor
US10737384B2 (en) Robot system
JP2004053530A (en) Highly-accurate attitude detection method of moving body and its device
JP2011017688A (en) Angle measuring method and angle measuring gyro system for executing the same
US11780515B2 (en) Mitigating sensor noise in legged robots
KR20220034145A (en) Method and apparatus for dynamic optical flow sensor calibration by IMU in planar robotic system
JP2011059020A (en) Apparatus, method and program for estimating three-dimensional attitude
Kim et al. A walking motion imitation framework of a humanoid robot by human walking recognition from IMU motion data
JP2009276242A (en) Angular velocity detector and angular velocity detection method
JPH08304448A (en) Apparatus and method for detection of dynamic amount
CN211696377U (en) Platform device for measurement
Janocha et al. Requirements for inertial sensor systems for measuring robot positions
JP7404124B2 (en) Azimuth angle attitude measurement device
JP4163824B2 (en) Weighing device
WO2023175751A1 (en) Control device, control method, and program
KR101068838B1 (en) Apparatus and method for processing output signal error in accelerometer
JP2018033070A (en) Signal processing apparatus for acceleration sensor
JP2006153662A (en) Detection method and detector for inclination angle and translational acceleration
Li et al. Real-time foot attitude estimation for a humanoid robot based on inertial sensors and force sensor
Takahashi et al. Development and evaluation of an attitude measuring system that uses acceleration information of walking for biped robots
KR101068837B1 (en) Apparatus and method for correcting output signal error in accelerometer

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20071207

Free format text: JAPANESE INTERMEDIATE CODE: A621

A131 Notification of reasons for refusal

Effective date: 20101214

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110412