Hello, - the output is buffered which means that you will only see the contents of the file after closing sumo-gui. - instantInductionLoops are not currently accessible via TraCI (only normal inductionLoops are). That they are included in the list return by traci.inductionloop.getIDList() is a bug (thank you for bringing this to our attention) regards, Jakob
PS: see the newly opened tickets (http://sumo-sim.org/trac.wsgi/ticket/1147, http://sumo-sim.org/trac.wsgi/ticket/1148) 2014-02-14 Mani Amoozadeh <[email protected]>: > > Hi, > I have difficulties in using loop detectors in SUMO. I would appreciate > if > you give me a hint. > I am using this xml file and feed it to the sumo-gui. > ------------------------------------------------------------------- > <additional xmlns:xsi=[1]"http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation=[2]" > http://sumo-sim.org/xsd/additional_file.xs > d"> > <instantInductionLoop id="detector1" lane="1to2_0" pos="200" freq="1" > file="/home/mani/Desktop/loopOutput"/> > </additional> > ------------------------------------------------------------------ > I can see the loop detector in sumo-gui, but nothing is written into the > output file although vehicles passed the loop detector. > I also tried using TraCI to get a list of loop detectors in the > simulation ( > id list (0x00)), and I got detector1, but asking for ( last step vehicle > number (0x10)) from "detector1" gives error. > What I am doing wrong here ? > Thanks! > - Mani > > References > > 1. http://www.w3.org/2001/XMLSchema-instance > 2. http://sumo-sim.org/xsd/additional_file.xsd > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
