Hello ,
i want to reroute vehicle in the network using Traci4matlab, how the
vehicle can detect an intersection (Junction) in order to reroute right or
left up or down ?
is there any relation between lane or edge with intersection in order to
know if the vehicle is near to the intersection ?
i propose to do like this :
i use laneID = traci.vehicle.getLaneID('car18') % to found the place of
vehicle (lane)
traci.vehicle.getLanePosition('car18')
traci.lane.getLinks(laneID)
traci.junction.getIDList()
traci.junction.getPosition %position of each intersection then
i use traci.simulation.getDistance2D (position of vehicle ,position of
intersection)
if the distance < 1m
there is an intersection
can you help me please?
------------------------------------------------------------------------------
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