Dear Sir,
Following is the code in Traci :

for i in range(3000):    #  or whatever nulmber of steps you want to
simulate
        traci.simulationStep()
*        -----------------Here : 1*
    traci.close()
    sys.stdout.flush()


*-----------------Here : 1 *Can we write a function here so that it will
execute at each Junction?

*Means *
If (VehicleX is at JunctionX)
{
    Call a Function To Find_Next_Edge() which vehicle can take
}
Else
{
    Move on the same edge.
}


-- 
*:)*
Bijal Varia
_______________________________________________
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

Reply via email to