Re: [robocup-rescue-s] Re: Is the temperature being sensed?

From: Utku Tatlędede <utkutatlidede@gmail.com>
Date: Fri 26 May 2006 - 07:19:09 GMT

Hi,
The kernel has a function to filter the properties sensed by the agents as
below. According to the rounding rule if the temperature is less than 25 it
will be sensed as 0. Please also consider this fact...

  INT_32 AgentPropertyFilter::rewrite(PropertyId id, Id objectId, INT_32
value) const {
 switch (id) {
 case PROPERTY_DAMAGE:
   if (m_self==0 || objectId==m_self) return value;
   return round(value,10);
 case PROPERTY_HP:
   if (m_self==0 || objectId==m_self) return value;
   return round(value,1000);
 case PROPERTY_BUILDING_TEMPERATURE:
   return round(value,50);
 default:
   return value;
 }
  }

On 5/26/06, Cameron Skinner <cam@cs.auckland.ac.nz> wrote:
>
> Hi.
>
> > I noticed that the getTemperature method always returns 0 no matter
> which
> > building you select or where you are on the map. In particular it
> doesn't
> > seem to sense the temperature of the building even when the fire brigade
> is
> > right next to a burning building (it still returns 0 even in that case).
> > This makes me wonder if the agents actually sense the building
> temperatures
> > when they are within 10 m (sensing distance of a building).
> > Is there something that we should be doing that we are not?
>
> The civilian implementation correctly senses temperature (using
> librescue), and the sample agents (using rescuecore) also work correctly.
>
> If your agent is within 10m of a building then it should be sensing the
> temperature.
>
> Cheers,
> Cameron.
>
> --
> Cameron Skinner
> Artificial Intelligence Group
> Department of Computer Science
> The University of Auckland
>
> email: cam@cs.auckland.ac.nz
> phone: +64 9 3737599 x82924
> fax: +64 9 3737453
>
> Post:
> Department of Computer Science
> The University of Auckland
> Private Bag 92019
> Auckland
> New Zealand
> _______________________________________________
> 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 Fri May 26 09:35:22 2006

This archive was generated by hypermail 2.1.8 : Fri 26 May 2006 - 07:35:23 GMT