Hello to All:
I have tryed to create a trace file by using openstreetmap file and importe
it on sumo and finaly create
TCL file and use it on ns2, i have done the following steps :
A/ Creation of sumo simulation :
1 - netconvert --osm-files map.osm -o map.net.xml
2 - polyconvert --net-file map.net.xml --osm-files map.osm --type
typemap.xml -o map.poly.xml
3 - python /usr/share/sumo/tools/trip/randomTrips.py -n map.net.xml -e 50
-l
4 - python /usr/share/sumo/tools/trip/randomTrips.py -n map.net.xml -r
map.rou.xml -e 50 -l
5 - Je crée manuellement le fichier map.sumo.cfg
NB: All this steps fonctione correctely
B/Creation TCL file :
1/ I have created manually the map.sumocfg file ( in attached)
2/sumo -c myConfig.sumocfg --fcd-output sumoTrace.xml
3/traceExporter.py --fcd-input sumoTrace.xml --ns2-mobilityoutput
ns2mobility.tcl –ns2-activityoutput
ns2activity.tcl –ns2-configyoutput ns2config.tcl
4/ When i execute : ns config.tcl , i receive the error message " can't
read "opt(config-path)": no
such element in array
while executing
"set opt(af) $opt(config-path) "
(file "config.tcl" line 4)
How to solve this problem ??
Thanks for your help in advence.
Hamid
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user