Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Integrate a Routing Algorithm

Yes. But the question indicates that there is still confusion to be resolved somehow.

Am Fr., 16. Apr. 2021 um 11:59 Uhr schrieb Hillary Wankam via sumo-user <sumo-user@xxxxxxxxxxx>:
but working by this way, does it means that my routing algorithm communicates directly with SUMO via a Traci port just as Sumo is the server and my algorithm is a client?

De : sumo-user <sumo-user-bounces@xxxxxxxxxxx> de la part de Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Envoyé : vendredi 16 avril 2021 11:39
À : Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Objet : Re: [sumo-user] Integrate a Routing Algorithm
 
I think there is a misunderstanding somewhere.
Your routing algorithm should be able to take as input a trip (origin,destination) and create as output a list of edges.
By using using this edge list with vehicle.setRoute, the sumo simulation will use the route computed by your algorithm.
You can easily automate this for every vehicle that enters the simulation (i.e. by looping over traci.simulation.getDepartedIDList)


Am Fr., 16. Apr. 2021 um 11:17 Uhr schrieb Hillary Wankam via sumo-user <sumo-user@xxxxxxxxxxx>:
thankyou, but I want to do it automatically. So I have my trips file, I send it to my routing algorithm via Traci and then i can retrieve outputs results of the routing algorihm also via Traci.
By using  traci.vehicle.setRoute i have to write the edges manually and it is not very efficient when having 50 Vehicles.

De : sumo-user <sumo-user-bounces@xxxxxxxxxxx> de la part de Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Envoyé : vendredi 16 avril 2021 11:11
À : Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Objet : Re: [sumo-user] Integrate a Routing Algorithm
 
You can replace vehicle routes by calling traci.vehicle.setRoute with a list of edge ids (computed by your own algorithm).

Am Fr., 16. Apr. 2021 um 11:09 Uhr schrieb Hillary Wankam via sumo-user <sumo-user@xxxxxxxxxxx>:
Hello,
I would like to integrate to SUMO a routing algorithm written in Python via TracI module. So via Traci i want to connect sumo to my routing algorithm so as to compute routes with it and not with Duarouter. Is it possible ?
Best Regards
Hillary
_________________________________________________________

EMAIL LEGAL MENTION / DISCLAIMER

This message contains information that may be privileged or confidential and is the property of the Expleo Services SAS, RCS Versailles 831 178 348, located, 3 avenue des Prés, 78180 Montigny Le Bretonneux - France. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

Ce message contient des informations qui peuvent être privilégiées ou confidentielles et elles sont de la propriété d'Expleo Services SAS, RCS Versailles 831 178 348, situé, 3 avenue des Prés, 78180 Montigny le Bretonneux-France. Il est destiné uniquement à la personne à qui est adressé. Si vous n'êtes pas le destinataire visé, vous n'êtes pas autorisé à lire, imprimer, conserver, copier, diffuser, distribuer ou utiliser ce message ou toute partie de celui-ci. Si vous recevez ce message par erreur, veuillez en avertir immédiatement l'expéditeur et supprimer toutes les copies de ce message.
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top