예제 #1
0
def on_load():
    checkoff.get_data(globals())
    (robot.window, robot.initial_location) = \
                   soarWorld.plot_soar_world_dw(PATH_TO_WORLD)
    b = bounds[worldname]
    robot.maze = RobotMaze(world, b[0], b[1], b[2], b[3],
                           robot.window, robot.initial_location)
    robot.path = get_path(worldname, robot.maze)
    if robot.path:
        robot.window.draw_path([i.x - \
                               robot.initial_location.x \
                               for i in robot.path],
                              [i.y - \
                               robot.initial_location.y \
                               for i in robot.path], color = 'blue')
    else:
        print('no plan from', robot.maze.start, 'to', robot.maze.goal)
    robot.slime_x = []
    robot.slime_y = []
예제 #2
0
def on_start():
    if not REAL_ROBOT:
        checkoff.get_data(globals())
예제 #3
0
def on_start():
    robot.done = False
    robot.count = 0
    robot.start_time = time.time()
    checkoff.get_data(globals())
예제 #4
0
def on_start():
    if not REAL_ROBOT:
        checkoff.get_data(globals())