Hello,
I have some questions regarding the traci api for my reinforcement learning project.
I need some functionalities for which I could not find suitable functions and which might be nice additions if they are not yet available.
- I need the number of vehicles which have passed an e1/e2 (induction/lanearea) detector either
- in the last n seconds
- in the last simulation step
- in the last traffic light phase of the junction a detector belongs to
I know getLastStepVehicleNumber() exists, but this does not give me the number of vehicles which have actually passed a detector as far as I understand the docs correctly.
- A multi-lane e1/e2 detector spanning over multiple lanes. F.e. one detector should measure the traffic flow on multiple junction-approaching lanes.
- A function like "gotoNextPhase(tls_id) which switches a traffic light with a given id to its next phase.
I'd really appreciate any hints on how to implement these requirements :-)
Thanks in advance and kind regards
Andreas Lenhardt
-- Mit besten Grüßen
Andreas Lenhardt