Hello,
a couple of explanations...
- sumo execution is fully controlled by the python script. it waits until
the script sends the next simulationStep() command regardless of how long
that takes
- the error message suggests that the python script had an error (the
peer). Start the python script from a command line and watch it's output
- sumo xml output files can not be reliably read with a standard xml parser
until the simulation is finished. Due to buffering the output generally
ends in an arbitrary state (only half of a line being written, tags
unclosed etc) - likely cause of your error
- all the data from the fcd export can easily be obtained from traci so you
really shouldn't bother with parsing the fcd output (iterate over all
vehicle ids obtained by traci.vehicle.getIDList())
- the traci command vehicle.getNextTLs() is built to quickly obtain the
distance to the next few upcoming signalized intersections for a vehicle

regards,
Jakob


2016-12-14 23:01 GMT+01:00 Vaibhav Rungta <[email protected]>:

> Hello Folks,
> Here's a brief description of problem I am facing.
>
> Goal - Gather information in real time to find how far are the vehicles
> from next signalized intersection
>
> How - To do this I am fetching XML file (fcdoutput). I was able to create a
> python code to read the XML file and find out vehicle IDs which have
> certain criteria.
>
> Observation - The python code I created to read the XML file works but it
> takes while to run (readxmltrace.py).
>
> Error - When I included the section of code which helps me read the XML
> file in TraCI code (traci_simexp1.py), I get the error.
>
> I have attached the python files. Please help me understand the error with
> this approach. To my understanding (correct me if I am wrong) one reason
> might be that python code created to read the XML file is taking a while to
> execute/process, possibly more than 1s, which is clock time in SUMO.
>
> The error looks like:
> Loading configuration... done.
> ***Starting server on port 8813 ***
> Loading net-file from 'simexp.net.xml'... done (0ms).
> Loading done.
> Simulation started with time: 0.00
> Error: tcpip::Socket::recvAndCheck @ recv: Socket reset by peer
> Quitting (on error).
>
> Regards,
> Vaibhav Rungta
> Graduate Student - Industrial and Systems Engineering
> Graduate Assistant - Toyota Production Systems Lab
> Research Assistant - University Transport Research Center
> 585-754-7133
>
> ------------------------------------------------------------
> ------------------
> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to