Hello ns-users,I am using NS-2 for creating a mobile node. actually those nodes
are Wireless Sensor Nodes created by mannasim.
My scinario as the following
a mobile node will move between 4 places and wait for some time
and it issues 4 move commandes like
set_destination(new_x,new_y,SPEED);
set_destination(new_x1,new_y1,SPEED);
set_destination(new_x2,new_y2,SPEED);
set_destination(new_x3,new_y3,SPEED);
from C++ code. this pices of code allow a node to move from its
current location to new_x and new_y location at speed of SPEED value
However
just when the last command was executed, it didn't allow the previous ones to
finish.
So the mobile node will got to new_x3 and new_y3.
So my question is how we can wait until reaching the first place
before moving to the next one. In othe words, how we can know that the
mobile node has reached one desination and the event was successfully
finished
Thanks