Re: [ns] [NS-ANS] Re: Setdest (mobility model)
@dilipgyawali make: Nothing to be done for `all'. setdest: . Aborted (core dumped) Noting to be done → Do nothing → Everything is OK. .. It's simply the normal behavior by using 'make' : When 'make' has been run once before : Nothing to be done. I.e. the first 'make' was done with the ./install command. And : You probably did a 'make clean' in ns-2.35/ ? → The real clean command to use in ns-2.xx/ is 'make distclean'. * See install, line 537. About setdest aborting with core dumped : Probably recompile with g++-4.4 . A usable setdest command, example $ ./setdest -v 2 -n 50 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 -m 2 -M 15 scen-file * setdest tricks ... http://khaledben.wordpress.com/2011/02/17/setdest-problem-setdest-cc-using-god_-as-a-variable-in-scenario-files-is-wrong/ .. I.e. to create scene files that will match your `files.tcl' you can actually make up some different versions of the setdest command, like {setdest-orig-god setdest-god setdest-God setdest-God_}. ( Edit setdest.cc, lines 65-66.) - -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/Setdest-mobility-model-tp10534p28333.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] [NS-ANS] Re: Setdest (mobility model)
i tried to implement random way point mobility model in ns2.35 but i got the following error dilip@dilip-pc:~/thesis/ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen/setdest$ make make: Nothing to be done for `all'. dilip@dilip-pc:~/thesis/ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen/setdest$ ./setdest -n 20 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 scen-20-test setdest: setdest.cc:595: void Node::RandomSpeed(): Assertion `speed != 0.0' failed. Aborted (core dumped) dilip@dilip-pc:~/thesis/ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen/setdest$ ./setdest -n 20 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 scen-20-test setdest: setdest.cc:595: void Node::RandomSpeed(): Assertion `speed != 0.0' failed. Aborted (core dumped) dilip@dilip-pc:~/thesis/ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen/setdest$ pls help me to solve the problem thank u dilip -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/Setdest-mobility-model-tp10534p28331.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] [NS-ANS] Re: Setdest (mobility model)
Hi, The utility setdest is a standalone utility. It must be invoked at the command prompt. The utility is located in the directory ns-2.35//indep-utils/cmu-scen-gen/setdest. Go to that directory and execute ./setdest -v 1 -n 50 -p 0 -M 20 -t 900 -x 1500 -y 300 The utility will create Tcl mobility statements for you. You can copy these commands and insert into your NS2 Tcl simulation script. But generally, the above run would create too many Tcl statements. You can store all the statements in a file 'out.txt' by running ./setdest -v 1 -n 50 -p 0 -M 20 -t 900 -x 1500 -y 300 out.txt Then you can copy the mobility statements from the file out.txt to your NS2 Tcl simulation script. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Oct 21, 2011, at 12:11 AM, samira h wrote: Dear all, Colud you please help me how to use command setdest like setdest -v 1 -n 50 -p 0 -M 20 -t 900 -x 1500 -y 300 in a ns program? I got the error: invalid command name setdest.