[ns] How to get a mobile node's current position
Liceven
feixianyexin at 163.com
Wed Jul 23 23:09:27 PDT 2008
Hi, today I find we could use tcl script to get a node's position.
codes like this:
set n1 [$ns node]
$ns set X_ 15.0
$ns set Y_ 15.0
$ns set Z_ 0.0
...
set x_pos [$n1 set X_]
...
'set x_pos [$n1 set X_]' this script could be used to get the x value of
n1's starting position. but it could not record the coordinate dynamically.
So, If I want to implement this dynamic function, what should i do? thanks
very much.
Liceven
Liceven wrote:
>
> Hello,everyone:
> I want to simulate a wireless scenario with two access points and a
> mobile node. This mobile node moves randomly, the question is how to
> calculate it's position like(x=?,y=?,z=0) at any given time. It could be
> better if you could give me an example. Of course, any suggestion is
> welcome.
> Regards.
> Liceven
>
--
View this message in context: http://www.nabble.com/How-to-get-a-mobile-node%27s-current-position-tp18604950p18625919.html
Sent from the ns-users mailing list archive at Nabble.com.
More information about the Ns-users
mailing list