Re: [ns] Mobile Node Movement

2011-02-03 Thread kylesartre


Hi all, thanks to rehmani's directions, i found the solution: the nodes
position has to be initiated using the following code:

# Define node initial position in nam
for {set i 0} {$i $val(nn)} { incr i } {
# 30 defines the node size for nam
$ns initial node pos $node ($i) 30
}

This should solve it. :)
-- 
View this message in context: 
http://old.nabble.com/Mobile-Node-Movement-tp30825420p30835048.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Mobile Node Movement

2011-02-02 Thread kylesartre


Simple question on Mobile Node Movement which I just cannot figure out (its
been a week...):
My code for creation of mobile nodes and movement:

set node_(1) [$ns node]; Node 1 Creation
$node_(1) set X 40.0
$node_(1) set Y 30.0
$node_(1) set Z 0.0

$ns at 100.0 node_(1) setdest 50.0 40.0 5.0; Node 1 Movement
$ns at 150.0 node_(1) setdest 100.0 80.0 5.0

I recorded this movement in a trace file and ran it on NAM. But the nam
playback shows:
1. at time 0: Node 1 is at position (40,30)
2. at time 100: Node 1 shows a SUDDEN JUMP back to position (0,0) before
moving towards (50,40) ===
3. at time 150: Node 1 moves from position (50,40) to position (100,80)

This is the problem which I dont understand. Why does Node 1 show a sudden
jump back to position (0,0)? How do I make it move from position (40,30) to
(50,40) straight?

Anyone, please advise? Thank you.  :)

-- 
View this message in context: 
http://old.nabble.com/Mobile-Node-Movement-tp30825419p30825419.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Mobile Node Movement

2011-02-02 Thread kylesartre


Simple question on Mobile Node Movement which I just cannot figure out (its
been a week...):
My code for creation of mobile nodes and movement:

set node_(1) [$ns node]; Node 1 Creation
$node_(1) set X 40.0
$node_(1) set Y 30.0
$node_(1) set Z 0.0

$ns at 100.0 $node_(1) setdest 50.0 40.0 5.0; Node 1 Movement
$ns at 150.0 $node_(1) setdest 100.0 80.0 5.0

I recorded this movement in a trace file and ran it on NAM. But the nam
playback shows:
1. at time 0: Node 1 is at position (40,30)
2. at time 100: Node 1 shows a SUDDEN JUMP back to position (0,0) before
moving towards (50,40) ===
3. at time 150: Node 1 moves from position (50,40) to position (100,80)

This is the problem which I dont understand. Why does Node 1 show a sudden
jump back to position (0,0)? How do I make it move from position (40,30) to
(50,40) straight?

Anyone, please advise? Thank you.  :)

-- 
View this message in context: 
http://old.nabble.com/Mobile-Node-Movement-tp30825420p30825420.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Mobile Node Movement

2011-02-02 Thread kylesartre


Simple question on Mobile Node Movement which I just cannot figure out (its
been a week...):
My code for creation of mobile nodes and movement:

set node_(1) [$ns node]; Node 1 Creation
$node_(1) set X 40.0
$node_(1) set Y 30.0
$node_(1) set Z 0.0

$ns at 100.0 $node_(1) setdest 50.0 40.0 5.0; Node 1 Movement
$ns at 150.0 $node_(1) setdest 100.0 80.0 5.0

I recorded this movement in a trace file and ran it on NAM. But the nam
playback shows:
1. at time 0: Node 1 is at position (40,30)
2. at time 100: Node 1 shows a SUDDEN JUMP back to position (0,0) before
moving towards (50,40) ===
3. at time 150: Node 1 moves from position (50,40) to position (100,80)

This is the problem which I dont understand. Why does Node 1 show a sudden
jump back to position (0,0)? How do I make it move from position (40,30) to
(50,40) straight?

Anyone, please advise? Thank you.  :)

-- 
View this message in context: 
http://old.nabble.com/Mobile-Node-Movement-tp30825421p30825421.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] Mobile Node Movement

2011-02-02 Thread Kyle Tan

Apologies for the repeated message. I have deleted most of them from the
forum.

-Original Message-
From: ns-users-boun...@isi.edu [mailto:ns-users-boun...@isi.edu] On Behalf
Of kylesartre
Sent: 02 February 2011 12:18
To: ns-users@ISI.EDU
Subject: [ns] Mobile Node Movement



Simple question on Mobile Node Movement which I just cannot figure out (its
been a week...):
My code for creation of mobile nodes and movement:

set node_(1) [$ns node]; Node 1 Creation
$node_(1) set X 40.0
$node_(1) set Y 30.0
$node_(1) set Z 0.0

$ns at 100.0 $node_(1) setdest 50.0 40.0 5.0; Node 1 Movement
$ns at 150.0 $node_(1) setdest 100.0 80.0 5.0

I recorded this movement in a trace file and ran it on NAM. But the nam
playback shows:
1. at time 0: Node 1 is at position (40,30)
2. at time 100: Node 1 shows a SUDDEN JUMP back to position (0,0) before
moving towards (50,40) ===
3. at time 150: Node 1 moves from position (50,40) to position (100,80)

This is the problem which I dont understand. Why does Node 1 show a sudden
jump back to position (0,0)? How do I make it move from position (40,30) to
(50,40) straight?

Anyone, please advise? Thank you.  :)

-- 
View this message in context:
http://old.nabble.com/Mobile-Node-Movement-tp30825420p30825420.html
Sent from the ns-users mailing list archive at Nabble.com.