Bug 2166 - SteadyStateRandomWaypointMobilityModel directs the node to the ground
SteadyStateRandomWaypointMobilityModel directs the node to the ground
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: mobility models
ns-3-dev
All All
: P5 major
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-08 07:41 EDT by Tommaso Pecorella
Modified: 2015-08-22 11:10 EDT (History)
0 users

See Also:


Attachments
patch (2.06 KB, text/plain)
2015-08-08 07:41 EDT, Tommaso Pecorella
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2015-08-08 07:41:36 EDT
Created attachment 2114 [details]
patch

SteadyStateRandomWaypointMobilityModel is turning the nodes down. To the ground to be precise.

The culprit is that the node's z position is not considered, and the model is ignoring it when calculating the new point to be reached.
Since the new point is derived from RandomRectanglePositionAllocator (2D model), the Z axis value for the new point is zero.

The alternatives are:
1) use a RandomBoxPositionAllocator (as in the attached patch), or
2) force the z position of the destination point to be the same as the one of the original point.

The bug was reported here by Ziyi He.
https://groups.google.com/forum/#!topic/ns-3-users/Z3I1aajP7RU
Comment 1 Tommaso Pecorella 2015-08-22 11:10:07 EDT
Fixed in changeset:   11612:47c1048095f0