Re: [ns] location of node position using gps

2012-05-17 Thread ajmal khan

Hi

Here is the code to get the x and y coordinates  and also a speed of a moving 
vehicle. 




MobileNode *mn = (MobileNode*)Node::get_node_by_address(vanetID_);
    mn-update_position();   // update the position, before using it
    myx = mn-X(); //  current own location
    myy = mn-Y();
    myz = mn-Z();
    V = mn-speed();

///vanetID_ = id of vehicle whose speed and coordinates you would like to 
receive.//
 
 
 AJMAL KHAN
Ph.D Scholar
Telecommunication Networks Lab
School of Electrical Engineering and Computer Science 
Kyungpook National University
Cell : +82 (10) 7732-3885  
   



 From: Manfe wise_...@yahoo.com
To: ns-users@ISI.EDU 
Sent: Thursday, May 17, 2012 4:52 PM
Subject: [ns]  location of node position using gps
 


Hello,
I am working on a VANET simulations and i need to detect the position and
speed of the nodes. I would want to know how the speed and the location of
the nodes can be obtained using GPS. 

Help is urgently needed.
-- 
View this message in context: 
http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33862588.html
Sent from the ns-users mailing list archive at Nabble.com.


Re: [ns] location of node position using gps

2012-05-17 Thread Manfe


Hello Ajmal
Thank you for your response! Having imported Mobility traces from SUMO and
and now having tcl scripts of simulation i think these codes should be
converted to tcl. I am clustering the vehicles based on the position and the
speed of the nodes.

Thanks
Manfe 

Ajmal Khan wrote:
 
 
 Hi
 
 Here is the code to get the x and y coordinates  and also a speed of a
 moving vehicle. 
 
 
 
 
 MobileNode *mn = (MobileNode*)Node::get_node_by_address(vanetID_);
     mn-update_position();   // update the position, before using it
     myx = mn-X(); //  current own location
     myy = mn-Y();
     myz = mn-Z();
     V = mn-speed();
 
 ///vanetID_ = id of vehicle whose speed and coordinates you would like to
 receive.//
  
  
  AJMAL KHAN
 Ph.D Scholar
 Telecommunication Networks Lab
 School of Electrical Engineering and Computer Science 
 Kyungpook National University
 Cell : +82 (10) 7732-3885  
    
 
 
 
  From: Manfe wise_...@yahoo.com
 To: ns-users@ISI.EDU 
 Sent: Thursday, May 17, 2012 4:52 PM
 Subject: [ns]  location of node position using gps
  
 
 
 Hello,
 I am working on a VANET simulations and i need to detect the position and
 speed of the nodes. I would want to know how the speed and the location of
 the nodes can be obtained using GPS. 
 
 Help is urgently needed.
 -- 
 View this message in context:
 http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33862588.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 

-- 
View this message in context: 
http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33863559.html
Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] location of node position using gps

2012-05-17 Thread ajmal khan

Hi 


I am using VanetMobisim for generating mobility traces. How SUMO is different 
from VanetMobisim? let me know if u have any information.
Which codes you want to convert into tcl?

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



 From: Manfe wise_...@yahoo.com
To: ns-users@ISI.EDU 
Sent: Thursday, May 17, 2012 8:27 PM
Subject: Re: [ns] location of node position using gps
 


Hello Ajmal
Thank you for your response! Having imported Mobility traces from SUMO and
and now having tcl scripts of simulation i think these codes should be
converted to tcl. I am clustering the vehicles based on the position and the
speed of the nodes.

Thanks
Manfe 

Ajmal Khan wrote:
 
 
 Hi
 
 Here is the code to get the x and y coordinates  and also a speed of a
 moving vehicle. 
 
 
 
 
 MobileNode *mn = (MobileNode*)Node::get_node_by_address(vanetID_);
     mn-update_position();   // update the position, before using it
     myx = mn-X(); //  current own location
     myy = mn-Y();
     myz = mn-Z();
     V = mn-speed();
 
 ///vanetID_ = id of vehicle whose speed and coordinates you would like to
 receive.//
  
  
  AJMAL KHAN
 Ph.D Scholar
 Telecommunication Networks Lab
 School of Electrical Engineering and Computer Science 
 Kyungpook National University
 Cell : +82 (10) 7732-3885  
    
 
 
 
  From: Manfe wise_...@yahoo.com
 To: ns-users@ISI.EDU 
 Sent: Thursday, May 17, 2012 4:52 PM
 Subject: [ns]  location of node position using gps
  
 
 
 Hello,
 I am working on a VANET simulations and i need to detect the position and
 speed of the nodes. I would want to know how the speed and the location of
 the nodes can be obtained using GPS. 
 
 Help is urgently needed.
 -- 
 View this message in context:
 http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33862588.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 

-- 
View this message in context: 
http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33863559.html
Sent from the ns-users mailing list archive at Nabble.com.


Re: [ns] location of node position using gps

2012-05-17 Thread Manfe


Hello Ajma,
SUMO is a portable, microscopic road traffic simulation platform. In my
project Vehicular mobility is moduled using eWorld and imported to SUMO to
generate vehicular traces. With MOVE, the vehicular taces are converted to
tcl scripts. I am moulding a clustered network based on the speed and
location of vehicular nodes using the generated tcl scripts. 


 

Ajmal Khan wrote:
 
 
 Hi
 
 Here is the code to get the x and y coordinates  and also a speed of a
 moving vehicle. 
 
 
 
 
 MobileNode *mn = (MobileNode*)Node::get_node_by_address(vanetID_);
     mn-update_position();   // update the position, before using it
     myx = mn-X(); //  current own location
     myy = mn-Y();
     myz = mn-Z();
     V = mn-speed();
 
 ///vanetID_ = id of vehicle whose speed and coordinates you would like to
 receive.//
  
  
  AJMAL KHAN
 Ph.D Scholar
 Telecommunication Networks Lab
 School of Electrical Engineering and Computer Science 
 Kyungpook National University
 Cell : +82 (10) 7732-3885  
    
 
 
 
  From: Manfe wise_...@yahoo.com
 To: ns-users@ISI.EDU 
 Sent: Thursday, May 17, 2012 4:52 PM
 Subject: [ns]  location of node position using gps
  
 
 
 Hello,
 I am working on a VANET simulations and i need to detect the position and
 speed of the nodes. I would want to know how the speed and the location of
 the nodes can be obtained using GPS. 
 
 Help is urgently needed.
 -- 
 View this message in context:
 http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33862588.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 

-- 
View this message in context: 
http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33863778.html
Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] location of node position using gps

2012-05-17 Thread Manfe


Hello Aslinda,
Thanks for your contributions. You are perfectly right. All the simulators
mentioned are basically the same the difference maybe added fucntionalities,
capabilities  and implementation platforms but at the end the results are
the same;( TCL scripts) thats if it is being integrated in ns2.  For
clarification i would want to know from you, i am clustering the nodes
generated from the TCl scripts, using the speed and location of nodes i
however want to obtain these values dynamically in using TCL codes. I think
i need to convert the c++ codes provided by Ajmal 
 


Manfe wrote:
 
 Hello Ajma,
 SUMO is a portable, microscopic road traffic simulation platform. In my
 project Vehicular mobility is moduled using eWorld and imported to SUMO to
 generate vehicular traces. With MOVE, the vehicular taces are converted to
 tcl scripts. I am moulding a clustered network based on the speed and
 location of vehicular nodes using the generated tcl scripts. 
 
 
  
 
 Ajmal Khan wrote:
 
 
 Hi
 
 Here is the code to get the x and y coordinates  and also a speed of a
 moving vehicle. 
 
 
 
 
 MobileNode *mn = (MobileNode*)Node::get_node_by_address(vanetID_);
     mn-update_position();   // update the position, before using it
     myx = mn-X(); //  current own location
     myy = mn-Y();
     myz = mn-Z();
     V = mn-speed();
 
 ///vanetID_ = id of vehicle whose speed and coordinates you would like to
 receive.//
  
  
  AJMAL KHAN
 Ph.D Scholar
 Telecommunication Networks Lab
 School of Electrical Engineering and Computer Science 
 Kyungpook National University
 Cell : +82 (10) 7732-3885  
    
 
 
 
  From: Manfe wise_...@yahoo.com
 To: ns-users@ISI.EDU 
 Sent: Thursday, May 17, 2012 4:52 PM
 Subject: [ns]  location of node position using gps
  
 
 
 Hello,
 I am working on a VANET simulations and i need to detect the position and
 speed of the nodes. I would want to know how the speed and the location
 of
 the nodes can be obtained using GPS. 
 
 Help is urgently needed.
 -- 
 View this message in context:
 http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33862588.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33864281.html
Sent from the ns-users mailing list archive at Nabble.com.