Re: [robocup-rescue-s] Empty firebrigade tank!

From: Utku Tatlędede <utkutatlidede@gmail.com>
Date: Mon 20 Feb 2006 - 13:02:18 GMT

Hi,
there is a constantant that defines the capacity of the water tank...

yab.agent.Constants

static final int TANK_QUANTITY = 15000; // [0.001 m^3]

Also yab.agent.object.FireBrigade contains functions like

public int waterQuantity() {

return obj().waterQuantity();

}

public boolean waterTankEmpty(){

return (waterQuantity() <= 0);

}

You can use them to implement your refuel starategy...

On 2/20/06, Christoph Spielmann <spielc@gmail.com> wrote:
>
> Hallo everybody!
>
> I have a short question:
>
> I'm using YAB-API to develop RCR-agents and now i ask myself how to find
> out if the tank of a firebrigade agent is empty? Or at least how to
> determine the size of the tank??
>
> Any hint would be really appreciated!
>
> 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
>

_______________________________________________
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 20 14:25:37 2006

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 13:25:37 GMT