Esempio n. 1
0
	def getTrajectory(self):
		path =self.maps
		s= self.space()
		s[self.initiallocation]=1.0
		pts = [self.initiallocation]
		for i, p in enumerate(path):
			s = self.doMap(i, p, True, s)
			pts.append(maxPt(s))
		return array(pts)	
Esempio n. 2
0
	def applystep(self):
		path = self.bestPath()
		s= self.space()
		s[self.location]=1.0
		pts = [self.location]
		for i, p in enumerate(path):
			self.maps.append(p)
			s = self.doMap(i, p, True, s)
			pts.append(maxPt(s))
		self.location = pts[-1]
		self.trajectory.append(pts)
		self.report( "moved to %s" % (str(self.location),) )
		print self.maps