From: Markus R. <rol...@un...> - 2008-05-24 12:50:45
|
Hi Ben, Ben schrieb: > Currently I'm working on restricted vision perceptor(rvp). Though it > can be used now, but I get puzzled about 'AgentAspect'. In > 'GameControlServer::AgentConnect', a new 'AgentAspect' is created, > and in the rsg file, there is another one. As I read the code of > 'plugin/soccer', I found that they are dependent on the rsg one. Why > should there be two 'AgentAspect'? I can only think out one usage. In > 'MoveAgent', there should have a part to be referenced. There should be only one AgentAspect per agent instance. The AgentAspects are created from the GameControlServer that uses them to manage the agents. If there is an AgentAspect created from an .rsg file it is an error, as the GameControlServer uses it's AgentAspect but if you search from within the SceneGraph for the right AgentAspect you might first find the one from the .rsg file. cheers, Markus |