Re: [robocup-rescue-s] YAB API and Agent Properties

From: Arash Rahimi (rahimi@ce.aut.ac.ir)
Date: Thu 31 Mar 2005 - 07:55:43 GMT


Dear Lawrence,

Each agent has a property 'world' which is of
type 'DisasterSpace'. 'DisasterSpace' has a
method named 'get' which takes the id of a
specific object in the disaster space and returns
its object. You can use the result of this method
by casting it to your desired agent type and then
checking the value of each of its properties.

Regards,
Arash Rahimi,
Member of S.O.S.

> Hello all,
> I am using the YAB API to develop an agent, but I am having
> a little trouble working with agent properties. I would
> like to extract a specific civilians buriedness and hp, but
> I can not figure out how. I looked through the code and it
> looks like agents store this type of information as a
> Property. I know the Condition and Property objects can be
> used to get all civilians with hp < x, but how can they be
> used to get value of a property for a specific agent?
> Any information would be appreciated.
>
> Thanks
>
> Lawrence
> _______________________________________________
> 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



This archive was generated by hypermail 2.1.3 : Thu 31 Mar 2005 - 08:24:12 GMT