From: Hugo P. <hug...@gm...> - 2009-04-14 19:44:09
|
Hi, Here is the patch for sensing the ball global position. It works similarly to the setSenseMyPos. To apply the patch just run *patch -p0 -i ballsensepos.diff* in top level directory of your SVN branch of the simulator. To receive the ball global position add the predicate setSenseBallPos to the file naoneckhead.rsg like: (nd RestrictedVisionPerceptor (setViewCones 120 120) (setSenseMyPos false) *(setSenseBallPos true)* (setStaticSenseAxis false) (addNoise true) (setInterval 3) ) Hope it works :) Hedayat, if you don't mind give me some feedback please. Regards, Hugo. On Tue, Apr 14, 2009 at 5:56 PM, Hedayat Vatankhah <hed...@gm...>wrote: > Hi! :) > > *Hugo Picado <hug...@gm...> <hug...@gm...>* wrote on ۰۹/۰۴/۱۴ > 09:19:56: > > Hi, thanks for the reply. > > Actually, I would like to receive both instead of one of them. > > You can't do this currently. I think it is a useful feature too, and it is > easy to implement. It would be nice if you send us the patch, or I will (if > I don't forget it!) add it to the next version of rcssserver3d. > > Thanks, > Hedayat > > > > For example, I can compute my own position and I can set the predicate > setSenseMyPos to receive the > correct global position of the agent. Then I check the error between the > position computed and the > correct global position. > > I would like to do the same thing for the ball and other players to check > how far is the agent knowledge from > the correct information. > > Regards, > Hugo. > > On Tue, Apr 14, 2009 at 5:36 PM, Hedayat Vatankhah <hed...@gm...>wrote: > >> Hi, >> >> *Hugo Picado <hug...@gm...> <hug...@gm...>* wrote on ۰۹/۰۴/۱۴ >> 07:36:06: >> >> Hi, >> >> Is there any way to get the perfect ball / opponents position from the >> message as we can do >> with the agent's own position (setSenseMyPos predicate) ? >> >> Yes, you can change addNoise to false in naoneckhead.rsg. >> >> Good luck, >> Hedayat >> >> >> This could be useful for debugging. >> >> Thanks in advance, >> Hugo. >> >> ------------------------------ >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now!http://p.sf.net/sfu/www-ibm-com >> >> ------------------------------ >> >> _______________________________________________ >> Sserver-three-d mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/sserver-three-d >> >> |