def __init__(self, env_params, sim_params, network, simulator='traci'):
    super().__init__(env_params, sim_params, network, simulator)
    self.activeRequest = False
    self.greenTimeSoFar = 0
    self.MIN_GREEN_TIME = 15
    self.VEHICLE_GREEN_PHASE = 0
    self.PEDESTRIAN_GREEN_PHASE = 2
    self.TLSID = 'C'
    self.WALKINGAREAS = [':C_w0', ':C_w1']
    self.CROSSINGS = [':C_c0']
    self.num_lanes = max((self.k.network.num_lanes(edge) for edge in self.k.network.get_edge_list()))
    self.visible = []
    self.stuck = False
    self.prev_pos = dict()
    self.absolute_position = dict()
    self.num_rl = env_params.additional_params['num_rl']
    self.rl_queue = collections.deque()
    self.rl_veh = []
    self.leader = []
    self.follower = []
def __init__(self, env_params, sim_params, network, simulator='traci'):
    super().__init__(env_params, sim_params, network, simulator)
    self.activeRequest = False
    self.greenTimeSoFar = 0
    self.MIN_GREEN_TIME = 15
    self.VEHICLE_GREEN_PHASE = 0
    self.PEDESTRIAN_GREEN_PHASE = 2
    self.TLSID = 'C'
    self.WALKINGAREAS = [':C_w0', ':C_w1']
    self.CROSSINGS = [':C_c0']
    self.num_lanes = max((self.k.network.num_lanes(edge) for edge in self.k.network.get_edge_list()))
    self.visible = []
    self.stuck = False
    self.prev_pos = dict()
    self.absolute_position = dict()
    self.num_rl = env_params.additional_params['num_rl']
    self.rl_queue = collections.deque()
    self.rl_veh = []
    self.leader = []
    self.follower = []