JP2015151003A - Inverted-pendulum mobile body - Google Patents

Inverted-pendulum mobile body Download PDF

Info

Publication number
JP2015151003A
JP2015151003A JP2014026470A JP2014026470A JP2015151003A JP 2015151003 A JP2015151003 A JP 2015151003A JP 2014026470 A JP2014026470 A JP 2014026470A JP 2014026470 A JP2014026470 A JP 2014026470A JP 2015151003 A JP2015151003 A JP 2015151003A
Authority
JP
Japan
Prior art keywords
sensor
value
sensors
inverted
average
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.)
Granted
Application number
JP2014026470A
Other languages
Japanese (ja)
Other versions
JP6079661B2 (en
Inventor
貴裕 中山
Takahiro Nakayama
貴裕 中山
浩司 尾藤
Koji Bito
浩司 尾藤
平 哲也
Tetsuya Taira
哲也 平
祐介 木田
Yusuke Kida
祐介 木田
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 JP2014026470A priority Critical patent/JP6079661B2/en
Publication of JP2015151003A publication Critical patent/JP2015151003A/en
Application granted granted Critical
Publication of JP6079661B2 publication Critical patent/JP6079661B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Gyroscopes (AREA)
  • Motorcycle And Bicycle Frame (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce error between sensor values of respective sensors, and continue stable inversion control.SOLUTION: An inverted pendulum mobile body comprises: three or more sensors for outputting detection signals of a same detection object, respectively; control means for performing inversion control, based on the sensor value which is a central value when the respective sensor values output from the respective sensors are arranged in a descending order or ascending order; determination means for determining whether absolute values of the respective sensor values output by the respective sensors are equal to or less than a threshold, or not, in a start-up time or a stop state of the inverted pendulum mobile body; average calculation means for calculating an average value of differences between the sensor central value in the start-up time or the stop state, and the sensor values of the respective sensors, when the absolute values of the sensor values of the respective sensors are equal to or less than the threshold, by determination of the determination means; and correction means for correcting the sensor values of the respective sensors by subtracting or adding the average value of differences calculated by the average calculation means from the sensor values of the respective sensors.

Description

本発明は、倒立状態を維持して走行する倒立型移動体に関するものである。   The present invention relates to an inverted moving body that travels while maintaining an inverted state.

搭載された複数の同一センサから出力されるセンサ値を比較することで、各センサの故障を検知する倒立型移動体が知られている(例えば、特許文献1)。   An inverted moving body that detects a failure of each sensor by comparing sensor values output from a plurality of mounted same sensors is known (for example, Patent Document 1).

特開2012−068189号公報JP 2012-068189 A

上記倒立型移動体は、例えば、センサの故障を検知した場合、正常なセンサへの復帰処理を行う。このとき、倒立制御に使用されていた故障センサのセンサ値と、復帰処理で使用される正常センサのセンサ値と、の間の誤差が大きいと、そのセンサ値の切替時に倒立制御が不安定となる虞がある。
本発明は、このような問題点に鑑みてなされたものであり、各センサのセンサ値間の誤差を低減し安定的な倒立制御が継続できる倒立型移動体を提供することを主たる目的とする。
For example, when detecting a sensor failure, the inverted moving body performs a return process to a normal sensor. At this time, if there is a large error between the sensor value of the fault sensor used for the inversion control and the sensor value of the normal sensor used in the return process, the inversion control becomes unstable when the sensor value is switched. There is a risk of becoming.
The present invention has been made in view of such problems, and a main object of the present invention is to provide an inverted moving body that can reduce an error between sensor values of each sensor and can continue stable inversion control. .

上記目的を達成するための本発明の一態様は、同一検出対象の検出信号を出力する3つ以上のセンサと、前記各センサから出力される各センサ値を降順又は昇順に並べた際に中央に位置するセンサ値に基づいて、倒立制御を行う制御手段と、を備える倒立型移動体であって、 当該倒立型移動体の起動時又は停止状態において前記各センサから出力される各センサ値の絶対値が閾値以下であるか否かを判定する判定手段と、前記判定手段により前記各センサのセンサ値の絶対値が閾値以下であると判定されたとき、前記起動時又は停止状態におけるセンサ中央値と前記各センサのセンサ値との差分の平均値を算出する平均算出手段と、前記各センサのセンサ値から、前記平均算出手段により算出された差分の平均値を減算又は加算することで、前記各センサのセンサ値を補正する補正手段と、を備える、ことを特徴とする倒立型移動体である。   One aspect of the present invention for achieving the above object is that when three or more sensors that output detection signals of the same detection target and sensor values output from the sensors are arranged in descending or ascending order, An inverted moving body comprising a control means for performing an inverted control based on a sensor value positioned at a position of the sensor value output from each sensor when the inverted moving body is activated or stopped. A determination means for determining whether or not the absolute value is less than or equal to a threshold; and when the determination means determines that the absolute value of the sensor value of each sensor is less than or equal to the threshold, the sensor center in the start-up or stop state An average calculating means for calculating an average value of the difference between the value and the sensor value of each sensor, and subtracting or adding the average value of the difference calculated by the average calculating means from the sensor value of each sensor. And a correcting means for correcting the sensor value of the sensors, it is inverted vehicle according to claim.

本発明によれば、各センサのセンサ値間の誤差を低減し安定的な倒立制御が継続できる倒立型移動体を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the inverted type mobile body which can reduce the error between the sensor values of each sensor and can continue stable inversion control can be provided.

実施の形態1に係る倒立型移動体の概略的構成を示す斜視図である。FIG. 3 is a perspective view illustrating a schematic configuration of the inverted moving body according to the first embodiment. 実施の形態1に係る倒立型移動体の概略的なシステム構成を示すブロック図である。1 is a block diagram showing a schematic system configuration of an inverted moving body according to Embodiment 1. FIG. 実施の形態1に係る倒立型移動体の制御方法における制御処理フローを示すフローチャートである。3 is a flowchart showing a control processing flow in the method for controlling an inverted moving body according to the first embodiment. 実施の形態2に係る倒立移動体の制御システム構成を示すブロック図である。FIG. 6 is a block diagram illustrating a configuration of a control system for an inverted moving body according to a second embodiment.

実施の形態1
以下、図面を参照して本発明の実施の形態について説明する。
図1は、本発明の実施の形態1に係る倒立型移動体の概略的構成を示す斜視図である。 本発明の実施の形態1に係る倒立型移動体1は、搭乗者が搭乗する車両本体2と、車両本体2に回転可能に連結された左右一対の車輪3と、車両本体2に操作可能に設けられた操作ハンドル4と、を備えている。倒立型移動体1は、例えば、倒立状態を維持しつつ搭乗者の重心移動に応じて、前後進、左右旋回、加減速などの走行を行うことができる倒立二輪車として構成されている。
Embodiment 1
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a perspective view showing a schematic configuration of an inverted moving body according to Embodiment 1 of the present invention. An inverted mobile body 1 according to Embodiment 1 of the present invention is operable on a vehicle main body 2 on which a passenger rides, a pair of left and right wheels 3 rotatably connected to the vehicle main body 2, and the vehicle main body 2. And an operation handle 4 provided. The inverted moving body 1 is configured as an inverted two-wheeled vehicle that can travel forward and backward, turn left and right, and accelerate and decelerate according to the movement of the center of gravity of the passenger while maintaining the inverted state.

図2は、本発明の実施の形態1に係る倒立型移動体の概略的なシステム構成を示すブロック図である。本実施の形態1に係る倒立型移動体1は、各車輪3を駆動する一対の車輪駆動ユニット5と、同一検出対象の検出信号を出力する第1乃至第3センサ6と、各車輪駆動ユニット5を制御する制御装置7と、を備えている。   FIG. 2 is a block diagram showing a schematic system configuration of the inverted moving body according to the first embodiment of the present invention. The inverted moving body 1 according to the first embodiment includes a pair of wheel drive units 5 that drive each wheel 3, first to third sensors 6 that output detection signals of the same detection target, and each wheel drive unit. And a control device 7 for controlling 5.

各車輪駆動ユニット5は、制御装置7から出力された制御信号に基づいて各車輪3を駆動する。各車輪駆動ユニット5は、例えば、モータと、モータの回転軸に動力伝達可能に連結された減速ギアと、を有している。   Each wheel drive unit 5 drives each wheel 3 based on a control signal output from the control device 7. Each wheel drive unit 5 includes, for example, a motor and a reduction gear connected to a rotation shaft of the motor so as to transmit power.

第1乃至第3センサ6は、例えば、同一軸周りの検出を行うジャイロセンサであり冗長性を有している。第1乃至第3センサ6は、例えば、車両本体2に設けられており、車両本体2のピッチ方向、ロール方向、及びヨー方向の角速度を検出する。第1乃至第3センサ6は、検出したセンサ値を制御装置7に出力する。   The first to third sensors 6 are, for example, gyro sensors that detect around the same axis and have redundancy. For example, the first to third sensors 6 are provided in the vehicle body 2 and detect angular velocities in the pitch direction, the roll direction, and the yaw direction of the vehicle body 2. The first to third sensors 6 output the detected sensor values to the control device 7.

制御装置7は、第1乃至第3センサ6から出力されたセンサ値に基づいて、車両本体2の姿勢を算出する。制御装置7は、算出した車両本体2の姿勢に基づいて、倒立状態を維持するため各車輪駆動ユニット5に対するトルク指令値を算出する。制御装置7は、算出したトルク指令値に応じた制御信号を各車輪駆動ユニット5に出力することで、上記倒立状態を維持する倒立制御を行う。   The control device 7 calculates the attitude of the vehicle body 2 based on the sensor values output from the first to third sensors 6. The control device 7 calculates a torque command value for each wheel drive unit 5 in order to maintain the inverted state based on the calculated attitude of the vehicle body 2. The control device 7 performs an inversion control for maintaining the inversion state by outputting a control signal corresponding to the calculated torque command value to each wheel drive unit 5.

制御装置7は、例えば、制御処理、演算処理等と行うCPU(Central Processing Unit)、CPUによって実行される制御プログラム、演算プログラム等が記憶されたROM(Read Only Memory)、処理データ等を一時的に記憶するRAM(Random Access Memory)、等からなるマイクロコンピュータを中心にしてハードウェア構成されている。   The control device 7 temporarily stores, for example, a CPU (Central Processing Unit) that performs control processing, arithmetic processing, and the like, a ROM (Read Only Memory) that stores a control program executed by the CPU, an arithmetic program, processing data, etc. The hardware configuration is centered on a microcomputer comprising a RAM (Random Access Memory), etc. stored in the memory.

ところで、従来、倒立型移動体は、いずれかのセンサ故障(例えば、センサ値のハイレベル及びローレベルの張付き、オフセット、発振など)を検知した場合、正常なセンサへの復帰処理(切替処理)を行う。また、一般に各センサのセンサ値間には誤差が存在している。したがって、倒立制御に使用されていた故障センサのセンサ値と、復帰処理で使用される正常センサのセンサ値と、の間の誤差が大きいと、そのセンサ値の切替時に大きくセンサ値が変化するため、倒立制御が不安定となる虞がある。   By the way, conventionally, when an inverted moving body detects any sensor failure (for example, high level and low level sticking of the sensor value, offset, oscillation, etc.), return processing to a normal sensor (switching process) )I do. In general, there is an error between the sensor values of each sensor. Therefore, if there is a large error between the sensor value of the faulty sensor used for the inversion control and the sensor value of the normal sensor used for the return process, the sensor value changes greatly when the sensor value is switched. Inverting control may become unstable.

これに対し、本実施の形態1に係る制御装置7は、各センサ6のセンサ値を降順又は昇順に並べた際に中央に位置するセンサ中央値と各センサ6のセンサ値との差分の平均値を算出し、各センサ6のセンサ値からその差分の平均値を夫々減算することで、各センサ6のセンサ値の誤差を補正する。そして、制御装置7は、補正した各センサ6のセンサ値を降順又は昇順に並べた際に中央に位置するセンサ中央値に基づいて倒立制御を行う。これにより、各センサ6のセンサ値間の誤差を低減し安定的な倒立制御が継続できる。   On the other hand, the control device 7 according to the first embodiment averages the difference between the sensor median value at the center and the sensor value of each sensor 6 when the sensor values of each sensor 6 are arranged in descending or ascending order. By calculating the value and subtracting the average value of the difference from the sensor value of each sensor 6, the error of the sensor value of each sensor 6 is corrected. And the control apparatus 7 performs inversion control based on the sensor median value located in the center when the sensor values of the corrected sensors 6 are arranged in descending order or ascending order. Thereby, the error between the sensor values of each sensor 6 can be reduced, and stable inversion control can be continued.

本実施の形態1に係る制御装置7は、倒立制御を行う倒立制御部71と、センサ値を判定するセンサ判定部72と、センサ値の平均値を算出する平均算出部73と、センサ値を補正する補正部74と、を有している。   The control device 7 according to the first embodiment includes an inversion control unit 71 that performs inversion control, a sensor determination unit 72 that determines a sensor value, an average calculation unit 73 that calculates an average value of sensor values, and a sensor value. And a correction unit 74 for correction.

倒立制御部71は、制御手段の一具体例であり、同一検出対象の検出信号を出力する3つ以上のセンサから出力される各センサ値を降順又は昇順に並べた際に、中央に位置するセンサ値(以下、中央センサ値と称す)に基づいて倒立制御を行う。常時正常となる中央に位置する中央センサ値に基づいて倒立制御を行うことで、より信頼性の高い倒立制御を行うことができる。   The inversion control unit 71 is a specific example of the control unit, and is located in the center when the sensor values output from three or more sensors that output the detection signals of the same detection target are arranged in descending or ascending order. Inversion control is performed based on a sensor value (hereinafter referred to as a central sensor value). By performing the inversion control based on the central sensor value located in the center that is always normal, it is possible to perform the inversion control with higher reliability.

センサ判定部72は、判定手段の一具体例であり、倒立型移動体1の起動時において各センサ6から出力されるセンサ値の絶対値が閾値以下であるか否かを判定する。各センサ6のセンサ値が異常に大きい、あるいは小さい場合、倒立型移動体1の起動時における初期化エラーとなる。例えば、起動時に倒立型移動体1の車両本体2又は操作ハンドル4が大きく傾斜している場合、車両本体2、操作ハンドル4が揺さぶられ大きく搖動している場合など、初期化エラーとなる。   The sensor determination unit 72 is a specific example of determination means, and determines whether or not the absolute value of the sensor value output from each sensor 6 when the inverted moving body 1 is activated is equal to or less than a threshold value. If the sensor value of each sensor 6 is abnormally large or small, an initialization error occurs when the inverted mobile body 1 is started. For example, when the vehicle main body 2 or the operation handle 4 of the inverted mobile body 1 is greatly inclined at the time of activation, an initialization error occurs when the vehicle main body 2 or the operation handle 4 is shaken and swings greatly.

センサ判定部72は、各センサ6から出力されるセンサ値の絶対値が閾値以下であるとき、各センサ6のセンサ値(初期化処理)が正常であると判定する。センサ判定部72は、各センサ6のセンサ値が正常であることを示す信号(以下、正常信号)を平均算出部73に出力する。   The sensor determination unit 72 determines that the sensor value (initialization process) of each sensor 6 is normal when the absolute value of the sensor value output from each sensor 6 is equal to or less than the threshold value. The sensor determination unit 72 outputs a signal (hereinafter referred to as a normal signal) indicating that the sensor value of each sensor 6 is normal to the average calculation unit 73.

一方、センサ判定部72は、各センサ6から出力されるセンサ値の絶対値が閾値より大きいとき、各センサ6のセンサ値(初期化処理)が異常であると判定する。センサ判定部72は、例えば、各センサ6のセンサ値が異常(初期化処理の失敗)である旨をユーザに警告する。センサ判定部72は、例えば、初期化エラーとして再起動を行う旨の警告をユーザに対して行う。   On the other hand, when the absolute value of the sensor value output from each sensor 6 is larger than the threshold value, the sensor determination unit 72 determines that the sensor value (initialization process) of each sensor 6 is abnormal. For example, the sensor determination unit 72 warns the user that the sensor value of each sensor 6 is abnormal (failure of the initialization process). For example, the sensor determination unit 72 gives a warning to the user to restart as an initialization error.

センサ判定部72は、倒立型移動体1の停止状態において各センサ6から出力されるセンサ値の絶対値が閾値以下であるか否かを判定してもよい。倒立型移動体1の停止状態とは、倒立型移動体1の移動速度が実質的に0となる状態であり、車両本体2の傾斜角と傾斜角速度が実質的に等しくなる状態、走行状態から随時停止する停止状態を含むものとする。   The sensor determination unit 72 may determine whether or not the absolute value of the sensor value output from each sensor 6 when the inverted mobile body 1 is stopped is equal to or less than a threshold value. The stop state of the inverted mobile body 1 is a state in which the moving speed of the inverted mobile body 1 is substantially zero, and the state in which the inclination angle and the inclination angular velocity of the vehicle body 2 are substantially equal to each other from the traveling state. It shall include a stop state that stops at any time.

平均算出部73は、平均算出手段の一具体例であり、センサ判定部72から出力される正常信号に応じて、起動時又は停止状態における各センサ6のセンサ値を降順又は昇順に並べた際に中央に位置するセンサ中央値を抽出する。   The average calculation unit 73 is a specific example of an average calculation unit, and when the sensor values of the sensors 6 in the start-up or stop state are arranged in descending or ascending order according to the normal signal output from the sensor determination unit 72 The sensor median located in the center is extracted.

ここで、センサ数が奇数個の場合、平均算出部73は、中央センサ値を、そのまま抽出できる。一方、センサ数が偶数個の場合、中央センサ値は2つ存在する。例えば、センサ数が4つの場合、中央センサ値は、降順あるいは昇順で2及び3番目のセンサ値となる。このため、平均算出部73は、2つの中央センサ値のうち一方(予め設定された順位の高い又は低いセンサ値)、あるいは2つのセンサ値の平均値を、中央センサ値として抽出する。   Here, when the number of sensors is an odd number, the average calculation unit 73 can extract the central sensor value as it is. On the other hand, when the number of sensors is an even number, there are two central sensor values. For example, when the number of sensors is four, the central sensor value is the second and third sensor values in descending order or ascending order. For this reason, the average calculation unit 73 extracts one of the two central sensor values (a sensor value having a higher or lower order set in advance) or the average value of the two sensor values as the central sensor value.

平均算出部73は、センサ中央値と各センサ6のセンサ値との差分の平均値を算出する。平均算出部73は、算出した差分の平均値を補正部74に出力する。なお、平均算出部73は、センサ中央値と全センサ6のセンサ値との差分の平均値を算出しているが、これに限らず、センサ中央値と、予め設定した代表の各センサ6のセンサ値との差分の平均値を算出してもよい。   The average calculation unit 73 calculates an average value of the difference between the sensor median value and the sensor value of each sensor 6. The average calculation unit 73 outputs the average value of the calculated differences to the correction unit 74. The average calculation unit 73 calculates the average value of the difference between the sensor median value and the sensor values of all the sensors 6. However, the present invention is not limited to this, and the sensor median value and the preset representative sensors 6 are not limited thereto. You may calculate the average value of the difference with a sensor value.

補正部74は、補正手段の一具体例であり、各センサ6のセンサ値から、平均算出部73により算出された差分の平均値を夫々減算又は加算することで、各センサ6のセンサ値を補正する。これにより、各センサのセンサ値間に存在する誤差が低減される。   The correction unit 74 is a specific example of a correction unit, and subtracts or adds the average value of the difference calculated by the average calculation unit 73 from the sensor value of each sensor 6 to thereby obtain the sensor value of each sensor 6. to correct. Thereby, the error which exists between the sensor values of each sensor is reduced.

このように、同種センサのセンサ値のみを用いて各センサ6のセンサ値を補正することから処理が簡略化される。併せて、各センサ6は冗長系のセンサであり各センサ6の出力変化が類似しているため、補正を行う際の厳密な基準点が不要となる。したがって、補正を行う際の水平検出処理などが不要となるため処理が簡略化される。
また、常時正常となる中央に位置する中央センサ値に基づいて誤差補正を行うことで、より信頼性の高い誤差補正を行うことができる。さらに、一般に、センサのセンサ値の誤差は温度に依存している。一方で、倒立型移動体1は、一回の充電で走行できる範囲は限られているため、その周辺の温度環境は大きく変化しない。したがって、起動時又は停止状態における中央センサ値を用いて各センサ6のセンサ値を安定的に補正することができる。
Thus, the process is simplified because the sensor value of each sensor 6 is corrected using only the sensor value of the same type of sensor. In addition, each sensor 6 is a redundant sensor and the output change of each sensor 6 is similar, so that a strict reference point for correction is not necessary. This eliminates the need for a horizontal detection process or the like when performing correction, thereby simplifying the process.
Further, by performing error correction based on the central sensor value located in the center that is always normal, error correction with higher reliability can be performed. Furthermore, in general, the sensor value error of a sensor depends on temperature. On the other hand, since the range in which the inverted mobile body 1 can travel with a single charge is limited, the temperature environment around it does not change significantly. Therefore, the sensor value of each sensor 6 can be stably corrected using the central sensor value at the time of starting or stopping.

補正部74は、補正した各センサ6のセンサ値を倒立制御部71に出力する。
倒立制御部71は、補正部74により補正された各センサ6のセンサ値を降順又は昇順に並べた際に中央に位置する、又は各センサ6のセンサ値の平均値である、センサ中央値に基づいて倒立制御を行う。
The correction unit 74 outputs the corrected sensor value of each sensor 6 to the inversion control unit 71.
The inversion control unit 71 is located at the center when the sensor values of the sensors 6 corrected by the correction unit 74 are arranged in descending or ascending order, or is the average value of the sensor values of the sensors 6. Based on the inverted control.

例えば、センサ判定部72は、第1乃至第3ジャイロセンサ6から出力された第1乃至第3角速度V1〜V3の絶対値が閾値Th以下(|V1〜V3|≦Th)であるか否かを判定する。
センサ判定部72は、第1乃至第3ジャイロセンサ6から出力される第1乃至第3角速度V1〜V3の絶対値が閾値以下であるとき、正常信号を平均算出部73に出力する。
For example, the sensor determination unit 72 determines whether or not the absolute values of the first to third angular velocities V1 to V3 output from the first to third gyro sensors 6 are equal to or less than a threshold Th (| V1 to V3 | ≦ Th). Determine.
The sensor determination unit 72 outputs a normal signal to the average calculation unit 73 when the absolute values of the first to third angular velocities V1 to V3 output from the first to third gyro sensors 6 are equal to or less than a threshold value.

平均算出部73は、センサ判定部72から出力される正常信号に応じて、起動時又は停止状態における第1乃至第3ジャイロセンサ6から出力された第1乃至第3角速度V1〜V3を降順(例えば、V1>V2>V3)に並べた際に中央に位置する第2角速度V2を中央センサ値として抽出する。平均算出部73は、センサ中央値V2と第1乃至第3ジャイロセンサ6の第1乃至第3角速度V1〜V3との差分の平均値X1〜X3を算出し、算出した差分の平均値X1〜X3を補正部74に出力する。   The average calculation unit 73 descends the first to third angular velocities V1 to V3 output from the first to third gyro sensors 6 in the start-up or stop state according to the normal signal output from the sensor determination unit 72 in descending order ( For example, the second angular velocity V2 located in the center when V1> V2> V3) is arranged is extracted as the central sensor value. The average calculation unit 73 calculates average values X1 to X3 of differences between the sensor median value V2 and the first to third angular velocities V1 to V3 of the first to third gyro sensors 6, and calculates the calculated average values X1 to X3. X3 is output to the correction unit 74.

補正部74は、例えば、第1乃至第3ジャイロセンサ6の第1乃至第3角速度V1〜V3から差分の平均値Xを夫々減算し、補正した第1乃至第3ジャイロセンサ6の第1乃至第3角速度Va1〜Va3を算出する。   For example, the correction unit 74 subtracts the average value X of the differences from the first to third angular velocities V1 to V3 of the first to third gyro sensors 6 and corrects the first to third gyro sensors 6 of the first to third gyro sensors 6 corrected. The third angular velocities Va1 to Va3 are calculated.

倒立制御部71は、補正部74により補正された第1乃至第3ジャイロセンサ6の第1乃至第3角速度Va1〜Va3を降順(例えば、Va1>Va2>Va3)に並べた際に中央に位置する第2角速度Va2を抽出する。倒立制御部71は、抽出した中央の第2角速度Va2に基づいて倒立制御を実行する。   The inversion control unit 71 is positioned at the center when the first to third angular velocities Va1 to Va3 of the first to third gyro sensors 6 corrected by the correction unit 74 are arranged in descending order (for example, Va1> Va2> Va3). The second angular velocity Va2 to be extracted is extracted. The inversion control unit 71 executes the inversion control based on the extracted second central angular velocity Va2.

なお、上記実施の形態においては、センサとして、ジャイロセンサを適用しているが、これに限られない。センサとして、例えば、角度センサ、加速度センサ、回転センサ、磁気センサ(方位センサ)などを適用してもよく、倒立型移動体1に搭載される任意のセンサに適用できる。また、上記実施の形態において、3つのジャイロセンサを用いた構成が適用されているが、これに限られない。同一検出対象の検出信号を出力する4つ以上のセンサを用いた構成にも適用可能である。   In the above embodiment, a gyro sensor is applied as a sensor, but the present invention is not limited to this. As the sensor, for example, an angle sensor, an acceleration sensor, a rotation sensor, a magnetic sensor (orientation sensor), or the like may be applied, and the sensor can be applied to any sensor mounted on the inverted moving body 1. Moreover, in the said embodiment, although the structure using three gyro sensors is applied, it is not restricted to this. The present invention can also be applied to a configuration using four or more sensors that output detection signals of the same detection target.

図3は、本実施の形態1に係る倒立型移動体の制御方法における制御処理フローを示すフローチャートである。なお、図3に示す制御処理は、所定の微小時間毎に繰返し実行される。   FIG. 3 is a flowchart showing a control processing flow in the control method of the inverted moving body according to the first embodiment. Note that the control processing shown in FIG. 3 is repeatedly executed every predetermined minute time.

倒立型移動体1の電源がオン状態になり倒立型移動体1は起動する(ステップS101)。倒立型移動体1が起動すると、各センサ6は検出したセンサ値を制御装置7のセンサ判定部72に出力する(ステップS102)。
センサ判定部72は、倒立型移動体1の起動時において各センサ6から出力されるセンサ値の絶対値が閾値以下であるか否かを判定する(ステップS103)。
The power source of the inverted mobile body 1 is turned on and the inverted mobile body 1 is activated (step S101). When the inverted moving body 1 is activated, each sensor 6 outputs the detected sensor value to the sensor determination unit 72 of the control device 7 (step S102).
The sensor determination unit 72 determines whether or not the absolute value of the sensor value output from each sensor 6 when the inverted mobile body 1 is activated is equal to or less than a threshold value (step S103).

センサ判定部72は、各センサ6から出力されるセンサ値の絶対値が閾値以下であるとき(ステップS103のYES)、各センサ6のセンサ値が正常であると判定し、正常信号を平均算出部73に出力する。   The sensor determination unit 72 determines that the sensor value of each sensor 6 is normal when the absolute value of the sensor value output from each sensor 6 is equal to or less than the threshold value (YES in step S103), and averages the normal signals. To the unit 73.

平均算出部73は、センサ判定部72から出力される正常信号に応じて、起動時における各センサ6のセンサ値を降順又は昇順に並べた際に中央に位置するセンサ中央値を抽出する(ステップS104)。そして、平均算出部73は、センサ中央値と各センサ6のセンサ値との差分の平均値を算出し(ステップS105)、算出した差分の平均値を補正部74に出力する。   In accordance with the normal signal output from the sensor determination unit 72, the average calculation unit 73 extracts the sensor median value located at the center when the sensor values of the sensors 6 at the time of activation are arranged in descending or ascending order (step) S104). Then, the average calculation unit 73 calculates an average value of the difference between the sensor median value and the sensor value of each sensor 6 (step S105), and outputs the calculated average value of the difference to the correction unit 74.

補正部74は、各センサ6のセンサ値から、平均算出部73により算出された差分の平均値を夫々減算することで、各センサ6のセンサ値を補正し(ステップS106)、補正した各センサ6のセンサ値を倒立制御部71に出力する。
倒立制御部71は、補正部74により補正された各センサ6のセンサ値を降順又は昇順に並べた際に中央に位置するセンサ中央値に基づいて倒立制御を行う(ステップS107)。
The correction unit 74 corrects the sensor value of each sensor 6 by subtracting the average value of the difference calculated by the average calculation unit 73 from the sensor value of each sensor 6 (step S106), and each corrected sensor 6 sensor value is output to the inversion control unit 71.
The inversion control unit 71 performs the inversion control based on the sensor median value located at the center when the sensor values of the sensors 6 corrected by the correction unit 74 are arranged in descending or ascending order (step S107).

センサ判定部72は、各センサ6から出力されるセンサ値の絶対値が閾値より大きいとき(ステップS103のNO)、各センサ6のセンサ値が異常であると判定する(ステップS108)。センサ判定部72は、各センサ6のセンサ値が異常である旨をユーザに警告する(ステップS109)。   When the absolute value of the sensor value output from each sensor 6 is larger than the threshold value (NO in step S103), the sensor determination unit 72 determines that the sensor value of each sensor 6 is abnormal (step S108). The sensor determination unit 72 warns the user that the sensor value of each sensor 6 is abnormal (step S109).

以上、本実施の形態1に係る倒立型移動体1において、各センサ6のセンサ値を降順又は昇順に並べた際に中央に位置するセンサ中央値と各センサ6のセンサ値との差分の平均値を算出し、算出された差分の平均値に基づいて各センサ6のセンサ値を補正する。これにより、各センサ6のセンサ値間の誤差を低減し安定的な倒立制御が継続できる。   As described above, in the inverted moving body 1 according to the first embodiment, when the sensor values of the sensors 6 are arranged in descending order or ascending order, the average difference between the sensor median value located in the center and the sensor values of the sensors 6 The value is calculated, and the sensor value of each sensor 6 is corrected based on the calculated average value of the differences. Thereby, the error between the sensor values of each sensor 6 can be reduced, and stable inversion control can be continued.

実施の形態2
上記実施の形態1に係る倒立型移動体1は、1重系の制御システムとして構成されているが、本実施の形態2に係る倒立型移動体1は、2重系の制御システムとして構成されている点を特徴とする。図4は、本実施の形態2に係る倒立移動体の制御システム構成を示すブロック図である。本実施の形態2に係る倒立型移動体1は、信頼性向上を目的として2重系システムとして構成されており、第1及び第2システム10、20を備えている。これにより、センサ情報及び制御信号を伝達する通信、制御、及び電源を各システムで分離できるため、一方のシステムに異常が生じても他方の正常なシステムで制御を継続できる。
Embodiment 2
Although the inverted mobile body 1 according to the first embodiment is configured as a single control system, the inverted mobile body 1 according to the second embodiment is configured as a dual control system. It is characterized by that. FIG. 4 is a block diagram showing a control system configuration of the inverted moving body according to the second embodiment. The inverted mobile body 1 according to the second embodiment is configured as a dual system for the purpose of improving reliability, and includes first and second systems 10 and 20. Thus, communication, control, and power supply for transmitting sensor information and control signals can be separated in each system, so that control can be continued in the other normal system even if an abnormality occurs in one system.

第1システム10は、各車輪駆動ユニット5を制御する第1制御装置7と、第1及び第2ジャイロセンサ6と、を有している。第2システム20は、第2制御装置7と、第3ジャイロセンサ6と、を有している。   The first system 10 includes a first control device 7 that controls each wheel drive unit 5, and first and second gyro sensors 6. The second system 20 includes a second control device 7 and a third gyro sensor 6.

第1及び第2制御装置7は、CAN通信などを行い、相互にセンサ情報などのデータ送受信を行なっている。第1及び第2制御装置7は、上記実施の形態1に係る制御装置7と同様の中央センサ値に基づいた倒立制御を独立して行う。   The first and second control devices 7 perform CAN communication and the like and perform data transmission / reception such as sensor information. The 1st and 2nd control apparatus 7 performs the inversion control based on the center sensor value similar to the control apparatus 7 which concerns on the said Embodiment 1 independently.

第1制御装置7は、システム起動時、自システム系の第1及び第2ジャイロセンサ6から出力された角速度、および、他システム系の第2制御装置7から送信された第3ジャイロセンサ6の角速度の絶対値が閾値以下であるかを判定する。   The first control device 7 receives the angular velocities output from the first and second gyro sensors 6 of the own system system and the third gyro sensor 6 transmitted from the second control device 7 of the other system system at the time of system startup. It is determined whether the absolute value of the angular velocity is equal to or less than a threshold value.

第1制御装置7は、第1乃至第3ジャイロセンサ6の角速度が閾値以下であると判定したとき、各第1乃至第3ジャイロセンサ6の角速度を降順又は昇順に並べた際に中央に位置するセンサ中央値を抽出する。そして、第1制御装置7は、センサ中央値と第1乃至第3ジャイロセンサ6の角速度との差分の平均値を算出する。   When the first control device 7 determines that the angular velocities of the first to third gyro sensors 6 are equal to or less than the threshold value, the first control device 7 is positioned at the center when the angular velocities of the first to third gyro sensors 6 are arranged in descending order or ascending order. The median value of the sensor to be extracted is extracted. Then, the first control device 7 calculates an average value of the difference between the sensor median value and the angular velocities of the first to third gyro sensors 6.

第1制御装置7は、第1乃至第3ジャイロセンサ6の角速度から、算出した差分の平均値を夫々減算することで、第1乃至第3ジャイロセンサ6の角速度を補正する。第1制御装置7は、補正した第1乃至第3ジャイロセンサ6の角速度を降順又は昇順に並べた際に中央に位置するセンサ中央値に基づいて、倒立状態を維持するためのトルク指令値を算出する。第1制御装置7は、算出したそのトルク指令値に応じた制御信号を各車輪駆動ユニット5に出力する。   The first control device 7 corrects the angular velocities of the first to third gyro sensors 6 by subtracting the calculated average values of the differences from the angular velocities of the first to third gyro sensors 6, respectively. The first control device 7 determines a torque command value for maintaining the inverted state based on the sensor median value located in the center when the corrected angular velocities of the first to third gyro sensors 6 are arranged in descending order or ascending order. calculate. The first control device 7 outputs a control signal corresponding to the calculated torque command value to each wheel drive unit 5.

同時に、第2制御装置7は、システム起動時、自システム系の第3ジャイロセンサ6から出力された角速度、および、他システム系の第1制御装置7から送信された第1及び第2ジャイロセンサ6から出力された角速度、の絶対値が閾値以下であるかを判定する。   At the same time, when the system is activated, the second control device 7 outputs the angular velocity output from the third gyro sensor 6 of its own system and the first and second gyro sensors transmitted from the first control device 7 of the other system system. 6 determines whether the absolute value of the angular velocity output from 6 is equal to or less than a threshold value.

第2制御装置7は、第1乃至第3ジャイロセンサ6の角速度が閾値以下であると判定したとき、各第1乃至第3ジャイロセンサ6の角速度を降順又は昇順に並べた際に中央に位置するセンサ中央値を抽出する。そして、第2制御装置7は、センサ中央値と第1乃至第3ジャイロセンサ6の角速度との差分の平均値を算出する。   When the second control device 7 determines that the angular velocities of the first to third gyro sensors 6 are equal to or lower than the threshold value, the second control device 7 is positioned at the center when the angular velocities of the first to third gyro sensors 6 are arranged in descending order or ascending order. The median value of the sensor to be extracted is extracted. Then, the second control device 7 calculates an average value of the difference between the sensor median value and the angular velocities of the first to third gyro sensors 6.

第2制御装置7は、第1乃至第3ジャイロセンサ6の角速度から、算出した差分の平均値を夫々減算することで、第1乃至第3ジャイロセンサ6の角速度を補正する。第2制御装置7は、補正した第1乃至第3ジャイロセンサ6の角速度を降順又は昇順に並べた際に中央に位置するセンサ中央値に基づいて、倒立状態を維持するためのトルク指令値を算出する。第2制御装置7は、算出したそのトルク指令値に応じた制御信号を各車輪駆動ユニット5に出力する。
各車輪駆動ユニット5は、第1及び第2制御装置7から出力された制御信号を合成し、合成した制御信号に応じて各車輪3を駆動する。
The second control device 7 corrects the angular velocities of the first to third gyro sensors 6 by subtracting the calculated average values of the differences from the angular velocities of the first to third gyro sensors 6, respectively. The second control device 7 calculates a torque command value for maintaining the inverted state based on the median value of the sensor located in the center when the corrected angular velocities of the first to third gyro sensors 6 are arranged in descending or ascending order. calculate. The second control device 7 outputs a control signal corresponding to the calculated torque command value to each wheel drive unit 5.
Each wheel drive unit 5 combines the control signals output from the first and second control devices 7 and drives each wheel 3 according to the combined control signal.

本実施の形態2に係る自律移動体1によれば、各ジャイロセンサ6の角速度を降順又は昇順に並べた際に中央に位置するセンサ中央値と各ジャイロセンサ6の角速度との差分の平均値を算出し、算出された差分の平均値に基づいて各ジャイロセンサ6の角速度を補正する。これにより、各ジャイロセンサ6のセンサ値間の誤差を低減し安定的な倒立制御が継続できる。さらに、2重系システムとして構成されているため、第1及び第2システム10、20のいずれか一方に異常が生じた場合でも、倒立制御を安定的に継続できる。このため、倒立制御の信頼性を大幅に向上させることができる。   According to the autonomous mobile body 1 according to the second embodiment, when the angular velocities of the respective gyro sensors 6 are arranged in descending or ascending order, the average value of the differences between the central sensor value and the angular velocities of the respective gyro sensors 6 And the angular velocity of each gyro sensor 6 is corrected based on the calculated average value of the differences. Thereby, the error between the sensor values of each gyro sensor 6 is reduced, and stable inversion control can be continued. Furthermore, since it is configured as a dual system, even if any one of the first and second systems 10 and 20 is abnormal, the inverted control can be continued stably. For this reason, the reliability of the inverted control can be greatly improved.

本実施の形態2において、他の構成は上記実施の形態1と同様であるため、同一部分に同一符号を付して詳細な説明は省略する。   In the second embodiment, since the other configuration is the same as that of the first embodiment, the same reference numerals are given to the same parts, and detailed description is omitted.

なお、本発明は上記実施の形態に限られたものではなく、趣旨を逸脱しない範囲で適宜変更することが可能である。   Note that the present invention is not limited to the above-described embodiment, and can be changed as appropriate without departing from the spirit of the present invention.

本発明は、例えば、図3に示す処理を、CPUにコンピュータプログラムを実行させることにより実現することも可能である。   In the present invention, for example, the processing shown in FIG. 3 can be realized by causing a CPU to execute a computer program.

プログラムは、様々なタイプの非一時的なコンピュータ可読媒体(non-transitory computer readable medium)を用いて格納され、コンピュータに供給することができる。非一時的なコンピュータ可読媒体は、様々なタイプの実体のある記録媒体(tangible storage medium)を含む。非一時的なコンピュータ可読媒体の例は、磁気記録媒体(例えばフレキシブルディスク、磁気テープ、ハードディスクドライブ)、光磁気記録媒体(例えば光磁気ディスク)、CD−ROM、CD−R、CD−R/W、半導体メモリ(例えば、マスクROM、PROM(Programmable ROM)、EPROM(Erasable PROM)、フラッシュROM、RAMを含む。   The program may be stored using various types of non-transitory computer readable media and supplied to a computer. Non-transitory computer readable media include various types of tangible storage media. Examples of non-transitory computer readable media are magnetic recording media (eg flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (eg magneto-optical disks), CD-ROM, CD-R, CD-R / W. Semiconductor memory (for example, mask ROM, PROM (Programmable ROM), EPROM (Erasable PROM), flash ROM, and RAM are included.

また、プログラムは、様々なタイプの一時的なコンピュータ可読媒体(transitory computer readable medium)によってコンピュータに供給されてもよい。一時的なコンピュータ可読媒体の例は、電気信号、光信号、及び電磁波を含む。一時的なコンピュータ可読媒体は、電線及び光ファイバ等の有線通信路、又は無線通信路を介して、プログラムをコンピュータに供給できる。   The program may also be supplied to the computer by various types of transitory computer readable media. Examples of transitory computer readable media include electrical signals, optical signals, and electromagnetic waves. The temporary computer-readable medium can supply the program to the computer via a wired communication path such as an electric wire and an optical fiber, or a wireless communication path.

1 倒立型移動体、2 車両本体、3 車輪、4 操作ハンドル、5 車輪駆動ユニット、6 第1乃至第3ジャイロセンサ、7 制御装置、71 倒立制御部、72 センサ判定部、73 平均算出部、74 補正部     DESCRIPTION OF SYMBOLS 1 Inverted type mobile body, 2 Vehicle main body, 3 Wheel, 4 Operation handle, 5 Wheel drive unit, 6 1st thru | or 3rd gyro sensor, 7 Control apparatus, 71 Inverted control part, 72 Sensor determination part, 73 Average calculation part, 74 Correction part

Claims (1)

同一検出対象の検出信号を出力する3つ以上のセンサと、
前記各センサから出力される各センサ値を降順又は昇順に並べた際に中央に位置するセンサ値に基づいて、倒立制御を行う制御手段と、を備える倒立型移動体であって、
当該倒立型移動体の起動時又は停止状態において前記各センサから出力される各センサ値の絶対値が閾値以下であるか否かを判定する判定手段と、
前記判定手段により前記各センサのセンサ値の絶対値が閾値以下であると判定されたとき、前記起動時又は停止状態におけるセンサ中央値と前記各センサのセンサ値との差分の平均値を算出する平均算出手段と、
前記各センサのセンサ値から、前記平均算出手段により算出された差分の平均値を減算又は加算することで、前記各センサのセンサ値を補正する補正手段と、を備える、ことを特徴とする倒立型移動体。
Three or more sensors that output detection signals of the same detection target;
A control means for performing an inverted control based on a sensor value located in the center when the sensor values output from the sensors are arranged in descending order or ascending order,
Determination means for determining whether or not the absolute value of each sensor value output from each sensor in the startup or stop state of the inverted moving body is equal to or less than a threshold;
When the determination means determines that the absolute value of the sensor value of each sensor is equal to or less than the threshold value, the average value of the difference between the sensor median value at the start or stop state and the sensor value of each sensor is calculated. An average calculating means;
A correction means for correcting the sensor value of each sensor by subtracting or adding the average value of the difference calculated by the average calculation means from the sensor value of each sensor. Type moving body.
JP2014026470A 2014-02-14 2014-02-14 Inverted moving body Active JP6079661B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014026470A JP6079661B2 (en) 2014-02-14 2014-02-14 Inverted moving body

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014026470A JP6079661B2 (en) 2014-02-14 2014-02-14 Inverted moving body

Publications (2)

Publication Number Publication Date
JP2015151003A true JP2015151003A (en) 2015-08-24
JP6079661B2 JP6079661B2 (en) 2017-02-15

Family

ID=53893718

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014026470A Active JP6079661B2 (en) 2014-02-14 2014-02-14 Inverted moving body

Country Status (1)

Country Link
JP (1) JP6079661B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63153607A (en) * 1986-12-17 1988-06-27 Toshiba Corp Unmanned vehicle
JPH06167350A (en) * 1992-11-30 1994-06-14 Nec Home Electron Ltd Sensor output processor
JP2004215350A (en) * 2002-12-27 2004-07-29 Sony Corp Drive controller, controlling method and two-wheeled vehicle

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63153607A (en) * 1986-12-17 1988-06-27 Toshiba Corp Unmanned vehicle
JPH06167350A (en) * 1992-11-30 1994-06-14 Nec Home Electron Ltd Sensor output processor
JP2004215350A (en) * 2002-12-27 2004-07-29 Sony Corp Drive controller, controlling method and two-wheeled vehicle

Also Published As

Publication number Publication date
JP6079661B2 (en) 2017-02-15

Similar Documents

Publication Publication Date Title
US10679507B2 (en) Parking support system, parking support method and program
JP6777761B2 (en) Vehicle control unit
JP5868780B2 (en) Vehicle control apparatus, vehicle control method, and program
EP3074787A1 (en) Autonomous moving object
US9128488B2 (en) Movement direction control apparatus and computer program
EP3647148B1 (en) Vehicular control device
JP2015162228A (en) vehicle control device
JP2015170256A (en) Mobile object
JP2018199433A (en) Automatic steering control device and steering control method
US9650069B2 (en) Method for controling rear wheel steering
JP5994607B2 (en) Coaxial two-wheel moving body and control method thereof
JP6079661B2 (en) Inverted moving body
JP7169059B2 (en) vehicle controller
JPWO2019131003A1 (en) Vehicle control device and electronic control system
JP2013107571A (en) Following control device
JP6164098B2 (en) Inverted moving body and control method thereof
JP2019038475A (en) Brake power control device and automatic steering system
US9367066B2 (en) Inverted pendulum type vehicle
JP6233127B2 (en) Gyro sensor offset correction device, vehicular navigation device, and gyro sensor offset correction method
JP6627353B2 (en) Control device and robot
JP6354447B2 (en) Training system, training method and training program
CN111149073B (en) moving body
KR101509428B1 (en) Rotation angle detection method and system in active roll corol device
CN115384490B (en) Vehicle transverse control method and device, electronic equipment and computer program product
JP2023172498A (en) Movable body, movable body system, movable body control method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160215

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161215

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20161220

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170102

R151 Written notification of patent or utility model registration

Ref document number: 6079661

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151