Pi-Star-Lab / RESCO

Reinforcement Learning Benchmarks for Traffic Signal Control (RESCO)
116 stars 36 forks source link

Signal Configs #21

Open demetere opened 1 year ago

demetere commented 1 year ago

Hello everyone, I've noticed that creating signal configurations has been a bit tricky for me. I've tried to figure it out, even by looking at different closed issue and documentation in repo, but I'm still struggling.

Sometimes, I can't quite grasp the concept of phase_pairs. For instance, when I look at ingolstadt1.xml and the pair N-N, it seems like I can't find that specific pair in there. I'm also unsure why we use pairs and how we decide how many of them to use. To be honest, I'm pretty confused about these signal configurations.

I'd really appreciate it if someone could explain how this all works. If there are any images or visual aids available, that would be great, but even a simple explanation would help. Thanks a lot for your help and patience.

UPDATE:

I believe I've grasped the meaning behind 'N-N' now. I followed the example of cologne1 and examined the lane_sets. Now, let's take the example of S-W, Essentially, it means that the traffic is coming from the north but moving in the directions of south and west. Similarly, N-N implies that traffic is coming from the south and heading north. Have I understood this correctly?

If I understand correctly, phase_pairs represent the number of traffic light phases we have, right? Does this mean that we can only activate two lanes per phase? Is that the idea?

Kunal-Kumar-Sahoo commented 2 months ago

Hii could you explain it to me? How can I create a signal configuration for a custom map?