From: mohamed m. <mo...@gm...> - 2012-08-22 10:22:18
|
To have a better view of this, you can try to get the controlled links and print them to see the contained data ... I also did the same before :) ... Generally, for each link you have string list with three entries: [fromLaneID, ToLaneID, lane across the junction] ... did you see this: http://sourceforge.net/apps/mediawiki/sumo/index.php?title=TraCI/Traffic_Lights_Value_Retrieval On Tue, Aug 21, 2012 at 6:40 PM, Dibia, Meron F <di...@bl...> wrote: > Thanks, > > Can you tell me what exactlly the information stored in > getControlledLinks() would be? I know it contains a list of via, incoming > and outgoing lanes but I don't know which of the concatinated list is which. > > Meron > > ________________________________ > From: mohamed morsi [mo...@gm...] > Sent: Tuesday, August 21, 2012 4:57 AM > To: Dibia, Meron F > Cc: sum...@li... > Subject: Re: [sumo-user] TraCI: Identifying Traffic Lights in a Routes > > Hi Meron, > > For each traffic light, you need to get controlled links. From each link, > you can get fromLaneID and toLaneID (at link[0][0] and link[0][1]). Then, > you can get fromEdgeID and toEdgeID (if the lane id is X_0, then egde id > will be X). > > If both fromEdgeID and toEdgeID are on the vehicle route, then the traffic > light located on the fromEdgeID is on the route of your vehicle. > > Hope that helps > Morsi > > On Mon, Aug 20, 2012 at 8:09 PM, Dibia, Meron F <di...@bl... > <mailto:di...@bl...>> wrote: > Hello, > > I am trying to get the IDs of the traffic lights on my vehicles route > using TraCI python interface. > > I retrieved the route information by traci.getRoute(vehID), and the > trafficlights in the network traci.trafficlights.getIDList() but I don't > know how to connect the two information. > > Is there a way to get this information? > > Meron > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > sumo-user mailing list > sum...@li...<mailto:sum...@li...> > https://lists.sourceforge.net/lists/listinfo/sumo-user > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > sumo-user mailing list > sum...@li... > https://lists.sourceforge.net/lists/listinfo/sumo-user > |