示例#1
0
文件: gengoal.py 项目: COLAB2/midca
class TFStackGen:
    def __init__(self, mem, memKeys):
        self.tree = TreeStack()
        self.mem = mem
        self.memKeys = memKeys

    def gen_goals(self, verbose):
        world = self.mem.get(self.memKeys.MEM_STATES)[-1]
        blocks = blockstate.get_block_list(world)
        return [self.tree.givegoal(blocks)]
示例#2
0
class TFStackGen:
    
    def __init__(self, mem, memKeys):
        self.tree = TreeStack()
        self.mem = mem
        self.memKeys = memKeys

    def gen_goals(self, verbose):
        world = self.mem.get(self.memKeys.MEM_STATES)[-1]
        blocks = blockstate.get_block_list(world)
        return [self.tree.givegoal(blocks)]
示例#3
0
 def give_goal(self, blockset):
     tree = TreeScen()
     return tree.givegoal(blockset)
示例#4
0
 def __init__(self, mem, memKeys):
     self.tree = TreeStack()
     self.mem = mem
     self.memKeys = memKeys
示例#5
0
文件: gengoal.py 项目: COLAB2/midca
 def __init__(self, mem, memKeys):
     self.tree = TreeStack()
     self.mem = mem
     self.memKeys = memKeys