From: Joschka B. <jbo...@un...> - 2007-06-17 08:52:38
|
Hi Yuan, On Sun, 2007-06-17 at 11:03 +0800, Yuan Xu wrote: > Hi Joschka, [...] > Come back to the Vision Perceptor, there is still a problem. > I flipped all the object global positions for right team, > the agent will assume he is still in left side while localizing by flags, > but other objects information are wrong ;-( > So, in fact I think what we need is only flip the flags (and goal flags), > then the right team also think they are in left. > Otherwise, do not flip any object, then teams take care of this themselves, > I checked my old 3D sphere agent code, the agent need to take care it. > So, just now I have commented out the flip. > If we know which is flag or not, we can do something better. We set names for the flags in the RSG file and you can check these names by using the GetName() method, similar to the line element.AddValue((*i)->GetName()); in the Vision Perceptor. Does this help? Cheers, Joschka |