cz.cuni.amis.pogamut.usar2004.agent.module.nfo
Class NfoStartPoses

Package class diagram package NfoStartPoses
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT>
      extended by cz.cuni.amis.pogamut.base.agent.module.SensorModule<USAR2004Bot>
          extended by cz.cuni.amis.pogamut.usar2004.agent.module.nfo.SuperNfo
              extended by cz.cuni.amis.pogamut.usar2004.agent.module.nfo.NfoStartPoses
All Implemented Interfaces:
cz.cuni.amis.pogamut.base.component.IComponent

public class NfoStartPoses
extends SuperNfo

Nfo message representative for Start Poses.

Author:
vejmanm

Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.usar2004.agent.module.nfo.SuperNfo
lastMessage, nfoListener
 
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensorModule
worldView
 
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule
agent, controller, eventBus, log
 
Constructor Summary
NfoStartPoses(USAR2004Bot bot)
          Ctor.
 
Method Summary
 List<StartPose> getStartPoses()
          GETSTARTPOSES will cause receipt of the NFO message with potencial Locations for spawning a robot.
 int getStartPosesSize()
          StartPoseCount is the number of starting positions available.
 
Methods inherited from class cz.cuni.amis.pogamut.usar2004.agent.module.nfo.SuperNfo
cleanUp, isReady
 
Methods inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule
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

NfoStartPoses

public NfoStartPoses(USAR2004Bot bot)
Ctor. Nfo type describes particular subject about which we want to know about. It is used to distinguish incoming message from the server.

Parameters:
bot - USAR2004Bot variable for filling base class.
Method Detail

getStartPosesSize

public int getStartPosesSize()
StartPoseCount is the number of starting positions available. For every starting position you'll be able to receive it's tag, location and orientation:

Returns:
Returns number of availible start positions.

getStartPoses

public List<StartPose> getStartPoses()
GETSTARTPOSES will cause receipt of the NFO message with potencial Locations for spawning a robot.

Returns:
Returns list of possible starting positions.


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