Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] R: Calculate routes dynamically by POIs

SUMO requires edges but you can use TraCI or sumolib to convert between x,y coordinates (or lon,lat coordinates) and edges.
See

Am Fr., 9. Nov. 2018 um 11:40 Uhr schrieb Alex Cerioni <cerio_alex@xxxxxxxxxx>:
Ok,
but the attribute 'via' requires a list of edges. Can that be done by defying a list of <poi> with specific x and y coordinates?
Is there a script wich does that automatically instead of writing it by hand for each trip?
Thank you. Regards,
Alex

Da: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> per conto di Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Inviato: martedì 6 novembre 2018 14:42
A: Sumo project User discussions
Oggetto: Re: [sumo-user] Calculate routes dynamically by POIs
 
Hello,
the <trip> element supports attribute 'via' to specify a list of intermediate edges that must be used between 'from' and 'to'-edge. See http://sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_Types,_and_Routes#Incomplete_Routes_.28trips_and_flows.29
regards,
Jakob

Am Di., 6. Nov. 2018 um 14:04 Uhr schrieb Alex Cerioni <cerio_alex@xxxxxxxxxx>:
Hello everyone,
I am interested on building a scenario where vehicles route from a specific Point of Interest to another with a percentage, to define a sort of daily routine.
For example a vehicle can have 5 POIs : "HOME", "WORK", "MARKET", "GYM", "RESTAURANT".
The routine for this vehicle is departing from "HOME" to "WORK", parking at "WORK" for a time and than decide randomly the next POI to travel to, parking there and repeating this until he returns back to "HOME".
I suppose the dynamic random decision can be made with TraCI, but in the beginning I would like to know if there is a way to define a specific route for a vehicle specifying a list of POIs (maybe in a different file) where the route must go through.

Best regards!
AC
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top