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

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

Dear Christoph,

I'm not sure about reason of commenting out those methods,
but removing those comments doesn't seem erroneous.
(maybe at the time releasing that version, these propeties
were meant to be supported in future version of rescue package!)

About the version, As much as I know this is the latest official
release for YabAPI
http://ne.cs.uec.ac.jp/~morimoto/rescue/yabapi/index.html
but since this release those not support TCP protocol and extended
hear messages (HEAR_SAY/HEAR_TELL), I have provided an
unofficial release with those changes.
http://siahe.com/saviour/yab/yabapi-1.00-tcp-1.tar.gz

About that constant (TANK_QUANTITY), you can simply
add it to that file yourself ;)

Have fun,
Mohammad Mehdi Saboorian
SBCe_Saviour

On 2/20/06, Christoph Spielmann <spielc@gmail.com> wrote:
> Hi Mehdi and Utku!
>
> Hmmm...
>
> Well i had a look at the at the code of yab.agent.Constants-class but
> there is no constant called TANK_QUANTITY (it's not even mentioned in
> the documentation) but you are both right: both function definitions are
> there but commented out...
>
> But i do think that they are commented out with an idea behind it, so i
> guess just removing the comments won't work...
>
> May I ask what version of YAB-API the two of you are using? Maybe you're
> using a old version of it?!?
>
> Mohammad Mehdi Saboorian wrote:
> > 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
>

_______________________________________________
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 18:03:47 2006

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 17:03:48 GMT