Changes between Version 1 and Version 2 of CommunicationInterface


Ignore:
Timestamp:
05/20/2009 05:43:20 PM (11 years ago)
Author:
nik
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CommunicationInterface

    v1 v2  
    11 
    2 [[Image()]] 
     2[[Image(comm.png)]] 
    33 
    4 3.1 FAtiMA: Maintains high-level memory; carries out cognitive appraisal; manages goals; affective states; generates plans (action sequences); monitors plan outcomes. The actions carried out by Fatima are higher level, for example “move to table” which is passed to ION (3.2) 
    54 
    6 3.2 ION (Java): Contains 3 sub-systems 
     5== 3.1 FAtiMA == 
     6Maintains high-level memory; carries out cognitive appraisal; manages goals; affective states; generates plans (action sequences); monitors plan outcomes. The actions carried out by Fatima are higher level, for example “move to table” which is passed to ION (3.2) 
    77 
    8 3.2.1 Commands translator and interpreter: Acts as an interface performing 2 main tasks: 
     8== 3.2 ION (Java) == 
     9Contains 3 sub-systems 
    910 
    10 1.Receives commands from FAtiMA e.g. “move to table” This sequence of actions is fed into competency manager (3.2.2)  
    11 2.Receives feedback from competency manager about success/failure of particular command and also interprets messages passed from Level2 through Message receiver (3.2.4) and reports it to FAtiMA. 
     11 
     12== 3.2.1 Commands translator and interpreter: == 
     13  
     14 
     15Acts as an interface performing 2 main tasks: 
     16 
     17 1.Receives commands from FAtiMA e.g. “move to table” This sequence of actions is fed into competency manager (3.2.2)  
     18 2.Receives feedback from competency manager about success/failure of particular command and also interprets messages passed from Level2 through Message receiver (3.2.4) and reports it to FAtiMA. 
    1219 
    1320Communication medium between ION (3.2) and FAtiMA (3.1) will be via socket messages. 
    14 3.3.2 Competency Manager: The competency manager accepts the action command from commands translator and interpreter (3.2.1) and formulates them into action sequence required in order to execute the command passed. The formulation of command involves mapping of competencies required to execute a particular command and creating a XML file with the required competencies.  
     21 
     22 
     23== 3.3.2 Competency Manager: == 
     24 
     25 The competency manager accepts the action command from commands translator and interpreter (3.2.1) and formulates them into action sequence required in order to execute the command passed. The formulation of command involves mapping of competencies required to execute a particular command and creating a XML file with the required competencies.  
    1526 
    1627Example1: To map a command like “move to table” to Level2 in XML 
    1728 
     29{{{ 
    1830<Navigation> 
     31  <Go-to place>Table</Go-to> 
     32  <emote value=100>Happy</emote> 
     33  <emote value=100>Confidence</emote> 
     34</Navigation> 
     35}} 
     36 
     37Example2: Expressive commands can also be passed explicitly as required 
     38 
     39{{{ 
     40<Behaviour> 
     41  <Behave value = 100>What Behaviour </Behave> 
     42  <emote value=100>Happy</emote> 
     43  <emote value=100>Confidence</emote> 
     44  <mode value=1>Awareness</mode> 
     45</Behaviour> 
     46}}} 
     47 
     48Note: Level3 will consist only abstract information about the companion and available competencies. For example Level3 will be aware if the companion is navigable and not care how the task is carried out. In case of robot,  navigation will be carried out by Level2 differently in comparison to handheld system. 
     49 
     50 
     51== 3.3.3 Message sender: == 
     52  
     53Sends the message in XML format to Level 2 Competencies execution/monitoring (2.1) 
     54 
     55 
     56== 3.3.4 Message receiver:  == 
     57  
     58Receives messages in XML format from Level 2 Competencies execution/monitoring (2.1) and passes it to Commands translator and interpreter (3.2.1). The message structure will be similar to said in Example1 
     59 
     60 
     61 
     62== 2.1 Competencies execution/monitoring: == 
     63  
     64Will be responsible for execution and monitoring the competencies and also monitoring of Level2 affective system. SAMGAR will provide some functionality to stop/pause a competency and also recognise errors within competencies and report it to Level3 via 2.1.1 
     65 
     66 
     67== 2.1.1 Message encryption/decryption: == 
     68  
     69This module will be responsible for encrypting/decrypting message in XML format to be sent/received to/from Level3 (3.2.4) For example in the receive case, the XML message passed will be first decrypted to call for required competencies with required parameter values. 
     70 
     71 
     72== 2.2.2: Local emotional/affective system: == 
     73  
     74Will represent the local affective state of the companions. This will also take into account Level2 memory which can hold state of affect for example frustration due to repeated failed attempts to complete a given task. 
     75 
     76Note: This affective states will be different from Level3 affective states represented in OCC model in FAtiMA 
     77 
     78 
     79== 2.2 Blackboard/Memory: == 
     80  
     81This unit can be perceived as Level2 memory which holds memory about the current state of the system and also important static information like the location of people, objects etc. 
     82 
     83This unit can be implemented as a singleton class where a common knowledge base, the "blackboard", can be iteratively updated by competencies allowing competencies to share data between each other. For example an image captured by the camera can be placed on the blackboard which can be used by face detect and colour recognition competence.  
     84 
     85Considering Example1, where a XML with embedded command “move to table” is passed, it can be decrypted to generate a sequence of competencies with required parameters using information on blackboard, refer the table 
     86 
     87{{{ 
     88XML message (3.2.3)   
    1989<Go-to place>Table</Go-to place> 
    2090<emote value=100>Happy</emote> 
     
    2292</Navigation> 
    2393 
    24 Example2: Expressive commands can also be passed explicitly as required 
    25  
    26 <Behaviour> 
    27 <Behave value = 100>What Behaviour </Behave> 
    28 <emote value=100>Happy  </emote> 
    29 <emote value=100>Confidence </emote> 
    30 <mode value=1>Awareness </mode> 
    31 </Behaviour> 
    32  
    33 Note: Level3 will consist only abstract information about the companion and available competencies. For example Level3 will be aware if the companion is navigable and not care how the task is carried out. In case of robot,  navigation will be carried out by Level2 differently in comparison to handheld system. 
    34  
    35 3.3.3 Message sender:  Sends the message in XML format to Level 2 Competencies execution/monitoring (2.1) 
    36  
    37 3.3.4 Message receiver:  Receives messages in XML format from Level 2 Competencies execution/monitoring (2.1) and passes it to Commands translator and interpreter (3.2.1). The message structure will be similar to said in Example1 
    38  
    39  
    40 2.1 Competencies execution/monitoring: Will be responsible for execution and monitoring the competencies and also monitoring of Level2 affective system. SAMGAR will provide some functionality to stop/pause a competency and also recognise errors within competencies and report it to Level3 via 2.1.1 
    41  
    42 2.1.1 Message encryption/decryption: This module will be responsible for encrypting/decrypting message in XML format to be sent/received to/from Level3 (3.2.4) For example in the receive case, the XML message passed will be first decrypted to call for required competencies with required parameter values. 
    43  
    44 2.2.2: Local emotional/affective system: Will represent the local affective state of the companions. This will also take into account Level2 memory which can hold state of affect for example frustration due to repeated failed attempts to complete a given task. 
    45  
    46 Note: This affective states will be different from Level3 affective states represented in OCC model in FAtiMA 
    47  
    48 2.2 Blackboard/Memory: This unit can be perceived as Level2 memory which holds memory about the current state of the system and also important static information like the location of people, objects etc. 
    49  
    50 This unit can be implemented as a singleton class where a common knowledge base, the "blackboard", can be iteratively updated by competencies allowing competencies to share data between each other. For example an image captured by the camera can be placed on the blackboard which can be used by face detect and colour recognition competence.  
    51  
    52 Considering Example1, where a XML with embedded command “move to table” is passed, it can be decrypted to generate a sequence of competencies with required parameters using information on blackboard, refer the table 
    53  
    54  
    55 XML message (3.2.3) 
    56 Competencies Sequence (2.1.1) 
    57 Black Board (2.2) 
    58 <Navigation> 
    59 <Go-to place>Table</Go-to place> 
    60 <emote value=100>Happy</emote> 
    61 <emote value=100>Confidence</emote> 
    62 </Navigation> 
     94Competencies Sequence (2.1.1)  
    6395Movement.go(current, Table) 
    6496Visual.Screen(HappyFace) 
    6597Confidence+=100 
    6698 
     99Black Board (2.2) 
    67100Location:Current: 150, 200 
    68101Location:Table: 200, 300 
    69102Confidence: 20 
    70103Obstacle: False 
    71 ……. 
     104 
     105}}} 
    72106 
    73107While the sequence is being executed, the competencies will update the blackboard in case of any dynamic events like obstacle is in the way (set Obstacle: True on blackboard), then the navigation competence can re-plan. 
    74108 
    75 1.1 Level1: Will contain programs to execute the competencies tied to resources on the particular platform 
     109 
     110== 1.1 Level1: == 
     111  
     112Will contain programs to execute the competencies tied to resources on the particular platform 
    76113 
    77114Communication medium between Level1 (1.1) and Level2 can be embedded inside the competence for example for Movement, Greta it will be BML for iCat some other format and for robots it will tie with API s/w provided for robot. 
    78115 
    79 [[Image()]]