|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.usar2004.agent.USAR2004BotController<BOT>
cz.cuni.amis.pogamut.usar2004.agent.module.logic.USAR2004BotLogicController
cz.cuni.amis.pogamut.usar2004.samples.P2DXLogicController
public class P2DXLogicController
P2DX robot utilizing logic controller. It drives to the most open direction and reverses if an obstacle is too close.
| Field Summary |
|---|
| Fields inherited from class cz.cuni.amis.pogamut.usar2004.agent.module.logic.USAR2004BotLogicController |
|---|
logicModule |
| Fields inherited from class cz.cuni.amis.pogamut.usar2004.agent.USAR2004BotController |
|---|
bot, user, USER_LOG_CATEGORY_ID |
| Constructor Summary | |
|---|---|
P2DXLogicController()
|
|
| Method Summary | |
|---|---|
void |
initializeController(USAR2004Bot bot)
Called during the construction of the UT2004Bot before the GameBots2004 greets the bot even before
IUT2004BotController#prepareBot(UT2004Bot) method. |
void |
logic()
this method is triggered by receipt of STA message. |
static void |
main(String[] args)
|
void |
prepareBot(USAR2004Bot bot)
Initialization of modules used within this robot. |
void |
RangesReady(ArrayList<Double> Ranges)
Devides ranges into thirds and decides which way to set motor speeds. |
void |
robotInitialized(NfoMessage nfom)
Method triggered after Game is initialized and STARTPOSES obtained. |
| Methods inherited from class cz.cuni.amis.pogamut.usar2004.agent.module.logic.USAR2004BotLogicController |
|---|
beforeFirstLogic, getLogicInitializeTime, getLogicShutdownTime, logicInitialize, logicShutdown |
| Methods inherited from class cz.cuni.amis.pogamut.usar2004.agent.USAR2004BotController |
|---|
getAct, getLog, getWorldView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public P2DXLogicController()
| Method Detail |
|---|
public void robotInitialized(NfoMessage nfom)
robotInitialized in interface IUSAR2004BotControllerrobotInitialized in class USAR2004BotControllernfom - NfoMessge containing STARTPOSESpublic void initializeController(USAR2004Bot bot)
IUSAR2004BotControllerUT2004Bot before the GameBots2004 greets the bot even before
IUT2004BotController#prepareBot(UT2004Bot) method.
NOTE: This is Pogamut's developers reserved method - do not override it and if you do, always use 'super' to call parent's initializeController.
initializeController in interface IUSAR2004BotControllerinitializeController in class USAR2004BotLogicControllerpublic void prepareBot(USAR2004Bot bot)
prepareBot in interface IUSAR2004BotControllerprepareBot in class USAR2004BotControllerbot - Necessary parameter for hooking listeners and for sending
commandspublic void logic()
logic in interface cz.cuni.amis.pogamut.base.agent.module.IAgentLogiclogic in class USAR2004BotLogicControllerpublic void RangesReady(ArrayList<Double> Ranges)
Ranges - list of ranges from Range scanner.public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||