Re: [sumo-user] How to export the network as a graph
Thank you for your help. Do you have any web page or related weblog? On Sun, Mar 11, 2018 at 9:20 PM, Jakob Erdmannwrote: > Hello, > you can do this in 2 steps (first convert the network to the so-called > plain format, then convert this to csv): > 1) netconvert -s yournet.net.xml --plain-output-prefix plain > 2) sumo/tools/xml/xml2csv.py plain.edg.xml > > regards, > Jakob > > 2018-03-11 15:36 GMT+01:00 Reza Mortazavi : > >> How can I use SUMO (or netconvert) to export a *.net.xml file to an >> adjacency matrix of a graph (ex: *.csv format)? I want to plot it in >> Matlab as a weighted graph where the edge weights (i.e., the adjacency >> matrix entries) are their associated length or 0 if two nodes are not >> connected. My best effort was to use "netconvert --amitran-output", but I >> have to process again the output to become a csv file. Is there any more >> direct way? >> Thanks. >> >> ___ >> sumo-user mailing list >> sumo-user@eclipse.org >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://dev.eclipse.org/mailman/listinfo/sumo-user >> >> > > ___ > sumo-user mailing list > sumo-user@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/sumo-user > > ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] TL Logic validation
Hello, netconvert returns basically two types of signal plans depending on the edge priority values at an intersection 1) streams in opposite directions at the same time, seprate phase for exclusive left turns 2) every incoming edge gets its own phase where all turning directions get the green light There are a lot more valid states and signal plans so feel free to design your own. - You will receive a warning when loading a signal plan without yellow phase between the green and red phase. - When you make your yellow phases to short (relative to road speed), you will see 'emergency braking" warnings from the simulation - if you allow incompatible streams at the same time you may see collisions regards, Jakob 2018-03-07 17:36 GMT+01:00 Thanos Tasakos via sumo-user < sumo-u...@lists.sourceforge.net>: > Dear SUMO, > > A TL logic consists of concurrent phases that have a specific state > configuration. If you want to write a new TL how can you be sure that the > phases you specify are consistent to logic for example that a g follows y > follows r and that 2 lanes that share the same junction cant be green at > the same time? > The TL logics returned by netconvert are the only valid configurations of > states? > > Thank you in advance, > Thanos Tasakos > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > sumo-user mailing list > sumo-u...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sumo-user > ___ > sumo-user mailing list > sumo-user@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/sumo-user > ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] How to export the network as a graph
Hello, you can do this in 2 steps (first convert the network to the so-called plain format, then convert this to csv): 1) netconvert -s yournet.net.xml --plain-output-prefix plain 2) sumo/tools/xml/xml2csv.py plain.edg.xml regards, Jakob 2018-03-11 15:36 GMT+01:00 Reza Mortazavi: > How can I use SUMO (or netconvert) to export a *.net.xml file to an > adjacency matrix of a graph (ex: *.csv format)? I want to plot it in > Matlab as a weighted graph where the edge weights (i.e., the adjacency > matrix entries) are their associated length or 0 if two nodes are not > connected. My best effort was to use "netconvert --amitran-output", but I > have to process again the output to become a csv file. Is there any more > direct way? > Thanks. > > ___ > sumo-user mailing list > sumo-user@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/sumo-user > > ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] How to export the network as a graph
How can I use SUMO (or netconvert) to export a *.net.xml file to an adjacency matrix of a graph (ex: *.csv format)? I want to plot it in Matlab as a weighted graph where the edge weights (i.e., the adjacency matrix entries) are their associated length or 0 if two nodes are not connected. My best effort was to use "netconvert --amitran-output", but I have to process again the output to become a csv file. Is there any more direct way? Thanks. ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] logging junctions
Thank you. It worked! On Sun, Mar 11, 2018 at 2:31 AM, Jakob Erdmannwrote: > Hello, > you could use either one of these: > - http://sumo.dlr.de/wiki/Simulation/Output/Instantaneous_Induction_Loops_ > Detectors > - http://sumo.dlr.de/wiki/Simulation/Output/VehRoutes (with option > --vehroute-output.exit-times) > regards, > Jakob > > 2018-03-10 23:06 GMT+01:00 Reza Mortazavi : > >> Hi there, I am working on a research paper and need the time each car >> arrives a junction. Is there any output format I can extract this info. >> >> Regards >> >> ___ >> sumo-user mailing list >> sumo-user@eclipse.org >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://dev.eclipse.org/mailman/listinfo/sumo-user >> >> > > ___ > sumo-user mailing list > sumo-user@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/sumo-user > > ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user