Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Getting the vehicle type of a lanearea dectector in TraCI/libsumo
  • From: Michael Behrisch <oss@xxxxxxxxxxx>
  • Date: Tue, 30 Oct 2018 08:30:08 +0100
  • Autocrypt: addr=oss@xxxxxxxxxxx; prefer-encrypt=mutual; keydata= xsDiBFLSvucRBACGsasS4GeIWs1CFNTOYmp3ScQ2ZTJLJWQxhPliwtHTzLsErYu9Y7e8qDov iHFviYyaNuceUNoACm1e4MT4eu0DmM2Wk3y/jjD6hfm7L0EZNPxQhj+CJf2oZAm2ezCe7/si xZ2d7TCO8yWavOGbF0EVi/ZDIJqVgupu6WBpv/NCewCg65HQiS1wm+1w1MdFYxKCmXzbv08D /iWXX3tzabbCrLlUum8hBgBpJEHRtlic2uaGsKm8Fize4tfLZkTBbTYLYXfcx2Oq9+lINPTW h9jnbCjAjErRWLTjNTQjel0JnDryCnqabub/R3wScR/EHRDBeS9L6YRj0xdVd2qIaArtSYRR auKPNc4M2qZNEFSM37cXC7avhpdeA/99oJf4qyVly4RxHmekAmj9UJjRx17x9xX8t9uzUuSt AeTh+kQ3o5jK7veU6/F/+pPyi96EOzym9BJA8pgXC8hLWNjOajI10filkdQ26QsfHOpUdPSZ 4Duyw9Ayj8loagEnnAONmU/xE0QlyVBANIut0W+SNqPScYXfnBbVOaG3Hc0mTWljaGFlbCBC ZWhyaXNjaCA8bWljaGFlbEBiZWhyaXNjaC5kZT7CZgQTEQIAJgIbIwcLCQgHAwIBBhUIAgkK CwQWAgMBAh4BAheABQJS0sKXAhkBAAoJEDwQ/pbRcKYp+SEAoMJSvUzfk3u6EA1nMlMVSk85 nHhoAJ0VE5xLi2ni8j9wdx+uga7XGLtjhs7ATQRS0r7nEAQAkQLdzlu3i/Ddziadm2c/60ZX bcY3FYhHHfsKUHC/QING+lu3uHG0nPaElPTAHTr8UdFMbmpXkRs9+1v1RAvHBWW95BbUXZeu oBsoCm+4Jdktu+PeVxGKhOwQRdR30A4y/bIeRn7iMzkZKoQh0lE3ZEbs0T8TUHBGBUqwEhIv Y0MAAwUD/RXrkwtUiR61/bT96eMaxGtO15AqvlM8DYQ3Xs6EH09QlGzr/i0+usi01wGoh13p YGjzEDtTqO+lNs9AtS7nZAHA3cCWzLmdEXw6EY7IH4X7zOpKoj+JtLNjUd2Nzvhyl48LT217 g8GmCACL6Wo/G+fZ+30Mny+gWbDtEGXNIv7fwkkEGBECAAkFAlLSvucCGwwACgkQPBD+ltFw pimNZQCgnN5oibnjl7r2SVle6hgUMcckfN4AoMYRjy/Tqz9tq8TSUqNcOTjlMR7D
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • 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>
  • Openpgp: preference=signencrypt
  • User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

Hi,
another easy way would be to parse the input file defining the detector
yourself. I am a little bit hesitant to add traci interfaces to all the
static information available.

Best regards,
Michael

Am 26.10.18 um 16:41 schrieb Didac Busquets:
> 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
> 
>  
> 
> Hello,
> 
> 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.
> 
> regards,
> 
> Jakob
> 
>  
> 
> Am Do., 25. Okt. 2018 um 13:00 Uhr schrieb Didac Busquets
> <didac.busquets@xxxxxxxxxx <mailto:didac.busquets@xxxxxxxxxx>>:
> 
>     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://htmlsig.com/t/000001D1FAJA>
> 
>     https://s3.amazonaws.com/htmlsig-assets/spacer.gif
> 
>     Twitter
>     <https://htmlsig.com/t/000001DMCGQH>https://s3.amazonaws.com/htmlsig-assets/spacer.gifFacebook
>     <https://htmlsig.com/t/000001DRXRE6>https://s3.amazonaws.com/htmlsig-assets/spacer.gifLinkedIn
>     <https://htmlsig.com/t/000001CVTDTW>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 <mailto: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://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 <mailto: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
> 
> 
> _______________________________________________
> 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
> 


Attachment: signature.asc
Description: OpenPGP digital signature


Back to the top