Esempio n. 1
0
 def run(self, cycle, verbose = 2):
     if self.stackingGoalsExist():
         if verbose >= 2:
             print "MIDCA already has a block stacking goal. Skipping TF-Tree stacking goal generation"
         return
     world = self.mem.get(self.mem.STATES)[-1]
     blocks = blockstate.get_block_list(world)
     goal = self.tree.givegoal(blocks)
     if goal:
         if verbose >= 2:
             print "TF-Tree goal generated:", goal
         self.mem.get(self.mem.GOAL_GRAPH).insert(goal)
Esempio n. 2
0
 def run(self, cycle, verbose = 2):
     world = self.mem.get(self.mem.STATES)[-1]
     blocks = blockstate.get_block_list(world)
     goal = self.tree.givegoal(blocks)
     if goal:
         inserted = self.mem.get(self.mem.GOAL_GRAPH).insert(goal)
         if verbose >= 2:
             print "TF-Tree goal generated:", goal,
             if inserted:
                 print
             else:
                 print ". This goal was already in the graph."
Esempio n. 3
0
	def run(self, cycle, verbose = 2):
		if verbose >= 2:
			blocks = blockstate.get_block_list(self.world)
			print str(scene.Scene(blocks))
Esempio n. 4
0
def asqiiDisplay(world):
	blocks = blockstate.get_block_list(world)
	print str(scene.Scene(blocks))
Esempio n. 5
0
def asqiiDisplay(world):
    '''
    Creates an asqii representation for blocksworld.
    '''
    blocks = blockstate.get_block_list(world)
    print str(scene.Scene(blocks))