NS2MobilityHelper doesn't read the trace file

105 views
Skip to first unread message

RBM-IT

unread,
Oct 22, 2014, 5:27:45 AM10/22/14
to ns-3-...@googlegroups.com
Hello everyone,

I am trying to assign mobility to my nodes from a trace file generated by bonnmotion using ns2mobilityhelper.
I started with the example in "src/mobility/examples" of ns2-mobility-trace.cc but i always get this message :

NOTE: ns2-traces-file could be an absolute or relative path. You could use the file default.ns_movements

 *        included in the same directory as the example file.

 *  NOTE 2: Number of nodes present in the trace file must match with the command line argument.

 *          Note that you must know it before to be able to load it.

 *  NOTE 3: Duration must be a positive number and should match the trace file. Note that you must know it before to be able to load it.

when i comment some parameters, i see that the problem is in tracefile reading,

And when i comment this output in the code: i got :

msg="Could not open trace file  for reading, aborting here 

", file=../src/mobility/helper/ns2-mobility-helper.cc, line=154

libc++abi.dylib: terminating.


Any help please.

Regards

Alberto Marri

unread,
Jun 29, 2015, 5:13:25 AM6/29/15
to ns-3-...@googlegroups.com
Hi!
I have the same problem, how did you solve it?

Thanks,
Regards

Tommaso Pecorella

unread,
Jun 29, 2015, 5:23:47 AM6/29/15
to ns-3-...@googlegroups.com
Hi,

no idea, but I hope he solved the problem. Really, after 8 months I hope he did fix the issue.

Seriously: the issue is (in both cases I guess) a path error.
Make sure that the path is correct and that you don't have spaces or other UTF-8 chars in the path.
The same error was, for example, highlighted by some French-speaking guys that were using accents in the folder names.

T.

Konstantinos

unread,
Jun 29, 2015, 5:25:21 AM6/29/15
to ns-3-...@googlegroups.com, albert...@gmail.com
Dear Alberto,

You are not using the correct path/filename.
Use either absolute path or relative (from the base folder you call waf)

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