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@eclipse.org>: > 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-boun...@eclipse.org> de la part de Jakob > Erdmann <namdre.s...@gmail.com> > *Envoyé :* vendredi 16 avril 2021 11:39 > *À :* Sumo project User discussions <sumo-user@eclipse.org> > *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@eclipse.org>: > > 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-boun...@eclipse.org> de la part de Jakob > Erdmann <namdre.s...@gmail.com> > *Envoyé :* vendredi 16 avril 2021 11:11 > *À :* Sumo project User discussions <sumo-user@eclipse.org> > *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@eclipse.org>: > > 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@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.eclipse.org_mailman_listinfo_sumo-2Duser&d=DwMFaQ&c=HW6sFd2W7ocfSPROWztN-Q&r=W6bVWJgt43STxbTmjLFzOdYMCPHAfmw5Rlj8cT9CV00&m=BgUEfzq8ZbrET5ApAeXRBqSAd1fX84EjrwRNE4Zcquc&s=toqJqehEHTKjiQKHV3IKxOpx6gwFwV1Rq5HvaWI6mog&e=> > > _______________________________________________ > sumo-user mailing list > sumo-user@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.eclipse.org_mailman_listinfo_sumo-2Duser&d=DwMFaQ&c=HW6sFd2W7ocfSPROWztN-Q&r=W6bVWJgt43STxbTmjLFzOdYMCPHAfmw5Rlj8cT9CV00&m=Ooe5FIDv5W1Hl_MFuwoDTC4euVURbSdVXVtU04oWslQ&s=2LjtkkI1HXEC6TabLU0fYEcAO7RVAiFkH2y7WiUawlg&e=> > > _______________________________________________ > sumo-user mailing list > sumo-user@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user