eclipse-sumo/sumo

can't make vehicles follow traffic light controls using mesoscopic simulation

Closed this issue · 7 comments

I use TraCI to control when traffic lights switch between phases. The general control is to remain red unless a vehicle has approached the traffic light. Then it will switch to green to allow the vehicle to pass.

My simulation models a large quantity of vehicles and simulates a 24 hour period. I started looking into using mesoscopic to help speed up the simulation. However, when I use "--mesosim True", the vehicles ignore the traffic lights because they jump over the nodes. To try to fix this, I also implemented "--mesosim-junction-control True", but the vehicles remain at the first set of traffic lights and don't move.

Screenshot 2023-12-13 130214

SUMO: 1.19.0

Windows

We have a test example scenario for mesoscopic simulation with junction control available. You can download it and compare with your own scenario to see where differences are.

@corinnegroth Did you succeed to make the vehicles respect the signal?

Closing for inactivity. Just post here again if you still have the same problem.

Thank you for your response. I was out for 3 weeks because of the holidays and illness.

Unfortunately, I'm still experiencing the same issue, even after looking at the test example.

@corinnegroth Then you can attach a small working example of your problem here.

Screenshot 2024-01-11 103817

Currently, this configuration obeys the traffic light control logic I've implemented using TraCI. Again, the general logic is the light should switch to green when a vehicle is approaching; otherwise, it should remain red. However, when trying to implement mesosim capabilities, it appears that the vehicles remain stopped until the end of the simulation.

Some remarks:

  • the switch is named --meso-junction-control (not --mesosim-junction-control)
  • use edge-related TraCI calls to detect vehicles (because lane-based/detector-based calls have no meaning in mesoscopic simulation/no approximative fallback solution has been implemented for them)