Thank you Jakob,
That is what I was doing right now, using the detector id as XXXX_Type1 and then manually splitting it. But obviously is not very clean nor portable.
Would be great if in the future libsumo/TraCI offer a getVehicleTypes() method.
Cheers,
Didac
From: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx>
On Behalf Of Jakob Erdmann
Sent: 25 October 2018 21:28
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] Getting the vehicle type of a lanearea dectector in TraCI/libsumo
there is currently no way to achieve this in a general way. A workaround could be to encode this information within the id of the detector.
Hi,
I’m using TraCi and libsumo to read the values of lanearea detectors. How can I query what vehicle type they detect? That is, the value of “vTypes” in the definition of laneAreaDetector
in the additionals file.
Thanks,
Didac
![Immense Simulations Limited]()
![https://s3.amazonaws.com/htmlsig-assets/spacer.gif]()
![Twitter]() ![https://s3.amazonaws.com/htmlsig-assets/spacer.gif]() ![Facebook]() ![https://s3.amazonaws.com/htmlsig-assets/spacer.gif]() ![LinkedIn]() ![https://s3.amazonaws.com/htmlsig-assets/spacer.gif]()
![https://s3.amazonaws.com/htmlsig-assets/spacer.gif]()
|
![https://s3.amazonaws.com/htmlsig-assets/spacer.gif]()
|
![https://s3.amazonaws.com/htmlsig-assets/spacer.gif]()
|
Didac Busquets
/ Co-Founder and Chief Scientist
didac.busquets@xxxxxxxxxx / +44 (0) 7919 076 981
![https://s3.amazonaws.com/htmlsig-assets/spacer.gif]()
Immense Simulations Limited
Studio J2, Witan Studios, 279 Witan Gate, Central Milton Keynes, MK9 1EJ
w3w:
ourselves.depend.backpack
www.immense.ai
![https://s3.amazonaws.com/htmlsig-assets/spacer.gif]()
|
![https://s3.amazonaws.com/htmlsig-assets/spacer.gif]()
|
|
This e-mail including any attachments is intended for the addressee only. It is private, confidential
and may be covered by legal professional privilege. If you have received this message in error please notify us immediately and remove it from your system. Immense Simulations Limited is a Company registered in England and Wales No. 09782647. Registered offices:
International House, 24 Holborn Viaduct, City Of London, London, England, EC1A 2BN.
|
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
|