[ns] [NS-ANS] Re: Setdest (mobility model)
teerawat at ece.ubc.ca
Fri Oct 28 22:48:23 PDT 2011
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.
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".
More information about the Ns-users