def __init__(self, args): CoreProblemSolver.__init__(self, args) TwoDimensionalAvoidanceSolver.__init__(self) self.__path__ = os.getcwd() + "/src/main/" self.headings = dict(north=(0.0, 1.0, 0.0), south=(0.0, -1.0, 0.0), east=(1.0, 0.0, 0.0), west=(-1.0, 0.0, 0.0)) self.world = self.build_world("mock/world.json") #build('mock') #self.world = self.build_world("mock/world.json") #build('mock') self._recent = [] self.recent_protagonists = [] self._wh = None self._speed = 4 # This depends on how size is represented in the grammar. self._size_cutoffs = {'big': 2, 'small': 1} self._weight_cutoffs = {'heavy': 7, 'light': 6} self._ranges = {'box': {'size': [.5, 3], 'weight': [1, 14]}, 'robot': {'size': [.5, 1], 'weight': [1, 4]}} self._home = None self._distance_multipliers = {'box': 1.3, 'robot': .7} self._distance_threshold = 4 self._attributes = ['size', 'color', 'weight']
def __init__(self, args): BasicRobotProblemSolver.__init__(self, args) TwoDimensionalAvoidanceSolver.__init__(self) self.world = self.build_world('morse/world.json')
def __init__(self, args): BasicRobotProblemSolver.__init__(self, args) TwoDimensionalAvoidanceSolver.__init__(self) self.world = self.build_world("morse/world.json")