cz.cuni.amis.pogamut.emohawk.agent.module.sensomotoric
Class Inventory

Package class diagram package Inventory
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT>
      extended by cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule<UT2004Bot>
          extended by cz.cuni.amis.pogamut.emohawk.agent.module.sensomotoric.Inventory
All Implemented Interfaces:
IComponent

public class Inventory
extends SensomotoricModule<UT2004Bot>

Module helping us handle items in UnrealEngine2Runtime.

Author:
knight

Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule
act, worldView
 
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule
agent, controller, eventBus, log
 
Constructor Summary
Inventory(UT2004Bot agent)
          Default constructor.
 
Method Summary
 GiveItemResult getLastGiveItemResult()
          Returns last result of give item command.
 void giveItem(Player pl, ItemTypeUE2 item)
          Gives item to input bot.
 void giveItem(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId id, ItemTypeUE2 item)
          Gives item to input bot.
 void pickItem(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId id)
          Picks item at the location of the bot - bot has to be touching the item.
 void putDownItem(ItemTypeUE2 item)
          Puts item down at the location of the bot.
 
Methods inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule
cleanUp, getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Inventory

public Inventory(UT2004Bot agent)
Default constructor.

Parameters:
agent -
Method Detail

getLastGiveItemResult

public GiveItemResult getLastGiveItemResult()
Returns last result of give item command.

Returns:

giveItem

public void giveItem(Player pl,
                     ItemTypeUE2 item)
Gives item to input bot. Bot has to within reach (200 ut units ~ 200 cm)!

Parameters:
pl -
item -

giveItem

public void giveItem(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId id,
                     ItemTypeUE2 item)
Gives item to input bot. Bot has to within reach (200 ut units ~ 200 cm)!

Parameters:
id -
item -

putDownItem

public void putDownItem(ItemTypeUE2 item)
Puts item down at the location of the bot.

Parameters:
item -

pickItem

public void pickItem(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId id)
Picks item at the location of the bot - bot has to be touching the item.

Parameters:
id -


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.