[robocup-rescue-s] Re: Agent Acting

From: Cameron Skinner <cam@cs.auckland.ac.nz>
Date: Sun 07 May 2006 - 05:15:30 GMT

Mahdi Heidari wrote:
> Hello
>
> I have another question about librescue :
> In Agent class of librescue we do not have any function for
> acting of agent, so we added our acting after any sense() but
> there is problem: We act after sense(), but our hear function
> will be called after sense so we can not use messege of agent
> in this cycle and we must use them next cycle. I mean :
> 1.Agent::sense()
> 2.Agent::act()
> 3.Agent::hear()
> Is this a rule ?? or we must change our implementing ??
> also we can not act after any hear because maybe
> in a cycle we do not have any KA_HEAR so we will not
> act on that cycle.
>
> Please explain a little about it.
>
> Regards,
> Mahdi Heidari
> Incredibles Team Member

Hi.

How you respond to sense and hear messages is up to you. There are no
rules about how you decide what order you process sense/hear messages
apart from the 4 messages per timestep rule.

If you want to use hear messages in the same cycle as the sense message
then you will probably need to have a multi-threaded implementation.

Please remember that librescue provides a *minimal* implementation to
allow development of agents in the most flexible way. It therefore makes
no assumptions about what you are going to do with sense/hear messages.

I hope that helps.

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 Sun May 07 07:38:22 2006

This archive was generated by hypermail 2.1.8 : Sun 07 May 2006 - 05:38:23 GMT