Heyy all,
I am using TraCI to stop a vehicle and when I am giving the following code
:-
while step < 120:
traci.simulationStep()
l0 = traci.vehicle.getPosition("veh1")
l1 = traci.vehicle.getPosition("veh0")
if abs((int)(l0[0]) - (int)(l1[0])) <= 5 and step > 10:
print "l0 is :- ",int(l0[0])
print "l1 is :- ",int(l1[0])
traci.vehicle.setStop("veh0","1to2",l0[0],0,14)
#traci.vehicle.setStop("veh1","4to5")
#no = traci.inductionloop.getLastStepVehicleNumber("0")
#traci.trafficlights.setRedYellowGreenState("0", "GrGr")
step += 1
I am getting the following error :-
traci.TraCIException: Vehicle is too close or behind the stop on 1to2_0
Please can anyone help to sort out this problem.
Regards,
--
*Akash Das*
*Student Systems Admin*
*Indian Institute Of Information Technology*
*Sricity*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user