Thanks for the clarification Jakob.
It would be useful to have the “exit” vehicles in TraCI as well.
Didac
From: [email protected] <[email protected]> On Behalf
Of Jakob Erdmann
Sent: 06 November 2018 14:02
To: Sumo project User discussions <[email protected]>
Subject: Re: [sumo-user] Multi-entry/exit detectors in TraCI
The traci output reflects vehicles that have gone passed the entry detector and
not yet left via the exit detector (they are still 'within').
In comparison, the xml output for this detector contains distinct counts for
vehicles within and for vehicles that have gone past the detector.
I supposed it would make sense to expose the latter group of vehicles via TraCI
as well.
Am Di., 6. Nov. 2018 um 13:50 Uhr schrieb Didac Busquets
<[email protected]<mailto:[email protected]>>:
Hi,
I’m trying to use multi-entry/multi-exit detectors with TraCI and I’m getting
strange results.
I want to use them to count how many vehicles take each turn on a junction. I
have defined one E3 detector with the entry one one lane approaching a junction
and exit on one lane on the other side of the junction. I’ve also defined a
second E3 detector with entry in the same lane as the first one and exit on
another lane:
<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<e3Detector id="e3Detector_0" pos="2459.46,3350.14" freq="900.00"
file="e3Detector_0.xml">
<detEntry lane="32116245#3_0" pos="119.86"/>
<detExit lane="32116250#0_0" pos="2.33"/>
</e3Detector>
<e3Detector id="e3Detector_1" pos="2462.18,3351.07" freq="900.00"
file="e3Detector_1.xml">
<detEntry lane="32116245#3_0" pos="118.36"/>
<detExit lane="32116247#0_0" pos="1.81"/>
</e3Detector>
</additional>
However, when I use getLastStepVehicleIDs on each of the detectors, I get the
same result:
libsumo.multientryexit.getLastStepVehicleIDs('e3Detector_0')
('37', '56', '57')
libsumo.multientryexit.getLastStepVehicleIDs('e3Detector_1')
('37', '56', '57')
How can it be the all vehicles have gone through 2 detectors if they have the
exit point in different lanes (of different edges)? Am I interpreting wrongly
what getLastStepVehicleIDs “Returns the list of ids of vehicles that have been
within the named multi-entry/multi-exit detector in the last simulation step”
means?
Thanks,
Didac
[Immense Simulations Limited]<https://htmlsig.com/t/000001D1FAJA>
[https://s3.amazonaws.com/htmlsig-assets/spacer.gif]
[Twitter]<https://htmlsig.com/t/000001DMCGQH>[Facebook]<https://htmlsig.com/t/000001DRXRE6>[LinkedIn]<https://htmlsig.com/t/000001CVTDTW>
[https://s3.amazonaws.com/htmlsig-assets/spacer.gif]
Didac Busquets / Co-Founder and Chief Scientist
[email protected]<mailto:[email protected]> / +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]
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
[email protected]<mailto:[email protected]>
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
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user