[ns] Get node positions in C++

Ivanovich Medeiroa ivanovitchm at yahoo.com.br
Wed Nov 5 12:17:02 PST 2008


Hi everyone,

I am developing a wireless application and I need to get the X, Y and Z node positions. How can I do that?

Example of my OTcl code:

set ns [new Simulator]
...
$node(0) set X_ 10.0
$node(0) set Y_ 20.0
$node(0) set Z_ 0.0
...

How can I get these values in the C++ (my application) code?

Regards,
Ivan.


      Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com.
http://br.new.mail.yahoo.com/addresses


More information about the Ns-users mailing list