[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Induction loops detectors
|
load the stop definitions with option --additinal-files or add <additional-files value="yourstops.xml"/> to your sumocfg.
How I can relate network file with additional file, because it gives the following error on the command line :
X=traci.busstop.getPersonCount(station1)
NameError: name 'station1' is not defined
Hi, I want to have information on the number of waiting passengers in station1
I used the TraCI function traci.busstop.getPersonCount(stopID) as follows :
def run():
step = 0
while traci.simulation.getMinExpectedNumber() > 0:
traci.simulationStep()
traci.busstop.getPersonCount(station1)
step += 1
traci.close()
sys.stdout.flush()
but it gives the following error on the command line : traci.busstop.getPersonCount(station1)
IndentationError: unexpected indent
Do you have any idea how to solve the problem?
additional file :
<additional>
<busStop id="station1" lane="a_0" startPos="-1226" endPos="-1216" />
</additional>
Thank you in advance.
This is not supported by detectors. You can use stop-output which records this number every time a vehicle stops at the station. TraCI also provides the function traci.busstop.getPersonCount(stopID).
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user