ns3 and sumo link

546 views
Skip to first unread message

Phd student

unread,
Oct 23, 2015, 4:47:11 AM10/23/15
to ns-3-users

Good morning,
I want to use trace files produced by SUMO in ns-3. I did all the steps (creation of different xml files and the conversion to tcl ...). But, I have some problems:
- when I execute the command  sumo-gui -n example.net.xml -r example.rou.xml, sumo is opened but a message appeares: simulation ended. I tried to execute the file example.sumo.cfg, it runned at first. But, when I repeat the simulation, the same message appears "simulation ended".
- The second problem is the link between ns3 and sumo. After creating and converting the sumo trace file (/traceExporter.py –fcd-input=example.xml –ns2mobility-output=mobsmple.tcl), I tried to run the file ns2-mobility-trace (placed in the scratch). I obtain at first the position of some nodes but then  the message "AnimationInterface WARNING:Node:144 Does not have a mobility model. Use SetConstantPosition if it is stationary" appears many times (the number of nodes and the duration are the same in the concerned files and the entred parameters of simulation). When I opened netanim to visiualize the simulation I obtain the follow<

Message has been deleted
Message has been deleted

Phd student

unread,
Oct 23, 2015, 4:52:46 AM10/23/15
to ns-3-users

the following figure

Konstantinos

unread,
Oct 23, 2015, 5:29:55 AM10/23/15
to ns-3-users
Hi,

We can not comment on the output from SUMO (even though some might have used it). 
Please refer to the corresponding mailing list in order to get the proper reply.

Now, regarding the ns-2-mobility-trace example, please provide the trace-file you used (ie. your mobsmple.tcl) and how you run the example (i.e. changes in the code or command line arguments) order to investigate if it is an issue with NS-3 or probably with your scenario.
The error most probably is related to the number of nodes you create in the NS-3 scenario and the number of nodes contained in your mobility file.

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