[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] How to collect Junction data from Links
|
import sumolib
net = sumolib.net.readNet('myNet.net.xml')
myJunction =
net.getNode('myJunctionID')
incomingEdges = myJunction.getIncoming()
outgoingEdges = myJunction.getOutgoing()
Best regards
Mirko
-----Original-Nachricht-----
Betreff: Re: [sumo-user] How to collect Junction data from Links
Datum: 2022-11-17T03:05:15+0100
Von: "Matheus Saueressig" <matsaueressig@xxxxxxxxxxx>
An: "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>
How do I use sumolib? I saw the documentation but it didn't help me at all
De: sumo-user <sumo-user-bounces@xxxxxxxxxxx> em nome de Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Enviado: quarta-feira, 16 de novembro de 2022 18:10
Para: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Assunto: Re: [sumo-user] How to collect Junction data from Links
Hello, I have a
python code to handle Multi-agent Reinforcement Learning using SUMO as a microscopic traffic simulation. It collects data from a .sumocfg file and generate .csv file with Step, Link, Running Vehicles, Occupancy and Travel Time parameters from the simulation.
I'm trying to modify it by including a Junction parameter and aggregate and ordenate the link parameters by junction.
How can I access a Junction with .getEdge()?
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxxTo unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user