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

From: Cameron Skinner <cam@cs.auckland.ac.nz>
Date: Sat 27 May 2006 - 06:07:15 GMT

Sarvapali Dyanand Ramchurn wrote:
> Dear Cameron (and everyone),
>
> We checked our code and we cannot find where the information with the
> buildings' temperature is getting lost. what is more worrying is that
> when we try the sampleagents, we still get nothing!

A modified SampleFireBrigade with the following code inserted generates
the attached log file (with the command "sampleagent.sh > sample.log").

RescueObject[] allBuildings =
memory.getObjectsOfType(RescueConstants.TYPE_BUILDING).toArray(new
RescueObject[0]); // Find all roads
for (int i=0;i<allBuildings.length;i++) {
        try {
        if (memory.getDistance(me(),allBuildings[i])<10000)
System.out.println("Time "+timeStep+": "+me()+": this building is close:
"+allBuildings[i]);
        if (((Building)allBuildings[i]).getTemperature() >0) {
                System.out.println("Time "+timeStep+": "+me()+": this building is
hot:"+allBuildings[i]+"
("+((Building)allBuildings[i]).getTemperature()+")");
        }
        } catch (CannotFindLocationException e) {e.printStackTrace();}
}

Remember that sense information is only sent for objects within 10m. For
most buildings this means that you have to be *inside* the building to
sense it. Fieryness for burning buildings is sensed from a much greater
distance (10m per timestep of burning), but temperature is not. Before
anyone asks, this will *not* be changed before the 2006 competition.

Since fire brigades can extinguish at a distance of up to 30m and
ambulances would be unlikely to enter a burning building, it is not
surprising that high temperatures are sensed only rarely.

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

Received on Sat May 27 08:27:40 2006

This archive was generated by hypermail 2.1.8 : Sat 27 May 2006 - 06:27:42 GMT