[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] How to output network summary in sumo 0.12
|
Dear Jakob,
I tried to run the scripts using sumo 0.13
eventhough it runs okey on 0.12, I get the below error when I run it on 0.13
File "downtown.py", line 1649, in <module>
initintersections(cmdGetTrafficLightsVariable_idList())
File "downtown.py", line 335, in initintersections
links =
cmdGetTrafficLightsVariable_controlledLinks(INTERSECTIONS[i].intersectionID)
File "D:\traciControl.py", line 343, in
cmdGetTrafficLightsVariable_controlledLinks
result = buildSendReadNew1StringParamCmd(tc.CMD_GET_TL_VARIABLE,
tc.TL_CONTROLLED_LINKS, TLID)
File "D:\traciControl.py", line 158, in buildSendReadNew1StringParamCmd
readHead(result)
File "D:\traciControl.py", line 142, in readHead
result.readString() # Induction Loop ID // Multi-Entry/Multi-Exit
Detector ID // Traffic Light ID
File "D:\traciControl.py", line 77, in readString
return self.read("!%ss" % length)[0]
File "D:\traciControl.py", line 71, in read
return struct.unpack(format, self._content[oldPos:self._pos])
struct.error: unpack requires a string argument of length 1113684269
could tell me what could be the reason ?
On Tue, Aug 8, 2017 at 11:57 PM, fady taher <fadytaher90@xxxxxxxxx> wrote:
> Dear Jakob
>
> It works now ... but appreciate if you can tell me how can I know number
> of vehicles which left the network, the dump file doesn't show this info if
> am correct.
> also, appreciate if you could tell the possibility of converting the
> network from 0.12 to 0.13 and use the summary option, noting that the
> network in 0.12 was controlled by traci api.
>
> Regads
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#m_-3782980595182758349_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> On Tue, Aug 8, 2017 at 8:43 PM, Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx>
> wrote:
>
>> you must close sumo-gui in order for the full contents of the file to be
>> written.
>>
>> 2017-08-08 18:57 GMT+02:00 fady taher <fadytaher90@xxxxxxxxx>:
>>
>>> Dear Jakob
>>>
>>> the netstate command resulted into the below, there is no data was
>>> generated, eventhough the simulation ran and finished successfully
>>>
>>> <?xml version="1.0"?>
>>>
>>> <!-- generated on 08/07/17 01:20:50 by SUMO sumo Version 0.12.0
>>> <configuration>
>>>
>>> <input>
>>> <net-file value="temp.net.xml"/>
>>> <route-files value="RUN1.rou.xml"/>
>>> <additional-files value="downtown.det.xml"/>
>>> </input>
>>>
>>> <output>
>>> <netstate-dump value="summary-original.xml"/>
>>> </output>
>>>
>>> <time>
>>> <begin value="25190"/>
>>> <end value="65000"/>
>>> </time>
>>>
>>> <processing>
>>> <time-to-teleport value="-1"/>
>>> </processing>
>>>
>>> <report>
>>> <verbose value="false"/>
>>> </report>
>>>
>>> <traci_server>
>>> <remote-port value="8813"/>
>>> </traci_server>
>>>
>>> <gui_only>
>>> <gui-settings-file value=""/>
>>> </gui_only>
>>>
>>> </configuration>
>>> -->
>>>
>>> <sumo-netstate>
>>>
>>>
>>> On Tue, Aug 8, 2017 at 8:08 AM, Jakob Erdmann <
>>> namdre.sumo@xxxxxxxxxxxxxx> wrote:
>>>
>>>> with option --netstate-dump
>>>>
>>>> 2017-08-07 22:28 GMT+02:00 fady taher <fadytaher90@xxxxxxxxx>:
>>>>
>>>>> how can I perform a full network dump please ?
>>>>>
>>>>>
>>>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free.
>>>>> www.avast.com
>>>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>>>>> <#m_-3782980595182758349_m_1684724152507150095_m_-6829305117615261498_m_-6834179479342152277_m_-1956358175446292654_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>>>
>>>>> On Mon, Aug 7, 2017 at 8:19 AM, Jakob Erdmann <
>>>>> namdre.sumo@xxxxxxxxxxxxxx> wrote:
>>>>>
>>>>>> Sorry, if the options isn't there it cannot be done. The only
>>>>>> work-around would be to compute some of these values from a full network
>>>>>> dump (running, departed, arrived) with your own script but you would not be
>>>>>> able to get all values from the summary output.
>>>>>> regards,
>>>>>> Jakob
>>>>>>
>>>>>> 2017-08-07 1:26 GMT+02:00 fady taher via sumo-user <
>>>>>> sumo-user@xxxxxxxxxxxxxxxxxxxxx>:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> I've been using sumo 0.23 for my simulations and I used the parameter
>>>>>>> --summary to output the network result, how can I do the same in
>>>>>>> version
>>>>>>> 0.12 as it seems this is option doesn't exist.
>>>>>>>
>>>>>>> Regards
>>>>>>>
>>>>>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source
>>>>>>> =link&utm_campaign=sig-email&utm_content=webmail>
>>>>>>> Virus-free.
>>>>>>> www.avast.com
>>>>>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source
>>>>>>> =link&utm_campaign=sig-email&utm_content=webmail>
>>>>>>> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>>>>> ------------------------------------------------------------
>>>>>>> ------------------
>>>>>>> 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-user@xxxxxxxxxxxxxxxxxxxxx
>>>>>>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
------------------------------------------------------------------------------
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-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sumo-user