Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Available functions

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
    1. in the last n seconds
    2. in the last simulation step
    3. 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

Back to the top