JP2004291228A - Robot device, action control method of robot device and computer program - Google Patents

Robot device, action control method of robot device and computer program Download PDF

Info

Publication number
JP2004291228A
JP2004291228A JP2004068133A JP2004068133A JP2004291228A JP 2004291228 A JP2004291228 A JP 2004291228A JP 2004068133 A JP2004068133 A JP 2004068133A JP 2004068133 A JP2004068133 A JP 2004068133A JP 2004291228 A JP2004291228 A JP 2004291228A
Authority
JP
Japan
Prior art keywords
action
internal state
value
external stimulus
value calculation
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
JP2004068133A
Other languages
Japanese (ja)
Other versions
JP2004291228A5 (en
JP4552465B2 (en
Inventor
Tsutomu Sawada
務 澤田
Masahiro Fujita
雅博 藤田
Takeshi Takagi
剛 高木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2004068133A priority Critical patent/JP4552465B2/en
Publication of JP2004291228A publication Critical patent/JP2004291228A/en
Publication of JP2004291228A5 publication Critical patent/JP2004291228A5/ja
Application granted granted Critical
Publication of JP4552465B2 publication Critical patent/JP4552465B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To make a robot conduct an action that does not make a user feel bored as an entertainment robot, and to make the robot learn the action conducted by itself. <P>SOLUTION: An action selection control system 100 has: a plurality of element actions that output an action when selected; an action value calculating part 120 that refers to a database in which an external stimulus to be inputted is made to correspond to an expected internal condition change expected to change after the action is conducted, and that calculates an action value AL of each of the element actions based on information from an internal condition control part 91 and an external stimulus recognition part 80; an action selection part 130 that selects the element action having the largest action value AL; and a learning part 140 that updates the database based on a result after the action is conducted. A predetermined internal condition and external stimulus are made to correspond to each action. The action value calculating part 120 calculates the action value AL for each action, based on a desire value for the action corresponding to the inputted internal condition and on a expected satisfaction level change on the basis of the expected internal condition change. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、自律的に行動を発現するロボット装置及びロボット装置の行動制御方法、並びにコンピュータ・プログラムに関し、特に、自身の内部状態と外部刺激とから発現する行動を選択するロボット装置及びロボット装置の行動制御方法、並びにコンピュータ・プログラムに関する。   The present invention relates to a robot device that expresses an action autonomously, a method of controlling the action of the robot device, and a computer program, and more particularly to a robot device and a robot device that select an action that expresses an internal state and an external stimulus. The present invention relates to a behavior control method and a computer program.

さらに詳しくは、本発明は、本能や感情といった情動をモデル化してシステムの内部状態を管理し、内部状態の変化に応じて行動を選択するロボット装置及びロボット装置の行動制御方法、並びにコンピュータ・プログラムに係り、特に、内部状態と外部刺激に対し、ユーザや環境とのインタラクションを応じた行動を選択するロボット装置及びロボット装置の行動制御方法、並びにコンピュータ・プログラムに関する。 More specifically, the present invention relates to a robot apparatus which models emotions such as instinct and emotion, manages an internal state of the system, and selects an action according to a change in the internal state, a behavior control method of the robot apparatus, and a computer program In particular, the present invention relates to a robot apparatus for selecting an action in accordance with an interaction with a user or an environment with respect to an internal state and an external stimulus, an action control method of the robot apparatus, and a computer program.

近年、産業用ロボット装置に代わり、新しいロボット装置の分野として人間共存型ロボット装置やエンターテインメント・ロボット装置の研究が進められている。このようなロボット装置は、センサなどからの外部刺激の情報を使用して行動を発現するようになされている。   2. Description of the Related Art In recent years, research on human-coexisting robots and entertainment robots has been advanced as a new robot field in place of industrial robots. Such a robot device expresses a behavior using information of an external stimulus from a sensor or the like.

例えば、ロボット装置の自己保存の観点からの評価に基づきロボットの行動を生成する方法について提案がなされている。自己保存の観点からの評価とは、自己のハードウェアの耐久性、故障率の観点からこれを評価するもので、具体的には、外界情報(視覚・聴覚のセンサ入力)だけでなく、自己のバッテリ状態や消費電力、回路温度などの情報からなる入力情報を身体の耐久性の評価値(故障率)に変換する自己保存評価関数を計算し、複数の動作形態のうち、行動を行なっている状態から、実際に他の行動に指令を与えて行動状態を変移させるために、内外感覚情報及び自己保存評価関数の値を監視することで、行動状態を変移させる。これにより、ロボット装置の行動は、自己保存評価が良くなる方へ近づき、悪くなる方は避けるという自己保存の評価から生まれる志向性(好き嫌い)を反映したものとすることができる。   For example, there has been proposed a method of generating a behavior of a robot based on an evaluation from the viewpoint of self-preservation of a robot device. The evaluation from the viewpoint of self-preservation is to evaluate the hardware from the viewpoint of the durability and failure rate of its own hardware. Specifically, it evaluates not only external information (visual and auditory sensor inputs) but also its own Calculates a self-preservation evaluation function that converts input information consisting of information such as battery status, power consumption, and circuit temperature into an evaluation value (failure rate) of body durability. In order to change the action state by actually giving a command to another action from the state in which the user is, the action state is changed by monitoring the internal / external sensory information and the value of the self-preservation evaluation function. Thereby, the behavior of the robot apparatus can reflect the intentionality (like / dislike) generated from the self-preservation evaluation that approaches the one where the self-preservation evaluation improves and avoids the one that worsens.

また、このロボット装置は、「情」のモデル化のために自己保存評価関数を導入し、例えば充電されると喜びの反応として黄色の表出をしたり、放電されると恐怖の反応として青色を表出したりすることで、情動表出を行なうことができる。   In addition, this robot device introduces a self-preservation evaluation function for modeling "emotion". For example, when it is charged, it expresses yellow as a reaction of joy, and when it is discharged, it expresses blue as a fear response. By expressing the emotion, emotion expression can be performed.

しかしながら、このロボット装置の「自己の保存」に基づいた価値観は、充電なら良、放電なら悪、というような単純なものであり、人間に対して一方向のコミュニケーションしか実現できない。   However, the values based on the “self-preservation” of this robot device are simple, such as good for charging and bad for discharging, and can only realize one-way communication with humans.

また、人間共存型ロボット装置や、エンターテインメント・ロボット装置と呼ばれるロボット装置は、玩具機械的な位置付けがなされ、外部刺激のみを行動選択のトリガとしているものが多く、ユーザ操作と応答動作との関係が固定的である。その結果、ユーザは同じ外部刺激に対して、同じ動作しか繰り返さない玩具に対し、容易に飽きを感じてしまうことが多い。   In addition, many robots called human coexistence type robots and entertainment robots are toy-mechanically positioned, and only external stimuli are used as triggers for action selection. It is fixed. As a result, the user often easily feels bored with a toy that repeats only the same operation for the same external stimulus.

近時、本能や感情といった情動をモデル化してシステムの内部状態を管理し、内部状態の変化に応じて行動を選択するシステムが提案されているものの、内部状態と外部刺激に対して選択される行動は固定的なものが多く、ユーザや環境とのインタラクションを通じてそれを変えることは困難である。   Recently, a system that manages the internal state of the system by modeling emotions such as instinct and emotions and selects an action according to changes in the internal state has been proposed, but it is selected for internal states and external stimuli Behavior is often fixed and it is difficult to change it through interaction with users and the environment.

ロボット装置が現在の状況に応じた最適な次の行動及び動作を予想して行なわせる機能や、過去の経験に基づいて次の行動及び動作を変化させる機能を搭載することができれば、より一層の親近感や満足感をユーザに与えて、ロボット装置としてのアミューズメント性をより向上させるとともに、ユーザとのインタラクションを円滑に行なうことができて便利である。   If the robot device can be equipped with a function for predicting and performing the optimal next action and action according to the current situation, and a function for changing the next action and action based on past experience, further improvement will be made. This provides the user with a sense of closeness and satisfaction, further improves the amusement as the robot device, and facilitates the interaction with the user, which is convenient.

尾形哲也、菅野重樹共著「自己保存に基づくロボットの行動生成−方法論と機械モデルの実現化−」、日本ロボット学会誌、1997年、第15巻、第5号、p.710−721Tetsuya Ogata and Shigeki Sugano, "Robot Behavior Generation Based on Self-Conservation-Realization of Methodology and Mechanical Model-", Journal of the Robotics Society of Japan, 1997, Vol. 15, No. 5, p. 710-721

本発明の目的は、本能や感情といった情動をモデル化してシステムの内部状態を管理し、内部状態の変化に応じて行動を選択することができる、優れたロボット装置及びロボット装置の行動制御方法、並びにコンピュータ・プログラムを提供することにある。   An object of the present invention is to manage an internal state of a system by modeling emotions such as instinct and emotion, to select an action according to a change in the internal state, an excellent robot apparatus and a behavior control method of the robot apparatus, And to provide a computer program.

本発明のさらなる目的は、内部状態と外部刺激に対し、ユーザや環境とのインタラクションを応じた行動を選択することができる、優れたロボット装置及びロボット装置の行動制御方法、並びにコンピュータ・プログラムを提供することにある。   A further object of the present invention is to provide an excellent robot apparatus, an action control method of the robot apparatus, and a computer program which can select an action according to an interaction with a user or an environment with respect to an internal state and an external stimulus. Is to do.

本発明のさらなる目的は、エンターテイメント・ロボットとしてユーザを飽きさせない行動を発現することができるとともに、自身が発現する行動を学習することができる、優れたロボット装置及びロボット装置の行動制御方法、並びにコンピュータ・プログラムを提供することにある。   A further object of the present invention is to provide an excellent robot apparatus, an action control method for a robot apparatus, and a computer, which are capable of expressing an action that does not make a user tired as an entertainment robot and capable of learning the action that the user develops.・ To provide programs.

本発明は、上記課題を参酌してなされたものであり、その第1の側面は、内部状態及び外部刺激に基づいて自律的に行動を選択し発現するロボット装置において、
所定の内部状態及び外部刺激が対応付けられた行動が記述された複数の行動記述モジュールと、
入力される外部刺激と、行動発現後に変化すると予想される予想内部状態変化とを対応付けたデータ形式からなる行動価値算出データベースと、
内部状態及び外部刺激から前記行動価値算出データベースを参照し、内部状態に対応付けられた行動に対する欲求値及び内部状態に基づく満足度を求め、現在の内部状態から求まる欲求値と、予想内部状態変化から求まる予想満足度変化とに基づいて、前記の各行動記述モジュールに記述された行動の行動価値を算出する行動価値算出手段と、
該算出された行動価値に基づいて行動記述モジュールを選択し、該選択された行動記述モジュールに記述された行動を発現させる行動選択手段と、
該選択された行動発現後の結果に基づいて行動価値算出データベースを更新する学習手段と、
を具備することを特徴とするロボット装置である。
The present invention has been made in consideration of the above problems, and a first aspect of the present invention is directed to a robot apparatus which autonomously selects and expresses an action based on an internal state and an external stimulus,
A plurality of action description modules in which actions associated with a predetermined internal state and an external stimulus are described,
An action value calculation database having a data format in which an input external stimulus is associated with an expected internal state change expected to change after the action is expressed,
The action value calculation database is referred to from the internal state and the external stimulus, the desire value for the action associated with the internal state and the degree of satisfaction based on the internal state are obtained, the desire value obtained from the current internal state, and the expected internal state change Action value calculating means for calculating the action value of the action described in each of the action description modules based on the expected satisfaction degree change obtained from
Action selecting means for selecting an action description module based on the calculated action value, and expressing the action described in the selected action description module;
Learning means for updating the action value calculation database based on the selected result after the action expression;
A robot apparatus comprising:

本発明においては、現在の内部状態に対応する行動に対する欲求値を求め、また、現在の内部状態に対する満足度と、外部刺激が入力され行動を発現した後に変化すると予想される予想内部状態に対応する予想満足度と差である予想満足度変化を求め、これらから行動価値を算出し、この行動価値に基づき行動を選択し発現するとともに、さらには行動価値算出に使用するデータベースを行動発現後の結果から学習して随時更新することができる。したがって、環境やユーザとのコミュニケーションに応じて変化する内部状態及び種々の外部刺激に対して一義的ではないさまざまな行動を発現することができる。   In the present invention, a desire value for an action corresponding to the current internal state is obtained, and a degree of satisfaction with the current internal state and an expected internal state expected to change after an external stimulus is input and the action is expressed are calculated. The change in expected satisfaction, which is the difference from the expected satisfaction, is calculated, the action value is calculated from these, and the action is selected and expressed based on the action value. It can be updated from time to time by learning from the results. Therefore, various actions that are not unique to the internal state and various external stimuli that change in accordance with the environment and communication with the user can be expressed.

また、上記行動価値算出手段は、上記現在の内部状態から求まる上記欲求値と、該現在の内部状態から求まる上記満足度と、上記予想満足度変化とに基づき、各行動に対する上記行動価値を算出してもよい。   Further, the action value calculation means calculates the action value for each action based on the desire value obtained from the current internal state, the satisfaction degree obtained from the current internal state, and the expected satisfaction degree change. May be.

また、上記行動価値算出データベースは、上記外部刺激の値に対応付けられた上記予想内部状態変化を有することができ、上記行動価値算出データベースにはないデータが入力された場合は、線形モデルを使用し線形補間を行って予想内部状態変化を算出することができ、各外部刺激が有するすべての値に対応する予想内部状態変化を持つ必要がなくデータ量を低減することができる。   Further, the action value calculation database can have the expected internal state change associated with the value of the external stimulus, and when data that is not in the action value calculation database is input, a linear model is used. Then, the expected internal state change can be calculated by performing linear interpolation, and it is not necessary to have the expected internal state change corresponding to all the values of each external stimulus, so that the data amount can be reduced.

また、上記学習手段は、上記外部刺激が入力され行動を発現した後の実際の内部状態変化から上記予想内部状態変化を学習することができ、コミュニケーションをとるユーザや、環境に応じて異なるデータベースを作成することができる。   Further, the learning means can learn the expected internal state change from the actual internal state change after the external stimulus is input and expresses the action, and a different database depending on a user who communicates or an environment. Can be created.

また、上記行動選択手段は、候補となる行動モジュールの中からさまざまな方法により実際に発言させる行動を選択することができる。例えば、候補である行動のうち前記行動価値算出手段により算出された行動価値が最大のものを常に選択する方法(Greedy)をとることができる。   Further, the action selecting means can select an action to be actually made to speak from various candidate action modules by various methods. For example, it is possible to adopt a method (Greedy) of always selecting a candidate action having the largest action value calculated by the action value calculation means.

あるいは、前記行動選択手段は、前記行動価値算出手段により算出された行動価値に依らず、候補である行動の中から無作為(Random)に選択するようにしてもよい。このような場合、行動選択が探索的となり、行動価値算出データベースを更新する可能性を高めることができる。   Alternatively, the action selecting means may randomly select from the candidate actions irrespective of the action value calculated by the action value calculating means. In such a case, the action selection becomes exploratory, and the possibility of updating the action value calculation database can be increased.

あるいは、前記行動選択手段は、SoftMaxにより、前記行動価値算出手段により算出された行動価値に応じた確率に従って、候補である行動の中から選択するようにしてもよい。この場合、行動価値が大きい行動をより高い確率で選択することになる。   Alternatively, the action selecting means may select from among the candidate actions according to the probability according to the action value calculated by the action value calculating means by SoftMax. In this case, an action having a large action value is selected with a higher probability.

また、前記行動価値算出データベースは、前記の各行動記述モジュールに記述された行動と、外部刺激としての対象物が持つ特性と、内部状態の組として、前記データ形式を管理するようにしてもよい。この場合、前記行動価値算出手段は、前記の各行動記述モジュールに記述された行動をインデックスとして前記行動価値算出データベースを検索し、外部刺激としての対象物の特性から内部状態を決定することができる。   Further, the action value calculation database may manage the data format as a set of an action described in each of the action description modules, a characteristic of an object as an external stimulus, and an internal state. . In this case, the action value calculation means can search the action value calculation database using the action described in each of the action description modules as an index, and determine the internal state from the characteristics of the object as the external stimulus. .

また、前記行動価値算出データベースの他の利用方法として、前記行動価値算出手段は、外部刺激としての対象物が持つある特性をインデックスとして前記行動価値算出データベースを検索し、内部状態を決定するようにしてもよい。この場合、前記行動価値算出手段は、行動又は外部刺激としての対象物が持つその他の特性を任意に値に設定し又は平均化し、対象物に抽象的な価値を与えることができる。   Further, as another method of using the action value calculation database, the action value calculation means searches the action value calculation database using a certain characteristic of an object as an external stimulus as an index to determine an internal state. May be. In this case, the action value calculating means can arbitrarily set or average values of the action or other characteristics of the object as an external stimulus to give the object an abstract value.

また、本発明の第2の側面は、内部状態及び外部刺激に基づいて自律的に行動を選択して発現するためのロボット装置の行動制御をコンピュータ・システム上で実行するようにコンピュータ可読形式で記述されたコンピュータ・プログラムにおいて、
所定の内部状態及び外部刺激が対応付けられた行動が記述された複数の行動記述モジュールと、
入力される外部刺激と、行動発現後に変化すると予想される予想内部状態変化とを対応付けたデータ形式からなる行動価値算出データベースを管理するステップと、
内部状態及び外部刺激から前記行動価値算出データベースを参照し、内部状態に対応付けられた行動に対する欲求値及び内部状態に基づく満足度を求め、現在の内部状態から求まる欲求値と、予想内部状態変化から求まる予想満足度変化とに基づいて、前記の各行動記述モジュールに記述された行動の行動価値を算出する行動価値算出ステップと、
該算出された行動価値に基づいて行動記述モジュールを選択し、該選択された行動記述モジュールに記述された行動を発現させる行動選択ステップと、
該選択された行動発現後の結果に基づいて行動価値算出データベースを更新する学習ステップと、
ことを特徴とするコンピュータ・プログラムである。
According to a second aspect of the present invention, there is provided a computer-readable format for executing, on a computer system, an action control of a robot apparatus for autonomously selecting and expressing an action based on an internal state and an external stimulus. In the described computer program,
A plurality of action description modules in which actions associated with a predetermined internal state and an external stimulus are described,
A step of managing an action value calculation database having a data format in which the input external stimulus and the expected internal state change expected to change after the action is expressed,
The action value calculation database is referred to from the internal state and the external stimulus, the desire value for the action associated with the internal state and the degree of satisfaction based on the internal state are obtained, the desire value obtained from the current internal state, and the expected internal state change An action value calculating step of calculating an action value of the action described in each of the action description modules based on the expected satisfaction degree change obtained from
Selecting an action description module based on the calculated action value, and an action selection step of expressing the action described in the selected action description module;
A learning step of updating an action value calculation database based on the selected result after the action is expressed;
A computer program characterized by the following.

本発明の第2の側面に係るコンピュータ・プログラムは、コンピュータ・システム上で所定の処理を実現するようにコンピュータ可読形式で記述されたコンピュータ・プログラムを定義したものである。換言すれば、本発明の第2の側面に係るコンピュータ・プログラムをコンピュータ・システムにインストールすることによって、コンピュータ・システム上では協働的作用が発揮され、本発明の第1の側面に係るロボット装置と同様の作用効果を得ることができる。   The computer program according to the second aspect of the present invention defines a computer program described in a computer-readable format so as to realize a predetermined process on a computer system. In other words, by installing the computer program according to the second aspect of the present invention in a computer system, a cooperative action is exerted on the computer system, and the robot apparatus according to the first aspect of the present invention. The same operation and effect can be obtained.

本発明によれば、本能や感情といった情動をモデル化してシステムの内部状態を管理し、内部状態の変化に応じて行動を選択することができる、優れたロボット装置及びロボット装置の行動制御方法、並びにコンピュータ・プログラムを提供することができる。   According to the present invention, an excellent robot apparatus and a behavior control method for a robot apparatus, which can model emotions such as instinct and emotion, manage an internal state of the system, and select an action according to a change in the internal state, And a computer program.

また、本発明によれば、内部状態と外部刺激に対し、ユーザや環境とのインタラクションを応じた行動を選択することができる、優れたロボット装置及びロボット装置の行動制御方法、並びにコンピュータ・プログラムを提供することができる。   Further, according to the present invention, there is provided an excellent robot apparatus, an action control method of the robot apparatus, and a computer program capable of selecting an action according to an interaction with a user or an environment with respect to an internal state and an external stimulus. Can be provided.

また、本発明によれば、エンターテイメント・ロボットとしてユーザを飽きさせない行動を発現することができるとともに、自身が発現する行動を学習することができる、優れたロボット装置及びロボット装置の行動制御方法、並びにコンピュータ・プログラムを提供することができる。   Further, according to the present invention, an excellent robot apparatus and an action control method for the robot apparatus, which can express a behavior that does not make the user tired as an entertainment robot and can learn an action that the user develops, and A computer program can be provided.

本発明に係るロボット装置は、内部状態及び外部刺激に基づき自律的に行動を選択し発現するロボット装置であり、行動が記述された複数の行動記述モジュールと、上記内部状態及び外部刺激から行動価値算出データベースを参照して各行動記述モジュールに記述された行動の行動価値を算出する行動価値算出手段と、算出された行動価値に基づいて行動記述モジュールを選択し、当該行動記述モジュールに記述された行動を発現させる行動選択手段と、選択された行動発現後の結果に基づいて行動価値算出データベースを更新する学習手段を備えている。   The robot apparatus according to the present invention is a robot apparatus that autonomously selects and expresses an action based on an internal state and an external stimulus, and includes a plurality of action description modules in which the action is described, and an action value based on the internal state and the external stimulus. An action value calculating means for calculating the action value of the action described in each action description module with reference to the calculation database, and selecting an action description module based on the calculated action value; There is provided an action selecting means for expressing the action, and a learning means for updating the action value calculation database based on the selected result after the action is expressed.

それぞれの行動記述モジュールに記述された行動には所定の内部状態及び外部刺激が対応付けられている。また、行動価値算出データベースは、入力される外部刺激と、行動発現後に変化すると予想される予想内部状態変化とが対応付けられたものである。そして、行動価値算出手段は、内部状態に対応付けられた行動に対する欲求値及び内部状態に基づく満足度を求め、現在の内部状態から得られる欲求値と、予想内部状態変化から求まる予想満足度変化とに基づいて、各行動に対する上記行動価値を算出する。 The action described in each action description module is associated with a predetermined internal state and an external stimulus. The action value calculation database is a database in which an input external stimulus is associated with an expected internal state change that is expected to change after the action is expressed. Then, the action value calculating means obtains a desire value for the action associated with the internal state and a degree of satisfaction based on the internal state, and determines a desire value obtained from the current internal state and an expected satisfaction degree change obtained from the expected internal state change. Based on the above, the action value for each action is calculated.

すなわち、自身の内部状態から発現する行動の欲求値を求め、また、現在の内部状態に基づく満足度から行動発現後に予想される満足度の変化量を予想満足度として求め、これらから行動価値を算出し、この行動価値に基づいて行動選択することにより、同じ外部刺激でも内部状態の値によって異なる行動が選択されるとともに、さらには行動価値算出に使用するデータベースを学習により随時更新することができる。したがって、環境やユーザとのコミュニケーションに応じて変化する内部状態及び種々の外部刺激に対して一義的ではないさまざまなユーザを飽きさせない行動を発現させることができる。 That is, the desire value of the action that emerges from the own internal state is obtained, and the change in the degree of satisfaction expected after the action is expressed from the degree of satisfaction based on the current internal state is determined as the expected degree of satisfaction. By calculating and selecting an action based on this action value, different actions are selected depending on the value of the internal state even with the same external stimulus, and furthermore, the database used for the action value calculation can be updated at any time by learning. . Therefore, it is possible to develop an action that does not make various users who are not unique to the internal state and various external stimuli that change in accordance with the environment and communication with the user get tired.

本発明のさらに他の目的、特徴や利点は、後述する本発明の実施形態や添付する図面に基づくより詳細な説明によって明らかになるであろう。   Further objects, features, and advantages of the present invention will become apparent from more detailed descriptions based on embodiments of the present invention described below and the accompanying drawings.

以下、本発明を適用した具体的な実施の形態について、図面を参照しながら詳細に説明する。本明細書で説明する実施の形態は、本発明を、ペット型エージェント、人間型エージェントなどの生命を模擬し、ユーザとのインタラクションを可能とするロボット装置に適用したものである。以下では先ず、このようなロボット装置の構成について説明し、次にロボット装置の制御システムのうち、行動選択を行う行動選択制御システムについて説明し、最後にそのような行動選択制御システムを含むロボット装置の制御システムについて説明する。   Hereinafter, specific embodiments to which the present invention is applied will be described in detail with reference to the drawings. The embodiment described in this specification is an application of the present invention to a robot device that simulates life of a pet-type agent, a human-type agent, and the like, and enables interaction with a user. Hereinafter, first, the configuration of such a robot apparatus will be described, then, among the control systems of the robot apparatus, an action selection control system that performs an action selection will be described, and finally, a robot apparatus including such an action selection control system A control system will be described.

A.ロボット装置の構成
図1には、本発明の実施に供されるロボット装置の外観を示している。同図に示すように、ロボット装置1は、体幹部ユニット2の所定の位置に頭部ユニット3が連結されるとともに、左右2つの腕部ユニット4R/Lと、左右2つの脚部ユニット5R/Lが連結されて構成されている(但し、R及びLの各々は、右及び左の各々を示す接尾辞である。以下において同じ。)。
A. The diagram 1 of the robot apparatus, and shows the appearance of the robot apparatus to be used for the practice of the present invention. As shown in the figure, the robot apparatus 1 has a head unit 3 connected to a predetermined position of a trunk unit 2, and two left and right arm units 4 R / L and two left and right leg units 5 R / L are connected to each other (however, each of R and L is a suffix indicating each of right and left. The same applies hereinafter).

図2は、本発明の実施に供されるロボット装置1の機能構成を模式的に示している。同図に示すように、ロボット装置1は、全体の動作の統括的制御及びその他のデータ処理を行なう制御ユニット20と、入出力部40と、駆動部50と、電源部60とで構成される。以下、各部について説明する。   FIG. 2 schematically shows a functional configuration of the robot apparatus 1 provided for implementing the present invention. As shown in FIG. 1, the robot apparatus 1 includes a control unit 20 that performs overall control of the entire operation and other data processing, an input / output unit 40, a driving unit 50, and a power supply unit 60. . Hereinafter, each unit will be described.

入出力部40は、入力部として人間の目に相当し、外部の状況を撮影するCCD(Charge Coupled Device)カメラ15、及び耳に相当するマイクロフォン16や頭部や背中などの部位に配設され、所定の押圧を受けるとこれを電気的に検出することで、ユーザの接触を感知するタッチ・センサ18、前方に位置する物体までの距離を測定するための距離センサ、五感に相当するその他、ジャイロセンサなど、各種のセンサを含む。また、出力部として、頭部ユニット3に備えられ、人間の口に相当するスピーカ17、及び人間の目の位置に設けられ、感情表現や視覚認識状態を表現する例えばLED(Light Emitting Device)インジケータ(目ランプ)19などを装備している。これら出力部は、音声やLEDインジケータ19の点滅、脚による機械運動パターン以外の形式でもロボット装置1からのユーザ・フィードバックを表現することができる。   The input / output unit 40 is equivalent to a human eye as an input unit, and is disposed in a CCD (Charge Coupled Device) camera 15 for photographing an external situation, a microphone 16 corresponding to an ear, and a part such as a head and a back. When a predetermined pressure is received, a touch sensor 18 that senses a user's contact by electrically detecting this, a distance sensor for measuring a distance to an object located in front, and other elements corresponding to the five senses, Includes various sensors such as gyro sensors. Further, as an output unit, for example, an LED (Light Emitting Device) indicator provided in the head unit 3 and provided at the position of a human eye and a speaker 17 corresponding to a human mouth and expressing an emotional expression or a visual recognition state. (Eye lamp) 19 etc. are equipped. These output units can express the user feedback from the robot apparatus 1 in a format other than the voice, the blinking of the LED indicator 19, and the mechanical motion pattern by the legs.

例えば頭部ユニットの頭頂部の所定箇所に複数のタッチ・センサ18を設け、各タッチ・センサ18における接触検出を複合的に活用して、ユーザからの働きかけ、ロボット装置1の頭部を「撫でる」「叩く」「軽く叩く」などを検出することができる。また、押圧センサのうちの幾つかが所定時間をおいて順次接触したことを検出した場合、これを「撫でられた」と判別し、短時間のうちに接触を検出した場合、「叩かれた」と判別する等場合分けし、これに応じて内部状態も変化し、このような内部状態の変化を上述の出力部などにより表現することができる。   For example, a plurality of touch sensors 18 are provided at predetermined positions on the top of the head unit, and the touch detection by each of the touch sensors 18 is used in a complex manner, so that the user can work and “stroke” the head of the robot apparatus 1. "", "Tap", "Tap lightly", etc. can be detected. Further, when it is detected that some of the pressing sensors have sequentially contacted with a predetermined time interval, it is determined that the contact has been performed. , Etc., and the internal state changes accordingly, and such a change in the internal state can be expressed by the above-described output unit or the like.

駆動部50は、制御ユニット20が指令する所定の運動パターンに従ってロボット装置1の機体動作を実現する機能ブロックであり、行動制御による制御対象である。駆動部50は、ロボット装置1の各関節における自由度を実現するための機能モジュールであり、それぞれの関節におけるロール、ピッチ、ヨーの各軸に設けられた複数の駆動ユニット541〜54nで構成される。各駆動ユニット541〜54nは、所定軸回りの回転動作を行なうモータ511〜51nと、モータ511〜51nの回転位置を検出するエンコーダ521〜52nと、エンコーダ521〜52nの出力に基づいてモータ511〜51nの回転位置や回転速度を適応的に制御するドライバ531〜53nとの組み合わせで構成される。   The drive unit 50 is a functional block that implements a body operation of the robot device 1 according to a predetermined movement pattern commanded by the control unit 20, and is a control target by behavior control. The drive unit 50 is a functional module for realizing a degree of freedom at each joint of the robot apparatus 1, and includes a plurality of drive units 541 to 54n provided on the roll, pitch, and yaw axes of each joint. You. Each of the drive units 541 to 54n includes a motor 511 to 51n for performing a rotation operation about a predetermined axis, encoders 521 to 52n for detecting a rotational position of the motor 511 to 51n, and motors 511 to 52n based on outputs of the encoders 521 to 52n. It is configured in combination with drivers 531 to 53n that adaptively control the rotation position and rotation speed of 51n.

本実施形態に係るロボット装置1は、2足歩行としたが、駆動ユニットの組み合わせ方によって、ロボット装置1を例えば4足歩行などの脚式移動ロボット装置として構成することもできる。   Although the robot device 1 according to the present embodiment is a bipedal walking, the robotic device 1 may be configured as a legged mobile robot device such as a quadrupedal walking, depending on how the drive units are combined.

電源部60は、その字義通り、ロボット装置1内の各電気回路などに対して給電を行う機能モジュールである。本実施形態に係るロボット装置1は、バッテリを用いた自律駆動式であり、電源部60は、充電バッテリ61と、充電バッテリ61の充放電状態を管理する充放電制御部62とで構成される。   The power supply unit 60 is a functional module that supplies power to each electric circuit and the like in the robot device 1 as the name implies. The robot apparatus 1 according to the present embodiment is of an autonomous driving type using a battery, and a power supply unit 60 includes a charging battery 61 and a charging / discharging control unit 62 that manages a charging / discharging state of the charging battery 61. .

充電バッテリ61は、例えば、複数本のリチウムイオン2次電池セルをカートリッジ式にパッケージ化した「バッテリ・パック」の形態で構成される。   The charging battery 61 is configured, for example, in the form of a “battery pack” in which a plurality of lithium ion secondary battery cells are packaged in a cartridge type.

また、充放電制御部62は、バッテリ61の端子電圧や充電/放電電流量、バッテリ61の周囲温度等を測定することでバッテリ61の残存容量を把握し、充電の開始時期や終了時期などを決定する。充放電制御部62が決定する充電の開始及び終了時期は制御ユニット20に通知され、ロボット装置1が充電オペレーションを開始及び終了するためのトリガとなる。   Further, the charge / discharge control unit 62 grasps the remaining capacity of the battery 61 by measuring a terminal voltage and a charge / discharge current amount of the battery 61, an ambient temperature of the battery 61, and determines a start time and an end time of charging. decide. The start and end timings of charging determined by the charge / discharge control unit 62 are notified to the control unit 20 and serve as triggers for the robot apparatus 1 to start and end charging operations.

制御ユニット20は、「頭脳」に相当し、例えばロボット装置1の機体頭部、あるいは胴体部に搭載されている。   The control unit 20 corresponds to the “brain”, and is mounted on, for example, the body head or the body of the robot apparatus 1.

図3には、制御ユニット20の構成をさらに詳細に示している。図3に示すように、制御ユニット20は、メイン・コントローラとしてのCPU(Central Processing Unit)21が、メモリ及びその他の各回路コンポーネントや周辺機器とバス接続された構成となっている。バス28は、データ・バス、アドレス・バス、コントロール・バスなどを含む共通信号伝送路である。バス28上の各装置にはそれぞれに固有のアドレス(メモリ・アドレス又はI/Oアドレス)が割り当てられている。CPU21は、アドレスを指定することによってバス28上の特定の装置と通信することができる。   FIG. 3 shows the configuration of the control unit 20 in more detail. As shown in FIG. 3, the control unit 20 has a configuration in which a CPU (Central Processing Unit) 21 as a main controller is bus-connected to a memory and other circuit components and peripheral devices. The bus 28 is a common signal transmission path including a data bus, an address bus, a control bus, and the like. Each device on the bus 28 is assigned a unique address (memory address or I / O address). The CPU 21 can communicate with a specific device on the bus 28 by specifying an address.

RAM(Random Access Memory)22は、DRAM(Dynamic RAM)などの揮発性メモリで構成された書き込み可能メモリであり、CPU21が実行するプログラム・コードをロードしたり、実行プログラムによる作業データの一時的に保存したりするために使用される。   A RAM (Random Access Memory) 22 is a writable memory including a volatile memory such as a DRAM (Dynamic RAM), and loads a program code executed by the CPU 21 or temporarily stores work data by the execution program. Used to save and so on.

ROM(Read Only Memory)23は、プログラムやデータを恒久的に格納する読み出し専用メモリである。ROM23に格納されるプログラム・コードには、ロボット装置1の電源投入時に実行する自己診断テスト・プログラムや、ロボット装置1の動作を規定する動作制御プログラムなどが挙げられる。   The ROM (Read Only Memory) 23 is a read-only memory that permanently stores programs and data. The program code stored in the ROM 23 includes a self-diagnosis test program executed when the power of the robot apparatus 1 is turned on, an operation control program for defining the operation of the robot apparatus 1, and the like.

ロボット装置1の制御プログラムには、カメラ15やマイクロフォン16などのセンサ入力を処理してシンボルとして認識する「センサ入力・認識処理プログラム」、短期記憶や長期記憶などの記憶動作(後述)を司りながらセンサ入力と所定の行動制御モデルとに基づいてロボット装置1の行動を制御する「行動制御プログラム」、行動制御モデルに従って各関節モータの駆動やスピーカ17の音声出力を制御する「駆動制御プログラム」などが含まれる。   The control program of the robot apparatus 1 includes a “sensor input / recognition processing program” that processes sensor inputs from the camera 15 and the microphone 16 and recognizes the symbols as symbols, and performs storage operations (described later) such as short-term storage and long-term storage. An "action control program" that controls the action of the robot apparatus 1 based on the sensor input and a predetermined action control model, a "drive control program" that controls the drive of each joint motor and the audio output of the speaker 17 according to the action control model, and the like. Is included.

不揮発性メモリ24は、例えばEEPROM(Electrically Erasable and Programmable ROM)のように電気的に消去再書き込みが可能なメモリ素子で構成され、逐次更新すべきデータを不揮発的に保持するために使用される。逐次更新すべきデータには、暗号鍵やその他のセキュリティ情報、出荷後にインストールすべき装置制御プログラムなどが挙げられる。   The non-volatile memory 24 is configured by a memory element that can be electrically erased and rewritten, such as an EEPROM (Electrically Erasable and Programmable ROM), and is used to hold data to be sequentially updated in a non-volatile manner. The data to be sequentially updated includes an encryption key and other security information, a device control program to be installed after shipment, and the like.

インターフェース25は、制御ユニット20外の機器と相互接続し、データ交換を可能にするための装置である。インターフェース25は、例えば、カメラ15、マイクロフォン16、又はスピーカ17等との間でデータ入出力を行う。また、インターフェース25は、駆動部50内の各ドライバ531〜53nとの間でデータやコマンドの入出力を行なう。   The interface 25 is a device for interconnecting with devices outside the control unit 20 and enabling data exchange. The interface 25 performs data input / output with the camera 15, the microphone 16, the speaker 17, and the like, for example. The interface 25 inputs and outputs data and commands to and from each of the drivers 531 to 53n in the drive unit 50.

また、インターフェース25は、RS(Recommended Standard)−232Cなどのシリアル・インターフェース、IEEE(Institute of Electrical and Electronics Engineers)1284などのパラレル・インターフェース、USB(Universal Serial Bus)インターフェース、i−Link(IEEE1394)インターフェース、SCSI(Small Computer System Interface)インターフェース、PCカードやメモリ・スティックを受容するメモリ・カード・インターフェース(カード・スロット)などのような、コンピュータの周辺機器接続用の汎用インターフェースを備え、ローカル接続された外部機器との間でプログラムやデータの移動を行なうようにしてもよい。   The interface 25 includes a serial interface such as a RS (Recommended Standard) -232C, a parallel interface such as an IEEE (Institute of Electrical and Electronics Engineers) 1284, a USB interface (Universal Serial I / E), a serial interface, and a serial interface (USB). , A general-purpose interface for connecting peripheral devices of a computer, such as a SCSI (Small Computer System Interface) interface, a memory card interface (card slot) for receiving a PC card or a memory stick, and the like. Between external devices It may be performed to move programs and data.

また、インターフェース25の他の例として、赤外線通信(IrDA)インターフェースを備え、外部機器と無線通信を行なうようにしてもよい。   As another example of the interface 25, an infrared communication (IrDA) interface may be provided to perform wireless communication with an external device.

さらに、制御ユニット20は、無線通信インターフェース26やネットワーク・インターフェース・カード(NIC)27等を含み、Bluetoothのような近接無線データ通信や、IEEE 802.11に代表される無線ネットワーク、あるいはインターネットなどの広域ネットワークを経由して、外部のさまざまなホスト・コンピュータとデータ通信を行なうことができる。   Further, the control unit 20 includes a wireless communication interface 26, a network interface card (NIC) 27, and the like, and performs near field wireless data communication such as Bluetooth, a wireless network represented by IEEE 802.11, or the Internet. Data communication can be performed with various external host computers via the wide area network.

このようなロボット装置1とホスト・コンピュータ間におけるデータ通信により、遠隔のコンピュータ資源を用いて、ロボット装置1の複雑な動作制御を演算したり、リモート・コントロールしたりすることができる。   By such data communication between the robot device 1 and the host computer, complicated operation control of the robot device 1 can be calculated or remotely controlled using a remote computer resource.

B.ロボット装置の行動制御方法
次に、ロボット装置の行動制御方法について詳細に説明する。上述したロボット装置1は、自己及び周囲の状況や、使用者からの指示及び働きかけに応じて自律的に行動し得るようになされている。すなわち、ロボット装置1は、外部刺激及び内部状態に応じて自律的に行動を選択して発現することができる。
B. Next, a behavior control method of the robot device will be described in detail. The above-described robot device 1 is configured to be able to autonomously act according to the situation of itself and the surroundings, and instructions and actions from the user. That is, the robot apparatus 1 can autonomously select and express an action according to the external stimulus and the internal state.

本実施の形態におけるロボット装置の行動制御方法では、ロボット装置は、行動に対する行動価値AL(アクティベーション・レベル:Activation Level)に基づいて選択される行動記述モジュール(後述)に記述された行動を発現される、という形態で行動が生成される。ここでは、特に、ロボット装置の行動制御のうち、自身の内部状態と外部からの刺激に対して発現する行動を選択して出力するまでの行動選択制御について説明するが、先ず、行動選択の基準となる行動価値ALの算出方法について説明する。なお、ロボット装置の制御システムの全体の構成についての詳細は後述する。 In the behavior control method of the robot device according to the present embodiment, the robot device expresses a behavior described in a behavior description module (described later) selected based on a behavior value AL (activation level: Activation Level) for the behavior. Action is generated. Here, among the behavior control of the robot apparatus, particularly, the action selection control until the action expressed in response to the internal state of the robot apparatus and the stimulus from the outside is selected and output will be described. A calculation method of the action value AL will be described. The overall configuration of the control system of the robot device will be described later in detail.

B−1.ロボット装置の行動選択制御
図4には、本実施形態に係るロボット装置の制御システムにおいて、各行動に対応する行動価値を算出してこれに基づき行動出力する処理を行なう行動選択制御システム部分を示している。同図に示すように、行動選択制御システム100は、本能や感情といった数種類の情動を数式モデル化して管理する内部状態管理部91と、外部環境におけるセンサ入力などの外部刺激を認識する外部刺激認識部80と、内部状態及び外部刺激に基づき選択されると行動を出力するモジュールである複数の要素行動132と、各要素行動132の行動価値ALを算出する行動価値算出部120と、行動価値ALに基づいて発現する要素行動132を選択する行動選択部130と、行動発現後の結果を基に学習して行動価値データベースを更新する学習部140を備え、選択された要素行動132が行動を出力することでロボット装置が行動を発現するようになっている。
B-1. Action Selection Control of Robot Apparatus FIG. 4 shows an action selection control system part which performs a process of calculating an action value corresponding to each action and outputting an action based on the action value in the control system of the robot apparatus according to the present embodiment. ing. As shown in the figure, the action selection control system 100 includes an internal state management unit 91 that formulates and manages several types of emotions such as instinct and emotion, and an external stimulus recognition that recognizes external stimuli such as sensor inputs in an external environment. A unit 80, a plurality of elementary actions 132 that output an action when selected based on an internal state and an external stimulus, an action value calculation unit 120 that calculates an action value AL of each elemental action 132, and an action value AL And a learning unit 140 that learns based on the result after the action has occurred and updates the action value database, and the selected element action 132 outputs the action. By doing so, the robot device expresses an action.

要素行動132とは、内部状態及び外部刺激から行動出力を決定するモジュール(以下では、「行動記述モジュール」とも呼ぶ)として構成され、モジュール毎にステートマシンを備え、それ以前の行動(動作)や状況に依存して、センサ入力された外部情報の認識結果を分類し、動作を機体上で発現する。図4では、要素行動A乃至Dのみ図示しているが、これに限定されるものではない。行動記述モジュールは、外部刺激や内部状態に応じた状況判断を行ない、行動価値ALを算出するMonitor機能と、行動実行に伴う状態遷移(ステートマシン)を実現するAction機能とを備えたスキーマ(Schema)として記述されるが、スキーマの詳細については後述する。   The elementary action 132 is configured as a module that determines an action output from an internal state and an external stimulus (hereinafter, also referred to as an “action description module”), includes a state machine for each module, and performs a previous action (action) or Depending on the situation, the recognition result of the external information input by the sensor is classified, and the operation is expressed on the machine. Although FIG. 4 shows only the element actions A to D, the present invention is not limited to this. The behavior description module performs a situation determination according to an external stimulus or an internal state, and calculates a behavior value AL. A Monitor function and a schema (Schema) having an Action function for realizing a state transition (state machine) accompanying the behavior execution. ), But details of the schema will be described later.

各要素行動132は、自身に記述された行動に応じて所定の内部状態及び外部刺激が定義されている。 For each element action 132, a predetermined internal state and an external stimulus are defined according to the action described in the element action 132.

ここで外部刺激とは、外部刺激認識部80におけるロボット装置の知覚情報などであり、例えばカメラから入力された画像に対して処理された色情報、形情報、顔情報等の対象物情報等が挙げられる。具体的には、例えば、色、形、顔、3D一般物体、及びハンドジェスチャー、その他、動き、音声、接触、距離、場所、時間、及びユーザとのインタラクション回数等が挙げられる。   Here, the external stimulus is, for example, perceptual information of the robot apparatus in the external stimulus recognizing unit 80, and includes, for example, target information such as color information, shape information, and face information processed on an image input from a camera. No. Specifically, for example, a color, a shape, a face, a 3D general object, and a hand gesture, as well as a motion, a voice, a contact, a distance, a place, a time, and the number of times of interaction with a user are included.

また、内部状態とは、上述した如く、内部状態管理部91にて管理される本能や感情といった情動であり、例えば、疲れ(FATIGUE)、痛み(PAIN)、栄養状態(NOURISHMENT)、乾き(THURST)、愛情(AFFECTION)、好奇心(CURIOSITY)などが挙げられる。   As described above, the internal state is an emotion such as instinct and emotion managed by the internal state management unit 91. For example, fatigue (FATIGUE), pain (PAIN), nutritional state (NOURISHMENT), and dryness (THURRST) ), Affection (AFFECTION), curiosity (CURIOSITY), and the like.

図4に示すように、各要素行動は、行動出力と、行動出力に応じて定義された内部刺激並びに外部刺激を扱う。外部刺激は、該当する対象物のプロパティとして扱われる。例えば、行動出力が「食べる」である要素行動Aは、外部刺激として対象物の種類(OBJECT_ID)、対象物の大きさ(OBJECT_SIZE)、対象物の距離(OBJECT_DISTANCE)などを扱い、内部状態として「NOURISHMENT」(「栄養状態」)、「FATIGUE」(「疲れ」)などを扱う。このように、要素行動毎に、扱う外部刺激及び内部状態の種類が定義され、該当する外部刺激及び内部状態に対応する行動(要素行動)に対する行動価値が算出される。なお、1つの内部状態、又は外部刺激は、1つの要素行動だけでなく、複数の要素行動に対応付けられていてもよいことは勿論である。   As shown in FIG. 4, each elementary action deals with an action output and an internal stimulus and an external stimulus defined according to the action output. The external stimulus is treated as a property of the target object. For example, the elementary action A whose action output is “eat” handles the type of the object (OBJECT_ID), the size of the object (OBJECT_SIZE), the distance of the object (OBJECT_DISTANCE), and the like as the external stimulus, and the internal state is “ NOURISHMENT "(" nutrition status ")," FATIGUE "(" fatigue "), and the like. In this way, the types of the external stimulus and the internal state to be handled are defined for each elemental action, and the action value for the action (elemental action) corresponding to the relevant external stimulus and the internal state is calculated. It is needless to say that one internal state or external stimulus may be associated with not only one elementary action but also a plurality of elementary actions.

また、内部状態管理部91は、外部刺激並びに例えば自身のバッテリの残量及びモータの回転角などの情報を入力とし、上述のような複数の内部状態に対応した内部状態の値(内部状態ベクトルIntV)を算出し、管理する。具体的には、例えば、内部状態「栄養状態」は、バッテリの残量を基に決定し、内部状態「疲れ」は、消費電力を基に決定することができる。   Further, the internal state management unit 91 receives an external stimulus and information such as the remaining amount of the battery of the own device and the rotation angle of the motor as inputs, and obtains the internal state values (internal state vector) corresponding to the plurality of internal states as described above. IntV) is calculated and managed. Specifically, for example, the internal state “nutrition state” can be determined based on the remaining amount of the battery, and the internal state “tired” can be determined based on the power consumption.

行動価値算出部120は、入力される外部刺激と、行動発現後に変化すると予想される予想内部状態変化が対応付けられた行動価値算出データベース121(後述)を参照し、ある時刻での外部刺激と内部状態とからその時刻での各要素行動A〜Dにおける行動価値ALをそれぞれ算出する。この行動価値算出部120は、図4に示す実施形態では要素行動A〜D毎に個別に設けられるものとするが、行動価値算出部120によりすべての要素行動についての行動価値を算出するように構成してもよい。   The action value calculation unit 120 refers to the action value calculation database 121 (described later) in which the input external stimulus and the expected internal state change expected to change after the action is expressed are associated, and determines the external stimulus at a certain time. The action value AL of each of the elementary actions A to D at that time is calculated from the internal state. In the embodiment shown in FIG. 4, the action value calculation unit 120 is provided individually for each of the element actions A to D, but the action value calculation unit 120 calculates the action values for all the element actions. You may comprise.

ここで言う行動価値ALとは、その要素行動をロボット装置がどれくらいやりたいか(実行優先度)を示すものである。行動選択部130は、候補となる要素行動の中から、それぞれについて算出された行動価値ALに基づいて選択する。そして、選択された要素行動は自身に記述された行動を出力する。すなわち、各要素行動が自身の行動価値算出部120により、行動価値ALの算出を行ない、その行動価値ALが例えば最も高い要素行動を行動選択部130が選択する。行動選択部130における行動価値ALに基づく要素行動の選択方法については、後に詳解する。   The action value AL here indicates how much the robot apparatus wants to perform the element action (execution priority). The action selection unit 130 selects one of the candidate elementary actions based on the action value AL calculated for each of the elementary actions. Then, the selected element action outputs the action described in itself. That is, each elementary action calculates its action value AL by its own action value calculation unit 120, and the action selection unit 130 selects the element action whose action value AL is, for example, the highest. A method of selecting an elementary action based on the action value AL in the action selection unit 130 will be described later in detail.

各要素行動に対する行動価値ALは、現在の各内部状態に対応する各行動に対する欲求値と、現在の各内部状態に基づく満足度と、外部刺激により変化すると予想される内部状態の変化量、すなわち、外部刺激が入力され行動を発現した結果、変化すると予想される内部状態の変化量を示す予想内部状態変化に基づく予想満足度変化とに基づいて算出される。   The action value AL for each elementary action is a desire value for each action corresponding to each current internal state, a degree of satisfaction based on each current internal state, and a change amount of an internal state expected to change due to an external stimulus, ie, Is calculated based on the expected satisfaction degree change based on the expected internal state change indicating the amount of change in the internal state expected to change as a result of the input of the external stimulus and the appearance of the action.

ここで、要素行動における行動価値ALを算出する方法について、ある「種類」、「大きさ」の対象物がある「距離」に存在するとき、行動出力が「食べる」である要素行動Aの行動価値ALを要素行動Aに定義された内部状態「栄養状態」、「疲れ」とから算出する例をとって、具体的に説明する。   Here, regarding the method of calculating the action value AL in the element action, when an object of a certain “kind” and “size” exists at a certain “distance”, the action of the element action A whose action output is “eat” A specific description will be given of an example in which the value AL is calculated from the internal states “nutrition state” and “tired” defined in the element action A.

B−2.行動価値算出部
図5には、行動価値算出部120が内部状態及び外部刺激から行動価値ALを算出する処理の流れを示している。本実施形態では、要素行動毎に、1以上の内部状態の値を成分として有する内部状態ベクトルIntV(Internal Variable)が定義されており、内部状態管理部91から各要素行動に応じた内部状態ベクトルIntVを得る。すなわち、内部状態ベクトルIntVの各成分は、例えば上述した情動などを示す1つの内部状態の値(内部状態パラメータ)を示すもので、内部状態ベクトルIntVが有する各成分に応じた要素行動の行動価値算出に使用される。具体的には、上記行動出力「食べる」を有する要素行動Aは、例えば内部状態ベクトルIntV{IntV_NOURISHMENT「栄養状態」,IntV_FATIGUE「疲れ」}が定義されている。
B-2. Action Value Calculation Unit FIG. 5 shows a flow of processing in which the action value calculation unit 120 calculates the action value AL from the internal state and the external stimulus. In the present embodiment, an internal state vector IntV (Internal Variable) having one or more internal state values as components is defined for each element action, and an internal state vector corresponding to each element action from the internal state management unit 91 is defined. Obtain IntV. That is, each component of the internal state vector IntV indicates a value of one internal state (internal state parameter) indicating, for example, the emotion described above, and the action value of the elemental action corresponding to each component of the internal state vector IntV. Used for calculation. Specifically, for the elementary action A having the action output “eat”, for example, the internal state vector IntVtIntV_NOURISHMENT “nutrition state”, IntV_FATIGUE “tired”} is defined.

また、内部状態毎に、1以上の外部刺激の値を成分として有する外部刺激ベクトルExStml(External Stimulus)が定義されており、外部刺激認識部80から各内部状態、すなわち各要素行動に応じた外部刺激ベクトルExStmlを得る。すなわち、外部刺激ベクトルExStmlの各成分は、例えば上述した対象物の大きさ、対象物の種類、対象物までの距離などの認識情報を示すもので、外部刺激ベクトルExStmlが有する各成分に応じた内部状態値の算出に使用される。具体的には、内部状態IntV_NOURISHMENT「栄養状態」には、例えば、外部刺激ベクトルExStml{OBJECT_ID「対象物の種類」,OBJECT_SIZE「対象物の大きさ」}が定義され、内部状態IntV_FATIGUE「疲れ」には、例えば外部刺激ベクトルExStml{OBJECT_DISTANCE「対象物までの距離」}が定義されている。   In addition, an external stimulus vector ExStml (External Stimulus) having one or more external stimulus values as components is defined for each internal state, and the external stimulus recognition unit 80 outputs an external stimulus corresponding to each internal state, ie, each elemental action. Obtain the stimulus vector ExStml. That is, each component of the external stimulus vector ExStml indicates recognition information such as the size of the target object, the type of the target object, and the distance to the target object, and corresponds to each component of the external stimulus vector ExStml. Used to calculate internal state values. Specifically, for example, an external stimulus vector ExStml {OBJECT_ID “type of object”, OBJECT_SIZE “size of object”} is defined in the internal state IntV_NOURISHMENT “nutrition state”, and the internal state IntV_FATIGUE “fatigue” is defined. Defines, for example, an external stimulus vector ExStml {OBJECT_DISTANCE “distance to object”}.

行動価値算出部120は、この内部状態ベクトルIntV及び外部刺激ベクトルExStmlを入力とし、行動価値ALを算出する。具体的には、行動価値算出部120は、内部状態ベクトルIntVから、該当する要素行動について、どれだけやりたいかを示すモチベーション・ベクトル(MotivationVector)を求める第1の算出部MVと、内部状態ベクトルIntV及び外部刺激ベクトルExStmlから、該当する要素行動をやれるか否か示すリリーシング・ベクトル(ReleasingVector)を求める第2の算出部RVとを有備え、これら2つのベクトルから行動価値ALを算出する。   The action value calculator 120 receives the internal state vector IntV and the external stimulus vector ExStml as inputs, and calculates the action value AL. Specifically, the action value calculation unit 120 calculates, from the internal state vector IntV, a first calculation unit MV for obtaining a motivation vector (MotionVector) indicating how much the corresponding elemental action is to be performed, and an internal state vector IntV. And a second calculating unit RV for obtaining a releasing vector (ReleasingVector) indicating whether or not the corresponding elemental action can be performed from the external stimulus vector ExStml, and the action value AL is calculated from these two vectors.

B−2−1.モチベーション・ベクトルの算出
行動価値ALを算出する一方の要素であるモチベーション・ベクトルは、要素行動に定義されている内部状態ベクトルIntVから、その要素行動に対する欲求を示す欲求値ベクトルInsV(Instinct Variable)として求められる。例えば、行動出力「食べる」を有する要素行動Aは、内部状態ベクトルIntV{IntV_NOURISHMENT,IntV_FATIGUE}を備え、これより、欲求値ベクトルInsV{InsV_NOURISHMENT,InsV_FATIGUE}をモチベーション・ベクトルとして求める。すなわち、欲求値ベクトルInsVは、行動価値ALを算出するためのモチベーション・ベクトルとなる。
B-2-1. The motivation vector, which is one element for calculating the action value AL, is calculated from the internal state vector IntV defined for the element action as a desire value vector InsV (Instinct Variable) indicating a desire for the element action. Desired. For example, the elementary action A having the action output “eating” has an internal state vector IntV {IntV_NOURISHMENT, IntV_FATIGUE}, and thereby obtains a desire value vector InsV {InsV_NOURISHMENT, InsV_FATIGUE} as a motivation vector. That is, the desire value vector InsV is a motivation vector for calculating the action value AL.

欲求値ベクトルInsVの計算方法としては、例えば内部状態ベクトルIntVの値が大きいほど、欲求が満たされているものと判断され欲求値は小さくなり、内部状態ベクトルIntVがある値より大きくなると欲求値は負になるような関数を用いることができる。   As a calculation method of the desire value vector InsV, for example, as the value of the internal state vector IntV is larger, it is determined that the desire is satisfied, and the desire value is smaller. When the internal state vector IntV is larger than a certain value, the desire value is A function that becomes negative can be used.

具体的には、以下の式(1)及び図6に示すような関数が挙げられる。図6には、横軸に内部状態ベクトルIntVの各成分をとり、縦軸に欲求値ベクトルInsVの各成分をとって、以下の式(1)で示される内部状態と欲求値との関係をグラフで示している。   Specifically, there are functions as shown in the following equation (1) and FIG. In FIG. 6, the horizontal axis represents each component of the internal state vector IntV, and the vertical axis represents each component of the desire value vector InsV. This is shown in the graph.

Figure 2004291228
Figure 2004291228

欲求値ベクトルInsVは、上記の式(1)及び図6に示すように、内部状態ベクトルIntVの値のみで決まる。ここでは、内部状態の大きさを0乃至100とし、そのときの欲求値の大きさが−1乃至1となるような関数を示している。例えば、内部状態が8割満たされているときに、欲求値が0となるような内部状態−欲求値曲線L1を設定することで、ロボット装置は、常に内部状態の満足度が8割の状態を維持するように行動を選択するようになる。これにより、例えば、内部状態「栄養状態」(IntV_NORISHMENT)に対応する欲求が「食欲」(InsV_NORISFMENT)である場合、お腹が減っていれば食欲が大きくなり、腹八分目以上では食欲がなくなることを示し、これを利用すればそのような情動を表出するような行動を発現させるようにすることができる。   The desire value vector InsV is determined only by the value of the internal state vector IntV, as shown in the above equation (1) and FIG. Here, a function is shown in which the magnitude of the internal state is 0 to 100 and the magnitude of the desire value at that time is -1 to 1. For example, by setting an internal state-desired value curve L1 such that the desire value becomes 0 when the internal state is satisfied by 80%, the robot apparatus always has a state in which the satisfaction degree of the internal state is 80%. You will choose actions to maintain. This indicates that, for example, when the desire corresponding to the internal state “nutritional state” (IntV_NORISHMENT) is “appetite” (InsV_NORISFMENT), the appetite increases when the stomach is reduced, and the appetite disappears after the eighth minute. By using this, it is possible to express an action that expresses such an emotion.

上記の式(1)における定数A乃至Fを種々変更することで、内部状態毎に異なる欲求値が求まる。例えば、内部状態が0乃至100の間において、欲求値が1乃至0に変化するようにしてもよいし、また、内部状態毎に上記の式(1)とは異なる内部状態−欲求値関数を用意してもよい。   By variously changing the constants A to F in the above equation (1), different desire values are obtained for each internal state. For example, while the internal state is between 0 and 100, the desire value may be changed from 1 to 0. Further, for each internal state, an internal state-desired value function different from the above equation (1) may be defined. May be prepared.

B−2−2.リリーシング・ベクトルの算出
一方、行動価値ALを算出する他方の要素であるリリーシング・ベクトルは、内部状態ベクトルIntVから求められる満足度ベクトルS(Satisfaction)と、外部刺激ベクトルExStmlから求められる予想満足度変化ベクトルとから算出される。
B-2-2. Calculation of Releasing vector Meanwhile, Releasing vector as the other elements for calculating the activation level AL is the satisfaction vector S obtained from the internal state vector IntV (Satisfaction), expected satisfaction obtained from an external stimulus vector ExStml It is calculated from the degree change vector.

先ず、各要素行動に定義されている内部状態と、この内部状態に定義されている外部刺激とから、行動発現後に得ることが予想される内部状態と現在の内部状態との差を示す予想内部状態変化量ベクトルを以下の式(2)により求める。   First, from the internal state defined for each elemental action and the external stimulus defined for this internal state, a predicted internal state indicating the difference between the internal state expected to be obtained after the action is expressed and the current internal state. The state change vector is obtained by the following equation (2).

Figure 2004291228
Figure 2004291228

予想内部状態変化量ベクトルとは、現在の内部状態ベクトルからの、行動発現後に変化すると予想される変化量を示すもので、行動価値算出部120が参照可能な行動価値算出データベース121の行動価値算出データを参照して求めることができる。行動価値算出データは、外部刺激ベクトルと行動発現後に変化すると予想される予想内部状態変化量ベクトルとの対応が記述されたものであり、このデータベースを参照することで、行動価値算出部120は、入力された外部刺激ベクトルに応じた予想内部状態変化量ベクトルを取得することができる。   The expected internal state change amount vector indicates a change amount that is expected to change after the appearance of the action from the current internal state vector, and is used to calculate the action value in the action value calculation database 121 that can be referred to by the action value calculation unit 120. It can be determined by referring to the data. The action value calculation data describes the correspondence between the external stimulus vector and the expected internal state change amount vector expected to change after the action appears, and by referring to this database, the action value calculation unit 120 An expected internal state change vector corresponding to the input external stimulus vector can be obtained.

なお、行動価値算出データベース121の構成についての詳細は後述する。また、本実施形態に係るロボット装置の行動選択制御システム100では、学習部140が、行動発現前に予想する予想内部状態変化を行動発現後に実際に変化した内部状態変化から学習し、行動価値算出データベースを更新する機能を有するが、この学習機能に関しての詳細も後述する。ここでは、先ず、行動価値算出データベースから予想内部状態変化、予想欲求値変化を求める方法について説明する。   The configuration of the action value calculation database 121 will be described later in detail. Further, in the action selection control system 100 of the robot apparatus according to the present embodiment, the learning unit 140 learns a predicted internal state change predicted before the action onset from the internal state change actually changed after the action onset, and calculates the action value. It has a function of updating the database, and details of this learning function will be described later. Here, first, a method of obtaining the expected internal state change and the expected desire value change from the action value calculation database will be described.

行動価値算出データベースに登録される行動価値算出データとしては、例えば図7(a)及び図7(b)に示すものが考えられる。   As the action value calculation data registered in the action value calculation database, for example, data shown in FIGS. 7A and 7B can be considered.

図7(a)に示す例では、内部状態「栄養状態」(「NOURISHMENT」)に関しては、その要素行動の行動出力である「食べる」を発現した結果、対象物の大きさ(OBJECT_SIZE)が大きいほど、内部状態「栄養状態」が満たされる量が大きく、栄養を満たすであろうと予想される場合を示している。同様に、対象物の種類(OBJECT_ID)がOBJECT_ID=0に対応する対象物M1より、OBJECT_ID=1に対応する対象物M2が、また、OBJECT_ID=1に対応する対象物M2より、OBJECT_ID=2に対応する対象物M3の方が内部状態「栄養状態」が満たされる量が大きく、栄養を満たすであろうと予想される場合を示している。 In the example illustrated in FIG. 7A, as for the internal state “nutrition state” (“NOURISHMENT”), the size of the target object (OBJECT_SIZE) is large as a result of expressing the action output of the elementary action “eating”. The more the internal state “nutritional state” is satisfied, the larger the amount that is expected to satisfy the nutrition. Similarly, from the object M1 whose object type (OBJECT_ID) corresponds to OBJECT_ID = 0, to the object M2 corresponding to OBJECT_ID = 1, and from the object M2 corresponding to OBJECT_ID = 1 to OBJECT_ID = 2. This shows a case where the corresponding target object M3 has a larger amount of satisfying the internal state “nutrition state” and is expected to satisfy nutrition.

また、図7(b)に示す例では、内部状態「疲れ」(「FATIGUE」)に関しては、その要素行動の行動出力である「食べる」を発現した結果、対象物の距離「OBJECT_DISTANCE」が大きいほど、内部状態「FATIGUE」が満たされる量が大きく、疲れるであろうと予想される場合を示している。   In addition, in the example illustrated in FIG. 7B, as for the internal state “fatigue” (“FATIGUE”), as a result of expressing the action output “eating” of the elementary action, the distance “OBJECT_DISTANCE” of the target object is large. The more the internal state “FATIGUE” is satisfied, the greater the amount that the internal state “FATIGUE” is satisfied.

すなわち、上述したように、各行動要素に対して内部状態ベクトルIntV及び外部刺激ベクトルExStmlが定義されているので、外部刺激ベクトルExStmlの各成分として対象物の大きさ及び対象物の種類を有するベクトルが供給された場合には、この外部刺激ベクトルExStmlが定義されている内部状態IntV_NOURISHMENT(「栄養状態」)を有する内部状態ベクトルが定義されている要素行動Aの行動結果に対する予想内部状態変化が求められる。同様に、対象物の距離を有するベクトルが供給された場合、この外部刺激ベクトルExStmlが定義されている内部状態IntV_FATIGUE(「疲れ」)を有する内部状態ベクトルが定義されている要素行動Aの行動結果に対する予想内部状態変化が求められる。   That is, as described above, since the internal state vector IntV and the external stimulus vector ExStml are defined for each action element, the vector having the size of the target object and the type of the target object as each component of the external stimulus vector ExStml Is supplied, the expected internal state change with respect to the action result of the element action A in which the internal state vector having the internal state IntV_NOURISHMENT (“nutrition state”) in which the external stimulus vector ExStml is defined is obtained. Can be Similarly, when a vector having the distance to the object is supplied, the action result of the element action A in which the internal state vector having the internal state IntV_FATIGUE (“tired”) in which the external stimulus vector ExStml is defined is defined. Expected internal state change with respect to.

次に、内部状態ベクトルIntVから以下の式(3)に示す満足度ベクトルSを算出し、上記の式(2)に示す予想内部状態変化量ベクトルから、以下の式(4)に示す予想満足度変化ベクトルを求める。   Next, the satisfaction degree vector S shown in the following equation (3) is calculated from the internal state vector IntV, and the expected satisfaction shown in the following equation (4) is calculated from the expected internal state change vector shown in the above equation (2). Find the degree change vector.

Figure 2004291228
Figure 2004291228

Figure 2004291228
Figure 2004291228

内部状態ベクトルIntVに対する満足度ベクトルSの計算法としては、要素行動Aに定義されている内部状態ベクトル{IntV_NOURISHMENT,IntV_FATIGUE}の各成分IntV_NOURISHMENT「栄養状態」及びIntV_FATIGUE「疲れ」に対して、それぞれ下記の式(5−1)及び(5−2)に示すような関数が考えられる。   The calculation method of the satisfaction level vector S for the internal state vector IntV is as follows for each component IntV_NOURISHMENT “nutrition state” and IntV_FATIGUE “fatigue” of the internal state vector {IntV_NOURISHMENT, IntV_FATIGUE} defined in the element action A. A function such as shown in Expressions (5-1) and (5-2) can be considered.

Figure 2004291228
Figure 2004291228

図8及び図9は、上記の式(5−1)及び(5−2)に示す関数をそれぞれグラフで示している。図8では、横軸にIntV_NOURISHMENT「栄養状態」、縦軸に内部状態「栄養状態」に対する満足度S_NOURISHMENTをとり、図9は、横軸にIntV_FATIGUE「疲れ」、縦軸に内部状態「疲れ」に対する満足度S_FATIGUEをとって、内部状態と満足度との関係を示している。   FIG. 8 and FIG. 9 are graphs showing the functions shown in the above equations (5-1) and (5-2), respectively. In FIG. 8, the horizontal axis indicates IntV_NOURISHMENT “nutrition state”, the vertical axis indicates the degree of satisfaction S_NOURISHMENT for the internal state “nutrition state”, and FIG. 9 indicates the horizontal axis indicates IntV_FATIGUE “fatigue” and the vertical axis indicates internal state “fatigue”. The degree of satisfaction S_FATIGUE is taken to show the relationship between the internal state and the degree of satisfaction.

図8に示す関数は、内部状態「栄養状態」の値IntV_NOURISHMENTが0乃至100の値を有し、これに対応する満足度S_NOURISHMENTが0乃至1ですべて正の値を有するものであって、内部状態の値が0から80近傍までは満足度が0から増加し、それ以降は減少して内部状態の値が100で再び満足度0になるような曲線L2を示している。すなわち、内部状態「栄養状態」に関しては、現在(ある時刻)の内部状態「栄養状態」の値(IntV_NOURISHMENT=40)から計算される満足度S_NOURISHMENT、図7(a)によって得られる内部状態「栄養状態」の予想内部状態変化(40から80までの20)に対応する予想満足度変化はともに正である。   The function shown in FIG. 8 is a function in which the value of the internal state “nutritional state” IntV_NOURISHMENT has a value of 0 to 100, and the corresponding degree of satisfaction S_NOURISHMENT has a positive value of 0 to 1, The curve L2 shows that the degree of satisfaction increases from 0 when the value of the state is from 0 to around 80, and thereafter decreases and the value of the internal state becomes 100 and the degree of satisfaction becomes 0 again. That is, as for the internal state “nutrition state”, the satisfaction degree S_NOURISHMENT calculated from the value of the current (a certain time) internal state “nutrition state” (IntV_NOURISHMENT = 40), and the internal state “nutrition” obtained from FIG. The expected satisfaction change corresponding to the expected internal state change of “state” (20 from 40 to 80) is both positive.

また、上述の図5には関数L2のみを示しているが、図9に示すような関数を用いることもできる。すなわち、内部状態「疲れ」の値IntV_FATIGUEが0乃至100の値を有し、これに対応する満足度S_FATIGUEが0乃至−1ですべて負の値をするものであって、内部状態が大きくなるほど、満足度が小さくなるような曲線L3を示す関数である。現在の内部状態「疲れ」の内部状態の値から計算される満足度S_FATIGUEは負であり、図7(a)によって得られる内部状態「疲れ」の予想内部状態変化が正であれば、予想満足度変化ベクトルは負になる。   Although only the function L2 is shown in FIG. 5 described above, a function as shown in FIG. 9 can be used. That is, the value of the internal state “fatigue” IntV_FATIGUE has a value of 0 to 100, and the corresponding degree of satisfaction S_FATIGUE is a negative value from 0 to −1, and the larger the internal state, This is a function indicating a curve L3 that reduces the degree of satisfaction. The degree of satisfaction S_FATIGUE calculated from the value of the internal state of the current internal state “fatigue” is negative, and if the expected internal state change of the internal state “fatigue” obtained by FIG. The degree change vector becomes negative.

上記の式(5−1)、(5−2)で示される関数において、各定数A〜Fを可変に設定することで、さまざまな内部状態に対応して異なる満足度を得るための関数を設定することができる。   In the functions represented by the above equations (5-1) and (5-2), by setting each of the constants A to F variably, a function for obtaining different degrees of satisfaction corresponding to various internal states is obtained. Can be set.

そして、以下の式(6)により、外部刺激に応じて行動発現後にどのくらい内部状態を満足させるかの値を決定することで、行動価値ALを算出するための他方の要素であるリリーシング・ベクトルを求めることができる。   Then, by determining the value of how much the internal state is satisfied after the onset of the action in response to the external stimulus according to the following equation (6), the releasing element, which is the other element for calculating the action value AL, is determined. Can be requested.

Figure 2004291228
Figure 2004291228

ここで、上記の式(6)におけるαが大きいと、リリーシング・ベクトルは行動を発現した結果、どれくらいの満足度が得られるかを示す予想満足度変化、すなわちどれくらい満足度が増えるかを示す値に強く依存し、αが小さいと、予想満足度、すなわち、行動を発現した結果、満足度がどのくらいになるかを示す値に強く依存するという傾向を有することになる。   Here, if α in the above equation (6) is large, the releasing vector indicates an expected satisfaction change indicating how much satisfaction is obtained as a result of expressing the action, that is, how much satisfaction increases. If α is small, α tends to be strongly dependent on the value of expected satisfaction, that is, a value indicating the degree of satisfaction as a result of expressing an action.

B−2−3.行動価値ALの算出
以上のようにして求められたモチベーション・ベクトルと、リリーシング・ベクトルとから、最終的に行動価値ALが下記の式(7)のように算出される。
B-2-3. Calculation of Action Value AL From the motivation vector and the releasing vector obtained as described above, the action value AL is finally calculated as in the following equation (7).

Figure 2004291228
Figure 2004291228

ここで、βが大きいと、行動価値ALは内部状態(欲求値)に強く依存し、βが小さいと外部刺激(予想満足度変化及び予想満足度)に強く依存する傾向を有する。このようにして、内部状態の値(内部状態ベクトルIntV)と外部刺激の値(外部刺激ベクトルExStml)とから欲求値、満足度、予想満足度を計算し、これら欲求値、満足度、予想満足度に基づいて行動価値ALを算出することができる。   Here, if β is large, the action value AL tends to strongly depend on the internal state (desired value), and if β is small, it tends to strongly depend on the external stimulus (expected satisfaction change and expected satisfaction). In this way, the desire value, satisfaction, and expected satisfaction are calculated from the value of the internal state (internal state vector IntV) and the value of the external stimulus (external stimulus vector ExStml), and the desired value, satisfaction, and expected satisfaction are calculated. The action value AL can be calculated based on the degree.

そして、この行動価値ALに基づいて、行動選択部130が行動を選択することにより、例えば同じ外部刺激が入力された場合であっても、そのときの内部状態の値によって異なる行動が選択される。   Then, based on the action value AL, the action selecting unit 130 selects an action, so that, even when the same external stimulus is input, a different action is selected depending on the value of the internal state at that time. .

B−2−4.行動価値算出データベース
次に、行動価値算出データベース121の行動価値算出データの構造及び、データベースの参照方法(予想内部状態変化の求め方)について説明する。
B-2-4. Action Value Calculation Database Next, the structure of the action value calculation data of the action value calculation database 121 and a method of referring to the database (a method of obtaining an expected internal state change) will be described.

上述したように、行動価値算出データは、入力された外部刺激に対して予想内部状態変化量ベクトルを求めるためのデータであり、各要素行動に定義された内部状態に対して、外部刺激ベクトル空間上に代表点(外部刺激の値)が定義されているとともに、その代表点上に予想される内部状態の変化量を示す予想内部状態変化が定義されている。そして、入力された外部刺激が、定義された外部刺激ベクトル空間の代表点上の値であった場合、予想内部状態変化はその代表点上に定義された値となる。 As described above, the action value calculation data is data for obtaining an expected internal state change amount vector for an input external stimulus, and an external stimulus vector space for an internal state defined for each elemental action. A representative point (a value of an external stimulus) is defined above, and an expected internal state change indicating an expected amount of change in the internal state is defined on the representative point. When the input external stimulus is a value on the representative point in the defined external stimulus vector space, the expected internal state change becomes a value defined on the representative point.

図10(a)及び図10(b)は、行動価値算出データ構造の一例を示している。   FIGS. 10A and 10B show an example of an action value calculation data structure.

図10(a)に示すように、内部状態「栄養状態」(「NOURISHMENT」)の予想内部状態変化を求める場合、外部刺激ベクトル空間上の代表点{OBJECT_ID,OBJECT_SIZE}及びこの代表点に対応する予想内部状態変化を例えば以下の表1のように定義しておく。 As shown in FIG. 10 (a), when the expected internal state change of the internal state “nutrition state” (“NOURISHMENT”) is determined, the representative point {OBJECT_ID, OBJECT_SIZE} on the external stimulus vector space and this representative point are corresponded. The expected internal state change is defined, for example, as shown in Table 1 below.

Figure 2004291228
Figure 2004291228

また、図10(b)に示すように、内部状態「疲れ」(「FATIGUE」)の予想内部状態変化量ベクトルを求める場合、外部刺激ベクトル空間上の代表点{OBJECT_DISTANCE}及びこの代表点に対応する予想内部状態変化を例えば以下の表2のように定義しておく。   In addition, as shown in FIG. 10B, when an expected internal state change vector of the internal state “fatigue” (“FATIGUE”) is obtained, a representative point {OBJECT_DISTANCE} on the external stimulus vector space and this representative point The expected internal state change is defined, for example, as shown in Table 2 below.

Figure 2004291228
Figure 2004291228

このように、予想内部状態変化は、外部刺激ベクトル空間上の代表点にのみ定義されているため、外部刺激の種類(例えば、OBJECT_DISTANCEやOBJECT_SIZEなど)によっては、定義された外部刺激ベクトル空間の代表点以外の値が入力されることが考えられる。その場合、予想内部状態変化は、入力された外部刺激の近傍の代表点から線形補間により求めることができる。   As described above, since the expected internal state change is defined only at the representative point on the external stimulus vector space, depending on the type of the external stimulus (for example, OBJECT_DISTANCE or OBJECT_SIZE), the representative internal stimulus vector space is defined. A value other than a point may be input. In that case, the expected internal state change can be obtained by linear interpolation from representative points near the input external stimulus.

図11及び図12には、1次元及び2次元の外部刺激の線形補間方法についてそれぞれ図解している。   11 and 12 illustrate a linear interpolation method of one-dimensional and two-dimensional external stimuli, respectively.

上述の図10(b)に示すように1つの外部刺激(OBJECT_DISTANCE)から予想内部状態変化を求める場合、すなわち、内部状態に対し1つの外部刺激が定義されている場合には、図11に示すように、横軸に外部刺激をとり、縦軸にこの外部刺激に対する予想内部状態変化をとって、外部刺激(OBJECT_DISTANCE)のパラメータである代表点D1及び代表点D2に定義された予想内部状態変化となるような直線L4により、入力される外部刺激Dnの予想内部状態変化量Inを求めることができる。 When the expected internal state change is obtained from one external stimulus (OBJECT_DISTANCE) as shown in FIG. 10 (b), that is, when one external stimulus is defined for the internal state, it is shown in FIG. Thus, the horizontal axis represents the external stimulus, and the vertical axis represents the expected internal state change with respect to the external stimulus. The predicted internal state change defined by the representative point D1 and the representative point D2 which are parameters of the external stimulus (OBJECT_DISTANCE). The expected internal state change amount In of the input external stimulus Dn can be obtained from the straight line L4 as follows.

また、図12に示すように、内部状態に対して入力となる外部刺激が2つの成分から外部刺激ベクトルが定義されている場合、例えば内部状態に対しOBJECT_DISTANCEに加え、さらにOBJECT_WEIGHTという外部刺激が定義されている場合、各外部刺激の所定のパラメータである代表点(D1,W1)、(D1,W2)、(D2,W1)、(D2,W2)が定義され、これに対応する予想内部状態変化を有している場合において、上記の代表点とは異なる外部刺激Enm(Dn,Wn)が入力された場合、例えば先ず、OBJECT_DISTANCE=D1において、OBJECT_WEIGHTの代表点W1並びにW2に定義された予想内部状態変化を通る直線L5を求め、同じく、OBJECT_DISTANCE=D2において、OBJECT_WEIGHTの代表点W1並びにW2に定義された予想内部状態変化を通る直線L6を求める。そして、入力される外部刺激Enmの2つの入力のうち、例えばWnに対応する2つの直線L5及びL6における予想内部状態変化を求め、さらにこの2つの予想内部状態変化を結んだ直線L7を求め、この直線L7において入力される外部刺激Enmの他方の外部刺激Dnに対応する予想内部状態変化量Inmを求めることで、外部刺激Enmに対応した予想内部状態変化を線形補間により求めることができる。   In addition, as shown in FIG. 12, when an external stimulus which is an input to the internal state is defined as an external stimulus vector from two components, for example, an external stimulus called OBJECT_WEIGHT is defined for the internal state in addition to OBJECT_DISTANCE. If so, representative parameters (D1, W1), (D1, W2), (D2, W1), (D2, W2), which are predetermined parameters of each external stimulus, are defined, and the corresponding expected internal state When there is a change, when an external stimulus Enm (Dn, Wn) different from the above representative point is input, for example, first, when OBJECT_DISTANCE = D1, the prediction defined in the representative points W1 and W2 of OBJECT_WEIGHT A straight line L5 passing through the internal state change is obtained, and OBJECT_DISTANCE is similarly obtained. In D2, it obtains a straight line L6 passing through the predicted internal state change defined in the representative point W1 and W2 of OBJECT_WEIGHT. Then, of the two inputs of the external stimulus Enm to be input, for example, the expected internal state change in two straight lines L5 and L6 corresponding to Wn is obtained, and further, a straight line L7 connecting the two expected internal state changes is obtained. By calculating the expected internal state change Inm corresponding to the other external stimulus Dn of the external stimulus Enm input on the straight line L7, the expected internal state change corresponding to the external stimulus Enm can be obtained by linear interpolation.

このように、行動価値算出データベースにはないデータが入力された場合は、線形モデルを使用し線形補間を行って予想内部状態変化を算出することができ、各外部刺激が有するすべての値に対応する予想内部状態変化を持つ必要がなくデータ量を低減することができる。   Thus, when data that is not in the action value calculation database is input, the expected internal state change can be calculated by performing linear interpolation using a linear model, and it corresponds to all the values of each external stimulus. It is not necessary to have the expected internal state change, and the data amount can be reduced.

本実施形態に係る行動価値算出データベースは、図10に示したように、各行動記述モジュールに記述された行動と、外部刺激としての対象物が持つプロパティと、内部状態の組からなるデータ形式により、行動価値算出データを記憶している。   As shown in FIG. 10, the action value calculation database according to the present embodiment has a data format including a set of an action described in each action description module, a property of an object as an external stimulus, and an internal state. , And action value calculation data.

この場合、各行動記述モジュール(スキーマ)に記述された行動をインデックスとして行動価値算出データベース121を検索し、外部刺激としての対象物が持つプロパティから内部状態を決定することができる。   In this case, the action value calculation database 121 is searched using the action described in each action description module (schema) as an index, and the internal state can be determined from the property of the object as the external stimulus.

また、行動価値算出データベース121の他の利用方法として、外部刺激としての対象物が持つあるプロパティをインデックスとして行動価値算出データベース121を検索し、内部状態を決定するようにしてもよい。この場合、行動又は外部刺激としての対象物が持つその他の特性をプロパティに値に設定し又は平均化し、対象物に抽象的な価値を与えることができる。この場合の行動価値算出データベース121の利用方法について、図29を参照しながら説明する。   Further, as another method of using the action value calculation database 121, the action value calculation database 121 may be searched by using a certain property of an object as an external stimulus as an index to determine an internal state. In this case, the behavior or other characteristics of the object as an external stimulus can be set as a value or averaged in the property to give the object an abstract value. A method of using the action value calculation database 121 in this case will be described with reference to FIG.

各要素行動の行動価値データベースから、ある要素行動が注目する対象物のプロパティにおいて、その対象物のプロパティに対する行動に依存しない抽象的な内部状態変化を算出する。例えば、要素行動「震える」の注目する対象物のプロパティを「色」、内部状態を「PAIN」とする。そのとき、その他の要素行動(食べる、蹴る、話す…)で対象物のプロパティ「色」、内部状態「PAIN」に注目しているものの行動価値データベースを用い、色から予想内部状態変化を算出する。   From the action value database of each elemental action, an abstract internal state change that does not depend on the action on the property of the target object is calculated for the property of the target object to which a certain element action pays attention. For example, the property of the target object of the element action “tremble” is “color”, and the internal state is “PAIN”. At that time, the expected internal state change is calculated from the color using the action value database of the other elementary actions (eating, kicking, talking, etc.) focusing on the property “color” and the internal state “PAIN” of the object. .

その際の算出方法としては、COLORに対するdIntV_PAINの平均値ΣdIntV_PAIN(COLOR)/nとする。ある要素行動の行動価値データベースにおいてdIntV_PAINがCOLORに対して一意に決定しない場合、例えば、dIntV_PAIN(COLOR, OBJECT_ID, DISTANCE)などのような場合、OBJECT_IDは代表値、DISTANCEは平均値を用いる。そして、内部状態の値IntVとその予想変化量dIntVから行動価値ALを算出する。   As a calculation method at this time, an average value of dIntV_PAIN to COLORΣdIntV_PAIN (COLOR) / n. If dIntV_PAIN is not uniquely determined for COLOR in the action value database of a certain element action, for example, if dIntV_PAIN (COLOR, OBJECT_ID, DISTANCE) or the like, OBJECT_ID uses a representative value, and DISTANCE uses an average value. Then, the action value AL is calculated from the internal state value IntV and the expected change amount dIntV.

このような行動価値ALの算出を行なう結果、「赤いボールを蹴ると痛くなる」、「赤い人に話しかけると痛くなる」といった行動価値データベースを持っている場合には、赤い色を見ただけで「PAINが想起され震える」といったことが実現され、行動の種類に依らない対象物のプロパティの抽象的な価値(内部状態変化)を決定することができる。   As a result of calculating such a behavioral value AL, if you have a behavioral value database such as "I get hurt by kicking a red ball" or "I get hurt by talking to a red person", just looking at the red color "PAIN is recalled and trembles" is realized, and the abstract value (internal state change) of the property of the object irrespective of the type of action can be determined.

B−2−5.行動選択
従来の行動規範型ロボットの行動選択方法は、ヒューリスティックな方法により活性度を決定し、その活性どの最大値を与える行動モジュールを選択し、行動の発現を行なうものが主流である。しかし、この活性度の計算方法が人手によるものであり、且つこの計算を以下にうまく設定するかによって、自立型ロボットの行動が適切なものになったり、不適切なものになったりする。
B-2-5. Action Selection The conventional action selection method for a behavior-based robot is to determine the activity by a heuristic method, select the action module that gives the maximum value of the activity, and express the action. However, depending on whether the calculation method of the activity is manually and the calculation is set well below, the behavior of the self-supporting robot may be appropriate or inappropriate.

これに対し、本実施形態では、内部状態の変化を外部刺激から連想することで、適切な行動選択を新しい外部刺激に対して行なう、という行動規範型システムを構成している。さらに、連想した内部状態の変化を各行動モジュールにおいて記憶し、これを快不快すなわち内部状態に基づく満足度の評価を用いて行動価値ALとして数値化し、それを強化学習の価値関数とみなして、最大値選択あるいはSoftMax選択による強化学習のフレームワークで適切な行動選択がなされることを実現する。   On the other hand, in the present embodiment, a behavior norm type system is configured in which an appropriate action is selected for a new external stimulus by associating a change in the internal state with the external stimulus. Further, the associated change in the internal state is stored in each action module, and this is converted into a numerical value as an action value AL using the evaluation of pleasure or discomfort, that is, the degree of satisfaction based on the internal state, and it is regarded as a value function of reinforcement learning. An appropriate action selection is realized in the framework of reinforcement learning based on maximum value selection or SoftMax selection.

本実施形態では、各要素行動が自身の行動価値算出部120により、行動価値ALの算出を行なう。   In the present embodiment, each elementary behavior calculates its behavioral value AL by its own behavioral value calculation unit 120.

上述したように、行動価値算出データベース121では、外部刺激ESが入力されたことに応答してそれぞれの要素行動Biを実行したときの予想内部状態変化量ΔI(ES,Bi)を外部刺激ESと関連付けて記憶している。そして、要素行動Biによって、予想内部状態変化量ΔIに基づく内部状態I(ΔI)が想起され、そのときの満足度pを内部状態から評価することができる(すなわち、p=f(I+ΔI))。ここで、満足度は、価値関数、あるいは要素行動Biに対する報酬若しくは期待値と捉えることができ、本明細書では行動価値ALとして取り扱っている。 As described above, in the action value calculation database 121, the expected internal state change amount ΔI (ES, B i ) when each of the elementary actions B i is executed in response to the input of the external stimulus ES is determined by the external stimulus. It is stored in association with the ES. Then, the elementary action B i, is recalled internal state I based on predicted internal state variation [Delta] I ([Delta] I) is able to evaluate the satisfaction degree p at that time from the internal state (i.e., p = f (I + [Delta] I) ). Here, the degree of satisfaction can be regarded as a value function or a reward or an expected value for the elementary action B i , and is treated as an action value AL in this specification.

このようにして、候補となるすべての要素行動Biについて行動価値ALを算出し、行動選択部130では、算出された行動価値ALに基づいて、候補なる要素行動の中から発現すべきものを選択する。例えば同じ外部刺激が入力された場合であっても、そのときの内部状態の値によって異なる行動が選択される。 In this way, the action value AL is calculated for all of the candidate elementary actions B i , and the action selection unit 130 selects an action to be expressed from the candidate elementary actions based on the calculated action value AL. I do. For example, even when the same external stimulus is input, different actions are selected depending on the value of the internal state at that time.

行動選択部130により例えばk番目の要素行動Bkが選択され、実際に発現される。このとき、システムでは、要素行動Bkを実際に発現し手得られる現実の内部状態の変化量ΔIを得ることができるが、この実測値に基づいて、行動価値算出データベース121内における該当する予想内部状態変化量ΔIを更新、すなわち学習することができる。この行動価値算出データベースの学習作用により、すべての行動について適当な行動価値を算出する関数を設定することが可能となる。 For example, the k-th elementary action B k is selected by the action selecting unit 130, and is actually expressed. At this time, the system can obtain the change amount ΔI of the actual internal state obtained by actually expressing the elementary action B k , but based on the actually measured value, the corresponding expected value in the action value calculation database 121 is obtained. The internal state change amount ΔI can be updated, that is, learned. By the learning action of the action value calculation database, it is possible to set a function for calculating an appropriate action value for all actions.

行動価値算出データベースの学習については後述に譲る。この項では、行動選択部130による選択方法について説明する。 Learning of the action value calculation database will be described later. In this section, a selection method by the action selection unit 130 will be described.

算出された行動価値ALに基づいて行動選択部130が各要素行動を選択する。その行動選択のポリシーとして、本発明者らは例えば以下のものを考えている。   The action selecting unit 130 selects each element action based on the calculated action value AL. The present inventors consider, for example, the following as the action selection policy.

(1)Greedy
行動選択部は候補である要素行動のうち行動価値が最大の要素行動を常に選択する。
(1) Greedy
The action selection unit always selects the element action having the highest action value among the candidate element actions.

(2)Random
行動選択部130は、行動価値によらず無作為に要素行動を選択する。この結果行動選択が探索的になり、行動価値算出データベース121を更新する可能性が大きくなる。
(2) Random
The action selecting unit 130 selects an element action at random regardless of the action value. As a result, the action selection becomes exploratory, and the possibility of updating the action value calculation database 121 increases.

(3)SoftMax
行動選択部130は、算出された行動価値ALに応じた確率に従って、候補である行動の中から選択する。具体的には、候補である要素行動のうち、行動価値が大きい要素行動をより大きい確率で選択する。例えば、要素行動iの行動価値をALiとしたとき、その選択確率P(i)は以下の式により計算される。
(3) SoftMax
The action selecting unit 130 selects from the candidate actions according to the probability according to the calculated action value AL. Specifically, among the candidate elementary actions, an elementary action having a high action value is selected with a higher probability. For example, when the action value of an element action i is ALi, the selection probability P (i) is calculated by the following equation.

Figure 2004291228
Figure 2004291228

但し、上式において、Tはボルツマン温度と呼ばれるパラメータであり、SoftMaxによる選択方法の特性を調節することができる。すなわち、上式は、上記のGreedyに対しRandom性を与えた形であり、ボルツマン温度Tはランダム性の尺度となる。Tが十分小さいとき行動選択ポリシーはGreedyになり、十分大きいときRandomとなる(図30を参照のこと)。   However, in the above equation, T is a parameter called Boltzmann temperature, and the characteristics of the selection method using SoftMax can be adjusted. That is, the above equation is a form in which Randomness is given to the above-mentioned Greedy, and the Boltzmann temperature T is a measure of randomness. When T is sufficiently small, the action selection policy becomes Greedy, and when T is sufficiently large, it becomes Random (see FIG. 30).

但し、上記(1)〜(3)において、対象物が存在しないと成立しない要素行動(例えば、サッカーボールに対するシュート)は行動選択部の選択肢から除外する。   However, in the above (1) to (3), elementary actions (for example, a shot against a soccer ball) that are not established unless the target object is present are excluded from the options of the action selection unit.

B−3.行動価値算出データベースの学習
次に、このような行動価値算出データの予想内部状態変化量ベクトルを、行動発現後の内部状態変化ベクトルから学習する学習方法について説明する。
B-3. Learning of Action Value Calculation Database Next, a learning method for learning the expected internal state change vector of such action value calculation data from the internal state change vector after the occurrence of the action will be described.

上述したように、本実施形態に係るロボット装置は学習機能を有するため、行動価値算出データベースがユーザとのインタラクションや、外部環境に応じて随時更新される。したがって、ロボット装置の学習結果によっては、同じ外部刺激を受けても異なる行動を発現するなどユーザを飽きさせない行動生成が実現される。 As described above, since the robot apparatus according to the present embodiment has a learning function, the action value calculation database is updated at any time according to the interaction with the user and the external environment. Therefore, depending on the learning result of the robot device, action generation that does not tire the user, such as expressing different actions even when receiving the same external stimulus, is realized.

このような行動価値算出データの学習を行なうためには教師信号が必要である。本実施形態では、行動を発現した結果から得られる実際の内部状態変化を教師信号として、外部刺激に対応する予想内部状態変化を学習する。そこで、前述の図4に示したように、行動選択制御システム100は、行動価値算出部120に接続された学習部140を備えている。 To learn such action value calculation data, a teacher signal is required. In the present embodiment, an expected internal state change corresponding to an external stimulus is learned using an actual internal state change obtained from the result of the action as a teacher signal. Therefore, as shown in FIG. 4 described above, the action selection control system 100 includes a learning unit 140 connected to the action value calculation unit 120.

図13には、外部刺激が入力されてから行動価値算出データベースの学習を行なうまでの流れを示している。図5を参照しながら説明したように、行動選択部130は、行動価値算出データベース121を参照して、予想した予測内部状態変化ベクトルを生徒信号とし、行動価値ALを算出し、この値に基づき、例えば行動価値ALが最も大きい要素行動を選択する。選択された要素行動は、行動を出力し、ロボット装置は行動を発現する。   FIG. 13 shows a flow from the input of the external stimulus to the learning of the action value calculation database. As described with reference to FIG. 5, the action selecting unit 130 refers to the action value calculation database 121, uses the predicted internal state change vector as the student signal, calculates the action value AL, and based on this value, For example, the element action having the highest action value AL is selected. The selected element action outputs an action, and the robot device expresses the action.

ロボット装置が実際に行動を発現した結果、図4に示す内部状態管理部91は、自身の内部状態を変化させる。すなわち、例えば行動発現後の時間経過に応じて内部状態を変更したり、行動の結果に応じて内部状態を変更したりする。具体的には、例えば、上述したように、内部状態「栄養状態」はバッテリの残量を基に決定され、内部状態「疲れ」は消費電力を基に決定されるものとすると、行動を発現した結果、バッテリの残量が減少することで内部状態「栄養状態」も減少し、また、行動を発現することにより消費された消費電力量の大きさに比例して内部状態「疲れ」が増大する。   As a result of the robot apparatus actually exhibiting an action, the internal state management unit 91 shown in FIG. 4 changes its own internal state. That is, for example, the internal state is changed in accordance with the lapse of time after the action has appeared, or the internal state is changed in accordance with the result of the action. Specifically, for example, as described above, if the internal state “nutrition state” is determined based on the remaining amount of the battery, and the internal state “tired” is determined based on the power consumption, the behavior is expressed. As a result, the internal state “nutrition state” also decreases due to a decrease in the remaining battery power, and the internal state “fatigue” increases in proportion to the amount of power consumed by expressing behavior. I do.

こうして実際に行動を発現した結果、ロボット装置の内部状態が変化し、実際の行動発現前後の内部状態の変化量を求めることができる。そして、図13に示すように、行動発現後に得られた内部状態変化ベクトルdIntVが教師信号となり、学習部140にて行動発現前に予想される予想内部状態変化量ベクトルの学習が行なわれ、行動価値算出データベース121が学習に応じて更新される。   As a result of actually expressing the behavior in this manner, the internal state of the robot device changes, and the amount of change in the internal state before and after the actual behavior is expressed can be obtained. Then, as shown in FIG. 13, the internal state change vector dIntV obtained after the appearance of the action becomes a teacher signal, and the learning unit 140 learns an expected internal state change vector predicted before the appearance of the action. The value calculation database 121 is updated according to the learning.

ここで入力された外部刺激が代表点上の値であるか否かで学習方法が異なる。先ず、ある選択された要素行動において、行動価値を算出するにあたって必要とした外部刺激が、代表点上の値であった場合、下記式(8)によって実際の内部状態変化量を基に代表点上の予想内部状態変化を更新する。   The learning method differs depending on whether or not the external stimulus input here is a value on the representative point. First, when the external stimulus required for calculating the action value in a certain selected elemental action is a value on the representative point, the representative point is calculated based on the actual internal state change amount by the following equation (8). Update the expected internal state change above.

Figure 2004291228
Figure 2004291228

また、ある選択された要素行動において、行動価値を算出するに際して必要とした外部刺激が代表点以外の値の場合、外部刺激近傍の代表点、すなわち線形補間に使用した代表点における予想内部状態変化が学習対象となる。各外部刺激について、外部刺激と代表点までの距離の比が上記式(8)に乗じられ、予想内部状態変化を更新する。   If the external stimulus required for calculating the action value is a value other than the representative point in a selected elemental action, the expected internal state change at the representative point near the external stimulus, that is, at the representative point used for linear interpolation, Become learning targets. For each external stimulus, the ratio of the distance between the external stimulus and the representative point is multiplied by equation (8) to update the expected internal state change.

図14及び図15には、1次元及び2次元外部刺激の予想内部状態変化の更新例をそれぞれ示している。図14に示すように、外部刺激Dnが入力され、外部刺激Dnが代表点上にない場合は、上述したように、外部刺激Dn近傍の代表点D1,D2を使用して線形補間されることで行動発現前の予想内部状態変化Inが求められる。そして、行動発現後に、実際の内部状態変化量(dIntV_Fatigure)が求められ、代表点D1,D2と外部刺激Dnとの間の距離と学習率γとから、代表点D1,D2における予想内部状態変化の学習が行われ、下記式(9−1)及び(9−2)に従って夫々代表点D1及びD2の予想内部状態変化が更新される。   14 and 15 show examples of updating expected internal state changes of one-dimensional and two-dimensional external stimuli, respectively. As shown in FIG. 14, when the external stimulus Dn is input and the external stimulus Dn is not on the representative point, linear interpolation is performed using the representative points D1 and D2 near the external stimulus Dn as described above. , An expected internal state change In before the action is expressed is obtained. Then, after the action is manifested, the actual internal state change amount (dIntV_Fatigue) is obtained, and the expected internal state change at the representative points D1 and D2 is obtained from the distance between the representative points D1 and D2 and the external stimulus Dn and the learning rate γ. Is performed, and the expected internal state changes of the representative points D1 and D2 are updated according to the following equations (9-1) and (9-2).

Figure 2004291228
Figure 2004291228

また、2つの外部刺激が入力される場合には、図15に示したように、線形補間により行動発現前の外部刺激Enm(Dn,Wn)に対応する予想内部状態変化量Inmを求める際に使用した、入力される外部刺激近傍の代表点(D1,W1)(D1,W2)、(D2,W1)、(D2,W2)に対応する予想内部状態変化が、以下の式(10−1)乃至(10−4)により学習され更新される。すなわち、行動発現後に求められる実際の内部状態変化ベクトル、代表点と外部刺激との距離及び学習率γにより、学習が行なわれ、各代表点に対応する予想内部状態変化が更新される。   When two external stimuli are input, as shown in FIG. 15, when the expected internal state change amount Inm corresponding to the external stimulus Enm (Dn, Wn) before the action is expressed is determined by linear interpolation. The estimated internal state changes corresponding to the used representative points (D1, W1) (D1, W2), (D2, W1), (D2, W2) near the external stimulus to be input are represented by the following equation (10-1). ) To (10-4) are learned and updated. That is, learning is performed based on the actual internal state change vector obtained after the action is expressed, the distance between the representative point and the external stimulus, and the learning rate γ, and the expected internal state change corresponding to each representative point is updated.

Figure 2004291228
Figure 2004291228

B−4.行動価値算出方法及び行動価値算出データベースの学習方法
次に、図5に示した行動価値算出部120における行動価値算出方法、及び図13に示した学習部140により発現された行動に応じて行動価値算出データベースを更新する方法について、図16及び図17に示すフローチャートを参照しながら説明する。
B-4. Action Value Calculation Method and Learning Method of Action Value Calculation Database Next, the action value calculation method in the action value calculation section 120 shown in FIG. 5, and the action value according to the action expressed by the learning section 140 shown in FIG. A method of updating the calculation database will be described with reference to flowcharts shown in FIGS.

図16に示すように、先ず、図4に示す外部刺激認識部80により外部刺激が認識されると、これが行動価値算出部120に供給される。この際、例えば外部刺激認識部80からの通知により、内部状態管理部91から各内部状態が供給されるようになされている(ステップS1)。   As shown in FIG. 16, first, when the external stimulus is recognized by the external stimulus recognition unit 80 shown in FIG. 4, this is supplied to the action value calculation unit 120. At this time, each internal state is supplied from the internal state management unit 91 by, for example, a notification from the external stimulus recognition unit 80 (step S1).

次に、上述したように、供給された各内部状態から、例えば上記の式(1)などの関数を使用して対応する欲求値を算出することで、内部状態ベクトルIntVからモチベーション・ベクトルとなる欲求値ベクトルを算出する(ステップS2)。   Next, as described above, a corresponding desire value is calculated from each of the supplied internal states using a function such as the above-described equation (1), so that the internal state vector IntV becomes a motivation vector. A desire value vector is calculated (step S2).

また、行動価値算出部120は、供給された各内部状態から上記の式(5−1)、(5−2)などの関数を使用して対応する満足度を算出することで、内部状態ベクトルIntVから、満足度ベクトルSを算出する(ステップS3)。   Further, the action value calculating unit 120 calculates a corresponding degree of satisfaction from each of the supplied internal states using a function such as Expressions (5-1) and (5-2), thereby obtaining an internal state vector. A satisfaction level vector S is calculated from IntV (step S3).

一方、供給された外部刺激(外部刺激ベクトル)から、上述したように、行動を発現した結果、得られると予想される予想内部状態変化を求める(ステップS4)。そして、ステップS3と同様の関数を用いて、この予想内部状態変化に対応する予想満足度変化を求め(ステップS5)、得られた予想満足度変化と、ステップS3で求めた満足度ベクトルとから上記式(6)により、リリーシング・ベクトルを算出する(ステップS6)。   On the other hand, from the supplied external stimulus (external stimulus vector), an expected internal state change expected to be obtained as a result of the action as described above is obtained (step S4). Then, using the same function as in step S3, the expected satisfaction change corresponding to the expected internal state change is obtained (step S5), and the expected satisfaction change obtained and the satisfaction vector obtained in step S3 are determined. A releasing vector is calculated by the above equation (6) (step S6).

最後に、ステップS2にて求めたモチベーション・ベクトルと、ステップS6にて、求めたリリーシング・ベクトルとから、上記の式(7)より行動価値ALを算出する(ステップS7)。   Finally, the action value AL is calculated from the above equation (7) from the motivation vector obtained in step S2 and the releasing vector obtained in step S6 (step S7).

なお、上記のステップS1乃至ステップS7では、外部刺激を認識する毎に行動価値算出部120において行動価値ALの算出を行なうものとして説明したが、例えば所定のタイミングで行動価値を算出するようにしてもよい。   In the above-described steps S1 to S7, it has been described that the action value AL is calculated by the action value calculation unit 120 every time the external stimulus is recognized. However, for example, the action value is calculated at a predetermined timing. Is also good.

その後、ステップS7にて算出された行動価値ALに基づいて、図17に示すように、行動選択部130がすべての要素行動に対する行動価値算出結果をモニタし、例えば最も行動価値ALが高い要素行動を選択することで、当該要素行動から行動が出力される(ステップS8)。要素行動の選択には、上述したように、Greedyの他に、Random、SoftMaxといった手法を採り入れることができる。   Thereafter, based on the action value AL calculated in step S7, as shown in FIG. 17, the action selection unit 130 monitors the action value calculation results for all the element actions, for example, the element action with the highest action value AL. Is selected, the action is output from the element action (step S8). As described above, in addition to Greedy, a method such as Random or SoftMax can be adopted for selecting an element action.

ロボット装置は、行動を発現することによって例えばバッテリの残量が変化し、これに基づき算出される内部状態が行動前に比べて変化する。また、行動を発現した際に使用された消費電力などに基づいて算出される内部状態が行動発現前に比べて変化する。図4に示した内部状態管理部91は、このような行動前後の内部状態の変化を算出し、学習部140に供給する(ステップS9)。学習部140は、上述したように、行動前後の内部状態の実際の変化と、行動価値算出データベースに保存されている予想内部状態変化とから、上記の式(9−1)、(9−2)又は(10−1)乃至(10−4)により、新しく予想内部状態変化を算出し、行動価値算出データベースを更新する(ステップS10)。   In the robot device, for example, the behavior of the robot causes the remaining amount of the battery to change, and the internal state calculated based on the remaining power changes compared to before the behavior. In addition, the internal state calculated based on the power consumption or the like used when the behavior is expressed changes as compared to before the behavior was expressed. The internal state management unit 91 illustrated in FIG. 4 calculates such a change in the internal state before and after the action, and supplies the change to the learning unit 140 (Step S9). As described above, the learning unit 140 determines, from the actual change in the internal state before and after the action and the expected internal state change stored in the action value calculation database, the equations (9-1) and (9-2). ) Or (10-1) to (10-4), a new expected internal state change is calculated, and the action value calculation database is updated (step S10).

C.ロボット装置の制御システム
この項では、行動価値ALを算出して行動を出力する処理を行なう行動選択制御システムをロボット装置の制御システムに適用した具体例について詳細に説明する。
C. Robot System Control System In this section, a specific example in which a behavior selection control system for calculating a behavior value AL and outputting a behavior is applied to a robot system control system will be described in detail.

図18には、上述の行動選択制御システム100を含む制御システム10の機能構成を模式的に示している。図示のロボット装置1は、上述したように、外部刺激の認識結果や内部状態の変化に応じて、行動制御を行なうことができるものである。さらには、長期記憶機能を備え、外部刺激から内部状態の変化を連想記憶することにより、外部刺激の認識結果や内部状態の変化に応じて行動制御を行なうことができる。 FIG. 18 schematically shows a functional configuration of the control system 10 including the above-described action selection control system 100. As described above, the illustrated robot apparatus 1 can perform behavior control in accordance with the recognition result of an external stimulus and a change in an internal state. Furthermore, by providing a long-term memory function and associatively storing a change in an internal state from an external stimulus, behavior control can be performed according to a recognition result of the external stimulus or a change in the internal state.

すなわち、上述したように、例えば、カメラ15から入力された画像に対して処理された色情報、形情報、顔情報等であり、より具体的には、色、形、顔、3D一般物体、ハンドジェスチャー、動き、音声、接触、匂い、味等の構成要素からなる外部刺激と、ロボット装置の身体に基づいた本能や感情等の情動を指す内部状態とに応じて行動価値ALを算出し、行動を選択(生成)し、発現する。   That is, as described above, for example, color information, shape information, face information, and the like processed on an image input from the camera 15, and more specifically, color, shape, face, 3D general object, The action value AL is calculated according to an external stimulus composed of components such as hand gesture, movement, voice, contact, smell, and taste, and an internal state indicating emotions such as instinct and emotion based on the body of the robot device, Select (generate) an action and express it.

内部状態の本能的要素は、例えば、疲れ(fatigue)、熱あるいは体内温度(temperature)、痛み(pain)、食欲あるいは飢え(hunger)、乾き(thirst)、愛情(affection)、好奇心(curiosity)、排泄(elimination)又は性欲(sexual)のうちの少なくとも1つである。また、情動的要素は、幸せ(happiness)、悲しみ(sadness)、怒り(anger)、驚き(surprise)、嫌悪(disgust)、恐れ(fear)、苛立ち(frustration)、退屈(boredom)、睡眠(somnolence)、社交性(gregariousness)、根気(patience)、緊張(tense)、リラックス(relaxed)、警戒(alertness)、罪(guilt)、悪意(spite)、誠実さ(loyalty)、服従性(submission)又は嫉妬(jealousy)などが挙げられる。   The instinctive elements of the internal state include, for example, fatigue, heat or temperature, pain, appetite or hunger, third, affection, curiosity. , Excretion or sexual desire. The emotional elements include happiness, sadness, anger, surprise, disgust, fear, frustration, boredom, and sleepiness. ), Sociability (greariousness), patience, tension, relaxed, alertness, Guilt, malice (spite), loyalty, submission or Jealousy and the like.

図示の制御システム10には、オブジェクト指向プログラミングを採り入れて実装することができる。この場合、各ソフトウェアは、データとそのデータに対する処理手続きとを一体化させた「オブジェクト」というモジュール単位で扱われる。また、各オブジェクトは、メッセージ通信と共有メモリを使ったオブジェクト間通信方法によりデータの受け渡しとInvokeを行なうことができる。   The illustrated control system 10 can be implemented using object-oriented programming. In this case, each software is handled in a module unit called an “object” that integrates data and a processing procedure for the data. Further, each object can perform data transfer and Invoke by message communication and an inter-object communication method using a shared memory.

本実施形態に係る行動制御システム10は、外部環境(Environments)70を認識するために、視覚認識機能部81、聴覚認識機能部82、及び接触認識機能部83などからなる機能モジュールである上述の図4に示す外部刺激認識部80を備えている。   The behavior control system 10 according to the present embodiment is a functional module including a visual recognition function unit 81, a hearing recognition function unit 82, a contact recognition function unit 83, and the like, in order to recognize an external environment (Environments) 70. An external stimulus recognition unit 80 shown in FIG. 4 is provided.

視覚認識機能部(Video)81は、例えば、CCDカメラのような画像入力装置を介して入力された撮影画像を基に、顔認識や色認識等の画像認識処理や特徴抽出を行なう。   The visual recognition function unit (Video) 81 performs image recognition processing such as face recognition and color recognition and feature extraction based on a captured image input via an image input device such as a CCD camera, for example.

聴覚認識機能部(Audio)82は、マイク等の音声入力装置を介して入力される音声データを音声認識して、特徴抽出したり、単語セット(テキスト)認識を行なったりする。   The auditory recognition function unit (Audio) 82 performs voice recognition of voice data input via a voice input device such as a microphone to extract features or perform word set (text) recognition.

接触認識機能部(Tactile)83は、例えば機体の頭部等に内蔵された接触センサによるセンサ信号を認識して、「なでられた」とか「叩かれた」という外部刺激を認識する。   The contact recognition function unit (Tactile) 83 recognizes a sensor signal from a contact sensor built in, for example, the head of the body, and recognizes an external stimulus such as “patched” or “hit”.

内部状態管理部(ISM:Internal Status Manager)91は、本能や感情といった数種類の情動を数式モデル化して管理する感情・本能モデルを有しており、上述の視覚認識機能部81、聴覚認識機能部82、及び接触認識機能部83によって認識された外部刺激(ES:ExternalStimula)に応じてロボット装置1の本能や情動といった内部状態を管理する。   An internal state manager (ISM: Internal Status Manager) 91 has an emotion / instinct model for managing several types of emotions such as instinct and emotion by mathematical modeling, and includes the above-described visual recognition function section 81 and auditory recognition function section. The internal state such as instinct and emotion of the robot apparatus 1 is managed in accordance with the external stimulus (ES: External Stimula) recognized by the touch recognition function unit 83 and the touch recognition function unit 83.

この感情・本能モデルは、それぞれ認識結果と行動履歴を入力に持ち、夫々感情値と本能値を管理している。行動モデルは、これら感情値や本能値を参照することができる。   The emotion / instinct model has a recognition result and an action history as inputs, and manages emotion values and instinct values, respectively. The behavior model can refer to these emotion values and instinct values.

また、外部刺激の認識結果や内部状態の変化に応じて行動制御を行なうために、時間の経過とともに失われる短期的な記憶を行なう短期記憶部(STM:Short Term Memory)92と、情報を比較的長期間保持するための長期記憶部(LTM:Long Term Memory)93を備えている。短期記憶と長期記憶という記憶メカニズムの分類は神経心理学に依拠する。   In addition, in order to perform action control according to a recognition result of an external stimulus or a change in an internal state, information is compared with a short term memory (STM: Short Term Memory) 92 that stores a short term memory that is lost over time. It has a long term memory (LTM: Long Term Memory) 93 for holding for a long period of time. The classification of short-term memory and long-term memory depends on neuropsychology.

短期記憶部92は、上述の視覚認識機能部81、聴覚認識機能部82及び接触認識機能部83によって外部環境から認識されたターゲットやイベントを短期間保持する機能モジュールである。例えば、図2に示すカメラ15からの入力画像を約15秒程度の短い期間だけ記憶する。   The short-term storage unit 92 is a functional module that holds a target or an event recognized from the external environment by the visual recognition function unit 81, the auditory recognition function unit 82, and the contact recognition function unit 83 for a short period of time. For example, the input image from the camera 15 shown in FIG. 2 is stored for a short period of about 15 seconds.

長期記憶部93は、物の名前等学習により得られた情報を長期間保持するために使用される。長期記憶部93は、例えば、ある行動記述モジュールにおいて外部刺激から内部状態の変化を連想記憶することができる。   The long-term storage unit 93 is used to hold information obtained by learning, such as the name of an object, for a long time. For example, the long-term storage unit 93 can associate and store a change in an internal state from an external stimulus in a certain behavior description module.

また、本ロボット装置1の行動制御は、反射行動部(Reflexive Situated Behaviors Layer)103によって実現される「反射行動」と、状況依存行動階層(SBL:Situated Behaviors Layer)102によって実現される「状況依存行動」と、熟考行動階層(Deliberative Layer)101によって実現される「熟考行動」に大別される。   In addition, the behavior control of the robot apparatus 1 is performed by a “reflexive behavior layer 103” and a “reflex behavior” realized by a reflexive behavioral behavior layer 103, and by a “situation-dependent behavior layer (SBL)”. Behavior "and" contemplation behavior "realized by the Deliberative Layer 101.

反射行動部103は、上述の視覚認識機能部81、聴覚認識機能部82、及び接触認識機能部83によって認識された外部刺激に応じて反射的な機体動作を実現する機能モジュールである。反射行動とは、基本的に、センサ入力された外部情報の認識結果を直接受けて、これを分類して、出力行動を直接決定する行動のことである。例えば、人間の顔を追いかけたり、うなずいたりといった振る舞いは反射行動として実装することが好ましい。   The reflex action unit 103 is a functional module that implements a reflexive body operation in response to an external stimulus recognized by the visual recognition function unit 81, the auditory recognition function unit 82, and the contact recognition function unit 83 described above. The reflex action is basically an action of directly receiving a recognition result of external information input from a sensor, classifying the result, and directly determining an output action. For example, it is preferable to implement a behavior such as chasing or nodding a human face as a reflex action.

状況依存行動階層102は、短期記憶部92及び長期記憶部93の記憶内容や、内部状態管理部91によって管理される内部状態を基に、ロボット装置1が現在置かれている状況に即応した行動を制御する。   The situation-dependent behavior hierarchy 102 is based on the storage contents of the short-term storage unit 92 and the long-term storage unit 93 and the internal state managed by the internal state management unit 91, and the behavior corresponding to the situation where the robot apparatus 1 is currently placed. Control.

この状況依存行動階層102は、各行動(要素行動)毎にステートマシンを用意しており、それ以前の行動や状況に依存して、センサ入力された外部情報の認識結果を分類して、行動を機体上で発現する。また、状況依存行動階層102は、内部状態をある範囲に保つための行動(「ホメオスタシス行動」とも呼ぶ)も実現し、内部状態が指定した範囲内を越えた場合には、その内部状態を当該範囲内に戻すための行動が出現し易くなるようにその行動を活性化させる(実際には、内部状態と外部環境の両方を考慮した形で行動が選択される)。状況依存行動は、反射行動に比し、反応時間が遅い。この状況依存行動階層102が上述した図4に示す行動選択制御システム100における要素行動131、行動価値算出部120、行動選択部130に相当し、上述した如く、内部状態と外部刺激とから行動価値ALを算出し、これに基づき行動出力を行なう。   The situation-dependent action hierarchy 102 prepares a state machine for each action (element action), classifies the recognition result of the external information input by the sensor depending on the action or situation before that, and performs the action. Is expressed on the fuselage. The situation-dependent behavior hierarchy 102 also implements an action for keeping the internal state within a certain range (also referred to as “homeostasis behavior”). When the internal state exceeds a specified range, the internal state is regarded as the relevant state. The action is activated so that the action for returning to the range easily appears (actually, the action is selected in consideration of both the internal state and the external environment). Situation-dependent behavior has a slower reaction time than reflex behavior. This situation-dependent behavior hierarchy 102 corresponds to the element behavior 131, the behavior value calculation unit 120, and the behavior selection unit 130 in the behavior selection control system 100 shown in FIG. 4 described above, and as described above, the behavior value is determined from the internal state and the external stimulus. AL is calculated, and action output is performed based on the AL.

熟考行動階層101は、短期記憶部92及び長期記憶部93の記憶内容に基づいて、ロボット装置1の比較的長期にわたる行動計画等を行なう。熟考行動とは、与えられた状況あるいは人間からの命令により、推論やそれを実現するための計画を立てて行なわれる行動のことである。例えば、ロボット装置の位置と目標の位置から経路を探索することは熟考行動に相当する。このような推論や計画は、ロボット装置1がインタラクションを保つための反応時間よりも処理時間や計算負荷を要する(すなわち処理時間がかかる)可能性があるので、上記の反射行動や状況依存行動がリアルタイムで反応を返しながら、熟考行動は推論や計画を行なう。   The reflection behavior hierarchy 101 performs a relatively long-term action plan of the robot apparatus 1 based on the storage contents of the short-term storage unit 92 and the long-term storage unit 93. Reflection behavior is behavior that is performed based on a given situation or a command from a human, with a reasoning or a plan for realizing it. For example, searching for a route from the position of the robot device and the position of the target is equivalent to deliberate behavior. Such inferences and plans may require more processing time and calculation load (that is, more processing time) than the reaction time for the robot apparatus 1 to maintain the interaction. Reflective actions make inferences and plans while responding in real time.

熟考行動階層101、状況依存行動階層102、及び反射行動部103は、ロボット装置1のハードウェア構成に非依存の上位のアプリケーション・プログラムとして記述することができる。これに対し、ハードウェア依存層制御部(Configuration Dependent Actions And Reactions)104は、これら上位アプリケーション、即ち、行動記述モジュール(スキーマ)からの命令に応じて、関節アクチュエータの駆動等の機体のハードウェア(外部環境)を直接操作する。このような構成により、ロボット装置1は、制御プログラムに基づいて自己及び周囲の状況を判断し、使用者からの指示及び働きかけに応じて自律的に行動できる。   The reflection behavior hierarchy 101, the situation-dependent behavior hierarchy 102, and the reflex behavior unit 103 can be described as higher-level application programs independent of the hardware configuration of the robot device 1. On the other hand, the hardware dependent layer control unit (Configuration Dependent Actions And Reactions) 104 responds to commands from these higher-level applications, that is, the behavior description module (schema), and controls the hardware (such as the drive of the joint actuator) of the body. External environment) directly. With such a configuration, the robot device 1 can determine its own and surrounding conditions based on the control program, and can act autonomously according to instructions and actions from the user.

次に、行動制御システム10について更に詳細に説明する。図19は、本具体例における行動制御システム10のオブジェクト構成を示す模式図である。同図に示すように、視覚認識機能部81は、Face Detector114、Mulit Color Tracker113、Face Identify115という3つのオブジェクトで構成される。   Next, the behavior control system 10 will be described in more detail. FIG. 19 is a schematic diagram illustrating an object configuration of the behavior control system 10 in this specific example. As shown in the figure, the visual recognition function unit 81 is composed of three objects: a Face Detector 114, a Multi Color Tracker 113, and a Face Identify 115.

Face Detector114は、画像フレーム中から顔領域を検出するオブジェクトであり、検出結果をFace Identify115に出力する。Mulit Color Tracker113は、色認識を行なうオブジェクトであり、認識結果をFace Identify115及びShort Term Memory(STM)92に出力する。また、Face Identify115は、検出された顔画像を手持ちの人物辞書で検索する等して人物の識別を行ない、顔画像領域の位置、大きさ情報とともに人物のID情報をSTM92に出力する。   The Face Detector 114 is an object that detects a face area from within an image frame, and outputs a detection result to a Face Identify 115. The Multi Color Tracker 113 is an object that performs color recognition, and outputs a recognition result to the Face Identify 115 and the Short Term Memory (STM) 92. Further, the Face Identify 115 identifies the person by searching the detected face image using a person dictionary held by the user, and outputs the ID information of the person together with the position and size information of the face image area to the STM 92.

聴覚認識機能部82は、Audio Recog111とSpeech Recog112という2つのオブジェクトで構成される。Audio Recog111は、マイクなどの音声入力装置からの音声データを受け取って、特徴抽出と音声区間検出を行なうオブジェクトであり、音声区間の音声データの特徴量及び音源方向をSpeech Recog112やSTM92に出力する。Speech Recog112は、Audio Recog111から受け取った音声特徴量と音声辞書及び構文辞書を使って音声認識を行なうオブジェクトであり、認識された単語のセットをSTM92に出力する。   The auditory recognition function unit 82 is composed of two objects, Audio Recog 111 and Speech Recog 112. The Audio Recog 111 is an object that receives voice data from a voice input device such as a microphone and performs feature extraction and voice section detection, and outputs the feature amount and sound source direction of voice data in the voice section to the Speech Recog 112 and the STM 92. The speech recog 112 is an object that performs speech recognition using the speech feature amount received from the audio recog 111, the speech dictionary, and the syntax dictionary, and outputs a set of recognized words to the STM 92.

触覚認識記憶部83は、接触センサからのセンサ入力を認識するTactile Sensor119というオブジェクトで構成され、認識結果はSTM92や内部状態を管理するオブジェクトであるInternal State Model(ISM)91に出力する。   The tactile recognition storage unit 83 is configured by an object called a Tactile Sensor 119 that recognizes a sensor input from a contact sensor, and outputs a recognition result to the STM 92 and an Internal State Model (ISM) 91 that is an object for managing an internal state.

STM92は、短期記憶部を構成するオブジェクトであり、上述の認識系の各オブジェクトによって外部環境から認識されたターゲットやイベントを短期間保持(例えばカメラ15からの入力画像を約15秒程度の短い期間だけ記憶する)する機能モジュールであり、STMクライアントであるSBL102に対して外部刺激の通知(Notify)を定期的に行なう。   The STM 92 is an object constituting a short-term storage unit, and holds a target or an event recognized from an external environment by each of the above-described recognition system objects for a short period of time (for example, an input image from the camera 15 is stored for a short period of about 15 seconds). Only), and periodically notifies the SBL client 102 of the external stimulus (Notify).

LTM93は、長期記憶部を構成するオブジェクトであり、物の名前等学習により得られた情報を長期間保持するために使用される。LTM93は、例えば、ある行動記述モジュール(スキーマ)において外部刺激から内部状態の変化を連想記憶することができる。   The LTM 93 is an object that forms a long-term storage unit, and is used to hold information obtained by learning, such as the name of an object, for a long time. The LTM 93 can, for example, associate and store a change in an internal state from an external stimulus in a certain behavior description module (schema).

ISM91は、内部状態管理部を構成するオブジェクトであり、本能や感情といった数種類の情動を数式モデル化して管理しており、上述の認識系の各オブジェクトによって認識された外部刺激(ES:External Stimula)に応じてロボット装置1の本能や情動といった内部状態を管理する。   The ISM 91 is an object that constitutes an internal state management unit, manages several types of emotions such as instinct and emotion by mathematical modeling, and controls external stimuli (ES: External Stimula) recognized by each of the above-described recognition system objects. The internal state such as the instinct and emotion of the robot apparatus 1 is managed according to.

SBL102は状況依存型行動階層を構成するオブジェクトである。SBL102は、STM92のクライアント(STMクライアント)となるオブジェクトであり、STM92からは定期的に外部刺激(ターゲットやイベント)に関する情報の通知(Notify)を受け取ると、スキーマ(Schema)すなわち実行すべき行動記述モジュールを決定する(後述)。   The SBL 102 is an object that forms a situation-dependent behavior hierarchy. The SBL 102 is an object serving as a client (STM client) of the STM 92. Upon receiving a notification (Notify) of information on an external stimulus (target or event) from the STM 92 periodically, a schema (Schema), that is, an action description to be executed Determine the module (described below).

ReflexiveSBL103は、反射的行動部を構成するオブジェクトであり、上述した認識系の各オブジェクトによって認識された外部刺激に応じて反射的・直接的な機体動作を実行する。例えば、人間の顔を追いかけたり、うなずく、障害物の検出により咄嗟に避けたりといった振る舞いを行なう。   The Reflexive SBL 103 is an object that constitutes a reflexive action unit, and executes reflexive and direct body motion in response to an external stimulus recognized by each object of the above-described recognition system. For example, a behavior such as following a human face, nodding, or immediately avoiding by detecting an obstacle is performed.

SBL102は外部刺激や内部状態の変化等の状況に応じた動作を選択する。これに対し、ReflexiveSBL103は、外部刺激に応じて反射的な動作を選択する。これら2つのオブジェクトによる行動選択は独立して行なわれるため、互いに選択された行動記述モジュール(スキーマ)を機体上で実行する場合に、ロボット装置1のハードウェア・リソースが競合して実現不可能なこともある。RM(Resource Manager)116というオブジェクトは、SBL102とReflexiveSBL103とによる行動選択時のハードウェアの競合を調停する。そして、調停結果に基づいて機体動作を実現する各オブジェクトに通知することにより機体が駆動する。   The SBL 102 selects an operation according to a situation such as an external stimulus or a change in the internal state. On the other hand, the Reflexive SBL 103 selects a reflexive operation in response to an external stimulus. Since the action selection by these two objects is performed independently, when the action description modules (schema) selected from each other are executed on the body, hardware resources of the robot apparatus 1 conflict with each other and cannot be realized. Sometimes. An object called an RM (Resource Manager) 116 arbitrates hardware conflicts between the SBL 102 and the Reflexive SBL 103 when selecting an action. Then, the body is driven by notifying each object that realizes the body operation based on the arbitration result.

Sound Performer172、Motion Controller173、LEDController174は、機体動作を実現するオブジェクトである。Sound Performer172は、音声出力を行なうためのオブジェクトであり、RM116経由でSBL102から与えられたテキスト・コマンドに応じて音声合成を行ない、ロボット装置1の機体上のスピーカから音声出力を行なう。また、Motion Controller173は、機体上の各関節アクチュエータの動作を行なうためのオブジェクトであり、RM116経由でSBL102から手や脚等を動かすコマンドを受けたことに応答して、該当する関節角を計算する。また、LEDController174は、LED19の点滅動作を行なうためのオブジェクトであり、RM116経由でSBL102からコマンドを受けたことに応答してLED19の点滅駆動を行なう。   The Sound Performer 172, the Motion Controller 173, and the LED Controller 174 are objects that implement the body operation. The Sound Performer 172 is an object for performing voice output, performs voice synthesis in accordance with a text command given from the SBL 102 via the RM 116, and performs voice output from a speaker on the body of the robot apparatus 1. The Motion Controller 173 is an object for performing an operation of each joint actuator on the body, and calculates a corresponding joint angle in response to receiving a command to move a hand, a leg, or the like from the SBL 102 via the RM 116. . The LED Controller 174 is an object for performing a blinking operation of the LED 19, and performs blinking driving of the LED 19 in response to receiving a command from the SBL 102 via the RM 116.

C−1.状況依存行動制御
次に、行動価値ALを算出し、発現する行動を選択する状況依存行動階層についてさらに詳細に説明する。図20には、状況依存行動階層(SBL)(但し、反射行動部を含む)による状況依存行動制御の形態を模式的に示している。
C-1. Situation-Dependent Behavior Control Next, the situation-dependent behavior hierarchy for calculating the behavior value AL and selecting an action to be expressed will be described in further detail. FIG. 20 schematically illustrates a form of situation-dependent behavior control using a situation-dependent behavior hierarchy (SBL) (including a reflex behavior unit).

視覚認識機能部81、聴覚認識機能部82、及び接触認識機能部83からなる外部刺激認識部80における外部環境70の認識結果(センサ情報)182は、外部刺激183として状況依存行動階層(反射行動部103を含む)102aに与えられる。また、外部刺激認識部80による外部環境70の認識結果に応じた内部状態の変化184も状況依存行動階層102aに与えられる。そして、状況依存行動階層102aでは、外部刺激183や内部状態の変化184に応じて状況を判断して、行動選択を実現することができる。 The recognition result (sensor information) 182 of the external environment 70 in the external stimulus recognition unit 80 including the visual recognition function unit 81, the auditory recognition function unit 82, and the contact recognition function unit 83 is used as the external stimulus 183 as a situation-dependent behavior hierarchy (reflex behavior). 102a). The change 184 of the internal state according to the recognition result of the external environment 70 by the external stimulus recognition unit 80 is also given to the situation-dependent behavior hierarchy 102a. In the situation-dependent behavior hierarchy 102a, the situation can be determined according to the external stimulus 183 or the change 184 in the internal state, and the behavior can be selected.

状況依存行動階層102aでは、上述したように、外部刺激183や内部状態の変化184によって各行動記述モジュール(スキーマ)の行動価値ALを算出して、行動価値ALの大きさに応じてスキーマを選択して行動(動作)を実行する。行動価値ALの算出には、例えばライブラリを利用することにより、すべてのスキーマについて統一的な計算処理を行なうことができる。 In the situation-dependent action hierarchy 102a, as described above, the action value AL of each action description module (schema) is calculated based on the external stimulus 183 and the change 184 of the internal state, and the schema is selected according to the magnitude of the action value AL. And perform the action (action). For calculating the action value AL, for example, by using a library, a unified calculation process can be performed for all schemas.

このライブラリには、例えば上述したように、内部状態ベクトルから欲求値ベクトルを算出する関数、内部状態ベクトルから満足度ベクトルを算出する関数、及び外部刺激から予想内部状態変化ベクトルを予想するための行動評価データベースなどが保存されている。 The library includes, for example, a function for calculating a desire value vector from an internal state vector, a function for calculating a satisfaction level vector from an internal state vector, and an action for predicting a predicted internal state change vector from an external stimulus, as described above. The evaluation database is stored.

C−2.スキーマ
図21には、状況依存行動階層102が複数のスキーマ(要素行動)132によって構成されている様子を模式的に示している。状況依存行動階層102は、上述した要素行動として、行動記述モジュールを有し、行動記述モジュール毎にステートマシンを用意しており、それ以前の行動(動作)や状況に依存して、センサ入力された外部情報の認識結果を分類し、動作を機体上で発現する。
C-2. Schema FIG. 21 schematically shows a situation in which the situation-dependent behavior hierarchy 102 is composed of a plurality of schemas (element behaviors) 132. The situation-dependent behavior hierarchy 102 has a behavior description module as the above-described element behavior, and prepares a state machine for each behavior description module. The state machine 102 receives a sensor input depending on a previous behavior (action) or a situation. It classifies the recognition results of the external information and expresses the operation on the aircraft.

要素行動となる行動記述モジュールは、外部刺激や内部状態に応じた状況判断を行なうMonitor機能と、行動実行に伴う状態遷移(ステートマシン)を実現するAction機能とを備えたスキーマ132として記述される。 The action description module as an elementary action is described as a schema 132 having a Monitor function for performing a situation determination according to an external stimulus or an internal state, and an Action function for implementing a state transition (state machine) accompanying the action execution. .

状況依存行動階層102b(より厳密には、状況依存行動階層102のうち、通常の状況依存行動を制御する階層)は、複数のスキーマ132が階層的に連結されたツリー構造として構成され、外部刺激や内部状態の変化に応じてより最適なスキーマ131を統合的に判断して行動制御を行なうようになっている。このツリー131は、例えば動物行動学的(Ethological)な状況依存行動を数式化した行動モデルや、感情表現を実行するためのサブツリーなど、複数のサブツリー(又は枝)を含んでいる。   The context-dependent behavior hierarchy 102b (more strictly, of the context-dependent behavior hierarchy 102, a hierarchy that controls normal context-dependent behavior) is configured as a tree structure in which a plurality of schemas 132 are hierarchically connected. Behavior control is performed by integrally determining a more optimal schema 131 according to changes in the internal state. The tree 131 includes a plurality of subtrees (or branches) such as a behavior model in which an ethological situation-dependent behavior is formalized, and a subtree for executing emotion expression.

図22には、状況依存行動階層102におけるスキーマのツリー構造を模式的に示している。同図に示すように、状況依存行動階層102は、短期記憶部92から外部刺激の通知(Notify)を受けるルート・スキーマ2011、2021、2031を先頭に、抽象的な行動カテゴリから具体的な行動カテゴリに向かうように、階層毎にスキーマが配設されている。   FIG. 22 schematically illustrates a tree structure of a schema in the context-dependent behavior hierarchy 102. As shown in the figure, the context-dependent behavior hierarchy 102 starts from the root schemas 2011, 2021, and 2031 that receive a notification (Notify) of an external stimulus from the short-term storage unit 92, and starts from the concrete behavior from the abstract behavior category. A schema is arranged for each hierarchy so as to head to the category.

例えば、ルート・スキーマの直近下位の階層では、「探索する(Investigate)」、「食べる(Ingestive)」、「遊ぶ(Play)」というスキーマ2012、2022、2032が配設される。そして、スキーマ2012「探索する(Investigate)」の下位には、「InvestigativeLocomotion」、「HeadinAirSniffing」、「InvestigativeSniffing」というより具体的な探索行動を記述した複数のスキーマ2013が配設されている。   For example, in the hierarchy immediately below the root schema, schemas 2012, 2022, and 2032 of "Search (Investigate)", "Eat (Ingestive)", and "Play (Play)" are provided. Under the schema 2012 “Search (Investigate)”, a plurality of schemas 2013 that describe more specific search behaviors such as “InvestigativeLocomotion”, “HeadinAirSniffing”, and “InvestigativeSniffing” are arranged.

同様に、スキーマ2022「食べる(Ingestive)」の下位には「Eat」や「Drink」などのより具体的な飲食行動を記述した複数のスキーマ2023が配設され、スキーマ2032「遊ぶ(Play)」の下位には「PlayBowing」、「PlayGreeting」、「PlayPawing」などのより具体的な遊ぶ行動を記述した複数のスキーマ2033が配設されている。   Similarly, a plurality of schemas 2023 describing more specific eating and drinking behaviors such as “Eat” and “Drink” are provided below the schema 2022 “Eat (Ingestive)”, and the schema 2032 “Play”. A plurality of schemas 2033 describing more specific playing behaviors such as “Play Bowing”, “Play Greeting”, and “Play Paying” are arranged below the list.

図示の通り、各スキーマは外部刺激と内部状態を入力している。また、各スキーマは、少なくともMonitor関数とAction関数を備えている。   As shown, each schema inputs an external stimulus and an internal state. Each schema has at least a Monitor function and an Action function.

図31には、スキーマの内部構成を模式的に示している。同図に示すように、スキーマは、所定の事象の発生に従がって状態(又はステート)が移り変わっていく状態遷移モデル(ステートマシン)の形式で機体動作を記述したAction関数と、外部刺激や内部状態に応じてAction関数の各状態を評価して活動度レベル値として返すMonitor関数と、スキーマの状態を記憶管理する状態管理部で構成されている。図示の通り、状態管理部は、Action関数のステートマシンを、READY(準備完了)、ACTIVE(活動中),SLEEP(待機中)いずれかの状態としてスキーマの状態を記憶管理している。   FIG. 31 schematically shows the internal structure of the schema. As shown in the figure, the schema includes an Action function that describes a body operation in the form of a state transition model (state machine) in which a state (or a state) changes according to occurrence of a predetermined event, and an external stimulus. It comprises a Monitor function that evaluates each state of the Action function according to the internal state and returns it as an activity level value, and a state management unit that stores and manages the state of the schema. As shown in the figure, the state management unit stores and manages the state of the schema as the state machine of the Action function as one of READY (completed), ACTIVE (active), and SLEEP (waiting).

Monitor関数は、外部刺激と内部状態に応じて当該スキーマの活動度レベルである行動価値ALを算出する関数である。図22に示すようなツリー構造を構成する場合、上位(親)のスキーマは外部刺激と内部状態を引数として下位(子供)のスキーマのMonitor関数をコールすることができ、子供のスキーマはAL値を返り値とする。また、スキーマは自分のAL値を算出するために、さらに子供のスキーマのMonitor関数をコールすることができる。そして、ルートのスキーマには各サブツリーからのAL値が返されるので、外部刺激と内部状態の変化に応じた最適なスキーマすなわち行動を統合的に判断することができる。   The Monitor function is a function that calculates an action value AL that is the activity level of the schema according to the external stimulus and the internal state. When the tree structure shown in FIG. 22 is configured, the upper (parent) schema can call the Monitor function of the lower (child) schema with the external stimulus and the internal state as arguments, and the child schema has an AL value. Is the return value. The schema can also call the Monitor function of the child's schema to calculate its own AL value. Then, since the AL value from each subtree is returned to the root schema, it is possible to integrally determine the optimal schema, that is, the action according to the change of the external stimulus and the internal state.

例えばAL値が最も高いスキーマを選択したり、AL値が所定の閾値を越えた2以上のスキーマを選択して並列的に行動実行したりするようにしてもよい(但し、並列実行するときは各スキーマ同士でハードウェア・リソースの競合がないことを前提とする)。   For example, a schema having the highest AL value may be selected, or two or more schemas whose AL values exceed a predetermined threshold may be selected and executed in parallel (however, when executing in parallel, Assume that there is no hardware resource contention between each schema).

図32には、Monitor関数の内部構成を模式的に示している。同図に示すように、Monitor関数は、当該スキーマで記述されている行動を誘発する評価値を活動度レベルとして算出する行動誘発評価値演算器と、使用する機体リソースを特定する使用リソース演算器を備えている。図31で示す例では、Monitor関数は、スキーマすなわち行動モジュールの管理を行なう行動状態制御部(仮称)からコールされると、Action関数のステートマシンを仮想実行して、行動誘発評価値(すなわち活動度レベル)と使用リソースを演算して、これを返すようになっている。   FIG. 32 schematically illustrates the internal configuration of the Monitor function. As shown in the figure, the Monitor function includes a behavior induction evaluation value calculator for calculating an evaluation value for inducing a behavior described in the schema as an activity level, and a used resource calculator for specifying an aircraft resource to be used. It has. In the example shown in FIG. 31, when the Monitor function is called from the schema, that is, the behavior state control unit (tentative name) that manages the behavior module, the State function of the Action function is virtually executed, and the behavior induction evaluation value (that is, the activity induction evaluation value) is obtained. Calculates the used resource and the used resource, and returns it.

また、Action関数は、スキーマ自身が持つ行動を記述したステートマシン(又は状態遷移モデル)(後述)を備えている。図22に示すようなツリー構造を構成する場合、親スキーマは、Action関数をコールして、子供スキーマの実行を開始したり中断させたりすることができる。本実施形態では、ActionのステートマシンはReadyにならないと初期化されない。言い換えれば、中断しても状態はリセットされず、スキーマが実行中の作業データを保存することから、中断再実行が可能である(後述)。   The Action function includes a state machine (or state transition model) (described later) that describes the behavior of the schema itself. When configuring the tree structure as shown in FIG. 22, the parent schema can call the Action function to start or interrupt the execution of the child schema. In this embodiment, the Action state machine is not initialized unless it becomes Ready. In other words, the state is not reset even if interrupted, and the schema saves the work data being executed, so that interrupted re-execution is possible (described later).

図31で示す例では、スキーマすなわち行動モジュールの管理を行なう行動状態制御部(仮称)は、Monitor関数からの戻り値に基づいて、実行すべき行動を選択し、該当するスキーマのAction関数をコールし、あるいは状態管理部に記憶されているスキーマの状態の移行を指示する。例えば行動誘発評価値としての活動度レベルが最も高いスキーマを選択したり、リソースが競合しないように優先順位に従って複数のスキーマを選択したりする。また、行動状態制御部は、より優先順位の高いスキーマが起動し、リソースの競合が生じた場合、優先順位が下位のスキーマの状態をACTIVEからSLEEPに退避させ、競合状態が解かれるとACTIVEに回復するなど、スキーマの状態を制御する。   In the example shown in FIG. 31, the behavior state control unit (tentative name) that manages the schema, that is, the behavior module, selects the behavior to be executed based on the return value from the Monitor function, and calls the Action function of the corresponding schema. Or instruct the transition of the state of the schema stored in the state management unit. For example, a schema having the highest activity level as a behavior induction evaluation value is selected, or a plurality of schemas are selected according to a priority order so that resources do not conflict. Also, the behavior state control unit saves the state of the lower-priority schema from ACTIVE to SLEEP when a higher-priority schema is activated and a resource conflict occurs. Control the state of the schema, such as recovering.

行動状態制御部は、図33に示すように、状況依存行動階層102において1つだけ配設し、同階層102を構成するすべてのスキーマを一元的に集中管理するようにしてもよい。図33に示す例では、行動状態制御部は、行動評価部と、行動選択部と、行動実行部を備えている。   As shown in FIG. 33, the behavior state control unit may be provided only one in the context-dependent behavior hierarchy 102, and may centrally manage all schemas constituting the hierarchy 102 in a centralized manner. In the example illustrated in FIG. 33, the behavior state control unit includes a behavior evaluation unit, a behavior selection unit, and a behavior execution unit.

行動評価部は、例えば所定の制御周期で各スキーマのMonitor関数をコールし、各々の活動度レベルと使用リソースを取得する。   The behavior evaluation unit calls the Monitor function of each schema at a predetermined control cycle, for example, and acquires each activity level and used resources.

行動選択部は、各スキーマによる行動制御と機体リソースの管理を行なう。例えば、集計された活動度レベルの高い順にスキーマを選択するとともに、使用リソースが競合しないように2以上のスキーマを同時に選択する。   The action selection unit performs action control and management of machine resources using each schema. For example, schemas are selected in descending order of the aggregated activity level, and two or more schemas are simultaneously selected so that resources used do not conflict.

行動実行部は、選択されたスキーマのAction関数に行動実行命令を発行したり、スキーマの状態(READY,ACTIVE,SLEEP)を管理して、スキーマの実行を制御したりする。例えば、より優先順位の高いスキーマが起動し、リソースの競合が生じた場合、優先順位が下位のスキーマの状態をACTIVEからSLEEPに退避させ、競合状態が解かれるとACTIVEに回復する。   The action execution unit issues an action execution command to the Action function of the selected schema, and manages the state of the schema (READY, ACTIVE, SLEEP) to control the execution of the schema. For example, when a schema with a higher priority is activated and a resource conflict occurs, the state of a schema with a lower priority is saved from ACTIVE to SLEEP, and when the conflict is resolved, the schema is restored to ACTIVE.

あるいは、このような行動状態制御部の機能を、状況依存行動階層108内のスキーマ毎に配置するようにしてもよい。例えば、図22に示したように、スキーマがツリー構造を形成している場合(図34を参照のこと)、上位(親)のスキーマの行動状態制御は、外部刺激と内部状態を引数として下位(子供)のスキーマのMonitor関数をコールし、子供のスキーマから活動度レベルと使用リソースを返り値として受け取る。また、子供のスキーマは、自分の活動度レベルと使用リソースを算出するために、さらに子供のスキーマのMonitor関数をコールする。そして、ルートのスキーマの行動状態制御部には、各サブツリーからの活動度レベルと使用リソースが返されるので、外部刺激と内部状態の変化に応じた最適なスキーマすなわち行動を統合的に判断して、Action関数をコールして、子供スキーマの実行を開始したり中断させたりする。本実施形態では、ActionのステートマシンはReadyにならないと初期化されない。言い換えれば、中断しても状態はリセットされず、スキーマが実行中の作業データを保存することから、中断再実行が可能である。   Alternatively, the function of the behavior state control unit may be arranged for each schema in the context-dependent behavior hierarchy 108. For example, as shown in FIG. 22, when the schema forms a tree structure (see FIG. 34), the behavior state control of the upper (parent) schema is performed by using the external stimulus and the internal state as arguments, and The Monitor function of the (child) schema is called, and the activity level and the used resource are received as return values from the child schema. The child's schema also calls the child's schema Monitor function to calculate its activity level and resources used. Then, the activity level and the used resources from each subtree are returned to the behavior state control unit of the root schema. , Action function to start or suspend execution of the child schema. In this embodiment, the Action state machine is not initialized unless it becomes Ready. In other words, the state is not reset even if interrupted, and the schema saves the work data being executed, so that interrupted re-execution is possible.

図23には、状況依存行動階層102において通常の状況依存行動を制御するためのメカニズムを模式的に示している。同図に示すように、状況依存行動階層(SBL)102には、短期記憶部(STM)92から外部刺激183が入力(Notify)されるとともに、内部状態管理部91から内部状態の変化184が入力される。   FIG. 23 schematically illustrates a mechanism for controlling normal context-dependent behavior in the context-dependent behavior hierarchy 102. As shown in the figure, an external stimulus 183 is input (Notify) from the short-term storage unit (STM) 92 to the context-dependent behavior hierarchy (SBL) 102, and a change 184 in the internal state is received from the internal state management unit 91. Is entered.

状況依存行動階層102は、例えば動物行動学的な状況依存行動を数式化した行動モデルや、感情表現を実行するためのサブツリーなど、複数のサブツリーで構成されており、ルート・スキーマは、外部刺激183の通知(Notify)に応答して、各サブツリーのMonitor関数をコールし、その返り値としての行動価値ALを参照して、統合的な行動選択を行ない、選択された行動を実現するサブツリーに対してAction関数をコールする。   The context-dependent behavior hierarchy 102 is composed of a plurality of sub-trees, such as a behavior model that formulates ethological behavior-dependent behavior and a sub-tree for executing emotional expression. In response to the notification (Notify) of 183, the Monitor function of each subtree is called, and by referring to the action value AL as a return value, an integrated action selection is performed, and the subtree that realizes the selected action is called. Then, an Action function is called.

また、状況依存行動階層102において決定された状況依存行動は、リソース・マネージャRM116により反射行動部103による反射的行動とのハードウェア・リソースの競合の調停を経て、機体動作(Motion Controller)に適用される。   The context-dependent behavior determined in the context-dependent behavior hierarchy 102 is applied to the machine operation (Motion Controller) through arbitration of hardware resource competition with the reflex behavior by the reflex behavior unit 103 by the resource manager RM 116. Is done.

また、反射的行動部103は、上述した認識系の各オブジェクトによって認識
された外部刺激183に応じて、例えば、障害物の検出により咄嗟に避ける等、反射的・直接的な機体動作を実行する。このため、図22に示す通常の状況依存行動を制御する場合とは相違し、図21に示すように、認識系の各オブジェクトからの信号を直接入力する複数のスキーマ133が階層化されずに並列的に配置されている。
In addition, the reflexive action unit 103 performs a reflexive and direct body motion such as, for example, promptly avoiding by detecting an obstacle, in response to the external stimulus 183 recognized by each object of the above-described recognition system. . Therefore, unlike the case of controlling the normal context-dependent behavior shown in FIG. 22, a plurality of schemas 133 for directly inputting signals from the respective objects of the recognition system are not hierarchized as shown in FIG. They are arranged in parallel.

図24には、反射行動部103におけるスキーマの構成を模式的に示している。同図に示すように、反射行動部103には、聴覚系の認識結果に応答して動作するスキーマとしてAvoid Big Sound204、Face to Big Sound205及びNodding Sound209、視覚系の認識結果に応答して動作するスキーマとしてFace to Moving Object206及びAvoid Moving Object207、並びに、触覚系の認識結果に応答して動作するスキーマとして手を引っ込める208が、それぞれ対等な立場で(並列的に)配設されている。   FIG. 24 schematically illustrates the configuration of the schema in the reflex action unit 103. As shown in the drawing, the reflex action unit 103 operates in response to the Aid Big Sound 204, Face to Big Sound 205, and Nodding Sound 209 as schemas that operate in response to the recognition result of the auditory system, and the recognition result of the visual system. A Face to Moving Object 206 and an Avoid Moving Object 207 as schemas, and a hand-withdrawing 208 as a schema that operates in response to the recognition result of the haptic system are provided in an equivalent position (in parallel).

図示の通り、反射的行動を行なう各スキーマは外部刺激183を入力に持つ。また、各スキーマは、少なくともMonitor関数とAction関数を備えている。Monitor関数は、外部刺激183に応じて当該スキーマの行動価値ALを算出して、これに応じて該当する反射的行動を発現すべきかどうかが判断される。また、Action関数は、スキーマ自身が持つ反射的行動を記述したステートマシン(後述)を備えており、コールされることにより、該当する反射的行動を発現するとともにActionの状態を遷移させていく。   As shown, each schema performing reflexive behavior has an external stimulus 183 as input. Each schema has at least a Monitor function and an Action function. The Monitor function calculates the action value AL of the schema in accordance with the external stimulus 183, and determines whether or not to exhibit the corresponding reflex action accordingly. The Action function includes a state machine (described later) that describes the reflexive behavior of the schema itself, and when called, expresses the relevant reflexive behavior and transitions the state of the Action.

図25には、反射行動部103において反射的行動を制御するためのメカニズムを模式的に示している。図24にも示したように、反射行動部103内には、反応行動を記述したスキーマや、即時的な応答行動を記述したスキーマが並列的に存在している。認識系の機能モジュール80を構成する各オブジェクトから認識結果が入力されると、対応する反射行動スキーマがAonitor関数により行動価値ALを算出し、その値に応じてActionを軌道すべきかどうかが判断される。そして、反射行動部103において起動が決定された反射的行動は、リソース・マネージャRM116により状況依存行動階層102による状況依存行動とのハードウェア・リソースの競合の調停を経て、機体動作(Motion Controller173)に適用される。   FIG. 25 schematically illustrates a mechanism for controlling reflexive behavior in the reflexive behavior unit 103. As shown in FIG. 24, a schema describing a reaction behavior and a schema describing an immediate response behavior exist in parallel in the reflex behavior unit 103. When a recognition result is input from each object constituting the functional module 80 of the recognition system, the corresponding reflexive behavior schema calculates an action value AL using an Aonitor function, and it is determined whether or not the Action should be tracked according to the value. You. Then, the reflex action determined to be activated by the reflex action unit 103 is mediated by the resource manager RM 116 through the arbitration of hardware resource competition with the context-dependent behavior by the context-dependent behavior hierarchy 102, and then to the body operation (Motion Controller 173). Applied to

このような状況依存行動階層102及び反射行動部103を構成するスキーマは、例えばC++言語ベースで記述される「クラス・オブジェクト」として記述することができる。図26には、状況依存行動階層102において使用されるスキーマのクラス定義を模式的に示している。同図に示されている各ブロックはそれぞれ1つのクラス・オブジェクトに相当する。   Such a schema that constitutes the situation-dependent behavior hierarchy 102 and the reflex behavior unit 103 can be described as a “class object” described on a C ++ language basis, for example. FIG. 26 schematically illustrates the class definition of the schema used in the situation-dependent behavior hierarchy 102. Each block shown in the figure corresponds to one class object.

図示の通り、状況依存行動階層(SBL)102は、1以上のスキーマと、SBL102の入出力イベントに対してIDを割り振るEvent Data Handler(EDH)211と、SBL102内のスキーマを管理するSchema Handler(SH)212と、外部オブジェクト(STMやLTM、リソース・マネージャ、認識系の各オブジェクトなど)からデータを受信する1以上のReceive Data Handler(RDH)213と、外部オブジェクトにデータを送信する1以上のSend Data Handler(SDH)214を備えている。   As illustrated, the context-dependent behavior hierarchy (SBL) 102 includes one or more schemas, an Event Data Handler (EDH) 211 that assigns IDs to input / output events of the SBL 102, and a Schema Handler (which manages schemas in the SBL 102). SH) 212, one or more Receive Data Handlers (RDH) 213 for receiving data from external objects (such as STM and LTM, resource managers, and cognitive objects), and one or more receive data handlers (RDH) 213 for transmitting data to external objects. It has a Send Data Handler (SDH) 214.

Schema Handler212は、状況依存行動階層(SBL)102や反射行動部103を構成する各スキーマやツリー構造等の情報(SBLのコンフィギュレーション情報)をファイルとして保管している。例えばシステムの起動時等に、Schema Handler212は、このコンフィギュレーション情報ファイルを読み込んで、図22に示したような状況依存行動階層102のスキーマ構成を構築(再現)して、メモリ空間上に各スキーマのエンティティをマッピングする。   The Schema Handler 212 stores information such as schemas and tree structures (SBL configuration information) constituting the context-dependent behavior hierarchy (SBL) 102 and the reflex behavior unit 103 as a file. For example, when the system is started, the Schema Handler 212 reads this configuration information file, constructs (reproduces) the schema configuration of the situation-dependent behavior hierarchy 102 as shown in FIG. 22, and stores each schema in the memory space. Map entity.

各スキーマは、スキーマのベースとして位置付けられるOpenR_Guest215を備えている。OpenR_Guest215は、スキーマが外部にデータを送信するためのDsubject216、並びに、スキーマが外部からデータを受信するためのDObject217というクラス・オブジェクトをそれぞれ1以上備えている。例えば、スキーマが、SBL102の外部オブジェクト(STMやLTM、認識系の各オブジェクト等)にデータを送るときには、Dsubject216はSend Data Handler214に送信データを書き込む。また、DObject217は、SBL102の外部オブジェクトから受信したデータをReceive Data Handler213から読み取ることができる。   Each schema has an OpenR_Guest 215 positioned as the base of the schema. The OpenR_Guest 215 includes one or more class objects Dsubject 216 for transmitting data to the outside of the schema, and one or more class objects DObject 217 for receiving data of the schema to the outside. For example, when the schema sends data to an external object (STM, LTM, each object of a recognition system, etc.) of the SBL 102, the Dsubject 216 writes the transmission data to the Send Data Handler 214. Further, the DOJECT 217 can read data received from the external object of the SBL 102 from the Receive Data Handler 213.

Schema Manager218及びSchema Base219はともに、OpenR_Guest215を継承したクラス・オブジェクトである。クラス継承は、元のクラスの定義を受け継ぐことであり、この場合、OpenR_Guest215で定義されているDsubject216やDObject217などのクラス・オブジェクトをSchema Manager Base218やSchema Base219も備えていることを意味する(以下、同様)。例えば図22に示すように複数のスキーマがツリー構造になっている場合、Schema Manager Base218は、子供のスキーマのリストを管理するクラス・オブジェクトSchema List220を持ち(子供のスキーマへのポインタを持ち)、子供スキーマの関数をコールすることができる。また、Schema Base219は、親スキーマへのポインタを持ち、親スキーマからコールされた関数の返り値を戻すことができる。   Both Schema Manager 218 and Schema Base 219 are class objects that inherit OpenR_Guest 215. The class inheritance is to inherit the definition of the original class. In this case, it means that a class object such as Dsubject 216 or DOobject 217 defined in OpenR_Guest 215 also includes a Schema Manager Base 218 or a Schema Base 219 (below). Similar). For example, when a plurality of schemas have a tree structure as shown in FIG. 22, the Schema Manager Base 218 has a class object Schema List 220 that manages a list of child schemas (has a pointer to the child schema), You can call functions in the child schema. The Schema Base 219 has a pointer to the parent schema, and can return the return value of the function called from the parent schema.

Schema Base219は、State Machine221及びPronome222という2つのクラス・オブジェクトを持つ。State Machine221は当該スキーマの行動(Action関数)についてのステートマシンを管理している。親スキーマは子供スキーマのAction関数のステートマシンを切り替える(状態遷移させる)ことができる。また、Pronome222には、当該スキーマが行動(Action関数)を実行又は適用するターゲットを代入する。後述するように、スキーマはPronome222に代入されたターゲットによって占有され、行動(動作)が終了(完結、異常終了等)するまでスキーマは解放されない。新規のターゲットのために同じ行動を実行するためには同じクラス定義のスキーマをメモリ空間上に生成する。この結果、同じスキーマをターゲット毎に独立して実行することができ(個々のスキーマの作業データが干渉し合うことはなく)、後述する行動のReentrance性が確保される。   The Schema Base 219 has two class objects, State Machine 221 and Pronome 222. The state machine 221 manages a state machine for an action (action function) of the schema. The parent schema can switch (state transition) the state machine of the Action function of the child schema. Also, the target to which the schema executes or applies the action (Action function) is assigned to the Pronome 222. As will be described later, the schema is occupied by the target assigned to the Pronom 222, and the schema is not released until the action (operation) ends (complete, abnormal termination, etc.). To execute the same action for a new target, the same class definition schema is created in the memory space. As a result, the same schema can be executed independently for each target (the work data of each schema does not interfere with each other), and the reentrance property of the behavior described later is secured.

Parent Schema Base223は、Schema Manager218及びSchema Base219を多重継承するクラス・オブジェクトであり、スキーマのツリー構造において、当該スキーマ自身についての親スキーマ及び子供スキーマすなわち親子関係を管理する。   The Parent Schema Base 223 is a class object that inherits the Schema Manager 218 and Schema Base 219 multiple times, and manages a parent schema and a child schema of the schema itself, that is, a parent-child relationship in the tree structure of the schema.

Intermediate Parent Schema Base224は、Parent Schema Base223を継承するクラス・オブジェクトであり、各クラスのためのインターフェース変換を実現する。また、Intermediate Parent Schema Base224は、Schema Status Info225を持つ。このSchema Status Info225は、当該スキーマ自身のステートマシンを管理するクラス・オブジェクトである。親スキーマは、子供スキーマのAction関数をコールすることによってそのステートマシンの状態を切り換えることができる。また、子供スキーマのMonitor関数をコールしてそのステートマシンの常態に応じた行動価値ALを問うことができる。但し、スキーマのステートマシンは、前述したAction関数のステートマシンとは異なるということを留意されたい。   The Intermediate Parent Schema Base 224 is a class object that inherits the Parent Schema Base 223, and implements interface conversion for each class. Further, the Intermediate Parent Schema Base 224 has a Schema Status Info 225. The Schema Status Info 225 is a class object that manages a state machine of the schema itself. The parent schema can switch the state of its state machine by calling the Action function of the child schema. In addition, the Monitor function of the child schema can be called to inquire about the action value AL corresponding to the normal state of the state machine. However, it should be noted that the state machine of the schema is different from the state machine of the Action function described above.

And Parent Schema226、Num Or Parent Schema227、Or Parent Schema228は、Intermediate Parent Schema Base224を継承するクラス・オブジェクトである。And Parent Schema226は、同時実行する複数の子供スキーマへのポインタを持つ。Or Parent Schema228は、いずれか択一的に実行する複数の子供スキーマへのポインタを持つ。また、Num Or Parent Schema227は、所定数のみを同時実行する複数の子供スキーマへのポインタを持つ。   The And Parent Schema 226, Num Or Parent Schema 227, and Or Parent Schema 228 are class objects that inherit from the Intermediate Parent Schema Base 224. The And Parent Schema 226 has pointers to a plurality of child schemas to be executed simultaneously. The Or Parent Schema 228 has pointers to a plurality of child schemas to be executed alternatively. The Num Or Parent Schema 227 has pointers to a plurality of child schemas that execute only a predetermined number at the same time.

Parent Schema229は、これらAnd Parent Schema226、Num Or Parent Schema227、Or Parent Schema228を多重継承するクラス・オブジェクトである。   The Parent Schema 229 is a class object that inherits the And Parent Schema 226, Num Or Parent Schema 227, and Or Parent Schema 228 in multiples.

図27には、状況依存行動階層(SBL)102内のクラスの機能的構成を模式的に示している。   FIG. 27 schematically shows the functional configuration of the classes in the situation-dependent behavior hierarchy (SBL) 102.

状況依存行動階層(SBL)102は、STMやLTM、リソース・マネージャ、認識系の各オブジェクトなど外部オブジェクトからデータを受信する1以上のReceive Data Handler(RDH)213と、外部オブジェクトにデータを送信する1以上のSend Data Handler(SDH)214とを備えている。   The context-dependent behavior hierarchy (SBL) 102 transmits data to one or more Receive Data Handlers (RDH) 213 that receive data from external objects such as STM, LTM, resource manager, and cognitive objects, and transmits data to external objects. And one or more Send Data Handlers (SDH) 214.

Event Data Handler(EDH)211は、SBL102の入出力イベントに対してIDを割り振るためのクラス・オブジェクトであり、RDH213やSDH214から入出力イベントの通知を受ける。   An Event Data Handler (EDH) 211 is a class object for allocating an ID to an input / output event of the SBL 102, and receives a notification of the input / output event from the RDH 213 or the SDH 214.

Schema Handler212は、スキーマを管理するためのクラス・オブジェクトであり、SBL102を構成するスキーマのコンフィギュレーション情報をファイルとして保管している。例えばシステムの起動時などに、Schema Handler212は、このコンフィギュレーション情報ファイルを読み込んで、SBL102内のスキーマ構成を構築する。   The Schema Handler 212 is a class object for managing a schema, and stores configuration information of a schema configuring the SBL 102 as a file. For example, when the system is activated, the Schema Handler 212 reads the configuration information file and constructs a schema configuration in the SBL 102.

各スキーマは、図26に示したクラス定義に従って生成され、メモリ空間上にエンティティがマッピングされる。各スキーマは、OpenR_Guest215をベースのクラス・オブジェクトとし、外部にデータ・アクセスするためのDSubject216やDObject217などのクラス・オブジェクトを備えている。   Each schema is generated according to the class definition shown in FIG. 26, and entities are mapped on the memory space. Each schema has an OpenR_Guest 215 as a base class object, and includes class objects such as DObject 216 and DOObject 217 for external data access.

スキーマが主に持つ関数とステートマシンを以下に示しておく。以下の関数は、Schema Base219で記述されている。   The functions and state machines that the schema mainly has are shown below. The following functions are described in Schema Base 219.

ActivationMonitor():スキーマがReady時にActiveになるための評価関数
Actions():Active時の実行用ステートマシン
Goal():Active時にスキーマがGoalに達したかを評価する関数
Fail():Active時にスキーマがfail状態かを判定する関数
SleepActions():Sleep前に実行されるステートマシン
SleepMonitor():Sleep時にResumeするための評価関数
ResumeActions():Resume前にResumeするためのステートマシン
DestroyMonitor():Sleep時にスキーマがfail状態か判定する評価関数
MakePronome():ツリー全体のターゲットを決定する関数
ActivationMonitor (): Evaluation function for making the schema Active at the time of Ready Actions (): State machine Goal () for execution at the time of Active Fail (): Schema for evaluating whether the schema has reached Goal at the time of Active SleepActions (): State machine executed before Sleep. SleepMonitor (): Evaluation function for Resume at Sleep. ResumeActions (): State machine DestroyMonitor () for Resume before Resume. Evaluation function MakePronome () that determines whether the schema is in the fail state at the time: Determines the target of the entire tree Number

C−3.状況依存行動階層の機能
状況依存行動階層(SBL)102は、短期記憶部92及び長期記憶部93の記憶内容や、内部状態管理部91によって管理される内部状態を基に、ロボット装置1が現在置かれている状況に即応した動作を制御する。
C-3. The functional situation-dependent behavior hierarchy (SBL) 102 of the situation-dependent behavior hierarchy is based on the contents stored in the short-term storage unit 92 and the long-term storage unit 93 and the internal state managed by the internal state management unit 91. Control actions that respond to your situation.

前項で述べたように、本実施形態に係る状況依存行動階層102は、スキーマのツリー構造(図22を参照のこと)で構成されている。各スキーマは、自分の子供と親の情報を知っている状態で独立性を保っている。このようなスキーマ構成により、状況依存行動階層102は、Concurrentな評価、Concurrentな実行、Preemption、Reentrantという主な特徴を持っている。以下、これらの特徴について詳解する。   As described in the previous section, the situation-dependent behavior hierarchy 102 according to the present embodiment is configured by a tree structure of a schema (see FIG. 22). Each schema keeps its independence, knowing its child and parent information. With such a schema configuration, the situation-dependent behavior hierarchy 102 has the main features of Concurrent evaluation, Concurrent execution, Preemption, and Reentrant. Hereinafter, these features will be described in detail.

C−3−1.Concurrentな評価:
行動記述モジュールとしてのスキーマは外部刺激や内部状態の変化に応じた状況判断を行なうMonitor機能を備えていることは既に述べた。Monitor機能は、スキーマがクラス・オブジェクトSchema BaseでMonitor関数を備えていることにより実装されている。Monitor関数とは、外部刺激と内部状態に応じて当該スキーマの行動価値ALを算出する関数である。
C-3-1. Concurrent rating:
It has already been described that the schema as the action description module has a Monitor function for making a situation judgment according to an external stimulus or a change in the internal state. The Monitor function is implemented by the schema having a Monitor function in the class object Schema Base. The Monitor function is a function that calculates the action value AL of the schema according to the external stimulus and the internal state.

図22に示したようなツリー構造を構成する場合、上位(親)のスキーマは外部刺激183と内部状態の変化184を引数として下位(子供)のスキーマのMonitor関数をコールすることができ、子供のスキーマは行動価値ALを返り値とする。また、スキーマは自分の行動価値ALを算出するために、更に子供のスキーマのMonitor関数をコールすることができる。そして、ルートのスキーマ2011〜2031には各サブツリーからの行動価値ALが返されるので、外部刺激183と内部状態の変化184に応じた最適なスキーマすなわち動作を統合的に判断することができる。   When the tree structure as shown in FIG. 22 is configured, the upper (parent) schema can call the Monitor function of the lower (child) schema with the external stimulus 183 and the change 184 of the internal state as arguments. Returns the action value AL as the return value. In addition, the schema can further call the Monitor function of the child's schema to calculate its own action value AL. Then, since the action value AL from each subtree is returned to the root schemas 2011 to 2031, it is possible to integrally determine the optimal schema, that is, the operation according to the external stimulus 183 and the change 184 of the internal state.

このようにツリー構造になっていることから、外部刺激183と内部状態の変化184による各スキーマの評価は、まずツリー構造の下から上に向かってConcurrentに行なわれる。すなわち、スキーマに子供スキーマがある場合には、選択した子供のMonitor関数をコールしてから、自身のMonitor関数を実行する。次いで、ツリー構造の上から下に向かって評価結果としての実行許可を渡していく。評価と実行は、その動作が用いるリソースの競合を解きながら行なわれる。   Because of the tree structure, the evaluation of each schema by the external stimulus 183 and the change 184 of the internal state is first performed on the current from the bottom of the tree structure to the top. That is, when the child schema exists in the schema, the Monitor function of the selected child is called, and then the own Monitor function is executed. Next, an execution permission as an evaluation result is passed from top to bottom of the tree structure. Evaluation and execution are performed while resolving contention for resources used by the operation.

本実施形態に係る状況依存行動階層102は、スキーマのツリー構造を利用して、並列的に行動の評価を行なうことができるので、外部刺激183や内部状態の変化184などの状況に対しての適応性がある。また、評価時には、ツリー全体に関しての評価を行ない、このとき算出される行動価値ALによりツリーが変更されるので、スキーマすなわち実行する動作を動的にプライオリタイズすることができる。   The situation-dependent behavior hierarchy 102 according to the present embodiment can evaluate behavior in parallel by using a tree structure of a schema, so that the situation such as an external stimulus 183 or a change 184 of an internal state can be evaluated. Be adaptive. In addition, at the time of evaluation, evaluation is performed on the entire tree, and the tree is changed by the action value AL calculated at this time, so that the schema, that is, the operation to be executed can be dynamically prioritized.

C−3−2.Concurrentな実行:
ルートのスキーマには各サブツリーからの行動価値ALが返されるので、外部刺激183と内部状態の変化184に応じた最適なスキーマすなわち動作を統合的に判断することができる。例えば行動価値ALが最も高いスキーマを選択したり、行動価値ALが所定の閾値を越えた2以上のスキーマを選択して並列的に行動実行したりするようにしてもよい(但し、並列実行するときは各スキーマどうしでハードウェア・リソースの競合がないことを前提とする)。
C-3-2. Concurrent execution:
Since the action value AL from each subtree is returned to the root schema, an optimal schema, that is, an operation according to the external stimulus 183 and the change 184 of the internal state, that is, the operation can be determined in an integrated manner. For example, a schema with the highest action value AL may be selected, or two or more schemas with an action value AL exceeding a predetermined threshold may be selected and executed in parallel. Sometimes it is assumed that there is no hardware resource conflict between each schema).

選択され、実行許可をもらったスキーマは実行される。すなわち、実際にそのスキーマは更に詳細の外部刺激183や内部状態の変化184を観測して、コマンドを実行する。実行に関しては、ツリー構造の上から下に向かって順次すなわちConcurrentに行なわれる。即ち、スキーマに子供スキーマがある場合には、子供のActions関数を実行する。   The selected schema that has been granted execution permission is executed. That is, the schema actually observes the external stimulus 183 and internal state change 184 in more detail, and executes the command. Execution is performed sequentially from the top of the tree structure to the bottom, that is, Concurrent. That is, if the schema includes a child schema, the child's Actions function is executed.

Action関数は、スキーマ自身が持つ行動(動作)を記述したステートマシンを備えている。図22に示したようなツリー構造を構成する場合、親スキーマは、Action関数をコールして、子供スキーマの実行を開始したり中断させたりすることができる。   The Action function includes a state machine that describes an action (operation) of the schema itself. When constructing the tree structure as shown in FIG. 22, the parent schema can call the Action function to start or suspend the execution of the child schema.

本実施形態に係る状況依存行動階層(SBL)102は、スキーマのツリー構造を利用して、リソースが競合しない場合には、余ったリソースを使う他のスキーマを同時に実行することができる。但し、Goalまでに使用するリソースに対して制限を加えないと、ちぐはぐな行動出現が起きる可能性がある。状況依存行動階層102において決定された状況依存行動は、リソース・マネージャにより反射行動部(ReflexiveSBL)103による反射的行動とのハードウェア・リソースの競合の調停を経て、機体動作(Motion Controller)に適用される。   The context-dependent behavior hierarchy (SBL) 102 according to the present embodiment can execute another schema that uses the surplus resources at the same time by using the tree structure of the schema when resources do not conflict. However, if there is no restriction on the resources used up to Goal, an unusual behavior may occur. The context-dependent behavior determined in the context-dependent behavior hierarchy 102 is applied to the body operation (Motion Controller) through arbitration of competition of hardware resources with the reflex behavior by the reflex behavior unit (Reflexive SBL) 103 by the resource manager. Is done.

C−3−3.Preemption:
1度実行に移されたスキーマであっても、それよりも重要な(優先度の高い)行動があれば、スキーマを中断してそちらに実行権を渡さなければならない。また、より重要な行動が終了(完結又は実行中止等)したら、元のスキーマを再開して実行を続けることも必要である。
C-3-3. Preemption:
Even if a schema has been executed once, if there is a more important (higher priority) action, the schema must be interrupted and the execution right must be given to it. In addition, when more important actions are completed (completed or stopped), it is necessary to resume the original schema and continue the execution.

このような優先度に応じたタスクの実行は、コンピュータの世界におけるOS(オペレーティング・システム)のPreemptionと呼ばれる機能に類似している。OSでは、スケジュールを考慮するタイミングで優先度のより高いタスクを順に実行していくという方針である。   Executing a task according to such a priority is similar to a function called Preemption of an OS (Operating System) in the computer world. The OS has a policy of sequentially executing tasks with higher priorities at a timing when the schedule is considered.

これに対し、本実施形態に係るロボット装置1の制御システム10は、複数のオブジェクトにまたがるため、オブジェクト間での調停が必要になる。例えば反射行動を制御するオブジェクトである反射行動部103は、上位の状況依存行動を制御するオブジェクトである状況依存行動階層102の行動評価を気にせずに物を避けたり、バランスをとったりする必要がある。これは、実際に実行権を奪い取り実行を行なう訳であるが、上位の行動記述モジュール(SBL)に、実行権利が奪い取られたことを通知して、上位はその処理を行なうことによってPreemptiveな能力を保持する。   On the other hand, since the control system 10 of the robot apparatus 1 according to the present embodiment extends over a plurality of objects, arbitration between the objects is required. For example, the reflex action unit 103, which is an object for controlling reflex behavior, needs to avoid an object or balance without worrying about the behavior evaluation of the context-dependent behavior hierarchy 102, which is an object for controlling higher-level context-dependent behavior. is there. This means that the execution right is actually robbed and executed, but the upper-level behavior description module (SBL) is notified that the execution right has been robbed, and the higher-level behavior description module (SBL) performs the processing to obtain a preemptive capability. Hold.

また、状況依存行動層102内において、外部刺激183と内部状態の変化184に基づく行動価値ALの評価の結果、あるスキーマに実行許可がなされたとする。更に、その後の外部刺激183と内部状態の変化184に基づく行動価値ALの評価により、別のスキーマの重要度の方がより高くなったとする。このような場合、実行中のスキーマのActions関数を利用してSleep状態にして中断することにより、Preemptiveな行動の切り替えを行なうことができる。   It is also assumed that execution of a certain schema is permitted as a result of the evaluation of the action value AL based on the external stimulus 183 and the change 184 of the internal state in the context-dependent action layer 102. Further, it is assumed that the evaluation of the action value AL based on the external stimulus 183 and the change 184 of the internal state thereafter makes the importance of another schema higher. In such a case, by switching to the sleep state using the Actions function of the schema being executed, the preemptive behavior can be switched.

実行中のスキーマのActions()の状態を保存して、異なるスキーマのActions()を実行する。また、異なるスキーマのActions()が終了した後、中断されたスキーマのActions()を再度実行することができる。   Save the state of Actions () of the running schema and execute Actions () of a different schema. Also, after Actions () of a different schema is completed, Actions () of the suspended schema can be executed again.

また、実行中のスキーマのActions()を中断して、異なるスキーマに実行権が移動する前に、SleepActions()を実行する。例えば、ロボット装置1は、対話中にサッカーボールを見つけると、「ちょっと待ってね」と言って、サッカーすることができる。   Also, Actions () of the schema being executed is interrupted, and SleepActions () is executed before the execution right is transferred to a different schema. For example, if the robot apparatus 1 finds a soccer ball during a conversation, it can say, "Wait a moment" and play soccer.

C−3−4.Reentrant:
状況依存行動階層102を構成する各スキーマは、一種のサブルーチンである。スキーマは、複数の親からコールされた場合には、その内部状態を記憶するために、それぞれの親に対応した記憶空間を持つ必要がある。
C-3-4. Reentrant:
Each schema constituting the context-dependent behavior hierarchy 102 is a kind of subroutine. When a schema is called from a plurality of parents, it is necessary to have a storage space corresponding to each parent in order to store its internal state.

これは、コンピュータの世界では、OSが持つReentrant性に類似しており、本明細書ではスキーマのReentrant性と呼ぶ。図27に示したように、スキーマはクラス・オブジェクトで構成されており、クラス・オブジェクトのエンティティすなわちインスタンスをターゲット(Pronome)毎に生成することによりReentrant性が実現される。   This is similar to the reentrant property of the OS in the computer world, and is referred to as a schema reentrant property in this specification. As shown in FIG. 27, the schema is composed of class objects, and the reentrant property is realized by generating an entity, that is, an instance of the class object for each target (Pronome).

スキーマのReentrant性について、図28を参照しながらより具体的に説明する。Schema Handler212は、スキーマを管理するためのクラス・オブジェクトであり、SBL102を構成するスキーマのコンフィギュレーション情報をファイルとして保管している。システムの起動時に、Schema Handler212は、このコンフィギュレーション情報ファイルを読み込んで、SBL102内のスキーマ構成を構築する。図28に示す例では、Eat221やDialog222などの行動(動作)を規定するスキーマのエンティティがメモリ空間上にマッピングされているとする。   The reentrancy of the schema will be described more specifically with reference to FIG. The Schema Handler 212 is a class object for managing a schema, and stores configuration information of a schema configuring the SBL 102 as a file. When the system is started, the Schema Handler 212 reads this configuration information file and constructs a schema configuration in the SBL 102. In the example illustrated in FIG. 28, it is assumed that schema entities such as Eat 221 and Dialog 222 that define an action (operation) are mapped in the memory space.

ここで、外部刺激183と内部状態の変化184に基づく行動価値ALの評価により、スキーマDialog222に対してAというターゲット(Pronome)が設定されて、Dialog222が人物Aとの対話を実行するようになったとする。   Here, by evaluating the action value AL based on the external stimulus 183 and the change 184 of the internal state, a target (Pronom) of A is set for the schema Dialog 222, and the Dialog 222 executes a dialogue with the person A. Suppose.

そこに、人物Bがロボット装置1と人物Aとの対話に割り込み、その後、外部刺激183と内部状態の変化184に基づく行動価値ALの評価を行なった結果、Bとの対話を行なうスキーマ223の方がより優先度が高くなったとする。   Then, the person B interrupts the dialogue between the robot apparatus 1 and the person A, and then evaluates the action value AL based on the external stimulus 183 and the change 184 in the internal state. Assume that the priority is higher.

このような場合、Schema Handler212は、Bとの対話を行なうためのクラス継承した別のDialogエンティティ(インスタンス)をメモリ空間上にマッピングする。別のDialogエンティティを使用して、先のDialogエンティティとは独立して、Bとの対話を行なうことから、Aとの対話内容は破壊されずに済む。従って、DialogAはデータの一貫性を保持することができ、Bとの対話が終了すると、Aとの対話を中断した時点から再開することができる。   In such a case, the Schema Handler 212 maps another Dialog entity (instance) inheriting a class for interacting with B on the memory space. Since the conversation with B is performed using another Dialog entity independently of the previous Dialog entity, the contents of the conversation with A are not destroyed. Therefore, DialogA can maintain data consistency, and when the conversation with B ends, the dialogue with A can be resumed from the point of interruption.

Readyリスト内のスキーマは、その対象物(外部刺激183)に応じて評価すなわち行動価値ALの計算が行なわれ、実行権が引き渡される。その後、Readyリスト内に移動したスキーマのインスタンスを生成して、これ以外の対象物に対して評価を行なう。これにより、同一のスキーマをactive又はsleep状態にすることができる。   The schema in the Ready list is evaluated according to the object (external stimulus 183), that is, the action value AL is calculated, and the execution right is delivered. After that, an instance of the schema moved in the Ready list is generated, and the other objects are evaluated. Thereby, the same schema can be set to the active or sleep state.

以上のような制御システムを実現する制御プログラムは、上述したように、予めフラッシュROM23に格納されており、ロボット装置1の電源投入初期時において読み出される。このようにしてこのロボット装置1においては、自己及び周囲の状況や、使用者からの指示及び働きかけに応じて自律的に行動し得るようになされている。   As described above, the control program for realizing the control system as described above is stored in the flash ROM 23 in advance, and is read at the initial stage of turning on the power of the robot apparatus 1. In this way, the robot apparatus 1 can autonomously act according to the situation of itself and the surroundings, and instructions and actions from the user.

以上、特定の実施例を参照しながら、本発明について詳解してきた。しかしながら、本発明の要旨を逸脱しない範囲で当業者が該実施例の修正や代用を成し得ることは自明である。   The present invention has been described in detail with reference to the specific embodiments. However, it is obvious that those skilled in the art can modify or substitute the embodiment without departing from the spirit of the present invention.

本発明の要旨は、必ずしも「ロボット」と称される製品には限定されない。すなわち、電気的若しくは磁気的な作用を用いて人間の動作に似せた運動を行なう機械装置あるいはその他一般的な移動体装置であるならば、例えば玩具などのような他の産業分野に属する製品であっても、同様に本発明を適用することができる。   The gist of the present invention is not necessarily limited to products called “robots”. In other words, if it is a mechanical device or other general mobile device that performs motion similar to human motion using electric or magnetic action, it is a product belonging to another industrial field such as a toy. Even if there is, the present invention can be similarly applied.

要するに、例示という形態で本発明を開示してきたのであり、本明細書の記載内容を限定的に解釈するべきではない。本発明の要旨を判断するためには、冒頭に記載した特許請求の範囲の欄を参酌すべきである。   In short, the present invention has been disclosed by way of example, and the contents described in this specification should not be interpreted in a limited manner. In order to determine the gist of the present invention, the claims described at the beginning should be considered.

本発明の実施の形態のロボット装置の外観を示す斜視図である。FIG. 1 is a perspective view illustrating an appearance of a robot device according to an embodiment of the present invention. 本発明の実施の形態におけるロボット装置の機能構成を模式的に示すブロック図である。FIG. 2 is a block diagram schematically illustrating a functional configuration of the robot device according to the embodiment of the present invention. 本発明の実施の形態における制御ユニットの構成を更に詳細に示すブロック図である。FIG. 2 is a block diagram illustrating a configuration of a control unit according to the embodiment of the present invention in further detail. 本発明の実施の形態におけるロボット装置の制御システムにおいて、各行動に対応する行動価値を算出してこれに基づき行動出力する処理を行う行動選択制御システム部分を示す模式図である。FIG. 4 is a schematic diagram showing an action selection control system portion that performs a process of calculating an action value corresponding to each action and outputting an action based on the action value in the control system of the robot apparatus according to the embodiment of the present invention. 上図の行動価値算出部が内部状態及び外部刺激から行動価値ALを算出する処理の流れを示す模式図である。It is a schematic diagram which shows the flow of the process which the action value calculation part of an upper figure calculates the action value AL from an internal state and an external stimulus. 横軸に内部状態ベクトルIntVの各成分をとり、縦軸に欲求値ベクトルInsVの各成分をとって、内部状態と欲求値との関係を示すグラフ図である。FIG. 7 is a graph showing the relationship between an internal state and a desire value, with the horizontal axis representing each component of the internal state vector IntV and the vertical axis representing each component of the desire value vector InsV. 行動価値算出データベースにおける行動価値算出データを示す図である。It is a figure which shows the action value calculation data in an action value calculation database. 横軸にIntV_NOURISHMENT(栄養状態)、縦軸に内部状態「栄養状態」に対する満足度S_NOURISHMENTをとり、内部状態と満足度との関係を示すグラフ図である。FIG. 7 is a graph showing the relationship between the internal state and the degree of satisfaction, with IntV_NOURISHMENT (nutritional state) on the horizontal axis and the degree of satisfaction S_NOURISHMENT for the internal state “nutritional state” on the vertical axis. 横軸にIntV_FATIGUE(疲れ)、縦軸に内部状態「疲れ」に対する満足度S_FATIGUEをとって、内部状態と満足度との関係を示すグラフ図である。It is a graph which shows the relationship between an internal state and a satisfaction degree, taking IntV_FATIGUE (fatigue) on a horizontal axis and satisfaction S_FATIGUE for an internal state "fatigue" on a vertical axis. (a)及び(b)は夫々内部状態「栄養状態」(「NOURISHMENT」)及び「疲れ」(「FATIGUE」)の予想内部状態変化を求める場合の行動価値算出データ構造の一例を示す図である。(A) And (b) is a figure which shows an example of the action value calculation data structure at the time of calculating | requiring the expected internal state change of an internal state "nutrition state" ("NOURISHMENT") and "fatigue" ("FATIGUE"), respectively. . 1次元の外部刺激の線形補間方法を説明する図である。FIG. 4 is a diagram illustrating a linear interpolation method of a one-dimensional external stimulus. 2次元の外部刺激の線形補間方法を説明する図である。FIG. 7 is a diagram illustrating a linear interpolation method of a two-dimensional external stimulus. 本発明の実施の形態におけるロボット装置の制御システムにおいて、外部刺激が入力されてから行動価値算出データベースの学習を行うまでの流れを示す模式図である。FIG. 5 is a schematic diagram showing a flow from input of an external stimulus to learning of an action value calculation database in the control system of the robot device according to the embodiment of the present invention. 1次元外部刺激の予想内部状態変化の更新例を説明する図である。FIG. 11 is a diagram illustrating an example of updating a predicted internal state change of a one-dimensional external stimulus. 2次元外部刺激の予想内部状態変化の更新例を説明する図である。It is a figure explaining an example of updating of an expected internal state change of a two-dimensional external stimulus. 学習により、発現された行動結果に応じて行動価値算出データベースを更新する方法を示すフローチャートである。It is a flowchart which shows the method of updating the action value calculation database according to the action result expressed by learning. 行動価値算出部における行動価値算出方法を示すフローチャートである。5 is a flowchart illustrating a behavior value calculation method in a behavior value calculation unit. 本発明の具体例におけるロボット装置の行動制御システムの機能構成を示す模式図である。It is a schematic diagram which shows the functional structure of the action control system of the robot apparatus in the specific example of this invention. 本発明の具体例における行動制御システムのオブジェクト構成を示す模式図である。It is a schematic diagram which shows the object structure of the action control system in the example of this invention. 本発明の具体例における状況依存行動階層による状況依存行動制御の形態を示す模式図である。It is a schematic diagram which shows the form of the situation dependent action control by the situation dependent action hierarchy in the specific example of the present invention. 状況依存行動階層が複数のスキーマによって構成されている様子を示す模式図である。It is a schematic diagram which shows a mode that a situation dependent action hierarchy is comprised by a some schema. 状況依存行動階層におけるスキーマのツリー構造を示す模式図である。It is a schematic diagram which shows the tree structure of the schema in a situation dependent action hierarchy. 状況依存行動階層において通常の状況依存行動を制御するためのメカニズムを示す模式図である。It is a schematic diagram which shows the mechanism for controlling normal context-dependent behavior in a context-dependent behavior hierarchy. 反射行動部におけるスキーマの構成を示す模式図である。It is a schematic diagram which shows the structure of the schema in a reflex action part. 反射行動部により反射的行動を制御するためのメカニズムを示す模式図である。It is a schematic diagram which shows the mechanism for controlling a reflex action by a reflex action part. 状況依存行動階層において使用されるスキーマのクラス定義を示す模式図である。It is a schematic diagram which shows the class definition of the schema used in a situation dependent action hierarchy. 状況依存行動階層内のクラスの機能的構成を示す模式図である。It is a schematic diagram which shows the functional structure of the class in a situation dependent action hierarchy. スキーマのReentrant性を説明する図である。FIG. 4 is a diagram for explaining the reentrant property of a schema. 行動価値算出データベース121の他の利用方法を説明するための図である。It is a figure for explaining other use methods of action value calculation database 121. SoftMaxによる行動選択時におけるボルツマン温度の影響を説明するための図である。It is a figure for explaining the influence of Boltzmann temperature at the time of action selection by SoftMax. 図31は、スキーマの内部構成を模式的に示している。FIG. 31 schematically shows the internal structure of the schema. 図32は、Monitor関数の内部構成を模式的に示した図である。FIG. 32 is a diagram schematically illustrating an internal configuration of the Monitor function. 図33は、行動状態制御部の構成例を模式的に示した図である。FIG. 33 is a diagram schematically illustrating a configuration example of an action state control unit. 図34は、行動状態制御部の他の構成例を模式的に示した図である。FIG. 34 is a diagram schematically illustrating another configuration example of the behavior state control unit.

符号の説明Explanation of reference numerals

1…ロボット装置
10…制御システム
15…CCDカメラ
16…マイクロフォン
17…スピーカ
18…タッチ・センサ
19…LEDインジケータ
20…制御部
21…CPU
22…RAM
23…ROM
24…不揮発メモリ
25…インターフェース
26…無線通信インターフェース
27…ネットワーク・インターフェース・カード
28…バス
29…キーボード
40…入出力部
50…駆動部
51…モータ
52…エンコーダ
53…ドライバ
81…視覚認識機能部
82…聴覚認識機能部
83…接触認識機能部
91…内部状態管理部
92…短期記憶部(STM)
93…長期記憶部(LTM)
100…行動選択制御システム
101…熟考行動階層
102…状況依存行動階層(SBL)
103…反射行動部
120…行動価値算出部
121…行動値算出データベース
130…行動選択部
132…要素行動
140…学習部
DESCRIPTION OF SYMBOLS 1 ... Robot apparatus 10 ... Control system 15 ... CCD camera 16 ... Microphone 17 ... Speaker 18 ... Touch sensor 19 ... LED indicator 20 ... Control part 21 ... CPU
22 ... RAM
23… ROM
24 nonvolatile memory 25 interface 26 wireless communication interface 27 network interface card 28 bus 29 keyboard 40 input / output unit 50 driving unit 51 motor 52 encoder 53 driver 81 visual recognition function unit 82 ... Hearing recognition function unit 83 ... Touch recognition function unit 91 ... Internal state management unit 92 ... Short term storage unit (STM)
93 ... Long term memory (LTM)
100: Behavior selection control system 101: Reflection behavior hierarchy 102: Situation-dependent behavior hierarchy (SBL)
103 ... reflex action unit 120 ... action value calculation unit 121 ... action value calculation database 130 ... action selection unit 132 ... element action 140 ... learning unit

Claims (25)

内部状態及び外部刺激に基づいて自律的に行動を選択し発現するロボット装置において、
所定の内部状態及び外部刺激が対応付けられた行動が記述された複数の行動記述モジュールと、
入力される外部刺激と、行動発現後に変化すると予想される予想内部状態変化とを対応付けたデータ形式からなる行動価値算出データベースと、
内部状態及び外部刺激から前記行動価値算出データベースを参照し、内部状態に対応付けられた行動に対する欲求値及び内部状態に基づく満足度を求め、現在の内部状態から求まる欲求値と、予想内部状態変化から求まる予想満足度変化とに基づいて、前記の各行動記述モジュールに記述された行動の行動価値を算出する行動価値算出手段と、
該算出された行動価値に基づいて行動記述モジュールを選択し、該選択された行動記述モジュールに記述された行動を発現させる行動選択手段と、
を具備することを特徴とするロボット装置。
In a robot device that autonomously selects and expresses an action based on an internal state and an external stimulus,
A plurality of action description modules in which actions associated with a predetermined internal state and an external stimulus are described,
An action value calculation database having a data format in which an input external stimulus is associated with an expected internal state change expected to change after the action is expressed,
The action value calculation database is referred to from the internal state and the external stimulus, the desire value for the action associated with the internal state and the degree of satisfaction based on the internal state are obtained, the desire value obtained from the current internal state, and the expected internal state change Action value calculating means for calculating the action value of the action described in each of the action description modules based on the expected satisfaction degree change obtained from
Action selecting means for selecting an action description module based on the calculated action value, and expressing the action described in the selected action description module;
A robot device comprising:
前記行動選択手段により選択された行動発現後の結果に基づいて実際に得られる内部状態変化量に基づいて、前記前記行動価値算出データベース内の該当する予想内部状態変化を更新する学習手段をさらに備える、
ことを特徴とする請求項1に記載のロボット装置。
A learning unit that updates a corresponding expected internal state change in the action value calculation database based on an internal state change amount actually obtained based on a result after the action expression selected by the action selection unit. ,
The robot device according to claim 1, wherein:
前記行動価値算出手段は、現在の内部状態から求まる欲求値と、現在の内部状態から求まる満足度と、予想満足度変化とに基づいて、前記の各行動記述モジュールに記述された行動に対する行動価値を算出する、
ことを特徴とする請求項1に記載のロボット装置。
The action value calculating means, based on the desire value obtained from the current internal state, the degree of satisfaction obtained from the current internal state, and the change in expected satisfaction, sets the action value for the action described in each of the action description modules. Calculate
The robot device according to claim 1, wherein:
前記行動価値算出データベースは、外部刺激の値に対応付けられた予想内部状態変化を有する、
ことを特徴とする請求項1に記載のロボット装置。
The action value calculation database has a predicted internal state change associated with the value of the external stimulus,
The robot device according to claim 1, wherein:
前記行動価値算出手段は、前記行動価値算出データベースにはない値が入力された場合は、線形モデルを使用し線形補間を行なって予想内部状態変化を算出する、
ことを特徴とする請求4に記載のロボット装置。
When a value that is not in the action value calculation database is input, the action value calculation unit calculates a predicted internal state change by performing linear interpolation using a linear model.
The robot device according to claim 4, wherein:
前記行動選択手段は、候補である行動のうち前記行動価値算出手段により算出された行動価値が最大のものを常に選択する、
ことを特徴とする請求項1に記載のロボット装置。
The action selecting means always selects the action having the largest action value calculated by the action value calculating means from the candidate actions,
The robot device according to claim 1, wherein:
前記行動選択手段は、前記行動価値算出手段により算出された行動価値に依らず、候補である行動の中から無作為に選択する、
ことを特徴とする請求項1に記載のロボット装置。
The action selecting means randomly selects from the candidate actions, regardless of the action value calculated by the action value calculating means,
The robot device according to claim 1, wherein:
前記行動選択手段は、前記行動価値算出手段により算出された行動価値に応じた確率に従って、候補である行動の中から選択する、
ことを特徴とする請求項1に記載のロボット装置。
The action selecting means selects from among actions that are candidates according to the probability according to the action value calculated by the action value calculating means,
The robot device according to claim 1, wherein:
前記行動価値算出データベースは、前記の各行動記述モジュールに記述された行動と、外部刺激としての対象物が持つ特性と、内部状態の組として、前記データ形式を管理する、
ことを特徴とする請求項1に記載のロボット装置。
The action value calculation database manages the data format as a set of an action described in each of the action description modules, a property of an object as an external stimulus, and an internal state,
The robot device according to claim 1, wherein:
前記行動価値算出手段は、前記の各行動記述モジュールに記述された行動をインデックスとして前記行動価値算出データベースを検索し、外部刺激としての対象物の特性から内部状態を決定する、
ことを特徴とする請求項9に記載のロボット装置。
The action value calculation unit searches the action value calculation database using the action described in each of the action description modules as an index, and determines an internal state from characteristics of the target object as an external stimulus.
The robot device according to claim 9, wherein:
前記行動価値算出手段は、外部刺激としての対象物が持つある特性をインデックスとして前記行動価値算出データベースを検索し、内部状態を決定する、
ことを特徴とする請求項9に記載のロボット装置。
The action value calculation unit searches the action value calculation database using a certain characteristic of the object as an external stimulus as an index, and determines an internal state.
The robot device according to claim 9, wherein:
前記行動価値算出手段は、行動又は外部刺激としての対象物が持つその他の特性を任意に値に設定し又は平均化し、対象物に抽象的な価値を与える、
ことを特徴とする請求項11に記載のロボット装置。
The behavioral value calculating means arbitrarily sets or averages the behavior or other characteristics of the object as an external stimulus to a value, and gives the object an abstract value.
The robot device according to claim 11, wherein:
内部状態及び外部刺激に基づいて自律的に行動を選択して発現するロボット装置の行動制御方法において、各行動は所定の内部状態及び外部刺激と対応付けられた行動記述モジュールとして記述され、
入力される外部刺激と、行動発現後に変化すると予想される予想内部状態変化とを対応付けたデータ形式からなる行動価値算出データベースを管理するステップと、
内部状態及び外部刺激から前記行動価値算出データベースを参照し、内部状態に対応付けられた行動に対する欲求値及び内部状態に基づく満足度を求め、現在の内部状態から求まる欲求値と、予想内部状態変化から求まる予想満足度変化とに基づいて、前記の各行動記述モジュールに記述された行動の行動価値を算出する行動価値算出ステップと、
該算出された行動価値に基づいて行動記述モジュールを選択し、該選択された行動記述モジュールに記述された行動を発現させる行動選択ステップと、
該選択された行動発現後の結果に基づいて行動価値算出データベースを更新する学習ステップと、
ことを特徴とするロボット装置の行動制御方法。
In a behavior control method of a robot device that autonomously selects and expresses an action based on an internal state and an external stimulus, each action is described as an action description module associated with a predetermined internal state and an external stimulus,
A step of managing an action value calculation database having a data format in which the input external stimulus and the expected internal state change expected to change after the action is expressed,
The action value calculation database is referred to from the internal state and the external stimulus, the desire value for the action associated with the internal state and the degree of satisfaction based on the internal state are obtained, the desire value obtained from the current internal state, and the expected internal state change An action value calculating step of calculating an action value of the action described in each of the action description modules based on the expected satisfaction degree change obtained from
Selecting an action description module based on the calculated action value, and an action selection step of expressing the action described in the selected action description module;
A learning step of updating an action value calculation database based on the selected result after the action is expressed;
A behavior control method for a robot device, comprising:
前記行動選択ステップにおいて選択された行動発現後の結果に基づいて実際に得られる内部状態変化量に基づいて、前記前記行動価値算出データベース内の該当する予想内部状態変化を更新する学習ステップをさらに備える、
ことを特徴とする請求項13に記載のロボット装置の行動制御方法。
The method further includes a learning step of updating a corresponding expected internal state change in the action value calculation database based on an internal state change amount actually obtained based on the result after the action expression selected in the action selection step. ,
The behavior control method for a robot device according to claim 13, wherein:
上記行動価値算出ステップでは、現在の内部状態から求まる欲求値と、現在の内部状態から求まる満足度と、予想満足度変化とに基づいて、前記の各行動記述モジュールに記述された行動に対する行動価値を算出する、
ことを特徴とする請求項13に記載のロボット装置の行動制御方法。
In the action value calculating step, the action value for the action described in each of the action description modules is based on the desire value obtained from the current internal state, the degree of satisfaction obtained from the current internal state, and the expected degree of satisfaction change. Calculate
The behavior control method for a robot device according to claim 13, wherein:
前記行動価値算出データベースは、外部刺激の値に対応付けられた予想内部状態変化を有する、
ことを特徴とする請求項13に記載のロボット装置の行動制御方法。
The action value calculation database has a predicted internal state change associated with the value of the external stimulus,
The behavior control method for a robot device according to claim 13, wherein:
前記行動価値算出ステップでは、前記行動価値算出データベースにはない値が入力された場合は、線形モデルを使用し線形補間を行なって予想内部状態変化が算出する、
ことを特徴とする請求項16に記載のロボット装置の行動制御方法。
In the action value calculation step, when a value that is not in the action value calculation database is input, a predicted internal state change is calculated by performing linear interpolation using a linear model.
The behavior control method for a robot device according to claim 16, wherein:
前記行動選択ステップでは、候補である行動のうち前記行動価値算出ステップにより算出された行動価値が最大のものを常に選択する、
ことを特徴とする請求項13に記載のロボット装置の行動制御方法。
In the action selection step, always select the action having the largest action value calculated in the action value calculation step among the actions that are candidates,
The behavior control method for a robot device according to claim 13, wherein:
前記行動選択ステップでは、前記行動価値算出ステップにより算出された行動価値に依らず、候補である行動の中から無作為に選択する、
ことを特徴とする請求項13に記載のロボット装置の行動制御方法。
In the action selection step, regardless of the action value calculated in the action value calculation step, randomly select from the candidate actions,
The behavior control method for a robot device according to claim 13, wherein:
前記行動選択ステップでは、前記行動価値算出ステップにより算出された行動価値に応じた確率に従って、候補である行動の中から選択する、
ことを特徴とする請求項13に記載のロボット装置の行動制御方法。
In the action selection step, according to the probability according to the action value calculated in the action value calculation step, to select from the candidate actions,
The behavior control method for a robot device according to claim 13, wherein:
前記の行動価値算出データベースを管理するステップでは、前記の各行動記述モジュールに記述された行動と、外部刺激としての対象物が持つ特性と、内部状態の組として、前記データ形式を管理する、
ことを特徴とする請求項13に記載のロボット装置の行動制御方法。
In the step of managing the action value calculation database, the data format is managed as a set of an action described in each of the action description modules, a property of an object as an external stimulus, and an internal state,
The behavior control method for a robot device according to claim 13, wherein:
前記行動価値算出ステップでは、前記の各行動記述モジュールに記述された行動をインデックスとして前記行動価値算出データベースを検索し、外部刺激としての対象物の特性から内部状態を決定する、
ことを特徴とする請求項21に記載のロボット装置の行動制御方法。
In the action value calculation step, the action value calculation database is searched using the action described in each of the action description modules as an index, and an internal state is determined from characteristics of the object as an external stimulus.
22. The method according to claim 21, wherein the action is controlled by the robot apparatus.
前記行動価値算出ステップでは、外部刺激としての対象物が持つある特性をインデックスとして前記行動価値算出データベースを検索し、内部状態を決定する、
ことを特徴とする請求項21に記載のロボット装置の行動制御方法。
In the action value calculation step, the action value calculation database is searched using a certain characteristic of an object as an external stimulus as an index, and an internal state is determined.
22. The method according to claim 21, wherein the action is controlled by the robot apparatus.
前記行動価値算出ステップでは、行動又は外部刺激としての対象物が持つその他の特性を任意に値に設定し又は平均化し、対象物に抽象的な価値を与える、
ことを特徴とする請求項23に記載のロボット装置の行動制御方法。
In the action value calculation step, arbitrarily set or average the value of the behavior or other characteristics of the object as an external stimulus, and give the object an abstract value,
The method of controlling a behavior of a robot device according to claim 23, wherein:
内部状態及び外部刺激に基づいて自律的に行動を選択して発現するためのロボット装置の行動制御をコンピュータ・システム上で実行するようにコンピュータ可読形式で記述されたコンピュータ・プログラムにおいて、
所定の内部状態及び外部刺激が対応付けられた行動が記述された複数の行動記述モジュールと、
入力される外部刺激と、行動発現後に変化すると予想される予想内部状態変化とを対応付けたデータ形式からなる行動価値算出データベースを管理するステップと、
内部状態及び外部刺激から前記行動価値算出データベースを参照し、内部状態に対応付けられた行動に対する欲求値及び内部状態に基づく満足度を求め、現在の内部状態から求まる欲求値と、予想内部状態変化から求まる予想満足度変化とに基づいて、前記の各行動記述モジュールに記述された行動の行動価値を算出する行動価値算出ステップと、
該算出された行動価値に基づいて行動記述モジュールを選択し、該選択された行動記述モジュールに記述された行動を発現させる行動選択ステップと、
該選択された行動発現後の結果に基づいて行動価値算出データベースを更新する学習ステップと、
ことを特徴とするコンピュータ・プログラム。
A computer program written in a computer-readable form to execute on a computer system an action control of a robot apparatus for selecting and expressing an action autonomously based on an internal state and an external stimulus,
A plurality of action description modules in which actions associated with a predetermined internal state and an external stimulus are described,
A step of managing an action value calculation database having a data format in which the input external stimulus and the expected internal state change expected to change after the action is expressed,
The action value calculation database is referred to from the internal state and the external stimulus, the desire value for the action associated with the internal state and the degree of satisfaction based on the internal state are obtained, the desire value obtained from the current internal state, and the expected internal state change An action value calculating step of calculating an action value of the action described in each of the action description modules based on the expected satisfaction degree change obtained from
Selecting an action description module based on the calculated action value, and an action selection step of expressing the action described in the selected action description module;
A learning step of updating an action value calculation database based on the selected result after the action is expressed;
A computer program characterized by the above-mentioned.
JP2004068133A 2003-03-11 2004-03-10 Information processing apparatus, action control method for robot apparatus, robot apparatus, and computer program Expired - Fee Related JP4552465B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004068133A JP4552465B2 (en) 2003-03-11 2004-03-10 Information processing apparatus, action control method for robot apparatus, robot apparatus, and computer program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2003065586 2003-03-11
JP2004068133A JP4552465B2 (en) 2003-03-11 2004-03-10 Information processing apparatus, action control method for robot apparatus, robot apparatus, and computer program

Publications (3)

Publication Number Publication Date
JP2004291228A true JP2004291228A (en) 2004-10-21
JP2004291228A5 JP2004291228A5 (en) 2007-04-19
JP4552465B2 JP4552465B2 (en) 2010-09-29

Family

ID=33421555

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004068133A Expired - Fee Related JP4552465B2 (en) 2003-03-11 2004-03-10 Information processing apparatus, action control method for robot apparatus, robot apparatus, and computer program

Country Status (1)

Country Link
JP (1) JP4552465B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100909532B1 (en) * 2007-02-07 2009-07-27 삼성전자주식회사 Method and device for learning behavior of software robot
US7984013B2 (en) 2007-02-07 2011-07-19 Samsung Electronics Co., Ltd Method and apparatus for learning behavior in software robot
JP2013208681A (en) * 2012-03-30 2013-10-10 Fujitsu Ltd Interaction device and interaction control program
JP2017200718A (en) * 2016-05-05 2017-11-09 トヨタ自動車株式会社 Adaptation of object hand-over from robot to human based on cognitive affordance

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7312511B1 (en) 2023-02-17 2023-07-21 独立行政法人国立高等専門学校機構 Behavior control method, behavior control program, behavior control device, and communication robot

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002239952A (en) * 2001-02-21 2002-08-28 Sony Corp Robot device, action control method for robot device, program, and recording medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002239952A (en) * 2001-02-21 2002-08-28 Sony Corp Robot device, action control method for robot device, program, and recording medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100909532B1 (en) * 2007-02-07 2009-07-27 삼성전자주식회사 Method and device for learning behavior of software robot
US7984013B2 (en) 2007-02-07 2011-07-19 Samsung Electronics Co., Ltd Method and apparatus for learning behavior in software robot
JP2013208681A (en) * 2012-03-30 2013-10-10 Fujitsu Ltd Interaction device and interaction control program
JP2017200718A (en) * 2016-05-05 2017-11-09 トヨタ自動車株式会社 Adaptation of object hand-over from robot to human based on cognitive affordance

Also Published As

Publication number Publication date
JP4552465B2 (en) 2010-09-29

Similar Documents

Publication Publication Date Title
JP2004268235A (en) Robot device, its behavior control method and program
US7363108B2 (en) Robot and control method for controlling robot expressions
JP4244812B2 (en) Action control system and action control method for robot apparatus
US8145492B2 (en) Robot behavior control system and method, and robot apparatus
KR101137205B1 (en) Robot behavior control system, behavior control method, and robot device
JP2005193331A (en) Robot device and its emotional expression method
US20120232891A1 (en) Speech communication system and method, and robot apparatus
JP2006110707A (en) Robot device
JP3558222B2 (en) Robot behavior control system and behavior control method, and robot device
JP2007125631A (en) Robot device and motion control method
JP2004283958A (en) Robot device, method of controlling its behavior and program thereof
JP4552465B2 (en) Information processing apparatus, action control method for robot apparatus, robot apparatus, and computer program
JP2007125629A (en) Robot device and motion control method
JP4147960B2 (en) Robot apparatus and operation control method of robot apparatus
JP2004283957A (en) Robot device, method of controlling the same, and program
JP2004114285A (en) Robotic device and its behavior control method
JP2002205289A (en) Action control method for robot device, program, recording medium and robot device
JP2004283960A (en) Robot device, method of controlling behavior and program thereof
JP2005321954A (en) Robot device, information processing system, information processing method, and computer program
JP2001157980A (en) Robot device, and control method thereof
JP2004209599A (en) Robot device, action learning method for robot device and action preparation method for robot device
JP2005193330A (en) Robot device and its emotional expression method
JP2007125630A (en) Robot device and motion control method
JP2003266352A (en) Robot device and control method therefor
JP2004291147A (en) Robot&#39;s behavior control system

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070301

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070301

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100216

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100511

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100526

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100622

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100705

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130723

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130723

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees