def reset(self):
    'See parent class.\n\n        This also includes updating the initial absolute position and previous\n        position.\n        '
    self.rl_queue.clear()
    self.rl_veh.clear()
    obs = super().reset()
    print('reset')
    for veh_id in self.k.vehicle.get_ids():
        self.absolute_position[veh_id] = self.k.vehicle.get_x_by_id(veh_id)
        self.prev_pos[veh_id] = self.k.vehicle.get_x_by_id(veh_id)
    self.leader = []
    self.follower = []
    return obs
See parent class.

This also includes updating the initial absolute position and previous
position.
def reset(self):
    'See parent class.\n\n        This also includes updating the initial absolute position and previous\n        position.\n        '
    self.rl_queue.clear()
    self.rl_veh.clear()
    obs = super().reset()
    print('reset')
    for veh_id in self.k.vehicle.get_ids():
        self.absolute_position[veh_id] = self.k.vehicle.get_x_by_id(veh_id)
        self.prev_pos[veh_id] = self.k.vehicle.get_x_by_id(veh_id)
    self.leader = []
    self.follower = []
    return obs