Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] SUMO E1Detectors and Traci commands
  • From: <Maria.Armellini@xxxxxx>
  • Date: Wed, 11 Nov 2020 17:54:34 +0000
  • Accept-language: de-DE, en-US
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • Ironport-phdr: 9a23:H5ygAxLWLVe4HIS1JNmcpTZWNBhigK39O0sv0rFitYgeLP7xwZ3uMQTl6Ol3ixeRBMOHsq0C0rCO+Py7EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCe/bL9oMRm6sxndusYZjIZsN6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhSEaPDA77W7XkNR9gqJFrhy8uxxxzY3aYI+XO/p/YqzScsgXSnBdUsZTTSFNHp+wY5UJAuEcPehYtY79p14WoBa5AgejHvnvyj5SiXPswaA6yeEhHh/C3AwkHtIOtnXUoc7oO6cWS+C51rTHwivaYv5QxDzy55TGfAo7rvGQQbJ/b9DRyU83Gg7HjVidtYzoMj2J2+kCs2aW4eptW+yzhmMjrwx8vyajytsjh4TXiIwYzl/J+TtkzYs6JNC1R1B2bcKmHZZfqyyXMZZ9TM0lQ2Ftoik6y7sGtIamcygO0pQr3QPQZOKBfoOV4RzjTP6cLSpkiH5/Zb6yhBm//VK9xuDyVcS4ykhGojddntXRtH0ByQbf5taaRvdn40us2zeC2xrO5uxCPEs6j7DUK4Q7zb41jpcTtEPDETLol0jul6+Wc1kk+vCv6+T6frXqvp+cOJFwigH5KqkglMqxD+o3PAYOX2aV/uey2rr580HnXblEgfw5n7fDvJDbI8QburS5DBVP3ok+7xa/FS2q38kGknUfLVJFfgyIj5TxNl3TPPz0F+qzjlejnTtx2vzLML7sDo/TInTeiLvheKxy609YyAo919Bf4JdUB6kGLv3pQE/xtcbXAgUlPgyuxuboFtF91ocfWWKJA6+UK77dsVuS5u41PuaDepcZuCzhJPg9+/7ukXg5lEcGfam02JsXb2m0Hul9I0qHe3rhmckOHnsOvgo/VOzqk0ONXSRUZ3aoUKJvrg08Xda9EILEA522jaap0Sy/H4VNayZBEF/aQlnycIDRD9IFciObZOZ7lzEAUbmnSqct0QvouAKsmOkvFfbd5iBN7cGr79Ny/eCGzRw=
  • Ironport-sdr: 1Bczftd0w5vogm30relYTo+m33+QgVFIPEkhql9njipFon46TpZ5WsqJaiIkH8fIILH/GBArD8 FxQuMn9eO3Kg==
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHWuEANQfWWk7icPEeA4fK5HIXJmKnDM5Qg
  • Thread-topic: SUMO E1Detectors and Traci commands

Hi Thodoris,

 

According to the wiki, TraCi can only “get the number of vehicles that were on the named induction loop within the last simulation step” using the command that you mentioned. But you can accumulate the results along the steps in your code.

The Induction Loop Detector file has, as you said, the aggregated values. But you can define the frequency (freq) with which the values should be aggregated. See https://sumo.dlr.de/docs/Simulation/Output/Induction_Loops_Detectors_(E1).html

 

Regards,

Giuliana

 

Von: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> Im Auftrag von Thodoris Zerlentis
Gesendet: Mittwoch, 11. November 2020 16:44
An: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Betreff: [sumo-user] SUMO E1Detectors and Traci commands

 

Greetings everyone,

I am currently trying to implement some detectors within my simulation scenario, like am induction loop detector. I found from documentation the E1 detectors and implemented them in my scenario . Though, i have a question about Traci and the ability of the detectors to share their data while the simulation is running. I used the getLastStepVehicleNumber command for the detector and the only thing that i get is the last steps vehicle number, while in the output file the nVehEntered variable is calculating all the vehicle that have passed.  Is there a way or a function-command that i can use to get all the data from the detector for the time passed with Traci and while simulation is running or shall i create some code lines within my Traci file in order to calculate every step (or second) the data that i need?

 

Best regards,
Thodoris Zerlentis


Back to the top