Ejemplo n.º 1
0
 def reset(self):
     for car in self.cars:
         car.reset()
     self.prev_t = time.time()
     for car in self.cars:
         self.prev_x[car] = car.x
     self.paused = True
     self.history_x = [[] for car in self.cars]
     self.history_u = [[] for car in self.cars]
Ejemplo n.º 2
0
 def reset(self):
     for car in self.cars:
         car.reset()
     self.prev_t = time.time()
     for car in self.cars:
         self.prev_x[car] = car.x
         self.anim_x[car] = car.x
     self.paused = True
     self.history_x = [[] for car in self.cars]
     self.history_u = [[] for car in self.cars]
Ejemplo n.º 3
0
 def reset(self):
     for car in self.cars:
         car.reset()
     self.prev_t = time.time()
     for car in self.cars:
         self.prev_x[car] = car.x
         self.anim_x[car] = car.x
     self.paused = True
     self.history_x = [[] for car in self.cars]
     self.history_u = [[] for car in self.cars]
     self.ticks_run = 0
     self.feature_sum = [0, 0, 0, 0, 0]
Ejemplo n.º 4
0
 def reset_cars(self):
     for car in self.cars:
         car.reset()