[robocup-rescue-s] YAB-API: Strange crashes...

From: Christoph Spielmann <spielc@gmail.com>
Date: Mon 27 Feb 2006 - 20:40:13 GMT

Hi everybody!

I encountered some strange problems with the yab-api... Everytime i move
my firebrigade-agent onto a refuge there seems to be a deadlock... And
sometimes i encounter a deadlock when i use the
move(MotionlessPosition)-Method to move an agent to a
MotionlessPosition-Object other than a refuge during the simulation
itself, but that's really just occasional...

Here is the code-fragment that is responsible for the deadlock:

int
refugeid=Integer.parseInt(this.task[0].substring(this.task[0].indexOf("(")+1,this.task[0].indexOf(")")));
Refuge refuge=(Refuge)this.world.get(refugeid);
if (this.self().motionlessPosition().id!=refuge.entrance().id)
    return;
else if (this.self().motionlessPosition().id==refuge.entrance().id) {
    this.move(refuge); <-- that's the call before the crash
    System.out.println("Refill: moved into refuge!"); <-- We don't even
get here
}
else if (this.self().waterQuantity()>=this.tankSize*0.75) {
    this.task=null;
    this.move(refuge.entrance());
    return;
}
else {
    this.lastAction=this.action;
    this.action=AgentInterface.REFILL_ACTION;
    this.rest();
}

Any ideas what could be the problem?

Regards,

Christoph Spielmann
_______________________________________________
robocup-rescue-s mailing list
robocup-rescue-s@mailman.cc.gatech.edu
https://mailman.cc.gatech.edu/mailman/listinfo/robocup-rescue-s
Received on Mon Feb 27 22:03:34 2006

This archive was generated by hypermail 2.1.8 : Mon 27 Feb 2006 - 21:03:34 GMT