Hi Marcus, Am 19.10.2014 um 00:32 schrieb Marcus Müller: > traci.vehicle.getBestLanes(vehID) returns the subsequent, linked lanes which > can be used by a car to maintain it's route without a lanechange. This chain > of lanes can be as long as the car's route but it also might be very short > compared to the route if some lanechange is necessary. > Or in other words: getBestLanes() returns those lanes which lie between a > car's current position and the next upcoming lanechange.
It is more difficult than that. The best lanes are calculated up to nine edges or 3000m or the next stop (whichever comes first) downstream and are updated on every lane or edge change. > I would like to anticipate the whole chain of used lanes for a specific > vehicle and route. Something like the route, extended by the knowledge about > which lanes are used. It is a dynamic property which takes for instance the occupation on the other lanes into account so the best you can aim for is to get the results for the empty net. > I guess it would be possible to > 1) get best Lanes > 2) move car to last lane of "best lanes" > 3) get best lanes again > 4)...and so on > and thus get all used lanes. You can do that but as stated above the results in the real simulation might differ. > Do you know a better way to achieve that goal? Not without patching sumo. It should be not too hard though to give the best lanes update function another parameter specifying the lookahead. Best regards, Michael ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
