def __init__(self, x=60, y=60, orientation=0, linear=1, angular=0, agent_color='r'): self.state = State(x, y, orientation, linear, angular) self.map = Map() self.pixels_per_meter = 20 # TODO: Make mutator or include in constructor self.type = agent_color self.sensor = Sensor() self.controller = Controller() self.sensor_noise = NormalDistribution() self.actuator_noise = NormalDistribution()
def __init__(self): self.map = Map() plt.ion() self.figure = plt.figure(num='Robot simulator', figsize=(8, 8), dpi=80, facecolor='w', edgecolor='k') self.figure.canvas.draw() self.agent_posteriors = []
def __init__(self): self.map = Map() self.agents = [] self.visualiser = Visualiser() self.visualise = True self.stepsize = 0.1 # TODO: magic number...
def __init__(self): self.map = Map()