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

From: Mohammad Mehdi Saboorian <saboorian@gmail.com>
Date: Mon 20 Feb 2006 - 14:16:41 GMT

Dear Christoph,

A small addition to Utku's comment.
As much as I remember, in YabAPI, WaterQuantity
method is commented out by default.
So remove comment markers from relevant methods
in both FireBrigade.java and BaseFireBrigade.java before use ;)

have fun,
Mohammad Mehdi Saboorian
SBCe_Saviour

On 2/20/06, Utku Tatlıdede <utkutatlidede@gmail.com> wrote:
> 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
>
>
>

_______________________________________________
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 15:55:30 2006

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 14:55:31 GMT