示例#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)
示例#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."
示例#3
0
def asqiiDisplay(world):
    blocks = blockstate.get_block_list(world)
    print str(scene.Scene(blocks))
示例#4
0
def asqiiDisplay(world):
	blocks = blockstate.get_block_list(world)
	print str(scene.Scene(blocks))
示例#5
0
def asqiiDisplay(world):
    '''
    Creates an asqii representation for blocksworld.
    '''
    blocks = blockstate.get_block_list(world)
    print str(scene.Scene(blocks))
示例#6
0
def asqiiDisplay(world):
    '''
    Creates an asqii representation for blocksworld.
    '''
    blocks = blockstate.get_block_list(world)
示例#7
0
 def run(self, cycle, verbose=2):
     if verbose >= 2:
         blocks = blockstate.get_block_list(self.world)
         print str(scene.Scene(blocks))
示例#8
0
	def run(self, cycle, verbose = 2):
		if verbose >= 2:
			blocks = blockstate.get_block_list(self.world)
			print str(scene.Scene(blocks))
示例#9
0
def asqiiDisplay(world):
    '''
    Creates an asqii representation for blocksworld.
    '''
    blocks = blockstate.get_block_list(world)
    print str(scene.Scene(blocks))