Re: [ns] node position returns all the time zero

2010-03-25 Thread Ghofrane
Hello, Thank you very much, your suggestion solved the problem. --- On Thu, 3/25/10, Sergio Luis O. B. Correia wrote: From: Sergio Luis O. B. Correia Subject: Re: [ns] node position returns all the time zero To: "Ghofrane" Cc: ns-users@isi.edu Date: Thursday, March 25, 2010, 2:33

Re: [ns] node position returns all the time zero

2010-03-25 Thread Sergio Luis O. B. Correia
Hello, On Thu, Mar 25, 2010 at 10:20 AM, Ghofrane wrote: > > Hi > I want to know the current position of a node, but when I write this: > node_ = (MobileNode*)Node::get_node_by_address(ra_addr()); > ((MobileNode *)Node::get_node_by_address(ra_addr()))->getLoc(&x, &y,&z); > > tcl.evalf("puts \" (

[ns] node position returns all the time zero

2010-03-25 Thread Ghofrane
Hi I want to know the current position of a node, but when I write this: node_ = (MobileNode*)Node::get_node_by_address(ra_addr()); ((MobileNode *)Node::get_node_by_address(ra_addr()))->getLoc(&x, &y,&z); tcl.evalf("puts \" (sendHello) x position is  %d  :\"",x); It returns all the time 0 ! D