Re: [sumo-dev] Retrieving the type of Junction

2021-11-12 Thread Adrien Dubedat
Great, thank you very much, you've been very helpful Jakob ! Have a good day and a good weekend, Adrien De : sumo-dev De la part de Jakob Erdmann Envoyé : Thursday, November 11, 2021 5:20 PM À : sumo developer discussions Objet : Re: [sumo-dev] Retrieving the type of Junction Q1: yes

Re: [sumo-dev] Retrieving the type of Junction

2021-11-11 Thread Jakob Erdmann
t;:108103_11_0", > > ":108103_12_0", > > ":108103_13_0", > > ":108103_14_0", > > ":108103_15_0", > > "", > > "", > >

Re: [sumo-dev] Retrieving the type of Junction

2021-11-11 Thread Adrien Dubedat
number of lanes (20) is the same for "crosswalks_lanes_id", "crosswalks_link_fromLane", "crosswalks_link_toLane" and "crosswalks_link_viaLane", the only difference being that some are empty strings for that last "category". Does that mean it's th

Re: [sumo-dev] Retrieving the type of Junction

2021-11-11 Thread Jakob Erdmann
", > > "" > > ], > > "junction_id": "4350193651" > > } > > > > Do I only need to get the state of “:4350193651_c0_0” to get the state of > that crosswalk light ? > > > > Regards,

Re: [sumo-dev] Retrieving the type of Junction

2021-11-10 Thread Adrien Dubedat
"toLane" >elements. Can I base myself only on "toLane" IDs then to map out the crosswalks of each junction ? Attached is the JSON file I extracted. Thank you for your help, Adrien De : sumo-dev mailto:sumo-dev-boun...@eclipse.org>> De la part de Jakob Erdmann En

Re: [sumo-dev] Retrieving the type of Junction

2021-11-10 Thread Jakob Erdmann
t; > > > Attached is the JSON file I extracted. > > > > Thank you for your help, > > Adrien > > > > *De :* sumo-dev *De la part de* Jakob > Erdmann > *Envoyé :* Friday, November 5, 2021 3:31 AM > *À :* sumo developer discussions > *Objet :* Re: [sumo-dev]

Re: [sumo-dev] Retrieving the type of Junction

2021-11-10 Thread Melhem Tawk
rians" is not checked. Regards, Mell From: Jakob Erdmann Sent: Sunday, November 7, 2021 4:56 AM To: Melhem Tawk Subject: Re: [sumo-dev] Retrieving the type of Junction 1. The easiest way to get crosswalks into your scenario is the set the checkbox "pedestrians" in the traffi

Re: [sumo-dev] Retrieving the type of Junction

2021-11-05 Thread Melhem Tawk
ion is defined in the osm.net.xml file: Thank you for your help, Adrien De : sumo-dev mailto:sumo-dev-boun...@eclipse.org>> De la part de Jakob Erdmann Envoyé : Wednesday, November 3, 2021 6:11 PM À : sumo developer discussions mailto:sumo-dev@eclipse.org>> Objet : Re: [sumo

Re: [sumo-dev] Retrieving the type of Junction

2021-11-05 Thread Jakob Erdmann
llowGreenState()”. > > Is there a way to know where do the pedestrian crosswalks start in that > string ? Or is there a way to identify those crosswalks ? > > > > Thank you, > > Adrien > > > > *De :* sumo-dev *De la part de* Jakob > Erdmann > *Envoyé :* Monda

Re: [sumo-dev] Retrieving the type of Junction

2021-11-04 Thread Adrien Dubedat
Thank you, I will try that ! De : sumo-dev De la part de Jakob Erdmann Envoyé : Wednesday, November 3, 2021 6:11 PM À : sumo developer discussions Objet : Re: [sumo-dev] Retrieving the type of Junction You can use traci.trafficlight.getControlledLanes and getControlledLinks Lanes with ids

Re: [sumo-dev] Retrieving the type of Junction

2021-11-03 Thread Jakob Erdmann
“getRedYellowGreenState()”. > > Is there a way to know where do the pedestrian crosswalks start in that > string ? Or is there a way to identify those crosswalks ? > > > > Thank you, > > Adrien > > > > *De :* sumo-dev *De la part de* Jakob > Erdmann > *Envoyé :

Re: [sumo-dev] Retrieving the type of Junction

2021-11-01 Thread Jakob Erdmann
The junction type is currently not accessible via the TraCI API. (for static network analysis, the python library sumolib is recommended: https://sumo.dlr.de/docs/Tools/Sumolib.html) If you only need to identify traffic light junctions, you can use the functions in TrafficLight.h to retrieve

[sumo-dev] Retrieving the type of Junction

2021-11-01 Thread Adrien Dubedat
Hi, I'm trying to retrieve the type of a Junction, I'm using the C++ library. In an osm.net.xml file which lists all junctions, I see there are some different node types (https://sumo.dlr.de/docs/Networks/PlainXML.html#node_types) : I looked in the C++ classes / headers, mostly in