Hi,
I'm using SUMO to generate simple nodes mobility to be used in ns3. When i
use tracexporter.py the vehicle IDs (node IDs) in the fcd-output are
different than the IDs in the ns2 trace file. For example, i have 8
vehicles with ids ( 0,1,3,4,6,7,8 and 9), the sumo files have the correct
IDs, however in ns2 the nodes IDs are( 0,1,2 ...7). Is there a way to keep
the original IDs with no changes?
I have changed the python script ns2.py to keep the ids by replacing nid
with v.id:
e.g.        print('$ns_ at %s "$node_(%s) setdest %s %s %s"' % (timestep.time,
v.id, v.x, v.y, v.speed), file=outSTRM)

Now the ns2 trace file has the correct order of IDs, but i'm not sure what
this change may affect in other functions.

Will this simple change work with no errors? Is there any other way?


Regards,
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to