''''World 1'''
from pyrobot.simulators.pysim import *

def INIT():
    # (width, height), (offset x, offset y), scale:
    sim = TkSimulator((1020,820),(10,810),100)
    '''Here starts all the obstacle declaration'''
    # x1, y1, x2, y2 in meters:
    #Outside limits
    sim.addBox(0, 0, 10, 8)
    
    #Goal
    sim.addLight(9, 1, 0.1, "yellow")
   
    #Walls
    sim.addBox(2, 5, 3, 5.1, "black", wallcolor="black")
    sim.addBox(3, 5, 3.1, 6, "black", wallcolor="black")

	
    # port, name, x, y, th, bounding Xs, bounding Ys, color
    # (optional TK color name):
    sim.addRobot(60000, TkPioneer("RedPioneer",
                                  1, 7, 180.0,
                                  ((.225, .225, -.225, -.225),
                                   (.175, -.175, -.175, .175))))
    #Sensors
    sim.robots[0].addDevice(PioneerFrontSonars()) # for full 360 sonar
    
    return sim

3604b1eb7e902c93ed52c87455b97276d12a55fc
<mask token>

<mask token>


def INIT():
    sim = TkSimulator((1020, 820), (10, 810), 100)
    """Here starts all the obstacle declaration"""
    sim.addBox(0, 0, 10, 8)
    sim.addLight(9, 1, 0.1, 'yellow')
    sim.addBox(2, 5, 3, 5.1, 'black', wallcolor='black')
    sim.addBox(3, 5, 3.1, 6, 'black', wallcolor='black')
    sim.addRobot(60000, TkPioneer('RedPioneer', 1, 7, 180.0, ((0.225, 0.225,
        -0.225, -0.225), (0.175, -0.175, -0.175, 0.175))))
    sim.robots[0].addDevice(PioneerFrontSonars())
    return sim

<mask token>
from pyrobot.simulators.pysim import *


def INIT():
    sim = TkSimulator((1020, 820), (10, 810), 100)
    """Here starts all the obstacle declaration"""
    sim.addBox(0, 0, 10, 8)
    sim.addLight(9, 1, 0.1, 'yellow')
    sim.addBox(2, 5, 3, 5.1, 'black', wallcolor='black')
    sim.addBox(3, 5, 3.1, 6, 'black', wallcolor='black')
    sim.addRobot(60000, TkPioneer('RedPioneer', 1, 7, 180.0, ((0.225, 0.225,
        -0.225, -0.225), (0.175, -0.175, -0.175, 0.175))))
    sim.robots[0].addDevice(PioneerFrontSonars())
    return sim

''''World 1'''
from pyrobot.simulators.pysim import *

def INIT():
    # (width, height), (offset x, offset y), scale:
    sim = TkSimulator((1020,820),(10,810),100)
    '''Here starts all the obstacle declaration'''
    # x1, y1, x2, y2 in meters:
    #Outside limits
    sim.addBox(0, 0, 10, 8)
    
    #Goal
    sim.addLight(9, 1, 0.1, "yellow")
   
    #Walls
    sim.addBox(2, 5, 3, 5.1, "black", wallcolor="black")
    sim.addBox(3, 5, 3.1, 6, "black", wallcolor="black")

	
    # port, name, x, y, th, bounding Xs, bounding Ys, color
    # (optional TK color name):
    sim.addRobot(60000, TkPioneer("RedPioneer",
                                  1, 7, 180.0,
                                  ((.225, .225, -.225, -.225),
                                   (.175, -.175, -.175, .175))))
    #Sensors
    sim.robots[0].addDevice(PioneerFrontSonars()) # for full 360 sonar
    
    return sim
