示例#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]
示例#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]
示例#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]
示例#4
0
 def reset_cars(self):
     for car in self.cars:
         car.reset()