[Pogamut-list] Paths through arbitrary locations
michal.bida
pogamut-forum at diana.ms.mff.cuni.cz
Mon May 23 13:06:21 CEST 2011
Re: Paths through arbitrary locations
Author: michal.bida
Which Pogamut version are you using? How are you calling the path executor?
I've tried to simulate the exception on NavigationBot archetype in pogamut version 3.2.3. This code worked fine:
{CODE()}
@Override
public void logic() throws PogamutException {
ArrayList customPath = new ArrayList();
customPath.add(new Location(-500,-1500,-1790));
customPath.add(new Location(-1000,-1500,-1790));
customPath.add(new Location(-1300,-1500,-1790));
customPath.add(new Location(-1300,-1300,-1790));
customPath.add(new Location(-1300,-1500,-1790));
customPath.add(new Location(-1000,-1500,-1790));
customPath.add(new Location(-500,-1500,-1790));
if (!pathExecutor.isExecuting()) {
log.info("Setting custom path now!");
IPathFuture myPath = new PrecomputedPathFuture(customPath.get(0), customPath.get(customPath.size() - 1), customPath);
pathExecutor.followPath(myPath);
}
}
{CODE}
Used archetype info:
cz.cuni.amis.pogamut.ut2004.examples
02-navigation-bot-archetype
3.2.3
Best,
Michal
--
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=766&post_reply=1#form>
More information about the Pogamut-list
mailing list