Speed of wireless nodes

55 views
Skip to first unread message

Gaurav

unread,
Oct 20, 2009, 4:57:18 AM10/20/09
to ns-3-users
Hi.. I am using ns-3.5 and want to know that how can i move the
wireless nodes with a particular speed specified by me as in
randomwalk2d model the speed and the direction is automatically set
but i need to move the nodes with some defined speed for my
experiment.Help me regarding that.

Thanks in advance.

Gaurav Bhatt

Verotiana Hanitriniala Rabarijaona

unread,
Oct 28, 2009, 9:11:51 PM10/28/09
to ns-3-...@googlegroups.com
You can set the speed by using the SetDefault to override the attribute Speed.
check http://www.nsnam.org/doxygen-release/index.html out
try
Config::SetDefault ("ns3::RandomWalk2dMobilityModel::Speed", StringValue ("Constant:1.0"));

Hope it helps
V.

2009/10/20 Gaurav <gaurav1...@googlemail.com>

Gaurav Bhatt

unread,
Oct 30, 2009, 11:30:02 AM10/30/09
to ns-3-...@googlegroups.com
Hi Verotiana thanx for your reply, but my actual problem is that I have a set of wireless nodes and I am using MobilityHelper classs to set the information regarding the attributes and their values but its giving me an error
/src/mobility/random-walk-2d-mobility-model.cc, line=163, cond="m_bounds.IsInside (position)

Please help me regarding the error.
Thanx in advance.

Verotiana Hanitriniala Rabarijaona

unread,
Nov 13, 2009, 3:21:48 AM11/13/09
to ns-3-...@googlegroups.com
In my code I use this to set the mobility :

mobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel",
                             "Mode", StringValue ("Time"),
                             "Time", StringValue ("2s"),
                             "Speed", StringValue ("Constant:1.0"),
                             "Bounds", StringValue ("0|200|0|200"));

then you can set the speed with the 4th line.

V.

2009/10/31 Gaurav Bhatt <gaurav1...@googlemail.com>



--
***************************
RABARIJAONA Verotiana Hanitriniala
Graduate School of Global Information and Telecommunication Studies (GITS)
Waseda University
Tokyo
Japan
***************************
Reply all
Reply to author
Forward
0 new messages