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)
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."
def asqiiDisplay(world): blocks = blockstate.get_block_list(world) print str(scene.Scene(blocks))
def asqiiDisplay(world): ''' Creates an asqii representation for blocksworld. ''' blocks = blockstate.get_block_list(world) print str(scene.Scene(blocks))
def asqiiDisplay(world): ''' Creates an asqii representation for blocksworld. ''' blocks = blockstate.get_block_list(world)
def run(self, cycle, verbose=2): if verbose >= 2: blocks = blockstate.get_block_list(self.world) print str(scene.Scene(blocks))
def run(self, cycle, verbose = 2): if verbose >= 2: blocks = blockstate.get_block_list(self.world) print str(scene.Scene(blocks))