|Re: [sumo-user] Problem with converting vissim to sumo.|
3) the imported routes are incomplete2) connectivity between edges was not imported correctly1) some edges were not imported correctly from the vissim network (missing or wrong directionality)I noticed this route error as well but without access to a vissim installation I cannot tell you were this problem originates. Please compare the route of the offending vehicle in your vissim simulation with the one in sumo to determine where the network or the routes deviate.Potential error sources to check:Let me know if you figure it out.As a workaround you could also fixed / filter the routes like this:duarouter -n net.net.xml -r out.rou.xml -o fixed.rou.xml --repair --ignore-errorsregards,Jakob2017-10-16 16:06 GMT+02:00 Phuong Nguyen <phuongthimainguyen@xxxxxxxxx>
:Phuong.Best regards,Thank you very much.I attach results of all above steps including netconvert, convert_vissimXML_flows_statRoHello,Thank you for sending me the fixed latest development version.I used netconvert command to convert vissim network file to sumo network file and then used the lasted updated convert_vissimXML_flows_statRo utes.py to convert the route file. Then I created a configuration file using net and rou files achieved.
When I run the configuration file, the result as follow:
Loading configuration... done.
Loading net-file from 'net.net.xml'... done (28ms).
Simulation started with time: 0.00
Error: Vehicle 'fl140005_st0.0.0' has no valid route. No connection between edge '140005' and edge '140003'.
Quitting (on error).
utes.py and sumo-gui run.sumo.cfg to this email. Can you please tell me where the problem come from and what I should do to solve the problem?On Wed, Oct 11, 2017 at 8:23 PM, Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx> wrote:Jakobregards,Hello,there was a bug in convert_vissimXML_flows_statRo utes.py that has been fixed in the latest development version (26431). You can get it here:
/code/trunk/sumo/tools/import/ vissim/convert_vissimXML_flows _statRoutes.py2017-10-04 15:25 GMT+02:00 Phuong Nguyen <phuongthimainguyen@xxxxxxxxx> :Hello,I am using the toolbox (convert_vissimXML_flows_statR outes.py) to convert vissim to sumo route file and here is result:Namespace(SUMO_net='net.net.xm l', output_file='outputfile', vissim_input='robust_hmt_matla bhoz.inpx')
* loading VISSIM net:
* loading SUMO net:
Traceback (most recent call last):
vn/tools/import/vissim/convert _vissimXML_flows_statRoutes.py ", line 380, in <module>
vn/tools/import/vissim/convert _vissimXML_flows_statRoutes.py ", line 234, in validate_rel_flow
route["rel_flow"][:, 0]) == False:
IndexError: too many indices for arrayCan you please give me some ideas/suggestions to fix this error?Thank you very much.Best regards,Phuong.On Mon, Oct 2, 2017 at 7:56 AM, Phuong Nguyen <phuongthimainguyen@xxxxxxxxx> wrote:Good morning,Thank you for your instruction.Have a good day.Best regards,Phuong.On Sun, Oct 1, 2017 at 9:40 PM, Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx> wrote:to import routes make sure you have a working python 2.7 installation (https://www.python.org/downloHello,the toolbox is part of the sumo download.
ads/) and run the tool below (in sumo/tools/import/vissim)convert_vissimXML_flows_statRo utes.py -V <vissim-file> -S <sumo-network-file> -o <output-filename>regards,Jakob2017-10-01 21:37 GMT+02:00 Phuong Nguyen <phuongthimainguyen@xxxxxxxxx> :Dear Jakob,Thank you so much for your kindly help.I have successfully converted vissim inpx file to sumo (net.xml) file. However, in order to run the scenario using sumo, I need to convert route file as well. I found from http://sumo.dlr.de/wiki/N etworks/Import/Vissimthat I can use Vissim Import Toolbox to convert route file but unfortunately it is described in Germany. Is this toolbox exist and if so, where can I download it?Thank you very much.Best regards,Phuong.On Thu, Sep 28, 2017 at 11:18 AM, Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx> wrote:Jakobregards,You can either build this from source on linux or download the updated windows binaries tomorrow (http://sumo.dlr.de/wiki/DownlThank you for providing the input file.The error was due to a bug in netconvert which has now been fixed (revision ). oads#SUMO_-_Latest_Development) _Version2017-09-28 9:41 GMT+02:00 Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx>:JakobPlease send me the input inpx file so I can take a look myself.regards,2017-09-27 9:40 GMT+02:00 Phuong Nguyen <phuongthimainguyen@xxxxxxxxx> :Good morning,I am so sorry for not explaining the report in detail.I did replaced all empty values of xml attributes in the inpx file. After that, I run the netconvert command again but the result was the same with it before I replace empty values of xml attributes.Here it is:warning: Environment variable SUMO_HOME is not set, using built in type maps.852211.74-1221.07, -1531.35 -1220.78, -1530.12 -1202.48, -1346.63 -1201.82, -1332.38 -1201.37, -1320.59Error: Runtime error: Empty data while parsing 'robust.inpx'Error: No nodes loaded.Quitting (on error).So, there is nothing different before and after I remove empty values of xml attributes in the inpx file.Can you please give me any suggestion about this problem?Many thanks and have a good day.Best regards,Phuong.On Tue, Sep 26, 2017 at 8:41 PM, Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx> wrote:Please extend your report of "it does not work" with some details (i.e. an error message or other failure symptoms).2017-09-26 18:47 GMT+02:00 Phuong Nguyen <phuongthimainguyen@xxxxxxxxx> :Phuong.Best regards,Thank you very much.Can you please give me more suggestions?Hello,Thank you so much for your suggestion. I have replaced all empty values of xml attributes in the inpx file but it does not work.On Tue, Sep 26, 2017 at 1:44 PM, Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx> wrote:Jakobregards,Somewhere in your inpx file is an xml attribute with an empty value (someAttribute=""). This is not expected by the importer.Search for "" in your file and try to remove the attribute (or set an appropriate value).2017-09-26 14:34 GMT+02:00 Phuong Nguyen via sumo-user <email@example.com et>:Hello,
I am trying to convert a vissim file to sumo using below command:
netconvert --vissim-file=robust.inpx --output-file=mySumofile.net.x
and here is result:
warning: Environment variable SUMO_HOME is not set, using built in type
-1221.07, -1531.35 -1220.78, -1530.12 -1202.48, -1346.63 -1201.82, -1332.38
Error: Runtime error: Empty data while parsing 'robust.inpx'
Error: No nodes loaded.
Quitting (on error).
Can you please give me any suggestion with this problem.
Thank you very much indeed.
Ms. Phuong Thi Mai Nguyen
PhD student, De Montfort University,
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 mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
Back to the top