ns2mobilityHelper initialize all the node position ...

31 views
Skip to first unread message

Ahmed AL

unread,
Jul 24, 2016, 7:36:46 PM7/24/16
to ns-3-users
Hi every one !
i woould create a sumo ns3 mobility senario. My example is a vanet network : a high way segment with 2 roads (edges) and 2 directions. the example work perfectly in sumo but after the conversion in a .tcl file and the include in NS3 script using "ns2mobilityHelper", in the simulation starting, all the node position is initialized at 0,0,0 despite in the .chg.xml file (sumo file) the nodes positions is totaly different of (0,0,0).
Thank you in advance.

node.nod.xml
sdchvn.cfg.xml
edge.edg.xml
net.net.xml
flow.flow.xml
rou.rou.alt.xml
rou.rou.xml
sumoTrace.xml

Tommaso Pecorella

unread,
Jul 26, 2016, 5:00:00 AM7/26/16
to ns-3-users
Hi,

mind attaching also the tcl file ?
The problem could be in the conversion, the node initialization or just in how you read the data.

T.

Konstantinos

unread,
Jul 26, 2016, 5:15:35 AM7/26/16
to ns-3-users
The answer is simply the node initialization w.r.t. ns-3.

Since all nodes have to be inside the simulation before the simulation starts, while in SUMO nodes can be created at runtime, the generated trace file contains ALL nodes. 
Their initial position is their starting point in SUMO (from rou.rou.xml most of them have depart position 0) so until they are forced to move, they stay at that location.

Similarly, you will see nodes/vehicles piling up at the end of the highway while nodes travel and reach their destination.

Regards,
K.
Reply all
Reply to author
Forward
0 new messages