node positioning in ns3

47 views
Skip to first unread message

Ns3 lover

unread,
Sep 26, 2018, 6:59:04 PM9/26/18
to ns-3-users
Hello , pleaaaase help me !
I would like to make a given node 1 away from a node 2  with distance equal to 200 m how can I make it with code in ns3 .
thank you in advance

pdbarnes

unread,
Sep 28, 2018, 12:20:08 AM9/28/18
to ns-3-users
Take a look at the mobility sections in the tutorial and manual. For a fixed distance try the ConstantPositionMkbilityModel, then set each Node’s position so they are 200 apart.

Peter
Reply all
Reply to author
Forward
0 new messages