[Pogamut-list] Editing Nav Graph

jakub.gemrot pogamut-forum at diana.ms.mff.cuni.cz
Wed Aug 8 08:25:20 CEST 2012


Re: Editing Nav Graph

Author: jakub.gemrot

Hi! Sure :-)

Are you aware of NavigationGraphBuilderclass? It is hidden under "navBuilder" field in the UT2004BotModuleController.
It is meant to be used inside botInitialized() method where you may alter the nav-graph arbitrarily. 

You may:

1) alter existing nodes / links
2) add/remove nodes/links completely

Please read javadocs for that: http://diana.ms.mff.cuni.cz/maven-sites/pogamut/3.3.1-SNAPSHOT/pogamut-ut2004/apidocs/cz/cuni/amis/pogamut/ut2004/agent/module/sensor/NavigationGraphBuilder.html

Note that these operations are working directly with NavPoint.getOutgoing/IncomingEdges, thus they are irreversible.
Also note that these operations are JVM-only, they are NOT propagated to UT2004 so they are used only by FloydWarshallMap 
implementation. FWMap will pick-up your modifications automatically after botInitialized() ... later changes can be propagated
by calling: http://diana.ms.mff.cuni.cz/maven-sites/pogamut/3.3.1-SNAPSHOT/pogamut-ut2004/apidocs/cz/cuni/amis/pogamut/ut2004/agent/navigation/floydwarshall/FloydWarshallMap.html#refreshPathMatrix%28%29

I've been able to create new navpoints/links on DM-1on1-Albatross so my bot jumped for quad-dmg on the tower (with a few tweaks to
the path-following I admit, but fwMap was able to find the way to it).

Cheers!
Jakub

-- 
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=1025&post_reply=1#form>




More information about the Pogamut-list mailing list