|
From: Craig C. <and...@gm...> - 2013-07-20 13:57:14
|
Sofiane, I don't think the functionality you want has been implemented in TraCI quite yet. However it is on the todo list, as far as I know. I recently tried to do the same thing and was told as such. I got around the problem by writing a python script to scan the net file and get the information I needed, dumping it in a text file to be loaded into my simulation. Using the sumolib module that comes with SUMO, you should be able to do it quite easily. Craig Cooper - Computer Engineering Student On 20/07/2013, at 4:51 AM, Sofiane ZEMOURI <sof...@gm...> wrote: > Hi, > > I am currently working on a simulation scenario using SUMO and i have > encountered some difficulties accessing some of the simulation information > using TraCI. > > In fact, i want to extract the IDs of all the road segments directly linked > (one junction away) to a road segment, a given vehicle is on, at a given > time step. I found out that it is possible to extract the outgoing lanes of > a given lane with the help of the command LANE_LINKS, but again, it is hard > to know the exact number of lanes on an edge given only the id of this > edge, and most importantly, in the case where there is an edge connected to > my edge (the edge on which the vehicle is), but this connected edge has > only ingoing lanes (single way). How can i figure out that there is a a > road segment there and that is linked to my road segment? > > Thank you in advance for your time and answer. > > Best regards > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > sumo-user mailing list > sum...@li... > https://lists.sourceforge.net/lists/listinfo/sumo-user > |