예제 #1
0
 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()
예제 #2
0
 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 = []
예제 #3
0
 def __init__(self):
     self.map = Map()
     self.agents = []
     self.visualiser = Visualiser()
     self.visualise = True
     self.stepsize = 0.1  # TODO: magic number...
예제 #4
0
 def __init__(self):
     self.map = Map()