Re: [ns] How to find vehicle route information

2012-08-22 Thread Saravanan Kandasamy

Ajmal,

NS2 does not know map, it only moves a node from point A to point B in
straight line in a given velocity.

Assume Node 0 is positioned at (100,100), if it is moving in one direction
is,
$ns_ at 0.0 $node_(0) setdest 150.0 150.0 1.0

to move in the opposite direction is,
$ns_ at 0.0 $node_(0) setdest 50.0 50.0 1.0

Do note it has no negative value as the point of origin is (0,0)

Good Luck.

rgds
Saravanan K

On Wed, Aug 22, 2012 at 6:28 AM, ajmal khan engaj...@yahoo.com wrote:


 Dear all

 Hi

 I am working on VANET. I need to know how to find a route of a vehicle. I
 can generate mobility traces of vehicles in VanetMobisim and it looks like
 this.

 $ns_ at 0.0 $node_(0) setdest 714.9497484683059 494.9497484683058
 0.75267607

 i.e. node 0 will move towards mentioned (x,y) coordinates at speed of
 0.752 but it does not give any information which route it will follow on a
 given map. Please help me how to figure out the routes of vehicles. If
 there is any other tool that can help. please mention that as well.

 Also i would like to know how to find that a vehicle is moving in opposite
 direction.

 your help will be greatly appreciated.

 Thanks in advance





  AJMAL KHAN
 Ph.D Scholar
 Telecommunication Networks Lab
 School of Electrical Engineering and Computer Science
 Kyungpook National University
 Cell : +82 (10) 7732-3885



Re: [ns] Running algorithms in C++ in NS2

2012-08-22 Thread josema1988


SO HAVE YOU FOUND SOME WAY TO DO THAT I AM WORKING WITH TOPOLOGY CONTROL SO I
NEED SOME INFO

-- 
View this message in context: 
http://old.nabble.com/Running-algorithms-in-C%2B%2B-in-NS2-tp27518160p34334593.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] Running algorithms in C++ in NS2

2012-08-22 Thread josema1988




Rip van Winkle wrote:
 
 Hi all,
 
  I am new to NS2 Simulator and I've been facing some problems. I
 have the Minimum Spanning Tree in NS2 and I want to use it in simulations
 of sensor networks(I'm using this algorithm to route data from the source
 to the sink). The problem is that I don't know where to start and how to
 do it. It would be really helpful of you people if you could post some
 links to resources from where I can get started on this. 
 
 Thanks!!
 

-- 
View this message in context: 
http://old.nabble.com/Running-algorithms-in-C%2B%2B-in-NS2-tp27518160p34334591.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] How to find vehicle route information

2012-08-22 Thread ajmal khan

Dear Saravan

Thanks a lot for your reply.

I understand your point about movement of a node 0 in different direction. but 
i need to know about neighbors of node 0.

if node 0 receives GPS information of neighbor nodes, how to know that they are 
moving in opposite direction, a neighbor node behind node 0 does not mean that 
he is moving in opposite direction just by looking at its position 50,50 as 
compared to node 0 position 100,100. I hope u understand my point, this is 
little difficult for me to know about the direction. 


If you are working in vanets,then u might have idea about different papers like 
VADD, Geoppos etc who are using direction of nighbors and also furtur route 
information of neighbor, which i have no idea how to figure out,

thanks a lot once again for ur precious time.

Hope i will find some helpful response soon.



 
 
 AJMAL KHAN
Ph.D Scholar
Telecommunication Networks Lab
School of Electrical Engineering and Computer Science 
Kyungpook National University
Cell : +82 (10) 7732-3885  
   



 From: Saravanan Kandasamy svana...@gmail.com
To: ns-users@isi.edu ns-users@ISI.EDU 
Sent: Wednesday, August 22, 2012 7:51 PM
Subject: Re: [ns] How to find vehicle route information
 

Ajmal,

NS2 does not know map, it only moves a node from point A to point B in
straight line in a given velocity.

Assume Node 0 is positioned at (100,100), if it is moving in one direction
is,
$ns_ at 0.0 $node_(0) setdest 150.0 150.0 1.0

to move in the opposite direction is,
$ns_ at 0.0 $node_(0) setdest 50.0 50.0 1.0

Do note it has no negative value as the point of origin is (0,0)

Good Luck.

rgds
Saravanan K

On Wed, Aug 22, 2012 at 6:28 AM, ajmal khan engaj...@yahoo.com wrote:


 Dear all

 Hi

 I am working on VANET. I need to know how to find a route of a vehicle. I
 can generate mobility traces of vehicles in VanetMobisim and it looks like
 this.

 $ns_ at 0.0 $node_(0) setdest 714.9497484683059 494.9497484683058
 0.75267607

 i.e. node 0 will move towards mentioned (x,y) coordinates at speed of
 0.752 but it does not give any information which route it will follow on a
 given map. Please help me how to figure out the routes of vehicles. If
 there is any other tool that can help. please mention that as well.

 Also i would like to know how to find that a vehicle is moving in opposite
 direction.

 your help will be greatly appreciated.

 Thanks in advance





  AJMAL KHAN
 Ph.D Scholar
 Telecommunication Networks Lab
 School of Electrical Engineering and Computer Science
 Kyungpook National University
 Cell : +82 (10) 7732-3885



[ns] Error displayed in running tcl scripts in ns2-32

2012-08-22 Thread Manjula Raja

Hello friends!

When i try to run any tcl script in ns-2.32, i am facing the flowing error

  Missing required flag -x in: W -t 150

Missing required flag -y in: W -t 150

Parsing error in event. 


Can any body help me out in this regard?
Will be much obliged

Regards

-- 
**R.Manjula

Research Scholar
Dept of EECE
IIT Kharagpur
West Bengal
**





-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of EECE
IIT Kharagpur
West Bengal
**