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